openlearn-next 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -0
- package/cli.mjs +54 -0
- package/dist/assets/courseware-Djq-abmg.js +1 -0
- package/dist/assets/index-C7UCwTHr.js +899 -0
- package/dist/assets/index-ZE_dOjBv.css +1 -0
- package/dist/assets/index.es-XZ-ZZfm5.js +18 -0
- package/dist/assets/purify.es-V6uLfjnH.js +3 -0
- package/dist/assets/vendor-html2canvas-B0tyYwQk.js +22 -0
- package/dist/assets/vendor-konva-BRP-lFzZ.js +89 -0
- package/dist/assets/vendor-pptx-w8e1eCEK.js +39 -0
- package/dist/assets/vendor-reveal-DcQQzuI9.css +1 -0
- package/dist/assets/whiteboard-FFuMxeyx.js +8308 -0
- package/dist/index.html +26 -0
- package/dist/plugins/ext-ai-quiz-pro.zip +0 -0
- package/dist/plugins/ext-hello-world.zip +0 -0
- package/dist/plugins/ext-memo.zip +0 -0
- package/dist/plugins/ext-mindmap-assistant.zip +0 -0
- package/dist/plugins/ext-quiz-generator.zip +0 -0
- package/dist/plugins/ext-raffle-vote.zip +0 -0
- package/dist/plugins/ext-roll-call.zip +0 -0
- package/dist/server.cjs +14284 -0
- package/package.json +109 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
function t3(d,l){for(var s=0;s<l.length;s++){const f=l[s];if(typeof f!="string"&&!Array.isArray(f)){for(const o in f)if(o!=="default"&&!(o in d)){const g=Object.getOwnPropertyDescriptor(f,o);g&&Object.defineProperty(d,o,g.get?g:{enumerable:!0,get:()=>f[o]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var Rg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l1(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Z1={exports:{}},Vt={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var h2;function b4(){if(h2)return Vt;h2=1;var d=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),A=Symbol.iterator;function x(D){return D===null||typeof D!="object"?null:(D=A&&D[A]||D["@@iterator"],typeof D=="function"?D:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,X={};function Q(D,k,ot){this.props=D,this.context=k,this.refs=X,this.updater=ot||O}Q.prototype.isReactComponent={},Q.prototype.setState=function(D,k){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,k,"setState")},Q.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function j(){}j.prototype=Q.prototype;function I(D,k,ot){this.props=D,this.context=k,this.refs=X,this.updater=ot||O}var P=I.prototype=new j;P.constructor=I,L(P,Q.prototype),P.isPureReactComponent=!0;var gt=Array.isArray;function lt(){}var st={H:null,A:null,T:null,S:null},rt=Object.prototype.hasOwnProperty;function Et(D,k,ot){var bt=ot.ref;return{$$typeof:d,type:D,key:k,ref:bt!==void 0?bt:null,props:ot}}function Mt(D,k){return Et(D.type,k,D.props)}function Yt(D){return typeof D=="object"&&D!==null&&D.$$typeof===d}function pt(D){var k={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ot){return k[ot]})}var Ht=/\/+/g;function Ut(D,k){return typeof D=="object"&&D!==null&&D.key!=null?pt(""+D.key):k.toString(36)}function St(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(lt,lt):(D.status="pending",D.then(function(k){D.status==="pending"&&(D.status="fulfilled",D.value=k)},function(k){D.status==="pending"&&(D.status="rejected",D.reason=k)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function U(D,k,ot,bt,qt){var Lt=typeof D;(Lt==="undefined"||Lt==="boolean")&&(D=null);var ce=!1;if(D===null)ce=!0;else switch(Lt){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(D.$$typeof){case d:case l:ce=!0;break;case T:return ce=D._init,U(ce(D._payload),k,ot,bt,qt)}}if(ce)return qt=qt(D),ce=bt===""?"."+Ut(D,0):bt,gt(qt)?(ot="",ce!=null&&(ot=ce.replace(Ht,"$&/")+"/"),U(qt,k,ot,"",function(_u){return _u})):qt!=null&&(Yt(qt)&&(qt=Mt(qt,ot+(qt.key==null||D&&D.key===qt.key?"":(""+qt.key).replace(Ht,"$&/")+"/")+ce)),k.push(qt)),1;ce=0;var oa=bt===""?".":bt+":";if(gt(D))for(var de=0;de<D.length;de++)bt=D[de],Lt=oa+Ut(bt,de),ce+=U(bt,k,ot,Lt,qt);else if(de=x(D),typeof de=="function")for(D=de.call(D),de=0;!(bt=D.next()).done;)bt=bt.value,Lt=oa+Ut(bt,de++),ce+=U(bt,k,ot,Lt,qt);else if(Lt==="object"){if(typeof D.then=="function")return U(St(D),k,ot,bt,qt);throw k=String(D),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ce}function it(D,k,ot){if(D==null)return D;var bt=[],qt=0;return U(D,bt,"","",function(Lt){return k.call(ot,Lt,qt++)}),bt}function nt(D){if(D._status===-1){var k=D._result;k=k(),k.then(function(ot){(D._status===0||D._status===-1)&&(D._status=1,D._result=ot)},function(ot){(D._status===0||D._status===-1)&&(D._status=2,D._result=ot)}),D._status===-1&&(D._status=0,D._result=k)}if(D._status===1)return D._result.default;throw D._result}var _t=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},zt={map:it,forEach:function(D,k,ot){it(D,function(){k.apply(this,arguments)},ot)},count:function(D){var k=0;return it(D,function(){k++}),k},toArray:function(D){return it(D,function(k){return k})||[]},only:function(D){if(!Yt(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Vt.Activity=M,Vt.Children=zt,Vt.Component=Q,Vt.Fragment=s,Vt.Profiler=o,Vt.PureComponent=I,Vt.StrictMode=f,Vt.Suspense=S,Vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=st,Vt.__COMPILER_RUNTIME={__proto__:null,c:function(D){return st.H.useMemoCache(D)}},Vt.cache=function(D){return function(){return D.apply(null,arguments)}},Vt.cacheSignal=function(){return null},Vt.cloneElement=function(D,k,ot){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var bt=L({},D.props),qt=D.key;if(k!=null)for(Lt in k.key!==void 0&&(qt=""+k.key),k)!rt.call(k,Lt)||Lt==="key"||Lt==="__self"||Lt==="__source"||Lt==="ref"&&k.ref===void 0||(bt[Lt]=k[Lt]);var Lt=arguments.length-2;if(Lt===1)bt.children=ot;else if(1<Lt){for(var ce=Array(Lt),oa=0;oa<Lt;oa++)ce[oa]=arguments[oa+2];bt.children=ce}return Et(D.type,qt,bt)},Vt.createContext=function(D){return D={$$typeof:v,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:g,_context:D},D},Vt.createElement=function(D,k,ot){var bt,qt={},Lt=null;if(k!=null)for(bt in k.key!==void 0&&(Lt=""+k.key),k)rt.call(k,bt)&&bt!=="key"&&bt!=="__self"&&bt!=="__source"&&(qt[bt]=k[bt]);var ce=arguments.length-2;if(ce===1)qt.children=ot;else if(1<ce){for(var oa=Array(ce),de=0;de<ce;de++)oa[de]=arguments[de+2];qt.children=oa}if(D&&D.defaultProps)for(bt in ce=D.defaultProps,ce)qt[bt]===void 0&&(qt[bt]=ce[bt]);return Et(D,Lt,qt)},Vt.createRef=function(){return{current:null}},Vt.forwardRef=function(D){return{$$typeof:p,render:D}},Vt.isValidElement=Yt,Vt.lazy=function(D){return{$$typeof:T,_payload:{_status:-1,_result:D},_init:nt}},Vt.memo=function(D,k){return{$$typeof:b,type:D,compare:k===void 0?null:k}},Vt.startTransition=function(D){var k=st.T,ot={};st.T=ot;try{var bt=D(),qt=st.S;qt!==null&&qt(ot,bt),typeof bt=="object"&&bt!==null&&typeof bt.then=="function"&&bt.then(lt,_t)}catch(Lt){_t(Lt)}finally{k!==null&&ot.types!==null&&(k.types=ot.types),st.T=k}},Vt.unstable_useCacheRefresh=function(){return st.H.useCacheRefresh()},Vt.use=function(D){return st.H.use(D)},Vt.useActionState=function(D,k,ot){return st.H.useActionState(D,k,ot)},Vt.useCallback=function(D,k){return st.H.useCallback(D,k)},Vt.useContext=function(D){return st.H.useContext(D)},Vt.useDebugValue=function(){},Vt.useDeferredValue=function(D,k){return st.H.useDeferredValue(D,k)},Vt.useEffect=function(D,k){return st.H.useEffect(D,k)},Vt.useEffectEvent=function(D){return st.H.useEffectEvent(D)},Vt.useId=function(){return st.H.useId()},Vt.useImperativeHandle=function(D,k,ot){return st.H.useImperativeHandle(D,k,ot)},Vt.useInsertionEffect=function(D,k){return st.H.useInsertionEffect(D,k)},Vt.useLayoutEffect=function(D,k){return st.H.useLayoutEffect(D,k)},Vt.useMemo=function(D,k){return st.H.useMemo(D,k)},Vt.useOptimistic=function(D,k){return st.H.useOptimistic(D,k)},Vt.useReducer=function(D,k,ot){return st.H.useReducer(D,k,ot)},Vt.useRef=function(D){return st.H.useRef(D)},Vt.useState=function(D){return st.H.useState(D)},Vt.useSyncExternalStore=function(D,k,ot){return st.H.useSyncExternalStore(D,k,ot)},Vt.useTransition=function(){return st.H.useTransition()},Vt.version="19.2.7",Vt}var d2;function $r(){return d2||(d2=1,Z1.exports=b4()),Z1.exports}var Gl=$r();const ye=l1(Gl),Dg=t3({__proto__:null,default:ye},[Gl]);var K1={exports:{}},Hr={},J1={exports:{}},w1={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var m2;function T4(){return m2||(m2=1,(function(d){function l(U,it){var nt=U.length;U.push(it);t:for(;0<nt;){var _t=nt-1>>>1,zt=U[_t];if(0<o(zt,it))U[_t]=it,U[nt]=zt,nt=_t;else break t}}function s(U){return U.length===0?null:U[0]}function f(U){if(U.length===0)return null;var it=U[0],nt=U.pop();if(nt!==it){U[0]=nt;t:for(var _t=0,zt=U.length,D=zt>>>1;_t<D;){var k=2*(_t+1)-1,ot=U[k],bt=k+1,qt=U[bt];if(0>o(ot,nt))bt<zt&&0>o(qt,ot)?(U[_t]=qt,U[bt]=nt,_t=bt):(U[_t]=ot,U[k]=nt,_t=k);else if(bt<zt&&0>o(qt,nt))U[_t]=qt,U[bt]=nt,_t=bt;else break t}}return it}function o(U,it){var nt=U.sortIndex-it.sortIndex;return nt!==0?nt:U.id-it.id}if(d.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;d.unstable_now=function(){return g.now()}}else{var v=Date,p=v.now();d.unstable_now=function(){return v.now()-p}}var S=[],b=[],T=1,M=null,A=3,x=!1,O=!1,L=!1,X=!1,Q=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function P(U){for(var it=s(b);it!==null;){if(it.callback===null)f(b);else if(it.startTime<=U)f(b),it.sortIndex=it.expirationTime,l(S,it);else break;it=s(b)}}function gt(U){if(L=!1,P(U),!O)if(s(S)!==null)O=!0,lt||(lt=!0,pt());else{var it=s(b);it!==null&&St(gt,it.startTime-U)}}var lt=!1,st=-1,rt=5,Et=-1;function Mt(){return X?!0:!(d.unstable_now()-Et<rt)}function Yt(){if(X=!1,lt){var U=d.unstable_now();Et=U;var it=!0;try{t:{O=!1,L&&(L=!1,j(st),st=-1),x=!0;var nt=A;try{e:{for(P(U),M=s(S);M!==null&&!(M.expirationTime>U&&Mt());){var _t=M.callback;if(typeof _t=="function"){M.callback=null,A=M.priorityLevel;var zt=_t(M.expirationTime<=U);if(U=d.unstable_now(),typeof zt=="function"){M.callback=zt,P(U),it=!0;break e}M===s(S)&&f(S),P(U)}else f(S);M=s(S)}if(M!==null)it=!0;else{var D=s(b);D!==null&&St(gt,D.startTime-U),it=!1}}break t}finally{M=null,A=nt,x=!1}it=void 0}}finally{it?pt():lt=!1}}}var pt;if(typeof I=="function")pt=function(){I(Yt)};else if(typeof MessageChannel<"u"){var Ht=new MessageChannel,Ut=Ht.port2;Ht.port1.onmessage=Yt,pt=function(){Ut.postMessage(null)}}else pt=function(){Q(Yt,0)};function St(U,it){st=Q(function(){U(d.unstable_now())},it)}d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(U){U.callback=null},d.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):rt=0<U?Math.floor(1e3/U):5},d.unstable_getCurrentPriorityLevel=function(){return A},d.unstable_next=function(U){switch(A){case 1:case 2:case 3:var it=3;break;default:it=A}var nt=A;A=it;try{return U()}finally{A=nt}},d.unstable_requestPaint=function(){X=!0},d.unstable_runWithPriority=function(U,it){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var nt=A;A=U;try{return it()}finally{A=nt}},d.unstable_scheduleCallback=function(U,it,nt){var _t=d.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?_t+nt:_t):nt=_t,U){case 1:var zt=-1;break;case 2:zt=250;break;case 5:zt=1073741823;break;case 4:zt=1e4;break;default:zt=5e3}return zt=nt+zt,U={id:T++,callback:it,priorityLevel:U,startTime:nt,expirationTime:zt,sortIndex:-1},nt>_t?(U.sortIndex=nt,l(b,U),s(S)===null&&U===s(b)&&(L?(j(st),st=-1):L=!0,St(gt,nt-_t))):(U.sortIndex=zt,l(S,U),O||x||(O=!0,lt||(lt=!0,pt()))),U},d.unstable_shouldYield=Mt,d.unstable_wrapCallback=function(U){var it=A;return function(){var nt=A;A=it;try{return U.apply(this,arguments)}finally{A=nt}}}})(w1)),w1}var g2;function _d(){return g2||(g2=1,J1.exports=T4()),J1.exports}var W1={exports:{}},tl={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var v2;function C4(){if(v2)return tl;v2=1;var d=$r();function l(S){var b="https://react.dev/errors/"+S;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)b+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+S+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var f={d:{f:s,r:function(){throw Error(l(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function g(S,b,T){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:M==null?null:""+M,children:S,containerInfo:b,implementation:T}}var v=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(S,b){if(S==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return tl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,tl.createPortal=function(S,b){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(l(299));return g(S,b,null,T)},tl.flushSync=function(S){var b=v.T,T=f.p;try{if(v.T=null,f.p=2,S)return S()}finally{v.T=b,f.p=T,f.d.f()}},tl.preconnect=function(S,b){typeof S=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,f.d.C(S,b))},tl.prefetchDNS=function(S){typeof S=="string"&&f.d.D(S)},tl.preinit=function(S,b){if(typeof S=="string"&&b&&typeof b.as=="string"){var T=b.as,M=p(T,b.crossOrigin),A=typeof b.integrity=="string"?b.integrity:void 0,x=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;T==="style"?f.d.S(S,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:M,integrity:A,fetchPriority:x}):T==="script"&&f.d.X(S,{crossOrigin:M,integrity:A,fetchPriority:x,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},tl.preinitModule=function(S,b){if(typeof S=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var T=p(b.as,b.crossOrigin);f.d.M(S,{crossOrigin:T,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&f.d.M(S)},tl.preload=function(S,b){if(typeof S=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var T=b.as,M=p(T,b.crossOrigin);f.d.L(S,T,{crossOrigin:M,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},tl.preloadModule=function(S,b){if(typeof S=="string")if(b){var T=p(b.as,b.crossOrigin);f.d.m(S,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:T,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else f.d.m(S)},tl.requestFormReset=function(S){f.d.r(S)},tl.unstable_batchedUpdates=function(S,b){return S(b)},tl.useFormState=function(S,b,T){return v.H.useFormState(S,b,T)},tl.useFormStatus=function(){return v.H.useHostTransitionStatus()},tl.version="19.2.7",tl}var y2;function e3(){if(y2)return W1.exports;y2=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(l){console.error(l)}}return d(),W1.exports=C4(),W1.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom-client.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var p2;function A4(){if(p2)return Hr;p2=1;var d=_d(),l=$r(),s=e3();function f(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 o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function g(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function v(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 p(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 S(t){if(g(t)!==t)throw Error(f(188))}function b(t){var e=t.alternate;if(!e){if(e=g(t),e===null)throw Error(f(188));return e!==t?null:t}for(var i=t,u=e;;){var h=i.return;if(h===null)break;var m=h.alternate;if(m===null){if(u=h.return,u!==null){i=u;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===i)return S(h),t;if(m===u)return S(h),e;m=m.sibling}throw Error(f(188))}if(i.return!==u.return)i=h,u=m;else{for(var E=!1,z=h.child;z;){if(z===i){E=!0,i=h,u=m;break}if(z===u){E=!0,u=h,i=m;break}z=z.sibling}if(!E){for(z=m.child;z;){if(z===i){E=!0,i=m,u=h;break}if(z===u){E=!0,u=m,i=h;break}z=z.sibling}if(!E)throw Error(f(189))}}if(i.alternate!==u)throw Error(f(190))}if(i.tag!==3)throw Error(f(188));return i.stateNode.current===i?t:e}function T(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=T(t),e!==null)return e;t=t.sibling}return null}var M=Object.assign,A=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),I=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),gt=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),st=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),Et=Symbol.for("react.activity"),Mt=Symbol.for("react.memo_cache_sentinel"),Yt=Symbol.iterator;function pt(t){return t===null||typeof t!="object"?null:(t=Yt&&t[Yt]||t["@@iterator"],typeof t=="function"?t:null)}var Ht=Symbol.for("react.client.reference");function Ut(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ht?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case Q:return"Profiler";case X:return"StrictMode";case gt:return"Suspense";case lt:return"SuspenseList";case Et:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case O:return"Portal";case I:return t.displayName||"Context";case j:return(t._context.displayName||"Context")+".Consumer";case P:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case st:return e=t.displayName||null,e!==null?e:Ut(t.type)||"Memo";case rt:e=t._payload,t=t._init;try{return Ut(t(e))}catch{}}return null}var St=Array.isArray,U=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},_t=[],zt=-1;function D(t){return{current:t}}function k(t){0>zt||(t.current=_t[zt],_t[zt]=null,zt--)}function ot(t,e){zt++,_t[zt]=t.current,t.current=e}var bt=D(null),qt=D(null),Lt=D(null),ce=D(null);function oa(t,e){switch(ot(Lt,e),ot(qt,t),ot(bt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Ud(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Ud(e),t=Bd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}k(bt),ot(bt,t)}function de(){k(bt),k(qt),k(Lt)}function _u(t){t.memoizedState!==null&&ot(ce,t);var e=bt.current,i=Bd(e,t.type);e!==i&&(ot(qt,t),ot(bt,i))}function Rs(t){qt.current===t&&(k(bt),k(qt)),ce.current===t&&(k(ce),Rr._currentValue=nt)}var Kn,Jn;function Sn(t){if(Kn===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Kn=e&&e[1]||"",Jn=-1<i.stack.indexOf(`
|
|
34
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
35
|
+
`+Kn+t+Jn}var Ri=!1;function Vl(t,e){if(!t||Ri)return"";Ri=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(e){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(F){var J=F}Reflect.construct(t,[],et)}else{try{et.call()}catch(F){J=F}t.call(et.prototype)}}else{try{throw Error()}catch(F){J=F}(et=t())&&typeof et.catch=="function"&&et.catch(function(){})}}catch(F){if(F&&J&&typeof F.stack=="string")return[F.stack,J.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),E=m[0],z=m[1];if(E&&z){var N=E.split(`
|
|
36
|
+
`),Z=z.split(`
|
|
37
|
+
`);for(h=u=0;u<N.length&&!N[u].includes("DetermineComponentFrameRoot");)u++;for(;h<Z.length&&!Z[h].includes("DetermineComponentFrameRoot");)h++;if(u===N.length||h===Z.length)for(u=N.length-1,h=Z.length-1;1<=u&&0<=h&&N[u]!==Z[h];)h--;for(;1<=u&&0<=h;u--,h--)if(N[u]!==Z[h]){if(u!==1||h!==1)do if(u--,h--,0>h||N[u]!==Z[h]){var $=`
|
|
38
|
+
`+N[u].replace(" at new "," at ");return t.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",t.displayName)),$}while(1<=u&&0<=h);break}}}finally{Ri=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Sn(i):""}function _n(t,e){switch(t.tag){case 26:case 27:case 5:return Sn(t.type);case 16:return Sn("Lazy");case 13:return t.child!==e&&e!==null?Sn("Suspense Fallback"):Sn("Suspense");case 19:return Sn("SuspenseList");case 0:case 15:return Vl(t.type,!1);case 11:return Vl(t.type.render,!1);case 1:return Vl(t.type,!0);case 31:return Sn("Activity");default:return""}}function Rc(t){try{var e="",i=null;do e+=_n(t,i),i=t,t=t.return;while(t);return e}catch(u){return`
|
|
39
|
+
Error generating stack: `+u.message+`
|
|
40
|
+
`+u.stack}}var Ds=Object.prototype.hasOwnProperty,wn=d.unstable_scheduleCallback,Eu=d.unstable_cancelCallback,Di=d.unstable_shouldYield,Sa=d.unstable_requestPaint,Aa=d.unstable_now,eh=d.unstable_getCurrentPriorityLevel,Dc=d.unstable_ImmediatePriority,bu=d.unstable_UserBlockingPriority,Ni=d.unstable_NormalPriority,Zl=d.unstable_LowPriority,Gi=d.unstable_IdlePriority,ah=d.log,lh=d.unstable_setDisableYieldValue,Tu=null,Za=null;function En(t){if(typeof ah=="function"&&lh(t),Za&&typeof Za.setStrictMode=="function")try{Za.setStrictMode(Tu,t)}catch{}}var el=Math.clz32?Math.clz32:nh,lo=Math.log,f1=Math.LN2;function nh(t){return t>>>=0,t===0?32:31-(lo(t)/f1|0)|0}var Nc=256,Cu=262144,Hi=4194304;function Wn(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 Ui(t,e,i){var u=t.pendingLanes;if(u===0)return 0;var h=0,m=t.suspendedLanes,E=t.pingedLanes;t=t.warmLanes;var z=u&134217727;return z!==0?(u=z&~m,u!==0?h=Wn(u):(E&=z,E!==0?h=Wn(E):i||(i=z&~t,i!==0&&(h=Wn(i))))):(z=u&~m,z!==0?h=Wn(z):E!==0?h=Wn(E):i||(i=u&~t,i!==0&&(h=Wn(i)))),h===0?0:e!==0&&e!==h&&(e&m)===0&&(m=h&-h,i=e&-e,m>=i||m===32&&(i&4194048)!==0)?e:h}function Au(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ih(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 Fn(){var t=Hi;return Hi<<=1,(Hi&62914560)===0&&(Hi=4194304),t}function Gc(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function zu(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Hc(t,e,i,u,h,m){var E=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 z=t.entanglements,N=t.expirationTimes,Z=t.hiddenUpdates;for(i=E&~i;0<i;){var $=31-el(i),et=1<<$;z[$]=0,N[$]=-1;var J=Z[$];if(J!==null)for(Z[$]=null,$=0;$<J.length;$++){var F=J[$];F!==null&&(F.lane&=-536870913)}i&=~et}u!==0&&Mu(t,u,0),m!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=m&~(E&~e))}function Mu(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var u=31-el(e);t.entangledLanes|=e,t.entanglements[u]=t.entanglements[u]|1073741824|i&261930}function Ns(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var u=31-el(i),h=1<<u;h&e|t[u]&e&&(t[u]|=e),i&=~h}}function no(t,e){var i=e&-e;return i=(i&42)!==0?1:Ou(i),(i&(t.suspendedLanes|e))!==0?0:i}function Ou(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 xu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Uc(){var t=it.p;return t!==0?t:(t=window.event,t===void 0?32:i2(t.type))}function kn(t,e){var i=it.p;try{return it.p=t,e()}finally{it.p=i}}var bn=Math.random().toString(36).slice(2),$e="__reactFiber$"+bn,za="__reactProps$"+bn,Pn="__reactContainer$"+bn,Kl="__reactEvents$"+bn,In="__reactListeners$"+bn,Gs="__reactHandles$"+bn,Bc="__reactResources$"+bn,Tn="__reactMarker$"+bn;function Bi(t){delete t[$e],delete t[za],delete t[Kl],delete t[In],delete t[Gs]}function Yi(t){var e=t[$e];if(e)return e;for(var i=t.parentNode;i;){if(e=i[Pn]||i[$e]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=Vd(t);t!==null;){if(i=t[$e])return i;t=Vd(t)}return e}t=i,i=t.parentNode}return null}function qi(t){if(t=t[$e]||t[Pn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ru(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(f(33))}function $n(t){var e=t[Bc];return e||(e=t[Bc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ta(t){t[Tn]=!0}var Cn=new Set,Yc={};function ti(t,e){al(t,e),al(t+"Capture",e)}function al(t,e){for(Yc[t]=e,t=0;t<e.length;t++)Cn.add(e[t])}var ll=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]*$"),Hs={},Ue={};function io(t){return Ds.call(Ue,t)?!0:Ds.call(Hs,t)?!1:ll.test(t)?Ue[t]=!0:(Hs[t]=!0,!1)}function Du(t,e,i){if(io(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var u=e.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+i)}}function Us(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 Jl(t,e,i,u){if(u===null)t.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+u)}}function ml(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function uo(t,e,i){var u=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var h=u.get,m=u.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return h.call(this)},set:function(E){i=""+E,m.call(this,E)}}),Object.defineProperty(t,e,{enumerable:u.enumerable}),{getValue:function(){return i},setValue:function(E){i=""+E},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Bs(t){if(!t._valueTracker){var e=qc(t)?"checked":"value";t._valueTracker=uo(t,e,""+t[e])}}function Ma(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),u="";return t&&(u=qc(t)?t.checked?"true":"false":t.value),t=u,t!==i?(e.setValue(t),!0):!1}function Me(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 Xc=/[\n"\\]/g;function Oa(t){return t.replace(Xc,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Nu(t,e,i,u,h,m,E,z){t.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?t.type=E:t.removeAttribute("type"),e!=null?E==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ml(e)):t.value!==""+ml(e)&&(t.value=""+ml(e)):E!=="submit"&&E!=="reset"||t.removeAttribute("value"),e!=null?Hl(t,E,ml(e)):i!=null?Hl(t,E,ml(i)):u!=null&&t.removeAttribute("value"),h==null&&m!=null&&(t.defaultChecked=!!m),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?t.name=""+ml(z):t.removeAttribute("name")}function Lc(t,e,i,u,h,m,E,z){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),e!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||e!=null)){Bs(t);return}i=i!=null?""+ml(i):"",e=e!=null?""+ml(e):i,z||e===t.value||(t.value=e),t.defaultValue=e}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=z?t.checked:!!u,t.defaultChecked=!!u,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(t.name=E),Bs(t)}function Hl(t,e,i){e==="number"&&Me(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function An(t,e,i,u){if(t=t.options,e){e={};for(var h=0;h<i.length;h++)e["$"+i[h]]=!0;for(i=0;i<t.length;i++)h=e.hasOwnProperty("$"+t[i].value),t[i].selected!==h&&(t[i].selected=h),h&&u&&(t[i].defaultSelected=!0)}else{for(i=""+ml(i),e=null,h=0;h<t.length;h++){if(t[h].value===i){t[h].selected=!0,u&&(t[h].defaultSelected=!0);return}e!==null||t[h].disabled||(e=t[h])}e!==null&&(e.selected=!0)}}function jc(t,e,i){if(e!=null&&(e=""+ml(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+ml(i):""}function Qc(t,e,i,u){if(e==null){if(u!=null){if(i!=null)throw Error(f(92));if(St(u)){if(1<u.length)throw Error(f(93));u=u[0]}i=u}i==null&&(i=""),e=i}i=ml(e),t.defaultValue=i,u=t.textContent,u===i&&u!==""&&u!==null&&(t.value=u),Bs(t)}function Xi(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var uh=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 so(t,e,i){var u=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?u?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":u?t.setProperty(e,i):typeof i!="number"||i===0||uh.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function co(t,e,i){if(e!=null&&typeof e!="object")throw Error(f(62));if(t=t.style,i!=null){for(var u in i)!i.hasOwnProperty(u)||e!=null&&e.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var h in e)u=e[h],e.hasOwnProperty(h)&&i[h]!==u&&so(t,h,u)}else for(var m in e)e.hasOwnProperty(m)&&so(t,m,e[m])}function Vc(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 sh=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"]]),fo=/^[\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 Ys(t){return fo.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function zn(){}var Zc=null;function Kc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Li=null,ei=null;function oo(t){var e=qi(t);if(e&&(t=e.stateNode)){var i=t[za]||null;t:switch(t=e.stateNode,e.type){case"input":if(Nu(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="'+Oa(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var u=i[e];if(u!==t&&u.form===t.form){var h=u[za]||null;if(!h)throw Error(f(90));Nu(u,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(e=0;e<i.length;e++)u=i[e],u.form===t.form&&Ma(u)}break t;case"textarea":jc(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&An(t,!!i.multiple,e,!1)}}}var Jc=!1;function ro(t,e,i){if(Jc)return t(e,i);Jc=!0;try{var u=t(e);return u}finally{if(Jc=!1,(Li!==null||ei!==null)&&(Xl(),Li&&(e=Li,t=ei,ei=Li=null,oo(e),t)))for(e=0;e<t.length;e++)oo(t[e])}}function Gu(t,e){var i=t.stateNode;if(i===null)return null;var u=i[za]||null;if(u===null)return null;i=u[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":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break t;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(f(231,e,typeof i));return i}var wl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ho=!1;if(wl)try{var Hu={};Object.defineProperty(Hu,"passive",{get:function(){ho=!0}}),window.addEventListener("test",Hu,Hu),window.removeEventListener("test",Hu,Hu)}catch{ho=!1}var nl=null,wc=null,ji=null;function qs(){if(ji)return ji;var t,e=wc,i=e.length,u,h="value"in nl?nl.value:nl.textContent,m=h.length;for(t=0;t<i&&e[t]===h[t];t++);var E=i-t;for(u=1;u<=E&&e[i-u]===h[m-u];u++);return ji=h.slice(t,1<u?1-u:void 0)}function Xs(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 Uu(){return!0}function ch(){return!1}function Ga(t){function e(i,u,h,m,E){this._reactName=i,this._targetInst=h,this.type=u,this.nativeEvent=m,this.target=E,this.currentTarget=null;for(var z in t)t.hasOwnProperty(z)&&(i=t[z],this[z]=i?i(m):m[z]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Uu:ch,this.isPropagationStopped=ch,this}return M(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=Uu)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Uu)},persist:function(){},isPersistent:Uu}),e}var ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ls=Ga(ai),Bu=M({},ai,{view:0,detail:0}),fh=Ga(Bu),js,Wc,Yu,qu=M({},Bu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ic,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!==Yu&&(Yu&&t.type==="mousemove"?(js=t.screenX-Yu.screenX,Wc=t.screenY-Yu.screenY):Wc=js=0,Yu=t),js)},movementY:function(t){return"movementY"in t?t.movementY:Wc}}),mo=Ga(qu),oh=M({},qu,{dataTransfer:0}),rh=Ga(oh),go=M({},Bu,{relatedTarget:0}),Fc=Ga(go),hh=M({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),o1=Ga(hh),r1=M({},ai,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),dh=Ga(r1),Qs=M({},ai,{data:0}),kc=Ga(Qs),Pc={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mh={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"},gh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vo(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=gh[t])?!!e[t]:!1}function Ic(){return vo}var vh=M({},Bu,{key:function(t){if(t.key){var e=Pc[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Xs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?mh[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ic,charCode:function(t){return t.type==="keypress"?Xs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Xs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Qi=Ga(vh),$c=M({},qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yo=Ga($c),po=M({},Bu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ic}),yh=Ga(po),ph=M({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),h1=Ga(ph),_a=M({},qu,{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}),Sh=Ga(_a),_h=M({},ai,{newState:0,oldState:0}),Eh=Ga(_h),bh=[9,13,27,32],Vi=wl&&"CompositionEvent"in window,Xu=null;wl&&"documentMode"in document&&(Xu=document.documentMode);var tf=wl&&"TextEvent"in window&&!Xu,So=wl&&(!Vi||Xu&&8<Xu&&11>=Xu),Th=" ",Vs=!1;function ef(t,e){switch(t){case"keyup":return bh.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _o(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Zi=!1;function Ch(t,e){switch(t){case"compositionend":return _o(e);case"keypress":return e.which!==32?null:(Vs=!0,Th);case"textInput":return t=e.data,t===Th&&Vs?null:t;default:return null}}function Eo(t,e){if(Zi)return t==="compositionend"||!Vi&&ef(t,e)?(t=qs(),ji=wc=nl=null,Zi=!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 So&&e.locale!=="ko"?null:e.data;default:return null}}var bo={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 To(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!bo[t.type]:e==="textarea"}function af(t,e,i,u){Li?ei?ei.push(u):ei=[u]:Li=u,e=x0(e,"onChange"),0<e.length&&(i=new Ls("onChange","change",null,i,u),t.push({event:i,listeners:e}))}var li=null,Ki=null;function Ah(t){xd(t,0)}function Lu(t){var e=Ru(t);if(Ma(e))return t}function Co(t,e){if(t==="change")return e}var Wl=!1;if(wl){var Zs;if(wl){var Ao="oninput"in document;if(!Ao){var zo=document.createElement("div");zo.setAttribute("oninput","return;"),Ao=typeof zo.oninput=="function"}Zs=Ao}else Zs=!1;Wl=Zs&&(!document.documentMode||9<document.documentMode)}function gl(){li&&(li.detachEvent("onpropertychange",Ks),Ki=li=null)}function Ks(t){if(t.propertyName==="value"&&Lu(Ki)){var e=[];af(e,Ki,t,Kc(t)),ro(Ah,e)}}function zh(t,e,i){t==="focusin"?(gl(),li=e,Ki=i,li.attachEvent("onpropertychange",Ks)):t==="focusout"&&gl()}function Mo(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Lu(Ki)}function Mh(t,e){if(t==="click")return Lu(e)}function Oh(t,e){if(t==="input"||t==="change")return Lu(e)}function Oo(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ha=typeof Object.is=="function"?Object.is:Oo;function ju(t,e){if(Ha(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),u=Object.keys(e);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var h=i[u];if(!Ds.call(e,h)||!Ha(t[h],e[h]))return!1}return!0}function Js(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Qu(t,e){var i=Js(t);t=0;for(var u;i;){if(i.nodeType===3){if(u=t+i.textContent.length,t<=e&&u>=e)return{node:i,offset:e-t};t=u}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Js(i)}}function _e(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?_e(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function xh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Me(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=Me(t.document)}return e}function xo(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 Rh=wl&&"documentMode"in document&&11>=document.documentMode,Fl=null,kl=null,Vu=null,lf=!1;function Zu(t,e,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;lf||Fl==null||Fl!==Me(u)||(u=Fl,"selectionStart"in u&&xo(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Vu&&ju(Vu,u)||(Vu=u,u=x0(kl,"onSelect"),0<u.length&&(e=new Ls("onSelect","select",null,e,i),t.push({event:e,listeners:u}),e.target=Fl)))}function xa(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var Ji={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},ws={},Ro={};wl&&(Ro=document.createElement("div").style,"AnimationEvent"in window||(delete Ji.animationend.animation,delete Ji.animationiteration.animation,delete Ji.animationstart.animation),"TransitionEvent"in window||delete Ji.transitionend.transition);function Mn(t){if(ws[t])return ws[t];if(!Ji[t])return t;var e=Ji[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in Ro)return ws[t]=e[i];return t}var nf=Mn("animationend"),Ws=Mn("animationiteration"),Do=Mn("animationstart"),Dh=Mn("transitionrun"),d1=Mn("transitionstart"),Nh=Mn("transitioncancel"),No=Mn("transitionend"),vl=new Map,Fs="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(" ");Fs.push("scrollEnd");function yl(t,e){vl.set(t,e),ti(e,[t])}var ks=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)},pl=[],On=0,ra=0;function Ps(){for(var t=On,e=ra=On=0;e<t;){var i=pl[e];pl[e++]=null;var u=pl[e];pl[e++]=null;var h=pl[e];pl[e++]=null;var m=pl[e];if(pl[e++]=null,u!==null&&h!==null){var E=u.pending;E===null?h.next=h:(h.next=E.next,E.next=h),u.pending=h}m!==0&&ni(i,h,m)}}function ha(t,e,i,u){pl[On++]=t,pl[On++]=e,pl[On++]=i,pl[On++]=u,ra|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function uf(t,e,i,u){return ha(t,e,i,u),Sl(t)}function Ua(t,e){return ha(t,null,null,e),Sl(t)}function ni(t,e,i){t.lanes|=i;var u=t.alternate;u!==null&&(u.lanes|=i);for(var h=!1,m=t.return;m!==null;)m.childLanes|=i,u=m.alternate,u!==null&&(u.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(h=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,h&&e!==null&&(h=31-el(i),t=m.hiddenUpdates,u=t[h],u===null?t[h]=[e]:u.push(e),e.lane=i|536870912),m):null}function Sl(t){if(50<Ti)throw Ti=0,ru=null,Error(f(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ii={};function Go(t,e,i,u){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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Be(t,e,i,u){return new Go(t,e,i,u)}function sf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ka(t,e){var i=t.alternate;return i===null?(i=Be(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 Ku(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 Pl(t,e,i,u,h,m){var E=0;if(u=t,typeof t=="function")sf(t)&&(E=1);else if(typeof t=="string")E=o4(t,i,bt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Et:return t=Be(31,i,e,h),t.elementType=Et,t.lanes=m,t;case L:return ui(i.children,h,m,e);case X:E=8,h|=24;break;case Q:return t=Be(12,i,e,h|2),t.elementType=Q,t.lanes=m,t;case gt:return t=Be(13,i,e,h),t.elementType=gt,t.lanes=m,t;case lt:return t=Be(19,i,e,h),t.elementType=lt,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case I:E=10;break t;case j:E=9;break t;case P:E=11;break t;case st:E=14;break t;case rt:E=16,u=null;break t}E=29,i=Error(f(130,t===null?"null":typeof t,"")),u=null}return e=Be(E,i,e,h),e.elementType=t,e.type=u,e.lanes=m,e}function ui(t,e,i,u){return t=Be(7,t,u,e),t.lanes=i,t}function cf(t,e,i){return t=Be(6,t,null,e),t.lanes=i,t}function Ju(t){var e=Be(18,null,null,0);return e.stateNode=t,e}function ff(t,e,i){return e=Be(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Is=new WeakMap;function il(t,e){if(typeof t=="object"&&t!==null){var i=Is.get(t);return i!==void 0?i:(e={value:t,source:e,stack:Rc(e)},Is.set(t,e),e)}return{value:t,source:e,stack:Rc(e)}}var si=[],ci=0,wu=null,Wu=0,Ja=[],Oe=0,xn=null,Ye=1,Ul="";function Il(t,e){si[ci++]=Wu,si[ci++]=wu,wu=t,Wu=e}function Gh(t,e,i){Ja[Oe++]=Ye,Ja[Oe++]=Ul,Ja[Oe++]=xn,xn=t;var u=Ye;t=Ul;var h=32-el(u)-1;u&=~(1<<h),i+=1;var m=32-el(e)+h;if(30<m){var E=h-h%5;m=(u&(1<<E)-1).toString(32),u>>=E,h-=E,Ye=1<<32-el(e)+h|i<<h|u,Ul=m+t}else Ye=1<<m|i<<h|u,Ul=t}function $l(t){t.return!==null&&(Il(t,1),Gh(t,1,0))}function of(t){for(;t===wu;)wu=si[--ci],si[ci]=null,Wu=si[--ci],si[ci]=null;for(;t===xn;)xn=Ja[--Oe],Ja[Oe]=null,Ul=Ja[--Oe],Ja[Oe]=null,Ye=Ja[--Oe],Ja[Oe]=null}function rf(t,e){Ja[Oe++]=Ye,Ja[Oe++]=Ul,Ja[Oe++]=xn,Ye=e.id,Ul=e.overflow,xn=t}var Ve=null,Ee=null,te=!1,Rn=null,ul=!1,Fu=Error(f(519));function tn(t){var e=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw en(il(e,t)),Fu}function Hh(t){var e=t.stateNode,i=t.type,u=t.memoizedProps;switch(e[$e]=t,e[za]=u,i){case"dialog":le("cancel",e),le("close",e);break;case"iframe":case"object":case"embed":le("load",e);break;case"video":case"audio":for(i=0;i<Nl.length;i++)le(Nl[i],e);break;case"source":le("error",e);break;case"img":case"image":case"link":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"input":le("invalid",e),Lc(e,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":le("invalid",e);break;case"textarea":le("invalid",e),Qc(e,u.value,u.defaultValue,u.children)}i=u.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||u.suppressHydrationWarning===!0||Gd(e.textContent,i)?(u.popover!=null&&(le("beforetoggle",e),le("toggle",e)),u.onScroll!=null&&le("scroll",e),u.onScrollEnd!=null&&le("scrollend",e),u.onClick!=null&&(e.onclick=zn),e=!0):e=!1,e||tn(t,!0)}function Uh(t){for(Ve=t.return;Ve;)switch(Ve.tag){case 5:case 31:case 13:ul=!1;return;case 27:case 3:ul=!0;return;default:Ve=Ve.return}}function ku(t){if(t!==Ve)return!1;if(!te)return Uh(t),te=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||x1(t.type,t.memoizedProps)),i=!i),i&&Ee&&tn(t),Uh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));Ee=Qd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));Ee=Qd(t)}else e===27?(e=Ee,vs(t.type)?(t=H1,H1=null,Ee=t):Ee=e):Ee=Ve?vn(t.stateNode.nextSibling):null;return!0}function fi(){Ee=Ve=null,te=!1}function hf(){var t=Rn;return t!==null&&(Ke===null?Ke=t:Ke.push.apply(Ke,t),Rn=null),t}function en(t){Rn===null?Rn=[t]:Rn.push(t)}var Pu=D(null),oi=null,an=null;function Dn(t,e,i){ot(Pu,e._currentValue),e._currentValue=i}function ln(t){t._currentValue=Pu.current,k(Pu)}function df(t,e,i){for(;t!==null;){var u=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,u!==null&&(u.childLanes|=e)):u!==null&&(u.childLanes&e)!==e&&(u.childLanes|=e),t===i)break;t=t.return}}function mf(t,e,i,u){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var m=h.dependencies;if(m!==null){var E=h.child;m=m.firstContext;t:for(;m!==null;){var z=m;m=h;for(var N=0;N<e.length;N++)if(z.context===e[N]){m.lanes|=i,z=m.alternate,z!==null&&(z.lanes|=i),df(m.return,i,t),u||(E=null);break t}m=z.next}}else if(h.tag===18){if(E=h.return,E===null)throw Error(f(341));E.lanes|=i,m=E.alternate,m!==null&&(m.lanes|=i),df(E,i,t),E=null}else E=h.child;if(E!==null)E.return=h;else for(E=h;E!==null;){if(E===t){E=null;break}if(h=E.sibling,h!==null){h.return=E.return,E=h;break}E=E.return}h=E}}function nn(t,e,i,u){t=null;for(var h=e,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var E=h.alternate;if(E===null)throw Error(f(387));if(E=E.memoizedProps,E!==null){var z=h.type;Ha(h.pendingProps.value,E.value)||(t!==null?t.push(z):t=[z])}}else if(h===ce.current){if(E=h.alternate,E===null)throw Error(f(387));E.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(Rr):t=[Rr])}h=h.return}t!==null&&mf(e,t,i,u),e.flags|=262144}function $s(t){for(t=t.firstContext;t!==null;){if(!Ha(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ri(t){oi=t,an=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Gt(t){return Bh(oi,t)}function Iu(t,e){return oi===null&&ri(t),Bh(t,e)}function Bh(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},an===null){if(t===null)throw Error(f(308));an=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else an=an.next=e;return i}var Yh=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,u){t.push(u)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},m1=d.unstable_scheduleCallback,g1=d.unstable_NormalPriority,ea={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ho(){return{controller:new Yh,data:new Map,refCount:0}}function wi(t){t.refCount--,t.refCount===0&&m1(g1,function(){t.controller.abort()})}var sl=null,gf=0,Nn=0,_l=null;function Uo(t,e){if(sl===null){var i=sl=[];gf=0,Nn=w(),_l={status:"pending",value:void 0,then:function(u){i.push(u)}}}return gf++,e.then(Bo,Bo),e}function Bo(){if(--gf===0&&sl!==null){_l!==null&&(_l.status="fulfilled");var t=sl;sl=null,Nn=0,_l=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Yo(t,e){var i=[],u={status:"pending",value:null,reason:null,then:function(h){i.push(h)}};return t.then(function(){u.status="fulfilled",u.value=e;for(var h=0;h<i.length;h++)(0,i[h])(e)},function(h){for(u.status="rejected",u.reason=h,h=0;h<i.length;h++)(0,i[h])(void 0)}),u}var qh=U.S;U.S=function(t,e){Cr=Aa(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Uo(t,e),qh!==null&&qh(t,e)};var hi=D(null);function vf(){var t=hi.current;return t!==null?t:Bt.pooledCache}function tc(t,e){e===null?ot(hi,hi.current):ot(hi,e.pool)}function qo(){var t=vf();return t===null?null:{parent:ea._currentValue,pool:t}}var Wi=Error(f(460)),ec=Error(f(474)),Kt=Error(f(542)),yf={then:function(){}};function wa(t){return t=t.status,t==="fulfilled"||t==="rejected"}function pf(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(zn,zn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Pi(t),t;default:if(typeof e.status=="string")e.then(zn,zn);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(f(482));t=e,t.status="pending",t.then(function(u){if(e.status==="pending"){var h=e;h.status="fulfilled",h.value=u}},function(u){if(e.status==="pending"){var h=e;h.status="rejected",h.reason=u}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Pi(t),t}throw un=e,Wi}}function Fi(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(un=i,Wi):i}}var un=null;function ki(){if(un===null)throw Error(f(459));var t=un;return un=null,t}function Pi(t){if(t===Wi||t===Kt)throw Error(f(483))}var Ii=null,$i=0;function ac(t){var e=$i;return $i+=1,Ii===null&&(Ii=[]),pf(Ii,t,e)}function El(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function $u(t,e){throw e.$$typeof===A?Error(f(525)):(t=Object.prototype.toString.call(e),Error(f(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Sf(t){function e(Y,H){if(t){var V=Y.deletions;V===null?(Y.deletions=[H],Y.flags|=16):V.push(H)}}function i(Y,H){if(!t)return null;for(;H!==null;)e(Y,H),H=H.sibling;return null}function u(Y){for(var H=new Map;Y!==null;)Y.key!==null?H.set(Y.key,Y):H.set(Y.index,Y),Y=Y.sibling;return H}function h(Y,H){return Y=Ka(Y,H),Y.index=0,Y.sibling=null,Y}function m(Y,H,V){return Y.index=V,t?(V=Y.alternate,V!==null?(V=V.index,V<H?(Y.flags|=67108866,H):V):(Y.flags|=67108866,H)):(Y.flags|=1048576,H)}function E(Y){return t&&Y.alternate===null&&(Y.flags|=67108866),Y}function z(Y,H,V,tt){return H===null||H.tag!==6?(H=cf(V,Y.mode,tt),H.return=Y,H):(H=h(H,V),H.return=Y,H)}function N(Y,H,V,tt){var xt=V.type;return xt===L?$(Y,H,V.props.children,tt,V.key):H!==null&&(H.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===rt&&Fi(xt)===H.type)?(H=h(H,V.props),El(H,V),H.return=Y,H):(H=Pl(V.type,V.key,V.props,null,Y.mode,tt),El(H,V),H.return=Y,H)}function Z(Y,H,V,tt){return H===null||H.tag!==4||H.stateNode.containerInfo!==V.containerInfo||H.stateNode.implementation!==V.implementation?(H=ff(V,Y.mode,tt),H.return=Y,H):(H=h(H,V.children||[]),H.return=Y,H)}function $(Y,H,V,tt,xt){return H===null||H.tag!==7?(H=ui(V,Y.mode,tt,xt),H.return=Y,H):(H=h(H,V),H.return=Y,H)}function et(Y,H,V){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=cf(""+H,Y.mode,V),H.return=Y,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return V=Pl(H.type,H.key,H.props,null,Y.mode,V),El(V,H),V.return=Y,V;case O:return H=ff(H,Y.mode,V),H.return=Y,H;case rt:return H=Fi(H),et(Y,H,V)}if(St(H)||pt(H))return H=ui(H,Y.mode,V,null),H.return=Y,H;if(typeof H.then=="function")return et(Y,ac(H),V);if(H.$$typeof===I)return et(Y,Iu(Y,H),V);$u(Y,H)}return null}function J(Y,H,V,tt){var xt=H!==null?H.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return xt!==null?null:z(Y,H,""+V,tt);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return V.key===xt?N(Y,H,V,tt):null;case O:return V.key===xt?Z(Y,H,V,tt):null;case rt:return V=Fi(V),J(Y,H,V,tt)}if(St(V)||pt(V))return xt!==null?null:$(Y,H,V,tt,null);if(typeof V.then=="function")return J(Y,H,ac(V),tt);if(V.$$typeof===I)return J(Y,H,Iu(Y,V),tt);$u(Y,V)}return null}function F(Y,H,V,tt,xt){if(typeof tt=="string"&&tt!==""||typeof tt=="number"||typeof tt=="bigint")return Y=Y.get(V)||null,z(H,Y,""+tt,xt);if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case x:return Y=Y.get(tt.key===null?V:tt.key)||null,N(H,Y,tt,xt);case O:return Y=Y.get(tt.key===null?V:tt.key)||null,Z(H,Y,tt,xt);case rt:return tt=Fi(tt),F(Y,H,V,tt,xt)}if(St(tt)||pt(tt))return Y=Y.get(V)||null,$(H,Y,tt,xt,null);if(typeof tt.then=="function")return F(Y,H,V,ac(tt),xt);if(tt.$$typeof===I)return F(Y,H,V,Iu(H,tt),xt);$u(H,tt)}return null}function Tt(Y,H,V,tt){for(var xt=null,re=null,Ct=H,Wt=H=0,ie=null;Ct!==null&&Wt<V.length;Wt++){Ct.index>Wt?(ie=Ct,Ct=null):ie=Ct.sibling;var he=J(Y,Ct,V[Wt],tt);if(he===null){Ct===null&&(Ct=ie);break}t&&Ct&&he.alternate===null&&e(Y,Ct),H=m(he,H,Wt),re===null?xt=he:re.sibling=he,re=he,Ct=ie}if(Wt===V.length)return i(Y,Ct),te&&Il(Y,Wt),xt;if(Ct===null){for(;Wt<V.length;Wt++)Ct=et(Y,V[Wt],tt),Ct!==null&&(H=m(Ct,H,Wt),re===null?xt=Ct:re.sibling=Ct,re=Ct);return te&&Il(Y,Wt),xt}for(Ct=u(Ct);Wt<V.length;Wt++)ie=F(Ct,Y,Wt,V[Wt],tt),ie!==null&&(t&&ie.alternate!==null&&Ct.delete(ie.key===null?Wt:ie.key),H=m(ie,H,Wt),re===null?xt=ie:re.sibling=ie,re=ie);return t&&Ct.forEach(function(Es){return e(Y,Es)}),te&&Il(Y,Wt),xt}function Nt(Y,H,V,tt){if(V==null)throw Error(f(151));for(var xt=null,re=null,Ct=H,Wt=H=0,ie=null,he=V.next();Ct!==null&&!he.done;Wt++,he=V.next()){Ct.index>Wt?(ie=Ct,Ct=null):ie=Ct.sibling;var Es=J(Y,Ct,he.value,tt);if(Es===null){Ct===null&&(Ct=ie);break}t&&Ct&&Es.alternate===null&&e(Y,Ct),H=m(Es,H,Wt),re===null?xt=Es:re.sibling=Es,re=Es,Ct=ie}if(he.done)return i(Y,Ct),te&&Il(Y,Wt),xt;if(Ct===null){for(;!he.done;Wt++,he=V.next())he=et(Y,he.value,tt),he!==null&&(H=m(he,H,Wt),re===null?xt=he:re.sibling=he,re=he);return te&&Il(Y,Wt),xt}for(Ct=u(Ct);!he.done;Wt++,he=V.next())he=F(Ct,Y,Wt,he.value,tt),he!==null&&(t&&he.alternate!==null&&Ct.delete(he.key===null?Wt:he.key),H=m(he,H,Wt),re===null?xt=he:re.sibling=he,re=he);return t&&Ct.forEach(function(E4){return e(Y,E4)}),te&&Il(Y,Wt),xt}function Ce(Y,H,V,tt){if(typeof V=="object"&&V!==null&&V.type===L&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case x:t:{for(var xt=V.key;H!==null;){if(H.key===xt){if(xt=V.type,xt===L){if(H.tag===7){i(Y,H.sibling),tt=h(H,V.props.children),tt.return=Y,Y=tt;break t}}else if(H.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===rt&&Fi(xt)===H.type){i(Y,H.sibling),tt=h(H,V.props),El(tt,V),tt.return=Y,Y=tt;break t}i(Y,H);break}else e(Y,H);H=H.sibling}V.type===L?(tt=ui(V.props.children,Y.mode,tt,V.key),tt.return=Y,Y=tt):(tt=Pl(V.type,V.key,V.props,null,Y.mode,tt),El(tt,V),tt.return=Y,Y=tt)}return E(Y);case O:t:{for(xt=V.key;H!==null;){if(H.key===xt)if(H.tag===4&&H.stateNode.containerInfo===V.containerInfo&&H.stateNode.implementation===V.implementation){i(Y,H.sibling),tt=h(H,V.children||[]),tt.return=Y,Y=tt;break t}else{i(Y,H);break}else e(Y,H);H=H.sibling}tt=ff(V,Y.mode,tt),tt.return=Y,Y=tt}return E(Y);case rt:return V=Fi(V),Ce(Y,H,V,tt)}if(St(V))return Tt(Y,H,V,tt);if(pt(V)){if(xt=pt(V),typeof xt!="function")throw Error(f(150));return V=xt.call(V),Nt(Y,H,V,tt)}if(typeof V.then=="function")return Ce(Y,H,ac(V),tt);if(V.$$typeof===I)return Ce(Y,H,Iu(Y,V),tt);$u(Y,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,H!==null&&H.tag===6?(i(Y,H.sibling),tt=h(H,V),tt.return=Y,Y=tt):(i(Y,H),tt=cf(V,Y.mode,tt),tt.return=Y,Y=tt),E(Y)):i(Y,H)}return function(Y,H,V,tt){try{$i=0;var xt=Ce(Y,H,V,tt);return Ii=null,xt}catch(Ct){if(Ct===Wi||Ct===Kt)throw Ct;var re=Be(29,Ct,null,Y.mode);return re.lanes=tt,re.return=Y,re}finally{}}}var Gn=Sf(!0),_f=Sf(!1),Ba=!1;function lc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(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 Hn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function di(t,e,i){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(At&2)!==0){var h=u.pending;return h===null?e.next=e:(e.next=h.next,h.next=e),u.pending=e,e=Sl(t),ni(t,null,i),e}return ha(t,u,e,i),Sl(t)}function mi(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var u=e.lanes;u&=t.pendingLanes,i|=u,e.lanes=i,Ns(t,i)}}function Ot(t,e){var i=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var h=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var E={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?h=m=E:m=m.next=E,i=i.next}while(i!==null);m===null?h=m=e:m=m.next=e}else h=m=e;i={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var Lo=!1;function nc(){if(Lo){var t=_l;if(t!==null)throw t}}function ts(t,e,i,u){Lo=!1;var h=t.updateQueue;Ba=!1;var m=h.firstBaseUpdate,E=h.lastBaseUpdate,z=h.shared.pending;if(z!==null){h.shared.pending=null;var N=z,Z=N.next;N.next=null,E===null?m=Z:E.next=Z,E=N;var $=t.alternate;$!==null&&($=$.updateQueue,z=$.lastBaseUpdate,z!==E&&(z===null?$.firstBaseUpdate=Z:z.next=Z,$.lastBaseUpdate=N))}if(m!==null){var et=h.baseState;E=0,$=Z=N=null,z=m;do{var J=z.lane&-536870913,F=J!==z.lane;if(F?(Zt&J)===J:(u&J)===J){J!==0&&J===Nn&&(Lo=!0),$!==null&&($=$.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});t:{var Tt=t,Nt=z;J=e;var Ce=i;switch(Nt.tag){case 1:if(Tt=Nt.payload,typeof Tt=="function"){et=Tt.call(Ce,et,J);break t}et=Tt;break t;case 3:Tt.flags=Tt.flags&-65537|128;case 0:if(Tt=Nt.payload,J=typeof Tt=="function"?Tt.call(Ce,et,J):Tt,J==null)break t;et=M({},et,J);break t;case 2:Ba=!0}}J=z.callback,J!==null&&(t.flags|=64,F&&(t.flags|=8192),F=h.callbacks,F===null?h.callbacks=[J]:F.push(J))}else F={lane:J,tag:z.tag,payload:z.payload,callback:z.callback,next:null},$===null?(Z=$=F,N=et):$=$.next=F,E|=J;if(z=z.next,z===null){if(z=h.shared.pending,z===null)break;F=z,z=F.next,F.next=null,h.lastBaseUpdate=F,h.shared.pending=null}}while(!0);$===null&&(N=et),h.baseState=N,h.firstBaseUpdate=Z,h.lastBaseUpdate=$,m===null&&(h.shared.lanes=0),dn|=E,t.lanes=E,t.memoizedState=et}}function es(t,e){if(typeof t!="function")throw Error(f(191,t));t.call(e)}function Xh(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)es(i[t],e)}var as=D(null),Ef=D(0);function Lh(t,e){t=rl,ot(Ef,t),ot(as,e),rl=t|e.baseLanes}function jo(){ot(Ef,rl),ot(as,as.current)}function ic(){rl=Ef.current,k(as),k(Ef)}var Wa=D(null),Ya=null;function Un(t){var e=t.alternate;ot(ee,ee.current&1),ot(Wa,t),Ya===null&&(e===null||as.current!==null||e.memoizedState!==null)&&(Ya=t)}function Qo(t){ot(ee,ee.current),ot(Wa,t),Ya===null&&(Ya=t)}function jh(t){t.tag===22?(ot(ee,ee.current),ot(Wa,t),Ya===null&&(Ya=t)):Fa()}function Fa(){ot(ee,ee.current),ot(Wa,Wa.current)}function we(t){k(Wa),Ya===t&&(Ya=null),k(ee)}var ee=D(0);function cl(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||N1(i)||G1(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)!==0)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 xe=0,jt=null,pe=null,Pt=null,bl=!1,ls=!1,tu=!1,bf=0,uc=0,ns=null,Vo=0;function qe(){throw Error(f(321))}function Zo(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Ha(t[i],e[i]))return!1;return!0}function Tf(t,e,i,u,h,m){return xe=m,jt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?S0:or,tu=!1,m=i(u,h),tu=!1,ls&&(m=eu(e,i,u,h)),Qh(t),m}function Qh(t){U.H=is;var e=pe!==null&&pe.next!==null;if(xe=0,Pt=pe=jt=null,bl=!1,uc=0,ns=null,e)throw Error(f(300));t===null||aa||(t=t.dependencies,t!==null&&$s(t)&&(aa=!0))}function eu(t,e,i,u){jt=t;var h=0;do{if(ls&&(ns=null),uc=0,ls=!1,25<=h)throw Error(f(301));if(h+=1,Pt=pe=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}U.H=Tl,m=e(i,u)}while(ls);return m}function au(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?sc(e):e,t=t.useState()[0],(pe!==null?pe.memoizedState:null)!==t&&(jt.flags|=1024),e}function Ko(){var t=bf!==0;return bf=0,t}function Jo(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function wo(t){if(bl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}bl=!1}xe=0,Pt=pe=jt=null,ls=!1,uc=bf=0,ns=null}function ia(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?jt.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function We(){if(pe===null){var t=jt.alternate;t=t!==null?t.memoizedState:null}else t=pe.next;var e=Pt===null?jt.memoizedState:Pt.next;if(e!==null)Pt=e,pe=t;else{if(t===null)throw jt.alternate===null?Error(f(467)):Error(f(310));pe=t,t={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},Pt===null?jt.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Cf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sc(t){var e=uc;return uc+=1,ns===null&&(ns=[]),t=pf(ns,t,e),e=jt,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?S0:or),t}function gi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return sc(t);if(t.$$typeof===I)return Gt(t)}throw Error(f(438,String(t)))}function Wo(t){var e=null,i=jt.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var u=jt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(e={data:u.data.map(function(h){return h.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=Cf(),jt.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),u=0;u<t;u++)i[u]=Mt;return e.index++,i}function Bn(t,e){return typeof e=="function"?e(t):e}function Af(t){var e=We();return Fo(e,pe,t)}function Fo(t,e,i){var u=t.queue;if(u===null)throw Error(f(311));u.lastRenderedReducer=i;var h=t.baseQueue,m=u.pending;if(m!==null){if(h!==null){var E=h.next;h.next=m.next,m.next=E}e.baseQueue=h=m,u.pending=null}if(m=t.baseState,h===null)t.memoizedState=m;else{e=h.next;var z=E=null,N=null,Z=e,$=!1;do{var et=Z.lane&-536870913;if(et!==Z.lane?(Zt&et)===et:(xe&et)===et){var J=Z.revertLane;if(J===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),et===Nn&&($=!0);else if((xe&J)===J){Z=Z.next,J===Nn&&($=!0);continue}else et={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},N===null?(z=N=et,E=m):N=N.next=et,jt.lanes|=J,dn|=J;et=Z.action,tu&&i(m,et),m=Z.hasEagerState?Z.eagerState:i(m,et)}else J={lane:et,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},N===null?(z=N=J,E=m):N=N.next=J,jt.lanes|=et,dn|=et;Z=Z.next}while(Z!==null&&Z!==e);if(N===null?E=m:N.next=z,!Ha(m,t.memoizedState)&&(aa=!0,$&&(i=_l,i!==null)))throw i;t.memoizedState=m,t.baseState=E,t.baseQueue=N,u.lastRenderedState=m}return h===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function ko(t){var e=We(),i=e.queue;if(i===null)throw Error(f(311));i.lastRenderedReducer=t;var u=i.dispatch,h=i.pending,m=e.memoizedState;if(h!==null){i.pending=null;var E=h=h.next;do m=t(m,E.action),E=E.next;while(E!==h);Ha(m,e.memoizedState)||(aa=!0),e.memoizedState=m,e.baseQueue===null&&(e.baseState=m),i.lastRenderedState=m}return[m,u]}function Vh(t,e,i){var u=jt,h=We(),m=te;if(m){if(i===void 0)throw Error(f(407));i=i()}else i=e();var E=!Ha((pe||h).memoizedState,i);if(E&&(h.memoizedState=i,aa=!0),h=h.queue,nr(Jh.bind(null,u,h,t),[t]),h.getSnapshot!==e||E||Pt!==null&&Pt.memoizedState.tag&1){if(u.flags|=2048,vi(9,{destroy:void 0},Kh.bind(null,u,h,i,e),null),Bt===null)throw Error(f(349));m||(xe&127)!==0||Zh(u,e,i)}return i}function Zh(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=jt.updateQueue,e===null?(e=Cf(),jt.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Kh(t,e,i,u){e.value=i,e.getSnapshot=u,wh(e)&&Wh(t)}function Jh(t,e,i){return i(function(){wh(e)&&Wh(t)})}function wh(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Ha(t,i)}catch{return!0}}function Wh(t){var e=Ua(t,2);e!==null&&wt(e,t,2)}function Po(t){var e=ia();if(typeof t=="function"){var i=t;if(t=i(),tu){En(!0);try{i()}finally{En(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:t},e}function Io(t,e,i,u){return t.baseState=i,Fo(t,pe,typeof u=="function"?u:Bn)}function v1(t,e,i,u,h){if(xf(t))throw Error(f(485));if(t=e.action,t!==null){var m={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){m.listeners.push(E)}};U.T!==null?i(!0):m.isTransition=!1,u(m),i=e.pending,i===null?(m.next=e.pending=m,Fh(e,m)):(m.next=i.next,e.pending=i.next=m)}}function Fh(t,e){var i=e.action,u=e.payload,h=t.state;if(e.isTransition){var m=U.T,E={};U.T=E;try{var z=i(h,u),N=U.S;N!==null&&N(E,z),kh(t,e,z)}catch(Z){$o(t,e,Z)}finally{m!==null&&E.types!==null&&(m.types=E.types),U.T=m}}else try{m=i(h,u),kh(t,e,m)}catch(Z){$o(t,e,Z)}}function kh(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(u){Ph(t,e,u)},function(u){return $o(t,e,u)}):Ph(t,e,i)}function Ph(t,e,i){e.status="fulfilled",e.value=i,Ih(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,Fh(t,i)))}function $o(t,e,i){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do e.status="rejected",e.reason=i,Ih(e),e=e.next;while(e!==u)}t.action=null}function Ih(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function tr(t,e){return e}function er(t,e){if(te){var i=Bt.formState;if(i!==null){t:{var u=jt;if(te){if(Ee){e:{for(var h=Ee,m=ul;h.nodeType!==8;){if(!m){h=null;break e}if(h=vn(h.nextSibling),h===null){h=null;break e}}m=h.data,h=m==="F!"||m==="F"?h:null}if(h){Ee=vn(h.nextSibling),u=h.data==="F!";break t}}tn(u)}u=!1}u&&(e=i[0])}}return i=ia(),i.memoizedState=i.baseState=e,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:e},i.queue=u,i=v0.bind(null,jt,u),u.dispatch=i,u=Po(!1),m=fr.bind(null,jt,!1,u.queue),u=ia(),h={state:e,dispatch:null,action:t,pending:null},u.queue=h,i=v1.bind(null,jt,h,m,i),h.dispatch=i,u.memoizedState=t,[e,i,!1]}function $h(t){var e=We();return ar(e,pe,t)}function ar(t,e,i){if(e=Fo(t,e,tr)[0],t=Af(Bn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var u=sc(e)}catch(E){throw E===Wi?Kt:E}else u=e;e=We();var h=e.queue,m=h.dispatch;return i!==e.memoizedState&&(jt.flags|=2048,vi(9,{destroy:void 0},t0.bind(null,h,i),null)),[u,m,t]}function t0(t,e){t.action=e}function lr(t){var e=We(),i=pe;if(i!==null)return ar(e,i,t);We(),e=e.memoizedState,i=We();var u=i.queue.dispatch;return i.memoizedState=t,[e,u,!1]}function vi(t,e,i,u){return t={tag:t,create:i,deps:u,inst:e,next:null},e=jt.updateQueue,e===null&&(e=Cf(),jt.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(u=i.next,i.next=t,t.next=u,e.lastEffect=t),t}function zf(){return We().memoizedState}function Mf(t,e,i,u){var h=ia();jt.flags|=t,h.memoizedState=vi(1|e,{destroy:void 0},i,u===void 0?null:u)}function Of(t,e,i,u){var h=We();u=u===void 0?null:u;var m=h.memoizedState.inst;pe!==null&&u!==null&&Zo(u,pe.memoizedState.deps)?h.memoizedState=vi(e,m,i,u):(jt.flags|=t,h.memoizedState=vi(1|e,m,i,u))}function e0(t,e){Mf(8390656,8,t,e)}function nr(t,e){Of(2048,8,t,e)}function a0(t){jt.flags|=4;var e=jt.updateQueue;if(e===null)e=Cf(),jt.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function l0(t){var e=We().memoizedState;return a0({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(f(440));return e.impl.apply(void 0,arguments)}}function n0(t,e){return Of(4,2,t,e)}function i0(t,e){return Of(4,4,t,e)}function u0(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 s0(t,e,i){i=i!=null?i.concat([t]):null,Of(4,4,u0.bind(null,e,t),i)}function ir(){}function c0(t,e){var i=We();e=e===void 0?null:e;var u=i.memoizedState;return e!==null&&Zo(e,u[1])?u[0]:(i.memoizedState=[t,e],t)}function f0(t,e){var i=We();e=e===void 0?null:e;var u=i.memoizedState;if(e!==null&&Zo(e,u[1]))return u[0];if(u=t(),tu){En(!0);try{t()}finally{En(!1)}}return i.memoizedState=[u,e],u}function ur(t,e,i){return i===void 0||(xe&1073741824)!==0&&(Zt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Ft(),jt.lanes|=t,dn|=t,i)}function o0(t,e,i,u){return Ha(i,e)?i:as.current!==null?(t=ur(t,i,u),Ha(t,e)||(aa=!0),t):(xe&42)===0||(xe&1073741824)!==0&&(Zt&261930)===0?(aa=!0,t.memoizedState=i):(t=Ft(),jt.lanes|=t,dn|=t,e)}function r0(t,e,i,u,h){var m=it.p;it.p=m!==0&&8>m?m:8;var E=U.T,z={};U.T=z,fr(t,!1,e,i);try{var N=h(),Z=U.S;if(Z!==null&&Z(z,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var $=Yo(N,u);cc(t,e,$,dl(t))}else cc(t,e,u,dl(t))}catch(et){cc(t,e,{then:function(){},status:"rejected",reason:et},dl())}finally{it.p=m,E!==null&&z.types!==null&&(E.types=z.types),U.T=E}}function y1(){}function sr(t,e,i,u){if(t.tag!==5)throw Error(f(476));var h=h0(t).queue;r0(t,h,e,nt,i===null?y1:function(){return d0(t),i(u)})}function h0(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:nt},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function d0(t){var e=h0(t);e.next===null&&(e=t.alternate.memoizedState),cc(t,e.next.queue,{},dl())}function cr(){return Gt(Rr)}function m0(){return We().memoizedState}function g0(){return We().memoizedState}function p1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=dl();t=Hn(i);var u=di(e,t,i);u!==null&&(wt(u,e,i),mi(u,e,i)),e={cache:Ho()},t.payload=e;return}e=e.return}}function S1(t,e,i){var u=dl();i={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},xf(t)?y0(e,i):(i=uf(t,e,i,u),i!==null&&(wt(i,t,u),p0(i,e,u)))}function v0(t,e,i){var u=dl();cc(t,e,i,u)}function cc(t,e,i,u){var h={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(xf(t))y0(e,h);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=e.lastRenderedReducer,m!==null))try{var E=e.lastRenderedState,z=m(E,i);if(h.hasEagerState=!0,h.eagerState=z,Ha(z,E))return ha(t,e,h,0),Bt===null&&Ps(),!1}catch{}finally{}if(i=uf(t,e,h,u),i!==null)return wt(i,t,u),p0(i,e,u),!0}return!1}function fr(t,e,i,u){if(u={lane:2,revertLane:w(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},xf(t)){if(e)throw Error(f(479))}else e=uf(t,i,u,2),e!==null&&wt(e,t,2)}function xf(t){var e=t.alternate;return t===jt||e!==null&&e===jt}function y0(t,e){ls=bl=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function p0(t,e,i){if((i&4194048)!==0){var u=e.lanes;u&=t.pendingLanes,i|=u,e.lanes=i,Ns(t,i)}}var is={readContext:Gt,use:gi,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};is.useEffectEvent=qe;var S0={readContext:Gt,use:gi,useCallback:function(t,e){return ia().memoizedState=[t,e===void 0?null:e],t},useContext:Gt,useEffect:e0,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,Mf(4194308,4,u0.bind(null,e,t),i)},useLayoutEffect:function(t,e){return Mf(4194308,4,t,e)},useInsertionEffect:function(t,e){Mf(4,2,t,e)},useMemo:function(t,e){var i=ia();e=e===void 0?null:e;var u=t();if(tu){En(!0);try{t()}finally{En(!1)}}return i.memoizedState=[u,e],u},useReducer:function(t,e,i){var u=ia();if(i!==void 0){var h=i(e);if(tu){En(!0);try{i(e)}finally{En(!1)}}}else h=e;return u.memoizedState=u.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},u.queue=t,t=t.dispatch=S1.bind(null,jt,t),[u.memoizedState,t]},useRef:function(t){var e=ia();return t={current:t},e.memoizedState=t},useState:function(t){t=Po(t);var e=t.queue,i=v0.bind(null,jt,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:ir,useDeferredValue:function(t,e){var i=ia();return ur(i,t,e)},useTransition:function(){var t=Po(!1);return t=r0.bind(null,jt,t.queue,!0,!1),ia().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var u=jt,h=ia();if(te){if(i===void 0)throw Error(f(407));i=i()}else{if(i=e(),Bt===null)throw Error(f(349));(Zt&127)!==0||Zh(u,e,i)}h.memoizedState=i;var m={value:i,getSnapshot:e};return h.queue=m,e0(Jh.bind(null,u,m,t),[t]),u.flags|=2048,vi(9,{destroy:void 0},Kh.bind(null,u,m,i,e),null),i},useId:function(){var t=ia(),e=Bt.identifierPrefix;if(te){var i=Ul,u=Ye;i=(u&~(1<<32-el(u)-1)).toString(32)+i,e="_"+e+"R_"+i,i=bf++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=Vo++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:cr,useFormState:er,useActionState:er,useOptimistic:function(t){var e=ia();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=fr.bind(null,jt,!0,i),i.dispatch=e,[t,e]},useMemoCache:Wo,useCacheRefresh:function(){return ia().memoizedState=p1.bind(null,jt)},useEffectEvent:function(t){var e=ia(),i={impl:t};return e.memoizedState=i,function(){if((At&2)!==0)throw Error(f(440));return i.impl.apply(void 0,arguments)}}},or={readContext:Gt,use:gi,useCallback:c0,useContext:Gt,useEffect:nr,useImperativeHandle:s0,useInsertionEffect:n0,useLayoutEffect:i0,useMemo:f0,useReducer:Af,useRef:zf,useState:function(){return Af(Bn)},useDebugValue:ir,useDeferredValue:function(t,e){var i=We();return o0(i,pe.memoizedState,t,e)},useTransition:function(){var t=Af(Bn)[0],e=We().memoizedState;return[typeof t=="boolean"?t:sc(t),e]},useSyncExternalStore:Vh,useId:m0,useHostTransitionStatus:cr,useFormState:$h,useActionState:$h,useOptimistic:function(t,e){var i=We();return Io(i,pe,t,e)},useMemoCache:Wo,useCacheRefresh:g0};or.useEffectEvent=l0;var Tl={readContext:Gt,use:gi,useCallback:c0,useContext:Gt,useEffect:nr,useImperativeHandle:s0,useInsertionEffect:n0,useLayoutEffect:i0,useMemo:f0,useReducer:ko,useRef:zf,useState:function(){return ko(Bn)},useDebugValue:ir,useDeferredValue:function(t,e){var i=We();return pe===null?ur(i,t,e):o0(i,pe.memoizedState,t,e)},useTransition:function(){var t=ko(Bn)[0],e=We().memoizedState;return[typeof t=="boolean"?t:sc(t),e]},useSyncExternalStore:Vh,useId:m0,useHostTransitionStatus:cr,useFormState:lr,useActionState:lr,useOptimistic:function(t,e){var i=We();return pe!==null?Io(i,pe,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Wo,useCacheRefresh:g0};Tl.useEffectEvent=l0;function Rf(t,e,i,u){e=t.memoizedState,i=i(u,e),i=i==null?e:M({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var fc={enqueueSetState:function(t,e,i){t=t._reactInternals;var u=dl(),h=Hn(u);h.payload=e,i!=null&&(h.callback=i),e=di(t,h,u),e!==null&&(wt(e,t,u),mi(e,t,u))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var u=dl(),h=Hn(u);h.tag=1,h.payload=e,i!=null&&(h.callback=i),e=di(t,h,u),e!==null&&(wt(e,t,u),mi(e,t,u))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=dl(),u=Hn(i);u.tag=2,e!=null&&(u.callback=e),e=di(t,u,i),e!==null&&(wt(e,t,i),mi(e,t,i))}};function rr(t,e,i,u,h,m,E){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,m,E):e.prototype&&e.prototype.isPureReactComponent?!ju(i,u)||!ju(h,m):!0}function hr(t,e,i,u){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,u),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,u),e.state!==t&&fc.enqueueReplaceState(e,e.state,null)}function yi(t,e){var i=e;if("ref"in e){i={};for(var u in e)u!=="ref"&&(i[u]=e[u])}if(t=t.defaultProps){i===e&&(i=M({},i));for(var h in t)i[h]===void 0&&(i[h]=t[h])}return i}function _0(t){ks(t)}function dr(t){console.error(t)}function mr(t){ks(t)}function Df(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(u){setTimeout(function(){throw u})}}function E0(t,e,i){try{var u=t.onCaughtError;u(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function gr(t,e,i){return i=Hn(i),i.tag=3,i.payload={element:null},i.callback=function(){Df(t,e)},i}function vr(t){return t=Hn(t),t.tag=3,t}function b0(t,e,i,u){var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var m=u.value;t.payload=function(){return h(m)},t.callback=function(){E0(e,i,u)}}var E=i.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(t.callback=function(){E0(e,i,u),typeof h!="function"&&(Pe===null?Pe=new Set([this]):Pe.add(this));var z=u.stack;this.componentDidCatch(u.value,{componentStack:z!==null?z:""})})}function ua(t,e,i,u,h){if(i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(e=i.alternate,e!==null&&nn(e,i,h,!0),i=Wa.current,i!==null){switch(i.tag){case 31:case 13:return Ya===null?hs():i.alternate===null&&Xe===0&&(Xe=3),i.flags&=-257,i.flags|=65536,i.lanes=h,u===yf?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([u]):e.add(u),Ec(t,u,h)),!1;case 22:return i.flags|=65536,u===yf?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([u])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([u]):i.add(u)),Ec(t,u,h)),!1}throw Error(f(435,i.tag))}return Ec(t,u,h),hs(),!1}if(te)return e=Wa.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=h,u!==Fu&&(t=Error(f(422),{cause:u}),en(il(t,i)))):(u!==Fu&&(e=Error(f(423),{cause:u}),en(il(e,i))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,u=il(u,i),h=gr(t.stateNode,u,h),Ot(t,h),Xe!==4&&(Xe=2)),!1;var m=Error(f(520),{cause:u});if(m=il(m,i),ou===null?ou=[m]:ou.push(m),Xe!==4&&(Xe=2),e===null)return!0;u=il(u,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=h&-h,i.lanes|=t,t=gr(i.stateNode,u,t),Ot(i,t),!1;case 1:if(e=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Pe===null||!Pe.has(m))))return i.flags|=65536,h&=-h,i.lanes|=h,h=vr(h),b0(h,t,i,u),Ot(i,h),!1}i=i.return}while(i!==null);return!1}var Nf=Error(f(461)),aa=!1;function da(t,e,i,u){e.child=t===null?_f(e,null,i,u):Gn(e,t.child,i,u)}function yr(t,e,i,u,h){i=i.render;var m=e.ref;if("ref"in u){var E={};for(var z in u)z!=="ref"&&(E[z]=u[z])}else E=u;return ri(e),u=Tf(t,e,i,E,m,h),z=Ko(),t!==null&&!aa?(Jo(t,e,h),Fe(t,e,h)):(te&&z&&$l(e),e.flags|=1,da(t,e,u,h),e.child)}function lu(t,e,i,u,h){if(t===null){var m=i.type;return typeof m=="function"&&!sf(m)&&m.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=m,Gf(t,e,m,u,h)):(t=Pl(i.type,null,u,e,e.mode,h),t.ref=e.ref,t.return=e,e.child=t)}if(m=t.child,!Xf(t,h)){var E=m.memoizedProps;if(i=i.compare,i=i!==null?i:ju,i(E,u)&&t.ref===e.ref)return Fe(t,e,h)}return e.flags|=1,t=Ka(m,u),t.ref=e.ref,t.return=e,e.child=t}function Gf(t,e,i,u,h){if(t!==null){var m=t.memoizedProps;if(ju(m,u)&&t.ref===e.ref)if(aa=!1,e.pendingProps=u=m,Xf(t,h))(t.flags&131072)!==0&&(aa=!0);else return e.lanes=t.lanes,Fe(t,e,h)}return us(t,e,i,u,h)}function nu(t,e,i,u){var h=u.children,m=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((e.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(u=e.child=t.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;u=h&~m}else u=0,e.child=null;return ka(t,e,m,i,u)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&tc(e,m!==null?m.cachePool:null),m!==null?Lh(e,m):jo(),jh(e);else return u=e.lanes=536870912,ka(t,e,m!==null?m.baseLanes|i:i,i,u)}else m!==null?(tc(e,m.cachePool),Lh(e,m),Fa(),e.memoizedState=null):(t!==null&&tc(e,null),jo(),Fa());return da(t,e,h,i),e.child}function sn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ka(t,e,i,u,h){var m=vf();return m=m===null?null:{parent:ea._currentValue,pool:m},e.memoizedState={baseLanes:i,cachePool:m},t!==null&&tc(e,null),jo(),jh(e),t!==null&&nn(t,e,u,!0),e.childLanes=h,null}function Hf(t,e){return e=qf({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function T0(t,e,i){return Gn(e,t.child,null,i),t=Hf(e,e.pendingProps),t.flags|=2,we(e),e.memoizedState=null,t}function Uf(t,e,i){var u=e.pendingProps,h=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(te){if(u.mode==="hidden")return t=Hf(e,u),e.lanes=536870912,sn(null,t);if(Qo(e),(t=Ee)?(t=jd(t,ul),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:xn!==null?{id:Ye,overflow:Ul}:null,retryLane:536870912,hydrationErrors:null},i=Ju(t),i.return=e,e.child=i,Ve=e,Ee=null)):t=null,t===null)throw tn(e);return e.lanes=536870912,null}return Hf(e,u)}var m=t.memoizedState;if(m!==null){var E=m.dehydrated;if(Qo(e),h)if(e.flags&256)e.flags&=-257,e=T0(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(f(558));else if(aa||nn(t,e,i,!1),h=(i&t.childLanes)!==0,aa||h){if(u=Bt,u!==null&&(E=no(u,i),E!==0&&E!==m.retryLane))throw m.retryLane=E,Ua(t,E),wt(u,t,E),Nf;hs(),e=T0(t,e,i)}else t=m.treeContext,Ee=vn(E.nextSibling),Ve=e,te=!0,Rn=null,ul=!1,t!==null&&rf(e,t),e=Hf(e,u),e.flags|=4096;return e}return t=Ka(t.child,{mode:u.mode,children:u.children}),t.ref=e.ref,e.child=t,t.return=e,t}function iu(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(f(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function us(t,e,i,u,h){return ri(e),i=Tf(t,e,i,u,void 0,h),u=Ko(),t!==null&&!aa?(Jo(t,e,h),Fe(t,e,h)):(te&&u&&$l(e),e.flags|=1,da(t,e,i,h),e.child)}function oc(t,e,i,u,h,m){return ri(e),e.updateQueue=null,i=eu(e,u,i,h),Qh(t),u=Ko(),t!==null&&!aa?(Jo(t,e,m),Fe(t,e,m)):(te&&u&&$l(e),e.flags|=1,da(t,e,i,m),e.child)}function Bf(t,e,i,u,h){if(ri(e),e.stateNode===null){var m=ii,E=i.contextType;typeof E=="object"&&E!==null&&(m=Gt(E)),m=new i(u,m),e.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=fc,e.stateNode=m,m._reactInternals=e,m=e.stateNode,m.props=u,m.state=e.memoizedState,m.refs={},lc(e),E=i.contextType,m.context=typeof E=="object"&&E!==null?Gt(E):ii,m.state=e.memoizedState,E=i.getDerivedStateFromProps,typeof E=="function"&&(Rf(e,i,E,u),m.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(E=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),E!==m.state&&fc.enqueueReplaceState(m,m.state,null),ts(e,u,m,h),nc(),m.state=e.memoizedState),typeof m.componentDidMount=="function"&&(e.flags|=4194308),u=!0}else if(t===null){m=e.stateNode;var z=e.memoizedProps,N=yi(i,z);m.props=N;var Z=m.context,$=i.contextType;E=ii,typeof $=="object"&&$!==null&&(E=Gt($));var et=i.getDerivedStateFromProps;$=typeof et=="function"||typeof m.getSnapshotBeforeUpdate=="function",z=e.pendingProps!==z,$||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(z||Z!==E)&&hr(e,m,u,E),Ba=!1;var J=e.memoizedState;m.state=J,ts(e,u,m,h),nc(),Z=e.memoizedState,z||J!==Z||Ba?(typeof et=="function"&&(Rf(e,i,et,u),Z=e.memoizedState),(N=Ba||rr(e,i,N,u,J,Z,E))?($||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(e.flags|=4194308)):(typeof m.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=u,e.memoizedState=Z),m.props=u,m.state=Z,m.context=E,u=N):(typeof m.componentDidMount=="function"&&(e.flags|=4194308),u=!1)}else{m=e.stateNode,Xo(t,e),E=e.memoizedProps,$=yi(i,E),m.props=$,et=e.pendingProps,J=m.context,Z=i.contextType,N=ii,typeof Z=="object"&&Z!==null&&(N=Gt(Z)),z=i.getDerivedStateFromProps,(Z=typeof z=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E!==et||J!==N)&&hr(e,m,u,N),Ba=!1,J=e.memoizedState,m.state=J,ts(e,u,m,h),nc();var F=e.memoizedState;E!==et||J!==F||Ba||t!==null&&t.dependencies!==null&&$s(t.dependencies)?(typeof z=="function"&&(Rf(e,i,z,u),F=e.memoizedState),($=Ba||rr(e,i,$,u,J,F,N)||t!==null&&t.dependencies!==null&&$s(t.dependencies))?(Z||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,F,N),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,F,N)),typeof m.componentDidUpdate=="function"&&(e.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof m.componentDidUpdate!="function"||E===t.memoizedProps&&J===t.memoizedState||(e.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&J===t.memoizedState||(e.flags|=1024),e.memoizedProps=u,e.memoizedState=F),m.props=u,m.state=F,m.context=N,u=$):(typeof m.componentDidUpdate!="function"||E===t.memoizedProps&&J===t.memoizedState||(e.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&J===t.memoizedState||(e.flags|=1024),u=!1)}return m=u,iu(t,e),u=(e.flags&128)!==0,m||u?(m=e.stateNode,i=u&&typeof i.getDerivedStateFromError!="function"?null:m.render(),e.flags|=1,t!==null&&u?(e.child=Gn(e,t.child,null,h),e.child=Gn(e,null,i,h)):da(t,e,i,h),e.memoizedState=m.state,t=e.child):t=Fe(t,e,h),t}function C0(t,e,i,u){return fi(),e.flags|=256,da(t,e,i,u),e.child}var pr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ra(t){return{baseLanes:t,cachePool:qo()}}function Yf(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=ja),t}function A0(t,e,i){var u=e.pendingProps,h=!1,m=(e.flags&128)!==0,E;if((E=m)||(E=t!==null&&t.memoizedState===null?!1:(ee.current&2)!==0),E&&(h=!0,e.flags&=-129),E=(e.flags&32)!==0,e.flags&=-33,t===null){if(te){if(h?Un(e):Fa(),(t=Ee)?(t=jd(t,ul),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:xn!==null?{id:Ye,overflow:Ul}:null,retryLane:536870912,hydrationErrors:null},i=Ju(t),i.return=e,e.child=i,Ve=e,Ee=null)):t=null,t===null)throw tn(e);return G1(t)?e.lanes=32:e.lanes=536870912,null}var z=u.children;return u=u.fallback,h?(Fa(),h=e.mode,z=qf({mode:"hidden",children:z},h),u=ui(u,h,i,null),z.return=e,u.return=e,z.sibling=u,e.child=z,u=e.child,u.memoizedState=Ra(i),u.childLanes=Yf(t,E,i),e.memoizedState=pr,sn(null,u)):(Un(e),rc(e,z))}var N=t.memoizedState;if(N!==null&&(z=N.dehydrated,z!==null)){if(m)e.flags&256?(Un(e),e.flags&=-257,e=Sr(t,e,i)):e.memoizedState!==null?(Fa(),e.child=t.child,e.flags|=128,e=null):(Fa(),z=u.fallback,h=e.mode,u=qf({mode:"visible",children:u.children},h),z=ui(z,h,i,null),z.flags|=2,u.return=e,z.return=e,u.sibling=z,e.child=u,Gn(e,t.child,null,i),u=e.child,u.memoizedState=Ra(i),u.childLanes=Yf(t,E,i),e.memoizedState=pr,e=sn(null,u));else if(Un(e),G1(z)){if(E=z.nextSibling&&z.nextSibling.dataset,E)var Z=E.dgst;E=Z,u=Error(f(419)),u.stack="",u.digest=E,en({value:u,source:null,stack:null}),e=Sr(t,e,i)}else if(aa||nn(t,e,i,!1),E=(i&t.childLanes)!==0,aa||E){if(E=Bt,E!==null&&(u=no(E,i),u!==0&&u!==N.retryLane))throw N.retryLane=u,Ua(t,u),wt(E,t,u),Nf;N1(z)||hs(),e=Sr(t,e,i)}else N1(z)?(e.flags|=192,e.child=t.child,e=null):(t=N.treeContext,Ee=vn(z.nextSibling),Ve=e,te=!0,Rn=null,ul=!1,t!==null&&rf(e,t),e=rc(e,u.children),e.flags|=4096);return e}return h?(Fa(),z=u.fallback,h=e.mode,N=t.child,Z=N.sibling,u=Ka(N,{mode:"hidden",children:u.children}),u.subtreeFlags=N.subtreeFlags&65011712,Z!==null?z=Ka(Z,z):(z=ui(z,h,i,null),z.flags|=2),z.return=e,u.return=e,u.sibling=z,e.child=u,sn(null,u),u=e.child,z=t.child.memoizedState,z===null?z=Ra(i):(h=z.cachePool,h!==null?(N=ea._currentValue,h=h.parent!==N?{parent:N,pool:N}:h):h=qo(),z={baseLanes:z.baseLanes|i,cachePool:h}),u.memoizedState=z,u.childLanes=Yf(t,E,i),e.memoizedState=pr,sn(t.child,u)):(Un(e),i=t.child,t=i.sibling,i=Ka(i,{mode:"visible",children:u.children}),i.return=e,i.sibling=null,t!==null&&(E=e.deletions,E===null?(e.deletions=[t],e.flags|=16):E.push(t)),e.child=i,e.memoizedState=null,i)}function rc(t,e){return e=qf({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function qf(t,e){return t=Be(22,t,null,e),t.lanes=0,t}function Sr(t,e,i){return Gn(e,t.child,null,i),t=rc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function z0(t,e,i){t.lanes|=e;var u=t.alternate;u!==null&&(u.lanes|=e),df(t.return,e,i)}function uu(t,e,i,u,h,m){var E=t.memoizedState;E===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:h,treeForkCount:m}:(E.isBackwards=e,E.rendering=null,E.renderingStartTime=0,E.last=u,E.tail=i,E.tailMode=h,E.treeForkCount=m)}function Pa(t,e,i){var u=e.pendingProps,h=u.revealOrder,m=u.tail;u=u.children;var E=ee.current,z=(E&2)!==0;if(z?(E=E&1|2,e.flags|=128):E&=1,ot(ee,E),da(t,e,u,i),u=te?Wu:0,!z&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&z0(t,i,e);else if(t.tag===19)z0(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(h){case"forwards":for(i=e.child,h=null;i!==null;)t=i.alternate,t!==null&&cl(t)===null&&(h=i),i=i.sibling;i=h,i===null?(h=e.child,e.child=null):(h=i.sibling,i.sibling=null),uu(e,!1,h,i,m,u);break;case"backwards":case"unstable_legacy-backwards":for(i=null,h=e.child,e.child=null;h!==null;){if(t=h.alternate,t!==null&&cl(t)===null){e.child=h;break}t=h.sibling,h.sibling=i,i=h,h=t}uu(e,!0,i,null,m,u);break;case"together":uu(e,!1,null,null,void 0,u);break;default:e.memoizedState=null}return e.child}function Fe(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),dn|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(nn(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(f(153));if(e.child!==null){for(t=e.child,i=Ka(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=Ka(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function Xf(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&$s(t)))}function _1(t,e,i){switch(e.tag){case 3:oa(e,e.stateNode.containerInfo),Dn(e,ea,t.memoizedState.cache),fi();break;case 27:case 5:_u(e);break;case 4:oa(e,e.stateNode.containerInfo);break;case 10:Dn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Qo(e),null;break;case 13:var u=e.memoizedState;if(u!==null)return u.dehydrated!==null?(Un(e),e.flags|=128,null):(i&e.child.childLanes)!==0?A0(t,e,i):(Un(e),t=Fe(t,e,i),t!==null?t.sibling:null);Un(e);break;case 19:var h=(t.flags&128)!==0;if(u=(i&e.childLanes)!==0,u||(nn(t,e,i,!1),u=(i&e.childLanes)!==0),h){if(u)return Pa(t,e,i);e.flags|=128}if(h=e.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ot(ee,ee.current),u)break;return null;case 22:return e.lanes=0,nu(t,e,i,e.pendingProps);case 24:Dn(e,ea,t.memoizedState.cache)}return Fe(t,e,i)}function Lf(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)aa=!0;else{if(!Xf(t,i)&&(e.flags&128)===0)return aa=!1,_1(t,e,i);aa=(t.flags&131072)!==0}else aa=!1,te&&(e.flags&1048576)!==0&&Gh(e,Wu,e.index);switch(e.lanes=0,e.tag){case 16:t:{var u=e.pendingProps;if(t=Fi(e.elementType),e.type=t,typeof t=="function")sf(t)?(u=yi(t,u),e.tag=1,e=Bf(null,e,t,u,i)):(e.tag=0,e=us(null,e,t,u,i));else{if(t!=null){var h=t.$$typeof;if(h===P){e.tag=11,e=yr(null,e,t,u,i);break t}else if(h===st){e.tag=14,e=lu(null,e,t,u,i);break t}}throw e=Ut(t)||t,Error(f(306,e,""))}}return e;case 0:return us(t,e,e.type,e.pendingProps,i);case 1:return u=e.type,h=yi(u,e.pendingProps),Bf(t,e,u,h,i);case 3:t:{if(oa(e,e.stateNode.containerInfo),t===null)throw Error(f(387));u=e.pendingProps;var m=e.memoizedState;h=m.element,Xo(t,e),ts(e,u,null,i);var E=e.memoizedState;if(u=E.cache,Dn(e,ea,u),u!==m.cache&&mf(e,[ea],i,!0),nc(),u=E.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:E.cache},e.updateQueue.baseState=m,e.memoizedState=m,e.flags&256){e=C0(t,e,u,i);break t}else if(u!==h){h=il(Error(f(424)),e),en(h),e=C0(t,e,u,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(Ee=vn(t.firstChild),Ve=e,te=!0,Rn=null,ul=!0,i=_f(e,null,u,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(fi(),u===h){e=Fe(t,e,i);break t}da(t,e,u,i)}e=e.child}return e;case 26:return iu(t,e),t===null?(i=wd(e.type,null,e.pendingProps,null))?e.memoizedState=i:te||(i=e.type,t=e.pendingProps,u=R0(Lt.current).createElement(i),u[$e]=e,u[za]=t,Va(u,i,t),ta(u),e.stateNode=u):e.memoizedState=wd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return _u(e),t===null&&te&&(u=e.stateNode=Zd(e.type,e.pendingProps,Lt.current),Ve=e,ul=!0,h=Ee,vs(e.type)?(H1=h,Ee=vn(u.firstChild)):Ee=h),da(t,e,e.pendingProps.children,i),iu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&te&&((h=u=Ee)&&(u=P3(u,e.type,e.pendingProps,ul),u!==null?(e.stateNode=u,Ve=e,Ee=vn(u.firstChild),ul=!1,h=!0):h=!1),h||tn(e)),_u(e),h=e.type,m=e.pendingProps,E=t!==null?t.memoizedProps:null,u=m.children,x1(h,m)?u=null:E!==null&&x1(h,E)&&(e.flags|=32),e.memoizedState!==null&&(h=Tf(t,e,au,null,null,i),Rr._currentValue=h),iu(t,e),da(t,e,u,i),e.child;case 6:return t===null&&te&&((t=i=Ee)&&(i=I3(i,e.pendingProps,ul),i!==null?(e.stateNode=i,Ve=e,Ee=null,t=!0):t=!1),t||tn(e)),null;case 13:return A0(t,e,i);case 4:return oa(e,e.stateNode.containerInfo),u=e.pendingProps,t===null?e.child=Gn(e,null,u,i):da(t,e,u,i),e.child;case 11:return yr(t,e,e.type,e.pendingProps,i);case 7:return da(t,e,e.pendingProps,i),e.child;case 8:return da(t,e,e.pendingProps.children,i),e.child;case 12:return da(t,e,e.pendingProps.children,i),e.child;case 10:return u=e.pendingProps,Dn(e,e.type,u.value),da(t,e,u.children,i),e.child;case 9:return h=e.type._context,u=e.pendingProps.children,ri(e),h=Gt(h),u=u(h),e.flags|=1,da(t,e,u,i),e.child;case 14:return lu(t,e,e.type,e.pendingProps,i);case 15:return Gf(t,e,e.type,e.pendingProps,i);case 19:return Pa(t,e,i);case 31:return Uf(t,e,i);case 22:return nu(t,e,i,e.pendingProps);case 24:return ri(e),u=Gt(ea),t===null?(h=vf(),h===null&&(h=Bt,m=Ho(),h.pooledCache=m,m.refCount++,m!==null&&(h.pooledCacheLanes|=i),h=m),e.memoizedState={parent:u,cache:h},lc(e),Dn(e,ea,h)):((t.lanes&i)!==0&&(Xo(t,e),ts(e,null,null,i),nc()),h=t.memoizedState,m=e.memoizedState,h.parent!==u?(h={parent:u,cache:u},e.memoizedState=h,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=h),Dn(e,ea,u)):(u=m.cache,Dn(e,ea,u),u!==h.cache&&mf(e,[ea],i,!0))),da(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(f(156,e.tag))}function cn(t){t.flags|=4}function hc(t,e,i,u,h){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(h&335544128)===h)if(t.stateNode.complete)t.flags|=8192;else if(je())t.flags|=8192;else throw un=yf,ec}else t.flags&=-16777217}function _r(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Id(e))if(je())t.flags|=8192;else throw un=yf,ec}function Yn(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Fn():536870912,t.lanes|=e,Ae|=e)}function fn(t,e){if(!te)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 u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function Se(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,u=0;if(e)for(var h=t.child;h!==null;)i|=h.lanes|h.childLanes,u|=h.subtreeFlags&65011712,u|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)i|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=u,t.childLanes=i,e}function dc(t,e,i){var u=e.pendingProps;switch(of(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Se(e),null;case 1:return Se(e),null;case 3:return i=e.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),e.memoizedState.cache!==u&&(e.flags|=2048),ln(ea),de(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ku(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,hf())),Se(e),null;case 26:var h=e.type,m=e.memoizedState;return t===null?(cn(e),m!==null?(Se(e),_r(e,m)):(Se(e),hc(e,h,null,u,i))):m?m!==t.memoizedState?(cn(e),Se(e),_r(e,m)):(Se(e),e.flags&=-16777217):(t=t.memoizedProps,t!==u&&cn(e),Se(e),hc(e,h,t,u,i)),null;case 27:if(Rs(e),i=Lt.current,h=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==u&&cn(e);else{if(!u){if(e.stateNode===null)throw Error(f(166));return Se(e),null}t=bt.current,ku(e)?Hh(e):(t=Zd(h,u,i),e.stateNode=t,cn(e))}return Se(e),null;case 5:if(Rs(e),h=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==u&&cn(e);else{if(!u){if(e.stateNode===null)throw Error(f(166));return Se(e),null}if(m=bt.current,ku(e))Hh(e);else{var E=R0(Lt.current);switch(m){case 1:m=E.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:m=E.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":m=E.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":m=E.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":m=E.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?E.createElement("select",{is:u.is}):E.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?E.createElement(h,{is:u.is}):E.createElement(h)}}m[$e]=e,m[za]=u;t:for(E=e.child;E!==null;){if(E.tag===5||E.tag===6)m.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===e)break t;for(;E.sibling===null;){if(E.return===null||E.return===e)break t;E=E.return}E.sibling.return=E.return,E=E.sibling}e.stateNode=m;t:switch(Va(m,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&cn(e)}}return Se(e),hc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==u&&cn(e);else{if(typeof u!="string"&&e.stateNode===null)throw Error(f(166));if(t=Lt.current,ku(e)){if(t=e.stateNode,i=e.memoizedProps,u=null,h=Ve,h!==null)switch(h.tag){case 27:case 5:u=h.memoizedProps}t[$e]=e,t=!!(t.nodeValue===i||u!==null&&u.suppressHydrationWarning===!0||Gd(t.nodeValue,i)),t||tn(e,!0)}else t=R0(t).createTextNode(u),t[$e]=e,e.stateNode=t}return Se(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(u=ku(e),i!==null){if(t===null){if(!u)throw Error(f(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(557));t[$e]=e}else fi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Se(e),t=!1}else i=hf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(we(e),e):(we(e),null);if((e.flags&128)!==0)throw Error(f(558))}return Se(e),null;case 13:if(u=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=ku(e),u!==null&&u.dehydrated!==null){if(t===null){if(!h)throw Error(f(318));if(h=e.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(f(317));h[$e]=e}else fi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Se(e),h=!1}else h=hf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return e.flags&256?(we(e),e):(we(e),null)}return we(e),(e.flags&128)!==0?(e.lanes=i,e):(i=u!==null,t=t!==null&&t.memoizedState!==null,i&&(u=e.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==h&&(u.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),Yn(e,e.updateQueue),Se(e),null);case 4:return de(),t===null&&C1(e.stateNode.containerInfo),Se(e),null;case 10:return ln(e.type),Se(e),null;case 19:if(k(ee),u=e.memoizedState,u===null)return Se(e),null;if(h=(e.flags&128)!==0,m=u.rendering,m===null)if(h)fn(u,!1);else{if(Xe!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(m=cl(t),m!==null){for(e.flags|=128,fn(u,!1),t=m.updateQueue,e.updateQueue=t,Yn(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)Ku(i,t),i=i.sibling;return ot(ee,ee.current&1|2),te&&Il(e,u.treeForkCount),e.child}t=t.sibling}u.tail!==null&&Aa()>ke&&(e.flags|=128,h=!0,fn(u,!1),e.lanes=4194304)}else{if(!h)if(t=cl(m),t!==null){if(e.flags|=128,h=!0,t=t.updateQueue,e.updateQueue=t,Yn(e,t),fn(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!te)return Se(e),null}else 2*Aa()-u.renderingStartTime>ke&&i!==536870912&&(e.flags|=128,h=!0,fn(u,!1),e.lanes=4194304);u.isBackwards?(m.sibling=e.child,e.child=m):(t=u.last,t!==null?t.sibling=m:e.child=m,u.last=m)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Aa(),t.sibling=null,i=ee.current,ot(ee,h?i&1|2:i&1),te&&Il(e,u.treeForkCount),t):(Se(e),null);case 22:case 23:return we(e),ic(),u=e.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(e.flags|=8192):u&&(e.flags|=8192),u?(i&536870912)!==0&&(e.flags&128)===0&&(Se(e),e.subtreeFlags&6&&(e.flags|=8192)):Se(e),i=e.updateQueue,i!==null&&Yn(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),u=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),u!==i&&(e.flags|=2048),t!==null&&k(hi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),ln(ea),Se(e),null;case 25:return null;case 30:return null}throw Error(f(156,e.tag))}function Cl(t,e){switch(of(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ln(ea),de(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Rs(e),null;case 31:if(e.memoizedState!==null){if(we(e),e.alternate===null)throw Error(f(340));fi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(we(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(f(340));fi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return k(ee),null;case 4:return de(),null;case 10:return ln(e.type),null;case 22:case 23:return we(e),ic(),t!==null&&k(hi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ln(ea),null;case 25:return null;default:return null}}function fl(t,e){switch(of(e),e.tag){case 3:ln(ea),de();break;case 26:case 27:case 5:Rs(e);break;case 4:de();break;case 31:e.memoizedState!==null&&we(e);break;case 13:we(e);break;case 19:k(ee);break;case 10:ln(e.type);break;case 22:case 23:we(e),ic(),t!==null&&k(hi);break;case 24:ln(ea)}}function Al(t,e){try{var i=e.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var h=u.next;i=h;do{if((i.tag&t)===t){u=void 0;var m=i.create,E=i.inst;u=m(),E.destroy=u}i=i.next}while(i!==h)}}catch(z){se(e,e.return,z)}}function Ea(t,e,i){try{var u=e.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var m=h.next;u=m;do{if((u.tag&t)===t){var E=u.inst,z=E.destroy;if(z!==void 0){E.destroy=void 0,h=e;var N=i,Z=z;try{Z()}catch($){se(h,N,$)}}}u=u.next}while(u!==m)}}catch($){se(e,e.return,$)}}function Bl(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{Xh(e,i)}catch(u){se(t,t.return,u)}}}function ma(t,e,i){i.props=yi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(u){se(t,e,u)}}function qn(t,e){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof i=="function"?t.refCleanup=i(u):i.current=u}}catch(h){se(t,e,h)}}function ba(t,e){var i=t.ref,u=t.refCleanup;if(i!==null)if(typeof u=="function")try{u()}catch(h){se(t,e,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(h){se(t,e,h)}else i.current=null}function mc(t){var e=t.type,i=t.memoizedProps,u=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&u.focus();break t;case"img":i.src?u.src=i.src:i.srcSet&&(u.srcset=i.srcSet)}}catch(h){se(t,t.return,h)}}function sa(t,e,i){try{var u=t.stateNode;K3(u,t.type,i,e),u[za]=e}catch(h){se(t,t.return,h)}}function Re(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&vs(t.type)||t.tag===4}function It(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Re(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&&vs(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 on(t,e,i){var u=t.tag;if(u===5||u===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=zn));else if(u!==4&&(u===27&&vs(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(on(t,e,i),t=t.sibling;t!==null;)on(t,e,i),t=t.sibling}function qa(t,e,i){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(u!==4&&(u===27&&vs(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(qa(t,e,i),t=t.sibling;t!==null;)qa(t,e,i),t=t.sibling}function jf(t){var e=t.stateNode,i=t.memoizedProps;try{for(var u=t.type,h=e.attributes;h.length;)e.removeAttributeNode(h[0]);Va(e,u,i),e[$e]=t,e[za]=i}catch(m){se(t,t.return,m)}}var zl=!1,be=!1,Yl=!1,M0=typeof WeakSet=="function"?WeakSet:Set,ga=null;function E1(t,e){if(t=t.containerInfo,M1=Y0,t=xh(t),xo(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var h=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break t}var E=0,z=-1,N=-1,Z=0,$=0,et=t,J=null;e:for(;;){for(var F;et!==i||h!==0&&et.nodeType!==3||(z=E+h),et!==m||u!==0&&et.nodeType!==3||(N=E+u),et.nodeType===3&&(E+=et.nodeValue.length),(F=et.firstChild)!==null;)J=et,et=F;for(;;){if(et===t)break e;if(J===i&&++Z===h&&(z=E),J===m&&++$===u&&(N=E),(F=et.nextSibling)!==null)break;et=J,J=et.parentNode}et=F}i=z===-1||N===-1?null:{start:z,end:N}}else i=null}i=i||{start:0,end:0}}else i=null;for(O1={focusedElem:t,selectionRange:i},Y0=!1,ga=e;ga!==null;)if(e=ga,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ga=t;else for(;ga!==null;){switch(e=ga,m=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)h=t[i],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=e,h=m.memoizedProps,m=m.memoizedState,u=i.stateNode;try{var Tt=yi(i.type,h);t=u.getSnapshotBeforeUpdate(Tt,m),u.__reactInternalSnapshotBeforeUpdate=t}catch(Nt){se(i,i.return,Nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)D1(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":D1(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(f(163))}if(t=e.sibling,t!==null){t.return=e.return,ga=t;break}ga=e.return}}function De(t,e,i){var u=i.flags;switch(i.tag){case 0:case 11:case 15:xl(t,i),u&4&&Al(5,i);break;case 1:if(xl(t,i),u&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(E){se(i,i.return,E)}else{var h=yi(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(h,e,t.__reactInternalSnapshotBeforeUpdate)}catch(E){se(i,i.return,E)}}u&64&&Bl(i),u&512&&qn(i,i.return);break;case 3:if(xl(t,i),u&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{Xh(t,e)}catch(E){se(i,i.return,E)}}break;case 27:e===null&&u&4&&jf(i);case 26:case 5:xl(t,i),e===null&&u&4&&mc(i),u&512&&qn(i,i.return);break;case 12:xl(t,i);break;case 31:xl(t,i),u&4&&pi(t,i);break;case 13:xl(t,i),u&4&&ss(t,i),u&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=c.bind(null,i),$3(t,i))));break;case 22:if(u=i.memoizedState!==null||zl,!u){e=e!==null&&e.memoizedState!==null||be,h=zl;var m=be;zl=u,(be=e)&&!m?Xa(t,i,(i.subtreeFlags&8772)!==0):xl(t,i),zl=h,be=m}break;case 30:break;default:xl(t,i)}}function gc(t){var e=t.alternate;e!==null&&(t.alternate=null,gc(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Bi(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 me=null,Da=!1;function Ml(t,e,i){for(i=i.child;i!==null;)Qf(t,e,i),i=i.sibling}function Qf(t,e,i){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(Tu,i)}catch{}switch(i.tag){case 26:be||ba(i,e),Ml(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:be||ba(i,e);var u=me,h=Da;vs(i.type)&&(me=i.stateNode,Da=!1),Ml(t,e,i),Mr(i.stateNode),me=u,Da=h;break;case 5:be||ba(i,e);case 6:if(u=me,h=Da,me=null,Ml(t,e,i),me=u,Da=h,me!==null)if(Da)try{(me.nodeType===9?me.body:me.nodeName==="HTML"?me.ownerDocument.body:me).removeChild(i.stateNode)}catch(m){se(i,e,m)}else try{me.removeChild(i.stateNode)}catch(m){se(i,e,m)}break;case 18:me!==null&&(Da?(t=me,Xd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),kf(t)):Xd(me,i.stateNode));break;case 4:u=me,h=Da,me=i.stateNode.containerInfo,Da=!0,Ml(t,e,i),me=u,Da=h;break;case 0:case 11:case 14:case 15:Ea(2,i,e),be||Ea(4,i,e),Ml(t,e,i);break;case 1:be||(ba(i,e),u=i.stateNode,typeof u.componentWillUnmount=="function"&&ma(i,e,u)),Ml(t,e,i);break;case 21:Ml(t,e,i);break;case 22:be=(u=be)||i.memoizedState!==null,Ml(t,e,i),be=u;break;default:Ml(t,e,i)}}function pi(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{kf(t)}catch(i){se(e,e.return,i)}}}function ss(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{kf(t)}catch(i){se(e,e.return,i)}}function Er(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new M0),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new M0),e;default:throw Error(f(435,t.tag))}}function Xn(t,e){var i=Er(t);e.forEach(function(u){if(!i.has(u)){i.add(u);var h=r.bind(null,t,u);u.then(h,h)}})}function ca(t,e){var i=e.deletions;if(i!==null)for(var u=0;u<i.length;u++){var h=i[u],m=t,E=e,z=E;t:for(;z!==null;){switch(z.tag){case 27:if(vs(z.type)){me=z.stateNode,Da=!1;break t}break;case 5:me=z.stateNode,Da=!1;break t;case 3:case 4:me=z.stateNode.containerInfo,Da=!0;break t}z=z.return}if(me===null)throw Error(f(160));Qf(m,E,h),me=null,Da=!1,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Si(e,t),e=e.sibling}var Ol=null;function Si(t,e){var i=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ca(e,t),fa(t),u&4&&(Ea(3,t,t.return),Al(3,t),Ea(5,t,t.return));break;case 1:ca(e,t),fa(t),u&512&&(be||i===null||ba(i,i.return)),u&64&&zl&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?u:i.concat(u))));break;case 26:var h=Ol;if(ca(e,t),fa(t),u&512&&(be||i===null||ba(i,i.return)),u&4){var m=i!==null?i.memoizedState:null;if(u=t.memoizedState,i===null)if(u===null)if(t.stateNode===null){t:{u=t.type,i=t.memoizedProps,h=h.ownerDocument||h;e:switch(u){case"title":m=h.getElementsByTagName("title")[0],(!m||m[Tn]||m[$e]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=h.createElement(u),h.head.insertBefore(m,h.querySelector("head > title"))),Va(m,u,i),m[$e]=t,ta(m),u=m;break t;case"link":var E=kd("link","href",h).get(u+(i.href||""));if(E){for(var z=0;z<E.length;z++)if(m=E[z],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){E.splice(z,1);break e}}m=h.createElement(u),Va(m,u,i),h.head.appendChild(m);break;case"meta":if(E=kd("meta","content",h).get(u+(i.content||""))){for(z=0;z<E.length;z++)if(m=E[z],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){E.splice(z,1);break e}}m=h.createElement(u),Va(m,u,i),h.head.appendChild(m);break;default:throw Error(f(468,u))}m[$e]=t,ta(m),u=m}t.stateNode=u}else Pd(h,t.type,t.stateNode);else t.stateNode=Fd(h,u,t.memoizedProps);else m!==u?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,u===null?Pd(h,t.type,t.stateNode):Fd(h,u,t.memoizedProps)):u===null&&t.stateNode!==null&&sa(t,t.memoizedProps,i.memoizedProps)}break;case 27:ca(e,t),fa(t),u&512&&(be||i===null||ba(i,i.return)),i!==null&&u&4&&sa(t,t.memoizedProps,i.memoizedProps);break;case 5:if(ca(e,t),fa(t),u&512&&(be||i===null||ba(i,i.return)),t.flags&32){h=t.stateNode;try{Xi(h,"")}catch(Tt){se(t,t.return,Tt)}}u&4&&t.stateNode!=null&&(h=t.memoizedProps,sa(t,h,i!==null?i.memoizedProps:h)),u&1024&&(Yl=!0);break;case 6:if(ca(e,t),fa(t),u&4){if(t.stateNode===null)throw Error(f(162));u=t.memoizedProps,i=t.stateNode;try{i.nodeValue=u}catch(Tt){se(t,t.return,Tt)}}break;case 3:if(G0=null,h=Ol,Ol=D0(e.containerInfo),ca(e,t),Ol=h,fa(t),u&4&&i!==null&&i.memoizedState.isDehydrated)try{kf(e.containerInfo)}catch(Tt){se(t,t.return,Tt)}Yl&&(Yl=!1,Vf(t));break;case 4:u=Ol,Ol=D0(t.stateNode.containerInfo),ca(e,t),fa(t),Ol=u;break;case 12:ca(e,t),fa(t);break;case 31:ca(e,t),fa(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Xn(t,u)));break;case 13:ca(e,t),fa(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(cs=Aa()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Xn(t,u)));break;case 22:h=t.memoizedState!==null;var N=i!==null&&i.memoizedState!==null,Z=zl,$=be;if(zl=Z||h,be=$||N,ca(e,t),be=$,zl=Z,fa(t),u&8192)t:for(e=t.stateNode,e._visibility=h?e._visibility&-2:e._visibility|1,h&&(i===null||N||zl||be||rn(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){N=i=e;try{if(m=N.stateNode,h)E=m.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{z=N.stateNode;var et=N.memoizedProps.style,J=et!=null&&et.hasOwnProperty("display")?et.display:null;z.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(Tt){se(N,N.return,Tt)}}}else if(e.tag===6){if(i===null){N=e;try{N.stateNode.nodeValue=h?"":N.memoizedProps}catch(Tt){se(N,N.return,Tt)}}}else if(e.tag===18){if(i===null){N=e;try{var F=N.stateNode;h?Ld(F,!0):Ld(N.stateNode,!1)}catch(Tt){se(N,N.return,Tt)}}}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}u&4&&(u=t.updateQueue,u!==null&&(i=u.retryQueue,i!==null&&(u.retryQueue=null,Xn(t,i))));break;case 19:ca(e,t),fa(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Xn(t,u)));break;case 30:break;case 21:break;default:ca(e,t),fa(t)}}function fa(t){var e=t.flags;if(e&2){try{for(var i,u=t.return;u!==null;){if(Re(u)){i=u;break}u=u.return}if(i==null)throw Error(f(160));switch(i.tag){case 27:var h=i.stateNode,m=It(t);qa(t,m,h);break;case 5:var E=i.stateNode;i.flags&32&&(Xi(E,""),i.flags&=-33);var z=It(t);qa(t,z,E);break;case 3:case 4:var N=i.stateNode.containerInfo,Z=It(t);on(t,Z,N);break;default:throw Error(f(161))}}catch($){se(t,t.return,$)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Vf(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Vf(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function xl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)De(t,e.alternate,e),e=e.sibling}function rn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ea(4,e,e.return),rn(e);break;case 1:ba(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&ma(e,e.return,i),rn(e);break;case 27:Mr(e.stateNode);case 26:case 5:ba(e,e.return),rn(e);break;case 22:e.memoizedState===null&&rn(e);break;case 30:rn(e);break;default:rn(e)}t=t.sibling}}function Xa(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var u=e.alternate,h=t,m=e,E=m.flags;switch(m.tag){case 0:case 11:case 15:Xa(h,m,i),Al(4,m);break;case 1:if(Xa(h,m,i),u=m,h=u.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(Z){se(u,u.return,Z)}if(u=m,h=u.updateQueue,h!==null){var z=u.stateNode;try{var N=h.shared.hiddenCallbacks;if(N!==null)for(h.shared.hiddenCallbacks=null,h=0;h<N.length;h++)es(N[h],z)}catch(Z){se(u,u.return,Z)}}i&&E&64&&Bl(m),qn(m,m.return);break;case 27:jf(m);case 26:case 5:Xa(h,m,i),i&&u===null&&E&4&&mc(m),qn(m,m.return);break;case 12:Xa(h,m,i);break;case 31:Xa(h,m,i),i&&E&4&&pi(h,m);break;case 13:Xa(h,m,i),i&&E&4&&ss(h,m);break;case 22:m.memoizedState===null&&Xa(h,m,i),qn(m,m.return);break;case 30:break;default:Xa(h,m,i)}e=e.sibling}}function _i(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&&wi(i))}function su(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&wi(t))}function Ta(t,e,i,u){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)br(t,e,i,u),e=e.sibling}function br(t,e,i,u){var h=e.flags;switch(e.tag){case 0:case 11:case 15:Ta(t,e,i,u),h&2048&&Al(9,e);break;case 1:Ta(t,e,i,u);break;case 3:Ta(t,e,i,u),h&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&wi(t)));break;case 12:if(h&2048){Ta(t,e,i,u),t=e.stateNode;try{var m=e.memoizedProps,E=m.id,z=m.onPostCommit;typeof z=="function"&&z(E,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(N){se(e,e.return,N)}}else Ta(t,e,i,u);break;case 31:Ta(t,e,i,u);break;case 13:Ta(t,e,i,u);break;case 23:break;case 22:m=e.stateNode,E=e.alternate,e.memoizedState!==null?m._visibility&2?Ta(t,e,i,u):hn(t,e):m._visibility&2?Ta(t,e,i,u):(m._visibility|=2,Ca(t,e,i,u,(e.subtreeFlags&10256)!==0||!1)),h&2048&&_i(E,e);break;case 24:Ta(t,e,i,u),h&2048&&su(e.alternate,e);break;default:Ta(t,e,i,u)}}function Ca(t,e,i,u,h){for(h=h&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var m=t,E=e,z=i,N=u,Z=E.flags;switch(E.tag){case 0:case 11:case 15:Ca(m,E,z,N,h),Al(8,E);break;case 23:break;case 22:var $=E.stateNode;E.memoizedState!==null?$._visibility&2?Ca(m,E,z,N,h):hn(m,E):($._visibility|=2,Ca(m,E,z,N,h)),h&&Z&2048&&_i(E.alternate,E);break;case 24:Ca(m,E,z,N,h),h&&Z&2048&&su(E.alternate,E);break;default:Ca(m,E,z,N,h)}e=e.sibling}}function hn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,u=e,h=u.flags;switch(u.tag){case 22:hn(i,u),h&2048&&_i(u.alternate,u);break;case 24:hn(i,u),h&2048&&su(u.alternate,u);break;default:hn(i,u)}e=e.sibling}}var cu=8192;function ol(t,e,i){if(t.subtreeFlags&cu)for(t=t.child;t!==null;)Zf(t,e,i),t=t.sibling}function Zf(t,e,i){switch(t.tag){case 26:ol(t,e,i),t.flags&cu&&t.memoizedState!==null&&r4(i,Ol,t.memoizedState,t.memoizedProps);break;case 5:ol(t,e,i);break;case 3:case 4:var u=Ol;Ol=D0(t.stateNode.containerInfo),ol(t,e,i),Ol=u;break;case 22:t.memoizedState===null&&(u=t.alternate,u!==null&&u.memoizedState!==null?(u=cu,cu=16777216,ol(t,e,i),cu=u):ol(t,e,i));break;default:ol(t,e,i)}}function fu(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 Ei(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var u=e[i];ga=u,Ze(u,t)}fu(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ia(t),t=t.sibling}function Ia(t){switch(t.tag){case 0:case 11:case 15:Ei(t),t.flags&2048&&Ea(9,t,t.return);break;case 3:Ei(t);break;case 12:Ei(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,La(t)):Ei(t);break;default:Ei(t)}}function La(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var u=e[i];ga=u,Ze(u,t)}fu(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ea(8,e,e.return),La(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,La(e));break;default:La(e)}t=t.sibling}}function Ze(t,e){for(;ga!==null;){var i=ga;switch(i.tag){case 0:case 11:case 15:Ea(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var u=i.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:wi(i.memoizedState.cache)}if(u=i.child,u!==null)u.return=i,ga=u;else t:for(i=t;ga!==null;){u=ga;var h=u.sibling,m=u.return;if(gc(u),u===i){ga=null;break t}if(h!==null){h.return=m,ga=h;break t}ga=m}}}var Ln={getCacheForType:function(t){var e=Gt(ea),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return Gt(ea).controller.signal}},Qt=typeof WeakMap=="function"?WeakMap:Map,At=0,Bt=null,Jt=null,Zt=0,ae=0,Na=null,Rl=!1,ql=!1,Tr=!1,rl=0,Xe=0,dn=0,bi=0,vc=0,ja=0,Ae=0,ou=null,Ke=null,Je=!1,cs=0,Cr=0,ke=1/0,Le=null,Pe=null,ge=0,hl=null,fs=null,Dl=0,os=0,rs=null,yc=null,Ti=0,ru=null;function dl(){return(At&2)!==0&&Zt!==0?Zt&-Zt:U.T!==null?w():Uc()}function Ft(){if(ja===0)if((Zt&536870912)===0||te){var t=Cu;Cu<<=1,(Cu&3932160)===0&&(Cu=262144),ja=t}else ja=536870912;return t=Wa.current,t!==null&&(t.flags|=32),ja}function wt(t,e,i){(t===Bt&&(ae===2||ae===9)||t.cancelPendingCommit!==null)&&(Ai(t,0),la(t,Zt,ja,!1)),zu(t,i),((At&2)===0||t!==Bt)&&(t===Bt&&((At&2)===0&&(bi|=i),Xe===4&&la(t,Zt,ja,!1)),ut(t))}function kt(t,e,i){if((At&6)!==0)throw Error(f(327));var u=!i&&(e&127)===0&&(e&t.expiredLanes)===0||Au(t,e),h=u?pc(t,e):Qa(t,e,!0),m=u;do{if(h===0){ql&&!u&&la(t,e,0,!1);break}else{if(i=t.current.alternate,m&&!ve(i)){h=Qa(t,e,!1),m=!1;continue}if(h===2){if(m=e,t.errorRecoveryDisabledLanes&m)var E=0;else E=t.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){e=E;t:{var z=t;h=ou;var N=z.current.memoizedState.isDehydrated;if(N&&(Ai(z,E).flags|=256),E=Qa(z,E,!1),E!==2){if(Tr&&!N){z.errorRecoveryDisabledLanes|=m,bi|=m,h=4;break t}m=Ke,Ke=h,m!==null&&(Ke===null?Ke=m:Ke.push.apply(Ke,m))}h=E}if(m=!1,h!==2)continue}}if(h===1){Ai(t,0),la(t,e,0,!0);break}t:{switch(u=t,m=h,m){case 0:case 1:throw Error(f(345));case 4:if((e&4194048)!==e)break;case 6:la(u,e,ja,!Rl);break t;case 2:Ke=null;break;case 3:case 5:break;default:throw Error(f(329))}if((e&62914560)===e&&(h=cs+300-Aa(),10<h)){if(la(u,e,ja,!Rl),Ui(u,0,!0)!==0)break t;Dl=e,u.timeoutHandle=Yd($t.bind(null,u,i,Ke,Le,Je,e,ja,bi,Ae,Rl,m,"Throttled",-0,0),h);break t}$t(u,i,Ke,Le,Je,e,ja,bi,Ae,Rl,m,null,-0,0)}}break}while(!0);ut(t)}function $t(t,e,i,u,h,m,E,z,N,Z,$,et,J,F){if(t.timeoutHandle=-1,et=e.subtreeFlags,et&8192||(et&16785408)===16785408){et={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zn},Zf(e,m,et);var Tt=(m&62914560)===m?cs-Aa():(m&4194048)===m?Cr-Aa():0;if(Tt=h4(et,Tt),Tt!==null){Dl=m,t.cancelPendingCommit=Tt(Qn.bind(null,t,e,m,i,u,h,E,z,N,$,et,null,J,F)),la(t,m,E,!Z);return}}Qn(t,e,m,i,u,h,E,z,N)}function ve(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 u=0;u<i.length;u++){var h=i[u],m=h.getSnapshot;h=h.value;try{if(!Ha(m(),h))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 la(t,e,i,u){e&=~vc,e&=~bi,t.suspendedLanes|=e,t.pingedLanes&=~e,u&&(t.warmLanes|=e),u=t.expirationTimes;for(var h=e;0<h;){var m=31-el(h),E=1<<m;u[m]=-1,h&=~E}i!==0&&Mu(t,i,e)}function Xl(){return(At&6)===0?(yt(0),!1):!0}function Ci(){if(Jt!==null){if(ae===0)var t=Jt.return;else t=Jt,an=oi=null,wo(t),Ii=null,$i=0,t=Jt;for(;t!==null;)fl(t.alternate,t),t=t.return;Jt=null}}function Ai(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,W3(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Dl=0,Ci(),Bt=t,Jt=i=Ka(t.current,null),Zt=e,ae=0,Na=null,Rl=!1,ql=Au(t,e),Tr=!1,Ae=ja=vc=bi=dn=Xe=0,Ke=ou=null,Je=!1,(e&8)!==0&&(e|=e&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=e;0<u;){var h=31-el(u),m=1<<h;e|=t[h],u&=~m}return rl=e,Ps(),i}function mn(t,e){jt=null,U.H=is,e===Wi||e===Kt?(e=ki(),ae=3):e===ec?(e=ki(),ae=4):ae=e===Nf?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Na=e,Jt===null&&(Xe=1,Df(t,il(e,t.current)))}function je(){var t=Wa.current;return t===null?!0:(Zt&4194048)===Zt?Ya===null:(Zt&62914560)===Zt||(Zt&536870912)!==0?t===Ya:!1}function jn(){var t=U.H;return U.H=is,t===null?is:t}function zi(){var t=U.A;return U.A=Ln,t}function hs(){Xe=4,Rl||(Zt&4194048)!==Zt&&Wa.current!==null||(ql=!0),(dn&134217727)===0&&(bi&134217727)===0||Bt===null||la(Bt,Zt,ja,!1)}function Qa(t,e,i){var u=At;At|=2;var h=jn(),m=zi();(Bt!==t||Zt!==e)&&(Le=null,Ai(t,e)),e=!1;var E=Xe;t:do try{if(ae!==0&&Jt!==null){var z=Jt,N=Na;switch(ae){case 8:Ci(),E=6;break t;case 3:case 2:case 9:case 6:Wa.current===null&&(e=!0);var Z=ae;if(ae=0,Na=null,hu(t,z,N,Z),i&&ql){E=0;break t}break;default:Z=ae,ae=0,Na=null,hu(t,z,N,Z)}}ds(),E=Xe;break}catch($){mn(t,$)}while(!0);return e&&t.shellSuspendCounter++,an=oi=null,At=u,U.H=h,U.A=m,Jt===null&&(Bt=null,Zt=0,Ps()),E}function ds(){for(;Jt!==null;)Kf(Jt)}function pc(t,e){var i=At;At|=2;var u=jn(),h=zi();Bt!==t||Zt!==e?(Le=null,ke=Aa()+500,Ai(t,e)):ql=Au(t,e);t:do try{if(ae!==0&&Jt!==null){e=Jt;var m=Na;e:switch(ae){case 1:ae=0,Na=null,hu(t,e,m,1);break;case 2:case 9:if(wa(m)){ae=0,Na=null,Sc(e);break}e=function(){ae!==2&&ae!==9||Bt!==t||(ae=7),ut(t)},m.then(e,e);break t;case 3:ae=7;break t;case 4:ae=5;break t;case 7:wa(m)?(ae=0,Na=null,Sc(e)):(ae=0,Na=null,hu(t,e,m,7));break;case 5:var E=null;switch(Jt.tag){case 26:E=Jt.memoizedState;case 5:case 27:var z=Jt;if(E?Id(E):z.stateNode.complete){ae=0,Na=null;var N=z.sibling;if(N!==null)Jt=N;else{var Z=z.return;Z!==null?(Jt=Z,Mi(Z)):Jt=null}break e}}ae=0,Na=null,hu(t,e,m,5);break;case 6:ae=0,Na=null,hu(t,e,m,6);break;case 8:Ci(),Xe=6;break t;default:throw Error(f(462))}}$a();break}catch($){mn(t,$)}while(!0);return an=oi=null,U.H=u,U.A=h,At=i,Jt!==null?0:(Bt=null,Zt=0,Ps(),Xe)}function $a(){for(;Jt!==null&&!Di();)Kf(Jt)}function Kf(t){var e=Lf(t.alternate,t,rl);t.memoizedProps=t.pendingProps,e===null?Mi(t):Jt=e}function Sc(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=oc(i,e,e.pendingProps,e.type,void 0,Zt);break;case 11:e=oc(i,e,e.pendingProps,e.type.render,e.ref,Zt);break;case 5:wo(e);default:fl(i,e),e=Jt=Ku(e,rl),e=Lf(i,e,rl)}t.memoizedProps=t.pendingProps,e===null?Mi(t):Jt=e}function hu(t,e,i,u){an=oi=null,wo(e),Ii=null,$i=0;var h=e.return;try{if(ua(t,h,e,i,Zt)){Xe=1,Df(t,il(i,t.current)),Jt=null;return}}catch(m){if(h!==null)throw Jt=h,m;Xe=1,Df(t,il(i,t.current)),Jt=null;return}e.flags&32768?(te||u===1?t=!0:ql||(Zt&536870912)!==0?t=!1:(Rl=t=!0,(u===2||u===9||u===3||u===6)&&(u=Wa.current,u!==null&&u.tag===13&&(u.flags|=16384))),_c(e,t)):Mi(e)}function Mi(t){var e=t;do{if((e.flags&32768)!==0){_c(e,Rl);return}t=e.return;var i=dc(e.alternate,e,rl);if(i!==null){Jt=i;return}if(e=e.sibling,e!==null){Jt=e;return}Jt=e=t}while(e!==null);Xe===0&&(Xe=5)}function _c(t,e){do{var i=Cl(t.alternate,t);if(i!==null){i.flags&=32767,Jt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){Jt=t;return}Jt=t=i}while(t!==null);Xe=6,Jt=null}function Qn(t,e,i,u,h,m,E,z,N){t.cancelPendingCommit=null;do ms();while(ge!==0);if((At&6)!==0)throw Error(f(327));if(e!==null){if(e===t.current)throw Error(f(177));if(m=e.lanes|e.childLanes,m|=ra,Hc(t,i,m,E,z,N),t===Bt&&(Jt=Bt=null,Zt=0),fs=e,hl=t,Dl=i,os=m,rs=h,yc=u,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,y(Ni,function(){return Jf(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||u){u=U.T,U.T=null,h=it.p,it.p=2,E=At,At|=4;try{E1(t,e,i)}finally{At=E,it.p=h,U.T=u}}ge=1,na(),Vn(),du()}}function na(){if(ge===1){ge=0;var t=hl,e=fs,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var u=it.p;it.p=2;var h=At;At|=4;try{Si(e,t);var m=O1,E=xh(t.containerInfo),z=m.focusedElem,N=m.selectionRange;if(E!==z&&z&&z.ownerDocument&&_e(z.ownerDocument.documentElement,z)){if(N!==null&&xo(z)){var Z=N.start,$=N.end;if($===void 0&&($=Z),"selectionStart"in z)z.selectionStart=Z,z.selectionEnd=Math.min($,z.value.length);else{var et=z.ownerDocument||document,J=et&&et.defaultView||window;if(J.getSelection){var F=J.getSelection(),Tt=z.textContent.length,Nt=Math.min(N.start,Tt),Ce=N.end===void 0?Nt:Math.min(N.end,Tt);!F.extend&&Nt>Ce&&(E=Ce,Ce=Nt,Nt=E);var Y=Qu(z,Nt),H=Qu(z,Ce);if(Y&&H&&(F.rangeCount!==1||F.anchorNode!==Y.node||F.anchorOffset!==Y.offset||F.focusNode!==H.node||F.focusOffset!==H.offset)){var V=et.createRange();V.setStart(Y.node,Y.offset),F.removeAllRanges(),Nt>Ce?(F.addRange(V),F.extend(H.node,H.offset)):(V.setEnd(H.node,H.offset),F.addRange(V))}}}}for(et=[],F=z;F=F.parentNode;)F.nodeType===1&&et.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<et.length;z++){var tt=et[z];tt.element.scrollLeft=tt.left,tt.element.scrollTop=tt.top}}Y0=!!M1,O1=M1=null}finally{At=h,it.p=u,U.T=i}}t.current=e,ge=2}}function Vn(){if(ge===2){ge=0;var t=hl,e=fs,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var u=it.p;it.p=2;var h=At;At|=4;try{De(t,e.alternate,e)}finally{At=h,it.p=u,U.T=i}}ge=3}}function du(){if(ge===4||ge===3){ge=0,Sa();var t=hl,e=fs,i=Dl,u=yc;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ge=5:(ge=0,fs=hl=null,gn(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(Pe=null),xu(i),e=e.stateNode,Za&&typeof Za.onCommitFiberRoot=="function")try{Za.onCommitFiberRoot(Tu,e,void 0,(e.current.flags&128)===128)}catch{}if(u!==null){e=U.T,h=it.p,it.p=2,U.T=null;try{for(var m=t.onRecoverableError,E=0;E<u.length;E++){var z=u[E];m(z.value,{componentStack:z.stack})}}finally{U.T=e,it.p=h}}(Dl&3)!==0&&ms(),ut(t),h=t.pendingLanes,(i&261930)!==0&&(h&42)!==0?t===ru?Ti++:(Ti=0,ru=t):Ti=0,yt(0)}}function gn(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,wi(e)))}function ms(){return na(),Vn(),du(),Jf()}function Jf(){if(ge!==5)return!1;var t=hl,e=os;os=0;var i=xu(Dl),u=U.T,h=it.p;try{it.p=32>i?32:i,U.T=null,i=rs,rs=null;var m=hl,E=Dl;if(ge=0,fs=hl=null,Dl=0,(At&6)!==0)throw Error(f(331));var z=At;if(At|=4,Ia(m.current),br(m,m.current,E,i),At=z,yt(0,!1),Za&&typeof Za.onPostCommitFiberRoot=="function")try{Za.onPostCommitFiberRoot(Tu,m)}catch{}return!0}finally{it.p=h,U.T=u,gn(t,e)}}function Ar(t,e,i){e=il(i,e),e=gr(t.stateNode,e,2),t=di(t,e,2),t!==null&&(zu(t,2),ut(t))}function se(t,e,i){if(t.tag===3)Ar(t,t,i);else for(;e!==null;){if(e.tag===3){Ar(e,t,i);break}else if(e.tag===1){var u=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Pe===null||!Pe.has(u))){t=il(i,t),i=vr(2),u=di(e,i,2),u!==null&&(b0(i,u,e,t),zu(u,2),ut(u));break}}e=e.return}}function Ec(t,e,i){var u=t.pingCache;if(u===null){u=t.pingCache=new Qt;var h=new Set;u.set(e,h)}else h=u.get(e),h===void 0&&(h=new Set,u.set(e,h));h.has(i)||(Tr=!0,h.add(i),t=a.bind(null,t,e,i),e.then(t,t))}function a(t,e,i){var u=t.pingCache;u!==null&&u.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Bt===t&&(Zt&i)===i&&(Xe===4||Xe===3&&(Zt&62914560)===Zt&&300>Aa()-cs?(At&2)===0&&Ai(t,0):vc|=i,Ae===Zt&&(Ae=0)),ut(t)}function n(t,e){e===0&&(e=Fn()),t=Ua(t,e),t!==null&&(zu(t,e),ut(t))}function c(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),n(t,i)}function r(t,e){var i=0;switch(t.tag){case 31:case 13:var u=t.stateNode,h=t.memoizedState;h!==null&&(i=h.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(f(314))}u!==null&&u.delete(e),n(t,i)}function y(t,e){return wn(t,e)}var _=null,C=null,G=!1,W=!1,at=!1,dt=0;function ut(t){t!==C&&t.next===null&&(C===null?_=C=t:C=C.next=t),W=!0,G||(G=!0,q())}function yt(t,e){if(!at&&W){at=!0;do for(var i=!1,u=_;u!==null;){if(t!==0){var h=u.pendingLanes;if(h===0)var m=0;else{var E=u.suspendedLanes,z=u.pingedLanes;m=(1<<31-el(42|t)+1)-1,m&=h&~(E&~z),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,K(u,m))}else m=Zt,m=Ui(u,u===Bt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Au(u,m)||(i=!0,K(u,m));u=u.next}while(i);at=!1}}function Xt(){va()}function va(){W=G=!1;var t=0;dt!==0&&w3()&&(t=dt);for(var e=Aa(),i=null,u=_;u!==null;){var h=u.next,m=gs(u,e);m===0?(u.next=null,i===null?_=h:i.next=h,h===null&&(C=i)):(i=u,(t!==0||(m&3)!==0)&&(W=!0)),u=h}ge!==0&&ge!==5||yt(t),dt!==0&&(dt=0)}function gs(t,e){for(var i=t.suspendedLanes,u=t.pingedLanes,h=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var E=31-el(m),z=1<<E,N=h[E];N===-1?((z&i)===0||(z&u)!==0)&&(h[E]=ih(z,e)):N<=e&&(t.expiredLanes|=z),m&=~z}if(e=Bt,i=Zt,i=Ui(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,i===0||t===e&&(ae===2||ae===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&Eu(u),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Au(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(u!==null&&Eu(u),xu(i)){case 2:case 8:i=bu;break;case 32:i=Ni;break;case 268435456:i=Gi;break;default:i=Ni}return u=Oi.bind(null,t),i=wn(i,u),t.callbackPriority=e,t.callbackNode=i,e}return u!==null&&u!==null&&Eu(u),t.callbackPriority=2,t.callbackNode=null,2}function Oi(t,e){if(ge!==0&&ge!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(ms()&&t.callbackNode!==i)return null;var u=Zt;return u=Ui(t,t===Bt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(kt(t,u,e),gs(t,Aa()),t.callbackNode!=null&&t.callbackNode===i?Oi.bind(null,t):null)}function K(t,e){if(ms())return null;kt(t,e,!0)}function q(){F3(function(){(At&6)!==0?wn(Dc,Xt):va()})}function w(){if(dt===0){var t=Nn;t===0&&(t=Nc,Nc<<=1,(Nc&261888)===0&&(Nc=256)),dt=t}return dt}function ft(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ys(""+t)}function Rt(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 Qe(t,e,i,u,h){if(e==="submit"&&i&&i.stateNode===h){var m=ft((h[za]||null).action),E=u.submitter;E&&(e=(e=E[za]||null)?ft(e.formAction):E.getAttribute("formAction"),e!==null&&(m=e,E=null));var z=new Ls("action","action",null,u,h);t.push({event:z,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(dt!==0){var N=E?Rt(h,E):new FormData(h);sr(i,{pending:!0,data:N,method:h.method,action:m},null,N)}}else typeof m=="function"&&(z.preventDefault(),N=E?Rt(h,E):new FormData(h),sr(i,{pending:!0,data:N,method:h.method,action:m},m,N))},currentTarget:h}]})}}for(var Dt=0;Dt<Fs.length;Dt++){var ne=Fs[Dt],ya=ne.toLowerCase(),fe=ne[0].toUpperCase()+ne.slice(1);yl(ya,"on"+fe)}yl(nf,"onAnimationEnd"),yl(Ws,"onAnimationIteration"),yl(Do,"onAnimationStart"),yl("dblclick","onDoubleClick"),yl("focusin","onFocus"),yl("focusout","onBlur"),yl(Dh,"onTransitionRun"),yl(d1,"onTransitionStart"),yl(Nh,"onTransitionCancel"),yl(No,"onTransitionEnd"),al("onMouseEnter",["mouseout","mouseover"]),al("onMouseLeave",["mouseout","mouseover"]),al("onPointerEnter",["pointerout","pointerover"]),al("onPointerLeave",["pointerout","pointerover"]),ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ti("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ti("onBeforeInput",["compositionend","keypress","textInput","paste"]),ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nl="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(" "),b1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nl));function xd(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var u=t[i],h=u.event;u=u.listeners;t:{var m=void 0;if(e)for(var E=u.length-1;0<=E;E--){var z=u[E],N=z.instance,Z=z.currentTarget;if(z=z.listener,N!==m&&h.isPropagationStopped())break t;m=z,h.currentTarget=Z;try{m(h)}catch($){ks($)}h.currentTarget=null,m=N}else for(E=0;E<u.length;E++){if(z=u[E],N=z.instance,Z=z.currentTarget,z=z.listener,N!==m&&h.isPropagationStopped())break t;m=z,h.currentTarget=Z;try{m(h)}catch($){ks($)}h.currentTarget=null,m=N}}}}function le(t,e){var i=e[Kl];i===void 0&&(i=e[Kl]=new Set);var u=t+"__bubble";i.has(u)||(Rd(e,t,2,!1),i.add(u))}function T1(t,e,i){var u=0;e&&(u|=4),Rd(i,t,u,e)}var O0="_reactListening"+Math.random().toString(36).slice(2);function C1(t){if(!t[O0]){t[O0]=!0,Cn.forEach(function(i){i!=="selectionchange"&&(b1.has(i)||T1(i,!1,t),T1(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[O0]||(e[O0]=!0,T1("selectionchange",!1,e))}}function Rd(t,e,i,u){switch(i2(e)){case 2:var h=g4;break;case 8:h=v4;break;default:h=X1}i=h.bind(null,e,i,t),h=void 0,!ho||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(h=!0),u?h!==void 0?t.addEventListener(e,i,{capture:!0,passive:h}):t.addEventListener(e,i,!0):h!==void 0?t.addEventListener(e,i,{passive:h}):t.addEventListener(e,i,!1)}function A1(t,e,i,u,h){var m=u;if((e&1)===0&&(e&2)===0&&u!==null)t:for(;;){if(u===null)return;var E=u.tag;if(E===3||E===4){var z=u.stateNode.containerInfo;if(z===h)break;if(E===4)for(E=u.return;E!==null;){var N=E.tag;if((N===3||N===4)&&E.stateNode.containerInfo===h)return;E=E.return}for(;z!==null;){if(E=Yi(z),E===null)return;if(N=E.tag,N===5||N===6||N===26||N===27){u=m=E;continue t}z=z.parentNode}}u=u.return}ro(function(){var Z=m,$=Kc(i),et=[];t:{var J=vl.get(t);if(J!==void 0){var F=Ls,Tt=t;switch(t){case"keypress":if(Xs(i)===0)break t;case"keydown":case"keyup":F=Qi;break;case"focusin":Tt="focus",F=Fc;break;case"focusout":Tt="blur",F=Fc;break;case"beforeblur":case"afterblur":F=Fc;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":F=mo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=rh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=yh;break;case nf:case Ws:case Do:F=o1;break;case No:F=h1;break;case"scroll":case"scrollend":F=fh;break;case"wheel":F=Sh;break;case"copy":case"cut":case"paste":F=dh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=yo;break;case"toggle":case"beforetoggle":F=Eh}var Nt=(e&4)!==0,Ce=!Nt&&(t==="scroll"||t==="scrollend"),Y=Nt?J!==null?J+"Capture":null:J;Nt=[];for(var H=Z,V;H!==null;){var tt=H;if(V=tt.stateNode,tt=tt.tag,tt!==5&&tt!==26&&tt!==27||V===null||Y===null||(tt=Gu(H,Y),tt!=null&&Nt.push(zr(H,tt,V))),Ce)break;H=H.return}0<Nt.length&&(J=new F(J,Tt,null,i,$),et.push({event:J,listeners:Nt}))}}if((e&7)===0){t:{if(J=t==="mouseover"||t==="pointerover",F=t==="mouseout"||t==="pointerout",J&&i!==Zc&&(Tt=i.relatedTarget||i.fromElement)&&(Yi(Tt)||Tt[Pn]))break t;if((F||J)&&(J=$.window===$?$:(J=$.ownerDocument)?J.defaultView||J.parentWindow:window,F?(Tt=i.relatedTarget||i.toElement,F=Z,Tt=Tt?Yi(Tt):null,Tt!==null&&(Ce=g(Tt),Nt=Tt.tag,Tt!==Ce||Nt!==5&&Nt!==27&&Nt!==6)&&(Tt=null)):(F=null,Tt=Z),F!==Tt)){if(Nt=mo,tt="onMouseLeave",Y="onMouseEnter",H="mouse",(t==="pointerout"||t==="pointerover")&&(Nt=yo,tt="onPointerLeave",Y="onPointerEnter",H="pointer"),Ce=F==null?J:Ru(F),V=Tt==null?J:Ru(Tt),J=new Nt(tt,H+"leave",F,i,$),J.target=Ce,J.relatedTarget=V,tt=null,Yi($)===Z&&(Nt=new Nt(Y,H+"enter",Tt,i,$),Nt.target=V,Nt.relatedTarget=Ce,tt=Nt),Ce=tt,F&&Tt)e:{for(Nt=Q3,Y=F,H=Tt,V=0,tt=Y;tt;tt=Nt(tt))V++;tt=0;for(var xt=H;xt;xt=Nt(xt))tt++;for(;0<V-tt;)Y=Nt(Y),V--;for(;0<tt-V;)H=Nt(H),tt--;for(;V--;){if(Y===H||H!==null&&Y===H.alternate){Nt=Y;break e}Y=Nt(Y),H=Nt(H)}Nt=null}else Nt=null;F!==null&&Dd(et,J,F,Nt,!1),Tt!==null&&Ce!==null&&Dd(et,Ce,Tt,Nt,!0)}}t:{if(J=Z?Ru(Z):window,F=J.nodeName&&J.nodeName.toLowerCase(),F==="select"||F==="input"&&J.type==="file")var re=Co;else if(To(J))if(Wl)re=Oh;else{re=Mo;var Ct=zh}else F=J.nodeName,!F||F.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Z&&Vc(Z.elementType)&&(re=Co):re=Mh;if(re&&(re=re(t,Z))){af(et,re,i,$);break t}Ct&&Ct(t,J,Z),t==="focusout"&&Z&&J.type==="number"&&Z.memoizedProps.value!=null&&Hl(J,"number",J.value)}switch(Ct=Z?Ru(Z):window,t){case"focusin":(To(Ct)||Ct.contentEditable==="true")&&(Fl=Ct,kl=Z,Vu=null);break;case"focusout":Vu=kl=Fl=null;break;case"mousedown":lf=!0;break;case"contextmenu":case"mouseup":case"dragend":lf=!1,Zu(et,i,$);break;case"selectionchange":if(Rh)break;case"keydown":case"keyup":Zu(et,i,$)}var Wt;if(Vi)t:{switch(t){case"compositionstart":var ie="onCompositionStart";break t;case"compositionend":ie="onCompositionEnd";break t;case"compositionupdate":ie="onCompositionUpdate";break t}ie=void 0}else Zi?ef(t,i)&&(ie="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(ie="onCompositionStart");ie&&(So&&i.locale!=="ko"&&(Zi||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&Zi&&(Wt=qs()):(nl=$,wc="value"in nl?nl.value:nl.textContent,Zi=!0)),Ct=x0(Z,ie),0<Ct.length&&(ie=new kc(ie,t,null,i,$),et.push({event:ie,listeners:Ct}),Wt?ie.data=Wt:(Wt=_o(i),Wt!==null&&(ie.data=Wt)))),(Wt=tf?Ch(t,i):Eo(t,i))&&(ie=x0(Z,"onBeforeInput"),0<ie.length&&(Ct=new kc("onBeforeInput","beforeinput",null,i,$),et.push({event:Ct,listeners:ie}),Ct.data=Wt)),Qe(et,t,Z,i,$)}xd(et,e)})}function zr(t,e,i){return{instance:t,listener:e,currentTarget:i}}function x0(t,e){for(var i=e+"Capture",u=[];t!==null;){var h=t,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=Gu(t,i),h!=null&&u.unshift(zr(t,h,m)),h=Gu(t,e),h!=null&&u.push(zr(t,h,m))),t.tag===3)return u;t=t.return}return[]}function Q3(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Dd(t,e,i,u,h){for(var m=e._reactName,E=[];i!==null&&i!==u;){var z=i,N=z.alternate,Z=z.stateNode;if(z=z.tag,N!==null&&N===u)break;z!==5&&z!==26&&z!==27||Z===null||(N=Z,h?(Z=Gu(i,m),Z!=null&&E.unshift(zr(i,Z,N))):h||(Z=Gu(i,m),Z!=null&&E.push(zr(i,Z,N)))),i=i.return}E.length!==0&&t.push({event:e,listeners:E})}var V3=/\r\n?/g,Z3=/\u0000|\uFFFD/g;function Nd(t){return(typeof t=="string"?t:""+t).replace(V3,`
|
|
41
|
+
`).replace(Z3,"")}function Gd(t,e){return e=Nd(e),Nd(t)===e}function Te(t,e,i,u,h,m){switch(i){case"children":typeof u=="string"?e==="body"||e==="textarea"&&u===""||Xi(t,u):(typeof u=="number"||typeof u=="bigint")&&e!=="body"&&Xi(t,""+u);break;case"className":Us(t,"class",u);break;case"tabIndex":Us(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Us(t,i,u);break;case"style":co(t,u,m);break;case"data":if(e!=="object"){Us(t,"data",u);break}case"src":case"href":if(u===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(i);break}u=Ys(""+u),t.setAttribute(i,u);break;case"action":case"formAction":if(typeof u=="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 m=="function"&&(i==="formAction"?(e!=="input"&&Te(t,e,"name",h.name,h,null),Te(t,e,"formEncType",h.formEncType,h,null),Te(t,e,"formMethod",h.formMethod,h,null),Te(t,e,"formTarget",h.formTarget,h,null)):(Te(t,e,"encType",h.encType,h,null),Te(t,e,"method",h.method,h,null),Te(t,e,"target",h.target,h,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(i);break}u=Ys(""+u),t.setAttribute(i,u);break;case"onClick":u!=null&&(t.onclick=zn);break;case"onScroll":u!=null&&le("scroll",t);break;case"onScrollEnd":u!=null&&le("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(f(61));if(i=u.__html,i!=null){if(h.children!=null)throw Error(f(60));t.innerHTML=i}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}i=Ys(""+u),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":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(i,""+u):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":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":u===!0?t.setAttribute(i,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(i,u):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(i,u):t.removeAttribute(i);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(i):t.setAttribute(i,u);break;case"popover":le("beforetoggle",t),le("toggle",t),Du(t,"popover",u);break;case"xlinkActuate":Jl(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Jl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Jl(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Jl(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Jl(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Jl(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Jl(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Jl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Jl(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Du(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=sh.get(i)||i,Du(t,i,u))}}function z1(t,e,i,u,h,m){switch(i){case"style":co(t,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(f(61));if(i=u.__html,i!=null){if(h.children!=null)throw Error(f(60));t.innerHTML=i}}break;case"children":typeof u=="string"?Xi(t,u):(typeof u=="number"||typeof u=="bigint")&&Xi(t,""+u);break;case"onScroll":u!=null&&le("scroll",t);break;case"onScrollEnd":u!=null&&le("scrollend",t);break;case"onClick":u!=null&&(t.onclick=zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yc.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(h=i.endsWith("Capture"),e=i.slice(2,h?i.length-7:void 0),m=t[za]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(e,m,h),typeof u=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,u,h);break t}i in t?t[i]=u:u===!0?t.setAttribute(i,""):Du(t,i,u)}}}function Va(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",t),le("load",t);var u=!1,h=!1,m;for(m in i)if(i.hasOwnProperty(m)){var E=i[m];if(E!=null)switch(m){case"src":u=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,e));default:Te(t,e,m,E,i,null)}}h&&Te(t,e,"srcSet",i.srcSet,i,null),u&&Te(t,e,"src",i.src,i,null);return;case"input":le("invalid",t);var z=m=E=h=null,N=null,Z=null;for(u in i)if(i.hasOwnProperty(u)){var $=i[u];if($!=null)switch(u){case"name":h=$;break;case"type":E=$;break;case"checked":N=$;break;case"defaultChecked":Z=$;break;case"value":m=$;break;case"defaultValue":z=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(f(137,e));break;default:Te(t,e,u,$,i,null)}}Lc(t,m,z,N,Z,E,h,!1);return;case"select":le("invalid",t),u=E=m=null;for(h in i)if(i.hasOwnProperty(h)&&(z=i[h],z!=null))switch(h){case"value":m=z;break;case"defaultValue":E=z;break;case"multiple":u=z;default:Te(t,e,h,z,i,null)}e=m,i=E,t.multiple=!!u,e!=null?An(t,!!u,e,!1):i!=null&&An(t,!!u,i,!0);return;case"textarea":le("invalid",t),m=h=u=null;for(E in i)if(i.hasOwnProperty(E)&&(z=i[E],z!=null))switch(E){case"value":u=z;break;case"defaultValue":h=z;break;case"children":m=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(91));break;default:Te(t,e,E,z,i,null)}Qc(t,u,h,m);return;case"option":for(N in i)if(i.hasOwnProperty(N)&&(u=i[N],u!=null))switch(N){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Te(t,e,N,u,i,null)}return;case"dialog":le("beforetoggle",t),le("toggle",t),le("cancel",t),le("close",t);break;case"iframe":case"object":le("load",t);break;case"video":case"audio":for(u=0;u<Nl.length;u++)le(Nl[u],t);break;case"image":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"embed":case"source":case"link":le("error",t),le("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(Z in i)if(i.hasOwnProperty(Z)&&(u=i[Z],u!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,e));default:Te(t,e,Z,u,i,null)}return;default:if(Vc(e)){for($ in i)i.hasOwnProperty($)&&(u=i[$],u!==void 0&&z1(t,e,$,u,i,void 0));return}}for(z in i)i.hasOwnProperty(z)&&(u=i[z],u!=null&&Te(t,e,z,u,i,null))}function K3(t,e,i,u){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,E=null,z=null,N=null,Z=null,$=null;for(F in i){var et=i[F];if(i.hasOwnProperty(F)&&et!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":N=et;default:u.hasOwnProperty(F)||Te(t,e,F,null,u,et)}}for(var J in u){var F=u[J];if(et=i[J],u.hasOwnProperty(J)&&(F!=null||et!=null))switch(J){case"type":m=F;break;case"name":h=F;break;case"checked":Z=F;break;case"defaultChecked":$=F;break;case"value":E=F;break;case"defaultValue":z=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(f(137,e));break;default:F!==et&&Te(t,e,J,F,u,et)}}Nu(t,E,z,N,Z,$,m,h);return;case"select":F=E=z=J=null;for(m in i)if(N=i[m],i.hasOwnProperty(m)&&N!=null)switch(m){case"value":break;case"multiple":F=N;default:u.hasOwnProperty(m)||Te(t,e,m,null,u,N)}for(h in u)if(m=u[h],N=i[h],u.hasOwnProperty(h)&&(m!=null||N!=null))switch(h){case"value":J=m;break;case"defaultValue":z=m;break;case"multiple":E=m;default:m!==N&&Te(t,e,h,m,u,N)}e=z,i=E,u=F,J!=null?An(t,!!i,J,!1):!!u!=!!i&&(e!=null?An(t,!!i,e,!0):An(t,!!i,i?[]:"",!1));return;case"textarea":F=J=null;for(z in i)if(h=i[z],i.hasOwnProperty(z)&&h!=null&&!u.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Te(t,e,z,null,u,h)}for(E in u)if(h=u[E],m=i[E],u.hasOwnProperty(E)&&(h!=null||m!=null))switch(E){case"value":J=h;break;case"defaultValue":F=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(f(91));break;default:h!==m&&Te(t,e,E,h,u,m)}jc(t,J,F);return;case"option":for(var Tt in i)if(J=i[Tt],i.hasOwnProperty(Tt)&&J!=null&&!u.hasOwnProperty(Tt))switch(Tt){case"selected":t.selected=!1;break;default:Te(t,e,Tt,null,u,J)}for(N in u)if(J=u[N],F=i[N],u.hasOwnProperty(N)&&J!==F&&(J!=null||F!=null))switch(N){case"selected":t.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:Te(t,e,N,J,u,F)}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 Nt in i)J=i[Nt],i.hasOwnProperty(Nt)&&J!=null&&!u.hasOwnProperty(Nt)&&Te(t,e,Nt,null,u,J);for(Z in u)if(J=u[Z],F=i[Z],u.hasOwnProperty(Z)&&J!==F&&(J!=null||F!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(f(137,e));break;default:Te(t,e,Z,J,u,F)}return;default:if(Vc(e)){for(var Ce in i)J=i[Ce],i.hasOwnProperty(Ce)&&J!==void 0&&!u.hasOwnProperty(Ce)&&z1(t,e,Ce,void 0,u,J);for($ in u)J=u[$],F=i[$],!u.hasOwnProperty($)||J===F||J===void 0&&F===void 0||z1(t,e,$,J,u,F);return}}for(var Y in i)J=i[Y],i.hasOwnProperty(Y)&&J!=null&&!u.hasOwnProperty(Y)&&Te(t,e,Y,null,u,J);for(et in u)J=u[et],F=i[et],!u.hasOwnProperty(et)||J===F||J==null&&F==null||Te(t,e,et,J,u,F)}function Hd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function J3(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),u=0;u<i.length;u++){var h=i[u],m=h.transferSize,E=h.initiatorType,z=h.duration;if(m&&z&&Hd(E)){for(E=0,z=h.responseEnd,u+=1;u<i.length;u++){var N=i[u],Z=N.startTime;if(Z>z)break;var $=N.transferSize,et=N.initiatorType;$&&Hd(et)&&(N=N.responseEnd,E+=$*(N<z?1:(z-Z)/(N-Z)))}if(--u,e+=8*(m+E)/(h.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 M1=null,O1=null;function R0(t){return t.nodeType===9?t:t.ownerDocument}function Ud(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 Bd(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 x1(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 R1=null;function w3(){var t=window.event;return t&&t.type==="popstate"?t===R1?!1:(R1=t,!0):(R1=null,!1)}var Yd=typeof setTimeout=="function"?setTimeout:void 0,W3=typeof clearTimeout=="function"?clearTimeout:void 0,qd=typeof Promise=="function"?Promise:void 0,F3=typeof queueMicrotask=="function"?queueMicrotask:typeof qd<"u"?function(t){return qd.resolve(null).then(t).catch(k3)}:Yd;function k3(t){setTimeout(function(){throw t})}function vs(t){return t==="head"}function Xd(t,e){var i=e,u=0;do{var h=i.nextSibling;if(t.removeChild(i),h&&h.nodeType===8)if(i=h.data,i==="/$"||i==="/&"){if(u===0){t.removeChild(h),kf(e);return}u--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")u++;else if(i==="html")Mr(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Mr(i);for(var m=i.firstChild;m;){var E=m.nextSibling,z=m.nodeName;m[Tn]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=E}}else i==="body"&&Mr(t.ownerDocument.body);i=h}while(i);kf(e)}function Ld(t,e){var i=t;t=0;do{var u=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||""),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=u}while(i)}function D1(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":D1(i),Bi(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function P3(t,e,i,u){for(;t.nodeType===1;){var h=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[Tn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=vn(t.nextSibling),t===null)break}return null}function I3(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=vn(t.nextSibling),t===null))return null;return t}function jd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=vn(t.nextSibling),t===null))return null;return t}function N1(t){return t.data==="$?"||t.data==="$~"}function G1(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function $3(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var u=function(){e(),i.removeEventListener("DOMContentLoaded",u)};i.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function vn(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 H1=null;function Qd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return vn(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function Vd(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 Zd(t,e,i){switch(e=R0(i),t){case"html":if(t=e.documentElement,!t)throw Error(f(452));return t;case"head":if(t=e.head,!t)throw Error(f(453));return t;case"body":if(t=e.body,!t)throw Error(f(454));return t;default:throw Error(f(451))}}function Mr(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Bi(t)}var yn=new Map,Kd=new Set;function D0(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var mu=it.d;it.d={f:t4,r:e4,D:a4,C:l4,L:n4,m:i4,X:s4,S:u4,M:c4};function t4(){var t=mu.f(),e=Xl();return t||e}function e4(t){var e=qi(t);e!==null&&e.tag===5&&e.type==="form"?d0(e):mu.r(t)}var wf=typeof document>"u"?null:document;function Jd(t,e,i){var u=wf;if(u&&typeof e=="string"&&e){var h=Oa(e);h='link[rel="'+t+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),Kd.has(h)||(Kd.add(h),t={rel:t,crossOrigin:i,href:e},u.querySelector(h)===null&&(e=u.createElement("link"),Va(e,"link",t),ta(e),u.head.appendChild(e)))}}function a4(t){mu.D(t),Jd("dns-prefetch",t,null)}function l4(t,e){mu.C(t,e),Jd("preconnect",t,e)}function n4(t,e,i){mu.L(t,e,i);var u=wf;if(u&&t&&e){var h='link[rel="preload"][as="'+Oa(e)+'"]';e==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+Oa(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+Oa(i.imageSizes)+'"]')):h+='[href="'+Oa(t)+'"]';var m=h;switch(e){case"style":m=Wf(t);break;case"script":m=Ff(t)}yn.has(m)||(t=M({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),yn.set(m,t),u.querySelector(h)!==null||e==="style"&&u.querySelector(Or(m))||e==="script"&&u.querySelector(xr(m))||(e=u.createElement("link"),Va(e,"link",t),ta(e),u.head.appendChild(e)))}}function i4(t,e){mu.m(t,e);var i=wf;if(i&&t){var u=e&&typeof e.as=="string"?e.as:"script",h='link[rel="modulepreload"][as="'+Oa(u)+'"][href="'+Oa(t)+'"]',m=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ff(t)}if(!yn.has(m)&&(t=M({rel:"modulepreload",href:t},e),yn.set(m,t),i.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(xr(m)))return}u=i.createElement("link"),Va(u,"link",t),ta(u),i.head.appendChild(u)}}}function u4(t,e,i){mu.S(t,e,i);var u=wf;if(u&&t){var h=$n(u).hoistableStyles,m=Wf(t);e=e||"default";var E=h.get(m);if(!E){var z={loading:0,preload:null};if(E=u.querySelector(Or(m)))z.loading=5;else{t=M({rel:"stylesheet",href:t,"data-precedence":e},i),(i=yn.get(m))&&U1(t,i);var N=E=u.createElement("link");ta(N),Va(N,"link",t),N._p=new Promise(function(Z,$){N.onload=Z,N.onerror=$}),N.addEventListener("load",function(){z.loading|=1}),N.addEventListener("error",function(){z.loading|=2}),z.loading|=4,N0(E,e,u)}E={type:"stylesheet",instance:E,count:1,state:z},h.set(m,E)}}}function s4(t,e){mu.X(t,e);var i=wf;if(i&&t){var u=$n(i).hoistableScripts,h=Ff(t),m=u.get(h);m||(m=i.querySelector(xr(h)),m||(t=M({src:t,async:!0},e),(e=yn.get(h))&&B1(t,e),m=i.createElement("script"),ta(m),Va(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function c4(t,e){mu.M(t,e);var i=wf;if(i&&t){var u=$n(i).hoistableScripts,h=Ff(t),m=u.get(h);m||(m=i.querySelector(xr(h)),m||(t=M({src:t,async:!0,type:"module"},e),(e=yn.get(h))&&B1(t,e),m=i.createElement("script"),ta(m),Va(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function wd(t,e,i,u){var h=(h=Lt.current)?D0(h):null;if(!h)throw Error(f(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Wf(i.href),i=$n(h).hoistableStyles,u=i.get(e),u||(u={type:"style",instance:null,count:0,state:null},i.set(e,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Wf(i.href);var m=$n(h).hoistableStyles,E=m.get(t);if(E||(h=h.ownerDocument||h,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,E),(m=h.querySelector(Or(t)))&&!m._p&&(E.instance=m,E.state.loading=5),yn.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},yn.set(t,i),m||f4(h,t,i,E.state))),e&&u===null)throw Error(f(528,""));return E}if(e&&u!==null)throw Error(f(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ff(i),i=$n(h).hoistableScripts,u=i.get(e),u||(u={type:"script",instance:null,count:0,state:null},i.set(e,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,t))}}function Wf(t){return'href="'+Oa(t)+'"'}function Or(t){return'link[rel="stylesheet"]['+t+"]"}function Wd(t){return M({},t,{"data-precedence":t.precedence,precedence:null})}function f4(t,e,i,u){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?u.loading=1:(e=t.createElement("link"),u.preload=e,e.addEventListener("load",function(){return u.loading|=1}),e.addEventListener("error",function(){return u.loading|=2}),Va(e,"link",i),ta(e),t.head.appendChild(e))}function Ff(t){return'[src="'+Oa(t)+'"]'}function xr(t){return"script[async]"+t}function Fd(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var u=t.querySelector('style[data-href~="'+Oa(i.href)+'"]');if(u)return e.instance=u,ta(u),u;var h=M({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),ta(u),Va(u,"style",h),N0(u,i.precedence,t),e.instance=u;case"stylesheet":h=Wf(i.href);var m=t.querySelector(Or(h));if(m)return e.state.loading|=4,e.instance=m,ta(m),m;u=Wd(i),(h=yn.get(h))&&U1(u,h),m=(t.ownerDocument||t).createElement("link"),ta(m);var E=m;return E._p=new Promise(function(z,N){E.onload=z,E.onerror=N}),Va(m,"link",u),e.state.loading|=4,N0(m,i.precedence,t),e.instance=m;case"script":return m=Ff(i.src),(h=t.querySelector(xr(m)))?(e.instance=h,ta(h),h):(u=i,(h=yn.get(m))&&(u=M({},i),B1(u,h)),t=t.ownerDocument||t,h=t.createElement("script"),ta(h),Va(h,"link",u),t.head.appendChild(h),e.instance=h);case"void":return null;default:throw Error(f(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(u=e.instance,e.state.loading|=4,N0(u,i.precedence,t));return e.instance}function N0(t,e,i){for(var u=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,m=h,E=0;E<u.length;E++){var z=u[E];if(z.dataset.precedence===e)m=z;else if(m!==h)break}m?m.parentNode.insertBefore(t,m.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function U1(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function B1(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var G0=null;function kd(t,e,i){if(G0===null){var u=new Map,h=G0=new Map;h.set(i,u)}else h=G0,u=h.get(i),u||(u=new Map,h.set(i,u));if(u.has(t))return u;for(u.set(t,null),i=i.getElementsByTagName(t),h=0;h<i.length;h++){var m=i[h];if(!(m[Tn]||m[$e]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var E=m.getAttribute(e)||"";E=t+E;var z=u.get(E);z?z.push(m):u.set(E,[m])}}return u}function Pd(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function o4(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 Id(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function r4(t,e,i,u){if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=Wf(u.href),m=e.querySelector(Or(h));if(m){e=m._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=H0.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=m,ta(m);return}m=e.ownerDocument||e,u=Wd(u),(h=yn.get(h))&&U1(u,h),m=m.createElement("link"),ta(m);var E=m;E._p=new Promise(function(z,N){E.onload=z,E.onerror=N}),Va(m,"link",u),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=H0.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Y1=0;function h4(t,e){return t.stylesheets&&t.count===0&&B0(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var u=setTimeout(function(){if(t.stylesheets&&B0(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+e);0<t.imgBytes&&Y1===0&&(Y1=62500*J3());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&B0(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>Y1?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function H0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)B0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var U0=null;function B0(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,U0=new Map,e.forEach(d4,t),U0=null,H0.call(t))}function d4(t,e){if(!(e.state.loading&4)){var i=U0.get(t);if(i)var u=i.get(null);else{i=new Map,U0.set(t,i);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var E=h[m];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(i.set(E.dataset.precedence,E),u=E)}u&&i.set(null,u)}h=e.instance,E=h.getAttribute("data-precedence"),m=i.get(E)||u,m===u&&i.set(null,h),i.set(E,h),this.count++,u=H0.bind(this),h.addEventListener("load",u),h.addEventListener("error",u),m?m.parentNode.insertBefore(h,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),e.state.loading|=4}}var Rr={$$typeof:I,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function m4(t,e,i,u,h,m,E,z,N){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=Gc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gc(0),this.hiddenUpdates=Gc(null),this.identifierPrefix=u,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function $d(t,e,i,u,h,m,E,z,N,Z,$,et){return t=new m4(t,e,i,E,N,Z,$,et,z),e=1,m===!0&&(e|=24),m=Be(3,null,null,e),t.current=m,m.stateNode=t,e=Ho(),e.refCount++,t.pooledCache=e,e.refCount++,m.memoizedState={element:u,isDehydrated:i,cache:e},lc(m),t}function t2(t){return t?(t=ii,t):ii}function e2(t,e,i,u,h,m){h=t2(h),u.context===null?u.context=h:u.pendingContext=h,u=Hn(e),u.payload={element:i},m=m===void 0?null:m,m!==null&&(u.callback=m),i=di(t,u,e),i!==null&&(wt(i,t,e),mi(i,t,e))}function a2(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function q1(t,e){a2(t,e),(t=t.alternate)&&a2(t,e)}function l2(t){if(t.tag===13||t.tag===31){var e=Ua(t,67108864);e!==null&&wt(e,t,67108864),q1(t,67108864)}}function n2(t){if(t.tag===13||t.tag===31){var e=dl();e=Ou(e);var i=Ua(t,e);i!==null&&wt(i,t,e),q1(t,e)}}var Y0=!0;function g4(t,e,i,u){var h=U.T;U.T=null;var m=it.p;try{it.p=2,X1(t,e,i,u)}finally{it.p=m,U.T=h}}function v4(t,e,i,u){var h=U.T;U.T=null;var m=it.p;try{it.p=8,X1(t,e,i,u)}finally{it.p=m,U.T=h}}function X1(t,e,i,u){if(Y0){var h=L1(u);if(h===null)A1(t,e,u,q0,i),u2(t,u);else if(p4(h,t,e,i,u))u.stopPropagation();else if(u2(t,u),e&4&&-1<y4.indexOf(t)){for(;h!==null;){var m=qi(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var E=Wn(m.pendingLanes);if(E!==0){var z=m;for(z.pendingLanes|=2,z.entangledLanes|=2;E;){var N=1<<31-el(E);z.entanglements[1]|=N,E&=~N}ut(m),(At&6)===0&&(ke=Aa()+500,yt(0))}}break;case 31:case 13:z=Ua(m,2),z!==null&&wt(z,m,2),Xl(),q1(m,2)}if(m=L1(u),m===null&&A1(t,e,u,q0,i),m===h)break;h=m}h!==null&&u.stopPropagation()}else A1(t,e,u,null,i)}}function L1(t){return t=Kc(t),j1(t)}var q0=null;function j1(t){if(q0=null,t=Yi(t),t!==null){var e=g(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=v(e),t!==null)return t;t=null}else if(i===31){if(t=p(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 q0=t,null}function i2(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(eh()){case Dc:return 2;case bu:return 8;case Ni:case Zl:return 32;case Gi:return 268435456;default:return 32}default:return 32}}var Q1=!1,ys=null,ps=null,Ss=null,Dr=new Map,Nr=new Map,_s=[],y4="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 u2(t,e){switch(t){case"focusin":case"focusout":ys=null;break;case"dragenter":case"dragleave":ps=null;break;case"mouseover":case"mouseout":Ss=null;break;case"pointerover":case"pointerout":Dr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nr.delete(e.pointerId)}}function Gr(t,e,i,u,h,m){return t===null||t.nativeEvent!==m?(t={blockedOn:e,domEventName:i,eventSystemFlags:u,nativeEvent:m,targetContainers:[h]},e!==null&&(e=qi(e),e!==null&&l2(e)),t):(t.eventSystemFlags|=u,e=t.targetContainers,h!==null&&e.indexOf(h)===-1&&e.push(h),t)}function p4(t,e,i,u,h){switch(e){case"focusin":return ys=Gr(ys,t,e,i,u,h),!0;case"dragenter":return ps=Gr(ps,t,e,i,u,h),!0;case"mouseover":return Ss=Gr(Ss,t,e,i,u,h),!0;case"pointerover":var m=h.pointerId;return Dr.set(m,Gr(Dr.get(m)||null,t,e,i,u,h)),!0;case"gotpointercapture":return m=h.pointerId,Nr.set(m,Gr(Nr.get(m)||null,t,e,i,u,h)),!0}return!1}function s2(t){var e=Yi(t.target);if(e!==null){var i=g(e);if(i!==null){if(e=i.tag,e===13){if(e=v(i),e!==null){t.blockedOn=e,kn(t.priority,function(){n2(i)});return}}else if(e===31){if(e=p(i),e!==null){t.blockedOn=e,kn(t.priority,function(){n2(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 X0(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=L1(t.nativeEvent);if(i===null){i=t.nativeEvent;var u=new i.constructor(i.type,i);Zc=u,i.target.dispatchEvent(u),Zc=null}else return e=qi(i),e!==null&&l2(e),t.blockedOn=i,!1;e.shift()}return!0}function c2(t,e,i){X0(t)&&i.delete(e)}function S4(){Q1=!1,ys!==null&&X0(ys)&&(ys=null),ps!==null&&X0(ps)&&(ps=null),Ss!==null&&X0(Ss)&&(Ss=null),Dr.forEach(c2),Nr.forEach(c2)}function L0(t,e){t.blockedOn===e&&(t.blockedOn=null,Q1||(Q1=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,S4)))}var j0=null;function f2(t){j0!==t&&(j0=t,d.unstable_scheduleCallback(d.unstable_NormalPriority,function(){j0===t&&(j0=null);for(var e=0;e<t.length;e+=3){var i=t[e],u=t[e+1],h=t[e+2];if(typeof u!="function"){if(j1(u||i)===null)continue;break}var m=qi(i);m!==null&&(t.splice(e,3),e-=3,sr(m,{pending:!0,data:h,method:i.method,action:u},u,h))}}))}function kf(t){function e(N){return L0(N,t)}ys!==null&&L0(ys,t),ps!==null&&L0(ps,t),Ss!==null&&L0(Ss,t),Dr.forEach(e),Nr.forEach(e);for(var i=0;i<_s.length;i++){var u=_s[i];u.blockedOn===t&&(u.blockedOn=null)}for(;0<_s.length&&(i=_s[0],i.blockedOn===null);)s2(i),i.blockedOn===null&&_s.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(u=0;u<i.length;u+=3){var h=i[u],m=i[u+1],E=h[za]||null;if(typeof m=="function")E||f2(i);else if(E){var z=null;if(m&&m.hasAttribute("formAction")){if(h=m,E=m[za]||null)z=E.formAction;else if(j1(h)!==null)continue}else z=E.action;typeof z=="function"?i[u+1]=z:(i.splice(u,3),u-=3),f2(i)}}}function o2(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(E){return h=E})},focusReset:"manual",scroll:"manual"})}function e(){h!==null&&(h(),h=null),u||setTimeout(i,20)}function i(){if(!u&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,h=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){u=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),h!==null&&(h(),h=null)}}}function V1(t){this._internalRoot=t}Q0.prototype.render=V1.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(f(409));var i=e.current,u=dl();e2(i,u,t,e,null,null)},Q0.prototype.unmount=V1.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;e2(t.current,2,null,t,null,null),Xl(),e[Pn]=null}};function Q0(t){this._internalRoot=t}Q0.prototype.unstable_scheduleHydration=function(t){if(t){var e=Uc();t={blockedOn:null,target:t,priority:e};for(var i=0;i<_s.length&&e!==0&&e<_s[i].priority;i++);_s.splice(i,0,t),i===0&&s2(t)}};var r2=l.version;if(r2!=="19.2.7")throw Error(f(527,r2,"19.2.7"));it.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(f(188)):(t=Object.keys(t).join(","),Error(f(268,t)));return t=b(e),t=t!==null?T(t):null,t=t===null?null:t.stateNode,t};var _4={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var V0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!V0.isDisabled&&V0.supportsFiber)try{Tu=V0.inject(_4),Za=V0}catch{}}return Hr.createRoot=function(t,e){if(!o(t))throw Error(f(299));var i=!1,u="",h=_0,m=dr,E=mr;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(u=e.identifierPrefix),e.onUncaughtError!==void 0&&(h=e.onUncaughtError),e.onCaughtError!==void 0&&(m=e.onCaughtError),e.onRecoverableError!==void 0&&(E=e.onRecoverableError)),e=$d(t,1,!1,null,null,i,u,null,h,m,E,o2),t[Pn]=e.current,C1(t),new V1(e)},Hr.hydrateRoot=function(t,e,i){if(!o(t))throw Error(f(299));var u=!1,h="",m=_0,E=dr,z=mr,N=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(E=i.onCaughtError),i.onRecoverableError!==void 0&&(z=i.onRecoverableError),i.formState!==void 0&&(N=i.formState)),e=$d(t,1,!0,e,i??null,u,h,N,m,E,z,o2),e.context=t2(null),i=e.current,u=dl(),u=Ou(u),h=Hn(u),h.callback=null,di(i,h,u),i=u,e.current.lanes=i,zu(e,i),ut(e),t[Pn]=e.current,C1(t),new Q0(e)},Hr.version="19.2.7",Hr}var S2;function z4(){if(S2)return K1.exports;S2=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(l){console.error(l)}}return d(),K1.exports=A4(),K1.exports}var M4=z4();const O4=l1(M4);var Ed=e3();const x4=l1(Ed),Ng=t3({__proto__:null,default:x4},[Ed]),R4=Math.PI/180;function D4(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const Cc=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},vt={_global:Cc,version:"10.3.0",isBrowser:D4(),isUnminified:/param/.test(function(d){}.toString()),dblClickWindow:400,getAngle(d){return vt.angleDeg?d*R4:d},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_renderBackend:"web",legacyTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return vt.DD.isDragging},isTransforming(){var d,l;return(l=(d=vt.Transformer)===null||d===void 0?void 0:d.isTransforming())!==null&&l!==void 0?l:!1},isDragReady(){return!!vt.DD.node},releaseCanvasOnDestroy:!0,document:Cc.document,_injectGlobal(d){typeof Cc.Konva<"u"&&console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."),Cc.Konva=d}},Ie=d=>{vt[d.prototype.getClassName()]=d};vt._injectGlobal(vt);const N4=`Konva.js unsupported environment.
|
|
42
|
+
|
|
43
|
+
Looks like you are trying to use Konva.js in Node.js environment. because "document" object is undefined.
|
|
44
|
+
|
|
45
|
+
To use Konva.js in Node.js environment, you need to use the "canvas-backend" or "skia-backend" module.
|
|
46
|
+
|
|
47
|
+
bash: npm install canvas
|
|
48
|
+
js: import "konva/canvas-backend";
|
|
49
|
+
|
|
50
|
+
or
|
|
51
|
+
|
|
52
|
+
bash: npm install skia-canvas
|
|
53
|
+
js: import "konva/skia-backend";
|
|
54
|
+
`,_2=()=>{if(typeof document>"u")throw new Error(N4)};class Ll{constructor(l=[1,0,0,1,0,0]){this.dirty=!1,this.m=l&&l.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new Ll(this.m)}copyInto(l){l.m[0]=this.m[0],l.m[1]=this.m[1],l.m[2]=this.m[2],l.m[3]=this.m[3],l.m[4]=this.m[4],l.m[5]=this.m[5]}point(l){const s=this.m;return{x:s[0]*l.x+s[2]*l.y+s[4],y:s[1]*l.x+s[3]*l.y+s[5]}}translate(l,s){return this.m[4]+=this.m[0]*l+this.m[2]*s,this.m[5]+=this.m[1]*l+this.m[3]*s,this}scale(l,s){return this.m[0]*=l,this.m[1]*=l,this.m[2]*=s,this.m[3]*=s,this}rotate(l){const s=Math.cos(l),f=Math.sin(l),o=this.m[0]*s+this.m[2]*f,g=this.m[1]*s+this.m[3]*f,v=this.m[0]*-f+this.m[2]*s,p=this.m[1]*-f+this.m[3]*s;return this.m[0]=o,this.m[1]=g,this.m[2]=v,this.m[3]=p,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(l,s){const f=this.m[0]+this.m[2]*s,o=this.m[1]+this.m[3]*s,g=this.m[2]+this.m[0]*l,v=this.m[3]+this.m[1]*l;return this.m[0]=f,this.m[1]=o,this.m[2]=g,this.m[3]=v,this}multiply(l){const s=this.m[0]*l.m[0]+this.m[2]*l.m[1],f=this.m[1]*l.m[0]+this.m[3]*l.m[1],o=this.m[0]*l.m[2]+this.m[2]*l.m[3],g=this.m[1]*l.m[2]+this.m[3]*l.m[3],v=this.m[0]*l.m[4]+this.m[2]*l.m[5]+this.m[4],p=this.m[1]*l.m[4]+this.m[3]*l.m[5]+this.m[5];return this.m[0]=s,this.m[1]=f,this.m[2]=o,this.m[3]=g,this.m[4]=v,this.m[5]=p,this}invert(){const l=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),s=this.m[3]*l,f=-this.m[1]*l,o=-this.m[2]*l,g=this.m[0]*l,v=l*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),p=l*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=s,this.m[1]=f,this.m[2]=o,this.m[3]=g,this.m[4]=v,this.m[5]=p,this}getMatrix(){return this.m}decompose(){const l=this.m[0],s=this.m[1],f=this.m[2],o=this.m[3],g=this.m[4],v=this.m[5],p=l*o-s*f,S={x:g,y:v,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(l!=0||s!=0){const b=Math.sqrt(l*l+s*s);S.rotation=s>0?Math.acos(l/b):-Math.acos(l/b),S.scaleX=b,S.scaleY=p/b,S.skewX=(l*f+s*o)/p,S.skewY=0}else if(f!=0||o!=0){const b=Math.sqrt(f*f+o*o);S.rotation=Math.PI/2-(o>0?Math.acos(-f/b):-Math.acos(f/b)),S.scaleX=p/b,S.scaleY=b,S.skewX=0,S.skewY=(l*f+s*o)/p}return S.rotation=B._getRotation(S.rotation),S}}const G4="[object Array]",H4="[object Number]",U4="[object String]",B4="[object Boolean]",Y4=Math.PI/180,q4=180/Math.PI,Ur="#",X4="",L4="0",j4="Konva warning: ",E2="Konva error: ",Q4="rgb(",F1={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},V4=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let Z0=[],Br=null;const Z4=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(d){setTimeout(d,16)},B={_isElement(d){return!!(d&&d.nodeType==1)},_isFunction(d){return!!(d&&d.constructor&&d.call&&d.apply)},_isPlainObject(d){return!!d&&d.constructor===Object},_isArray(d){return Object.prototype.toString.call(d)===G4},_isNumber(d){return Object.prototype.toString.call(d)===H4&&!isNaN(d)&&isFinite(d)},_isString(d){return Object.prototype.toString.call(d)===U4},_isBoolean(d){return Object.prototype.toString.call(d)===B4},isObject(d){return d instanceof Object},isValidSelector(d){if(typeof d!="string")return!1;const l=d[0];return l==="#"||l==="."||l===l.toUpperCase()},_sign(d){return d===0||d>0?1:-1},requestAnimFrame(d){Z0.push(d),Z0.length===1&&Z4(function(){const l=Z0;Z0=[],l.forEach(function(s){s()})})},createCanvasElement(){_2();const d=document.createElement("canvas");try{d.style=d.style||{}}catch{}return d},createImageElement(){return _2(),document.createElement("img")},_isInDocument(d){for(;d=d.parentNode;)if(d==document)return!0;return!1},_urlToImage(d,l){const s=B.createImageElement();s.onload=function(){l(s)},s.src=d},_rgbToHex(d,l,s){return((1<<24)+(d<<16)+(l<<8)+s).toString(16).slice(1)},_hexToRgb(d){d=d.replace(Ur,X4);const l=parseInt(d,16);return{r:l>>16&255,g:l>>8&255,b:l&255}},getRandomColor(){let d=(Math.random()*16777215<<0).toString(16);for(;d.length<6;)d=L4+d;return Ur+d},isCanvasFarblingActive(){if(Br!==null)return Br;if(typeof document>"u")return Br=!1,!1;const d=this.createCanvasElement();d.width=10,d.height=10;const l=d.getContext("2d",{willReadFrequently:!0});l.clearRect(0,0,10,10),l.fillStyle="#282828",l.fillRect(0,0,10,10);const s=l.getImageData(0,0,10,10).data;let f=!1;for(let o=0;o<100;o++)if(s[o*4]!==40||s[o*4+1]!==40||s[o*4+2]!==40||s[o*4+3]!==255){f=!0;break}return Br=f,this.releaseCanvas(d),Br},getHitColor(){const d=this.getRandomColor();return this.isCanvasFarblingActive()?this.getSnappedHexColor(d):d},getHitColorKey(d,l,s){return this.isCanvasFarblingActive()&&(d=Math.round(d/5)*5,l=Math.round(l/5)*5,s=Math.round(s/5)*5),Ur+this._rgbToHex(d,l,s)},getSnappedHexColor(d){const l=this._hexToRgb(d);return Ur+this._rgbToHex(Math.round(l.r/5)*5,Math.round(l.g/5)*5,Math.round(l.b/5)*5)},getRGB(d){let l;return d in F1?(l=F1[d],{r:l[0],g:l[1],b:l[2]}):d[0]===Ur?this._hexToRgb(d.substring(1)):d.substr(0,4)===Q4?(l=V4.exec(d.replace(/ /g,"")),{r:parseInt(l[1],10),g:parseInt(l[2],10),b:parseInt(l[3],10)}):{r:0,g:0,b:0}},colorToRGBA(d){return d=d||"black",B._namedColorToRBA(d)||B._hex3ColorToRGBA(d)||B._hex4ColorToRGBA(d)||B._hex6ColorToRGBA(d)||B._hex8ColorToRGBA(d)||B._rgbColorToRGBA(d)||B._rgbaColorToRGBA(d)||B._hslColorToRGBA(d)},_namedColorToRBA(d){const l=F1[d.toLowerCase()];return l?{r:l[0],g:l[1],b:l[2],a:1}:null},_rgbColorToRGBA(d){if(d.indexOf("rgb(")===0){d=d.match(/rgb\(([^)]+)\)/)[1];const l=d.split(/ *, */).map(Number);return{r:l[0],g:l[1],b:l[2],a:1}}},_rgbaColorToRGBA(d){if(d.indexOf("rgba(")===0){d=d.match(/rgba\(([^)]+)\)/)[1];const l=d.split(/ *, */).map((s,f)=>s.slice(-1)==="%"?f===3?parseInt(s)/100:parseInt(s)/100*255:Number(s));return{r:l[0],g:l[1],b:l[2],a:l[3]}}},_hex8ColorToRGBA(d){if(d[0]==="#"&&d.length===9)return{r:parseInt(d.slice(1,3),16),g:parseInt(d.slice(3,5),16),b:parseInt(d.slice(5,7),16),a:parseInt(d.slice(7,9),16)/255}},_hex6ColorToRGBA(d){if(d[0]==="#"&&d.length===7)return{r:parseInt(d.slice(1,3),16),g:parseInt(d.slice(3,5),16),b:parseInt(d.slice(5,7),16),a:1}},_hex4ColorToRGBA(d){if(d[0]==="#"&&d.length===5)return{r:parseInt(d[1]+d[1],16),g:parseInt(d[2]+d[2],16),b:parseInt(d[3]+d[3],16),a:parseInt(d[4]+d[4],16)/255}},_hex3ColorToRGBA(d){if(d[0]==="#"&&d.length===4)return{r:parseInt(d[1]+d[1],16),g:parseInt(d[2]+d[2],16),b:parseInt(d[3]+d[3],16),a:1}},_hslColorToRGBA(d){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(d)){const[l,...s]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(d),f=Number(s[0])/360,o=Number(s[1])/100,g=Number(s[2])/100;let v,p,S;if(o===0)return S=g*255,{r:Math.round(S),g:Math.round(S),b:Math.round(S),a:1};g<.5?v=g*(1+o):v=g+o-g*o;const b=2*g-v,T=[0,0,0];for(let M=0;M<3;M++)p=f+1/3*-(M-1),p<0&&p++,p>1&&p--,6*p<1?S=b+(v-b)*6*p:2*p<1?S=v:3*p<2?S=b+(v-b)*(2/3-p)*6:S=b,T[M]=S*255;return{r:Math.round(T[0]),g:Math.round(T[1]),b:Math.round(T[2]),a:1}}},haveIntersection(d,l){return!(l.x>d.x+d.width||l.x+l.width<d.x||l.y>d.y+d.height||l.y+l.height<d.y)},cloneObject(d){const l={};for(const s in d)this._isPlainObject(d[s])?l[s]=this.cloneObject(d[s]):this._isArray(d[s])?l[s]=this.cloneArray(d[s]):l[s]=d[s];return l},cloneArray(d){return d.slice(0)},degToRad(d){return d*Y4},radToDeg(d){return d*q4},_degToRad(d){return B.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),B.degToRad(d)},_radToDeg(d){return B.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),B.radToDeg(d)},_getRotation(d){return vt.angleDeg?B.radToDeg(d):d},_capitalize(d){return d.charAt(0).toUpperCase()+d.slice(1)},throw(d){throw new Error(E2+d)},error(d){console.error(E2+d)},warn(d){vt.showWarnings&&console.warn(j4+d)},each(d,l){for(const s in d)l(s,d[s])},_inRange(d,l,s){return l<=d&&d<s},_getProjectionToSegment(d,l,s,f,o,g){let v,p,S;const b=(d-s)*(d-s)+(l-f)*(l-f);if(b==0)v=d,p=l,S=(o-s)*(o-s)+(g-f)*(g-f);else{const T=((o-d)*(s-d)+(g-l)*(f-l))/b;T<0?(v=d,p=l,S=(d-o)*(d-o)+(l-g)*(l-g)):T>1?(v=s,p=f,S=(s-o)*(s-o)+(f-g)*(f-g)):(v=d+T*(s-d),p=l+T*(f-l),S=(v-o)*(v-o)+(p-g)*(p-g))}return[v,p,S]},_getProjectionToLine(d,l,s){const f=B.cloneObject(d);let o=Number.MAX_VALUE;return l.forEach(function(g,v){if(!s&&v===l.length-1)return;const p=l[(v+1)%l.length],S=B._getProjectionToSegment(g.x,g.y,p.x,p.y,d.x,d.y),b=S[0],T=S[1],M=S[2];M<o&&(f.x=b,f.y=T,o=M)}),f},_prepareArrayForTween(d,l,s){const f=[],o=[];if(d.length>l.length){const v=l;l=d,d=v}for(let v=0;v<d.length;v+=2)f.push({x:d[v],y:d[v+1]});for(let v=0;v<l.length;v+=2)o.push({x:l[v],y:l[v+1]});const g=[];return o.forEach(function(v){const p=B._getProjectionToLine(v,f,s);g.push(p.x),g.push(p.y)}),g},_prepareToStringify(d){let l;d.visitedByCircularReferenceRemoval=!0;for(const s in d)if(d.hasOwnProperty(s)&&d[s]&&typeof d[s]=="object"){if(l=Object.getOwnPropertyDescriptor(d,s),d[s].visitedByCircularReferenceRemoval||B._isElement(d[s]))if(l.configurable)delete d[s];else return null;else if(B._prepareToStringify(d[s])===null)if(l.configurable)delete d[s];else return null}return delete d.visitedByCircularReferenceRemoval,d},_assign(d,l){for(const s in l)d[s]=l[s];return d},_getFirstPointerId(d){return d.touches?d.changedTouches[0].identifier:d.pointerId||999},releaseCanvas(...d){vt.releaseCanvasOnDestroy&&d.forEach(l=>{l.width=0,l.height=0})},drawRoundedRectPath(d,l,s,f){let o=l<0?l:0,g=s<0?s:0;l=Math.abs(l),s=Math.abs(s);let v=0,p=0,S=0,b=0;typeof f=="number"?v=p=S=b=Math.min(f,l/2,s/2):(v=Math.min(f[0]||0,l/2,s/2),p=Math.min(f[1]||0,l/2,s/2),b=Math.min(f[2]||0,l/2,s/2),S=Math.min(f[3]||0,l/2,s/2)),d.moveTo(o+v,g),d.lineTo(o+l-p,g),d.arc(o+l-p,g+p,p,Math.PI*3/2,0,!1),d.lineTo(o+l,g+s-b),d.arc(o+l-b,g+s-b,b,0,Math.PI/2,!1),d.lineTo(o+S,g+s),d.arc(o+S,g+s-S,S,Math.PI/2,Math.PI,!1),d.lineTo(o,g+v),d.arc(o+v,g+v,v,Math.PI,Math.PI*3/2,!1)},drawRoundedPolygonPath(d,l,s,f,o){f=Math.abs(f);for(let g=0;g<s;g++){const v=l[(g-1+s)%s],p=l[g],S=l[(g+1)%s],b={x:p.x-v.x,y:p.y-v.y},T={x:S.x-p.x,y:S.y-p.y},M=Math.hypot(b.x,b.y),A=Math.hypot(T.x,T.y);let x;typeof o=="number"?x=o:x=g<o.length?o[g]:0,x=f*Math.cos(Math.PI/s)*Math.min(1,x/f*2);const L={x:b.x/M,y:b.y/M},X={x:T.x/A,y:T.y/A},Q={x:p.x-L.x*x,y:p.y-L.y*x},j={x:p.x+X.x*x,y:p.y+X.y*x};g===0?d.moveTo(Q.x,Q.y):d.lineTo(Q.x,Q.y),d.arcTo(p.x,p.y,j.x,j.y,x)}}};function K4(d){const l=[],s=d.length,f=B;for(let o=0;o<s;o++){let g=d[o];f._isNumber(g)?g=Math.round(g*1e3)/1e3:f._isString(g)||(g=g+""),l.push(g)}return l}const b2=",",J4="(",w4=")",W4="([",F4="])",k4=";",P4="()",I4="=",T2=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],$4=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled","filter"],t5=100;let K0=null;function C2(){if(K0!==null)return K0;try{const l=B.createCanvasElement().getContext("2d");return l?!!l&&"filter"in l:(K0=!1,!1)}catch{return K0=!1,!1}}class n1{constructor(l){this.canvas=l,vt.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(l){l.fillEnabled()&&this._fill(l)}_fill(l){}strokeShape(l){l.hasStroke()&&this._stroke(l)}_stroke(l){}fillStrokeShape(l){l.attrs.fillAfterStrokeEnabled?(this.strokeShape(l),this.fillShape(l)):(this.fillShape(l),this.strokeShape(l))}getTrace(l,s){let f=this.traceArr,o=f.length,g="",v,p,S,b;for(v=0;v<o;v++)p=f[v],S=p.method,S?(b=p.args,g+=S,l?g+=P4:B._isArray(b[0])?g+=W4+b.join(b2)+F4:(s&&(b=b.map(T=>typeof T=="number"?Math.floor(T):T)),g+=J4+b.join(b2)+w4)):(g+=p.property,l||(g+=I4+p.val)),g+=k4;return g}clearTrace(){this.traceArr=[]}_trace(l){let s=this.traceArr,f;s.push(l),f=s.length,f>=t5&&s.shift()}reset(){const l=this.getCanvas().getPixelRatio();this.setTransform(1*l,0,0,1*l,0,0)}getCanvas(){return this.canvas}clear(l){const s=this.getCanvas();l?this.clearRect(l.x||0,l.y||0,l.width||0,l.height||0):this.clearRect(0,0,s.getWidth()/s.pixelRatio,s.getHeight()/s.pixelRatio)}_applyLineCap(l){const s=l.attrs.lineCap;s&&this.setAttr("lineCap",s)}_applyOpacity(l){const s=l.getAbsoluteOpacity();s!==1&&this.setAttr("globalAlpha",s)}_applyLineJoin(l){const s=l.attrs.lineJoin;s&&this.setAttr("lineJoin",s)}_applyMiterLimit(l){const s=l.attrs.miterLimit;s!=null&&this.setAttr("miterLimit",s)}setAttr(l,s){this._context[l]=s}arc(l,s,f,o,g,v){this._context.arc(l,s,f,o,g,v)}arcTo(l,s,f,o,g){this._context.arcTo(l,s,f,o,g)}beginPath(){this._context.beginPath()}bezierCurveTo(l,s,f,o,g,v){this._context.bezierCurveTo(l,s,f,o,g,v)}clearRect(l,s,f,o){this._context.clearRect(l,s,f,o)}clip(...l){this._context.clip.apply(this._context,l)}closePath(){this._context.closePath()}createImageData(l,s){const f=arguments;if(f.length===2)return this._context.createImageData(l,s);if(f.length===1)return this._context.createImageData(l)}createLinearGradient(l,s,f,o){return this._context.createLinearGradient(l,s,f,o)}createPattern(l,s){return this._context.createPattern(l,s)}createRadialGradient(l,s,f,o,g,v){return this._context.createRadialGradient(l,s,f,o,g,v)}drawImage(l,s,f,o,g,v,p,S,b){const T=arguments,M=this._context;T.length===3?M.drawImage(l,s,f):T.length===5?M.drawImage(l,s,f,o,g):T.length===9&&M.drawImage(l,s,f,o,g,v,p,S,b)}ellipse(l,s,f,o,g,v,p,S){this._context.ellipse(l,s,f,o,g,v,p,S)}isPointInPath(l,s,f,o){return f?this._context.isPointInPath(f,l,s,o):this._context.isPointInPath(l,s,o)}fill(...l){this._context.fill.apply(this._context,l)}fillRect(l,s,f,o){this._context.fillRect(l,s,f,o)}strokeRect(l,s,f,o){this._context.strokeRect(l,s,f,o)}fillText(l,s,f,o){o?this._context.fillText(l,s,f,o):this._context.fillText(l,s,f)}measureText(l){return this._context.measureText(l)}getImageData(l,s,f,o){return this._context.getImageData(l,s,f,o)}lineTo(l,s){this._context.lineTo(l,s)}moveTo(l,s){this._context.moveTo(l,s)}rect(l,s,f,o){this._context.rect(l,s,f,o)}roundRect(l,s,f,o,g){this._context.roundRect(l,s,f,o,g)}putImageData(l,s,f){this._context.putImageData(l,s,f)}quadraticCurveTo(l,s,f,o){this._context.quadraticCurveTo(l,s,f,o)}restore(){this._context.restore()}rotate(l){this._context.rotate(l)}save(){this._context.save()}scale(l,s){this._context.scale(l,s)}setLineDash(l){this._context.setLineDash?this._context.setLineDash(l):"mozDash"in this._context?this._context.mozDash=l:"webkitLineDash"in this._context&&(this._context.webkitLineDash=l)}getLineDash(){return this._context.getLineDash()}setTransform(l,s,f,o,g,v){this._context.setTransform(l,s,f,o,g,v)}stroke(l){l?this._context.stroke(l):this._context.stroke()}strokeText(l,s,f,o){this._context.strokeText(l,s,f,o)}transform(l,s,f,o,g,v){this._context.transform(l,s,f,o,g,v)}translate(l,s){this._context.translate(l,s)}_enableTrace(){let l=this,s=T2.length,f=this.setAttr,o,g;const v=function(p){let S=l[p],b;l[p]=function(){return g=K4(Array.prototype.slice.call(arguments,0)),b=S.apply(l,arguments),l._trace({method:p,args:g}),b}};for(o=0;o<s;o++)v(T2[o]);l.setAttr=function(){f.apply(l,arguments);const p=arguments[0];let S=arguments[1];(p==="shadowOffsetX"||p==="shadowOffsetY"||p==="shadowBlur")&&(S=S/this.canvas.getPixelRatio()),l._trace({property:p,val:S})}}_applyGlobalCompositeOperation(l){const s=l.attrs.globalCompositeOperation;!s||s==="source-over"||this.setAttr("globalCompositeOperation",s)}}$4.forEach(function(d){Object.defineProperty(n1.prototype,d,{get(){return this._context[d]},set(l){this._context[d]=l}})});class e5 extends n1{constructor(l,{willReadFrequently:s=!1}={}){super(l),this._context=l._canvas.getContext("2d",{willReadFrequently:s})}_fillColor(l){const s=l.fill();this.setAttr("fillStyle",s),l._fillFunc(this)}_fillPattern(l){this.setAttr("fillStyle",l._getFillPattern()),l._fillFunc(this)}_fillLinearGradient(l){const s=l._getLinearGradient();s&&(this.setAttr("fillStyle",s),l._fillFunc(this))}_fillRadialGradient(l){const s=l._getRadialGradient();s&&(this.setAttr("fillStyle",s),l._fillFunc(this))}_fill(l){const s=l.fill(),f=l.getFillPriority();if(s&&f==="color"){this._fillColor(l);return}const o=l.getFillPatternImage();if(o&&f==="pattern"){this._fillPattern(l);return}const g=l.getFillLinearGradientColorStops();if(g&&f==="linear-gradient"){this._fillLinearGradient(l);return}const v=l.getFillRadialGradientColorStops();if(v&&f==="radial-gradient"){this._fillRadialGradient(l);return}s?this._fillColor(l):o?this._fillPattern(l):g?this._fillLinearGradient(l):v&&this._fillRadialGradient(l)}_strokeLinearGradient(l){const s=l.getStrokeLinearGradientStartPoint(),f=l.getStrokeLinearGradientEndPoint(),o=l.getStrokeLinearGradientColorStops(),g=this.createLinearGradient(s.x,s.y,f.x,f.y);if(o){for(let v=0;v<o.length;v+=2)g.addColorStop(o[v],o[v+1]);this.setAttr("strokeStyle",g)}}_stroke(l){const s=l.dash(),f=l.getStrokeScaleEnabled();if(l.hasStroke()){if(!f){this.save();const g=this.getCanvas().getPixelRatio();this.setTransform(g,0,0,g,0,0)}this._applyLineCap(l),s&&l.dashEnabled()&&(this.setLineDash(s),this.setAttr("lineDashOffset",l.dashOffset())),this.setAttr("lineWidth",l.strokeWidth()),l.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),l.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(l):this.setAttr("strokeStyle",l.stroke()),l._strokeFunc(this),f||this.restore()}}_applyShadow(l){var s,f,o;const g=(s=l.getShadowRGBA())!==null&&s!==void 0?s:"black",v=(f=l.getShadowBlur())!==null&&f!==void 0?f:5,p=(o=l.getShadowOffset())!==null&&o!==void 0?o:{x:0,y:0},S=l.getAbsoluteScale(),b=this.canvas.getPixelRatio(),T=S.x*b,M=S.y*b;this.setAttr("shadowColor",g),this.setAttr("shadowBlur",v*Math.min(Math.abs(T),Math.abs(M))),this.setAttr("shadowOffsetX",p.x*T),this.setAttr("shadowOffsetY",p.y*M)}}class a5 extends n1{constructor(l){super(l),this._context=l._canvas.getContext("2d",{willReadFrequently:!0})}_fill(l){this.save(),this.setAttr("fillStyle",l.colorKey),l._fillFuncHit(this),this.restore()}strokeShape(l){l.hasHitStroke()&&this._stroke(l)}_stroke(l){if(l.hasHitStroke()){const s=l.getStrokeScaleEnabled();if(!s){this.save();const g=this.getCanvas().getPixelRatio();this.setTransform(g,0,0,g,0,0)}this._applyLineCap(l);const f=l.hitStrokeWidth(),o=f==="auto"?l.strokeWidth():f;this.setAttr("lineWidth",o),this.setAttr("strokeStyle",l.colorKey),l._strokeFuncHit(this),s||this.restore()}}}let J0;function l5(){if(J0)return J0;const d=B.createCanvasElement(),l=d.getContext("2d");return J0=(function(){const s=vt._global.devicePixelRatio||1,f=l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.backingStorePixelRatio||1;return s/f})(),B.releaseCanvas(d),J0}class bd{constructor(l){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const f=(l||{}).pixelRatio||vt.pixelRatio||l5();this.pixelRatio=f,this._canvas=B.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(l){const s=this.pixelRatio;this.pixelRatio=l,this.setSize(this.getWidth()/s,this.getHeight()/s)}setWidth(l){this.width=this._canvas.width=l*this.pixelRatio,this._canvas.style.width=l+"px";const s=this.pixelRatio;this.getContext()._context.scale(s,s)}setHeight(l){this.height=this._canvas.height=l*this.pixelRatio,this._canvas.style.height=l+"px";const s=this.pixelRatio;this.getContext()._context.scale(s,s)}getWidth(){return this.width}getHeight(){return this.height}setSize(l,s){this.setWidth(l||0),this.setHeight(s||0)}toDataURL(l,s){try{return this._canvas.toDataURL(l,s)}catch{try{return this._canvas.toDataURL()}catch(o){return B.error("Unable to get data URL. "+o.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}class Cs extends bd{constructor(l={width:0,height:0,willReadFrequently:!1}){super(l),this.context=new e5(this,{willReadFrequently:l.willReadFrequently}),this.setSize(l.width,l.height)}}class Td extends bd{constructor(l={width:0,height:0}){super(l),this.hitCanvas=!0,this.context=new a5(this),this.setSize(l.width,l.height)}}const oe={get isDragging(){let d=!1;return oe._dragElements.forEach(l=>{l.dragStatus==="dragging"&&(d=!0)}),d},justDragged:!1,get node(){let d;return oe._dragElements.forEach(l=>{d=l.node}),d},_dragElements:new Map,_drag(d){const l=[];oe._dragElements.forEach((s,f)=>{const{node:o}=s,g=o.getStage();g.setPointersPositions(d),s.pointerId===void 0&&(s.pointerId=B._getFirstPointerId(d));const v=g._changedPointerPositions.find(p=>p.id===s.pointerId);if(v){if(s.dragStatus!=="dragging"){const p=o.dragDistance();if(Math.max(Math.abs(v.x-s.startPointerPos.x),Math.abs(v.y-s.startPointerPos.y))<p||(o.startDrag({evt:d}),!o.isDragging()))return}o._setDragPosition(d,s),l.push(o)}}),l.forEach(s=>{s.getStage()&&s.fire("dragmove",{type:"dragmove",target:s,evt:d},!0)})},_endDragBefore(d){const l=[];oe._dragElements.forEach(s=>{const{node:f}=s,o=f.getStage();if(d&&o.setPointersPositions(d),!o._changedPointerPositions.find(p=>p.id===s.pointerId))return;(s.dragStatus==="dragging"||s.dragStatus==="stopped")&&(oe.justDragged=!0,vt._mouseListenClick=!1,vt._touchListenClick=!1,vt._pointerListenClick=!1,s.dragStatus="stopped");const v=s.node.getLayer()||s.node instanceof vt.Stage&&s.node;v&&l.indexOf(v)===-1&&l.push(v)}),l.forEach(s=>{s.draw()})},_endDragAfter(d){oe._dragElements.forEach((l,s)=>{l.dragStatus==="stopped"&&l.node.fire("dragend",{type:"dragend",target:l.node,evt:d},!0),l.dragStatus!=="dragging"&&oe._dragElements.delete(s)})}};vt.isBrowser&&(window.addEventListener("mouseup",oe._endDragBefore,!0),window.addEventListener("touchend",oe._endDragBefore,!0),window.addEventListener("touchcancel",oe._endDragBefore,!0),window.addEventListener("mousemove",oe._drag),window.addEventListener("touchmove",oe._drag),window.addEventListener("mouseup",oe._endDragAfter,!1),window.addEventListener("touchend",oe._endDragAfter,!1),window.addEventListener("touchcancel",oe._endDragAfter,!1));function As(d){return B._isString(d)?'"'+d+'"':Object.prototype.toString.call(d)==="[object Number]"||B._isBoolean(d)?d:Object.prototype.toString.call(d)}function a3(d){return d>255?255:d<0?0:Math.round(d)}function ht(){if(vt.isUnminified)return function(d,l){return B._isNumber(d)||B.warn(As(d)+' is a not valid value for "'+l+'" attribute. The value should be a number.'),d}}function i1(d){if(vt.isUnminified)return function(l,s){let f=B._isNumber(l),o=B._isArray(l)&&l.length==d;return!f&&!o&&B.warn(As(l)+' is a not valid value for "'+s+'" attribute. The value should be a number or Array<number>('+d+")"),l}}function Cd(){if(vt.isUnminified)return function(d,l){return B._isNumber(d)||d==="auto"||B.warn(As(d)+' is a not valid value for "'+l+'" attribute. The value should be a number or "auto".'),d}}function Ac(){if(vt.isUnminified)return function(d,l){return B._isString(d)||B.warn(As(d)+' is a not valid value for "'+l+'" attribute. The value should be a string.'),d}}function l3(){if(vt.isUnminified)return function(d,l){const s=B._isString(d),f=Object.prototype.toString.call(d)==="[object CanvasGradient]"||d&&d.addColorStop;return s||f||B.warn(As(d)+' is a not valid value for "'+l+'" attribute. The value should be a string or a native gradient.'),d}}function n5(){if(vt.isUnminified)return function(d,l){const s=Int8Array?Object.getPrototypeOf(Int8Array):null;return s&&d instanceof s||(B._isArray(d)?d.forEach(function(f){B._isNumber(f)||B.warn('"'+l+'" attribute has non numeric element '+f+". Make sure that all elements are numbers.")}):B.warn(As(d)+' is a not valid value for "'+l+'" attribute. The value should be a array of numbers.')),d}}function Zn(){if(vt.isUnminified)return function(d,l){return d===!0||d===!1||B.warn(As(d)+' is a not valid value for "'+l+'" attribute. The value should be a boolean.'),d}}function i5(d){if(vt.isUnminified)return function(l,s){return l==null||B.isObject(l)||B.warn(As(l)+' is a not valid value for "'+s+'" attribute. The value should be an object with properties '+d),l}}const Yr="get",qr="set",R={addGetterSetter(d,l,s,f,o){R.addGetter(d,l,s),R.addSetter(d,l,f,o),R.addOverloadedGetterSetter(d,l)},addGetter(d,l,s){const f=Yr+B._capitalize(l);d.prototype[f]=d.prototype[f]||function(){const o=this.attrs[l];return o===void 0?s:o}},addSetter(d,l,s,f){const o=qr+B._capitalize(l);d.prototype[o]||R.overWriteSetter(d,l,s,f)},overWriteSetter(d,l,s,f){const o=qr+B._capitalize(l);d.prototype[o]=function(g){return s&&g!==void 0&&g!==null&&(g=s.call(this,g,l)),this._setAttr(l,g),f&&f.call(this),this}},addComponentsGetterSetter(d,l,s,f,o){const g=s.length,v=B._capitalize,p=Yr+v(l),S=qr+v(l);d.prototype[p]=function(){const T={};for(let M=0;M<g;M++){const A=s[M];T[A]=this.getAttr(l+v(A))}return T};const b=i5(s);d.prototype[S]=function(T){const M=this.attrs[l];f&&(T=f.call(this,T,l)),b&&b.call(this,T,l);for(const A in T)T.hasOwnProperty(A)&&this._setAttr(l+v(A),T[A]);return T||s.forEach(A=>{this._setAttr(l+v(A),void 0)}),this._fireChangeEvent(l,M,T),o&&o.call(this),this},R.addOverloadedGetterSetter(d,l)},addOverloadedGetterSetter(d,l){const s=B._capitalize(l),f=qr+s,o=Yr+s;d.prototype[l]=function(){return arguments.length?(this[f](arguments[0]),this):this[o]()}},addDeprecatedGetterSetter(d,l,s,f){B.error("Adding deprecated "+l);const o=Yr+B._capitalize(l),g=l+" property is deprecated and will be removed soon. Look at Konva change log for more information.";d.prototype[o]=function(){B.error(g);const v=this.attrs[l];return v===void 0?s:v},R.addSetter(d,l,f,function(){B.error(g)}),R.addOverloadedGetterSetter(d,l)},backCompat(d,l){B.each(l,function(s,f){const o=d.prototype[f],g=Yr+B._capitalize(s),v=qr+B._capitalize(s);function p(){o.apply(this,arguments),B.error('"'+s+'" method is deprecated and will be removed soon. Use ""'+f+'" instead.')}d.prototype[s]=p,d.prototype[g]=p,d.prototype[v]=p})},afterSetFilter(){this._filterUpToDate=!1}};function u5(d){const l=/(\w+)\(([^)]+)\)/g;let s;for(;(s=l.exec(d))!==null;){const[,f,o]=s;switch(f){case"blur":{const g=parseFloat(o.replace("px",""));return function(v){this.blurRadius(g*.5);const p=vt.Filters;p&&p.Blur&&p.Blur.call(this,v)}}case"brightness":{const g=o.includes("%")?parseFloat(o)/100:parseFloat(o);return function(v){this.brightness(g);const p=vt.Filters;p&&p.Brightness&&p.Brightness.call(this,v)}}case"contrast":{const g=parseFloat(o);return function(v){const p=100*(Math.sqrt(g)-1);this.contrast(p);const S=vt.Filters;S&&S.Contrast&&S.Contrast.call(this,v)}}case"grayscale":return function(g){const v=vt.Filters;v&&v.Grayscale&&v.Grayscale.call(this,g)};case"sepia":return function(g){const v=vt.Filters;v&&v.Sepia&&v.Sepia.call(this,g)};case"invert":return function(g){const v=vt.Filters;v&&v.Invert&&v.Invert.call(this,g)};default:B.warn(`CSS filter "${f}" is not supported in fallback mode. Consider using function filters for better compatibility.`);break}}return()=>{}}const t1="absoluteOpacity",A2="allEventListeners",vu="absoluteTransform",z2="absoluteScale",bc="canvas",s5="Change",c5="children",f5="konva",fd="listening",o5="mouseenter",r5="mouseleave",h5="pointerenter",d5="pointerleave",m5="touchenter",g5="touchleave",M2="set",O2="Shape",e1=" ",x2="stage",bs="transform",v5="Stage",od="visible",y5=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(e1);let p5=1;class mt{constructor(l){this._id=p5++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(l),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(l){(l===bs||l===vu)&&this._cache.get(l)?this._cache.get(l).dirty=!0:l?this._cache.delete(l):this._cache.clear()}_getCache(l,s){let f=this._cache.get(l);return(f===void 0||(l===bs||l===vu)&&f.dirty===!0)&&(f=s.call(this),this._cache.set(l,f)),f}_calculate(l,s,f){if(!this._attachedDepsListeners.get(l)){const o=s.map(g=>g+"Change.konva").join(e1);this.on(o,()=>{this._clearCache(l)}),this._attachedDepsListeners.set(l,!0)}return this._getCache(l,f)}_getCanvasCache(){return this._cache.get(bc)}_clearSelfAndDescendantCache(l){this._clearCache(l),l===vu&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(bc)){const{scene:l,filter:s,hit:f}=this._cache.get(bc);B.releaseCanvas(l._canvas,s._canvas,f._canvas),this._cache.delete(bc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(l){const s=l||{};let f={};(s.x===void 0||s.y===void 0||s.width===void 0||s.height===void 0)&&(f=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(s.width||f.width),g=Math.ceil(s.height||f.height),v=s.pixelRatio,p=s.x===void 0?Math.floor(f.x):s.x,S=s.y===void 0?Math.floor(f.y):s.y,b=s.offset||0,T=s.drawBorder||!1,M=s.hitCanvasPixelRatio||1;if(!o||!g){B.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const A=Math.abs(Math.round(f.x)-p)>.5?1:0,x=Math.abs(Math.round(f.y)-S)>.5?1:0;o+=b*2+A,g+=b*2+x,p-=b,S-=b;const O=new Cs({pixelRatio:v,width:o,height:g}),L=new Cs({pixelRatio:v,width:0,height:0,willReadFrequently:!0}),X=new Td({pixelRatio:M,width:o,height:g}),Q=O.getContext(),j=X.getContext(),I=new Cs({width:O.width/O.pixelRatio+Math.abs(p),height:O.height/O.pixelRatio+Math.abs(S),pixelRatio:O.pixelRatio}),P=I.getContext();return X.isCache=!0,O.isCache=!0,this._cache.delete(bc),this._filterUpToDate=!1,s.imageSmoothingEnabled===!1&&(O.getContext()._context.imageSmoothingEnabled=!1,L.getContext()._context.imageSmoothingEnabled=!1),Q.save(),j.save(),P.save(),Q.translate(-p,-S),j.translate(-p,-S),P.translate(-p,-S),I.x=p,I.y=S,this._isUnderCache=!0,this._clearSelfAndDescendantCache(t1),this._clearSelfAndDescendantCache(z2),this.drawScene(O,this,I),this.drawHit(X,this),this._isUnderCache=!1,Q.restore(),j.restore(),T&&(Q.save(),Q.beginPath(),Q.rect(0,0,o,g),Q.closePath(),Q.setAttr("strokeStyle","red"),Q.setAttr("lineWidth",5),Q.stroke(),Q.restore()),B.releaseCanvas(I._canvas),this._cache.set(bc,{scene:O,filter:L,hit:X,x:p,y:S}),this._requestDraw(),this}isCached(){return this._cache.has(bc)}getClientRect(l){throw new Error('abstract "getClientRect" method call')}_transformedRect(l,s){const f=[{x:l.x,y:l.y},{x:l.x+l.width,y:l.y},{x:l.x+l.width,y:l.y+l.height},{x:l.x,y:l.y+l.height}];let o=1/0,g=1/0,v=-1/0,p=-1/0;const S=this.getAbsoluteTransform(s);return f.forEach(function(b){const T=S.point(b);o===void 0&&(o=v=T.x,g=p=T.y),o=Math.min(o,T.x),g=Math.min(g,T.y),v=Math.max(v,T.x),p=Math.max(p,T.y)}),{x:o,y:g,width:v-o,height:p-g}}_drawCachedSceneCanvas(l){l.save(),l._applyOpacity(this),l._applyGlobalCompositeOperation(this);const s=this._getCanvasCache();l.translate(s.x,s.y);const f=this._getCachedSceneCanvas(),o=f.pixelRatio;l.drawImage(f._canvas,0,0,f.width/o,f.height/o),l.restore()}_drawCachedHitCanvas(l){const s=this._getCanvasCache(),f=s.hit;l.save(),l.translate(s.x,s.y),l.drawImage(f._canvas,0,0,f.width/f.pixelRatio,f.height/f.pixelRatio),l.restore()}_getCachedSceneCanvas(){let l=this.filters(),s=this._getCanvasCache(),f=s.scene,o=s.filter,g=o.getContext(),v,p,S,b;if(!l||l.length===0)return f;if(this._filterUpToDate)return o;let T=!0;for(let A=0;A<l.length;A++)if(typeof l[A]=="string"&&C2(),typeof l[A]!="string"||!C2()){T=!1;break}const M=f.pixelRatio;if(o.setSize(f.width/f.pixelRatio,f.height/f.pixelRatio),T){const A=l.join(" ");return g.save(),g.setAttr("filter",A),g.drawImage(f._canvas,0,0,f.getWidth()/M,f.getHeight()/M),g.restore(),this._filterUpToDate=!0,o}try{for(v=l.length,g.clear(),g.drawImage(f._canvas,0,0,f.getWidth()/M,f.getHeight()/M),p=g.getImageData(0,0,o.getWidth(),o.getHeight()),S=0;S<v;S++)b=l[S],typeof b=="string"&&(b=u5(b)),b.call(this,p),g.putImageData(p,0,0)}catch(A){B.error("Unable to apply filter. "+A.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}return this._filterUpToDate=!0,o}on(...l){const s=l[0],f=l[1];if(l[2],this._cache&&this._cache.delete(A2),l.length===3)return this._delegate.apply(this,l);const o=s.split(e1);for(let g=0;g<o.length;g++){const p=o[g].split("."),S=p[0],b=p[1]||"";this.eventListeners[S]||(this.eventListeners[S]=[]),this.eventListeners[S].push({name:b,handler:f})}return this}off(l,s){let f=(l||"").split(e1),o=f.length,g,v,p,S,b,T;if(this._cache&&this._cache.delete(A2),!l)for(v in this.eventListeners)this._off(v);for(g=0;g<o;g++)if(p=f[g],S=p.split("."),b=S[0],T=S[1],b)this.eventListeners[b]&&this._off(b,T,s);else for(v in this.eventListeners)this._off(v,T,s);return this}dispatchEvent(l){const s={target:this,type:l.type,evt:l};return this.fire(l.type,s),this}addEventListener(l,s){return this.on(l,function(f){s.call(this,f.evt)}),this}removeEventListener(l){return this.off(l),this}_delegate(l,s,f){const o=this;return this.on(l,function(g){const v=g.target.findAncestors(s,!0,o);for(let p=0;p<v.length;p++)g=B.cloneObject(g),g.currentTarget=v[p],f.call(v[p],g)}),this}remove(){return this.isDragging()&&this.stopDrag(),oe._dragElements.delete(this._id),oe._dragElements.forEach((l,s)=>{this.isAncestorOf(l.node)&&oe._dragElements.delete(s)}),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(vu),this._clearSelfAndDescendantCache(t1),this._clearSelfAndDescendantCache(z2),this._clearSelfAndDescendantCache(x2),this._clearSelfAndDescendantCache(od),this._clearSelfAndDescendantCache(fd)}_remove(){this._clearCaches();const l=this.getParent();l&&l.children&&(l.children.splice(this.index,1),l._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(l){const s="get"+B._capitalize(l);return B._isFunction(this[s])?this[s]():this.attrs[l]}getAncestors(){let l=this.getParent(),s=[];for(;l;)s.push(l),l=l.getParent();return s}getAttrs(){return this.attrs||{}}setAttrs(l){return this._batchTransformChanges(()=>{let s,f;if(!l)return this;for(s in l)s!==c5&&(f=M2+B._capitalize(s),B._isFunction(this[f])?this[f](l[s]):this._setAttr(s,l[s]))}),this}isListening(){return this._getCache(fd,this._isListening)}_isListening(l){if(!this.listening())return!1;const f=this.getParent();return f&&f!==l&&this!==l?f._isListening(l):!0}isVisible(){return this._getCache(od,this._isVisible)}_isVisible(l){if(!this.visible())return!1;const f=this.getParent();return f&&f!==l&&this!==l?f._isVisible(l):!0}shouldDrawHit(l,s=!1){if(l)return this._isVisible(l)&&this._isListening(l);const f=this.getLayer();let o=!1;oe._dragElements.forEach(v=>{v.dragStatus==="dragging"&&(v.node.nodeType==="Stage"||v.node.getLayer()===f)&&(o=!0)});const g=!s&&!vt.hitOnDragEnabled&&(o||vt.isTransforming());return this.isListening()&&this.isVisible()&&!g}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let l=this.getDepth(),s=this,f=0,o,g,v,p;function S(T){for(o=[],g=T.length,v=0;v<g;v++)p=T[v],f++,p.nodeType!==O2&&(o=o.concat(p.getChildren().slice())),p._id===s._id&&(v=g);o.length>0&&o[0].getDepth()<=l&&S(o)}const b=this.getStage();return s.nodeType!==v5&&b&&S(b.getChildren()),f}getDepth(){let l=0,s=this.parent;for(;s;)l++,s=s.parent;return l}_batchTransformChanges(l){this._batchingTransformChange=!0,l(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(bs),this._clearSelfAndDescendantCache(vu)),this._needClearTransformCache=!1}setPosition(l){return this._batchTransformChanges(()=>{this.x(l.x),this.y(l.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const l=this.getStage();if(!l)return null;const s=l.getPointerPosition();if(!s)return null;const f=this.getAbsoluteTransform().copy();return f.invert(),f.point(s)}getAbsolutePosition(l){let s=!1,f=this.parent;for(;f;){if(f.isCached()){s=!0;break}f=f.parent}s&&!l&&(l=!0);const o=this.getAbsoluteTransform(l).getMatrix(),g=new Ll,v=this.offset();return g.m=o.slice(),g.translate(v.x,v.y),g.getTranslation()}setAbsolutePosition(l){const{x:s,y:f,...o}=this._clearTransform();this.attrs.x=s,this.attrs.y=f,this._clearCache(bs);const g=this._getAbsoluteTransform().copy();return g.invert(),g.translate(l.x,l.y),l={x:this.attrs.x+g.getTranslation().x,y:this.attrs.y+g.getTranslation().y},this._setTransform(o),this.setPosition({x:l.x,y:l.y}),this._clearCache(bs),this._clearSelfAndDescendantCache(vu),this}_setTransform(l){let s;for(s in l)this.attrs[s]=l[s]}_clearTransform(){const l={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,l}move(l){let s=l.x,f=l.y,o=this.x(),g=this.y();return s!==void 0&&(o+=s),f!==void 0&&(g+=f),this.setPosition({x:o,y:g}),this}_eachAncestorReverse(l,s){let f=[],o=this.getParent(),g,v;if(!(s&&s._id===this._id)){for(f.unshift(this);o&&(!s||o._id!==s._id);)f.unshift(o),o=o.parent;for(g=f.length,v=0;v<g;v++)l(f[v])}}rotate(l){return this.rotation(this.rotation()+l),this}moveToTop(){if(!this.parent)return B.warn("Node has no parent. moveToTop function is ignored."),!1;const l=this.index,s=this.parent.getChildren().length;return l<s-1?(this.parent.children.splice(l,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return B.warn("Node has no parent. moveUp function is ignored."),!1;const l=this.index,s=this.parent.getChildren().length;return l<s-1?(this.parent.children.splice(l,1),this.parent.children.splice(l+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return B.warn("Node has no parent. moveDown function is ignored."),!1;const l=this.index;return l>0?(this.parent.children.splice(l,1),this.parent.children.splice(l-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return B.warn("Node has no parent. moveToBottom function is ignored."),!1;const l=this.index;return l>0?(this.parent.children.splice(l,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(l){if(!this.parent)return B.warn("Node has no parent. zIndex parameter is ignored."),this;(l<0||l>=this.parent.children.length)&&B.warn("Unexpected value "+l+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const s=this.index;return this.parent.children.splice(s,1),this.parent.children.splice(l,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(t1,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let l=this.opacity();const s=this.getParent();return s&&!s._isUnderCache&&(l*=s.getAbsoluteOpacity()),l}moveTo(l){return this.getParent()!==l&&(this._remove(),l.add(this)),this}toObject(){let l=this.getAttrs(),s,f,o,g,v;const p={attrs:{},className:this.getClassName()};for(s in l)f=l[s],v=B.isObject(f)&&!B._isPlainObject(f)&&!B._isArray(f),!v&&(o=typeof this[s]=="function"&&this[s],delete l[s],g=o?o.call(this):null,l[s]=f,g!==f&&(p.attrs[s]=f));return B._prepareToStringify(p)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(l,s,f){const o=[];s&&this._isMatch(l)&&o.push(this);let g=this.parent;for(;g;){if(g===f)return o;g._isMatch(l)&&o.push(g),g=g.parent}return o}isAncestorOf(l){return!1}findAncestor(l,s,f){return this.findAncestors(l,s,f)[0]}_isMatch(l){if(!l)return!1;if(typeof l=="function")return l(this);let s=l.replace(/ /g,"").split(","),f=s.length,o,g;for(o=0;o<f;o++)if(g=s[o],B.isValidSelector(g)||(B.warn('Selector "'+g+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),B.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),B.warn("Konva is awesome, right?")),g.charAt(0)==="#"){if(this.id()===g.slice(1))return!0}else if(g.charAt(0)==="."){if(this.hasName(g.slice(1)))return!0}else if(this.className===g||this.nodeType===g)return!0;return!1}getLayer(){const l=this.getParent();return l?l.getLayer():null}getStage(){return this._getCache(x2,this._getStage)}_getStage(){const l=this.getParent();return l?l.getStage():null}fire(l,s={},f){return s.target=s.target||this,f?this._fireAndBubble(l,s):this._fire(l,s),this}getAbsoluteTransform(l){return l?this._getAbsoluteTransform(l):this._getCache(vu,this._getAbsoluteTransform)}_getAbsoluteTransform(l){let s;if(l)return s=new Ll,this._eachAncestorReverse(function(f){const o=f.transformsEnabled();o==="all"?s.multiply(f.getTransform()):o==="position"&&s.translate(f.x()-f.offsetX(),f.y()-f.offsetY())},l),s;{s=this._cache.get(vu)||new Ll,this.parent?this.parent.getAbsoluteTransform().copyInto(s):s.reset();const f=this.transformsEnabled();if(f==="all")s.multiply(this.getTransform());else if(f==="position"){const o=this.attrs.x||0,g=this.attrs.y||0,v=this.attrs.offsetX||0,p=this.attrs.offsetY||0;s.translate(o-v,g-p)}return s.dirty=!1,s}}getAbsoluteScale(l){let s=this;for(;s;)s._isUnderCache&&(l=s),s=s.getParent();const o=this.getAbsoluteTransform(l).decompose();return{x:o.scaleX,y:o.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(bs,this._getTransform)}_getTransform(){var l,s;const f=this._cache.get(bs)||new Ll;f.reset();const o=this.x(),g=this.y(),v=vt.getAngle(this.rotation()),p=(l=this.attrs.scaleX)!==null&&l!==void 0?l:1,S=(s=this.attrs.scaleY)!==null&&s!==void 0?s:1,b=this.attrs.skewX||0,T=this.attrs.skewY||0,M=this.attrs.offsetX||0,A=this.attrs.offsetY||0;return(o!==0||g!==0)&&f.translate(o,g),v!==0&&f.rotate(v),(b!==0||T!==0)&&f.skew(b,T),(p!==1||S!==1)&&f.scale(p,S),(M!==0||A!==0)&&f.translate(-1*M,-1*A),f.dirty=!1,f}clone(l){let s=B.cloneObject(this.attrs),f,o,g,v,p;for(f in l)s[f]=l[f];const S=new this.constructor(s);for(f in this.eventListeners)for(o=this.eventListeners[f],g=o.length,v=0;v<g;v++)p=o[v],p.name.indexOf(f5)<0&&(S.eventListeners[f]||(S.eventListeners[f]=[]),S.eventListeners[f].push(p));return S}_toKonvaCanvas(l){l=l||{};const s=this.getClientRect(),f=this.getStage(),o=l.x!==void 0?l.x:Math.floor(s.x),g=l.y!==void 0?l.y:Math.floor(s.y),v=l.pixelRatio||1,p=new Cs({width:l.width||Math.ceil(s.width)||(f?f.width():0),height:l.height||Math.ceil(s.height)||(f?f.height():0),pixelRatio:v}),S=p.getContext(),b=new Cs({width:p.width/p.pixelRatio+Math.abs(o),height:p.height/p.pixelRatio+Math.abs(g),pixelRatio:p.pixelRatio});return l.imageSmoothingEnabled===!1&&(S._context.imageSmoothingEnabled=!1),S.save(),(o||g)&&S.translate(-1*o,-1*g),this.drawScene(p,void 0,b),S.restore(),p}toCanvas(l){return this._toKonvaCanvas(l)._canvas}toDataURL(l){l=l||{};const s=l.mimeType||null,f=l.quality||null,o=this._toKonvaCanvas(l).toDataURL(s,f);return l.callback&&l.callback(o),o}toImage(l){return new Promise((s,f)=>{try{const o=l?.callback;o&&delete l.callback,B._urlToImage(this.toDataURL(l),function(g){s(g),o?.(g)})}catch(o){f(o)}})}toBlob(l){return new Promise((s,f)=>{try{const o=l?.callback;o&&delete l.callback,this.toCanvas(l).toBlob(g=>{s(g),o?.(g)},l?.mimeType,l?.quality)}catch(o){f(o)}})}setSize(l){return this.width(l.width),this.height(l.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():vt.dragDistance}_off(l,s,f){let o=this.eventListeners[l],g,v,p;for(g=0;g<o.length;g++)if(v=o[g].name,p=o[g].handler,(v!=="konva"||s==="konva")&&(!s||v===s)&&(!f||f===p)){if(o.splice(g,1),o.length===0){delete this.eventListeners[l];break}g--}}_fireChangeEvent(l,s,f){this._fire(l+s5,{oldVal:s,newVal:f})}addName(l){if(!this.hasName(l)){const s=this.name(),f=s?s+" "+l:l;this.name(f)}return this}hasName(l){if(!l)return!1;const s=this.name();return s?(s||"").split(/\s/g).indexOf(l)!==-1:!1}removeName(l){const s=(this.name()||"").split(/\s/g),f=s.indexOf(l);return f!==-1&&(s.splice(f,1),this.name(s.join(" "))),this}setAttr(l,s){const f=this[M2+B._capitalize(l)];return B._isFunction(f)?f.call(this,s):this._setAttr(l,s),this}_requestDraw(){if(vt.autoDrawEnabled){const l=this.getLayer()||this.getStage();l?.batchDraw()}}_setAttr(l,s){const f=this.attrs[l];f===s&&!B.isObject(s)||(s==null?delete this.attrs[l]:this.attrs[l]=s,this._shouldFireChangeEvents&&this._fireChangeEvent(l,f,s),this._requestDraw())}_setComponentAttr(l,s,f){let o;f!==void 0&&(o=this.attrs[l],o||(this.attrs[l]=this.getAttr(l)),this.attrs[l][s]=f,this._fireChangeEvent(l,o,f))}_fireAndBubble(l,s,f){s&&this.nodeType===O2&&(s.target=this);const o=[o5,r5,h5,d5,m5,g5];if(!(o.indexOf(l)!==-1&&(f&&(this===f||this.isAncestorOf&&this.isAncestorOf(f))||this.nodeType==="Stage"&&!f))){this._fire(l,s);const v=o.indexOf(l)!==-1&&f&&f.isAncestorOf&&f.isAncestorOf(this)&&!f.isAncestorOf(this.parent);(s&&!s.cancelBubble||!s)&&this.parent&&this.parent.isListening()&&!v&&(f&&f.parent?this._fireAndBubble.call(this.parent,l,s,f):this._fireAndBubble.call(this.parent,l,s))}}_getProtoListeners(l){var s,f;const{nodeType:o}=this,g=mt.protoListenerMap.get(o)||{};let v=g?.[l];if(v===void 0){v=[];let p=Object.getPrototypeOf(this);for(;p;){const S=(f=(s=p.eventListeners)===null||s===void 0?void 0:s[l])!==null&&f!==void 0?f:[];v.push(...S),p=Object.getPrototypeOf(p)}g[l]=v,mt.protoListenerMap.set(o,g)}return v}_fire(l,s){s=s||{},s.currentTarget=this,s.type=l;const f=this._getProtoListeners(l);if(f){const g=f.slice();for(let v=0;v<g.length;v++)g[v].handler.call(this,s)}const o=this.eventListeners[l];if(o){const g=o.slice(),v=g.length;for(let S=0;S<g.length;S++)g[S].handler.call(this,s);const p=this.eventListeners[l];if(p)for(let S=v;S<p.length;S++)p[S].handler.call(this,s)}}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(l){const s=l?l.pointerId:void 0,f=this.getStage(),o=this.getAbsolutePosition();if(!f)return;const g=f._getPointerById(s)||f._changedPointerPositions[0]||o;oe._dragElements.set(this._id,{node:this,startPointerPos:g,offset:{x:g.x-o.x,y:g.y-o.y},dragStatus:"ready",pointerId:s,startEvent:l})}startDrag(l,s=!0){oe._dragElements.has(this._id)||this._createDragElement(l);const f=oe._dragElements.get(this._id);f.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:f.startEvent&&f.startEvent.evt||l&&l.evt},s)}_setDragPosition(l,s){const f=this.getStage()._getPointerById(s.pointerId);if(!f)return;let o={x:f.x-s.offset.x,y:f.y-s.offset.y};const g=this.dragBoundFunc();if(g!==void 0){const v=g.call(this,o,l);v?o=v:B.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==o.x||this._lastPos.y!==o.y)&&(this.setAbsolutePosition(o),this._requestDraw()),this._lastPos=o}stopDrag(l){const s=oe._dragElements.get(this._id);s&&(s.dragStatus="stopped"),oe._endDragBefore(l),oe._endDragAfter(l)}setDraggable(l){this._setAttr("draggable",l),this._dragChange()}isDragging(){const l=oe._dragElements.get(this._id);return l?l.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(l){if(!(!(l.evt.button!==void 0)||vt.dragButtons.indexOf(l.evt.button)>=0)||this.isDragging())return;let o=!1;oe._dragElements.forEach(g=>{this.isAncestorOf(g.node)&&(o=!0)}),o||this._createDragElement(l)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const s=oe._dragElements.get(this._id),f=s&&s.dragStatus==="dragging",o=s&&s.dragStatus==="ready";f?this.stopDrag():o&&oe._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(l={x:0,y:0}){const s=this.getStage();if(!s)return!1;const f={x:-l.x,y:-l.y,width:s.width()+2*l.x,height:s.height()+2*l.y};return B.haveIntersection(f,this.getClientRect())}static create(l,s){return B._isString(l)&&(l=JSON.parse(l)),this._createNode(l,s)}static _createNode(l,s){let f=mt.prototype.getClassName.call(l),o=l.children,g,v,p;s&&(l.attrs.container=s),vt[f]||(B.warn('Can not find a node with class name "'+f+'". Fallback to "Shape".'),f="Shape");const S=vt[f];if(g=new S(l.attrs),o)for(v=o.length,p=0;p<v;p++)g.add(mt._createNode(o[p]));return g}}mt.protoListenerMap=new Map;mt.prototype.nodeType="Node";mt.prototype._attrsAffectingSize=[];mt.prototype.eventListeners={};mt.prototype.on(y5,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(bs),this._clearSelfAndDescendantCache(vu)});mt.prototype.on("visibleChange.konva",function(){this._clearSelfAndDescendantCache(od)});mt.prototype.on("listeningChange.konva",function(){this._clearSelfAndDescendantCache(fd)});mt.prototype.on("opacityChange.konva",function(){this._clearSelfAndDescendantCache(t1)});const ze=R.addGetterSetter;ze(mt,"zIndex");ze(mt,"absolutePosition");ze(mt,"position");ze(mt,"x",0,ht());ze(mt,"y",0,ht());ze(mt,"globalCompositeOperation","source-over",Ac());ze(mt,"opacity",1,ht());ze(mt,"name","",Ac());ze(mt,"id","",Ac());ze(mt,"rotation",0,ht());R.addComponentsGetterSetter(mt,"scale",["x","y"]);ze(mt,"scaleX",1,ht());ze(mt,"scaleY",1,ht());R.addComponentsGetterSetter(mt,"skew",["x","y"]);ze(mt,"skewX",0,ht());ze(mt,"skewY",0,ht());R.addComponentsGetterSetter(mt,"offset",["x","y"]);ze(mt,"offsetX",0,ht());ze(mt,"offsetY",0,ht());ze(mt,"dragDistance",void 0,ht());ze(mt,"width",0,ht());ze(mt,"height",0,ht());ze(mt,"listening",!0,Zn());ze(mt,"preventDefault",!0,Zn());ze(mt,"filters",void 0,function(d){return this._filterUpToDate=!1,d});ze(mt,"visible",!0,Zn());ze(mt,"transformsEnabled","all",Ac());ze(mt,"size");ze(mt,"dragBoundFunc");ze(mt,"draggable",!1,Zn());R.backCompat(mt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class jl extends mt{constructor(){super(...arguments),this.children=[]}getChildren(l){const s=this.children||[];return l?s.filter(l):s}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(l=>{l.parent=null,l.index=0,l.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(l=>{l.parent=null,l.index=0,l.destroy()}),this.children=[],this._requestDraw(),this}add(...l){if(l.length===0)return this;if(l.length>1){for(let f=0;f<l.length;f++)this.add(l[f]);return this}const s=l[0];return s.getParent()?(s.moveTo(this),this):(this._validateAdd(s),s.index=this.getChildren().length,s.parent=this,s._clearCaches(),this.getChildren().push(s),this._fire("add",{child:s}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(l){return this._generalFind(l,!1)}findOne(l){const s=this._generalFind(l,!0);return s.length>0?s[0]:void 0}_generalFind(l,s){const f=[];return this._descendants(o=>{const g=o._isMatch(l);return g&&f.push(o),!!(g&&s)}),f}_descendants(l){let s=!1;const f=this.getChildren();for(const o of f){if(s=l(o),s)return!0;if(o.hasChildren()&&(s=o._descendants(l),s))return!0}return!1}toObject(){const l=mt.prototype.toObject.call(this);return l.children=[],this.getChildren().forEach(s=>{l.children.push(s.toObject())}),l}isAncestorOf(l){let s=l.getParent();for(;s;){if(s._id===this._id)return!0;s=s.getParent()}return!1}clone(l){const s=mt.prototype.clone.call(this,l);return this.getChildren().forEach(function(f){s.add(f.clone())}),s}getAllIntersections(l){const s=[];return this.find("Shape").forEach(f=>{f.isVisible()&&f.intersects(l)&&s.push(f)}),s}_clearSelfAndDescendantCache(l){var s;super._clearSelfAndDescendantCache(l),!this.isCached()&&((s=this.children)===null||s===void 0||s.forEach(function(f){f._clearSelfAndDescendantCache(l)}))}_setChildrenIndices(){var l;(l=this.children)===null||l===void 0||l.forEach(function(s,f){s.index=f}),this._requestDraw()}drawScene(l,s,f){const o=this.getLayer(),g=l||o&&o.getCanvas(),v=g&&g.getContext(),p=this._getCanvasCache(),S=p&&p.scene,b=g&&g.isCache;if(!this.isVisible()&&!b)return this;if(S){v.save();const T=this.getAbsoluteTransform(s).getMatrix();v.transform(T[0],T[1],T[2],T[3],T[4],T[5]),this._drawCachedSceneCanvas(v),v.restore()}else this._drawChildren("drawScene",g,s,f);return this}drawHit(l,s){if(!this.shouldDrawHit(s))return this;const f=this.getLayer(),o=l||f&&f.hitCanvas,g=o&&o.getContext(),v=this._getCanvasCache();if(v&&v.hit){g.save();const S=this.getAbsoluteTransform(s).getMatrix();g.transform(S[0],S[1],S[2],S[3],S[4],S[5]),this._drawCachedHitCanvas(g),g.restore()}else this._drawChildren("drawHit",o,s);return this}_drawChildren(l,s,f,o){var g;const v=s&&s.getContext(),p=this.clipWidth(),S=this.clipHeight(),b=this.clipFunc(),T=typeof p=="number"&&typeof S=="number"||b,M=f===this;if(T){v.save();const x=this.getAbsoluteTransform(f);let O=x.getMatrix();v.transform(O[0],O[1],O[2],O[3],O[4],O[5]),v.beginPath();let L;if(b)L=b.call(this,v,this);else{const X=this.clipX(),Q=this.clipY();v.rect(X||0,Q||0,p,S)}v.clip.apply(v,L),O=x.copy().invert().getMatrix(),v.transform(O[0],O[1],O[2],O[3],O[4],O[5])}const A=!M&&this.globalCompositeOperation()!=="source-over"&&l==="drawScene";A&&(v.save(),v._applyGlobalCompositeOperation(this)),(g=this.children)===null||g===void 0||g.forEach(function(x){x[l](s,f,o)}),A&&v.restore(),T&&v.restore()}getClientRect(l={}){var s;const f=l.skipTransform,o=l.relativeTo;let g,v,p,S,b={x:1/0,y:1/0,width:0,height:0};const T=this;(s=this.children)===null||s===void 0||s.forEach(function(x){if(!x.visible())return;const O=x.getClientRect({relativeTo:T,skipShadow:l.skipShadow,skipStroke:l.skipStroke});O.width===0&&O.height===0||(g===void 0?(g=O.x,v=O.y,p=O.x+O.width,S=O.y+O.height):(g=Math.min(g,O.x),v=Math.min(v,O.y),p=Math.max(p,O.x+O.width),S=Math.max(S,O.y+O.height)))});const M=this.find("Shape");let A=!1;for(let x=0;x<M.length;x++)if(M[x]._isVisible(this)){A=!0;break}return A&&g!==void 0?b={x:g,y:v,width:p-g,height:S-v}:b={x:0,y:0,width:0,height:0},f?b:this._transformedRect(b,o)}}R.addComponentsGetterSetter(jl,"clip",["x","y","width","height"]);R.addGetterSetter(jl,"clipX",void 0,ht());R.addGetterSetter(jl,"clipY",void 0,ht());R.addGetterSetter(jl,"clipWidth",void 0,ht());R.addGetterSetter(jl,"clipHeight",void 0,ht());R.addGetterSetter(jl,"clipFunc");const Ir=new Map,n3=vt._global.PointerEvent!==void 0;function k1(d){return Ir.get(d)}function Ad(d){return{evt:d,pointerId:d.pointerId}}function i3(d,l){return Ir.get(d)===l}function u3(d,l){wr(d),l.getStage()&&(Ir.set(d,l),n3&&l._fire("gotpointercapture",Ad(new PointerEvent("gotpointercapture"))))}function wr(d,l){const s=Ir.get(d);if(!s)return;const f=s.getStage();f&&f.content,Ir.delete(d),n3&&s._fire("lostpointercapture",Ad(new PointerEvent("lostpointercapture")))}const S5="Stage",_5="string",R2="px",E5="mouseout",s3="mouseleave",c3="mouseover",f3="mouseenter",o3="mousemove",r3="mousedown",h3="mouseup",Qr="pointermove",Vr="pointerdown",$f="pointerup",Zr="pointercancel",b5="lostpointercapture",w0="pointerout",Kr="pointerleave",W0="pointerover",F0="pointerenter",rd="contextmenu",d3="touchstart",m3="touchend",g3="touchmove",v3="touchcancel",hd="wheel",T5=5,C5=[[f3,"_pointerenter"],[r3,"_pointerdown"],[o3,"_pointermove"],[h3,"_pointerup"],[s3,"_pointerleave"],[d3,"_pointerdown"],[g3,"_pointermove"],[m3,"_pointerup"],[v3,"_pointercancel"],[c3,"_pointerover"],[hd,"_wheel"],[rd,"_contextmenu"],[Vr,"_pointerdown"],[Qr,"_pointermove"],[$f,"_pointerup"],[Zr,"_pointercancel"],[Kr,"_pointerleave"],[b5,"_lostpointercapture"]],P1={mouse:{[w0]:E5,[Kr]:s3,[W0]:c3,[F0]:f3,[Qr]:o3,[Vr]:r3,[$f]:h3,[Zr]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[w0]:"touchout",[Kr]:"touchleave",[W0]:"touchover",[F0]:"touchenter",[Qr]:g3,[Vr]:d3,[$f]:m3,[Zr]:v3,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[w0]:w0,[Kr]:Kr,[W0]:W0,[F0]:F0,[Qr]:Qr,[Vr]:Vr,[$f]:$f,[Zr]:Zr,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},Jr=d=>d.indexOf("pointer")>=0?"pointer":d.indexOf("touch")>=0?"touch":"mouse",Pf=d=>{const l=Jr(d);if(l==="pointer")return vt.pointerEventsEnabled&&P1.pointer;if(l==="touch")return P1.touch;if(l==="mouse")return P1.mouse};function D2(d={}){return(d.clipFunc||d.clipWidth||d.clipHeight)&&B.warn("Stage does not support clipping. Please use clip for Layers or Groups."),d}const A5="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",Wr=[];let u1=class extends jl{constructor(l){super(D2(l)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),Wr.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{D2(this.attrs)}),this._checkVisibility()}_validateAdd(l){const s=l.getType()==="Layer",f=l.getType()==="FastLayer";s||f||B.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const l=this.visible()?"":"none";this.content.style.display=l}setContainer(l){if(typeof l===_5){let s;if(l.charAt(0)==="."){const f=l.slice(1);l=document.getElementsByClassName(f)[0]}else l.charAt(0)!=="#"?s=l:s=l.slice(1),l=document.getElementById(s);if(!l)throw"Can not find container in document with id "+s}return this._setAttr("container",l),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),l.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const l=this.children,s=l.length;for(let f=0;f<s;f++)l[f].clear();return this}clone(l){return l||(l={}),l.container=typeof document<"u"&&document.createElement("div"),jl.prototype.clone.call(this,l)}destroy(){super.destroy();const l=this.content;l&&B._isInDocument(l)&&this.container().removeChild(l);const s=Wr.indexOf(this);return s>-1&&Wr.splice(s,1),B.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const l=this._pointerPositions[0]||this._changedPointerPositions[0];return l?{x:l.x,y:l.y}:(B.warn(A5),null)}_getPointerById(l){return this._pointerPositions.find(s=>s.id===l)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(l){l={...l},l.x=l.x||0,l.y=l.y||0,l.width=l.width||this.width(),l.height=l.height||this.height();const s=new Cs({width:l.width,height:l.height,pixelRatio:l.pixelRatio||1}),f=s.getContext()._context,o=this.children;return(l.x||l.y)&&f.translate(-1*l.x,-1*l.y),o.forEach(function(g){if(!g.isVisible())return;const v=g._toKonvaCanvas(l);f.drawImage(v._canvas,l.x,l.y,v.getWidth()/v.getPixelRatio(),v.getHeight()/v.getPixelRatio())}),s}getIntersection(l){if(!l)return null;const s=this.children,f=s.length,o=f-1;for(let g=o;g>=0;g--){const v=s[g].getIntersection(l);if(v)return v}return null}_resizeDOM(){const l=this.width(),s=this.height();this.content&&(this.content.style.width=l+R2,this.content.style.height=s+R2),this.bufferCanvas.setSize(l,s),this.bufferHitCanvas.setSize(l,s),this.children.forEach(f=>{f.setSize({width:l,height:s}),f.draw()})}add(l,...s){if(arguments.length>1){for(let o=0;o<arguments.length;o++)this.add(arguments[o]);return this}super.add(l);const f=this.children.length;return f>T5&&B.warn("The stage has "+f+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),l.setSize({width:this.width(),height:this.height()}),l.draw(),vt.isBrowser&&this.content.appendChild(l.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(l){return i3(l,this)}setPointerCapture(l){u3(l,this)}releaseCapture(l){wr(l)}getLayers(){return this.children}_bindContentEvents(){vt.isBrowser&&C5.forEach(([l,s])=>{this.content.addEventListener(l,f=>{this[s](f)},{passive:!1})})}_pointerenter(l){this.setPointersPositions(l);const s=Pf(l.type);s&&this._fire(s.pointerenter,{evt:l,target:this,currentTarget:this})}_pointerover(l){this.setPointersPositions(l);const s=Pf(l.type);s&&this._fire(s.pointerover,{evt:l,target:this,currentTarget:this})}_getTargetShape(l){let s=this[l+"targetShape"];return s&&!s.getStage()&&(s=null),s}_pointerleave(l){const s=Pf(l.type),f=Jr(l.type);if(!s)return;this.setPointersPositions(l);const o=this._getTargetShape(f),g=!(vt.isDragging()||vt.isTransforming())||vt.hitOnDragEnabled;o&&g?(o._fireAndBubble(s.pointerout,{evt:l}),o._fireAndBubble(s.pointerleave,{evt:l}),this._fire(s.pointerleave,{evt:l,target:this,currentTarget:this}),this[f+"targetShape"]=null):g&&(this._fire(s.pointerleave,{evt:l,target:this,currentTarget:this}),this._fire(s.pointerout,{evt:l,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(l){const s=Pf(l.type),f=Jr(l.type);if(!s)return;this.setPointersPositions(l);let o=!1;this._changedPointerPositions.forEach(g=>{const v=this.getIntersection(g);if(oe.justDragged=!1,vt["_"+f+"ListenClick"]=!0,!v||!v.isListening()){this[f+"ClickStartShape"]=void 0;return}vt.capturePointerEventsEnabled&&v.setPointerCapture(g.id),this[f+"ClickStartShape"]=v,v._fireAndBubble(s.pointerdown,{evt:l,pointerId:g.id}),o=!0;const p=l.type.indexOf("touch")>=0;v.preventDefault()&&l.cancelable&&p&&l.preventDefault()}),o||this._fire(s.pointerdown,{evt:l,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(l){const s=Pf(l.type),f=Jr(l.type);if(!s)return;const o=l.type.indexOf("touch")>=0||l.pointerType==="touch";if(vt.isDragging()&&oe.node.preventDefault()&&l.cancelable&&o&&l.preventDefault(),this.setPointersPositions(l),!(!(vt.isDragging()||vt.isTransforming())||vt.hitOnDragEnabled))return;const v={};let p=!1;const S=this._getTargetShape(f);this._changedPointerPositions.forEach(b=>{const T=k1(b.id)||this.getIntersection(b),M=b.id,A={evt:l,pointerId:M},x=S!==T;if(x&&S&&(S._fireAndBubble(s.pointerout,{...A},T),S._fireAndBubble(s.pointerleave,{...A},T)),T){if(v[T._id])return;v[T._id]=!0}T&&T.isListening()?(p=!0,x&&(T._fireAndBubble(s.pointerover,{...A},S),T._fireAndBubble(s.pointerenter,{...A},S),this[f+"targetShape"]=T),T._fireAndBubble(s.pointermove,{...A})):S&&(this._fire(s.pointerover,{evt:l,target:this,currentTarget:this,pointerId:M}),this[f+"targetShape"]=null)}),p||this._fire(s.pointermove,{evt:l,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(l){const s=Pf(l.type),f=Jr(l.type);if(!s)return;this.setPointersPositions(l);const o=this[f+"ClickStartShape"],g=this[f+"ClickEndShape"],v={};let p=!1;this._changedPointerPositions.forEach(S=>{const b=k1(S.id)||this.getIntersection(S);if(b){if(b.releaseCapture(S.id),v[b._id])return;v[b._id]=!0}const T=S.id,M={evt:l,pointerId:T};let A=!1;vt["_"+f+"InDblClickWindow"]?(A=!0,clearTimeout(this[f+"DblTimeout"])):oe.justDragged||(vt["_"+f+"InDblClickWindow"]=!0,clearTimeout(this[f+"DblTimeout"])),this[f+"DblTimeout"]=setTimeout(function(){vt["_"+f+"InDblClickWindow"]=!1},vt.dblClickWindow),b&&b.isListening()?(p=!0,this[f+"ClickEndShape"]=b,b._fireAndBubble(s.pointerup,{...M}),vt["_"+f+"ListenClick"]&&o&&o===b&&(b._fireAndBubble(s.pointerclick,{...M}),A&&g&&g===b&&b._fireAndBubble(s.pointerdblclick,{...M}))):(this[f+"ClickEndShape"]=null,p||(this._fire(s.pointerup,{evt:l,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),p=!0),vt["_"+f+"ListenClick"]&&this._fire(s.pointerclick,{evt:l,target:this,currentTarget:this,pointerId:T}),A&&this._fire(s.pointerdblclick,{evt:l,target:this,currentTarget:this,pointerId:T}))}),p||this._fire(s.pointerup,{evt:l,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),vt["_"+f+"ListenClick"]=!1,l.cancelable&&f!=="touch"&&f!=="pointer"&&l.preventDefault()}_contextmenu(l){this.setPointersPositions(l);const s=this.getIntersection(this.getPointerPosition());s&&s.isListening()?s._fireAndBubble(rd,{evt:l}):this._fire(rd,{evt:l,target:this,currentTarget:this})}_wheel(l){this.setPointersPositions(l);const s=this.getIntersection(this.getPointerPosition());s&&s.isListening()?s._fireAndBubble(hd,{evt:l}):this._fire(hd,{evt:l,target:this,currentTarget:this})}_pointercancel(l){this.setPointersPositions(l);const s=k1(l.pointerId)||this.getIntersection(this.getPointerPosition());s&&s._fireAndBubble($f,Ad(l)),wr(l.pointerId)}_lostpointercapture(l){wr(l.pointerId)}setPointersPositions(l){const s=this._getContentPosition();let f=null,o=null;l=l||window.event,l.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(l.touches,g=>{this._pointerPositions.push({id:g.identifier,x:(g.clientX-s.left)/s.scaleX,y:(g.clientY-s.top)/s.scaleY})}),Array.prototype.forEach.call(l.changedTouches||l.touches,g=>{this._changedPointerPositions.push({id:g.identifier,x:(g.clientX-s.left)/s.scaleX,y:(g.clientY-s.top)/s.scaleY})})):(f=(l.clientX-s.left)/s.scaleX,o=(l.clientY-s.top)/s.scaleY,this.pointerPos={x:f,y:o},this._pointerPositions=[{x:f,y:o,id:B._getFirstPointerId(l)}],this._changedPointerPositions=[{x:f,y:o,id:B._getFirstPointerId(l)}])}_setPointerPosition(l){B.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(l)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const l=this.content.getBoundingClientRect();return{top:l.top,left:l.left,scaleX:l.width/this.content.clientWidth||1,scaleY:l.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new Cs({width:this.width(),height:this.height()}),this.bufferHitCanvas=new Td({pixelRatio:1,width:this.width(),height:this.height()}),!vt.isBrowser)return;const l=this.container();if(!l)throw"Stage has no container. A container is required.";l.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),l.appendChild(this.content),this._resizeDOM()}cache(){return B.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(l){l.batchDraw()}),this}};u1.prototype.nodeType=S5;Ie(u1);R.addGetterSetter(u1,"container");vt.isBrowser&&document.addEventListener("visibilitychange",()=>{Wr.forEach(d=>{d.batchDraw()})});const y3="hasShadow",p3="shadowRGBA",S3="patternImage",_3="linearGradient",E3="radialGradient";let k0;function I1(){return k0||(k0=B.createCanvasElement().getContext("2d"),k0)}const Fr={};function z5(d){const l=this.attrs.fillRule;l?d.fill(l):d.fill()}function M5(d){d.stroke()}function O5(d){const l=this.attrs.fillRule;l?d.fill(l):d.fill()}function x5(d){d.stroke()}function R5(){this._clearCache(y3)}function D5(){this._clearCache(p3)}function N5(){this._clearCache(S3)}function G5(){this._clearCache(_3)}function H5(){this._clearCache(E3)}class ct extends mt{constructor(l){super(l);let s,f=0;for(;s=B.getHitColor(),!(s&&!(s in Fr));)if(f++,f>=1e4){B.warn("Failed to find a unique color key for a shape. Konva may work incorrectly. Most likely your browser is using canvas farbling. Consider disabling it."),s=B.getRandomColor();break}this.colorKey=s,Fr[s]=this}getContext(){return B.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return B.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(y3,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(S3,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const s=I1().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(s&&s.setTransform){const f=new Ll;f.translate(this.fillPatternX(),this.fillPatternY()),f.rotate(vt.getAngle(this.fillPatternRotation())),f.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),f.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const o=f.getMatrix(),g=typeof DOMMatrix>"u"?{a:o[0],b:o[1],c:o[2],d:o[3],e:o[4],f:o[5]}:new DOMMatrix(o);s.setTransform(g)}return s}}_getLinearGradient(){return this._getCache(_3,this.__getLinearGradient)}__getLinearGradient(){const l=this.fillLinearGradientColorStops();if(l){const s=I1(),f=this.fillLinearGradientStartPoint(),o=this.fillLinearGradientEndPoint(),g=s.createLinearGradient(f.x,f.y,o.x,o.y);for(let v=0;v<l.length;v+=2)g.addColorStop(l[v],l[v+1]);return g}}_getRadialGradient(){return this._getCache(E3,this.__getRadialGradient)}__getRadialGradient(){const l=this.fillRadialGradientColorStops();if(l){const s=I1(),f=this.fillRadialGradientStartPoint(),o=this.fillRadialGradientEndPoint(),g=s.createRadialGradient(f.x,f.y,this.fillRadialGradientStartRadius(),o.x,o.y,this.fillRadialGradientEndRadius());for(let v=0;v<l.length;v+=2)g.addColorStop(l[v],l[v+1]);return g}}getShadowRGBA(){return this._getCache(p3,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const l=B.colorToRGBA(this.shadowColor());if(l)return"rgba("+l.r+","+l.g+","+l.b+","+l.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const l=this.hitStrokeWidth();return l==="auto"?this.hasStroke():this.strokeEnabled()&&!!l}intersects(l){const s=this.getStage();if(!s)return!1;const f=s.bufferHitCanvas;return f.getContext().clear(),this.drawHit(f,void 0,!0),f.context.getImageData(Math.round(l.x),Math.round(l.y),1,1).data[3]>0}destroy(){return mt.prototype.destroy.call(this),delete Fr[this.colorKey],delete this.colorKey,this}_useBufferCanvas(l){var s;if(!((s=this.attrs.perfectDrawEnabled)!==null&&s!==void 0?s:!0))return!1;const o=l||this.hasFill(),g=this.hasStroke(),v=this.getAbsoluteOpacity()!==1;if(o&&g&&v)return!0;const p=this.hasShadow(),S=this.shadowForStrokeEnabled();return!!(o&&g&&p&&S)}setStrokeHitEnabled(l){B.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),l?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const l=this.size();return{x:this._centroid?-l.width/2:0,y:this._centroid?-l.height/2:0,width:l.width,height:l.height}}getClientRect(l={}){let s=!1,f=this.getParent();for(;f;){if(f.isCached()){s=!0;break}f=f.getParent()}const o=l.skipTransform,g=l.relativeTo||s&&this.getStage()||void 0,v=this.getSelfRect(),S=!l.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,b=v.width+S,T=v.height+S,M=!l.skipShadow&&this.hasShadow(),A=M?this.shadowOffsetX():0,x=M?this.shadowOffsetY():0,O=b+Math.abs(A),L=T+Math.abs(x),X=M&&this.shadowBlur()||0,Q=O+X*2,j=L+X*2,I={width:Q,height:j,x:-(S/2+X)+Math.min(A,0)+v.x,y:-(S/2+X)+Math.min(x,0)+v.y};return o?I:this._transformedRect(I,g)}drawScene(l,s,f){const o=this.getLayer(),g=l||o.getCanvas(),v=g.getContext(),p=this._getCanvasCache(),S=this.getSceneFunc(),b=this.hasShadow();let T;const M=s===this;if(!this.isVisible()&&!M)return this;if(p){v.save();const A=this.getAbsoluteTransform(s).getMatrix();return v.transform(A[0],A[1],A[2],A[3],A[4],A[5]),this._drawCachedSceneCanvas(v),v.restore(),this}if(!S)return this;if(v.save(),this._useBufferCanvas()){T=this.getStage();const A=f||T.bufferCanvas,x=A.getContext();f?(x.save(),x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,A.width,A.height),x.restore()):x.clear(),x.save(),x._applyLineJoin(this),x._applyMiterLimit(this);const O=this.getAbsoluteTransform(s).getMatrix();x.transform(O[0],O[1],O[2],O[3],O[4],O[5]),S.call(this,x,this),x.restore();const L=A.pixelRatio;b&&v._applyShadow(this),M||(v._applyOpacity(this),v._applyGlobalCompositeOperation(this)),v.drawImage(A._canvas,A.x||0,A.y||0,A.width/L,A.height/L)}else{if(v._applyLineJoin(this),v._applyMiterLimit(this),!M){const A=this.getAbsoluteTransform(s).getMatrix();v.transform(A[0],A[1],A[2],A[3],A[4],A[5]),v._applyOpacity(this),v._applyGlobalCompositeOperation(this)}b&&v._applyShadow(this),S.call(this,v,this)}return v.restore(),this}drawHit(l,s,f=!1){if(!this.shouldDrawHit(s,f))return this;const o=this.getLayer(),g=l||o.hitCanvas,v=g&&g.getContext(),p=this.hitFunc()||this.sceneFunc(),S=this._getCanvasCache(),b=S&&S.hit;if(this.colorKey||B.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),b){v.save();const M=this.getAbsoluteTransform(s).getMatrix();return v.transform(M[0],M[1],M[2],M[3],M[4],M[5]),this._drawCachedHitCanvas(v),v.restore(),this}if(!p)return this;if(v.save(),v._applyLineJoin(this),v._applyMiterLimit(this),!(this===s)){const M=this.getAbsoluteTransform(s).getMatrix();v.transform(M[0],M[1],M[2],M[3],M[4],M[5])}return p.call(this,v,this),v.restore(),this}drawHitFromCache(l=0){const s=this._getCanvasCache(),f=this._getCachedSceneCanvas(),o=s.hit,g=o.getContext(),v=o.getWidth(),p=o.getHeight();g.clear(),g.drawImage(f._canvas,0,0,v,p);try{const S=g.getImageData(0,0,v,p),b=S.data,T=b.length,M=B._hexToRgb(this.colorKey);for(let A=0;A<T;A+=4)b[A+3]>l?(b[A]=M.r,b[A+1]=M.g,b[A+2]=M.b,b[A+3]=255):b[A+3]=0;g.putImageData(S,0,0)}catch(S){B.error("Unable to draw hit graph from cached scene canvas. "+S.message)}return this}hasPointerCapture(l){return i3(l,this)}setPointerCapture(l){u3(l,this)}releaseCapture(l){wr(l)}}ct.prototype._fillFunc=z5;ct.prototype._strokeFunc=M5;ct.prototype._fillFuncHit=O5;ct.prototype._strokeFuncHit=x5;ct.prototype._centroid=!1;ct.prototype.nodeType="Shape";Ie(ct);ct.prototype.eventListeners={};ct.prototype.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",R5);ct.prototype.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",D5);ct.prototype.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",N5);ct.prototype.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",G5);ct.prototype.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",H5);R.addGetterSetter(ct,"stroke",void 0,l3());R.addGetterSetter(ct,"strokeWidth",2,ht());R.addGetterSetter(ct,"fillAfterStrokeEnabled",!1);R.addGetterSetter(ct,"hitStrokeWidth","auto",Cd());R.addGetterSetter(ct,"strokeHitEnabled",!0,Zn());R.addGetterSetter(ct,"perfectDrawEnabled",!0,Zn());R.addGetterSetter(ct,"shadowForStrokeEnabled",!0,Zn());R.addGetterSetter(ct,"lineJoin");R.addGetterSetter(ct,"lineCap");R.addGetterSetter(ct,"miterLimit");R.addGetterSetter(ct,"sceneFunc");R.addGetterSetter(ct,"hitFunc");R.addGetterSetter(ct,"dash");R.addGetterSetter(ct,"dashOffset",0,ht());R.addGetterSetter(ct,"shadowColor",void 0,Ac());R.addGetterSetter(ct,"shadowBlur",0,ht());R.addGetterSetter(ct,"shadowOpacity",1,ht());R.addComponentsGetterSetter(ct,"shadowOffset",["x","y"]);R.addGetterSetter(ct,"shadowOffsetX",0,ht());R.addGetterSetter(ct,"shadowOffsetY",0,ht());R.addGetterSetter(ct,"fillPatternImage");R.addGetterSetter(ct,"fill",void 0,l3());R.addGetterSetter(ct,"fillPatternX",0,ht());R.addGetterSetter(ct,"fillPatternY",0,ht());R.addGetterSetter(ct,"fillLinearGradientColorStops");R.addGetterSetter(ct,"strokeLinearGradientColorStops");R.addGetterSetter(ct,"fillRadialGradientStartRadius",0);R.addGetterSetter(ct,"fillRadialGradientEndRadius",0);R.addGetterSetter(ct,"fillRadialGradientColorStops");R.addGetterSetter(ct,"fillPatternRepeat","repeat");R.addGetterSetter(ct,"fillEnabled",!0);R.addGetterSetter(ct,"strokeEnabled",!0);R.addGetterSetter(ct,"shadowEnabled",!0);R.addGetterSetter(ct,"dashEnabled",!0);R.addGetterSetter(ct,"strokeScaleEnabled",!0);R.addGetterSetter(ct,"fillPriority","color");R.addComponentsGetterSetter(ct,"fillPatternOffset",["x","y"]);R.addGetterSetter(ct,"fillPatternOffsetX",0,ht());R.addGetterSetter(ct,"fillPatternOffsetY",0,ht());R.addComponentsGetterSetter(ct,"fillPatternScale",["x","y"]);R.addGetterSetter(ct,"fillPatternScaleX",1,ht());R.addGetterSetter(ct,"fillPatternScaleY",1,ht());R.addComponentsGetterSetter(ct,"fillLinearGradientStartPoint",["x","y"]);R.addComponentsGetterSetter(ct,"strokeLinearGradientStartPoint",["x","y"]);R.addGetterSetter(ct,"fillLinearGradientStartPointX",0);R.addGetterSetter(ct,"strokeLinearGradientStartPointX",0);R.addGetterSetter(ct,"fillLinearGradientStartPointY",0);R.addGetterSetter(ct,"strokeLinearGradientStartPointY",0);R.addComponentsGetterSetter(ct,"fillLinearGradientEndPoint",["x","y"]);R.addComponentsGetterSetter(ct,"strokeLinearGradientEndPoint",["x","y"]);R.addGetterSetter(ct,"fillLinearGradientEndPointX",0);R.addGetterSetter(ct,"strokeLinearGradientEndPointX",0);R.addGetterSetter(ct,"fillLinearGradientEndPointY",0);R.addGetterSetter(ct,"strokeLinearGradientEndPointY",0);R.addComponentsGetterSetter(ct,"fillRadialGradientStartPoint",["x","y"]);R.addGetterSetter(ct,"fillRadialGradientStartPointX",0);R.addGetterSetter(ct,"fillRadialGradientStartPointY",0);R.addComponentsGetterSetter(ct,"fillRadialGradientEndPoint",["x","y"]);R.addGetterSetter(ct,"fillRadialGradientEndPointX",0);R.addGetterSetter(ct,"fillRadialGradientEndPointY",0);R.addGetterSetter(ct,"fillPatternRotation",0);R.addGetterSetter(ct,"fillRule",void 0,Ac());R.backCompat(ct,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});const U5="beforeDraw",B5="draw",b3=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Y5=b3.length;let zc=class extends jl{constructor(l){super(l),this.canvas=new Cs,this.hitCanvas=new Td({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(l){return this.getContext().clear(l),this.getHitCanvas().getContext().clear(l),this}setZIndex(l){super.setZIndex(l);const s=this.getStage();return s&&s.content&&(s.content.removeChild(this.getNativeCanvasElement()),l<s.children.length-1?s.content.insertBefore(this.getNativeCanvasElement(),s.children[l+1].getCanvas()._canvas):s.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){mt.prototype.moveToTop.call(this);const l=this.getStage();return l&&l.content&&(l.content.removeChild(this.getNativeCanvasElement()),l.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!mt.prototype.moveUp.call(this))return!1;const s=this.getStage();return!s||!s.content?!1:(s.content.removeChild(this.getNativeCanvasElement()),this.index<s.children.length-1?s.content.insertBefore(this.getNativeCanvasElement(),s.children[this.index+1].getCanvas()._canvas):s.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(mt.prototype.moveDown.call(this)){const l=this.getStage();if(l){const s=l.children;l.content&&(l.content.removeChild(this.getNativeCanvasElement()),l.content.insertBefore(this.getNativeCanvasElement(),s[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(mt.prototype.moveToBottom.call(this)){const l=this.getStage();if(l){const s=l.children;l.content&&(l.content.removeChild(this.getNativeCanvasElement()),l.content.insertBefore(this.getNativeCanvasElement(),s[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const l=this.getNativeCanvasElement();return mt.prototype.remove.call(this),l&&l.parentNode&&B._isInDocument(l)&&l.parentNode.removeChild(l),this}getStage(){return this.parent}setSize({width:l,height:s}){return this.canvas.setSize(l,s),this.hitCanvas.setSize(l,s),this._setSmoothEnabled(),this}_validateAdd(l){const s=l.getType();s!=="Group"&&s!=="Shape"&&B.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(l){return l={...l},l.width=l.width||this.getWidth(),l.height=l.height||this.getHeight(),l.x=l.x!==void 0?l.x:this.x(),l.y=l.y!==void 0?l.y:this.y(),mt.prototype._toKonvaCanvas.call(this,l)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){B.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){B.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,B.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(l){if(!this.isListening()||!this.isVisible())return null;let s=1,f=!1;for(;;){for(let o=0;o<Y5;o++){const g=b3[o],v=this._getIntersection({x:l.x+g.x*s,y:l.y+g.y*s}),p=v.shape;if(p)return p;if(f=!!v.antialiased,!v.antialiased)break}if(f)s+=1;else return null}}_getIntersection(l){const s=this.hitCanvas.pixelRatio,f=this.hitCanvas.context.getImageData(Math.round(l.x*s),Math.round(l.y*s),1,1).data,o=f[3];if(o===255){const g=B.getHitColorKey(f[0],f[1],f[2]),v=Fr[g];return v?{shape:v}:{antialiased:!0}}else if(o>0)return{antialiased:!0};return{}}drawScene(l,s,f){const o=this.getLayer(),g=l||o&&o.getCanvas();return this._fire(U5,{node:this}),this.clearBeforeDraw()&&g.getContext().clear(),jl.prototype.drawScene.call(this,g,s,f),this._fire(B5,{node:this}),this}drawHit(l,s){const f=this.getLayer(),o=l||f&&f.hitCanvas;return f&&f.clearBeforeDraw()&&f.getHitCanvas().getContext().clear(),jl.prototype.drawHit.call(this,o,s),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(l){B.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(l)}getHitGraphEnabled(l){return B.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const l=this.parent;!!this.hitCanvas._canvas.parentNode?l.content.removeChild(this.hitCanvas._canvas):l.content.appendChild(this.hitCanvas._canvas)}destroy(){return B.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};zc.prototype.nodeType="Layer";Ie(zc);R.addGetterSetter(zc,"imageSmoothingEnabled",!0);R.addGetterSetter(zc,"clearBeforeDraw",!0);R.addGetterSetter(zc,"hitGraphEnabled",!0,Zn());class zd extends zc{constructor(l){super(l),this.listening(!1),B.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}zd.prototype.nodeType="FastLayer";Ie(zd);let to=class extends jl{_validateAdd(l){const s=l.getType();s!=="Group"&&s!=="Shape"&&B.throw("You may only add groups and shapes to groups.")}};to.prototype.nodeType="Group";Ie(to);const $1=(function(){return Cc.performance&&Cc.performance.now?function(){return Cc.performance.now()}:function(){return new Date().getTime()}})();class pn{constructor(l,s){this.id=pn.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:$1(),frameRate:0},this.func=l,this.setLayers(s)}setLayers(l){let s=[];return l&&(s=Array.isArray(l)?l:[l]),this.layers=s,this}getLayers(){return this.layers}addLayer(l){const s=this.layers,f=s.length;for(let o=0;o<f;o++)if(s[o]._id===l._id)return!1;return this.layers.push(l),!0}isRunning(){const s=pn.animations,f=s.length;for(let o=0;o<f;o++)if(s[o].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=$1(),pn._addAnimation(this),this}stop(){return pn._removeAnimation(this),this}_updateFrameObject(l){this.frame.timeDiff=l-this.frame.lastTime,this.frame.lastTime=l,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(l){this.animations.push(l),this._handleAnimation()}static _removeAnimation(l){const s=l.id,f=this.animations,o=f.length;for(let g=0;g<o;g++)if(f[g].id===s){this.animations.splice(g,1);break}}static _runFrames(){const l={},s=this.animations;for(let f=0;f<s.length;f++){const o=s[f],g=o.layers,v=o.func;o._updateFrameObject($1());const p=g.length;let S;if(v?S=v.call(o,o.frame)!==!1:S=!0,!!S)for(let b=0;b<p;b++){const T=g[b];T._id!==void 0&&(l[T._id]=T)}}for(const f in l)l.hasOwnProperty(f)&&l[f].batchDraw()}static _animationLoop(){const l=pn;l.animations.length?(l._runFrames(),B.requestAnimFrame(l._animationLoop)):l.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,B.requestAnimFrame(this._animationLoop))}}pn.animations=[];pn.animIdCounter=0;pn.animRunning=!1;const q5={node:1,duration:1,easing:1,onFinish:1,yoyo:1},X5=1,N2=2,G2=3,H2=["fill","stroke","shadowColor"];let L5=0;class j5{constructor(l,s,f,o,g,v,p){this.prop=l,this.propFunc=s,this.begin=o,this._pos=o,this.duration=v,this._change=0,this.prevPos=0,this.yoyo=p,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=f,this._change=g-this.begin,this.pause()}fire(l){const s=this[l];s&&s()}setTime(l){l>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():l<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=l,this.update())}getTime(){return this._time}setPosition(l){this.prevPos=this._pos,this.propFunc(l),this._pos=l}getPosition(l){return l===void 0&&(l=this._time),this.func(l,this.begin,this._change,this.duration)}play(){this.state=N2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=G2,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(l){this.pause(),this._time=l,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const l=this.getTimer()-this._startTime;this.state===N2?this.setTime(l):this.state===G2&&this.setTime(this.duration-l)}pause(){this.state=X5,this.fire("onPause")}getTimer(){return new Date().getTime()}}class Ne{constructor(l){const s=this,f=l.node,o=f._id,g=l.easing||kr.Linear,v=!!l.yoyo;let p,S;typeof l.duration>"u"?p=.3:l.duration===0?p=.001:p=l.duration,this.node=f,this._id=L5++;const b=f.getLayer()||(f instanceof vt.Stage?f.getLayers():null);b||B.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new pn(function(){s.tween.onEnterFrame()},b),this.tween=new j5(S,function(T){s._tweenFunc(T)},g,0,1,p*1e3,v),this._addListeners(),Ne.attrs[o]||(Ne.attrs[o]={}),Ne.attrs[o][this._id]||(Ne.attrs[o][this._id]={}),Ne.tweens[o]||(Ne.tweens[o]={});for(S in l)q5[S]===void 0&&this._addAttr(S,l[S]);this.reset(),this.onFinish=l.onFinish,this.onReset=l.onReset,this.onUpdate=l.onUpdate}_addAttr(l,s){const f=this.node,o=f._id;let g,v,p,S,b;const T=Ne.tweens[o][l];T&&delete Ne.attrs[o][T][l];let M=f.getAttr(l);if(B._isArray(s))if(g=[],v=Math.max(s.length,M.length),l==="points"&&s.length!==M.length&&(s.length>M.length?(S=M,M=B._prepareArrayForTween(M,s,f.closed())):(p=s,s=B._prepareArrayForTween(s,M,f.closed()))),l.indexOf("fill")===0)for(let A=0;A<v;A++)if(A%2===0)g.push(s[A]-M[A]);else{const x=B.colorToRGBA(M[A]);b=B.colorToRGBA(s[A]),M[A]=x,g.push({r:b.r-x.r,g:b.g-x.g,b:b.b-x.b,a:b.a-x.a})}else for(let A=0;A<v;A++)g.push(s[A]-M[A]);else H2.indexOf(l)!==-1?(M=B.colorToRGBA(M),b=B.colorToRGBA(s),g={r:b.r-M.r,g:b.g-M.g,b:b.b-M.b,a:b.a-M.a}):g=s-M;Ne.attrs[o][this._id][l]={start:M,diff:g,end:s,trueEnd:p,trueStart:S},Ne.tweens[o][l]=this._id}_tweenFunc(l){const s=this.node,f=Ne.attrs[s._id][this._id];let o,g,v,p,S,b,T,M;for(o in f){if(g=f[o],v=g.start,p=g.diff,M=g.end,B._isArray(v))if(S=[],T=Math.max(v.length,M.length),o.indexOf("fill")===0)for(b=0;b<T;b++)b%2===0?S.push((v[b]||0)+p[b]*l):S.push("rgba("+Math.round(v[b].r+p[b].r*l)+","+Math.round(v[b].g+p[b].g*l)+","+Math.round(v[b].b+p[b].b*l)+","+(v[b].a+p[b].a*l)+")");else for(b=0;b<T;b++)S.push((v[b]||0)+p[b]*l);else H2.indexOf(o)!==-1?S="rgba("+Math.round(v.r+p.r*l)+","+Math.round(v.g+p.g*l)+","+Math.round(v.b+p.b*l)+","+(v.a+p.a*l)+")":S=v+p*l;s.setAttr(o,S)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const l=this.node,s=Ne.attrs[l._id][this._id];s.points&&s.points.trueEnd&&l.setAttr("points",s.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const l=this.node,s=Ne.attrs[l._id][this._id];s.points&&s.points.trueStart&&l.points(s.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(l){return this.tween.seek(l*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const l=this.node._id,s=this._id,f=Ne.tweens[l];this.pause(),this.anim&&this.anim.stop();for(const o in f)delete Ne.tweens[l][o];delete Ne.attrs[l][s],Ne.tweens[l]&&(Object.keys(Ne.tweens[l]).length===0&&delete Ne.tweens[l],Object.keys(Ne.attrs[l]).length===0&&delete Ne.attrs[l])}}Ne.attrs={};Ne.tweens={};mt.prototype.to=function(d){const l=d.onFinish;d.node=this,d.onFinish=function(){this.destroy(),l&&l()},new Ne(d).play()};const kr={BackEaseIn(d,l,s,f){return s*(d/=f)*d*((1.70158+1)*d-1.70158)+l},BackEaseOut(d,l,s,f){return s*((d=d/f-1)*d*((1.70158+1)*d+1.70158)+1)+l},BackEaseInOut(d,l,s,f){let o=1.70158;return(d/=f/2)<1?s/2*(d*d*(((o*=1.525)+1)*d-o))+l:s/2*((d-=2)*d*(((o*=1.525)+1)*d+o)+2)+l},ElasticEaseIn(d,l,s,f,o,g){let v=0;return d===0?l:(d/=f)===1?l+s:(g||(g=f*.3),!o||o<Math.abs(s)?(o=s,v=g/4):v=g/(2*Math.PI)*Math.asin(s/o),-(o*Math.pow(2,10*(d-=1))*Math.sin((d*f-v)*(2*Math.PI)/g))+l)},ElasticEaseOut(d,l,s,f,o,g){let v=0;return d===0?l:(d/=f)===1?l+s:(g||(g=f*.3),!o||o<Math.abs(s)?(o=s,v=g/4):v=g/(2*Math.PI)*Math.asin(s/o),o*Math.pow(2,-10*d)*Math.sin((d*f-v)*(2*Math.PI)/g)+s+l)},ElasticEaseInOut(d,l,s,f,o,g){let v=0;return d===0?l:(d/=f/2)===2?l+s:(g||(g=f*(.3*1.5)),!o||o<Math.abs(s)?(o=s,v=g/4):v=g/(2*Math.PI)*Math.asin(s/o),d<1?-.5*(o*Math.pow(2,10*(d-=1))*Math.sin((d*f-v)*(2*Math.PI)/g))+l:o*Math.pow(2,-10*(d-=1))*Math.sin((d*f-v)*(2*Math.PI)/g)*.5+s+l)},BounceEaseOut(d,l,s,f){return(d/=f)<1/2.75?s*(7.5625*d*d)+l:d<2/2.75?s*(7.5625*(d-=1.5/2.75)*d+.75)+l:d<2.5/2.75?s*(7.5625*(d-=2.25/2.75)*d+.9375)+l:s*(7.5625*(d-=2.625/2.75)*d+.984375)+l},BounceEaseIn(d,l,s,f){return s-kr.BounceEaseOut(f-d,0,s,f)+l},BounceEaseInOut(d,l,s,f){return d<f/2?kr.BounceEaseIn(d*2,0,s,f)*.5+l:kr.BounceEaseOut(d*2-f,0,s,f)*.5+s*.5+l},EaseIn(d,l,s,f){return s*(d/=f)*d+l},EaseOut(d,l,s,f){return-s*(d/=f)*(d-2)+l},EaseInOut(d,l,s,f){return(d/=f/2)<1?s/2*d*d+l:-s/2*(--d*(d-2)-1)+l},StrongEaseIn(d,l,s,f){return s*(d/=f)*d*d*d*d+l},StrongEaseOut(d,l,s,f){return s*((d=d/f-1)*d*d*d*d+1)+l},StrongEaseInOut(d,l,s,f){return(d/=f/2)<1?s/2*d*d*d*d*d+l:s/2*((d-=2)*d*d*d*d+2)+l},Linear(d,l,s,f){return s*d/f+l}},eo=B._assign(vt,{Util:B,Transform:Ll,Node:mt,Container:jl,Stage:u1,stages:Wr,Layer:zc,FastLayer:zd,Group:to,DD:oe,Shape:ct,shapes:Fr,Animation:pn,Tween:Ne,Easings:kr,Context:n1,Canvas:bd});class yu extends ct{_sceneFunc(l){const s=vt.getAngle(this.angle()),f=this.clockwise();l.beginPath(),l.arc(0,0,this.outerRadius(),0,s,f),l.arc(0,0,this.innerRadius(),s,0,!f),l.closePath(),l.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(l){this.outerRadius(l/2)}setHeight(l){this.outerRadius(l/2)}getSelfRect(){const l=this.innerRadius(),s=this.outerRadius(),f=this.clockwise(),o=vt.getAngle(f?360-this.angle():this.angle()),g=Math.cos(Math.min(o,Math.PI)),v=1,p=Math.sin(Math.min(Math.max(Math.PI,o),3*Math.PI/2)),S=Math.sin(Math.min(o,Math.PI/2)),b=g*(g>0?l:s),T=v*s,M=p*(p>0?l:s),A=S*(S>0?s:l);return{x:b,y:f?-1*A:M,width:T-b,height:A-M}}}yu.prototype._centroid=!0;yu.prototype.className="Arc";yu.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"];Ie(yu);R.addGetterSetter(yu,"innerRadius",0,ht());R.addGetterSetter(yu,"outerRadius",0,ht());R.addGetterSetter(yu,"angle",0,ht());R.addGetterSetter(yu,"clockwise",!1,Zn());function dd(d,l,s,f,o,g,v){const p=Math.sqrt(Math.pow(s-d,2)+Math.pow(f-l,2)),S=Math.sqrt(Math.pow(o-s,2)+Math.pow(g-f,2)),b=v*p/(p+S),T=v*S/(p+S),M=s-b*(o-d),A=f-b*(g-l),x=s+T*(o-d),O=f+T*(g-l);return[M,A,x,O]}function U2(d,l){const s=d.length,f=[];for(let o=2;o<s-2;o+=2){const g=dd(d[o-2],d[o-1],d[o],d[o+1],d[o+2],d[o+3],l);isNaN(g[0])||(f.push(g[0]),f.push(g[1]),f.push(d[o]),f.push(d[o+1]),f.push(g[2]),f.push(g[3]))}return f}function Q5(d){const l=[[d[0],d[2],d[4],d[6]],[d[1],d[3],d[5],d[7]]],s=[];for(const f of l){const o=-3*f[0]+9*f[1]-9*f[2]+3*f[3];if(o!==0){const g=6*f[0]-12*f[1]+6*f[2],v=-3*f[0]+3*f[1],p=g*g-4*o*v;if(p>=0){const S=Math.sqrt(p);s.push((-g+S)/(2*o)),s.push((-g-S)/(2*o))}}}return s.filter(f=>f>0&&f<1).flatMap(f=>l.map(o=>{const g=1-f;return g*g*g*o[0]+3*g*g*f*o[1]+3*g*f*f*o[2]+f*f*f*o[3]}))}let pu=class extends ct{constructor(l){super(l),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(l){const s=this.points(),f=s.length,o=this.tension(),g=this.closed(),v=this.bezier();if(!f)return;let p=0;if(l.beginPath(),l.moveTo(s[0],s[1]),o!==0&&f>4){const S=this.getTensionPoints(),b=S.length;for(p=g?0:4,g||l.quadraticCurveTo(S[0],S[1],S[2],S[3]);p<b-2;)l.bezierCurveTo(S[p++],S[p++],S[p++],S[p++],S[p++],S[p++]);g||l.quadraticCurveTo(S[b-2],S[b-1],s[f-2],s[f-1])}else if(v)for(p=2;p<f;)l.bezierCurveTo(s[p++],s[p++],s[p++],s[p++],s[p++],s[p++]);else for(p=2;p<f;p+=2)l.lineTo(s[p],s[p+1]);g?(l.closePath(),l.fillStrokeShape(this)):l.strokeShape(this)}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():U2(this.points(),this.tension())}_getTensionPointsClosed(){const l=this.points(),s=l.length,f=this.tension(),o=dd(l[s-2],l[s-1],l[0],l[1],l[2],l[3],f),g=dd(l[s-4],l[s-3],l[s-2],l[s-1],l[0],l[1],f),v=U2(l,f);return[o[2],o[3]].concat(v).concat([g[0],g[1],l[s-2],l[s-1],g[2],g[3],o[0],o[1],l[0],l[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let l=this.points();if(l.length<4)return{x:l[0]||0,y:l[1]||0,width:0,height:0};this.tension()!==0?l=[l[0],l[1],...this._getTensionPoints(),l[l.length-2],l[l.length-1]]:this.bezier()?l=[l[0],l[1],...Q5(this.points()),l[l.length-2],l[l.length-1]]:l=this.points();let s=l[0],f=l[0],o=l[1],g=l[1],v,p;for(let S=0;S<l.length/2;S++)v=l[S*2],p=l[S*2+1],s=Math.min(s,v),f=Math.max(f,v),o=Math.min(o,p),g=Math.max(g,p);return{x:s,y:o,width:f-s,height:g-o}}};pu.prototype.className="Line";pu.prototype._attrsAffectingSize=["points","bezier","tension"];Ie(pu);R.addGetterSetter(pu,"closed",!1);R.addGetterSetter(pu,"bezier",!1);R.addGetterSetter(pu,"tension",0,ht());R.addGetterSetter(pu,"points",[],n5());const V5=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],Z5=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],K5=[[1],[1,1],[1,2,1],[1,3,3,1]],B2=(d,l,s)=>{let f,o;const v=s/2;f=0;for(let p=0;p<20;p++)o=v*V5[20][p]+v,f+=Z5[20][p]*J5(d,l,o);return v*f},Y2=(d,l,s)=>{s===void 0&&(s=1);const f=d[0]-2*d[1]+d[2],o=l[0]-2*l[1]+l[2],g=2*d[1]-2*d[0],v=2*l[1]-2*l[0],p=4*(f*f+o*o),S=4*(f*g+o*v),b=g*g+v*v;if(p===0)return s*Math.sqrt(Math.pow(d[2]-d[0],2)+Math.pow(l[2]-l[0],2));const T=S/(2*p),M=b/p,A=s+T,x=M-T*T,O=A*A+x>0?Math.sqrt(A*A+x):0,L=T*T+x>0?Math.sqrt(T*T+x):0,X=T+Math.sqrt(T*T+x)!==0?x*Math.log(Math.abs((A+O)/(T+L))):0;return Math.sqrt(p)/2*(A*O-T*L+X)};function J5(d,l,s){const f=md(1,s,d),o=md(1,s,l),g=f*f+o*o;return Math.sqrt(g)}const md=(d,l,s)=>{const f=s.length-1;let o,g;if(f===0)return 0;if(d===0){g=0;for(let v=0;v<=f;v++)g+=K5[f][v]*Math.pow(1-l,f-v)*Math.pow(l,v)*s[v];return g}else{o=new Array(f);for(let v=0;v<f;v++)o[v]=f*(s[v+1]-s[v]);return md(d-1,l,o)}},q2=(d,l,s)=>{let f=1,o=d/l,g=(d-s(o))/l,v=0;for(;f>.001;){const p=s(o+g),S=Math.abs(d-p)/l;if(S<f)f=S,o+=g;else{const b=s(o-g),T=Math.abs(d-b)/l;T<f?(f=T,o-=g):g/=2}if(v++,v>500)break}return o};class Ge extends ct{constructor(l){super(l),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Ge.parsePathData(this.data()),this.pathLength=Ge.getPathLength(this.dataArray)}_sceneFunc(l){const s=this.dataArray;l.beginPath();let f=!1;for(let o=0;o<s.length;o++){const g=s[o].command,v=s[o].points;switch(g){case"L":l.lineTo(v[0],v[1]);break;case"M":l.moveTo(v[0],v[1]);break;case"C":l.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);break;case"Q":l.quadraticCurveTo(v[0],v[1],v[2],v[3]);break;case"A":const p=v[0],S=v[1],b=v[2],T=v[3],M=v[4],A=v[5],x=v[6],O=v[7],L=b>T?b:T,X=b>T?1:b/T,Q=b>T?T/b:1;l.translate(p,S),l.rotate(x),l.scale(X,Q),l.arc(0,0,L,M,M+A,1-O),l.scale(1/X,1/Q),l.rotate(-x),l.translate(-p,-S);break;case"z":f=!0,l.closePath();break}}!f&&!this.hasFill()?l.strokeShape(this):l.fillStrokeShape(this)}getSelfRect(){let l=[];this.dataArray.forEach(function(S){if(S.command==="A"){const b=S.points[4],T=S.points[5],M=S.points[4]+T;let A=Math.PI/180;if(Math.abs(b-M)<A&&(A=Math.abs(b-M)),T<0)for(let x=b-A;x>M;x-=A){const O=Ge.getPointOnEllipticalArc(S.points[0],S.points[1],S.points[2],S.points[3],x,0);l.push(O.x,O.y)}else for(let x=b+A;x<M;x+=A){const O=Ge.getPointOnEllipticalArc(S.points[0],S.points[1],S.points[2],S.points[3],x,0);l.push(O.x,O.y)}}else if(S.command==="C")for(let b=0;b<=1;b+=.01){const T=Ge.getPointOnCubicBezier(b,S.start.x,S.start.y,S.points[0],S.points[1],S.points[2],S.points[3],S.points[4],S.points[5]);l.push(T.x,T.y)}else l=l.concat(S.points)});let s=l[0],f=l[0],o=l[1],g=l[1],v,p;for(let S=0;S<l.length/2;S++)v=l[S*2],p=l[S*2+1],isNaN(v)||(s=Math.min(s,v),f=Math.max(f,v)),isNaN(p)||(o=Math.min(o,p),g=Math.max(g,p));return{x:s,y:o,width:f-s,height:g-o}}getLength(){return this.pathLength}getPointAtLength(l){return Ge.getPointAtLengthOfDataArray(l,this.dataArray)}static getLineLength(l,s,f,o){return Math.sqrt((f-l)*(f-l)+(o-s)*(o-s))}static getPathLength(l){let s=0;for(let f=0;f<l.length;++f)s+=l[f].pathLength;return s}static getPointAtLengthOfDataArray(l,s){let f,o=0,g=s.length;if(!g)return null;for(;o<g&&l>s[o].pathLength;)l-=s[o].pathLength,++o;if(o===g)return f=s[o-1].points.slice(-2),{x:f[0],y:f[1]};if(l<.01)return s[o].command==="M"?(f=s[o].points.slice(0,2),{x:f[0],y:f[1]}):{x:s[o].start.x,y:s[o].start.y};const v=s[o],p=v.points;switch(v.command){case"L":return Ge.getPointOnLine(l,v.start.x,v.start.y,p[0],p[1]);case"C":return Ge.getPointOnCubicBezier(q2(l,Ge.getPathLength(s),L=>B2([v.start.x,p[0],p[2],p[4]],[v.start.y,p[1],p[3],p[5]],L)),v.start.x,v.start.y,p[0],p[1],p[2],p[3],p[4],p[5]);case"Q":return Ge.getPointOnQuadraticBezier(q2(l,Ge.getPathLength(s),L=>Y2([v.start.x,p[0],p[2]],[v.start.y,p[1],p[3]],L)),v.start.x,v.start.y,p[0],p[1],p[2],p[3]);case"A":const S=p[0],b=p[1],T=p[2],M=p[3],A=p[5],x=p[6];let O=p[4];return O+=A*l/v.pathLength,Ge.getPointOnEllipticalArc(S,b,T,M,O,x)}return null}static getPointOnLine(l,s,f,o,g,v,p){v=v??s,p=p??f;const S=this.getLineLength(s,f,o,g);if(S<1e-10)return{x:s,y:f};if(o===s)return{x:v,y:p+(g>f?l:-l)};const b=(g-f)/(o-s),T=Math.sqrt(l*l/(1+b*b))*(o<s?-1:1),M=b*T;if(Math.abs(p-f-b*(v-s))<1e-10)return{x:v+T,y:p+M};const A=((v-s)*(o-s)+(p-f)*(g-f))/(S*S),x=s+A*(o-s),O=f+A*(g-f),L=this.getLineLength(v,p,x,O),X=Math.sqrt(l*l-L*L),Q=Math.sqrt(X*X/(1+b*b))*(o<s?-1:1),j=b*Q;return{x:x+Q,y:O+j}}static getPointOnCubicBezier(l,s,f,o,g,v,p,S,b){function T(X){return X*X*X}function M(X){return 3*X*X*(1-X)}function A(X){return 3*X*(1-X)*(1-X)}function x(X){return(1-X)*(1-X)*(1-X)}const O=S*T(l)+v*M(l)+o*A(l)+s*x(l),L=b*T(l)+p*M(l)+g*A(l)+f*x(l);return{x:O,y:L}}static getPointOnQuadraticBezier(l,s,f,o,g,v,p){function S(x){return x*x}function b(x){return 2*x*(1-x)}function T(x){return(1-x)*(1-x)}const M=v*S(l)+o*b(l)+s*T(l),A=p*S(l)+g*b(l)+f*T(l);return{x:M,y:A}}static getPointOnEllipticalArc(l,s,f,o,g,v){const p=Math.cos(v),S=Math.sin(v),b={x:f*Math.cos(g),y:o*Math.sin(g)};return{x:l+(b.x*p-b.y*S),y:s+(b.x*S+b.y*p)}}static parsePathData(l){if(!l)return[];let s=l;const f=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];s=s.replace(new RegExp(" ","g"),",");for(let M=0;M<f.length;M++)s=s.replace(new RegExp(f[M],"g"),"|"+f[M]);const o=s.split("|"),g=[],v=[];let p=0,S=0;const b=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let T;for(let M=1;M<o.length;M++){let A=o[M],x=A.charAt(0);for(A=A.slice(1),v.length=0;T=b.exec(A);)v.push(T[0]);let O=[],L=x==="A"||x==="a"?0:-1;for(let X=0,Q=v.length;X<Q;X++){const j=v[X];if(j==="00"){O.push(0,0),L>=0&&(L+=2,L>=7&&(L-=7));continue}if(L>=0){if(L===3){if(/^[01]{2}\d+(?:\.\d+)?$/.test(j)){O.push(parseInt(j[0],10)),O.push(parseInt(j[1],10)),O.push(parseFloat(j.slice(2))),L+=3,L>=7&&(L-=7);continue}if(j==="11"||j==="10"||j==="01"){O.push(parseInt(j[0],10)),O.push(parseInt(j[1],10)),L+=2,L>=7&&(L-=7);continue}if(j==="0"||j==="1"){O.push(parseInt(j,10)),L+=1,L>=7&&(L-=7);continue}}else if(L===4){if(/^[01]\d+(?:\.\d+)?$/.test(j)){O.push(parseInt(j[0],10)),O.push(parseFloat(j.slice(1))),L+=2,L>=7&&(L-=7);continue}if(j==="0"||j==="1"){O.push(parseInt(j,10)),L+=1,L>=7&&(L-=7);continue}}const I=parseFloat(j);isNaN(I)?O.push(0):O.push(I),L+=1,L>=7&&(L-=7)}else{const I=parseFloat(j);isNaN(I)?O.push(0):O.push(I)}}for(;O.length>0&&!isNaN(O[0]);){let X="",Q=[];const j=p,I=S;let P,gt,lt,st,rt,Et,Mt,Yt,pt,Ht;switch(x){case"l":p+=O.shift(),S+=O.shift(),X="L",Q.push(p,S);break;case"L":p=O.shift(),S=O.shift(),Q.push(p,S);break;case"m":const Ut=O.shift(),St=O.shift();if(p+=Ut,S+=St,X="M",g.length>2&&g[g.length-1].command==="z"){for(let U=g.length-2;U>=0;U--)if(g[U].command==="M"){p=g[U].points[0]+Ut,S=g[U].points[1]+St;break}}Q.push(p,S),x="l";break;case"M":p=O.shift(),S=O.shift(),X="M",Q.push(p,S),x="L";break;case"h":p+=O.shift(),X="L",Q.push(p,S);break;case"H":p=O.shift(),X="L",Q.push(p,S);break;case"v":S+=O.shift(),X="L",Q.push(p,S);break;case"V":S=O.shift(),X="L",Q.push(p,S);break;case"C":Q.push(O.shift(),O.shift(),O.shift(),O.shift()),p=O.shift(),S=O.shift(),Q.push(p,S);break;case"c":Q.push(p+O.shift(),S+O.shift(),p+O.shift(),S+O.shift()),p+=O.shift(),S+=O.shift(),X="C",Q.push(p,S);break;case"S":gt=p,lt=S,P=g[g.length-1],P.command==="C"&&(gt=p+(p-P.points[2]),lt=S+(S-P.points[3])),Q.push(gt,lt,O.shift(),O.shift()),p=O.shift(),S=O.shift(),X="C",Q.push(p,S);break;case"s":gt=p,lt=S,P=g[g.length-1],P.command==="C"&&(gt=p+(p-P.points[2]),lt=S+(S-P.points[3])),Q.push(gt,lt,p+O.shift(),S+O.shift()),p+=O.shift(),S+=O.shift(),X="C",Q.push(p,S);break;case"Q":Q.push(O.shift(),O.shift()),p=O.shift(),S=O.shift(),Q.push(p,S);break;case"q":Q.push(p+O.shift(),S+O.shift()),p+=O.shift(),S+=O.shift(),X="Q",Q.push(p,S);break;case"T":gt=p,lt=S,P=g[g.length-1],P.command==="Q"&&(gt=p+(p-P.points[0]),lt=S+(S-P.points[1])),p=O.shift(),S=O.shift(),X="Q",Q.push(gt,lt,p,S);break;case"t":gt=p,lt=S,P=g[g.length-1],P.command==="Q"&&(gt=p+(p-P.points[0]),lt=S+(S-P.points[1])),p+=O.shift(),S+=O.shift(),X="Q",Q.push(gt,lt,p,S);break;case"A":st=O.shift(),rt=O.shift(),Et=O.shift(),Mt=O.shift(),Yt=O.shift(),pt=p,Ht=S,p=O.shift(),S=O.shift(),X="A",Q=this.convertEndpointToCenterParameterization(pt,Ht,p,S,Mt,Yt,st,rt,Et);break;case"a":st=O.shift(),rt=O.shift(),Et=O.shift(),Mt=O.shift(),Yt=O.shift(),pt=p,Ht=S,p+=O.shift(),S+=O.shift(),X="A",Q=this.convertEndpointToCenterParameterization(pt,Ht,p,S,Mt,Yt,st,rt,Et);break}g.push({command:X||x,points:Q,start:{x:j,y:I},pathLength:this.calcLength(j,I,X||x,Q)})}(x==="z"||x==="Z")&&g.push({command:"z",points:[],start:void 0,pathLength:0})}return g}static calcLength(l,s,f,o){let g,v,p,S;const b=Ge;switch(f){case"L":return b.getLineLength(l,s,o[0],o[1]);case"C":return B2([l,o[0],o[2],o[4]],[s,o[1],o[3],o[5]],1);case"Q":return Y2([l,o[0],o[2]],[s,o[1],o[3]],1);case"A":g=0;const T=o[4],M=o[5],A=o[4]+M;let x=Math.PI/180;if(Math.abs(T-A)<x&&(x=Math.abs(T-A)),v=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],T,0),M<0)for(S=T-x;S>A;S-=x)p=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],S,0),g+=b.getLineLength(v.x,v.y,p.x,p.y),v=p;else for(S=T+x;S<A;S+=x)p=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],S,0),g+=b.getLineLength(v.x,v.y,p.x,p.y),v=p;return p=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],A,0),g+=b.getLineLength(v.x,v.y,p.x,p.y),g}return 0}static convertEndpointToCenterParameterization(l,s,f,o,g,v,p,S,b){const T=b*(Math.PI/180),M=Math.cos(T)*(l-f)/2+Math.sin(T)*(s-o)/2,A=-1*Math.sin(T)*(l-f)/2+Math.cos(T)*(s-o)/2,x=M*M/(p*p)+A*A/(S*S);x>1&&(p*=Math.sqrt(x),S*=Math.sqrt(x));let O=Math.sqrt((p*p*(S*S)-p*p*(A*A)-S*S*(M*M))/(p*p*(A*A)+S*S*(M*M)));g===v&&(O*=-1),isNaN(O)&&(O=0);const L=O*p*A/S,X=O*-S*M/p,Q=(l+f)/2+Math.cos(T)*L-Math.sin(T)*X,j=(s+o)/2+Math.sin(T)*L+Math.cos(T)*X,I=function(Mt){return Math.sqrt(Mt[0]*Mt[0]+Mt[1]*Mt[1])},P=function(Mt,Yt){return(Mt[0]*Yt[0]+Mt[1]*Yt[1])/(I(Mt)*I(Yt))},gt=function(Mt,Yt){return(Mt[0]*Yt[1]<Mt[1]*Yt[0]?-1:1)*Math.acos(P(Mt,Yt))},lt=gt([1,0],[(M-L)/p,(A-X)/S]),st=[(M-L)/p,(A-X)/S],rt=[(-1*M-L)/p,(-1*A-X)/S];let Et=gt(st,rt);return P(st,rt)<=-1&&(Et=Math.PI),P(st,rt)>=1&&(Et=0),v===0&&Et>0&&(Et=Et-2*Math.PI),v===1&&Et<0&&(Et=Et+2*Math.PI),[Q,j,p,S,lt,Et,T,v]}}Ge.prototype.className="Path";Ge.prototype._attrsAffectingSize=["data"];Ie(Ge);R.addGetterSetter(Ge,"data");class Mc extends pu{_sceneFunc(l){super._sceneFunc(l);const s=Math.PI*2,f=this.points();let o=f;const g=this.tension()!==0&&f.length>4;g&&(o=this.getTensionPoints());const v=this.pointerLength(),p=f.length;let S,b;if(g){const A=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],f[p-2],f[p-1]],x=Ge.calcLength(o[o.length-4],o[o.length-3],"C",A),O=Ge.getPointOnQuadraticBezier(Math.min(1,1-v/x),A[0],A[1],A[2],A[3],A[4],A[5]);S=f[p-2]-O.x,b=f[p-1]-O.y}else S=f[p-2]-f[p-4],b=f[p-1]-f[p-3];const T=(Math.atan2(b,S)+s)%s,M=this.pointerWidth();this.pointerAtEnding()&&(l.save(),l.beginPath(),l.translate(f[p-2],f[p-1]),l.rotate(T),l.moveTo(0,0),l.lineTo(-v,M/2),l.lineTo(-v,-M/2),l.closePath(),l.restore(),this.__fillStroke(l)),this.pointerAtBeginning()&&(l.save(),l.beginPath(),l.translate(f[0],f[1]),g?(S=(o[0]+o[2])/2-f[0],b=(o[1]+o[3])/2-f[1]):(S=f[2]-f[0],b=f[3]-f[1]),l.rotate((Math.atan2(-b,-S)+s)%s),l.moveTo(0,0),l.lineTo(-v,M/2),l.lineTo(-v,-M/2),l.closePath(),l.restore(),this.__fillStroke(l))}__fillStroke(l){const s=this.dashEnabled();s&&(this.attrs.dashEnabled=!1,l.setLineDash([])),l.fillStrokeShape(this),s&&(this.attrs.dashEnabled=!0)}getSelfRect(){const l=super.getSelfRect(),s=this.pointerWidth()/2;return{x:l.x,y:l.y-s,width:l.width,height:l.height+s*2}}}Mc.prototype.className="Arrow";Ie(Mc);R.addGetterSetter(Mc,"pointerLength",10,ht());R.addGetterSetter(Mc,"pointerWidth",10,ht());R.addGetterSetter(Mc,"pointerAtBeginning",!1);R.addGetterSetter(Mc,"pointerAtEnding",!0);let ao=class extends ct{_sceneFunc(l){l.beginPath(),l.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),l.closePath(),l.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(l){this.radius()!==l/2&&this.radius(l/2)}setHeight(l){this.radius()!==l/2&&this.radius(l/2)}};ao.prototype._centroid=!0;ao.prototype.className="Circle";ao.prototype._attrsAffectingSize=["radius"];Ie(ao);R.addGetterSetter(ao,"radius",0,ht());class zs extends ct{_sceneFunc(l){const s=this.radiusX(),f=this.radiusY();l.beginPath(),l.save(),s!==f&&l.scale(1,f/s),l.arc(0,0,s,0,Math.PI*2,!1),l.restore(),l.closePath(),l.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(l){this.radiusX(l/2)}setHeight(l){this.radiusY(l/2)}}zs.prototype.className="Ellipse";zs.prototype._centroid=!0;zs.prototype._attrsAffectingSize=["radiusX","radiusY"];Ie(zs);R.addComponentsGetterSetter(zs,"radius",["x","y"]);R.addGetterSetter(zs,"radiusX",0,ht());R.addGetterSetter(zs,"radiusY",0,ht());class Ql extends ct{constructor(l){super(l),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",s=>{this._removeImageLoad(s.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const l=this.image();l&&l.complete||l&&l.readyState===4||l&&l.addEventListener&&l.addEventListener("load",this._loadListener)}_removeImageLoad(l){l&&l.removeEventListener&&l.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const l=!!this.cornerRadius(),s=this.hasShadow();return l&&s?!0:super._useBufferCanvas(!0)}_sceneFunc(l){const s=this.getWidth(),f=this.getHeight(),o=this.cornerRadius(),g=this.attrs.image;let v;if(g){const p=this.attrs.cropWidth,S=this.attrs.cropHeight;p&&S?v=[g,this.cropX(),this.cropY(),p,S,0,0,s,f]:v=[g,0,0,s,f]}(this.hasFill()||this.hasStroke()||o)&&(l.beginPath(),o?B.drawRoundedRectPath(l,s,f,o):l.rect(0,0,s,f),l.closePath(),l.fillStrokeShape(this)),g&&(o&&l.clip(),l.drawImage.apply(l,v))}_hitFunc(l){const s=this.width(),f=this.height(),o=this.cornerRadius();l.beginPath(),o?B.drawRoundedRectPath(l,s,f,o):l.rect(0,0,s,f),l.closePath(),l.fillStrokeShape(this)}getWidth(){var l,s,f;return(f=(l=this.attrs.width)!==null&&l!==void 0?l:(s=this.image())===null||s===void 0?void 0:s.width)!==null&&f!==void 0?f:0}getHeight(){var l,s,f;return(f=(l=this.attrs.height)!==null&&l!==void 0?l:(s=this.image())===null||s===void 0?void 0:s.height)!==null&&f!==void 0?f:0}static fromURL(l,s,f=null){const o=B.createImageElement();o.onload=function(){const g=new Ql({image:o});s(g)},o.onerror=f,o.crossOrigin="Anonymous",o.src=l}}Ql.prototype.className="Image";Ql.prototype._attrsAffectingSize=["image"];Ie(Ql);R.addGetterSetter(Ql,"cornerRadius",0,i1(4));R.addGetterSetter(Ql,"image");R.addComponentsGetterSetter(Ql,"crop",["x","y","width","height"]);R.addGetterSetter(Ql,"cropX",0,ht());R.addGetterSetter(Ql,"cropY",0,ht());R.addGetterSetter(Ql,"cropWidth",0,ht());R.addGetterSetter(Ql,"cropHeight",0,ht());const T3=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],w5="Change.konva",W5="none",gd="up",vd="right",yd="down",pd="left",F5=T3.length;class Md extends to{constructor(l){super(l),this.on("add.konva",function(s){this._addListeners(s.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(l){let s=this,f;const o=function(){s._sync()};for(f=0;f<F5;f++)l.on(T3[f]+w5,o)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let l=this.getText(),s=this.getTag(),f,o,g,v,p,S,b;if(l&&s){switch(f=l.width(),o=l.height(),g=s.pointerDirection(),v=s.pointerWidth(),b=s.pointerHeight(),p=0,S=0,g){case gd:p=f/2,S=-1*b;break;case vd:p=f+v,S=o/2;break;case yd:p=f/2,S=o+b;break;case pd:p=-1*v,S=o/2;break}s.setAttrs({x:-1*p,y:-1*S,width:f,height:o}),l.setAttrs({x:-1*p,y:-1*S})}}}Md.prototype.className="Label";Ie(Md);class Oc extends ct{_sceneFunc(l){const s=this.width(),f=this.height(),o=this.pointerDirection(),g=this.pointerWidth(),v=this.pointerHeight(),p=this.cornerRadius();let S=0,b=0,T=0,M=0;typeof p=="number"?S=b=T=M=Math.min(p,s/2,f/2):(S=Math.min(p[0]||0,s/2,f/2),b=Math.min(p[1]||0,s/2,f/2),M=Math.min(p[2]||0,s/2,f/2),T=Math.min(p[3]||0,s/2,f/2)),l.beginPath(),l.moveTo(S,0),o===gd&&(l.lineTo((s-g)/2,0),l.lineTo(s/2,-1*v),l.lineTo((s+g)/2,0)),l.lineTo(s-b,0),l.arc(s-b,b,b,Math.PI*3/2,0,!1),o===vd&&(l.lineTo(s,(f-v)/2),l.lineTo(s+g,f/2),l.lineTo(s,(f+v)/2)),l.lineTo(s,f-M),l.arc(s-M,f-M,M,0,Math.PI/2,!1),o===yd&&(l.lineTo((s+g)/2,f),l.lineTo(s/2,f+v),l.lineTo((s-g)/2,f)),l.lineTo(T,f),l.arc(T,f-T,T,Math.PI/2,Math.PI,!1),o===pd&&(l.lineTo(0,(f+v)/2),l.lineTo(-1*g,f/2),l.lineTo(0,(f-v)/2)),l.lineTo(0,S),l.arc(S,S,S,Math.PI,Math.PI*3/2,!1),l.closePath(),l.fillStrokeShape(this)}getSelfRect(){let l=0,s=0,f=this.pointerWidth(),o=this.pointerHeight(),g=this.pointerDirection(),v=this.width(),p=this.height();return g===gd?(s-=o,p+=o):g===yd?p+=o:g===pd?(l-=f*1.5,v+=f):g===vd&&(v+=f*1.5),{x:l,y:s,width:v,height:p}}}Oc.prototype.className="Tag";Ie(Oc);R.addGetterSetter(Oc,"pointerDirection",W5);R.addGetterSetter(Oc,"pointerWidth",0,ht());R.addGetterSetter(Oc,"pointerHeight",0,ht());R.addGetterSetter(Oc,"cornerRadius",0,i1(4));let th=class extends ct{_sceneFunc(l){const s=this.cornerRadius(),f=this.width(),o=this.height();l.beginPath(),s?B.drawRoundedRectPath(l,f,o,s):l.rect(0,0,f,o),l.closePath(),l.fillStrokeShape(this)}};th.prototype.className="Rect";Ie(th);R.addGetterSetter(th,"cornerRadius",0,i1(4));class Ms extends ct{_sceneFunc(l){const s=this._getPoints(),f=this.radius(),o=this.sides(),g=this.cornerRadius();if(l.beginPath(),g)B.drawRoundedPolygonPath(l,s,o,f,g);else{l.moveTo(s[0].x,s[0].y);for(let v=1;v<s.length;v++)l.lineTo(s[v].x,s[v].y)}l.closePath(),l.fillStrokeShape(this)}_getPoints(){const l=this.attrs.sides,s=this.attrs.radius||0,f=[];for(let o=0;o<l;o++)f.push({x:s*Math.sin(o*2*Math.PI/l),y:-1*s*Math.cos(o*2*Math.PI/l)});return f}getSelfRect(){const l=this._getPoints();let s=l[0].x,f=l[0].x,o=l[0].y,g=l[0].y;return l.forEach(v=>{s=Math.min(s,v.x),f=Math.max(f,v.x),o=Math.min(o,v.y),g=Math.max(g,v.y)}),{x:s,y:o,width:f-s,height:g-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(l){this.radius(l/2)}setHeight(l){this.radius(l/2)}}Ms.prototype.className="RegularPolygon";Ms.prototype._centroid=!0;Ms.prototype._attrsAffectingSize=["radius"];Ie(Ms);R.addGetterSetter(Ms,"radius",0,ht());R.addGetterSetter(Ms,"sides",0,ht());R.addGetterSetter(Ms,"cornerRadius",0,i1(4));const X2=Math.PI*2;class xc extends ct{_sceneFunc(l){l.beginPath(),l.arc(0,0,this.innerRadius(),0,X2,!1),l.moveTo(this.outerRadius(),0),l.arc(0,0,this.outerRadius(),X2,0,!0),l.closePath(),l.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(l){this.outerRadius(l/2)}setHeight(l){this.outerRadius(l/2)}}xc.prototype.className="Ring";xc.prototype._centroid=!0;xc.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Ie(xc);R.addGetterSetter(xc,"innerRadius",0,ht());R.addGetterSetter(xc,"outerRadius",0,ht());class xi extends ct{constructor(l){super(l),this._updated=!0,this.anim=new pn(()=>{const s=this._updated;return this._updated=!1,s}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(l){const s=this.animation(),f=this.frameIndex(),o=f*4,g=this.animations()[s],v=this.frameOffsets(),p=g[o+0],S=g[o+1],b=g[o+2],T=g[o+3],M=this.image();if((this.hasFill()||this.hasStroke())&&(l.beginPath(),l.rect(0,0,b,T),l.closePath(),l.fillStrokeShape(this)),M)if(v){const A=v[s],x=f*2;l.drawImage(M,p,S,b,T,A[x+0],A[x+1],b,T)}else l.drawImage(M,p,S,b,T,0,0,b,T)}_hitFunc(l){const s=this.animation(),f=this.frameIndex(),o=f*4,g=this.animations()[s],v=this.frameOffsets(),p=g[o+2],S=g[o+3];if(l.beginPath(),v){const b=v[s],T=f*2;l.rect(b[T+0],b[T+1],p,S)}else l.rect(0,0,p,S);l.closePath(),l.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const l=this;this.interval=setInterval(function(){l._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const l=this.getLayer();this.anim.setLayers(l),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const l=this.frameIndex(),s=this.animation(),f=this.animations(),o=f[s],g=o.length/4;l<g-1?this.frameIndex(l+1):this.frameIndex(0)}}xi.prototype.className="Sprite";Ie(xi);R.addGetterSetter(xi,"animation");R.addGetterSetter(xi,"animations");R.addGetterSetter(xi,"frameOffsets");R.addGetterSetter(xi,"image");R.addGetterSetter(xi,"frameIndex",0,ht());R.addGetterSetter(xi,"frameRate",17,ht());R.backCompat(xi,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class Os extends ct{_sceneFunc(l){const s=this.innerRadius(),f=this.outerRadius(),o=this.numPoints();l.beginPath(),l.moveTo(0,0-f);for(let g=1;g<o*2;g++){const v=g%2===0?f:s,p=v*Math.sin(g*Math.PI/o),S=-1*v*Math.cos(g*Math.PI/o);l.lineTo(p,S)}l.closePath(),l.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(l){this.outerRadius(l/2)}setHeight(l){this.outerRadius(l/2)}}Os.prototype.className="Star";Os.prototype._centroid=!0;Os.prototype._attrsAffectingSize=["innerRadius","outerRadius"];Ie(Os);R.addGetterSetter(Os,"numPoints",5,ht());R.addGetterSetter(Os,"innerRadius",0,ht());R.addGetterSetter(Os,"outerRadius",0,ht());function Ts(d){return[...d].reduce((l,s,f,o)=>{if(/\p{Emoji}/u.test(s)){const g=o[f+1];g&&/\p{Emoji_Modifier}|\u200D/u.test(g)?(l.push(s+g),o[f+1]=""):l.push(s)}else/\p{Regional_Indicator}{2}/u.test(s+(o[f+1]||""))?l.push(s+o[f+1]):f>0&&/\p{Mn}|\p{Me}|\p{Mc}/u.test(s)?l[l.length-1]+=s:s&&l.push(s);return l},[])}const If="auto",k5="center",C3="inherit",Xr="justify",P5="Change.konva",A3="2d",L2="-",z3="left",I5="text",$5="Text",tm="top",em="bottom",j2="middle",M3="normal",am="px ",P0=" ",lm="right",Q2="rtl",nm="word",im="char",V2="none",td="…",O3=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],um=O3.length;let Lr=null;function sm(){if(Lr!==null)return Lr;Lr=!1;try{const d=document.createElement("canvas");d.width=10,d.height=10;const l=d.getContext(A3);if(l){l.globalAlpha=0,l.shadowColor="black",l.shadowBlur=5,l.shadowOffsetX=5,l.shadowOffsetY=5,l.fillStyle="black",l.font="10px Arial",l.fillText("X",0,10);const s=l.getImageData(0,0,10,10).data;for(let f=3;f<s.length;f+=4)if(s[f]>0){Lr=!0;break}}}catch{}return Lr}function cm(d){return d.split(",").map(l=>{l=l.trim();const s=l.indexOf(" ")>=0,f=l.indexOf('"')>=0||l.indexOf("'")>=0;return s&&!f&&(l=`"${l}"`),l}).join(", ")}let I0;function ed(){return I0||(I0=B.createCanvasElement().getContext(A3),I0)}function fm(d){d.fillText(this._partialText,this._partialTextX,this._partialTextY)}function om(d){d.setAttr("miterLimit",2),d.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function rm(d){return d=d||{},!d.fillLinearGradientColorStops&&!d.fillRadialGradientColorStops&&!d.fillPatternImage&&(d.fill=d.fill||"black"),d}let He=class extends ct{constructor(l){super(rm(l)),this._partialTextX=0,this._partialTextY=0;for(let s=0;s<um;s++)this.on(O3[s]+P5,this._setTextData);this._setTextData()}_sceneFunc(l){var s,f;const o=this.textArr,g=o.length;if(!this.text())return;let v=this.padding(),p=this.fontSize(),S=this.lineHeight()*p,b=this.verticalAlign(),T=this.direction(),M=0,A=this.align(),x=this.getWidth(),O=this.letterSpacing(),L=this.charRenderFunc(),X=this.fill(),Q=this.textDecoration(),j=this.underlineOffset(),I=Q.indexOf("underline")!==-1,P=Q.indexOf("line-through")!==-1,gt;T=T===C3?l.direction:T;let lt=S/2,st=j2;if(!vt.legacyTextRendering){const rt=this.measureSize("M");st="alphabetic";const Et=(s=rt.fontBoundingBoxAscent)!==null&&s!==void 0?s:rt.actualBoundingBoxAscent,Mt=(f=rt.fontBoundingBoxDescent)!==null&&f!==void 0?f:rt.actualBoundingBoxDescent;lt=(Et-Mt)/2+S/2}for(T===Q2&&l.setAttr("direction",T),l.setAttr("font",this._getContextFont()),l.setAttr("textBaseline",st),l.setAttr("textAlign",z3),b===j2?M=(this.getHeight()-g*S-v*2)/2:b===em&&(M=this.getHeight()-g*S-v*2),l.translate(v,M+v),gt=0;gt<g;gt++){let rt=0,Et=0;const Mt=o[gt],Yt=Mt.text,pt=Mt.width,Ht=Mt.lastInParagraph;if(l.save(),A===lm?rt+=x-pt-v*2:A===k5&&(rt+=(x-pt-v*2)/2),I){l.save(),l.beginPath();const St=j??(vt.legacyTextRendering?Math.round(p/2):Math.round(p/4)),U=rt,it=lt+Et+St;l.moveTo(U,it);const nt=A===Xr&&!Ht?x-v*2:pt;l.lineTo(U+Math.round(nt),it),l.lineWidth=p/15;const _t=this._getLinearGradient();l.strokeStyle=_t||X,l.stroke(),l.restore()}const Ut=rt;if(T!==Q2&&(O!==0||A===Xr||L)){const St=Yt.split(" ").length-1,U=Ts(Yt);for(let it=0;it<U.length;it++){const nt=U[it];if(nt===" "&&!Ht&&A===Xr&&(rt+=(x-v*2-pt)/St),this._partialTextX=rt,this._partialTextY=lt+Et,this._partialText=nt,L){l.save();const zt=o.slice(0,gt).reduce((k,ot)=>k+Ts(ot.text).length,0),D=it+zt;L({char:nt,index:D,x:rt,y:lt+Et,lineIndex:gt,column:it,isLastInLine:Ht,width:this.measureSize(nt).width,context:l})}l.fillStrokeShape(this),L&&l.restore(),rt+=this.measureSize(nt).width+O}}else O!==0&&l.setAttr("letterSpacing",`${O}px`),this._partialTextX=rt,this._partialTextY=lt+Et,this._partialText=Yt,l.fillStrokeShape(this);if(P){l.save(),l.beginPath();const St=vt.legacyTextRendering?0:-Math.round(p/4),U=Ut;l.moveTo(U,lt+Et+St);const it=A===Xr&&!Ht?x-v*2:pt;l.lineTo(U+Math.round(it),lt+Et+St),l.lineWidth=p/15;const nt=this._getLinearGradient();l.strokeStyle=nt||X,l.stroke(),l.restore()}l.restore(),g>1&&(lt+=S)}}_hitFunc(l){const s=this.getWidth(),f=this.getHeight();l.beginPath(),l.rect(0,0,s,f),l.closePath(),l.fillStrokeShape(this)}setText(l){const s=B._isString(l)?l:l==null?"":l+"";return this._setAttr(I5,s),this}getWidth(){return this.attrs.width===If||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===If||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return B.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(l){var s,f,o,g,v,p,S,b,T,M,A;let x=ed(),O=this.fontSize(),L;x.save(),x.font=this._getContextFont(),L=x.measureText(l),x.restore();const X=O/100;return{actualBoundingBoxAscent:(s=L.actualBoundingBoxAscent)!==null&&s!==void 0?s:71.58203125*X,actualBoundingBoxDescent:(f=L.actualBoundingBoxDescent)!==null&&f!==void 0?f:0,actualBoundingBoxLeft:(o=L.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*X,actualBoundingBoxRight:(g=L.actualBoundingBoxRight)!==null&&g!==void 0?g:75.732421875*X,alphabeticBaseline:(v=L.alphabeticBaseline)!==null&&v!==void 0?v:0,emHeightAscent:(p=L.emHeightAscent)!==null&&p!==void 0?p:100*X,emHeightDescent:(S=L.emHeightDescent)!==null&&S!==void 0?S:-20*X,fontBoundingBoxAscent:(b=L.fontBoundingBoxAscent)!==null&&b!==void 0?b:91*X,fontBoundingBoxDescent:(T=L.fontBoundingBoxDescent)!==null&&T!==void 0?T:21*X,hangingBaseline:(M=L.hangingBaseline)!==null&&M!==void 0?M:72.80000305175781*X,ideographicBaseline:(A=L.ideographicBaseline)!==null&&A!==void 0?A:-21*X,width:L.width,height:O}}_getContextFont(){return this.fontStyle()+P0+this.fontVariant()+P0+(this.fontSize()+am)+cm(this.fontFamily())}_addTextLine(l){this.align()===Xr&&(l=l.trim());const f=this._getTextWidth(l);return this.textArr.push({text:l,width:f,lastInParagraph:!1})}_getTextWidth(l){const s=this.letterSpacing(),f=l.length;return ed().measureText(l).width+s*f}_setTextData(){let l=this.text().split(`
|
|
55
|
+
`),s=+this.fontSize(),f=0,o=this.lineHeight()*s,g=this.attrs.width,v=this.attrs.height,p=g!==If&&g!==void 0,S=v!==If&&v!==void 0,b=this.padding(),T=g-b*2,M=v-b*2,A=0,x=this.wrap(),O=x!==V2,L=x!==im&&O,X=this.ellipsis();this.textArr=[],ed().font=this._getContextFont();const Q=X?this._getTextWidth(td):0;for(let j=0,I=l.length;j<I;++j){let P=l[j],gt=this._getTextWidth(P);if(p&>>T)for(;P.length>0;){let lt=0,st=Ts(P).length,rt="",Et=0;for(;lt<st;){const Mt=lt+st>>>1,Yt=Ts(P),pt=Yt.slice(0,Mt+1).join(""),Ht=this._getTextWidth(pt);(X&&S&&A+o>M?Ht+Q:Ht)<=T?(lt=Mt+1,rt=pt,Et=Ht):st=Mt}if(rt){if(L){const pt=Ts(P),Ht=Ts(rt),Ut=pt[Ht.length],St=Ut===P0||Ut===L2;let U;if(St&&Et<=T)U=Ht.length;else{const it=Ht.lastIndexOf(P0),nt=Ht.lastIndexOf(L2);U=Math.max(it,nt)+1}U>0&&(lt=U,rt=pt.slice(0,lt).join(""),Et=this._getTextWidth(rt))}if(rt=rt.trimRight(),this._addTextLine(rt),f=Math.max(f,Et),A+=o,this._shouldHandleEllipsis(A)){this._tryToAddEllipsisToLastLine();break}if(P=Ts(P).slice(lt).join("").trimLeft(),P.length>0&&(gt=this._getTextWidth(P),gt<=T)){this._addTextLine(P),A+=o,f=Math.max(f,gt);break}}else break}else this._addTextLine(P),A+=o,f=Math.max(f,gt),this._shouldHandleEllipsis(A)&&j<I-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),S&&A+o>M)break}this.textHeight=s,this.textWidth=f}_shouldHandleEllipsis(l){const s=+this.fontSize(),f=this.lineHeight()*s,o=this.attrs.height,g=o!==If&&o!==void 0,v=this.padding(),p=o-v*2;return!(this.wrap()!==V2)||g&&l+f>p}_tryToAddEllipsisToLastLine(){const l=this.attrs.width,s=l!==If&&l!==void 0,f=this.padding(),o=l-f*2,g=this.ellipsis(),v=this.textArr[this.textArr.length-1];!v||!g||(s&&(this._getTextWidth(v.text+td)<o||(v.text=v.text.slice(0,v.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(v.text+td))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const l=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,s=this.hasShadow();return l&&s||s&&this.getAbsoluteOpacity()!==1&&sm()?!0:super._useBufferCanvas()}};He.prototype._fillFunc=fm;He.prototype._strokeFunc=om;He.prototype.className=$5;He.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Ie(He);R.overWriteSetter(He,"width",Cd());R.overWriteSetter(He,"height",Cd());R.addGetterSetter(He,"direction",C3);R.addGetterSetter(He,"fontFamily","Arial");R.addGetterSetter(He,"fontSize",12,ht());R.addGetterSetter(He,"fontStyle",M3);R.addGetterSetter(He,"fontVariant",M3);R.addGetterSetter(He,"padding",0,ht());R.addGetterSetter(He,"align",z3);R.addGetterSetter(He,"verticalAlign",tm);R.addGetterSetter(He,"lineHeight",1,ht());R.addGetterSetter(He,"wrap",nm);R.addGetterSetter(He,"ellipsis",!1,Zn());R.addGetterSetter(He,"letterSpacing",0,ht());R.addGetterSetter(He,"text","",Ac());R.addGetterSetter(He,"textDecoration","");R.addGetterSetter(He,"underlineOffset",void 0,ht());R.addGetterSetter(He,"charRenderFunc",void 0);const hm="",x3="normal";function R3(d){d.fillText(this.partialText,0,0)}function D3(d){d.strokeText(this.partialText,0,0)}class pa extends ct{constructor(l){super(l),this.dummyCanvas=B.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva directionChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return Ge.getPathLength(this.dataArray)}_getPointAtLength(l){if(!this.attrs.data)return null;const s=this.pathLength;return l>s?null:Ge.getPointAtLengthOfDataArray(l,this.dataArray)}_readDataAttribute(){this.dataArray=Ge.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(l){l.setAttr("font",this._getContextFont()),l.setAttr("textBaseline",this.textBaseline()),l.setAttr("textAlign","left"),l.save();const s=this.textDecoration(),f=this.fill(),o=this.fontSize(),g=this.glyphInfo,v=s.indexOf("underline")!==-1,p=s.indexOf("line-through")!==-1;v&&l.beginPath();for(let S=0;S<g.length;S++){l.save();const b=g[S].p0;l.translate(b.x,b.y),l.rotate(g[S].rotation),this.partialText=g[S].text,l.fillStrokeShape(this),v&&(S===0&&l.moveTo(0,o/2+1),l.lineTo(g[S].width,o/2+1)),l.restore()}if(v&&(l.strokeStyle=f,l.lineWidth=o/20,l.stroke()),p){l.beginPath();for(let S=0;S<g.length;S++){l.save();const b=g[S].p0;l.translate(b.x,b.y),l.rotate(g[S].rotation),S===0&&l.moveTo(0,0),l.lineTo(g[S].width,0),l.restore()}l.strokeStyle=f,l.lineWidth=o/20,l.stroke()}l.restore()}_hitFunc(l){l.beginPath();const s=this.glyphInfo;if(s.length>=1){const f=s[0].p0;l.moveTo(f.x,f.y)}for(let f=0;f<s.length;f++){const o=s[f].p1;l.lineTo(o.x,o.y)}l.setAttr("lineWidth",this.fontSize()),l.setAttr("strokeStyle",this.colorKey),l.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return B.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(l){return He.prototype.setText.call(this,l)}_getContextFont(){return He.prototype._getContextFont.call(this)}_getTextSize(l){const f=this.dummyCanvas.getContext("2d");f.save(),f.font=this._getContextFont();const o=f.measureText(l);return f.restore(),{width:o.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const l=Ts(this.text());this.direction()==="rtl"&&l.reverse();const s=[];let f=0;for(let x=0;x<l.length;x++)s.push({char:l[x],width:this._getTextSize(l[x]).width}),f+=s[x].width;const{width:o,height:g}=this._getTextSize(this.attrs.text);if(this.textWidth=f,this.textHeight=g,this.glyphInfo=[],!this.attrs.data)return null;const v=this.letterSpacing(),p=this.align(),S=this.kerningFunc(),b=Math.max(0,f-o),T=Math.max(this.textWidth+((this.attrs.text||"").length-1)*v,0);let M=0;p==="center"&&(M=Math.max(0,this.pathLength/2-T/2)),p==="right"&&(M=Math.max(0,this.pathLength-T));let A=M;for(let x=0;x<s.length;x++){const O=this._getPointAtLength(A);if(!O)return;const L=s[x].char;let X=s[x].width+v;if(L===" "&&p==="justify"){const st=this.text().split(" ").length-1;X+=(this.pathLength-T)/st}const Q=A+X,j=this._getPointAtLength(Q>this.pathLength&&Q-this.pathLength<=b?this.pathLength:Q);if(!j)return;const I=Ge.getLineLength(O.x,O.y,j.x,j.y);let P=0;if(S)try{P=S(s[x-1].char,L)*this.fontSize()}catch{P=0}O.x+=P,j.x+=P,this.textWidth+=P;const gt=Ge.getPointOnLine(P+I/2,O.x,O.y,j.x,j.y),lt=Math.atan2(j.y-O.y,j.x-O.x);this.glyphInfo.push({transposeX:gt.x,transposeY:gt.y,text:l[x],rotation:lt,p0:O,p1:j,width:I}),A+=X}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const l=[];this.glyphInfo.forEach(function(b){l.push(b.p0.x),l.push(b.p0.y),l.push(b.p1.x),l.push(b.p1.y)});let s=l[0]||0,f=l[0]||0,o=l[1]||0,g=l[1]||0,v,p;for(let b=0;b<l.length/2;b++)v=l[b*2],p=l[b*2+1],s=Math.min(s,v),f=Math.max(f,v),o=Math.min(o,p),g=Math.max(g,p);const S=this.fontSize();return{x:s-S/2,y:o-S/2,width:f-s+S,height:g-o+S}}destroy(){return B.releaseCanvas(this.dummyCanvas),super.destroy()}}pa.prototype._fillFunc=R3;pa.prototype._strokeFunc=D3;pa.prototype._fillFuncHit=R3;pa.prototype._strokeFuncHit=D3;pa.prototype.className="TextPath";pa.prototype._attrsAffectingSize=["text","fontSize","data"];Ie(pa);R.addGetterSetter(pa,"data");R.addGetterSetter(pa,"fontFamily","Arial");R.addGetterSetter(pa,"fontSize",12,ht());R.addGetterSetter(pa,"fontStyle",x3);R.addGetterSetter(pa,"align","left");R.addGetterSetter(pa,"letterSpacing",0,ht());R.addGetterSetter(pa,"textBaseline","middle");R.addGetterSetter(pa,"fontVariant",x3);R.addGetterSetter(pa,"text",hm);R.addGetterSetter(pa,"textDecoration","");R.addGetterSetter(pa,"kerningFunc",void 0);R.addGetterSetter(pa,"direction","inherit");const N3="tr-konva",dm=["resizeEnabledChange","rotateAnchorOffsetChange","rotateAnchorAngleChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(d=>d+`.${N3}`).join(" "),Z2="nodesRect",mm=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange","draggableChange"],gm={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},vm="ontouchstart"in vt._global;function ym(d,l,s){if(d==="rotater")return s;l+=B.degToRad(gm[d]||0);const f=(B.radToDeg(l)%360+360)%360;return B._inRange(f,315+22.5,360)||B._inRange(f,0,22.5)?"ns-resize":B._inRange(f,45-22.5,45+22.5)?"nesw-resize":B._inRange(f,90-22.5,90+22.5)?"ew-resize":B._inRange(f,135-22.5,135+22.5)?"nwse-resize":B._inRange(f,180-22.5,180+22.5)?"ns-resize":B._inRange(f,225-22.5,225+22.5)?"nesw-resize":B._inRange(f,270-22.5,270+22.5)?"ew-resize":B._inRange(f,315-22.5,315+22.5)?"nwse-resize":(B.error("Transformer has unknown angle for cursor detection: "+f),"pointer")}const a1=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function pm(d){return{x:d.x+d.width/2*Math.cos(d.rotation)+d.height/2*Math.sin(-d.rotation),y:d.y+d.height/2*Math.cos(d.rotation)+d.width/2*Math.sin(d.rotation)}}function G3(d,l,s){const f=s.x+(d.x-s.x)*Math.cos(l)-(d.y-s.y)*Math.sin(l),o=s.y+(d.x-s.x)*Math.sin(l)+(d.y-s.y)*Math.cos(l);return{...d,rotation:d.rotation+l,x:f,y:o}}function Sm(d,l){const s=pm(d);return G3(d,l,s)}function _m(d,l,s){let f=l;for(let o=0;o<d.length;o++){const g=vt.getAngle(d[o]),v=Math.abs(g-l)%(Math.PI*2);Math.min(v,Math.PI*2-v)<s&&(f=g)}return f}let Sd=0;class ue extends to{constructor(l){super(l),this._movingAnchorName=null,this._transforming=!1,this._elementsCreated=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(dm,this.update),this.getNode()&&this.update()}attachTo(l){return this.setNode(l),this}setNode(l){return B.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([l])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return N3+this._id}setNodes(l=[]){this._nodes&&this._nodes.length&&this.detach();const s=l.filter(o=>o.isAncestorOf(this)?(B.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=l=s,l.length===1&&this.useSingleNodeRotation()?this.rotation(l[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const g=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(o._attrsAffectingSize.length){const v=o._attrsAffectingSize.map(p=>p+"Change."+this._getEventNamespace()).join(" ");o.on(v,g)}o.on(mm.map(v=>v+`.${this._getEventNamespace()}`).join(" "),g),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,g),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(l){let s;l.on(`dragstart.${this._getEventNamespace()}`,f=>{s=l.getAbsolutePosition(),!this.isDragging()&&l!==this.findOne(".back")&&this.startDrag(f,!1)}),l.on(`dragmove.${this._getEventNamespace()}`,f=>{if(!s)return;const o=l.getAbsolutePosition(),g=o.x-s.x,v=o.y-s.y;this.nodes().forEach(p=>{if(p===l||p.isDragging())return;const S=p.getAbsolutePosition();p.setAbsolutePosition({x:S.x+g,y:S.y+v}),p.startDrag(f)}),s=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(l=>{l.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(Z2),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(Z2,this.__getNodeRect)}__getNodeShape(l,s=this.rotation(),f){const o=l.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),g=l.getAbsoluteScale(f),v=l.getAbsolutePosition(f),p=o.x*g.x-l.offsetX()*g.x,S=o.y*g.y-l.offsetY()*g.y,b=(vt.getAngle(l.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),T={x:v.x+p*Math.cos(b)+S*Math.sin(-b),y:v.y+S*Math.cos(b)+p*Math.sin(b),width:o.width*g.x,height:o.height*g.y,rotation:b};return G3(T,-vt.getAngle(s),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const s=[];this.nodes().map(b=>{const T=b.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),M=[{x:T.x,y:T.y},{x:T.x+T.width,y:T.y},{x:T.x+T.width,y:T.y+T.height},{x:T.x,y:T.y+T.height}],A=b.getAbsoluteTransform();M.forEach(function(x){const O=A.point(x);s.push(O)})});const f=new Ll;f.rotate(-vt.getAngle(this.rotation()));let o=1/0,g=1/0,v=-1/0,p=-1/0;s.forEach(function(b){const T=f.point(b);o===void 0&&(o=v=T.x,g=p=T.y),o=Math.min(o,T.x),g=Math.min(g,T.y),v=Math.max(v,T.x),p=Math.max(p,T.y)}),f.invert();const S=f.point({x:o,y:g});return{x:S.x,y:S.y,width:v-o,height:p-g,rotation:vt.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),a1.forEach(l=>{this._createAnchor(l)}),this._createAnchor("rotater"),this._elementsCreated=!0}_createAnchor(l){const s=new th({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:l+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:vm?10:"auto"}),f=this;s.on("mousedown touchstart",function(o){f._handleMouseDown(o)}),s.on("dragstart",o=>{s.stopDrag(),o.cancelBubble=!0}),s.on("dragend",o=>{o.cancelBubble=!0}),s.on("mouseenter",()=>{const o=vt.getAngle(this.rotation()),g=this.rotateAnchorCursor(),v=ym(l,o,g);s.getStage().content&&(s.getStage().content.style.cursor=v),this._cursorChange=!0}),s.on("mouseout",()=>{s.getStage().content&&(s.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(s)}_createBack(){const l=new ct({name:"back",width:0,height:0,sceneFunc(s,f){const o=f.getParent(),g=o.padding(),v=f.width(),p=f.height();if(s.beginPath(),s.rect(-g,-g,v+g*2,p+g*2),o.rotateEnabled()&&o.rotateLineVisible()){const S=o.rotateAnchorAngle(),b=o.rotateAnchorOffset(),T=B.degToRad(S),M=Math.sin(T),A=-Math.cos(T),x=v/2,O=p/2;let L=1/0;A<0?L=Math.min(L,-O/A):A>0&&(L=Math.min(L,(p-O)/A)),M<0?L=Math.min(L,-x/M):M>0&&(L=Math.min(L,(v-x)/M));const X=x+M*L,Q=O+A*L,j=B._sign(p),I=X+M*b*j,P=Q+A*b*j;s.moveTo(X,Q),s.lineTo(I,P)}s.fillStrokeShape(f)},hitFunc:(s,f)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();s.beginPath(),s.rect(-o,-o,f.width()+o*2,f.height()+o*2),s.fillStrokeShape(f)}});this.add(l),this._proxyDrag(l),l.on("dragstart",s=>{s.cancelBubble=!0}),l.on("dragmove",s=>{s.cancelBubble=!0}),l.on("dragend",s=>{s.cancelBubble=!0}),this.on("dragmove",s=>{this.update()})}_handleMouseDown(l){if(this._transforming)return;this._movingAnchorName=l.target.name().split(" ")[0];const s=this._getNodeRect(),f=s.width,o=s.height,g=Math.sqrt(Math.pow(f,2)+Math.pow(o,2));this.sin=Math.abs(o/g),this.cos=Math.abs(f/g),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const v=l.target.getAbsolutePosition(),p=l.target.getStage().getPointerPosition();this._anchorDragOffset={x:p.x-v.x,y:p.y-v.y},Sd++,this._fire("transformstart",{evt:l.evt,target:this.getNode()}),this._nodes.forEach(S=>{S._fire("transformstart",{evt:l.evt,target:S})})}_handleMouseMove(l){let s,f,o;const g=this.findOne("."+this._movingAnchorName),v=g.getStage();v.setPointersPositions(l);const p=v.getPointerPosition();let S={x:p.x-this._anchorDragOffset.x,y:p.y-this._anchorDragOffset.y};const b=g.getAbsolutePosition();this.anchorDragBoundFunc()&&(S=this.anchorDragBoundFunc()(b,S,l)),g.setAbsolutePosition(S);const T=g.getAbsolutePosition();if(b.x===T.x&&b.y===T.y)return;if(this._movingAnchorName==="rotater"){const j=this._getNodeRect();s=g.x()-j.width/2,f=-g.y()+j.height/2;const I=vt.getAngle(this.rotateAnchorAngle());let P=Math.atan2(-f,s)+Math.PI/2-I;j.height<0&&(P-=Math.PI);const lt=vt.getAngle(this.rotation())+P,st=vt.getAngle(this.rotationSnapTolerance()),Et=_m(this.rotationSnaps(),lt,st)-j.rotation,Mt=Sm(j,Et);this._fitNodesInto(Mt,l);return}const M=this.shiftBehavior();let A;M==="inverted"?A=this.keepRatio()&&!l.shiftKey:M==="none"?A=this.keepRatio():A=this.keepRatio()||l.shiftKey;let x=this.centeredScaling()||l.altKey;if(this._movingAnchorName==="top-left"){if(A){const j=x?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(j.x-g.x(),2)+Math.pow(j.y-g.y(),2));const I=this.findOne(".top-left").x()>j.x?-1:1,P=this.findOne(".top-left").y()>j.y?-1:1;s=o*this.cos*I,f=o*this.sin*P,this.findOne(".top-left").x(j.x-s),this.findOne(".top-left").y(j.y-f)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(g.y());else if(this._movingAnchorName==="top-right"){if(A){const j=x?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(g.x()-j.x,2)+Math.pow(j.y-g.y(),2));const I=this.findOne(".top-right").x()<j.x?-1:1,P=this.findOne(".top-right").y()>j.y?-1:1;s=o*this.cos*I,f=o*this.sin*P,this.findOne(".top-right").x(j.x+s),this.findOne(".top-right").y(j.y-f)}var O=g.position();this.findOne(".top-left").y(O.y),this.findOne(".bottom-right").x(O.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(g.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(g.x());else if(this._movingAnchorName==="bottom-left"){if(A){const j=x?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(j.x-g.x(),2)+Math.pow(g.y()-j.y,2));const I=j.x<g.x()?-1:1,P=g.y()<j.y?-1:1;s=o*this.cos*I,f=o*this.sin*P,g.x(j.x-s),g.y(j.y+f)}O=g.position(),this.findOne(".top-left").x(O.x),this.findOne(".bottom-right").y(O.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(g.y());else if(this._movingAnchorName==="bottom-right"){if(A){const j=x?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};o=Math.sqrt(Math.pow(g.x()-j.x,2)+Math.pow(g.y()-j.y,2));const I=this.findOne(".bottom-right").x()<j.x?-1:1,P=this.findOne(".bottom-right").y()<j.y?-1:1;s=o*this.cos*I,f=o*this.sin*P,this.findOne(".bottom-right").x(j.x+s),this.findOne(".bottom-right").y(j.y+f)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(x=this.centeredScaling()||l.altKey,x){const j=this.findOne(".top-left"),I=this.findOne(".bottom-right"),P=j.x(),gt=j.y(),lt=this.getWidth()-I.x(),st=this.getHeight()-I.y();I.move({x:-P,y:-gt}),j.move({x:lt,y:st})}const L=this.findOne(".top-left").getAbsolutePosition();s=L.x,f=L.y;const X=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),Q=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:s,y:f,width:X,height:Q,rotation:vt.getAngle(this.rotation())},l)}_handleMouseUp(l){this._removeEvents(l)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(l){var s;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const f=this.getNode();Sd--,this._fire("transformend",{evt:l,target:f}),(s=this.getLayer())===null||s===void 0||s.batchDraw(),f&&this._nodes.forEach(o=>{var g;o._fire("transformend",{evt:l,target:o}),(g=o.getLayer())===null||g===void 0||g.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(l,s){const f=this._getNodeRect(),o=1;if(B._inRange(l.width,-this.padding()*2-o,o)){this.update();return}if(B._inRange(l.height,-this.padding()*2-o,o)){this.update();return}const g=new Ll;if(g.rotate(vt.getAngle(this.rotation())),this._movingAnchorName&&l.width<0&&this._movingAnchorName.indexOf("left")>=0){const A=g.point({x:-this.padding()*2,y:0});l.x+=A.x,l.y+=A.y,l.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=A.x,this._anchorDragOffset.y-=A.y}else if(this._movingAnchorName&&l.width<0&&this._movingAnchorName.indexOf("right")>=0){const A=g.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=A.x,this._anchorDragOffset.y-=A.y,l.width+=this.padding()*2}if(this._movingAnchorName&&l.height<0&&this._movingAnchorName.indexOf("top")>=0){const A=g.point({x:0,y:-this.padding()*2});l.x+=A.x,l.y+=A.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=A.x,this._anchorDragOffset.y-=A.y,l.height+=this.padding()*2}else if(this._movingAnchorName&&l.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const A=g.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=A.x,this._anchorDragOffset.y-=A.y,l.height+=this.padding()*2}if(this.boundBoxFunc()){const A=this.boundBoxFunc()(f,l);A?l=A:B.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const v=1e7,p=new Ll;p.translate(f.x,f.y),p.rotate(f.rotation),p.scale(f.width/v,f.height/v);const S=new Ll,b=l.width/v,T=l.height/v;this.flipEnabled()===!1?(S.translate(l.x,l.y),S.rotate(l.rotation),S.translate(l.width<0?l.width:0,l.height<0?l.height:0),S.scale(Math.abs(b),Math.abs(T))):(S.translate(l.x,l.y),S.rotate(l.rotation),S.scale(b,T));const M=S.multiply(p.invert());this._nodes.forEach(A=>{var x;if(!A.getStage())return;const O=A.getParent().getAbsoluteTransform(),L=A.getTransform().copy();L.translate(A.offsetX(),A.offsetY());const X=new Ll;X.multiply(O.copy().invert()).multiply(M).multiply(O).multiply(L);const Q=X.decompose();A.setAttrs(Q),(x=A.getLayer())===null||x===void 0||x.batchDraw()}),this.rotation(B._getRotation(l.rotation)),this._nodes.forEach(A=>{this._fire("transform",{evt:s,target:A}),A._fire("transform",{evt:s,target:A})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(l,s){this.findOne(l).setAttrs(s)}update(){var l;const s=this._getNodeRect();this.rotation(B._getRotation(s.rotation));const f=s.width,o=s.height,g=this.enabledAnchors(),v=this.resizeEnabled(),p=this.padding(),S=this.anchorSize(),b=this.find("._anchor");b.forEach(lt=>{lt.setAttrs({width:S,height:S,offsetX:S/2,offsetY:S/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:S/2+p,offsetY:S/2+p,visible:v&&g.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:f/2,y:0,offsetY:S/2+p,visible:v&&g.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:f,y:0,offsetX:S/2-p,offsetY:S/2+p,visible:v&&g.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:S/2+p,visible:v&&g.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:f,y:o/2,offsetX:S/2-p,visible:v&&g.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:S/2+p,offsetY:S/2-p,visible:v&&g.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:f/2,y:o,offsetY:S/2-p,visible:v&&g.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:f,y:o,offsetX:S/2-p,offsetY:S/2-p,visible:v&&g.indexOf("bottom-right")>=0});const T=this.rotateAnchorAngle(),M=this.rotateAnchorOffset(),A=B.degToRad(T),x=Math.sin(A),O=-Math.cos(A),L=f/2,X=o/2;let Q=1/0;O<0?Q=Math.min(Q,-X/O):O>0&&(Q=Math.min(Q,(o-X)/O)),x<0?Q=Math.min(Q,-L/x):x>0&&(Q=Math.min(Q,(f-L)/x));const j=L+x*Q,I=X+O*Q,P=B._sign(o);this._batchChangeChild(".rotater",{x:j+x*M*P,y:I+O*M*P-p*O,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:f,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),draggable:this.nodes().some(lt=>lt.draggable()),x:0,y:0});const gt=this.anchorStyleFunc();gt&&b.forEach(lt=>{gt(lt)}),(l=this.getLayer())===null||l===void 0||l.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const l=this.findOne("."+this._movingAnchorName);l&&l.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),to.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}add(...l){return this._elementsCreated?(B.error("You cannot add external nodes to the Transformer. Use tr.nodes([node]) instead."),this):super.add(...l)}toObject(){return mt.prototype.toObject.call(this)}clone(l){return mt.prototype.clone.call(this,l)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}ue.isTransforming=()=>Sd>0;function Em(d){return d instanceof Array||B.warn("enabledAnchors value should be an array"),d instanceof Array&&d.forEach(function(l){a1.indexOf(l)===-1&&B.warn("Unknown anchor name: "+l+". Available names are: "+a1.join(", "))}),d||[]}ue.prototype.className="Transformer";Ie(ue);R.addGetterSetter(ue,"enabledAnchors",a1,Em);R.addGetterSetter(ue,"flipEnabled",!0,Zn());R.addGetterSetter(ue,"resizeEnabled",!0);R.addGetterSetter(ue,"anchorSize",10,ht());R.addGetterSetter(ue,"rotateEnabled",!0);R.addGetterSetter(ue,"rotateLineVisible",!0);R.addGetterSetter(ue,"rotationSnaps",[]);R.addGetterSetter(ue,"rotateAnchorOffset",50,ht());R.addGetterSetter(ue,"rotateAnchorAngle",0,ht());R.addGetterSetter(ue,"rotateAnchorCursor","crosshair");R.addGetterSetter(ue,"rotationSnapTolerance",5,ht());R.addGetterSetter(ue,"borderEnabled",!0);R.addGetterSetter(ue,"anchorStroke","rgb(0, 161, 255)");R.addGetterSetter(ue,"anchorStrokeWidth",1,ht());R.addGetterSetter(ue,"anchorFill","white");R.addGetterSetter(ue,"anchorCornerRadius",0,ht());R.addGetterSetter(ue,"borderStroke","rgb(0, 161, 255)");R.addGetterSetter(ue,"borderStrokeWidth",1,ht());R.addGetterSetter(ue,"borderDash");R.addGetterSetter(ue,"keepRatio",!0);R.addGetterSetter(ue,"shiftBehavior","default");R.addGetterSetter(ue,"centeredScaling",!1);R.addGetterSetter(ue,"ignoreStroke",!1);R.addGetterSetter(ue,"padding",0,ht());R.addGetterSetter(ue,"nodes");R.addGetterSetter(ue,"node");R.addGetterSetter(ue,"boundBoxFunc");R.addGetterSetter(ue,"anchorDragBoundFunc");R.addGetterSetter(ue,"anchorStyleFunc");R.addGetterSetter(ue,"shouldOverdrawWholeArea",!1);R.addGetterSetter(ue,"useSingleNodeRotation",!0);R.backCompat(ue,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class Su extends ct{_sceneFunc(l){l.beginPath(),l.arc(0,0,this.radius(),0,vt.getAngle(this.angle()),this.clockwise()),l.lineTo(0,0),l.closePath(),l.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(l){this.radius(l/2)}setHeight(l){this.radius(l/2)}}Su.prototype.className="Wedge";Su.prototype._centroid=!0;Su.prototype._attrsAffectingSize=["radius"];Ie(Su);R.addGetterSetter(Su,"radius",0,ht());R.addGetterSetter(Su,"angle",0,ht());R.addGetterSetter(Su,"clockwise",!1);R.backCompat(Su,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function K2(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const bm=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Tm=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Cm(d,l){const s=d.data,f=d.width,o=d.height;let g,v,p,S,b,T,M,A,x,O,L,X,Q,j,I,P,gt,lt,st,rt;const Et=l+l+1,Mt=f-1,Yt=o-1,pt=l+1,Ht=pt*(pt+1)/2,Ut=new K2,St=bm[l],U=Tm[l];let it=null,nt=Ut,_t=null,zt=null;for(let D=1;D<Et;D++)nt=nt.next=new K2,D===pt&&(it=nt);nt.next=Ut,p=v=0;for(let D=0;D<o;D++){X=Q=j=I=S=b=T=M=0,A=pt*(P=s[v]),x=pt*(gt=s[v+1]),O=pt*(lt=s[v+2]),L=pt*(st=s[v+3]),S+=Ht*P,b+=Ht*gt,T+=Ht*lt,M+=Ht*st,nt=Ut;for(let k=0;k<pt;k++)nt.r=P,nt.g=gt,nt.b=lt,nt.a=st,nt=nt.next;for(let k=1;k<pt;k++)g=v+((Mt<k?Mt:k)<<2),S+=(nt.r=P=s[g])*(rt=pt-k),b+=(nt.g=gt=s[g+1])*rt,T+=(nt.b=lt=s[g+2])*rt,M+=(nt.a=st=s[g+3])*rt,X+=P,Q+=gt,j+=lt,I+=st,nt=nt.next;_t=Ut,zt=it;for(let k=0;k<f;k++)s[v+3]=st=M*St>>U,st!==0?(st=255/st,s[v]=(S*St>>U)*st,s[v+1]=(b*St>>U)*st,s[v+2]=(T*St>>U)*st):s[v]=s[v+1]=s[v+2]=0,S-=A,b-=x,T-=O,M-=L,A-=_t.r,x-=_t.g,O-=_t.b,L-=_t.a,g=p+((g=k+l+1)<Mt?g:Mt)<<2,X+=_t.r=s[g],Q+=_t.g=s[g+1],j+=_t.b=s[g+2],I+=_t.a=s[g+3],S+=X,b+=Q,T+=j,M+=I,_t=_t.next,A+=P=zt.r,x+=gt=zt.g,O+=lt=zt.b,L+=st=zt.a,X-=P,Q-=gt,j-=lt,I-=st,zt=zt.next,v+=4;p+=f}for(let D=0;D<f;D++){Q=j=I=X=b=T=M=S=0,v=D<<2,A=pt*(P=s[v]),x=pt*(gt=s[v+1]),O=pt*(lt=s[v+2]),L=pt*(st=s[v+3]),S+=Ht*P,b+=Ht*gt,T+=Ht*lt,M+=Ht*st,nt=Ut;for(let ot=0;ot<pt;ot++)nt.r=P,nt.g=gt,nt.b=lt,nt.a=st,nt=nt.next;let k=f;for(let ot=1;ot<=l;ot++)v=k+D<<2,S+=(nt.r=P=s[v])*(rt=pt-ot),b+=(nt.g=gt=s[v+1])*rt,T+=(nt.b=lt=s[v+2])*rt,M+=(nt.a=st=s[v+3])*rt,X+=P,Q+=gt,j+=lt,I+=st,nt=nt.next,ot<Yt&&(k+=f);v=D,_t=Ut,zt=it;for(let ot=0;ot<o;ot++)g=v<<2,s[g+3]=st=M*St>>U,st>0?(st=255/st,s[g]=(S*St>>U)*st,s[g+1]=(b*St>>U)*st,s[g+2]=(T*St>>U)*st):s[g]=s[g+1]=s[g+2]=0,S-=A,b-=x,T-=O,M-=L,A-=_t.r,x-=_t.g,O-=_t.b,L-=_t.a,g=D+((g=ot+pt)<Yt?g:Yt)*f<<2,S+=X+=_t.r=s[g],b+=Q+=_t.g=s[g+1],T+=j+=_t.b=s[g+2],M+=I+=_t.a=s[g+3],_t=_t.next,A+=P=zt.r,x+=gt=zt.g,O+=lt=zt.b,L+=st=zt.a,X-=P,Q-=gt,j-=lt,I-=st,zt=zt.next,v+=f}}const Am=function(l){const s=Math.round(this.blurRadius());s>0&&Cm(l,s)};R.addGetterSetter(mt,"blurRadius",0,ht(),R.afterSetFilter);const zm=function(d){const l=this.brightness()*255,s=d.data,f=s.length;for(let o=0;o<f;o+=4)s[o]+=l,s[o+1]+=l,s[o+2]+=l};R.addGetterSetter(mt,"brightness",0,ht(),R.afterSetFilter);const Mm=function(d){const l=this.brightness(),s=d.data,f=s.length;for(let o=0;o<f;o+=4)s[o]=Math.min(255,s[o]*l),s[o+1]=Math.min(255,s[o+1]*l),s[o+2]=Math.min(255,s[o+2]*l)},Om=function(d){const l=Math.pow((this.contrast()+100)/100,2),s=d.data,f=s.length;let o=150,g=150,v=150;for(let p=0;p<f;p+=4)o=s[p],g=s[p+1],v=s[p+2],o/=255,o-=.5,o*=l,o+=.5,o*=255,g/=255,g-=.5,g*=l,g+=.5,g*=255,v/=255,v-=.5,v*=l,v+=.5,v*=255,o=o<0?0:o>255?255:o,g=g<0?0:g>255?255:g,v=v<0?0:v>255?255:v,s[p]=o,s[p+1]=g,s[p+2]=v};R.addGetterSetter(mt,"contrast",0,ht(),R.afterSetFilter);const xm=function(d){var l,s,f,o,g,v,p,S,b;const T=d.data,M=d.width,A=d.height,x=Math.min(1,Math.max(0,(s=(l=this.embossStrength)===null||l===void 0?void 0:l.call(this))!==null&&s!==void 0?s:.5)),O=Math.min(1,Math.max(0,(o=(f=this.embossWhiteLevel)===null||f===void 0?void 0:f.call(this))!==null&&o!==void 0?o:.5)),X=(p={"top-left":315,top:270,"top-right":225,right:180,"bottom-right":135,bottom:90,"bottom-left":45,left:0}[(v=(g=this.embossDirection)===null||g===void 0?void 0:g.call(this))!==null&&v!==void 0?v:"top-left"])!==null&&p!==void 0?p:315,Q=!!((b=(S=this.embossBlend)===null||S===void 0?void 0:S.call(this))!==null&&b!==void 0&&b),j=x*10,I=O*255,P=X*Math.PI/180,gt=Math.cos(P),lt=Math.sin(P),st=128/1020*j,rt=new Uint8ClampedArray(T),Et=new Float32Array(M*A);for(let Ut=0,St=0;St<T.length;St+=4,Ut++)Et[Ut]=.2126*rt[St]+.7152*rt[St+1]+.0722*rt[St+2];const Mt=[-1,0,1,-2,0,2,-1,0,1],Yt=[-1,-2,-1,0,0,0,1,2,1],pt=[-M-1,-M,-M+1,-1,0,1,M-1,M,M+1],Ht=Ut=>Ut<0?0:Ut>255?255:Ut;for(let Ut=1;Ut<A-1;Ut++)for(let St=1;St<M-1;St++){const U=Ut*M+St;let it=0,nt=0;it+=Et[U+pt[0]]*Mt[0],nt+=Et[U+pt[0]]*Yt[0],it+=Et[U+pt[1]]*Mt[1],nt+=Et[U+pt[1]]*Yt[1],it+=Et[U+pt[2]]*Mt[2],nt+=Et[U+pt[2]]*Yt[2],it+=Et[U+pt[3]]*Mt[3],nt+=Et[U+pt[3]]*Yt[3],it+=Et[U+pt[5]]*Mt[5],nt+=Et[U+pt[5]]*Yt[5],it+=Et[U+pt[6]]*Mt[6],nt+=Et[U+pt[6]]*Yt[6],it+=Et[U+pt[7]]*Mt[7],nt+=Et[U+pt[7]]*Yt[7],it+=Et[U+pt[8]]*Mt[8],nt+=Et[U+pt[8]]*Yt[8];const _t=gt*it+lt*nt,zt=Ht(I+_t*st),D=U*4;if(Q){const k=zt-I;T[D]=Ht(rt[D]+k),T[D+1]=Ht(rt[D+1]+k),T[D+2]=Ht(rt[D+2]+k),T[D+3]=rt[D+3]}else T[D]=T[D+1]=T[D+2]=zt,T[D+3]=rt[D+3]}for(let Ut=0;Ut<M;Ut++){let St=Ut*4,U=((A-1)*M+Ut)*4;T[St]=rt[St],T[St+1]=rt[St+1],T[St+2]=rt[St+2],T[St+3]=rt[St+3],T[U]=rt[U],T[U+1]=rt[U+1],T[U+2]=rt[U+2],T[U+3]=rt[U+3]}for(let Ut=1;Ut<A-1;Ut++){let St=Ut*M*4,U=(Ut*M+(M-1))*4;T[St]=rt[St],T[St+1]=rt[St+1],T[St+2]=rt[St+2],T[St+3]=rt[St+3],T[U]=rt[U],T[U+1]=rt[U+1],T[U+2]=rt[U+2],T[U+3]=rt[U+3]}return d};R.addGetterSetter(mt,"embossStrength",.5,ht(),R.afterSetFilter);R.addGetterSetter(mt,"embossWhiteLevel",.5,ht(),R.afterSetFilter);R.addGetterSetter(mt,"embossDirection","top-left",void 0,R.afterSetFilter);R.addGetterSetter(mt,"embossBlend",!1,void 0,R.afterSetFilter);function ad(d,l,s,f,o){const g=s-l,v=o-f;if(g===0)return f+v/2;if(v===0)return f;let p=(d-l)/g;return p=v*p+f,p}const Rm=function(d){const l=d.data,s=l.length;let f=l[0],o=f,g,v=l[1],p=v,S,b=l[2],T=b,M;const A=this.enhance();if(A===0)return;for(let I=0;I<s;I+=4)g=l[I+0],g<f?f=g:g>o&&(o=g),S=l[I+1],S<v?v=S:S>p&&(p=S),M=l[I+2],M<b?b=M:M>T&&(T=M);o===f&&(o=255,f=0),p===v&&(p=255,v=0),T===b&&(T=255,b=0);let x,O,L,X,Q,j;if(A>0)x=o+A*(255-o),O=f-A*(f-0),L=p+A*(255-p),X=v-A*(v-0),Q=T+A*(255-T),j=b-A*(b-0);else{const I=(o+f)*.5;x=o+A*(o-I),O=f+A*(f-I);const P=(p+v)*.5;L=p+A*(p-P),X=v+A*(v-P);const gt=(T+b)*.5;Q=T+A*(T-gt),j=b+A*(b-gt)}for(let I=0;I<s;I+=4)l[I+0]=ad(l[I+0],f,o,O,x),l[I+1]=ad(l[I+1],v,p,X,L),l[I+2]=ad(l[I+2],b,T,j,Q)};R.addGetterSetter(mt,"enhance",0,ht(),R.afterSetFilter);const Dm=function(d){const l=d.data,s=l.length;for(let f=0;f<s;f+=4){const o=.34*l[f]+.5*l[f+1]+.16*l[f+2];l[f]=o,l[f+1]=o,l[f+2]=o}};R.addGetterSetter(mt,"hue",0,ht(),R.afterSetFilter);R.addGetterSetter(mt,"saturation",0,ht(),R.afterSetFilter);R.addGetterSetter(mt,"luminance",0,ht(),R.afterSetFilter);const Nm=function(d){const l=d.data,s=l.length,f=1,o=Math.pow(2,this.saturation()),g=Math.abs(this.hue()+360)%360,v=this.luminance()*127,p=f*o*Math.cos(g*Math.PI/180),S=f*o*Math.sin(g*Math.PI/180),b=.299*f+.701*p+.167*S,T=.587*f-.587*p+.33*S,M=.114*f-.114*p-.497*S,A=.299*f-.299*p-.328*S,x=.587*f+.413*p+.035*S,O=.114*f-.114*p+.293*S,L=.299*f-.3*p+1.25*S,X=.587*f-.586*p-1.05*S,Q=.114*f+.886*p-.2*S;let j,I,P,gt;for(let lt=0;lt<s;lt+=4)j=l[lt+0],I=l[lt+1],P=l[lt+2],gt=l[lt+3],l[lt+0]=b*j+T*I+M*P+v,l[lt+1]=A*j+x*I+O*P+v,l[lt+2]=L*j+X*I+Q*P+v,l[lt+3]=gt},Gm=function(d){const l=d.data,s=l.length,f=Math.pow(2,this.value()),o=Math.pow(2,this.saturation()),g=Math.abs(this.hue()+360)%360,v=f*o*Math.cos(g*Math.PI/180),p=f*o*Math.sin(g*Math.PI/180),S=.299*f+.701*v+.167*p,b=.587*f-.587*v+.33*p,T=.114*f-.114*v-.497*p,M=.299*f-.299*v-.328*p,A=.587*f+.413*v+.035*p,x=.114*f-.114*v+.293*p,O=.299*f-.3*v+1.25*p,L=.587*f-.586*v-1.05*p,X=.114*f+.886*v-.2*p;for(let Q=0;Q<s;Q+=4){const j=l[Q+0],I=l[Q+1],P=l[Q+2],gt=l[Q+3];l[Q+0]=S*j+b*I+T*P,l[Q+1]=M*j+A*I+x*P,l[Q+2]=O*j+L*I+X*P,l[Q+3]=gt}};R.addGetterSetter(mt,"hue",0,ht(),R.afterSetFilter);R.addGetterSetter(mt,"saturation",0,ht(),R.afterSetFilter);R.addGetterSetter(mt,"value",0,ht(),R.afterSetFilter);const Hm=function(d){const l=d.data,s=l.length;for(let f=0;f<s;f+=4)l[f]=255-l[f],l[f+1]=255-l[f+1],l[f+2]=255-l[f+2]},Um=function(d,l,s){const f=d.data,o=l.data,g=d.width,v=d.height,p=s.polarCenterX||g/2,S=s.polarCenterY||v/2;let b=Math.sqrt(p*p+S*S),T=g-p,M=v-S;const A=Math.sqrt(T*T+M*M);b=A>b?A:b;const x=v,O=g,L=360/O*Math.PI/180;for(let X=0;X<O;X+=1){const Q=Math.sin(X*L),j=Math.cos(X*L);for(let I=0;I<x;I+=1){T=Math.floor(p+b*I/x*j),M=Math.floor(S+b*I/x*Q);let P=(M*g+T)*4;const gt=f[P+0],lt=f[P+1],st=f[P+2],rt=f[P+3];P=(X+I*g)*4,o[P+0]=gt,o[P+1]=lt,o[P+2]=st,o[P+3]=rt}}},Bm=function(d,l,s){const f=d.data,o=l.data,g=d.width,v=d.height,p=s.polarCenterX||g/2,S=s.polarCenterY||v/2;let b=Math.sqrt(p*p+S*S),T=g-p,M=v-S;const A=Math.sqrt(T*T+M*M);b=A>b?A:b;const x=v,O=g,L=0;let X,Q;for(T=0;T<g;T+=1)for(M=0;M<v;M+=1){const j=T-p,I=M-S,P=Math.sqrt(j*j+I*I)*x/b;let gt=(Math.atan2(I,j)*180/Math.PI+360+L)%360;gt=gt*O/360,X=Math.floor(gt),Q=Math.floor(P);let lt=(Q*g+X)*4;const st=f[lt+0],rt=f[lt+1],Et=f[lt+2],Mt=f[lt+3];lt=(M*g+T)*4,o[lt+0]=st,o[lt+1]=rt,o[lt+2]=Et,o[lt+3]=Mt}},Ym=function(d){const l=d.width,s=d.height;let f,o,g,v,p,S,b,T,M,A,x=Math.round(this.kaleidoscopePower());const O=Math.round(this.kaleidoscopeAngle()),L=Math.floor(l*(O%360)/360);if(x<1)return;const X=B.createCanvasElement();X.width=l,X.height=s;const Q=X.getContext("2d").getImageData(0,0,l,s);B.releaseCanvas(X),Um(d,Q,{polarCenterX:l/2,polarCenterY:s/2});let j=l/Math.pow(2,x);for(;j<=8;)j=j*2,x-=1;j=Math.ceil(j);let I=j,P=0,gt=I,lt=1;for(L+j>l&&(P=I,gt=0,lt=-1),o=0;o<s;o+=1)for(f=P;f!==gt;f+=lt)g=Math.round(f+L)%l,M=(l*o+g)*4,p=Q.data[M+0],S=Q.data[M+1],b=Q.data[M+2],T=Q.data[M+3],A=(l*o+f)*4,Q.data[A+0]=p,Q.data[A+1]=S,Q.data[A+2]=b,Q.data[A+3]=T;for(o=0;o<s;o+=1)for(I=Math.floor(j),v=0;v<x;v+=1){for(f=0;f<I+1;f+=1)M=(l*o+f)*4,p=Q.data[M+0],S=Q.data[M+1],b=Q.data[M+2],T=Q.data[M+3],A=(l*o+I*2-f-1)*4,Q.data[A+0]=p,Q.data[A+1]=S,Q.data[A+2]=b,Q.data[A+3]=T;I*=2}Bm(Q,d,{})};R.addGetterSetter(mt,"kaleidoscopePower",2,ht(),R.afterSetFilter);R.addGetterSetter(mt,"kaleidoscopeAngle",0,ht(),R.afterSetFilter);function $0(d,l,s){let f=(s*d.width+l)*4;const o=[];return o.push(d.data[f++],d.data[f++],d.data[f++],d.data[f++]),o}function jr(d,l){return Math.sqrt(Math.pow(d[0]-l[0],2)+Math.pow(d[1]-l[1],2)+Math.pow(d[2]-l[2],2))}function qm(d){const l=[0,0,0];for(let s=0;s<d.length;s++)l[0]+=d[s][0],l[1]+=d[s][1],l[2]+=d[s][2];return l[0]/=d.length,l[1]/=d.length,l[2]/=d.length,l}function Xm(d,l){const s=$0(d,0,0),f=$0(d,d.width-1,0),o=$0(d,0,d.height-1),g=$0(d,d.width-1,d.height-1),v=l||10;if(jr(s,f)<v&&jr(f,g)<v&&jr(g,o)<v&&jr(o,s)<v){const p=qm([f,s,g,o]),S=[];for(let b=0;b<d.width*d.height;b++){const T=jr(p,[d.data[b*4],d.data[b*4+1],d.data[b*4+2]]);S[b]=T<v?0:255}return S}}function Lm(d,l){for(let s=0;s<d.width*d.height;s++)d.data[4*s+3]=l[s]}function jm(d,l,s){const f=[1,1,1,1,0,1,1,1,1],o=Math.round(Math.sqrt(f.length)),g=Math.floor(o/2),v=[];for(let p=0;p<s;p++)for(let S=0;S<l;S++){const b=p*l+S;let T=0;for(let M=0;M<o;M++)for(let A=0;A<o;A++){const x=p+M-g,O=S+A-g;if(x>=0&&x<s&&O>=0&&O<l){const L=x*l+O,X=f[M*o+A];T+=d[L]*X}}v[b]=T===2040?255:0}return v}function Qm(d,l,s){const f=[1,1,1,1,1,1,1,1,1],o=Math.round(Math.sqrt(f.length)),g=Math.floor(o/2),v=[];for(let p=0;p<s;p++)for(let S=0;S<l;S++){const b=p*l+S;let T=0;for(let M=0;M<o;M++)for(let A=0;A<o;A++){const x=p+M-g,O=S+A-g;if(x>=0&&x<s&&O>=0&&O<l){const L=x*l+O,X=f[M*o+A];T+=d[L]*X}}v[b]=T>=1020?255:0}return v}function Vm(d,l,s){const f=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(f.length)),g=Math.floor(o/2),v=[];for(let p=0;p<s;p++)for(let S=0;S<l;S++){const b=p*l+S;let T=0;for(let M=0;M<o;M++)for(let A=0;A<o;A++){const x=p+M-g,O=S+A-g;if(x>=0&&x<s&&O>=0&&O<l){const L=x*l+O,X=f[M*o+A];T+=d[L]*X}}v[b]=T}return v}const Zm=function(d){const l=this.threshold();let s=Xm(d,l);return s&&(s=jm(s,d.width,d.height),s=Qm(s,d.width,d.height),s=Vm(s,d.width,d.height),Lm(d,s)),d};R.addGetterSetter(mt,"threshold",0,ht(),R.afterSetFilter);const Km=function(d){const l=this.noise()*255,s=d.data,f=s.length,o=l/2;for(let g=0;g<f;g+=4)s[g+0]+=o-2*o*Math.random(),s[g+1]+=o-2*o*Math.random(),s[g+2]+=o-2*o*Math.random()};R.addGetterSetter(mt,"noise",.2,ht(),R.afterSetFilter);const Jm=function(d){let l=Math.ceil(this.pixelSize()),s=d.width,f=d.height,o=Math.ceil(s/l),g=Math.ceil(f/l),v=d.data;if(l<=0){B.error("pixelSize value can not be <= 0");return}for(let p=0;p<o;p+=1)for(let S=0;S<g;S+=1){let b=0,T=0,M=0,A=0;const x=p*l,O=x+l,L=S*l,X=L+l;let Q=0;for(let j=x;j<O;j+=1)if(!(j>=s))for(let I=L;I<X;I+=1){if(I>=f)continue;const P=(s*I+j)*4;b+=v[P+0],T+=v[P+1],M+=v[P+2],A+=v[P+3],Q+=1}b=b/Q,T=T/Q,M=M/Q,A=A/Q;for(let j=x;j<O;j+=1)if(!(j>=s))for(let I=L;I<X;I+=1){if(I>=f)continue;const P=(s*I+j)*4;v[P+0]=b,v[P+1]=T,v[P+2]=M,v[P+3]=A}}};R.addGetterSetter(mt,"pixelSize",8,ht(),R.afterSetFilter);const wm=function(d){const l=Math.round(this.levels()*254)+1,s=d.data,f=s.length,o=255/l;for(let g=0;g<f;g+=1)s[g]=Math.floor(s[g]/o)*o};R.addGetterSetter(mt,"levels",.5,ht(),R.afterSetFilter);const Wm=function(d){const l=d.data,s=l.length,f=this.red(),o=this.green(),g=this.blue();for(let v=0;v<s;v+=4){const p=(.34*l[v]+.5*l[v+1]+.16*l[v+2])/255;l[v]=p*f,l[v+1]=p*o,l[v+2]=p*g,l[v+3]=l[v+3]}};R.addGetterSetter(mt,"red",0,function(d){return this._filterUpToDate=!1,d>255?255:d<0?0:Math.round(d)});R.addGetterSetter(mt,"green",0,function(d){return this._filterUpToDate=!1,d>255?255:d<0?0:Math.round(d)});R.addGetterSetter(mt,"blue",0,a3,R.afterSetFilter);const Fm=function(d){const l=d.data,s=l.length,f=this.red(),o=this.green(),g=this.blue(),v=this.alpha();for(let p=0;p<s;p+=4){const S=1-v;l[p]=f*v+l[p]*S,l[p+1]=o*v+l[p+1]*S,l[p+2]=g*v+l[p+2]*S}};R.addGetterSetter(mt,"red",0,function(d){return this._filterUpToDate=!1,d>255?255:d<0?0:Math.round(d)});R.addGetterSetter(mt,"green",0,function(d){return this._filterUpToDate=!1,d>255?255:d<0?0:Math.round(d)});R.addGetterSetter(mt,"blue",0,a3,R.afterSetFilter);R.addGetterSetter(mt,"alpha",1,function(d){return this._filterUpToDate=!1,d>1?1:d<0?0:d});const km=function(d){const l=d.data,s=l.length;for(let f=0;f<s;f+=4){const o=l[f+0],g=l[f+1],v=l[f+2];l[f+0]=Math.min(255,o*.393+g*.769+v*.189),l[f+1]=Math.min(255,o*.349+g*.686+v*.168),l[f+2]=Math.min(255,o*.272+g*.534+v*.131)}},Pm=function(d){const s=d.data;for(let f=0;f<s.length;f+=4){const o=s[f],g=s[f+1],v=s[f+2];.2126*o+.7152*g+.0722*v>=128&&(s[f]=255-o,s[f+1]=255-g,s[f+2]=255-v)}return d},Im=function(d){const l=this.threshold()*255,s=d.data,f=s.length;for(let o=0;o<f;o+=1)s[o]=s[o]<l?0:255};R.addGetterSetter(mt,"threshold",.5,ht(),R.afterSetFilter);eo.Util._assign(eo,{Arc:yu,Arrow:Mc,Circle:ao,Ellipse:zs,Image:Ql,Label:Md,Tag:Oc,Line:pu,Path:Ge,Rect:th,RegularPolygon:Ms,Ring:xc,Sprite:xi,Star:Os,Text:He,TextPath:pa,Transformer:ue,Wedge:Su,Filters:{Blur:Am,Brightness:Mm,Brighten:zm,Contrast:Om,Emboss:xm,Enhance:Rm,Grayscale:Dm,HSL:Nm,HSV:Gm,Invert:Hm,Kaleidoscope:Ym,Mask:Zm,Noise:Km,Pixelate:Jm,Posterize:wm,RGB:Wm,RGBA:Fm,Sepia:km,Solarize:Pm,Threshold:Im}});var ld={exports:{}},nd={exports:{}};/**
|
|
56
|
+
* @license React
|
|
57
|
+
* react-reconciler.production.js
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/var J2;function $m(){return J2||(J2=1,(function(d){d.exports=function(l){function s(a,n,c,r){return new Ho(a,n,c,r)}function f(){}function o(a){var n="https://react.dev/errors/"+a;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)n+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(a){var n=a,c=a;if(a.alternate)for(;n.return;)n=n.return;else{a=n;do n=a,(n.flags&4098)!==0&&(c=n.return),a=n.return;while(a)}return n.tag===3?c:null}function v(a){if(g(a)!==a)throw Error(o(188))}function p(a){var n=a.alternate;if(!n){if(n=g(a),n===null)throw Error(o(188));return n!==a?null:a}for(var c=a,r=n;;){var y=c.return;if(y===null)break;var _=y.alternate;if(_===null){if(r=y.return,r!==null){c=r;continue}break}if(y.child===_.child){for(_=y.child;_;){if(_===c)return v(y),a;if(_===r)return v(y),n;_=_.sibling}throw Error(o(188))}if(c.return!==r.return)c=y,r=_;else{for(var C=!1,G=y.child;G;){if(G===c){C=!0,c=y,r=_;break}if(G===r){C=!0,r=y,c=_;break}G=G.sibling}if(!C){for(G=_.child;G;){if(G===c){C=!0,c=_,r=y;break}if(G===r){C=!0,r=_,c=y;break}G=G.sibling}if(!C)throw Error(o(189))}}if(c.alternate!==r)throw Error(o(190))}if(c.tag!==3)throw Error(o(188));return c.stateNode.current===c?a:n}function S(a){var n=a.tag;if(n===5||n===26||n===27||n===6)return a;for(a=a.child;a!==null;){if(n=S(a),n!==null)return n;a=a.sibling}return null}function b(a){var n=a.tag;if(n===5||n===26||n===27||n===6)return a;for(a=a.child;a!==null;){if(a.tag!==4&&(n=b(a),n!==null))return n;a=a.sibling}return null}function T(a){return a===null||typeof a!="object"?null:(a=Hn&&a[Hn]||a["@@iterator"],typeof a=="function"?a:null)}function M(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===di?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Pi:return"Fragment";case $i:return"Profiler";case Ii:return"StrictMode";case Sf:return"Suspense";case Gn:return"SuspenseList";case lc:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case ki:return"Portal";case El:return a.displayName||"Context";case ac:return(a._context.displayName||"Context")+".Consumer";case $u:var n=a.render;return a=a.displayName,a||(a=n.displayName||n.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case _f:return n=a.displayName||null,n!==null?n:M(a.type)||"Memo";case Ba:n=a._payload,a=a._init;try{return M(a(n))}catch{}}return null}function A(a){return{current:a}}function x(a){0>nu||(a.current=Gf[nu],Gf[nu]=null,nu--)}function O(a,n){nu++,Gf[nu]=a.current,a.current=n}function L(a){return a>>>=0,a===0?32:31-(Hf(a)/T0|0)|0}function X(a){var n=a&42;if(n!==0)return n;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Q(a,n,c){var r=a.pendingLanes;if(r===0)return 0;var y=0,_=a.suspendedLanes,C=a.pingedLanes;a=a.warmLanes;var G=r&134217727;return G!==0?(r=G&~_,r!==0?y=X(r):(C&=G,C!==0?y=X(C):c||(c=G&~a,c!==0&&(y=X(c))))):(G=r&~_,G!==0?y=X(G):C!==0?y=X(C):c||(c=r&~a,c!==0&&(y=X(c)))),y===0?0:n!==0&&n!==y&&(n&_)===0&&(_=y&-y,c=n&-n,_>=c||_===32&&(c&4194048)!==0)?n:y}function j(a,n){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&n)===0}function I(a,n){switch(a){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 P(){var a=us;return us<<=1,(us&62914560)===0&&(us=4194304),a}function gt(a){for(var n=[],c=0;31>c;c++)n.push(a);return n}function lt(a,n){a.pendingLanes|=n,n!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function st(a,n,c,r,y,_){var C=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var G=a.entanglements,W=a.expirationTimes,at=a.hiddenUpdates;for(c=C&~c;0<c;){var dt=31-ka(c),ut=1<<dt;G[dt]=0,W[dt]=-1;var yt=at[dt];if(yt!==null)for(at[dt]=null,dt=0;dt<yt.length;dt++){var Xt=yt[dt];Xt!==null&&(Xt.lane&=-536870913)}c&=~ut}r!==0&&rt(a,r,0),_!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=_&~(C&~n))}function rt(a,n,c){a.pendingLanes|=n,a.suspendedLanes&=~n;var r=31-ka(n);a.entangledLanes|=n,a.entanglements[r]=a.entanglements[r]|1073741824|c&261930}function Et(a,n){var c=a.entangledLanes|=n;for(a=a.entanglements;c;){var r=31-ka(c),y=1<<r;y&n|a[r]&n&&(a[r]|=n),c&=~y}}function Mt(a,n){var c=n&-n;return c=(c&42)!==0?1:Yt(c),(c&(a.suspendedLanes|n))!==0?0:c}function Yt(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function pt(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Ht(a){if(typeof Sr=="function"&&z0(a),Pa&&typeof Pa.setStrictMode=="function")try{Pa.setStrictMode(uu,a)}catch{}}function Ut(a,n){return a===n&&(a!==0||1/a===1/n)||a!==a&&n!==n}function St(a){if(Lf===void 0)try{throw Error()}catch(c){var n=c.stack.trim().match(/\n( *(at )?)/);Lf=n&&n[1]||"",cn=-1<c.stack.indexOf(`
|
|
64
|
+
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
65
|
+
`+Lf+a+cn}function U(a,n){if(!a||hc)return"";hc=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(n){var ut=function(){throw Error()};if(Object.defineProperty(ut.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ut,[])}catch(Xt){var yt=Xt}Reflect.construct(a,[],ut)}else{try{ut.call()}catch(Xt){yt=Xt}a.call(ut.prototype)}}else{try{throw Error()}catch(Xt){yt=Xt}(ut=a())&&typeof ut.catch=="function"&&ut.catch(function(){})}}catch(Xt){if(Xt&&yt&&typeof Xt.stack=="string")return[Xt.stack,yt.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=r.DetermineComponentFrameRoot(),C=_[0],G=_[1];if(C&&G){var W=C.split(`
|
|
66
|
+
`),at=G.split(`
|
|
67
|
+
`);for(y=r=0;r<W.length&&!W[r].includes("DetermineComponentFrameRoot");)r++;for(;y<at.length&&!at[y].includes("DetermineComponentFrameRoot");)y++;if(r===W.length||y===at.length)for(r=W.length-1,y=at.length-1;1<=r&&0<=y&&W[r]!==at[y];)y--;for(;1<=r&&0<=y;r--,y--)if(W[r]!==at[y]){if(r!==1||y!==1)do if(r--,y--,0>y||W[r]!==at[y]){var dt=`
|
|
68
|
+
`+W[r].replace(" at new "," at ");return a.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",a.displayName)),dt}while(1<=r&&0<=y);break}}}finally{hc=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?St(c):""}function it(a,n){switch(a.tag){case 26:case 27:case 5:return St(a.type);case 16:return St("Lazy");case 13:return a.child!==n&&n!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return U(a.type,!1);case 11:return U(a.type.render,!1);case 1:return U(a.type,!0);case 31:return St("Activity");default:return""}}function nt(a){try{var n="",c=null;do n+=it(a,c),c=a,a=a.return;while(a);return n}catch(r){return`
|
|
69
|
+
Error generating stack: `+r.message+`
|
|
70
|
+
`+r.stack}}function _t(a,n){if(typeof a=="object"&&a!==null){var c=_r.get(a);return c!==void 0?c:(n={value:a,source:n,stack:nt(n)},_r.set(a,n),n)}return{value:a,source:n,stack:nt(n)}}function zt(a,n){Yn[fn++]=dc,Yn[fn++]=Se,Se=a,dc=n}function D(a,n,c){Cl[fl++]=Ea,Cl[fl++]=Bl,Cl[fl++]=Al,Al=a;var r=Ea;a=Bl;var y=32-ka(r)-1;r&=~(1<<y),c+=1;var _=32-ka(n)+y;if(30<_){var C=y-y%5;_=(r&(1<<C)-1).toString(32),r>>=C,y-=C,Ea=1<<32-ka(n)+y|c<<y|r,Bl=_+a}else Ea=1<<_|c<<y|r,Bl=a}function k(a){a.return!==null&&(zt(a,1),D(a,1,0))}function ot(a){for(;a===Se;)Se=Yn[--fn],Yn[fn]=null,dc=Yn[--fn],Yn[fn]=null;for(;a===Al;)Al=Cl[--fl],Cl[fl]=null,Bl=Cl[--fl],Cl[fl]=null,Ea=Cl[--fl],Cl[fl]=null}function bt(a,n){Cl[fl++]=Ea,Cl[fl++]=Bl,Cl[fl++]=Al,Ea=n.id,Bl=n.overflow,Al=a}function qt(a,n){O(ba,n),O(qn,a),O(ma,null),a=Xh(n),x(ma),O(ma,a)}function Lt(){x(ma),x(qn),x(ba)}function ce(a){a.memoizedState!==null&&O(mc,a);var n=ma.current,c=as(n,a.type);n!==c&&(O(qn,a),O(ma,c))}function oa(a){qn.current===a&&(x(ma),x(qn)),mc.current===a&&(x(mc),we?au._currentValue=eu:au._currentValue2=eu)}function de(a){var n=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ri(_t(n,a)),jf}function _u(a,n){if(!xe)throw Error(o(175));r0(a.stateNode,a.type,a.memoizedProps,n,a)||de(a,!0)}function Rs(a){for(sa=a.return;sa;)switch(sa.tag){case 5:case 31:case 13:qa=!1;return;case 27:case 3:qa=!0;return;default:sa=sa.return}}function Kn(a){if(!xe||a!==sa)return!1;if(!It)return Rs(a),It=!0,!1;var n=a.tag;if(ua?n!==3&&n!==27&&(n!==5||is(a.type)&&!Ya(a.type,a.memoizedProps))&&Re&&de(a):n!==3&&(n!==5||is(a.type)&&!Ya(a.type,a.memoizedProps))&&Re&&de(a),Rs(a),n===13){if(!xe)throw Error(o(316));if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));Re=cr(a)}else if(n===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));Re=d0(a)}else Re=ua&&n===27?l0(a.type,Re):sa?a0(a.stateNode):null;return!0}function Jn(){xe&&(Re=sa=null,It=!1)}function Sn(){var a=on;return a!==null&&($a===null?$a=a:$a.push.apply($a,a),on=null),a}function Ri(a){on===null?on=[a]:on.push(a)}function Vl(a,n,c){we?(O(zl,n._currentValue),n._currentValue=c):(O(zl,n._currentValue2),n._currentValue2=c)}function _n(a){var n=zl.current;we?a._currentValue=n:a._currentValue2=n,x(zl)}function Rc(a,n,c){for(;a!==null;){var r=a.alternate;if((a.childLanes&n)!==n?(a.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),a===c)break;a=a.return}}function Ds(a,n,c,r){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var _=y.dependencies;if(_!==null){var C=y.child;_=_.firstContext;t:for(;_!==null;){var G=_;_=y;for(var W=0;W<n.length;W++)if(G.context===n[W]){_.lanes|=c,G=_.alternate,G!==null&&(G.lanes|=c),Rc(_.return,c,a),r||(C=null);break t}_=G.next}}else if(y.tag===18){if(C=y.return,C===null)throw Error(o(341));C.lanes|=c,_=C.alternate,_!==null&&(_.lanes|=c),Rc(C,c,a),C=null}else C=y.child;if(C!==null)C.return=y;else for(C=y;C!==null;){if(C===a){C=null;break}if(y=C.sibling,y!==null){y.return=C.return,C=y;break}C=C.return}y=C}}function wn(a,n,c,r){a=null;for(var y=n,_=!1;y!==null;){if(!_){if((y.flags&524288)!==0)_=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var C=y.alternate;if(C===null)throw Error(o(387));if(C=C.memoizedProps,C!==null){var G=y.type;Fe(y.pendingProps.value,C.value)||(a!==null?a.push(G):a=[G])}}else if(y===mc.current){if(C=y.alternate,C===null)throw Error(o(387));C.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(au):a=[au])}y=y.return}a!==null&&Ds(n,a,c,r),n.flags|=262144}function Eu(a){for(a=a.firstContext;a!==null;){var n=a.context;if(!Fe(we?n._currentValue:n._currentValue2,a.memoizedValue))return!0;a=a.next}return!1}function Di(a){be=a,Yl=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Sa(a){return eh(be,a)}function Aa(a,n){return be===null&&Di(a),eh(a,n)}function eh(a,n){var c=we?n._currentValue:n._currentValue2;if(n={context:n,memoizedValue:c,next:null},Yl===null){if(a===null)throw Error(o(308));Yl=n,a.dependencies={lanes:0,firstContext:n},a.flags|=524288}else Yl=Yl.next=n;return c}function Dc(){return{controller:new M0,data:new Map,refCount:0}}function bu(a){a.refCount--,a.refCount===0&&ga(E1,function(){a.controller.abort()})}function Ni(){}function Zl(a){a!==me&&a.next===null&&(me===null?gc=me=a:me=me.next=a),Ml=!0,Da||(Da=!0,el())}function Gi(a,n){if(!Qf&&Ml){Qf=!0;do for(var c=!1,r=gc;r!==null;){if(a!==0){var y=r.pendingLanes;if(y===0)var _=0;else{var C=r.suspendedLanes,G=r.pingedLanes;_=(1<<31-ka(42|a)+1)-1,_&=y&~(C&~G),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(c=!0,En(r,_))}else _=$t,_=Q(r,r===wt?_:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Fa),(_&3)===0||j(r,_)||(c=!0,En(r,_));r=r.next}while(c);Qf=!1}}function ah(){lh()}function lh(){Ml=Da=!1;var a=0;pi!==0&&tu()&&(a=pi);for(var n=Ra(),c=null,r=gc;r!==null;){var y=r.next,_=Tu(r,n);_===0?(r.next=null,c===null?gc=y:c.next=y,y===null&&(me=c)):(c=r,(a!==0||(_&3)!==0)&&(Ml=!0)),r=y}na!==0&&na!==5||Gi(a),pi!==0&&(pi=0)}function Tu(a,n){for(var c=a.suspendedLanes,r=a.pingedLanes,y=a.expirationTimes,_=a.pendingLanes&-62914561;0<_;){var C=31-ka(_),G=1<<C,W=y[C];W===-1?((G&c)===0||(G&r)!==0)&&(y[C]=I(G,n)):W<=n&&(a.expiredLanes|=G),_&=~G}if(n=wt,c=$t,c=Q(a,a===n?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Fa),r=a.callbackNode,c===0||a===n&&(ve===2||ve===9)||a.cancelPendingCommit!==null)return r!==null&&r!==null&&Bf(r),a.callbackNode=null,a.callbackPriority=0;if((c&3)===0||j(a,c)){if(n=c&-c,n===a.callbackPriority)return n;switch(r!==null&&Bf(r),pt(c)){case 2:case 8:c=A0;break;case 32:c=rc;break;case 268435456:c=qf;break;default:c=rc}return r=Za.bind(null,a),c=oc(c,r),a.callbackPriority=n,a.callbackNode=c,n}return r!==null&&r!==null&&Bf(r),a.callbackPriority=2,a.callbackNode=null,2}function Za(a,n){if(na!==0&&na!==5)return a.callbackNode=null,a.callbackPriority=0,null;var c=a.callbackNode;if(nn()&&a.callbackNode!==c)return null;var r=$t;return r=Q(a,a===wt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Fa),r===0?null:(Ul(a,r,n),Tu(a,Ra()),a.callbackNode!=null&&a.callbackNode===c?Za.bind(null,a):null)}function En(a,n){if(nn())return null;Ul(a,n,!0)}function el(){Jo?wo(function(){(Ft&6)!==0?oc(Yf,ah):lh()}):oc(Yf,ah)}function lo(){if(pi===0){var a=Xn;a===0&&(a=Uf,Uf<<=1,(Uf&261888)===0&&(Uf=256)),pi=a}return pi}function f1(a,n){if(ss===null){var c=ss=[];Er=0,Xn=lo(),ca={status:"pending",value:void 0,then:function(r){c.push(r)}}}return Er++,n.then(nh,nh),n}function nh(){if(--Er===0&&ss!==null){ca!==null&&(ca.status="fulfilled");var a=ss;ss=null,Xn=0,ca=null;for(var n=0;n<a.length;n++)(0,a[n])()}}function Nc(a,n){var c=[],r={status:"pending",value:null,reason:null,then:function(y){c.push(y)}};return a.then(function(){r.status="fulfilled",r.value=n;for(var y=0;y<c.length;y++)(0,c[y])(n)},function(y){for(r.status="rejected",r.reason=y,y=0;y<c.length;y++)(0,c[y])(void 0)}),r}function Cu(){var a=Si.current;return a!==null?a:wt.pooledCache}function Hi(a,n){n===null?O(Si,Si.current):O(Si,n.pool)}function Wn(){var a=Cu();return a===null?null:{parent:we?De._currentValue:De._currentValue2,pool:a}}function Ui(a,n){if(Fe(a,n))return!0;if(typeof a!="object"||a===null||typeof n!="object"||n===null)return!1;var c=Object.keys(a),r=Object.keys(n);if(c.length!==r.length)return!1;for(r=0;r<c.length;r++){var y=c[r];if(!_1.call(n,y)||!Fe(a[y],n[y]))return!1}return!0}function Au(a){return a=a.status,a==="fulfilled"||a==="rejected"}function ih(a,n,c){switch(c=a[c],c===void 0?a.push(n):c!==n&&(n.then(Ni,Ni),n=c),n.status){case"fulfilled":return n.value;case"rejected":throw a=n.reason,zu(a),a;default:if(typeof n.status=="string")n.then(Ni,Ni);else{if(a=wt,a!==null&&100<a.shellSuspendCounter)throw Error(o(482));a=n,a.status="pending",a.then(function(r){if(n.status==="pending"){var y=n;y.status="fulfilled",y.value=r}},function(r){if(n.status==="pending"){var y=n;y.status="rejected",y.reason=r}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw a=n.reason,zu(a),a}throw Xa=n,fa}}function Fn(a){try{var n=a._init;return n(a._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Xa=c,fa):c}}function Gc(){if(Xa===null)throw Error(o(459));var a=Xa;return Xa=null,a}function zu(a){if(a===fa||a===xl)throw Error(o(483))}function Hc(a){var n=su;return su+=1,_i===null&&(_i=[]),ih(_i,a,n)}function Mu(a,n){n=n.props.ref,a.ref=n!==void 0?n:null}function Ns(a,n){throw n.$$typeof===Fi?Error(o(525)):(a=Object.prototype.toString.call(n),Error(o(31,a==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":a)))}function no(a){function n(K,q){if(a){var w=K.deletions;w===null?(K.deletions=[q],K.flags|=16):w.push(q)}}function c(K,q){if(!a)return null;for(;q!==null;)n(K,q),q=q.sibling;return null}function r(K){for(var q=new Map;K!==null;)K.key!==null?q.set(K.key,K):q.set(K.index,K),K=K.sibling;return q}function y(K,q){return K=sl(K,q),K.index=0,K.sibling=null,K}function _(K,q,w){return K.index=w,a?(w=K.alternate,w!==null?(w=w.index,w<q?(K.flags|=67108866,q):w):(K.flags|=67108866,q)):(K.flags|=1048576,q)}function C(K){return a&&K.alternate===null&&(K.flags|=67108866),K}function G(K,q,w,ft){return q===null||q.tag!==6?(q=Uo(w,K.mode,ft),q.return=K,q):(q=y(q,w),q.return=K,q)}function W(K,q,w,ft){var Rt=w.type;return Rt===Pi?dt(K,q,w.props.children,ft,w.key):q!==null&&(q.elementType===Rt||typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===Ba&&Fn(Rt)===q.type)?(q=y(q,w.props),Mu(q,w),q.return=K,q):(q=Nn(w.type,w.key,w.props,null,K.mode,ft),Mu(q,w),q.return=K,q)}function at(K,q,w,ft){return q===null||q.tag!==4||q.stateNode.containerInfo!==w.containerInfo||q.stateNode.implementation!==w.implementation?(q=Yo(w,K.mode,ft),q.return=K,q):(q=y(q,w.children||[]),q.return=K,q)}function dt(K,q,w,ft,Rt){return q===null||q.tag!==7?(q=_l(w,K.mode,ft,Rt),q.return=K,q):(q=y(q,w),q.return=K,q)}function ut(K,q,w){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Uo(""+q,K.mode,w),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case un:return w=Nn(q.type,q.key,q.props,null,K.mode,w),Mu(w,q),w.return=K,w;case ki:return q=Yo(q,K.mode,w),q.return=K,q;case Ba:return q=Fn(q),ut(K,q,w)}if(mi(q)||T(q))return q=_l(q,K.mode,w,null),q.return=K,q;if(typeof q.then=="function")return ut(K,Hc(q),w);if(q.$$typeof===El)return ut(K,Aa(K,q),w);Ns(K,q)}return null}function yt(K,q,w,ft){var Rt=q!==null?q.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return Rt!==null?null:G(K,q,""+w,ft);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case un:return w.key===Rt?W(K,q,w,ft):null;case ki:return w.key===Rt?at(K,q,w,ft):null;case Ba:return w=Fn(w),yt(K,q,w,ft)}if(mi(w)||T(w))return Rt!==null?null:dt(K,q,w,ft,null);if(typeof w.then=="function")return yt(K,q,Hc(w),ft);if(w.$$typeof===El)return yt(K,q,Aa(K,w),ft);Ns(K,w)}return null}function Xt(K,q,w,ft,Rt){if(typeof ft=="string"&&ft!==""||typeof ft=="number"||typeof ft=="bigint")return K=K.get(w)||null,G(q,K,""+ft,Rt);if(typeof ft=="object"&&ft!==null){switch(ft.$$typeof){case un:return K=K.get(ft.key===null?w:ft.key)||null,W(q,K,ft,Rt);case ki:return K=K.get(ft.key===null?w:ft.key)||null,at(q,K,ft,Rt);case Ba:return ft=Fn(ft),Xt(K,q,w,ft,Rt)}if(mi(ft)||T(ft))return K=K.get(w)||null,dt(q,K,ft,Rt,null);if(typeof ft.then=="function")return Xt(K,q,w,Hc(ft),Rt);if(ft.$$typeof===El)return Xt(K,q,w,Aa(q,ft),Rt);Ns(q,ft)}return null}function va(K,q,w,ft){for(var Rt=null,Qe=null,Dt=q,ne=q=0,ya=null;Dt!==null&&ne<w.length;ne++){Dt.index>ne?(ya=Dt,Dt=null):ya=Dt.sibling;var fe=yt(K,Dt,w[ne],ft);if(fe===null){Dt===null&&(Dt=ya);break}a&&Dt&&fe.alternate===null&&n(K,Dt),q=_(fe,q,ne),Qe===null?Rt=fe:Qe.sibling=fe,Qe=fe,Dt=ya}if(ne===w.length)return c(K,Dt),It&&zt(K,ne),Rt;if(Dt===null){for(;ne<w.length;ne++)Dt=ut(K,w[ne],ft),Dt!==null&&(q=_(Dt,q,ne),Qe===null?Rt=Dt:Qe.sibling=Dt,Qe=Dt);return It&&zt(K,ne),Rt}for(Dt=r(Dt);ne<w.length;ne++)ya=Xt(Dt,K,ne,w[ne],ft),ya!==null&&(a&&ya.alternate!==null&&Dt.delete(ya.key===null?ne:ya.key),q=_(ya,q,ne),Qe===null?Rt=ya:Qe.sibling=ya,Qe=ya);return a&&Dt.forEach(function(Nl){return n(K,Nl)}),It&&zt(K,ne),Rt}function gs(K,q,w,ft){if(w==null)throw Error(o(151));for(var Rt=null,Qe=null,Dt=q,ne=q=0,ya=null,fe=w.next();Dt!==null&&!fe.done;ne++,fe=w.next()){Dt.index>ne?(ya=Dt,Dt=null):ya=Dt.sibling;var Nl=yt(K,Dt,fe.value,ft);if(Nl===null){Dt===null&&(Dt=ya);break}a&&Dt&&Nl.alternate===null&&n(K,Dt),q=_(Nl,q,ne),Qe===null?Rt=Nl:Qe.sibling=Nl,Qe=Nl,Dt=ya}if(fe.done)return c(K,Dt),It&&zt(K,ne),Rt;if(Dt===null){for(;!fe.done;ne++,fe=w.next())fe=ut(K,fe.value,ft),fe!==null&&(q=_(fe,q,ne),Qe===null?Rt=fe:Qe.sibling=fe,Qe=fe);return It&&zt(K,ne),Rt}for(Dt=r(Dt);!fe.done;ne++,fe=w.next())fe=Xt(Dt,K,ne,fe.value,ft),fe!==null&&(a&&fe.alternate!==null&&Dt.delete(fe.key===null?ne:fe.key),q=_(fe,q,ne),Qe===null?Rt=fe:Qe.sibling=fe,Qe=fe);return a&&Dt.forEach(function(b1){return n(K,b1)}),It&&zt(K,ne),Rt}function Oi(K,q,w,ft){if(typeof w=="object"&&w!==null&&w.type===Pi&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case un:t:{for(var Rt=w.key;q!==null;){if(q.key===Rt){if(Rt=w.type,Rt===Pi){if(q.tag===7){c(K,q.sibling),ft=y(q,w.props.children),ft.return=K,K=ft;break t}}else if(q.elementType===Rt||typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===Ba&&Fn(Rt)===q.type){c(K,q.sibling),ft=y(q,w.props),Mu(ft,w),ft.return=K,K=ft;break t}c(K,q);break}else n(K,q);q=q.sibling}w.type===Pi?(ft=_l(w.props.children,K.mode,ft,w.key),ft.return=K,K=ft):(ft=Nn(w.type,w.key,w.props,null,K.mode,ft),Mu(ft,w),ft.return=K,K=ft)}return C(K);case ki:t:{for(Rt=w.key;q!==null;){if(q.key===Rt)if(q.tag===4&&q.stateNode.containerInfo===w.containerInfo&&q.stateNode.implementation===w.implementation){c(K,q.sibling),ft=y(q,w.children||[]),ft.return=K,K=ft;break t}else{c(K,q);break}else n(K,q);q=q.sibling}ft=Yo(w,K.mode,ft),ft.return=K,K=ft}return C(K);case Ba:return w=Fn(w),Oi(K,q,w,ft)}if(mi(w))return va(K,q,w,ft);if(T(w)){if(Rt=T(w),typeof Rt!="function")throw Error(o(150));return w=Rt.call(w),gs(K,q,w,ft)}if(typeof w.then=="function")return Oi(K,q,Hc(w),ft);if(w.$$typeof===El)return Oi(K,q,Aa(K,w),ft);Ns(K,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,q!==null&&q.tag===6?(c(K,q.sibling),ft=y(q,w),ft.return=K,K=ft):(c(K,q),ft=Uo(w,K.mode,ft),ft.return=K,K=ft),C(K)):c(K,q)}return function(K,q,w,ft){try{su=0;var Rt=Oi(K,q,w,ft);return _i=null,Rt}catch(Dt){if(Dt===fa||Dt===xl)throw Dt;var Qe=s(29,Dt,null,K.mode);return Qe.lanes=ft,Qe.return=K,Qe}finally{}}}function Ou(){for(var a=hn,n=cu=hn=0;n<a;){var c=Ca[n];Ca[n++]=null;var r=Ca[n];Ca[n++]=null;var y=Ca[n];Ca[n++]=null;var _=Ca[n];if(Ca[n++]=null,r!==null&&y!==null){var C=r.pending;C===null?y.next=y:(y.next=C.next,C.next=y),r.pending=y}_!==0&&bn(c,y,_)}}function xu(a,n,c,r){Ca[hn++]=a,Ca[hn++]=n,Ca[hn++]=c,Ca[hn++]=r,cu|=r,a.lanes|=r,a=a.alternate,a!==null&&(a.lanes|=r)}function Uc(a,n,c,r){return xu(a,n,c,r),$e(a)}function kn(a,n){return xu(a,null,null,n),$e(a)}function bn(a,n,c){a.lanes|=c;var r=a.alternate;r!==null&&(r.lanes|=c);for(var y=!1,_=a.return;_!==null;)_.childLanes|=c,r=_.alternate,r!==null&&(r.childLanes|=c),_.tag===22&&(a=_.stateNode,a===null||a._visibility&1||(y=!0)),a=_,_=_.return;return a.tag===3?(_=a.stateNode,y&&n!==null&&(y=31-ka(c),a=_.hiddenUpdates,r=a[y],r===null?a[y]=[n]:r.push(n),n.lane=c|536870912),_):null}function $e(a){if(50<se)throw se=0,Ec=null,Error(o(185));for(var n=a.return;n!==null;)a=n,n=a.return;return a.tag===3?a.stateNode:null}function za(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pn(a,n){a=a.updateQueue,n.updateQueue===a&&(n.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Kl(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function In(a,n,c){var r=a.updateQueue;if(r===null)return null;if(r=r.shared,(Ft&2)!==0){var y=r.pending;return y===null?n.next=n:(n.next=y.next,y.next=n),r.pending=n,n=$e(a),bn(a,null,c),n}return xu(a,r,n,c),$e(a)}function Gs(a,n,c){if(n=n.updateQueue,n!==null&&(n=n.shared,(c&4194048)!==0)){var r=n.lanes;r&=a.pendingLanes,c|=r,n.lanes=c,Et(a,c)}}function Bc(a,n){var c=a.updateQueue,r=a.alternate;if(r!==null&&(r=r.updateQueue,c===r)){var y=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var C={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?y=_=C:_=_.next=C,c=c.next}while(c!==null);_===null?y=_=n:_=_.next=n}else y=_=n;c={baseState:r.baseState,firstBaseUpdate:y,lastBaseUpdate:_,shared:r.shared,callbacks:r.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=n:a.next=n,c.lastBaseUpdate=n}function Tn(){if(Zf){var a=ca;if(a!==null)throw a}}function Bi(a,n,c,r){Zf=!1;var y=a.updateQueue;ol=!1;var _=y.firstBaseUpdate,C=y.lastBaseUpdate,G=y.shared.pending;if(G!==null){y.shared.pending=null;var W=G,at=W.next;W.next=null,C===null?_=at:C.next=at,C=W;var dt=a.alternate;dt!==null&&(dt=dt.updateQueue,G=dt.lastBaseUpdate,G!==C&&(G===null?dt.firstBaseUpdate=at:G.next=at,dt.lastBaseUpdate=W))}if(_!==null){var ut=y.baseState;C=0,dt=at=W=null,G=_;do{var yt=G.lane&-536870913,Xt=yt!==G.lane;if(Xt?($t&yt)===yt:(r&yt)===yt){yt!==0&&yt===Xn&&(Zf=!0),dt!==null&&(dt=dt.next={lane:0,tag:G.tag,payload:G.payload,callback:null,next:null});t:{var va=a,gs=G;yt=n;var Oi=c;switch(gs.tag){case 1:if(va=gs.payload,typeof va=="function"){ut=va.call(Oi,ut,yt);break t}ut=va;break t;case 3:va.flags=va.flags&-65537|128;case 0:if(va=gs.payload,yt=typeof va=="function"?va.call(Oi,ut,yt):va,yt==null)break t;ut=pf({},ut,yt);break t;case 2:ol=!0}}yt=G.callback,yt!==null&&(a.flags|=64,Xt&&(a.flags|=8192),Xt=y.callbacks,Xt===null?y.callbacks=[yt]:Xt.push(yt))}else Xt={lane:yt,tag:G.tag,payload:G.payload,callback:G.callback,next:null},dt===null?(at=dt=Xt,W=ut):dt=dt.next=Xt,C|=yt;if(G=G.next,G===null){if(G=y.shared.pending,G===null)break;Xt=G,G=Xt.next,Xt.next=null,y.lastBaseUpdate=Xt,y.shared.pending=null}}while(!0);dt===null&&(W=ut),y.baseState=W,y.firstBaseUpdate=at,y.lastBaseUpdate=dt,_===null&&(y.shared.lanes=0),jn|=C,a.lanes=C,a.memoizedState=ut}}function Yi(a,n){if(typeof a!="function")throw Error(o(191,a));a.call(n)}function qi(a,n){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)Yi(c[a],n)}function Ru(a,n){a=mn,O(Ei,a),O(fu,n),mn=a|n.baseLanes}function $n(){O(Ei,mn),O(fu,fu.current)}function ta(){mn=Ei.current,x(fu),x(Ei)}function Cn(a){var n=a.alternate;O(Ze,Ze.current&1),O(Ia,a),La===null&&(n===null||fu.current!==null||n.memoizedState!==null)&&(La=a)}function Yc(a){O(Ze,Ze.current),O(Ia,a),La===null&&(La=a)}function ti(a){a.tag===22?(O(Ze,Ze.current),O(Ia,a),La===null&&(La=a)):al()}function al(){O(Ze,Ze.current),O(Ia,Ia.current)}function ll(a){x(Ia),La===a&&(La=null),x(Ze)}function Hs(a){for(var n=a;n!==null;){if(n.tag===13){var c=n.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||vi(c)||zf(c)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break;for(;n.sibling===null;){if(n.return===null||n.return===a)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Ue(){throw Error(o(321))}function io(a,n){if(n===null)return!1;for(var c=0;c<n.length&&c<a.length;c++)if(!Fe(a[c],n[c]))return!1;return!0}function Du(a,n,c,r,y,_){return Ln=_,Qt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ot.H=a===null||a.memoizedState===null?Xe:dn,ae=!1,_=c(r,y),ae=!1,Zt&&(_=Jl(n,c,r,y)),Us(a),_}function Us(a){Ot.H=rl;var n=At!==null&&At.next!==null;if(Ln=0,Bt=At=Qt=null,Jt=!1,Rl=0,ql=null,n)throw Error(o(300));a===null||Ae||(a=a.dependencies,a!==null&&Eu(a)&&(Ae=!0))}function Jl(a,n,c,r){Qt=a;var y=0;do{if(Zt&&(ql=null),Rl=0,Zt=!1,25<=y)throw Error(o(301));if(y+=1,Bt=At=null,a.updateQueue!=null){var _=a.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}Ot.H=bi,_=n(c,r)}while(Zt);return _}function ml(){var a=Ot.H,n=a.useState()[0];return n=typeof n.then=="function"?Oa(n):n,a=a.useState()[0],(At!==null?At.memoizedState:null)!==a&&(Qt.flags|=1024),n}function qc(){var a=Na!==0;return Na=0,a}function uo(a,n,c){n.updateQueue=a.updateQueue,n.flags&=-2053,a.lanes&=~c}function Bs(a){if(Jt){for(a=a.memoizedState;a!==null;){var n=a.queue;n!==null&&(n.pending=null),a=a.next}Jt=!1}Ln=0,Bt=At=Qt=null,Zt=!1,Rl=Na=0,ql=null}function Ma(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?Qt.memoizedState=Bt=a:Bt=Bt.next=a,Bt}function Me(){if(At===null){var a=Qt.alternate;a=a!==null?a.memoizedState:null}else a=At.next;var n=Bt===null?Qt.memoizedState:Bt.next;if(n!==null)Bt=n,At=a;else{if(a===null)throw Qt.alternate===null?Error(o(467)):Error(o(310));At=a,a={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Bt===null?Qt.memoizedState=Bt=a:Bt=Bt.next=a}return Bt}function Xc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oa(a){var n=Rl;return Rl+=1,ql===null&&(ql=[]),a=ih(ql,a,n),n=Qt,(Bt===null?n.memoizedState:Bt.next)===null&&(n=n.alternate,Ot.H=n===null||n.memoizedState===null?Xe:dn),a}function Nu(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Oa(a);if(a.$$typeof===El)return Sa(a)}throw Error(o(438,String(a)))}function Lc(a){var n=null,c=Qt.updateQueue;if(c!==null&&(n=c.memoCache),n==null){var r=Qt.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(n={data:r.data.map(function(y){return y.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),c===null&&(c=Xc(),Qt.updateQueue=c),c.memoCache=n,c=n.data[n.index],c===void 0)for(c=n.data[n.index]=Array(a),r=0;r<a;r++)c[r]=Xo;return n.index++,c}function Hl(a,n){return typeof n=="function"?n(a):n}function An(a){var n=Me();return jc(n,At,a)}function jc(a,n,c){var r=a.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=c;var y=a.baseQueue,_=r.pending;if(_!==null){if(y!==null){var C=y.next;y.next=_.next,_.next=C}n.baseQueue=y=_,r.pending=null}if(_=a.baseState,y===null)a.memoizedState=_;else{n=y.next;var G=C=null,W=null,at=n,dt=!1;do{var ut=at.lane&-536870913;if(ut!==at.lane?($t&ut)===ut:(Ln&ut)===ut){var yt=at.revertLane;if(yt===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:at.action,hasEagerState:at.hasEagerState,eagerState:at.eagerState,next:null}),ut===Xn&&(dt=!0);else if((Ln&yt)===yt){at=at.next,yt===Xn&&(dt=!0);continue}else ut={lane:0,revertLane:at.revertLane,gesture:null,action:at.action,hasEagerState:at.hasEagerState,eagerState:at.eagerState,next:null},W===null?(G=W=ut,C=_):W=W.next=ut,Qt.lanes|=yt,jn|=yt;ut=at.action,ae&&c(_,ut),_=at.hasEagerState?at.eagerState:c(_,ut)}else yt={lane:ut,revertLane:at.revertLane,gesture:at.gesture,action:at.action,hasEagerState:at.hasEagerState,eagerState:at.eagerState,next:null},W===null?(G=W=yt,C=_):W=W.next=yt,Qt.lanes|=ut,jn|=ut;at=at.next}while(at!==null&&at!==n);if(W===null?C=_:W.next=G,!Fe(_,a.memoizedState)&&(Ae=!0,dt&&(c=ca,c!==null)))throw c;a.memoizedState=_,a.baseState=C,a.baseQueue=W,r.lastRenderedState=_}return y===null&&(r.lanes=0),[a.memoizedState,r.dispatch]}function Qc(a){var n=Me(),c=n.queue;if(c===null)throw Error(o(311));c.lastRenderedReducer=a;var r=c.dispatch,y=c.pending,_=n.memoizedState;if(y!==null){c.pending=null;var C=y=y.next;do _=a(_,C.action),C=C.next;while(C!==y);Fe(_,n.memoizedState)||(Ae=!0),n.memoizedState=_,n.baseQueue===null&&(n.baseState=_),c.lastRenderedState=_}return[_,r]}function Xi(a,n,c){var r=Qt,y=Me(),_=It;if(_){if(c===void 0)throw Error(o(407));c=c()}else c=n();var C=!Fe((At||y).memoizedState,c);if(C&&(y.memoizedState=c,Ae=!0),y=y.queue,Uu(co.bind(null,r,y,a),[a]),y.getSnapshot!==n||C||Bt!==null&&Bt.memoizedState.tag&1){if(r.flags|=2048,nl(9,{destroy:void 0},so.bind(null,r,y,c,n),null),wt===null)throw Error(o(349));_||(Ln&127)!==0||uh(r,n,c)}return c}function uh(a,n,c){a.flags|=16384,a={getSnapshot:n,value:c},n=Qt.updateQueue,n===null?(n=Xc(),Qt.updateQueue=n,n.stores=[a]):(c=n.stores,c===null?n.stores=[a]:c.push(a))}function so(a,n,c,r){n.value=c,n.getSnapshot=r,Vc(n)&&sh(a)}function co(a,n,c){return c(function(){Vc(n)&&sh(a)})}function Vc(a){var n=a.getSnapshot;a=a.value;try{var c=n();return!Fe(a,c)}catch{return!0}}function sh(a){var n=kn(a,2);n!==null&&Ye(n,a,2)}function fo(a){var n=Ma();if(typeof a=="function"){var c=a;if(a=c(),ae){Ht(!0);try{c()}finally{Ht(!1)}}}return n.memoizedState=n.baseState=a,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:a},n}function Ys(a,n,c,r){return a.baseState=c,jc(a,At,typeof r=="function"?r:Hl)}function zn(a,n,c,r,y){if(Pc(a))throw Error(o(485));if(a=n.action,a!==null){var _={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){_.listeners.push(C)}};Ot.T!==null?c(!0):_.isTransition=!1,r(_),c=n.pending,c===null?(_.next=n.pending=_,Zc(n,_)):(_.next=c.next,n.pending=c.next=_)}}function Zc(a,n){var c=n.action,r=n.payload,y=a.state;if(n.isTransition){var _=Ot.T,C={};Ot.T=C;try{var G=c(y,r),W=Ot.S;W!==null&&W(C,G),Kc(a,n,G)}catch(at){ei(a,n,at)}finally{_!==null&&C.types!==null&&(_.types=C.types),Ot.T=_}}else try{_=c(y,r),Kc(a,n,_)}catch(at){ei(a,n,at)}}function Kc(a,n,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(r){Li(a,n,r)},function(r){return ei(a,n,r)}):Li(a,n,c)}function Li(a,n,c){n.status="fulfilled",n.value=c,oo(n),a.state=c,n=a.pending,n!==null&&(c=n.next,c===n?a.pending=null:(c=c.next,n.next=c,Zc(a,c)))}function ei(a,n,c){var r=a.pending;if(a.pending=null,r!==null){r=r.next;do n.status="rejected",n.reason=c,oo(n),n=n.next;while(n!==r)}a.action=null}function oo(a){a=a.listeners;for(var n=0;n<a.length;n++)(0,a[n])()}function Jc(a,n){return n}function ro(a,n){if(It){var c=wt.formState;if(c!==null){t:{var r=Qt;if(It){if(Re){var y=e0(Re,qa);if(y){Re=a0(y),r=nr(y);break t}}de(r)}r=!1}r&&(n=c[0])}}c=Ma(),c.memoizedState=c.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jc,lastRenderedState:n},c.queue=r,c=dh.bind(null,Qt,r),r.dispatch=c,r=fo(!1);var _=kc.bind(null,Qt,!1,r.queue);return r=Ma(),y={state:n,dispatch:null,action:a,pending:null},r.queue=y,c=zn.bind(null,Qt,y,_,c),y.dispatch=c,r.memoizedState=a,[n,c,!1]}function Gu(a){var n=Me();return wl(n,At,a)}function wl(a,n,c){if(n=jc(a,n,Jc)[0],a=An(Hl)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var r=Oa(n)}catch(C){throw C===fa?xl:C}else r=n;n=Me();var y=n.queue,_=y.dispatch;return c!==n.memoizedState&&(Qt.flags|=2048,nl(9,{destroy:void 0},ho.bind(null,y,c),null)),[r,_,a]}function ho(a,n){a.action=n}function Hu(a){var n=Me(),c=At;if(c!==null)return wl(n,c,a);Me(),n=n.memoizedState,c=Me();var r=c.queue.dispatch;return c.memoizedState=a,[n,r,!1]}function nl(a,n,c,r){return a={tag:a,create:c,deps:r,inst:n,next:null},n=Qt.updateQueue,n===null&&(n=Xc(),Qt.updateQueue=n),c=n.lastEffect,c===null?n.lastEffect=a.next=a:(r=c.next,c.next=a,a.next=r,n.lastEffect=a),a}function wc(){return Me().memoizedState}function ji(a,n,c,r){var y=Ma();Qt.flags|=a,y.memoizedState=nl(1|n,{destroy:void 0},c,r===void 0?null:r)}function qs(a,n,c,r){var y=Me();r=r===void 0?null:r;var _=y.memoizedState.inst;At!==null&&r!==null&&io(r,At.memoizedState.deps)?y.memoizedState=nl(n,_,c,r):(Qt.flags|=a,y.memoizedState=nl(1|n,_,c,r))}function Xs(a,n){ji(8390656,8,a,n)}function Uu(a,n){qs(2048,8,a,n)}function ch(a){Qt.flags|=4;var n=Qt.updateQueue;if(n===null)n=Xc(),Qt.updateQueue=n,n.events=[a];else{var c=n.events;c===null?n.events=[a]:c.push(a)}}function Ga(a){var n=Me().memoizedState;return ch({ref:n,nextImpl:a}),function(){if((Ft&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}function ai(a,n){return qs(4,2,a,n)}function Ls(a,n){return qs(4,4,a,n)}function Bu(a,n){if(typeof n=="function"){a=a();var c=n(a);return function(){typeof c=="function"?c():n(null)}}if(n!=null)return a=a(),n.current=a,function(){n.current=null}}function fh(a,n,c){c=c!=null?c.concat([a]):null,qs(4,4,Bu.bind(null,n,a),c)}function js(){}function Wc(a,n){var c=Me();n=n===void 0?null:n;var r=c.memoizedState;return n!==null&&io(n,r[1])?r[0]:(c.memoizedState=[a,n],a)}function Yu(a,n){var c=Me();n=n===void 0?null:n;var r=c.memoizedState;if(n!==null&&io(n,r[1]))return r[0];if(r=a(),ae){Ht(!0);try{a()}finally{Ht(!1)}}return c.memoizedState=[r,n],r}function qu(a,n,c){return c===void 0||(Ln&1073741824)!==0&&($t&261930)===0?a.memoizedState=n:(a.memoizedState=c,a=xn(),Qt.lanes|=a,jn|=a,c)}function mo(a,n,c,r){return Fe(c,n)?c:fu.current!==null?(a=qu(a,c,r),Fe(a,n)||(Ae=!0),a):(Ln&42)===0||(Ln&1073741824)!==0&&($t&261930)===0?(Ae=!0,a.memoizedState=c):(a=xn(),Qt.lanes|=a,jn|=a,n)}function oh(a,n,c,r,y){var _=bl();Pt(_!==0&&8>_?_:8);var C=Ot.T,G={};Ot.T=G,kc(a,!1,n,c);try{var W=y(),at=Ot.S;if(at!==null&&at(G,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var dt=Nc(W,r);Qs(a,n,dt,Oe(a))}else Qs(a,n,r,Oe(a))}catch(ut){Qs(a,n,{then:function(){},status:"rejected",reason:ut},Oe())}finally{Pt(_),C!==null&&G.types!==null&&(C.types=G.types),Ot.T=C}}function rh(a){var n=a.memoizedState;if(n!==null)return n;n={memoizedState:eu,baseState:eu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:eu},next:null};var c={};return n.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:c},next:null},a.memoizedState=n,a=a.alternate,a!==null&&(a.memoizedState=n),n}function go(){return Sa(au)}function Fc(){return Me().memoizedState}function hh(){return Me().memoizedState}function o1(a){for(var n=a.return;n!==null;){switch(n.tag){case 24:case 3:var c=Oe();a=Kl(c);var r=In(n,a,c);r!==null&&(Ye(r,n,c),Gs(r,n,c)),n={cache:Dc()},a.payload=n;return}n=n.return}}function r1(a,n,c){var r=Oe();c={lane:r,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Pc(a)?mh(n,c):(c=Uc(a,n,c,r),c!==null&&(Ye(c,a,r),gh(c,n,r)))}function dh(a,n,c){var r=Oe();Qs(a,n,c,r)}function Qs(a,n,c,r){var y={lane:r,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(Pc(a))mh(n,y);else{var _=a.alternate;if(a.lanes===0&&(_===null||_.lanes===0)&&(_=n.lastRenderedReducer,_!==null))try{var C=n.lastRenderedState,G=_(C,c);if(y.hasEagerState=!0,y.eagerState=G,Fe(G,C))return xu(a,n,y,0),wt===null&&Ou(),!1}catch{}finally{}if(c=Uc(a,n,y,r),c!==null)return Ye(c,a,r),gh(c,n,r),!0}return!1}function kc(a,n,c,r){if(r={lane:2,revertLane:lo(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Pc(a)){if(n)throw Error(o(479))}else n=Uc(a,c,r,2),n!==null&&Ye(n,a,2)}function Pc(a){var n=a.alternate;return a===Qt||n!==null&&n===Qt}function mh(a,n){Zt=Jt=!0;var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}function gh(a,n,c){if((c&4194048)!==0){var r=n.lanes;r&=a.pendingLanes,c|=r,n.lanes=c,Et(a,c)}}function vo(a,n,c,r){n=a.memoizedState,c=c(r,n),c=c==null?n:pf({},n,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}function Ic(a,n,c,r,y,_,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(r,_,C):n.prototype&&n.prototype.isPureReactComponent?!Ui(c,r)||!Ui(y,_):!0}function vh(a,n,c,r){a=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(c,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(c,r),n.state!==a&&vc.enqueueReplaceState(n,n.state,null)}function Qi(a,n){var c=n;if("ref"in n){c={};for(var r in n)r!=="ref"&&(c[r]=n[r])}if(a=a.defaultProps){c===n&&(c=pf({},c));for(var y in a)c[y]===void 0&&(c[y]=a[y])}return c}function $c(a,n){try{var c=a.onUncaughtError;c(n.value,{componentStack:n.stack})}catch(r){setTimeout(function(){throw r})}}function yo(a,n,c){try{var r=a.onCaughtError;r(c.value,{componentStack:c.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function po(a,n,c){return c=Kl(c),c.tag=3,c.payload={element:null},c.callback=function(){$c(a,n)},c}function yh(a){return a=Kl(a),a.tag=3,a}function ph(a,n,c,r){var y=c.type.getDerivedStateFromError;if(typeof y=="function"){var _=r.value;a.payload=function(){return y(_)},a.callback=function(){yo(n,c,r)}}var C=c.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){yo(n,c,r),typeof y!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var G=r.stack;this.componentDidCatch(r.value,{componentStack:G!==null?G:""})})}function h1(a,n,c,r,y){if(c.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(n=c.alternate,n!==null&&wn(n,c,y,!0),c=Ia.current,c!==null){switch(c.tag){case 31:case 13:return La===null?Fu():c.alternate===null&&je===0&&(je=3),c.flags&=-257,c.flags|=65536,c.lanes=y,r===rn?c.flags|=16384:(n=c.updateQueue,n===null?c.updateQueue=new Set([r]):n.add(r),Iu(a,r,y)),!1;case 22:return c.flags|=65536,r===rn?c.flags|=16384:(n=c.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([r])},c.updateQueue=n):(c=n.retryQueue,c===null?n.retryQueue=new Set([r]):c.add(r)),Iu(a,r,y)),!1}throw Error(o(435,c.tag))}return Iu(a,r,y),Fu(),!1}if(It)return n=Ia.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=y,r!==jf&&(a=Error(o(422),{cause:r}),Ri(_t(a,c)))):(r!==jf&&(n=Error(o(423),{cause:r}),Ri(_t(n,c))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,r=_t(r,c),y=po(a.stateNode,r,y),Bc(a,y),je!==4&&(je=2)),!1;var _=Error(o(520),{cause:r});if(_=_t(_,c),pc===null?pc=[_]:pc.push(_),je!==4&&(je=2),n===null)return!0;r=_t(r,c),c=n;do{switch(c.tag){case 3:return c.flags|=65536,a=y&-y,c.lanes|=a,a=po(c.stateNode,r,a),Bc(c,a),!1;case 1:if(n=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Qn===null||!Qn.has(_))))return c.flags|=65536,y&=-y,c.lanes|=y,y=yh(y),ph(y,a,c,r),Bc(c,y),!1}c=c.return}while(c!==null);return!1}function _a(a,n,c,r){n.child=a===null?br(n,null,c,r):Ta(n,a.child,c,r)}function Sh(a,n,c,r,y){c=c.render;var _=n.ref;if("ref"in r){var C={};for(var G in r)G!=="ref"&&(C[G]=r[G])}else C=r;return Di(n),r=Du(a,n,c,C,_,y),G=qc(),a!==null&&!Ae?(uo(a,n,y),Wl(a,n,y)):(It&&G&&k(n),n.flags|=1,_a(a,n,r,y),n.child)}function _h(a,n,c,r,y){if(a===null){var _=c.type;return typeof _=="function"&&!wi(_)&&_.defaultProps===void 0&&c.compare===null?(n.tag=15,n.type=_,Eh(a,n,_,r,y)):(a=Nn(c.type,null,r,n,n.mode,y),a.ref=n.ref,a.return=n,n.child=a)}if(_=a.child,!Zs(a,y)){var C=_.memoizedProps;if(c=c.compare,c=c!==null?c:Ui,c(C,r)&&a.ref===n.ref)return Wl(a,n,y)}return n.flags|=1,a=sl(_,r),a.ref=n.ref,a.return=n,n.child=a}function Eh(a,n,c,r,y){if(a!==null){var _=a.memoizedProps;if(Ui(_,r)&&a.ref===n.ref)if(Ae=!1,n.pendingProps=r=_,Zs(a,y))(a.flags&131072)!==0&&(Ae=!0);else return n.lanes=a.lanes,Wl(a,n,y)}return ef(a,n,c,r,y)}function bh(a,n,c,r){var y=r.children,_=a!==null?a.memoizedState:null;if(a===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((n.flags&128)!==0){if(_=_!==null?_.baseLanes|c:c,a!==null){for(r=n.child=a.child,y=0;r!==null;)y=y|r.lanes|r.childLanes,r=r.sibling;r=y&~_}else r=0,n.child=null;return Xu(a,n,_,c,r)}if((c&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},a!==null&&Hi(n,_!==null?_.cachePool:null),_!==null?Ru(n,_):$n(),ti(n);else return r=n.lanes=536870912,Xu(a,n,_!==null?_.baseLanes|c:c,c,r)}else _!==null?(Hi(n,_.cachePool),Ru(n,_),al(),n.memoizedState=null):(a!==null&&Hi(n,null),$n(),al());return _a(a,n,y,c),n.child}function Vi(a,n){return a!==null&&a.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Xu(a,n,c,r,y){var _=Cu();return _=_===null?null:{parent:we?De._currentValue:De._currentValue2,pool:_},n.memoizedState={baseLanes:c,cachePool:_},a!==null&&Hi(n,null),$n(),ti(n),a!==null&&wn(a,n,r,!0),n.childLanes=y,null}function tf(a,n){return n=li({mode:n.mode,children:n.children},a.mode),n.ref=a.ref,a.child=n,n.return=a,n}function So(a,n,c){return Ta(n,a.child,null,c),a=tf(n,n.pendingProps),a.flags|=2,ll(n),n.memoizedState=null,a}function Th(a,n,c){var r=n.pendingProps,y=(n.flags&128)!==0;if(n.flags&=-129,a===null){if(It){if(r.mode==="hidden")return a=tf(n,r),n.lanes=536870912,Vi(null,a);if(Yc(n),(a=Re)?(a=ur(a,qa),a!==null&&(n.memoizedState={dehydrated:a,treeContext:Al!==null?{id:Ea,overflow:Bl}:null,retryLane:536870912,hydrationErrors:null},c=Bo(a),c.return=n,n.child=c,sa=n,Re=null)):a=null,a===null)throw de(n);return n.lanes=536870912,null}return tf(n,r)}var _=a.memoizedState;if(_!==null){var C=_.dehydrated;if(Yc(n),y)if(n.flags&256)n.flags&=-257,n=So(a,n,c);else if(n.memoizedState!==null)n.child=a.child,n.flags|=128,n=null;else throw Error(o(558));else if(Ae||wn(a,n,c,!1),y=(c&a.childLanes)!==0,Ae||y){if(r=wt,r!==null&&(C=Mt(r,c),C!==0&&C!==_.retryLane))throw _.retryLane=C,kn(a,C),Ye(r,a,C),ja;Fu(),n=So(a,n,c)}else a=_.treeContext,xe&&(Re=u0(C),sa=n,It=!0,on=null,qa=!1,a!==null&&bt(n,a)),n=tf(n,r),n.flags|=4096;return n}return a=sl(a.child,{mode:r.mode,children:r.children}),a.ref=n.ref,n.child=a,a.return=n,a}function Vs(a,n){var c=n.ref;if(c===null)a!==null&&a.ref!==null&&(n.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(o(284));(a===null||a.ref!==c)&&(n.flags|=4194816)}}function ef(a,n,c,r,y){return Di(n),c=Du(a,n,c,r,void 0,y),r=qc(),a!==null&&!Ae?(uo(a,n,y),Wl(a,n,y)):(It&&r&&k(n),n.flags|=1,_a(a,n,c,y),n.child)}function _o(a,n,c,r,y,_){return Di(n),n.updateQueue=null,c=Jl(n,r,c,y),Us(a),r=qc(),a!==null&&!Ae?(uo(a,n,_),Wl(a,n,_)):(It&&r&&k(n),n.flags|=1,_a(a,n,c,_),n.child)}function Zi(a,n,c,r,y){if(Di(n),n.stateNode===null){var _=sn,C=c.contextType;typeof C=="object"&&C!==null&&(_=Sa(C)),_=new c(r,_),n.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=vc,n.stateNode=_,_._reactInternals=n,_=n.stateNode,_.props=r,_.state=n.memoizedState,_.refs={},za(n),C=c.contextType,_.context=typeof C=="object"&&C!==null?Sa(C):sn,_.state=n.memoizedState,C=c.getDerivedStateFromProps,typeof C=="function"&&(vo(n,c,C,r),_.state=n.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(C=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),C!==_.state&&vc.enqueueReplaceState(_,_.state,null),Bi(n,r,_,y),Tn(),_.state=n.memoizedState),typeof _.componentDidMount=="function"&&(n.flags|=4194308),r=!0}else if(a===null){_=n.stateNode;var G=n.memoizedProps,W=Qi(c,G);_.props=W;var at=_.context,dt=c.contextType;C=sn,typeof dt=="object"&&dt!==null&&(C=Sa(dt));var ut=c.getDerivedStateFromProps;dt=typeof ut=="function"||typeof _.getSnapshotBeforeUpdate=="function",G=n.pendingProps!==G,dt||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(G||at!==C)&&vh(n,_,r,C),ol=!1;var yt=n.memoizedState;_.state=yt,Bi(n,r,_,y),Tn(),at=n.memoizedState,G||yt!==at||ol?(typeof ut=="function"&&(vo(n,c,ut,r),at=n.memoizedState),(W=ol||Ic(n,c,W,r,yt,at,C))?(dt||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(n.flags|=4194308)):(typeof _.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=at),_.props=r,_.state=at,_.context=C,r=W):(typeof _.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{_=n.stateNode,Pn(a,n),C=n.memoizedProps,dt=Qi(c,C),_.props=dt,ut=n.pendingProps,yt=_.context,at=c.contextType,W=sn,typeof at=="object"&&at!==null&&(W=Sa(at)),G=c.getDerivedStateFromProps,(at=typeof G=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(C!==ut||yt!==W)&&vh(n,_,r,W),ol=!1,yt=n.memoizedState,_.state=yt,Bi(n,r,_,y),Tn();var Xt=n.memoizedState;C!==ut||yt!==Xt||ol||a!==null&&a.dependencies!==null&&Eu(a.dependencies)?(typeof G=="function"&&(vo(n,c,G,r),Xt=n.memoizedState),(dt=ol||Ic(n,c,dt,r,yt,Xt,W)||a!==null&&a.dependencies!==null&&Eu(a.dependencies))?(at||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(r,Xt,W),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(r,Xt,W)),typeof _.componentDidUpdate=="function"&&(n.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof _.componentDidUpdate!="function"||C===a.memoizedProps&&yt===a.memoizedState||(n.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&yt===a.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=Xt),_.props=r,_.state=Xt,_.context=W,r=dt):(typeof _.componentDidUpdate!="function"||C===a.memoizedProps&&yt===a.memoizedState||(n.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&yt===a.memoizedState||(n.flags|=1024),r=!1)}return _=r,Vs(a,n),r=(n.flags&128)!==0,_||r?(_=n.stateNode,c=r&&typeof c.getDerivedStateFromError!="function"?null:_.render(),n.flags|=1,a!==null&&r?(n.child=Ta(n,a.child,null,y),n.child=Ta(n,null,c,y)):_a(a,n,c,y),n.memoizedState=_.state,a=n.child):a=Wl(a,n,y),a}function Ch(a,n,c,r){return Jn(),n.flags|=256,_a(a,n,c,r),n.child}function Eo(a){return{baseLanes:a,cachePool:Wn()}}function bo(a,n,c){return a=a!==null?a.childLanes&~c:0,n&&(a|=Qa),a}function To(a,n,c){var r=n.pendingProps,y=!1,_=(n.flags&128)!==0,C;if((C=_)||(C=a!==null&&a.memoizedState===null?!1:(Ze.current&2)!==0),C&&(y=!0,n.flags&=-129),C=(n.flags&32)!==0,n.flags&=-33,a===null){if(It){if(y?Cn(n):al(),(a=Re)?(a=o0(a,qa),a!==null&&(n.memoizedState={dehydrated:a,treeContext:Al!==null?{id:Ea,overflow:Bl}:null,retryLane:536870912,hydrationErrors:null},c=Bo(a),c.return=n,n.child=c,sa=n,Re=null)):a=null,a===null)throw de(n);return zf(a)?n.lanes=32:n.lanes=536870912,null}var G=r.children;return r=r.fallback,y?(al(),y=n.mode,G=li({mode:"hidden",children:G},y),r=_l(r,y,c,null),G.return=n,r.return=n,G.sibling=r,n.child=G,r=n.child,r.memoizedState=Eo(c),r.childLanes=bo(a,C,c),n.memoizedState=ou,Vi(null,r)):(Cn(n),af(n,G))}var W=a.memoizedState;if(W!==null&&(G=W.dehydrated,G!==null)){if(_)n.flags&256?(Cn(n),n.flags&=-257,n=Ki(a,n,c)):n.memoizedState!==null?(al(),n.child=a.child,n.flags|=128,n=null):(al(),G=r.fallback,y=n.mode,r=li({mode:"visible",children:r.children},y),G=_l(G,y,c,null),G.flags|=2,r.return=n,G.return=n,r.sibling=G,n.child=r,Ta(n,a.child,null,c),r=n.child,r.memoizedState=Eo(c),r.childLanes=bo(a,C,c),n.memoizedState=ou,n=Vi(null,r));else if(Cn(n),zf(G))C=Mf(G).digest,r=Error(o(419)),r.stack="",r.digest=C,Ri({value:r,source:null,stack:null}),n=Ki(a,n,c);else if(Ae||wn(a,n,c,!1),C=(c&a.childLanes)!==0,Ae||C){if(C=wt,C!==null&&(r=Mt(C,c),r!==0&&r!==W.retryLane))throw W.retryLane=r,kn(a,r),Ye(C,a,r),ja;vi(G)||Fu(),n=Ki(a,n,c)}else vi(G)?(n.flags|=192,n.child=a.child,n=null):(a=W.treeContext,xe&&(Re=s0(G),sa=n,It=!0,on=null,qa=!1,a!==null&&bt(n,a)),n=af(n,r.children),n.flags|=4096);return n}return y?(al(),G=r.fallback,y=n.mode,W=a.child,_=W.sibling,r=sl(W,{mode:"hidden",children:r.children}),r.subtreeFlags=W.subtreeFlags&65011712,_!==null?G=sl(_,G):(G=_l(G,y,c,null),G.flags|=2),G.return=n,r.return=n,r.sibling=G,n.child=r,Vi(null,r),r=n.child,G=a.child.memoizedState,G===null?G=Eo(c):(y=G.cachePool,y!==null?(W=we?De._currentValue:De._currentValue2,y=y.parent!==W?{parent:W,pool:W}:y):y=Wn(),G={baseLanes:G.baseLanes|c,cachePool:y}),r.memoizedState=G,r.childLanes=bo(a,C,c),n.memoizedState=ou,Vi(a.child,r)):(Cn(n),c=a.child,a=c.sibling,c=sl(c,{mode:"visible",children:r.children}),c.return=n,c.sibling=null,a!==null&&(C=n.deletions,C===null?(n.deletions=[a],n.flags|=16):C.push(a)),n.child=c,n.memoizedState=null,c)}function af(a,n){return n=li({mode:"visible",children:n},a.mode),n.return=a,a.child=n}function li(a,n){return a=s(22,a,null,n),a.lanes=0,a}function Ki(a,n,c){return Ta(n,a.child,null,c),a=af(n,n.pendingProps.children),a.flags|=2,n.memoizedState=null,a}function Ah(a,n,c){a.lanes|=n;var r=a.alternate;r!==null&&(r.lanes|=n),Rc(a.return,n,c)}function Lu(a,n,c,r,y,_){var C=a.memoizedState;C===null?a.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:c,tailMode:y,treeForkCount:_}:(C.isBackwards=n,C.rendering=null,C.renderingStartTime=0,C.last=r,C.tail=c,C.tailMode=y,C.treeForkCount=_)}function Co(a,n,c){var r=n.pendingProps,y=r.revealOrder,_=r.tail;r=r.children;var C=Ze.current,G=(C&2)!==0;if(G?(C=C&1|2,n.flags|=128):C&=1,O(Ze,C),_a(a,n,r,c),r=It?dc:0,!G&&a!==null&&(a.flags&128)!==0)t:for(a=n.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Ah(a,c,n);else if(a.tag===19)Ah(a,c,n);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break t;for(;a.sibling===null;){if(a.return===null||a.return===n)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(y){case"forwards":for(c=n.child,y=null;c!==null;)a=c.alternate,a!==null&&Hs(a)===null&&(y=c),c=c.sibling;c=y,c===null?(y=n.child,n.child=null):(y=c.sibling,c.sibling=null),Lu(n,!1,y,c,_,r);break;case"backwards":case"unstable_legacy-backwards":for(c=null,y=n.child,n.child=null;y!==null;){if(a=y.alternate,a!==null&&Hs(a)===null){n.child=y;break}a=y.sibling,y.sibling=c,c=y,y=a}Lu(n,!0,c,null,_,r);break;case"together":Lu(n,!1,null,null,void 0,r);break;default:n.memoizedState=null}return n.child}function Wl(a,n,c){if(a!==null&&(n.dependencies=a.dependencies),jn|=n.lanes,(c&n.childLanes)===0)if(a!==null){if(wn(a,n,c,!1),(c&n.childLanes)===0)return null}else return null;if(a!==null&&n.child!==a.child)throw Error(o(153));if(n.child!==null){for(a=n.child,c=sl(a,a.pendingProps),n.child=c,c.return=n;a.sibling!==null;)a=a.sibling,c=c.sibling=sl(a,a.pendingProps),c.return=n;c.sibling=null}return n.child}function Zs(a,n){return(a.lanes&n)!==0?!0:(a=a.dependencies,!!(a!==null&&Eu(a)))}function Ao(a,n,c){switch(n.tag){case 3:qt(n,n.stateNode.containerInfo),Vl(n,De,a.memoizedState.cache),Jn();break;case 27:case 5:ce(n);break;case 4:qt(n,n.stateNode.containerInfo);break;case 10:Vl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Yc(n),null;break;case 13:var r=n.memoizedState;if(r!==null)return r.dehydrated!==null?(Cn(n),n.flags|=128,null):(c&n.child.childLanes)!==0?To(a,n,c):(Cn(n),a=Wl(a,n,c),a!==null?a.sibling:null);Cn(n);break;case 19:var y=(a.flags&128)!==0;if(r=(c&n.childLanes)!==0,r||(wn(a,n,c,!1),r=(c&n.childLanes)!==0),y){if(r)return Co(a,n,c);n.flags|=128}if(y=n.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),O(Ze,Ze.current),r)break;return null;case 22:return n.lanes=0,bh(a,n,c,n.pendingProps);case 24:Vl(n,De,a.memoizedState.cache)}return Wl(a,n,c)}function zo(a,n,c){if(a!==null)if(a.memoizedProps!==n.pendingProps)Ae=!0;else{if(!Zs(a,c)&&(n.flags&128)===0)return Ae=!1,Ao(a,n,c);Ae=(a.flags&131072)!==0}else Ae=!1,It&&(n.flags&1048576)!==0&&D(n,dc,n.index);switch(n.lanes=0,n.tag){case 16:t:{var r=n.pendingProps;if(a=Fn(n.elementType),n.type=a,typeof a=="function")wi(a)?(r=Qi(a,r),n.tag=1,n=Zi(null,n,a,r,c)):(n.tag=0,n=ef(null,n,a,r,c));else{if(a!=null){var y=a.$$typeof;if(y===$u){n.tag=11,n=Sh(null,n,a,r,c);break t}else if(y===_f){n.tag=14,n=_h(null,n,a,r,c);break t}}throw n=M(a)||a,Error(o(306,n,""))}}return n;case 0:return ef(a,n,n.type,n.pendingProps,c);case 1:return r=n.type,y=Qi(r,n.pendingProps),Zi(a,n,r,y,c);case 3:t:{if(qt(n,n.stateNode.containerInfo),a===null)throw Error(o(387));var _=n.pendingProps;y=n.memoizedState,r=y.element,Pn(a,n),Bi(n,_,null,c);var C=n.memoizedState;if(_=C.cache,Vl(n,De,_),_!==y.cache&&Ds(n,[De],c,!0),Tn(),_=C.element,xe&&y.isDehydrated)if(y={element:_,isDehydrated:!1,cache:C.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=Ch(a,n,_,c);break t}else if(_!==r){r=_t(Error(o(424)),n),Ri(r),n=Ch(a,n,_,c);break t}else for(xe&&(Re=i0(n.stateNode.containerInfo),sa=n,It=!0,on=null,qa=!0),c=br(n,null,_,c),n.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Jn(),_===r){n=Wl(a,n,c);break t}_a(a,n,_,c)}n=n.child}return n;case 26:if(Tl)return Vs(a,n),a===null?(c=rr(n.type,null,n.pendingProps,null))?n.memoizedState=c:It||(n.stateNode=Df(n.type,n.pendingProps,ba.current,n)):n.memoizedState=rr(n.type,a.memoizedProps,n.pendingProps,a.memoizedState),null;case 27:if(ua)return ce(n),a===null&&ua&&It&&(r=n.stateNode=Nf(n.type,n.pendingProps,ba.current,ma.current,!1),sa=n,qa=!0,Re=ir(n.type,r,Re)),_a(a,n,n.pendingProps.children,c),Vs(a,n),a===null&&(n.flags|=4194304),n.child;case 5:return a===null&&It&&(S0(n.type,n.pendingProps,ma.current),(y=r=Re)&&(r=c0(r,n.type,n.pendingProps,qa),r!==null?(n.stateNode=r,sa=n,Re=n0(r),qa=!1,y=!0):y=!1),y||de(n)),ce(n),y=n.type,_=n.pendingProps,C=a!==null?a.memoizedProps:null,r=_.children,Ya(y,_)?r=null:C!==null&&Ya(y,C)&&(n.flags|=32),n.memoizedState!==null&&(y=Du(a,n,ml,null,null,c),we?au._currentValue=y:au._currentValue2=y),Vs(a,n),_a(a,n,r,c),n.child;case 6:return a===null&&It&&(or(n.pendingProps,ma.current),(a=c=Re)&&(c=f0(c,n.pendingProps,qa),c!==null?(n.stateNode=c,sa=n,Re=null,a=!0):a=!1),a||de(n)),null;case 13:return To(a,n,c);case 4:return qt(n,n.stateNode.containerInfo),r=n.pendingProps,a===null?n.child=Ta(n,null,r,c):_a(a,n,r,c),n.child;case 11:return Sh(a,n,n.type,n.pendingProps,c);case 7:return _a(a,n,n.pendingProps,c),n.child;case 8:return _a(a,n,n.pendingProps.children,c),n.child;case 12:return _a(a,n,n.pendingProps.children,c),n.child;case 10:return r=n.pendingProps,Vl(n,n.type,r.value),_a(a,n,r.children,c),n.child;case 9:return y=n.type._context,r=n.pendingProps.children,Di(n),y=Sa(y),r=r(y),n.flags|=1,_a(a,n,r,c),n.child;case 14:return _h(a,n,n.type,n.pendingProps,c);case 15:return Eh(a,n,n.type,n.pendingProps,c);case 19:return Co(a,n,c);case 31:return Th(a,n,c);case 22:return bh(a,n,c,n.pendingProps);case 24:return Di(n),r=Sa(De),a===null?(y=Cu(),y===null&&(y=wt,_=Dc(),y.pooledCache=_,_.refCount++,_!==null&&(y.pooledCacheLanes|=c),y=_),n.memoizedState={parent:r,cache:y},za(n),Vl(n,De,y)):((a.lanes&c)!==0&&(Pn(a,n),Bi(n,null,null,c),Tn()),y=a.memoizedState,_=n.memoizedState,y.parent!==r?(y={parent:r,cache:r},n.memoizedState=y,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=y),Vl(n,De,r)):(r=_.cache,Vl(n,De,r),r!==y.cache&&Ds(n,[De],c,!0))),_a(a,n,n.pendingProps.children,c),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function gl(a){a.flags|=4}function Ks(a){cl&&(a.flags|=8)}function zh(a,n){if(a!==null&&a.child===n.child)return!1;if((n.flags&16)!==0)return!0;for(a=n.child;a!==null;){if((a.flags&8218)!==0||(a.subtreeFlags&8218)!==0)return!0;a=a.sibling}return!1}function Mo(a,n,c,r){if(ee)for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)ic(a,c.stateNode);else if(!(c.tag===4||ua&&c.tag===27)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break;for(;c.sibling===null;){if(c.return===null||c.return===n)return;c=c.return}c.sibling.return=c.return,c=c.sibling}else if(cl)for(var y=n.child;y!==null;){if(y.tag===5){var _=y.stateNode;c&&r&&(_=t0(_,y.type,y.memoizedProps)),ic(a,_)}else if(y.tag===6)_=y.stateNode,c&&r&&(_=lr(_,y.memoizedProps)),ic(a,_);else if(y.tag!==4){if(y.tag===22&&y.memoizedState!==null)_=y.child,_!==null&&(_.return=y),Mo(a,y,!0,!0);else if(y.child!==null){y.child.return=y,y=y.child;continue}}if(y===n)break;for(;y.sibling===null;){if(y.return===null||y.return===n)return;y=y.return}y.sibling.return=y.return,y=y.sibling}}function Mh(a,n,c,r){var y=!1;if(cl)for(var _=n.child;_!==null;){if(_.tag===5){var C=_.stateNode;c&&r&&(C=t0(C,_.type,_.memoizedProps)),er(a,C)}else if(_.tag===6)C=_.stateNode,c&&r&&(C=lr(C,_.memoizedProps)),er(a,C);else if(_.tag!==4){if(_.tag===22&&_.memoizedState!==null)y=_.child,y!==null&&(y.return=_),Mh(a,_,!0,!0),y=!0;else if(_.child!==null){_.child.return=_,_=_.child;continue}}if(_===n)break;for(;_.sibling===null;){if(_.return===null||_.return===n)return y;_=_.return}_.sibling.return=_.return,_=_.sibling}return y}function Oh(a,n){if(cl&&zh(a,n)){a=n.stateNode;var c=a.containerInfo,r=tr();Mh(r,n,!1,!1),a.pendingChildren=r,gl(n),$h(c,r)}}function Oo(a,n,c,r){if(ee)a.memoizedProps!==r&&gl(n);else if(cl){var y=a.stateNode,_=a.memoizedProps;if((a=zh(a,n))||_!==r){var C=ma.current;_=Ih(y,c,_,r,!a,null),_===y?n.stateNode=y:(Ks(n),Wa(_,c,r,C)&&gl(n),n.stateNode=_,a&&Mo(_,n,!1,!1))}else n.stateNode=y}}function Ha(a,n,c,r,y){if((a.mode&32)!==0&&(c===null?uc(n,r):ns(n,c,r))){if(a.flags|=16777216,(y&335544128)===y||Vo(n,r))if(qe(a.stateNode,n,r))a.flags|=8192;else if(te())a.flags|=8192;else throw Xa=rn,Vf}else a.flags&=-16777217}function ju(a,n){if(gr(n)){if(a.flags|=16777216,!vr(n))if(te())a.flags|=8192;else throw Xa=rn,Vf}else a.flags&=-16777217}function Js(a,n){n!==null&&(a.flags|=4),a.flags&16384&&(n=a.tag!==22?P():536870912,a.lanes|=n,ds|=n)}function Qu(a,n){if(!It)switch(a.tailMode){case"hidden":n=a.tail;for(var c=null;n!==null;)n.alternate!==null&&(c=n),n=n.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var r=null;c!==null;)c.alternate!==null&&(r=c),c=c.sibling;r===null?n||a.tail===null?a.tail=null:a.tail.sibling=null:r.sibling=null}}function _e(a){var n=a.alternate!==null&&a.alternate.child===a.child,c=0,r=0;if(n)for(var y=a.child;y!==null;)c|=y.lanes|y.childLanes,r|=y.subtreeFlags&65011712,r|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)c|=y.lanes|y.childLanes,r|=y.subtreeFlags,r|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=r,a.childLanes=c,n}function xh(a,n,c){var r=n.pendingProps;switch(ot(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(n),null;case 1:return _e(n),null;case 3:return c=n.stateNode,r=null,a!==null&&(r=a.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),_n(De),Lt(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(Kn(n)?gl(n):a===null||a.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Sn())),Oh(a,n),_e(n),null;case 26:if(Tl){var y=n.type,_=n.memoizedState;return a===null?(gl(n),_!==null?(_e(n),ju(n,_)):(_e(n),Ha(n,y,null,r,c))):_?_!==a.memoizedState?(gl(n),_e(n),ju(n,_)):(_e(n),n.flags&=-16777217):(_=a.memoizedProps,ee?_!==r&&gl(n):Oo(a,n,y,r),_e(n),Ha(n,y,_,r,c)),null}case 27:if(ua){if(oa(n),c=ba.current,y=n.type,a!==null&&n.stateNode!=null)ee?a.memoizedProps!==r&&gl(n):Oo(a,n,y,r);else{if(!r){if(n.stateNode===null)throw Error(o(166));return _e(n),null}a=ma.current,Kn(n)?_u(n,a):(a=Nf(y,r,c,a,!0),n.stateNode=a,gl(n))}return _e(n),null}case 5:if(oa(n),y=n.type,a!==null&&n.stateNode!=null)Oo(a,n,y,r);else{if(!r){if(n.stateNode===null)throw Error(o(166));return _e(n),null}if(_=ma.current,Kn(n))_u(n,_),v0(n.stateNode,y,r,_)&&(n.flags|=64);else{var C=jo(y,r,ba.current,_,n);Ks(n),Mo(C,n,!1,!1),n.stateNode=C,Wa(C,y,r,_)&&gl(n)}}return _e(n),Ha(n,n.type,a===null?null:a.memoizedProps,n.pendingProps,c),null;case 6:if(a&&n.stateNode!=null)c=a.memoizedProps,ee?c!==r&&gl(n):cl&&(c!==r?(a=ba.current,c=ma.current,Ks(n),n.stateNode=Un(r,a,c,n)):n.stateNode=a.stateNode);else{if(typeof r!="string"&&n.stateNode===null)throw Error(o(166));if(a=ba.current,c=ma.current,Kn(n)){if(!xe)throw Error(o(176));if(a=n.stateNode,c=n.memoizedProps,r=null,y=sa,y!==null)switch(y.tag){case 27:case 5:r=y.memoizedProps}y1(a,c,n,r)||de(n,!0)}else Ks(n),n.stateNode=Un(r,a,c,n)}return _e(n),null;case 31:if(c=n.memoizedState,a===null||a.memoizedState!==null){if(r=Kn(n),c!==null){if(a===null){if(!r)throw Error(o(318));if(!xe)throw Error(o(556));if(a=n.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(557));sr(a,n)}else Jn(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_e(n),a=!1}else c=Sn(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=c),a=!0;if(!a)return n.flags&256?(ll(n),n):(ll(n),null);if((n.flags&128)!==0)throw Error(o(558))}return _e(n),null;case 13:if(r=n.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=Kn(n),r!==null&&r.dehydrated!==null){if(a===null){if(!y)throw Error(o(318));if(!xe)throw Error(o(344));if(y=n.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(o(317));h0(y,n)}else Jn(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_e(n),y=!1}else y=Sn(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return n.flags&256?(ll(n),n):(ll(n),null)}return ll(n),(n.flags&128)!==0?(n.lanes=c,n):(c=r!==null,a=a!==null&&a.memoizedState!==null,c&&(r=n.child,y=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(y=r.alternate.memoizedState.cachePool.pool),_=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(_=r.memoizedState.cachePool.pool),_!==y&&(r.flags|=2048)),c!==a&&c&&(n.child.flags|=8192),Js(n,n.updateQueue),_e(n),null);case 4:return Lt(),Oh(a,n),a===null&&pe(n.stateNode.containerInfo),_e(n),null;case 10:return _n(n.type),_e(n),null;case 19:if(x(Ze),r=n.memoizedState,r===null)return _e(n),null;if(y=(n.flags&128)!==0,_=r.rendering,_===null)if(y)Qu(r,!1);else{if(je!==0||a!==null&&(a.flags&128)!==0)for(a=n.child;a!==null;){if(_=Hs(a),_!==null){for(n.flags|=128,Qu(r,!1),a=_.updateQueue,n.updateQueue=a,Js(n,a),n.subtreeFlags=0,a=c,c=n.child;c!==null;)gf(c,a),c=c.sibling;return O(Ze,Ze.current&1|2),It&&zt(n,r.treeForkCount),n.child}a=a.sibling}r.tail!==null&&Ra()>Mi&&(n.flags|=128,y=!0,Qu(r,!1),n.lanes=4194304)}else{if(!y)if(a=Hs(_),a!==null){if(n.flags|=128,y=!0,a=a.updateQueue,n.updateQueue=a,Js(n,a),Qu(r,!0),r.tail===null&&r.tailMode==="hidden"&&!_.alternate&&!It)return _e(n),null}else 2*Ra()-r.renderingStartTime>Mi&&c!==536870912&&(n.flags|=128,y=!0,Qu(r,!1),n.lanes=4194304);r.isBackwards?(_.sibling=n.child,n.child=_):(a=r.last,a!==null?a.sibling=_:n.child=_,r.last=_)}return r.tail!==null?(a=r.tail,r.rendering=a,r.tail=a.sibling,r.renderingStartTime=Ra(),a.sibling=null,c=Ze.current,O(Ze,y?c&1|2:c&1),It&&zt(n,r.treeForkCount),a):(_e(n),null);case 22:case 23:return ll(n),ta(),r=n.memoizedState!==null,a!==null?a.memoizedState!==null!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?(c&536870912)!==0&&(n.flags&128)===0&&(_e(n),n.subtreeFlags&6&&(n.flags|=8192)):_e(n),c=n.updateQueue,c!==null&&Js(n,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==c&&(n.flags|=2048),a!==null&&x(Si),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),n.memoizedState.cache!==c&&(n.flags|=2048),_n(De),_e(n),null;case 25:return null;case 30:return null}throw Error(o(156,n.tag))}function xo(a,n){switch(ot(n),n.tag){case 1:return a=n.flags,a&65536?(n.flags=a&-65537|128,n):null;case 3:return _n(De),Lt(),a=n.flags,(a&65536)!==0&&(a&128)===0?(n.flags=a&-65537|128,n):null;case 26:case 27:case 5:return oa(n),null;case 31:if(n.memoizedState!==null){if(ll(n),n.alternate===null)throw Error(o(340));Jn()}return a=n.flags,a&65536?(n.flags=a&-65537|128,n):null;case 13:if(ll(n),a=n.memoizedState,a!==null&&a.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Jn()}return a=n.flags,a&65536?(n.flags=a&-65537|128,n):null;case 19:return x(Ze),null;case 4:return Lt(),null;case 10:return _n(n.type),null;case 22:case 23:return ll(n),ta(),a!==null&&x(Si),a=n.flags,a&65536?(n.flags=a&-65537|128,n):null;case 24:return _n(De),null;case 25:return null;default:return null}}function Rh(a,n){switch(ot(n),n.tag){case 3:_n(De),Lt();break;case 26:case 27:case 5:oa(n);break;case 4:Lt();break;case 31:n.memoizedState!==null&&ll(n);break;case 13:ll(n);break;case 19:x(Ze);break;case 10:_n(n.type);break;case 22:case 23:ll(n),ta(),a!==null&&x(Si);break;case 24:_n(De)}}function Fl(a,n){try{var c=n.updateQueue,r=c!==null?c.lastEffect:null;if(r!==null){var y=r.next;c=y;do{if((c.tag&a)===a){r=void 0;var _=c.create,C=c.inst;r=_(),C.destroy=r}c=c.next}while(c!==y)}}catch(G){Gt(n,n.return,G)}}function kl(a,n,c){try{var r=n.updateQueue,y=r!==null?r.lastEffect:null;if(y!==null){var _=y.next;r=_;do{if((r.tag&a)===a){var C=r.inst,G=C.destroy;if(G!==void 0){C.destroy=void 0,y=n;var W=c,at=G;try{at()}catch(dt){Gt(y,W,dt)}}}r=r.next}while(r!==_)}}catch(dt){Gt(n,n.return,dt)}}function Vu(a){var n=a.updateQueue;if(n!==null){var c=a.stateNode;try{qi(n,c)}catch(r){Gt(a,a.return,r)}}}function lf(a,n,c){c.props=Qi(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(r){Gt(a,n,r)}}function Zu(a,n){try{var c=a.ref;if(c!==null){switch(a.tag){case 26:case 27:case 5:var r=es(a.stateNode);break;case 30:r=a.stateNode;break;default:r=a.stateNode}typeof c=="function"?a.refCleanup=c(r):c.current=r}}catch(y){Gt(a,n,y)}}function xa(a,n){var c=a.ref,r=a.refCleanup;if(c!==null)if(typeof r=="function")try{r()}catch(y){Gt(a,n,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(y){Gt(a,n,y)}else c.current=null}function Ji(a){var n=a.type,c=a.memoizedProps,r=a.stateNode;try{Zh(r,n,c,a)}catch(y){Gt(a,a.return,y)}}function ws(a,n,c){try{Kh(a.stateNode,a.type,c,n,a)}catch(r){Gt(a,a.return,r)}}function Ro(a){return a.tag===5||a.tag===3||(Tl?a.tag===26:!1)||(ua?a.tag===27&&lu(a.type):!1)||a.tag===4}function Mn(a){t:for(;;){for(;a.sibling===null;){if(a.return===null||Ro(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(ua&&a.tag===27&&lu(a.type)||a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function nf(a,n,c){var r=a.tag;if(r===5||r===6)a=a.stateNode,n?wh(c,a,n):ko(c,a);else if(r!==4&&(ua&&r===27&&lu(a.type)&&(c=a.stateNode,n=null),a=a.child,a!==null))for(nf(a,n,c),a=a.sibling;a!==null;)nf(a,n,c),a=a.sibling}function Ws(a,n,c){var r=a.tag;if(r===5||r===6)a=a.stateNode,n?Jh(c,a,n):Fo(c,a);else if(r!==4&&(ua&&r===27&&lu(a.type)&&(c=a.stateNode),a=a.child,a!==null))for(Ws(a,n,c),a=a.sibling;a!==null;)Ws(a,n,c),a=a.sibling}function Do(a,n,c){a=a.containerInfo;try{ar(a,c)}catch(r){Gt(n,n.return,r)}}function Dh(a){var n=a.stateNode,c=a.memoizedProps;try{aa(a.type,c,n,a)}catch(r){Gt(a,a.return,r)}}function d1(a,n){for(Ef(a.containerInfo),ke=n;ke!==null;)if(a=ke,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,ke=n;else for(;ke!==null;){a=ke;var c=a.alternate;switch(n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(var r=0;r<n.length;r++){var y=n[r];y.ref.impl=y.nextImpl}break;case 11:case 15:break;case 1:if((n&1024)!==0&&c!==null){n=void 0,r=a,y=c.memoizedProps,c=c.memoizedState;var _=r.stateNode;try{var C=Qi(r.type,y);n=_.getSnapshotBeforeUpdate(C,c),_.__reactInternalSnapshotBeforeUpdate=n}catch(G){Gt(r,r.return,G)}}break;case 3:(n&1024)!==0&&ee&&$o(a.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(o(163))}if(n=a.sibling,n!==null){n.return=a.return,ke=n;break}ke=a.return}}function Nh(a,n,c){var r=c.flags;switch(c.tag){case 0:case 11:case 15:Ua(a,c),r&4&&Fl(5,c);break;case 1:if(Ua(a,c),r&4)if(a=c.stateNode,n===null)try{a.componentDidMount()}catch(C){Gt(c,c.return,C)}else{var y=Qi(c.type,n.memoizedProps);n=n.memoizedState;try{a.componentDidUpdate(y,n,a.__reactInternalSnapshotBeforeUpdate)}catch(C){Gt(c,c.return,C)}}r&64&&Vu(c),r&512&&Zu(c,c.return);break;case 3:if(Ua(a,c),r&64&&(r=c.updateQueue,r!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=es(c.child.stateNode);break;case 1:a=c.child.stateNode}try{qi(r,a)}catch(C){Gt(c,c.return,C)}}break;case 27:ua&&n===null&&r&4&&Dh(c);case 26:case 5:if(Ua(a,c),n===null){if(r&4)Ji(c);else if(r&64){a=c.type,n=c.memoizedProps,y=c.stateNode;try{m0(y,a,n,c)}catch(C){Gt(c,c.return,C)}}}r&512&&Zu(c,c.return);break;case 12:Ua(a,c);break;case 31:Ua(a,c),r&4&&yl(a,c);break;case 13:Ua(a,c),r&4&&ks(a,c),r&64&&(r=c.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(c=m1.bind(null,c),Of(r,c))));break;case 22:if(r=c.memoizedState!==null||Ke,!r){n=n!==null&&n.memoizedState!==null||Je,y=Ke;var _=Je;Ke=r,(Je=n)&&!_?Sl(a,c,(c.subtreeFlags&8772)!==0):Ua(a,c),Ke=y,Je=_}break;case 30:break;default:Ua(a,c)}}function No(a){var n=a.alternate;n!==null&&(a.alternate=null,No(n)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(n=a.stateNode,n!==null&&bf(n)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function vl(a,n,c){for(c=c.child;c!==null;)Fs(a,n,c),c=c.sibling}function Fs(a,n,c){if(Pa&&typeof Pa.onCommitFiberUnmount=="function")try{Pa.onCommitFiberUnmount(uu,c)}catch{}switch(c.tag){case 26:if(Tl){Je||xa(c,n),vl(a,n,c),c.memoizedState?yi(c.memoizedState):c.stateNode&&mr(c.stateNode);break}case 27:if(ua){Je||xa(c,n);var r=Le,y=Pe;lu(c.type)&&(Le=c.stateNode,Pe=!1),vl(a,n,c),da(c.stateNode),Le=r,Pe=y;break}case 5:Je||xa(c,n);case 6:if(ee){if(r=Le,y=Pe,Le=null,vl(a,n,c),Le=r,Pe=y,Le!==null)if(Pe)try{Po(Le,c.stateNode)}catch(_){Gt(c,n,_)}else try{Wh(Le,c.stateNode)}catch(_){Gt(c,n,_)}}else vl(a,n,c);break;case 18:ee&&Le!==null&&(Pe?xf(Le,c.stateNode):fr(Le,c.stateNode));break;case 4:ee?(r=Le,y=Pe,Le=c.stateNode.containerInfo,Pe=!0,vl(a,n,c),Le=r,Pe=y):(cl&&Do(c.stateNode,c,tr()),vl(a,n,c));break;case 0:case 11:case 14:case 15:kl(2,c,n),Je||kl(4,c,n),vl(a,n,c);break;case 1:Je||(xa(c,n),r=c.stateNode,typeof r.componentWillUnmount=="function"&&lf(c,n,r)),vl(a,n,c);break;case 21:vl(a,n,c);break;case 22:Je=(r=Je)||c.memoizedState!==null,vl(a,n,c),Je=r;break;default:vl(a,n,c)}}function yl(a,n){if(xe&&n.memoizedState===null&&(a=n.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{p1(a)}catch(c){Gt(n,n.return,c)}}}function ks(a,n){if(xe&&n.memoizedState===null&&(a=n.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{S1(a)}catch(c){Gt(n,n.return,c)}}function pl(a){switch(a.tag){case 31:case 13:case 19:var n=a.stateNode;return n===null&&(n=a.stateNode=new Cr),n;case 22:return a=a.stateNode,n=a._retryCache,n===null&&(n=a._retryCache=new Cr),n;default:throw Error(o(435,a.tag))}}function On(a,n){var c=pl(a);n.forEach(function(r){if(!c.has(r)){c.add(r);var y=g1.bind(null,a,r);r.then(y,y)}})}function ra(a,n){var c=n.deletions;if(c!==null)for(var r=0;r<c.length;r++){var y=c[r],_=a,C=n;if(ee){var G=C;t:for(;G!==null;){switch(G.tag){case 27:if(ua){if(lu(G.type)){Le=G.stateNode,Pe=!1;break t}break}case 5:Le=G.stateNode,Pe=!1;break t;case 3:case 4:Le=G.stateNode.containerInfo,Pe=!0;break t}G=G.return}if(Le===null)throw Error(o(160));Fs(_,C,y),Le=null,Pe=!1}else Fs(_,C,y);_=y.alternate,_!==null&&(_.return=null),y.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Ps(n,a),n=n.sibling}function Ps(a,n){var c=a.alternate,r=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ra(n,a),ha(a),r&4&&(kl(3,a,a.return),Fl(3,a),kl(5,a,a.return));break;case 1:ra(n,a),ha(a),r&512&&(Je||c===null||xa(c,c.return)),r&64&&Ke&&(a=a.updateQueue,a!==null&&(r=a.callbacks,r!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?r:c.concat(r))));break;case 26:if(Tl){var y=ge;if(ra(n,a),ha(a),r&512&&(Je||c===null||xa(c,c.return)),r&4){r=c!==null?c.memoizedState:null;var _=a.memoizedState;c===null?_===null?a.stateNode===null?a.stateNode=_0(y,a.type,a.memoizedProps,a):dr(y,a.type,a.stateNode):a.stateNode=hr(y,_,a.memoizedProps):r!==_?(r===null?c.stateNode!==null&&mr(c.stateNode):yi(r),_===null?dr(y,a.type,a.stateNode):hr(y,_,a.memoizedProps)):_===null&&a.stateNode!==null&&ws(a,a.memoizedProps,c.memoizedProps)}break}case 27:if(ua){ra(n,a),ha(a),r&512&&(Je||c===null||xa(c,c.return)),c!==null&&r&4&&ws(a,a.memoizedProps,c.memoizedProps);break}case 5:if(ra(n,a),ha(a),r&512&&(Je||c===null||xa(c,c.return)),ee){if(a.flags&32){y=a.stateNode;try{Io(y)}catch(ut){Gt(a,a.return,ut)}}r&4&&a.stateNode!=null&&(y=a.memoizedProps,ws(a,y,c!==null?c.memoizedProps:y)),r&1024&&(cs=!0)}else cl&&a.alternate!==null&&(a.alternate.stateNode=a.stateNode);break;case 6:if(ra(n,a),ha(a),r&4&&ee){if(a.stateNode===null)throw Error(o(162));r=a.memoizedProps,c=c!==null?c.memoizedProps:r,y=a.stateNode;try{Vh(y,c,r)}catch(ut){Gt(a,a.return,ut)}}break;case 3:if(Tl?(E0(),y=ge,ge=fc(n.containerInfo),ra(n,a),ge=y):ra(n,a),ha(a),r&4){if(ee&&xe&&c!==null&&c.memoizedState.isDehydrated)try{g0(n.containerInfo)}catch(ut){Gt(a,a.return,ut)}if(cl){r=n.containerInfo,c=n.pendingChildren;try{ar(r,c)}catch(ut){Gt(a,a.return,ut)}}}cs&&(cs=!1,uf(a));break;case 4:Tl?(c=ge,ge=fc(a.stateNode.containerInfo),ra(n,a),ha(a),ge=c):(ra(n,a),ha(a)),r&4&&cl&&Do(a.stateNode,a,a.stateNode.pendingChildren);break;case 12:ra(n,a),ha(a);break;case 31:ra(n,a),ha(a),r&4&&(r=a.updateQueue,r!==null&&(a.updateQueue=null,On(a,r)));break;case 13:ra(n,a),ha(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Sc=Ra()),r&4&&(r=a.updateQueue,r!==null&&(a.updateQueue=null,On(a,r)));break;case 22:y=a.memoizedState!==null;var C=c!==null&&c.memoizedState!==null,G=Ke,W=Je;if(Ke=G||y,Je=W||C,ra(n,a),Je=W,Ke=G,ha(a),r&8192&&(n=a.stateNode,n._visibility=y?n._visibility&-2:n._visibility|1,y&&(c===null||C||Ke||Je||ni(a)),ee)){t:if(c=null,ee)for(n=a;;){if(n.tag===5||Tl&&n.tag===26){if(c===null){C=c=n;try{_=C.stateNode,y?v1(_):kh(C.stateNode,C.memoizedProps)}catch(ut){Gt(C,C.return,ut)}}}else if(n.tag===6){if(c===null){C=n;try{var at=C.stateNode;y?Fh(at):Ph(at,C.memoizedProps)}catch(ut){Gt(C,C.return,ut)}}}else if(n.tag===18){if(c===null){C=n;try{var dt=C.stateNode;y?y0(dt):p0(C.stateNode)}catch(ut){Gt(C,C.return,ut)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===a)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break t;for(;n.sibling===null;){if(n.return===null||n.return===a)break t;c===n&&(c=null),n=n.return}c===n&&(c=null),n.sibling.return=n.return,n=n.sibling}}r&4&&(r=a.updateQueue,r!==null&&(c=r.retryQueue,c!==null&&(r.retryQueue=null,On(a,c))));break;case 19:ra(n,a),ha(a),r&4&&(r=a.updateQueue,r!==null&&(a.updateQueue=null,On(a,r)));break;case 30:break;case 21:break;default:ra(n,a),ha(a)}}function ha(a){var n=a.flags;if(n&2){try{for(var c,r=a.return;r!==null;){if(Ro(r)){c=r;break}r=r.return}if(ee){if(c==null)throw Error(o(160));switch(c.tag){case 27:if(ua){var y=c.stateNode,_=Mn(a);Ws(a,_,y);break}case 5:var C=c.stateNode;c.flags&32&&(Io(C),c.flags&=-33);var G=Mn(a);Ws(a,G,C);break;case 3:case 4:var W=c.stateNode.containerInfo,at=Mn(a);nf(a,at,W);break;default:throw Error(o(161))}}}catch(dt){Gt(a,a.return,dt)}a.flags&=-3}n&4096&&(a.flags&=-4097)}function uf(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var n=a;uf(n),n.tag===5&&n.flags&1024&&Ko(n.stateNode),a=a.sibling}}function Ua(a,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Nh(a,n.alternate,n),n=n.sibling}function ni(a){for(a=a.child;a!==null;){var n=a;switch(n.tag){case 0:case 11:case 14:case 15:kl(4,n,n.return),ni(n);break;case 1:xa(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&lf(n,n.return,c),ni(n);break;case 27:ua&&da(n.stateNode);case 26:case 5:xa(n,n.return),ni(n);break;case 22:n.memoizedState===null&&ni(n);break;case 30:ni(n);break;default:ni(n)}a=a.sibling}}function Sl(a,n,c){for(c=c&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var r=n.alternate,y=a,_=n,C=_.flags;switch(_.tag){case 0:case 11:case 15:Sl(y,_,c),Fl(4,_);break;case 1:if(Sl(y,_,c),r=_,y=r.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(at){Gt(r,r.return,at)}if(r=_,y=r.updateQueue,y!==null){var G=r.stateNode;try{var W=y.shared.hiddenCallbacks;if(W!==null)for(y.shared.hiddenCallbacks=null,y=0;y<W.length;y++)Yi(W[y],G)}catch(at){Gt(r,r.return,at)}}c&&C&64&&Vu(_),Zu(_,_.return);break;case 27:ua&&Dh(_);case 26:case 5:Sl(y,_,c),c&&r===null&&C&4&&Ji(_),Zu(_,_.return);break;case 12:Sl(y,_,c);break;case 31:Sl(y,_,c),c&&C&4&&yl(y,_);break;case 13:Sl(y,_,c),c&&C&4&&ks(y,_);break;case 22:_.memoizedState===null&&Sl(y,_,c),Zu(_,_.return);break;case 30:break;default:Sl(y,_,c)}n=n.sibling}}function ii(a,n){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&bu(c))}function Go(a,n){a=null,n.alternate!==null&&(a=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==a&&(n.refCount++,a!=null&&bu(a))}function Be(a,n,c,r){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)sf(a,n,c,r),n=n.sibling}function sf(a,n,c,r){var y=n.flags;switch(n.tag){case 0:case 11:case 15:Be(a,n,c,r),y&2048&&Fl(9,n);break;case 1:Be(a,n,c,r);break;case 3:Be(a,n,c,r),y&2048&&(a=null,n.alternate!==null&&(a=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==a&&(n.refCount++,a!=null&&bu(a)));break;case 12:if(y&2048){Be(a,n,c,r),a=n.stateNode;try{var _=n.memoizedProps,C=_.id,G=_.onPostCommit;typeof G=="function"&&G(C,n.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(W){Gt(n,n.return,W)}}else Be(a,n,c,r);break;case 31:Be(a,n,c,r);break;case 13:Be(a,n,c,r);break;case 23:break;case 22:_=n.stateNode,C=n.alternate,n.memoizedState!==null?_._visibility&2?Be(a,n,c,r):Ku(a,n):_._visibility&2?Be(a,n,c,r):(_._visibility|=2,Ka(a,n,c,r,(n.subtreeFlags&10256)!==0||!1)),y&2048&&ii(C,n);break;case 24:Be(a,n,c,r),y&2048&&Go(n.alternate,n);break;default:Be(a,n,c,r)}}function Ka(a,n,c,r,y){for(y=y&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var _=a,C=n,G=c,W=r,at=C.flags;switch(C.tag){case 0:case 11:case 15:Ka(_,C,G,W,y),Fl(8,C);break;case 23:break;case 22:var dt=C.stateNode;C.memoizedState!==null?dt._visibility&2?Ka(_,C,G,W,y):Ku(_,C):(dt._visibility|=2,Ka(_,C,G,W,y)),y&&at&2048&&ii(C.alternate,C);break;case 24:Ka(_,C,G,W,y),y&&at&2048&&Go(C.alternate,C);break;default:Ka(_,C,G,W,y)}n=n.sibling}}function Ku(a,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var c=a,r=n,y=r.flags;switch(r.tag){case 22:Ku(c,r),y&2048&&ii(r.alternate,r);break;case 24:Ku(c,r),y&2048&&Go(r.alternate,r);break;default:Ku(c,r)}n=n.sibling}}function Pl(a,n,c){if(a.subtreeFlags&hl)for(a=a.child;a!==null;)ui(a,n,c),a=a.sibling}function ui(a,n,c){switch(a.tag){case 26:if(Pl(a,n,c),a.flags&hl)if(a.memoizedState!==null)b0(c,ge,a.memoizedState,a.memoizedProps);else{var r=a.stateNode,y=a.type;a=a.memoizedProps,((n&335544128)===n||Vo(y,a))&&Tf(c,r,y,a)}break;case 5:Pl(a,n,c),a.flags&hl&&(r=a.stateNode,y=a.type,a=a.memoizedProps,((n&335544128)===n||Vo(y,a))&&Tf(c,r,y,a));break;case 3:case 4:Tl?(r=ge,ge=fc(a.stateNode.containerInfo),Pl(a,n,c),ge=r):Pl(a,n,c);break;case 22:a.memoizedState===null&&(r=a.alternate,r!==null&&r.memoizedState!==null?(r=hl,hl=16777216,Pl(a,n,c),hl=r):Pl(a,n,c));break;default:Pl(a,n,c)}}function cf(a){var n=a.alternate;if(n!==null&&(a=n.child,a!==null)){n.child=null;do n=a.sibling,a.sibling=null,a=n;while(a!==null)}}function Ju(a){var n=a.deletions;if((a.flags&16)!==0){if(n!==null)for(var c=0;c<n.length;c++){var r=n[c];ke=r,il(r,a)}cf(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ff(a),a=a.sibling}function ff(a){switch(a.tag){case 0:case 11:case 15:Ju(a),a.flags&2048&&kl(9,a,a.return);break;case 3:Ju(a);break;case 12:Ju(a);break;case 22:var n=a.stateNode;a.memoizedState!==null&&n._visibility&2&&(a.return===null||a.return.tag!==13)?(n._visibility&=-3,Is(a)):Ju(a);break;default:Ju(a)}}function Is(a){var n=a.deletions;if((a.flags&16)!==0){if(n!==null)for(var c=0;c<n.length;c++){var r=n[c];ke=r,il(r,a)}cf(a)}for(a=a.child;a!==null;){switch(n=a,n.tag){case 0:case 11:case 15:kl(8,n,n.return),Is(n);break;case 22:c=n.stateNode,c._visibility&2&&(c._visibility&=-3,Is(n));break;default:Is(n)}a=a.sibling}}function il(a,n){for(;ke!==null;){var c=ke;switch(c.tag){case 0:case 11:case 15:kl(8,c,n);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var r=c.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:bu(c.memoizedState.cache)}if(r=c.child,r!==null)r.return=c,ke=r;else t:for(c=a;ke!==null;){r=ke;var y=r.sibling,_=r.return;if(No(r),r===c){ke=null;break t}if(y!==null){y.return=_,ke=y;break t}ke=_}}}function si(a){var n=jt(a);if(n!=null){if(typeof n.memoizedProps["data-testname"]!="string")throw Error(o(364));return n}if(a=We(a),a===null)throw Error(o(362));return a.stateNode.current}function ci(a,n){var c=a.tag;switch(n.$$typeof){case Dl:if(a.type===n.value)return!0;break;case os:t:{for(n=n.value,a=[a,0],c=0;c<a.length;){var r=a[c++],y=r.tag,_=a[c++],C=n[_];if(y!==5&&y!==26&&y!==27||!gi(r)){for(;C!=null&&ci(r,C);)_++,C=n[_];if(_===n.length){n=!0;break t}else for(r=r.child;r!==null;)a.push(r,_),r=r.sibling}}n=!1}return n;case rs:if((c===5||c===26||c===27)&&Wo(a.stateNode,n.value))return!0;break;case Ti:if((c===5||c===6||c===26||c===27)&&(a=sc(a),a!==null&&0<=a.indexOf(n.value)))return!0;break;case yc:if((c===5||c===26||c===27)&&(a=a.memoizedProps["data-testname"],typeof a=="string"&&a.toLowerCase()===n.value.toLowerCase()))return!0;break;default:throw Error(o(365))}return!1}function wu(a){switch(a.$$typeof){case Dl:return"<"+(M(a.value)||"Unknown")+">";case os:return":has("+(wu(a)||"")+")";case rs:return'[role="'+a.value+'"]';case Ti:return'"'+a.value+'"';case yc:return'[data-testname="'+a.value+'"]';default:throw Error(o(365))}}function Wu(a,n){var c=[];a=[a,0];for(var r=0;r<a.length;){var y=a[r++],_=y.tag,C=a[r++],G=n[C];if(_!==5&&_!==26&&_!==27||!gi(y)){for(;G!=null&&ci(y,G);)C++,G=n[C];if(C===n.length)c.push(y);else for(y=y.child;y!==null;)a.push(y,C),y=y.sibling}}return c}function Ja(a,n){if(!ia)throw Error(o(363));a=si(a),a=Wu(a,n),n=[],a=Array.from(a);for(var c=0;c<a.length;){var r=a[c++],y=r.tag;if(y===5||y===26||y===27)gi(r)||n.push(r.stateNode);else for(r=r.child;r!==null;)a.push(r),r=r.sibling}return n}function Oe(){return(Ft&2)!==0&&$t!==0?$t&-$t:Ot.T!==null?lo():ls()}function xn(){if(Qa===0)if(($t&536870912)===0||It){var a=iu;iu<<=1,(iu&3932160)===0&&(iu=262144),Qa=a}else Qa=536870912;return a=Ia.current,a!==null&&(a.flags|=32),Qa}function Ye(a,n,c){(a===wt&&(ve===2||ve===9)||a.cancelPendingCommit!==null)&&(Ve(a,0),$l(a,$t,Qa,!1)),lt(a,c),((Ft&2)===0||a!==wt)&&(a===wt&&((Ft&2)===0&&(zi|=c),je===4&&$l(a,$t,Qa,!1)),Zl(a))}function Ul(a,n,c){if((Ft&6)!==0)throw Error(o(327));var r=!c&&(n&127)===0&&(n&a.expiredLanes)===0||j(a,n),y=r?Uh(a,n):tn(a,n,!0),_=r;do{if(y===0){Ci&&!r&&$l(a,n,0,!1);break}else{if(c=a.current.alternate,_&&!Gh(c)){y=tn(a,n,!1),_=!1;continue}if(y===2){if(_=n,a.errorRecoveryDisabledLanes&_)var C=0;else C=a.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){n=C;t:{var G=a;y=pc;var W=xe&&G.current.memoizedState.isDehydrated;if(W&&(Ve(G,C).flags|=256),C=tn(G,C,!1),C!==2){if(Ai&&!W){G.errorRecoveryDisabledLanes|=_,zi|=_,y=4;break t}_=$a,$a=y,_!==null&&($a===null?$a=_:$a.push.apply($a,_))}y=C}if(_=!1,y!==2)continue}}if(y===1){Ve(a,0),$l(a,n,0,!0);break}t:{switch(r=a,_=y,_){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:$l(r,n,Qa,!Xl);break t;case 2:$a=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(y=Sc+300-Ra(),10<y)){if($l(r,n,Qa,!Xl),Q(r,0,!0)!==0)break t;gn=n,r.timeoutHandle=Qo(Il.bind(null,r,c,$a,_c,Kf,n,Qa,zi,ds,Xl,_,"Throttled",-0,0),y);break t}Il(r,c,$a,_c,Kf,n,Qa,zi,ds,Xl,_,null,-0,0)}}break}while(!0);Zl(a)}function Il(a,n,c,r,y,_,C,G,W,at,dt,ut,yt,Xt){if(a.timeoutHandle=Fa,ut=n.subtreeFlags,ut&8192||(ut&16785408)===16785408){ut=Zo(),ui(n,_,ut);var va=(_&62914560)===_?Sc-Ra():(_&4194048)===_?hu-Ra():0;if(va=Qh(ut,va),va!==null){gn=_,a.cancelPendingCommit=va(an.bind(null,a,n,_,c,r,y,C,G,W,dt,ut,null,yt,Xt)),$l(a,_,C,!at);return}}an(a,n,_,c,r,y,C,G,W)}function Gh(a){for(var n=a;;){var c=n.tag;if((c===0||c===11||c===15)&&n.flags&16384&&(c=n.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var r=0;r<c.length;r++){var y=c[r],_=y.getSnapshot;y=y.value;try{if(!Fe(_(),y))return!1}catch{return!1}}if(c=n.child,n.subtreeFlags&16384&&c!==null)c.return=n,n=c;else{if(n===a)break;for(;n.sibling===null;){if(n.return===null||n.return===a)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function $l(a,n,c,r){n&=~hs,n&=~zi,a.suspendedLanes|=n,a.pingedLanes&=~n,r&&(a.warmLanes|=n),r=a.expirationTimes;for(var y=n;0<y;){var _=31-ka(y),C=1<<_;r[_]=-1,y&=~C}c!==0&&rt(a,c,n)}function of(){return(Ft&6)===0?(Gi(0),!1):!0}function rf(){if(kt!==null){if(ve===0)var a=kt.return;else a=kt,Yl=be=null,Bs(a),_i=null,su=0,a=kt;for(;a!==null;)Rh(a.alternate,a),a=a.return;kt=null}}function Ve(a,n){var c=a.timeoutHandle;c!==Fa&&(a.timeoutHandle=Fa,jh(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),gn=0,rf(),wt=a,kt=c=sl(a.current,null),$t=n,ve=0,la=null,Xl=!1,Ci=j(a,n),Ai=!1,ds=Qa=hs=zi=jn=je=0,$a=pc=null,Kf=!1,(n&8)!==0&&(n|=n&32);var r=a.entangledLanes;if(r!==0)for(a=a.entanglements,r&=n;0<r;){var y=31-ka(r),_=1<<y;n|=a[y],r&=~_}return mn=n,Ou(),c}function Ee(a,n){Qt=null,Ot.H=rl,n===fa||n===xl?(n=Gc(),ve=3):n===Vf?(n=Gc(),ve=4):ve=n===ja?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,la=n,kt===null&&(je=1,$c(a,_t(n,a.current)))}function te(){var a=Ia.current;return a===null?!0:($t&4194048)===$t?La===null:($t&62914560)===$t||($t&536870912)!==0?a===La:!1}function Rn(){var a=Ot.H;return Ot.H=rl,a===null?rl:a}function ul(){var a=Ot.A;return Ot.A=fs,a}function Fu(){je=4,Xl||($t&4194048)!==$t&&Ia.current!==null||(Ci=!0),(jn&134217727)===0&&(zi&134217727)===0||wt===null||$l(wt,$t,Qa,!1)}function tn(a,n,c){var r=Ft;Ft|=2;var y=Rn(),_=ul();(wt!==a||$t!==n)&&(_c=null,Ve(a,n)),n=!1;var C=je;t:do try{if(ve!==0&&kt!==null){var G=kt,W=la;switch(ve){case 8:rf(),C=6;break t;case 3:case 2:case 9:case 6:Ia.current===null&&(n=!0);var at=ve;if(ve=0,la=null,en(a,G,W,at),c&&Ci){C=0;break t}break;default:at=ve,ve=0,la=null,en(a,G,W,at)}}Hh(),C=je;break}catch(dt){Ee(a,dt)}while(!0);return n&&a.shellSuspendCounter++,Yl=be=null,Ft=r,Ot.H=y,Ot.A=_,kt===null&&(wt=null,$t=0,Ou()),C}function Hh(){for(;kt!==null;)fi(kt)}function Uh(a,n){var c=Ft;Ft|=2;var r=Rn(),y=ul();wt!==a||$t!==n?(_c=null,Mi=Ra()+500,Ve(a,n)):Ci=j(a,n);t:do try{if(ve!==0&&kt!==null){n=kt;var _=la;e:switch(ve){case 1:ve=0,la=null,en(a,n,_,1);break;case 2:case 9:if(Au(_)){ve=0,la=null,hf(n);break}n=function(){ve!==2&&ve!==9||wt!==a||(ve=7),Zl(a)},_.then(n,n);break t;case 3:ve=7;break t;case 4:ve=5;break t;case 7:Au(_)?(ve=0,la=null,hf(n)):(ve=0,la=null,en(a,n,_,7));break;case 5:var C=null;switch(kt.tag){case 26:C=kt.memoizedState;case 5:case 27:var G=kt,W=G.type,at=G.pendingProps;if(C?vr(C):qe(G.stateNode,W,at)){ve=0,la=null;var dt=G.sibling;if(dt!==null)kt=dt;else{var ut=G.return;ut!==null?(kt=ut,Pu(ut)):kt=null}break e}}ve=0,la=null,en(a,n,_,5);break;case 6:ve=0,la=null,en(a,n,_,6);break;case 8:rf(),je=6;break t;default:throw Error(o(462))}}ku();break}catch(yt){Ee(a,yt)}while(!0);return Yl=be=null,Ot.H=r,Ot.A=y,Ft=c,kt!==null?0:(wt=null,$t=0,Ou(),je)}function ku(){for(;kt!==null&&!C0();)fi(kt)}function fi(a){var n=zo(a.alternate,a,mn);a.memoizedProps=a.pendingProps,n===null?Pu(a):kt=n}function hf(a){var n=a,c=n.alternate;switch(n.tag){case 15:case 0:n=_o(c,n,n.pendingProps,n.type,void 0,$t);break;case 11:n=_o(c,n,n.pendingProps,n.type.render,n.ref,$t);break;case 5:Bs(n);default:Rh(c,n),n=kt=gf(n,mn),n=zo(c,n,mn)}a.memoizedProps=a.pendingProps,n===null?Pu(a):kt=n}function en(a,n,c,r){Yl=be=null,Bs(n),_i=null,su=0;var y=n.return;try{if(h1(a,y,n,c,$t)){je=1,$c(a,_t(c,a.current)),kt=null;return}}catch(_){if(y!==null)throw kt=y,_;je=1,$c(a,_t(c,a.current)),kt=null;return}n.flags&32768?(It||r===1?a=!0:Ci||($t&536870912)!==0?a=!1:(Xl=a=!0,(r===2||r===9||r===3||r===6)&&(r=Ia.current,r!==null&&r.tag===13&&(r.flags|=16384))),oi(n,a)):Pu(n)}function Pu(a){var n=a;do{if((n.flags&32768)!==0){oi(n,Xl);return}a=n.return;var c=xh(n.alternate,n,mn);if(c!==null){kt=c;return}if(n=n.sibling,n!==null){kt=n;return}kt=n=a}while(n!==null);je===0&&(je=5)}function oi(a,n){do{var c=xo(a.alternate,a);if(c!==null){c.flags&=32767,kt=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!n&&(a=a.sibling,a!==null)){kt=a;return}kt=a=c}while(a!==null);je=6,kt=null}function an(a,n,c,r,y,_,C,G,W){a.cancelPendingCommit=null;do nn();while(na!==0);if((Ft&6)!==0)throw Error(o(327));if(n!==null){if(n===a.current)throw Error(o(177));if(_=n.lanes|n.childLanes,_|=cu,st(a,c,_,C,G,W),a===wt&&(kt=wt=null,$t=0),du=n,Vn=a,gn=c,ms=_,Jf=y,Ar=r,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,ea(rc,function(){return $s(),null})):(a.callbackNode=null,a.callbackPriority=0),r=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||r){r=Ot.T,Ot.T=null,y=bl(),Pt(2),C=Ft,Ft|=4;try{d1(a,n,c)}finally{Ft=C,Pt(y),Ot.T=r}}na=1,Dn(),ln(),df()}}function Dn(){if(na===1){na=0;var a=Vn,n=du,c=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||c){c=Ot.T,Ot.T=null;var r=bl();Pt(2);var y=Ft;Ft|=4;try{Ps(n,a),Lh(a.containerInfo)}finally{Ft=y,Pt(r),Ot.T=c}}a.current=n,na=2}}function ln(){if(na===2){na=0;var a=Vn,n=du,c=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||c){c=Ot.T,Ot.T=null;var r=bl();Pt(2);var y=Ft;Ft|=4;try{Nh(a,n.alternate,n)}finally{Ft=y,Pt(r),Ot.T=c}}na=3}}function df(){if(na===4||na===3){na=0,pr();var a=Vn,n=du,c=gn,r=Ar;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?na=5:(na=0,du=Vn=null,mf(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(Qn=null),pt(c),n=n.stateNode,Pa&&typeof Pa.onCommitFiberRoot=="function")try{Pa.onCommitFiberRoot(uu,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=Ot.T,y=bl(),Pt(2),Ot.T=null;try{for(var _=a.onRecoverableError,C=0;C<r.length;C++){var G=r[C];_(G.value,{componentStack:G.stack})}}finally{Ot.T=n,Pt(y)}}(gn&3)!==0&&nn(),Zl(a),y=a.pendingLanes,(c&261930)!==0&&(y&42)!==0?a===Ec?se++:(se=0,Ec=a):se=0,xe&&cc(),Gi(0)}}function mf(a,n){(a.pooledCacheLanes&=n)===0&&(n=a.pooledCache,n!=null&&(a.pooledCache=null,bu(n)))}function nn(){return Dn(),ln(),df(),$s()}function $s(){if(na!==5)return!1;var a=Vn,n=ms;ms=0;var c=pt(gn),r=32>c?32:c;c=Ot.T;var y=bl();try{Pt(r),Ot.T=null,r=Jf,Jf=null;var _=Vn,C=gn;if(na=0,du=Vn=null,gn=0,(Ft&6)!==0)throw Error(o(331));var G=Ft;if(Ft|=4,ff(_.current),sf(_,_.current,C,r),Ft=G,Gi(0,!1),Pa&&typeof Pa.onPostCommitFiberRoot=="function")try{Pa.onPostCommitFiberRoot(uu,_)}catch{}return!0}finally{Pt(y),Ot.T=c,mf(a,n)}}function ri(a,n,c){n=_t(c,n),n=po(a.stateNode,n,2),a=In(a,n,2),a!==null&&(lt(a,2),Zl(a))}function Gt(a,n,c){if(a.tag===3)ri(a,a,c);else for(;n!==null;){if(n.tag===3){ri(n,a,c);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qn===null||!Qn.has(r))){a=_t(c,a),c=yh(2),r=In(n,c,2),r!==null&&(ph(c,r,n,a),lt(r,2),Zl(r));break}}n=n.return}}function Iu(a,n,c){var r=a.pingCache;if(r===null){r=a.pingCache=new dl;var y=new Set;r.set(n,y)}else y=r.get(n),y===void 0&&(y=new Set,r.set(n,y));y.has(c)||(Ai=!0,y.add(c),a=Bh.bind(null,a,n,c),n.then(a,a))}function Bh(a,n,c){var r=a.pingCache;r!==null&&r.delete(n),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,wt===a&&($t&c)===c&&(je===4||je===3&&($t&62914560)===$t&&300>Ra()-Sc?(Ft&2)===0&&Ve(a,0):hs|=c,ds===$t&&(ds=0)),Zl(a)}function Yh(a,n){n===0&&(n=P()),a=kn(a,n),a!==null&&(lt(a,n),Zl(a))}function m1(a){var n=a.memoizedState,c=0;n!==null&&(c=n.retryLane),Yh(a,c)}function g1(a,n){var c=0;switch(a.tag){case 31:case 13:var r=a.stateNode,y=a.memoizedState;y!==null&&(c=y.retryLane);break;case 19:r=a.stateNode;break;case 22:r=a.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(n),Yh(a,c)}function ea(a,n){return oc(a,n)}function Ho(a,n,c,r){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wi(a){return a=a.prototype,!(!a||!a.isReactComponent)}function sl(a,n){var c=a.alternate;return c===null?(c=s(a.tag,n,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=n,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&65011712,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,n=a.dependencies,c.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function gf(a,n){a.flags&=65011714;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=n,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,n=c.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),a}function Nn(a,n,c,r,y,_){var C=0;if(r=a,typeof a=="function")wi(a)&&(C=1);else if(typeof a=="string")C=Tl&&ua?Rf(a,c,ma.current)?26:yr(a)?27:5:Tl?Rf(a,c,ma.current)?26:5:ua&&yr(a)?27:5;else t:switch(a){case lc:return a=s(31,c,n,y),a.elementType=lc,a.lanes=_,a;case Pi:return _l(c.children,y,_,n);case Ii:C=8,y|=24;break;case $i:return a=s(12,c,n,y|2),a.elementType=$i,a.lanes=_,a;case Sf:return a=s(13,c,n,y),a.elementType=Sf,a.lanes=_,a;case Gn:return a=s(19,c,n,y),a.elementType=Gn,a.lanes=_,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case El:C=10;break t;case ac:C=9;break t;case $u:C=11;break t;case _f:C=14;break t;case Ba:C=16,r=null;break t}C=29,c=Error(o(130,a===null?"null":typeof a,"")),r=null}return n=s(C,c,n,y),n.elementType=a,n.type=r,n.lanes=_,n}function _l(a,n,c,r){return a=s(7,a,r,n),a.lanes=c,a}function Uo(a,n,c){return a=s(6,a,null,n),a.lanes=c,a}function Bo(a){var n=s(18,null,null,0);return n.stateNode=a,n}function Yo(a,n,c){return n=s(4,a.children!==null?a.children:[],a.key,n),n.lanes=c,n.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},n}function qh(a,n,c,r,y,_,C,G,W){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Fa,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.hiddenUpdates=gt(null),this.identifierPrefix=r,this.onUncaughtError=y,this.onCaughtError=_,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function hi(a,n,c,r,y,_,C,G,W,at,dt,ut){return a=new qh(a,n,c,C,W,at,dt,ut,G),n=1,_===!0&&(n|=24),_=s(3,null,null,n),a.current=_,_.stateNode=a,n=Dc(),n.refCount++,a.pooledCache=n,n.refCount++,_.memoizedState={element:r,isDehydrated:c,cache:n},za(_),a}function vf(a){return a?(a=sn,a):sn}function tc(a){var n=a._reactInternals;if(n===void 0)throw typeof a.render=="function"?Error(o(188)):(a=Object.keys(a).join(","),Error(o(268,a)));return a=p(n),a=a!==null?S(a):null,a===null?null:es(a.stateNode)}function qo(a,n,c,r,y,_){y=vf(y),r.context===null?r.context=y:r.pendingContext=y,r=Kl(n),r.payload={element:c},_=_===void 0?null:_,_!==null&&(r.callback=_),c=In(a,r,n),c!==null&&(Ye(c,a,n),Gs(c,a,n))}function Wi(a,n){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<n?c:n}}function ec(a,n){Wi(a,n),(a=a.alternate)&&Wi(a,n)}var Kt={},yf=$r(),wa=_d(),pf=Object.assign,Fi=Symbol.for("react.element"),un=Symbol.for("react.transitional.element"),ki=Symbol.for("react.portal"),Pi=Symbol.for("react.fragment"),Ii=Symbol.for("react.strict_mode"),$i=Symbol.for("react.profiler"),ac=Symbol.for("react.consumer"),El=Symbol.for("react.context"),$u=Symbol.for("react.forward_ref"),Sf=Symbol.for("react.suspense"),Gn=Symbol.for("react.suspense_list"),_f=Symbol.for("react.memo"),Ba=Symbol.for("react.lazy"),lc=Symbol.for("react.activity"),Xo=Symbol.for("react.memo_cache_sentinel"),Hn=Symbol.iterator,di=Symbol.for("react.client.reference"),mi=Array.isArray,Ot=yf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Lo=l.rendererVersion,nc=l.rendererPackageName,ts=l.extraDevToolsConfig,es=l.getPublicInstance,Xh=l.getRootHostContext,as=l.getChildHostContext,Ef=l.prepareForCommit,Lh=l.resetAfterCommit,jo=l.createInstance;l.cloneMutableInstance;var ic=l.appendInitialChild,Wa=l.finalizeInitialChildren,Ya=l.shouldSetTextContent,Un=l.createTextInstance;l.cloneMutableTextInstance;var Qo=l.scheduleTimeout,jh=l.cancelTimeout,Fa=l.noTimeout,we=l.isPrimaryRenderer;l.warnsIfNotActing;var ee=l.supportsMutation,cl=l.supportsPersistence,xe=l.supportsHydration,jt=l.getInstanceFromNode;l.beforeActiveInstanceBlur;var pe=l.preparePortalMount;l.prepareScopeUpdate,l.getInstanceFromScope;var Pt=l.setCurrentUpdatePriority,bl=l.getCurrentUpdatePriority,ls=l.resolveUpdatePriority;l.trackSchedulerEvent,l.resolveEventType,l.resolveEventTimeStamp;var tu=l.shouldAttemptEagerTransition,bf=l.detachDeletedInstance;l.requestPostPaintCallback;var uc=l.maySuspendCommit,ns=l.maySuspendCommitOnUpdate,Vo=l.maySuspendCommitInSyncRender,qe=l.preloadInstance,Zo=l.startSuspendingCommit,Tf=l.suspendInstance;l.suspendOnActiveViewTransition;var Qh=l.waitForCommitToBeReady;l.getSuspendedCommitReason;var eu=l.NotPendingTransition,au=l.HostTransitionContext,Ko=l.resetFormInstance;l.bindToConsole;var Jo=l.supportsMicrotasks,wo=l.scheduleMicrotask,ia=l.supportsTestSelectors,We=l.findFiberRoot,Cf=l.getBoundingRect,sc=l.getTextContent,gi=l.isHiddenSubtree,Wo=l.matchAccessibilityRole,Bn=l.setFocusIfFocusable,Af=l.setupIntersectionObserver,Fo=l.appendChild,ko=l.appendChildToContainer,Vh=l.commitTextUpdate,Zh=l.commitMount,Kh=l.commitUpdate,Jh=l.insertBefore,wh=l.insertInContainerBefore,Wh=l.removeChild,Po=l.removeChildFromContainer,Io=l.resetTextContent,v1=l.hideInstance,Fh=l.hideTextInstance,kh=l.unhideInstance,Ph=l.unhideTextInstance;l.cancelViewTransitionName,l.cancelRootViewTransitionName,l.restoreRootViewTransitionName,l.cloneRootViewTransitionContainer,l.removeRootViewTransitionClone,l.measureClonedInstance,l.hasInstanceChanged,l.hasInstanceAffectedParent,l.startViewTransition,l.startGestureTransition,l.stopViewTransition,l.getCurrentGestureOffset,l.createViewTransitionInstance;var $o=l.clearContainer;l.createFragmentInstance,l.updateFragmentInstanceFiber,l.commitNewChildToFragmentInstance,l.deleteChildFromFragmentInstance;var Ih=l.cloneInstance,tr=l.createContainerChildSet,er=l.appendChildToContainerChildSet,$h=l.finalizeContainerChildren,ar=l.replaceContainerChildren,t0=l.cloneHiddenInstance,lr=l.cloneHiddenTextInstance,vi=l.isSuspenseInstancePending,zf=l.isSuspenseInstanceFallback,Mf=l.getSuspenseInstanceFallbackErrorDetails,Of=l.registerSuspenseInstanceRetry,e0=l.canHydrateFormStateMarker,nr=l.isFormStateMarkerMatching,a0=l.getNextHydratableSibling,l0=l.getNextHydratableSiblingAfterSingleton,n0=l.getFirstHydratableChild,i0=l.getFirstHydratableChildWithinContainer,u0=l.getFirstHydratableChildWithinActivityInstance,s0=l.getFirstHydratableChildWithinSuspenseInstance,ir=l.getFirstHydratableChildWithinSingleton,c0=l.canHydrateInstance,f0=l.canHydrateTextInstance,ur=l.canHydrateActivityInstance,o0=l.canHydrateSuspenseInstance,r0=l.hydrateInstance,y1=l.hydrateTextInstance,sr=l.hydrateActivityInstance,h0=l.hydrateSuspenseInstance,d0=l.getNextHydratableInstanceAfterActivityInstance,cr=l.getNextHydratableInstanceAfterSuspenseInstance,m0=l.commitHydratedInstance,g0=l.commitHydratedContainer,p1=l.commitHydratedActivityInstance,S1=l.commitHydratedSuspenseInstance,v0=l.finalizeHydratedChildren,cc=l.flushHydrationEvents;l.clearActivityBoundary;var fr=l.clearSuspenseBoundary;l.clearActivityBoundaryFromContainer;var xf=l.clearSuspenseBoundaryFromContainer,y0=l.hideDehydratedBoundary,p0=l.unhideDehydratedBoundary,is=l.shouldDeleteUnhydratedTailInstances;l.diffHydratedPropsForDevWarnings,l.diffHydratedTextForDevWarnings,l.describeHydratableInstanceForDevWarnings;var S0=l.validateHydratableInstance,or=l.validateHydratableTextInstance,Tl=l.supportsResources,Rf=l.isHostHoistableType,fc=l.getHoistableRoot,rr=l.getResource,hr=l.acquireResource,yi=l.releaseResource,_0=l.hydrateHoistable,dr=l.mountHoistable,mr=l.unmountHoistable,Df=l.createHoistableInstance,E0=l.prepareToCommitHoistables,gr=l.mayResourceSuspendCommit,vr=l.preloadResource,b0=l.suspendResource,ua=l.supportsSingletons,Nf=l.resolveSingletonInstance,aa=l.acquireSingletonInstance,da=l.releaseSingletonInstance,yr=l.isHostSingletonType,lu=l.isSingletonScope,Gf=[],nu=-1,sn={},ka=Math.clz32?Math.clz32:L,Hf=Math.log,T0=Math.LN2,Uf=256,iu=262144,us=4194304,oc=wa.unstable_scheduleCallback,Bf=wa.unstable_cancelCallback,C0=wa.unstable_shouldYield,pr=wa.unstable_requestPaint,Ra=wa.unstable_now,Yf=wa.unstable_ImmediatePriority,A0=wa.unstable_UserBlockingPriority,rc=wa.unstable_NormalPriority,qf=wa.unstable_IdlePriority,Sr=wa.log,z0=wa.unstable_setDisableYieldValue,uu=null,Pa=null,Fe=typeof Object.is=="function"?Object.is:Ut,Xf=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},_1=Object.prototype.hasOwnProperty,Lf,cn,hc=!1,_r=new WeakMap,Yn=[],fn=0,Se=null,dc=0,Cl=[],fl=0,Al=null,Ea=1,Bl="",ma=A(null),qn=A(null),ba=A(null),mc=A(null),sa=null,Re=null,It=!1,on=null,qa=!1,jf=Error(o(519)),zl=A(null),be=null,Yl=null,M0=typeof AbortController<"u"?AbortController:function(){var a=[],n=this.signal={aborted:!1,addEventListener:function(c,r){a.push(r)}};this.abort=function(){n.aborted=!0,a.forEach(function(c){return c()})}},ga=wa.unstable_scheduleCallback,E1=wa.unstable_NormalPriority,De={$$typeof:El,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},gc=null,me=null,Da=!1,Ml=!1,Qf=!1,pi=0,ss=null,Er=0,Xn=0,ca=null,Ol=Ot.S;Ot.S=function(a,n){hu=Ra(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&f1(a,n),Ol!==null&&Ol(a,n)};var Si=A(null),fa=Error(o(460)),Vf=Error(o(474)),xl=Error(o(542)),rn={then:function(){}},Xa=null,_i=null,su=0,Ta=no(!0),br=no(!1),Ca=[],hn=0,cu=0,ol=!1,Zf=!1,fu=A(null),Ei=A(0),Ia=A(null),La=null,Ze=A(0),Ln=0,Qt=null,At=null,Bt=null,Jt=!1,Zt=!1,ae=!1,Na=0,Rl=0,ql=null,Tr=0,rl={readContext:Sa,use:Nu,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};rl.useEffectEvent=Ue;var Xe={readContext:Sa,use:Nu,useCallback:function(a,n){return Ma().memoizedState=[a,n===void 0?null:n],a},useContext:Sa,useEffect:Xs,useImperativeHandle:function(a,n,c){c=c!=null?c.concat([a]):null,ji(4194308,4,Bu.bind(null,n,a),c)},useLayoutEffect:function(a,n){return ji(4194308,4,a,n)},useInsertionEffect:function(a,n){ji(4,2,a,n)},useMemo:function(a,n){var c=Ma();n=n===void 0?null:n;var r=a();if(ae){Ht(!0);try{a()}finally{Ht(!1)}}return c.memoizedState=[r,n],r},useReducer:function(a,n,c){var r=Ma();if(c!==void 0){var y=c(n);if(ae){Ht(!0);try{c(n)}finally{Ht(!1)}}}else y=n;return r.memoizedState=r.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},r.queue=a,a=a.dispatch=r1.bind(null,Qt,a),[r.memoizedState,a]},useRef:function(a){var n=Ma();return a={current:a},n.memoizedState=a},useState:function(a){a=fo(a);var n=a.queue,c=dh.bind(null,Qt,n);return n.dispatch=c,[a.memoizedState,c]},useDebugValue:js,useDeferredValue:function(a,n){var c=Ma();return qu(c,a,n)},useTransition:function(){var a=fo(!1);return a=oh.bind(null,Qt,a.queue,!0,!1),Ma().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,n,c){var r=Qt,y=Ma();if(It){if(c===void 0)throw Error(o(407));c=c()}else{if(c=n(),wt===null)throw Error(o(349));($t&127)!==0||uh(r,n,c)}y.memoizedState=c;var _={value:c,getSnapshot:n};return y.queue=_,Xs(co.bind(null,r,_,a),[a]),r.flags|=2048,nl(9,{destroy:void 0},so.bind(null,r,_,c,n),null),c},useId:function(){var a=Ma(),n=wt.identifierPrefix;if(It){var c=Bl,r=Ea;c=(r&~(1<<32-ka(r)-1)).toString(32)+c,n="_"+n+"R_"+c,c=Na++,0<c&&(n+="H"+c.toString(32)),n+="_"}else c=Tr++,n="_"+n+"r_"+c.toString(32)+"_";return a.memoizedState=n},useHostTransitionStatus:go,useFormState:ro,useActionState:ro,useOptimistic:function(a){var n=Ma();n.memoizedState=n.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=c,n=kc.bind(null,Qt,!0,c),c.dispatch=n,[a,n]},useMemoCache:Lc,useCacheRefresh:function(){return Ma().memoizedState=o1.bind(null,Qt)},useEffectEvent:function(a){var n=Ma(),c={impl:a};return n.memoizedState=c,function(){if((Ft&2)!==0)throw Error(o(440));return c.impl.apply(void 0,arguments)}}},dn={readContext:Sa,use:Nu,useCallback:Wc,useContext:Sa,useEffect:Uu,useImperativeHandle:fh,useInsertionEffect:ai,useLayoutEffect:Ls,useMemo:Yu,useReducer:An,useRef:wc,useState:function(){return An(Hl)},useDebugValue:js,useDeferredValue:function(a,n){var c=Me();return mo(c,At.memoizedState,a,n)},useTransition:function(){var a=An(Hl)[0],n=Me().memoizedState;return[typeof a=="boolean"?a:Oa(a),n]},useSyncExternalStore:Xi,useId:Fc,useHostTransitionStatus:go,useFormState:Gu,useActionState:Gu,useOptimistic:function(a,n){var c=Me();return Ys(c,At,a,n)},useMemoCache:Lc,useCacheRefresh:hh};dn.useEffectEvent=Ga;var bi={readContext:Sa,use:Nu,useCallback:Wc,useContext:Sa,useEffect:Uu,useImperativeHandle:fh,useInsertionEffect:ai,useLayoutEffect:Ls,useMemo:Yu,useReducer:Qc,useRef:wc,useState:function(){return Qc(Hl)},useDebugValue:js,useDeferredValue:function(a,n){var c=Me();return At===null?qu(c,a,n):mo(c,At.memoizedState,a,n)},useTransition:function(){var a=Qc(Hl)[0],n=Me().memoizedState;return[typeof a=="boolean"?a:Oa(a),n]},useSyncExternalStore:Xi,useId:Fc,useHostTransitionStatus:go,useFormState:Hu,useActionState:Hu,useOptimistic:function(a,n){var c=Me();return At!==null?Ys(c,At,a,n):(c.baseState=a,[a,c.queue.dispatch])},useMemoCache:Lc,useCacheRefresh:hh};bi.useEffectEvent=Ga;var vc={enqueueSetState:function(a,n,c){a=a._reactInternals;var r=Oe(),y=Kl(r);y.payload=n,c!=null&&(y.callback=c),n=In(a,y,r),n!==null&&(Ye(n,a,r),Gs(n,a,r))},enqueueReplaceState:function(a,n,c){a=a._reactInternals;var r=Oe(),y=Kl(r);y.tag=1,y.payload=n,c!=null&&(y.callback=c),n=In(a,y,r),n!==null&&(Ye(n,a,r),Gs(n,a,r))},enqueueForceUpdate:function(a,n){a=a._reactInternals;var c=Oe(),r=Kl(c);r.tag=2,n!=null&&(r.callback=n),n=In(a,r,c),n!==null&&(Ye(n,a,c),Gs(n,a,c))}},ja=Error(o(461)),Ae=!1,ou={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ke=!1,Je=!1,cs=!1,Cr=typeof WeakSet=="function"?WeakSet:Set,ke=null,Le=null,Pe=!1,ge=null,hl=8192,fs={getCacheForType:function(a){var n=Sa(De),c=n.data.get(a);return c===void 0&&(c=a(),n.data.set(a,c)),c},cacheSignal:function(){return Sa(De).controller.signal}},Dl=0,os=1,rs=2,yc=3,Ti=4;if(typeof Symbol=="function"&&Symbol.for){var ru=Symbol.for;Dl=ru("selector.component"),os=ru("selector.has_pseudo_class"),rs=ru("selector.role"),yc=ru("selector.test_id"),Ti=ru("selector.text")}var dl=typeof WeakMap=="function"?WeakMap:Map,Ft=0,wt=null,kt=null,$t=0,ve=0,la=null,Xl=!1,Ci=!1,Ai=!1,mn=0,je=0,jn=0,zi=0,hs=0,Qa=0,ds=0,pc=null,$a=null,Kf=!1,Sc=0,hu=0,Mi=1/0,_c=null,Qn=null,na=0,Vn=null,du=null,gn=0,ms=0,Jf=null,Ar=null,se=0,Ec=null;return Kt.attemptContinuousHydration=function(a){if(a.tag===13||a.tag===31){var n=kn(a,67108864);n!==null&&Ye(n,a,67108864),ec(a,67108864)}},Kt.attemptHydrationAtCurrentPriority=function(a){if(a.tag===13||a.tag===31){var n=Oe();n=Yt(n);var c=kn(a,n);c!==null&&Ye(c,a,n),ec(a,n)}},Kt.attemptSynchronousHydration=function(a){switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var n=X(a.pendingLanes);if(n!==0){for(a.pendingLanes|=2,a.entangledLanes|=2;n;){var c=1<<31-ka(n);a.entanglements[1]|=c,n&=~c}Zl(a),(Ft&6)===0&&(Mi=Ra()+500,Gi(0))}}break;case 31:case 13:n=kn(a,2),n!==null&&Ye(n,a,2),of(),ec(a,2)}},Kt.batchedUpdates=function(a,n){return a(n)},Kt.createComponentSelector=function(a){return{$$typeof:Dl,value:a}},Kt.createContainer=function(a,n,c,r,y,_,C,G,W,at){return hi(a,n,!1,null,c,r,_,null,C,G,W,at)},Kt.createHasPseudoClassSelector=function(a){return{$$typeof:os,value:a}},Kt.createHydrationContainer=function(a,n,c,r,y,_,C,G,W,at,dt,ut,yt,Xt){return a=hi(c,r,!0,a,y,_,G,Xt,W,at,dt,ut),a.context=vf(null),c=a.current,r=Oe(),r=Yt(r),y=Kl(r),y.callback=n??null,In(c,y,r),n=r,a.current.lanes=n,lt(a,n),Zl(a),a},Kt.createPortal=function(a,n,c){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ki,key:r==null?null:""+r,children:a,containerInfo:n,implementation:c}},Kt.createRoleSelector=function(a){return{$$typeof:rs,value:a}},Kt.createTestNameSelector=function(a){return{$$typeof:yc,value:a}},Kt.createTextSelector=function(a){return{$$typeof:Ti,value:a}},Kt.defaultOnCaughtError=function(a){console.error(a)},Kt.defaultOnRecoverableError=function(a){Xf(a)},Kt.defaultOnUncaughtError=function(a){Xf(a)},Kt.deferredUpdates=function(a){var n=Ot.T,c=bl();try{return Pt(32),Ot.T=null,a()}finally{Pt(c),Ot.T=n}},Kt.discreteUpdates=function(a,n,c,r,y){var _=Ot.T,C=bl();try{return Pt(2),Ot.T=null,a(n,c,r,y)}finally{Pt(C),Ot.T=_,Ft===0&&(Mi=Ra()+500)}},Kt.findAllNodes=Ja,Kt.findBoundingRects=function(a,n){if(!ia)throw Error(o(363));n=Ja(a,n),a=[];for(var c=0;c<n.length;c++)a.push(Cf(n[c]));for(n=a.length-1;0<n;n--){c=a[n];for(var r=c.x,y=r+c.width,_=c.y,C=_+c.height,G=n-1;0<=G;G--)if(n!==G){var W=a[G],at=W.x,dt=at+W.width,ut=W.y,yt=ut+W.height;if(r>=at&&_>=ut&&y<=dt&&C<=yt){a.splice(n,1);break}else if(r!==at||c.width!==W.width||yt<_||ut>C){if(!(_!==ut||c.height!==W.height||dt<r||at>y)){at>r&&(W.width+=at-r,W.x=r),dt<y&&(W.width=y-at),a.splice(n,1);break}}else{ut>_&&(W.height+=ut-_,W.y=_),yt<C&&(W.height=C-ut),a.splice(n,1);break}}}return a},Kt.findHostInstance=tc,Kt.findHostInstanceWithNoPortals=function(a){return a=p(a),a=a!==null?b(a):null,a===null?null:es(a.stateNode)},Kt.findHostInstanceWithWarning=function(a){return tc(a)},Kt.flushPassiveEffects=nn,Kt.flushSyncFromReconciler=function(a){var n=Ft;Ft|=1;var c=Ot.T,r=bl();try{if(Pt(2),Ot.T=null,a)return a()}finally{Pt(r),Ot.T=c,Ft=n,(Ft&6)===0&&Gi(0)}},Kt.flushSyncWork=of,Kt.focusWithin=function(a,n){if(!ia)throw Error(o(363));for(a=si(a),n=Wu(a,n),n=Array.from(n),a=0;a<n.length;){var c=n[a++],r=c.tag;if(!gi(c)){if((r===5||r===26||r===27)&&Bn(c.stateNode))return!0;for(c=c.child;c!==null;)n.push(c),c=c.sibling}}return!1},Kt.getFindAllNodesFailureDescription=function(a,n){if(!ia)throw Error(o(363));var c=0,r=[];a=[si(a),0];for(var y=0;y<a.length;){var _=a[y++],C=_.tag,G=a[y++],W=n[G];if((C!==5&&C!==26&&C!==27||!gi(_))&&(ci(_,W)&&(r.push(wu(W)),G++,G>c&&(c=G)),G<n.length))for(_=_.child;_!==null;)a.push(_,G),_=_.sibling}if(c<n.length){for(a=[];c<n.length;c++)a.push(wu(n[c]));return`findAllNodes was able to match part of the selector:
|
|
71
|
+
`+(r.join(" > ")+`
|
|
72
|
+
|
|
73
|
+
No matching component was found for:
|
|
74
|
+
`)+a.join(" > ")}return null},Kt.getPublicRootInstance=function(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 27:case 5:return es(a.child.stateNode);default:return a.child.stateNode}},Kt.injectIntoDevTools=function(){var a={bundleType:0,version:Lo,rendererPackageName:nc,currentDispatcherRef:Ot,reconcilerVersion:"19.2.0"};if(ts!==null&&(a.rendererConfig=ts),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")a=!1;else{var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled||!n.supportsFiber)a=!0;else{try{uu=n.inject(a),Pa=n}catch{}a=!!n.checkDCE}}return a},Kt.isAlreadyRendering=function(){return(Ft&6)!==0},Kt.observeVisibleRects=function(a,n,c,r){if(!ia)throw Error(o(363));a=Ja(a,n);var y=Af(a,c,r).disconnect;return{disconnect:function(){y()}}},Kt.shouldError=function(){return null},Kt.shouldSuspend=function(){return!1},Kt.startHostTransition=function(a,n,c,r){if(a.tag!==5)throw Error(o(476));var y=rh(a).queue;oh(a,y,n,eu,c===null?f:function(){var _=rh(a);return _.next===null&&(_=a.alternate.memoizedState),Qs(a,_.next.queue,{},Oe()),c(r)})},Kt.updateContainer=function(a,n,c,r){var y=n.current,_=Oe();return qo(y,_,a,n,c,r),_},Kt.updateContainerSync=function(a,n,c,r){return qo(n.current,2,a,n,c,r),2},Kt},d.exports.default=d.exports,Object.defineProperty(d.exports,"__esModule",{value:!0})})(nd)),nd.exports}var w2;function t6(){return w2||(w2=1,ld.exports=$m()),ld.exports}var e6=t6();const a6=l1(e6);var id={exports:{}},gu={};/**
|
|
75
|
+
* @license React
|
|
76
|
+
* react-reconciler-constants.production.js
|
|
77
|
+
*
|
|
78
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the MIT license found in the
|
|
81
|
+
* LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/var W2;function l6(){return W2||(W2=1,gu.ConcurrentRoot=1,gu.ContinuousEventPriority=8,gu.DefaultEventPriority=32,gu.DiscreteEventPriority=2,gu.IdleEventPriority=268435456,gu.LegacyRoot=0,gu.NoEventPriority=0),gu}var F2;function n6(){return F2||(F2=1,id.exports=l6()),id.exports}var s1=n6();const k2={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let P2=!1,I2=!1;const Pr=".react-konva-event",i6=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
|
83
|
+
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
|
|
84
|
+
Consider to add onDragMove or onDragEnd events.
|
|
85
|
+
For more info see: https://github.com/konvajs/react-konva/issues/256
|
|
86
|
+
`,u6=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
|
87
|
+
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
|
88
|
+
For more info see: https://github.com/konvajs/react-konva/issues/194
|
|
89
|
+
`,s6={};let H3=()=>{};function c6(d){H3=d}let ud=!1;function f6(d){return function(...l){const s=d.apply(this,l);if(!ud){ud=!0;try{H3()}finally{ud=!1}}return s}}function c1(d,l,s=s6){if(!P2&&"zIndex"in l&&(console.warn(u6),P2=!0),!I2&&l.draggable){var f=l.x!==void 0||l.y!==void 0,o=l.onDragEnd||l.onDragMove;f&&!o&&(console.warn(i6),I2=!0)}for(var g in s)if(!k2[g]){var v=g.slice(0,2)==="on",p=s[g]!==l[g];if(v&&p){var S=g.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),d.off(S+Pr)}var b=!l.hasOwnProperty(g);b&&d.setAttr(g,void 0)}var T=l._useStrictMode,M={},A=!1;const x={};for(var g in l)if(!k2[g]){var v=g.slice(0,2)==="on",O=s[g]!==l[g];if(v&&O){var S=g.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),l[g]&&(x[S]=l[g])}!v&&(l[g]!==s[g]||T&&l[g]!==d.getAttr(g))&&(A=!0,M[g]=l[g])}A&&(d.setAttrs(M),xs(d));for(var S in x)d.off(S+Pr),d.on(S+Pr,f6(x[S]))}function xs(d){if(!vt.autoDrawEnabled){var l=d.getLayer()||d.getStage();l&&l.batchDraw()}}var sd=_d();const U3={},o6={};eo.Node.prototype._applyProps=c1;let B3=s1.DefaultEventPriority;function r6(d,l){if(typeof l=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${l}`);return}d.add(l),xs(d)}function h6(d,l,s){let f=eo[d];f||(console.error(`Konva has no node with the type ${d}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${d}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),f=eo.Group);const o={},g={};for(var v in l)if(v!=="ref"){var p=v.slice(0,2)==="on";p?g[v]=l[v]:o[v]=l[v]}const S=new f(o);return c1(S,g),S}function d6(d,l,s){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${d}"`)}function m6(d,l,s){return!1}function g6(d){return d}function v6(){return null}function y6(){return null}function p6(d,l,s,f){return o6}function S6(){}function _6(d){}function E6(d,l){return!1}function b6(){return U3}function T6(){return U3}const C6=setTimeout,A6=clearTimeout,z6=!0,M6=typeof queueMicrotask=="function"?queueMicrotask:d=>Promise.resolve(null).then(d),O6=-1;function x6(d,l){return!1}const R6=!1,D6=!1,N6=!0,G6=!1,H6=!1;function U6(d,l){l.parent===d?l.moveToTop():d.add(l),xs(d)}function B6(d,l){l.parent===d?l.moveToTop():d.add(l),xs(d)}function Y3(d,l,s){l._remove(),d.add(l),l.setZIndex(s.getZIndex()),xs(d)}function Y6(d,l,s){Y3(d,l,s)}function q6(d,l){l.destroy(),l.off(Pr),xs(d)}function X6(d,l){l.destroy(),l.off(Pr),xs(d)}function L6(d,l,s){console.error(`Text components are not yet supported in ReactKonva. You text is: "${s}"`)}function j6(d,l,s){}function Q6(d,l,s,f){c1(d,f,s)}function V6(d){d.hide(),xs(d)}function Z6(d){}function K6(d,l){(l.visible==null||l.visible)&&d.show()}function J6(d,l){}function w6(d){}function W6(){}function F6(){return null}function k6(){}function P6(){}function I6(){return s1.DefaultEventPriority}function $6(){}function tg(){return null}function eg(d){B3=d}function ag(){return B3}function lg(){return s1.DiscreteEventPriority}function ng(){return!1}function ig(){}function ug(){return null}function sg(){return-1.1}function cg(){}function fg(){return!1}function og(){return!0}function rg(){}function hg(){}function dg(){return null}const mg=null,gg=ye.createContext(null);function vg(){}const yg=Object.freeze(Object.defineProperty({__proto__:null,HostTransitionContext:gg,NotPendingTransition:mg,afterActiveInstanceBlur:P6,appendChild:U6,appendChildToContainer:B6,appendInitialChild:r6,beforeActiveInstanceBlur:k6,cancelTimeout:A6,clearContainer:w6,commitMount:j6,commitTextUpdate:L6,commitUpdate:Q6,createInstance:h6,createTextInstance:d6,detachDeletedInstance:W6,finalizeInitialChildren:m6,getChildHostContext:T6,getCurrentEventPriority:I6,getCurrentUpdatePriority:ag,getInstanceFromNode:F6,getInstanceFromScope:tg,getPublicInstance:g6,getRootHostContext:b6,hideInstance:V6,hideTextInstance:Z6,idlePriority:sd.unstable_IdlePriority,insertBefore:Y3,insertInContainerBefore:Y6,isPrimaryRenderer:R6,maySuspendCommit:fg,noTimeout:O6,now:sd.unstable_now,preloadInstance:og,prepareForCommit:v6,preparePortalMount:y6,prepareScopeUpdate:$6,prepareUpdate:p6,removeChild:q6,removeChildFromContainer:X6,requestPostPaintCallback:cg,resetAfterCommit:S6,resetFormInstance:vg,resetTextContent:_6,resolveEventTimeStamp:sg,resolveEventType:ug,resolveUpdatePriority:lg,run:sd.unstable_runWithPriority,scheduleMicrotask:M6,scheduleTimeout:C6,setCurrentUpdatePriority:eg,shouldAttemptEagerTransition:ng,shouldDeprioritizeSubtree:E6,shouldSetTextContent:x6,startSuspendingCommit:rg,supportsHydration:H6,supportsMicrotasks:z6,supportsMutation:N6,supportsPersistence:G6,suspendInstance:hg,trackSchedulerEvent:ig,unhideInstance:K6,unhideTextInstance:J6,waitForCommitToBeReady:dg,warnsIfNotActing:D6},Symbol.toStringTag,{value:"Module"}));function q3(d,l,s){if(!d)return;if(s(d)===!0)return d;let f=d.child;for(;f;){const o=q3(f,l,s);if(o)return o;f=f.sibling}}function X3(d){try{return Object.defineProperties(d,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return d}}const Od=X3(Gl.createContext(null));class L3 extends Gl.Component{render(){return Gl.createElement(Od.Provider,{value:this._reactInternals},this.props.children)}}function pg(){const d=Gl.useContext(Od);if(d===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const l=Gl.useId();return Gl.useMemo(()=>{for(const s of[d,d?.alternate]){if(!s)continue;const f=q3(s,!1,o=>{let g=o.memoizedState;for(;g;){if(g.memoizedState===l)return!0;g=g.next}});if(f)return f}},[d,l])}const Sg=Symbol.for("react.context"),_g=d=>d!==null&&typeof d=="object"&&"$$typeof"in d&&d.$$typeof===Sg;function Eg(){const d=pg(),[l]=Gl.useState(()=>new Map);l.clear();let s=d;for(;s;){const f=s.type;_g(f)&&f!==Od&&!l.has(f)&&l.set(f,Gl.use(X3(f))),s=s.return}return l}function j3(){const d=Eg();return Gl.useMemo(()=>Array.from(d.keys()).reduce((l,s)=>f=>Gl.createElement(l,null,Gl.createElement(s.Provider,{...f,value:d.get(s)})),l=>Gl.createElement(L3,{...l})),[d])}if(ye.version.indexOf("19")===-1)throw new Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");function bg(d){const l=ye.useRef({});return ye.useLayoutEffect(()=>{l.current=d}),ye.useLayoutEffect(()=>()=>{l.current={}},[]),l.current}const Tg=()=>{const d=ye.useRef(0);return ye.useMemo(()=>{d.current++},[]),d.current>1},Cg=d=>{const l=ye.useRef(null),s=ye.useRef(null),f=ye.useRef(null),o=bg(d),g=j3(),v=ye.useRef(null),p=T=>{const{forwardedRef:M}=d;M&&(typeof M=="function"?M(T):M.current=T)},S=Tg(),b=()=>{p(null),Tc.flushSyncFromReconciler(()=>{Tc.updateContainer(null,f.current,null)}),s.current?.destroy(),s.current=null};return ye.useLayoutEffect(()=>(v.current&&(clearTimeout(v.current),v.current=null),s.current?p(s.current):(s.current=new eo.Stage({width:d.width,height:d.height,container:l.current}),p(s.current),f.current=Tc.createContainer(s.current,s1.ConcurrentRoot,null,!1,null,"",console.error,console.error,console.error,null),Tc.updateContainer(ye.createElement(g,{},d.children),f.current,null,()=>{})),()=>{S?v.current=setTimeout(b,0):b()}),[]),ye.useLayoutEffect(()=>{p(s.current),c1(s.current,d,o),Tc.updateContainer(ye.createElement(g,{},d.children),f.current,null),Tc.flushSyncWork()}),ye.createElement("div",{ref:l,id:d.id,accessKey:d.accessKey,className:d.className,role:d.role,style:d.style,tabIndex:d.tabIndex,title:d.title})},Lg="Layer",Ag="Group",jg="Rect",Qg="Circle",Vg="Line",Zg="Text",Tc=a6(yg);c6(()=>Tc.flushSyncWork());const Kg=ye.forwardRef((d,l)=>ye.createElement(L3,{},ye.createElement(Cg,{...d,forwardedRef:l})));var zg=function(d,l){var s={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&l.indexOf(f)<0&&(s[f]=d[f]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,f=Object.getOwnPropertySymbols(d);o<f.length;o++)l.indexOf(f[o])<0&&Object.prototype.propertyIsEnumerable.call(d,f[o])&&(s[f[o]]=d[f[o]]);return s};const Mg=d=>{const l=window.getComputedStyle(d).position;return!(l==="absolute"||l==="relative")};function Og(d=()=>{}){const l=ye.useRef(d);return l.current=d,ye.useCallback((...s)=>l.current.apply(null,s),[])}const Jg=({children:d,groupProps:l,divProps:s,transform:f,transformFunc:o,parentNodeFunc:g})=>{const v=j3(),p=ye.useRef(null),[S]=ye.useState(()=>document.createElement("div")),b=ye.useMemo(()=>O4.createRoot(S),[S]),T=f??!0,M=Og(()=>{if(T&&p.current){let X=p.current.getAbsoluteTransform().decompose();o&&(X=o(X)),S.style.position="absolute",S.style.zIndex="10",S.style.top="0px",S.style.left="0px",S.style.transform=`translate(${X.x}px, ${X.y}px) rotate(${X.rotation}deg) scaleX(${X.scaleX}) scaleY(${X.scaleY})`,S.style.transformOrigin="top left"}else S.style.position="",S.style.zIndex="",S.style.top="",S.style.left="",S.style.transform="",S.style.transformOrigin="";const A=s||{},{style:x}=A,O=zg(A,["style"]);Object.assign(S.style,x),Object.assign(S,O)});return ye.useLayoutEffect(()=>{var A;const x=p.current;if(!x)return;const O=g?g({stage:x.getStage()}):(A=x.getStage())===null||A===void 0?void 0:A.container();if(O)return O.appendChild(S),T&&Mg(O)&&(O.style.position="relative"),x.on("absoluteTransformChange",M),M(),()=>{var L;x.off("absoluteTransformChange",M),(L=S.parentNode)===null||L===void 0||L.removeChild(S)}},[T,g]),ye.useLayoutEffect(()=>{M()},[s,o]),ye.useLayoutEffect(()=>{queueMicrotask(()=>{Ed.flushSync(()=>{b.render(ye.createElement(v,null,d))})})}),ye.useLayoutEffect(()=>()=>{setTimeout(()=>{b.unmount()})},[]),ye.createElement(Ag,Object.assign({ref:p},l))};var cd,$2;function xg(){if($2)return cd;$2=1;var d=$r();return cd=function(s,f,o){const g=d.useRef("loading"),v=d.useRef(),[p,S]=d.useState(0),b=d.useRef(),T=d.useRef(),M=d.useRef();return(b.current!==s||T.current!==f||M.current!==o)&&(g.current="loading",v.current=void 0,b.current=s,T.current=f,M.current=o),d.useLayoutEffect(function(){if(!s)return;var A=document.createElement("img");function x(){A.decode().catch(()=>{}).finally(()=>{g.current="loaded",v.current=A,S(Math.random())})}function O(){g.current="failed",v.current=void 0,S(Math.random())}return A.addEventListener("load",x),A.addEventListener("error",O),f&&(A.crossOrigin=f),o&&(A.referrerPolicy=o),A.src=s,function(){A.removeEventListener("load",x),A.removeEventListener("error",O)}},[s,f,o]),[v.current,g.current]},cd}xg();export{Qg as C,Ag as G,Jg as H,Lg as L,ye as R,Kg as S,Zg as T,Vg as a,jg as b,Rg as c,Ed as d,$r as e,Dg as f,l1 as g,Ng as h,M4 as i,Gl as r};
|