@francistinao/formiq-sdk 1.0.4 → 1.0.5

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.
@@ -0,0 +1,216 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ya=require("react");function o4(y){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(y){for(const Z in y)if(Z!=="default"){const j=Object.getOwnPropertyDescriptor(y,Z);Object.defineProperty(f,Z,j.get?j:{enumerable:!0,get:()=>y[Z]})}}return f.default=y,Object.freeze(f)}const ci=o4(ya);var cv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A3(y){return y&&y.__esModule&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y}var X2={exports:{}},t0={},np={},lp={},rv;function se(){return rv||(rv=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y._registerNode=y.Konva=y.glob=void 0;const f=Math.PI/180;function Z(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}y.glob=typeof cv<"u"?cv:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},y.Konva={_global:y.glob,version:"9.3.22",isBrowser:Z(),isUnminified:/param/.test((function(N){}).toString()),dblClickWindow:400,getAngle(N){return y.Konva.angleDeg?N*f:N},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,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return y.Konva.DD.isDragging},isTransforming(){var N;return(N=y.Konva.Transformer)===null||N===void 0?void 0:N.isTransforming()},isDragReady(){return!!y.Konva.DD.node},releaseCanvasOnDestroy:!0,document:y.glob.document,_injectGlobal(N){y.glob.Konva=N}};const j=N=>{y.Konva[N.prototype.getClassName()]=N};y._registerNode=j,y.Konva._injectGlobal(y.Konva)})(lp)),lp}var ip={},fv;function va(){return fv||(fv=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y.Util=y.Transform=void 0;const f=se();class Z{constructor(A=[1,0,0,1,0,0]){this.dirty=!1,this.m=A&&A.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 Z(this.m)}copyInto(A){A.m[0]=this.m[0],A.m[1]=this.m[1],A.m[2]=this.m[2],A.m[3]=this.m[3],A.m[4]=this.m[4],A.m[5]=this.m[5]}point(A){const U=this.m;return{x:U[0]*A.x+U[2]*A.y+U[4],y:U[1]*A.x+U[3]*A.y+U[5]}}translate(A,U){return this.m[4]+=this.m[0]*A+this.m[2]*U,this.m[5]+=this.m[1]*A+this.m[3]*U,this}scale(A,U){return this.m[0]*=A,this.m[1]*=A,this.m[2]*=U,this.m[3]*=U,this}rotate(A){const U=Math.cos(A),X=Math.sin(A),et=this.m[0]*U+this.m[2]*X,V=this.m[1]*U+this.m[3]*X,q=this.m[0]*-X+this.m[2]*U,G=this.m[1]*-X+this.m[3]*U;return this.m[0]=et,this.m[1]=V,this.m[2]=q,this.m[3]=G,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(A,U){const X=this.m[0]+this.m[2]*U,et=this.m[1]+this.m[3]*U,V=this.m[2]+this.m[0]*A,q=this.m[3]+this.m[1]*A;return this.m[0]=X,this.m[1]=et,this.m[2]=V,this.m[3]=q,this}multiply(A){const U=this.m[0]*A.m[0]+this.m[2]*A.m[1],X=this.m[1]*A.m[0]+this.m[3]*A.m[1],et=this.m[0]*A.m[2]+this.m[2]*A.m[3],V=this.m[1]*A.m[2]+this.m[3]*A.m[3],q=this.m[0]*A.m[4]+this.m[2]*A.m[5]+this.m[4],G=this.m[1]*A.m[4]+this.m[3]*A.m[5]+this.m[5];return this.m[0]=U,this.m[1]=X,this.m[2]=et,this.m[3]=V,this.m[4]=q,this.m[5]=G,this}invert(){const A=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),U=this.m[3]*A,X=-this.m[1]*A,et=-this.m[2]*A,V=this.m[0]*A,q=A*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),G=A*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=U,this.m[1]=X,this.m[2]=et,this.m[3]=V,this.m[4]=q,this.m[5]=G,this}getMatrix(){return this.m}decompose(){const A=this.m[0],U=this.m[1],X=this.m[2],et=this.m[3],V=this.m[4],q=this.m[5],G=A*et-U*X,J={x:V,y:q,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(A!=0||U!=0){const P=Math.sqrt(A*A+U*U);J.rotation=U>0?Math.acos(A/P):-Math.acos(A/P),J.scaleX=P,J.scaleY=G/P,J.skewX=(A*X+U*et)/G,J.skewY=0}else if(X!=0||et!=0){const P=Math.sqrt(X*X+et*et);J.rotation=Math.PI/2-(et>0?Math.acos(-X/P):-Math.acos(X/P)),J.scaleX=G/P,J.scaleY=P,J.skewX=0,J.skewY=(A*X+U*et)/G}return J.rotation=y.Util._getRotation(J.rotation),J}}y.Transform=Z;const j="[object Array]",N="[object Number]",D="[object String]",T="[object Boolean]",_=Math.PI/180,b=180/Math.PI,C="#",z="",O="0",R="Konva warning: ",p="Konva error: ",v="rgb(",M={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]},H=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let Y=[];const S=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(m){setTimeout(m,60)};y.Util={_isElement(m){return!!(m&&m.nodeType==1)},_isFunction(m){return!!(m&&m.constructor&&m.call&&m.apply)},_isPlainObject(m){return!!m&&m.constructor===Object},_isArray(m){return Object.prototype.toString.call(m)===j},_isNumber(m){return Object.prototype.toString.call(m)===N&&!isNaN(m)&&isFinite(m)},_isString(m){return Object.prototype.toString.call(m)===D},_isBoolean(m){return Object.prototype.toString.call(m)===T},isObject(m){return m instanceof Object},isValidSelector(m){if(typeof m!="string")return!1;const A=m[0];return A==="#"||A==="."||A===A.toUpperCase()},_sign(m){return m===0||m>0?1:-1},requestAnimFrame(m){Y.push(m),Y.length===1&&S(function(){const A=Y;Y=[],A.forEach(function(U){U()})})},createCanvasElement(){const m=document.createElement("canvas");try{m.style=m.style||{}}catch{}return m},createImageElement(){return document.createElement("img")},_isInDocument(m){for(;m=m.parentNode;)if(m==document)return!0;return!1},_urlToImage(m,A){const U=y.Util.createImageElement();U.onload=function(){A(U)},U.src=m},_rgbToHex(m,A,U){return((1<<24)+(m<<16)+(A<<8)+U).toString(16).slice(1)},_hexToRgb(m){m=m.replace(C,z);const A=parseInt(m,16);return{r:A>>16&255,g:A>>8&255,b:A&255}},getRandomColor(){let m=(Math.random()*16777215<<0).toString(16);for(;m.length<6;)m=O+m;return C+m},getRGB(m){let A;return m in M?(A=M[m],{r:A[0],g:A[1],b:A[2]}):m[0]===C?this._hexToRgb(m.substring(1)):m.substr(0,4)===v?(A=H.exec(m.replace(/ /g,"")),{r:parseInt(A[1],10),g:parseInt(A[2],10),b:parseInt(A[3],10)}):{r:0,g:0,b:0}},colorToRGBA(m){return m=m||"black",y.Util._namedColorToRBA(m)||y.Util._hex3ColorToRGBA(m)||y.Util._hex4ColorToRGBA(m)||y.Util._hex6ColorToRGBA(m)||y.Util._hex8ColorToRGBA(m)||y.Util._rgbColorToRGBA(m)||y.Util._rgbaColorToRGBA(m)||y.Util._hslColorToRGBA(m)},_namedColorToRBA(m){const A=M[m.toLowerCase()];return A?{r:A[0],g:A[1],b:A[2],a:1}:null},_rgbColorToRGBA(m){if(m.indexOf("rgb(")===0){m=m.match(/rgb\(([^)]+)\)/)[1];const A=m.split(/ *, */).map(Number);return{r:A[0],g:A[1],b:A[2],a:1}}},_rgbaColorToRGBA(m){if(m.indexOf("rgba(")===0){m=m.match(/rgba\(([^)]+)\)/)[1];const A=m.split(/ *, */).map((U,X)=>U.slice(-1)==="%"?X===3?parseInt(U)/100:parseInt(U)/100*255:Number(U));return{r:A[0],g:A[1],b:A[2],a:A[3]}}},_hex8ColorToRGBA(m){if(m[0]==="#"&&m.length===9)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:parseInt(m.slice(7,9),16)/255}},_hex6ColorToRGBA(m){if(m[0]==="#"&&m.length===7)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:1}},_hex4ColorToRGBA(m){if(m[0]==="#"&&m.length===5)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:parseInt(m[4]+m[4],16)/255}},_hex3ColorToRGBA(m){if(m[0]==="#"&&m.length===4)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:1}},_hslColorToRGBA(m){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(m)){const[A,...U]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(m),X=Number(U[0])/360,et=Number(U[1])/100,V=Number(U[2])/100;let q,G,J;if(et===0)return J=V*255,{r:Math.round(J),g:Math.round(J),b:Math.round(J),a:1};V<.5?q=V*(1+et):q=V+et-V*et;const P=2*V-q,k=[0,0,0];for(let st=0;st<3;st++)G=X+1/3*-(st-1),G<0&&G++,G>1&&G--,6*G<1?J=P+(q-P)*6*G:2*G<1?J=q:3*G<2?J=P+(q-P)*(2/3-G)*6:J=P,k[st]=J*255;return{r:Math.round(k[0]),g:Math.round(k[1]),b:Math.round(k[2]),a:1}}},haveIntersection(m,A){return!(A.x>m.x+m.width||A.x+A.width<m.x||A.y>m.y+m.height||A.y+A.height<m.y)},cloneObject(m){const A={};for(const U in m)this._isPlainObject(m[U])?A[U]=this.cloneObject(m[U]):this._isArray(m[U])?A[U]=this.cloneArray(m[U]):A[U]=m[U];return A},cloneArray(m){return m.slice(0)},degToRad(m){return m*_},radToDeg(m){return m*b},_degToRad(m){return y.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),y.Util.degToRad(m)},_radToDeg(m){return y.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),y.Util.radToDeg(m)},_getRotation(m){return f.Konva.angleDeg?y.Util.radToDeg(m):m},_capitalize(m){return m.charAt(0).toUpperCase()+m.slice(1)},throw(m){throw new Error(p+m)},error(m){console.error(p+m)},warn(m){f.Konva.showWarnings&&console.warn(R+m)},each(m,A){for(const U in m)A(U,m[U])},_inRange(m,A,U){return A<=m&&m<U},_getProjectionToSegment(m,A,U,X,et,V){let q,G,J;const P=(m-U)*(m-U)+(A-X)*(A-X);if(P==0)q=m,G=A,J=(et-U)*(et-U)+(V-X)*(V-X);else{const k=((et-m)*(U-m)+(V-A)*(X-A))/P;k<0?(q=m,G=A,J=(m-et)*(m-et)+(A-V)*(A-V)):k>1?(q=U,G=X,J=(U-et)*(U-et)+(X-V)*(X-V)):(q=m+k*(U-m),G=A+k*(X-A),J=(q-et)*(q-et)+(G-V)*(G-V))}return[q,G,J]},_getProjectionToLine(m,A,U){const X=y.Util.cloneObject(m);let et=Number.MAX_VALUE;return A.forEach(function(V,q){if(!U&&q===A.length-1)return;const G=A[(q+1)%A.length],J=y.Util._getProjectionToSegment(V.x,V.y,G.x,G.y,m.x,m.y),P=J[0],k=J[1],st=J[2];st<et&&(X.x=P,X.y=k,et=st)}),X},_prepareArrayForTween(m,A,U){const X=[],et=[];if(m.length>A.length){const q=A;A=m,m=q}for(let q=0;q<m.length;q+=2)X.push({x:m[q],y:m[q+1]});for(let q=0;q<A.length;q+=2)et.push({x:A[q],y:A[q+1]});const V=[];return et.forEach(function(q){const G=y.Util._getProjectionToLine(q,X,U);V.push(G.x),V.push(G.y)}),V},_prepareToStringify(m){let A;m.visitedByCircularReferenceRemoval=!0;for(const U in m)if(m.hasOwnProperty(U)&&m[U]&&typeof m[U]=="object"){if(A=Object.getOwnPropertyDescriptor(m,U),m[U].visitedByCircularReferenceRemoval||y.Util._isElement(m[U]))if(A.configurable)delete m[U];else return null;else if(y.Util._prepareToStringify(m[U])===null)if(A.configurable)delete m[U];else return null}return delete m.visitedByCircularReferenceRemoval,m},_assign(m,A){for(const U in A)m[U]=A[U];return m},_getFirstPointerId(m){return m.touches?m.changedTouches[0].identifier:m.pointerId||999},releaseCanvas(...m){f.Konva.releaseCanvasOnDestroy&&m.forEach(A=>{A.width=0,A.height=0})},drawRoundedRectPath(m,A,U,X){let et=0,V=0,q=0,G=0;typeof X=="number"?et=V=q=G=Math.min(X,A/2,U/2):(et=Math.min(X[0]||0,A/2,U/2),V=Math.min(X[1]||0,A/2,U/2),G=Math.min(X[2]||0,A/2,U/2),q=Math.min(X[3]||0,A/2,U/2)),m.moveTo(et,0),m.lineTo(A-V,0),m.arc(A-V,V,V,Math.PI*3/2,0,!1),m.lineTo(A,U-G),m.arc(A-G,U-G,G,0,Math.PI/2,!1),m.lineTo(q,U),m.arc(q,U-q,q,Math.PI/2,Math.PI,!1),m.lineTo(0,et),m.arc(et,et,et,Math.PI,Math.PI*3/2,!1)}}})(ip)),ip}var e0={},ms={},ps={},hv;function N3(){if(hv)return ps;hv=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.HitContext=ps.SceneContext=ps.Context=void 0;const y=va(),f=se();function Z(Y){const S=[],m=Y.length,A=y.Util;for(let U=0;U<m;U++){let X=Y[U];A._isNumber(X)?X=Math.round(X*1e3)/1e3:A._isString(X)||(X=X+""),S.push(X)}return S}const j=",",N="(",D=")",T="([",_="])",b=";",C="()",z="=",O=["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"],R=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"],p=100;let v=class{constructor(S){this.canvas=S,f.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(S){S.fillEnabled()&&this._fill(S)}_fill(S){}strokeShape(S){S.hasStroke()&&this._stroke(S)}_stroke(S){}fillStrokeShape(S){S.attrs.fillAfterStrokeEnabled?(this.strokeShape(S),this.fillShape(S)):(this.fillShape(S),this.strokeShape(S))}getTrace(S,m){let A=this.traceArr,U=A.length,X="",et,V,q,G;for(et=0;et<U;et++)V=A[et],q=V.method,q?(G=V.args,X+=q,S?X+=C:y.Util._isArray(G[0])?X+=T+G.join(j)+_:(m&&(G=G.map(J=>typeof J=="number"?Math.floor(J):J)),X+=N+G.join(j)+D)):(X+=V.property,S||(X+=z+V.val)),X+=b;return X}clearTrace(){this.traceArr=[]}_trace(S){let m=this.traceArr,A;m.push(S),A=m.length,A>=p&&m.shift()}reset(){const S=this.getCanvas().getPixelRatio();this.setTransform(1*S,0,0,1*S,0,0)}getCanvas(){return this.canvas}clear(S){const m=this.getCanvas();S?this.clearRect(S.x||0,S.y||0,S.width||0,S.height||0):this.clearRect(0,0,m.getWidth()/m.pixelRatio,m.getHeight()/m.pixelRatio)}_applyLineCap(S){const m=S.attrs.lineCap;m&&this.setAttr("lineCap",m)}_applyOpacity(S){const m=S.getAbsoluteOpacity();m!==1&&this.setAttr("globalAlpha",m)}_applyLineJoin(S){const m=S.attrs.lineJoin;m&&this.setAttr("lineJoin",m)}setAttr(S,m){this._context[S]=m}arc(S,m,A,U,X,et){this._context.arc(S,m,A,U,X,et)}arcTo(S,m,A,U,X){this._context.arcTo(S,m,A,U,X)}beginPath(){this._context.beginPath()}bezierCurveTo(S,m,A,U,X,et){this._context.bezierCurveTo(S,m,A,U,X,et)}clearRect(S,m,A,U){this._context.clearRect(S,m,A,U)}clip(...S){this._context.clip.apply(this._context,S)}closePath(){this._context.closePath()}createImageData(S,m){const A=arguments;if(A.length===2)return this._context.createImageData(S,m);if(A.length===1)return this._context.createImageData(S)}createLinearGradient(S,m,A,U){return this._context.createLinearGradient(S,m,A,U)}createPattern(S,m){return this._context.createPattern(S,m)}createRadialGradient(S,m,A,U,X,et){return this._context.createRadialGradient(S,m,A,U,X,et)}drawImage(S,m,A,U,X,et,V,q,G){const J=arguments,P=this._context;J.length===3?P.drawImage(S,m,A):J.length===5?P.drawImage(S,m,A,U,X):J.length===9&&P.drawImage(S,m,A,U,X,et,V,q,G)}ellipse(S,m,A,U,X,et,V,q){this._context.ellipse(S,m,A,U,X,et,V,q)}isPointInPath(S,m,A,U){return A?this._context.isPointInPath(A,S,m,U):this._context.isPointInPath(S,m,U)}fill(...S){this._context.fill.apply(this._context,S)}fillRect(S,m,A,U){this._context.fillRect(S,m,A,U)}strokeRect(S,m,A,U){this._context.strokeRect(S,m,A,U)}fillText(S,m,A,U){U?this._context.fillText(S,m,A,U):this._context.fillText(S,m,A)}measureText(S){return this._context.measureText(S)}getImageData(S,m,A,U){return this._context.getImageData(S,m,A,U)}lineTo(S,m){this._context.lineTo(S,m)}moveTo(S,m){this._context.moveTo(S,m)}rect(S,m,A,U){this._context.rect(S,m,A,U)}roundRect(S,m,A,U,X){this._context.roundRect(S,m,A,U,X)}putImageData(S,m,A){this._context.putImageData(S,m,A)}quadraticCurveTo(S,m,A,U){this._context.quadraticCurveTo(S,m,A,U)}restore(){this._context.restore()}rotate(S){this._context.rotate(S)}save(){this._context.save()}scale(S,m){this._context.scale(S,m)}setLineDash(S){this._context.setLineDash?this._context.setLineDash(S):"mozDash"in this._context?this._context.mozDash=S:"webkitLineDash"in this._context&&(this._context.webkitLineDash=S)}getLineDash(){return this._context.getLineDash()}setTransform(S,m,A,U,X,et){this._context.setTransform(S,m,A,U,X,et)}stroke(S){S?this._context.stroke(S):this._context.stroke()}strokeText(S,m,A,U){this._context.strokeText(S,m,A,U)}transform(S,m,A,U,X,et){this._context.transform(S,m,A,U,X,et)}translate(S,m){this._context.translate(S,m)}_enableTrace(){let S=this,m=O.length,A=this.setAttr,U,X;const et=function(V){let q=S[V],G;S[V]=function(){return X=Z(Array.prototype.slice.call(arguments,0)),G=q.apply(S,arguments),S._trace({method:V,args:X}),G}};for(U=0;U<m;U++)et(O[U]);S.setAttr=function(){A.apply(S,arguments);const V=arguments[0];let q=arguments[1];(V==="shadowOffsetX"||V==="shadowOffsetY"||V==="shadowBlur")&&(q=q/this.canvas.getPixelRatio()),S._trace({property:V,val:q})}}_applyGlobalCompositeOperation(S){const m=S.attrs.globalCompositeOperation;!m||m==="source-over"||this.setAttr("globalCompositeOperation",m)}};ps.Context=v,R.forEach(function(Y){Object.defineProperty(v.prototype,Y,{get(){return this._context[Y]},set(S){this._context[Y]=S}})});class M extends v{constructor(S,{willReadFrequently:m=!1}={}){super(S),this._context=S._canvas.getContext("2d",{willReadFrequently:m})}_fillColor(S){const m=S.fill();this.setAttr("fillStyle",m),S._fillFunc(this)}_fillPattern(S){this.setAttr("fillStyle",S._getFillPattern()),S._fillFunc(this)}_fillLinearGradient(S){const m=S._getLinearGradient();m&&(this.setAttr("fillStyle",m),S._fillFunc(this))}_fillRadialGradient(S){const m=S._getRadialGradient();m&&(this.setAttr("fillStyle",m),S._fillFunc(this))}_fill(S){const m=S.fill(),A=S.getFillPriority();if(m&&A==="color"){this._fillColor(S);return}const U=S.getFillPatternImage();if(U&&A==="pattern"){this._fillPattern(S);return}const X=S.getFillLinearGradientColorStops();if(X&&A==="linear-gradient"){this._fillLinearGradient(S);return}const et=S.getFillRadialGradientColorStops();if(et&&A==="radial-gradient"){this._fillRadialGradient(S);return}m?this._fillColor(S):U?this._fillPattern(S):X?this._fillLinearGradient(S):et&&this._fillRadialGradient(S)}_strokeLinearGradient(S){const m=S.getStrokeLinearGradientStartPoint(),A=S.getStrokeLinearGradientEndPoint(),U=S.getStrokeLinearGradientColorStops(),X=this.createLinearGradient(m.x,m.y,A.x,A.y);if(U){for(let et=0;et<U.length;et+=2)X.addColorStop(U[et],U[et+1]);this.setAttr("strokeStyle",X)}}_stroke(S){const m=S.dash(),A=S.getStrokeScaleEnabled();if(S.hasStroke()){if(!A){this.save();const X=this.getCanvas().getPixelRatio();this.setTransform(X,0,0,X,0,0)}this._applyLineCap(S),m&&S.dashEnabled()&&(this.setLineDash(m),this.setAttr("lineDashOffset",S.dashOffset())),this.setAttr("lineWidth",S.strokeWidth()),S.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),S.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(S):this.setAttr("strokeStyle",S.stroke()),S._strokeFunc(this),A||this.restore()}}_applyShadow(S){var m,A,U;const X=(m=S.getShadowRGBA())!==null&&m!==void 0?m:"black",et=(A=S.getShadowBlur())!==null&&A!==void 0?A:5,V=(U=S.getShadowOffset())!==null&&U!==void 0?U:{x:0,y:0},q=S.getAbsoluteScale(),G=this.canvas.getPixelRatio(),J=q.x*G,P=q.y*G;this.setAttr("shadowColor",X),this.setAttr("shadowBlur",et*Math.min(Math.abs(J),Math.abs(P))),this.setAttr("shadowOffsetX",V.x*J),this.setAttr("shadowOffsetY",V.y*P)}}ps.SceneContext=M;class H extends v{constructor(S){super(S),this._context=S._canvas.getContext("2d",{willReadFrequently:!0})}_fill(S){this.save(),this.setAttr("fillStyle",S.colorKey),S._fillFuncHit(this),this.restore()}strokeShape(S){S.hasHitStroke()&&this._stroke(S)}_stroke(S){if(S.hasHitStroke()){const m=S.getStrokeScaleEnabled();if(!m){this.save();const X=this.getCanvas().getPixelRatio();this.setTransform(X,0,0,X,0,0)}this._applyLineCap(S);const A=S.hitStrokeWidth(),U=A==="auto"?S.strokeWidth():A;this.setAttr("lineWidth",U),this.setAttr("strokeStyle",S.colorKey),S._strokeFuncHit(this),m||this.restore()}}}return ps.HitContext=H,ps}var dv;function L2(){if(dv)return ms;dv=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.HitCanvas=ms.SceneCanvas=ms.Canvas=void 0;const y=va(),f=N3(),Z=se();let j;function N(){if(j)return j;const b=y.Util.createCanvasElement(),C=b.getContext("2d");return j=(function(){const z=Z.Konva._global.devicePixelRatio||1,O=C.webkitBackingStorePixelRatio||C.mozBackingStorePixelRatio||C.msBackingStorePixelRatio||C.oBackingStorePixelRatio||C.backingStorePixelRatio||1;return z/O})(),y.Util.releaseCanvas(b),j}let D=class{constructor(C){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const O=(C||{}).pixelRatio||Z.Konva.pixelRatio||N();this.pixelRatio=O,this._canvas=y.Util.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(C){const z=this.pixelRatio;this.pixelRatio=C,this.setSize(this.getWidth()/z,this.getHeight()/z)}setWidth(C){this.width=this._canvas.width=C*this.pixelRatio,this._canvas.style.width=C+"px";const z=this.pixelRatio;this.getContext()._context.scale(z,z)}setHeight(C){this.height=this._canvas.height=C*this.pixelRatio,this._canvas.style.height=C+"px";const z=this.pixelRatio;this.getContext()._context.scale(z,z)}getWidth(){return this.width}getHeight(){return this.height}setSize(C,z){this.setWidth(C||0),this.setHeight(z||0)}toDataURL(C,z){try{return this._canvas.toDataURL(C,z)}catch{try{return this._canvas.toDataURL()}catch(R){return y.Util.error("Unable to get data URL. "+R.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}};ms.Canvas=D;class T extends D{constructor(C={width:0,height:0,willReadFrequently:!1}){super(C),this.context=new f.SceneContext(this,{willReadFrequently:C.willReadFrequently}),this.setSize(C.width,C.height)}}ms.SceneCanvas=T;class _ extends D{constructor(C={width:0,height:0}){super(C),this.hitCanvas=!0,this.context=new f.HitContext(this),this.setSize(C.width,C.height)}}return ms.HitCanvas=_,ms}var up={},mv;function Sp(){return mv||(mv=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y.DD=void 0;const f=se(),Z=va();y.DD={get isDragging(){let j=!1;return y.DD._dragElements.forEach(N=>{N.dragStatus==="dragging"&&(j=!0)}),j},justDragged:!1,get node(){let j;return y.DD._dragElements.forEach(N=>{j=N.node}),j},_dragElements:new Map,_drag(j){const N=[];y.DD._dragElements.forEach((D,T)=>{const{node:_}=D,b=_.getStage();b.setPointersPositions(j),D.pointerId===void 0&&(D.pointerId=Z.Util._getFirstPointerId(j));const C=b._changedPointerPositions.find(z=>z.id===D.pointerId);if(C){if(D.dragStatus!=="dragging"){const z=_.dragDistance();if(Math.max(Math.abs(C.x-D.startPointerPos.x),Math.abs(C.y-D.startPointerPos.y))<z||(_.startDrag({evt:j}),!_.isDragging()))return}_._setDragPosition(j,D),N.push(_)}}),N.forEach(D=>{D.fire("dragmove",{type:"dragmove",target:D,evt:j},!0)})},_endDragBefore(j){const N=[];y.DD._dragElements.forEach(D=>{const{node:T}=D,_=T.getStage();if(j&&_.setPointersPositions(j),!_._changedPointerPositions.find(z=>z.id===D.pointerId))return;(D.dragStatus==="dragging"||D.dragStatus==="stopped")&&(y.DD.justDragged=!0,f.Konva._mouseListenClick=!1,f.Konva._touchListenClick=!1,f.Konva._pointerListenClick=!1,D.dragStatus="stopped");const C=D.node.getLayer()||D.node instanceof f.Konva.Stage&&D.node;C&&N.indexOf(C)===-1&&N.push(C)}),N.forEach(D=>{D.draw()})},_endDragAfter(j){y.DD._dragElements.forEach((N,D)=>{N.dragStatus==="stopped"&&N.node.fire("dragend",{type:"dragend",target:N.node,evt:j},!0),N.dragStatus!=="dragging"&&y.DD._dragElements.delete(D)})}},f.Konva.isBrowser&&(window.addEventListener("mouseup",y.DD._endDragBefore,!0),window.addEventListener("touchend",y.DD._endDragBefore,!0),window.addEventListener("touchcancel",y.DD._endDragBefore,!0),window.addEventListener("mousemove",y.DD._drag),window.addEventListener("touchmove",y.DD._drag),window.addEventListener("mouseup",y.DD._endDragAfter,!1),window.addEventListener("touchend",y.DD._endDragAfter,!1),window.addEventListener("touchcancel",y.DD._endDragAfter,!1))})(up)),up}var sp={},il={},pv;function ve(){if(pv)return il;pv=1,Object.defineProperty(il,"__esModule",{value:!0}),il.RGBComponent=j,il.alphaComponent=N,il.getNumberValidator=D,il.getNumberOrArrayOfNumbersValidator=T,il.getNumberOrAutoValidator=_,il.getStringValidator=b,il.getStringOrGradientValidator=C,il.getFunctionValidator=z,il.getNumberArrayValidator=O,il.getBooleanValidator=R,il.getComponentValidator=p;const y=se(),f=va();function Z(v){return f.Util._isString(v)?'"'+v+'"':Object.prototype.toString.call(v)==="[object Number]"||f.Util._isBoolean(v)?v:Object.prototype.toString.call(v)}function j(v){return v>255?255:v<0?0:Math.round(v)}function N(v){return v>1?1:v<1e-4?1e-4:v}function D(){if(y.Konva.isUnminified)return function(v,M){return f.Util._isNumber(v)||f.Util.warn(Z(v)+' is a not valid value for "'+M+'" attribute. The value should be a number.'),v}}function T(v){if(y.Konva.isUnminified)return function(M,H){let Y=f.Util._isNumber(M),S=f.Util._isArray(M)&&M.length==v;return!Y&&!S&&f.Util.warn(Z(M)+' is a not valid value for "'+H+'" attribute. The value should be a number or Array<number>('+v+")"),M}}function _(){if(y.Konva.isUnminified)return function(v,M){return f.Util._isNumber(v)||v==="auto"||f.Util.warn(Z(v)+' is a not valid value for "'+M+'" attribute. The value should be a number or "auto".'),v}}function b(){if(y.Konva.isUnminified)return function(v,M){return f.Util._isString(v)||f.Util.warn(Z(v)+' is a not valid value for "'+M+'" attribute. The value should be a string.'),v}}function C(){if(y.Konva.isUnminified)return function(v,M){const H=f.Util._isString(v),Y=Object.prototype.toString.call(v)==="[object CanvasGradient]"||v&&v.addColorStop;return H||Y||f.Util.warn(Z(v)+' is a not valid value for "'+M+'" attribute. The value should be a string or a native gradient.'),v}}function z(){if(y.Konva.isUnminified)return function(v,M){return f.Util._isFunction(v)||f.Util.warn(Z(v)+' is a not valid value for "'+M+'" attribute. The value should be a function.'),v}}function O(){if(y.Konva.isUnminified)return function(v,M){const H=Int8Array?Object.getPrototypeOf(Int8Array):null;return H&&v instanceof H||(f.Util._isArray(v)?v.forEach(function(Y){f.Util._isNumber(Y)||f.Util.warn('"'+M+'" attribute has non numeric element '+Y+". Make sure that all elements are numbers.")}):f.Util.warn(Z(v)+' is a not valid value for "'+M+'" attribute. The value should be a array of numbers.')),v}}function R(){if(y.Konva.isUnminified)return function(v,M){return v===!0||v===!1||f.Util.warn(Z(v)+' is a not valid value for "'+M+'" attribute. The value should be a boolean.'),v}}function p(v){if(y.Konva.isUnminified)return function(M,H){return M==null||f.Util.isObject(M)||f.Util.warn(Z(M)+' is a not valid value for "'+H+'" attribute. The value should be an object with properties '+v),M}}return il}var yv;function me(){return yv||(yv=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y.Factory=void 0;const f=va(),Z=ve(),j="get",N="set";y.Factory={addGetterSetter(D,T,_,b,C){y.Factory.addGetter(D,T,_),y.Factory.addSetter(D,T,b,C),y.Factory.addOverloadedGetterSetter(D,T)},addGetter(D,T,_){const b=j+f.Util._capitalize(T);D.prototype[b]=D.prototype[b]||function(){const C=this.attrs[T];return C===void 0?_:C}},addSetter(D,T,_,b){const C=N+f.Util._capitalize(T);D.prototype[C]||y.Factory.overWriteSetter(D,T,_,b)},overWriteSetter(D,T,_,b){const C=N+f.Util._capitalize(T);D.prototype[C]=function(z){return _&&z!==void 0&&z!==null&&(z=_.call(this,z,T)),this._setAttr(T,z),b&&b.call(this),this}},addComponentsGetterSetter(D,T,_,b,C){const z=_.length,O=f.Util._capitalize,R=j+O(T),p=N+O(T);D.prototype[R]=function(){const M={};for(let H=0;H<z;H++){const Y=_[H];M[Y]=this.getAttr(T+O(Y))}return M};const v=(0,Z.getComponentValidator)(_);D.prototype[p]=function(M){const H=this.attrs[T];b&&(M=b.call(this,M,T)),v&&v.call(this,M,T);for(const Y in M)M.hasOwnProperty(Y)&&this._setAttr(T+O(Y),M[Y]);return M||_.forEach(Y=>{this._setAttr(T+O(Y),void 0)}),this._fireChangeEvent(T,H,M),C&&C.call(this),this},y.Factory.addOverloadedGetterSetter(D,T)},addOverloadedGetterSetter(D,T){const _=f.Util._capitalize(T),b=N+_,C=j+_;D.prototype[T]=function(){return arguments.length?(this[b](arguments[0]),this):this[C]()}},addDeprecatedGetterSetter(D,T,_,b){f.Util.error("Adding deprecated "+T);const C=j+f.Util._capitalize(T),z=T+" property is deprecated and will be removed soon. Look at Konva change log for more information.";D.prototype[C]=function(){f.Util.error(z);const O=this.attrs[T];return O===void 0?_:O},y.Factory.addSetter(D,T,b,function(){f.Util.error(z)}),y.Factory.addOverloadedGetterSetter(D,T)},backCompat(D,T){f.Util.each(T,function(_,b){const C=D.prototype[b],z=j+f.Util._capitalize(_),O=N+f.Util._capitalize(_);function R(){C.apply(this,arguments),f.Util.error('"'+_+'" method is deprecated and will be removed soon. Use ""'+b+'" instead.')}D.prototype[_]=R,D.prototype[z]=R,D.prototype[O]=R})},afterSetFilter(){this._filterUpToDate=!1}}})(sp)),sp}var vv;function Ta(){if(vv)return e0;vv=1,Object.defineProperty(e0,"__esModule",{value:!0}),e0.Node=void 0;const y=L2(),f=Sp(),Z=me(),j=se(),N=va(),D=ve(),T="absoluteOpacity",_="allEventListeners",b="absoluteTransform",C="absoluteScale",z="canvas",O="Change",R="children",p="konva",v="listening",M="mouseenter",H="mouseleave",Y="pointerenter",S="pointerleave",m="touchenter",A="touchleave",U="set",X="Shape",et=" ",V="stage",q="transform",G="Stage",J="visible",P=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(et);let k=1,st=class vp{constructor(E){this._id=k++,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(E),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(E){(E===q||E===b)&&this._cache.get(E)?this._cache.get(E).dirty=!0:E?this._cache.delete(E):this._cache.clear()}_getCache(E,x){let Q=this._cache.get(E);return(Q===void 0||(E===q||E===b)&&Q.dirty===!0)&&(Q=x.call(this),this._cache.set(E,Q)),Q}_calculate(E,x,Q){if(!this._attachedDepsListeners.get(E)){const K=x.map(W=>W+"Change.konva").join(et);this.on(K,()=>{this._clearCache(E)}),this._attachedDepsListeners.set(E,!0)}return this._getCache(E,Q)}_getCanvasCache(){return this._cache.get(z)}_clearSelfAndDescendantCache(E){this._clearCache(E),E===b&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(z)){const{scene:E,filter:x,hit:Q,buffer:K}=this._cache.get(z);N.Util.releaseCanvas(E,x,Q,K),this._cache.delete(z)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(E){const x=E||{};let Q={};(x.x===void 0||x.y===void 0||x.width===void 0||x.height===void 0)&&(Q=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let K=Math.ceil(x.width||Q.width),W=Math.ceil(x.height||Q.height),pt=x.pixelRatio,lt=x.x===void 0?Math.floor(Q.x):x.x,gt=x.y===void 0?Math.floor(Q.y):x.y,Tt=x.offset||0,ft=x.drawBorder||!1,F=x.hitCanvasPixelRatio||1;if(!K||!W){N.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const ot=Math.abs(Math.round(Q.x)-lt)>.5?1:0,Ct=Math.abs(Math.round(Q.y)-gt)>.5?1:0;K+=Tt*2+ot,W+=Tt*2+Ct,lt-=Tt,gt-=Tt;const Dt=new y.SceneCanvas({pixelRatio:pt,width:K,height:W}),zt=new y.SceneCanvas({pixelRatio:pt,width:0,height:0,willReadFrequently:!0}),Vt=new y.HitCanvas({pixelRatio:F,width:K,height:W}),Qt=Dt.getContext(),he=Vt.getContext(),Ht=new y.SceneCanvas({width:Dt.width/Dt.pixelRatio+Math.abs(lt),height:Dt.height/Dt.pixelRatio+Math.abs(gt),pixelRatio:Dt.pixelRatio}),Ue=Ht.getContext();return Vt.isCache=!0,Dt.isCache=!0,this._cache.delete(z),this._filterUpToDate=!1,x.imageSmoothingEnabled===!1&&(Dt.getContext()._context.imageSmoothingEnabled=!1,zt.getContext()._context.imageSmoothingEnabled=!1),Qt.save(),he.save(),Ue.save(),Qt.translate(-lt,-gt),he.translate(-lt,-gt),Ue.translate(-lt,-gt),Ht.x=lt,Ht.y=gt,this._isUnderCache=!0,this._clearSelfAndDescendantCache(T),this._clearSelfAndDescendantCache(C),this.drawScene(Dt,this,Ht),this.drawHit(Vt,this),this._isUnderCache=!1,Qt.restore(),he.restore(),ft&&(Qt.save(),Qt.beginPath(),Qt.rect(0,0,K,W),Qt.closePath(),Qt.setAttr("strokeStyle","red"),Qt.setAttr("lineWidth",5),Qt.stroke(),Qt.restore()),this._cache.set(z,{scene:Dt,filter:zt,hit:Vt,buffer:Ht,x:lt,y:gt}),this._requestDraw(),this}isCached(){return this._cache.has(z)}getClientRect(E){throw new Error('abstract "getClientRect" method call')}_transformedRect(E,x){const Q=[{x:E.x,y:E.y},{x:E.x+E.width,y:E.y},{x:E.x+E.width,y:E.y+E.height},{x:E.x,y:E.y+E.height}];let K=1/0,W=1/0,pt=-1/0,lt=-1/0;const gt=this.getAbsoluteTransform(x);return Q.forEach(function(Tt){const ft=gt.point(Tt);K===void 0&&(K=pt=ft.x,W=lt=ft.y),K=Math.min(K,ft.x),W=Math.min(W,ft.y),pt=Math.max(pt,ft.x),lt=Math.max(lt,ft.y)}),{x:K,y:W,width:pt-K,height:lt-W}}_drawCachedSceneCanvas(E){E.save(),E._applyOpacity(this),E._applyGlobalCompositeOperation(this);const x=this._getCanvasCache();E.translate(x.x,x.y);const Q=this._getCachedSceneCanvas(),K=Q.pixelRatio;E.drawImage(Q._canvas,0,0,Q.width/K,Q.height/K),E.restore()}_drawCachedHitCanvas(E){const x=this._getCanvasCache(),Q=x.hit;E.save(),E.translate(x.x,x.y),E.drawImage(Q._canvas,0,0,Q.width/Q.pixelRatio,Q.height/Q.pixelRatio),E.restore()}_getCachedSceneCanvas(){let E=this.filters(),x=this._getCanvasCache(),Q=x.scene,K=x.filter,W=K.getContext(),pt,lt,gt,Tt;if(E){if(!this._filterUpToDate){const ft=Q.pixelRatio;K.setSize(Q.width/Q.pixelRatio,Q.height/Q.pixelRatio);try{for(pt=E.length,W.clear(),W.drawImage(Q._canvas,0,0,Q.getWidth()/ft,Q.getHeight()/ft),lt=W.getImageData(0,0,K.getWidth(),K.getHeight()),gt=0;gt<pt;gt++){if(Tt=E[gt],typeof Tt!="function"){N.Util.error("Filter should be type of function, but got "+typeof Tt+" instead. Please check correct filters");continue}Tt.call(this,lt),W.putImageData(lt,0,0)}}catch(F){N.Util.error("Unable to apply filter. "+F.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return K}return Q}on(E,x){if(this._cache&&this._cache.delete(_),arguments.length===3)return this._delegate.apply(this,arguments);const Q=E.split(et);for(let K=0;K<Q.length;K++){const pt=Q[K].split("."),lt=pt[0],gt=pt[1]||"";this.eventListeners[lt]||(this.eventListeners[lt]=[]),this.eventListeners[lt].push({name:gt,handler:x})}return this}off(E,x){let Q=(E||"").split(et),K=Q.length,W,pt,lt,gt,Tt,ft;if(this._cache&&this._cache.delete(_),!E)for(pt in this.eventListeners)this._off(pt);for(W=0;W<K;W++)if(lt=Q[W],gt=lt.split("."),Tt=gt[0],ft=gt[1],Tt)this.eventListeners[Tt]&&this._off(Tt,ft,x);else for(pt in this.eventListeners)this._off(pt,ft,x);return this}dispatchEvent(E){const x={target:this,type:E.type,evt:E};return this.fire(E.type,x),this}addEventListener(E,x){return this.on(E,function(Q){x.call(this,Q.evt)}),this}removeEventListener(E){return this.off(E),this}_delegate(E,x,Q){const K=this;this.on(E,function(W){const pt=W.target.findAncestors(x,!0,K);for(let lt=0;lt<pt.length;lt++)W=N.Util.cloneObject(W),W.currentTarget=pt[lt],Q.call(pt[lt],W)})}remove(){return this.isDragging()&&this.stopDrag(),f.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(b),this._clearSelfAndDescendantCache(T),this._clearSelfAndDescendantCache(C),this._clearSelfAndDescendantCache(V),this._clearSelfAndDescendantCache(J),this._clearSelfAndDescendantCache(v)}_remove(){this._clearCaches();const E=this.getParent();E&&E.children&&(E.children.splice(this.index,1),E._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(E){const x="get"+N.Util._capitalize(E);return N.Util._isFunction(this[x])?this[x]():this.attrs[E]}getAncestors(){let E=this.getParent(),x=[];for(;E;)x.push(E),E=E.getParent();return x}getAttrs(){return this.attrs||{}}setAttrs(E){return this._batchTransformChanges(()=>{let x,Q;if(!E)return this;for(x in E)x!==R&&(Q=U+N.Util._capitalize(x),N.Util._isFunction(this[Q])?this[Q](E[x]):this._setAttr(x,E[x]))}),this}isListening(){return this._getCache(v,this._isListening)}_isListening(E){if(!this.listening())return!1;const Q=this.getParent();return Q&&Q!==E&&this!==E?Q._isListening(E):!0}isVisible(){return this._getCache(J,this._isVisible)}_isVisible(E){if(!this.visible())return!1;const Q=this.getParent();return Q&&Q!==E&&this!==E?Q._isVisible(E):!0}shouldDrawHit(E,x=!1){if(E)return this._isVisible(E)&&this._isListening(E);const Q=this.getLayer();let K=!1;f.DD._dragElements.forEach(pt=>{pt.dragStatus==="dragging"&&(pt.node.nodeType==="Stage"||pt.node.getLayer()===Q)&&(K=!0)});const W=!x&&!j.Konva.hitOnDragEnabled&&(K||j.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!W}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let E=this.getDepth(),x=this,Q=0,K,W,pt,lt;function gt(ft){for(K=[],W=ft.length,pt=0;pt<W;pt++)lt=ft[pt],Q++,lt.nodeType!==X&&(K=K.concat(lt.getChildren().slice())),lt._id===x._id&&(pt=W);K.length>0&&K[0].getDepth()<=E&&gt(K)}const Tt=this.getStage();return x.nodeType!==G&&Tt&&gt(Tt.getChildren()),Q}getDepth(){let E=0,x=this.parent;for(;x;)E++,x=x.parent;return E}_batchTransformChanges(E){this._batchingTransformChange=!0,E(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(q),this._clearSelfAndDescendantCache(b)),this._needClearTransformCache=!1}setPosition(E){return this._batchTransformChanges(()=>{this.x(E.x),this.y(E.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const E=this.getStage();if(!E)return null;const x=E.getPointerPosition();if(!x)return null;const Q=this.getAbsoluteTransform().copy();return Q.invert(),Q.point(x)}getAbsolutePosition(E){let x=!1,Q=this.parent;for(;Q;){if(Q.isCached()){x=!0;break}Q=Q.parent}x&&!E&&(E=!0);const K=this.getAbsoluteTransform(E).getMatrix(),W=new N.Transform,pt=this.offset();return W.m=K.slice(),W.translate(pt.x,pt.y),W.getTranslation()}setAbsolutePosition(E){const{x,y:Q,...K}=this._clearTransform();this.attrs.x=x,this.attrs.y=Q,this._clearCache(q);const W=this._getAbsoluteTransform().copy();return W.invert(),W.translate(E.x,E.y),E={x:this.attrs.x+W.getTranslation().x,y:this.attrs.y+W.getTranslation().y},this._setTransform(K),this.setPosition({x:E.x,y:E.y}),this._clearCache(q),this._clearSelfAndDescendantCache(b),this}_setTransform(E){let x;for(x in E)this.attrs[x]=E[x]}_clearTransform(){const E={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,E}move(E){let x=E.x,Q=E.y,K=this.x(),W=this.y();return x!==void 0&&(K+=x),Q!==void 0&&(W+=Q),this.setPosition({x:K,y:W}),this}_eachAncestorReverse(E,x){let Q=[],K=this.getParent(),W,pt;if(!(x&&x._id===this._id)){for(Q.unshift(this);K&&(!x||K._id!==x._id);)Q.unshift(K),K=K.parent;for(W=Q.length,pt=0;pt<W;pt++)E(Q[pt])}}rotate(E){return this.rotation(this.rotation()+E),this}moveToTop(){if(!this.parent)return N.Util.warn("Node has no parent. moveToTop function is ignored."),!1;const E=this.index,x=this.parent.getChildren().length;return E<x-1?(this.parent.children.splice(E,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return N.Util.warn("Node has no parent. moveUp function is ignored."),!1;const E=this.index,x=this.parent.getChildren().length;return E<x-1?(this.parent.children.splice(E,1),this.parent.children.splice(E+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return N.Util.warn("Node has no parent. moveDown function is ignored."),!1;const E=this.index;return E>0?(this.parent.children.splice(E,1),this.parent.children.splice(E-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return N.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const E=this.index;return E>0?(this.parent.children.splice(E,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(E){if(!this.parent)return N.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(E<0||E>=this.parent.children.length)&&N.Util.warn("Unexpected value "+E+" 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 x=this.index;return this.parent.children.splice(x,1),this.parent.children.splice(E,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(T,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let E=this.opacity();const x=this.getParent();return x&&!x._isUnderCache&&(E*=x.getAbsoluteOpacity()),E}moveTo(E){return this.getParent()!==E&&(this._remove(),E.add(this)),this}toObject(){let E=this.getAttrs(),x,Q,K,W,pt;const lt={attrs:{},className:this.getClassName()};for(x in E)Q=E[x],pt=N.Util.isObject(Q)&&!N.Util._isPlainObject(Q)&&!N.Util._isArray(Q),!pt&&(K=typeof this[x]=="function"&&this[x],delete E[x],W=K?K.call(this):null,E[x]=Q,W!==Q&&(lt.attrs[x]=Q));return N.Util._prepareToStringify(lt)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(E,x,Q){const K=[];x&&this._isMatch(E)&&K.push(this);let W=this.parent;for(;W;){if(W===Q)return K;W._isMatch(E)&&K.push(W),W=W.parent}return K}isAncestorOf(E){return!1}findAncestor(E,x,Q){return this.findAncestors(E,x,Q)[0]}_isMatch(E){if(!E)return!1;if(typeof E=="function")return E(this);let x=E.replace(/ /g,"").split(","),Q=x.length,K,W;for(K=0;K<Q;K++)if(W=x[K],N.Util.isValidSelector(W)||(N.Util.warn('Selector "'+W+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),N.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),N.Util.warn("Konva is awesome, right?")),W.charAt(0)==="#"){if(this.id()===W.slice(1))return!0}else if(W.charAt(0)==="."){if(this.hasName(W.slice(1)))return!0}else if(this.className===W||this.nodeType===W)return!0;return!1}getLayer(){const E=this.getParent();return E?E.getLayer():null}getStage(){return this._getCache(V,this._getStage)}_getStage(){const E=this.getParent();return E?E.getStage():null}fire(E,x={},Q){return x.target=x.target||this,Q?this._fireAndBubble(E,x):this._fire(E,x),this}getAbsoluteTransform(E){return E?this._getAbsoluteTransform(E):this._getCache(b,this._getAbsoluteTransform)}_getAbsoluteTransform(E){let x;if(E)return x=new N.Transform,this._eachAncestorReverse(function(Q){const K=Q.transformsEnabled();K==="all"?x.multiply(Q.getTransform()):K==="position"&&x.translate(Q.x()-Q.offsetX(),Q.y()-Q.offsetY())},E),x;{x=this._cache.get(b)||new N.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(x):x.reset();const Q=this.transformsEnabled();if(Q==="all")x.multiply(this.getTransform());else if(Q==="position"){const K=this.attrs.x||0,W=this.attrs.y||0,pt=this.attrs.offsetX||0,lt=this.attrs.offsetY||0;x.translate(K-pt,W-lt)}return x.dirty=!1,x}}getAbsoluteScale(E){let x=this;for(;x;)x._isUnderCache&&(E=x),x=x.getParent();const K=this.getAbsoluteTransform(E).decompose();return{x:K.scaleX,y:K.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(q,this._getTransform)}_getTransform(){var E,x;const Q=this._cache.get(q)||new N.Transform;Q.reset();const K=this.x(),W=this.y(),pt=j.Konva.getAngle(this.rotation()),lt=(E=this.attrs.scaleX)!==null&&E!==void 0?E:1,gt=(x=this.attrs.scaleY)!==null&&x!==void 0?x:1,Tt=this.attrs.skewX||0,ft=this.attrs.skewY||0,F=this.attrs.offsetX||0,ot=this.attrs.offsetY||0;return(K!==0||W!==0)&&Q.translate(K,W),pt!==0&&Q.rotate(pt),(Tt!==0||ft!==0)&&Q.skew(Tt,ft),(lt!==1||gt!==1)&&Q.scale(lt,gt),(F!==0||ot!==0)&&Q.translate(-1*F,-1*ot),Q.dirty=!1,Q}clone(E){let x=N.Util.cloneObject(this.attrs),Q,K,W,pt,lt;for(Q in E)x[Q]=E[Q];const gt=new this.constructor(x);for(Q in this.eventListeners)for(K=this.eventListeners[Q],W=K.length,pt=0;pt<W;pt++)lt=K[pt],lt.name.indexOf(p)<0&&(gt.eventListeners[Q]||(gt.eventListeners[Q]=[]),gt.eventListeners[Q].push(lt));return gt}_toKonvaCanvas(E){E=E||{};const x=this.getClientRect(),Q=this.getStage(),K=E.x!==void 0?E.x:Math.floor(x.x),W=E.y!==void 0?E.y:Math.floor(x.y),pt=E.pixelRatio||1,lt=new y.SceneCanvas({width:E.width||Math.ceil(x.width)||(Q?Q.width():0),height:E.height||Math.ceil(x.height)||(Q?Q.height():0),pixelRatio:pt}),gt=lt.getContext(),Tt=new y.SceneCanvas({width:lt.width/lt.pixelRatio+Math.abs(K),height:lt.height/lt.pixelRatio+Math.abs(W),pixelRatio:lt.pixelRatio});return E.imageSmoothingEnabled===!1&&(gt._context.imageSmoothingEnabled=!1),gt.save(),(K||W)&&gt.translate(-1*K,-1*W),this.drawScene(lt,void 0,Tt),gt.restore(),lt}toCanvas(E){return this._toKonvaCanvas(E)._canvas}toDataURL(E){E=E||{};const x=E.mimeType||null,Q=E.quality||null,K=this._toKonvaCanvas(E).toDataURL(x,Q);return E.callback&&E.callback(K),K}toImage(E){return new Promise((x,Q)=>{try{const K=E?.callback;K&&delete E.callback,N.Util._urlToImage(this.toDataURL(E),function(W){x(W),K?.(W)})}catch(K){Q(K)}})}toBlob(E){return new Promise((x,Q)=>{try{const K=E?.callback;K&&delete E.callback,this.toCanvas(E).toBlob(W=>{x(W),K?.(W)},E?.mimeType,E?.quality)}catch(K){Q(K)}})}setSize(E){return this.width(E.width),this.height(E.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():j.Konva.dragDistance}_off(E,x,Q){let K=this.eventListeners[E],W,pt,lt;for(W=0;W<K.length;W++)if(pt=K[W].name,lt=K[W].handler,(pt!=="konva"||x==="konva")&&(!x||pt===x)&&(!Q||Q===lt)){if(K.splice(W,1),K.length===0){delete this.eventListeners[E];break}W--}}_fireChangeEvent(E,x,Q){this._fire(E+O,{oldVal:x,newVal:Q})}addName(E){if(!this.hasName(E)){const x=this.name(),Q=x?x+" "+E:E;this.name(Q)}return this}hasName(E){if(!E)return!1;const x=this.name();return x?(x||"").split(/\s/g).indexOf(E)!==-1:!1}removeName(E){const x=(this.name()||"").split(/\s/g),Q=x.indexOf(E);return Q!==-1&&(x.splice(Q,1),this.name(x.join(" "))),this}setAttr(E,x){const Q=this[U+N.Util._capitalize(E)];return N.Util._isFunction(Q)?Q.call(this,x):this._setAttr(E,x),this}_requestDraw(){if(j.Konva.autoDrawEnabled){const E=this.getLayer()||this.getStage();E?.batchDraw()}}_setAttr(E,x){const Q=this.attrs[E];Q===x&&!N.Util.isObject(x)||(x==null?delete this.attrs[E]:this.attrs[E]=x,this._shouldFireChangeEvents&&this._fireChangeEvent(E,Q,x),this._requestDraw())}_setComponentAttr(E,x,Q){let K;Q!==void 0&&(K=this.attrs[E],K||(this.attrs[E]=this.getAttr(E)),this.attrs[E][x]=Q,this._fireChangeEvent(E,K,Q))}_fireAndBubble(E,x,Q){x&&this.nodeType===X&&(x.target=this);const K=[M,H,Y,S,m,A];if(!(K.indexOf(E)!==-1&&(Q&&(this===Q||this.isAncestorOf&&this.isAncestorOf(Q))||this.nodeType==="Stage"&&!Q))){this._fire(E,x);const pt=K.indexOf(E)!==-1&&Q&&Q.isAncestorOf&&Q.isAncestorOf(this)&&!Q.isAncestorOf(this.parent);(x&&!x.cancelBubble||!x)&&this.parent&&this.parent.isListening()&&!pt&&(Q&&Q.parent?this._fireAndBubble.call(this.parent,E,x,Q):this._fireAndBubble.call(this.parent,E,x))}}_getProtoListeners(E){var x,Q,K;const W=(x=this._cache.get(_))!==null&&x!==void 0?x:{};let pt=W?.[E];if(pt===void 0){pt=[];let lt=Object.getPrototypeOf(this);for(;lt;){const gt=(K=(Q=lt.eventListeners)===null||Q===void 0?void 0:Q[E])!==null&&K!==void 0?K:[];pt.push(...gt),lt=Object.getPrototypeOf(lt)}W[E]=pt,this._cache.set(_,W)}return pt}_fire(E,x){x=x||{},x.currentTarget=this,x.type=E;const Q=this._getProtoListeners(E);if(Q)for(let W=0;W<Q.length;W++)Q[W].handler.call(this,x);const K=this.eventListeners[E];if(K)for(let W=0;W<K.length;W++)K[W].handler.call(this,x)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(E){const x=E?E.pointerId:void 0,Q=this.getStage(),K=this.getAbsolutePosition();if(!Q)return;const W=Q._getPointerById(x)||Q._changedPointerPositions[0]||K;f.DD._dragElements.set(this._id,{node:this,startPointerPos:W,offset:{x:W.x-K.x,y:W.y-K.y},dragStatus:"ready",pointerId:x})}startDrag(E,x=!0){f.DD._dragElements.has(this._id)||this._createDragElement(E);const Q=f.DD._dragElements.get(this._id);Q.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:E&&E.evt},x)}_setDragPosition(E,x){const Q=this.getStage()._getPointerById(x.pointerId);if(!Q)return;let K={x:Q.x-x.offset.x,y:Q.y-x.offset.y};const W=this.dragBoundFunc();if(W!==void 0){const pt=W.call(this,K,E);pt?K=pt:N.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==K.x||this._lastPos.y!==K.y)&&(this.setAbsolutePosition(K),this._requestDraw()),this._lastPos=K}stopDrag(E){const x=f.DD._dragElements.get(this._id);x&&(x.dragStatus="stopped"),f.DD._endDragBefore(E),f.DD._endDragAfter(E)}setDraggable(E){this._setAttr("draggable",E),this._dragChange()}isDragging(){const E=f.DD._dragElements.get(this._id);return E?E.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(E){if(!(!(E.evt.button!==void 0)||j.Konva.dragButtons.indexOf(E.evt.button)>=0)||this.isDragging())return;let K=!1;f.DD._dragElements.forEach(W=>{this.isAncestorOf(W.node)&&(K=!0)}),K||this._createDragElement(E)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const x=f.DD._dragElements.get(this._id),Q=x&&x.dragStatus==="dragging",K=x&&x.dragStatus==="ready";Q?this.stopDrag():K&&f.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(E={x:0,y:0}){const x=this.getStage();if(!x)return!1;const Q={x:-E.x,y:-E.y,width:x.width()+2*E.x,height:x.height()+2*E.y};return N.Util.haveIntersection(Q,this.getClientRect())}static create(E,x){return N.Util._isString(E)&&(E=JSON.parse(E)),this._createNode(E,x)}static _createNode(E,x){let Q=vp.prototype.getClassName.call(E),K=E.children,W,pt,lt;x&&(E.attrs.container=x),j.Konva[Q]||(N.Util.warn('Can not find a node with class name "'+Q+'". Fallback to "Shape".'),Q="Shape");const gt=j.Konva[Q];if(W=new gt(E.attrs),K)for(pt=K.length,lt=0;lt<pt;lt++)W.add(vp._createNode(K[lt]));return W}};e0.Node=st,st.prototype.nodeType="Node",st.prototype._attrsAffectingSize=[],st.prototype.eventListeners={},st.prototype.on.call(st.prototype,P,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(q),this._clearSelfAndDescendantCache(b)}),st.prototype.on.call(st.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(J)}),st.prototype.on.call(st.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(v)}),st.prototype.on.call(st.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(T)});const at=Z.Factory.addGetterSetter;return at(st,"zIndex"),at(st,"absolutePosition"),at(st,"position"),at(st,"x",0,(0,D.getNumberValidator)()),at(st,"y",0,(0,D.getNumberValidator)()),at(st,"globalCompositeOperation","source-over",(0,D.getStringValidator)()),at(st,"opacity",1,(0,D.getNumberValidator)()),at(st,"name","",(0,D.getStringValidator)()),at(st,"id","",(0,D.getStringValidator)()),at(st,"rotation",0,(0,D.getNumberValidator)()),Z.Factory.addComponentsGetterSetter(st,"scale",["x","y"]),at(st,"scaleX",1,(0,D.getNumberValidator)()),at(st,"scaleY",1,(0,D.getNumberValidator)()),Z.Factory.addComponentsGetterSetter(st,"skew",["x","y"]),at(st,"skewX",0,(0,D.getNumberValidator)()),at(st,"skewY",0,(0,D.getNumberValidator)()),Z.Factory.addComponentsGetterSetter(st,"offset",["x","y"]),at(st,"offsetX",0,(0,D.getNumberValidator)()),at(st,"offsetY",0,(0,D.getNumberValidator)()),at(st,"dragDistance",void 0,(0,D.getNumberValidator)()),at(st,"width",0,(0,D.getNumberValidator)()),at(st,"height",0,(0,D.getNumberValidator)()),at(st,"listening",!0,(0,D.getBooleanValidator)()),at(st,"preventDefault",!0,(0,D.getBooleanValidator)()),at(st,"filters",void 0,function(w){return this._filterUpToDate=!1,w}),at(st,"visible",!0,(0,D.getBooleanValidator)()),at(st,"transformsEnabled","all",(0,D.getStringValidator)()),at(st,"size"),at(st,"dragBoundFunc"),at(st,"draggable",!1,(0,D.getBooleanValidator)()),Z.Factory.backCompat(st,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),e0}var a0={},gv;function Z2(){if(gv)return a0;gv=1,Object.defineProperty(a0,"__esModule",{value:!0}),a0.Container=void 0;const y=me(),f=Ta(),Z=ve();let j=class extends f.Node{constructor(){super(...arguments),this.children=[]}getChildren(D){const T=this.children||[];return D?T.filter(D):T}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(D=>{D.parent=null,D.index=0,D.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(D=>{D.parent=null,D.index=0,D.destroy()}),this.children=[],this._requestDraw(),this}add(...D){if(D.length===0)return this;if(D.length>1){for(let _=0;_<D.length;_++)this.add(D[_]);return this}const T=D[0];return T.getParent()?(T.moveTo(this),this):(this._validateAdd(T),T.index=this.getChildren().length,T.parent=this,T._clearCaches(),this.getChildren().push(T),this._fire("add",{child:T}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(D){return this._generalFind(D,!1)}findOne(D){const T=this._generalFind(D,!0);return T.length>0?T[0]:void 0}_generalFind(D,T){const _=[];return this._descendants(b=>{const C=b._isMatch(D);return C&&_.push(b),!!(C&&T)}),_}_descendants(D){let T=!1;const _=this.getChildren();for(const b of _){if(T=D(b),T)return!0;if(b.hasChildren()&&(T=b._descendants(D),T))return!0}return!1}toObject(){const D=f.Node.prototype.toObject.call(this);return D.children=[],this.getChildren().forEach(T=>{D.children.push(T.toObject())}),D}isAncestorOf(D){let T=D.getParent();for(;T;){if(T._id===this._id)return!0;T=T.getParent()}return!1}clone(D){const T=f.Node.prototype.clone.call(this,D);return this.getChildren().forEach(function(_){T.add(_.clone())}),T}getAllIntersections(D){const T=[];return this.find("Shape").forEach(_=>{_.isVisible()&&_.intersects(D)&&T.push(_)}),T}_clearSelfAndDescendantCache(D){var T;super._clearSelfAndDescendantCache(D),!this.isCached()&&((T=this.children)===null||T===void 0||T.forEach(function(_){_._clearSelfAndDescendantCache(D)}))}_setChildrenIndices(){var D;(D=this.children)===null||D===void 0||D.forEach(function(T,_){T.index=_}),this._requestDraw()}drawScene(D,T,_){const b=this.getLayer(),C=D||b&&b.getCanvas(),z=C&&C.getContext(),O=this._getCanvasCache(),R=O&&O.scene,p=C&&C.isCache;if(!this.isVisible()&&!p)return this;if(R){z.save();const v=this.getAbsoluteTransform(T).getMatrix();z.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(z),z.restore()}else this._drawChildren("drawScene",C,T,_);return this}drawHit(D,T){if(!this.shouldDrawHit(T))return this;const _=this.getLayer(),b=D||_&&_.hitCanvas,C=b&&b.getContext(),z=this._getCanvasCache();if(z&&z.hit){C.save();const R=this.getAbsoluteTransform(T).getMatrix();C.transform(R[0],R[1],R[2],R[3],R[4],R[5]),this._drawCachedHitCanvas(C),C.restore()}else this._drawChildren("drawHit",b,T);return this}_drawChildren(D,T,_,b){var C;const z=T&&T.getContext(),O=this.clipWidth(),R=this.clipHeight(),p=this.clipFunc(),v=typeof O=="number"&&typeof R=="number"||p,M=_===this;if(v){z.save();const Y=this.getAbsoluteTransform(_);let S=Y.getMatrix();z.transform(S[0],S[1],S[2],S[3],S[4],S[5]),z.beginPath();let m;if(p)m=p.call(this,z,this);else{const A=this.clipX(),U=this.clipY();z.rect(A||0,U||0,O,R)}z.clip.apply(z,m),S=Y.copy().invert().getMatrix(),z.transform(S[0],S[1],S[2],S[3],S[4],S[5])}const H=!M&&this.globalCompositeOperation()!=="source-over"&&D==="drawScene";H&&(z.save(),z._applyGlobalCompositeOperation(this)),(C=this.children)===null||C===void 0||C.forEach(function(Y){Y[D](T,_,b)}),H&&z.restore(),v&&z.restore()}getClientRect(D={}){var T;const _=D.skipTransform,b=D.relativeTo;let C,z,O,R,p={x:1/0,y:1/0,width:0,height:0};const v=this;(T=this.children)===null||T===void 0||T.forEach(function(Y){if(!Y.visible())return;const S=Y.getClientRect({relativeTo:v,skipShadow:D.skipShadow,skipStroke:D.skipStroke});S.width===0&&S.height===0||(C===void 0?(C=S.x,z=S.y,O=S.x+S.width,R=S.y+S.height):(C=Math.min(C,S.x),z=Math.min(z,S.y),O=Math.max(O,S.x+S.width),R=Math.max(R,S.y+S.height)))});const M=this.find("Shape");let H=!1;for(let Y=0;Y<M.length;Y++)if(M[Y]._isVisible(this)){H=!0;break}return H&&C!==void 0?p={x:C,y:z,width:O-C,height:R-z}:p={x:0,y:0,width:0,height:0},_?p:this._transformedRect(p,b)}};return a0.Container=j,y.Factory.addComponentsGetterSetter(j,"clip",["x","y","width","height"]),y.Factory.addGetterSetter(j,"clipX",void 0,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(j,"clipY",void 0,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(j,"clipWidth",void 0,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(j,"clipHeight",void 0,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(j,"clipFunc"),a0}var op={},To={},Sv;function z3(){if(Sv)return To;Sv=1,Object.defineProperty(To,"__esModule",{value:!0}),To.getCapturedShape=j,To.createEvent=N,To.hasPointerCapture=D,To.setPointerCapture=T,To.releaseCapture=_;const y=se(),f=new Map,Z=y.Konva._global.PointerEvent!==void 0;function j(b){return f.get(b)}function N(b){return{evt:b,pointerId:b.pointerId}}function D(b,C){return f.get(b)===C}function T(b,C){_(b),C.getStage()&&(f.set(b,C),Z&&C._fire("gotpointercapture",N(new PointerEvent("gotpointercapture"))))}function _(b,C){const z=f.get(b);if(!z)return;const O=z.getStage();O&&O.content,f.delete(b),Z&&z._fire("lostpointercapture",N(new PointerEvent("lostpointercapture")))}return To}var _v;function c4(){return _v||(_v=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y.Stage=y.stages=void 0;const f=va(),Z=me(),j=Z2(),N=se(),D=L2(),T=Sp(),_=se(),b=z3(),C="Stage",z="string",O="px",R="mouseout",p="mouseleave",v="mouseover",M="mouseenter",H="mousemove",Y="mousedown",S="mouseup",m="pointermove",A="pointerdown",U="pointerup",X="pointercancel",et="lostpointercapture",V="pointerout",q="pointerleave",G="pointerover",J="pointerenter",P="contextmenu",k="touchstart",st="touchend",at="touchmove",w="touchcancel",E="wheel",x=5,Q=[[M,"_pointerenter"],[Y,"_pointerdown"],[H,"_pointermove"],[S,"_pointerup"],[p,"_pointerleave"],[k,"_pointerdown"],[at,"_pointermove"],[st,"_pointerup"],[w,"_pointercancel"],[v,"_pointerover"],[E,"_wheel"],[P,"_contextmenu"],[A,"_pointerdown"],[m,"_pointermove"],[U,"_pointerup"],[X,"_pointercancel"],[q,"_pointerleave"],[et,"_lostpointercapture"]],K={mouse:{[V]:R,[q]:p,[G]:v,[J]:M,[m]:H,[A]:Y,[U]:S,[X]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[V]:"touchout",[q]:"touchleave",[G]:"touchover",[J]:"touchenter",[m]:at,[A]:k,[U]:st,[X]:w,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[V]:V,[q]:q,[G]:G,[J]:J,[m]:m,[A]:A,[U]:U,[X]:X,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},W=ft=>ft.indexOf("pointer")>=0?"pointer":ft.indexOf("touch")>=0?"touch":"mouse",pt=ft=>{const F=W(ft);if(F==="pointer")return N.Konva.pointerEventsEnabled&&K.pointer;if(F==="touch")return K.touch;if(F==="mouse")return K.mouse};function lt(ft={}){return(ft.clipFunc||ft.clipWidth||ft.clipHeight)&&f.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ft}const gt="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);";y.stages=[];class Tt extends j.Container{constructor(F){super(lt(F)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),y.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{lt(this.attrs)}),this._checkVisibility()}_validateAdd(F){const ot=F.getType()==="Layer",Ct=F.getType()==="FastLayer";ot||Ct||f.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const F=this.visible()?"":"none";this.content.style.display=F}setContainer(F){if(typeof F===z){let ot;if(F.charAt(0)==="."){const Ct=F.slice(1);F=document.getElementsByClassName(Ct)[0]}else F.charAt(0)!=="#"?ot=F:ot=F.slice(1),F=document.getElementById(ot);if(!F)throw"Can not find container in document with id "+ot}return this._setAttr("container",F),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),F.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const F=this.children,ot=F.length;for(let Ct=0;Ct<ot;Ct++)F[Ct].clear();return this}clone(F){return F||(F={}),F.container=typeof document<"u"&&document.createElement("div"),j.Container.prototype.clone.call(this,F)}destroy(){super.destroy();const F=this.content;F&&f.Util._isInDocument(F)&&this.container().removeChild(F);const ot=y.stages.indexOf(this);return ot>-1&&y.stages.splice(ot,1),f.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const F=this._pointerPositions[0]||this._changedPointerPositions[0];return F?{x:F.x,y:F.y}:(f.Util.warn(gt),null)}_getPointerById(F){return this._pointerPositions.find(ot=>ot.id===F)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(F){F=F||{},F.x=F.x||0,F.y=F.y||0,F.width=F.width||this.width(),F.height=F.height||this.height();const ot=new D.SceneCanvas({width:F.width,height:F.height,pixelRatio:F.pixelRatio||1}),Ct=ot.getContext()._context,Dt=this.children;return(F.x||F.y)&&Ct.translate(-1*F.x,-1*F.y),Dt.forEach(function(zt){if(!zt.isVisible())return;const Vt=zt._toKonvaCanvas(F);Ct.drawImage(Vt._canvas,F.x,F.y,Vt.getWidth()/Vt.getPixelRatio(),Vt.getHeight()/Vt.getPixelRatio())}),ot}getIntersection(F){if(!F)return null;const ot=this.children,Ct=ot.length,Dt=Ct-1;for(let zt=Dt;zt>=0;zt--){const Vt=ot[zt].getIntersection(F);if(Vt)return Vt}return null}_resizeDOM(){const F=this.width(),ot=this.height();this.content&&(this.content.style.width=F+O,this.content.style.height=ot+O),this.bufferCanvas.setSize(F,ot),this.bufferHitCanvas.setSize(F,ot),this.children.forEach(Ct=>{Ct.setSize({width:F,height:ot}),Ct.draw()})}add(F,...ot){if(arguments.length>1){for(let Dt=0;Dt<arguments.length;Dt++)this.add(arguments[Dt]);return this}super.add(F);const Ct=this.children.length;return Ct>x&&f.Util.warn("The stage has "+Ct+" 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."),F.setSize({width:this.width(),height:this.height()}),F.draw(),N.Konva.isBrowser&&this.content.appendChild(F.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(F){return b.hasPointerCapture(F,this)}setPointerCapture(F){b.setPointerCapture(F,this)}releaseCapture(F){b.releaseCapture(F,this)}getLayers(){return this.children}_bindContentEvents(){N.Konva.isBrowser&&Q.forEach(([F,ot])=>{this.content.addEventListener(F,Ct=>{this[ot](Ct)},{passive:!1})})}_pointerenter(F){this.setPointersPositions(F);const ot=pt(F.type);ot&&this._fire(ot.pointerenter,{evt:F,target:this,currentTarget:this})}_pointerover(F){this.setPointersPositions(F);const ot=pt(F.type);ot&&this._fire(ot.pointerover,{evt:F,target:this,currentTarget:this})}_getTargetShape(F){let ot=this[F+"targetShape"];return ot&&!ot.getStage()&&(ot=null),ot}_pointerleave(F){const ot=pt(F.type),Ct=W(F.type);if(!ot)return;this.setPointersPositions(F);const Dt=this._getTargetShape(Ct),zt=!(N.Konva.isDragging()||N.Konva.isTransforming())||N.Konva.hitOnDragEnabled;Dt&&zt?(Dt._fireAndBubble(ot.pointerout,{evt:F}),Dt._fireAndBubble(ot.pointerleave,{evt:F}),this._fire(ot.pointerleave,{evt:F,target:this,currentTarget:this}),this[Ct+"targetShape"]=null):zt&&(this._fire(ot.pointerleave,{evt:F,target:this,currentTarget:this}),this._fire(ot.pointerout,{evt:F,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(F){const ot=pt(F.type),Ct=W(F.type);if(!ot)return;this.setPointersPositions(F);let Dt=!1;this._changedPointerPositions.forEach(zt=>{const Vt=this.getIntersection(zt);if(T.DD.justDragged=!1,N.Konva["_"+Ct+"ListenClick"]=!0,!Vt||!Vt.isListening()){this[Ct+"ClickStartShape"]=void 0;return}N.Konva.capturePointerEventsEnabled&&Vt.setPointerCapture(zt.id),this[Ct+"ClickStartShape"]=Vt,Vt._fireAndBubble(ot.pointerdown,{evt:F,pointerId:zt.id}),Dt=!0;const Qt=F.type.indexOf("touch")>=0;Vt.preventDefault()&&F.cancelable&&Qt&&F.preventDefault()}),Dt||this._fire(ot.pointerdown,{evt:F,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(F){const ot=pt(F.type),Ct=W(F.type);if(!ot||(N.Konva.isDragging()&&T.DD.node.preventDefault()&&F.cancelable&&F.preventDefault(),this.setPointersPositions(F),!(!(N.Konva.isDragging()||N.Konva.isTransforming())||N.Konva.hitOnDragEnabled)))return;const zt={};let Vt=!1;const Qt=this._getTargetShape(Ct);this._changedPointerPositions.forEach(he=>{const Ht=b.getCapturedShape(he.id)||this.getIntersection(he),Ue=he.id,Jt={evt:F,pointerId:Ue},pe=Qt!==Ht;if(pe&&Qt&&(Qt._fireAndBubble(ot.pointerout,{...Jt},Ht),Qt._fireAndBubble(ot.pointerleave,{...Jt},Ht)),Ht){if(zt[Ht._id])return;zt[Ht._id]=!0}Ht&&Ht.isListening()?(Vt=!0,pe&&(Ht._fireAndBubble(ot.pointerover,{...Jt},Qt),Ht._fireAndBubble(ot.pointerenter,{...Jt},Qt),this[Ct+"targetShape"]=Ht),Ht._fireAndBubble(ot.pointermove,{...Jt})):Qt&&(this._fire(ot.pointerover,{evt:F,target:this,currentTarget:this,pointerId:Ue}),this[Ct+"targetShape"]=null)}),Vt||this._fire(ot.pointermove,{evt:F,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(F){const ot=pt(F.type),Ct=W(F.type);if(!ot)return;this.setPointersPositions(F);const Dt=this[Ct+"ClickStartShape"],zt=this[Ct+"ClickEndShape"],Vt={};let Qt=!1;this._changedPointerPositions.forEach(he=>{const Ht=b.getCapturedShape(he.id)||this.getIntersection(he);if(Ht){if(Ht.releaseCapture(he.id),Vt[Ht._id])return;Vt[Ht._id]=!0}const Ue=he.id,Jt={evt:F,pointerId:Ue};let pe=!1;N.Konva["_"+Ct+"InDblClickWindow"]?(pe=!0,clearTimeout(this[Ct+"DblTimeout"])):T.DD.justDragged||(N.Konva["_"+Ct+"InDblClickWindow"]=!0,clearTimeout(this[Ct+"DblTimeout"])),this[Ct+"DblTimeout"]=setTimeout(function(){N.Konva["_"+Ct+"InDblClickWindow"]=!1},N.Konva.dblClickWindow),Ht&&Ht.isListening()?(Qt=!0,this[Ct+"ClickEndShape"]=Ht,Ht._fireAndBubble(ot.pointerup,{...Jt}),N.Konva["_"+Ct+"ListenClick"]&&Dt&&Dt===Ht&&(Ht._fireAndBubble(ot.pointerclick,{...Jt}),pe&&zt&&zt===Ht&&Ht._fireAndBubble(ot.pointerdblclick,{...Jt}))):(this[Ct+"ClickEndShape"]=null,N.Konva["_"+Ct+"ListenClick"]&&this._fire(ot.pointerclick,{evt:F,target:this,currentTarget:this,pointerId:Ue}),pe&&this._fire(ot.pointerdblclick,{evt:F,target:this,currentTarget:this,pointerId:Ue}))}),Qt||this._fire(ot.pointerup,{evt:F,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),N.Konva["_"+Ct+"ListenClick"]=!1,F.cancelable&&Ct!=="touch"&&Ct!=="pointer"&&F.preventDefault()}_contextmenu(F){this.setPointersPositions(F);const ot=this.getIntersection(this.getPointerPosition());ot&&ot.isListening()?ot._fireAndBubble(P,{evt:F}):this._fire(P,{evt:F,target:this,currentTarget:this})}_wheel(F){this.setPointersPositions(F);const ot=this.getIntersection(this.getPointerPosition());ot&&ot.isListening()?ot._fireAndBubble(E,{evt:F}):this._fire(E,{evt:F,target:this,currentTarget:this})}_pointercancel(F){this.setPointersPositions(F);const ot=b.getCapturedShape(F.pointerId)||this.getIntersection(this.getPointerPosition());ot&&ot._fireAndBubble(U,b.createEvent(F)),b.releaseCapture(F.pointerId)}_lostpointercapture(F){b.releaseCapture(F.pointerId)}setPointersPositions(F){const ot=this._getContentPosition();let Ct=null,Dt=null;F=F||window.event,F.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(F.touches,zt=>{this._pointerPositions.push({id:zt.identifier,x:(zt.clientX-ot.left)/ot.scaleX,y:(zt.clientY-ot.top)/ot.scaleY})}),Array.prototype.forEach.call(F.changedTouches||F.touches,zt=>{this._changedPointerPositions.push({id:zt.identifier,x:(zt.clientX-ot.left)/ot.scaleX,y:(zt.clientY-ot.top)/ot.scaleY})})):(Ct=(F.clientX-ot.left)/ot.scaleX,Dt=(F.clientY-ot.top)/ot.scaleY,this.pointerPos={x:Ct,y:Dt},this._pointerPositions=[{x:Ct,y:Dt,id:f.Util._getFirstPointerId(F)}],this._changedPointerPositions=[{x:Ct,y:Dt,id:f.Util._getFirstPointerId(F)}])}_setPointerPosition(F){f.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(F)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const F=this.content.getBoundingClientRect();return{top:F.top,left:F.left,scaleX:F.width/this.content.clientWidth||1,scaleY:F.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new D.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new D.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!N.Konva.isBrowser)return;const F=this.container();if(!F)throw"Stage has no container. A container is required.";F.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"),F.appendChild(this.content),this._resizeDOM()}cache(){return f.Util.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(F){F.batchDraw()}),this}}y.Stage=Tt,Tt.prototype.nodeType=C,(0,_._registerNode)(Tt),Z.Factory.addGetterSetter(Tt,"container"),N.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{y.stages.forEach(ft=>{ft.batchDraw()})})})(op)),op}var n0={},cp={},Ev;function an(){return Ev||(Ev=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y.Shape=y.shapes=void 0;const f=se(),Z=va(),j=me(),N=Ta(),D=ve(),T=se(),_=z3(),b="hasShadow",C="shadowRGBA",z="patternImage",O="linearGradient",R="radialGradient";let p;function v(){return p||(p=Z.Util.createCanvasElement().getContext("2d"),p)}y.shapes={};function M(q){const G=this.attrs.fillRule;G?q.fill(G):q.fill()}function H(q){q.stroke()}function Y(q){const G=this.attrs.fillRule;G?q.fill(G):q.fill()}function S(q){q.stroke()}function m(){this._clearCache(b)}function A(){this._clearCache(C)}function U(){this._clearCache(z)}function X(){this._clearCache(O)}function et(){this._clearCache(R)}class V extends N.Node{constructor(G){super(G);let J;for(;J=Z.Util.getRandomColor(),!(J&&!(J in y.shapes)););this.colorKey=J,y.shapes[J]=this}getContext(){return Z.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return Z.Util.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(b,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(z,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const J=v().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(J&&J.setTransform){const P=new Z.Transform;P.translate(this.fillPatternX(),this.fillPatternY()),P.rotate(f.Konva.getAngle(this.fillPatternRotation())),P.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),P.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const k=P.getMatrix(),st=typeof DOMMatrix>"u"?{a:k[0],b:k[1],c:k[2],d:k[3],e:k[4],f:k[5]}:new DOMMatrix(k);J.setTransform(st)}return J}}_getLinearGradient(){return this._getCache(O,this.__getLinearGradient)}__getLinearGradient(){const G=this.fillLinearGradientColorStops();if(G){const J=v(),P=this.fillLinearGradientStartPoint(),k=this.fillLinearGradientEndPoint(),st=J.createLinearGradient(P.x,P.y,k.x,k.y);for(let at=0;at<G.length;at+=2)st.addColorStop(G[at],G[at+1]);return st}}_getRadialGradient(){return this._getCache(R,this.__getRadialGradient)}__getRadialGradient(){const G=this.fillRadialGradientColorStops();if(G){const J=v(),P=this.fillRadialGradientStartPoint(),k=this.fillRadialGradientEndPoint(),st=J.createRadialGradient(P.x,P.y,this.fillRadialGradientStartRadius(),k.x,k.y,this.fillRadialGradientEndRadius());for(let at=0;at<G.length;at+=2)st.addColorStop(G[at],G[at+1]);return st}}getShadowRGBA(){return this._getCache(C,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const G=Z.Util.colorToRGBA(this.shadowColor());if(G)return"rgba("+G.r+","+G.g+","+G.b+","+G.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 G=this.hitStrokeWidth();return G==="auto"?this.hasStroke():this.strokeEnabled()&&!!G}intersects(G){const J=this.getStage();if(!J)return!1;const P=J.bufferHitCanvas;return P.getContext().clear(),this.drawHit(P,void 0,!0),P.context.getImageData(Math.round(G.x),Math.round(G.y),1,1).data[3]>0}destroy(){return N.Node.prototype.destroy.call(this),delete y.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(G){var J;if(!((J=this.attrs.perfectDrawEnabled)!==null&&J!==void 0?J:!0))return!1;const k=G||this.hasFill(),st=this.hasStroke(),at=this.getAbsoluteOpacity()!==1;if(k&&st&&at)return!0;const w=this.hasShadow(),E=this.shadowForStrokeEnabled();return!!(k&&st&&w&&E)}setStrokeHitEnabled(G){Z.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),G?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const G=this.size();return{x:this._centroid?-G.width/2:0,y:this._centroid?-G.height/2:0,width:G.width,height:G.height}}getClientRect(G={}){let J=!1,P=this.getParent();for(;P;){if(P.isCached()){J=!0;break}P=P.getParent()}const k=G.skipTransform,st=G.relativeTo||J&&this.getStage()||void 0,at=this.getSelfRect(),E=!G.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,x=at.width+E,Q=at.height+E,K=!G.skipShadow&&this.hasShadow(),W=K?this.shadowOffsetX():0,pt=K?this.shadowOffsetY():0,lt=x+Math.abs(W),gt=Q+Math.abs(pt),Tt=K&&this.shadowBlur()||0,ft=lt+Tt*2,F=gt+Tt*2,ot={width:ft,height:F,x:-(E/2+Tt)+Math.min(W,0)+at.x,y:-(E/2+Tt)+Math.min(pt,0)+at.y};return k?ot:this._transformedRect(ot,st)}drawScene(G,J,P){const k=this.getLayer(),st=G||k.getCanvas(),at=st.getContext(),w=this._getCanvasCache(),E=this.getSceneFunc(),x=this.hasShadow();let Q;const K=J===this;if(!this.isVisible()&&!K)return this;if(w){at.save();const W=this.getAbsoluteTransform(J).getMatrix();return at.transform(W[0],W[1],W[2],W[3],W[4],W[5]),this._drawCachedSceneCanvas(at),at.restore(),this}if(!E)return this;if(at.save(),this._useBufferCanvas()){Q=this.getStage();const W=P||Q.bufferCanvas,pt=W.getContext();pt.clear(),pt.save(),pt._applyLineJoin(this);const lt=this.getAbsoluteTransform(J).getMatrix();pt.transform(lt[0],lt[1],lt[2],lt[3],lt[4],lt[5]),E.call(this,pt,this),pt.restore();const gt=W.pixelRatio;x&&at._applyShadow(this),at._applyOpacity(this),at._applyGlobalCompositeOperation(this),at.drawImage(W._canvas,W.x||0,W.y||0,W.width/gt,W.height/gt)}else{if(at._applyLineJoin(this),!K){const W=this.getAbsoluteTransform(J).getMatrix();at.transform(W[0],W[1],W[2],W[3],W[4],W[5]),at._applyOpacity(this),at._applyGlobalCompositeOperation(this)}x&&at._applyShadow(this),E.call(this,at,this)}return at.restore(),this}drawHit(G,J,P=!1){if(!this.shouldDrawHit(J,P))return this;const k=this.getLayer(),st=G||k.hitCanvas,at=st&&st.getContext(),w=this.hitFunc()||this.sceneFunc(),E=this._getCanvasCache(),x=E&&E.hit;if(this.colorKey||Z.Util.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()"),x){at.save();const K=this.getAbsoluteTransform(J).getMatrix();return at.transform(K[0],K[1],K[2],K[3],K[4],K[5]),this._drawCachedHitCanvas(at),at.restore(),this}if(!w)return this;if(at.save(),at._applyLineJoin(this),!(this===J)){const K=this.getAbsoluteTransform(J).getMatrix();at.transform(K[0],K[1],K[2],K[3],K[4],K[5])}return w.call(this,at,this),at.restore(),this}drawHitFromCache(G=0){const J=this._getCanvasCache(),P=this._getCachedSceneCanvas(),k=J.hit,st=k.getContext(),at=k.getWidth(),w=k.getHeight();st.clear(),st.drawImage(P._canvas,0,0,at,w);try{const E=st.getImageData(0,0,at,w),x=E.data,Q=x.length,K=Z.Util._hexToRgb(this.colorKey);for(let W=0;W<Q;W+=4)x[W+3]>G?(x[W]=K.r,x[W+1]=K.g,x[W+2]=K.b,x[W+3]=255):x[W+3]=0;st.putImageData(E,0,0)}catch(E){Z.Util.error("Unable to draw hit graph from cached scene canvas. "+E.message)}return this}hasPointerCapture(G){return _.hasPointerCapture(G,this)}setPointerCapture(G){_.setPointerCapture(G,this)}releaseCapture(G){_.releaseCapture(G,this)}}y.Shape=V,V.prototype._fillFunc=M,V.prototype._strokeFunc=H,V.prototype._fillFuncHit=Y,V.prototype._strokeFuncHit=S,V.prototype._centroid=!1,V.prototype.nodeType="Shape",(0,T._registerNode)(V),V.prototype.eventListeners={},V.prototype.on.call(V.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",m),V.prototype.on.call(V.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",A),V.prototype.on.call(V.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",U),V.prototype.on.call(V.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",X),V.prototype.on.call(V.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",et),j.Factory.addGetterSetter(V,"stroke",void 0,(0,D.getStringOrGradientValidator)()),j.Factory.addGetterSetter(V,"strokeWidth",2,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"fillAfterStrokeEnabled",!1),j.Factory.addGetterSetter(V,"hitStrokeWidth","auto",(0,D.getNumberOrAutoValidator)()),j.Factory.addGetterSetter(V,"strokeHitEnabled",!0,(0,D.getBooleanValidator)()),j.Factory.addGetterSetter(V,"perfectDrawEnabled",!0,(0,D.getBooleanValidator)()),j.Factory.addGetterSetter(V,"shadowForStrokeEnabled",!0,(0,D.getBooleanValidator)()),j.Factory.addGetterSetter(V,"lineJoin"),j.Factory.addGetterSetter(V,"lineCap"),j.Factory.addGetterSetter(V,"sceneFunc"),j.Factory.addGetterSetter(V,"hitFunc"),j.Factory.addGetterSetter(V,"dash"),j.Factory.addGetterSetter(V,"dashOffset",0,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"shadowColor",void 0,(0,D.getStringValidator)()),j.Factory.addGetterSetter(V,"shadowBlur",0,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"shadowOpacity",1,(0,D.getNumberValidator)()),j.Factory.addComponentsGetterSetter(V,"shadowOffset",["x","y"]),j.Factory.addGetterSetter(V,"shadowOffsetX",0,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"shadowOffsetY",0,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"fillPatternImage"),j.Factory.addGetterSetter(V,"fill",void 0,(0,D.getStringOrGradientValidator)()),j.Factory.addGetterSetter(V,"fillPatternX",0,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"fillPatternY",0,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"fillLinearGradientColorStops"),j.Factory.addGetterSetter(V,"strokeLinearGradientColorStops"),j.Factory.addGetterSetter(V,"fillRadialGradientStartRadius",0),j.Factory.addGetterSetter(V,"fillRadialGradientEndRadius",0),j.Factory.addGetterSetter(V,"fillRadialGradientColorStops"),j.Factory.addGetterSetter(V,"fillPatternRepeat","repeat"),j.Factory.addGetterSetter(V,"fillEnabled",!0),j.Factory.addGetterSetter(V,"strokeEnabled",!0),j.Factory.addGetterSetter(V,"shadowEnabled",!0),j.Factory.addGetterSetter(V,"dashEnabled",!0),j.Factory.addGetterSetter(V,"strokeScaleEnabled",!0),j.Factory.addGetterSetter(V,"fillPriority","color"),j.Factory.addComponentsGetterSetter(V,"fillPatternOffset",["x","y"]),j.Factory.addGetterSetter(V,"fillPatternOffsetX",0,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"fillPatternOffsetY",0,(0,D.getNumberValidator)()),j.Factory.addComponentsGetterSetter(V,"fillPatternScale",["x","y"]),j.Factory.addGetterSetter(V,"fillPatternScaleX",1,(0,D.getNumberValidator)()),j.Factory.addGetterSetter(V,"fillPatternScaleY",1,(0,D.getNumberValidator)()),j.Factory.addComponentsGetterSetter(V,"fillLinearGradientStartPoint",["x","y"]),j.Factory.addComponentsGetterSetter(V,"strokeLinearGradientStartPoint",["x","y"]),j.Factory.addGetterSetter(V,"fillLinearGradientStartPointX",0),j.Factory.addGetterSetter(V,"strokeLinearGradientStartPointX",0),j.Factory.addGetterSetter(V,"fillLinearGradientStartPointY",0),j.Factory.addGetterSetter(V,"strokeLinearGradientStartPointY",0),j.Factory.addComponentsGetterSetter(V,"fillLinearGradientEndPoint",["x","y"]),j.Factory.addComponentsGetterSetter(V,"strokeLinearGradientEndPoint",["x","y"]),j.Factory.addGetterSetter(V,"fillLinearGradientEndPointX",0),j.Factory.addGetterSetter(V,"strokeLinearGradientEndPointX",0),j.Factory.addGetterSetter(V,"fillLinearGradientEndPointY",0),j.Factory.addGetterSetter(V,"strokeLinearGradientEndPointY",0),j.Factory.addComponentsGetterSetter(V,"fillRadialGradientStartPoint",["x","y"]),j.Factory.addGetterSetter(V,"fillRadialGradientStartPointX",0),j.Factory.addGetterSetter(V,"fillRadialGradientStartPointY",0),j.Factory.addComponentsGetterSetter(V,"fillRadialGradientEndPoint",["x","y"]),j.Factory.addGetterSetter(V,"fillRadialGradientEndPointX",0),j.Factory.addGetterSetter(V,"fillRadialGradientEndPointY",0),j.Factory.addGetterSetter(V,"fillPatternRotation",0),j.Factory.addGetterSetter(V,"fillRule",void 0,(0,D.getStringValidator)()),j.Factory.backCompat(V,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(cp)),cp}var bv;function D3(){if(bv)return n0;bv=1,Object.defineProperty(n0,"__esModule",{value:!0}),n0.Layer=void 0;const y=va(),f=Z2(),Z=Ta(),j=me(),N=L2(),D=ve(),T=an(),_=se(),b="#",C="beforeDraw",z="draw",O=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],R=O.length;class p extends f.Container{constructor(M){super(M),this.canvas=new N.SceneCanvas,this.hitCanvas=new N.HitCanvas({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(M){return this.getContext().clear(M),this.getHitCanvas().getContext().clear(M),this}setZIndex(M){super.setZIndex(M);const H=this.getStage();return H&&H.content&&(H.content.removeChild(this.getNativeCanvasElement()),M<H.children.length-1?H.content.insertBefore(this.getNativeCanvasElement(),H.children[M+1].getCanvas()._canvas):H.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Z.Node.prototype.moveToTop.call(this);const M=this.getStage();return M&&M.content&&(M.content.removeChild(this.getNativeCanvasElement()),M.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Z.Node.prototype.moveUp.call(this))return!1;const H=this.getStage();return!H||!H.content?!1:(H.content.removeChild(this.getNativeCanvasElement()),this.index<H.children.length-1?H.content.insertBefore(this.getNativeCanvasElement(),H.children[this.index+1].getCanvas()._canvas):H.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Z.Node.prototype.moveDown.call(this)){const M=this.getStage();if(M){const H=M.children;M.content&&(M.content.removeChild(this.getNativeCanvasElement()),M.content.insertBefore(this.getNativeCanvasElement(),H[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Z.Node.prototype.moveToBottom.call(this)){const M=this.getStage();if(M){const H=M.children;M.content&&(M.content.removeChild(this.getNativeCanvasElement()),M.content.insertBefore(this.getNativeCanvasElement(),H[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const M=this.getNativeCanvasElement();return Z.Node.prototype.remove.call(this),M&&M.parentNode&&y.Util._isInDocument(M)&&M.parentNode.removeChild(M),this}getStage(){return this.parent}setSize({width:M,height:H}){return this.canvas.setSize(M,H),this.hitCanvas.setSize(M,H),this._setSmoothEnabled(),this}_validateAdd(M){const H=M.getType();H!=="Group"&&H!=="Shape"&&y.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(M){return M=M||{},M.width=M.width||this.getWidth(),M.height=M.height||this.getHeight(),M.x=M.x!==void 0?M.x:this.x(),M.y=M.y!==void 0?M.y:this.y(),Z.Node.prototype._toKonvaCanvas.call(this,M)}_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(){y.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){y.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,y.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(M){if(!this.isListening()||!this.isVisible())return null;let H=1,Y=!1;for(;;){for(let S=0;S<R;S++){const m=O[S],A=this._getIntersection({x:M.x+m.x*H,y:M.y+m.y*H}),U=A.shape;if(U)return U;if(Y=!!A.antialiased,!A.antialiased)break}if(Y)H+=1;else return null}}_getIntersection(M){const H=this.hitCanvas.pixelRatio,Y=this.hitCanvas.context.getImageData(Math.round(M.x*H),Math.round(M.y*H),1,1).data,S=Y[3];if(S===255){const m=y.Util._rgbToHex(Y[0],Y[1],Y[2]),A=T.shapes[b+m];return A?{shape:A}:{antialiased:!0}}else if(S>0)return{antialiased:!0};return{}}drawScene(M,H,Y){const S=this.getLayer(),m=M||S&&S.getCanvas();return this._fire(C,{node:this}),this.clearBeforeDraw()&&m.getContext().clear(),f.Container.prototype.drawScene.call(this,m,H,Y),this._fire(z,{node:this}),this}drawHit(M,H){const Y=this.getLayer(),S=M||Y&&Y.hitCanvas;return Y&&Y.clearBeforeDraw()&&Y.getHitCanvas().getContext().clear(),f.Container.prototype.drawHit.call(this,S,H),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(M){y.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(M)}getHitGraphEnabled(M){return y.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const M=this.parent;!!this.hitCanvas._canvas.parentNode?M.content.removeChild(this.hitCanvas._canvas):M.content.appendChild(this.hitCanvas._canvas)}destroy(){return y.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}return n0.Layer=p,p.prototype.nodeType="Layer",(0,_._registerNode)(p),j.Factory.addGetterSetter(p,"imageSmoothingEnabled",!0),j.Factory.addGetterSetter(p,"clearBeforeDraw",!0),j.Factory.addGetterSetter(p,"hitGraphEnabled",!0,(0,D.getBooleanValidator)()),n0}var l0={},Cv;function r4(){if(Cv)return l0;Cv=1,Object.defineProperty(l0,"__esModule",{value:!0}),l0.FastLayer=void 0;const y=va(),f=D3(),Z=se();class j extends f.Layer{constructor(D){super(D),this.listening(!1),y.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}return l0.FastLayer=j,j.prototype.nodeType="FastLayer",(0,Z._registerNode)(j),l0}var i0={},Tv;function _p(){if(Tv)return i0;Tv=1,Object.defineProperty(i0,"__esModule",{value:!0}),i0.Group=void 0;const y=va(),f=Z2(),Z=se();class j extends f.Container{_validateAdd(D){const T=D.getType();T!=="Group"&&T!=="Shape"&&y.Util.throw("You may only add groups and shapes to groups.")}}return i0.Group=j,j.prototype.nodeType="Group",(0,Z._registerNode)(j),i0}var u0={},Rv;function Ep(){if(Rv)return u0;Rv=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.Animation=void 0;const y=se(),f=va(),Z=(function(){return y.glob.performance&&y.glob.performance.now?function(){return y.glob.performance.now()}:function(){return new Date().getTime()}})();let j=class sh{constructor(D,T){this.id=sh.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Z(),frameRate:0},this.func=D,this.setLayers(T)}setLayers(D){let T=[];return D&&(T=Array.isArray(D)?D:[D]),this.layers=T,this}getLayers(){return this.layers}addLayer(D){const T=this.layers,_=T.length;for(let b=0;b<_;b++)if(T[b]._id===D._id)return!1;return this.layers.push(D),!0}isRunning(){const T=sh.animations,_=T.length;for(let b=0;b<_;b++)if(T[b].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=Z(),sh._addAnimation(this),this}stop(){return sh._removeAnimation(this),this}_updateFrameObject(D){this.frame.timeDiff=D-this.frame.lastTime,this.frame.lastTime=D,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(D){this.animations.push(D),this._handleAnimation()}static _removeAnimation(D){const T=D.id,_=this.animations,b=_.length;for(let C=0;C<b;C++)if(_[C].id===T){this.animations.splice(C,1);break}}static _runFrames(){const D={},T=this.animations;for(let _=0;_<T.length;_++){const b=T[_],C=b.layers,z=b.func;b._updateFrameObject(Z());const O=C.length;let R;if(z?R=z.call(b,b.frame)!==!1:R=!0,!!R)for(let p=0;p<O;p++){const v=C[p];v._id!==void 0&&(D[v._id]=v)}}for(const _ in D)D.hasOwnProperty(_)&&D[_].batchDraw()}static _animationLoop(){const D=sh;D.animations.length?(D._runFrames(),f.Util.requestAnimFrame(D._animationLoop)):D.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,f.Util.requestAnimFrame(this._animationLoop))}};return u0.Animation=j,j.animations=[],j.animIdCounter=0,j.animRunning=!1,u0}var rp={},Av;function f4(){return Av||(Av=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y.Easings=y.Tween=void 0;const f=va(),Z=Ep(),j=Ta(),N=se(),D={node:1,duration:1,easing:1,onFinish:1,yoyo:1},T=1,_=2,b=3,C=["fill","stroke","shadowColor"];let z=0;class O{constructor(v,M,H,Y,S,m,A){this.prop=v,this.propFunc=M,this.begin=Y,this._pos=Y,this.duration=m,this._change=0,this.prevPos=0,this.yoyo=A,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=H,this._change=S-this.begin,this.pause()}fire(v){const M=this[v];M&&M()}setTime(v){v>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():v<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=v,this.update())}getTime(){return this._time}setPosition(v){this.prevPos=this._pos,this.propFunc(v),this._pos=v}getPosition(v){return v===void 0&&(v=this._time),this.func(v,this.begin,this._change,this.duration)}play(){this.state=_,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=b,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(v){this.pause(),this._time=v,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 v=this.getTimer()-this._startTime;this.state===_?this.setTime(v):this.state===b&&this.setTime(this.duration-v)}pause(){this.state=T,this.fire("onPause")}getTimer(){return new Date().getTime()}}class R{constructor(v){const M=this,H=v.node,Y=H._id,S=v.easing||y.Easings.Linear,m=!!v.yoyo;let A,U;typeof v.duration>"u"?A=.3:v.duration===0?A=.001:A=v.duration,this.node=H,this._id=z++;const X=H.getLayer()||(H instanceof N.Konva.Stage?H.getLayers():null);X||f.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Z.Animation(function(){M.tween.onEnterFrame()},X),this.tween=new O(U,function(et){M._tweenFunc(et)},S,0,1,A*1e3,m),this._addListeners(),R.attrs[Y]||(R.attrs[Y]={}),R.attrs[Y][this._id]||(R.attrs[Y][this._id]={}),R.tweens[Y]||(R.tweens[Y]={});for(U in v)D[U]===void 0&&this._addAttr(U,v[U]);this.reset(),this.onFinish=v.onFinish,this.onReset=v.onReset,this.onUpdate=v.onUpdate}_addAttr(v,M){const H=this.node,Y=H._id;let S,m,A,U,X;const et=R.tweens[Y][v];et&&delete R.attrs[Y][et][v];let V=H.getAttr(v);if(f.Util._isArray(M))if(S=[],m=Math.max(M.length,V.length),v==="points"&&M.length!==V.length&&(M.length>V.length?(U=V,V=f.Util._prepareArrayForTween(V,M,H.closed())):(A=M,M=f.Util._prepareArrayForTween(M,V,H.closed()))),v.indexOf("fill")===0)for(let q=0;q<m;q++)if(q%2===0)S.push(M[q]-V[q]);else{const G=f.Util.colorToRGBA(V[q]);X=f.Util.colorToRGBA(M[q]),V[q]=G,S.push({r:X.r-G.r,g:X.g-G.g,b:X.b-G.b,a:X.a-G.a})}else for(let q=0;q<m;q++)S.push(M[q]-V[q]);else C.indexOf(v)!==-1?(V=f.Util.colorToRGBA(V),X=f.Util.colorToRGBA(M),S={r:X.r-V.r,g:X.g-V.g,b:X.b-V.b,a:X.a-V.a}):S=M-V;R.attrs[Y][this._id][v]={start:V,diff:S,end:M,trueEnd:A,trueStart:U},R.tweens[Y][v]=this._id}_tweenFunc(v){const M=this.node,H=R.attrs[M._id][this._id];let Y,S,m,A,U,X,et,V;for(Y in H){if(S=H[Y],m=S.start,A=S.diff,V=S.end,f.Util._isArray(m))if(U=[],et=Math.max(m.length,V.length),Y.indexOf("fill")===0)for(X=0;X<et;X++)X%2===0?U.push((m[X]||0)+A[X]*v):U.push("rgba("+Math.round(m[X].r+A[X].r*v)+","+Math.round(m[X].g+A[X].g*v)+","+Math.round(m[X].b+A[X].b*v)+","+(m[X].a+A[X].a*v)+")");else for(X=0;X<et;X++)U.push((m[X]||0)+A[X]*v);else C.indexOf(Y)!==-1?U="rgba("+Math.round(m.r+A.r*v)+","+Math.round(m.g+A.g*v)+","+Math.round(m.b+A.b*v)+","+(m.a+A.a*v)+")":U=m+A*v;M.setAttr(Y,U)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const v=this.node,M=R.attrs[v._id][this._id];M.points&&M.points.trueEnd&&v.setAttr("points",M.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const v=this.node,M=R.attrs[v._id][this._id];M.points&&M.points.trueStart&&v.points(M.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(v){return this.tween.seek(v*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const v=this.node._id,M=this._id,H=R.tweens[v];this.pause(),this.anim&&this.anim.stop();for(const Y in H)delete R.tweens[v][Y];delete R.attrs[v][M],R.tweens[v]&&(Object.keys(R.tweens[v]).length===0&&delete R.tweens[v],Object.keys(R.attrs[v]).length===0&&delete R.attrs[v])}}y.Tween=R,R.attrs={},R.tweens={},j.Node.prototype.to=function(p){const v=p.onFinish;p.node=this,p.onFinish=function(){this.destroy(),v&&v()},new R(p).play()},y.Easings={BackEaseIn(p,v,M,H){return M*(p/=H)*p*((1.70158+1)*p-1.70158)+v},BackEaseOut(p,v,M,H){return M*((p=p/H-1)*p*((1.70158+1)*p+1.70158)+1)+v},BackEaseInOut(p,v,M,H){let Y=1.70158;return(p/=H/2)<1?M/2*(p*p*(((Y*=1.525)+1)*p-Y))+v:M/2*((p-=2)*p*(((Y*=1.525)+1)*p+Y)+2)+v},ElasticEaseIn(p,v,M,H,Y,S){let m=0;return p===0?v:(p/=H)===1?v+M:(S||(S=H*.3),!Y||Y<Math.abs(M)?(Y=M,m=S/4):m=S/(2*Math.PI)*Math.asin(M/Y),-(Y*Math.pow(2,10*(p-=1))*Math.sin((p*H-m)*(2*Math.PI)/S))+v)},ElasticEaseOut(p,v,M,H,Y,S){let m=0;return p===0?v:(p/=H)===1?v+M:(S||(S=H*.3),!Y||Y<Math.abs(M)?(Y=M,m=S/4):m=S/(2*Math.PI)*Math.asin(M/Y),Y*Math.pow(2,-10*p)*Math.sin((p*H-m)*(2*Math.PI)/S)+M+v)},ElasticEaseInOut(p,v,M,H,Y,S){let m=0;return p===0?v:(p/=H/2)===2?v+M:(S||(S=H*(.3*1.5)),!Y||Y<Math.abs(M)?(Y=M,m=S/4):m=S/(2*Math.PI)*Math.asin(M/Y),p<1?-.5*(Y*Math.pow(2,10*(p-=1))*Math.sin((p*H-m)*(2*Math.PI)/S))+v:Y*Math.pow(2,-10*(p-=1))*Math.sin((p*H-m)*(2*Math.PI)/S)*.5+M+v)},BounceEaseOut(p,v,M,H){return(p/=H)<1/2.75?M*(7.5625*p*p)+v:p<2/2.75?M*(7.5625*(p-=1.5/2.75)*p+.75)+v:p<2.5/2.75?M*(7.5625*(p-=2.25/2.75)*p+.9375)+v:M*(7.5625*(p-=2.625/2.75)*p+.984375)+v},BounceEaseIn(p,v,M,H){return M-y.Easings.BounceEaseOut(H-p,0,M,H)+v},BounceEaseInOut(p,v,M,H){return p<H/2?y.Easings.BounceEaseIn(p*2,0,M,H)*.5+v:y.Easings.BounceEaseOut(p*2-H,0,M,H)*.5+M*.5+v},EaseIn(p,v,M,H){return M*(p/=H)*p+v},EaseOut(p,v,M,H){return-M*(p/=H)*(p-2)+v},EaseInOut(p,v,M,H){return(p/=H/2)<1?M/2*p*p+v:-M/2*(--p*(p-2)-1)+v},StrongEaseIn(p,v,M,H){return M*(p/=H)*p*p*p*p+v},StrongEaseOut(p,v,M,H){return M*((p=p/H-1)*p*p*p*p+1)+v},StrongEaseInOut(p,v,M,H){return(p/=H/2)<1?M/2*p*p*p*p*p+v:M/2*((p-=2)*p*p*p*p+2)+v},Linear(p,v,M,H){return M*p/H+v}}})(rp)),rp}var Nv;function gp(){return Nv||(Nv=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y.Konva=void 0;const f=se(),Z=va(),j=Ta(),N=Z2(),D=c4(),T=D3(),_=r4(),b=_p(),C=Sp(),z=an(),O=Ep(),R=f4(),p=N3(),v=L2();y.Konva=Z.Util._assign(f.Konva,{Util:Z.Util,Transform:Z.Transform,Node:j.Node,Container:N.Container,Stage:D.Stage,stages:D.stages,Layer:T.Layer,FastLayer:_.FastLayer,Group:b.Group,DD:C.DD,Shape:z.Shape,shapes:z.shapes,Animation:O.Animation,Tween:R.Tween,Easings:R.Easings,Context:p.Context,Canvas:v.Canvas}),y.default=y.Konva})(np)),np}var s0={},zv;function h4(){if(zv)return s0;zv=1,Object.defineProperty(s0,"__esModule",{value:!0}),s0.Arc=void 0;const y=me(),f=an(),Z=se(),j=ve(),N=se();class D extends f.Shape{_sceneFunc(_){const b=Z.Konva.getAngle(this.angle()),C=this.clockwise();_.beginPath(),_.arc(0,0,this.outerRadius(),0,b,C),_.arc(0,0,this.innerRadius(),b,0,!C),_.closePath(),_.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(_){this.outerRadius(_/2)}setHeight(_){this.outerRadius(_/2)}getSelfRect(){const _=this.innerRadius(),b=this.outerRadius(),C=this.clockwise(),z=Z.Konva.getAngle(C?360-this.angle():this.angle()),O=Math.cos(Math.min(z,Math.PI)),R=1,p=Math.sin(Math.min(Math.max(Math.PI,z),3*Math.PI/2)),v=Math.sin(Math.min(z,Math.PI/2)),M=O*(O>0?_:b),H=R*b,Y=p*(p>0?_:b),S=v*(v>0?b:_);return{x:M,y:C?-1*S:Y,width:H-M,height:S-Y}}}return s0.Arc=D,D.prototype._centroid=!0,D.prototype.className="Arc",D.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"],(0,N._registerNode)(D),y.Factory.addGetterSetter(D,"innerRadius",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(D,"outerRadius",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(D,"angle",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(D,"clockwise",!1,(0,j.getBooleanValidator)()),s0}var o0={},c0={},Dv;function M3(){if(Dv)return c0;Dv=1,Object.defineProperty(c0,"__esModule",{value:!0}),c0.Line=void 0;const y=me(),f=se(),Z=an(),j=ve();function N(_,b,C,z,O,R,p){const v=Math.sqrt(Math.pow(C-_,2)+Math.pow(z-b,2)),M=Math.sqrt(Math.pow(O-C,2)+Math.pow(R-z,2)),H=p*v/(v+M),Y=p*M/(v+M),S=C-H*(O-_),m=z-H*(R-b),A=C+Y*(O-_),U=z+Y*(R-b);return[S,m,A,U]}function D(_,b){const C=_.length,z=[];for(let O=2;O<C-2;O+=2){const R=N(_[O-2],_[O-1],_[O],_[O+1],_[O+2],_[O+3],b);isNaN(R[0])||(z.push(R[0]),z.push(R[1]),z.push(_[O]),z.push(_[O+1]),z.push(R[2]),z.push(R[3]))}return z}class T extends Z.Shape{constructor(b){super(b),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(b){const C=this.points(),z=C.length,O=this.tension(),R=this.closed(),p=this.bezier();if(!z)return;let v=0;if(b.beginPath(),b.moveTo(C[0],C[1]),O!==0&&z>4){const M=this.getTensionPoints(),H=M.length;for(v=R?0:4,R||b.quadraticCurveTo(M[0],M[1],M[2],M[3]);v<H-2;)b.bezierCurveTo(M[v++],M[v++],M[v++],M[v++],M[v++],M[v++]);R||b.quadraticCurveTo(M[H-2],M[H-1],C[z-2],C[z-1])}else if(p)for(v=2;v<z;)b.bezierCurveTo(C[v++],C[v++],C[v++],C[v++],C[v++],C[v++]);else for(v=2;v<z;v+=2)b.lineTo(C[v],C[v+1]);R?(b.closePath(),b.fillStrokeShape(this)):b.strokeShape(this)}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():D(this.points(),this.tension())}_getTensionPointsClosed(){const b=this.points(),C=b.length,z=this.tension(),O=N(b[C-2],b[C-1],b[0],b[1],b[2],b[3],z),R=N(b[C-4],b[C-3],b[C-2],b[C-1],b[0],b[1],z),p=D(b,z);return[O[2],O[3]].concat(p).concat([R[0],R[1],b[C-2],b[C-1],R[2],R[3],O[0],O[1],b[0],b[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let b=this.points();if(b.length<4)return{x:b[0]||0,y:b[1]||0,width:0,height:0};this.tension()!==0?b=[b[0],b[1],...this._getTensionPoints(),b[b.length-2],b[b.length-1]]:b=this.points();let C=b[0],z=b[0],O=b[1],R=b[1],p,v;for(let M=0;M<b.length/2;M++)p=b[M*2],v=b[M*2+1],C=Math.min(C,p),z=Math.max(z,p),O=Math.min(O,v),R=Math.max(R,v);return{x:C,y:O,width:z-C,height:R-O}}}return c0.Line=T,T.prototype.className="Line",T.prototype._attrsAffectingSize=["points","bezier","tension"],(0,f._registerNode)(T),y.Factory.addGetterSetter(T,"closed",!1),y.Factory.addGetterSetter(T,"bezier",!1),y.Factory.addGetterSetter(T,"tension",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(T,"points",[],(0,j.getNumberArrayValidator)()),c0}var r0={},fp={},Mv;function d4(){return Mv||(Mv=1,(function(y){Object.defineProperty(y,"__esModule",{value:!0}),y.t2length=y.getQuadraticArcLength=y.getCubicArcLength=y.binomialCoefficients=y.cValues=y.tValues=void 0,y.tValues=[[],[],[-.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]],y.cValues=[[],[],[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]],y.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const f=(T,_,b)=>{let C,z;const R=b/2;C=0;for(let p=0;p<20;p++)z=R*y.tValues[20][p]+R,C+=y.cValues[20][p]*j(T,_,z);return R*C};y.getCubicArcLength=f;const Z=(T,_,b)=>{b===void 0&&(b=1);const C=T[0]-2*T[1]+T[2],z=_[0]-2*_[1]+_[2],O=2*T[1]-2*T[0],R=2*_[1]-2*_[0],p=4*(C*C+z*z),v=4*(C*O+z*R),M=O*O+R*R;if(p===0)return b*Math.sqrt(Math.pow(T[2]-T[0],2)+Math.pow(_[2]-_[0],2));const H=v/(2*p),Y=M/p,S=b+H,m=Y-H*H,A=S*S+m>0?Math.sqrt(S*S+m):0,U=H*H+m>0?Math.sqrt(H*H+m):0,X=H+Math.sqrt(H*H+m)!==0?m*Math.log(Math.abs((S+A)/(H+U))):0;return Math.sqrt(p)/2*(S*A-H*U+X)};y.getQuadraticArcLength=Z;function j(T,_,b){const C=N(1,b,T),z=N(1,b,_),O=C*C+z*z;return Math.sqrt(O)}const N=(T,_,b)=>{const C=b.length-1;let z,O;if(C===0)return 0;if(T===0){O=0;for(let R=0;R<=C;R++)O+=y.binomialCoefficients[C][R]*Math.pow(1-_,C-R)*Math.pow(_,R)*b[R];return O}else{z=new Array(C);for(let R=0;R<C;R++)z[R]=C*(b[R+1]-b[R]);return N(T-1,_,z)}},D=(T,_,b)=>{let C=1,z=T/_,O=(T-b(z))/_,R=0;for(;C>.001;){const p=b(z+O),v=Math.abs(T-p)/_;if(v<C)C=v,z+=O;else{const M=b(z-O),H=Math.abs(T-M)/_;H<C?(C=H,z-=O):O/=2}if(R++,R>500)break}return z};y.t2length=D})(fp)),fp}var Ov;function bp(){if(Ov)return r0;Ov=1,Object.defineProperty(r0,"__esModule",{value:!0}),r0.Path=void 0;const y=me(),f=se(),Z=an(),j=d4();class N extends Z.Shape{constructor(T){super(T),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=N.parsePathData(this.data()),this.pathLength=N.getPathLength(this.dataArray)}_sceneFunc(T){const _=this.dataArray;T.beginPath();let b=!1;for(let C=0;C<_.length;C++){const z=_[C].command,O=_[C].points;switch(z){case"L":T.lineTo(O[0],O[1]);break;case"M":T.moveTo(O[0],O[1]);break;case"C":T.bezierCurveTo(O[0],O[1],O[2],O[3],O[4],O[5]);break;case"Q":T.quadraticCurveTo(O[0],O[1],O[2],O[3]);break;case"A":const R=O[0],p=O[1],v=O[2],M=O[3],H=O[4],Y=O[5],S=O[6],m=O[7],A=v>M?v:M,U=v>M?1:v/M,X=v>M?M/v:1;T.translate(R,p),T.rotate(S),T.scale(U,X),T.arc(0,0,A,H,H+Y,1-m),T.scale(1/U,1/X),T.rotate(-S),T.translate(-R,-p);break;case"z":b=!0,T.closePath();break}}!b&&!this.hasFill()?T.strokeShape(this):T.fillStrokeShape(this)}getSelfRect(){let T=[];this.dataArray.forEach(function(p){if(p.command==="A"){const v=p.points[4],M=p.points[5],H=p.points[4]+M;let Y=Math.PI/180;if(Math.abs(v-H)<Y&&(Y=Math.abs(v-H)),M<0)for(let S=v-Y;S>H;S-=Y){const m=N.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],S,0);T.push(m.x,m.y)}else for(let S=v+Y;S<H;S+=Y){const m=N.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],S,0);T.push(m.x,m.y)}}else if(p.command==="C")for(let v=0;v<=1;v+=.01){const M=N.getPointOnCubicBezier(v,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);T.push(M.x,M.y)}else T=T.concat(p.points)});let _=T[0],b=T[0],C=T[1],z=T[1],O,R;for(let p=0;p<T.length/2;p++)O=T[p*2],R=T[p*2+1],isNaN(O)||(_=Math.min(_,O),b=Math.max(b,O)),isNaN(R)||(C=Math.min(C,R),z=Math.max(z,R));return{x:_,y:C,width:b-_,height:z-C}}getLength(){return this.pathLength}getPointAtLength(T){return N.getPointAtLengthOfDataArray(T,this.dataArray)}static getLineLength(T,_,b,C){return Math.sqrt((b-T)*(b-T)+(C-_)*(C-_))}static getPathLength(T){let _=0;for(let b=0;b<T.length;++b)_+=T[b].pathLength;return _}static getPointAtLengthOfDataArray(T,_){let b,C=0,z=_.length;if(!z)return null;for(;C<z&&T>_[C].pathLength;)T-=_[C].pathLength,++C;if(C===z)return b=_[C-1].points.slice(-2),{x:b[0],y:b[1]};if(T<.01)return _[C].command==="M"?(b=_[C].points.slice(0,2),{x:b[0],y:b[1]}):{x:_[C].start.x,y:_[C].start.y};const O=_[C],R=O.points;switch(O.command){case"L":return N.getPointOnLine(T,O.start.x,O.start.y,R[0],R[1]);case"C":return N.getPointOnCubicBezier((0,j.t2length)(T,N.getPathLength(_),A=>(0,j.getCubicArcLength)([O.start.x,R[0],R[2],R[4]],[O.start.y,R[1],R[3],R[5]],A)),O.start.x,O.start.y,R[0],R[1],R[2],R[3],R[4],R[5]);case"Q":return N.getPointOnQuadraticBezier((0,j.t2length)(T,N.getPathLength(_),A=>(0,j.getQuadraticArcLength)([O.start.x,R[0],R[2]],[O.start.y,R[1],R[3]],A)),O.start.x,O.start.y,R[0],R[1],R[2],R[3]);case"A":const p=R[0],v=R[1],M=R[2],H=R[3],Y=R[5],S=R[6];let m=R[4];return m+=Y*T/O.pathLength,N.getPointOnEllipticalArc(p,v,M,H,m,S)}return null}static getPointOnLine(T,_,b,C,z,O,R){O=O??_,R=R??b;const p=this.getLineLength(_,b,C,z);if(p<1e-10)return{x:_,y:b};if(C===_)return{x:O,y:R+(z>b?T:-T)};const v=(z-b)/(C-_),M=Math.sqrt(T*T/(1+v*v))*(C<_?-1:1),H=v*M;if(Math.abs(R-b-v*(O-_))<1e-10)return{x:O+M,y:R+H};const Y=((O-_)*(C-_)+(R-b)*(z-b))/(p*p),S=_+Y*(C-_),m=b+Y*(z-b),A=this.getLineLength(O,R,S,m),U=Math.sqrt(T*T-A*A),X=Math.sqrt(U*U/(1+v*v))*(C<_?-1:1),et=v*X;return{x:S+X,y:m+et}}static getPointOnCubicBezier(T,_,b,C,z,O,R,p,v){function M(U){return U*U*U}function H(U){return 3*U*U*(1-U)}function Y(U){return 3*U*(1-U)*(1-U)}function S(U){return(1-U)*(1-U)*(1-U)}const m=p*M(T)+O*H(T)+C*Y(T)+_*S(T),A=v*M(T)+R*H(T)+z*Y(T)+b*S(T);return{x:m,y:A}}static getPointOnQuadraticBezier(T,_,b,C,z,O,R){function p(S){return S*S}function v(S){return 2*S*(1-S)}function M(S){return(1-S)*(1-S)}const H=O*p(T)+C*v(T)+_*M(T),Y=R*p(T)+z*v(T)+b*M(T);return{x:H,y:Y}}static getPointOnEllipticalArc(T,_,b,C,z,O){const R=Math.cos(O),p=Math.sin(O),v={x:b*Math.cos(z),y:C*Math.sin(z)};return{x:T+(v.x*R-v.y*p),y:_+(v.x*p+v.y*R)}}static parsePathData(T){if(!T)return[];let _=T;const b=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];_=_.replace(new RegExp(" ","g"),",");for(let H=0;H<b.length;H++)_=_.replace(new RegExp(b[H],"g"),"|"+b[H]);const C=_.split("|"),z=[],O=[];let R=0,p=0;const v=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let M;for(let H=1;H<C.length;H++){let Y=C[H],S=Y.charAt(0);for(Y=Y.slice(1),O.length=0;M=v.exec(Y);)O.push(M[0]);const m=[];for(let A=0,U=O.length;A<U;A++){if(O[A]==="00"){m.push(0,0);continue}const X=parseFloat(O[A]);isNaN(X)?m.push(0):m.push(X)}for(;m.length>0&&!isNaN(m[0]);){let A="",U=[];const X=R,et=p;let V,q,G,J,P,k,st,at,w,E;switch(S){case"l":R+=m.shift(),p+=m.shift(),A="L",U.push(R,p);break;case"L":R=m.shift(),p=m.shift(),U.push(R,p);break;case"m":const x=m.shift(),Q=m.shift();if(R+=x,p+=Q,A="M",z.length>2&&z[z.length-1].command==="z"){for(let K=z.length-2;K>=0;K--)if(z[K].command==="M"){R=z[K].points[0]+x,p=z[K].points[1]+Q;break}}U.push(R,p),S="l";break;case"M":R=m.shift(),p=m.shift(),A="M",U.push(R,p),S="L";break;case"h":R+=m.shift(),A="L",U.push(R,p);break;case"H":R=m.shift(),A="L",U.push(R,p);break;case"v":p+=m.shift(),A="L",U.push(R,p);break;case"V":p=m.shift(),A="L",U.push(R,p);break;case"C":U.push(m.shift(),m.shift(),m.shift(),m.shift()),R=m.shift(),p=m.shift(),U.push(R,p);break;case"c":U.push(R+m.shift(),p+m.shift(),R+m.shift(),p+m.shift()),R+=m.shift(),p+=m.shift(),A="C",U.push(R,p);break;case"S":q=R,G=p,V=z[z.length-1],V.command==="C"&&(q=R+(R-V.points[2]),G=p+(p-V.points[3])),U.push(q,G,m.shift(),m.shift()),R=m.shift(),p=m.shift(),A="C",U.push(R,p);break;case"s":q=R,G=p,V=z[z.length-1],V.command==="C"&&(q=R+(R-V.points[2]),G=p+(p-V.points[3])),U.push(q,G,R+m.shift(),p+m.shift()),R+=m.shift(),p+=m.shift(),A="C",U.push(R,p);break;case"Q":U.push(m.shift(),m.shift()),R=m.shift(),p=m.shift(),U.push(R,p);break;case"q":U.push(R+m.shift(),p+m.shift()),R+=m.shift(),p+=m.shift(),A="Q",U.push(R,p);break;case"T":q=R,G=p,V=z[z.length-1],V.command==="Q"&&(q=R+(R-V.points[0]),G=p+(p-V.points[1])),R=m.shift(),p=m.shift(),A="Q",U.push(q,G,R,p);break;case"t":q=R,G=p,V=z[z.length-1],V.command==="Q"&&(q=R+(R-V.points[0]),G=p+(p-V.points[1])),R+=m.shift(),p+=m.shift(),A="Q",U.push(q,G,R,p);break;case"A":J=m.shift(),P=m.shift(),k=m.shift(),st=m.shift(),at=m.shift(),w=R,E=p,R=m.shift(),p=m.shift(),A="A",U=this.convertEndpointToCenterParameterization(w,E,R,p,st,at,J,P,k);break;case"a":J=m.shift(),P=m.shift(),k=m.shift(),st=m.shift(),at=m.shift(),w=R,E=p,R+=m.shift(),p+=m.shift(),A="A",U=this.convertEndpointToCenterParameterization(w,E,R,p,st,at,J,P,k);break}z.push({command:A||S,points:U,start:{x:X,y:et},pathLength:this.calcLength(X,et,A||S,U)})}(S==="z"||S==="Z")&&z.push({command:"z",points:[],start:void 0,pathLength:0})}return z}static calcLength(T,_,b,C){let z,O,R,p;const v=N;switch(b){case"L":return v.getLineLength(T,_,C[0],C[1]);case"C":return(0,j.getCubicArcLength)([T,C[0],C[2],C[4]],[_,C[1],C[3],C[5]],1);case"Q":return(0,j.getQuadraticArcLength)([T,C[0],C[2]],[_,C[1],C[3]],1);case"A":z=0;const M=C[4],H=C[5],Y=C[4]+H;let S=Math.PI/180;if(Math.abs(M-Y)<S&&(S=Math.abs(M-Y)),O=v.getPointOnEllipticalArc(C[0],C[1],C[2],C[3],M,0),H<0)for(p=M-S;p>Y;p-=S)R=v.getPointOnEllipticalArc(C[0],C[1],C[2],C[3],p,0),z+=v.getLineLength(O.x,O.y,R.x,R.y),O=R;else for(p=M+S;p<Y;p+=S)R=v.getPointOnEllipticalArc(C[0],C[1],C[2],C[3],p,0),z+=v.getLineLength(O.x,O.y,R.x,R.y),O=R;return R=v.getPointOnEllipticalArc(C[0],C[1],C[2],C[3],Y,0),z+=v.getLineLength(O.x,O.y,R.x,R.y),z}return 0}static convertEndpointToCenterParameterization(T,_,b,C,z,O,R,p,v){const M=v*(Math.PI/180),H=Math.cos(M)*(T-b)/2+Math.sin(M)*(_-C)/2,Y=-1*Math.sin(M)*(T-b)/2+Math.cos(M)*(_-C)/2,S=H*H/(R*R)+Y*Y/(p*p);S>1&&(R*=Math.sqrt(S),p*=Math.sqrt(S));let m=Math.sqrt((R*R*(p*p)-R*R*(Y*Y)-p*p*(H*H))/(R*R*(Y*Y)+p*p*(H*H)));z===O&&(m*=-1),isNaN(m)&&(m=0);const A=m*R*Y/p,U=m*-p*H/R,X=(T+b)/2+Math.cos(M)*A-Math.sin(M)*U,et=(_+C)/2+Math.sin(M)*A+Math.cos(M)*U,V=function(at){return Math.sqrt(at[0]*at[0]+at[1]*at[1])},q=function(at,w){return(at[0]*w[0]+at[1]*w[1])/(V(at)*V(w))},G=function(at,w){return(at[0]*w[1]<at[1]*w[0]?-1:1)*Math.acos(q(at,w))},J=G([1,0],[(H-A)/R,(Y-U)/p]),P=[(H-A)/R,(Y-U)/p],k=[(-1*H-A)/R,(-1*Y-U)/p];let st=G(P,k);return q(P,k)<=-1&&(st=Math.PI),q(P,k)>=1&&(st=0),O===0&&st>0&&(st=st-2*Math.PI),O===1&&st<0&&(st=st+2*Math.PI),[X,et,R,p,J,st,M,O]}}return r0.Path=N,N.prototype.className="Path",N.prototype._attrsAffectingSize=["data"],(0,f._registerNode)(N),y.Factory.addGetterSetter(N,"data"),r0}var Uv;function m4(){if(Uv)return o0;Uv=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.Arrow=void 0;const y=me(),f=M3(),Z=ve(),j=se(),N=bp();class D extends f.Line{_sceneFunc(_){super._sceneFunc(_);const b=Math.PI*2,C=this.points();let z=C;const O=this.tension()!==0&&C.length>4;O&&(z=this.getTensionPoints());const R=this.pointerLength(),p=C.length;let v,M;if(O){const S=[z[z.length-4],z[z.length-3],z[z.length-2],z[z.length-1],C[p-2],C[p-1]],m=N.Path.calcLength(z[z.length-4],z[z.length-3],"C",S),A=N.Path.getPointOnQuadraticBezier(Math.min(1,1-R/m),S[0],S[1],S[2],S[3],S[4],S[5]);v=C[p-2]-A.x,M=C[p-1]-A.y}else v=C[p-2]-C[p-4],M=C[p-1]-C[p-3];const H=(Math.atan2(M,v)+b)%b,Y=this.pointerWidth();this.pointerAtEnding()&&(_.save(),_.beginPath(),_.translate(C[p-2],C[p-1]),_.rotate(H),_.moveTo(0,0),_.lineTo(-R,Y/2),_.lineTo(-R,-Y/2),_.closePath(),_.restore(),this.__fillStroke(_)),this.pointerAtBeginning()&&(_.save(),_.beginPath(),_.translate(C[0],C[1]),O?(v=(z[0]+z[2])/2-C[0],M=(z[1]+z[3])/2-C[1]):(v=C[2]-C[0],M=C[3]-C[1]),_.rotate((Math.atan2(-M,-v)+b)%b),_.moveTo(0,0),_.lineTo(-R,Y/2),_.lineTo(-R,-Y/2),_.closePath(),_.restore(),this.__fillStroke(_))}__fillStroke(_){const b=this.dashEnabled();b&&(this.attrs.dashEnabled=!1,_.setLineDash([])),_.fillStrokeShape(this),b&&(this.attrs.dashEnabled=!0)}getSelfRect(){const _=super.getSelfRect(),b=this.pointerWidth()/2;return{x:_.x,y:_.y-b,width:_.width,height:_.height+b*2}}}return o0.Arrow=D,D.prototype.className="Arrow",(0,j._registerNode)(D),y.Factory.addGetterSetter(D,"pointerLength",10,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(D,"pointerWidth",10,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(D,"pointerAtBeginning",!1),y.Factory.addGetterSetter(D,"pointerAtEnding",!0),o0}var f0={},Hv;function p4(){if(Hv)return f0;Hv=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.Circle=void 0;const y=me(),f=an(),Z=ve(),j=se();class N extends f.Shape{_sceneFunc(T){T.beginPath(),T.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),T.closePath(),T.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(T){this.radius()!==T/2&&this.radius(T/2)}setHeight(T){this.radius()!==T/2&&this.radius(T/2)}}return f0.Circle=N,N.prototype._centroid=!0,N.prototype.className="Circle",N.prototype._attrsAffectingSize=["radius"],(0,j._registerNode)(N),y.Factory.addGetterSetter(N,"radius",0,(0,Z.getNumberValidator)()),f0}var h0={},xv;function y4(){if(xv)return h0;xv=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.Ellipse=void 0;const y=me(),f=an(),Z=ve(),j=se();class N extends f.Shape{_sceneFunc(T){const _=this.radiusX(),b=this.radiusY();T.beginPath(),T.save(),_!==b&&T.scale(1,b/_),T.arc(0,0,_,0,Math.PI*2,!1),T.restore(),T.closePath(),T.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(T){this.radiusX(T/2)}setHeight(T){this.radiusY(T/2)}}return h0.Ellipse=N,N.prototype.className="Ellipse",N.prototype._centroid=!0,N.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,j._registerNode)(N),y.Factory.addComponentsGetterSetter(N,"radius",["x","y"]),y.Factory.addGetterSetter(N,"radiusX",0,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(N,"radiusY",0,(0,Z.getNumberValidator)()),h0}var d0={},Gv;function v4(){if(Gv)return d0;Gv=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.Image=void 0;const y=va(),f=me(),Z=an(),j=se(),N=ve();class D extends Z.Shape{constructor(_){super(_),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",b=>{this._removeImageLoad(b.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const _=this.image();_&&_.complete||_&&_.readyState===4||_&&_.addEventListener&&_.addEventListener("load",this._loadListener)}_removeImageLoad(_){_&&_.removeEventListener&&_.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const _=!!this.cornerRadius(),b=this.hasShadow();return _&&b?!0:super._useBufferCanvas(!0)}_sceneFunc(_){const b=this.getWidth(),C=this.getHeight(),z=this.cornerRadius(),O=this.attrs.image;let R;if(O){const p=this.attrs.cropWidth,v=this.attrs.cropHeight;p&&v?R=[O,this.cropX(),this.cropY(),p,v,0,0,b,C]:R=[O,0,0,b,C]}(this.hasFill()||this.hasStroke()||z)&&(_.beginPath(),z?y.Util.drawRoundedRectPath(_,b,C,z):_.rect(0,0,b,C),_.closePath(),_.fillStrokeShape(this)),O&&(z&&_.clip(),_.drawImage.apply(_,R))}_hitFunc(_){const b=this.width(),C=this.height(),z=this.cornerRadius();_.beginPath(),z?y.Util.drawRoundedRectPath(_,b,C,z):_.rect(0,0,b,C),_.closePath(),_.fillStrokeShape(this)}getWidth(){var _,b;return(_=this.attrs.width)!==null&&_!==void 0?_:(b=this.image())===null||b===void 0?void 0:b.width}getHeight(){var _,b;return(_=this.attrs.height)!==null&&_!==void 0?_:(b=this.image())===null||b===void 0?void 0:b.height}static fromURL(_,b,C=null){const z=y.Util.createImageElement();z.onload=function(){const O=new D({image:z});b(O)},z.onerror=C,z.crossOrigin="Anonymous",z.src=_}}return d0.Image=D,D.prototype.className="Image",(0,j._registerNode)(D),f.Factory.addGetterSetter(D,"cornerRadius",0,(0,N.getNumberOrArrayOfNumbersValidator)(4)),f.Factory.addGetterSetter(D,"image"),f.Factory.addComponentsGetterSetter(D,"crop",["x","y","width","height"]),f.Factory.addGetterSetter(D,"cropX",0,(0,N.getNumberValidator)()),f.Factory.addGetterSetter(D,"cropY",0,(0,N.getNumberValidator)()),f.Factory.addGetterSetter(D,"cropWidth",0,(0,N.getNumberValidator)()),f.Factory.addGetterSetter(D,"cropHeight",0,(0,N.getNumberValidator)()),d0}var Ic={},Bv;function g4(){if(Bv)return Ic;Bv=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.Tag=Ic.Label=void 0;const y=me(),f=an(),Z=_p(),j=ve(),N=se(),D=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],T="Change.konva",_="none",b="up",C="right",z="down",O="left",R=D.length;class p extends Z.Group{constructor(H){super(H),this.on("add.konva",function(Y){this._addListeners(Y.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(H){let Y=this,S;const m=function(){Y._sync()};for(S=0;S<R;S++)H.on(D[S]+T,m)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let H=this.getText(),Y=this.getTag(),S,m,A,U,X,et,V;if(H&&Y){switch(S=H.width(),m=H.height(),A=Y.pointerDirection(),U=Y.pointerWidth(),V=Y.pointerHeight(),X=0,et=0,A){case b:X=S/2,et=-1*V;break;case C:X=S+U,et=m/2;break;case z:X=S/2,et=m+V;break;case O:X=-1*U,et=m/2;break}Y.setAttrs({x:-1*X,y:-1*et,width:S,height:m}),H.setAttrs({x:-1*X,y:-1*et})}}}Ic.Label=p,p.prototype.className="Label",(0,N._registerNode)(p);class v extends f.Shape{_sceneFunc(H){const Y=this.width(),S=this.height(),m=this.pointerDirection(),A=this.pointerWidth(),U=this.pointerHeight(),X=this.cornerRadius();let et=0,V=0,q=0,G=0;typeof X=="number"?et=V=q=G=Math.min(X,Y/2,S/2):(et=Math.min(X[0]||0,Y/2,S/2),V=Math.min(X[1]||0,Y/2,S/2),G=Math.min(X[2]||0,Y/2,S/2),q=Math.min(X[3]||0,Y/2,S/2)),H.beginPath(),H.moveTo(et,0),m===b&&(H.lineTo((Y-A)/2,0),H.lineTo(Y/2,-1*U),H.lineTo((Y+A)/2,0)),H.lineTo(Y-V,0),H.arc(Y-V,V,V,Math.PI*3/2,0,!1),m===C&&(H.lineTo(Y,(S-U)/2),H.lineTo(Y+A,S/2),H.lineTo(Y,(S+U)/2)),H.lineTo(Y,S-G),H.arc(Y-G,S-G,G,0,Math.PI/2,!1),m===z&&(H.lineTo((Y+A)/2,S),H.lineTo(Y/2,S+U),H.lineTo((Y-A)/2,S)),H.lineTo(q,S),H.arc(q,S-q,q,Math.PI/2,Math.PI,!1),m===O&&(H.lineTo(0,(S+U)/2),H.lineTo(-1*A,S/2),H.lineTo(0,(S-U)/2)),H.lineTo(0,et),H.arc(et,et,et,Math.PI,Math.PI*3/2,!1),H.closePath(),H.fillStrokeShape(this)}getSelfRect(){let H=0,Y=0,S=this.pointerWidth(),m=this.pointerHeight(),A=this.pointerDirection(),U=this.width(),X=this.height();return A===b?(Y-=m,X+=m):A===z?X+=m:A===O?(H-=S*1.5,U+=S):A===C&&(U+=S*1.5),{x:H,y:Y,width:U,height:X}}}return Ic.Tag=v,v.prototype.className="Tag",(0,N._registerNode)(v),y.Factory.addGetterSetter(v,"pointerDirection",_),y.Factory.addGetterSetter(v,"pointerWidth",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(v,"pointerHeight",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(v,"cornerRadius",0,(0,j.getNumberOrArrayOfNumbersValidator)(4)),Ic}var m0={},qv;function O3(){if(qv)return m0;qv=1,Object.defineProperty(m0,"__esModule",{value:!0}),m0.Rect=void 0;const y=me(),f=an(),Z=se(),j=va(),N=ve();class D extends f.Shape{_sceneFunc(_){const b=this.cornerRadius(),C=this.width(),z=this.height();_.beginPath(),b?j.Util.drawRoundedRectPath(_,C,z,b):_.rect(0,0,C,z),_.closePath(),_.fillStrokeShape(this)}}return m0.Rect=D,D.prototype.className="Rect",(0,Z._registerNode)(D),y.Factory.addGetterSetter(D,"cornerRadius",0,(0,N.getNumberOrArrayOfNumbersValidator)(4)),m0}var p0={},Vv;function S4(){if(Vv)return p0;Vv=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.RegularPolygon=void 0;const y=me(),f=an(),Z=ve(),j=se();class N extends f.Shape{_sceneFunc(T){const _=this._getPoints();T.beginPath(),T.moveTo(_[0].x,_[0].y);for(let b=1;b<_.length;b++)T.lineTo(_[b].x,_[b].y);T.closePath(),T.fillStrokeShape(this)}_getPoints(){const T=this.attrs.sides,_=this.attrs.radius||0,b=[];for(let C=0;C<T;C++)b.push({x:_*Math.sin(C*2*Math.PI/T),y:-1*_*Math.cos(C*2*Math.PI/T)});return b}getSelfRect(){const T=this._getPoints();let _=T[0].x,b=T[0].y,C=T[0].x,z=T[0].y;return T.forEach(O=>{_=Math.min(_,O.x),b=Math.max(b,O.x),C=Math.min(C,O.y),z=Math.max(z,O.y)}),{x:_,y:C,width:b-_,height:z-C}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(T){this.radius(T/2)}setHeight(T){this.radius(T/2)}}return p0.RegularPolygon=N,N.prototype.className="RegularPolygon",N.prototype._centroid=!0,N.prototype._attrsAffectingSize=["radius"],(0,j._registerNode)(N),y.Factory.addGetterSetter(N,"radius",0,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(N,"sides",0,(0,Z.getNumberValidator)()),p0}var y0={},Yv;function _4(){if(Yv)return y0;Yv=1,Object.defineProperty(y0,"__esModule",{value:!0}),y0.Ring=void 0;const y=me(),f=an(),Z=ve(),j=se(),N=Math.PI*2;class D extends f.Shape{_sceneFunc(_){_.beginPath(),_.arc(0,0,this.innerRadius(),0,N,!1),_.moveTo(this.outerRadius(),0),_.arc(0,0,this.outerRadius(),N,0,!0),_.closePath(),_.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(_){this.outerRadius(_/2)}setHeight(_){this.outerRadius(_/2)}}return y0.Ring=D,D.prototype.className="Ring",D.prototype._centroid=!0,D.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,j._registerNode)(D),y.Factory.addGetterSetter(D,"innerRadius",0,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(D,"outerRadius",0,(0,Z.getNumberValidator)()),y0}var v0={},jv;function E4(){if(jv)return v0;jv=1,Object.defineProperty(v0,"__esModule",{value:!0}),v0.Sprite=void 0;const y=me(),f=an(),Z=Ep(),j=ve(),N=se();class D extends f.Shape{constructor(_){super(_),this._updated=!0,this.anim=new Z.Animation(()=>{const b=this._updated;return this._updated=!1,b}),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(_){const b=this.animation(),C=this.frameIndex(),z=C*4,O=this.animations()[b],R=this.frameOffsets(),p=O[z+0],v=O[z+1],M=O[z+2],H=O[z+3],Y=this.image();if((this.hasFill()||this.hasStroke())&&(_.beginPath(),_.rect(0,0,M,H),_.closePath(),_.fillStrokeShape(this)),Y)if(R){const S=R[b],m=C*2;_.drawImage(Y,p,v,M,H,S[m+0],S[m+1],M,H)}else _.drawImage(Y,p,v,M,H,0,0,M,H)}_hitFunc(_){const b=this.animation(),C=this.frameIndex(),z=C*4,O=this.animations()[b],R=this.frameOffsets(),p=O[z+2],v=O[z+3];if(_.beginPath(),R){const M=R[b],H=C*2;_.rect(M[H+0],M[H+1],p,v)}else _.rect(0,0,p,v);_.closePath(),_.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const _=this;this.interval=setInterval(function(){_._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const _=this.getLayer();this.anim.setLayers(_),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const _=this.frameIndex(),b=this.animation(),C=this.animations(),z=C[b],O=z.length/4;_<O-1?this.frameIndex(_+1):this.frameIndex(0)}}return v0.Sprite=D,D.prototype.className="Sprite",(0,N._registerNode)(D),y.Factory.addGetterSetter(D,"animation"),y.Factory.addGetterSetter(D,"animations"),y.Factory.addGetterSetter(D,"frameOffsets"),y.Factory.addGetterSetter(D,"image"),y.Factory.addGetterSetter(D,"frameIndex",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(D,"frameRate",17,(0,j.getNumberValidator)()),y.Factory.backCompat(D,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),v0}var g0={},Xv;function b4(){if(Xv)return g0;Xv=1,Object.defineProperty(g0,"__esModule",{value:!0}),g0.Star=void 0;const y=me(),f=an(),Z=ve(),j=se();class N extends f.Shape{_sceneFunc(T){const _=this.innerRadius(),b=this.outerRadius(),C=this.numPoints();T.beginPath(),T.moveTo(0,0-b);for(let z=1;z<C*2;z++){const O=z%2===0?b:_,R=O*Math.sin(z*Math.PI/C),p=-1*O*Math.cos(z*Math.PI/C);T.lineTo(R,p)}T.closePath(),T.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(T){this.outerRadius(T/2)}setHeight(T){this.outerRadius(T/2)}}return g0.Star=N,N.prototype.className="Star",N.prototype._centroid=!0,N.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,j._registerNode)(N),y.Factory.addGetterSetter(N,"numPoints",5,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(N,"innerRadius",0,(0,Z.getNumberValidator)()),y.Factory.addGetterSetter(N,"outerRadius",0,(0,Z.getNumberValidator)()),g0}var uh={},Kv;function U3(){if(Kv)return uh;Kv=1,Object.defineProperty(uh,"__esModule",{value:!0}),uh.Text=void 0,uh.stringToArray=T;const y=va(),f=me(),Z=an(),j=se(),N=ve(),D=se();function T(pt){return[...pt].reduce((lt,gt,Tt,ft)=>{if(new RegExp("\\p{Emoji}","u").test(gt)){const F=ft[Tt+1];F&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(F)?(lt.push(gt+F),ft[Tt+1]=""):lt.push(gt)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(gt+(ft[Tt+1]||""))?lt.push(gt+ft[Tt+1]):Tt>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(gt)?lt[lt.length-1]+=gt:gt&&lt.push(gt);return lt},[])}const _="auto",b="center",C="inherit",z="justify",O="Change.konva",R="2d",p="-",v="left",M="text",H="Text",Y="top",S="bottom",m="middle",A="normal",U="px ",X=" ",et="right",V="rtl",q="word",G="char",J="none",P="…",k=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],st=k.length;function at(pt){return pt.split(",").map(lt=>{lt=lt.trim();const gt=lt.indexOf(" ")>=0,Tt=lt.indexOf('"')>=0||lt.indexOf("'")>=0;return gt&&!Tt&&(lt=`"${lt}"`),lt}).join(", ")}let w;function E(){return w||(w=y.Util.createCanvasElement().getContext(R),w)}function x(pt){pt.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Q(pt){pt.setAttr("miterLimit",2),pt.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function K(pt){return pt=pt||{},!pt.fillLinearGradientColorStops&&!pt.fillRadialGradientColorStops&&!pt.fillPatternImage&&(pt.fill=pt.fill||"black"),pt}class W extends Z.Shape{constructor(lt){super(K(lt)),this._partialTextX=0,this._partialTextY=0;for(let gt=0;gt<st;gt++)this.on(k[gt]+O,this._setTextData);this._setTextData()}_sceneFunc(lt){const gt=this.textArr,Tt=gt.length;if(!this.text())return;let ft=this.padding(),F=this.fontSize(),ot=this.lineHeight()*F,Ct=this.verticalAlign(),Dt=this.direction(),zt=0,Vt=this.align(),Qt=this.getWidth(),he=this.letterSpacing(),Ht=this.fill(),Ue=this.textDecoration(),Jt=Ue.indexOf("underline")!==-1,pe=Ue.indexOf("line-through")!==-1,zn;Dt=Dt===C?lt.direction:Dt;let we=ot/2,Kn=m;if(j.Konva._fixTextRendering){const It=this.measureSize("M");Kn="alphabetic",we=(It.fontBoundingBoxAscent-It.fontBoundingBoxDescent)/2+ot/2}for(Dt===V&&lt.setAttr("direction",Dt),lt.setAttr("font",this._getContextFont()),lt.setAttr("textBaseline",Kn),lt.setAttr("textAlign",v),Ct===m?zt=(this.getHeight()-Tt*ot-ft*2)/2:Ct===S&&(zt=this.getHeight()-Tt*ot-ft*2),lt.translate(ft,zt+ft),zn=0;zn<Tt;zn++){let It=0,Re=0;const Qa=gt[zn],ul=Qa.text,Ra=Qa.width,La=Qa.lastInParagraph;if(lt.save(),Vt===et?It+=Qt-Ra-ft*2:Vt===b&&(It+=(Qt-Ra-ft*2)/2),Jt){lt.save(),lt.beginPath();const Za=j.Konva._fixTextRendering?Math.round(F/4):Math.round(F/2),We=It,Pe=we+Re+Za;lt.moveTo(We,Pe);const xa=Vt===z&&!La?Qt-ft*2:Ra;lt.lineTo(We+Math.round(xa),Pe),lt.lineWidth=F/15;const Zi=this._getLinearGradient();lt.strokeStyle=Zi||Ht,lt.stroke(),lt.restore()}if(pe){lt.save(),lt.beginPath();const Za=j.Konva._fixTextRendering?-Math.round(F/4):0;lt.moveTo(It,we+Re+Za);const We=Vt===z&&!La?Qt-ft*2:Ra;lt.lineTo(It+Math.round(We),we+Re+Za),lt.lineWidth=F/15;const Pe=this._getLinearGradient();lt.strokeStyle=Pe||Ht,lt.stroke(),lt.restore()}if(Dt!==V&&(he!==0||Vt===z)){const Za=ul.split(" ").length-1,We=T(ul);for(let Pe=0;Pe<We.length;Pe++){const xa=We[Pe];xa===" "&&!La&&Vt===z&&(It+=(Qt-ft*2-Ra)/Za),this._partialTextX=It,this._partialTextY=we+Re,this._partialText=xa,lt.fillStrokeShape(this),It+=this.measureSize(xa).width+he}}else he!==0&&lt.setAttr("letterSpacing",`${he}px`),this._partialTextX=It,this._partialTextY=we+Re,this._partialText=ul,lt.fillStrokeShape(this);lt.restore(),Tt>1&&(we+=ot)}}_hitFunc(lt){const gt=this.getWidth(),Tt=this.getHeight();lt.beginPath(),lt.rect(0,0,gt,Tt),lt.closePath(),lt.fillStrokeShape(this)}setText(lt){const gt=y.Util._isString(lt)?lt:lt==null?"":lt+"";return this._setAttr(M,gt),this}getWidth(){return this.attrs.width===_||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===_||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return y.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(lt){var gt,Tt,ft,F,ot,Ct,Dt,zt,Vt,Qt,he;let Ht=E(),Ue=this.fontSize(),Jt;Ht.save(),Ht.font=this._getContextFont(),Jt=Ht.measureText(lt),Ht.restore();const pe=Ue/100;return{actualBoundingBoxAscent:(gt=Jt.actualBoundingBoxAscent)!==null&&gt!==void 0?gt:71.58203125*pe,actualBoundingBoxDescent:(Tt=Jt.actualBoundingBoxDescent)!==null&&Tt!==void 0?Tt:0,actualBoundingBoxLeft:(ft=Jt.actualBoundingBoxLeft)!==null&&ft!==void 0?ft:-7.421875*pe,actualBoundingBoxRight:(F=Jt.actualBoundingBoxRight)!==null&&F!==void 0?F:75.732421875*pe,alphabeticBaseline:(ot=Jt.alphabeticBaseline)!==null&&ot!==void 0?ot:0,emHeightAscent:(Ct=Jt.emHeightAscent)!==null&&Ct!==void 0?Ct:100*pe,emHeightDescent:(Dt=Jt.emHeightDescent)!==null&&Dt!==void 0?Dt:-20*pe,fontBoundingBoxAscent:(zt=Jt.fontBoundingBoxAscent)!==null&&zt!==void 0?zt:91*pe,fontBoundingBoxDescent:(Vt=Jt.fontBoundingBoxDescent)!==null&&Vt!==void 0?Vt:21*pe,hangingBaseline:(Qt=Jt.hangingBaseline)!==null&&Qt!==void 0?Qt:72.80000305175781*pe,ideographicBaseline:(he=Jt.ideographicBaseline)!==null&&he!==void 0?he:-21*pe,width:Jt.width,height:Ue}}_getContextFont(){return this.fontStyle()+X+this.fontVariant()+X+(this.fontSize()+U)+at(this.fontFamily())}_addTextLine(lt){this.align()===z&&(lt=lt.trim());const Tt=this._getTextWidth(lt);return this.textArr.push({text:lt,width:Tt,lastInParagraph:!1})}_getTextWidth(lt){const gt=this.letterSpacing(),Tt=lt.length;return E().measureText(lt).width+gt*Tt}_setTextData(){let lt=this.text().split(`
2
+ `),gt=+this.fontSize(),Tt=0,ft=this.lineHeight()*gt,F=this.attrs.width,ot=this.attrs.height,Ct=F!==_&&F!==void 0,Dt=ot!==_&&ot!==void 0,zt=this.padding(),Vt=F-zt*2,Qt=ot-zt*2,he=0,Ht=this.wrap(),Ue=Ht!==J,Jt=Ht!==G&&Ue,pe=this.ellipsis();this.textArr=[],E().font=this._getContextFont();const zn=pe?this._getTextWidth(P):0;for(let we=0,Kn=lt.length;we<Kn;++we){let It=lt[we],Re=this._getTextWidth(It);if(Ct&&Re>Vt)for(;It.length>0;){let Qa=0,ul=T(It).length,Ra="",La=0;for(;Qa<ul;){const Za=Qa+ul>>>1,We=T(It),Pe=We.slice(0,Za+1).join(""),xa=this._getTextWidth(Pe);(pe&&Dt&&he+ft>Qt?xa+zn:xa)<=Vt?(Qa=Za+1,Ra=Pe,La=xa):ul=Za}if(Ra){if(Jt){const Pe=T(It),xa=T(Ra),Zi=Pe[xa.length],Eu=Zi===X||Zi===p;let ga;if(Eu&&La<=Vt)ga=xa.length;else{const gs=xa.lastIndexOf(X),oh=xa.lastIndexOf(p);ga=Math.max(gs,oh)+1}ga>0&&(Qa=ga,Ra=Pe.slice(0,Qa).join(""),La=this._getTextWidth(Ra))}if(Ra=Ra.trimRight(),this._addTextLine(Ra),Tt=Math.max(Tt,La),he+=ft,this._shouldHandleEllipsis(he)){this._tryToAddEllipsisToLastLine();break}if(It=T(It).slice(Qa).join("").trimLeft(),It.length>0&&(Re=this._getTextWidth(It),Re<=Vt)){this._addTextLine(It),he+=ft,Tt=Math.max(Tt,Re);break}}else break}else this._addTextLine(It),he+=ft,Tt=Math.max(Tt,Re),this._shouldHandleEllipsis(he)&&we<Kn-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),Dt&&he+ft>Qt)break}this.textHeight=gt,this.textWidth=Tt}_shouldHandleEllipsis(lt){const gt=+this.fontSize(),Tt=this.lineHeight()*gt,ft=this.attrs.height,F=ft!==_&&ft!==void 0,ot=this.padding(),Ct=ft-ot*2;return!(this.wrap()!==J)||F&&lt+Tt>Ct}_tryToAddEllipsisToLastLine(){const lt=this.attrs.width,gt=lt!==_&&lt!==void 0,Tt=this.padding(),ft=lt-Tt*2,F=this.ellipsis(),ot=this.textArr[this.textArr.length-1];!ot||!F||(gt&&(this._getTextWidth(ot.text+P)<ft||(ot.text=ot.text.slice(0,ot.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(ot.text+P))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const lt=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,gt=this.hasShadow();return lt&&gt?!0:super._useBufferCanvas()}}return uh.Text=W,W.prototype._fillFunc=x,W.prototype._strokeFunc=Q,W.prototype.className=H,W.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,D._registerNode)(W),f.Factory.overWriteSetter(W,"width",(0,N.getNumberOrAutoValidator)()),f.Factory.overWriteSetter(W,"height",(0,N.getNumberOrAutoValidator)()),f.Factory.addGetterSetter(W,"direction",C),f.Factory.addGetterSetter(W,"fontFamily","Arial"),f.Factory.addGetterSetter(W,"fontSize",12,(0,N.getNumberValidator)()),f.Factory.addGetterSetter(W,"fontStyle",A),f.Factory.addGetterSetter(W,"fontVariant",A),f.Factory.addGetterSetter(W,"padding",0,(0,N.getNumberValidator)()),f.Factory.addGetterSetter(W,"align",v),f.Factory.addGetterSetter(W,"verticalAlign",Y),f.Factory.addGetterSetter(W,"lineHeight",1,(0,N.getNumberValidator)()),f.Factory.addGetterSetter(W,"wrap",q),f.Factory.addGetterSetter(W,"ellipsis",!1,(0,N.getBooleanValidator)()),f.Factory.addGetterSetter(W,"letterSpacing",0,(0,N.getNumberValidator)()),f.Factory.addGetterSetter(W,"text","",(0,N.getStringValidator)()),f.Factory.addGetterSetter(W,"textDecoration",""),uh}var S0={},Qv;function C4(){if(Qv)return S0;Qv=1,Object.defineProperty(S0,"__esModule",{value:!0}),S0.TextPath=void 0;const y=va(),f=me(),Z=an(),j=bp(),N=U3(),D=ve(),T=se(),_="",b="normal";function C(R){R.fillText(this.partialText,0,0)}function z(R){R.strokeText(this.partialText,0,0)}class O extends Z.Shape{constructor(p){super(p),this.dummyCanvas=y.Util.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",this._setTextData),this._setTextData()}_getTextPathLength(){return j.Path.getPathLength(this.dataArray)}_getPointAtLength(p){if(!this.attrs.data)return null;const v=this.pathLength;return p-1>v?null:j.Path.getPointAtLengthOfDataArray(p,this.dataArray)}_readDataAttribute(){this.dataArray=j.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(p){p.setAttr("font",this._getContextFont()),p.setAttr("textBaseline",this.textBaseline()),p.setAttr("textAlign","left"),p.save();const v=this.textDecoration(),M=this.fill(),H=this.fontSize(),Y=this.glyphInfo;v==="underline"&&p.beginPath();for(let S=0;S<Y.length;S++){p.save();const m=Y[S].p0;p.translate(m.x,m.y),p.rotate(Y[S].rotation),this.partialText=Y[S].text,p.fillStrokeShape(this),v==="underline"&&(S===0&&p.moveTo(0,H/2+1),p.lineTo(H,H/2+1)),p.restore()}v==="underline"&&(p.strokeStyle=M,p.lineWidth=H/20,p.stroke()),p.restore()}_hitFunc(p){p.beginPath();const v=this.glyphInfo;if(v.length>=1){const M=v[0].p0;p.moveTo(M.x,M.y)}for(let M=0;M<v.length;M++){const H=v[M].p1;p.lineTo(H.x,H.y)}p.setAttr("lineWidth",this.fontSize()),p.setAttr("strokeStyle",this.colorKey),p.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return y.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(p){return N.Text.prototype.setText.call(this,p)}_getContextFont(){return N.Text.prototype._getContextFont.call(this)}_getTextSize(p){const M=this.dummyCanvas.getContext("2d");M.save(),M.font=this._getContextFont();const H=M.measureText(p);return M.restore(),{width:H.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:p,height:v}=this._getTextSize(this.attrs.text);if(this.textWidth=p,this.textHeight=v,this.glyphInfo=[],!this.attrs.data)return null;const M=this.letterSpacing(),H=this.align(),Y=this.kerningFunc(),S=Math.max(this.textWidth+((this.attrs.text||"").length-1)*M,0);let m=0;H==="center"&&(m=Math.max(0,this.pathLength/2-S/2)),H==="right"&&(m=Math.max(0,this.pathLength-S));const A=(0,N.stringToArray)(this.text());let U=m;for(let X=0;X<A.length;X++){const et=this._getPointAtLength(U);if(!et)return;let V=this._getTextSize(A[X]).width+M;if(A[X]===" "&&H==="justify"){const st=this.text().split(" ").length-1;V+=(this.pathLength-S)/st}const q=this._getPointAtLength(U+V);if(!q)return;const G=j.Path.getLineLength(et.x,et.y,q.x,q.y);let J=0;if(Y)try{J=Y(A[X-1],A[X])*this.fontSize()}catch{J=0}et.x+=J,q.x+=J,this.textWidth+=J;const P=j.Path.getPointOnLine(J+G/2,et.x,et.y,q.x,q.y),k=Math.atan2(q.y-et.y,q.x-et.x);this.glyphInfo.push({transposeX:P.x,transposeY:P.y,text:A[X],rotation:k,p0:et,p1:q}),U+=V}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const p=[];this.glyphInfo.forEach(function(U){p.push(U.p0.x),p.push(U.p0.y),p.push(U.p1.x),p.push(U.p1.y)});let v=p[0]||0,M=p[0]||0,H=p[1]||0,Y=p[1]||0,S,m;for(let U=0;U<p.length/2;U++)S=p[U*2],m=p[U*2+1],v=Math.min(v,S),M=Math.max(M,S),H=Math.min(H,m),Y=Math.max(Y,m);const A=this.fontSize();return{x:v-A/2,y:H-A/2,width:M-v+A,height:Y-H+A}}destroy(){return y.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}return S0.TextPath=O,O.prototype._fillFunc=C,O.prototype._strokeFunc=z,O.prototype._fillFuncHit=C,O.prototype._strokeFuncHit=z,O.prototype.className="TextPath",O.prototype._attrsAffectingSize=["text","fontSize","data"],(0,T._registerNode)(O),f.Factory.addGetterSetter(O,"data"),f.Factory.addGetterSetter(O,"fontFamily","Arial"),f.Factory.addGetterSetter(O,"fontSize",12,(0,D.getNumberValidator)()),f.Factory.addGetterSetter(O,"fontStyle",b),f.Factory.addGetterSetter(O,"align","left"),f.Factory.addGetterSetter(O,"letterSpacing",0,(0,D.getNumberValidator)()),f.Factory.addGetterSetter(O,"textBaseline","middle"),f.Factory.addGetterSetter(O,"fontVariant",b),f.Factory.addGetterSetter(O,"text",_),f.Factory.addGetterSetter(O,"textDecoration",""),f.Factory.addGetterSetter(O,"kerningFunc",void 0),S0}var _0={},Lv;function T4(){if(Lv)return _0;Lv=1,Object.defineProperty(_0,"__esModule",{value:!0}),_0.Transformer=void 0;const y=va(),f=me(),Z=Ta(),j=an(),N=O3(),D=_p(),T=se(),_=ve(),b=se(),C="tr-konva",z=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(V=>V+`.${C}`).join(" "),O="nodesRect",R=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],p={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},v="ontouchstart"in T.Konva._global;function M(V,q,G){if(V==="rotater")return G;q+=y.Util.degToRad(p[V]||0);const J=(y.Util.radToDeg(q)%360+360)%360;return y.Util._inRange(J,315+22.5,360)||y.Util._inRange(J,0,22.5)?"ns-resize":y.Util._inRange(J,45-22.5,45+22.5)?"nesw-resize":y.Util._inRange(J,90-22.5,90+22.5)?"ew-resize":y.Util._inRange(J,135-22.5,135+22.5)?"nwse-resize":y.Util._inRange(J,180-22.5,180+22.5)?"ns-resize":y.Util._inRange(J,225-22.5,225+22.5)?"nesw-resize":y.Util._inRange(J,270-22.5,270+22.5)?"ew-resize":y.Util._inRange(J,315-22.5,315+22.5)?"nwse-resize":(y.Util.error("Transformer has unknown angle for cursor detection: "+J),"pointer")}const H=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Y(V){return{x:V.x+V.width/2*Math.cos(V.rotation)+V.height/2*Math.sin(-V.rotation),y:V.y+V.height/2*Math.cos(V.rotation)+V.width/2*Math.sin(V.rotation)}}function S(V,q,G){const J=G.x+(V.x-G.x)*Math.cos(q)-(V.y-G.y)*Math.sin(q),P=G.y+(V.x-G.x)*Math.sin(q)+(V.y-G.y)*Math.cos(q);return{...V,rotation:V.rotation+q,x:J,y:P}}function m(V,q){const G=Y(V);return S(V,q,G)}function A(V,q,G){let J=q;for(let P=0;P<V.length;P++){const k=T.Konva.getAngle(V[P]),st=Math.abs(k-q)%(Math.PI*2);Math.min(st,Math.PI*2-st)<G&&(J=k)}return J}let U=0;class X extends D.Group{constructor(q){super(q),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(z,this.update),this.getNode()&&this.update()}attachTo(q){return this.setNode(q),this}setNode(q){return y.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([q])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return C+this._id}setNodes(q=[]){this._nodes&&this._nodes.length&&this.detach();const G=q.filter(P=>P.isAncestorOf(this)?(y.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=q=G,q.length===1&&this.useSingleNodeRotation()?this.rotation(q[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(P=>{const k=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(P._attrsAffectingSize.length){const st=P._attrsAffectingSize.map(at=>at+"Change."+this._getEventNamespace()).join(" ");P.on(st,k)}P.on(R.map(st=>st+`.${this._getEventNamespace()}`).join(" "),k),P.on(`absoluteTransformChange.${this._getEventNamespace()}`,k),this._proxyDrag(P)}),this._resetTransformCache(),this.findOne(".top-left")&&this.update(),this}_proxyDrag(q){let G;q.on(`dragstart.${this._getEventNamespace()}`,J=>{G=q.getAbsolutePosition(),!this.isDragging()&&q!==this.findOne(".back")&&this.startDrag(J,!1)}),q.on(`dragmove.${this._getEventNamespace()}`,J=>{if(!G)return;const P=q.getAbsolutePosition(),k=P.x-G.x,st=P.y-G.y;this.nodes().forEach(at=>{if(at===q||at.isDragging())return;const w=at.getAbsolutePosition();at.setAbsolutePosition({x:w.x+k,y:w.y+st}),at.startDrag(J)}),G=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(q=>{q.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(O),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(O,this.__getNodeRect)}__getNodeShape(q,G=this.rotation(),J){const P=q.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),k=q.getAbsoluteScale(J),st=q.getAbsolutePosition(J),at=P.x*k.x-q.offsetX()*k.x,w=P.y*k.y-q.offsetY()*k.y,E=(T.Konva.getAngle(q.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),x={x:st.x+at*Math.cos(E)+w*Math.sin(-E),y:st.y+w*Math.cos(E)+at*Math.sin(E),width:P.width*k.x,height:P.height*k.y,rotation:E};return S(x,-T.Konva.getAngle(G),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const G=[];this.nodes().map(E=>{const x=E.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),Q=[{x:x.x,y:x.y},{x:x.x+x.width,y:x.y},{x:x.x+x.width,y:x.y+x.height},{x:x.x,y:x.y+x.height}],K=E.getAbsoluteTransform();Q.forEach(function(W){const pt=K.point(W);G.push(pt)})});const J=new y.Transform;J.rotate(-T.Konva.getAngle(this.rotation()));let P=1/0,k=1/0,st=-1/0,at=-1/0;G.forEach(function(E){const x=J.point(E);P===void 0&&(P=st=x.x,k=at=x.y),P=Math.min(P,x.x),k=Math.min(k,x.y),st=Math.max(st,x.x),at=Math.max(at,x.y)}),J.invert();const w=J.point({x:P,y:k});return{x:w.x,y:w.y,width:st-P,height:at-k,rotation:T.Konva.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(),H.forEach(q=>{this._createAnchor(q)}),this._createAnchor("rotater")}_createAnchor(q){const G=new N.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:q+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:v?10:"auto"}),J=this;G.on("mousedown touchstart",function(P){J._handleMouseDown(P)}),G.on("dragstart",P=>{G.stopDrag(),P.cancelBubble=!0}),G.on("dragend",P=>{P.cancelBubble=!0}),G.on("mouseenter",()=>{const P=T.Konva.getAngle(this.rotation()),k=this.rotateAnchorCursor(),st=M(q,P,k);G.getStage().content&&(G.getStage().content.style.cursor=st),this._cursorChange=!0}),G.on("mouseout",()=>{G.getStage().content&&(G.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(G)}_createBack(){const q=new j.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(G,J){const P=J.getParent(),k=P.padding();G.beginPath(),G.rect(-k,-k,J.width()+k*2,J.height()+k*2),G.moveTo(J.width()/2,-k),P.rotateEnabled()&&P.rotateLineVisible()&&G.lineTo(J.width()/2,-P.rotateAnchorOffset()*y.Util._sign(J.height())-k),G.fillStrokeShape(J)},hitFunc:(G,J)=>{if(!this.shouldOverdrawWholeArea())return;const P=this.padding();G.beginPath(),G.rect(-P,-P,J.width()+P*2,J.height()+P*2),G.fillStrokeShape(J)}});this.add(q),this._proxyDrag(q),q.on("dragstart",G=>{G.cancelBubble=!0}),q.on("dragmove",G=>{G.cancelBubble=!0}),q.on("dragend",G=>{G.cancelBubble=!0}),this.on("dragmove",G=>{this.update()})}_handleMouseDown(q){if(this._transforming)return;this._movingAnchorName=q.target.name().split(" ")[0];const G=this._getNodeRect(),J=G.width,P=G.height,k=Math.sqrt(Math.pow(J,2)+Math.pow(P,2));this.sin=Math.abs(P/k),this.cos=Math.abs(J/k),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 st=q.target.getAbsolutePosition(),at=q.target.getStage().getPointerPosition();this._anchorDragOffset={x:at.x-st.x,y:at.y-st.y},U++,this._fire("transformstart",{evt:q.evt,target:this.getNode()}),this._nodes.forEach(w=>{w._fire("transformstart",{evt:q.evt,target:w})})}_handleMouseMove(q){let G,J,P;const k=this.findOne("."+this._movingAnchorName),st=k.getStage();st.setPointersPositions(q);const at=st.getPointerPosition();let w={x:at.x-this._anchorDragOffset.x,y:at.y-this._anchorDragOffset.y};const E=k.getAbsolutePosition();this.anchorDragBoundFunc()&&(w=this.anchorDragBoundFunc()(E,w,q)),k.setAbsolutePosition(w);const x=k.getAbsolutePosition();if(E.x===x.x&&E.y===x.y)return;if(this._movingAnchorName==="rotater"){const ft=this._getNodeRect();G=k.x()-ft.width/2,J=-k.y()+ft.height/2;let F=Math.atan2(-J,G)+Math.PI/2;ft.height<0&&(F-=Math.PI);const Ct=T.Konva.getAngle(this.rotation())+F,Dt=T.Konva.getAngle(this.rotationSnapTolerance()),Vt=A(this.rotationSnaps(),Ct,Dt)-ft.rotation,Qt=m(ft,Vt);this._fitNodesInto(Qt,q);return}const Q=this.shiftBehavior();let K;Q==="inverted"?K=this.keepRatio()&&!q.shiftKey:Q==="none"?K=this.keepRatio():K=this.keepRatio()||q.shiftKey;let W=this.centeredScaling()||q.altKey;if(this._movingAnchorName==="top-left"){if(K){const ft=W?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};P=Math.sqrt(Math.pow(ft.x-k.x(),2)+Math.pow(ft.y-k.y(),2));const F=this.findOne(".top-left").x()>ft.x?-1:1,ot=this.findOne(".top-left").y()>ft.y?-1:1;G=P*this.cos*F,J=P*this.sin*ot,this.findOne(".top-left").x(ft.x-G),this.findOne(".top-left").y(ft.y-J)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(k.y());else if(this._movingAnchorName==="top-right"){if(K){const ft=W?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};P=Math.sqrt(Math.pow(k.x()-ft.x,2)+Math.pow(ft.y-k.y(),2));const F=this.findOne(".top-right").x()<ft.x?-1:1,ot=this.findOne(".top-right").y()>ft.y?-1:1;G=P*this.cos*F,J=P*this.sin*ot,this.findOne(".top-right").x(ft.x+G),this.findOne(".top-right").y(ft.y-J)}var pt=k.position();this.findOne(".top-left").y(pt.y),this.findOne(".bottom-right").x(pt.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(k.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(k.x());else if(this._movingAnchorName==="bottom-left"){if(K){const ft=W?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};P=Math.sqrt(Math.pow(ft.x-k.x(),2)+Math.pow(k.y()-ft.y,2));const F=ft.x<k.x()?-1:1,ot=k.y()<ft.y?-1:1;G=P*this.cos*F,J=P*this.sin*ot,k.x(ft.x-G),k.y(ft.y+J)}pt=k.position(),this.findOne(".top-left").x(pt.x),this.findOne(".bottom-right").y(pt.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(k.y());else if(this._movingAnchorName==="bottom-right"){if(K){const ft=W?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};P=Math.sqrt(Math.pow(k.x()-ft.x,2)+Math.pow(k.y()-ft.y,2));const F=this.findOne(".bottom-right").x()<ft.x?-1:1,ot=this.findOne(".bottom-right").y()<ft.y?-1:1;G=P*this.cos*F,J=P*this.sin*ot,this.findOne(".bottom-right").x(ft.x+G),this.findOne(".bottom-right").y(ft.y+J)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(W=this.centeredScaling()||q.altKey,W){const ft=this.findOne(".top-left"),F=this.findOne(".bottom-right"),ot=ft.x(),Ct=ft.y(),Dt=this.getWidth()-F.x(),zt=this.getHeight()-F.y();F.move({x:-ot,y:-Ct}),ft.move({x:Dt,y:zt})}const lt=this.findOne(".top-left").getAbsolutePosition();G=lt.x,J=lt.y;const gt=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),Tt=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:G,y:J,width:gt,height:Tt,rotation:T.Konva.getAngle(this.rotation())},q)}_handleMouseUp(q){this._removeEvents(q)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(q){var G;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 J=this.getNode();U--,this._fire("transformend",{evt:q,target:J}),(G=this.getLayer())===null||G===void 0||G.batchDraw(),J&&this._nodes.forEach(P=>{var k;P._fire("transformend",{evt:q,target:P}),(k=P.getLayer())===null||k===void 0||k.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(q,G){const J=this._getNodeRect(),P=1;if(y.Util._inRange(q.width,-this.padding()*2-P,P)){this.update();return}if(y.Util._inRange(q.height,-this.padding()*2-P,P)){this.update();return}const k=new y.Transform;if(k.rotate(T.Konva.getAngle(this.rotation())),this._movingAnchorName&&q.width<0&&this._movingAnchorName.indexOf("left")>=0){const K=k.point({x:-this.padding()*2,y:0});q.x+=K.x,q.y+=K.y,q.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=K.x,this._anchorDragOffset.y-=K.y}else if(this._movingAnchorName&&q.width<0&&this._movingAnchorName.indexOf("right")>=0){const K=k.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=K.x,this._anchorDragOffset.y-=K.y,q.width+=this.padding()*2}if(this._movingAnchorName&&q.height<0&&this._movingAnchorName.indexOf("top")>=0){const K=k.point({x:0,y:-this.padding()*2});q.x+=K.x,q.y+=K.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=K.x,this._anchorDragOffset.y-=K.y,q.height+=this.padding()*2}else if(this._movingAnchorName&&q.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const K=k.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=K.x,this._anchorDragOffset.y-=K.y,q.height+=this.padding()*2}if(this.boundBoxFunc()){const K=this.boundBoxFunc()(J,q);K?q=K:y.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const st=1e7,at=new y.Transform;at.translate(J.x,J.y),at.rotate(J.rotation),at.scale(J.width/st,J.height/st);const w=new y.Transform,E=q.width/st,x=q.height/st;this.flipEnabled()===!1?(w.translate(q.x,q.y),w.rotate(q.rotation),w.translate(q.width<0?q.width:0,q.height<0?q.height:0),w.scale(Math.abs(E),Math.abs(x))):(w.translate(q.x,q.y),w.rotate(q.rotation),w.scale(E,x));const Q=w.multiply(at.invert());this._nodes.forEach(K=>{var W;const pt=K.getParent().getAbsoluteTransform(),lt=K.getTransform().copy();lt.translate(K.offsetX(),K.offsetY());const gt=new y.Transform;gt.multiply(pt.copy().invert()).multiply(Q).multiply(pt).multiply(lt);const Tt=gt.decompose();K.setAttrs(Tt),(W=K.getLayer())===null||W===void 0||W.batchDraw()}),this.rotation(y.Util._getRotation(q.rotation)),this._nodes.forEach(K=>{this._fire("transform",{evt:G,target:K}),K._fire("transform",{evt:G,target:K})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(q,G){this.findOne(q).setAttrs(G)}update(){var q;const G=this._getNodeRect();this.rotation(y.Util._getRotation(G.rotation));const J=G.width,P=G.height,k=this.enabledAnchors(),st=this.resizeEnabled(),at=this.padding(),w=this.anchorSize(),E=this.find("._anchor");E.forEach(Q=>{Q.setAttrs({width:w,height:w,offsetX:w/2,offsetY:w/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:w/2+at,offsetY:w/2+at,visible:st&&k.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:J/2,y:0,offsetY:w/2+at,visible:st&&k.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:J,y:0,offsetX:w/2-at,offsetY:w/2+at,visible:st&&k.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:P/2,offsetX:w/2+at,visible:st&&k.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:J,y:P/2,offsetX:w/2-at,visible:st&&k.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:P,offsetX:w/2+at,offsetY:w/2-at,visible:st&&k.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:J/2,y:P,offsetY:w/2-at,visible:st&&k.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:J,y:P,offsetX:w/2-at,offsetY:w/2-at,visible:st&&k.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:J/2,y:-this.rotateAnchorOffset()*y.Util._sign(P)-at,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:J,height:P,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const x=this.anchorStyleFunc();x&&E.forEach(Q=>{x(Q)}),(q=this.getLayer())===null||q===void 0||q.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const q=this.findOne("."+this._movingAnchorName);q&&q.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),D.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Z.Node.prototype.toObject.call(this)}clone(q){return Z.Node.prototype.clone.call(this,q)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}_0.Transformer=X,X.isTransforming=()=>U>0;function et(V){return V instanceof Array||y.Util.warn("enabledAnchors value should be an array"),V instanceof Array&&V.forEach(function(q){H.indexOf(q)===-1&&y.Util.warn("Unknown anchor name: "+q+". Available names are: "+H.join(", "))}),V||[]}return X.prototype.className="Transformer",(0,b._registerNode)(X),f.Factory.addGetterSetter(X,"enabledAnchors",H,et),f.Factory.addGetterSetter(X,"flipEnabled",!0,(0,_.getBooleanValidator)()),f.Factory.addGetterSetter(X,"resizeEnabled",!0),f.Factory.addGetterSetter(X,"anchorSize",10,(0,_.getNumberValidator)()),f.Factory.addGetterSetter(X,"rotateEnabled",!0),f.Factory.addGetterSetter(X,"rotateLineVisible",!0),f.Factory.addGetterSetter(X,"rotationSnaps",[]),f.Factory.addGetterSetter(X,"rotateAnchorOffset",50,(0,_.getNumberValidator)()),f.Factory.addGetterSetter(X,"rotateAnchorCursor","crosshair"),f.Factory.addGetterSetter(X,"rotationSnapTolerance",5,(0,_.getNumberValidator)()),f.Factory.addGetterSetter(X,"borderEnabled",!0),f.Factory.addGetterSetter(X,"anchorStroke","rgb(0, 161, 255)"),f.Factory.addGetterSetter(X,"anchorStrokeWidth",1,(0,_.getNumberValidator)()),f.Factory.addGetterSetter(X,"anchorFill","white"),f.Factory.addGetterSetter(X,"anchorCornerRadius",0,(0,_.getNumberValidator)()),f.Factory.addGetterSetter(X,"borderStroke","rgb(0, 161, 255)"),f.Factory.addGetterSetter(X,"borderStrokeWidth",1,(0,_.getNumberValidator)()),f.Factory.addGetterSetter(X,"borderDash"),f.Factory.addGetterSetter(X,"keepRatio",!0),f.Factory.addGetterSetter(X,"shiftBehavior","default"),f.Factory.addGetterSetter(X,"centeredScaling",!1),f.Factory.addGetterSetter(X,"ignoreStroke",!1),f.Factory.addGetterSetter(X,"padding",0,(0,_.getNumberValidator)()),f.Factory.addGetterSetter(X,"nodes"),f.Factory.addGetterSetter(X,"node"),f.Factory.addGetterSetter(X,"boundBoxFunc"),f.Factory.addGetterSetter(X,"anchorDragBoundFunc"),f.Factory.addGetterSetter(X,"anchorStyleFunc"),f.Factory.addGetterSetter(X,"shouldOverdrawWholeArea",!1),f.Factory.addGetterSetter(X,"useSingleNodeRotation",!0),f.Factory.backCompat(X,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"}),_0}var E0={},Zv;function R4(){if(Zv)return E0;Zv=1,Object.defineProperty(E0,"__esModule",{value:!0}),E0.Wedge=void 0;const y=me(),f=an(),Z=se(),j=ve(),N=se();class D extends f.Shape{_sceneFunc(_){_.beginPath(),_.arc(0,0,this.radius(),0,Z.Konva.getAngle(this.angle()),this.clockwise()),_.lineTo(0,0),_.closePath(),_.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(_){this.radius(_/2)}setHeight(_){this.radius(_/2)}}return E0.Wedge=D,D.prototype.className="Wedge",D.prototype._centroid=!0,D.prototype._attrsAffectingSize=["radius"],(0,N._registerNode)(D),y.Factory.addGetterSetter(D,"radius",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(D,"angle",0,(0,j.getNumberValidator)()),y.Factory.addGetterSetter(D,"clockwise",!1),y.Factory.backCompat(D,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),E0}var b0={},Jv;function A4(){if(Jv)return b0;Jv=1,Object.defineProperty(b0,"__esModule",{value:!0}),b0.Blur=void 0;const y=me(),f=Ta(),Z=ve();function j(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const N=[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],D=[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 T(b,C){const z=b.data,O=b.width,R=b.height;let p,v,M,H,Y,S,m,A,U,X,et,V,q,G,J,P,k,st,at,w;const E=C+C+1,x=O-1,Q=R-1,K=C+1,W=K*(K+1)/2,pt=new j,lt=N[C],gt=D[C];let Tt=null,ft=pt,F=null,ot=null;for(let Ct=1;Ct<E;Ct++)ft=ft.next=new j,Ct===K&&(Tt=ft);ft.next=pt,M=v=0;for(let Ct=0;Ct<R;Ct++){V=q=G=J=H=Y=S=m=0,A=K*(P=z[v]),U=K*(k=z[v+1]),X=K*(st=z[v+2]),et=K*(at=z[v+3]),H+=W*P,Y+=W*k,S+=W*st,m+=W*at,ft=pt;for(let Dt=0;Dt<K;Dt++)ft.r=P,ft.g=k,ft.b=st,ft.a=at,ft=ft.next;for(let Dt=1;Dt<K;Dt++)p=v+((x<Dt?x:Dt)<<2),H+=(ft.r=P=z[p])*(w=K-Dt),Y+=(ft.g=k=z[p+1])*w,S+=(ft.b=st=z[p+2])*w,m+=(ft.a=at=z[p+3])*w,V+=P,q+=k,G+=st,J+=at,ft=ft.next;F=pt,ot=Tt;for(let Dt=0;Dt<O;Dt++)z[v+3]=at=m*lt>>gt,at!==0?(at=255/at,z[v]=(H*lt>>gt)*at,z[v+1]=(Y*lt>>gt)*at,z[v+2]=(S*lt>>gt)*at):z[v]=z[v+1]=z[v+2]=0,H-=A,Y-=U,S-=X,m-=et,A-=F.r,U-=F.g,X-=F.b,et-=F.a,p=M+((p=Dt+C+1)<x?p:x)<<2,V+=F.r=z[p],q+=F.g=z[p+1],G+=F.b=z[p+2],J+=F.a=z[p+3],H+=V,Y+=q,S+=G,m+=J,F=F.next,A+=P=ot.r,U+=k=ot.g,X+=st=ot.b,et+=at=ot.a,V-=P,q-=k,G-=st,J-=at,ot=ot.next,v+=4;M+=O}for(let Ct=0;Ct<O;Ct++){q=G=J=V=Y=S=m=H=0,v=Ct<<2,A=K*(P=z[v]),U=K*(k=z[v+1]),X=K*(st=z[v+2]),et=K*(at=z[v+3]),H+=W*P,Y+=W*k,S+=W*st,m+=W*at,ft=pt;for(let zt=0;zt<K;zt++)ft.r=P,ft.g=k,ft.b=st,ft.a=at,ft=ft.next;let Dt=O;for(let zt=1;zt<=C;zt++)v=Dt+Ct<<2,H+=(ft.r=P=z[v])*(w=K-zt),Y+=(ft.g=k=z[v+1])*w,S+=(ft.b=st=z[v+2])*w,m+=(ft.a=at=z[v+3])*w,V+=P,q+=k,G+=st,J+=at,ft=ft.next,zt<Q&&(Dt+=O);v=Ct,F=pt,ot=Tt;for(let zt=0;zt<R;zt++)p=v<<2,z[p+3]=at=m*lt>>gt,at>0?(at=255/at,z[p]=(H*lt>>gt)*at,z[p+1]=(Y*lt>>gt)*at,z[p+2]=(S*lt>>gt)*at):z[p]=z[p+1]=z[p+2]=0,H-=A,Y-=U,S-=X,m-=et,A-=F.r,U-=F.g,X-=F.b,et-=F.a,p=Ct+((p=zt+K)<Q?p:Q)*O<<2,H+=V+=F.r=z[p],Y+=q+=F.g=z[p+1],S+=G+=F.b=z[p+2],m+=J+=F.a=z[p+3],F=F.next,A+=P=ot.r,U+=k=ot.g,X+=st=ot.b,et+=at=ot.a,V-=P,q-=k,G-=st,J-=at,ot=ot.next,v+=O}}const _=function(C){const z=Math.round(this.blurRadius());z>0&&T(C,z)};return b0.Blur=_,y.Factory.addGetterSetter(f.Node,"blurRadius",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),b0}var C0={},Fv;function N4(){if(Fv)return C0;Fv=1,Object.defineProperty(C0,"__esModule",{value:!0}),C0.Brighten=void 0;const y=me(),f=Ta(),Z=ve(),j=function(N){const D=this.brightness()*255,T=N.data,_=T.length;for(let b=0;b<_;b+=4)T[b]+=D,T[b+1]+=D,T[b+2]+=D};return C0.Brighten=j,y.Factory.addGetterSetter(f.Node,"brightness",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),C0}var T0={},wv;function z4(){if(wv)return T0;wv=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.Contrast=void 0;const y=me(),f=Ta(),Z=ve(),j=function(N){const D=Math.pow((this.contrast()+100)/100,2),T=N.data,_=T.length;let b=150,C=150,z=150;for(let O=0;O<_;O+=4)b=T[O],C=T[O+1],z=T[O+2],b/=255,b-=.5,b*=D,b+=.5,b*=255,C/=255,C-=.5,C*=D,C+=.5,C*=255,z/=255,z-=.5,z*=D,z+=.5,z*=255,b=b<0?0:b>255?255:b,C=C<0?0:C>255?255:C,z=z<0?0:z>255?255:z,T[O]=b,T[O+1]=C,T[O+2]=z};return T0.Contrast=j,y.Factory.addGetterSetter(f.Node,"contrast",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),T0}var R0={},Wv;function D4(){if(Wv)return R0;Wv=1,Object.defineProperty(R0,"__esModule",{value:!0}),R0.Emboss=void 0;const y=me(),f=Ta(),Z=va(),j=ve(),N=function(D){const T=this.embossStrength()*10,_=this.embossWhiteLevel()*255,b=this.embossDirection(),C=this.embossBlend(),z=D.data,O=D.width,R=D.height,p=O*4;let v=0,M=0,H=R;switch(b){case"top-left":v=-1,M=-1;break;case"top":v=-1,M=0;break;case"top-right":v=-1,M=1;break;case"right":v=0,M=1;break;case"bottom-right":v=1,M=1;break;case"bottom":v=1,M=0;break;case"bottom-left":v=1,M=-1;break;case"left":v=0,M=-1;break;default:Z.Util.error("Unknown emboss direction: "+b)}do{const Y=(H-1)*p;let S=v;H+S<1&&(S=0),H+S>R&&(S=0);const m=(H-1+S)*O*4;let A=O;do{const U=Y+(A-1)*4;let X=M;A+X<1&&(X=0),A+X>O&&(X=0);const et=m+(A-1+X)*4,V=z[U]-z[et],q=z[U+1]-z[et+1],G=z[U+2]-z[et+2];let J=V;const P=J>0?J:-J,k=q>0?q:-q,st=G>0?G:-G;if(k>P&&(J=q),st>P&&(J=G),J*=T,C){const at=z[U]+J,w=z[U+1]+J,E=z[U+2]+J;z[U]=at>255?255:at<0?0:at,z[U+1]=w>255?255:w<0?0:w,z[U+2]=E>255?255:E<0?0:E}else{let at=_-J;at<0?at=0:at>255&&(at=255),z[U]=z[U+1]=z[U+2]=at}}while(--A)}while(--H)};return R0.Emboss=N,y.Factory.addGetterSetter(f.Node,"embossStrength",.5,(0,j.getNumberValidator)(),y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"embossWhiteLevel",.5,(0,j.getNumberValidator)(),y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"embossDirection","top-left",void 0,y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"embossBlend",!1,void 0,y.Factory.afterSetFilter),R0}var A0={},Pv;function M4(){if(Pv)return A0;Pv=1,Object.defineProperty(A0,"__esModule",{value:!0}),A0.Enhance=void 0;const y=me(),f=Ta(),Z=ve();function j(D,T,_,b,C){const z=_-T,O=C-b;if(z===0)return b+O/2;if(O===0)return b;let R=(D-T)/z;return R=O*R+b,R}const N=function(D){const T=D.data,_=T.length;let b=T[0],C=b,z,O=T[1],R=O,p,v=T[2],M=v,H;const Y=this.enhance();if(Y===0)return;for(let V=0;V<_;V+=4)z=T[V+0],z<b?b=z:z>C&&(C=z),p=T[V+1],p<O?O=p:p>R&&(R=p),H=T[V+2],H<v?v=H:H>M&&(M=H);C===b&&(C=255,b=0),R===O&&(R=255,O=0),M===v&&(M=255,v=0);let S,m,A,U,X,et;if(Y>0)S=C+Y*(255-C),m=b-Y*(b-0),A=R+Y*(255-R),U=O-Y*(O-0),X=M+Y*(255-M),et=v-Y*(v-0);else{const V=(C+b)*.5;S=C+Y*(C-V),m=b+Y*(b-V);const q=(R+O)*.5;A=R+Y*(R-q),U=O+Y*(O-q);const G=(M+v)*.5;X=M+Y*(M-G),et=v+Y*(v-G)}for(let V=0;V<_;V+=4)T[V+0]=j(T[V+0],b,C,m,S),T[V+1]=j(T[V+1],O,R,U,A),T[V+2]=j(T[V+2],v,M,et,X)};return A0.Enhance=N,y.Factory.addGetterSetter(f.Node,"enhance",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),A0}var N0={},Iv;function O4(){if(Iv)return N0;Iv=1,Object.defineProperty(N0,"__esModule",{value:!0}),N0.Grayscale=void 0;const y=function(f){const Z=f.data,j=Z.length;for(let N=0;N<j;N+=4){const D=.34*Z[N]+.5*Z[N+1]+.16*Z[N+2];Z[N]=D,Z[N+1]=D,Z[N+2]=D}};return N0.Grayscale=y,N0}var z0={},kv;function U4(){if(kv)return z0;kv=1,Object.defineProperty(z0,"__esModule",{value:!0}),z0.HSL=void 0;const y=me(),f=Ta(),Z=ve();y.Factory.addGetterSetter(f.Node,"hue",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"saturation",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"luminance",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter);const j=function(N){const D=N.data,T=D.length,_=1,b=Math.pow(2,this.saturation()),C=Math.abs(this.hue()+360)%360,z=this.luminance()*127,O=_*b*Math.cos(C*Math.PI/180),R=_*b*Math.sin(C*Math.PI/180),p=.299*_+.701*O+.167*R,v=.587*_-.587*O+.33*R,M=.114*_-.114*O-.497*R,H=.299*_-.299*O-.328*R,Y=.587*_+.413*O+.035*R,S=.114*_-.114*O+.293*R,m=.299*_-.3*O+1.25*R,A=.587*_-.586*O-1.05*R,U=.114*_+.886*O-.2*R;let X,et,V,q;for(let G=0;G<T;G+=4)X=D[G+0],et=D[G+1],V=D[G+2],q=D[G+3],D[G+0]=p*X+v*et+M*V+z,D[G+1]=H*X+Y*et+S*V+z,D[G+2]=m*X+A*et+U*V+z,D[G+3]=q};return z0.HSL=j,z0}var D0={},$v;function H4(){if($v)return D0;$v=1,Object.defineProperty(D0,"__esModule",{value:!0}),D0.HSV=void 0;const y=me(),f=Ta(),Z=ve(),j=function(N){const D=N.data,T=D.length,_=Math.pow(2,this.value()),b=Math.pow(2,this.saturation()),C=Math.abs(this.hue()+360)%360,z=_*b*Math.cos(C*Math.PI/180),O=_*b*Math.sin(C*Math.PI/180),R=.299*_+.701*z+.167*O,p=.587*_-.587*z+.33*O,v=.114*_-.114*z-.497*O,M=.299*_-.299*z-.328*O,H=.587*_+.413*z+.035*O,Y=.114*_-.114*z+.293*O,S=.299*_-.3*z+1.25*O,m=.587*_-.586*z-1.05*O,A=.114*_+.886*z-.2*O;for(let U=0;U<T;U+=4){const X=D[U+0],et=D[U+1],V=D[U+2],q=D[U+3];D[U+0]=R*X+p*et+v*V,D[U+1]=M*X+H*et+Y*V,D[U+2]=S*X+m*et+A*V,D[U+3]=q}};return D0.HSV=j,y.Factory.addGetterSetter(f.Node,"hue",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"saturation",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"value",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),D0}var M0={},t3;function x4(){if(t3)return M0;t3=1,Object.defineProperty(M0,"__esModule",{value:!0}),M0.Invert=void 0;const y=function(f){const Z=f.data,j=Z.length;for(let N=0;N<j;N+=4)Z[N]=255-Z[N],Z[N+1]=255-Z[N+1],Z[N+2]=255-Z[N+2]};return M0.Invert=y,M0}var O0={},e3;function G4(){if(e3)return O0;e3=1,Object.defineProperty(O0,"__esModule",{value:!0}),O0.Kaleidoscope=void 0;const y=me(),f=Ta(),Z=va(),j=ve(),N=function(_,b,C){const z=_.data,O=b.data,R=_.width,p=_.height,v=C.polarCenterX||R/2,M=C.polarCenterY||p/2;let H=Math.sqrt(v*v+M*M),Y=R-v,S=p-M;const m=Math.sqrt(Y*Y+S*S);H=m>H?m:H;const A=p,U=R,X=360/U*Math.PI/180;for(let et=0;et<U;et+=1){const V=Math.sin(et*X),q=Math.cos(et*X);for(let G=0;G<A;G+=1){Y=Math.floor(v+H*G/A*q),S=Math.floor(M+H*G/A*V);let J=(S*R+Y)*4;const P=z[J+0],k=z[J+1],st=z[J+2],at=z[J+3];J=(et+G*R)*4,O[J+0]=P,O[J+1]=k,O[J+2]=st,O[J+3]=at}}},D=function(_,b,C){const z=_.data,O=b.data,R=_.width,p=_.height,v=C.polarCenterX||R/2,M=C.polarCenterY||p/2;let H=Math.sqrt(v*v+M*M),Y=R-v,S=p-M;const m=Math.sqrt(Y*Y+S*S);H=m>H?m:H;const A=p,U=R,X=0;let et,V;for(Y=0;Y<R;Y+=1)for(S=0;S<p;S+=1){const q=Y-v,G=S-M,J=Math.sqrt(q*q+G*G)*A/H;let P=(Math.atan2(G,q)*180/Math.PI+360+X)%360;P=P*U/360,et=Math.floor(P),V=Math.floor(J);let k=(V*R+et)*4;const st=z[k+0],at=z[k+1],w=z[k+2],E=z[k+3];k=(S*R+Y)*4,O[k+0]=st,O[k+1]=at,O[k+2]=w,O[k+3]=E}},T=function(_){const b=_.width,C=_.height;let z,O,R,p,v,M,H,Y,S,m,A=Math.round(this.kaleidoscopePower());const U=Math.round(this.kaleidoscopeAngle()),X=Math.floor(b*(U%360)/360);if(A<1)return;const et=Z.Util.createCanvasElement();et.width=b,et.height=C;const V=et.getContext("2d").getImageData(0,0,b,C);Z.Util.releaseCanvas(et),N(_,V,{polarCenterX:b/2,polarCenterY:C/2});let q=b/Math.pow(2,A);for(;q<=8;)q=q*2,A-=1;q=Math.ceil(q);let G=q,J=0,P=G,k=1;for(X+q>b&&(J=G,P=0,k=-1),O=0;O<C;O+=1)for(z=J;z!==P;z+=k)R=Math.round(z+X)%b,S=(b*O+R)*4,v=V.data[S+0],M=V.data[S+1],H=V.data[S+2],Y=V.data[S+3],m=(b*O+z)*4,V.data[m+0]=v,V.data[m+1]=M,V.data[m+2]=H,V.data[m+3]=Y;for(O=0;O<C;O+=1)for(G=Math.floor(q),p=0;p<A;p+=1){for(z=0;z<G+1;z+=1)S=(b*O+z)*4,v=V.data[S+0],M=V.data[S+1],H=V.data[S+2],Y=V.data[S+3],m=(b*O+G*2-z-1)*4,V.data[m+0]=v,V.data[m+1]=M,V.data[m+2]=H,V.data[m+3]=Y;G*=2}D(V,_,{})};return O0.Kaleidoscope=T,y.Factory.addGetterSetter(f.Node,"kaleidoscopePower",2,(0,j.getNumberValidator)(),y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"kaleidoscopeAngle",0,(0,j.getNumberValidator)(),y.Factory.afterSetFilter),O0}var U0={},a3;function B4(){if(a3)return U0;a3=1,Object.defineProperty(U0,"__esModule",{value:!0}),U0.Mask=void 0;const y=me(),f=Ta(),Z=ve();function j(R,p,v){let M=(v*R.width+p)*4;const H=[];return H.push(R.data[M++],R.data[M++],R.data[M++],R.data[M++]),H}function N(R,p){return Math.sqrt(Math.pow(R[0]-p[0],2)+Math.pow(R[1]-p[1],2)+Math.pow(R[2]-p[2],2))}function D(R){const p=[0,0,0];for(let v=0;v<R.length;v++)p[0]+=R[v][0],p[1]+=R[v][1],p[2]+=R[v][2];return p[0]/=R.length,p[1]/=R.length,p[2]/=R.length,p}function T(R,p){const v=j(R,0,0),M=j(R,R.width-1,0),H=j(R,0,R.height-1),Y=j(R,R.width-1,R.height-1),S=p||10;if(N(v,M)<S&&N(M,Y)<S&&N(Y,H)<S&&N(H,v)<S){const m=D([M,v,Y,H]),A=[];for(let U=0;U<R.width*R.height;U++){const X=N(m,[R.data[U*4],R.data[U*4+1],R.data[U*4+2]]);A[U]=X<S?0:255}return A}}function _(R,p){for(let v=0;v<R.width*R.height;v++)R.data[4*v+3]=p[v]}function b(R,p,v){const M=[1,1,1,1,0,1,1,1,1],H=Math.round(Math.sqrt(M.length)),Y=Math.floor(H/2),S=[];for(let m=0;m<v;m++)for(let A=0;A<p;A++){const U=m*p+A;let X=0;for(let et=0;et<H;et++)for(let V=0;V<H;V++){const q=m+et-Y,G=A+V-Y;if(q>=0&&q<v&&G>=0&&G<p){const J=q*p+G,P=M[et*H+V];X+=R[J]*P}}S[U]=X===2040?255:0}return S}function C(R,p,v){const M=[1,1,1,1,1,1,1,1,1],H=Math.round(Math.sqrt(M.length)),Y=Math.floor(H/2),S=[];for(let m=0;m<v;m++)for(let A=0;A<p;A++){const U=m*p+A;let X=0;for(let et=0;et<H;et++)for(let V=0;V<H;V++){const q=m+et-Y,G=A+V-Y;if(q>=0&&q<v&&G>=0&&G<p){const J=q*p+G,P=M[et*H+V];X+=R[J]*P}}S[U]=X>=1020?255:0}return S}function z(R,p,v){const M=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],H=Math.round(Math.sqrt(M.length)),Y=Math.floor(H/2),S=[];for(let m=0;m<v;m++)for(let A=0;A<p;A++){const U=m*p+A;let X=0;for(let et=0;et<H;et++)for(let V=0;V<H;V++){const q=m+et-Y,G=A+V-Y;if(q>=0&&q<v&&G>=0&&G<p){const J=q*p+G,P=M[et*H+V];X+=R[J]*P}}S[U]=X}return S}const O=function(R){const p=this.threshold();let v=T(R,p);return v&&(v=b(v,R.width,R.height),v=C(v,R.width,R.height),v=z(v,R.width,R.height),_(R,v)),R};return U0.Mask=O,y.Factory.addGetterSetter(f.Node,"threshold",0,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),U0}var H0={},n3;function q4(){if(n3)return H0;n3=1,Object.defineProperty(H0,"__esModule",{value:!0}),H0.Noise=void 0;const y=me(),f=Ta(),Z=ve(),j=function(N){const D=this.noise()*255,T=N.data,_=T.length,b=D/2;for(let C=0;C<_;C+=4)T[C+0]+=b-2*b*Math.random(),T[C+1]+=b-2*b*Math.random(),T[C+2]+=b-2*b*Math.random()};return H0.Noise=j,y.Factory.addGetterSetter(f.Node,"noise",.2,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),H0}var x0={},l3;function V4(){if(l3)return x0;l3=1,Object.defineProperty(x0,"__esModule",{value:!0}),x0.Pixelate=void 0;const y=me(),f=va(),Z=Ta(),j=ve(),N=function(D){let T=Math.ceil(this.pixelSize()),_=D.width,b=D.height,C=Math.ceil(_/T),z=Math.ceil(b/T),O=D.data;if(T<=0){f.Util.error("pixelSize value can not be <= 0");return}for(let R=0;R<C;R+=1)for(let p=0;p<z;p+=1){let v=0,M=0,H=0,Y=0;const S=R*T,m=S+T,A=p*T,U=A+T;let X=0;for(let et=S;et<m;et+=1)if(!(et>=_))for(let V=A;V<U;V+=1){if(V>=b)continue;const q=(_*V+et)*4;v+=O[q+0],M+=O[q+1],H+=O[q+2],Y+=O[q+3],X+=1}v=v/X,M=M/X,H=H/X,Y=Y/X;for(let et=S;et<m;et+=1)if(!(et>=_))for(let V=A;V<U;V+=1){if(V>=b)continue;const q=(_*V+et)*4;O[q+0]=v,O[q+1]=M,O[q+2]=H,O[q+3]=Y}}};return x0.Pixelate=N,y.Factory.addGetterSetter(Z.Node,"pixelSize",8,(0,j.getNumberValidator)(),y.Factory.afterSetFilter),x0}var G0={},i3;function Y4(){if(i3)return G0;i3=1,Object.defineProperty(G0,"__esModule",{value:!0}),G0.Posterize=void 0;const y=me(),f=Ta(),Z=ve(),j=function(N){const D=Math.round(this.levels()*254)+1,T=N.data,_=T.length,b=255/D;for(let C=0;C<_;C+=1)T[C]=Math.floor(T[C]/b)*b};return G0.Posterize=j,y.Factory.addGetterSetter(f.Node,"levels",.5,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),G0}var B0={},u3;function j4(){if(u3)return B0;u3=1,Object.defineProperty(B0,"__esModule",{value:!0}),B0.RGB=void 0;const y=me(),f=Ta(),Z=ve(),j=function(N){const D=N.data,T=D.length,_=this.red(),b=this.green(),C=this.blue();for(let z=0;z<T;z+=4){const O=(.34*D[z]+.5*D[z+1]+.16*D[z+2])/255;D[z]=O*_,D[z+1]=O*b,D[z+2]=O*C,D[z+3]=D[z+3]}};return B0.RGB=j,y.Factory.addGetterSetter(f.Node,"red",0,function(N){return this._filterUpToDate=!1,N>255?255:N<0?0:Math.round(N)}),y.Factory.addGetterSetter(f.Node,"green",0,function(N){return this._filterUpToDate=!1,N>255?255:N<0?0:Math.round(N)}),y.Factory.addGetterSetter(f.Node,"blue",0,Z.RGBComponent,y.Factory.afterSetFilter),B0}var q0={},s3;function X4(){if(s3)return q0;s3=1,Object.defineProperty(q0,"__esModule",{value:!0}),q0.RGBA=void 0;const y=me(),f=Ta(),Z=ve(),j=function(N){const D=N.data,T=D.length,_=this.red(),b=this.green(),C=this.blue(),z=this.alpha();for(let O=0;O<T;O+=4){const R=1-z;D[O]=_*z+D[O]*R,D[O+1]=b*z+D[O+1]*R,D[O+2]=C*z+D[O+2]*R}};return q0.RGBA=j,y.Factory.addGetterSetter(f.Node,"red",0,function(N){return this._filterUpToDate=!1,N>255?255:N<0?0:Math.round(N)}),y.Factory.addGetterSetter(f.Node,"green",0,function(N){return this._filterUpToDate=!1,N>255?255:N<0?0:Math.round(N)}),y.Factory.addGetterSetter(f.Node,"blue",0,Z.RGBComponent,y.Factory.afterSetFilter),y.Factory.addGetterSetter(f.Node,"alpha",1,function(N){return this._filterUpToDate=!1,N>1?1:N<0?0:N}),q0}var V0={},o3;function K4(){if(o3)return V0;o3=1,Object.defineProperty(V0,"__esModule",{value:!0}),V0.Sepia=void 0;const y=function(f){const Z=f.data,j=Z.length;for(let N=0;N<j;N+=4){const D=Z[N+0],T=Z[N+1],_=Z[N+2];Z[N+0]=Math.min(255,D*.393+T*.769+_*.189),Z[N+1]=Math.min(255,D*.349+T*.686+_*.168),Z[N+2]=Math.min(255,D*.272+T*.534+_*.131)}};return V0.Sepia=y,V0}var Y0={},c3;function Q4(){if(c3)return Y0;c3=1,Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.Solarize=void 0;const y=function(f){const Z=f.data,j=f.width,N=f.height,D=j*4;let T=N;do{const _=(T-1)*D;let b=j;do{const C=_+(b-1)*4;let z=Z[C],O=Z[C+1],R=Z[C+2];z>127&&(z=255-z),O>127&&(O=255-O),R>127&&(R=255-R),Z[C]=z,Z[C+1]=O,Z[C+2]=R}while(--b)}while(--T)};return Y0.Solarize=y,Y0}var j0={},r3;function L4(){if(r3)return j0;r3=1,Object.defineProperty(j0,"__esModule",{value:!0}),j0.Threshold=void 0;const y=me(),f=Ta(),Z=ve(),j=function(N){const D=this.threshold()*255,T=N.data,_=T.length;for(let b=0;b<_;b+=1)T[b]=T[b]<D?0:255};return j0.Threshold=j,y.Factory.addGetterSetter(f.Node,"threshold",.5,(0,Z.getNumberValidator)(),y.Factory.afterSetFilter),j0}var f3;function Z4(){if(f3)return t0;f3=1,Object.defineProperty(t0,"__esModule",{value:!0}),t0.Konva=void 0;const y=gp(),f=h4(),Z=m4(),j=p4(),N=y4(),D=v4(),T=g4(),_=M3(),b=bp(),C=O3(),z=S4(),O=_4(),R=E4(),p=b4(),v=U3(),M=C4(),H=T4(),Y=R4(),S=A4(),m=N4(),A=z4(),U=D4(),X=M4(),et=O4(),V=U4(),q=H4(),G=x4(),J=G4(),P=B4(),k=q4(),st=V4(),at=Y4(),w=j4(),E=X4(),x=K4(),Q=Q4(),K=L4();return t0.Konva=y.Konva.Util._assign(y.Konva,{Arc:f.Arc,Arrow:Z.Arrow,Circle:j.Circle,Ellipse:N.Ellipse,Image:D.Image,Label:T.Label,Tag:T.Tag,Line:_.Line,Path:b.Path,Rect:C.Rect,RegularPolygon:z.RegularPolygon,Ring:O.Ring,Sprite:R.Sprite,Star:p.Star,Text:v.Text,TextPath:M.TextPath,Transformer:H.Transformer,Wedge:Y.Wedge,Filters:{Blur:S.Blur,Brighten:m.Brighten,Contrast:A.Contrast,Emboss:U.Emboss,Enhance:X.Enhance,Grayscale:et.Grayscale,HSL:V.HSL,HSV:q.HSV,Invert:G.Invert,Kaleidoscope:J.Kaleidoscope,Mask:P.Mask,Noise:k.Noise,Pixelate:st.Pixelate,Posterize:at.Posterize,RGB:w.RGB,RGBA:E.RGBA,Sepia:x.Sepia,Solarize:Q.Solarize,Threshold:K.Threshold}}),t0}var J4=X2.exports,h3;function F4(){if(h3)return X2.exports;h3=1,Object.defineProperty(J4,"__esModule",{value:!0});const y=Z4();return X2.exports=y.Konva,X2.exports}F4();var q2={exports:{}},d3;function w4(){return d3||(d3=1,(function(y,f){Object.defineProperty(f,"__esModule",{value:!0}),f.Konva=void 0;var Z=gp();Object.defineProperty(f,"Konva",{enumerable:!0,get:function(){return Z.Konva}});const j=gp();y.exports=j.Konva})(q2,q2.exports)),q2.exports}var W4=w4();const K2=A3(W4);var V2={exports:{}},hp={exports:{}},Y2={exports:{}},dp={};var m3;function P4(){return m3||(m3=1,(function(y){function f(w,E){var x=w.length;w.push(E);t:for(;0<x;){var Q=x-1>>>1,K=w[Q];if(0<N(K,E))w[Q]=E,w[x]=K,x=Q;else break t}}function Z(w){return w.length===0?null:w[0]}function j(w){if(w.length===0)return null;var E=w[0],x=w.pop();if(x!==E){w[0]=x;t:for(var Q=0,K=w.length,W=K>>>1;Q<W;){var pt=2*(Q+1)-1,lt=w[pt],gt=pt+1,Tt=w[gt];if(0>N(lt,x))gt<K&&0>N(Tt,lt)?(w[Q]=Tt,w[gt]=x,Q=gt):(w[Q]=lt,w[pt]=x,Q=pt);else if(gt<K&&0>N(Tt,x))w[Q]=Tt,w[gt]=x,Q=gt;else break t}}return E}function N(w,E){var x=w.sortIndex-E.sortIndex;return x!==0?x:w.id-E.id}if(y.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var D=performance;y.unstable_now=function(){return D.now()}}else{var T=Date,_=T.now();y.unstable_now=function(){return T.now()-_}}var b=[],C=[],z=1,O=null,R=3,p=!1,v=!1,M=!1,H=!1,Y=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function A(w){for(var E=Z(C);E!==null;){if(E.callback===null)j(C);else if(E.startTime<=w)j(C),E.sortIndex=E.expirationTime,f(b,E);else break;E=Z(C)}}function U(w){if(M=!1,A(w),!v)if(Z(b)!==null)v=!0,X||(X=!0,P());else{var E=Z(C);E!==null&&at(U,E.startTime-w)}}var X=!1,et=-1,V=5,q=-1;function G(){return H?!0:!(y.unstable_now()-q<V)}function J(){if(H=!1,X){var w=y.unstable_now();q=w;var E=!0;try{t:{v=!1,M&&(M=!1,S(et),et=-1),p=!0;var x=R;try{e:{for(A(w),O=Z(b);O!==null&&!(O.expirationTime>w&&G());){var Q=O.callback;if(typeof Q=="function"){O.callback=null,R=O.priorityLevel;var K=Q(O.expirationTime<=w);if(w=y.unstable_now(),typeof K=="function"){O.callback=K,A(w),E=!0;break e}O===Z(b)&&j(b),A(w)}else j(b);O=Z(b)}if(O!==null)E=!0;else{var W=Z(C);W!==null&&at(U,W.startTime-w),E=!1}}break t}finally{O=null,R=x,p=!1}E=void 0}}finally{E?P():X=!1}}}var P;if(typeof m=="function")P=function(){m(J)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,st=k.port2;k.port1.onmessage=J,P=function(){st.postMessage(null)}}else P=function(){Y(J,0)};function at(w,E){et=Y(function(){w(y.unstable_now())},E)}y.unstable_IdlePriority=5,y.unstable_ImmediatePriority=1,y.unstable_LowPriority=4,y.unstable_NormalPriority=3,y.unstable_Profiling=null,y.unstable_UserBlockingPriority=2,y.unstable_cancelCallback=function(w){w.callback=null},y.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<w?Math.floor(1e3/w):5},y.unstable_getCurrentPriorityLevel=function(){return R},y.unstable_next=function(w){switch(R){case 1:case 2:case 3:var E=3;break;default:E=R}var x=R;R=E;try{return w()}finally{R=x}},y.unstable_requestPaint=function(){H=!0},y.unstable_runWithPriority=function(w,E){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var x=R;R=w;try{return E()}finally{R=x}},y.unstable_scheduleCallback=function(w,E,x){var Q=y.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?Q+x:Q):x=Q,w){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=x+K,w={id:z++,callback:E,priorityLevel:w,startTime:x,expirationTime:K,sortIndex:-1},x>Q?(w.sortIndex=x,f(C,w),Z(b)===null&&w===Z(C)&&(M?(S(et),et=-1):M=!0,at(U,x-Q))):(w.sortIndex=K,f(b,w),v||p||(v=!0,X||(X=!0,P()))),w},y.unstable_shouldYield=G,y.unstable_wrapCallback=function(w){var E=R;return function(){var x=R;R=E;try{return w.apply(this,arguments)}finally{R=x}}}})(dp)),dp}var mp={};var p3;function I4(){return p3||(p3=1,(function(y){process.env.NODE_ENV!=="production"&&(function(){function f(){if(U=!1,q){var w=y.unstable_now();P=w;var E=!0;try{t:{m=!1,A&&(A=!1,et(G),G=-1),S=!0;var x=Y;try{e:{for(T(w),H=j(p);H!==null&&!(H.expirationTime>w&&b());){var Q=H.callback;if(typeof Q=="function"){H.callback=null,Y=H.priorityLevel;var K=Q(H.expirationTime<=w);if(w=y.unstable_now(),typeof K=="function"){H.callback=K,T(w),E=!0;break e}H===j(p)&&N(p),T(w)}else N(p);H=j(p)}if(H!==null)E=!0;else{var W=j(v);W!==null&&C(_,W.startTime-w),E=!1}}break t}finally{H=null,Y=x,S=!1}E=void 0}}finally{E?k():q=!1}}}function Z(w,E){var x=w.length;w.push(E);t:for(;0<x;){var Q=x-1>>>1,K=w[Q];if(0<D(K,E))w[Q]=E,w[x]=K,x=Q;else break t}}function j(w){return w.length===0?null:w[0]}function N(w){if(w.length===0)return null;var E=w[0],x=w.pop();if(x!==E){w[0]=x;t:for(var Q=0,K=w.length,W=K>>>1;Q<W;){var pt=2*(Q+1)-1,lt=w[pt],gt=pt+1,Tt=w[gt];if(0>D(lt,x))gt<K&&0>D(Tt,lt)?(w[Q]=Tt,w[gt]=x,Q=gt):(w[Q]=lt,w[pt]=x,Q=pt);else if(gt<K&&0>D(Tt,x))w[Q]=Tt,w[gt]=x,Q=gt;else break t}}return E}function D(w,E){var x=w.sortIndex-E.sortIndex;return x!==0?x:w.id-E.id}function T(w){for(var E=j(v);E!==null;){if(E.callback===null)N(v);else if(E.startTime<=w)N(v),E.sortIndex=E.expirationTime,Z(p,E);else break;E=j(v)}}function _(w){if(A=!1,T(w),!m)if(j(p)!==null)m=!0,q||(q=!0,k());else{var E=j(v);E!==null&&C(_,E.startTime-w)}}function b(){return U?!0:!(y.unstable_now()-P<J)}function C(w,E){G=X(function(){w(y.unstable_now())},E)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),y.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var z=performance;y.unstable_now=function(){return z.now()}}else{var O=Date,R=O.now();y.unstable_now=function(){return O.now()-R}}var p=[],v=[],M=1,H=null,Y=3,S=!1,m=!1,A=!1,U=!1,X=typeof setTimeout=="function"?setTimeout:null,et=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null,q=!1,G=-1,J=5,P=-1;if(typeof V=="function")var k=function(){V(f)};else if(typeof MessageChannel<"u"){var st=new MessageChannel,at=st.port2;st.port1.onmessage=f,k=function(){at.postMessage(null)}}else k=function(){X(f,0)};y.unstable_IdlePriority=5,y.unstable_ImmediatePriority=1,y.unstable_LowPriority=4,y.unstable_NormalPriority=3,y.unstable_Profiling=null,y.unstable_UserBlockingPriority=2,y.unstable_cancelCallback=function(w){w.callback=null},y.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<w?Math.floor(1e3/w):5},y.unstable_getCurrentPriorityLevel=function(){return Y},y.unstable_next=function(w){switch(Y){case 1:case 2:case 3:var E=3;break;default:E=Y}var x=Y;Y=E;try{return w()}finally{Y=x}},y.unstable_requestPaint=function(){U=!0},y.unstable_runWithPriority=function(w,E){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var x=Y;Y=w;try{return E()}finally{Y=x}},y.unstable_scheduleCallback=function(w,E,x){var Q=y.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?Q+x:Q):x=Q,w){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=x+K,w={id:M++,callback:E,priorityLevel:w,startTime:x,expirationTime:K,sortIndex:-1},x>Q?(w.sortIndex=x,Z(v,w),j(p)===null&&w===j(v)&&(A?(et(G),G=-1):A=!0,C(_,x-Q))):(w.sortIndex=K,Z(p,w),m||S||(m=!0,q||(q=!0,k()))),w},y.unstable_shouldYield=b,y.unstable_wrapCallback=function(w){var E=Y;return function(){var x=Y;Y=E;try{return w.apply(this,arguments)}finally{Y=x}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(mp)),mp}var y3;function Cp(){return y3||(y3=1,process.env.NODE_ENV==="production"?Y2.exports=P4():Y2.exports=I4()),Y2.exports}var v3;function k4(){return v3||(v3=1,(function(y){y.exports=function(f){function Z(a,n,i,s){return new Xr(a,n,i,s)}function j(){}function N(a){var n="https://react.dev/errors/"+a;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}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 D(a){var n=a,i=a;if(a.alternate)for(;n.return;)n=n.return;else{a=n;do n=a,(n.flags&4098)!==0&&(i=n.return),a=n.return;while(a)}return n.tag===3?i:null}function T(a){if(D(a)!==a)throw Error(N(188))}function _(a){var n=a.alternate;if(!n){if(n=D(a),n===null)throw Error(N(188));return n!==a?null:a}for(var i=a,s=n;;){var r=i.return;if(r===null)break;var h=r.alternate;if(h===null){if(s=r.return,s!==null){i=s;continue}break}if(r.child===h.child){for(h=r.child;h;){if(h===i)return T(r),a;if(h===s)return T(r),n;h=h.sibling}throw Error(N(188))}if(i.return!==s.return)i=r,s=h;else{for(var B=!1,I=r.child;I;){if(I===i){B=!0,i=r,s=h;break}if(I===s){B=!0,s=r,i=h;break}I=I.sibling}if(!B){for(I=h.child;I;){if(I===i){B=!0,i=h,s=r;break}if(I===s){B=!0,s=h,i=r;break}I=I.sibling}if(!B)throw Error(N(189))}}if(i.alternate!==s)throw Error(N(190))}if(i.tag!==3)throw Error(N(188));return i.stateNode.current===i?a:n}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(n=b(a),n!==null)return n;a=a.sibling}return null}function C(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=C(a),n!==null))return n;a=a.sibling}return null}function z(a){return a===null||typeof a!="object"?null:(a=Ph&&a[Ph]||a["@@iterator"],typeof a=="function"?a:null)}function O(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Ih?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Bu:return"Fragment";case hc:return"Profiler";case wh:return"StrictMode";case qu:return"Suspense";case Ae:return"SuspenseList";case wr:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case eu:return"Portal";case Ni:return a.displayName||"Context";case Fr:return(a._context.displayName||"Context")+".Consumer";case Ys:var n=a.render;return a=a.displayName,a||(a=n.displayName||n.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Wh:return n=a.displayName||null,n!==null?n:O(a.type)||"Memo";case au:n=a._payload,a=a._init;try{return O(a(n))}catch{}}return null}function R(a){return{current:a}}function p(a){0>Zs||(a.current=Ec[Zs],Ec[Zs]=null,Zs--)}function v(a,n){Zs++,Ec[Zs]=a.current,a.current=n}function M(a){return a>>>=0,a===0?32:31-(J1(a)/F1|0)|0}function H(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 Y(a,n,i){var s=a.pendingLanes;if(s===0)return 0;var r=0,h=a.suspendedLanes,B=a.pingedLanes;a=a.warmLanes;var I=s&134217727;return I!==0?(s=I&~h,s!==0?r=H(s):(B&=I,B!==0?r=H(B):i||(i=I&~a,i!==0&&(r=H(i))))):(I=s&~h,I!==0?r=H(I):B!==0?r=H(B):i||(i=s&~a,i!==0&&(r=H(i)))),r===0?0:n!==0&&n!==r&&(n&h)===0&&(h=r&-r,i=n&-n,h>=i||h===32&&(i&4194048)!==0)?n:r}function S(a,n){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&n)===0}function m(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 A(){var a=Js;return Js<<=1,(Js&62914560)===0&&(Js=4194304),a}function U(a){for(var n=[],i=0;31>i;i++)n.push(a);return n}function X(a,n){a.pendingLanes|=n,n!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function et(a,n,i,s,r,h){var B=a.pendingLanes;a.pendingLanes=i,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=i,a.entangledLanes&=i,a.errorRecoveryDisabledLanes&=i,a.shellSuspendCounter=0;var I=a.entanglements,yt=a.expirationTimes,Et=a.hiddenUpdates;for(i=B&~i;0<i;){var Nt=31-_n(i),At=1<<Nt;I[Nt]=0,yt[Nt]=-1;var Mt=Et[Nt];if(Mt!==null)for(Et[Nt]=null,Nt=0;Nt<Mt.length;Nt++){var Yt=Mt[Nt];Yt!==null&&(Yt.lane&=-536870913)}i&=~At}s!==0&&V(a,s,0),h!==0&&r===0&&a.tag!==0&&(a.suspendedLanes|=h&~(B&~n))}function V(a,n,i){a.pendingLanes|=n,a.suspendedLanes&=~n;var s=31-_n(n);a.entangledLanes|=n,a.entanglements[s]=a.entanglements[s]|1073741824|i&261930}function q(a,n){var i=a.entangledLanes|=n;for(a=a.entanglements;i;){var s=31-_n(i),r=1<<s;r&n|a[s]&n&&(a[s]|=n),i&=~r}}function G(a,n){var i=n&-n;return i=(i&42)!==0?1:J(i),(i&(a.suspendedLanes|n))!==0?0:i}function J(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 P(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function k(a){if(typeof ff=="function"&&dd(a),la&&typeof la.setStrictMode=="function")try{la.setStrictMode(Zu,a)}catch{}}function st(a,n){return a===n&&(a!==0||1/a===1/n)||a!==a&&n!==n}function at(a){if(ws===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);ws=n&&n[1]||"",bn=-1<i.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+ws+a+bn}function w(a,n){if(!a||Tc)return"";Tc=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var At=function(){throw Error()};if(Object.defineProperty(At.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(At,[])}catch(Yt){var Mt=Yt}Reflect.construct(a,[],At)}else{try{At.call()}catch(Yt){Mt=Yt}a.call(At.prototype)}}else{try{throw Error()}catch(Yt){Mt=Yt}(At=a())&&typeof At.catch=="function"&&At.catch(function(){})}}catch(Yt){if(Yt&&Mt&&typeof Yt.stack=="string")return[Yt.stack,Mt.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=s.DetermineComponentFrameRoot(),B=h[0],I=h[1];if(B&&I){var yt=B.split(`
5
+ `),Et=I.split(`
6
+ `);for(r=s=0;s<yt.length&&!yt[s].includes("DetermineComponentFrameRoot");)s++;for(;r<Et.length&&!Et[r].includes("DetermineComponentFrameRoot");)r++;if(s===yt.length||r===Et.length)for(s=yt.length-1,r=Et.length-1;1<=s&&0<=r&&yt[s]!==Et[r];)r--;for(;1<=s&&0<=r;s--,r--)if(yt[s]!==Et[r]){if(s!==1||r!==1)do if(s--,r--,0>r||yt[s]!==Et[r]){var Nt=`
7
+ `+yt[s].replace(" at new "," at ");return a.displayName&&Nt.includes("<anonymous>")&&(Nt=Nt.replace("<anonymous>",a.displayName)),Nt}while(1<=s&&0<=r);break}}}finally{Tc=!1,Error.prepareStackTrace=i}return(i=a?a.displayName||a.name:"")?at(i):""}function E(a,n){switch(a.tag){case 26:case 27:case 5:return at(a.type);case 16:return at("Lazy");case 13:return a.child!==n&&n!==null?at("Suspense Fallback"):at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return w(a.type,!1);case 11:return w(a.type.render,!1);case 1:return w(a.type,!0);case 31:return at("Activity");default:return""}}function x(a){try{var n="",i=null;do n+=E(a,i),i=a,a=a.return;while(a);return n}catch(s){return`
8
+ Error generating stack: `+s.message+`
9
+ `+s.stack}}function Q(a,n){if(typeof a=="object"&&a!==null){var i=W1.get(a);return i!==void 0?i:(n={value:a,source:n,stack:x(n)},W1.set(a,n),n)}return{value:a,source:n,stack:x(n)}}function K(a,n){Ju[Ws++]=rt,Ju[Ws++]=fa,fa=a,rt=n}function W(a,n,i){Wn[Pn++]=rn,Wn[Pn++]=Fl,Wn[Pn++]=Hi,Hi=a;var s=rn;a=Fl;var r=32-_n(s)-1;s&=~(1<<r),i+=1;var h=32-_n(n)+r;if(30<h){var B=r-r%5;h=(s&(1<<B)-1).toString(32),s>>=B,r-=B,rn=1<<32-_n(n)+r|i<<r|s,Fl=h+a}else rn=1<<h|i<<r|s,Fl=a}function pt(a){a.return!==null&&(K(a,1),W(a,1,0))}function lt(a){for(;a===fa;)fa=Ju[--Ws],Ju[Ws]=null,rt=Ju[--Ws],Ju[Ws]=null;for(;a===Hi;)Hi=Wn[--Pn],Wn[Pn]=null,Fl=Wn[--Pn],Wn[Pn]=null,rn=Wn[--Pn],Wn[Pn]=null}function gt(a,n){Wn[Pn++]=rn,Wn[Pn++]=Fl,Wn[Pn++]=Hi,rn=n.id,Fl=n.overflow,Hi=a}function Tt(a,n){v(uu,n),v(Rc,a),v(Xa,null),a=P2(n),p(Xa),v(Xa,a)}function ft(){p(Xa),p(Rc),p(uu)}function F(a){a.memoizedState!==null&&v(df,a);var n=Xa.current,i=u1(n,a.type);n!==i&&(v(Rc,a),v(Xa,i))}function ot(a){Rc.current===a&&(p(Xa),p(Rc)),df.current===a&&(p(df),Fn?lu._currentValue=cn:lu._currentValue2=cn)}function Ct(a){var n=Error(N(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ht(Q(n,a)),pd}function Dt(a,n){if(!Va)throw Error(N(175));Ks(a.stateNode,a.type,a.memoizedProps,n,a)||Ct(a,!0)}function zt(a){for(_a=a.return;_a;)switch(_a.tag){case 5:case 31:case 13:In=!1;return;case 27:case 3:In=!0;return;default:_a=_a.return}}function Vt(a){if(!Va||a!==_a)return!1;if(!le)return zt(a),le=!0,!1;var n=a.tag;if(ra?n!==3&&n!==27&&(n!==5||X1(a.type)&&!pc(a.type,a.memoizedProps))&&Ye&&Ct(a):n!==3&&(n!==5||X1(a.type)&&!pc(a.type,a.memoizedProps))&&Ye&&Ct(a),zt(a),n===13){if(!Va)throw Error(N(316));if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(N(317));Ye=G1(a)}else if(n===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(N(317));Ye=x1(a)}else Ye=ra&&n===27?D1(a.type,Ye):_a?ud(a.stateNode):null;return!0}function Qt(){Va&&(Ye=_a=null,le=!1)}function he(){var a=xi;return a!==null&&(Rn===null?Rn=a:Rn.push.apply(Rn,a),xi=null),a}function Ht(a){xi===null?xi=[a]:xi.push(a)}function Ue(a,n,i){Fn?(v(wl,n._currentValue),n._currentValue=i):(v(wl,n._currentValue2),n._currentValue2=i)}function Jt(a){var n=wl.current;Fn?a._currentValue=n:a._currentValue2=n,p(wl)}function pe(a,n,i){for(;a!==null;){var s=a.alternate;if((a.childLanes&n)!==n?(a.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),a===i)break;a=a.return}}function zn(a,n,i,s){var r=a.child;for(r!==null&&(r.return=a);r!==null;){var h=r.dependencies;if(h!==null){var B=r.child;h=h.firstContext;t:for(;h!==null;){var I=h;h=r;for(var yt=0;yt<n.length;yt++)if(I.context===n[yt]){h.lanes|=i,I=h.alternate,I!==null&&(I.lanes|=i),pe(h.return,i,a),s||(B=null);break t}h=I.next}}else if(r.tag===18){if(B=r.return,B===null)throw Error(N(341));B.lanes|=i,h=B.alternate,h!==null&&(h.lanes|=i),pe(B,i,a),B=null}else B=r.child;if(B!==null)B.return=r;else for(B=r;B!==null;){if(B===a){B=null;break}if(r=B.sibling,r!==null){r.return=B.return,B=r;break}B=B.return}r=B}}function we(a,n,i,s){a=null;for(var r=n,h=!1;r!==null;){if(!h){if((r.flags&524288)!==0)h=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var B=r.alternate;if(B===null)throw Error(N(387));if(B=B.memoizedProps,B!==null){var I=r.type;ja(r.pendingProps.value,B.value)||(a!==null?a.push(I):a=[I])}}else if(r===df.current){if(B=r.alternate,B===null)throw Error(N(387));B.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(a!==null?a.push(lu):a=[lu])}r=r.return}a!==null&&zn(n,a,i,s),n.flags|=262144}function Kn(a){for(a=a.firstContext;a!==null;){var n=a.context;if(!ja(Fn?n._currentValue:n._currentValue2,a.memoizedValue))return!0;a=a.next}return!1}function It(a){fn=a,je=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Re(a){return ul(fn,a)}function Qa(a,n){return fn===null&&It(a),ul(a,n)}function ul(a,n){var i=Fn?n._currentValue:n._currentValue2;if(n={context:n,memoizedValue:i,next:null},je===null){if(a===null)throw Error(N(308));je=n,a.dependencies={lanes:0,firstContext:n},a.flags|=524288}else je=je.next=n;return i}function Ra(){return{controller:new Wl,data:new Map,refCount:0}}function La(a){a.refCount--,a.refCount===0&&ka(cm,function(){a.controller.abort()})}function Za(){}function We(a){a!==Cn&&a.next===null&&(Cn===null?ia=Cn=a:Cn=Cn.next=a),Ps=!0,yd||(yd=!0,oh())}function Pe(a,n){if(!Fu&&Ps){Fu=!0;do for(var i=!1,s=ia;s!==null;){if(a!==0){var r=s.pendingLanes;if(r===0)var h=0;else{var B=s.suspendedLanes,I=s.pingedLanes;h=(1<<31-_n(42|a)+1)-1,h&=r&~(B&~I),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,gs(s,h))}else h=oe,h=Y(s,s===He?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==zi),(h&3)===0||S(s,h)||(i=!0,gs(s,h));s=s.next}while(i);Fu=!1}}function xa(){Zi()}function Zi(){Ps=yd=!1;var a=0;Cl!==0&&ed()&&(a=Cl);for(var n=Te(),i=null,s=ia;s!==null;){var r=s.next,h=Eu(s,n);h===0?(s.next=null,i===null?ia=r:i.next=r,r===null&&(Cn=i)):(i=s,(a!==0||(h&3)!==0)&&(Ps=!0)),s=r}ze!==0&&ze!==5||Pe(a),Cl!==0&&(Cl=0)}function Eu(a,n){for(var i=a.suspendedLanes,s=a.pingedLanes,r=a.expirationTimes,h=a.pendingLanes&-62914561;0<h;){var B=31-_n(h),I=1<<B,yt=r[B];yt===-1?((I&i)===0||(I&s)!==0)&&(r[B]=m(I,n)):yt<=n&&(a.expiredLanes|=I),h&=~I}if(n=He,i=oe,i=Y(a,a===n?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==zi),s=a.callbackNode,i===0||a===n&&(Ne===2||Ne===9)||a.cancelPendingCommit!==null)return s!==null&&s!==null&&ae(s),a.callbackNode=null,a.callbackPriority=0;if((i&3)===0||S(a,i)){if(n=i&-i,n===a.callbackPriority)return n;switch(s!==null&&ae(s),P(i)){case 2:case 8:i=Oi;break;case 32:i=Ui;break;case 268435456:i=Fs;break;default:i=Ui}return s=ga.bind(null,a),i=rf(i,s),a.callbackPriority=n,a.callbackNode=i,n}return s!==null&&s!==null&&ae(s),a.callbackPriority=2,a.callbackNode=null,2}function ga(a,n){if(ze!==0&&ze!==5)return a.callbackNode=null,a.callbackPriority=0,null;var i=a.callbackNode;if(na()&&a.callbackNode!==i)return null;var s=oe;return s=Y(a,a===He?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==zi),s===0?null:(Bh(a,s,n),Eu(a,Te()),a.callbackNode!=null&&a.callbackNode===i?ga.bind(null,a):null)}function gs(a,n){if(na())return null;Bh(a,n,!0)}function oh(){m1?Zl(function(){(ie&6)!==0?rf(w1,xa):Zi()}):rf(w1,xa)}function $c(){if(Cl===0){var a=Is;a===0&&(a=bc,bc<<=1,(bc&261888)===0&&(bc=256)),Cl=a}return Cl}function X0(a,n){if(Ac===null){var i=Ac=[];vd=0,Is=$c(),ks={status:"pending",value:void 0,then:function(s){i.push(s)}}}return vd++,n.then(dn,dn),n}function dn(){if(--vd===0&&Ac!==null){ks!==null&&(ks.status="fulfilled");var a=Ac;Ac=null,Is=0,ks=null;for(var n=0;n<a.length;n++)(0,a[n])()}}function ri(a,n){var i=[],s={status:"pending",value:null,reason:null,then:function(r){i.push(r)}};return a.then(function(){s.status="fulfilled",s.value=n;for(var r=0;r<i.length;r++)(0,i[r])(n)},function(r){for(s.status="rejected",s.reason=r,r=0;r<i.length;r++)(0,i[r])(void 0)}),s}function tr(){var a=su.current;return a!==null?a:He.pooledCache}function Ss(a,n){n===null?v(su,su.current):v(su,n.pool)}function er(){var a=tr();return a===null?null:{parent:Fn?Ze._currentValue:Ze._currentValue2,pool:a}}function Ao(a,n){if(ja(a,n))return!0;if(typeof a!="object"||a===null||typeof n!="object"||n===null)return!1;var i=Object.keys(a),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var r=i[s];if(!md.call(n,r)||!ja(a[r],n[r]))return!1}return!0}function ch(a){return a=a.status,a==="fulfilled"||a==="rejected"}function fi(a,n,i){switch(i=a[i],i===void 0?a.push(n):i!==n&&(n.then(Za,Za),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw a=n.reason,bu(a),a;default:if(typeof n.status=="string")n.then(Za,Za);else{if(a=He,a!==null&&100<a.shellSuspendCounter)throw Error(N(482));a=n,a.status="pending",a.then(function(s){if(n.status==="pending"){var r=n;r.status="fulfilled",r.value=s}},function(s){if(n.status==="pending"){var r=n;r.status="rejected",r.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw a=n.reason,bu(a),a}throw kn=n,$s}}function mn(a){try{var n=a._init;return n(a._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(kn=i,$s):i}}function No(){if(kn===null)throw Error(N(459));var a=kn;return kn=null,a}function bu(a){if(a===$s||a===yf)throw Error(N(483))}function Dn(a){var n=Nc;return Nc+=1,$n===null&&($n=[]),fi($n,a,n)}function Cu(a,n){n=n.props.ref,a.ref=n!==void 0?n:null}function Tu(a,n){throw n.$$typeof===Jr?Error(N(525)):(a=Object.prototype.toString.call(n),Error(N(31,a==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":a)))}function rh(a){function n(ct,ut){if(a){var dt=ct.deletions;dt===null?(ct.deletions=[ut],ct.flags|=16):dt.push(ut)}}function i(ct,ut){if(!a)return null;for(;ut!==null;)n(ct,ut),ut=ut.sibling;return null}function s(ct){for(var ut=new Map;ct!==null;)ct.key!==null?ut.set(ct.key,ct):ut.set(ct.index,ct),ct=ct.sibling;return ut}function r(ct,ut){return ct=Xl(ct,ut),ct.index=0,ct.sibling=null,ct}function h(ct,ut,dt){return ct.index=dt,a?(dt=ct.alternate,dt!==null?(dt=dt.index,dt<ut?(ct.flags|=67108866,ut):dt):(ct.flags|=67108866,ut)):(ct.flags|=1048576,ut)}function B(ct){return a&&ct.alternate===null&&(ct.flags|=67108866),ct}function I(ct,ut,dt,Rt){return ut===null||ut.tag!==6?(ut=cc(dt,ct.mode,Rt),ut.return=ct,ut):(ut=r(ut,dt),ut.return=ct,ut)}function yt(ct,ut,dt,Rt){var Bt=dt.type;return Bt===Bu?Nt(ct,ut,dt.props.children,Rt,dt.key):ut!==null&&(ut.elementType===Bt||typeof Bt=="object"&&Bt!==null&&Bt.$$typeof===au&&mn(Bt)===ut.type)?(ut=r(ut,dt.props),Cu(ut,dt),ut.return=ct,ut):(ut=oc(dt.type,dt.key,dt.props,null,ct.mode,Rt),Cu(ut,dt),ut.return=ct,ut)}function Et(ct,ut,dt,Rt){return ut===null||ut.tag!==4||ut.stateNode.containerInfo!==dt.containerInfo||ut.stateNode.implementation!==dt.implementation?(ut=Qr(dt,ct.mode,Rt),ut.return=ct,ut):(ut=r(ut,dt.children||[]),ut.return=ct,ut)}function Nt(ct,ut,dt,Rt,Bt){return ut===null||ut.tag!==7?(ut=Ai(dt,ct.mode,Rt,Bt),ut.return=ct,ut):(ut=r(ut,dt),ut.return=ct,ut)}function At(ct,ut,dt){if(typeof ut=="string"&&ut!==""||typeof ut=="number"||typeof ut=="bigint")return ut=cc(""+ut,ct.mode,dt),ut.return=ct,ut;if(typeof ut=="object"&&ut!==null){switch(ut.$$typeof){case fc:return dt=oc(ut.type,ut.key,ut.props,null,ct.mode,dt),Cu(dt,ut),dt.return=ct,dt;case eu:return ut=Qr(ut,ct.mode,dt),ut.return=ct,ut;case au:return ut=mn(ut),At(ct,ut,dt)}if(nu(ut)||z(ut))return ut=Ai(ut,ct.mode,dt,null),ut.return=ct,ut;if(typeof ut.then=="function")return At(ct,Dn(ut),dt);if(ut.$$typeof===Ni)return At(ct,Qa(ct,ut),dt);Tu(ct,ut)}return null}function Mt(ct,ut,dt,Rt){var Bt=ut!==null?ut.key:null;if(typeof dt=="string"&&dt!==""||typeof dt=="number"||typeof dt=="bigint")return Bt!==null?null:I(ct,ut,""+dt,Rt);if(typeof dt=="object"&&dt!==null){switch(dt.$$typeof){case fc:return dt.key===Bt?yt(ct,ut,dt,Rt):null;case eu:return dt.key===Bt?Et(ct,ut,dt,Rt):null;case au:return dt=mn(dt),Mt(ct,ut,dt,Rt)}if(nu(dt)||z(dt))return Bt!==null?null:Nt(ct,ut,dt,Rt,null);if(typeof dt.then=="function")return Mt(ct,ut,Dn(dt),Rt);if(dt.$$typeof===Ni)return Mt(ct,ut,Qa(ct,dt),Rt);Tu(ct,dt)}return null}function Yt(ct,ut,dt,Rt,Bt){if(typeof Rt=="string"&&Rt!==""||typeof Rt=="number"||typeof Rt=="bigint")return ct=ct.get(dt)||null,I(ut,ct,""+Rt,Bt);if(typeof Rt=="object"&&Rt!==null){switch(Rt.$$typeof){case fc:return ct=ct.get(Rt.key===null?dt:Rt.key)||null,yt(ut,ct,Rt,Bt);case eu:return ct=ct.get(Rt.key===null?dt:Rt.key)||null,Et(ut,ct,Rt,Bt);case au:return Rt=mn(Rt),Yt(ct,ut,dt,Rt,Bt)}if(nu(Rt)||z(Rt))return ct=ct.get(dt)||null,Nt(ut,ct,Rt,Bt,null);if(typeof Rt.then=="function")return Yt(ct,ut,dt,Dn(Rt),Bt);if(Rt.$$typeof===Ni)return Yt(ct,ut,dt,Qa(ut,Rt),Bt);Tu(ut,Rt)}return null}function Xe(ct,ut,dt,Rt){for(var Bt=null,Je=null,Xt=ut,be=ut=0,ce=null;Xt!==null&&be<dt.length;be++){Xt.index>be?(ce=Xt,Xt=null):ce=Xt.sibling;var ye=Mt(ct,Xt,dt[be],Rt);if(ye===null){Xt===null&&(Xt=ce);break}a&&Xt&&ye.alternate===null&&n(ct,Xt),ut=h(ye,ut,be),Je===null?Bt=ye:Je.sibling=ye,Je=ye,Xt=ce}if(be===dt.length)return i(ct,Xt),le&&K(ct,be),Bt;if(Xt===null){for(;be<dt.length;be++)Xt=At(ct,dt[be],Rt),Xt!==null&&(ut=h(Xt,ut,be),Je===null?Bt=Xt:Je.sibling=Xt,Je=Xt);return le&&K(ct,be),Bt}for(Xt=s(Xt);be<dt.length;be++)ce=Yt(Xt,ct,be,dt[be],Rt),ce!==null&&(a&&ce.alternate!==null&&Xt.delete(ce.key===null?be:ce.key),ut=h(ce,ut,be),Je===null?Bt=ce:Je.sibling=ce,Je=ce);return a&&Xt.forEach(function(Vi){return n(ct,Vi)}),le&&K(ct,be),Bt}function Ea(ct,ut,dt,Rt){if(dt==null)throw Error(N(151));for(var Bt=null,Je=null,Xt=ut,be=ut=0,ce=null,ye=dt.next();Xt!==null&&!ye.done;be++,ye=dt.next()){Xt.index>be?(ce=Xt,Xt=null):ce=Xt.sibling;var Vi=Mt(ct,Xt,ye.value,Rt);if(Vi===null){Xt===null&&(Xt=ce);break}a&&Xt&&Vi.alternate===null&&n(ct,Xt),ut=h(Vi,ut,be),Je===null?Bt=Vi:Je.sibling=Vi,Je=Vi,Xt=ce}if(ye.done)return i(ct,Xt),le&&K(ct,be),Bt;if(Xt===null){for(;!ye.done;be++,ye=dt.next())ye=At(ct,ye.value,Rt),ye!==null&&(ut=h(ye,ut,be),Je===null?Bt=ye:Je.sibling=ye,Je=ye);return le&&K(ct,be),Bt}for(Xt=s(Xt);!ye.done;be++,ye=dt.next())ye=Yt(Xt,ct,be,ye.value,Rt),ye!==null&&(a&&ye.alternate!==null&&Xt.delete(ye.key===null?be:ye.key),ut=h(ye,ut,be),Je===null?Bt=ye:Je.sibling=ye,Je=ye);return a&&Xt.forEach(function(Hc){return n(ct,Hc)}),le&&K(ct,be),Bt}function ku(ct,ut,dt,Rt){if(typeof dt=="object"&&dt!==null&&dt.type===Bu&&dt.key===null&&(dt=dt.props.children),typeof dt=="object"&&dt!==null){switch(dt.$$typeof){case fc:t:{for(var Bt=dt.key;ut!==null;){if(ut.key===Bt){if(Bt=dt.type,Bt===Bu){if(ut.tag===7){i(ct,ut.sibling),Rt=r(ut,dt.props.children),Rt.return=ct,ct=Rt;break t}}else if(ut.elementType===Bt||typeof Bt=="object"&&Bt!==null&&Bt.$$typeof===au&&mn(Bt)===ut.type){i(ct,ut.sibling),Rt=r(ut,dt.props),Cu(Rt,dt),Rt.return=ct,ct=Rt;break t}i(ct,ut);break}else n(ct,ut);ut=ut.sibling}dt.type===Bu?(Rt=Ai(dt.props.children,ct.mode,Rt,dt.key),Rt.return=ct,ct=Rt):(Rt=oc(dt.type,dt.key,dt.props,null,ct.mode,Rt),Cu(Rt,dt),Rt.return=ct,ct=Rt)}return B(ct);case eu:t:{for(Bt=dt.key;ut!==null;){if(ut.key===Bt)if(ut.tag===4&&ut.stateNode.containerInfo===dt.containerInfo&&ut.stateNode.implementation===dt.implementation){i(ct,ut.sibling),Rt=r(ut,dt.children||[]),Rt.return=ct,ct=Rt;break t}else{i(ct,ut);break}else n(ct,ut);ut=ut.sibling}Rt=Qr(dt,ct.mode,Rt),Rt.return=ct,ct=Rt}return B(ct);case au:return dt=mn(dt),ku(ct,ut,dt,Rt)}if(nu(dt))return Xe(ct,ut,dt,Rt);if(z(dt)){if(Bt=z(dt),typeof Bt!="function")throw Error(N(150));return dt=Bt.call(dt),Ea(ct,ut,dt,Rt)}if(typeof dt.then=="function")return ku(ct,ut,Dn(dt),Rt);if(dt.$$typeof===Ni)return ku(ct,ut,Qa(ct,dt),Rt);Tu(ct,dt)}return typeof dt=="string"&&dt!==""||typeof dt=="number"||typeof dt=="bigint"?(dt=""+dt,ut!==null&&ut.tag===6?(i(ct,ut.sibling),Rt=r(ut,dt),Rt.return=ct,ct=Rt):(i(ct,ut),Rt=cc(dt,ct.mode,Rt),Rt.return=ct,ct=Rt),B(ct)):i(ct,ut)}return function(ct,ut,dt,Rt){try{Nc=0;var Bt=ku(ct,ut,dt,Rt);return $n=null,Bt}catch(Xt){if(Xt===$s||Xt===yf)throw Xt;var Je=Z(29,Xt,null,ct.mode);return Je.lanes=Rt,Je.return=ct,Je}}}function Ja(){for(var a=Tl,n=gd=Tl=0;n<a;){var i=tl[n];tl[n++]=null;var s=tl[n];tl[n++]=null;var r=tl[n];tl[n++]=null;var h=tl[n];if(tl[n++]=null,s!==null&&r!==null){var B=s.pending;B===null?r.next=r:(r.next=B.next,B.next=r),s.pending=r}h!==0&&_s(i,r,h)}}function hi(a,n,i,s){tl[Tl++]=a,tl[Tl++]=n,tl[Tl++]=i,tl[Tl++]=s,gd|=s,a.lanes|=s,a=a.alternate,a!==null&&(a.lanes|=s)}function di(a,n,i,s){return hi(a,n,i,s),Ru(a)}function Ji(a,n){return hi(a,null,null,n),Ru(a)}function _s(a,n,i){a.lanes|=i;var s=a.alternate;s!==null&&(s.lanes|=i);for(var r=!1,h=a.return;h!==null;)h.childLanes|=i,s=h.alternate,s!==null&&(s.childLanes|=i),h.tag===22&&(a=h.stateNode,a===null||a._visibility&1||(r=!0)),a=h,h=h.return;return a.tag===3?(h=a.stateNode,r&&n!==null&&(r=31-_n(i),a=h.hiddenUpdates,s=a[r],s===null?a[r]=[n]:s.push(n),n.lane=i|536870912),h):null}function Ru(a){if(50<io)throw io=0,xf=null,Error(N(185));for(var n=a.return;n!==null;)a=n,n=a.return;return a.tag===3?a.stateNode:null}function zo(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Au(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 Mn(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ml(a,n,i){var s=a.updateQueue;if(s===null)return null;if(s=s.shared,(ie&2)!==0){var r=s.pending;return r===null?n.next=n:(n.next=r.next,r.next=n),s.pending=n,n=Ru(a),_s(a,null,i),n}return hi(a,s,n,i),Ru(a)}function Do(a,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=a.pendingLanes,i|=s,n.lanes=i,q(a,i)}}function fh(a,n){var i=a.updateQueue,s=a.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var r=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var B={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?r=h=B:h=h.next=B,i=i.next}while(i!==null);h===null?r=h=n:h=h.next=n}else r=h=n;i={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:h,shared:s.shared,callbacks:s.callbacks},a.updateQueue=i;return}a=i.lastBaseUpdate,a===null?i.firstBaseUpdate=n:a.next=n,i.lastBaseUpdate=n}function Es(){if(Sd){var a=ks;if(a!==null)throw a}}function Nu(a,n,i,s){Sd=!1;var r=a.updateQueue;ou=!1;var h=r.firstBaseUpdate,B=r.lastBaseUpdate,I=r.shared.pending;if(I!==null){r.shared.pending=null;var yt=I,Et=yt.next;yt.next=null,B===null?h=Et:B.next=Et,B=yt;var Nt=a.alternate;Nt!==null&&(Nt=Nt.updateQueue,I=Nt.lastBaseUpdate,I!==B&&(I===null?Nt.firstBaseUpdate=Et:I.next=Et,Nt.lastBaseUpdate=yt))}if(h!==null){var At=r.baseState;B=0,Nt=Et=yt=null,I=h;do{var Mt=I.lane&-536870913,Yt=Mt!==I.lane;if(Yt?(oe&Mt)===Mt:(s&Mt)===Mt){Mt!==0&&Mt===Is&&(Sd=!0),Nt!==null&&(Nt=Nt.next={lane:0,tag:I.tag,payload:I.payload,callback:null,next:null});t:{var Xe=a,Ea=I;Mt=n;var ku=i;switch(Ea.tag){case 1:if(Xe=Ea.payload,typeof Xe=="function"){At=Xe.call(ku,At,Mt);break t}At=Xe;break t;case 3:Xe.flags=Xe.flags&-65537|128;case 0:if(Xe=Ea.payload,Mt=typeof Xe=="function"?Xe.call(ku,At,Mt):Xe,Mt==null)break t;At=Un({},At,Mt);break t;case 2:ou=!0}}Mt=I.callback,Mt!==null&&(a.flags|=64,Yt&&(a.flags|=8192),Yt=r.callbacks,Yt===null?r.callbacks=[Mt]:Yt.push(Mt))}else Yt={lane:Mt,tag:I.tag,payload:I.payload,callback:I.callback,next:null},Nt===null?(Et=Nt=Yt,yt=At):Nt=Nt.next=Yt,B|=Mt;if(I=I.next,I===null){if(I=r.shared.pending,I===null)break;Yt=I,I=Yt.next,Yt.next=null,r.lastBaseUpdate=Yt,r.shared.pending=null}}while(!0);Nt===null&&(yt=At),r.baseState=yt,r.firstBaseUpdate=Et,r.lastBaseUpdate=Nt,h===null&&(r.shared.lanes=0),fu|=B,a.lanes=B,a.memoizedState=At}}function hh(a,n){if(typeof a!="function")throw Error(N(191,a));a.call(n)}function K0(a,n){var i=a.callbacks;if(i!==null)for(a.callbacks=null,a=0;a<i.length;a++)hh(i[a],n)}function Ut(a,n){a=Bi,v(gf,a),v(Pl,n),Bi=a|n.baseLanes}function Mo(){v(gf,Bi),v(Pl,Pl.current)}function mi(){Bi=gf.current,p(Pl),p(gf)}function pi(a){var n=a.alternate;v(ua,ua.current&1),v(xn,a),el===null&&(n===null||Pl.current!==null||n.memoizedState!==null)&&(el=a)}function bs(a){v(ua,ua.current),v(xn,a),el===null&&(el=a)}function Ol(a){a.tag===22?(v(ua,ua.current),v(xn,a),el===null&&(el=a)):yi()}function yi(){v(ua,ua.current),v(xn,xn.current)}function pn(a){p(xn),el===a&&(el=null),p(ua)}function vi(a){for(var n=a;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Sc(i)||_c(i)))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 Le(){throw Error(N(321))}function gi(a,n){if(n===null)return!1;for(var i=0;i<n.length&&i<a.length;i++)if(!ja(a[i],n[i]))return!1;return!0}function Oo(a,n,i,s,r,h){return Gi=h,Wt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Gt.H=a===null||a.memoizedState===null?I1:_d,Wu=!1,h=i(s,r),Wu=!1,to&&(h=ar(n,i,s,r)),Cs(a),h}function Cs(a){Gt.H=zc;var n=Me!==null&&Me.next!==null;if(Gi=0,ha=Me=Wt=null,Sf=!1,eo=0,ao=null,n)throw Error(N(300));a===null||da||(a=a.dependencies,a!==null&&Kn(a)&&(da=!0))}function ar(a,n,i,s){Wt=a;var r=0;do{if(to&&(ao=null),eo=0,to=!1,25<=r)throw Error(N(301));if(r+=1,ha=Me=null,a.updateQueue!=null){var h=a.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}Gt.H=k1,h=n(i,s)}while(to);return h}function nr(){var a=Gt.H,n=a.useState()[0];return n=typeof n.then=="function"?ol(n):n,a=a.useState()[0],(Me!==null?Me.memoizedState:null)!==a&&(Wt.flags|=1024),n}function Ul(){var a=_f!==0;return _f=0,a}function sl(a,n,i){n.updateQueue=a.updateQueue,n.flags&=-2053,a.lanes&=~i}function Uo(a){if(Sf){for(a=a.memoizedState;a!==null;){var n=a.queue;n!==null&&(n.pending=null),a=a.next}Sf=!1}Gi=0,ha=Me=Wt=null,to=!1,eo=_f=0,ao=null}function Ga(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ha===null?Wt.memoizedState=ha=a:ha=ha.next=a,ha}function Ge(){if(Me===null){var a=Wt.alternate;a=a!==null?a.memoizedState:null}else a=Me.next;var n=ha===null?Wt.memoizedState:ha.next;if(n!==null)ha=n,Me=a;else{if(a===null)throw Wt.alternate===null?Error(N(467)):Error(N(310));Me=a,a={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},ha===null?Wt.memoizedState=ha=a:ha=ha.next=a}return ha}function zu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ol(a){var n=eo;return eo+=1,ao===null&&(ao=[]),a=fi(ao,a,n),n=Wt,(ha===null?n.memoizedState:ha.next)===null&&(n=n.alternate,Gt.H=n===null||n.memoizedState===null?I1:_d),a}function De(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return ol(a);if(a.$$typeof===Ni)return Re(a)}throw Error(N(438,String(a)))}function Ts(a){var n=null,i=Wt.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=Wt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(r){return r.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=zu(),Wt.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(a),s=0;s<a;s++)i[s]=Kl;return n.index++,i}function Hl(a,n){return typeof n=="function"?n(a):n}function Rs(a){var n=Ge();return Si(n,Me,a)}function Si(a,n,i){var s=a.queue;if(s===null)throw Error(N(311));s.lastRenderedReducer=i;var r=a.baseQueue,h=s.pending;if(h!==null){if(r!==null){var B=r.next;r.next=h.next,h.next=B}n.baseQueue=r=h,s.pending=null}if(h=a.baseState,r===null)a.memoizedState=h;else{n=r.next;var I=B=null,yt=null,Et=n,Nt=!1;do{var At=Et.lane&-536870913;if(At!==Et.lane?(oe&At)===At:(Gi&At)===At){var Mt=Et.revertLane;if(Mt===0)yt!==null&&(yt=yt.next={lane:0,revertLane:0,gesture:null,action:Et.action,hasEagerState:Et.hasEagerState,eagerState:Et.eagerState,next:null}),At===Is&&(Nt=!0);else if((Gi&Mt)===Mt){Et=Et.next,Mt===Is&&(Nt=!0);continue}else At={lane:0,revertLane:Et.revertLane,gesture:null,action:Et.action,hasEagerState:Et.hasEagerState,eagerState:Et.eagerState,next:null},yt===null?(I=yt=At,B=h):yt=yt.next=At,Wt.lanes|=Mt,fu|=Mt;At=Et.action,Wu&&i(h,At),h=Et.hasEagerState?Et.eagerState:i(h,At)}else Mt={lane:At,revertLane:Et.revertLane,gesture:Et.gesture,action:Et.action,hasEagerState:Et.hasEagerState,eagerState:Et.eagerState,next:null},yt===null?(I=yt=Mt,B=h):yt=yt.next=Mt,Wt.lanes|=At,fu|=At;Et=Et.next}while(Et!==null&&Et!==n);if(yt===null?B=h:yt.next=I,!ja(h,a.memoizedState)&&(da=!0,Nt&&(i=ks,i!==null)))throw i;a.memoizedState=h,a.baseState=B,a.baseQueue=yt,s.lastRenderedState=h}return r===null&&(s.lanes=0),[a.memoizedState,s.dispatch]}function Du(a){var n=Ge(),i=n.queue;if(i===null)throw Error(N(311));i.lastRenderedReducer=a;var s=i.dispatch,r=i.pending,h=n.memoizedState;if(r!==null){i.pending=null;var B=r=r.next;do h=a(h,B.action),B=B.next;while(B!==r);ja(h,n.memoizedState)||(da=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,s]}function cl(a,n,i){var s=Wt,r=Ge(),h=le;if(h){if(i===void 0)throw Error(N(407));i=i()}else i=n();var B=!ja((Me||r).memoizedState,i);if(B&&(r.memoizedState=i,da=!0),r=r.queue,ir(Ho.bind(null,s,r,a),[a]),r.getSnapshot!==n||B||ha!==null&&ha.memoizedState.tag&1){if(s.flags|=2048,ln(9,{destroy:void 0},xl.bind(null,s,r,i,n),null),He===null)throw Error(N(349));h||(Gi&127)!==0||Q0(s,n,i)}return i}function Q0(a,n,i){a.flags|=16384,a={getSnapshot:n,value:i},n=Wt.updateQueue,n===null?(n=zu(),Wt.updateQueue=n,n.stores=[a]):(i=n.stores,i===null?n.stores=[a]:i.push(a))}function xl(a,n,i,s){n.value=i,n.getSnapshot=s,As(n)&&xo(a)}function Ho(a,n,i){return i(function(){As(n)&&xo(a)})}function As(a){var n=a.getSnapshot;a=a.value;try{var i=n();return!ja(a,i)}catch{return!0}}function xo(a){var n=Ji(a,2);n!==null&&sn(n,a,2)}function nn(a){var n=Ga();if(typeof a=="function"){var i=a;if(a=i(),Wu){k(!0);try{i()}finally{k(!1)}}}return n.memoizedState=n.baseState=a,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:a},n}function yn(a,n,i,s){return a.baseState=i,Si(a,Me,typeof s=="function"?s:Hl)}function Gl(a,n,i,s,r){if(wi(a))throw Error(N(485));if(a=n.action,a!==null){var h={payload:r,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(B){h.listeners.push(B)}};Gt.T!==null?i(!0):h.isTransition=!1,s(h),i=n.pending,i===null?(h.next=n.pending=h,rl(n,h)):(h.next=i.next,n.pending=i.next=h)}}function rl(a,n){var i=n.action,s=n.payload,r=a.state;if(n.isTransition){var h=Gt.T,B={};Gt.T=B;try{var I=i(r,s),yt=Gt.S;yt!==null&&yt(B,I),fl(a,n,I)}catch(Et){Go(a,n,Et)}finally{h!==null&&B.types!==null&&(h.types=B.types),Gt.T=h}}else try{h=i(r,s),fl(a,n,h)}catch(Et){Go(a,n,Et)}}function fl(a,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){hl(a,n,s)},function(s){return Go(a,n,s)}):hl(a,n,i)}function hl(a,n,i){n.status="fulfilled",n.value=i,lr(n),a.state=i,n=a.pending,n!==null&&(i=n.next,i===n?a.pending=null:(i=i.next,n.next=i,rl(a,i)))}function Go(a,n,i){var s=a.pending;if(a.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,lr(n),n=n.next;while(n!==s)}a.action=null}function lr(a){a=a.listeners;for(var n=0;n<a.length;n++)(0,a[n])()}function dh(a,n){return n}function dl(a,n){if(le){var i=He.formState;if(i!==null){t:{var s=Wt;if(le){if(Ye){var r=N1(Ye,In);if(r){Ye=ud(r),s=z1(r);break t}}Ct(s)}s=!1}s&&(n=i[0])}}i=Ga(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:n},i.queue=s,i=fr.bind(null,Wt,s),s.dispatch=i,s=nn(!1);var h=zs.bind(null,Wt,!1,s.queue);return s=Ga(),r={state:n,dispatch:null,action:a,pending:null},s.queue=r,i=Gl.bind(null,Wt,r,h,i),r.dispatch=i,s.memoizedState=a,[n,i,!1]}function mh(a){var n=Ge();return ml(n,Me,a)}function ml(a,n,i){if(n=Si(a,n,dh)[0],a=Rs(Hl)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=ol(n)}catch(B){throw B===$s?yf:B}else s=n;n=Ge();var r=n.queue,h=r.dispatch;return i!==n.memoizedState&&(Wt.flags|=2048,ln(9,{destroy:void 0},Bo.bind(null,r,i),null)),[s,h,a]}function Bo(a,n){a.action=n}function qo(a){var n=Ge(),i=Me;if(i!==null)return ml(n,i,a);Ge(),n=n.memoizedState,i=Ge();var s=i.queue.dispatch;return i.memoizedState=a,[n,s,!1]}function ln(a,n,i,s){return a={tag:a,create:i,deps:s,inst:n,next:null},n=Wt.updateQueue,n===null&&(n=zu(),Wt.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=a.next=a:(s=i.next,i.next=a,a.next=s,n.lastEffect=a),a}function Mu(){return Ge().memoizedState}function Vo(a,n,i,s){var r=Ga();Wt.flags|=a,r.memoizedState=ln(1|n,{destroy:void 0},i,s===void 0?null:s)}function Ns(a,n,i,s){var r=Ge();s=s===void 0?null:s;var h=r.memoizedState.inst;Me!==null&&s!==null&&gi(s,Me.memoizedState.deps)?r.memoizedState=ln(n,h,i,s):(Wt.flags|=a,r.memoizedState=ln(1|n,h,i,s))}function ph(a,n){Vo(8390656,8,a,n)}function ir(a,n){Ns(2048,8,a,n)}function L0(a){Wt.flags|=4;var n=Wt.updateQueue;if(n===null)n=zu(),Wt.updateQueue=n,n.events=[a];else{var i=n.events;i===null?n.events=[a]:i.push(a)}}function ur(a){var n=Ge().memoizedState;return L0({ref:n,nextImpl:a}),function(){if((ie&2)!==0)throw Error(N(440));return n.impl.apply(void 0,arguments)}}function yh(a,n){return Ns(4,2,a,n)}function sr(a,n){return Ns(4,4,a,n)}function Z0(a,n){if(typeof n=="function"){a=a();var i=n(a);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return a=a(),n.current=a,function(){n.current=null}}function vh(a,n,i){i=i!=null?i.concat([a]):null,Ns(4,4,Z0.bind(null,n,a),i)}function gh(){}function or(a,n){var i=Ge();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&gi(n,s[1])?s[0]:(i.memoizedState=[a,n],a)}function Yo(a,n){var i=Ge();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&gi(n,s[1]))return s[0];if(s=a(),Wu){k(!0);try{a()}finally{k(!1)}}return i.memoizedState=[s,n],s}function cr(a,n,i){return i===void 0||(Gi&1073741824)!==0&&(oe&261930)===0?a.memoizedState=n:(a.memoizedState=i,a=nc(),Wt.lanes|=a,fu|=a,i)}function jo(a,n,i,s){return ja(i,n)?i:Pl.current!==null?(a=cr(a,i,s),ja(a,n)||(da=!0),a):(Gi&42)===0||(Gi&1073741824)!==0&&(oe&261930)===0?(da=!0,a.memoizedState=i):(a=nc(),Wt.lanes|=a,fu|=a,n)}function Sh(a,n,i,s,r){var h=Ll();Sa(h!==0&&8>h?h:8);var B=Gt.T,I={};Gt.T=I,zs(a,!1,n,i);try{var yt=r(),Et=Gt.S;if(Et!==null&&Et(I,yt),yt!==null&&typeof yt=="object"&&typeof yt.then=="function"){var Nt=ri(yt,s);Fi(a,n,Nt,Sn(a))}else Fi(a,n,s,Sn(a))}catch(At){Fi(a,n,{then:function(){},status:"rejected",reason:At},Sn())}finally{Sa(h),B!==null&&I.types!==null&&(B.types=I.types),Gt.T=B}}function _h(a){var n=a.memoizedState;if(n!==null)return n;n={memoizedState:cn,baseState:cn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:cn},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:i},next:null},a.memoizedState=n,a=a.alternate,a!==null&&(a.memoizedState=n),n}function rr(){return Re(lu)}function _i(){return Ge().memoizedState}function Eh(){return Ge().memoizedState}function J0(a){for(var n=a.return;n!==null;){switch(n.tag){case 24:case 3:var i=Sn();a=Mn(i);var s=Ml(n,a,i);s!==null&&(sn(s,n,i),Do(s,n,i)),n={cache:Ra()},a.payload=n;return}n=n.return}}function Ba(a,n,i){var s=Sn();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},wi(a)?bh(n,i):(i=di(a,n,i,s),i!==null&&(sn(i,a,s),Xo(i,n,s)))}function fr(a,n,i){var s=Sn();Fi(a,n,i,s)}function Fi(a,n,i,s){var r={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(wi(a))bh(n,r);else{var h=a.alternate;if(a.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var B=n.lastRenderedState,I=h(B,i);if(r.hasEagerState=!0,r.eagerState=I,ja(I,B))return hi(a,n,r,0),He===null&&Ja(),!1}catch{}if(i=di(a,n,r,s),i!==null)return sn(i,a,s),Xo(i,n,s),!0}return!1}function zs(a,n,i,s){if(s={lane:2,revertLane:$c(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},wi(a)){if(n)throw Error(N(479))}else n=di(a,i,s,2),n!==null&&sn(n,a,2)}function wi(a){var n=a.alternate;return a===Wt||n!==null&&n===Wt}function bh(a,n){to=Sf=!0;var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}function Xo(a,n,i){if((i&4194048)!==0){var s=n.lanes;s&=a.pendingLanes,i|=s,n.lanes=i,q(a,i)}}function hr(a,n,i,s){n=a.memoizedState,i=i(s,n),i=i==null?n:Un({},n,i),a.memoizedState=i,a.lanes===0&&(a.updateQueue.baseState=i)}function Ko(a,n,i,s,r,h,B){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(s,h,B):n.prototype&&n.prototype.isPureReactComponent?!Ao(i,s)||!Ao(r,h):!0}function Ch(a,n,i,s){a=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==a&&Ef.enqueueReplaceState(n,n.state,null)}function Bl(a,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(a=a.defaultProps){i===n&&(i=Un({},i));for(var r in a)i[r]===void 0&&(i[r]=a[r])}return i}function Qo(a,n){try{var i=a.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Th(a,n,i){try{var s=a.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ds(a,n,i){return i=Mn(i),i.tag=3,i.payload={element:null},i.callback=function(){Qo(a,n)},i}function Lo(a){return a=Mn(a),a.tag=3,a}function dr(a,n,i,s){var r=i.type.getDerivedStateFromError;if(typeof r=="function"){var h=s.value;a.payload=function(){return r(h)},a.callback=function(){Th(n,i,s)}}var B=i.stateNode;B!==null&&typeof B.componentDidCatch=="function"&&(a.callback=function(){Th(n,i,s),typeof r!="function"&&(hu===null?hu=new Set([this]):hu.add(this));var I=s.stack;this.componentDidCatch(s.value,{componentStack:I!==null?I:""})})}function Fa(a,n,i,s,r){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&we(n,i,r,!0),i=xn.current,i!==null){switch(i.tag){case 31:case 13:return el===null?qs():i.alternate===null&&ke===0&&(ke=3),i.flags&=-257,i.flags|=65536,i.lanes=r,s===vf?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),Yr(a,s,r)),!1;case 22:return i.flags|=65536,s===vf?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),Yr(a,s,r)),!1}throw Error(N(435,i.tag))}return Yr(a,s,r),qs(),!1}if(le)return n=xn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=r,s!==pd&&(a=Error(N(422),{cause:s}),Ht(Q(a,i)))):(s!==pd&&(n=Error(N(423),{cause:s}),Ht(Q(n,i))),a=a.current.alternate,a.flags|=65536,r&=-r,a.lanes|=r,s=Q(s,i),r=Ds(a.stateNode,s,r),fh(a,r),ke!==4&&(ke=2)),!1;var h=Error(N(520),{cause:s});if(h=Q(h,i),Oc===null?Oc=[h]:Oc.push(h),ke!==4&&(ke=2),n===null)return!0;s=Q(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,a=r&-r,i.lanes|=a,a=Ds(i.stateNode,s,a),fh(i,a),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(hu===null||!hu.has(h))))return i.flags|=65536,r&=-r,i.lanes|=r,r=Lo(r),dr(r,a,i,s),fh(i,r),!1}i=i.return}while(i!==null);return!1}function Aa(a,n,i,s){n.child=a===null?P1(n,null,i,s):wu(n,a.child,i,s)}function Zo(a,n,i,s,r){i=i.render;var h=n.ref;if("ref"in s){var B={};for(var I in s)I!=="ref"&&(B[I]=s[I])}else B=s;return It(n),s=Oo(a,n,i,B,h,r),I=Ul(),a!==null&&!da?(sl(a,n,r),vn(a,n,r)):(le&&I&&pt(n),n.flags|=1,Aa(a,n,s,r),n.child)}function mr(a,n,i,s,r){if(a===null){var h=i.type;return typeof h=="function"&&!sc(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,pr(a,n,h,s,r)):(a=oc(i.type,null,s,n,n.mode,r),a.ref=n.ref,a.return=n,n.child=a)}if(h=a.child,!Us(a,r)){var B=h.memoizedProps;if(i=i.compare,i=i!==null?i:Ao,i(B,s)&&a.ref===n.ref)return vn(a,n,r)}return n.flags|=1,a=Xl(h,s),a.ref=n.ref,a.return=n,n.child=a}function pr(a,n,i,s,r){if(a!==null){var h=a.memoizedProps;if(Ao(h,s)&&a.ref===n.ref)if(da=!1,n.pendingProps=s=h,Us(a,r))(a.flags&131072)!==0&&(da=!0);else return n.lanes=a.lanes,vn(a,n,r)}return Rh(a,n,i,s,r)}function Ei(a,n,i,s){var r=s.children,h=a!==null?a.memoizedState:null;if(a===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,a!==null){for(s=n.child=a.child,r=0;s!==null;)r=r|s.lanes|s.childLanes,s=s.sibling;s=r&~h}else s=0,n.child=null;return Ms(a,n,h,i,s)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},a!==null&&Ss(n,h!==null?h.cachePool:null),h!==null?Ut(n,h):Mo(),Ol(n);else return s=n.lanes=536870912,Ms(a,n,h!==null?h.baseLanes|i:i,i,s)}else h!==null?(Ss(n,h.cachePool),Ut(n,h),yi(),n.memoizedState=null):(a!==null&&Ss(n,null),Mo(),yi());return Aa(a,n,r,i),n.child}function Qn(a,n){return a!==null&&a.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Ms(a,n,i,s,r){var h=tr();return h=h===null?null:{parent:Fn?Ze._currentValue:Ze._currentValue2,pool:h},n.memoizedState={baseLanes:i,cachePool:h},a!==null&&Ss(n,null),Mo(),Ol(n),a!==null&&we(a,n,s,!0),n.childLanes=r,null}function Ou(a,n){return n=pl({mode:n.mode,children:n.children},a.mode),n.ref=a.ref,a.child=n,n.return=a,n}function Os(a,n,i){return wu(n,a.child,null,i),a=Ou(n,n.pendingProps),a.flags|=2,pn(n),n.memoizedState=null,a}function Jo(a,n,i){var s=n.pendingProps,r=(n.flags&128)!==0;if(n.flags&=-129,a===null){if(le){if(s.mode==="hidden")return a=Ou(n,s),n.lanes=536870912,Qn(null,a);if(bs(n),(a=Ye)?(a=U1(a,In),a!==null&&(n.memoizedState={dehydrated:a,treeContext:Hi!==null?{id:rn,overflow:Fl}:null,retryLane:536870912,hydrationErrors:null},i=Kr(a),i.return=n,n.child=i,_a=n,Ye=null)):a=null,a===null)throw Ct(n);return n.lanes=536870912,null}return Ou(n,s)}var h=a.memoizedState;if(h!==null){var B=h.dehydrated;if(bs(n),r)if(n.flags&256)n.flags&=-257,n=Os(a,n,i);else if(n.memoizedState!==null)n.child=a.child,n.flags|=128,n=null;else throw Error(N(558));else if(da||we(a,n,i,!1),r=(i&a.childLanes)!==0,da||r){if(s=He,s!==null&&(B=G(s,i),B!==0&&B!==h.retryLane))throw h.retryLane=B,Ji(a,B),sn(s,a,B),bf;qs(),n=Os(a,n,i)}else a=h.treeContext,Va&&(Ye=sd(B),_a=n,le=!0,xi=null,In=!1,a!==null&&gt(n,a)),n=Ou(n,s),n.flags|=4096;return n}return a=Xl(a.child,{mode:s.mode,children:s.children}),a.ref=n.ref,n.child=a,a.return=n,a}function Fo(a,n){var i=n.ref;if(i===null)a!==null&&a.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(N(284));(a===null||a.ref!==i)&&(n.flags|=4194816)}}function Rh(a,n,i,s,r){return It(n),i=Oo(a,n,i,s,void 0,r),s=Ul(),a!==null&&!da?(sl(a,n,r),vn(a,n,r)):(le&&s&&pt(n),n.flags|=1,Aa(a,n,i,r),n.child)}function Ah(a,n,i,s,r,h){return It(n),n.updateQueue=null,i=ar(n,s,i,r),Cs(a),s=Ul(),a!==null&&!da?(sl(a,n,h),vn(a,n,h)):(le&&s&&pt(n),n.flags|=1,Aa(a,n,i,h),n.child)}function Nh(a,n,i,s,r){if(It(n),n.stateNode===null){var h=Lu,B=i.contextType;typeof B=="object"&&B!==null&&(h=Re(B)),h=new i(s,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ef,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=s,h.state=n.memoizedState,h.refs={},zo(n),B=i.contextType,h.context=typeof B=="object"&&B!==null?Re(B):Lu,h.state=n.memoizedState,B=i.getDerivedStateFromProps,typeof B=="function"&&(hr(n,i,B,s),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(B=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),B!==h.state&&Ef.enqueueReplaceState(h,h.state,null),Nu(n,s,h,r),Es(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(a===null){h=n.stateNode;var I=n.memoizedProps,yt=Bl(i,I);h.props=yt;var Et=h.context,Nt=i.contextType;B=Lu,typeof Nt=="object"&&Nt!==null&&(B=Re(Nt));var At=i.getDerivedStateFromProps;Nt=typeof At=="function"||typeof h.getSnapshotBeforeUpdate=="function",I=n.pendingProps!==I,Nt||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(I||Et!==B)&&Ch(n,h,s,B),ou=!1;var Mt=n.memoizedState;h.state=Mt,Nu(n,s,h,r),Es(),Et=n.memoizedState,I||Mt!==Et||ou?(typeof At=="function"&&(hr(n,i,At,s),Et=n.memoizedState),(yt=ou||Ko(n,i,yt,s,Mt,Et,B))?(Nt||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=Et),h.props=s,h.state=Et,h.context=B,s=yt):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{h=n.stateNode,Au(a,n),B=n.memoizedProps,Nt=Bl(i,B),h.props=Nt,At=n.pendingProps,Mt=h.context,Et=i.contextType,yt=Lu,typeof Et=="object"&&Et!==null&&(yt=Re(Et)),I=i.getDerivedStateFromProps,(Et=typeof I=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(B!==At||Mt!==yt)&&Ch(n,h,s,yt),ou=!1,Mt=n.memoizedState,h.state=Mt,Nu(n,s,h,r),Es();var Yt=n.memoizedState;B!==At||Mt!==Yt||ou||a!==null&&a.dependencies!==null&&Kn(a.dependencies)?(typeof I=="function"&&(hr(n,i,I,s),Yt=n.memoizedState),(Nt=ou||Ko(n,i,Nt,s,Mt,Yt,yt)||a!==null&&a.dependencies!==null&&Kn(a.dependencies))?(Et||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(s,Yt,yt),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(s,Yt,yt)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||B===a.memoizedProps&&Mt===a.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||B===a.memoizedProps&&Mt===a.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Yt),h.props=s,h.state=Yt,h.context=yt,s=Nt):(typeof h.componentDidUpdate!="function"||B===a.memoizedProps&&Mt===a.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||B===a.memoizedProps&&Mt===a.memoizedState||(n.flags|=1024),s=!1)}return h=s,Fo(a,n),s=(n.flags&128)!==0,h||s?(h=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,a!==null&&s?(n.child=wu(n,a.child,null,r),n.child=wu(n,null,i,r)):Aa(a,n,i,r),n.memoizedState=h.state,a=n.child):a=vn(a,n,r),a}function yr(a,n,i,s){return Qt(),n.flags|=256,Aa(a,n,i,s),n.child}function wo(a){return{baseLanes:a,cachePool:er()}}function ql(a,n,i){return a=a!==null?a.childLanes&~i:0,n&&(a|=Bn),a}function vr(a,n,i){var s=n.pendingProps,r=!1,h=(n.flags&128)!==0,B;if((B=h)||(B=a!==null&&a.memoizedState===null?!1:(ua.current&2)!==0),B&&(r=!0,n.flags&=-129),B=(n.flags&32)!==0,n.flags&=-33,a===null){if(le){if(r?pi(n):yi(),(a=Ye)?(a=nm(a,In),a!==null&&(n.memoizedState={dehydrated:a,treeContext:Hi!==null?{id:rn,overflow:Fl}:null,retryLane:536870912,hydrationErrors:null},i=Kr(a),i.return=n,n.child=i,_a=n,Ye=null)):a=null,a===null)throw Ct(n);return _c(a)?n.lanes=32:n.lanes=536870912,null}var I=s.children;return s=s.fallback,r?(yi(),r=n.mode,I=pl({mode:"hidden",children:I},r),s=Ai(s,r,i,null),I.return=n,s.return=n,I.sibling=s,n.child=I,s=n.child,s.memoizedState=wo(i),s.childLanes=ql(a,B,i),n.memoizedState=Cf,Qn(null,s)):(pi(n),gr(n,I))}var yt=a.memoizedState;if(yt!==null&&(I=yt.dehydrated,I!==null)){if(h)n.flags&256?(pi(n),n.flags&=-257,n=un(a,n,i)):n.memoizedState!==null?(yi(),n.child=a.child,n.flags|=128,n=null):(yi(),I=s.fallback,r=n.mode,s=pl({mode:"visible",children:s.children},r),I=Ai(I,r,i,null),I.flags|=2,s.return=n,I.return=n,s.sibling=I,n.child=s,wu(n,a.child,null,i),s=n.child,s.memoizedState=wo(i),s.childLanes=ql(a,B,i),n.memoizedState=Cf,n=Qn(null,s));else if(pi(n),_c(I))B=Xu(I).digest,s=Error(N(419)),s.stack="",s.digest=B,Ht({value:s,source:null,stack:null}),n=un(a,n,i);else if(da||we(a,n,i,!1),B=(i&a.childLanes)!==0,da||B){if(B=He,B!==null&&(s=G(B,i),s!==0&&s!==yt.retryLane))throw yt.retryLane=s,Ji(a,s),sn(B,a,s),bf;Sc(I)||qs(),n=un(a,n,i)}else Sc(I)?(n.flags|=192,n.child=a.child,n=null):(a=yt.treeContext,Va&&(Ye=M1(I),_a=n,le=!0,xi=null,In=!1,a!==null&&gt(n,a)),n=gr(n,s.children),n.flags|=4096);return n}return r?(yi(),I=s.fallback,r=n.mode,yt=a.child,h=yt.sibling,s=Xl(yt,{mode:"hidden",children:s.children}),s.subtreeFlags=yt.subtreeFlags&65011712,h!==null?I=Xl(h,I):(I=Ai(I,r,i,null),I.flags|=2),I.return=n,s.return=n,s.sibling=I,n.child=s,Qn(null,s),s=n.child,I=a.child.memoizedState,I===null?I=wo(i):(r=I.cachePool,r!==null?(yt=Fn?Ze._currentValue:Ze._currentValue2,r=r.parent!==yt?{parent:yt,pool:yt}:r):r=er(),I={baseLanes:I.baseLanes|i,cachePool:r}),s.memoizedState=I,s.childLanes=ql(a,B,i),n.memoizedState=Cf,Qn(a.child,s)):(pi(n),i=a.child,a=i.sibling,i=Xl(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,a!==null&&(B=n.deletions,B===null?(n.deletions=[a],n.flags|=16):B.push(a)),n.child=i,n.memoizedState=null,i)}function gr(a,n){return n=pl({mode:"visible",children:n},a.mode),n.return=a,a.child=n}function pl(a,n){return a=Z(22,a,null,n),a.lanes=0,a}function un(a,n,i){return wu(n,a.child,null,i),a=gr(n,n.pendingProps.children),a.flags|=2,n.memoizedState=null,a}function Wo(a,n,i){a.lanes|=n;var s=a.alternate;s!==null&&(s.lanes|=n),pe(a.return,n,i)}function wt(a,n,i,s,r,h){var B=a.memoizedState;B===null?a.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:r,treeForkCount:h}:(B.isBackwards=n,B.rendering=null,B.renderingStartTime=0,B.last=s,B.tail=i,B.tailMode=r,B.treeForkCount=h)}function bt(a,n,i){var s=n.pendingProps,r=s.revealOrder,h=s.tail;s=s.children;var B=ua.current,I=(B&2)!==0;if(I?(B=B&1|2,n.flags|=128):B&=1,v(ua,B),Aa(a,n,s,i),s=le?rt:0,!I&&a!==null&&(a.flags&128)!==0)t:for(a=n.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Wo(a,i,n);else if(a.tag===19)Wo(a,i,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(r){case"forwards":for(i=n.child,r=null;i!==null;)a=i.alternate,a!==null&&vi(a)===null&&(r=i),i=i.sibling;i=r,i===null?(r=n.child,n.child=null):(r=i.sibling,i.sibling=null),wt(n,!1,r,i,h,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,r=n.child,n.child=null;r!==null;){if(a=r.alternate,a!==null&&vi(a)===null){n.child=r;break}a=r.sibling,r.sibling=i,i=r,r=a}wt(n,!0,i,null,h,s);break;case"together":wt(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function vn(a,n,i){if(a!==null&&(n.dependencies=a.dependencies),fu|=n.lanes,(i&n.childLanes)===0)if(a!==null){if(we(a,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(a!==null&&n.child!==a.child)throw Error(N(153));if(n.child!==null){for(a=n.child,i=Xl(a,a.pendingProps),n.child=i,i.return=n;a.sibling!==null;)a=a.sibling,i=i.sibling=Xl(a,a.pendingProps),i.return=n;i.sibling=null}return n.child}function Us(a,n){return(a.lanes&n)!==0?!0:(a=a.dependencies,!!(a!==null&&Kn(a)))}function Ie(a,n,i){switch(n.tag){case 3:Tt(n,n.stateNode.containerInfo),Ue(n,Ze,a.memoizedState.cache),Qt();break;case 27:case 5:F(n);break;case 4:Tt(n,n.stateNode.containerInfo);break;case 10:Ue(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,bs(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(pi(n),n.flags|=128,null):(i&n.child.childLanes)!==0?vr(a,n,i):(pi(n),a=vn(a,n,i),a!==null?a.sibling:null);pi(n);break;case 19:var r=(a.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(we(a,n,i,!1),s=(i&n.childLanes)!==0),r){if(s)return bt(a,n,i);n.flags|=128}if(r=n.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),v(ua,ua.current),s)break;return null;case 22:return n.lanes=0,Ei(a,n,i,n.pendingProps);case 24:Ue(n,Ze,a.memoizedState.cache)}return vn(a,n,i)}function Sr(a,n,i){if(a!==null)if(a.memoizedProps!==n.pendingProps)da=!0;else{if(!Us(a,i)&&(n.flags&128)===0)return da=!1,Ie(a,n,i);da=(a.flags&131072)!==0}else da=!1,le&&(n.flags&1048576)!==0&&W(n,rt,n.index);switch(n.lanes=0,n.tag){case 16:t:{var s=n.pendingProps;if(a=mn(n.elementType),n.type=a,typeof a=="function")sc(a)?(s=Bl(a,s),n.tag=1,n=Nh(null,n,a,s,i)):(n.tag=0,n=Rh(null,n,a,s,i));else{if(a!=null){var r=a.$$typeof;if(r===Ys){n.tag=11,n=Zo(null,n,a,s,i);break t}else if(r===Wh){n.tag=14,n=mr(null,n,a,s,i);break t}}throw n=O(a)||a,Error(N(306,n,""))}}return n;case 0:return Rh(a,n,n.type,n.pendingProps,i);case 1:return s=n.type,r=Bl(s,n.pendingProps),Nh(a,n,s,r,i);case 3:t:{if(Tt(n,n.stateNode.containerInfo),a===null)throw Error(N(387));var h=n.pendingProps;r=n.memoizedState,s=r.element,Au(a,n),Nu(n,h,null,i);var B=n.memoizedState;if(h=B.cache,Ue(n,Ze,h),h!==r.cache&&zn(n,[Ze],i,!0),Es(),h=B.element,Va&&r.isDehydrated)if(r={element:h,isDehydrated:!1,cache:B.cache},n.updateQueue.baseState=r,n.memoizedState=r,n.flags&256){n=yr(a,n,h,i);break t}else if(h!==s){s=Q(Error(N(424)),n),Ht(s),n=yr(a,n,h,i);break t}else for(Va&&(Ye=ef(n.stateNode.containerInfo),_a=n,le=!0,xi=null,In=!0),i=P1(n,null,h,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Qt(),h===s){n=vn(a,n,i);break t}Aa(a,n,h,i)}n=n.child}return n;case 26:if(wn)return Fo(a,n),a===null?(i=Ls(n.type,null,n.pendingProps,null))?n.memoizedState=i:le||(n.stateNode=L1(n.type,n.pendingProps,uu.current,n)):n.memoizedState=Ls(n.type,a.memoizedProps,n.pendingProps,a.memoizedState),null;case 27:if(ra)return F(n),a===null&&ra&&le&&(s=n.stateNode=sf(n.type,n.pendingProps,uu.current,Xa.current,!1),_a=n,In=!0,Ye=em(n.type,s,Ye)),Aa(a,n,n.pendingProps.children,i),Fo(a,n),a===null&&(n.flags|=4194304),n.child;case 5:return a===null&&le&&(um(n.type,n.pendingProps,Xa.current),(r=s=Ye)&&(s=am(s,n.type,n.pendingProps,In),s!==null?(n.stateNode=s,_a=n,Ye=tf(s),In=!1,r=!0):r=!1),r||Ct(n)),F(n),r=n.type,h=n.pendingProps,B=a!==null?a.memoizedProps:null,s=h.children,pc(r,h)?s=null:B!==null&&pc(r,B)&&(n.flags|=32),n.memoizedState!==null&&(r=Oo(a,n,nr,null,null,i),Fn?lu._currentValue=r:lu._currentValue2=r),Fo(a,n),Aa(a,n,s,i),n.child;case 6:return a===null&&le&&(rd(n.pendingProps,Xa.current),(a=i=Ye)&&(i=O1(i,n.pendingProps,In),i!==null?(n.stateNode=i,_a=n,Ye=null,a=!0):a=!1),a||Ct(n)),null;case 13:return vr(a,n,i);case 4:return Tt(n,n.stateNode.containerInfo),s=n.pendingProps,a===null?n.child=wu(n,null,s,i):Aa(a,n,s,i),n.child;case 11:return Zo(a,n,n.type,n.pendingProps,i);case 7:return Aa(a,n,n.pendingProps,i),n.child;case 8:return Aa(a,n,n.pendingProps.children,i),n.child;case 12:return Aa(a,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,Ue(n,n.type,s.value),Aa(a,n,s.children,i),n.child;case 9:return r=n.type._context,s=n.pendingProps.children,It(n),r=Re(r),s=s(r),n.flags|=1,Aa(a,n,s,i),n.child;case 14:return mr(a,n,n.type,n.pendingProps,i);case 15:return pr(a,n,n.type,n.pendingProps,i);case 19:return bt(a,n,i);case 31:return Jo(a,n,i);case 22:return Ei(a,n,i,n.pendingProps);case 24:return It(n),s=Re(Ze),a===null?(r=tr(),r===null&&(r=He,h=Ra(),r.pooledCache=h,h.refCount++,h!==null&&(r.pooledCacheLanes|=i),r=h),n.memoizedState={parent:s,cache:r},zo(n),Ue(n,Ze,r)):((a.lanes&i)!==0&&(Au(a,n),Nu(n,null,null,i),Es()),r=a.memoizedState,h=n.memoizedState,r.parent!==s?(r={parent:s,cache:s},n.memoizedState=r,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=r),Ue(n,Ze,s)):(s=h.cache,Ue(n,Ze,s),s!==r.cache&&zn(n,[Ze],i,!0))),Aa(a,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(N(156,n.tag))}function On(a){a.flags|=4}function Po(a){_l&&(a.flags|=8)}function _r(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 zh(a,n,i,s){if(Pa)for(i=n.child;i!==null;){if(i.tag===5||i.tag===6)Wr(a,i.stateNode);else if(!(i.tag===4||ra&&i.tag===27)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return;i=i.return}i.sibling.return=i.return,i=i.sibling}else if(_l)for(var r=n.child;r!==null;){if(r.tag===5){var h=r.stateNode;i&&s&&(h=Di(h,r.type,r.memoizedProps)),Wr(a,h)}else if(r.tag===6)h=r.stateNode,i&&s&&(h=gc(h,r.memoizedProps)),Wr(a,h);else if(r.tag!==4){if(r.tag===22&&r.memoizedState!==null)h=r.child,h!==null&&(h.return=r),zh(a,r,!0,!0);else if(r.child!==null){r.child.return=r,r=r.child;continue}}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Er(a,n,i,s){var r=!1;if(_l)for(var h=n.child;h!==null;){if(h.tag===5){var B=h.stateNode;i&&s&&(B=Di(B,h.type,h.memoizedProps)),id(a,B)}else if(h.tag===6)B=h.stateNode,i&&s&&(B=gc(B,h.memoizedProps)),id(a,B);else if(h.tag!==4){if(h.tag===22&&h.memoizedState!==null)r=h.child,r!==null&&(r.return=h),Er(a,h,!0,!0),r=!0;else if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===n)break;for(;h.sibling===null;){if(h.return===null||h.return===n)return r;h=h.return}h.sibling.return=h.return,h=h.sibling}return r}function br(a,n){if(_l&&_r(a,n)){a=n.stateNode;var i=a.containerInfo,s=Ve();Er(s,n,!1,!1),a.pendingChildren=s,On(n),R1(i,s)}}function Io(a,n,i,s){if(Pa)a.memoizedProps!==s&&On(n);else if(_l){var r=a.stateNode,h=a.memoizedProps;if((a=_r(a,n))||h!==s){var B=Xa.current;h=T1(r,i,h,s,!a,null),h===r?n.stateNode=r:(Po(n),s1(h,i,s,B)&&On(n),n.stateNode=h,a&&zh(h,n,!1,!1))}else n.stateNode=r}}function qa(a,n,i,s,r){if((a.mode&32)!==0&&(i===null?f1(n,s):$2(n,i,s))){if(a.flags|=16777216,(r&335544128)===r||js(n,s))if(Ya(a.stateNode,n,s))a.flags|=8192;else if(t1())a.flags|=8192;else throw kn=vf,pf}else a.flags&=-16777217}function Ce(a,n){if(sm(n)){if(a.flags|=16777216,!uf(n))if(t1())a.flags|=8192;else throw kn=vf,pf}else a.flags&=-16777217}function Uu(a,n){n!==null&&(a.flags|=4),a.flags&16384&&(n=a.tag!==22?A():536870912,a.lanes|=n,no|=n)}function bi(a,n){if(!le)switch(a.tailMode){case"hidden":n=a.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?a.tail=null:i.sibling=null;break;case"collapsed":i=a.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||a.tail===null?a.tail=null:a.tail.sibling=null:s.sibling=null}}function Ee(a){var n=a.alternate!==null&&a.alternate.child===a.child,i=0,s=0;if(n)for(var r=a.child;r!==null;)i|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=a,r=r.sibling;else for(r=a.child;r!==null;)i|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=a,r=r.sibling;return a.subtreeFlags|=s,a.childLanes=i,n}function Hu(a,n,i){var s=n.pendingProps;switch(lt(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(n),null;case 1:return Ee(n),null;case 3:return i=n.stateNode,s=null,a!==null&&(s=a.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Jt(Ze),ft(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(a===null||a.child===null)&&(Vt(n)?On(n):a===null||a.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,he())),br(a,n),Ee(n),null;case 26:if(wn){var r=n.type,h=n.memoizedState;return a===null?(On(n),h!==null?(Ee(n),Ce(n,h)):(Ee(n),qa(n,r,null,s,i))):h?h!==a.memoizedState?(On(n),Ee(n),Ce(n,h)):(Ee(n),n.flags&=-16777217):(h=a.memoizedProps,Pa?h!==s&&On(n):Io(a,n,r,s),Ee(n),qa(n,r,h,s,i)),null}case 27:if(ra){if(ot(n),i=uu.current,r=n.type,a!==null&&n.stateNode!=null)Pa?a.memoizedProps!==s&&On(n):Io(a,n,r,s);else{if(!s){if(n.stateNode===null)throw Error(N(166));return Ee(n),null}a=Xa.current,Vt(n)?Dt(n,a):(a=sf(r,s,i,a,!0),n.stateNode=a,On(n))}return Ee(n),null}case 5:if(ot(n),r=n.type,a!==null&&n.stateNode!=null)Io(a,n,r,s);else{if(!s){if(n.stateNode===null)throw Error(N(166));return Ee(n),null}if(h=Xa.current,Vt(n))Dt(n,h),V1(n.stateNode,r,s,h)&&(n.flags|=64);else{var B=Ql(r,s,uu.current,h,n);Po(n),zh(B,n,!1,!1),n.stateNode=B,s1(B,r,s,h)&&On(n)}}return Ee(n),qa(n,n.type,a===null?null:a.memoizedProps,n.pendingProps,i),null;case 6:if(a&&n.stateNode!=null)i=a.memoizedProps,Pa?i!==s&&On(n):_l&&(i!==s?(a=uu.current,i=Xa.current,Po(n),n.stateNode=Pr(s,a,i,n)):n.stateNode=a.stateNode);else{if(typeof s!="string"&&n.stateNode===null)throw Error(N(166));if(a=uu.current,i=Xa.current,Vt(n)){if(!Va)throw Error(N(176));if(a=n.stateNode,i=n.memoizedProps,s=null,r=_a,r!==null)switch(r.tag){case 27:case 5:s=r.memoizedProps}af(a,i,n,s)||Ct(n,!0)}else Po(n),n.stateNode=Pr(s,a,i,n)}return Ee(n),null;case 31:if(i=n.memoizedState,a===null||a.memoizedState!==null){if(s=Vt(n),i!==null){if(a===null){if(!s)throw Error(N(318));if(!Va)throw Error(N(556));if(a=n.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(N(557));H1(a,n)}else Qt(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ee(n),a=!1}else i=he(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=i),a=!0;if(!a)return n.flags&256?(pn(n),n):(pn(n),null);if((n.flags&128)!==0)throw Error(N(558))}return Ee(n),null;case 13:if(s=n.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(r=Vt(n),s!==null&&s.dehydrated!==null){if(a===null){if(!r)throw Error(N(318));if(!Va)throw Error(N(344));if(r=n.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(N(317));od(r,n)}else Qt(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ee(n),r=!1}else r=he(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=r),r=!0;if(!r)return n.flags&256?(pn(n),n):(pn(n),null)}return pn(n),(n.flags&128)!==0?(n.lanes=i,n):(i=s!==null,a=a!==null&&a.memoizedState!==null,i&&(s=n.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==r&&(s.flags|=2048)),i!==a&&i&&(n.child.flags|=8192),Uu(n,n.updateQueue),Ee(n),null);case 4:return ft(),br(a,n),a===null&&k2(n.stateNode.containerInfo),Ee(n),null;case 10:return Jt(n.type),Ee(n),null;case 19:if(p(ua),s=n.memoizedState,s===null)return Ee(n),null;if(r=(n.flags&128)!==0,h=s.rendering,h===null)if(r)bi(s,!1);else{if(ke!==0||a!==null&&(a.flags&128)!==0)for(a=n.child;a!==null;){if(h=vi(a),h!==null){for(n.flags|=128,bi(s,!1),a=h.updateQueue,n.updateQueue=a,Uu(n,a),n.subtreeFlags=0,a=i,i=n.child;i!==null;)Lh(i,a),i=i.sibling;return v(ua,ua.current&1|2),le&&K(n,s.treeForkCount),n.child}a=a.sibling}s.tail!==null&&Te()>lo&&(n.flags|=128,r=!0,bi(s,!1),n.lanes=4194304)}else{if(!r)if(a=vi(h),a!==null){if(n.flags|=128,r=!0,a=a.updateQueue,n.updateQueue=a,Uu(n,a),bi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!h.alternate&&!le)return Ee(n),null}else 2*Te()-s.renderingStartTime>lo&&i!==536870912&&(n.flags|=128,r=!0,bi(s,!1),n.lanes=4194304);s.isBackwards?(h.sibling=n.child,n.child=h):(a=s.last,a!==null?a.sibling=h:n.child=h,s.last=h)}return s.tail!==null?(a=s.tail,s.rendering=a,s.tail=a.sibling,s.renderingStartTime=Te(),a.sibling=null,i=ua.current,v(ua,r?i&1|2:i&1),le&&K(n,s.treeForkCount),a):(Ee(n),null);case 22:case 23:return pn(n),mi(),s=n.memoizedState!==null,a!==null?a.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&(Ee(n),n.subtreeFlags&6&&(n.flags|=8192)):Ee(n),i=n.updateQueue,i!==null&&Uu(n,i.retryQueue),i=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),a!==null&&p(su),null;case 24:return i=null,a!==null&&(i=a.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Jt(Ze),Ee(n),null;case 25:return null;case 30:return null}throw Error(N(156,n.tag))}function yl(a,n){switch(lt(n),n.tag){case 1:return a=n.flags,a&65536?(n.flags=a&-65537|128,n):null;case 3:return Jt(Ze),ft(),a=n.flags,(a&65536)!==0&&(a&128)===0?(n.flags=a&-65537|128,n):null;case 26:case 27:case 5:return ot(n),null;case 31:if(n.memoizedState!==null){if(pn(n),n.alternate===null)throw Error(N(340));Qt()}return a=n.flags,a&65536?(n.flags=a&-65537|128,n):null;case 13:if(pn(n),a=n.memoizedState,a!==null&&a.dehydrated!==null){if(n.alternate===null)throw Error(N(340));Qt()}return a=n.flags,a&65536?(n.flags=a&-65537|128,n):null;case 19:return p(ua),null;case 4:return ft(),null;case 10:return Jt(n.type),null;case 22:case 23:return pn(n),mi(),a!==null&&p(su),a=n.flags,a&65536?(n.flags=a&-65537|128,n):null;case 24:return Jt(Ze),null;case 25:return null;default:return null}}function Cr(a,n){switch(lt(n),n.tag){case 3:Jt(Ze),ft();break;case 26:case 27:case 5:ot(n);break;case 4:ft();break;case 31:n.memoizedState!==null&&pn(n);break;case 13:pn(n);break;case 19:p(ua);break;case 10:Jt(n.type);break;case 22:case 23:pn(n),mi(),a!==null&&p(su);break;case 24:Jt(Ze)}}function Vl(a,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var r=s.next;i=r;do{if((i.tag&a)===a){s=void 0;var h=i.create,B=i.inst;s=h(),B.destroy=s}i=i.next}while(i!==r)}}catch(I){ge(n,n.return,I)}}function Yl(a,n,i){try{var s=n.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var h=r.next;s=h;do{if((s.tag&a)===a){var B=s.inst,I=B.destroy;if(I!==void 0){B.destroy=void 0,r=n;var yt=i,Et=I;try{Et()}catch(Nt){ge(r,yt,Nt)}}}s=s.next}while(s!==h)}}catch(Nt){ge(n,n.return,Nt)}}function Hs(a){var n=a.updateQueue;if(n!==null){var i=a.stateNode;try{K0(n,i)}catch(s){ge(a,a.return,s)}}}function Tr(a,n,i){i.props=Bl(a.type,a.memoizedProps),i.state=a.memoizedState;try{i.componentWillUnmount()}catch(s){ge(a,n,s)}}function Wi(a,n){try{var i=a.ref;if(i!==null){switch(a.tag){case 26:case 27:case 5:var s=dc(a.stateNode);break;case 30:s=a.stateNode;break;default:s=a.stateNode}typeof i=="function"?a.refCleanup=i(s):i.current=s}}catch(r){ge(a,n,r)}}function vl(a,n){var i=a.ref,s=a.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(r){ge(a,n,r)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(r){ge(a,n,r)}else i.current=null}function Dh(a){var n=a.type,i=a.memoizedProps,s=a.stateNode;try{S1(s,n,i,a)}catch(r){ge(a,a.return,r)}}function Rr(a,n,i){try{Ir(a.stateNode,a.type,i,n,a)}catch(s){ge(a,a.return,s)}}function Mh(a){return a.tag===5||a.tag===3||(wn?a.tag===26:!1)||(ra?a.tag===27&&Qu(a.type):!1)||a.tag===4}function Ar(a){t:for(;;){for(;a.sibling===null;){if(a.return===null||Mh(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(ra&&a.tag===27&&Qu(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 ko(a,n,i){var s=a.tag;if(s===5||s===6)a=a.stateNode,n?E1(i,a,n):g1(i,a);else if(s!==4&&(ra&&s===27&&Qu(a.type)&&(i=a.stateNode,n=null),a=a.child,a!==null))for(ko(a,n,i),a=a.sibling;a!==null;)ko(a,n,i),a=a.sibling}function xs(a,n,i){var s=a.tag;if(s===5||s===6)a=a.stateNode,n?_1(i,a,n):v1(i,a);else if(s!==4&&(ra&&s===27&&Qu(a.type)&&(i=a.stateNode),a=a.child,a!==null))for(xs(a,n,i),a=a.sibling;a!==null;)xs(a,n,i),a=a.sibling}function Nr(a,n,i){a=a.containerInfo;try{A1(a,i)}catch(s){ge(n,n.return,s)}}function Oh(a){var n=a.stateNode,i=a.memoizedProps;try{of(a.type,i,n,a)}catch(s){ge(a,a.return,s)}}function F0(a,n){for(I2(a.containerInfo),Na=n;Na!==null;)if(a=Na,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Na=n;else for(;Na!==null;){a=Na;var i=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 s=0;s<n.length;s++){var r=n[s];r.ref.impl=r.nextImpl}break;case 11:case 15:break;case 1:if((n&1024)!==0&&i!==null){n=void 0,s=a,r=i.memoizedProps,i=i.memoizedState;var h=s.stateNode;try{var B=Bl(s.type,r);n=h.getSnapshotBeforeUpdate(B,i),h.__reactInternalSnapshotBeforeUpdate=n}catch(I){ge(s,s.return,I)}}break;case 3:(n&1024)!==0&&Pa&&Hn(a.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(N(163))}if(n=a.sibling,n!==null){n.return=a.return,Na=n;break}Na=a.return}}function Uh(a,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Zn(a,i),s&4&&Vl(5,i);break;case 1:if(Zn(a,i),s&4)if(a=i.stateNode,n===null)try{a.componentDidMount()}catch(B){ge(i,i.return,B)}else{var r=Bl(i.type,n.memoizedProps);n=n.memoizedState;try{a.componentDidUpdate(r,n,a.__reactInternalSnapshotBeforeUpdate)}catch(B){ge(i,i.return,B)}}s&64&&Hs(i),s&512&&Wi(i,i.return);break;case 3:if(Zn(a,i),s&64&&(s=i.updateQueue,s!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=dc(i.child.stateNode);break;case 1:a=i.child.stateNode}try{K0(s,a)}catch(B){ge(i,i.return,B)}}break;case 27:ra&&n===null&&s&4&&Oh(i);case 26:case 5:if(Zn(a,i),n===null){if(s&4)Dh(i);else if(s&64){a=i.type,n=i.memoizedProps,r=i.stateNode;try{B1(r,a,n,i)}catch(B){ge(i,i.return,B)}}}s&512&&Wi(i,i.return);break;case 12:Zn(a,i);break;case 31:Zn(a,i),s&4&&Hh(a,i);break;case 13:Zn(a,i),s&4&&Dr(a,i),s&64&&(s=i.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(i=jr.bind(null,i),Xs(s,i))));break;case 22:if(s=i.memoizedState!==null||Il,!s){n=n!==null&&n.memoizedState!==null||sa,r=Il;var h=sa;Il=s,(sa=n)&&!h?gl(a,i,(i.subtreeFlags&8772)!==0):Zn(a,i),Il=r,sa=h}break;case 30:break;default:Zn(a,i)}}function w0(a){var n=a.alternate;n!==null&&(a.alternate=null,w0(n)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(n=a.stateNode,n!==null&&r1(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 Ln(a,n,i){for(i=i.child;i!==null;)zr(a,n,i),i=i.sibling}function zr(a,n,i){if(la&&typeof la.onCommitFiberUnmount=="function")try{la.onCommitFiberUnmount(Zu,i)}catch{}switch(i.tag){case 26:if(wn){sa||vl(i,n),Ln(a,n,i),i.memoizedState?Q1(i.memoizedState):i.stateNode&&hd(i.stateNode);break}case 27:if(ra){sa||vl(i,n);var s=ma,r=Tn;Qu(i.type)&&(ma=i.stateNode,Tn=!1),Ln(a,n,i),iu(i.stateNode),ma=s,Tn=r;break}case 5:sa||vl(i,n);case 6:if(Pa){if(s=ma,r=Tn,ma=null,Ln(a,n,i),ma=s,Tn=r,ma!==null)if(Tn)try{ld(ma,i.stateNode)}catch(h){ge(i,n,h)}else try{nd(ma,i.stateNode)}catch(h){ge(i,n,h)}}else Ln(a,n,i);break;case 18:Pa&&ma!==null&&(Tn?cd(ma,i.stateNode):Se(ma,i.stateNode));break;case 4:Pa?(s=ma,r=Tn,ma=i.stateNode.containerInfo,Tn=!0,Ln(a,n,i),ma=s,Tn=r):(_l&&Nr(i.stateNode,i,Ve()),Ln(a,n,i));break;case 0:case 11:case 14:case 15:Yl(2,i,n),sa||Yl(4,i,n),Ln(a,n,i);break;case 1:sa||(vl(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&Tr(i,n,s)),Ln(a,n,i);break;case 21:Ln(a,n,i);break;case 22:sa=(s=sa)||i.memoizedState!==null,Ln(a,n,i),sa=s;break;default:Ln(a,n,i)}}function Hh(a,n){if(Va&&n.memoizedState===null&&(a=n.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{q1(a)}catch(i){ge(n,n.return,i)}}}function Dr(a,n){if(Va&&n.memoizedState===null&&(a=n.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Qs(a)}catch(i){ge(n,n.return,i)}}function W0(a){switch(a.tag){case 31:case 13:case 19:var n=a.stateNode;return n===null&&(n=a.stateNode=new Tf),n;case 22:return a=a.stateNode,n=a._retryCache,n===null&&(n=a._retryCache=new Tf),n;default:throw Error(N(435,a.tag))}}function $o(a,n){var i=W0(a);n.forEach(function(s){if(!i.has(s)){i.add(s);var r=l1.bind(null,a,s);s.then(r,r)}})}function aa(a,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var r=i[s],h=a,B=n;if(Pa){var I=B;t:for(;I!==null;){switch(I.tag){case 27:if(ra){if(Qu(I.type)){ma=I.stateNode,Tn=!1;break t}break}case 5:ma=I.stateNode,Tn=!1;break t;case 3:case 4:ma=I.stateNode.containerInfo,Tn=!0;break t}I=I.return}if(ma===null)throw Error(N(160));zr(h,B,r),ma=null,Tn=!1}else zr(h,B,r);h=r.alternate,h!==null&&(h.return=null),r.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)tc(n,a),n=n.sibling}function tc(a,n){var i=a.alternate,s=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:aa(n,a),wa(a),s&4&&(Yl(3,a,a.return),Vl(3,a),Yl(5,a,a.return));break;case 1:aa(n,a),wa(a),s&512&&(sa||i===null||vl(i,i.return)),s&64&&Il&&(a=a.updateQueue,a!==null&&(s=a.callbacks,s!==null&&(i=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:if(wn){var r=Rl;if(aa(n,a),wa(a),s&512&&(sa||i===null||vl(i,i.return)),s&4){s=i!==null?i.memoizedState:null;var h=a.memoizedState;i===null?h===null?a.stateNode===null?a.stateNode=Ku(r,a.type,a.memoizedProps,a):lf(r,a.type,a.stateNode):a.stateNode=K1(r,h,a.memoizedProps):s!==h?(s===null?i.stateNode!==null&&hd(i.stateNode):Q1(s),h===null?lf(r,a.type,a.stateNode):K1(r,h,a.memoizedProps)):h===null&&a.stateNode!==null&&Rr(a,a.memoizedProps,i.memoizedProps)}break}case 27:if(ra){aa(n,a),wa(a),s&512&&(sa||i===null||vl(i,i.return)),i!==null&&s&4&&Rr(a,a.memoizedProps,i.memoizedProps);break}case 5:if(aa(n,a),wa(a),s&512&&(sa||i===null||vl(i,i.return)),Pa){if(a.flags&32){r=a.stateNode;try{kr(r)}catch(At){ge(a,a.return,At)}}s&4&&a.stateNode!=null&&(r=a.memoizedProps,Rr(a,r,i!==null?i.memoizedProps:r)),s&1024&&(Dc=!0)}else _l&&a.alternate!==null&&(a.alternate.stateNode=a.stateNode);break;case 6:if(aa(n,a),wa(a),s&4&&Pa){if(a.stateNode===null)throw Error(N(162));s=a.memoizedProps,i=i!==null?i.memoizedProps:s,r=a.stateNode;try{vc(r,i,s)}catch(At){ge(a,a.return,At)}}break;case 3:if(wn?(Z1(),r=Rl,Rl=nf(n.containerInfo),aa(n,a),Rl=r):aa(n,a),wa(a),s&4){if(Pa&&Va&&i!==null&&i.memoizedState.isDehydrated)try{lm(n.containerInfo)}catch(At){ge(a,a.return,At)}if(_l){s=n.containerInfo,i=n.pendingChildren;try{A1(s,i)}catch(At){ge(a,a.return,At)}}}Dc&&(Dc=!1,P0(a));break;case 4:wn?(i=Rl,Rl=nf(a.stateNode.containerInfo),aa(n,a),wa(a),Rl=i):(aa(n,a),wa(a)),s&4&&_l&&Nr(a.stateNode,a,a.stateNode.pendingChildren);break;case 12:aa(n,a),wa(a);break;case 31:aa(n,a),wa(a),s&4&&(s=a.updateQueue,s!==null&&(a.updateQueue=null,$o(a,s)));break;case 13:aa(n,a),wa(a),a.child.flags&8192&&a.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Uc=Te()),s&4&&(s=a.updateQueue,s!==null&&(a.updateQueue=null,$o(a,s)));break;case 22:r=a.memoizedState!==null;var B=i!==null&&i.memoizedState!==null,I=Il,yt=sa;if(Il=I||r,sa=yt||B,aa(n,a),sa=yt,Il=I,wa(a),s&8192&&(n=a.stateNode,n._visibility=r?n._visibility&-2:n._visibility|1,r&&(i===null||B||Il||sa||Jn(a)),Pa)){t:if(i=null,Pa)for(n=a;;){if(n.tag===5||wn&&n.tag===26){if(i===null){B=i=n;try{h=B.stateNode,r?b1(h):tm(B.stateNode,B.memoizedProps)}catch(At){ge(B,B.return,At)}}}else if(n.tag===6){if(i===null){B=n;try{var Et=B.stateNode;r?$r(Et):C1(Et,B.memoizedProps)}catch(At){ge(B,B.return,At)}}}else if(n.tag===18){if(i===null){B=n;try{var Nt=B.stateNode;r?im(Nt):j1(B.stateNode)}catch(At){ge(B,B.return,At)}}}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;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}}s&4&&(s=a.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,$o(a,i))));break;case 19:aa(n,a),wa(a),s&4&&(s=a.updateQueue,s!==null&&(a.updateQueue=null,$o(a,s)));break;case 30:break;case 21:break;default:aa(n,a),wa(a)}}function wa(a){var n=a.flags;if(n&2){try{for(var i,s=a.return;s!==null;){if(Mh(s)){i=s;break}s=s.return}if(Pa){if(i==null)throw Error(N(160));switch(i.tag){case 27:if(ra){var r=i.stateNode,h=Ar(a);xs(a,h,r);break}case 5:var B=i.stateNode;i.flags&32&&(kr(B),i.flags&=-33);var I=Ar(a);xs(a,I,B);break;case 3:case 4:var yt=i.stateNode.containerInfo,Et=Ar(a);ko(a,Et,yt);break;default:throw Error(N(161))}}}catch(Nt){ge(a,a.return,Nt)}a.flags&=-3}n&4096&&(a.flags&=-4097)}function P0(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var n=a;P0(n),n.tag===5&&n.flags&1024&&Vu(n.stateNode),a=a.sibling}}function Zn(a,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Uh(a,n.alternate,n),n=n.sibling}function Jn(a){for(a=a.child;a!==null;){var n=a;switch(n.tag){case 0:case 11:case 14:case 15:Yl(4,n,n.return),Jn(n);break;case 1:vl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Tr(n,n.return,i),Jn(n);break;case 27:ra&&iu(n.stateNode);case 26:case 5:vl(n,n.return),Jn(n);break;case 22:n.memoizedState===null&&Jn(n);break;case 30:Jn(n);break;default:Jn(n)}a=a.sibling}}function gl(a,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,r=a,h=n,B=h.flags;switch(h.tag){case 0:case 11:case 15:gl(r,h,i),Vl(4,h);break;case 1:if(gl(r,h,i),s=h,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(Et){ge(s,s.return,Et)}if(s=h,r=s.updateQueue,r!==null){var I=s.stateNode;try{var yt=r.shared.hiddenCallbacks;if(yt!==null)for(r.shared.hiddenCallbacks=null,r=0;r<yt.length;r++)hh(yt[r],I)}catch(Et){ge(s,s.return,Et)}}i&&B&64&&Hs(h),Wi(h,h.return);break;case 27:ra&&Oh(h);case 26:case 5:gl(r,h,i),i&&s===null&&B&4&&Dh(h),Wi(h,h.return);break;case 12:gl(r,h,i);break;case 31:gl(r,h,i),i&&B&4&&Hh(r,h);break;case 13:gl(r,h,i),i&&B&4&&Dr(r,h);break;case 22:h.memoizedState===null&&gl(r,h,i),Wi(h,h.return);break;case 30:break;default:gl(r,h,i)}n=n.sibling}}function Ci(a,n){var i=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),a=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),a!==i&&(a!=null&&a.refCount++,i!=null&&La(i))}function Wa(a,n){a=null,n.alternate!==null&&(a=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==a&&(n.refCount++,a!=null&&La(a))}function gn(a,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)I0(a,n,i,s),n=n.sibling}function I0(a,n,i,s){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gn(a,n,i,s),r&2048&&Vl(9,n);break;case 1:gn(a,n,i,s);break;case 3:gn(a,n,i,s),r&2048&&(a=null,n.alternate!==null&&(a=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==a&&(n.refCount++,a!=null&&La(a)));break;case 12:if(r&2048){gn(a,n,i,s),a=n.stateNode;try{var h=n.memoizedProps,B=h.id,I=h.onPostCommit;typeof I=="function"&&I(B,n.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(yt){ge(n,n.return,yt)}}else gn(a,n,i,s);break;case 31:gn(a,n,i,s);break;case 13:gn(a,n,i,s);break;case 23:break;case 22:h=n.stateNode,B=n.alternate,n.memoizedState!==null?h._visibility&2?gn(a,n,i,s):Ii(a,n):h._visibility&2?gn(a,n,i,s):(h._visibility|=2,Pi(a,n,i,s,(n.subtreeFlags&10256)!==0||!1)),r&2048&&Ci(B,n);break;case 24:gn(a,n,i,s),r&2048&&Wa(n.alternate,n);break;default:gn(a,n,i,s)}}function Pi(a,n,i,s,r){for(r=r&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=a,B=n,I=i,yt=s,Et=B.flags;switch(B.tag){case 0:case 11:case 15:Pi(h,B,I,yt,r),Vl(8,B);break;case 23:break;case 22:var Nt=B.stateNode;B.memoizedState!==null?Nt._visibility&2?Pi(h,B,I,yt,r):Ii(h,B):(Nt._visibility|=2,Pi(h,B,I,yt,r)),r&&Et&2048&&Ci(B.alternate,B);break;case 24:Pi(h,B,I,yt,r),r&&Et&2048&&Wa(B.alternate,B);break;default:Pi(h,B,I,yt,r)}n=n.sibling}}function Ii(a,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=a,s=n,r=s.flags;switch(s.tag){case 22:Ii(i,s),r&2048&&Ci(s.alternate,s);break;case 24:Ii(i,s),r&2048&&Wa(s.alternate,s);break;default:Ii(i,s)}n=n.sibling}}function Ti(a,n,i){if(a.subtreeFlags&cu)for(a=a.child;a!==null;)xh(a,n,i),a=a.sibling}function xh(a,n,i){switch(a.tag){case 26:if(Ti(a,n,i),a.flags&cu)if(a.memoizedState!==null)Mi(i,Rl,a.memoizedState,a.memoizedProps);else{var s=a.stateNode,r=a.type;a=a.memoizedProps,((n&335544128)===n||js(r,a))&&Ia(i,s,r,a)}break;case 5:Ti(a,n,i),a.flags&cu&&(s=a.stateNode,r=a.type,a=a.memoizedProps,((n&335544128)===n||js(r,a))&&Ia(i,s,r,a));break;case 3:case 4:wn?(s=Rl,Rl=nf(a.stateNode.containerInfo),Ti(a,n,i),Rl=s):Ti(a,n,i);break;case 22:a.memoizedState===null&&(s=a.alternate,s!==null&&s.memoizedState!==null?(s=cu,cu=16777216,Ti(a,n,i),cu=s):Ti(a,n,i));break;default:Ti(a,n,i)}}function Mr(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 ki(a){var n=a.deletions;if((a.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];Na=s,Ur(s,a)}Mr(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Or(a),a=a.sibling}function Or(a){switch(a.tag){case 0:case 11:case 15:ki(a),a.flags&2048&&Yl(9,a,a.return);break;case 3:ki(a);break;case 12:ki(a);break;case 22:var n=a.stateNode;a.memoizedState!==null&&n._visibility&2&&(a.return===null||a.return.tag!==13)?(n._visibility&=-3,xu(a)):ki(a);break;default:ki(a)}}function xu(a){var n=a.deletions;if((a.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];Na=s,Ur(s,a)}Mr(a)}for(a=a.child;a!==null;){switch(n=a,n.tag){case 0:case 11:case 15:Yl(8,n,n.return),xu(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,xu(n));break;default:xu(n)}a=a.sibling}}function Ur(a,n){for(;Na!==null;){var i=Na;switch(i.tag){case 0:case 11:case 15:Yl(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:La(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,Na=s;else t:for(i=a;Na!==null;){s=Na;var r=s.sibling,h=s.return;if(w0(s),s===i){Na=null;break t}if(r!==null){r.return=h,Na=r;break t}Na=h}}}function Gs(a){var n=c1(a);if(n!=null){if(typeof n.memoizedProps["data-testname"]!="string")throw Error(N(364));return n}if(a=ad(a),a===null)throw Error(N(362));return a.stateNode.current}function ec(a,n){var i=a.tag;switch(n.$$typeof){case Rf:if(a.type===n.value)return!0;break;case Af:t:{for(n=n.value,a=[a,0],i=0;i<a.length;){var s=a[i++],r=s.tag,h=a[i++],B=n[h];if(r!==5&&r!==26&&r!==27||!Jl(s)){for(;B!=null&&ec(s,B);)h++,B=n[h];if(h===n.length){n=!0;break t}else for(s=s.child;s!==null;)a.push(s,h),s=s.sibling}}n=!1}return n;case Nf:if((i===5||i===26||i===27)&&y1(a.stateNode,n.value))return!0;break;case Df:if((i===5||i===6||i===26||i===27)&&(a=p1(a),a!==null&&0<=a.indexOf(n.value)))return!0;break;case zf:if((i===5||i===26||i===27)&&(a=a.memoizedProps["data-testname"],typeof a=="string"&&a.toLowerCase()===n.value.toLowerCase()))return!0;break;default:throw Error(N(365))}return!1}function Hr(a){switch(a.$$typeof){case Rf:return"<"+(O(a.value)||"Unknown")+">";case Af:return":has("+(Hr(a)||"")+")";case Nf:return'[role="'+a.value+'"]';case Df:return'"'+a.value+'"';case zf:return'[data-testname="'+a.value+'"]';default:throw Error(N(365))}}function Gh(a,n){var i=[];a=[a,0];for(var s=0;s<a.length;){var r=a[s++],h=r.tag,B=a[s++],I=n[B];if(h!==5&&h!==26&&h!==27||!Jl(r)){for(;I!=null&&ec(r,I);)B++,I=n[B];if(B===n.length)i.push(r);else for(r=r.child;r!==null;)a.push(r,B),r=r.sibling}}return i}function ac(a,n){if(!Yu)throw Error(N(363));a=Gs(a),a=Gh(a,n),n=[],a=Array.from(a);for(var i=0;i<a.length;){var s=a[i++],r=s.tag;if(r===5||r===26||r===27)Jl(s)||n.push(s.stateNode);else for(s=s.child;s!==null;)a.push(s),s=s.sibling}return n}function Sn(){return(ie&2)!==0&&oe!==0?oe&-oe:Gt.T!==null?$c():El()}function nc(){if(Bn===0)if((oe&536870912)===0||le){var a=Cc;Cc<<=1,(Cc&3932160)===0&&(Cc=262144),Bn=a}else Bn=536870912;return a=xn.current,a!==null&&(a.flags|=32),Bn}function sn(a,n,i){(a===He&&(Ne===2||Ne===9)||a.cancelPendingCommit!==null)&&(tu(a,0),Ri(a,oe,Bn,!1)),X(a,i),((ie&2)===0||a!==He)&&(a===He&&((ie&2)===0&&(Iu|=i),ke===4&&Ri(a,oe,Bn,!1)),We(a))}function Bh(a,n,i){if((ie&6)!==0)throw Error(N(327));var s=!i&&(n&127)===0&&(n&a.expiredLanes)===0||S(a,n),r=s?a1(a,n):Vs(a,n,!0),h=s;do{if(r===0){Pu&&!s&&Ri(a,n,0,!1);break}else{if(i=a.current.alternate,h&&!k0(i)){r=Vs(a,n,!1),h=!1;continue}if(r===2){if(h=n,a.errorRecoveryDisabledLanes&h)var B=0;else B=a.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){n=B;t:{var I=a;r=Oc;var yt=Va&&I.current.memoizedState.isDehydrated;if(yt&&(tu(I,B).flags|=256),B=Vs(I,B,!1),B!==2){if(Ed&&!yt){I.errorRecoveryDisabledLanes|=h,Iu|=h,r=4;break t}h=Rn,Rn=r,h!==null&&(Rn===null?Rn=h:Rn.push.apply(Rn,h))}r=B}if(h=!1,r!==2)continue}}if(r===1){tu(a,0),Ri(a,n,0,!0);break}t:{switch(s=a,h=r,h){case 0:case 1:throw Error(N(345));case 4:if((n&4194048)!==n)break;case 6:Ri(s,n,Bn,!ru);break t;case 2:Rn=null;break;case 3:case 5:break;default:throw Error(N(329))}if((n&62914560)===n&&(r=Uc+300-Te(),10<r)){if(Ri(s,n,Bn,!ru),Y(s,0,!0)!==0)break t;kl=n,s.timeoutHandle=o1(xr.bind(null,s,i,Rn,Of,Mf,n,Bn,Iu,no,ru,h,"Throttled",-0,0),r);break t}xr(s,i,Rn,Of,Mf,n,Bn,Iu,no,ru,h,null,-0,0)}}break}while(!0);We(a)}function xr(a,n,i,s,r,h,B,I,yt,Et,Nt,At,Mt,Yt){if(a.timeoutHandle=zi,At=n.subtreeFlags,At&8192||(At&16785408)===16785408){At=h1(),xh(n,h,At);var Xe=(h&62914560)===h?Uc-Te():(h&4194048)===h?Cd-Te():0;if(Xe=d1(At,Xe),Xe!==null){kl=h,a.cancelPendingCommit=Xe(jh.bind(null,a,n,h,i,s,r,B,I,yt,Nt,At,null,Mt,Yt)),Ri(a,h,B,!Et);return}}jh(a,n,h,i,s,r,B,I,yt)}function k0(a){for(var n=a;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var r=i[s],h=r.getSnapshot;r=r.value;try{if(!ja(h(),r))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;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 Ri(a,n,i,s){n&=~bd,n&=~Iu,a.suspendedLanes|=n,a.pingedLanes&=~n,s&&(a.warmLanes|=n),s=a.expirationTimes;for(var r=n;0<r;){var h=31-_n(r),B=1<<h;s[h]=-1,r&=~B}i!==0&&V(a,i,n)}function $i(){return(ie&6)===0?(Pe(0),!1):!0}function lc(){if(ue!==null){if(Ne===0)var a=ue.return;else a=ue,je=fn=null,Uo(a),$n=null,Nc=0,a=ue;for(;a!==null;)Cr(a.alternate,a),a=a.return;ue=null}}function tu(a,n){var i=a.timeoutHandle;i!==zi&&(a.timeoutHandle=zi,td(i)),i=a.cancelPendingCommit,i!==null&&(a.cancelPendingCommit=null,i()),kl=0,lc(),He=a,ue=i=Xl(a.current,null),oe=n,Ne=0,Gn=null,ru=!1,Pu=S(a,n),Ed=!1,no=Bn=bd=Iu=fu=ke=0,Rn=Oc=null,Mf=!1,(n&8)!==0&&(n|=n&32);var s=a.entangledLanes;if(s!==0)for(a=a.entanglements,s&=n;0<s;){var r=31-_n(s),h=1<<r;n|=a[r],s&=~h}return Bi=n,Ja(),i}function $0(a,n){Wt=null,Gt.H=zc,n===$s||n===yf?(n=No(),Ne=3):n===pf?(n=No(),Ne=4):Ne=n===bf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Gn=n,ue===null&&(ke=1,Qo(a,Q(n,a.current)))}function t1(){var a=xn.current;return a===null?!0:(oe&4194048)===oe?el===null:(oe&62914560)===oe||(oe&536870912)!==0?a===el:!1}function qh(){var a=Gt.H;return Gt.H=zc,a===null?zc:a}function Bs(){var a=Gt.A;return Gt.A=fm,a}function qs(){ke=4,ru||(oe&4194048)!==oe&&xn.current!==null||(Pu=!0),(fu&134217727)===0&&(Iu&134217727)===0||He===null||Ri(He,oe,Bn,!1)}function Vs(a,n,i){var s=ie;ie|=2;var r=qh(),h=Bs();(He!==a||oe!==n)&&(Of=null,tu(a,n)),n=!1;var B=ke;t:do try{if(Ne!==0&&ue!==null){var I=ue,yt=Gn;switch(Ne){case 8:lc(),B=6;break t;case 3:case 2:case 9:case 6:xn.current===null&&(n=!0);var Et=Ne;if(Ne=0,Gn=null,Gu(a,I,yt,Et),i&&Pu){B=0;break t}break;default:Et=Ne,Ne=0,Gn=null,Gu(a,I,yt,Et)}}e1(),B=ke;break}catch(Nt){$0(a,Nt)}while(!0);return n&&a.shellSuspendCounter++,je=fn=null,ie=s,Gt.H=r,Gt.A=h,ue===null&&(He=null,oe=0,Ja()),B}function e1(){for(;ue!==null;)Gr(ue)}function a1(a,n){var i=ie;ie|=2;var s=qh(),r=Bs();He!==a||oe!==n?(Of=null,lo=Te()+500,tu(a,n)):Pu=S(a,n);t:do try{if(Ne!==0&&ue!==null){n=ue;var h=Gn;e:switch(Ne){case 1:Ne=0,Gn=null,Gu(a,n,h,1);break;case 2:case 9:if(ch(h)){Ne=0,Gn=null,Yh(n);break}n=function(){Ne!==2&&Ne!==9||He!==a||(Ne=7),We(a)},h.then(n,n);break t;case 3:Ne=7;break t;case 4:Ne=5;break t;case 7:ch(h)?(Ne=0,Gn=null,Yh(n)):(Ne=0,Gn=null,Gu(a,n,h,7));break;case 5:var B=null;switch(ue.tag){case 26:B=ue.memoizedState;case 5:case 27:var I=ue,yt=I.type,Et=I.pendingProps;if(B?uf(B):Ya(I.stateNode,yt,Et)){Ne=0,Gn=null;var Nt=I.sibling;if(Nt!==null)ue=Nt;else{var At=I.return;At!==null?(ue=At,jl(At)):ue=null}break e}}Ne=0,Gn=null,Gu(a,n,h,5);break;case 6:Ne=0,Gn=null,Gu(a,n,h,6);break;case 8:lc(),ke=6;break t;default:throw Error(N(462))}}Vh();break}catch(Mt){$0(a,Mt)}while(!0);return je=fn=null,Gt.H=s,Gt.A=r,ie=i,ue!==null?0:(He=null,oe=0,Ja(),ke)}function Vh(){for(;ue!==null&&!om();)Gr(ue)}function Gr(a){var n=Sr(a.alternate,a,Bi);a.memoizedProps=a.pendingProps,n===null?jl(a):ue=n}function Yh(a){var n=a,i=n.alternate;switch(n.tag){case 15:case 0:n=Ah(i,n,n.pendingProps,n.type,void 0,oe);break;case 11:n=Ah(i,n,n.pendingProps,n.type.render,n.ref,oe);break;case 5:Uo(n);default:Cr(i,n),n=ue=Lh(n,Bi),n=Sr(i,n,Bi)}a.memoizedProps=a.pendingProps,n===null?jl(a):ue=n}function Gu(a,n,i,s){je=fn=null,Uo(n),$n=null,Nc=0;var r=n.return;try{if(Fa(a,r,n,i,oe)){ke=1,Qo(a,Q(i,a.current)),ue=null;return}}catch(h){if(r!==null)throw ue=r,h;ke=1,Qo(a,Q(i,a.current)),ue=null;return}n.flags&32768?(le||s===1?a=!0:Pu||(oe&536870912)!==0?a=!1:(ru=a=!0,(s===2||s===9||s===3||s===6)&&(s=xn.current,s!==null&&s.tag===13&&(s.flags|=16384))),ic(n,a)):jl(n)}function jl(a){var n=a;do{if((n.flags&32768)!==0){ic(n,ru);return}a=n.return;var i=Hu(n.alternate,n,Bi);if(i!==null){ue=i;return}if(n=n.sibling,n!==null){ue=n;return}ue=n=a}while(n!==null);ke===0&&(ke=5)}function ic(a,n){do{var i=yl(a.alternate,a);if(i!==null){i.flags&=32767,ue=i;return}if(i=a.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(a=a.sibling,a!==null)){ue=a;return}ue=a=i}while(a!==null);ke=6,ue=null}function jh(a,n,i,s,r,h,B,I,yt){a.cancelPendingCommit=null;do na();while(ze!==0);if((ie&6)!==0)throw Error(N(327));if(n!==null){if(n===a.current)throw Error(N(177));if(h=n.lanes|n.childLanes,h|=gd,et(a,i,h,B,I,yt),a===He&&(ue=He=null,oe=0),du=n,qi=a,kl=i,Uf=h,Hf=r,$1=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,w2(Ui,function(){return Xh(),null})):(a.callbackNode=null,a.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=Gt.T,Gt.T=null,r=Ll(),Sa(2),B=ie,ie|=4;try{F0(a,n,i)}finally{ie=B,Sa(r),Gt.T=s}}ze=1,Br(),qr(),Vr()}}function Br(){if(ze===1){ze=0;var a=qi,n=du,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=Gt.T,Gt.T=null;var s=Ll();Sa(2);var r=ie;ie|=4;try{tc(n,a),mc(a.containerInfo)}finally{ie=r,Sa(s),Gt.T=i}}a.current=n,ze=2}}function qr(){if(ze===2){ze=0;var a=qi,n=du,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=Gt.T,Gt.T=null;var s=Ll();Sa(2);var r=ie;ie|=4;try{Uh(a,n.alternate,n)}finally{ie=r,Sa(s),Gt.T=i}}ze=3}}function Vr(){if(ze===4||ze===3){ze=0,En();var a=qi,n=du,i=kl,s=$1;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ze=5:(ze=0,du=qi=null,n1(a,a.pendingLanes));var r=a.pendingLanes;if(r===0&&(hu=null),P(i),n=n.stateNode,la&&typeof la.onCommitFiberRoot=="function")try{la.onCommitFiberRoot(Zu,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=Gt.T,r=Ll(),Sa(2),Gt.T=null;try{for(var h=a.onRecoverableError,B=0;B<s.length;B++){var I=s[B];h(I.value,{componentStack:I.stack})}}finally{Gt.T=n,Sa(r)}}(kl&3)!==0&&na(),We(a),r=a.pendingLanes,(i&261930)!==0&&(r&42)!==0?a===xf?io++:(io=0,xf=a):io=0,Va&&Y1(),Pe(0)}}function n1(a,n){(a.pooledCacheLanes&=n)===0&&(n=a.pooledCache,n!=null&&(a.pooledCache=null,La(n)))}function na(){return Br(),qr(),Vr(),Xh()}function Xh(){if(ze!==5)return!1;var a=qi,n=Uf;Uf=0;var i=P(kl),s=32>i?32:i;i=Gt.T;var r=Ll();try{Sa(s),Gt.T=null,s=Hf,Hf=null;var h=qi,B=kl;if(ze=0,du=qi=null,kl=0,(ie&6)!==0)throw Error(N(331));var I=ie;if(ie|=4,Or(h.current),I0(h,h.current,B,s),ie=I,Pe(0,!1),la&&typeof la.onPostCommitFiberRoot=="function")try{la.onPostCommitFiberRoot(Zu,h)}catch{}return!0}finally{Sa(r),Gt.T=i,n1(a,n)}}function Kh(a,n,i){n=Q(i,n),n=Ds(a.stateNode,n,2),a=Ml(a,n,2),a!==null&&(X(a,2),We(a))}function ge(a,n,i){if(a.tag===3)Kh(a,a,i);else for(;n!==null;){if(n.tag===3){Kh(n,a,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(hu===null||!hu.has(s))){a=Q(i,a),i=Lo(2),s=Ml(n,i,2),s!==null&&(dr(i,s,n,a),X(s,2),We(s));break}}n=n.return}}function Yr(a,n,i){var s=a.pingCache;if(s===null){s=a.pingCache=new hm;var r=new Set;s.set(n,r)}else r=s.get(n),r===void 0&&(r=new Set,s.set(n,r));r.has(i)||(Ed=!0,r.add(i),a=uc.bind(null,a,n,i),n.then(a,a))}function uc(a,n,i){var s=a.pingCache;s!==null&&s.delete(n),a.pingedLanes|=a.suspendedLanes&i,a.warmLanes&=~i,He===a&&(oe&i)===i&&(ke===4||ke===3&&(oe&62914560)===oe&&300>Te()-Uc?(ie&2)===0&&tu(a,0):bd|=i,no===oe&&(no=0)),We(a)}function Qh(a,n){n===0&&(n=A()),a=Ji(a,n),a!==null&&(X(a,n),We(a))}function jr(a){var n=a.memoizedState,i=0;n!==null&&(i=n.retryLane),Qh(a,i)}function l1(a,n){var i=0;switch(a.tag){case 31:case 13:var s=a.stateNode,r=a.memoizedState;r!==null&&(i=r.retryLane);break;case 19:s=a.stateNode;break;case 22:s=a.stateNode._retryCache;break;default:throw Error(N(314))}s!==null&&s.delete(n),Qh(a,i)}function w2(a,n){return rf(a,n)}function Xr(a,n,i,s){this.tag=a,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=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sc(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Xl(a,n){var i=a.alternate;return i===null?(i=Z(a.tag,n,a.key,a.mode),i.elementType=a.elementType,i.type=a.type,i.stateNode=a.stateNode,i.alternate=a,a.alternate=i):(i.pendingProps=n,i.type=a.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=a.flags&65011712,i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,n=a.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=a.sibling,i.index=a.index,i.ref=a.ref,i.refCleanup=a.refCleanup,i}function Lh(a,n){a.flags&=65011714;var i=a.alternate;return i===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=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,n=i.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),a}function oc(a,n,i,s,r,h){var B=0;if(s=a,typeof a=="function")sc(a)&&(B=1);else if(typeof a=="string")B=wn&&ra?fd(a,i,Xa.current)?26:cf(a)?27:5:wn?fd(a,i,Xa.current)?26:5:ra&&cf(a)?27:5;else t:switch(a){case wr:return a=Z(31,i,n,r),a.elementType=wr,a.lanes=h,a;case Bu:return Ai(i.children,r,h,n);case wh:B=8,r|=24;break;case hc:return a=Z(12,i,n,r|2),a.elementType=hc,a.lanes=h,a;case qu:return a=Z(13,i,n,r),a.elementType=qu,a.lanes=h,a;case Ae:return a=Z(19,i,n,r),a.elementType=Ae,a.lanes=h,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ni:B=10;break t;case Fr:B=9;break t;case Ys:B=11;break t;case Wh:B=14;break t;case au:B=16,s=null;break t}B=29,i=Error(N(130,a===null?"null":typeof a,"")),s=null}return n=Z(B,i,n,r),n.elementType=a,n.type=s,n.lanes=h,n}function Ai(a,n,i,s){return a=Z(7,a,s,n),a.lanes=i,a}function cc(a,n,i){return a=Z(6,a,null,n),a.lanes=i,a}function Kr(a){var n=Z(18,null,null,0);return n.stateNode=a,n}function Qr(a,n,i){return n=Z(4,a.children!==null?a.children:[],a.key,n),n.lanes=i,n.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},n}function Zh(a,n,i,s,r,h,B,I,yt){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=zi,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=U(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=U(0),this.hiddenUpdates=U(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=h,this.onRecoverableError=B,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=yt,this.incompleteTransitions=new Map}function rc(a,n,i,s,r,h,B,I,yt,Et,Nt,At){return a=new Zh(a,n,i,B,yt,Et,Nt,At,I),n=1,h===!0&&(n|=24),h=Z(3,null,null,n),a.current=h,h.stateNode=a,n=Ra(),n.refCount++,a.pooledCache=n,n.refCount++,h.memoizedState={element:s,isDehydrated:i,cache:n},zo(h),a}function Lr(a){return a?(a=Lu,a):Lu}function Jh(a){var n=a._reactInternals;if(n===void 0)throw typeof a.render=="function"?Error(N(188)):(a=Object.keys(a).join(","),Error(N(268,a)));return a=_(n),a=a!==null?b(a):null,a===null?null:dc(a.stateNode)}function Zr(a,n,i,s,r,h){r=Lr(r),s.context===null?s.context=r:s.pendingContext=r,s=Mn(n),s.payload={element:i},h=h===void 0?null:h,h!==null&&(s.callback=h),i=Ml(a,s,n),i!==null&&(sn(i,a,n),Do(i,a,n))}function Fh(a,n){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var i=a.retryLane;a.retryLane=i!==0&&i<n?i:n}}function Sl(a,n){Fh(a,n),(a=a.alternate)&&Fh(a,n)}var ee={},W2=ya,on=Cp(),Un=Object.assign,Jr=Symbol.for("react.element"),fc=Symbol.for("react.transitional.element"),eu=Symbol.for("react.portal"),Bu=Symbol.for("react.fragment"),wh=Symbol.for("react.strict_mode"),hc=Symbol.for("react.profiler"),Fr=Symbol.for("react.consumer"),Ni=Symbol.for("react.context"),Ys=Symbol.for("react.forward_ref"),qu=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),Wh=Symbol.for("react.memo"),au=Symbol.for("react.lazy"),wr=Symbol.for("react.activity"),Kl=Symbol.for("react.memo_cache_sentinel"),Ph=Symbol.iterator,Ih=Symbol.for("react.client.reference"),nu=Array.isArray,Gt=W2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,i1=f.rendererVersion,kh=f.rendererPackageName,$h=f.extraDevToolsConfig,dc=f.getPublicInstance,P2=f.getRootHostContext,u1=f.getChildHostContext,I2=f.prepareForCommit,mc=f.resetAfterCommit,Ql=f.createInstance;f.cloneMutableInstance;var Wr=f.appendInitialChild,s1=f.finalizeInitialChildren,pc=f.shouldSetTextContent,Pr=f.createTextInstance;f.cloneMutableTextInstance;var o1=f.scheduleTimeout,td=f.cancelTimeout,zi=f.noTimeout,Fn=f.isPrimaryRenderer;f.warnsIfNotActing;var Pa=f.supportsMutation,_l=f.supportsPersistence,Va=f.supportsHydration,c1=f.getInstanceFromNode;f.beforeActiveInstanceBlur;var k2=f.preparePortalMount;f.prepareScopeUpdate,f.getInstanceFromScope;var Sa=f.setCurrentUpdatePriority,Ll=f.getCurrentUpdatePriority,El=f.resolveUpdatePriority;f.trackSchedulerEvent,f.resolveEventType,f.resolveEventTimeStamp;var ed=f.shouldAttemptEagerTransition,r1=f.detachDeletedInstance;f.requestPostPaintCallback;var f1=f.maySuspendCommit,$2=f.maySuspendCommitOnUpdate,js=f.maySuspendCommitInSyncRender,Ya=f.preloadInstance,h1=f.startSuspendingCommit,Ia=f.suspendInstance;f.suspendOnActiveViewTransition;var d1=f.waitForCommitToBeReady;f.getSuspendedCommitReason;var cn=f.NotPendingTransition,lu=f.HostTransitionContext,Vu=f.resetFormInstance;f.bindToConsole;var m1=f.supportsMicrotasks,Zl=f.scheduleMicrotask,Yu=f.supportsTestSelectors,ad=f.findFiberRoot,bl=f.getBoundingRect,p1=f.getTextContent,Jl=f.isHiddenSubtree,y1=f.matchAccessibilityRole,yc=f.setFocusIfFocusable,ju=f.setupIntersectionObserver,v1=f.appendChild,g1=f.appendChildToContainer,vc=f.commitTextUpdate,S1=f.commitMount,Ir=f.commitUpdate,_1=f.insertBefore,E1=f.insertInContainerBefore,nd=f.removeChild,ld=f.removeChildFromContainer,kr=f.resetTextContent,b1=f.hideInstance,$r=f.hideTextInstance,tm=f.unhideInstance,C1=f.unhideTextInstance;f.cancelViewTransitionName,f.cancelRootViewTransitionName,f.restoreRootViewTransitionName,f.cloneRootViewTransitionContainer,f.removeRootViewTransitionClone,f.measureClonedInstance,f.hasInstanceChanged,f.hasInstanceAffectedParent,f.startViewTransition,f.startGestureTransition,f.stopViewTransition,f.getCurrentGestureOffset,f.createViewTransitionInstance;var Hn=f.clearContainer;f.createFragmentInstance,f.updateFragmentInstanceFiber,f.commitNewChildToFragmentInstance,f.deleteChildFromFragmentInstance;var T1=f.cloneInstance,Ve=f.createContainerChildSet,id=f.appendChildToContainerChildSet,R1=f.finalizeContainerChildren,A1=f.replaceContainerChildren,Di=f.cloneHiddenInstance,gc=f.cloneHiddenTextInstance,Sc=f.isSuspenseInstancePending,_c=f.isSuspenseInstanceFallback,Xu=f.getSuspenseInstanceFallbackErrorDetails,Xs=f.registerSuspenseInstanceRetry,N1=f.canHydrateFormStateMarker,z1=f.isFormStateMarkerMatching,ud=f.getNextHydratableSibling,D1=f.getNextHydratableSiblingAfterSingleton,tf=f.getFirstHydratableChild,ef=f.getFirstHydratableChildWithinContainer,sd=f.getFirstHydratableChildWithinActivityInstance,M1=f.getFirstHydratableChildWithinSuspenseInstance,em=f.getFirstHydratableChildWithinSingleton,am=f.canHydrateInstance,O1=f.canHydrateTextInstance,U1=f.canHydrateActivityInstance,nm=f.canHydrateSuspenseInstance,Ks=f.hydrateInstance,af=f.hydrateTextInstance,H1=f.hydrateActivityInstance,od=f.hydrateSuspenseInstance,x1=f.getNextHydratableInstanceAfterActivityInstance,G1=f.getNextHydratableInstanceAfterSuspenseInstance,B1=f.commitHydratedInstance,lm=f.commitHydratedContainer,q1=f.commitHydratedActivityInstance,Qs=f.commitHydratedSuspenseInstance,V1=f.finalizeHydratedChildren,Y1=f.flushHydrationEvents;f.clearActivityBoundary;var Se=f.clearSuspenseBoundary;f.clearActivityBoundaryFromContainer;var cd=f.clearSuspenseBoundaryFromContainer,im=f.hideDehydratedBoundary,j1=f.unhideDehydratedBoundary,X1=f.shouldDeleteUnhydratedTailInstances;f.diffHydratedPropsForDevWarnings,f.diffHydratedTextForDevWarnings,f.describeHydratableInstanceForDevWarnings;var um=f.validateHydratableInstance,rd=f.validateHydratableTextInstance,wn=f.supportsResources,fd=f.isHostHoistableType,nf=f.getHoistableRoot,Ls=f.getResource,K1=f.acquireResource,Q1=f.releaseResource,Ku=f.hydrateHoistable,lf=f.mountHoistable,hd=f.unmountHoistable,L1=f.createHoistableInstance,Z1=f.prepareToCommitHoistables,sm=f.mayResourceSuspendCommit,uf=f.preloadResource,Mi=f.suspendResource,ra=f.supportsSingletons,sf=f.resolveSingletonInstance,of=f.acquireSingletonInstance,iu=f.releaseSingletonInstance,cf=f.isHostSingletonType,Qu=f.isSingletonScope,Ec=[],Zs=-1,Lu={},_n=Math.clz32?Math.clz32:M,J1=Math.log,F1=Math.LN2,bc=256,Cc=262144,Js=4194304,rf=on.unstable_scheduleCallback,ae=on.unstable_cancelCallback,om=on.unstable_shouldYield,En=on.unstable_requestPaint,Te=on.unstable_now,w1=on.unstable_ImmediatePriority,Oi=on.unstable_UserBlockingPriority,Ui=on.unstable_NormalPriority,Fs=on.unstable_IdlePriority,ff=on.log,dd=on.unstable_setDisableYieldValue,Zu=null,la=null,ja=typeof Object.is=="function"?Object.is:st,hf=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)},md=Object.prototype.hasOwnProperty,ws,bn,Tc=!1,W1=new WeakMap,Ju=[],Ws=0,fa=null,rt=0,Wn=[],Pn=0,Hi=null,rn=1,Fl="",Xa=R(null),Rc=R(null),uu=R(null),df=R(null),_a=null,Ye=null,le=!1,xi=null,In=!1,pd=Error(N(519)),wl=R(null),fn=null,je=null,Wl=typeof AbortController<"u"?AbortController:function(){var a=[],n=this.signal={aborted:!1,addEventListener:function(i,s){a.push(s)}};this.abort=function(){n.aborted=!0,a.forEach(function(i){return i()})}},ka=on.unstable_scheduleCallback,cm=on.unstable_NormalPriority,Ze={$$typeof:Ni,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},ia=null,Cn=null,yd=!1,Ps=!1,Fu=!1,Cl=0,Ac=null,vd=0,Is=0,ks=null,mf=Gt.S;Gt.S=function(a,n){Cd=Te(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&X0(a,n),mf!==null&&mf(a,n)};var su=R(null),$s=Error(N(460)),pf=Error(N(474)),yf=Error(N(542)),vf={then:function(){}},kn=null,$n=null,Nc=0,wu=rh(!0),P1=rh(!1),tl=[],Tl=0,gd=0,ou=!1,Sd=!1,Pl=R(null),gf=R(0),xn=R(null),el=null,ua=R(0),Gi=0,Wt=null,Me=null,ha=null,Sf=!1,to=!1,Wu=!1,_f=0,eo=0,ao=null,rm=0,zc={readContext:Re,use:De,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};zc.useEffectEvent=Le;var I1={readContext:Re,use:De,useCallback:function(a,n){return Ga().memoizedState=[a,n===void 0?null:n],a},useContext:Re,useEffect:ph,useImperativeHandle:function(a,n,i){i=i!=null?i.concat([a]):null,Vo(4194308,4,Z0.bind(null,n,a),i)},useLayoutEffect:function(a,n){return Vo(4194308,4,a,n)},useInsertionEffect:function(a,n){Vo(4,2,a,n)},useMemo:function(a,n){var i=Ga();n=n===void 0?null:n;var s=a();if(Wu){k(!0);try{a()}finally{k(!1)}}return i.memoizedState=[s,n],s},useReducer:function(a,n,i){var s=Ga();if(i!==void 0){var r=i(n);if(Wu){k(!0);try{i(n)}finally{k(!1)}}}else r=n;return s.memoizedState=s.baseState=r,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:r},s.queue=a,a=a.dispatch=Ba.bind(null,Wt,a),[s.memoizedState,a]},useRef:function(a){var n=Ga();return a={current:a},n.memoizedState=a},useState:function(a){a=nn(a);var n=a.queue,i=fr.bind(null,Wt,n);return n.dispatch=i,[a.memoizedState,i]},useDebugValue:gh,useDeferredValue:function(a,n){var i=Ga();return cr(i,a,n)},useTransition:function(){var a=nn(!1);return a=Sh.bind(null,Wt,a.queue,!0,!1),Ga().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,n,i){var s=Wt,r=Ga();if(le){if(i===void 0)throw Error(N(407));i=i()}else{if(i=n(),He===null)throw Error(N(349));(oe&127)!==0||Q0(s,n,i)}r.memoizedState=i;var h={value:i,getSnapshot:n};return r.queue=h,ph(Ho.bind(null,s,h,a),[a]),s.flags|=2048,ln(9,{destroy:void 0},xl.bind(null,s,h,i,n),null),i},useId:function(){var a=Ga(),n=He.identifierPrefix;if(le){var i=Fl,s=rn;i=(s&~(1<<32-_n(s)-1)).toString(32)+i,n="_"+n+"R_"+i,i=_f++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=rm++,n="_"+n+"r_"+i.toString(32)+"_";return a.memoizedState=n},useHostTransitionStatus:rr,useFormState:dl,useActionState:dl,useOptimistic:function(a){var n=Ga();n.memoizedState=n.baseState=a;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=zs.bind(null,Wt,!0,i),i.dispatch=n,[a,n]},useMemoCache:Ts,useCacheRefresh:function(){return Ga().memoizedState=J0.bind(null,Wt)},useEffectEvent:function(a){var n=Ga(),i={impl:a};return n.memoizedState=i,function(){if((ie&2)!==0)throw Error(N(440));return i.impl.apply(void 0,arguments)}}},_d={readContext:Re,use:De,useCallback:or,useContext:Re,useEffect:ir,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:sr,useMemo:Yo,useReducer:Rs,useRef:Mu,useState:function(){return Rs(Hl)},useDebugValue:gh,useDeferredValue:function(a,n){var i=Ge();return jo(i,Me.memoizedState,a,n)},useTransition:function(){var a=Rs(Hl)[0],n=Ge().memoizedState;return[typeof a=="boolean"?a:ol(a),n]},useSyncExternalStore:cl,useId:_i,useHostTransitionStatus:rr,useFormState:mh,useActionState:mh,useOptimistic:function(a,n){var i=Ge();return yn(i,Me,a,n)},useMemoCache:Ts,useCacheRefresh:Eh};_d.useEffectEvent=ur;var k1={readContext:Re,use:De,useCallback:or,useContext:Re,useEffect:ir,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:sr,useMemo:Yo,useReducer:Du,useRef:Mu,useState:function(){return Du(Hl)},useDebugValue:gh,useDeferredValue:function(a,n){var i=Ge();return Me===null?cr(i,a,n):jo(i,Me.memoizedState,a,n)},useTransition:function(){var a=Du(Hl)[0],n=Ge().memoizedState;return[typeof a=="boolean"?a:ol(a),n]},useSyncExternalStore:cl,useId:_i,useHostTransitionStatus:rr,useFormState:qo,useActionState:qo,useOptimistic:function(a,n){var i=Ge();return Me!==null?yn(i,Me,a,n):(i.baseState=a,[a,i.queue.dispatch])},useMemoCache:Ts,useCacheRefresh:Eh};k1.useEffectEvent=ur;var Ef={enqueueSetState:function(a,n,i){a=a._reactInternals;var s=Sn(),r=Mn(s);r.payload=n,i!=null&&(r.callback=i),n=Ml(a,r,s),n!==null&&(sn(n,a,s),Do(n,a,s))},enqueueReplaceState:function(a,n,i){a=a._reactInternals;var s=Sn(),r=Mn(s);r.tag=1,r.payload=n,i!=null&&(r.callback=i),n=Ml(a,r,s),n!==null&&(sn(n,a,s),Do(n,a,s))},enqueueForceUpdate:function(a,n){a=a._reactInternals;var i=Sn(),s=Mn(i);s.tag=2,n!=null&&(s.callback=n),n=Ml(a,s,i),n!==null&&(sn(n,a,i),Do(n,a,i))}},bf=Error(N(461)),da=!1,Cf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Il=!1,sa=!1,Dc=!1,Tf=typeof WeakSet=="function"?WeakSet:Set,Na=null,ma=null,Tn=!1,Rl=null,cu=8192,fm={getCacheForType:function(a){var n=Re(Ze),i=n.data.get(a);return i===void 0&&(i=a(),n.data.set(a,i)),i},cacheSignal:function(){return Re(Ze).controller.signal}},Rf=0,Af=1,Nf=2,zf=3,Df=4;if(typeof Symbol=="function"&&Symbol.for){var Mc=Symbol.for;Rf=Mc("selector.component"),Af=Mc("selector.has_pseudo_class"),Nf=Mc("selector.role"),zf=Mc("selector.test_id"),Df=Mc("selector.text")}var hm=typeof WeakMap=="function"?WeakMap:Map,ie=0,He=null,ue=null,oe=0,Ne=0,Gn=null,ru=!1,Pu=!1,Ed=!1,Bi=0,ke=0,fu=0,Iu=0,bd=0,Bn=0,no=0,Oc=null,Rn=null,Mf=!1,Uc=0,Cd=0,lo=1/0,Of=null,hu=null,ze=0,qi=null,du=null,kl=0,Uf=0,Hf=null,$1=null,io=0,xf=null;return ee.attemptContinuousHydration=function(a){if(a.tag===13||a.tag===31){var n=Ji(a,67108864);n!==null&&sn(n,a,67108864),Sl(a,67108864)}},ee.attemptHydrationAtCurrentPriority=function(a){if(a.tag===13||a.tag===31){var n=Sn();n=J(n);var i=Ji(a,n);i!==null&&sn(i,a,n),Sl(a,n)}},ee.attemptSynchronousHydration=function(a){switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var n=H(a.pendingLanes);if(n!==0){for(a.pendingLanes|=2,a.entangledLanes|=2;n;){var i=1<<31-_n(n);a.entanglements[1]|=i,n&=~i}We(a),(ie&6)===0&&(lo=Te()+500,Pe(0))}}break;case 31:case 13:n=Ji(a,2),n!==null&&sn(n,a,2),$i(),Sl(a,2)}},ee.batchedUpdates=function(a,n){return a(n)},ee.createComponentSelector=function(a){return{$$typeof:Rf,value:a}},ee.createContainer=function(a,n,i,s,r,h,B,I,yt,Et){return rc(a,n,!1,null,i,s,h,null,B,I,yt,Et)},ee.createHasPseudoClassSelector=function(a){return{$$typeof:Af,value:a}},ee.createHydrationContainer=function(a,n,i,s,r,h,B,I,yt,Et,Nt,At,Mt,Yt){return a=rc(i,s,!0,a,r,h,I,Yt,yt,Et,Nt,At),a.context=Lr(null),i=a.current,s=Sn(),s=J(s),r=Mn(s),r.callback=n??null,Ml(i,r,s),n=s,a.current.lanes=n,X(a,n),We(a),a},ee.createPortal=function(a,n,i){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:eu,key:s==null?null:""+s,children:a,containerInfo:n,implementation:i}},ee.createRoleSelector=function(a){return{$$typeof:Nf,value:a}},ee.createTestNameSelector=function(a){return{$$typeof:zf,value:a}},ee.createTextSelector=function(a){return{$$typeof:Df,value:a}},ee.defaultOnCaughtError=function(a){console.error(a)},ee.defaultOnRecoverableError=function(a){hf(a)},ee.defaultOnUncaughtError=function(a){hf(a)},ee.deferredUpdates=function(a){var n=Gt.T,i=Ll();try{return Sa(32),Gt.T=null,a()}finally{Sa(i),Gt.T=n}},ee.discreteUpdates=function(a,n,i,s,r){var h=Gt.T,B=Ll();try{return Sa(2),Gt.T=null,a(n,i,s,r)}finally{Sa(B),Gt.T=h,ie===0&&(lo=Te()+500)}},ee.findAllNodes=ac,ee.findBoundingRects=function(a,n){if(!Yu)throw Error(N(363));n=ac(a,n),a=[];for(var i=0;i<n.length;i++)a.push(bl(n[i]));for(n=a.length-1;0<n;n--){i=a[n];for(var s=i.x,r=s+i.width,h=i.y,B=h+i.height,I=n-1;0<=I;I--)if(n!==I){var yt=a[I],Et=yt.x,Nt=Et+yt.width,At=yt.y,Mt=At+yt.height;if(s>=Et&&h>=At&&r<=Nt&&B<=Mt){a.splice(n,1);break}else if(s!==Et||i.width!==yt.width||Mt<h||At>B){if(!(h!==At||i.height!==yt.height||Nt<s||Et>r)){Et>s&&(yt.width+=Et-s,yt.x=s),Nt<r&&(yt.width=r-Et),a.splice(n,1);break}}else{At>h&&(yt.height+=At-h,yt.y=h),Mt<B&&(yt.height=B-At),a.splice(n,1);break}}}return a},ee.findHostInstance=Jh,ee.findHostInstanceWithNoPortals=function(a){return a=_(a),a=a!==null?C(a):null,a===null?null:dc(a.stateNode)},ee.findHostInstanceWithWarning=function(a){return Jh(a)},ee.flushPassiveEffects=na,ee.flushSyncFromReconciler=function(a){var n=ie;ie|=1;var i=Gt.T,s=Ll();try{if(Sa(2),Gt.T=null,a)return a()}finally{Sa(s),Gt.T=i,ie=n,(ie&6)===0&&Pe(0)}},ee.flushSyncWork=$i,ee.focusWithin=function(a,n){if(!Yu)throw Error(N(363));for(a=Gs(a),n=Gh(a,n),n=Array.from(n),a=0;a<n.length;){var i=n[a++],s=i.tag;if(!Jl(i)){if((s===5||s===26||s===27)&&yc(i.stateNode))return!0;for(i=i.child;i!==null;)n.push(i),i=i.sibling}}return!1},ee.getFindAllNodesFailureDescription=function(a,n){if(!Yu)throw Error(N(363));var i=0,s=[];a=[Gs(a),0];for(var r=0;r<a.length;){var h=a[r++],B=h.tag,I=a[r++],yt=n[I];if((B!==5&&B!==26&&B!==27||!Jl(h))&&(ec(h,yt)&&(s.push(Hr(yt)),I++,I>i&&(i=I)),I<n.length))for(h=h.child;h!==null;)a.push(h,I),h=h.sibling}if(i<n.length){for(a=[];i<n.length;i++)a.push(Hr(n[i]));return`findAllNodes was able to match part of the selector:
10
+ `+(s.join(" > ")+`
11
+
12
+ No matching component was found for:
13
+ `)+a.join(" > ")}return null},ee.getPublicRootInstance=function(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 27:case 5:return dc(a.child.stateNode);default:return a.child.stateNode}},ee.injectIntoDevTools=function(){var a={bundleType:0,version:i1,rendererPackageName:kh,currentDispatcherRef:Gt,reconcilerVersion:"19.2.0"};if($h!==null&&(a.rendererConfig=$h),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")a=!1;else{var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled||!n.supportsFiber)a=!0;else{try{Zu=n.inject(a),la=n}catch{}a=!!n.checkDCE}}return a},ee.isAlreadyRendering=function(){return(ie&6)!==0},ee.observeVisibleRects=function(a,n,i,s){if(!Yu)throw Error(N(363));a=ac(a,n);var r=ju(a,i,s).disconnect;return{disconnect:function(){r()}}},ee.shouldError=function(){return null},ee.shouldSuspend=function(){return!1},ee.startHostTransition=function(a,n,i,s){if(a.tag!==5)throw Error(N(476));var r=_h(a).queue;Sh(a,r,n,cn,i===null?j:function(){var h=_h(a);return h.next===null&&(h=a.alternate.memoizedState),Fi(a,h.next.queue,{},Sn()),i(s)})},ee.updateContainer=function(a,n,i,s){var r=n.current,h=Sn();return Zr(r,h,a,n,i,s),h},ee.updateContainerSync=function(a,n,i,s){return Zr(n.current,2,a,n,i,s),2},ee},y.exports.default=y.exports,Object.defineProperty(y.exports,"__esModule",{value:!0})})(hp)),hp.exports}var pp={exports:{}};var g3;function $4(){return g3||(g3=1,(function(y){process.env.NODE_ENV!=="production"&&(y.exports=function(f){function Z(t,e){for(t=t.memoizedState;t!==null&&0<e;)t=t.next,e--;return t}function j(t,e,l,u){if(l>=e.length)return u;var o=e[l],c=fa(t)?t.slice():Te({},t);return c[o]=j(t[o],e,l+1,u),c}function N(t,e,l){if(e.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<l.length-1;u++)if(e[u]!==l[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return D(t,e,l,0)}}function D(t,e,l,u){var o=e[u],c=fa(t)?t.slice():Te({},t);return u+1===e.length?(c[l[u]]=c[o],fa(c)?c.splice(o,1):delete c[o]):c[o]=D(t[o],e,l,u+1),c}function T(t,e,l){var u=e[l],o=fa(t)?t.slice():Te({},t);return l+1===e.length?(fa(o)?o.splice(u,1):delete o[u],o):(o[u]=T(t[u],e,l+1),o)}function _(){return!1}function b(){return null}function C(t,e,l,u){return new sm(t,e,l,u)}function z(t,e){t.context===Xe&&(F1(e,t,null,null),gc())}function O(t,e){if(oi!==null){var l=e.staleFamilies;e=e.updatedFamilies,Qs(),Z1(t.current,e,l),gc()}}function R(t){oi=t}function p(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function v(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function M(){}function H(){}function Y(t){var e=[];return t.forEach(function(l){e.push(l)}),e.sort().join(", ")}function S(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function m(t){if(S(t)!==t)throw Error("Unable to find node on an unmounted component.")}function A(t){var e=t.alternate;if(!e){if(e=S(t),e===null)throw Error("Unable to find node on an unmounted component.");return e!==t?null:t}for(var l=t,u=e;;){var o=l.return;if(o===null)break;var c=o.alternate;if(c===null){if(u=o.return,u!==null){l=u;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===l)return m(o),t;if(c===u)return m(o),e;c=c.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==u.return)l=o,u=c;else{for(var d=!1,g=o.child;g;){if(g===l){d=!0,l=o,u=c;break}if(g===u){d=!0,u=o,l=c;break}g=g.sibling}if(!d){for(g=c.child;g;){if(g===l){d=!0,l=c,u=o;break}if(g===u){d=!0,u=c,l=o;break}g=g.sibling}if(!d)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?t:e}function U(t){return t=A(t),t!==null?X(t):null}function X(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=X(t),e!==null)return e;t=t.sibling}return null}function et(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(t.tag!==4&&(e=et(t),e!==null))return e;t=t.sibling}return null}function V(t){return t===null||typeof t!="object"?null:(t=Ju&&t[Ju]||t["@@iterator"],typeof t=="function"?t:null)}function q(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ws?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Fs:return"Fragment";case dd:return"Profiler";case ff:return"StrictMode";case hf:return"Suspense";case md:return"SuspenseList";case Tc:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case Ui:return"Portal";case la:return t.displayName||"Context";case Zu:return(t._context.displayName||"Context")+".Consumer";case ja:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ws:return e=t.displayName||null,e!==null?e:q(t.type)||"Memo";case bn:e=t._payload,t=t._init;try{return q(t(e))}catch{}}return null}function G(t){var e=t.type;switch(t.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(e._context.displayName||"Context")+".Consumer";case 10:return e.displayName||"Context";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(e);case 8:return e===ff?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;break;case 29:if(e=t._debugInfo,e!=null){for(var l=e.length-1;0<=l;l--)if(typeof e[l].name=="string")return e[l].name}if(t.return!==null)return G(t.return)}return null}function J(t){return{current:t}}function P(t,e){0>Yt?console.error("Unexpected pop."):(e!==Mt[Yt]&&console.error("Unexpected Fiber popped."),t.current=At[Yt],At[Yt]=null,Mt[Yt]=null,Yt--)}function k(t,e,l){Yt++,At[Yt]=t.current,Mt[Yt]=l,t.current=e}function st(t){return t>>>=0,t===0?32:31-(ku(t)/ct|0)|0}function at(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 console.error("Should have found matching lanes. This is a bug in React."),t}}function w(t,e,l){var u=t.pendingLanes;if(u===0)return 0;var o=0,c=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var g=u&134217727;return g!==0?(u=g&~c,u!==0?o=at(u):(d&=g,d!==0?o=at(d):l||(l=g&~t,l!==0&&(o=at(l))))):(g=u&~c,g!==0?o=at(g):d!==0?o=at(d):l||(l=u&~t,l!==0&&(o=at(l)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,l=e&-e,c>=l||c===32&&(l&4194048)!==0)?e:o}function E(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function x(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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function Q(){var t=Rt;return Rt<<=1,(Rt&62914560)===0&&(Rt=4194304),t}function K(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function W(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function pt(t,e,l,u,o,c){var d=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var g=t.entanglements,L=t.expirationTimes,nt=t.hiddenUpdates;for(l=d&~l;0<l;){var mt=31-Ea(l),vt=1<<mt;g[mt]=0,L[mt]=-1;var _t=nt[mt];if(_t!==null)for(nt[mt]=null,mt=0;mt<_t.length;mt++){var xt=_t[mt];xt!==null&&(xt.lane&=-536870913)}l&=~vt}u!==0&&lt(t,u,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(d&~e))}function lt(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var u=31-Ea(e);t.entangledLanes|=e,t.entanglements[u]=t.entanglements[u]|1073741824|l&261930}function gt(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var u=31-Ea(l),o=1<<u;o&e|t[u]&e&&(t[u]|=e),l&=~o}}function Tt(t,e){var l=e&-e;return l=(l&42)!==0?1:ft(l),(l&(t.suspendedLanes|e))!==0?0:l}function ft(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 F(t,e,l){if(pu)for(t=t.pendingUpdatersLaneMap;0<l;){var u=31-Ea(l),o=1<<u;t[u].add(e),l&=~o}}function ot(t,e){if(pu)for(var l=t.pendingUpdatersLaneMap,u=t.memoizedUpdaters;0<e;){var o=31-Ea(e);t=1<<o,o=l[o],0<o.size&&(o.forEach(function(c){var d=c.alternate;d!==null&&u.has(d)||u.add(c)}),o.clear()),e&=~t}}function Ct(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Dt(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled)return!0;if(!e.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Gf=e.inject(t),An=e}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!e.checkDCE}function zt(t){if(typeof X3=="function"&&K3(t),An&&typeof An.setStrictMode=="function")try{An.setStrictMode(Gf,t)}catch(e){mu||(mu=!0,console.error("React instrumentation encountered an error: %o",e))}}function Vt(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}function Qt(t){for(var e=0,l=0;l<t.length;l++){var u=t[l];if(typeof u=="object"&&u!==null)if(fa(u)&&u.length===2&&typeof u[0]=="string"){if(e!==0&&e!==3)return 1;e=3}else return 1;else{if(typeof u=="function"||typeof u=="string"&&50<u.length||e!==0&&e!==2)return 1;e=2}}return e}function he(t,e,l,u){for(var o in t)dm.call(t,o)&&o[0]!=="_"&&Ht(o,t[o],e,l,u)}function Ht(t,e,l,u,o){switch(typeof e){case"object":if(e===null){e="null";break}else{if(e.$$typeof===Oi){var c=q(e.type)||"…",d=e.key;e=e.props;var g=Object.keys(e),L=g.length;if(d==null&&L===0){e="<"+c+" />";break}if(3>u||L===1&&g[0]==="children"&&d==null){e="<"+c+" … />";break}l.push([o+"  ".repeat(u)+t,"<"+c]),d!==null&&Ht("key",d,l,u+1,o),t=!1;for(var nt in e)nt==="children"?e.children!=null&&(!fa(e.children)||0<e.children.length)&&(t=!0):dm.call(e,nt)&&nt[0]!=="_"&&Ht(nt,e[nt],l,u+1,o);l.push(["",t?">…</"+c+">":"/>"]);return}if(c=Object.prototype.toString.call(e),c=c.slice(8,c.length-1),c==="Array"){if(nt=Qt(e),nt===2||nt===0){e=JSON.stringify(e);break}else if(nt===3){for(l.push([o+"  ".repeat(u)+t,""]),t=0;t<e.length;t++)c=e[t],Ht(c[0],c[1],l,u+1,o);return}}if(c==="Promise"){if(e.status==="fulfilled"){if(c=l.length,Ht(t,e.value,l,u,o),l.length>c){l=l[c],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(e.status==="rejected"&&(c=l.length,Ht(t,e.reason,l,u,o),l.length>c)){l=l[c],l[1]="Rejected Promise<"+l[1]+">";return}l.push(["  ".repeat(u)+t,"Promise"]);return}c==="Object"&&(nt=Object.getPrototypeOf(e))&&typeof nt.constructor=="function"&&(c=nt.constructor.name),l.push([o+"  ".repeat(u)+t,c==="Object"?3>u?"":"…":c]),3>u&&he(e,l,u+1,o);return}case"function":e=e.name===""?"() => {}":e.name+"() {}";break;case"string":e=e==="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects."?"…":JSON.stringify(e);break;case"undefined":e="undefined";break;case"boolean":e=e?"true":"false";break;default:e=String(e)}l.push([o+"  ".repeat(u)+t,e])}function Ue(t,e,l,u){var o=!0;for(d in t)d in e||(l.push(["– "+"  ".repeat(u)+d,"…"]),o=!1);for(var c in e)if(c in t){var d=t[c],g=e[c];if(d!==g){if(u===0&&c==="children")o="  ".repeat(u)+c,l.push(["– "+o,"…"],["+ "+o,"…"]);else{if(!(3<=u)){if(typeof d=="object"&&typeof g=="object"&&d!==null&&g!==null&&d.$$typeof===g.$$typeof)if(g.$$typeof===Oi){if(d.type===g.type&&d.key===g.key){d=q(g.type)||"…",o="  ".repeat(u)+c,d="<"+d+" … />",l.push(["– "+o,d],["+ "+o,d]),o=!1;continue}}else{var L=Object.prototype.toString.call(d),nt=Object.prototype.toString.call(g);if(L===nt&&(nt==="[object Object]"||nt==="[object Array]")){L=["  "+"  ".repeat(u)+c,nt==="[object Array]"?"Array":""],l.push(L),nt=l.length,Ue(d,g,l,u+1)?nt===l.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):o=!1;continue}}else if(typeof d=="function"&&typeof g=="function"&&d.name===g.name&&d.length===g.length&&(L=Function.prototype.toString.call(d),nt=Function.prototype.toString.call(g),L===nt)){d=g.name===""?"() => {}":g.name+"() {}",l.push(["  "+"  ".repeat(u)+c,d+" Referentially unequal function closure. Consider memoization."]);continue}}Ht(c,d,l,u,"– "),Ht(c,g,l,u,"+ ")}o=!1}}else l.push(["+ "+"  ".repeat(u)+c,"…"]),o=!1;return o}function Jt(t){de=t&63?"Blocking":t&64?"Gesture":t&4194176?"Transition":t&62914560?"Suspense":t&2080374784?"Idle":"Other"}function pe(t,e,l,u){Ke&&(so.start=e,so.end=l,$u.color="warning",$u.tooltipText=u,$u.properties=null,(t=t._debugTask)?t.run(performance.measure.bind(performance,u,so)):performance.measure(u,so))}function zn(t,e,l){pe(t,e,l,"Reconnect")}function we(t,e,l,u,o){var c=G(t);if(c!==null&&Ke){var d=t.alternate,g=t.actualDuration;if(d===null||d.child!==t.child)for(var L=t.child;L!==null;L=L.sibling)g-=L.actualDuration;u=.5>g?u?"tertiary-light":"primary-light":10>g?u?"tertiary":"primary":100>g?u?"tertiary-dark":"primary-dark":"error";var nt=t.memoizedProps;g=t._debugTask,nt!==null&&d!==null&&d.memoizedProps!==nt?(L=[Z3],nt=Ue(d.memoizedProps,nt,L,0),1<L.length&&(nt&&!uo&&(d.lanes&o)===0&&100<t.actualDuration?(uo=!0,L[0]=J3,$u.color="warning",$u.tooltipText="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."):($u.color=u,$u.tooltipText=c),$u.properties=L,so.start=e,so.end=l,g!=null?g.run(performance.measure.bind(performance,"​"+c,so)):performance.measure("​"+c,so))):g!=null?g.run(console.timeStamp.bind(console,c,e,l,"Components ⚛",void 0,u)):console.timeStamp(c,e,l,"Components ⚛",void 0,u)}}function Kn(t,e,l,u){if(Ke){var o=G(t);if(o!==null){for(var c=null,d=[],g=0;g<u.length;g++){var L=u[g];c==null&&L.source!==null&&(c=L.source._debugTask),L=L.value,d.push(["Error",typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L)])}t.key!==null&&Ht("key",t.key,d,0,""),t.memoizedProps!==null&&he(t.memoizedProps,d,0,""),c==null&&(c=t._debugTask),t={start:e,end:l,detail:{devtools:{color:"error",track:"Components ⚛",tooltipText:t.tag===13?"Hydration failed":"Error boundary caught an error",properties:d}}},c?c.run(performance.measure.bind(performance,"​"+o,t)):performance.measure("​"+o,t)}}}function It(t,e,l,u,o){if(o!==null){if(Ke){var c=G(t);if(c!==null){u=[];for(var d=0;d<o.length;d++){var g=o[d].value;u.push(["Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)])}t.key!==null&&Ht("key",t.key,u,0,""),t.memoizedProps!==null&&he(t.memoizedProps,u,0,""),e={start:e,end:l,detail:{devtools:{color:"error",track:"Components ⚛",tooltipText:"A lifecycle or effect errored",properties:u}}},(t=t._debugTask)?t.run(performance.measure.bind(performance,"​"+c,e)):performance.measure("​"+c,e)}}}else c=G(t),c!==null&&Ke&&(o=1>u?"secondary-light":100>u?"secondary":500>u?"secondary-dark":"error",(t=t._debugTask)?t.run(console.timeStamp.bind(console,c,e,l,"Components ⚛",void 0,o)):console.timeStamp(c,e,l,"Components ⚛",void 0,o))}function Re(t,e,l,u){if(Ke&&!(e<=t)){var o=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",u?u.run(console.timeStamp.bind(console,l,t,e,de,"Scheduler ⚛",o)):console.timeStamp(l,t,e,de,"Scheduler ⚛",o)}}function Qa(t,e,l,u){!Ke||e<=t||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Prewarm",t,e,de,"Scheduler ⚛",l)):console.timeStamp("Prewarm",t,e,de,"Scheduler ⚛",l))}function ul(t,e,l,u){!Ke||e<=t||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Suspended",t,e,de,"Scheduler ⚛",l)):console.timeStamp("Suspended",t,e,de,"Scheduler ⚛",l))}function Ra(t,e,l,u,o,c){if(Ke&&!(e<=t)){l=[];for(var d=0;d<u.length;d++){var g=u[d].value;l.push(["Recoverable Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)])}t={start:t,end:e,detail:{devtools:{color:"primary-dark",track:de,trackGroup:"Scheduler ⚛",tooltipText:o?"Hydration Failed":"Recovered after Error",properties:l}}},c?c.run(performance.measure.bind(performance,"Recovered",t)):performance.measure("Recovered",t)}}function La(t,e,l,u){!Ke||e<=t||(u?u.run(console.timeStamp.bind(console,"Errored",t,e,de,"Scheduler ⚛","error")):console.timeStamp("Errored",t,e,de,"Scheduler ⚛","error"))}function Za(t,e,l,u){!Ke||e<=t||(u?u.run(console.timeStamp.bind(console,l,t,e,de,"Scheduler ⚛","secondary-light")):console.timeStamp(l,t,e,de,"Scheduler ⚛","secondary-light"))}function We(t,e,l,u,o){if(Ke&&!(e<=t)){for(var c=[],d=0;d<l.length;d++){var g=l[d].value;c.push(["Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)])}t={start:t,end:e,detail:{devtools:{color:"error",track:de,trackGroup:"Scheduler ⚛",tooltipText:u?"Remaining Effects Errored":"Commit Errored",properties:c}}},o?o.run(performance.measure.bind(performance,"Errored",t)):performance.measure("Errored",t)}}function Pe(){}function xa(){if(Td===0){Dp=console.log,Mp=console.info,Op=console.warn,Up=console.error,Hp=console.group,xp=console.groupCollapsed,Gp=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Td++}function Zi(){if(Td--,Td===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Te({},t,{value:Dp}),info:Te({},t,{value:Mp}),warn:Te({},t,{value:Op}),error:Te({},t,{value:Up}),group:Te({},t,{value:Hp}),groupCollapsed:Te({},t,{value:xp}),groupEnd:Te({},t,{value:Gp})})}0>Td&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Eu(t){var e=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=e,t.startsWith(`Error: react-stack-top-frame
14
+ `)&&(t=t.slice(29)),e=t.indexOf(`
15
+ `),e!==-1&&(t=t.slice(e+1)),e=t.indexOf("react_stack_bottom_frame"),e!==-1&&(e=t.lastIndexOf(`
16
+ `,e)),e!==-1)t=t.slice(0,e);else return"";return t}function ga(t){if(mm===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);mm=e&&e[1]||"",Bp=-1<l.stack.indexOf(`
17
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
18
+ `+mm+t+Bp}function gs(t,e){if(!t||pm)return"";var l=ym.get(t);if(l!==void 0)return l;pm=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=rt.H,rt.H=null,xa();try{var o={DetermineComponentFrameRoot:function(){try{if(e){var _t=function(){throw Error()};if(Object.defineProperty(_t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_t,[])}catch(Ft){var xt=Ft}Reflect.construct(t,[],_t)}else{try{_t.call()}catch(Ft){xt=Ft}t.call(_t.prototype)}}else{try{throw Error()}catch(Ft){xt=Ft}(_t=t())&&typeof _t.catch=="function"&&_t.catch(function(){})}}catch(Ft){if(Ft&&xt&&typeof Ft.stack=="string")return[Ft.stack,xt.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),g=d[0],L=d[1];if(g&&L){var nt=g.split(`
19
+ `),mt=L.split(`
20
+ `);for(d=c=0;c<nt.length&&!nt[c].includes("DetermineComponentFrameRoot");)c++;for(;d<mt.length&&!mt[d].includes("DetermineComponentFrameRoot");)d++;if(c===nt.length||d===mt.length)for(c=nt.length-1,d=mt.length-1;1<=c&&0<=d&&nt[c]!==mt[d];)d--;for(;1<=c&&0<=d;c--,d--)if(nt[c]!==mt[d]){if(c!==1||d!==1)do if(c--,d--,0>d||nt[c]!==mt[d]){var vt=`
21
+ `+nt[c].replace(" at new "," at ");return t.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",t.displayName)),typeof t=="function"&&ym.set(t,vt),vt}while(1<=c&&0<=d);break}}}finally{pm=!1,rt.H=u,Zi(),Error.prepareStackTrace=l}return nt=(nt=t?t.displayName||t.name:"")?ga(nt):"",typeof t=="function"&&ym.set(t,nt),nt}function oh(t,e){switch(t.tag){case 26:case 27:case 5:return ga(t.type);case 16:return ga("Lazy");case 13:return t.child!==e&&e!==null?ga("Suspense Fallback"):ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return gs(t.type,!1);case 11:return gs(t.type.render,!1);case 1:return gs(t.type,!0);case 31:return ga("Activity");default:return""}}function $c(t){try{var e="",l=null;do{e+=oh(t,l);var u=t._debugInfo;if(u)for(var o=u.length-1;0<=o;o--){var c=u[o];if(typeof c.name=="string"){var d=e;t:{var g=c.name,L=c.env,nt=c.debugLocation;if(nt!=null){var mt=Eu(nt),vt=mt.lastIndexOf(`
22
+ `),_t=vt===-1?mt:mt.slice(vt+1);if(_t.indexOf(g)!==-1){var xt=`
23
+ `+_t;break t}}xt=ga(g+(L?" ["+L+"]":""))}e=d+xt}}l=t,t=t.return}while(t);return e}catch(Ft){return`
24
+ Error generating stack: `+Ft.message+`
25
+ `+Ft.stack}}function X0(t){return(t=t?t.displayName||t.name:"")?ga(t):""}function dn(t,e){if(typeof t=="object"&&t!==null){var l=vm.get(t);return l!==void 0?l:(e={value:t,source:e,stack:$c(e)},vm.set(t,e),e)}return{value:t,source:e,stack:$c(e)}}function ri(t,e){fi(),Bf[qf++]=Rd,Bf[qf++]=t2,t2=t,Rd=e}function tr(t,e,l){fi(),$l[ti++]=ts,$l[ti++]=es,$l[ti++]=xc,xc=t;var u=ts;t=es;var o=32-Ea(u)-1;u&=~(1<<o),l+=1;var c=32-Ea(e)+o;if(30<c){var d=o-o%5;c=(u&(1<<d)-1).toString(32),u>>=d,o-=d,ts=1<<32-Ea(e)+o|l<<o|u,es=c+t}else ts=1<<c|l<<o|u,es=t}function Ss(t){fi(),t.return!==null&&(ri(t,1),tr(t,1,0))}function er(t){for(;t===t2;)t2=Bf[--qf],Bf[qf]=null,Rd=Bf[--qf],Bf[qf]=null;for(;t===xc;)xc=$l[--ti],$l[ti]=null,es=$l[--ti],$l[ti]=null,ts=$l[--ti],$l[ti]=null}function Ao(){return fi(),xc!==null?{id:ts,overflow:es}:null}function ch(t,e){fi(),$l[ti++]=ts,$l[ti++]=es,$l[ti++]=xc,ts=e.id,es=e.overflow,xc=t}function fi(){re||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function mn(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}function No(t,e){k(co,e,t),k(Ad,t,t),k(oo,null,t),e=Fl(e),P(oo,t),k(oo,e,t)}function bu(t){P(oo,t),P(Ad,t),P(co,t)}function Dn(){return mn(oo.current)}function Cu(t){t.memoizedState!==null&&k(e2,t,t);var e=mn(oo.current),l=Xa(e,t.type);e!==l&&(k(Ad,t,t),k(oo,l,t))}function Tu(t){Ad.current===t&&(P(oo,t),P(Ad,t)),e2.current===t&&(P(e2,t),fn?$n._currentValue=kn:$n._currentValue2=kn)}function rh(t,e){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-e?rh(t.children[0],e):t}function Ja(t){return" "+" ".repeat(t)}function hi(t){return"+ "+" ".repeat(t)}function di(t){return"- "+" ".repeat(t)}function Ji(t){switch(t.tag){case 26:case 27:case 5:return t.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return t=t.type,t.displayName||t.name||null;case 11:return t=t.type.render,t.displayName||t.name||null;case 1:return t=t.type,t.displayName||t.name||null;default:return null}}function _s(t,e){return qp.test(t)?(t=JSON.stringify(t),t.length>e-2?8>e?'{"..."}':"{"+t.slice(0,e-7)+'..."}':"{"+t+"}"):t.length>e?5>e?'{"..."}':t.slice(0,e-3)+"...":t}function Ru(t,e,l){var u=120-2*l;if(e===null)return hi(l)+_s(t,u)+`
26
+ `;if(typeof e=="string"){for(var o=0;o<e.length&&o<t.length&&e.charCodeAt(o)===t.charCodeAt(o);o++);return o>u-8&&10<o&&(t="..."+t.slice(o-8),e="..."+e.slice(o-8)),hi(l)+_s(t,u)+`
27
+ `+di(l)+_s(e,u)+`
28
+ `}return Ja(l)+_s(t,u)+`
29
+ `}function zo(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(e,l){return l})}function Au(t,e){switch(typeof t){case"string":return t=JSON.stringify(t),t.length>e?5>e?'"..."':t.slice(0,e-4)+'..."':t;case"object":if(t===null)return"null";if(fa(t))return"[...]";if(t.$$typeof===Oi)return(e=q(t.type))?"<"+e+">":"<...>";var l=zo(t);if(l==="Object"){l="",e-=2;for(var u in t)if(t.hasOwnProperty(u)){var o=JSON.stringify(u);if(o!=='"'+u+'"'&&(u=o),e-=u.length-2,o=Au(t[u],15>e?e:15),e-=o.length,0>e){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+u+":"+o}return"{"+l+"}"}return l;case"function":return(e=t.displayName||t.name)?"function "+e:"function";default:return String(t)}}function Mn(t,e){return typeof t!="string"||qp.test(t)?"{"+Au(t,e-2)+"}":t.length>e-2?5>e?'"..."':'"'+t.slice(0,e-5)+'..."':'"'+t+'"'}function Ml(t,e,l){var u=120-l.length-t.length,o=[],c;for(c in e)if(e.hasOwnProperty(c)&&c!=="children"){var d=Mn(e[c],120-l.length-c.length-1);u-=c.length+d.length+2,o.push(c+"="+d)}return o.length===0?l+"<"+t+`>
30
+ `:0<u?l+"<"+t+" "+o.join(" ")+`>
31
+ `:l+"<"+t+`
32
+ `+l+" "+o.join(`
33
+ `+l+" ")+`
34
+ `+l+`>
35
+ `}function Do(t,e,l){var u="",o=Te({},e),c;for(c in t)if(t.hasOwnProperty(c)){delete o[c];var d=120-2*l-c.length-2,g=Au(t[c],d);e.hasOwnProperty(c)?(d=Au(e[c],d),u+=hi(l)+c+": "+g+`
36
+ `,u+=di(l)+c+": "+d+`
37
+ `):u+=hi(l)+c+": "+g+`
38
+ `}for(var L in o)o.hasOwnProperty(L)&&(t=Au(o[L],120-2*l-L.length-2),u+=di(l)+L+": "+t+`
39
+ `);return u}function fh(t,e,l,u){var o="",c=new Map;for(nt in l)l.hasOwnProperty(nt)&&c.set(nt.toLowerCase(),nt);if(c.size===1&&c.has("children"))o+=Ml(t,e,Ja(u));else{for(var d in e)if(e.hasOwnProperty(d)&&d!=="children"){var g=120-2*(u+1)-d.length-1,L=c.get(d.toLowerCase());if(L!==void 0){c.delete(d.toLowerCase());var nt=e[d];L=l[L];var mt=Mn(nt,g);g=Mn(L,g),typeof nt=="object"&&nt!==null&&typeof L=="object"&&L!==null&&zo(nt)==="Object"&&zo(L)==="Object"&&(2<Object.keys(nt).length||2<Object.keys(L).length||-1<mt.indexOf("...")||-1<g.indexOf("..."))?o+=Ja(u+1)+d+`={{
40
+ `+Do(nt,L,u+2)+Ja(u+1)+`}}
41
+ `:(o+=hi(u+1)+d+"="+mt+`
42
+ `,o+=di(u+1)+d+"="+g+`
43
+ `)}else o+=Ja(u+1)+d+"="+Mn(e[d],g)+`
44
+ `}c.forEach(function(vt){if(vt!=="children"){var _t=120-2*(u+1)-vt.length-1;o+=di(u+1)+vt+"="+Mn(l[vt],_t)+`
45
+ `}}),o=o===""?Ja(u)+"<"+t+`>
46
+ `:Ja(u)+"<"+t+`
47
+ `+o+Ja(u)+`>
48
+ `}return t=l.children,e=e.children,typeof t=="string"||typeof t=="number"||typeof t=="bigint"?(c="",(typeof e=="string"||typeof e=="number"||typeof e=="bigint")&&(c=""+e),o+=Ru(c,""+t,u+1)):(typeof e=="string"||typeof e=="number"||typeof e=="bigint")&&(o=t==null?o+Ru(""+e,null,u+1):o+Ru(""+e,void 0,u+1)),o}function Es(t,e){var l=Ji(t);if(l===null){for(l="",t=t.child;t;)l+=Es(t,e),t=t.sibling;return l}return Ja(e)+"<"+l+`>
49
+ `}function Nu(t,e){var l=rh(t,e);if(l!==t&&(t.children.length!==1||t.children[0]!==l))return Ja(e)+`...
50
+ `+Nu(l,e+1);l="";var u=t.fiber._debugInfo;if(u)for(var o=0;o<u.length;o++){var c=u[o].name;typeof c=="string"&&(l+=Ja(e)+"<"+c+`>
51
+ `,e++)}if(u="",o=t.fiber.pendingProps,t.fiber.tag===6)u=Ru(o,t.serverProps,e),e++;else if(c=Ji(t.fiber),c!==null)if(t.serverProps===void 0){u=e;var d=120-2*u-c.length-2,g="";for(nt in o)if(o.hasOwnProperty(nt)&&nt!=="children"){var L=Mn(o[nt],15);if(d-=nt.length+L.length+2,0>d){g+=" ...";break}g+=" "+nt+"="+L}u=Ja(u)+"<"+c+g+`>
52
+ `,e++}else t.serverProps===null?(u=Ml(c,o,hi(e)),e++):typeof t.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=fh(c,o,t.serverProps,e),e++);var nt="";for(o=t.fiber.child,c=0;o&&c<t.children.length;)d=t.children[c],d.fiber===o?(nt+=Nu(d,e),c++):nt+=Es(o,e),o=o.sibling;for(o&&0<t.children.length&&(nt+=Ja(e)+`...
53
+ `),o=t.serverTail,t.serverProps===null&&e--,t=0;t<o.length;t++)c=o[t],nt=typeof c=="string"?nt+(di(e)+_s(c,120-2*e)+`
54
+ `):nt+Ml(c.type,c.props,di(e));return l+u+nt}function hh(t){try{return`
55
+
56
+ `+Nu(t,0)}catch{return""}}function K0(){if(as===null)return"";var t=as;try{var e="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:e+=ga(t.type);break;case 13:e+=ga("Suspense");break;case 19:e+=ga("SuspenseList");break;case 31:e+=ga("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||e!==""||(e+=X0(t.type));break;case 11:t._debugOwner||e!==""||(e+=X0(t.type.render))}for(;t;)if(typeof t.tag=="number"){var l=t;t=l._debugOwner;var u=l._debugStack;if(t&&u){var o=Eu(u);o!==""&&(e+=`
57
+ `+o)}}else if(t.debugStack!=null){var c=t.debugStack;(t=t.owner)&&c&&(e+=`
58
+ `+Eu(c))}else break;var d=e}catch(g){d=`
59
+ Error generating stack: `+g.message+`
60
+ `+g.stack}return d}function Ut(t,e,l,u,o,c,d){var g=as;Mo(t);try{return t!==null&&t._debugTask?t._debugTask.run(e.bind(null,l,u,o,c,d)):e(l,u,o,c,d)}finally{Mo(g)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Mo(t){rt.getCurrentStack=t===null?null:K0,yu=!1,as=t}function mi(t,e){if(t.return===null){if(Al===null)Al={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:e};else{if(Al.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Al.distanceFromLeaf>e&&(Al.distanceFromLeaf=e)}return Al}var l=mi(t.return,e+1).children;return 0<l.length&&l[l.length-1].fiber===t?(l=l[l.length-1],l.distanceFromLeaf>e&&(l.distanceFromLeaf=e),l):(e={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:e},l.push(e),e)}function pi(){re&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function bs(t,e){vu||(t=mi(t,0),t.serverProps=null,e!==null&&(e=lo(e),t.serverTail.push(e)))}function Ol(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",u=Al;throw u!==null&&(Al=null,l=hh(u)),Cs(dn(Error("Hydration failed because the server rendered "+(e?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
61
+
62
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
63
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
64
+ - Date formatting in a user's locale which doesn't match the server.
65
+ - External changing data without sending a snapshot of it along with the HTML.
66
+ - Invalid HTML tag nesting.
67
+
68
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
69
+
70
+ https://react.dev/link/hydration-mismatch`+l),t)),gm}function yi(t,e){if(!ka)throw Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");ue(t.stateNode,t.type,t.memoizedProps,e,t)||Ol(t,!0)}function pn(t){for(hn=t.return;hn;)switch(hn.tag){case 5:case 31:case 13:ei=!1;return;case 27:case 3:ei=!0;return;default:hn=hn.return}}function vi(t){if(!ka||t!==hn)return!1;if(!re)return pn(t),re=!0,!1;var e=t.tag;if(h?e!==3&&e!==27&&(e!==5||Mf(t.type)&&!le(t.type,t.memoizedProps))&&$e&&(Le(t),Ol(t)):e!==3&&(e!==5||Mf(t.type)&&!le(t.type,t.memoizedProps))&&$e&&(Le(t),Ol(t)),pn(t),e===13){if(!ka)throw Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");$e=Pu(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");$e=ru(t)}else $e=h&&e===27?fm(t.type,$e):hn?cu(t.stateNode):null;return!0}function Le(t){for(var e=$e;e;){var l=mi(t,0),u=lo(e);l.serverTail.push(u),e=u.type==="Suspense"?Pu(e):cu(e)}}function gi(){ka&&($e=hn=null,vu=re=!1)}function Oo(){var t=ro;return t!==null&&(Xn===null?Xn=t:Xn.push.apply(Xn,t),ro=null),t}function Cs(t){ro===null?ro=[t]:ro.push(t)}function ar(){var t=Al;if(t!==null){Al=null;for(var e=hh(t);0<t.children.length;)t=t.children[0];Ut(t.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
71
+
72
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
73
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
74
+ - Date formatting in a user's locale which doesn't match the server.
75
+ - External changing data without sending a snapshot of it along with the HTML.
76
+ - Invalid HTML tag nesting.
77
+
78
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
79
+
80
+ %s%s`,"https://react.dev/link/hydration-mismatch",e)})}}function nr(){Vf=l2=null,Yf=!1}function Ul(t,e,l){fn?(k(a2,e._currentValue,t),e._currentValue=l,k(Sm,e._currentRenderer,t),e._currentRenderer!==void 0&&e._currentRenderer!==null&&e._currentRenderer!==n2&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),e._currentRenderer=n2):(k(a2,e._currentValue2,t),e._currentValue2=l,k(_m,e._currentRenderer2,t),e._currentRenderer2!==void 0&&e._currentRenderer2!==null&&e._currentRenderer2!==n2&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),e._currentRenderer2=n2)}function sl(t,e){var l=a2.current;fn?(t._currentValue=l,l=Sm.current,P(Sm,e),t._currentRenderer=l):(t._currentValue2=l,l=_m.current,P(_m,e),t._currentRenderer2=l),P(a2,e)}function Uo(t,e,l){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===l)break;t=t.return}t!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Ga(t,e,l,u){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var d=o.child;c=c.firstContext;t:for(;c!==null;){var g=c;c=o;for(var L=0;L<e.length;L++)if(g.context===e[L]){c.lanes|=l,g=c.alternate,g!==null&&(g.lanes|=l),Uo(c.return,l,t),u||(d=null);break t}c=g.next}}else if(o.tag===18){if(d=o.return,d===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");d.lanes|=l,c=d.alternate,c!==null&&(c.lanes|=l),Uo(d,l,t),d=null}else d=o.child;if(d!==null)d.return=o;else for(d=o;d!==null;){if(d===t){d=null;break}if(o=d.sibling,o!==null){o.return=d.return,d=o;break}d=d.return}o=d}}function Ge(t,e,l,u){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var d=o.alternate;if(d===null)throw Error("Should have a current fiber. This is a bug in React.");if(d=d.memoizedProps,d!==null){var g=o.type;qn(o.pendingProps.value,d.value)||(t!==null?t.push(g):t=[g])}}else if(o===e2.current){if(d=o.alternate,d===null)throw Error("Should have a current fiber. This is a bug in React.");d.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push($n):t=[$n])}o=o.return}t!==null&&Ga(e,t,l,u),e.flags|=262144}function zu(t){for(t=t.firstContext;t!==null;){var e=t.context;if(!qn(fn?e._currentValue:e._currentValue2,t.memoizedValue))return!0;t=t.next}return!1}function ol(t){l2=t,Vf=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function De(t){return Yf&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Hl(l2,t)}function Ts(t,e){return l2===null&&ol(t),Hl(t,e)}function Hl(t,e){var l=fn?e._currentValue:e._currentValue2;if(e={context:e,memoizedValue:l,next:null},Vf===null){if(t===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Vf=e,t.dependencies={lanes:0,firstContext:e,_debugThenableState:null},t.flags|=524288}else Vf=Vf.next=e;return l}function Rs(){return{controller:new F3,data:new Map,refCount:0}}function Si(t){t.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),t.refCount++}function Du(t){t.refCount--,0>t.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),t.refCount===0&&w3(W3,function(){t.controller.abort()})}function cl(t,e,l){(t&127)!==0?0>gu&&(gu=za(),Nd=i2(e),Em=e,l!=null&&(bm=G(l)),Sc()&&(ca=!0,ho=1),t=Cl(),e=Fu(),t!==jf||e!==zd?jf=-1.1:e!==null&&(ho=1),qc=t,zd=e):(t&4194048)!==0&&0>ai&&(ai=za(),Dd=i2(e),Vp=e,l!=null&&(Yp=G(l)),0>us)&&(t=Cl(),e=Fu(),(t!==po||e!==Vc)&&(po=-1.1),mo=t,Vc=e)}function Q0(t){if(0>gu){gu=za(),Nd=t._debugTask!=null?t._debugTask:null,Sc()&&(ho=1);var e=Cl(),l=Fu();e!==jf||l!==zd?jf=-1.1:l!==null&&(ho=1),qc=e,zd=l}0>ai&&(ai=za(),Dd=t._debugTask!=null?t._debugTask:null,0>us)&&(t=Cl(),e=Fu(),(t!==po||e!==Vc)&&(po=-1.1),mo=t,Vc=e)}function xl(){var t=Gc;return Gc=0,t}function Ho(t){var e=Gc;return Gc=t,e}function As(t){var e=Gc;return Gc+=t,e}function xo(){jt=qt=-1.1}function nn(){var t=qt;return qt=-1.1,t}function yn(t){0<=t&&(qt=t)}function Gl(){var t=ta;return ta=-0,t}function rl(t){0<=t&&(ta=t)}function fl(){var t=Fe;return Fe=null,t}function hl(){var t=ca;return ca=!1,t}function Go(t){Vn=za(),0>t.actualStartTime&&(t.actualStartTime=Vn)}function lr(t){if(0<=Vn){var e=za()-Vn;t.actualDuration+=e,t.selfBaseDuration=e,Vn=-1}}function dh(t){if(0<=Vn){var e=za()-Vn;t.actualDuration+=e,Vn=-1}}function dl(){if(0<=Vn){var t=za(),e=t-Vn;Vn=-1,Gc+=e,ta+=e,jt=t}}function mh(t){Fe===null&&(Fe=[]),Fe.push(t),ls===null&&(ls=[]),ls.push(t)}function ml(){Vn=za(),0>qt&&(qt=Vn)}function Bo(t){for(var e=t.child;e;)t.actualDuration+=e.actualDuration,e=e.sibling}function qo(){}function ln(t){t!==Xf&&t.next===null&&(Xf===null?r2=Xf=t:Xf=Xf.next=t),f2=!0,rt.actQueue!==null?Rm||(Rm=!0,yh()):Tm||(Tm=!0,yh())}function Mu(t,e){if(!Am&&f2){Am=!0;do for(var l=!1,u=r2;u!==null;){if(t!==0){var o=u.pendingLanes;if(o===0)var c=0;else{var d=u.suspendedLanes,g=u.pingedLanes;c=(1<<31-Ea(42|t)+1)-1,c&=o&~(d&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,L0(u,c))}else c=te,c=w(u,u===qe?c:0,u.cancelPendingCommit!==null||u.timeoutHandle!==wl),(c&3)===0||E(u,c)||(l=!0,L0(u,c));u=u.next}while(l);Am=!1}}function Vo(){Ps(),Ns()}function Ns(){f2=Rm=Tm=!1;var t=0;Yc!==0&&Ac()&&(t=Yc);for(var e=ce(),l=null,u=r2;u!==null;){var o=u.next,c=ph(u,e);c===0?(u.next=null,l===null?r2=o:l.next=o,o===null&&(Xf=l)):(l=u,(t!==0||(c&3)!==0)&&(f2=!0)),u=o}Ha!==bo&&Ha!==x2||Mu(t),Yc!==0&&(Yc=0)}function ph(t,e){for(var l=t.suspendedLanes,u=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var d=31-Ea(c),g=1<<d,L=o[d];L===-1?((g&l)===0||(g&u)!==0)&&(o[d]=x(g,e)):L<=e&&(t.expiredLanes|=g),c&=~g}if(e=qe,l=te,l=w(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==wl),u=t.callbackNode,l===0||t===e&&(Oe===Fc||Oe===wc)||t.cancelPendingCommit!==null)return u!==null&&ur(u),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||E(t,l)){if(e=l&-l,e!==t.callbackPriority||rt.actQueue!==null&&u!==Nm)ur(u);else return e;switch(Ct(l)){case 2:case 8:l=Vi;break;case 32:l=Hc;break;case 268435456:l=Rp;break;default:l=Hc}return u=ir.bind(null,t),rt.actQueue!==null?(rt.actQueue.push(u),l=Nm):l=Bt(l,u),t.callbackPriority=e,t.callbackNode=l,e}return u!==null&&ur(u),t.callbackPriority=2,t.callbackNode=null,2}function ir(t,e){if(c2=o2=!1,Ps(),Ha!==bo&&Ha!==x2)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Qi===H2&&(Qi=Im),Qs()&&t.callbackNode!==l)return null;var u=te;return u=w(t,t===qe?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==wl),u===0?null:(id(t,u,e),ph(t,ce()),t.callbackNode!=null&&t.callbackNode===l?ir.bind(null,t):null)}function L0(t,e){if(Qs())return null;o2=c2,c2=!1,id(t,e,!0)}function ur(t){t!==Nm&&t!==null&&Je(t)}function yh(){rt.actQueue!==null&&rt.actQueue.push(function(){return Ns(),null}),P1?tl(function(){(fe&(en|si))!==tn?Bt(ye,Vo):Ns()}):Bt(ye,Vo)}function sr(){if(Yc===0){var t=jc;t===0&&(t=ut,ut<<=1,(ut&261888)===0&&(ut=256)),Yc=t}return Yc}function Z0(t,e){if(Od===null){var l=Od=[];zm=0,jc=sr(),Kf={status:"pending",value:void 0,then:function(u){l.push(u)}}}return zm++,e.then(vh,vh),e}function vh(){if(--zm===0&&(-1<ai||(us=-1.1),Od!==null)){Kf!==null&&(Kf.status="fulfilled");var t=Od;Od=null,jc=0,Kf=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function gh(t,e){var l=[],u={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return t.then(function(){u.status="fulfilled",u.value=e;for(var o=0;o<l.length;o++)(0,l[o])(e)},function(o){for(u.status="rejected",u.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),u}function or(){var t=Xc.current;return t!==null?t:qe.pooledCache}function Yo(t,e){e===null?k(Xc,Xc.current,t):k(Xc,e.pool,t)}function cr(){var t=or();return t===null?null:{parent:fn?oa._currentValue:oa._currentValue2,pool:t}}function jo(t,e){if(qn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),u=Object.keys(e);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var o=l[u];if(!dm.call(e,o)||!qn(t[o],e[o]))return!1}return!0}function Sh(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function _h(t){return t=t.status,t==="fulfilled"||t==="rejected"}function rr(t,e,l){rt.actQueue!==null&&(rt.didUsePromise=!0);var u=t.thenables;if(l=u[l],l===void 0?u.push(e):l!==e&&(t.didWarnAboutUncachedPromise||(t.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),e.then(qo,qo),e=l),e._debugInfo===void 0){t=performance.now(),u=e.displayName;var o={name:typeof u=="string"?u:"Promise",start:t,end:t,value:e};e._debugInfo=[{awaited:o}],e.status!=="fulfilled"&&e.status!=="rejected"&&(t=function(){o.end=performance.now()},e.then(t,t))}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,J0(t),t;default:if(typeof e.status=="string")e.then(qo,qo);else{if(t=qe,t!==null&&100<t.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");t=e,t.status="pending",t.then(function(c){if(e.status==="pending"){var d=e;d.status="fulfilled",d.value=c}},function(c){if(e.status==="pending"){var d=e;d.status="rejected",d.reason=c}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,J0(t),t}throw Qc=e,Vd=!0,Qf}}function _i(t){try{return $3(t)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(Qc=e,Vd=!0,Qf):e}}function Eh(){if(Qc===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=Qc;return Qc=null,Vd=!1,t}function J0(t){if(t===Qf||t===d2)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ba(t){var e=$t;return t!=null&&($t=e===null?t:e.concat(t)),e}function fr(){var t=$t;if(t!=null){for(var e=t.length-1;0<=e;e--)if(t[e].name!=null){var l=t[e].debugTask;if(l!=null)return l}}return null}function Fi(t,e,l){for(var u=Object.keys(t.props),o=0;o<u.length;o++){var c=u[o];if(c!=="children"&&c!=="key"){e===null&&(e=of(t,l.mode,0),e._debugInfo=$t,e.return=l),Ut(e,function(d){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d)},c);break}}}function zs(t){var e=Yd;return Yd+=1,Lf===null&&(Lf=Sh()),rr(Lf,t,e)}function wi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function bh(t,e){throw e.$$typeof===w1?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
81
+ - Multiple copies of the "react" package is used.
82
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
83
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(t=Object.prototype.toString.call(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead."))}function Xo(t,e){var l=fr();l!==null?l.run(bh.bind(null,t,e)):bh(t,e)}function hr(t,e){var l=G(t)||"Component";ly[l]||(ly[l]=!0,e=e.displayName||e.name||"Component",t.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
84
+ root.render(%s)`,e,e,e):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
85
+ <%s>{%s}</%s>`,e,e,l,e,l))}function Ko(t,e){var l=fr();l!==null?l.run(hr.bind(null,t,e)):hr(t,e)}function Ch(t,e){var l=G(t)||"Component";iy[l]||(iy[l]=!0,e=String(e),t.tag===3?console.error(`Symbols are not valid as a React child.
86
+ root.render(%s)`,e):console.error(`Symbols are not valid as a React child.
87
+ <%s>%s</%s>`,l,e,l))}function Bl(t,e){var l=fr();l!==null?l.run(Ch.bind(null,t,e)):Ch(t,e)}function Qo(t){function e($,tt){if(t){var it=$.deletions;it===null?($.deletions=[tt],$.flags|=16):it.push(tt)}}function l($,tt){if(!t)return null;for(;tt!==null;)e($,tt),tt=tt.sibling;return null}function u($){for(var tt=new Map;$!==null;)$.key!==null?tt.set($.key,$):tt.set($.index,$),$=$.sibling;return tt}function o($,tt){return $=Mi($,tt),$.index=0,$.sibling=null,$}function c($,tt,it){return $.index=it,t?(it=$.alternate,it!==null?(it=it.index,it<tt?($.flags|=67108866,tt):it):($.flags|=67108866,tt)):($.flags|=1048576,tt)}function d($){return t&&$.alternate===null&&($.flags|=67108866),$}function g($,tt,it,St){return tt===null||tt.tag!==6?(tt=cf(it,$.mode,St),tt.return=$,tt._debugOwner=$,tt._debugTask=$._debugTask,tt._debugInfo=$t,tt):(tt=o(tt,it),tt.return=$,tt._debugInfo=$t,tt)}function L($,tt,it,St){var Ot=it.type;return Ot===Fs?(tt=mt($,tt,it.props.children,St,it.key),Fi(it,tt,$),tt):tt!==null&&(tt.elementType===Ot||hd(tt,it)||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===bn&&_i(Ot)===tt.type)?(tt=o(tt,it.props),wi(tt,it),tt.return=$,tt._debugOwner=it._owner,tt._debugInfo=$t,tt):(tt=of(it,$.mode,St),wi(tt,it),tt.return=$,tt._debugInfo=$t,tt)}function nt($,tt,it,St){return tt===null||tt.tag!==4||tt.stateNode.containerInfo!==it.containerInfo||tt.stateNode.implementation!==it.implementation?(tt=Ec(it,$.mode,St),tt.return=$,tt._debugInfo=$t,tt):(tt=o(tt,it.children||[]),tt.return=$,tt._debugInfo=$t,tt)}function mt($,tt,it,St,Ot){return tt===null||tt.tag!==7?(tt=iu(it,$.mode,St,Ot),tt.return=$,tt._debugOwner=$,tt._debugTask=$._debugTask,tt._debugInfo=$t,tt):(tt=o(tt,it),tt.return=$,tt._debugInfo=$t,tt)}function vt($,tt,it){if(typeof tt=="string"&&tt!==""||typeof tt=="number"||typeof tt=="bigint")return tt=cf(""+tt,$.mode,it),tt.return=$,tt._debugOwner=$,tt._debugTask=$._debugTask,tt._debugInfo=$t,tt;if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case Oi:return it=of(tt,$.mode,it),wi(it,tt),it.return=$,$=Ba(tt._debugInfo),it._debugInfo=$t,$t=$,it;case Ui:return tt=Ec(tt,$.mode,it),tt.return=$,tt._debugInfo=$t,tt;case bn:var St=Ba(tt._debugInfo);return tt=_i(tt),$=vt($,tt,it),$t=St,$}if(fa(tt)||V(tt))return it=iu(tt,$.mode,it,null),it.return=$,it._debugOwner=$,it._debugTask=$._debugTask,$=Ba(tt._debugInfo),it._debugInfo=$t,$t=$,it;if(typeof tt.then=="function")return St=Ba(tt._debugInfo),$=vt($,zs(tt),it),$t=St,$;if(tt.$$typeof===la)return vt($,Ts($,tt),it);Xo($,tt)}return typeof tt=="function"&&Ko($,tt),typeof tt=="symbol"&&Bl($,tt),null}function _t($,tt,it,St){var Ot=tt!==null?tt.key:null;if(typeof it=="string"&&it!==""||typeof it=="number"||typeof it=="bigint")return Ot!==null?null:g($,tt,""+it,St);if(typeof it=="object"&&it!==null){switch(it.$$typeof){case Oi:return it.key===Ot?(Ot=Ba(it._debugInfo),$=L($,tt,it,St),$t=Ot,$):null;case Ui:return it.key===Ot?nt($,tt,it,St):null;case bn:return Ot=Ba(it._debugInfo),it=_i(it),$=_t($,tt,it,St),$t=Ot,$}if(fa(it)||V(it))return Ot!==null?null:(Ot=Ba(it._debugInfo),$=mt($,tt,it,St,null),$t=Ot,$);if(typeof it.then=="function")return Ot=Ba(it._debugInfo),$=_t($,tt,zs(it),St),$t=Ot,$;if(it.$$typeof===la)return _t($,tt,Ts($,it),St);Xo($,it)}return typeof it=="function"&&Ko($,it),typeof it=="symbol"&&Bl($,it),null}function xt($,tt,it,St,Ot){if(typeof St=="string"&&St!==""||typeof St=="number"||typeof St=="bigint")return $=$.get(it)||null,g(tt,$,""+St,Ot);if(typeof St=="object"&&St!==null){switch(St.$$typeof){case Oi:return it=$.get(St.key===null?it:St.key)||null,$=Ba(St._debugInfo),tt=L(tt,it,St,Ot),$t=$,tt;case Ui:return $=$.get(St.key===null?it:St.key)||null,nt(tt,$,St,Ot);case bn:var _e=Ba(St._debugInfo);return St=_i(St),tt=xt($,tt,it,St,Ot),$t=_e,tt}if(fa(St)||V(St))return it=$.get(it)||null,$=Ba(St._debugInfo),tt=mt(tt,it,St,Ot,null),$t=$,tt;if(typeof St.then=="function")return _e=Ba(St._debugInfo),tt=xt($,tt,it,zs(St),Ot),$t=_e,tt;if(St.$$typeof===la)return xt($,tt,it,Ts(tt,St),Ot);Xo(tt,St)}return typeof St=="function"&&Ko(tt,St),typeof St=="symbol"&&Bl(tt,St),null}function Ft($,tt,it,St){if(typeof it!="object"||it===null)return St;switch(it.$$typeof){case Oi:case Ui:H($,tt,it);var Ot=it.key;if(typeof Ot!="string")break;if(St===null){St=new Set,St.add(Ot);break}if(!St.has(Ot)){St.add(Ot);break}Ut(tt,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Ot)});break;case bn:it=_i(it),Ft($,tt,it,St)}return St}function xe($,tt,it,St){for(var Ot=null,_e=null,Zt=null,Pt=tt,kt=tt=0,Qe=null;Pt!==null&&kt<it.length;kt++){Pt.index>kt?(Qe=Pt,Pt=null):Qe=Pt.sibling;var Ca=_t($,Pt,it[kt],St);if(Ca===null){Pt===null&&(Pt=Qe);break}Ot=Ft($,Ca,it[kt],Ot),t&&Pt&&Ca.alternate===null&&e($,Pt),tt=c(Ca,tt,kt),Zt===null?_e=Ca:Zt.sibling=Ca,Zt=Ca,Pt=Qe}if(kt===it.length)return l($,Pt),re&&ri($,kt),_e;if(Pt===null){for(;kt<it.length;kt++)Pt=vt($,it[kt],St),Pt!==null&&(Ot=Ft($,Pt,it[kt],Ot),tt=c(Pt,tt,kt),Zt===null?_e=Pt:Zt.sibling=Pt,Zt=Pt);return re&&ri($,kt),_e}for(Pt=u(Pt);kt<it.length;kt++)Qe=xt(Pt,$,kt,it[kt],St),Qe!==null&&(Ot=Ft($,Qe,it[kt],Ot),t&&Qe.alternate!==null&&Pt.delete(Qe.key===null?kt:Qe.key),tt=c(Qe,tt,kt),Zt===null?_e=Qe:Zt.sibling=Qe,Zt=Qe);return t&&Pt.forEach(function(ds){return e($,ds)}),re&&ri($,kt),_e}function ih($,tt,it,St){if(it==null)throw Error("An iterable object provided no iterator.");for(var Ot=null,_e=null,Zt=tt,Pt=tt=0,kt=null,Qe=null,Ca=it.next();Zt!==null&&!Ca.done;Pt++,Ca=it.next()){Zt.index>Pt?(kt=Zt,Zt=null):kt=Zt.sibling;var ds=_t($,Zt,Ca.value,St);if(ds===null){Zt===null&&(Zt=kt);break}Qe=Ft($,ds,Ca.value,Qe),t&&Zt&&ds.alternate===null&&e($,Zt),tt=c(ds,tt,Pt),_e===null?Ot=ds:_e.sibling=ds,_e=ds,Zt=kt}if(Ca.done)return l($,Zt),re&&ri($,Pt),Ot;if(Zt===null){for(;!Ca.done;Pt++,Ca=it.next())Zt=vt($,Ca.value,St),Zt!==null&&(Qe=Ft($,Zt,Ca.value,Qe),tt=c(Zt,tt,Pt),_e===null?Ot=Zt:_e.sibling=Zt,_e=Zt);return re&&ri($,Pt),Ot}for(Zt=u(Zt);!Ca.done;Pt++,Ca=it.next())kt=xt(Zt,$,Pt,Ca.value,St),kt!==null&&(Qe=Ft($,kt,Ca.value,Qe),t&&kt.alternate!==null&&Zt.delete(kt.key===null?Pt:kt.key),tt=c(kt,tt,Pt),_e===null?Ot=kt:_e.sibling=kt,_e=kt);return t&&Zt.forEach(function(s4){return e($,s4)}),re&&ri($,Pt),Ot}function Li($,tt,it,St){if(typeof it=="object"&&it!==null&&it.type===Fs&&it.key===null&&(Fi(it,null,$),it=it.props.children),typeof it=="object"&&it!==null){switch(it.$$typeof){case Oi:var Ot=Ba(it._debugInfo);t:{for(var _e=it.key;tt!==null;){if(tt.key===_e){if(_e=it.type,_e===Fs){if(tt.tag===7){l($,tt.sibling),St=o(tt,it.props.children),St.return=$,St._debugOwner=it._owner,St._debugInfo=$t,Fi(it,St,$),$=St;break t}}else if(tt.elementType===_e||hd(tt,it)||typeof _e=="object"&&_e!==null&&_e.$$typeof===bn&&_i(_e)===tt.type){l($,tt.sibling),St=o(tt,it.props),wi(St,it),St.return=$,St._debugOwner=it._owner,St._debugInfo=$t,$=St;break t}l($,tt);break}else e($,tt);tt=tt.sibling}it.type===Fs?(St=iu(it.props.children,$.mode,St,it.key),St.return=$,St._debugOwner=$,St._debugTask=$._debugTask,St._debugInfo=$t,Fi(it,St,$),$=St):(St=of(it,$.mode,St),wi(St,it),St.return=$,St._debugInfo=$t,$=St)}return $=d($),$t=Ot,$;case Ui:t:{for(Ot=it,it=Ot.key;tt!==null;){if(tt.key===it)if(tt.tag===4&&tt.stateNode.containerInfo===Ot.containerInfo&&tt.stateNode.implementation===Ot.implementation){l($,tt.sibling),St=o(tt,Ot.children||[]),St.return=$,$=St;break t}else{l($,tt);break}else e($,tt);tt=tt.sibling}St=Ec(Ot,$.mode,St),St.return=$,$=St}return d($);case bn:return Ot=Ba(it._debugInfo),it=_i(it),$=Li($,tt,it,St),$t=Ot,$}if(fa(it))return Ot=Ba(it._debugInfo),$=xe($,tt,it,St),$t=Ot,$;if(V(it)){if(Ot=Ba(it._debugInfo),_e=V(it),typeof _e!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Zt=_e.call(it);return Zt===it?($.tag!==0||Object.prototype.toString.call($.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Zt)!=="[object Generator]")&&(ay||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),ay=!0):it.entries!==_e||Um||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Um=!0),$=ih($,tt,Zt,St),$t=Ot,$}if(typeof it.then=="function")return Ot=Ba(it._debugInfo),$=Li($,tt,zs(it),St),$t=Ot,$;if(it.$$typeof===la)return Li($,tt,Ts($,it),St);Xo($,it)}return typeof it=="string"&&it!==""||typeof it=="number"||typeof it=="bigint"?(Ot=""+it,tt!==null&&tt.tag===6?(l($,tt.sibling),St=o(tt,Ot),St.return=$,$=St):(l($,tt),St=cf(Ot,$.mode,St),St.return=$,St._debugOwner=$,St._debugTask=$._debugTask,St._debugInfo=$t,$=St),d($)):(typeof it=="function"&&Ko($,it),typeof it=="symbol"&&Bl($,it),l($,tt))}return function($,tt,it,St){var Ot=$t;$t=null;try{Yd=0;var _e=Li($,tt,it,St);return Lf=null,_e}catch(Qe){if(Qe===Qf||Qe===d2)throw Qe;var Zt=C(29,Qe,null,$.mode);Zt.lanes=St,Zt.return=$;var Pt=Zt._debugInfo=$t;if(Zt._debugOwner=$._debugOwner,Zt._debugTask=$._debugTask,Pt!=null){for(var kt=Pt.length-1;0<=kt;kt--)if(typeof Pt[kt].stack=="string"){Zt._debugOwner=Pt[kt],Zt._debugTask=Pt[kt].debugTask;break}}return Zt}finally{$t=Ot}}}function Th(t,e){var l=fa(t);return t=!l&&typeof V(t)=="function",l||t?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,e,l),!1):!0}function Ds(){for(var t=Zf,e=Hm=Zf=0;e<t;){var l=ni[e];ni[e++]=null;var u=ni[e];ni[e++]=null;var o=ni[e];ni[e++]=null;var c=ni[e];if(ni[e++]=null,u!==null&&o!==null){var d=u.pending;d===null?o.next=o:(o.next=d.next,d.next=o),u.pending=o}c!==0&&Aa(l,o,c)}}function Lo(t,e,l,u){ni[Zf++]=t,ni[Zf++]=e,ni[Zf++]=l,ni[Zf++]=u,Hm|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function dr(t,e,l,u){return Lo(t,e,l,u),Zo(t)}function Fa(t,e){return Lo(t,null,null,e),Zo(t)}function Aa(t,e,l){t.lanes|=l;var u=t.alternate;u!==null&&(u.lanes|=l);for(var o=!1,c=t.return;c!==null;)c.childLanes|=l,u=c.alternate,u!==null&&(u.childLanes|=l),c.tag===22&&(t=c.stateNode,t===null||t._visibility&jd||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-Ea(l),t=c.hiddenUpdates,u=t[o],u===null?t[o]=[e]:u.push(e),e.lane=l|536870912),c):null}function Zo(t){if(kd>l4)throw Pc=kd=0,$d=ep=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Pc>i4&&(Pc=0,$d=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),t.alternate===null&&(t.flags&4098)!==0&&nf(t);for(var e=t,l=e.return;l!==null;)e.alternate===null&&(e.flags&4098)!==0&&nf(t),e=l,l=e.return;return e.tag===3?e.stateNode:null}function mr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pr(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 Ei(t){return{lane:t,tag:sy,payload:null,callback:null,next:null}}function Qn(t,e,l){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,Gm===u&&!ry){var o=G(t);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
88
+
89
+ Please update the following component: %s`,o),ry=!0}return(fe&en)!==tn?(o=u.pending,o===null?e.next=e:(e.next=o.next,o.next=e),u.pending=e,e=Zo(t),Aa(t,null,l),e):(Lo(t,u,e,l),Zo(t))}function Ms(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var u=e.lanes;u&=t.pendingLanes,l|=u,e.lanes=l,gt(t,l)}}function Ou(t,e){var l=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var o=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var d={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?o=c=d:c=c.next=d,l=l.next}while(l!==null);c===null?o=c=e:c=c.next=e}else o=c=e;l={baseState:u.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:u.shared,callbacks:u.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}function Os(){if(Bm){var t=Kf;if(t!==null)throw t}}function Jo(t,e,l,u){Bm=!1;var o=t.updateQueue;yo=!1,Gm=o.shared;var c=o.firstBaseUpdate,d=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var L=g,nt=L.next;L.next=null,d===null?c=nt:d.next=nt,d=L;var mt=t.alternate;mt!==null&&(mt=mt.updateQueue,g=mt.lastBaseUpdate,g!==d&&(g===null?mt.firstBaseUpdate=nt:g.next=nt,mt.lastBaseUpdate=L))}if(c!==null){var vt=o.baseState;d=0,mt=nt=L=null,g=c;do{var _t=g.lane&-536870913,xt=_t!==g.lane;if(xt?(te&_t)===_t:(u&_t)===_t){_t!==0&&_t===jc&&(Bm=!0),mt!==null&&(mt=mt.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{_t=t;var Ft=g,xe=e,ih=l;switch(Ft.tag){case oy:if(Ft=Ft.payload,typeof Ft=="function"){Yf=!0;var Li=Ft.call(ih,vt,xe);if(_t.mode&8){zt(!0);try{Ft.call(ih,vt,xe)}finally{zt(!1)}}Yf=!1,vt=Li;break t}vt=Ft;break t;case xm:_t.flags=_t.flags&-65537|128;case sy:if(Li=Ft.payload,typeof Li=="function"){if(Yf=!0,Ft=Li.call(ih,vt,xe),_t.mode&8){zt(!0);try{Li.call(ih,vt,xe)}finally{zt(!1)}}Yf=!1}else Ft=Li;if(Ft==null)break t;vt=Te({},vt,Ft);break t;case cy:yo=!0}}_t=g.callback,_t!==null&&(t.flags|=64,xt&&(t.flags|=8192),xt=o.callbacks,xt===null?o.callbacks=[_t]:xt.push(_t))}else xt={lane:_t,tag:g.tag,payload:g.payload,callback:g.callback,next:null},mt===null?(nt=mt=xt,L=vt):mt=mt.next=xt,d|=_t;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;xt=g,g=xt.next,xt.next=null,o.lastBaseUpdate=xt,o.shared.pending=null}}while(!0);mt===null&&(L=vt),o.baseState=L,o.firstBaseUpdate=nt,o.lastBaseUpdate=mt,c===null&&(o.shared.lanes=0),So|=d,t.lanes=d,t.memoizedState=vt}Gm=null}function Fo(t,e){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(e)}function Rh(t,e){var l=t.shared.hiddenCallbacks;if(l!==null)for(t.shared.hiddenCallbacks=null,t=0;t<l.length;t++)Fo(l[t],e)}function Ah(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Fo(l[t],e)}function Nh(t,e){var l=_u;k(p2,l,t),k(Jf,e,t),_u=l|e.baseLanes}function yr(t){k(p2,_u,t),k(Jf,Jf.current,t)}function wo(t){_u=p2.current,P(Jf,t),P(p2,t)}function ql(t){var e=t.alternate;k(ba,ba.current&Ff,t),k(Nl,t,t),li===null&&(e===null||Jf.current!==null||e.memoizedState!==null)&&(li=t)}function vr(t){k(ba,ba.current,t),k(Nl,t,t),li===null&&(li=t)}function gr(t){t.tag===22?(k(ba,ba.current,t),k(Nl,t,t),li===null&&(li=t)):pl(t)}function pl(t){k(ba,ba.current,t),k(Nl,Nl.current,t)}function un(t){P(Nl,t),li===t&&(li=null),P(ba,t)}function Wo(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Dc(l)||Tf(l)))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}function wt(){var t=ht;ui===null?ui=[t]:ui.push(t)}function bt(){var t=ht;if(ui!==null&&(rs++,ui[rs]!==t)){var e=G(Lt);if(!fy.has(e)&&(fy.add(e),ui!==null)){for(var l="",u=0;u<=rs;u++){var o=ui[u],c=u===rs?t:o;for(o=u+1+". "+o;30>o.length;)o+=" ";o+=c+`
90
+ `,l+=o}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
91
+
92
+ Previous render Next render
93
+ ------------------------------------------------------
94
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95
+ `,e,l)}}}function vn(t){t==null||fa(t)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ht,typeof t)}function Us(){var t=G(Lt);dy.has(t)||(dy.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}function Ie(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
96
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
97
+ 2. You might be breaking the Rules of Hooks
98
+ 3. You might have more than one copy of React in the same app
99
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Sr(t,e){if(Qd)return!1;if(e===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ht),!1;t.length!==e.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
100
+
101
+ Previous: %s
102
+ Incoming: %s`,ht,"["+e.join(", ")+"]","["+t.join(", ")+"]");for(var l=0;l<e.length&&l<t.length;l++)if(!qn(t[l],e[l]))return!1;return!0}function On(t,e,l,u,o,c){os=c,Lt=e,ui=t!==null?t._debugHookTypes:null,rs=-1,Qd=t!==null&&t.type!==e.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(c=G(Lt),qm.has(c)||(qm.add(c),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",c===null?"An unknown Component":"<"+c+">"))),e.memoizedState=null,e.updateQueue=null,e.lanes=0,rt.H=t!==null&&t.memoizedState!==null?Ym:ui!==null?my:Vm,Zc=c=(e.mode&8)!==Kt;var d=Dm(l,u,o);if(Zc=!1,Wf&&(d=_r(e,l,u,o)),c){zt(!0);try{d=_r(e,l,u,o)}finally{zt(!1)}}return Po(t,e),d}function Po(t,e){e._debugHookTypes=ui,e.dependencies===null?cs!==null&&(e.dependencies={lanes:0,firstContext:null,_debugThenableState:cs}):e.dependencies._debugThenableState=cs,rt.H=Ld;var l=Be!==null&&Be.next!==null;if(os=0,ui=ht=Da=Be=Lt=null,rs=-1,t!==null&&(t.flags&65011712)!==(e.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),v2=!1,Kd=0,cs=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||Ma||(t=t.dependencies,t!==null&&zu(t)&&(Ma=!0)),Vd?(Vd=!1,t=!0):t=!1,t&&(e=G(e)||"Unknown",hy.has(e)||qm.has(e)||(hy.add(e),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function _r(t,e,l,u){Lt=t;var o=0;do{if(Wf&&(cs=null),Kd=0,Wf=!1,o>=e4)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o+=1,Qd=!1,Da=Be=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}rs=-1,rt.H=py,c=Dm(e,l,u)}while(Wf);return c}function zh(){var t=rt.H,e=t.useState()[0];return e=typeof e.then=="function"?bi(e):e,t=t.useState()[0],(Be!==null?Be.memoizedState:null)!==t&&(Lt.flags|=1024),e}function Er(){var t=g2!==0;return g2=0,t}function br(t,e,l){e.updateQueue=t.updateQueue,e.flags=(e.mode&16)!==Kt?e.flags&-402655237:e.flags&-2053,t.lanes&=~l}function Io(t){if(v2){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}v2=!1}os=0,ui=Da=Be=Lt=null,rs=-1,ht=null,Wf=!1,Kd=g2=0,cs=null}function qa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Da===null?Lt.memoizedState=Da=t:Da=Da.next=t,Da}function Ce(){if(Be===null){var t=Lt.alternate;t=t!==null?t.memoizedState:null}else t=Be.next;var e=Da===null?Lt.memoizedState:Da.next;if(e!==null)Da=e,Be=t;else{if(t===null)throw Lt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Be=t,t={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Da===null?Lt.memoizedState=Da=t:Da=Da.next=t}return Da}function Uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bi(t){var e=Kd;return Kd+=1,cs===null&&(cs=Sh()),t=rr(cs,t,e),e=Lt,(Da===null?e.memoizedState:Da.next)===null&&(e=e.alternate,rt.H=e!==null&&e.memoizedState!==null?Ym:Vm),t}function Ee(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return bi(t);if(t.$$typeof===la)return De(t)}throw Error("An unsupported type was passed to use(): "+String(t))}function Hu(t){var e=null,l=Lt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var u=Lt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(e={data:u.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Uu(),Lt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0||Qd)for(l=e.data[e.index]=Array(t),u=0;u<t;u++)l[u]=W1;else l.length!==t&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,t);return e.index++,l}function yl(t,e){return typeof e=="function"?e(t):e}function Cr(t,e,l){var u=qa();if(l!==void 0){var o=l(e);if(Zc){zt(!0);try{l(e)}finally{zt(!1)}}}else o=e;return u.memoizedState=u.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},u.queue=t,t=t.dispatch=t1.bind(null,Lt,t),[u.memoizedState,t]}function Vl(t){var e=Ce();return Yl(e,Be,t)}function Yl(t,e,l){var u=t.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=l;var o=t.baseQueue,c=u.pending;if(c!==null){if(o!==null){var d=o.next;o.next=c.next,c.next=d}e.baseQueue!==o&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),e.baseQueue=o=c,u.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var g=d=null,L=null,nt=e,mt=!1;do{var vt=nt.lane&-536870913;if(vt!==nt.lane?(te&vt)===vt:(os&vt)===vt){var _t=nt.revertLane;if(_t===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:nt.action,hasEagerState:nt.hasEagerState,eagerState:nt.eagerState,next:null}),vt===jc&&(mt=!0);else if((os&_t)===_t){nt=nt.next,_t===jc&&(mt=!0);continue}else vt={lane:0,revertLane:nt.revertLane,gesture:null,action:nt.action,hasEagerState:nt.hasEagerState,eagerState:nt.eagerState,next:null},L===null?(g=L=vt,d=c):L=L.next=vt,Lt.lanes|=_t,So|=_t;vt=nt.action,Zc&&l(c,vt),c=nt.hasEagerState?nt.eagerState:l(c,vt)}else _t={lane:vt,revertLane:nt.revertLane,gesture:nt.gesture,action:nt.action,hasEagerState:nt.hasEagerState,eagerState:nt.eagerState,next:null},L===null?(g=L=_t,d=c):L=L.next=_t,Lt.lanes|=vt,So|=vt;nt=nt.next}while(nt!==null&&nt!==e);if(L===null?d=c:L.next=g,!qn(c,t.memoizedState)&&(Ma=!0,mt&&(l=Kf,l!==null)))throw l;t.memoizedState=c,t.baseState=d,t.baseQueue=L,u.lastRenderedState=c}return o===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Hs(t){var e=Ce(),l=e.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=t;var u=l.dispatch,o=l.pending,c=e.memoizedState;if(o!==null){l.pending=null;var d=o=o.next;do c=t(c,d.action),d=d.next;while(d!==o);qn(c,e.memoizedState)||(Ma=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),l.lastRenderedState=c}return[c,u]}function Tr(t,e,l){var u=Lt,o=qa();if(re){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var c=l();wf||c===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),wf=!0)}else{if(c=e(),wf||(l=e(),qn(c,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),wf=!0)),qe===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(te&127)!==0||vl(u,e,c)}return o.memoizedState=c,l={value:c,getSnapshot:e},o.queue=l,gn(Rr.bind(null,u,l,t),[t]),u.flags|=2048,Jn(ii|jn,{destroy:void 0},Dh.bind(null,u,l,c,e),null),c}function Wi(t,e,l){var u=Lt,o=Ce(),c=re;if(c){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=e(),!wf){var d=e();qn(l,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),wf=!0)}(d=!qn((Be||o).memoizedState,l))&&(o.memoizedState=l,Ma=!0),o=o.queue;var g=Rr.bind(null,u,o,t);if(Wa(2048,jn,g,[t]),o.getSnapshot!==e||d||Da!==null&&Da.memoizedState.tag&ii){if(u.flags|=2048,Jn(ii|jn,{destroy:void 0},Dh.bind(null,u,o,l,e),null),qe===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c||(os&127)!==0||vl(u,e,l)}return l}function vl(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=Lt.updateQueue,e===null?(e=Uu(),Lt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Dh(t,e,l,u){e.value=l,e.getSnapshot=u,Mh(e)&&Ar(t)}function Rr(t,e,l){return l(function(){Mh(e)&&(cl(2,"updateSyncExternalStore()",t),Ar(t))})}function Mh(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!qn(t,l)}catch{return!0}}function Ar(t){var e=Fa(t,2);e!==null&&Ve(e,t,2)}function ko(t){var e=qa();if(typeof t=="function"){var l=t;if(t=l(),Zc){zt(!0);try{l()}finally{zt(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:t},e}function xs(t){t=ko(t);var e=t.queue,l=qh.bind(null,Lt,e);return e.dispatch=l,[t.memoizedState,l]}function Nr(t){var e=qa();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=qs.bind(null,Lt,!0,l),l.dispatch=e,[t,e]}function Oh(t,e){var l=Ce();return F0(l,Be,t,e)}function F0(t,e,l,u){return t.baseState=l,Yl(t,Be,typeof u=="function"?u:yl)}function Uh(t,e){var l=Ce();return Be!==null?F0(l,Be,t,e):(l.baseState=t,[t,l.queue.dispatch])}function w0(t,e,l,u,o){if(Vs(t))throw Error("Cannot update form state while rendering.");if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};rt.T!==null?l(!0):c.isTransition=!1,u(c),l=e.pending,l===null?(c.next=e.pending=c,Ln(e,c)):(c.next=l.next,e.pending=l.next=c)}}function Ln(t,e){var l=e.action,u=e.payload,o=t.state;if(e.isTransition){var c=rt.T,d={};d._updatedFibers=new Set,rt.T=d;try{var g=l(o,u),L=rt.S;L!==null&&L(d,g),zr(t,e,g)}catch(nt){Dr(t,e,nt)}finally{c!==null&&d.types!==null&&(c.types!==null&&c.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),c.types=d.types),rt.T=c,c===null&&d._updatedFibers&&(t=d._updatedFibers.size,d._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{d=l(o,u),zr(t,e,d)}catch(nt){Dr(t,e,nt)}}function zr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(rt.asyncTransitions++,l.then(nc,nc),l.then(function(u){Hh(t,e,u)},function(u){return Dr(t,e,u)}),e.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Hh(t,e,l)}function Hh(t,e,l){e.status="fulfilled",e.value=l,W0(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Ln(t,l)))}function Dr(t,e,l){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do e.status="rejected",e.reason=l,W0(e),e=e.next;while(e!==u)}t.action=null}function W0(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function $o(t,e){return e}function aa(t,e){if(re){var l=qe.formState;if(l!==null){t:{var u=Lt;if(re){if($e){var o=Tn($e,ei);if(o){$e=cu(o),u=Rl(o);break t}}Ol(u)}u=!1}u&&(e=l[0])}}l=qa(),l.memoizedState=l.baseState=e,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e},l.queue=u,l=qh.bind(null,Lt,u),u.dispatch=l,u=ko(!1);var c=qs.bind(null,Lt,!1,u.queue);return u=qa(),o={state:e,dispatch:null,action:t,pending:null},u.queue=o,l=w0.bind(null,Lt,o,c,l),o.dispatch=l,u.memoizedState=t,[e,l,!1]}function tc(t){var e=Ce();return wa(e,Be,t)}function wa(t,e,l){if(e=Yl(t,e,$o)[0],t=Vl(yl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var u=bi(e)}catch(d){throw d===Qf?d2:d}else u=e;e=Ce();var o=e.queue,c=o.dispatch;return l!==e.memoizedState&&(Lt.flags|=2048,Jn(ii|jn,{destroy:void 0},P0.bind(null,o,l),null)),[u,c,t]}function P0(t,e){t.action=e}function Zn(t){var e=Ce(),l=Be;if(l!==null)return wa(e,l,t);Ce(),e=e.memoizedState,l=Ce();var u=l.queue.dispatch;return l.memoizedState=t,[e,u,!1]}function Jn(t,e,l,u){return t={tag:t,create:l,deps:u,inst:e,next:null},e=Lt.updateQueue,e===null&&(e=Uu(),Lt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(u=l.next,l.next=t,t.next=u,e.lastEffect=t),t}function gl(t){var e=qa();return t={current:t},e.memoizedState=t}function Ci(t,e,l,u){var o=qa();Lt.flags|=t,o.memoizedState=Jn(ii|e,{destroy:void 0},l,u===void 0?null:u)}function Wa(t,e,l,u){var o=Ce();u=u===void 0?null:u;var c=o.memoizedState.inst;Be!==null&&u!==null&&Sr(u,Be.memoizedState.deps)?o.memoizedState=Jn(e,c,l,u):(Lt.flags|=t,o.memoizedState=Jn(ii|e,c,l,u))}function gn(t,e){(Lt.mode&16)!==Kt?Ci(276826112,jn,t,e):Ci(8390656,jn,t,e)}function I0(t){Lt.flags|=4;var e=Lt.updateQueue;if(e===null)e=Uu(),Lt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Pi(t){var e=qa(),l={impl:t};return e.memoizedState=l,function(){if((fe&en)!==tn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}function Ii(t){var e=Ce().memoizedState;return I0({ref:e,nextImpl:t}),function(){if((fe&en)!==tn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return e.impl.apply(void 0,arguments)}}function Ti(t,e){var l=4194308;return(Lt.mode&16)!==Kt&&(l|=134217728),Ci(l,zl,t,e)}function xh(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return e.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(e).join(", ")+"}"),t=t(),e.current=t,function(){e.current=null}}function Mr(t,e,l){typeof e!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",e!==null?typeof e:"null"),l=l!=null?l.concat([t]):null;var u=4194308;(Lt.mode&16)!==Kt&&(u|=134217728),Ci(u,zl,xh.bind(null,e,t),l)}function ki(t,e,l){typeof e!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",e!==null?typeof e:"null"),l=l!=null?l.concat([t]):null,Wa(4,zl,xh.bind(null,e,t),l)}function Or(t,e){return qa().memoizedState=[t,e===void 0?null:e],t}function xu(t,e){var l=Ce();e=e===void 0?null:e;var u=l.memoizedState;return e!==null&&Sr(e,u[1])?u[0]:(l.memoizedState=[t,e],t)}function Ur(t,e){var l=qa();e=e===void 0?null:e;var u=t();if(Zc){zt(!0);try{t()}finally{zt(!1)}}return l.memoizedState=[u,e],u}function Gs(t,e){var l=Ce();e=e===void 0?null:e;var u=l.memoizedState;if(e!==null&&Sr(e,u[1]))return u[0];if(u=t(),Zc){zt(!0);try{t()}finally{zt(!1)}}return l.memoizedState=[u,e],u}function ec(t,e){var l=qa();return ac(l,t,e)}function Hr(t,e){var l=Ce();return Sn(l,Be.memoizedState,t,e)}function Gh(t,e){var l=Ce();return Be===null?ac(l,t,e):Sn(l,Be.memoizedState,t,e)}function ac(t,e,l){return l===void 0||(os&1073741824)!==0&&(te&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=T1(),Lt.lanes|=t,So|=t,l)}function Sn(t,e,l,u){return qn(l,e)?l:Jf.current!==null?(t=ac(t,l,u),qn(t,e)||(Ma=!0),t):(os&42)===0||(os&1073741824)!==0&&(te&261930)===0?(Ma=!0,t.memoizedState=l):(t=T1(),Lt.lanes|=t,So|=t,e)}function nc(){rt.asyncTransitions--}function sn(t,e,l,u,o){var c=Cn();ia(c!==0&&8>c?c:8);var d=rt.T,g={};g._updatedFibers=new Set,rt.T=g,qs(t,!1,e,l);try{var L=o(),nt=rt.S;if(nt!==null&&nt(g,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){rt.asyncTransitions++,L.then(nc,nc);var mt=gh(L,u);Bs(t,e,mt,Hn(t))}else Bs(t,e,u,Hn(t))}catch(vt){Bs(t,e,{then:function(){},status:"rejected",reason:vt},Hn(t))}finally{ia(c),d!==null&&g.types!==null&&(d.types!==null&&d.types!==g.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=g.types),rt.T=d,d===null&&g._updatedFibers&&(t=g._updatedFibers.size,g._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Bh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:kn,baseState:kn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:kn},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function xr(){var t=ko(!1);return t=sn.bind(null,Lt,t.queue,!0,!1),qa().memoizedState=t,[!1,t]}function k0(){var t=Vl(yl)[0],e=Ce().memoizedState;return[typeof t=="boolean"?t:bi(t),e]}function Ri(){var t=Hs(yl)[0],e=Ce().memoizedState;return[typeof t=="boolean"?t:bi(t),e]}function $i(){return De($n)}function lc(){var t=qa(),e=qe.identifierPrefix;if(re){var l=es,u=ts;l=(u&~(1<<32-Ea(u)-1)).toString(32)+l,e="_"+e+"R_"+l,l=g2++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=t4++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e}function tu(){return qa().memoizedState=$0.bind(null,Lt)}function $0(t,e){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var u=Hn(l),o=Ei(u),c=Qn(l,o,u);c!==null&&(cl(u,"refresh()",t),Ve(c,l,u),Ms(c,l,u)),t=Rs(),e!=null&&c!==null&&console.error("The seed argument is not enabled outside experimental channels."),o.payload={cache:t};return}l=l.return}}function t1(t,e,l){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Hn(t);var o={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};Vs(t)?e1(e,o):(o=dr(t,e,o,u),o!==null&&(cl(u,"dispatch()",t),Ve(o,t,u),a1(o,e,u)))}function qh(t,e,l){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Hn(t),Bs(t,e,l,u)&&cl(u,"setState()",t)}function Bs(t,e,l,u){var o={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Vs(t))e1(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null)){var d=rt.H;rt.H=ji;try{var g=e.lastRenderedState,L=c(g,l);if(o.hasEagerState=!0,o.eagerState=L,qn(L,g))return Lo(t,e,o,0),qe===null&&Ds(),!1}catch{}finally{rt.H=d}}if(l=dr(t,e,o,u),l!==null)return Ve(l,t,u),a1(l,e,u),!0}return!1}function qs(t,e,l,u){if(rt.T===null&&jc===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:sr(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Vs(t)){if(e)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else e=dr(t,l,u,2),e!==null&&(cl(2,"setOptimistic()",t),Ve(e,t,2))}function Vs(t){var e=t.alternate;return t===Lt||e!==null&&e===Lt}function e1(t,e){Wf=v2=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function a1(t,e,l){if((l&4194048)!==0){var u=e.lanes;u&=t.pendingLanes,l|=u,e.lanes=l,gt(t,l)}}function Vh(t){if(t!==null&&typeof t!="function"){var e=String(t);Ay.has(e)||(Ay.add(e),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}function Gr(t,e,l,u){var o=t.memoizedState,c=l(u,o);if(t.mode&8){zt(!0);try{c=l(u,o)}finally{zt(!1)}}c===void 0&&(e=q(e)||"Component",by.has(e)||(by.add(e),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",e))),o=c==null?o:Te({},o,c),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}function Yh(t,e,l,u,o,c,d){var g=t.stateNode;if(typeof g.shouldComponentUpdate=="function"){if(l=g.shouldComponentUpdate(u,c,d),t.mode&8){zt(!0);try{l=g.shouldComponentUpdate(u,c,d)}finally{zt(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",q(e)||"Component"),l}return e.prototype&&e.prototype.isPureReactComponent?!jo(l,u)||!jo(o,c):!0}function Gu(t,e,l,u){var o=e.state;typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,u),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,u),e.state!==o&&(t=G(t)||"Component",vy.has(t)||(vy.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),jm.enqueueReplaceState(e,e.state,null))}function jl(t,e){var l=e;if("ref"in e){l={};for(var u in e)u!=="ref"&&(l[u]=e[u])}if(t=t.defaultProps){l===e&&(l=Te({},l));for(var o in t)l[o]===void 0&&(l[o]=t[o])}return l}function ic(t,e){try{Pf=e.source?G(e.source):null,Xm=null;var l=e.value;if(rt.actQueue!==null)rt.thrownErrors.push(l);else{var u=t.onUncaughtError;u(l,{componentStack:e.stack})}}catch(o){setTimeout(function(){throw o})}}function jh(t,e,l){try{Pf=l.source?G(l.source):null,Xm=G(e);var u=t.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Br(t,e,l){return l=Ei(l),l.tag=xm,l.payload={element:null},l.callback=function(){Ut(e.source,ic,t,e)},l}function qr(t){return t=Ei(t),t.tag=xm,t}function Vr(t,e,l,u){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var c=u.value;t.payload=function(){return o(c)},t.callback=function(){L1(l),Ut(u.source,jh,e,l,u)}}var d=l.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){L1(l),Ut(u.source,jh,e,l,u),typeof o!="function"&&(Eo===null?Eo=new Set([this]):Eo.add(this)),P3(this,u),typeof o=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",G(l)||"Unknown")})}function n1(t,e,l,u,o){if(l.flags|=32768,pu&&Ls(t,o),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(e=l.alternate,e!==null&&Ge(e,l,o,!0),re&&(vu=!0),l=Nl.current,l!==null){switch(l.tag){case 31:case 13:return li===null?ef():l.alternate===null&&ea===hs&&(ea=N2),l.flags&=-257,l.flags|=65536,l.lanes=o,u===m2?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([u]):e.add(u),cd(t,u,o)),!1;case 22:return l.flags|=65536,u===m2?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([u]):l.add(u)),cd(t,u,o)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return cd(t,u,o),ef(),!1}if(re)return vu=!0,e=Nl.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,u!==gm&&Cs(dn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),l))):(u!==gm&&Cs(dn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),l)),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,u=dn(u,l),o=Br(t.stateNode,u,o),Ou(t,o),ea!==vo&&(ea=Jc)),!1;var c=dn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),l);if(Wd===null?Wd=[c]:Wd.push(c),ea!==vo&&(ea=Jc),e===null)return!0;u=dn(u,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=o&-o,l.lanes|=t,t=Br(l.stateNode,u,t),Ou(l,t),!1;case 1:if(e=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Eo===null||!Eo.has(c))))return l.flags|=65536,o&=-o,l.lanes|=o,o=qr(o),Vr(o,t,l,u),Ou(l,o),!1}l=l.return}while(l!==null);return!1}function na(t,e,l,u){e.child=t===null?uy(e,null,l,u):Lc(e,t.child,l,u)}function Xh(t,e,l,u,o){l=l.render;var c=e.ref;if("ref"in u){var d={};for(var g in u)g!=="ref"&&(d[g]=u[g])}else d=u;return ol(e),u=On(t,e,l,d,c,o),g=Er(),t!==null&&!Ma?(br(t,e,o),Sl(t,e,o)):(re&&g&&Ss(e),e.flags|=1,na(t,e,u,o),e.child)}function Kh(t,e,l,u,o){if(t===null){var c=l.type;return typeof c=="function"&&!uf(c)&&c.defaultProps===void 0&&l.compare===null?(l=Ku(c),e.tag=15,e.type=l,Ai(e,c),ge(t,e,l,u,o)):(t=sf(l.type,null,u,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!ee(t,o)){var d=c.memoizedProps;if(l=l.compare,l=l!==null?l:jo,l(d,u)&&t.ref===e.ref)return Sl(t,e,o)}return e.flags|=1,t=Mi(c,u),t.ref=e.ref,t.return=e,e.child=t}function ge(t,e,l,u,o){if(t!==null){var c=t.memoizedProps;if(jo(c,u)&&t.ref===e.ref&&e.type===t.type)if(Ma=!1,e.pendingProps=u=c,ee(t,o))(t.flags&131072)!==0&&(Ma=!0);else return e.lanes=t.lanes,Sl(t,e,o)}return sc(t,e,l,u,o)}function Yr(t,e,l,u){var o=u.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:jd,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,t!==null){for(u=e.child=t.child,o=0;u!==null;)o=o|u.lanes|u.childLanes,u=u.sibling;u=o&~c}else u=0,e.child=null;return Qh(t,e,c,l,u)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Yo(e,c!==null?c.cachePool:null),c!==null?Nh(e,c):yr(e),gr(e);else return u=e.lanes=536870912,Qh(t,e,c!==null?c.baseLanes|l:l,l,u)}else c!==null?(Yo(e,c.cachePool),Nh(e,c),pl(e),e.memoizedState=null):(t!==null&&Yo(e,null),yr(e),pl(e));return na(t,e,o,l),e.child}function uc(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:jd,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Qh(t,e,l,u,o){var c=or();return c=c===null?null:{parent:fn?oa._currentValue:oa._currentValue2,pool:c},e.memoizedState={baseLanes:l,cachePool:c},t!==null&&Yo(e,null),yr(e),gr(e),t!==null&&Ge(t,e,u,!0),e.childLanes=o,null}function jr(t,e){var l=e.hidden;return l!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
103
+ - <Activity %s>
104
+ + <Activity %s>`,l===!0?"hidden":l===!1?"hidden={false}":"hidden={...}",l?'mode="hidden"':'mode="visible"'),e=rc({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function l1(t,e,l){return Lc(e,t.child,null,l),t=jr(e,e.pendingProps),t.flags|=2,un(e),e.memoizedState=null,t}function w2(t,e,l){var u=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(re){if(u.mode==="hidden")return t=jr(e,u),e.lanes=536870912,uc(null,t);if(vr(e),(t=$e)?(l=ie(t,ei),l!==null&&(u={dehydrated:l,treeContext:Ao(),retryLane:536870912,hydrationErrors:null},e.memoizedState=u,u=Qu(l),u.return=e,e.child=u,hn=e,$e=null)):l=null,l===null)throw bs(e,t),Ol(e);return e.lanes=536870912,null}return jr(e,u)}var c=t.memoizedState;if(c!==null){var d=c.dehydrated;if(vr(e),o)if(e.flags&256)e.flags&=-257,e=l1(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(pi(),(l&536870912)!==0&&tf(e),Ma||Ge(t,e,l,!1),o=(l&t.childLanes)!==0,Ma||o){if(u=qe,u!==null&&(d=Tt(u,l),d!==0&&d!==c.retryLane))throw c.retryLane=d,Fa(t,d),Ve(u,t,d),Km;ef(),e=l1(t,e,l)}else t=c.treeContext,ka&&($e=Nf(d),hn=e,re=!0,ro=null,vu=!1,Al=null,ei=!1,t!==null&&ch(e,t)),e=jr(e,u),e.flags|=4096;return e}return c=t.child,u={mode:u.mode,children:u.children},(l&536870912)!==0&&(l&t.lanes)!==0&&tf(e),t=Mi(c,u),t.ref=e.ref,e.child=t,t.return=e,t}function Xr(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(t===null||t.ref!==l)&&(e.flags|=4194816)}}function sc(t,e,l,u,o){if(l.prototype&&typeof l.prototype.render=="function"){var c=q(l)||"Unknown";Ny[c]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",c,c),Ny[c]=!0)}return e.mode&8&&Yi.recordLegacyContextWarning(e,null),t===null&&(Ai(e,e.type),l.contextTypes&&(c=q(l)||"Unknown",Dy[c]||(Dy[c]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",c)))),ol(e),l=On(t,e,l,u,void 0,o),u=Er(),t!==null&&!Ma?(br(t,e,o),Sl(t,e,o)):(re&&u&&Ss(e),e.flags|=1,na(t,e,l,o),e.child)}function Xl(t,e,l,u,o,c){return ol(e),rs=-1,Qd=t!==null&&t.type!==e.type,e.updateQueue=null,l=_r(e,u,l,o),Po(t,e),u=Er(),t!==null&&!Ma?(br(t,e,c),Sl(t,e,c)):(re&&u&&Ss(e),e.flags|=1,na(t,e,l,c),e.child)}function Lh(t,e,l,u,o){switch(b(e)){case!1:var c=e.stateNode,d=new e.type(e.memoizedProps,c.context).state;c.updater.enqueueSetState(c,d,null);break;case!0:e.flags|=128,e.flags|=65536,c=Error("Simulated error coming from DevTools");var g=o&-o;if(e.lanes|=g,d=qe,d===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");g=qr(g),Vr(g,d,e,dn(c,e)),Ou(e,g)}if(ol(e),e.stateNode===null){if(d=Xe,c=l.contextType,"contextType"in l&&c!==null&&(c===void 0||c.$$typeof!==la)&&!Ry.has(l)&&(Ry.add(l),g=c===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof c!="object"?" However, it is set to a "+typeof c+".":c.$$typeof===Zu?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(c).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",q(l)||"Component",g)),typeof c=="object"&&c!==null&&(d=De(c)),c=new l(u,d),e.mode&8){zt(!0);try{c=new l(u,d)}finally{zt(!1)}}if(d=e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=jm,e.stateNode=c,c._reactInternals=e,c._reactInternalInstance=yy,typeof l.getDerivedStateFromProps=="function"&&d===null&&(d=q(l)||"Component",gy.has(d)||(gy.add(d),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,c.state===null?"null":"undefined",d))),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"){var L=g=d=null;if(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0?d="componentWillMount":typeof c.UNSAFE_componentWillMount=="function"&&(d="UNSAFE_componentWillMount"),typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps.__suppressDeprecationWarning!==!0?g="componentWillReceiveProps":typeof c.UNSAFE_componentWillReceiveProps=="function"&&(g="UNSAFE_componentWillReceiveProps"),typeof c.componentWillUpdate=="function"&&c.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof c.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),d!==null||g!==null||L!==null){c=q(l)||"Component";var nt=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";_y.has(c)||(_y.add(c),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
105
+
106
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
107
+
108
+ The above lifecycles should be removed. Learn more about this warning here:
109
+ https://react.dev/link/unsafe-component-lifecycles`,c,nt,d!==null?`
110
+ `+d:"",g!==null?`
111
+ `+g:"",L!==null?`
112
+ `+L:""))}}c=e.stateNode,d=q(l)||"Component",c.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",d):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",d)),!c.getInitialState||c.getInitialState.isReactClassApproved||c.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),c.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),l.childContextTypes&&!Ty.has(l)&&(Ty.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",d)),l.contextTypes&&!Cy.has(l)&&(Cy.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",d)),typeof c.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",d),l.prototype&&l.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",q(l)||"A pure component"),typeof c.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof c.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",d),typeof c.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof c.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d),g=c.props!==u,c.props!==void 0&&g&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d),c.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof c.getSnapshotBeforeUpdate!="function"||typeof c.componentDidUpdate=="function"||Sy.has(l)||(Sy.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",q(l))),typeof c.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof c.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d),(g=c.state)&&(typeof g!="object"||fa(g))&&console.error("%s.state: must be set to an object or null",d),typeof c.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d),c=e.stateNode,c.props=u,c.state=e.memoizedState,c.refs={},mr(e),d=l.contextType,c.context=typeof d=="object"&&d!==null?De(d):Xe,c.state===u&&(d=q(l)||"Component",Ey.has(d)||(Ey.add(d),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",d))),e.mode&8&&Yi.recordLegacyContextWarning(e,c),Yi.recordUnsafeLifecycleWarnings(e,c),c.state=e.memoizedState,d=l.getDerivedStateFromProps,typeof d=="function"&&(Gr(e,l,d,u),c.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",G(e)||"Component"),jm.enqueueReplaceState(c,c.state,null)),Jo(e,u,c,o),Os(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),(e.mode&16)!==Kt&&(e.flags|=134217728),c=!0}else if(t===null){c=e.stateNode;var mt=e.memoizedProps;g=jl(l,mt),c.props=g;var vt=c.context;L=l.contextType,d=Xe,typeof L=="object"&&L!==null&&(d=De(L)),nt=l.getDerivedStateFromProps,L=typeof nt=="function"||typeof c.getSnapshotBeforeUpdate=="function",mt=e.pendingProps!==mt,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(mt||vt!==d)&&Gu(e,c,u,d),yo=!1;var _t=e.memoizedState;c.state=_t,Jo(e,u,c,o),Os(),vt=e.memoizedState,mt||_t!==vt||yo?(typeof nt=="function"&&(Gr(e,l,nt,u),vt=e.memoizedState),(g=yo||Yh(e,l,g,u,_t,vt,d))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308),(e.mode&16)!==Kt&&(e.flags|=134217728)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),(e.mode&16)!==Kt&&(e.flags|=134217728),e.memoizedProps=u,e.memoizedState=vt),c.props=u,c.state=vt,c.context=d,c=g):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),(e.mode&16)!==Kt&&(e.flags|=134217728),c=!1)}else{c=e.stateNode,pr(t,e),d=e.memoizedProps,L=jl(l,d),c.props=L,nt=e.pendingProps,_t=c.context,vt=l.contextType,g=Xe,typeof vt=="object"&&vt!==null&&(g=De(vt)),mt=l.getDerivedStateFromProps,(vt=typeof mt=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==nt||_t!==g)&&Gu(e,c,u,g),yo=!1,_t=e.memoizedState,c.state=_t,Jo(e,u,c,o),Os();var xt=e.memoizedState;d!==nt||_t!==xt||yo||t!==null&&t.dependencies!==null&&zu(t.dependencies)?(typeof mt=="function"&&(Gr(e,l,mt,u),xt=e.memoizedState),(L=yo||Yh(e,l,L,u,_t,xt,g)||t!==null&&t.dependencies!==null&&zu(t.dependencies))?(vt||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(u,xt,g),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(u,xt,g)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&_t===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&_t===t.memoizedState||(e.flags|=1024),e.memoizedProps=u,e.memoizedState=xt),c.props=u,c.state=xt,c.context=g,c=L):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&_t===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&_t===t.memoizedState||(e.flags|=1024),c=!1)}if(g=c,Xr(t,e),d=(e.flags&128)!==0,g||d){if(g=e.stateNode,Mo(e),d&&typeof l.getDerivedStateFromError!="function")l=null,Vn=-1;else if(l=Jp(g),e.mode&8){zt(!0);try{Jp(g)}finally{zt(!1)}}e.flags|=1,t!==null&&d?(e.child=Lc(e,t.child,null,o),e.child=Lc(e,null,l,o)):na(t,e,l,o),e.memoizedState=g.state,t=e.child}else t=Sl(t,e,o);return o=e.stateNode,c&&o.props!==u&&(If||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",G(e)||"a component"),If=!0),t}function oc(t,e,l,u){return gi(),e.flags|=256,na(t,e,l,u),e.child}function Ai(t,e){e&&e.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
113
+ %s.childContextTypes = ...`,e.displayName||e.name||"Component"),typeof e.getDerivedStateFromProps=="function"&&(t=q(e)||"Unknown",My[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),My[t]=!0)),typeof e.contextType=="object"&&e.contextType!==null&&(e=q(e)||"Unknown",zy[e]||(console.error("%s: Function components do not support contextType.",e),zy[e]=!0))}function cc(t){return{baseLanes:t,cachePool:cr()}}function Kr(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=ll),t}function Qr(t,e,l){var u=e.pendingProps;_(e)&&(e.flags|=128);var o=!1,c=(e.flags&128)!==0,d;if((d=c)||(d=t!==null&&t.memoizedState===null?!1:(ba.current&Xd)!==0),d&&(o=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(re){if(o?ql(e):pl(e),(t=$e)?(l=He(t,ei),l!==null&&(d={dehydrated:l,treeContext:Ao(),retryLane:536870912,hydrationErrors:null},e.memoizedState=d,d=Qu(l),d.return=e,e.child=d,hn=e,$e=null)):l=null,l===null)throw bs(e,t),Ol(e);return Tf(l)?e.lanes=32:e.lanes=536870912,null}var g=u.children;return u=u.fallback,o?(pl(e),o=e.mode,g=rc({mode:"hidden",children:g},o),u=iu(u,o,l,null),g.return=e,u.return=e,g.sibling=u,e.child=g,u=e.child,u.memoizedState=cc(l),u.childLanes=Kr(t,d,l),e.memoizedState=Qm,uc(null,u)):(ql(e),Zh(e,g))}var L=t.memoizedState;if(L!==null&&(g=L.dehydrated,g!==null)){if(c)e.flags&256?(ql(e),e.flags&=-257,e=Lr(t,e,l)):e.memoizedState!==null?(pl(e),e.child=t.child,e.flags|=128,e=null):(pl(e),g=u.fallback,o=e.mode,u=rc({mode:"visible",children:u.children},o),g=iu(g,o,l,null),g.flags|=2,u.return=e,g.return=e,u.sibling=g,e.child=u,Lc(e,t.child,null,l),u=e.child,u.memoizedState=cc(l),u.childLanes=Kr(t,d,l),e.memoizedState=Qm,e=uc(null,u));else if(ql(e),pi(),(l&536870912)!==0&&tf(e),Tf(g))o=Na(g),d=o.digest,g=o.message,u=o.stack,o=o.componentStack,g=Error(g||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),g.stack=u||"",g.digest=d,d=o===void 0?null:o,u={value:g,source:null,stack:d},typeof d=="string"&&vm.set(g,u),Cs(u),e=Lr(t,e,l);else if(Ma||Ge(t,e,l,!1),d=(l&t.childLanes)!==0,Ma||d){if(d=qe,d!==null&&(u=Tt(d,l),u!==0&&u!==L.retryLane))throw L.retryLane=u,Fa(t,u),Ve(d,t,u),Km;Dc(g)||ef(),e=Lr(t,e,l)}else Dc(g)?(e.flags|=192,e.child=t.child,e=null):(t=L.treeContext,ka&&($e=zf(g),hn=e,re=!0,ro=null,vu=!1,Al=null,ei=!1,t!==null&&ch(e,t)),e=Zh(e,u.children),e.flags|=4096);return e}return o?(pl(e),g=u.fallback,o=e.mode,L=t.child,c=L.sibling,u=Mi(L,{mode:"hidden",children:u.children}),u.subtreeFlags=L.subtreeFlags&65011712,c!==null?g=Mi(c,g):(g=iu(g,o,l,null),g.flags|=2),g.return=e,u.return=e,u.sibling=g,e.child=u,uc(null,u),u=e.child,g=t.child.memoizedState,g===null?g=cc(l):(o=g.cachePool,o!==null?(L=fn?oa._currentValue:oa._currentValue2,o=o.parent!==L?{parent:L,pool:L}:o):o=cr(),g={baseLanes:g.baseLanes|l,cachePool:o}),u.memoizedState=g,u.childLanes=Kr(t,d,l),e.memoizedState=Qm,uc(t.child,u)):(L!==null&&(l&62914560)===l&&(l&t.lanes)!==0&&tf(e),ql(e),l=t.child,t=l.sibling,l=Mi(l,{mode:"visible",children:u.children}),l.return=e,l.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=l,e.memoizedState=null,l)}function Zh(t,e){return e=rc({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function rc(t,e){return t=C(22,t,null,e),t.lanes=0,t}function Lr(t,e,l){return Lc(e,t.child,null,l),t=Zh(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Jh(t,e,l){t.lanes|=e;var u=t.alternate;u!==null&&(u.lanes|=e),Uo(t.return,e,l)}function Zr(t,e,l,u,o,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:o,treeForkCount:c}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=u,d.tail=l,d.tailMode=o,d.treeForkCount=c)}function Fh(t,e,l){var u=e.pendingProps,o=u.revealOrder,c=u.tail,d=u.children,g=ba.current;if((u=(g&Xd)!==0)?(g=g&Ff|Xd,e.flags|=128):g&=Ff,k(ba,g,e),g=o??"null",o!=="forwards"&&o!=="unstable_legacy-backwards"&&o!=="together"&&o!=="independent"&&!Oy[g])if(Oy[g]=!0,o==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(o==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof o=="string")switch(o.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',o,o.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',o,o.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',o)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',o);g=c??"null",_2[g]||(c==null?(o==="forwards"||o==="backwards"||o==="unstable_legacy-backwards")&&(_2[g]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):c!=="visible"&&c!=="collapsed"&&c!=="hidden"?(_2[g]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',c)):o!=="forwards"&&o!=="backwards"&&o!=="unstable_legacy-backwards"&&(_2[g]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',c)));t:if((o==="forwards"||o==="backwards"||o==="unstable_legacy-backwards")&&d!==void 0&&d!==null&&d!==!1)if(fa(d)){for(g=0;g<d.length;g++)if(!Th(d[g],g))break t}else if(g=V(d),typeof g=="function"){if(g=g.call(d))for(var L=g.next(),nt=0;!L.done;L=g.next()){if(!Th(L.value,nt))break t;nt++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',o);if(na(t,e,d,l),re?(fi(),d=Rd):d=0,!u&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Jh(t,l,e);else if(t.tag===19)Jh(t,l,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(o){case"forwards":for(l=e.child,o=null;l!==null;)t=l.alternate,t!==null&&Wo(t)===null&&(o=l),l=l.sibling;l=o,l===null?(o=e.child,e.child=null):(o=l.sibling,l.sibling=null),Zr(e,!1,o,l,c,d);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Wo(t)===null){e.child=o;break}t=o.sibling,o.sibling=l,l=o,o=t}Zr(e,!0,l,null,c,d);break;case"together":Zr(e,!1,null,null,void 0,d);break;default:e.memoizedState=null}return e.child}function Sl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Vn=-1,So|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ge(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error("Resuming work not yet implemented.");if(e.child!==null){for(t=e.child,l=Mi(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Mi(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function ee(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&zu(t)))}function W2(t,e,l){switch(e.tag){case 3:No(e,e.stateNode.containerInfo),Ul(e,oa,t.memoizedState.cache),gi();break;case 27:case 5:Cu(e);break;case 4:No(e,e.stateNode.containerInfo);break;case 10:Ul(e,e.type,e.memoizedProps.value);break;case 12:(l&e.childLanes)!==0&&(e.flags|=4),e.flags|=2048;var u=e.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 31:if(e.memoizedState!==null)return e.flags|=128,vr(e),null;break;case 13:if(u=e.memoizedState,u!==null)return u.dehydrated!==null?(ql(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Qr(t,e,l):(ql(e),t=Sl(t,e,l),t!==null?t.sibling:null);ql(e);break;case 19:var o=(t.flags&128)!==0;if(u=(l&e.childLanes)!==0,u||(Ge(t,e,l,!1),u=(l&e.childLanes)!==0),o){if(u)return Fh(t,e,l);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(ba,ba.current,e),u)break;return null;case 22:return e.lanes=0,Yr(t,e,l,e.pendingProps);case 24:Ul(e,oa,t.memoizedState.cache)}return Sl(t,e,l)}function on(t,e,l){if(e._debugNeedsRemount&&t!==null){l=sf(e.type,e.key,e.pendingProps,e._debugOwner||null,e.mode,e.lanes),l._debugStack=e._debugStack,l._debugTask=e._debugTask;var u=e.return;if(u===null)throw Error("Cannot swap the root fiber.");if(t.alternate=null,e.alternate=null,l.index=e.index,l.sibling=e.sibling,l.return=e.return,l.ref=e.ref,l._debugInfo=e._debugInfo,e===u.child)u.child=l;else{var o=u.child;if(o===null)throw Error("Expected parent to have a child.");for(;o.sibling!==e;)if(o=o.sibling,o===null)throw Error("Expected to find the previous sibling.");o.sibling=l}return e=u.deletions,e===null?(u.deletions=[t],u.flags|=16):e.push(t),l.flags|=2,l}if(t!==null)if(t.memoizedProps!==e.pendingProps||e.type!==t.type)Ma=!0;else{if(!ee(t,l)&&(e.flags&128)===0)return Ma=!1,W2(t,e,l);Ma=(t.flags&131072)!==0}else Ma=!1,(u=re)&&(fi(),u=(e.flags&1048576)!==0),u&&(u=e.index,fi(),tr(e,Rd,u));switch(e.lanes=0,e.tag){case 16:t:if(u=e.pendingProps,t=_i(e.elementType),e.type=t,typeof t=="function")uf(t)?(u=jl(t,u),e.tag=1,e.type=t=Ku(t),e=Lh(null,e,t,u,l)):(e.tag=0,Ai(e,t),e.type=t=Ku(t),e=sc(null,e,t,u,l));else{if(t!=null){if(o=t.$$typeof,o===ja){e.tag=11,e.type=t=lf(t),e=Xh(null,e,t,u,l);break t}else if(o===ws){e.tag=14,e=Kh(null,e,t,u,l);break t}}throw e="",t!==null&&typeof t=="object"&&t.$$typeof===bn&&(e=" Did you wrap a component in React.lazy() more than once?"),t=q(t)||t,Error("Element type is invalid. Received a promise that resolves to: "+t+". Lazy element type must resolve to a class or function."+e)}return e;case 0:return sc(t,e,e.type,e.pendingProps,l);case 1:return u=e.type,o=jl(u,e.pendingProps),Lh(t,e,u,o,l);case 3:t:{if(No(e,e.stateNode.containerInfo),t===null)throw Error("Should have a current fiber. This is a bug in React.");var c=e.pendingProps;o=e.memoizedState,u=o.element,pr(t,e),Jo(e,c,null,l);var d=e.memoizedState;if(c=d.cache,Ul(e,oa,c),c!==o.cache&&Ga(e,[oa],l,!0),Os(),c=d.element,ka&&o.isDehydrated)if(o={element:c,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=oc(t,e,c,l);break t}else if(c!==u){u=dn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),e),Cs(u),e=oc(t,e,c,l);break t}else for(ka&&($e=Af(e.stateNode.containerInfo),hn=e,re=!0,ro=null,vu=!1,Al=null,ei=!0),t=uy(e,null,c,l),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(gi(),c===u){e=Sl(t,e,l);break t}na(t,e,c,l)}e=e.child}return e;case 26:if(ze)return Xr(t,e),t===null?(t=kl(e.type,null,e.pendingProps,null))?e.memoizedState=t:re||(e.stateNode=a(e.type,e.pendingProps,mn(co.current),e)):e.memoizedState=kl(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:if(h)return Cu(e),t===null&&h&&re&&(o=mn(co.current),u=Dn(),o=e.stateNode=B(e.type,e.pendingProps,o,u,!1),vu||(u=Uc(o,e.type,e.pendingProps,u),u!==null&&(mi(e,0).serverProps=u)),hn=e,ei=!0,$e=Df(e.type,o,$e)),na(t,e,e.pendingProps.children,l),Xr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&re&&(c=Dn(),u=Of(e.type,e.pendingProps,c),o=$e,(d=!o)||(d=Mc(o,e.type,e.pendingProps,ei),d!==null?(e.stateNode=d,vu||(c=Uc(d,e.type,e.pendingProps,c),c!==null&&(mi(e,0).serverProps=c)),hn=e,$e=Rf(d),ei=!1,c=!0):c=!1,d=!c),d&&(u&&bs(e,o),Ol(e))),Cu(e),o=e.type,c=e.pendingProps,d=t!==null?t.memoizedProps:null,u=c.children,le(o,c)?u=null:d!==null&&le(o,d)&&(e.flags|=32),e.memoizedState!==null&&(o=On(t,e,zh,null,null,l),fn?$n._currentValue=o:$n._currentValue2=o),Xr(t,e),na(t,e,u,l),e.child;case 6:return t===null&&re&&(t=e.pendingProps,l=Dn(),t=hu(t,l),l=$e,(u=!l)||(u=hm(l,e.pendingProps,ei),u!==null?(e.stateNode=u,hn=e,$e=null,u=!0):u=!1,u=!u),u&&(t&&bs(e,l),Ol(e))),null;case 13:return Qr(t,e,l);case 4:return No(e,e.stateNode.containerInfo),u=e.pendingProps,t===null?e.child=Lc(e,null,u,l):na(t,e,u,l),e.child;case 11:return Xh(t,e,e.type,e.pendingProps,l);case 7:return na(t,e,e.pendingProps,l),e.child;case 8:return na(t,e,e.pendingProps.children,l),e.child;case 12:return e.flags|=4,e.flags|=2048,u=e.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,na(t,e,e.pendingProps.children,l),e.child;case 10:return u=e.type,o=e.pendingProps,c=o.value,"value"in o||Uy||(Uy=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Ul(e,u,c),na(t,e,o.children,l),e.child;case 9:return o=e.type._context,u=e.pendingProps.children,typeof u!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ol(e),o=De(o),u=Dm(u,o,void 0),e.flags|=1,na(t,e,u,l),e.child;case 14:return Kh(t,e,e.type,e.pendingProps,l);case 15:return ge(t,e,e.type,e.pendingProps,l);case 19:return Fh(t,e,l);case 31:return w2(t,e,l);case 22:return Yr(t,e,l,e.pendingProps);case 24:return ol(e),u=De(oa),t===null?(o=or(),o===null&&(o=qe,c=Rs(),o.pooledCache=c,Si(c),c!==null&&(o.pooledCacheLanes|=l),o=c),e.memoizedState={parent:u,cache:o},mr(e),Ul(e,oa,o)):((t.lanes&l)!==0&&(pr(t,e),Jo(e,null,null,l),Os()),o=t.memoizedState,c=e.memoizedState,o.parent!==u?(o={parent:u,cache:u},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Ul(e,oa,u)):(u=c.cache,Ul(e,oa,u),u!==o.cache&&Ga(e,[oa],l,!0))),na(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error("Unknown unit of work tag ("+e.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Un(t){t.flags|=4}function Jr(t){Wl&&(t.flags|=8)}function fc(t,e){if(t!==null&&t.child===e.child)return!1;if((e.flags&16)!==0)return!0;for(t=e.child;t!==null;){if((t.flags&8218)!==0||(t.subtreeFlags&8218)!==0)return!0;t=t.sibling}return!1}function eu(t,e,l,u){if(je)for(l=e.child;l!==null;){if(l.tag===5||l.tag===6)_a(t,l.stateNode);else if(!(l.tag===4||h&&l.tag===27)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break;for(;l.sibling===null;){if(l.return===null||l.return===e)return;l=l.return}l.sibling.return=l.return,l=l.sibling}else if(Wl)for(var o=e.child;o!==null;){if(o.tag===5){var c=o.stateNode;l&&u&&(c=Il(c,o.type,o.memoizedProps)),_a(t,c)}else if(o.tag===6)c=o.stateNode,l&&u&&(c=sa(c,o.memoizedProps)),_a(t,c);else if(o.tag!==4){if(o.tag===22&&o.memoizedState!==null)c=o.child,c!==null&&(c.return=o),eu(t,o,!0,!0);else if(o.child!==null){o.child.return=o,o=o.child;continue}}if(o===e)break;for(;o.sibling===null;){if(o.return===null||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Bu(t,e,l,u){var o=!1;if(Wl)for(var c=e.child;c!==null;){if(c.tag===5){var d=c.stateNode;l&&u&&(d=Il(d,c.type,c.memoizedProps)),bf(t,d)}else if(c.tag===6)d=c.stateNode,l&&u&&(d=sa(d,c.memoizedProps)),bf(t,d);else if(c.tag!==4){if(c.tag===22&&c.memoizedState!==null)o=c.child,o!==null&&(o.return=c),Bu(t,c,!0,!0),o=!0;else if(c.child!==null){c.child.return=c,c=c.child;continue}}if(c===e)break;for(;c.sibling===null;){if(c.return===null||c.return===e)return o;c=c.return}c.sibling.return=c.return,c=c.sibling}return o}function wh(t,e){if(Wl&&fc(t,e)){t=e.stateNode;var l=t.containerInfo,u=Ef();Bu(u,e,!1,!1),t.pendingChildren=u,Un(e),da(l,u)}}function hc(t,e,l,u){if(je)t.memoizedProps!==u&&Un(e);else if(Wl){var o=t.stateNode,c=t.memoizedProps;if((t=fc(t,e))||c!==u){var d=Dn();c=k1(o,l,c,u,!t,null),c===o?e.stateNode=o:(Jr(e),Ye(c,l,u,d)&&Un(e),e.stateNode=c,t&&eu(c,e,!1,!1))}else e.stateNode=o}}function Fr(t,e,l,u,o){if((t.mode&32)!==Kt&&(l===null?Is(e,u):ks(e,l,u))){if(t.flags|=16777216,(o&335544128)===o||mf(e,u))if(su(t.stateNode,e,u))t.flags|=8192;else if(z1())t.flags|=8192;else throw Qc=m2,Om}else t.flags&=-16777217}function Ni(t,e){if(i(e)){if(t.flags|=16777216,!s(e))if(z1())t.flags|=8192;else throw Qc=m2,Om}else t.flags&=-16777217}function Ys(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Q():536870912,t.lanes|=e,Wc|=e)}function qu(t,e){if(!re)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function Ae(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,u=0;if(e)if((t.mode&2)!==Kt){for(var o=t.selfBaseDuration,c=t.child;c!==null;)l|=c.lanes|c.childLanes,u|=c.subtreeFlags&65011712,u|=c.flags&65011712,o+=c.treeBaseDuration,c=c.sibling;t.treeBaseDuration=o}else for(o=t.child;o!==null;)l|=o.lanes|o.childLanes,u|=o.subtreeFlags&65011712,u|=o.flags&65011712,o.return=t,o=o.sibling;else if((t.mode&2)!==Kt){o=t.actualDuration,c=t.selfBaseDuration;for(var d=t.child;d!==null;)l|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,o+=d.actualDuration,c+=d.treeBaseDuration,d=d.sibling;t.actualDuration=o,t.treeBaseDuration=c}else for(o=t.child;o!==null;)l|=o.lanes|o.childLanes,u|=o.subtreeFlags,u|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=u,t.childLanes=l,e}function Wh(t,e,l){var u=e.pendingProps;switch(er(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(e),null;case 1:return Ae(e),null;case 3:return l=e.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),e.memoizedState.cache!==u&&(e.flags|=2048),sl(oa,e),bu(e),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(vi(e)?(ar(),Un(e)):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Oo())),wh(t,e),Ae(e),null;case 26:if(ze){var o=e.type,c=e.memoizedState;return t===null?(Un(e),c!==null?(Ae(e),Ni(e,c)):(Ae(e),Fr(e,o,null,u,l))):c?c!==t.memoizedState?(Un(e),Ae(e),Ni(e,c)):(Ae(e),e.flags&=-16777217):(c=t.memoizedProps,je?c!==u&&Un(e):hc(t,e,o,u),Ae(e),Fr(e,o,c,u,l)),null}case 27:if(h){if(Tu(e),l=mn(co.current),o=e.type,t!==null&&e.stateNode!=null)je?t.memoizedProps!==u&&Un(e):hc(t,e,o,u);else{if(!u){if(e.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ae(e),null}t=Dn(),vi(e)?yi(e,t):(t=B(o,u,l,t,!0),e.stateNode=t,Un(e))}return Ae(e),null}case 5:if(Tu(e),o=e.type,t!==null&&e.stateNode!=null)hc(t,e,o,u);else{if(!u){if(e.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ae(e),null}if(c=Dn(),vi(e))yi(e,c),Iu(e.stateNode,o,u,c)&&(e.flags|=64);else{var d=mn(co.current);d=df(o,u,d,c,e),Jr(e),eu(d,e,!1,!1),e.stateNode=d,Ye(d,o,u,c)&&Un(e)}}return Ae(e),Fr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)l=t.memoizedProps,je?l!==u&&Un(e):Wl&&(l!==u?(t=mn(co.current),l=Dn(),Jr(e),e.stateNode=xi(u,t,l,e)):e.stateNode=t.stateNode);else{if(typeof u!="string"&&e.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(t=mn(co.current),l=Dn(),vi(e)){if(!ka)throw Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=e.stateNode,l=e.memoizedProps,o=!vu,u=null,c=hn,c!==null)switch(c.tag){case 3:o&&(o=Cd(t,l,u),o!==null&&(mi(e,0).serverProps=o));break;case 27:case 5:u=c.memoizedProps,o&&(o=Cd(t,l,u),o!==null&&(mi(e,0).serverProps=o))}oe(t,l,e,u)||Ol(e,!0)}else Jr(e),e.stateNode=xi(u,t,l,e)}return Ae(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(u=vi(e),l!==null){if(t===null){if(!u)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!ka)throw Error("Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");Ne(t,e),Ae(e),(e.mode&2)!==Kt&&l!==null&&(t=e.child,t!==null&&(e.treeBaseDuration-=t.treeBaseDuration))}else ar(),gi(),(e.flags&128)===0&&(l=e.memoizedState=null),e.flags|=4,Ae(e),(e.mode&2)!==Kt&&l!==null&&(t=e.child,t!==null&&(e.treeBaseDuration-=t.treeBaseDuration));t=!1}else l=Oo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(un(e),e):(un(e),null);if((e.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ae(e),null;case 13:if(u=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=u,c=vi(e),o!==null&&o.dehydrated!==null){if(t===null){if(!c)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!ka)throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(c=e.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Gn(c,e),Ae(e),(e.mode&2)!==Kt&&o!==null&&(o=e.child,o!==null&&(e.treeBaseDuration-=o.treeBaseDuration))}else ar(),gi(),(e.flags&128)===0&&(o=e.memoizedState=null),e.flags|=4,Ae(e),(e.mode&2)!==Kt&&o!==null&&(o=e.child,o!==null&&(e.treeBaseDuration-=o.treeBaseDuration));o=!1}else o=Oo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(un(e),e):(un(e),null)}return un(e),(e.flags&128)!==0?(e.lanes=l,(e.mode&2)!==Kt&&Bo(e),e):(l=u!==null,t=t!==null&&t.memoizedState!==null,l&&(u=e.child,o=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(o=u.alternate.memoizedState.cachePool.pool),c=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(c=u.memoizedState.cachePool.pool),c!==o&&(u.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ys(e,e.updateQueue),Ae(e),(e.mode&2)!==Kt&&l&&(t=e.child,t!==null&&(e.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return bu(e),wh(t,e),t===null&&Ze(e.stateNode.containerInfo),Ae(e),null;case 10:return sl(e.type,e),Ae(e),null;case 19:if(P(ba,e),u=e.memoizedState,u===null)return Ae(e),null;if(o=(e.flags&128)!==0,c=u.rendering,c===null)if(o)qu(u,!1);else{if(ea!==hs||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Wo(t),c!==null){for(e.flags|=128,qu(u,!1),t=c.updateQueue,e.updateQueue=t,Ys(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)ra(l,t),l=l.sibling;return k(ba,ba.current&Ff|Xd,e),re&&ri(e,u.treeForkCount),e.child}t=t.sibling}u.tail!==null&&ce()>Pd&&(e.flags|=128,o=!0,qu(u,!1),e.lanes=4194304)}else{if(!o)if(t=Wo(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Ys(e,t),qu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!c.alternate&&!re)return Ae(e),null}else 2*ce()-u.renderingStartTime>Pd&&l!==536870912&&(e.flags|=128,o=!0,qu(u,!1),e.lanes=4194304);u.isBackwards?(c.sibling=e.child,e.child=c):(t=u.last,t!==null?t.sibling=c:e.child=c,u.last=c)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=ce(),t.sibling=null,l=ba.current,l=o?l&Ff|Xd:l&Ff,k(ba,l,e),re&&ri(e,u.treeForkCount),t):(Ae(e),null);case 22:case 23:return un(e),wo(e),u=e.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(e.flags|=8192):u&&(e.flags|=8192),u?(l&536870912)!==0&&(e.flags&128)===0&&(Ae(e),e.subtreeFlags&6&&(e.flags|=8192)):Ae(e),l=e.updateQueue,l!==null&&Ys(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),u=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),u!==l&&(e.flags|=2048),t!==null&&P(Xc,e),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),sl(oa,e),Ae(e),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+e.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function au(t,e){switch(er(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,(e.mode&2)!==Kt&&Bo(e),e):null;case 3:return sl(oa,e),bu(e),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Tu(e),null;case 31:if(e.memoizedState!==null){if(un(e),e.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,(e.mode&2)!==Kt&&Bo(e),e):null;case 13:if(un(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,(e.mode&2)!==Kt&&Bo(e),e):null;case 19:return P(ba,e),null;case 4:return bu(e),null;case 10:return sl(e.type,e),null;case 22:case 23:return un(e),wo(e),t!==null&&P(Xc,e),t=e.flags,t&65536?(e.flags=t&-65537|128,(e.mode&2)!==Kt&&Bo(e),e):null;case 24:return sl(oa,e),null;case 25:return null;default:return null}}function wr(t,e){switch(er(e),e.tag){case 3:sl(oa,e),bu(e);break;case 26:case 27:case 5:Tu(e);break;case 4:bu(e);break;case 31:e.memoizedState!==null&&un(e);break;case 13:un(e);break;case 19:P(ba,e);break;case 10:sl(e.type,e);break;case 22:case 23:un(e),wo(e),t!==null&&P(Xc,e);break;case 24:sl(oa,e)}}function Kl(t){return(t.mode&2)!==Kt}function Ph(t,e){Kl(t)?(ml(),nu(e,t),dl()):nu(e,t)}function Ih(t,e,l){Kl(t)?(ml(),Gt(l,t,e),dl()):Gt(l,t,e)}function nu(t,e){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var o=u.next;l=o;do{if((l.tag&t)===t&&(u=void 0,(t&Yn)!==y2&&(nh=!0),u=Ut(e,I3,l),(t&Yn)!==y2&&(nh=!1),u!==void 0&&typeof u!="function")){var c=void 0;c=(l.tag&zl)!==0?"useLayoutEffect":(l.tag&Yn)!==0?"useInsertionEffect":"useEffect";var d=void 0;d=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`
114
+
115
+ It looks like you wrote `+c+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
116
+
117
+ `+c+`(() => {
118
+ async function fetchData() {
119
+ // You can await here
120
+ const response = await MyAPI.getData(someId);
121
+ // ...
122
+ }
123
+ fetchData();
124
+ }, [someId]); // Or [] if effect doesn't need props or state
125
+
126
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,Ut(e,function(g,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",g,L)},c,d)}l=l.next}while(l!==o)}}catch(g){Se(e,e.return,g)}}function Gt(t,e,l){try{var u=e.updateQueue,o=u!==null?u.lastEffect:null;if(o!==null){var c=o.next;u=c;do{if((u.tag&t)===t){var d=u.inst,g=d.destroy;g!==void 0&&(d.destroy=void 0,(t&Yn)!==y2&&(nh=!0),o=e,Ut(o,k3,o,l,g),(t&Yn)!==y2&&(nh=!1))}u=u.next}while(u!==c)}}catch(L){Se(e,e.return,L)}}function i1(t,e){Kl(t)?(ml(),nu(e,t),dl()):nu(e,t)}function kh(t,e,l){Kl(t)?(ml(),Gt(l,t,e),dl()):Gt(l,t,e)}function $h(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||If||(l.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(t)||"instance"),l.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(t)||"instance"));try{Ut(t,Ah,e,l)}catch(u){Se(t,t.return,u)}}}function dc(t,e,l){return t.getSnapshotBeforeUpdate(e,l)}function P2(t,e){var l=e.memoizedProps,u=e.memoizedState;e=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||If||(e.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(t)||"instance"),e.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(t)||"instance"));try{var o=jl(t.type,l),c=Ut(t,dc,e,o,u);l=Hy,c!==void 0||l.has(t.type)||(l.add(t.type),Ut(t,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",G(t))})),e.__reactInternalSnapshotBeforeUpdate=c}catch(d){Se(t,t.return,d)}}function u1(t,e,l){l.props=jl(t.type,t.memoizedProps),l.state=t.memoizedState,Kl(t)?(ml(),Ut(t,kp,t,e,l),dl()):Ut(t,kp,t,e,l)}function I2(t){var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var l=rn(t.stateNode);break;case 30:l=t.stateNode;break;default:l=t.stateNode}if(typeof e=="function")if(Kl(t))try{ml(),t.refCleanup=e(l)}finally{dl()}else t.refCleanup=e(l);else typeof e=="string"?console.error("String refs are no longer supported."):e.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",G(t)),e.current=l}}function mc(t,e){try{Ut(t,I2,t)}catch(l){Se(t,e,l)}}function Ql(t,e){var l=t.ref,u=t.refCleanup;if(l!==null)if(typeof u=="function")try{if(Kl(t))try{ml(),Ut(t,u)}finally{dl(t)}else Ut(t,u)}catch(o){Se(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{if(Kl(t))try{ml(),Ut(t,l,null)}finally{dl(t)}else Ut(t,l,null)}catch(o){Se(t,e,o)}else l.current=null}function Wr(t,e,l,u){var o=t.memoizedProps,c=o.id,d=o.onCommit;o=o.onRender,e=e===null?"mount":"update",o2&&(e="nested-update"),typeof o=="function"&&o(c,e,t.actualDuration,t.treeBaseDuration,t.actualStartTime,l),typeof d=="function"&&d(c,e,u,l)}function s1(t,e,l,u){var o=t.memoizedProps;t=o.id,o=o.onPostCommit,e=e===null?"mount":"update",o2&&(e="nested-update"),typeof o=="function"&&o(t,e,u,l)}function pc(t){var e=t.type,l=t.memoizedProps,u=t.stateNode;try{Ut(t,Me,u,e,l,t)}catch(o){Se(t,t.return,o)}}function Pr(t,e,l){try{Ut(t,ha,t.stateNode,t.type,l,e,t)}catch(u){Se(t,t.return,u)}}function o1(t){return t.tag===5||t.tag===3||(ze?t.tag===26:!1)||(h?t.tag===27&&Nt(t.type):!1)||t.tag===4}function td(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||o1(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(h&&t.tag===27&&Nt(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 zi(t,e,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?to(l,t,e):Gi(l,t);else if(u!==4&&(h&&u===27&&Nt(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(zi(t,e,l),t=t.sibling;t!==null;)zi(t,e,l),t=t.sibling}function Fn(t,e,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?Sf(l,t,e):ua(l,t);else if(u!==4&&(h&&u===27&&Nt(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Fn(t,e,l),t=t.sibling;t!==null;)Fn(t,e,l),t=t.sibling}function Pa(t){for(var e,l=t.return;l!==null;){if(o1(l)){e=l;break}l=l.return}if(je){if(e==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(e.tag){case 27:if(h){e=e.stateNode,l=td(t),Fn(t,l,e);break}case 5:l=e.stateNode,e.flags&32&&(eo(l),e.flags&=-33),e=td(t),Fn(t,e,l);break;case 3:case 4:e=e.stateNode.containerInfo,l=td(t),zi(t,l,e);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function _l(t,e,l){t=t.containerInfo;try{Ut(e,Cf,t,l)}catch(u){Se(e,e.return,u)}}function Va(t){var e=t.stateNode,l=t.memoizedProps;try{Ut(t,I,t.type,l,e,t)}catch(u){Se(t,t.return,u)}}function c1(t,e){return e.tag===31?(e=e.memoizedState,t.memoizedState!==null&&e===null):e.tag===13?(t=t.memoizedState,e=e.memoizedState,t!==null&&t.dehydrated!==null&&(e===null||e.dehydrated===null)):e.tag===3?t.memoizedState.isDehydrated&&(e.flags&256)===0:!1}function k2(t,e){for(Rc(t.containerInfo),$a=e;$a!==null;)if(t=$a,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$a=e;else for(;$a!==null;){e=t=$a;var l=e.alternate,u=e.flags;switch(e.tag){case 0:if((u&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)u=e[l],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:(u&1024)!==0&&l!==null&&P2(e,l);break;case 3:(u&1024)!==0&&je&&_d(e.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,$a=e;break}$a=t.return}}function Sa(t,e,l){var u=nn(),o=Gl(),c=fl(),d=hl(),g=l.flags;switch(l.tag){case 0:case 11:case 15:cn(t,l),g&4&&Ph(l,zl|ii);break;case 1:if(cn(t,l),g&4)if(t=l.stateNode,e===null)l.type.defaultProps||"ref"in l.memoizedProps||If||(t.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(l)||"instance"),t.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(l)||"instance")),Kl(l)?(ml(),Ut(l,Mm,l,t),dl()):Ut(l,Mm,l,t);else{var L=jl(l.type,e.memoizedProps);e=e.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||If||(t.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(l)||"instance"),t.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(l)||"instance")),Kl(l)?(ml(),Ut(l,Wp,l,t,L,e,t.__reactInternalSnapshotBeforeUpdate),dl()):Ut(l,Wp,l,t,L,e,t.__reactInternalSnapshotBeforeUpdate)}g&64&&$h(l),g&512&&mc(l,l.return);break;case 3:if(e=xl(),cn(t,l),g&64&&(g=l.updateQueue,g!==null)){if(L=null,l.child!==null)switch(l.child.tag){case 27:case 5:L=rn(l.child.stateNode);break;case 1:L=l.child.stateNode}try{Ut(l,Ah,g,L)}catch(mt){Se(l,l.return,mt)}}t.effectDuration+=Ho(e);break;case 27:h&&e===null&&g&4&&Va(l);case 26:case 5:if(cn(t,l),e===null){if(g&4)pc(l);else if(g&64){t=l.type,e=l.memoizedProps,L=l.stateNode;try{Ut(l,Ed,L,t,e,l)}catch(mt){Se(l,l.return,mt)}}}g&512&&mc(l,l.return);break;case 12:if(g&4){g=xl(),cn(t,l),t=l.stateNode,t.effectDuration+=As(g);try{Ut(l,Wr,l,e,fo,t.effectDuration)}catch(mt){Se(l,l.return,mt)}}else cn(t,l);break;case 31:cn(t,l),g&4&&r1(t,l);break;case 13:cn(t,l),g&4&&f1(t,l),g&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(g=X1.bind(null,l),ma(t,g))));break;case 22:if(g=l.memoizedState!==null||fs,!g){e=e!==null&&e.memoizedState!==null||Oa,L=fs;var nt=Oa;fs=g,(Oa=e)&&!nt?(Zl(t,l,(l.subtreeFlags&8772)!==0),(l.mode&2)!==Kt&&0<=qt&&0<=jt&&.05<jt-qt&&zn(l,qt,jt)):cn(t,l),fs=L,Oa=nt}break;case 30:break;default:cn(t,l)}(l.mode&2)!==Kt&&0<=qt&&0<=jt&&((ca||.05<ta)&&It(l,qt,jt,ta,Fe),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<jt-qt&&(c1(l.return.alternate,l.return)||pe(l,qt,jt,"Mount"))),yn(u),rl(o),Fe=c,ca=d}function Ll(t){var e=t.alternate;e!==null&&(t.alternate=null,Ll(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&vd(e)),t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function El(t,e,l){for(l=l.child;l!==null;)ed(t,e,l),l=l.sibling}function ed(t,e,l){if(An&&typeof An.onCommitFiberUnmount=="function")try{An.onCommitFiberUnmount(Gf,l)}catch(nt){mu||(mu=!0,console.error("React instrumentation encountered an error: %o",nt))}var u=nn(),o=Gl(),c=fl(),d=hl();switch(l.tag){case 26:if(ze){Oa||Ql(l,e),El(t,e,l),l.memoizedState?Hf(l.memoizedState):l.stateNode&&xf(l.stateNode);break}case 27:if(h){Oa||Ql(l,e);var g=Ua,L=al;Nt(l.type)&&(Ua=l.stateNode,al=!1),El(t,e,l),Ut(l,yt,l.stateNode),Ua=g,al=L;break}case 5:Oa||Ql(l,e);case 6:if(je){if(g=Ua,L=al,Ua=null,El(t,e,l),Ua=g,al=L,Ua!==null)if(al)try{Ut(l,_f,Ua,l.stateNode)}catch(nt){Se(l,e,nt)}else try{Ut(l,Wu,Ua,l.stateNode)}catch(nt){Se(l,e,nt)}}else El(t,e,l);break;case 18:je&&Ua!==null&&(al?no(Ua,l.stateNode):Bn(Ua,l.stateNode));break;case 4:je?(g=Ua,L=al,Ua=l.stateNode.containerInfo,al=!0,El(t,e,l),Ua=g,al=L):(Wl&&_l(l.stateNode,l,Ef()),El(t,e,l));break;case 0:case 11:case 14:case 15:Gt(Yn,l,e),Oa||Ih(l,e,zl),El(t,e,l);break;case 1:Oa||(Ql(l,e),g=l.stateNode,typeof g.componentWillUnmount=="function"&&u1(l,e,g)),El(t,e,l);break;case 21:El(t,e,l);break;case 22:Oa=(g=Oa)||l.memoizedState!==null,El(t,e,l),Oa=g;break;default:El(t,e,l)}(l.mode&2)!==Kt&&0<=qt&&0<=jt&&(ca||.05<ta)&&It(l,qt,jt,ta,Fe),yn(u),rl(o),Fe=c,ca=d}function r1(t,e){if(ka&&e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ut(e,ke,t)}catch(l){Se(e,e.return,l)}}}function f1(t,e){if(ka&&e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ut(e,fu,t)}catch(l){Se(e,e.return,l)}}function $2(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new xy),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new xy),e;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}function js(t,e){var l=$2(t);e.forEach(function(u){if(!l.has(u)){if(l.add(u),pu)if(kf!==null&&$f!==null)Ls($f,kf);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var o=um.bind(null,t,u);u.then(o,o)}})}function Ya(t,e){var l=e.deletions;if(l!==null)for(var u=0;u<l.length;u++){var o=t,c=e,d=l[u],g=nn();if(je){var L=c;t:for(;L!==null;){switch(L.tag){case 27:if(h){if(Nt(L.type)){Ua=L.stateNode,al=!1;break t}break}case 5:Ua=L.stateNode,al=!1;break t;case 3:case 4:Ua=L.stateNode.containerInfo,al=!0;break t}L=L.return}if(Ua===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");ed(o,c,d),Ua=null,al=!1}else ed(o,c,d);(d.mode&2)!==Kt&&0<=qt&&0<=jt&&.05<jt-qt&&pe(d,qt,jt,"Unmount"),yn(g),o=d,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)h1(e,t),e=e.sibling}function h1(t,e){var l=nn(),u=Gl(),o=fl(),c=hl(),d=t.alternate,g=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ya(e,t),Ia(t),g&4&&(Gt(Yn|ii,t,t.return),nu(Yn|ii,t),Ih(t,t.return,zl|ii));break;case 1:Ya(e,t),Ia(t),g&512&&(Oa||d===null||Ql(d,d.return)),g&64&&fs&&(g=t.updateQueue,g!==null&&(d=g.callbacks,d!==null&&(e=g.shared.hiddenCallbacks,g.shared.hiddenCallbacks=e===null?d:e.concat(d))));break;case 26:if(ze){var L=Xi;Ya(e,t),Ia(t),g&512&&(Oa||d===null||Ql(d,d.return)),g&4&&(g=d!==null?d.memoizedState:null,e=t.memoizedState,d===null?e===null?t.stateNode===null?t.stateNode=$1(L,t.type,t.memoizedProps,t):io(L,t.type,t.stateNode):t.stateNode=Uf(L,e,t.memoizedProps):g!==e?(g===null?d.stateNode!==null&&xf(d.stateNode):Hf(g),e===null?io(L,t.type,t.stateNode):Uf(L,e,t.memoizedProps)):e===null&&t.stateNode!==null&&Pr(t,t.memoizedProps,d.memoizedProps));break}case 27:if(h){Ya(e,t),Ia(t),g&512&&(Oa||d===null||Ql(d,d.return)),d!==null&&g&4&&Pr(t,t.memoizedProps,d.memoizedProps);break}case 5:if(Ya(e,t),Ia(t),g&512&&(Oa||d===null||Ql(d,d.return)),je){if(t.flags&32){e=t.stateNode;try{Ut(t,eo,e)}catch(xe){Se(t,t.return,xe)}}g&4&&t.stateNode!=null&&(e=t.memoizedProps,Pr(t,e,d!==null?d.memoizedProps:e)),g&1024&&(Lm=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."))}else Wl&&t.alternate!==null&&(t.alternate.stateNode=t.stateNode);break;case 6:if(Ya(e,t),Ia(t),g&4&&je){if(t.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");g=t.memoizedProps,d=d!==null?d.memoizedProps:g,e=t.stateNode;try{Ut(t,Wt,e,d,g)}catch(xe){Se(t,t.return,xe)}}break;case 3:if(L=xl(),ze){n();var nt=Xi;Xi=du(e.containerInfo),Ya(e,t),Xi=nt}else Ya(e,t);if(Ia(t),g&4){if(je&&ka&&d!==null&&d.memoizedState.isDehydrated)try{Ut(t,Bi,e.containerInfo)}catch(xe){Se(t,t.return,xe)}if(Wl){g=e.containerInfo,d=e.pendingChildren;try{Ut(t,Cf,g,d)}catch(xe){Se(t,t.return,xe)}}}Lm&&(Lm=!1,d1(t)),e.effectDuration+=Ho(L);break;case 4:ze?(d=Xi,Xi=du(t.stateNode.containerInfo),Ya(e,t),Ia(t),Xi=d):(Ya(e,t),Ia(t)),g&4&&Wl&&_l(t.stateNode,t,t.stateNode.pendingChildren);break;case 12:g=xl(),Ya(e,t),Ia(t),t.stateNode.effectDuration+=As(g);break;case 31:Ya(e,t),Ia(t),g&4&&(g=t.updateQueue,g!==null&&(t.updateQueue=null,js(t,g)));break;case 13:Ya(e,t),Ia(t),t.child.flags&8192&&t.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(U2=ce()),g&4&&(g=t.updateQueue,g!==null&&(t.updateQueue=null,js(t,g)));break;case 22:L=t.memoizedState!==null;var mt=d!==null&&d.memoizedState!==null,vt=fs,_t=Oa;if(fs=vt||L,Oa=_t||mt,Ya(e,t),Oa=_t,fs=vt,mt&&!L&&!vt&&!_t&&(t.mode&2)!==Kt&&0<=qt&&0<=jt&&.05<jt-qt&&zn(t,qt,jt),Ia(t),g&8192&&(e=t.stateNode,e._visibility=L?e._visibility&~jd:e._visibility|jd,!L||d===null||mt||fs||Oa||(Vu(t),(t.mode&2)!==Kt&&0<=qt&&0<=jt&&.05<jt-qt&&pe(t,qt,jt,"Disconnect")),je)){t:if(d=null,je)for(e=t;;){if(e.tag===5||ze&&e.tag===26){if(d===null){mt=d=e;try{nt=mt.stateNode,L?Ut(mt,ao,nt):Ut(mt,zc,mt.stateNode,mt.memoizedProps)}catch(xe){Se(mt,mt.return,xe)}}}else if(e.tag===6){if(d===null){mt=e;try{var xt=mt.stateNode;L?Ut(mt,rm,xt):Ut(mt,I1,xt,mt.memoizedProps)}catch(xe){Se(mt,mt.return,xe)}}}else if(e.tag===18){if(d===null){mt=e;try{var Ft=mt.stateNode;L?Ut(mt,Oc,Ft):Ut(mt,Rn,mt.stateNode)}catch(xe){Se(mt,mt.return,xe)}}}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;d===e&&(d=null),e=e.return}d===e&&(d=null),e.sibling.return=e.return,e=e.sibling}}g&4&&(g=t.updateQueue,g!==null&&(d=g.retryQueue,d!==null&&(g.retryQueue=null,js(t,d))));break;case 19:Ya(e,t),Ia(t),g&4&&(g=t.updateQueue,g!==null&&(t.updateQueue=null,js(t,g)));break;case 30:break;case 21:break;default:Ya(e,t),Ia(t)}(t.mode&2)!==Kt&&0<=qt&&0<=jt&&((ca||.05<ta)&&It(t,qt,jt,ta,Fe),t.alternate===null&&t.return!==null&&t.return.alternate!==null&&.05<jt-qt&&(c1(t.return.alternate,t.return)||pe(t,qt,jt,"Mount"))),yn(l),rl(u),Fe=o,ca=c}function Ia(t){var e=t.flags;if(e&2){try{Ut(t,Pa,t)}catch(l){Se(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function d1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;d1(e),e.tag===5&&e.flags&1024&&Nc(e.stateNode),t=t.sibling}}function cn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Sa(t,e.alternate,e),e=e.sibling}function lu(t){var e=nn(),l=Gl(),u=fl(),o=hl();switch(t.tag){case 0:case 11:case 14:case 15:Ih(t,t.return,zl),Vu(t);break;case 1:Ql(t,t.return);var c=t.stateNode;typeof c.componentWillUnmount=="function"&&u1(t,t.return,c),Vu(t);break;case 27:h&&Ut(t,yt,t.stateNode);case 26:case 5:Ql(t,t.return),Vu(t);break;case 22:t.memoizedState===null&&Vu(t);break;case 30:Vu(t);break;default:Vu(t)}(t.mode&2)!==Kt&&0<=qt&&0<=jt&&(ca||.05<ta)&&It(t,qt,jt,ta,Fe),yn(e),rl(l),Fe=u,ca=o}function Vu(t){for(t=t.child;t!==null;)lu(t),t=t.sibling}function m1(t,e,l,u){var o=nn(),c=Gl(),d=fl(),g=hl(),L=l.flags;switch(l.tag){case 0:case 11:case 15:Zl(t,l,u),Ph(l,zl);break;case 1:if(Zl(t,l,u),e=l.stateNode,typeof e.componentDidMount=="function"&&Ut(l,Mm,l,e),e=l.updateQueue,e!==null){t=l.stateNode;try{Ut(l,Rh,e,t)}catch(nt){Se(l,l.return,nt)}}u&&L&64&&$h(l),mc(l,l.return);break;case 27:h&&Va(l);case 26:case 5:Zl(t,l,u),u&&e===null&&L&4&&pc(l),mc(l,l.return);break;case 12:if(u&&L&4){L=xl(),Zl(t,l,u),u=l.stateNode,u.effectDuration+=As(L);try{Ut(l,Wr,l,e,fo,u.effectDuration)}catch(nt){Se(l,l.return,nt)}}else Zl(t,l,u);break;case 31:Zl(t,l,u),u&&L&4&&r1(t,l);break;case 13:Zl(t,l,u),u&&L&4&&f1(t,l);break;case 22:l.memoizedState===null&&Zl(t,l,u),mc(l,l.return);break;case 30:break;default:Zl(t,l,u)}(l.mode&2)!==Kt&&0<=qt&&0<=jt&&(ca||.05<ta)&&It(l,qt,jt,ta,Fe),yn(o),rl(c),Fe=d,ca=g}function Zl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;)m1(t,e.alternate,e,l),e=e.sibling}function Yu(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&Si(t),l!=null&&Du(l))}function ad(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(Si(e),t!=null&&Du(t))}function bl(t,e,l,u,o){if(e.subtreeFlags&10256||e.actualDuration!==0&&(e.alternate===null||e.alternate.child!==e.child))for(e=e.child;e!==null;){var c=e.sibling;p1(t,e,l,u,c!==null?c.actualStartTime:o),e=c}}function p1(t,e,l,u,o){var c=nn(),d=Gl(),g=fl(),L=hl(),nt=uo,mt=e.flags;switch(e.tag){case 0:case 11:case 15:(e.mode&2)!==Kt&&0<e.actualStartTime&&(e.flags&1)!==0&&we(e,e.actualStartTime,o,Ka,l),bl(t,e,l,u,o),mt&2048&&i1(e,jn|ii);break;case 1:(e.mode&2)!==Kt&&0<e.actualStartTime&&((e.flags&128)!==0?Kn(e,e.actualStartTime,o,[]):(e.flags&1)!==0&&we(e,e.actualStartTime,o,Ka,l)),bl(t,e,l,u,o);break;case 3:var vt=xl(),_t=Ka;Ka=e.alternate!==null&&e.alternate.memoizedState.isDehydrated&&(e.flags&256)===0,bl(t,e,l,u,o),Ka=_t,mt&2048&&(l=null,e.alternate!==null&&(l=e.alternate.memoizedState.cache),u=e.memoizedState.cache,u!==l&&(Si(u),l!=null&&Du(l))),t.passiveEffectDuration+=Ho(vt);break;case 12:if(mt&2048){mt=xl(),bl(t,e,l,u,o),t=e.stateNode,t.passiveEffectDuration+=As(mt);try{Ut(e,s1,e,e.alternate,fo,t.passiveEffectDuration)}catch(xt){Se(e,e.return,xt)}}else bl(t,e,l,u,o);break;case 31:mt=Ka,vt=e.alternate!==null?e.alternate.memoizedState:null,_t=e.memoizedState,vt!==null&&_t===null?(_t=e.deletions,_t!==null&&0<_t.length&&_t[0].tag===18?(Ka=!1,vt=vt.hydrationErrors,vt!==null&&Kn(e,e.actualStartTime,o,vt)):Ka=!0):Ka=!1,bl(t,e,l,u,o),Ka=mt;break;case 13:mt=Ka,vt=e.alternate!==null?e.alternate.memoizedState:null,_t=e.memoizedState,vt===null||vt.dehydrated===null||_t!==null&&_t.dehydrated!==null?Ka=!1:(_t=e.deletions,_t!==null&&0<_t.length&&_t[0].tag===18?(Ka=!1,vt=vt.hydrationErrors,vt!==null&&Kn(e,e.actualStartTime,o,vt)):Ka=!0),bl(t,e,l,u,o),Ka=mt;break;case 23:break;case 22:_t=e.stateNode,vt=e.alternate,e.memoizedState!==null?_t._visibility&ss?bl(t,e,l,u,o):yc(t,e,l,u,o):_t._visibility&ss?bl(t,e,l,u,o):(_t._visibility|=ss,Jl(t,e,l,u,(e.subtreeFlags&10256)!==0||e.actualDuration!==0&&(e.alternate===null||e.alternate.child!==e.child),o),(e.mode&2)===Kt||Ka||(t=e.actualStartTime,0<=t&&.05<o-t&&zn(e,t,o),0<=qt&&0<=jt&&.05<jt-qt&&zn(e,qt,jt))),mt&2048&&Yu(vt,e);break;case 24:bl(t,e,l,u,o),mt&2048&&ad(e.alternate,e);break;default:bl(t,e,l,u,o)}(e.mode&2)!==Kt&&((t=!Ka&&e.alternate===null&&e.return!==null&&e.return.alternate!==null)&&(l=e.actualStartTime,0<=l&&.05<o-l&&pe(e,l,o,"Mount")),0<=qt&&0<=jt&&((ca||.05<ta)&&It(e,qt,jt,ta,Fe),t&&.05<jt-qt&&pe(e,qt,jt,"Mount"))),yn(c),rl(d),Fe=g,ca=L,uo=nt}function Jl(t,e,l,u,o,c){for(o=o&&((e.subtreeFlags&10256)!==0||e.actualDuration!==0&&(e.alternate===null||e.alternate.child!==e.child)),e=e.child;e!==null;){var d=e.sibling;y1(t,e,l,u,o,d!==null?d.actualStartTime:c),e=d}}function y1(t,e,l,u,o,c){var d=nn(),g=Gl(),L=fl(),nt=hl(),mt=uo;o&&(e.mode&2)!==Kt&&0<e.actualStartTime&&(e.flags&1)!==0&&we(e,e.actualStartTime,c,Ka,l);var vt=e.flags;switch(e.tag){case 0:case 11:case 15:Jl(t,e,l,u,o,c),i1(e,jn);break;case 23:break;case 22:var _t=e.stateNode;e.memoizedState!==null?_t._visibility&ss?Jl(t,e,l,u,o,c):yc(t,e,l,u,c):(_t._visibility|=ss,Jl(t,e,l,u,o,c)),o&&vt&2048&&Yu(e.alternate,e);break;case 24:Jl(t,e,l,u,o,c),o&&vt&2048&&ad(e.alternate,e);break;default:Jl(t,e,l,u,o,c)}(e.mode&2)!==Kt&&0<=qt&&0<=jt&&(ca||.05<ta)&&It(e,qt,jt,ta,Fe),yn(d),rl(g),Fe=L,ca=nt,uo=mt}function yc(t,e,l,u,o){if(e.subtreeFlags&10256||e.actualDuration!==0&&(e.alternate===null||e.alternate.child!==e.child))for(var c=e.child;c!==null;){e=c.sibling;var d=t,g=l,L=u,nt=e!==null?e.actualStartTime:o,mt=uo;(c.mode&2)!==Kt&&0<c.actualStartTime&&(c.flags&1)!==0&&we(c,c.actualStartTime,nt,Ka,g);var vt=c.flags;switch(c.tag){case 22:yc(d,c,g,L,nt),vt&2048&&Yu(c.alternate,c);break;case 24:yc(d,c,g,L,nt),vt&2048&&ad(c.alternate,c);break;default:yc(d,c,g,L,nt)}uo=mt,c=e}}function ju(t,e,l){if(t.subtreeFlags&th)for(t=t.child;t!==null;)v1(t,e,l),t=t.sibling}function v1(t,e,l){switch(t.tag){case 26:if(ju(t,e,l),t.flags&th)if(t.memoizedState!==null)r(l,Xi,t.memoizedState,t.memoizedProps);else{var u=t.stateNode,o=t.type;t=t.memoizedProps,((e&335544128)===e||mf(o,t))&&pf(l,u,o,t)}break;case 5:ju(t,e,l),t.flags&th&&(u=t.stateNode,o=t.type,t=t.memoizedProps,((e&335544128)===e||mf(o,t))&&pf(l,u,o,t));break;case 3:case 4:ze?(u=Xi,Xi=du(t.stateNode.containerInfo),ju(t,e,l),Xi=u):ju(t,e,l);break;case 22:t.memoizedState===null&&(u=t.alternate,u!==null&&u.memoizedState!==null?(u=th,th=16777216,ju(t,e,l),th=u):ju(t,e,l));break;default:ju(t,e,l)}}function g1(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 vc(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var u=e[l],o=nn();$a=u,E1(u,t),(u.mode&2)!==Kt&&0<=qt&&0<=jt&&.05<jt-qt&&pe(u,qt,jt,"Unmount"),yn(o)}g1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)S1(t),t=t.sibling}function S1(t){var e=nn(),l=Gl(),u=fl(),o=hl();switch(t.tag){case 0:case 11:case 15:vc(t),t.flags&2048&&kh(t,t.return,jn|ii);break;case 3:var c=xl();vc(t),t.stateNode.passiveEffectDuration+=Ho(c);break;case 12:c=xl(),vc(t),t.stateNode.passiveEffectDuration+=As(c);break;case 22:c=t.stateNode,t.memoizedState!==null&&c._visibility&ss&&(t.return===null||t.return.tag!==13)?(c._visibility&=~ss,Ir(t),(t.mode&2)!==Kt&&0<=qt&&0<=jt&&.05<jt-qt&&pe(t,qt,jt,"Disconnect")):vc(t);break;default:vc(t)}(t.mode&2)!==Kt&&0<=qt&&0<=jt&&(ca||.05<ta)&&It(t,qt,jt,ta,Fe),yn(e),rl(l),ca=o,Fe=u}function Ir(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var u=e[l],o=nn();$a=u,E1(u,t),(u.mode&2)!==Kt&&0<=qt&&0<=jt&&.05<jt-qt&&pe(u,qt,jt,"Unmount"),yn(o)}g1(t)}for(t=t.child;t!==null;)_1(t),t=t.sibling}function _1(t){var e=nn(),l=Gl(),u=fl(),o=hl();switch(t.tag){case 0:case 11:case 15:kh(t,t.return,jn),Ir(t);break;case 22:var c=t.stateNode;c._visibility&ss&&(c._visibility&=~ss,Ir(t));break;default:Ir(t)}(t.mode&2)!==Kt&&0<=qt&&0<=jt&&(ca||.05<ta)&&It(t,qt,jt,ta,Fe),yn(e),rl(l),ca=o,Fe=u}function E1(t,e){for(;$a!==null;){var l=$a,u=l,o=e,c=nn(),d=Gl(),g=fl(),L=hl();switch(u.tag){case 0:case 11:case 15:kh(u,o,jn);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(o=u.memoizedState.cachePool.pool,o!=null&&Si(o));break;case 24:Du(u.memoizedState.cache)}if((u.mode&2)!==Kt&&0<=qt&&0<=jt&&(ca||.05<ta)&&It(u,qt,jt,ta,Fe),yn(c),rl(d),ca=L,Fe=g,u=l.child,u!==null)u.return=l,$a=u;else t:for(l=t;$a!==null;){if(u=$a,c=u.sibling,d=u.return,Ll(u),u===l){$a=null;break t}if(c!==null){c.return=d,$a=c;break t}$a=d}}}function nd(t){var e=cm(t);if(e!=null){if(typeof e.memoizedProps["data-testname"]!="string")throw Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return e}if(t=gd(t),t===null)throw Error("Could not find React container within specified host subtree.");return t.stateNode.current}function ld(t,e){var l=t.tag;switch(e.$$typeof){case E2:if(t.type===e.value)return!0;break;case b2:t:{for(e=e.value,t=[t,0],l=0;l<t.length;){var u=t[l++],o=u.tag,c=t[l++],d=e[c];if(o!==5&&o!==26&&o!==27||!Pl(u)){for(;d!=null&&ld(u,d);)c++,d=e[c];if(c===e.length){e=!0;break t}else for(u=u.child;u!==null;)t.push(u,c),u=u.sibling}}e=!1}return e;case C2:if((l===5||l===26||l===27)&&gf(t.stateNode,e.value))return!0;break;case R2:if((l===5||l===6||l===26||l===27)&&(t=Sd(t),t!==null&&0<=t.indexOf(e.value)))return!0;break;case T2:if((l===5||l===26||l===27)&&(t=t.memoizedProps["data-testname"],typeof t=="string"&&t.toLowerCase()===e.value.toLowerCase()))return!0;break;default:throw Error("Invalid selector type specified.")}return!1}function kr(t){switch(t.$$typeof){case E2:return"<"+(q(t.value)||"Unknown")+">";case b2:return":has("+(kr(t)||"")+")";case C2:return'[role="'+t.value+'"]';case R2:return'"'+t.value+'"';case T2:return'[data-testname="'+t.value+'"]';default:throw Error("Invalid selector type specified.")}}function b1(t,e){var l=[];t=[t,0];for(var u=0;u<t.length;){var o=t[u++],c=o.tag,d=t[u++],g=e[d];if(c!==5&&c!==26&&c!==27||!Pl(o)){for(;g!=null&&ld(o,g);)d++,g=e[d];if(d===e.length)l.push(o);else for(o=o.child;o!==null;)t.push(o,d),o=o.sibling}}return l}function $r(t,e){if(!Tl)throw Error("Test selector API is not supported by this renderer.");t=nd(t),t=b1(t,e),e=[],t=Array.from(t);for(var l=0;l<t.length;){var u=t[l++],o=u.tag;if(o===5||o===26||o===27)Pl(u)||e.push(u.stateNode);else for(u=u.child;u!==null;)t.push(u),u=u.sibling}return e}function tm(){Tl&&A2.forEach(function(t){return t()})}function C1(){var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return t||rt.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),t}function Hn(t){if((fe&en)!==tn&&te!==0)return te&-te;var e=rt.T;return e!==null?(e._updatedFibers||(e._updatedFibers=new Set),e._updatedFibers.add(t),sr()):yd()}function T1(){if(ll===0)if((te&536870912)===0||re){var t=dt;dt<<=1,(dt&3932160)===0&&(dt=262144),ll=t}else ll=536870912;return t=Nl.current,t!==null&&(t.flags|=32),ll}function Ve(t,e,l){if(nh&&console.error("useInsertionEffect must not schedule updates."),ap&&(G2=!0),(t===qe&&(Oe===Fc||Oe===wc)||t.cancelPendingCommit!==null)&&(Xs(t,0),Di(t,te,ll,!1)),W(t,l),(fe&en)!==tn&&t===qe){if(yu)switch(e.tag){case 0:case 11:case 15:t=ne&&G(ne)||"Unknown",wy.has(t)||(wy.add(t),e=G(e)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",e,t,t));break;case 1:Fy||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Fy=!0)}}else pu&&F(t,e,l),Q1(e),t===qe&&((fe&en)===tn&&(_o|=l),ea===vo&&Di(t,te,ll,!1)),ln(t)}function id(t,e,l){if((fe&(en|si))!==tn)throw Error("Should not already be working.");if(te!==0&&ne!==null){var u=ne,o=ce();switch(Xp){case Fd:case Fc:var c=Md;Ke&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Suspended",c,o,"Components ⚛",void 0,"primary-light")):console.timeStamp("Suspended",c,o,"Components ⚛",void 0,"primary-light"));break;case wc:c=Md,Ke&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Action",c,o,"Components ⚛",void 0,"primary-light")):console.timeStamp("Action",c,o,"Components ⚛",void 0,"primary-light"));break;default:Ke&&(u=o-Md,3>u||console.timeStamp("Blocked",Md,o,"Components ⚛",void 0,5>u?"primary-light":10>u?"primary":100>u?"primary-dark":"error"))}}c=(l=!l&&(e&127)===0&&(e&t.expiredLanes)===0||E(t,e))?em(t,e):sd(t,e,!0);var d=l;do{if(c===hs){eh&&!l&&Di(t,e,0,!1),e=Oe,Md=za(),Xp=e;break}else{if(u=ce(),o=t.current.alternate,d&&!A1(o)){Jt(e),o=Nn,c=u,!Ke||c<=o||(pa?pa.run(console.timeStamp.bind(console,"Teared Render",o,c,de,"Scheduler ⚛","error")):console.timeStamp("Teared Render",o,c,de,"Scheduler ⚛","error")),Xu(e,u),c=sd(t,e,!1),d=!1;continue}if(c===Jc){if(d=e,t.errorRecoveryDisabledLanes&d)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){Jt(e),La(Nn,u,e,pa),Xu(e,u),e=g;t:{u=t,c=d,d=Wd;var L=ka&&u.current.memoizedState.isDehydrated;if(L&&(Xs(u,g).flags|=256),g=sd(u,g,!1),g!==Jc){if(Fm&&!L){u.errorRecoveryDisabledLanes|=c,_o|=c,c=vo;break t}u=Xn,Xn=d,u!==null&&(Xn===null?Xn=u:Xn.push.apply(Xn,u))}c=g}if(d=!1,c!==Jc)continue;u=ce()}}if(c===Jd){Jt(e),La(Nn,u,e,pa),Xu(e,u),Xs(t,0),Di(t,e,0,!0);break}t:{switch(l=t,c){case hs:case Jd:throw Error("Root did not complete. This is a bug in React.");case vo:if((e&4194048)!==e)break;case z2:Jt(e),Qa(Nn,u,e,pa),Xu(e,u),o=e,(o&127)!==0?u2=u:(o&4194048)!==0&&(s2=u),Di(l,e,ll,!go);break t;case Jc:Xn=null;break;case N2:case Gy:break;default:throw Error("Unknown root exit status.")}if(rt.actQueue!==null)od(l,o,e,Xn,Id,O2,ll,_o,Wc,c,null,null,Nn,u);else{if((e&62914560)===e&&(d=U2+Vy-ce(),10<d)){if(Di(l,e,ll,!go),w(l,0,!0)!==0)break t;Ki=e,l.timeoutHandle=In(R1.bind(null,l,o,Xn,Id,O2,e,ll,_o,Wc,go,c,"Throttled",Nn,u),d);break t}R1(l,o,Xn,Id,O2,e,ll,_o,Wc,go,c,null,Nn,u)}}}break}while(!0);ln(t)}function R1(t,e,l,u,o,c,d,g,L,nt,mt,vt,_t,xt){t.timeoutHandle=wl;var Ft=e.subtreeFlags,xe=null;if((Ft&8192||(Ft&16785408)===16785408)&&(xe=$s(),v1(e,c,xe),Ft=(c&62914560)===c?U2-ce():(c&4194048)===c?qy-ce():0,Ft=yf(xe,Ft),Ft!==null)){Ki=c,t.cancelPendingCommit=Ft(od.bind(null,t,e,c,l,u,o,d,g,L,mt,xe,vf(xe,t.containerInfo),_t,xt)),Di(t,c,d,!nt);return}od(t,e,c,l,u,o,d,g,L,mt,xe,vt,_t,xt)}function A1(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var o=l[u],c=o.getSnapshot;o=o.value;try{if(!qn(c(),o))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;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 Di(t,e,l,u){e&=~wm,e&=~_o,t.suspendedLanes|=e,t.pingedLanes&=~e,u&&(t.warmLanes|=e),u=t.expirationTimes;for(var o=e;0<o;){var c=31-Ea(o),d=1<<c;u[c]=-1,o&=~d}l!==0&&lt(t,l,e)}function gc(){return(fe&(en|si))===tn?(Mu(0),!1):!0}function Sc(){return(fe&(en|si))!==tn}function _c(){if(ne!==null){if(Oe===nl)var t=ne.return;else t=ne,nr(),Io(t),Lf=null,Yd=0,t=ne;for(;t!==null;)wr(t.alternate,t),t=t.return;ne=null}}function Xu(t,e){(t&127)!==0&&(Bc=e),(t&4194048)!==0&&(is=e)}function Xs(t,e){Ke&&(console.timeStamp("Blocking Track",.003,.003,"Blocking","Scheduler ⚛","primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition","Scheduler ⚛","primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense","Scheduler ⚛","primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle","Scheduler ⚛","primary-light"));var l=Nn;if(Nn=za(),te!==0&&0<l){if(Jt(te),ea===N2||ea===vo)Qa(l,Nn,e,pa);else{var u=Nn,o=pa;if(Ke&&!(u<=l)){var c=(e&738197653)===e?"tertiary-dark":"primary-dark",d=(e&536870912)===e?"Prewarm":(e&201326741)===e?"Interrupted Hydration":"Interrupted Render";o?o.run(console.timeStamp.bind(console,d,l,u,de,"Scheduler ⚛",c)):console.timeStamp(d,l,u,de,"Scheduler ⚛",c)}}Xu(te,Nn)}if(l=pa,pa=null,(e&127)!==0){pa=Nd,o=0<=gu&&gu<Bc?Bc:gu,u=0<=qc&&qc<Bc?Bc:qc,c=0<=u?u:0<=o?o:Nn,0<=u2&&(Jt(2),ul(u2,c,e,l)),l=o;var g=u,L=zd,nt=0<jf,mt=ho===1,vt=ho===2;if(o=Nn,u=Nd,c=Em,d=bm,Ke){if(de="Blocking",0<l?l>o&&(l=o):l=o,0<g?g>l&&(g=l):g=l,L!==null&&l>g){var _t=nt?"secondary-light":"warning";u?u.run(console.timeStamp.bind(console,nt?"Consecutive":"Event: "+L,g,l,de,"Scheduler ⚛",_t)):console.timeStamp(nt?"Consecutive":"Event: "+L,g,l,de,"Scheduler ⚛",_t)}o>l&&(g=mt?"error":(e&738197653)===e?"tertiary-light":"primary-light",mt=vt?"Promise Resolved":mt?"Cascading Update":5<o-l?"Update Blocked":"Update",vt=[],d!=null&&vt.push(["Component name",d]),c!=null&&vt.push(["Method name",c]),l={start:l,end:o,detail:{devtools:{properties:vt,track:de,trackGroup:"Scheduler ⚛",color:g}}},u?u.run(performance.measure.bind(performance,mt,l)):performance.measure(mt,l))}gu=-1.1,ho=0,bm=Em=null,u2=-1.1,jf=qc,qc=-1.1,Bc=za()}if((e&4194048)!==0&&(pa=Dd,o=0<=us&&us<is?is:us,l=0<=ai&&ai<is?is:ai,u=0<=mo&&mo<is?is:mo,c=0<=u?u:0<=l?l:Nn,0<=s2&&(Jt(256),ul(s2,c,e,pa)),vt=u,g=Vc,L=0<po,nt=Cm===2,c=Nn,u=Dd,d=Vp,mt=Yp,Ke&&(de="Transition",0<l?l>c&&(l=c):l=c,0<o?o>l&&(o=l):o=l,0<vt?vt>o&&(vt=o):vt=o,o>vt&&g!==null&&(_t=L?"secondary-light":"warning",u?u.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+g,vt,o,de,"Scheduler ⚛",_t)):console.timeStamp(L?"Consecutive":"Event: "+g,vt,o,de,"Scheduler ⚛",_t)),l>o&&(u?u.run(console.timeStamp.bind(console,"Action",o,l,de,"Scheduler ⚛","primary-dark")):console.timeStamp("Action",o,l,de,"Scheduler ⚛","primary-dark")),c>l&&(o=nt?"Promise Resolved":5<c-l?"Update Blocked":"Update",vt=[],mt!=null&&vt.push(["Component name",mt]),d!=null&&vt.push(["Method name",d]),l={start:l,end:c,detail:{devtools:{properties:vt,track:de,trackGroup:"Scheduler ⚛",color:"primary-light"}}},u?u.run(performance.measure.bind(performance,o,l)):performance.measure(o,l))),ai=us=-1.1,Cm=0,s2=-1.1,po=mo,mo=-1.1,is=za()),l=t.timeoutHandle,l!==wl&&(t.timeoutHandle=wl,pd(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Ki=0,_c(),qe=t,ne=l=Mi(t.current,null),te=e,Oe=nl,Dl=null,go=!1,eh=E(t,e),Fm=!1,ea=hs,Wc=ll=wm=_o=So=0,Xn=Wd=null,O2=!1,(e&8)!==0&&(e|=e&32),u=t.entangledLanes,u!==0)for(t=t.entanglements,u&=e;0<u;)o=31-Ea(u),c=1<<o,e|=t[o],u&=~c;return _u=e,Ds(),t=Np(),1e3<t-Ap&&(rt.recentlyCreatedOwnerStacks=0,Ap=t),Yi.discardPendingWarnings(),l}function N1(t,e){Lt=null,rt.H=Ld,rt.getCurrentStack=null,yu=!1,as=null,e===Qf||e===d2?(e=Eh(),Oe=Fd):e===Om?(e=Eh(),Oe=By):Oe=e===Km?Jm:e!==null&&typeof e=="object"&&typeof e.then=="function"?wd:D2,Dl=e;var l=ne;l===null?(ea=Jd,ic(t,dn(e,t.current))):l.mode&2&&lr(l)}function z1(){var t=Nl.current;return t===null?!0:(te&4194048)===te?li===null:(te&62914560)===te||(te&536870912)!==0?t===li:!1}function ud(){var t=rt.H;return rt.H=Ld,t===null?Ld:t}function D1(){var t=rt.A;return rt.A=a4,t}function tf(t){pa===null&&(pa=t._debugTask==null?null:t._debugTask)}function ef(){ea=vo,go||(te&4194048)!==te&&Nl.current!==null||(eh=!0),(So&134217727)===0&&(_o&134217727)===0||qe===null||Di(qe,te,ll,!1)}function sd(t,e,l){var u=fe;fe|=en;var o=ud(),c=D1();if(qe!==t||te!==e){if(pu){var d=t.memoizedUpdaters;0<d.size&&(Ls(t,te),d.clear()),ot(t,e)}Id=null,Xs(t,e)}e=!1,d=ea;t:do try{if(Oe!==nl&&ne!==null){var g=ne,L=Dl;switch(Oe){case Jm:_c(),d=z2;break t;case Fd:case Fc:case wc:case wd:Nl.current===null&&(e=!0);var nt=Oe;if(Oe=nl,Dl=null,Ks(t,g,L,nt),l&&eh){d=hs;break t}break;default:nt=Oe,Oe=nl,Dl=null,Ks(t,g,L,nt)}}M1(),d=ea;break}catch(mt){N1(t,mt)}while(!0);return e&&t.shellSuspendCounter++,nr(),fe=u,rt.H=o,rt.A=c,ne===null&&(qe=null,te=0,Ds()),d}function M1(){for(;ne!==null;)O1(ne)}function em(t,e){var l=fe;fe|=en;var u=ud(),o=D1();if(qe!==t||te!==e){if(pu){var c=t.memoizedUpdaters;0<c.size&&(Ls(t,te),c.clear()),ot(t,e)}Id=null,Pd=ce()+Wm,Xs(t,e)}else eh=E(t,e);t:do try{if(Oe!==nl&&ne!==null)e:switch(e=ne,c=Dl,Oe){case D2:Oe=nl,Dl=null,Ks(t,e,c,D2);break;case Fc:case wc:if(_h(c)){Oe=nl,Dl=null,U1(e);break}e=function(){Oe!==Fc&&Oe!==wc||qe!==t||(Oe=M2),ln(t)},c.then(e,e);break t;case Fd:Oe=M2;break t;case By:Oe=Zm;break t;case M2:_h(c)?(Oe=nl,Dl=null,U1(e)):(Oe=nl,Dl=null,Ks(t,e,c,M2));break;case Zm:var d=null;switch(ne.tag){case 26:d=ne.memoizedState;case 5:case 27:var g=ne,L=g.type,nt=g.pendingProps;if(d?s(d):su(g.stateNode,L,nt)){Oe=nl,Dl=null;var mt=g.sibling;if(mt!==null)ne=mt;else{var vt=g.return;vt!==null?(ne=vt,af(vt)):ne=null}break e}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Oe=nl,Dl=null,Ks(t,e,c,Zm);break;case wd:Oe=nl,Dl=null,Ks(t,e,c,wd);break;case Jm:_c(),ea=z2;break t;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}rt.actQueue!==null?M1():am();break}catch(_t){N1(t,_t)}while(!0);return nr(),rt.H=u,rt.A=o,fe=l,ne!==null?hs:(qe=null,te=0,Ds(),ea)}function am(){for(;ne!==null&&!Xt();)O1(ne)}function O1(t){var e=t.alternate;(t.mode&2)!==Kt?(Go(t),e=Ut(t,on,e,t,_u),lr(t)):e=Ut(t,on,e,t,_u),t.memoizedProps=t.pendingProps,e===null?af(t):ne=e}function U1(t){var e=Ut(t,nm,t);t.memoizedProps=t.pendingProps,e===null?af(t):ne=e}function nm(t){var e=t.alternate,l=(t.mode&2)!==Kt;switch(l&&Go(t),t.tag){case 15:case 0:e=Xl(e,t,t.pendingProps,t.type,void 0,te);break;case 11:e=Xl(e,t,t.pendingProps,t.type.render,t.ref,te);break;case 5:Io(t);default:wr(e,t),t=ne=ra(t,_u),e=on(e,t,_u)}return l&&lr(t),e}function Ks(t,e,l,u){nr(),Io(e),Lf=null,Yd=0;var o=e.return;try{if(n1(t,o,e,l,te)){ea=Jd,ic(t,dn(l,t.current)),ne=null;return}}catch(c){if(o!==null)throw ne=o,c;ea=Jd,ic(t,dn(l,t.current)),ne=null;return}e.flags&32768?(re||u===D2?t=!0:eh||(te&536870912)!==0?t=!1:(go=t=!0,(u===Fc||u===wc||u===Fd||u===wd)&&(u=Nl.current,u!==null&&u.tag===13&&(u.flags|=16384))),H1(e,t)):af(e)}function af(t){var e=t;do{if((e.flags&32768)!==0){H1(e,go);return}var l=e.alternate;if(t=e.return,Go(e),l=Ut(e,Wh,l,e,_u),(e.mode&2)!==Kt&&dh(e),l!==null){ne=l;return}if(e=e.sibling,e!==null){ne=e;return}ne=e=t}while(e!==null);ea===hs&&(ea=Gy)}function H1(t,e){do{var l=au(t.alternate,t);if(l!==null){l.flags&=32767,ne=l;return}if((t.mode&2)!==Kt){dh(t),l=t.actualDuration;for(var u=t.child;u!==null;)l+=u.actualDuration,u=u.sibling;t.actualDuration=l}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ne=t;return}ne=t=l}while(t!==null);ea=z2,ne=null}function od(t,e,l,u,o,c,d,g,L,nt,mt,vt,_t,xt){t.cancelPendingCommit=null;do Qs();while(Ha!==bo);if(Yi.flushLegacyContextWarning(),Yi.flushPendingUnsafeLifecycleWarnings(),(fe&(en|si))!==tn)throw Error("Should not already be working.");if(Jt(l),nt===Jc?La(_t,xt,l,pa):u!==null?Ra(_t,xt,l,u,e!==null&&e.alternate!==null&&e.alternate.memoizedState.isDehydrated&&(e.flags&256)!==0,pa):Re(_t,xt,l,pa),e!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),e===t.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(c=e.lanes|e.childLanes,c|=Hm,pt(t,l,c,d,g,L),t===qe&&(ne=qe=null,te=0),ah=e,Co=t,Ki=l,km=c,tp=o,Ly=u,$m=xt,Zy=vt,Qi=H2,Jy=null,e.actualDuration!==0||(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,K1(Hc,function(){return Ps(),Qi===H2&&(Qi=Im),V1(),null})):(t.callbackNode=null,t.callbackPriority=0),ls=null,fo=za(),vt!==null&&Za(xt,fo,vt,pa),u=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||u){u=rt.T,rt.T=null,o=Cn(),ia(2),d=fe,fe|=si;try{k2(t,e,l)}finally{fe=d,ia(o),rt.T=u}}Ha=jy,x1(),G1(),B1()}}function x1(){if(Ha===jy){Ha=bo;var t=Co,e=ah,l=Ki,u=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||u){u=rt.T,rt.T=null;var o=Cn();ia(2);var c=fe;fe|=si;try{kf=l,$f=t,xo(),h1(e,t),$f=kf=null,uu(t.containerInfo)}finally{fe=c,ia(o),rt.T=u}}t.current=e,Ha=Xy}}function G1(){if(Ha===Xy){Ha=bo;var t=Jy;if(t!==null){fo=za();var e=ns,l=fo;!Ke||l<=e||console.timeStamp(t,e,l,de,"Scheduler ⚛","secondary-light")}t=Co,e=ah,l=Ki;var u=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||u){u=rt.T,rt.T=null;var o=Cn();ia(2);var c=fe;fe|=si;try{kf=l,$f=t,xo(),Sa(t,e.alternate,e),$f=kf=null}finally{fe=c,ia(o),rt.T=u}}t=$m,e=Zy,ns=za(),t=e===null?t:fo,e=ns,l=Qi===Pm,u=pa,ls!==null?We(t,e,ls,!1,u):!Ke||e<=t||(u?u.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",t,e,de,"Scheduler ⚛",l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",t,e,de,"Scheduler ⚛",l?"error":"secondary-dark")),Ha=Ky}}function B1(){if(Ha===Qy||Ha===Ky){if(Ha===Qy){var t=ns;ns=za();var e=ns,l=Qi===Pm;!Ke||e<=t||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",t,e,de,"Scheduler ⚛",l?" error":"secondary-light"),Qi!==Pm&&(Qi=Yy)}Ha=bo,be(),t=Co;var u=ah;e=Ki,l=Ly;var o=u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;o?Ha=x2:(Ha=bo,ah=Co=null,q1(t,t.pendingLanes),Pc=0,$d=null);var c=t.pendingLanes;if(c===0&&(Eo=null),o||fd(t),c=Ct(e),u=u.stateNode,An&&typeof An.onCommitFiberRoot=="function")try{var d=(u.current.flags&128)===128;switch(c){case 2:var g=ye;break;case 8:g=Vi;break;case 32:g=Hc;break;case 268435456:g=Rp;break;default:g=Hc}An.onCommitFiberRoot(Gf,u,g,d)}catch(vt){mu||(mu=!0,console.error("React instrumentation encountered an error: %o",vt))}if(pu&&t.memoizedUpdaters.clear(),tm(),l!==null){d=rt.T,g=Cn(),ia(2),rt.T=null;try{var L=t.onRecoverableError;for(u=0;u<l.length;u++){var nt=l[u],mt=lm(nt.stack);Ut(nt.source,L,nt.value,mt)}}finally{rt.T=d,ia(g)}}(Ki&3)!==0&&Qs(),ln(t),c=t.pendingLanes,(e&261930)!==0&&(c&42)!==0?(c2=!0,t===ep?kd++:(kd=0,ep=t)):kd=0,o||Xu(e,ns),ka&&bd(),Mu(0)}}function lm(t){return t={componentStack:t},Object.defineProperty(t,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),t}function q1(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Du(e)))}function Qs(){return x1(),G1(),B1(),V1()}function V1(){if(Ha!==x2)return!1;var t=Co,e=km;km=0;var l=Ct(Ki),u=32>l?32:l;l=rt.T;var o=Cn();try{ia(u),rt.T=null;var c=tp;tp=null,u=Co;var d=Ki;if(Ha=bo,ah=Co=null,Ki=0,(fe&(en|si))!==tn)throw Error("Cannot flush passive effects while already rendering.");Jt(d),ap=!0,G2=!1;var g=0;if(ls=null,g=ce(),Qi===Yy){var L=ns,nt=g;!Ke||nt<=L||(jp?jp.run(console.timeStamp.bind(console,"Animating",L,nt,de,"Scheduler ⚛","secondary-dark")):console.timeStamp("Animating",L,nt,de,"Scheduler ⚛","secondary-dark"))}else{L=ns,nt=g;var mt=Qi===Im;!Ke||nt<=L||(pa?pa.run(console.timeStamp.bind(console,mt?"Waiting for Paint":"Waiting",L,nt,de,"Scheduler ⚛","secondary-light")):console.timeStamp(mt?"Waiting for Paint":"Waiting",L,nt,de,"Scheduler ⚛","secondary-light"))}L=fe,fe|=si;var vt=u.current;xo(),S1(vt);var _t=u.current;vt=$m,xo(),p1(u,_t,d,c,vt),fd(u),fe=L;var xt=ce();if(_t=g,vt=pa,ls!==null?We(_t,xt,ls,!0,vt):!Ke||xt<=_t||(vt?vt.run(console.timeStamp.bind(console,"Remaining Effects",_t,xt,de,"Scheduler ⚛","secondary-dark")):console.timeStamp("Remaining Effects",_t,xt,de,"Scheduler ⚛","secondary-dark")),Xu(d,xt),Mu(0,!1),G2?u===$d?Pc++:(Pc=0,$d=u):Pc=0,G2=ap=!1,An&&typeof An.onPostCommitFiberRoot=="function")try{An.onPostCommitFiberRoot(Gf,u)}catch(xe){mu||(mu=!0,console.error("React instrumentation encountered an error: %o",xe))}var Ft=u.current.stateNode;return Ft.effectDuration=0,Ft.passiveEffectDuration=0,!0}finally{ia(o),rt.T=l,q1(t,e)}}function Y1(t,e,l){e=dn(l,e),mh(e),e=Br(t.stateNode,e,2),t=Qn(t,e,2),t!==null&&(W(t,2),ln(t))}function Se(t,e,l){if(nh=!1,t.tag===3)Y1(t,t,l);else{for(;e!==null;){if(e.tag===3){Y1(e,t,l);return}if(e.tag===1){var u=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Eo===null||!Eo.has(u))){t=dn(l,t),mh(t),l=qr(2),u=Qn(e,l,2),u!==null&&(Vr(l,u,e,t),W(u,2),ln(u));return}}e=e.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
127
+
128
+ Error message:
129
+
130
+ %s`,l)}}function cd(t,e,l){var u=t.pingCache;if(u===null){u=t.pingCache=new n4;var o=new Set;u.set(e,o)}else o=u.get(e),o===void 0&&(o=new Set,u.set(e,o));o.has(l)||(Fm=!0,o.add(l),u=im.bind(null,t,e,l),pu&&Ls(t,l),e.then(u,u))}function im(t,e,l){var u=t.pingCache;u!==null&&u.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,(l&127)!==0?0>gu&&(Bc=gu=za(),Nd=i2("Promise Resolved"),ho=2):(l&4194048)!==0&&0>ai&&(is=ai=za(),Dd=i2("Promise Resolved"),Cm=2),C1()&&rt.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
131
+
132
+ When testing, code that resolves suspended data should be wrapped into act(...):
133
+
134
+ act(() => {
135
+ /* finish loading suspended data */
136
+ });
137
+ /* assert on the output */
138
+
139
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),qe===t&&(te&l)===l&&(ea===vo||ea===N2&&(te&62914560)===te&&ce()-U2<Vy?(fe&en)===tn&&Xs(t,0):wm|=l,Wc===te&&(Wc=0)),ln(t)}function j1(t,e){e===0&&(e=Q()),t=Fa(t,e),t!==null&&(W(t,e),ln(t))}function X1(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),j1(t,l)}function um(t,e){var l=0;switch(t.tag){case 31:case 13:var u=t.stateNode,o=t.memoizedState;o!==null&&(l=o.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(e),j1(t,l)}function rd(t,e,l){if((e.subtreeFlags&67117056)!==0)for(e=e.child;e!==null;){var u=t,o=e,c=o.type===ff;c=l||c,o.tag!==22?o.flags&67108864?c&&Ut(o,wn,u,o):rd(u,o,c):o.memoizedState===null&&(c&&o.flags&8192?Ut(o,wn,u,o):o.subtreeFlags&67108864&&Ut(o,rd,u,o,c)),e=e.sibling}}function wn(t,e){zt(!0);try{lu(e),_1(e),m1(t,e.alternate,e,!1),y1(t,e,0,null,!1,0)}finally{zt(!1)}}function fd(t){var e=!0;t.current.mode&24||(e=!1),rd(t,t.current,e)}function nf(t){if((fe&en)===tn){var e=t.tag;if(e===3||e===1||e===0||e===11||e===14||e===15){if(e=G(t)||"ReactComponent",B2!==null){if(B2.has(e))return;B2.add(e)}else B2=new Set([e]);Ut(t,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Ls(t,e){pu&&t.memoizedUpdaters.forEach(function(l){F(t,l,e)})}function K1(t,e){var l=rt.actQueue;return l!==null?(l.push(e),u4):Bt(t,e)}function Q1(t){C1()&&rt.actQueue===null&&Ut(t,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
140
+
141
+ When testing, code that causes React state updates should be wrapped into act(...):
142
+
143
+ act(() => {
144
+ /* fire events that update state */
145
+ });
146
+ /* assert on the output */
147
+
148
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,G(t))})}function Ku(t){if(oi===null)return t;var e=oi(t);return e===void 0?t:e.current}function lf(t){if(oi===null)return t;var e=oi(t);return e===void 0?t!=null&&typeof t.render=="function"&&(e=Ku(t.render),t.render!==e)?(e={$$typeof:ja,render:e},t.displayName!==void 0&&(e.displayName=t.displayName),e):t:e.current}function hd(t,e){if(oi===null)return!1;var l=t.elementType;e=e.type;var u=!1,o=typeof e=="object"&&e!==null?e.$$typeof:null;switch(t.tag){case 1:typeof e=="function"&&(u=!0);break;case 0:(typeof e=="function"||o===bn)&&(u=!0);break;case 11:(o===ja||o===bn)&&(u=!0);break;case 14:case 15:(o===ws||o===bn)&&(u=!0);break;default:return!1}return!!(u&&(t=oi(l),t!==void 0&&t===oi(e)))}function L1(t){oi!==null&&typeof WeakSet=="function"&&(lh===null&&(lh=new WeakSet),lh.add(t))}function Z1(t,e,l){do{var u=t,o=u.alternate,c=u.child,d=u.sibling,g=u.tag;u=u.type;var L=null;switch(g){case 0:case 15:case 1:L=u;break;case 11:L=u.render}if(oi===null)throw Error("Expected resolveFamily to be set during hot reload.");var nt=!1;if(u=!1,L!==null&&(L=oi(L),L!==void 0&&(l.has(L)?u=!0:e.has(L)&&(g===1?u=!0:nt=!0))),lh!==null&&(lh.has(t)||o!==null&&lh.has(o))&&(u=!0),u&&(t._debugNeedsRemount=!0),(u||nt)&&(o=Fa(t,2),o!==null&&Ve(o,t,2)),c===null||u||Z1(c,e,l),d===null)break;t=d}while(!0)}function sm(t,e,l,u){this.tag=t,this.key=l,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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Wy||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function uf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mi(t,e){var l=t.alternate;switch(l===null?(l=C(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l._debugOwner=t._debugOwner,l._debugStack=t._debugStack,l._debugTask=t._debugTask,l._debugHookTypes=t._debugHookTypes,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext,_debugThenableState:e._debugThenableState},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l.selfBaseDuration=t.selfBaseDuration,l.treeBaseDuration=t.treeBaseDuration,l._debugInfo=t._debugInfo,l._debugNeedsRemount=t._debugNeedsRemount,l.tag){case 0:case 15:l.type=Ku(t.type);break;case 1:l.type=Ku(t.type);break;case 11:l.type=lf(t.type)}return l}function ra(t,e){t.flags&=65011714;var l=t.alternate;return l===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.selfBaseDuration=0,t.treeBaseDuration=0):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext,_debugThenableState:e._debugThenableState},t.selfBaseDuration=l.selfBaseDuration,t.treeBaseDuration=l.treeBaseDuration),t}function sf(t,e,l,u,o,c){var d=0,g=t;if(typeof t=="function")uf(t)&&(d=1),g=Ku(g);else if(typeof t=="string")ze&&h?(d=Dn(),d=qi(t,l,d)?26:Et(t)?27:5):ze?(d=Dn(),d=qi(t,l,d)?26:5):d=h&&Et(t)?27:5;else t:switch(t){case Tc:return e=C(31,l,e,o),e.elementType=Tc,e.lanes=c,e;case Fs:return iu(l.children,o,c,e);case ff:d=8,o|=24;break;case dd:return t=l,u=o,typeof t.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id),e=C(12,t,e,u|2),e.elementType=dd,e.lanes=c,e.stateNode={effectDuration:0,passiveEffectDuration:0},e;case hf:return e=C(13,l,e,o),e.elementType=hf,e.lanes=c,e;case md:return e=C(19,l,e,o),e.elementType=md,e.lanes=c,e;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case la:d=10;break t;case Zu:d=9;break t;case ja:d=11,g=lf(g);break t;case ws:d=14;break t;case bn:d=16,g=null;break t}g="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null?l="null":fa(t)?l="array":t!==void 0&&t.$$typeof===Oi?(l="<"+(q(t.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):l=typeof t,d=u?typeof u.tag=="number"?G(u):typeof u.name=="string"?u.name:null:null,d&&(g+=`
149
+
150
+ Check the render method of \``+d+"`."),d=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+g)),g=null}return e=C(d,l,e,o),e.elementType=t,e.type=g,e.lanes=c,e._debugOwner=u,e}function of(t,e,l){return e=sf(t.type,t.key,t.props,t._owner,e,l),e._debugOwner=t._owner,e._debugStack=t._debugStack,e._debugTask=t._debugTask,e}function iu(t,e,l,u){return t=C(7,t,u,e),t.lanes=l,t}function cf(t,e,l){return t=C(6,t,null,e),t.lanes=l,t}function Qu(t){var e=C(18,null,null,Kt);return e.stateNode=t,e}function Ec(t,e,l){return e=C(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Zs(t,e,l,u,o,c,d,g,L){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=wl,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=K(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=K(0),this.hiddenUpdates=K(null),this.identifierPrefix=u,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,t=this.pendingUpdatersLaneMap=[],e=0;31>e;e++)t.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}function Lu(t,e,l,u,o,c,d,g,L,nt,mt,vt){return t=new Zs(t,e,l,d,L,nt,mt,vt,g),e=1,c===!0&&(e|=24),c=C(3,null,null,e|2),t.current=c,c.stateNode=t,e=Rs(),Si(e),t.pooledCache=e,Si(e),c.memoizedState={element:u,isDehydrated:l,cache:e},mr(c),t}function _n(t){return""+t}function J1(t){return t?(t=Xe,t):Xe}function F1(t,e,l,u){return bc(e.current,2,t,e,l,u),2}function bc(t,e,l,u,o,c){if(An&&typeof An.onScheduleFiberRoot=="function")try{An.onScheduleFiberRoot(Gf,u,l)}catch(d){mu||(mu=!0,console.error("React instrumentation encountered an error: %o",d))}o=J1(o),u.context===null?u.context=o:u.pendingContext=o,yu&&as!==null&&!Iy&&(Iy=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
151
+
152
+ Check the render method of %s.`,G(as)||"Unknown")),u=Ei(e),u.payload={element:l},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",c),u.callback=c),l=Qn(t,u,e),l!==null&&(cl(e,"root.render()",null),Ve(l,t,e),Ms(l,t,e))}function Cc(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Js(t,e){Cc(t,e),(t=t.alternate)&&Cc(t,e)}function rf(){return as}var ae={},om=ya,En=Cp(),Te=Object.assign,w1=Symbol.for("react.element"),Oi=Symbol.for("react.transitional.element"),Ui=Symbol.for("react.portal"),Fs=Symbol.for("react.fragment"),ff=Symbol.for("react.strict_mode"),dd=Symbol.for("react.profiler"),Zu=Symbol.for("react.consumer"),la=Symbol.for("react.context"),ja=Symbol.for("react.forward_ref"),hf=Symbol.for("react.suspense"),md=Symbol.for("react.suspense_list"),ws=Symbol.for("react.memo"),bn=Symbol.for("react.lazy"),Tc=Symbol.for("react.activity"),W1=Symbol.for("react.memo_cache_sentinel"),Ju=Symbol.iterator,Ws=Symbol.for("react.client.reference"),fa=Array.isArray,rt=om.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Wn=f.rendererVersion,Pn=f.rendererPackageName,Hi=f.extraDevToolsConfig,rn=f.getPublicInstance,Fl=f.getRootHostContext,Xa=f.getChildHostContext,Rc=f.prepareForCommit,uu=f.resetAfterCommit,df=f.createInstance;f.cloneMutableInstance;var _a=f.appendInitialChild,Ye=f.finalizeInitialChildren,le=f.shouldSetTextContent,xi=f.createTextInstance;f.cloneMutableTextInstance;var In=f.scheduleTimeout,pd=f.cancelTimeout,wl=f.noTimeout,fn=f.isPrimaryRenderer;f.warnsIfNotActing;var je=f.supportsMutation,Wl=f.supportsPersistence,ka=f.supportsHydration,cm=f.getInstanceFromNode;f.beforeActiveInstanceBlur;var Ze=f.preparePortalMount;f.prepareScopeUpdate,f.getInstanceFromScope;var ia=f.setCurrentUpdatePriority,Cn=f.getCurrentUpdatePriority,yd=f.resolveUpdatePriority,Ps=f.trackSchedulerEvent,Fu=f.resolveEventType,Cl=f.resolveEventTimeStamp,Ac=f.shouldAttemptEagerTransition,vd=f.detachDeletedInstance;f.requestPostPaintCallback;var Is=f.maySuspendCommit,ks=f.maySuspendCommitOnUpdate,mf=f.maySuspendCommitInSyncRender,su=f.preloadInstance,$s=f.startSuspendingCommit,pf=f.suspendInstance;f.suspendOnActiveViewTransition;var yf=f.waitForCommitToBeReady,vf=f.getSuspendedCommitReason,kn=f.NotPendingTransition,$n=f.HostTransitionContext,Nc=f.resetFormInstance,wu=f.bindToConsole,P1=f.supportsMicrotasks,tl=f.scheduleMicrotask,Tl=f.supportsTestSelectors,gd=f.findFiberRoot,ou=f.getBoundingRect,Sd=f.getTextContent,Pl=f.isHiddenSubtree,gf=f.matchAccessibilityRole,xn=f.setFocusIfFocusable,el=f.setupIntersectionObserver,ua=f.appendChild,Gi=f.appendChildToContainer,Wt=f.commitTextUpdate,Me=f.commitMount,ha=f.commitUpdate,Sf=f.insertBefore,to=f.insertInContainerBefore,Wu=f.removeChild,_f=f.removeChildFromContainer,eo=f.resetTextContent,ao=f.hideInstance,rm=f.hideTextInstance,zc=f.unhideInstance,I1=f.unhideTextInstance;f.cancelViewTransitionName,f.cancelRootViewTransitionName,f.restoreRootViewTransitionName,f.cloneRootViewTransitionContainer,f.removeRootViewTransitionClone,f.measureClonedInstance,f.hasInstanceChanged,f.hasInstanceAffectedParent,f.startViewTransition,f.startGestureTransition,f.stopViewTransition,f.getCurrentGestureOffset,f.createViewTransitionInstance;var _d=f.clearContainer;f.createFragmentInstance,f.updateFragmentInstanceFiber,f.commitNewChildToFragmentInstance,f.deleteChildFromFragmentInstance;var k1=f.cloneInstance,Ef=f.createContainerChildSet,bf=f.appendChildToContainerChildSet,da=f.finalizeContainerChildren,Cf=f.replaceContainerChildren,Il=f.cloneHiddenInstance,sa=f.cloneHiddenTextInstance,Dc=f.isSuspenseInstancePending,Tf=f.isSuspenseInstanceFallback,Na=f.getSuspenseInstanceFallbackErrorDetails,ma=f.registerSuspenseInstanceRetry,Tn=f.canHydrateFormStateMarker,Rl=f.isFormStateMarkerMatching,cu=f.getNextHydratableSibling,fm=f.getNextHydratableSiblingAfterSingleton,Rf=f.getFirstHydratableChild,Af=f.getFirstHydratableChildWithinContainer,Nf=f.getFirstHydratableChildWithinActivityInstance,zf=f.getFirstHydratableChildWithinSuspenseInstance,Df=f.getFirstHydratableChildWithinSingleton,Mc=f.canHydrateInstance,hm=f.canHydrateTextInstance,ie=f.canHydrateActivityInstance,He=f.canHydrateSuspenseInstance,ue=f.hydrateInstance,oe=f.hydrateTextInstance,Ne=f.hydrateActivityInstance,Gn=f.hydrateSuspenseInstance,ru=f.getNextHydratableInstanceAfterActivityInstance,Pu=f.getNextHydratableInstanceAfterSuspenseInstance,Ed=f.commitHydratedInstance,Bi=f.commitHydratedContainer,ke=f.commitHydratedActivityInstance,fu=f.commitHydratedSuspenseInstance,Iu=f.finalizeHydratedChildren,bd=f.flushHydrationEvents;f.clearActivityBoundary;var Bn=f.clearSuspenseBoundary;f.clearActivityBoundaryFromContainer;var no=f.clearSuspenseBoundaryFromContainer,Oc=f.hideDehydratedBoundary,Rn=f.unhideDehydratedBoundary,Mf=f.shouldDeleteUnhydratedTailInstances,Uc=f.diffHydratedPropsForDevWarnings,Cd=f.diffHydratedTextForDevWarnings,lo=f.describeHydratableInstanceForDevWarnings,Of=f.validateHydratableInstance,hu=f.validateHydratableTextInstance,ze=f.supportsResources,qi=f.isHostHoistableType,du=f.getHoistableRoot,kl=f.getResource,Uf=f.acquireResource,Hf=f.releaseResource,$1=f.hydrateHoistable,io=f.mountHoistable,xf=f.unmountHoistable,a=f.createHoistableInstance,n=f.prepareToCommitHoistables,i=f.mayResourceSuspendCommit,s=f.preloadResource,r=f.suspendResource,h=f.supportsSingletons,B=f.resolveSingletonInstance,I=f.acquireSingletonInstance,yt=f.releaseSingletonInstance,Et=f.isHostSingletonType,Nt=f.isSingletonScope,At=[],Mt=[],Yt=-1,Xe={};Object.freeze(Xe);var Ea=Math.clz32?Math.clz32:st,ku=Math.log,ct=Math.LN2,ut=256,dt=262144,Rt=4194304,Bt=En.unstable_scheduleCallback,Je=En.unstable_cancelCallback,Xt=En.unstable_shouldYield,be=En.unstable_requestPaint,ce=En.unstable_now,ye=En.unstable_ImmediatePriority,Vi=En.unstable_UserBlockingPriority,Hc=En.unstable_NormalPriority,Rp=En.unstable_IdlePriority,X3=En.log,K3=En.unstable_setDisableYieldValue,Gf=null,An=null,mu=!1,pu=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ap=0;if(typeof performance=="object"&&typeof performance.now=="function")var Q3=performance,Np=function(){return Q3.now()};else{var L3=Date;Np=function(){return L3.now()}}var qn=typeof Object.is=="function"?Object.is:Vt,zp=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)},dm=Object.prototype.hasOwnProperty,Ke=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",de="Blocking",uo=!1,$u={color:"primary",properties:null,tooltipText:"",track:"Components ⚛"},so={start:-0,end:-0,detail:{devtools:$u}},Z3=["Changed Props",""],J3=["Changed Props","This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."],Td=0,Dp,Mp,Op,Up,Hp,xp,Gp;Pe.__reactDisabledLog=!0;var mm,Bp,pm=!1,ym=new(typeof WeakMap=="function"?WeakMap:Map),vm=new WeakMap,Bf=[],qf=0,t2=null,Rd=0,$l=[],ti=0,xc=null,ts=1,es="",oo=J(null),Ad=J(null),co=J(null),e2=J(null),qp=/["'&<>\n\t]|^\s|\s$/,as=null,yu=!1,hn=null,$e=null,re=!1,vu=!1,Al=null,ro=null,ei=!1,gm=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Kt=0,a2=J(null),Sm=J(null),_m=J(null),n2={},l2=null,Vf=null,Yf=!1,F3=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,u){t.push(u)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},w3=En.unstable_scheduleCallback,W3=En.unstable_NormalPriority,oa={$$typeof:la,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},za=En.unstable_now,i2=console.createTask?console.createTask:function(){return null},Nn=-0,fo=-0,ns=-0,ls=null,Vn=-1.1,Gc=-0,ta=-0,qt=-1.1,jt=-1.1,Fe=null,ca=!1,Bc=-0,gu=-1.1,Nd=null,ho=0,Em=null,bm=null,qc=-1.1,zd=null,jf=-1.1,u2=-1.1,is=-0,us=-1.1,ai=-1.1,Cm=0,Dd=null,Vp=null,Yp=null,mo=-1.1,Vc=null,po=-1.1,s2=-1.1,jp=null,Xp=0,Md=-1.1,o2=!1,c2=!1,r2=null,Xf=null,Tm=!1,Rm=!1,f2=!1,Am=!1,Yc=0,Nm={},Od=null,zm=0,jc=0,Kf=null,Kp=rt.S;rt.S=function(t,e){if(qy=ce(),typeof e=="object"&&e!==null&&typeof e.then=="function"){if(0>us&&0>ai){us=za();var l=Cl(),u=Fu();(l!==po||u!==Vc)&&(po=-1.1),mo=l,Vc=u}Z0(t,e)}Kp!==null&&Kp(t,e)};var Xc=J(null),Yi={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ud=[],Hd=[],xd=[],Gd=[],Bd=[],qd=[],Kc=new Set;Yi.recordUnsafeLifecycleWarnings=function(t,e){Kc.has(t.type)||(typeof e.componentWillMount=="function"&&e.componentWillMount.__suppressDeprecationWarning!==!0&&Ud.push(t),t.mode&8&&typeof e.UNSAFE_componentWillMount=="function"&&Hd.push(t),typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&xd.push(t),t.mode&8&&typeof e.UNSAFE_componentWillReceiveProps=="function"&&Gd.push(t),typeof e.componentWillUpdate=="function"&&e.componentWillUpdate.__suppressDeprecationWarning!==!0&&Bd.push(t),t.mode&8&&typeof e.UNSAFE_componentWillUpdate=="function"&&qd.push(t))},Yi.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<Ud.length&&(Ud.forEach(function(g){t.add(G(g)||"Component"),Kc.add(g.type)}),Ud=[]);var e=new Set;0<Hd.length&&(Hd.forEach(function(g){e.add(G(g)||"Component"),Kc.add(g.type)}),Hd=[]);var l=new Set;0<xd.length&&(xd.forEach(function(g){l.add(G(g)||"Component"),Kc.add(g.type)}),xd=[]);var u=new Set;0<Gd.length&&(Gd.forEach(function(g){u.add(G(g)||"Component"),Kc.add(g.type)}),Gd=[]);var o=new Set;0<Bd.length&&(Bd.forEach(function(g){o.add(G(g)||"Component"),Kc.add(g.type)}),Bd=[]);var c=new Set;if(0<qd.length&&(qd.forEach(function(g){c.add(G(g)||"Component"),Kc.add(g.type)}),qd=[]),0<e.size){var d=Y(e);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
153
+
154
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
155
+
156
+ Please update the following components: %s`,d)}0<u.size&&(d=Y(u),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
157
+
158
+ * Move data fetching code or side effects to componentDidUpdate.
159
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
160
+
161
+ Please update the following components: %s`,d)),0<c.size&&(d=Y(c),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
162
+
163
+ * Move data fetching code or side effects to componentDidUpdate.
164
+
165
+ Please update the following components: %s`,d)),0<t.size&&(d=Y(t),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
166
+
167
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
168
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
169
+
170
+ Please update the following components: %s`,d)),0<l.size&&(d=Y(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
171
+
172
+ * Move data fetching code or side effects to componentDidUpdate.
173
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
174
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
175
+
176
+ Please update the following components: %s`,d)),0<o.size&&(d=Y(o),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
177
+
178
+ * Move data fetching code or side effects to componentDidUpdate.
179
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
180
+
181
+ Please update the following components: %s`,d))};var h2=new Map,Qp=new Set;Yi.recordLegacyContextWarning=function(t,e){for(var l=null,u=t;u!==null;)u.mode&8&&(l=u),u=u.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Qp.has(t.type)&&(u=h2.get(l),t.type.contextTypes!=null||t.type.childContextTypes!=null||e!==null&&typeof e.getChildContext=="function")&&(u===void 0&&(u=[],h2.set(l,u)),u.push(t))},Yi.flushLegacyContextWarning=function(){h2.forEach(function(t){if(t.length!==0){var e=t[0],l=new Set;t.forEach(function(o){l.add(G(o)||"Component"),Qp.add(o.type)});var u=Y(l);Ut(e,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
182
+
183
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
184
+
185
+ Please update the following components: %s
186
+
187
+ Learn more about this warning here: https://react.dev/link/legacy-context`,u)})}})},Yi.discardPendingWarnings=function(){Ud=[],Hd=[],xd=[],Gd=[],Bd=[],qd=[],h2=new Map};var Lp={react_stack_bottom_frame:function(t,e,l){var u=yu;yu=!0;try{return t(e,l)}finally{yu=u}}},Dm=Lp.react_stack_bottom_frame.bind(Lp),Zp={react_stack_bottom_frame:function(t){var e=yu;yu=!0;try{return t.render()}finally{yu=e}}},Jp=Zp.react_stack_bottom_frame.bind(Zp),Fp={react_stack_bottom_frame:function(t,e){try{e.componentDidMount()}catch(l){Se(t,t.return,l)}}},Mm=Fp.react_stack_bottom_frame.bind(Fp),wp={react_stack_bottom_frame:function(t,e,l,u,o){try{e.componentDidUpdate(l,u,o)}catch(c){Se(t,t.return,c)}}},Wp=wp.react_stack_bottom_frame.bind(wp),Pp={react_stack_bottom_frame:function(t,e){var l=e.stack;t.componentDidCatch(e.value,{componentStack:l!==null?l:""})}},P3=Pp.react_stack_bottom_frame.bind(Pp),Ip={react_stack_bottom_frame:function(t,e,l){try{l.componentWillUnmount()}catch(u){Se(t,e,u)}}},kp=Ip.react_stack_bottom_frame.bind(Ip),$p={react_stack_bottom_frame:function(t){var e=t.create;return t=t.inst,e=e(),t.destroy=e}},I3=$p.react_stack_bottom_frame.bind($p),ty={react_stack_bottom_frame:function(t,e,l){try{l()}catch(u){Se(t,e,u)}}},k3=ty.react_stack_bottom_frame.bind(ty),ey={react_stack_bottom_frame:function(t){var e=t._init;return e(t._payload)}},$3=ey.react_stack_bottom_frame.bind(ey),Qf=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Om=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),d2=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),m2={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Qc=null,Vd=!1,Lf=null,Yd=0,$t=null,Um,ay=Um=!1,ny={},ly={},iy={};H=function(t,e,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var u=G(t),o=u||"null";if(!ny[o]){ny[o]=!0,l=l._owner,t=t._debugOwner;var c="";t&&typeof t.tag=="number"&&(o=G(t))&&(c=`
188
+
189
+ Check the render method of \``+o+"`."),c||u&&(c=`
190
+
191
+ Check the top-level render call using <`+u+">.");var d="";l!=null&&t!==l&&(u=null,typeof l.tag=="number"?u=G(l):typeof l.name=="string"&&(u=l.name),u&&(d=" It was passed a child from "+u+".")),Ut(e,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',c,d)})}}};var Lc=Qo(!0),uy=Qo(!1),jd=1,ss=2,ni=[],Zf=0,Hm=0,sy=0,oy=1,cy=2,xm=3,yo=!1,ry=!1,Gm=null,Bm=!1,Jf=J(null),p2=J(0),Nl=J(null),li=null,Ff=1,Xd=2,ba=J(0),y2=0,ii=1,Yn=2,zl=4,jn=8,wf,fy=new Set,hy=new Set,qm=new Set,dy=new Set,os=0,Lt=null,Be=null,Da=null,v2=!1,Wf=!1,Zc=!1,g2=0,Kd=0,cs=null,t4=0,e4=25,ht=null,ui=null,rs=-1,Qd=!1,Ld={readContext:De,use:Ee,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Ld.useEffectEvent=Ie;var Vm=null,my=null,Ym=null,py=null,Su=null,ji=null,S2=null;Vm={readContext:function(t){return De(t)},use:Ee,useCallback:function(t,e){return ht="useCallback",wt(),vn(e),Or(t,e)},useContext:function(t){return ht="useContext",wt(),De(t)},useEffect:function(t,e){return ht="useEffect",wt(),vn(e),gn(t,e)},useImperativeHandle:function(t,e,l){return ht="useImperativeHandle",wt(),vn(l),Mr(t,e,l)},useInsertionEffect:function(t,e){ht="useInsertionEffect",wt(),vn(e),Ci(4,Yn,t,e)},useLayoutEffect:function(t,e){return ht="useLayoutEffect",wt(),vn(e),Ti(t,e)},useMemo:function(t,e){ht="useMemo",wt(),vn(e);var l=rt.H;rt.H=Su;try{return Ur(t,e)}finally{rt.H=l}},useReducer:function(t,e,l){ht="useReducer",wt();var u=rt.H;rt.H=Su;try{return Cr(t,e,l)}finally{rt.H=u}},useRef:function(t){return ht="useRef",wt(),gl(t)},useState:function(t){ht="useState",wt();var e=rt.H;rt.H=Su;try{return xs(t)}finally{rt.H=e}},useDebugValue:function(){ht="useDebugValue",wt()},useDeferredValue:function(t,e){return ht="useDeferredValue",wt(),ec(t,e)},useTransition:function(){return ht="useTransition",wt(),xr()},useSyncExternalStore:function(t,e,l){return ht="useSyncExternalStore",wt(),Tr(t,e,l)},useId:function(){return ht="useId",wt(),lc()},useFormState:function(t,e){return ht="useFormState",wt(),Us(),aa(t,e)},useActionState:function(t,e){return ht="useActionState",wt(),aa(t,e)},useOptimistic:function(t){return ht="useOptimistic",wt(),Nr(t)},useHostTransitionStatus:$i,useMemoCache:Hu,useCacheRefresh:function(){return ht="useCacheRefresh",wt(),tu()},useEffectEvent:function(t){return ht="useEffectEvent",wt(),Pi(t)}},my={readContext:function(t){return De(t)},use:Ee,useCallback:function(t,e){return ht="useCallback",bt(),Or(t,e)},useContext:function(t){return ht="useContext",bt(),De(t)},useEffect:function(t,e){return ht="useEffect",bt(),gn(t,e)},useImperativeHandle:function(t,e,l){return ht="useImperativeHandle",bt(),Mr(t,e,l)},useInsertionEffect:function(t,e){ht="useInsertionEffect",bt(),Ci(4,Yn,t,e)},useLayoutEffect:function(t,e){return ht="useLayoutEffect",bt(),Ti(t,e)},useMemo:function(t,e){ht="useMemo",bt();var l=rt.H;rt.H=Su;try{return Ur(t,e)}finally{rt.H=l}},useReducer:function(t,e,l){ht="useReducer",bt();var u=rt.H;rt.H=Su;try{return Cr(t,e,l)}finally{rt.H=u}},useRef:function(t){return ht="useRef",bt(),gl(t)},useState:function(t){ht="useState",bt();var e=rt.H;rt.H=Su;try{return xs(t)}finally{rt.H=e}},useDebugValue:function(){ht="useDebugValue",bt()},useDeferredValue:function(t,e){return ht="useDeferredValue",bt(),ec(t,e)},useTransition:function(){return ht="useTransition",bt(),xr()},useSyncExternalStore:function(t,e,l){return ht="useSyncExternalStore",bt(),Tr(t,e,l)},useId:function(){return ht="useId",bt(),lc()},useActionState:function(t,e){return ht="useActionState",bt(),aa(t,e)},useFormState:function(t,e){return ht="useFormState",bt(),Us(),aa(t,e)},useOptimistic:function(t){return ht="useOptimistic",bt(),Nr(t)},useHostTransitionStatus:$i,useMemoCache:Hu,useCacheRefresh:function(){return ht="useCacheRefresh",bt(),tu()},useEffectEvent:function(t){return ht="useEffectEvent",bt(),Pi(t)}},Ym={readContext:function(t){return De(t)},use:Ee,useCallback:function(t,e){return ht="useCallback",bt(),xu(t,e)},useContext:function(t){return ht="useContext",bt(),De(t)},useEffect:function(t,e){ht="useEffect",bt(),Wa(2048,jn,t,e)},useImperativeHandle:function(t,e,l){return ht="useImperativeHandle",bt(),ki(t,e,l)},useInsertionEffect:function(t,e){return ht="useInsertionEffect",bt(),Wa(4,Yn,t,e)},useLayoutEffect:function(t,e){return ht="useLayoutEffect",bt(),Wa(4,zl,t,e)},useMemo:function(t,e){ht="useMemo",bt();var l=rt.H;rt.H=ji;try{return Gs(t,e)}finally{rt.H=l}},useReducer:function(t,e,l){ht="useReducer",bt();var u=rt.H;rt.H=ji;try{return Vl(t,e,l)}finally{rt.H=u}},useRef:function(){return ht="useRef",bt(),Ce().memoizedState},useState:function(){ht="useState",bt();var t=rt.H;rt.H=ji;try{return Vl(yl)}finally{rt.H=t}},useDebugValue:function(){ht="useDebugValue",bt()},useDeferredValue:function(t,e){return ht="useDeferredValue",bt(),Hr(t,e)},useTransition:function(){return ht="useTransition",bt(),k0()},useSyncExternalStore:function(t,e,l){return ht="useSyncExternalStore",bt(),Wi(t,e,l)},useId:function(){return ht="useId",bt(),Ce().memoizedState},useFormState:function(t){return ht="useFormState",bt(),Us(),tc(t)},useActionState:function(t){return ht="useActionState",bt(),tc(t)},useOptimistic:function(t,e){return ht="useOptimistic",bt(),Oh(t,e)},useHostTransitionStatus:$i,useMemoCache:Hu,useCacheRefresh:function(){return ht="useCacheRefresh",bt(),Ce().memoizedState},useEffectEvent:function(t){return ht="useEffectEvent",bt(),Ii(t)}},py={readContext:function(t){return De(t)},use:Ee,useCallback:function(t,e){return ht="useCallback",bt(),xu(t,e)},useContext:function(t){return ht="useContext",bt(),De(t)},useEffect:function(t,e){ht="useEffect",bt(),Wa(2048,jn,t,e)},useImperativeHandle:function(t,e,l){return ht="useImperativeHandle",bt(),ki(t,e,l)},useInsertionEffect:function(t,e){return ht="useInsertionEffect",bt(),Wa(4,Yn,t,e)},useLayoutEffect:function(t,e){return ht="useLayoutEffect",bt(),Wa(4,zl,t,e)},useMemo:function(t,e){ht="useMemo",bt();var l=rt.H;rt.H=S2;try{return Gs(t,e)}finally{rt.H=l}},useReducer:function(t,e,l){ht="useReducer",bt();var u=rt.H;rt.H=S2;try{return Hs(t,e,l)}finally{rt.H=u}},useRef:function(){return ht="useRef",bt(),Ce().memoizedState},useState:function(){ht="useState",bt();var t=rt.H;rt.H=S2;try{return Hs(yl)}finally{rt.H=t}},useDebugValue:function(){ht="useDebugValue",bt()},useDeferredValue:function(t,e){return ht="useDeferredValue",bt(),Gh(t,e)},useTransition:function(){return ht="useTransition",bt(),Ri()},useSyncExternalStore:function(t,e,l){return ht="useSyncExternalStore",bt(),Wi(t,e,l)},useId:function(){return ht="useId",bt(),Ce().memoizedState},useFormState:function(t){return ht="useFormState",bt(),Us(),Zn(t)},useActionState:function(t){return ht="useActionState",bt(),Zn(t)},useOptimistic:function(t,e){return ht="useOptimistic",bt(),Uh(t,e)},useHostTransitionStatus:$i,useMemoCache:Hu,useCacheRefresh:function(){return ht="useCacheRefresh",bt(),Ce().memoizedState},useEffectEvent:function(t){return ht="useEffectEvent",bt(),Ii(t)}},Su={readContext:function(t){return v(),De(t)},use:function(t){return p(),Ee(t)},useCallback:function(t,e){return ht="useCallback",p(),wt(),Or(t,e)},useContext:function(t){return ht="useContext",p(),wt(),De(t)},useEffect:function(t,e){return ht="useEffect",p(),wt(),gn(t,e)},useImperativeHandle:function(t,e,l){return ht="useImperativeHandle",p(),wt(),Mr(t,e,l)},useInsertionEffect:function(t,e){ht="useInsertionEffect",p(),wt(),Ci(4,Yn,t,e)},useLayoutEffect:function(t,e){return ht="useLayoutEffect",p(),wt(),Ti(t,e)},useMemo:function(t,e){ht="useMemo",p(),wt();var l=rt.H;rt.H=Su;try{return Ur(t,e)}finally{rt.H=l}},useReducer:function(t,e,l){ht="useReducer",p(),wt();var u=rt.H;rt.H=Su;try{return Cr(t,e,l)}finally{rt.H=u}},useRef:function(t){return ht="useRef",p(),wt(),gl(t)},useState:function(t){ht="useState",p(),wt();var e=rt.H;rt.H=Su;try{return xs(t)}finally{rt.H=e}},useDebugValue:function(){ht="useDebugValue",p(),wt()},useDeferredValue:function(t,e){return ht="useDeferredValue",p(),wt(),ec(t,e)},useTransition:function(){return ht="useTransition",p(),wt(),xr()},useSyncExternalStore:function(t,e,l){return ht="useSyncExternalStore",p(),wt(),Tr(t,e,l)},useId:function(){return ht="useId",p(),wt(),lc()},useFormState:function(t,e){return ht="useFormState",p(),wt(),aa(t,e)},useActionState:function(t,e){return ht="useActionState",p(),wt(),aa(t,e)},useOptimistic:function(t){return ht="useOptimistic",p(),wt(),Nr(t)},useMemoCache:function(t){return p(),Hu(t)},useHostTransitionStatus:$i,useCacheRefresh:function(){return ht="useCacheRefresh",wt(),tu()},useEffectEvent:function(t){return ht="useEffectEvent",p(),wt(),Pi(t)}},ji={readContext:function(t){return v(),De(t)},use:function(t){return p(),Ee(t)},useCallback:function(t,e){return ht="useCallback",p(),bt(),xu(t,e)},useContext:function(t){return ht="useContext",p(),bt(),De(t)},useEffect:function(t,e){ht="useEffect",p(),bt(),Wa(2048,jn,t,e)},useImperativeHandle:function(t,e,l){return ht="useImperativeHandle",p(),bt(),ki(t,e,l)},useInsertionEffect:function(t,e){return ht="useInsertionEffect",p(),bt(),Wa(4,Yn,t,e)},useLayoutEffect:function(t,e){return ht="useLayoutEffect",p(),bt(),Wa(4,zl,t,e)},useMemo:function(t,e){ht="useMemo",p(),bt();var l=rt.H;rt.H=ji;try{return Gs(t,e)}finally{rt.H=l}},useReducer:function(t,e,l){ht="useReducer",p(),bt();var u=rt.H;rt.H=ji;try{return Vl(t,e,l)}finally{rt.H=u}},useRef:function(){return ht="useRef",p(),bt(),Ce().memoizedState},useState:function(){ht="useState",p(),bt();var t=rt.H;rt.H=ji;try{return Vl(yl)}finally{rt.H=t}},useDebugValue:function(){ht="useDebugValue",p(),bt()},useDeferredValue:function(t,e){return ht="useDeferredValue",p(),bt(),Hr(t,e)},useTransition:function(){return ht="useTransition",p(),bt(),k0()},useSyncExternalStore:function(t,e,l){return ht="useSyncExternalStore",p(),bt(),Wi(t,e,l)},useId:function(){return ht="useId",p(),bt(),Ce().memoizedState},useFormState:function(t){return ht="useFormState",p(),bt(),tc(t)},useActionState:function(t){return ht="useActionState",p(),bt(),tc(t)},useOptimistic:function(t,e){return ht="useOptimistic",p(),bt(),Oh(t,e)},useMemoCache:function(t){return p(),Hu(t)},useHostTransitionStatus:$i,useCacheRefresh:function(){return ht="useCacheRefresh",bt(),Ce().memoizedState},useEffectEvent:function(t){return ht="useEffectEvent",p(),bt(),Ii(t)}},S2={readContext:function(t){return v(),De(t)},use:function(t){return p(),Ee(t)},useCallback:function(t,e){return ht="useCallback",p(),bt(),xu(t,e)},useContext:function(t){return ht="useContext",p(),bt(),De(t)},useEffect:function(t,e){ht="useEffect",p(),bt(),Wa(2048,jn,t,e)},useImperativeHandle:function(t,e,l){return ht="useImperativeHandle",p(),bt(),ki(t,e,l)},useInsertionEffect:function(t,e){return ht="useInsertionEffect",p(),bt(),Wa(4,Yn,t,e)},useLayoutEffect:function(t,e){return ht="useLayoutEffect",p(),bt(),Wa(4,zl,t,e)},useMemo:function(t,e){ht="useMemo",p(),bt();var l=rt.H;rt.H=ji;try{return Gs(t,e)}finally{rt.H=l}},useReducer:function(t,e,l){ht="useReducer",p(),bt();var u=rt.H;rt.H=ji;try{return Hs(t,e,l)}finally{rt.H=u}},useRef:function(){return ht="useRef",p(),bt(),Ce().memoizedState},useState:function(){ht="useState",p(),bt();var t=rt.H;rt.H=ji;try{return Hs(yl)}finally{rt.H=t}},useDebugValue:function(){ht="useDebugValue",p(),bt()},useDeferredValue:function(t,e){return ht="useDeferredValue",p(),bt(),Gh(t,e)},useTransition:function(){return ht="useTransition",p(),bt(),Ri()},useSyncExternalStore:function(t,e,l){return ht="useSyncExternalStore",p(),bt(),Wi(t,e,l)},useId:function(){return ht="useId",p(),bt(),Ce().memoizedState},useFormState:function(t){return ht="useFormState",p(),bt(),Zn(t)},useActionState:function(t){return ht="useActionState",p(),bt(),Zn(t)},useOptimistic:function(t,e){return ht="useOptimistic",p(),bt(),Uh(t,e)},useMemoCache:function(t){return p(),Hu(t)},useHostTransitionStatus:$i,useCacheRefresh:function(){return ht="useCacheRefresh",bt(),Ce().memoizedState},useEffectEvent:function(t){return ht="useEffectEvent",p(),bt(),Ii(t)}};var yy={},vy=new Set,gy=new Set,Sy=new Set,_y=new Set,Ey=new Set,by=new Set,Cy=new Set,Ty=new Set,Ry=new Set,Ay=new Set;Object.freeze(yy);var jm={enqueueSetState:function(t,e,l){t=t._reactInternals;var u=Hn(t),o=Ei(u);o.payload=e,l!=null&&(Vh(l),o.callback=l),e=Qn(t,o,u),e!==null&&(cl(u,"this.setState()",t),Ve(e,t,u),Ms(e,t,u))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var u=Hn(t),o=Ei(u);o.tag=oy,o.payload=e,l!=null&&(Vh(l),o.callback=l),e=Qn(t,o,u),e!==null&&(cl(u,"this.replaceState()",t),Ve(e,t,u),Ms(e,t,u))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Hn(t),u=Ei(l);u.tag=cy,e!=null&&(Vh(e),u.callback=e),e=Qn(t,u,l),e!==null&&(cl(l,"this.forceUpdate()",t),Ve(e,t,l),Ms(e,t,l))}},Pf=null,Xm=null,Km=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ma=!1,Ny={},zy={},Dy={},My={},If=!1,Oy={},_2={},Qm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Uy=!1,Hy=null;Hy=new Set;var fs=!1,Oa=!1,Lm=!1,xy=typeof WeakSet=="function"?WeakSet:Set,$a=null,kf=null,$f=null,Ua=null,al=!1,Xi=null,Ka=!1,th=8192,a4={getCacheForType:function(t){var e=De(oa),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return De(oa).controller.signal},getOwner:function(){return as}},E2=0,b2=1,C2=2,T2=3,R2=4;if(typeof Symbol=="function"&&Symbol.for){var Zd=Symbol.for;E2=Zd("selector.component"),b2=Zd("selector.has_pseudo_class"),C2=Zd("selector.role"),T2=Zd("selector.test_id"),R2=Zd("selector.text")}var A2=[],n4=typeof WeakMap=="function"?WeakMap:Map,tn=0,en=2,si=4,hs=0,Jd=1,Jc=2,N2=3,vo=4,z2=6,Gy=5,fe=tn,qe=null,ne=null,te=0,nl=0,D2=1,Fc=2,Fd=3,By=4,Zm=5,wd=6,M2=7,Jm=8,wc=9,Oe=nl,Dl=null,go=!1,eh=!1,Fm=!1,_u=0,ea=hs,So=0,_o=0,wm=0,ll=0,Wc=0,Wd=null,Xn=null,O2=!1,U2=0,qy=0,Vy=300,Pd=1/0,Wm=500,Id=null,pa=null,Eo=null,H2=0,Pm=1,Im=2,Yy=3,bo=0,jy=1,Xy=2,Ky=3,Qy=4,x2=5,Ha=0,Co=null,ah=null,Ki=0,km=0,$m=-0,tp=null,Ly=null,Zy=null,Qi=H2,Jy=null,l4=50,kd=0,ep=null,ap=!1,G2=!1,i4=50,Pc=0,$d=null,nh=!1,B2=null,Fy=!1,wy=new Set,u4={},oi=null,lh=null,Wy=!1;try{var Py=Object.preventExtensions({})}catch{Wy=!0}var Iy=!1,ky={},$y=null,tv=null,ev=null,av=null,nv=null,lv=null,iv=null,uv=null,sv=null,ov=null;return $y=function(t,e,l,u){e=Z(t,e),e!==null&&(l=j(e.memoizedState,l,0,u),e.memoizedState=l,e.baseState=l,t.memoizedProps=Te({},t.memoizedProps),l=Fa(t,2),l!==null&&Ve(l,t,2))},tv=function(t,e,l){e=Z(t,e),e!==null&&(l=T(e.memoizedState,l,0),e.memoizedState=l,e.baseState=l,t.memoizedProps=Te({},t.memoizedProps),l=Fa(t,2),l!==null&&Ve(l,t,2))},ev=function(t,e,l,u){e=Z(t,e),e!==null&&(l=N(e.memoizedState,l,u),e.memoizedState=l,e.baseState=l,t.memoizedProps=Te({},t.memoizedProps),l=Fa(t,2),l!==null&&Ve(l,t,2))},av=function(t,e,l){t.pendingProps=j(t.memoizedProps,e,0,l),t.alternate&&(t.alternate.pendingProps=t.pendingProps),e=Fa(t,2),e!==null&&Ve(e,t,2)},nv=function(t,e){t.pendingProps=T(t.memoizedProps,e,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),e=Fa(t,2),e!==null&&Ve(e,t,2)},lv=function(t,e,l){t.pendingProps=N(t.memoizedProps,e,l),t.alternate&&(t.alternate.pendingProps=t.pendingProps),e=Fa(t,2),e!==null&&Ve(e,t,2)},iv=function(t){var e=Fa(t,2);e!==null&&Ve(e,t,2)},uv=function(t){var e=Q(),l=Fa(t,e);l!==null&&Ve(l,t,e)},sv=function(t){b=t},ov=function(t){_=t},ae.attemptContinuousHydration=function(t){if(t.tag===13||t.tag===31){var e=Fa(t,67108864);e!==null&&Ve(e,t,67108864),Js(t,67108864)}},ae.attemptHydrationAtCurrentPriority=function(t){if(t.tag===13||t.tag===31){var e=Hn(t);e=ft(e);var l=Fa(t,e);l!==null&&Ve(l,t,e),Js(t,e)}},ae.attemptSynchronousHydration=function(t){switch(t.tag){case 3:if(t=t.stateNode,t.current.memoizedState.isDehydrated){var e=at(t.pendingLanes);if(e!==0){for(t.pendingLanes|=2,t.entangledLanes|=2;e;){var l=1<<31-Ea(e);t.entanglements[1]|=l,e&=~l}ln(t),(fe&(en|si))===tn&&(Pd=ce()+Wm,Mu(0))}}break;case 31:case 13:e=Fa(t,2),e!==null&&Ve(e,t,2),gc(),Js(t,2)}},ae.batchedUpdates=function(t,e){return t(e)},ae.createComponentSelector=function(t){return{$$typeof:E2,value:t}},ae.createContainer=function(t,e,l,u,o,c,d,g,L,nt){return Lu(t,e,!1,null,l,u,c,null,d,g,L,nt)},ae.createHasPseudoClassSelector=function(t){return{$$typeof:b2,value:t}},ae.createHydrationContainer=function(t,e,l,u,o,c,d,g,L,nt,mt,vt,_t,xt){return t=Lu(l,u,!0,t,o,c,g,xt,L,nt,mt,vt),t.context=J1(null),l=t.current,u=Hn(l),u=ft(u),o=Ei(u),o.callback=e??null,Qn(l,o,u),cl(u,"hydrateRoot()",null),e=u,t.current.lanes=e,W(t,e),ln(t),t},ae.createPortal=function(t,e,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{_n(u);var o=!1}catch{o=!0}return o&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&u[Symbol.toStringTag]||u.constructor.name||"Object"),_n(u)),{$$typeof:Ui,key:u==null?null:""+u,children:t,containerInfo:e,implementation:l}},ae.createRoleSelector=function(t){return{$$typeof:C2,value:t}},ae.createTestNameSelector=function(t){return{$$typeof:T2,value:t}},ae.createTextSelector=function(t){return{$$typeof:R2,value:t}},ae.defaultOnCaughtError=function(t){var e=Pf?"The above error occurred in the <"+Pf+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Xm||"Anonymous")+".");typeof t=="object"&&t!==null&&typeof t.environmentName=="string"?wu("error",[`%o
192
+
193
+ %s
194
+
195
+ %s
196
+ `,t,e,l],t.environmentName)():console.error(`%o
197
+
198
+ %s
199
+
200
+ %s
201
+ `,t,e,l)},ae.defaultOnRecoverableError=function(t){zp(t)},ae.defaultOnUncaughtError=function(t){zp(t),console.warn(`%s
202
+
203
+ %s
204
+ `,Pf?"An error occurred in the <"+Pf+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
205
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)},ae.deferredUpdates=function(t){var e=rt.T,l=Cn();try{return ia(32),rt.T=null,t()}finally{ia(l),rt.T=e}},ae.discreteUpdates=function(t,e,l,u,o){var c=rt.T,d=Cn();try{return ia(2),rt.T=null,t(e,l,u,o)}finally{ia(d),rt.T=c,fe===tn&&(Pd=ce()+Wm)}},ae.findAllNodes=$r,ae.findBoundingRects=function(t,e){if(!Tl)throw Error("Test selector API is not supported by this renderer.");e=$r(t,e),t=[];for(var l=0;l<e.length;l++)t.push(ou(e[l]));for(e=t.length-1;0<e;e--){l=t[e];for(var u=l.x,o=u+l.width,c=l.y,d=c+l.height,g=e-1;0<=g;g--)if(e!==g){var L=t[g],nt=L.x,mt=nt+L.width,vt=L.y,_t=vt+L.height;if(u>=nt&&c>=vt&&o<=mt&&d<=_t){t.splice(e,1);break}else if(u!==nt||l.width!==L.width||_t<c||vt>d){if(!(c!==vt||l.height!==L.height||mt<u||nt>o)){nt>u&&(L.width+=nt-u,L.x=u),mt<o&&(L.width=o-nt),t.splice(e,1);break}}else{vt>c&&(L.height+=vt-c,L.y=c),_t<d&&(L.height=d-vt),t.splice(e,1);break}}}return t},ae.findHostInstance=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));return t=U(e),t===null?null:rn(t.stateNode)},ae.findHostInstanceWithNoPortals=function(t){return t=A(t),t=t!==null?et(t):null,t===null?null:rn(t.stateNode)},ae.findHostInstanceWithWarning=function(t,e){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));if(t=U(l),t===null)return null;if(t.mode&8){var u=G(l)||"Component";ky[u]||(ky[u]=!0,Ut(t,function(){l.mode&8?console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",e,e,u):console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",e,e,u)}))}return rn(t.stateNode)},ae.flushPassiveEffects=Qs,ae.flushSyncFromReconciler=function(t){var e=fe;fe|=1;var l=rt.T,u=Cn();try{if(ia(2),rt.T=null,t)return t()}finally{ia(u),rt.T=l,fe=e,(fe&(en|si))===tn&&Mu(0)}},ae.flushSyncWork=gc,ae.focusWithin=function(t,e){if(!Tl)throw Error("Test selector API is not supported by this renderer.");for(t=nd(t),e=b1(t,e),e=Array.from(e),t=0;t<e.length;){var l=e[t++],u=l.tag;if(!Pl(l)){if((u===5||u===26||u===27)&&xn(l.stateNode))return!0;for(l=l.child;l!==null;)e.push(l),l=l.sibling}}return!1},ae.getFindAllNodesFailureDescription=function(t,e){if(!Tl)throw Error("Test selector API is not supported by this renderer.");var l=0,u=[];t=[nd(t),0];for(var o=0;o<t.length;){var c=t[o++],d=c.tag,g=t[o++],L=e[g];if((d!==5&&d!==26&&d!==27||!Pl(c))&&(ld(c,L)&&(u.push(kr(L)),g++,g>l&&(l=g)),g<e.length))for(c=c.child;c!==null;)t.push(c,g),c=c.sibling}if(l<e.length){for(t=[];l<e.length;l++)t.push(kr(e[l]));return`findAllNodes was able to match part of the selector:
206
+ `+(u.join(" > ")+`
207
+
208
+ No matching component was found for:
209
+ `)+t.join(" > ")}return null},ae.getPublicRootInstance=function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 27:case 5:return rn(t.child.stateNode);default:return t.child.stateNode}},ae.injectIntoDevTools=function(){var t={bundleType:1,version:Wn,rendererPackageName:Pn,currentDispatcherRef:rt,reconcilerVersion:"19.2.0"};return Hi!==null&&(t.rendererConfig=Hi),t.overrideHookState=$y,t.overrideHookStateDeletePath=tv,t.overrideHookStateRenamePath=ev,t.overrideProps=av,t.overridePropsDeletePath=nv,t.overridePropsRenamePath=lv,t.scheduleUpdate=iv,t.scheduleRetry=uv,t.setErrorHandler=sv,t.setSuspenseHandler=ov,t.scheduleRefresh=O,t.scheduleRoot=z,t.setRefreshHandler=R,t.getCurrentFiber=rf,Dt(t)},ae.isAlreadyRendering=Sc,ae.observeVisibleRects=function(t,e,l,u){function o(){var nt=$r(t,e);c.forEach(function(mt){0>nt.indexOf(mt)&&L(mt)}),nt.forEach(function(mt){0>c.indexOf(mt)&&g(mt)})}if(!Tl)throw Error("Test selector API is not supported by this renderer.");var c=$r(t,e);l=el(c,l,u);var d=l.disconnect,g=l.observe,L=l.unobserve;return A2.push(o),{disconnect:function(){var nt=A2.indexOf(o);0<=nt&&A2.splice(nt,1),d()}}},ae.shouldError=function(t){return b(t)},ae.shouldSuspend=function(t){return _(t)},ae.startHostTransition=function(t,e,l,u){if(t.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var o=Bh(t).queue;Q0(t),sn(t,o,e,kn,l===null?M:function(){rt.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var c=Bh(t);return c.next===null&&(c=t.alternate.memoizedState),Bs(t,c.next.queue,{},Hn(t)),l(u)})},ae.updateContainer=function(t,e,l,u){var o=e.current,c=Hn(o);return bc(o,c,t,e,l,u),c},ae.updateContainerSync=F1,ae},y.exports.default=y.exports,Object.defineProperty(y.exports,"__esModule",{value:!0}))})(pp)),pp.exports}var S3;function tg(){return S3||(S3=1,process.env.NODE_ENV==="production"?V2.exports=k4():V2.exports=$4()),V2.exports}var eg=tg();const ag=A3(eg);var j2={exports:{}},ys={};var _3;function ng(){return _3||(_3=1,ys.ConcurrentRoot=1,ys.ContinuousEventPriority=8,ys.DefaultEventPriority=32,ys.DiscreteEventPriority=2,ys.IdleEventPriority=268435456,ys.LegacyRoot=0,ys.NoEventPriority=0),ys}var vs={};var E3;function lg(){return E3||(E3=1,process.env.NODE_ENV!=="production"&&(vs.ConcurrentRoot=1,vs.ContinuousEventPriority=8,vs.DefaultEventPriority=32,vs.DiscreteEventPriority=2,vs.IdleEventPriority=268435456,vs.LegacyRoot=0,vs.NoEventPriority=0)),vs}var b3;function ig(){return b3||(b3=1,process.env.NODE_ENV==="production"?j2.exports=ng():j2.exports=lg()),j2.exports}var J2=ig(),ug=se();const C3={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let T3=!1,R3=!1;const Q2=".react-konva-event";let H3=!1;function sg(y){H3=y}const og=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
210
+ Position of a node will be changed during drag&drop, so you should update state of the react app as well.
211
+ Consider to add onDragMove or onDragEnd events.
212
+ For more info see: https://github.com/konvajs/react-konva/issues/256
213
+ `,cg=`ReactKonva: You are using "zIndex" attribute for a Konva node.
214
+ react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
215
+ For more info see: https://github.com/konvajs/react-konva/issues/194
216
+ `,rg={};function F2(y,f,Z=rg){if(!T3&&"zIndex"in f&&(console.warn(cg),T3=!0),!R3&&f.draggable){var j=f.x!==void 0||f.y!==void 0,N=f.onDragEnd||f.onDragMove;j&&!N&&(console.warn(og),R3=!0)}for(var D in Z)if(!C3[D]){var T=D.slice(0,2)==="on",_=Z[D]!==f[D];if(T&&_){var b=D.substr(2).toLowerCase();b.substr(0,7)==="content"&&(b="content"+b.substr(7,1).toUpperCase()+b.substr(8)),y.off(b,Z[D])}var C=!f.hasOwnProperty(D);C&&y.setAttr(D,void 0)}var z=H3||f._useStrictMode,O={},R=!1;const p={};for(var D in f)if(!C3[D]){var T=D.slice(0,2)==="on",v=Z[D]!==f[D];if(T&&v){var b=D.substr(2).toLowerCase();b.substr(0,7)==="content"&&(b="content"+b.substr(7,1).toUpperCase()+b.substr(8)),f[D]&&(p[b]=f[D])}!T&&(f[D]!==Z[D]||z&&f[D]!==y.getAttr(D))&&(R=!0,O[D]=f[D])}R&&(y.setAttrs(O),Ro(y));for(var b in p)y.off(b+Q2),y.on(b+Q2,p[b])}function Ro(y){if(!ug.Konva.autoDrawEnabled){var f=y.getLayer()||y.getStage();f&&f.batchDraw()}}var yp=Cp();const x3={},fg={};K2.Node.prototype._applyProps=F2;let G3=J2.DefaultEventPriority;function hg(y,f){if(typeof f=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${f}`);return}y.add(f),Ro(y)}function dg(y,f,Z){let j=K2[y];j||(console.error(`Konva has no node with the type ${y}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${y}" 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`),j=K2.Group);const N={},D={};for(var T in f)if(T!=="ref"){var _=T.slice(0,2)==="on";_?D[T]=f[T]:N[T]=f[T]}const b=new j(N);return F2(b,D),b}function mg(y,f,Z){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${y}"`)}function pg(y,f,Z){return!1}function yg(y){return y}function vg(){return null}function gg(){return null}function Sg(y,f,Z,j){return fg}function _g(){}function Eg(y){}function bg(y,f){return!1}function Cg(){return x3}function Tg(){return x3}const Rg=setTimeout,Ag=clearTimeout,Ng=!0,zg=y=>{y()},Dg=-1;function Mg(y,f){return!1}const Og=!1,Ug=!1,Hg=!0,xg=!1,Gg=!1;function Bg(y,f){f.parent===y?f.moveToTop():y.add(f),Ro(y)}function qg(y,f){f.parent===y?f.moveToTop():y.add(f),Ro(y)}function B3(y,f,Z){f._remove(),y.add(f),f.setZIndex(Z.getZIndex()),Ro(y)}function Vg(y,f,Z){B3(y,f,Z)}function Yg(y,f){f.destroy(),f.off(Q2),Ro(y)}function jg(y,f){f.destroy(),f.off(Q2),Ro(y)}function Xg(y,f,Z){console.error(`Text components are not yet supported in ReactKonva. You text is: "${Z}"`)}function Kg(y,f,Z){}function Qg(y,f,Z,j){F2(y,j,Z)}function Lg(y){y.hide(),Ro(y)}function Zg(y){}function Jg(y,f){(f.visible==null||f.visible)&&y.show()}function Fg(y,f){}function wg(y){}function Wg(){}function Pg(){return null}function Ig(){}function kg(){}function $g(){return J2.DefaultEventPriority}function t5(){}function e5(){return null}function a5(y){G3=y}function n5(){return G3}function l5(){return J2.DiscreteEventPriority}function i5(){return!1}function u5(){}function s5(){return null}function o5(){return-1.1}function c5(){}function r5(){return!1}function f5(){return!0}function h5(){}function d5(){}function m5(){return null}const p5=null,y5=ya.createContext(null);function v5(){}const g5=Object.freeze(Object.defineProperty({__proto__:null,HostTransitionContext:y5,NotPendingTransition:p5,afterActiveInstanceBlur:kg,appendChild:Bg,appendChildToContainer:qg,appendInitialChild:hg,beforeActiveInstanceBlur:Ig,cancelTimeout:Ag,clearContainer:wg,commitMount:Kg,commitTextUpdate:Xg,commitUpdate:Qg,createInstance:dg,createTextInstance:mg,detachDeletedInstance:Wg,finalizeInitialChildren:pg,getChildHostContext:Tg,getCurrentEventPriority:$g,getCurrentUpdatePriority:n5,getInstanceFromNode:Pg,getInstanceFromScope:e5,getPublicInstance:yg,getRootHostContext:Cg,hideInstance:Lg,hideTextInstance:Zg,idlePriority:yp.unstable_IdlePriority,insertBefore:B3,insertInContainerBefore:Vg,isPrimaryRenderer:Og,maySuspendCommit:r5,noTimeout:Dg,now:yp.unstable_now,preloadInstance:f5,prepareForCommit:vg,preparePortalMount:gg,prepareScopeUpdate:t5,prepareUpdate:Sg,removeChild:Yg,removeChildFromContainer:jg,requestPostPaintCallback:c5,resetAfterCommit:_g,resetFormInstance:v5,resetTextContent:Eg,resolveEventTimeStamp:o5,resolveEventType:s5,resolveUpdatePriority:l5,run:yp.unstable_runWithPriority,scheduleMicrotask:zg,scheduleTimeout:Rg,setCurrentUpdatePriority:a5,shouldAttemptEagerTransition:i5,shouldDeprioritizeSubtree:bg,shouldSetTextContent:Mg,startSuspendingCommit:h5,supportsHydration:Gg,supportsMicrotasks:Ng,supportsMutation:Hg,supportsPersistence:xg,suspendInstance:d5,trackSchedulerEvent:u5,unhideInstance:Jg,unhideTextInstance:Fg,waitForCommitToBeReady:m5,warnsIfNotActing:Ug},Symbol.toStringTag,{value:"Module"}));function q3(y,f,Z){if(!y)return;if(Z(y)===!0)return y;let j=y.child;for(;j;){const N=q3(j,f,Z);if(N)return N;j=j.sibling}}function V3(y){try{return Object.defineProperties(y,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return y}}const Tp=V3(ci.createContext(null));class Y3 extends ci.Component{render(){return ci.createElement(Tp.Provider,{value:this._reactInternals},this.props.children)}}function S5(){const y=ci.useContext(Tp);if(y===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const f=ci.useId();return ci.useMemo(()=>{for(const Z of[y,y?.alternate]){if(!Z)continue;const j=q3(Z,!1,N=>{let D=N.memoizedState;for(;D;){if(D.memoizedState===f)return!0;D=D.next}});if(j)return j}},[y,f])}const _5=Symbol.for("react.context"),E5=y=>y!==null&&typeof y=="object"&&"$$typeof"in y&&y.$$typeof===_5;function b5(){const y=S5(),[f]=ci.useState(()=>new Map);f.clear();let Z=y;for(;Z;){const j=Z.type;E5(j)&&j!==Tp&&!f.has(j)&&f.set(j,ci.use(V3(j))),Z=Z.return}return f}function j3(){const y=b5();return ci.useMemo(()=>Array.from(y.keys()).reduce((f,Z)=>j=>ci.createElement(f,null,ci.createElement(Z.Provider,{...j,value:y.get(Z)})),f=>ci.createElement(Y3,{...f})),[y])}if(ya.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 C5(y){const f=ya.useRef({});return ya.useLayoutEffect(()=>{f.current=y}),ya.useLayoutEffect(()=>()=>{f.current={}},[]),f.current}const T5=()=>{const y=ya.useRef(0);return ya.useMemo(()=>{y.current++},[]),y.current>1},R5=y=>{const f=ya.useRef(null),Z=ya.useRef(null),j=ya.useRef(null),N=C5(y),D=j3(),T=ya.useRef(null),_=z=>{const{forwardedRef:O}=y;O&&(typeof O=="function"?O(z):O.current=z)},b=T5(),C=()=>{_(null),kc.flushSyncFromReconciler(()=>{kc.updateContainer(null,j.current,null)}),Z.current?.destroy(),Z.current=null};return ya.useLayoutEffect(()=>(T.current&&(clearTimeout(T.current),T.current=null),Z.current?_(Z.current):(Z.current=new K2.Stage({width:y.width,height:y.height,container:f.current}),_(Z.current),j.current=kc.createContainer(Z.current,J2.ConcurrentRoot,null,!1,null,"",console.error,console.error,console.error,null),kc.updateContainer(ya.createElement(D,{},y.children),j.current,null,()=>{})),()=>{b?T.current=setTimeout(C,0):C()}),[]),ya.useLayoutEffect(()=>{_(Z.current),F2(Z.current,y,N),kc.flushSyncFromReconciler(()=>{kc.updateContainer(ya.createElement(D,{},y.children),j.current,null)})}),ya.createElement("div",{ref:f,id:y.id,accessKey:y.accessKey,className:y.className,role:y.role,style:y.style,tabIndex:y.tabIndex,title:y.title})},A5="Layer",N5="FastLayer",z5="Group",D5="Label",M5="Rect",O5="Circle",U5="Ellipse",H5="Wedge",x5="Line",G5="Sprite",B5="Image",q5="Text",V5="TextPath",Y5="Star",j5="Ring",X5="Arc",K5="Tag",Q5="Path",L5="RegularPolygon",Z5="Arrow",J5="Shape",F5="Transformer",w5="19.2.3",kc=ag(g5),W5=ya.forwardRef((y,f)=>ya.createElement(Y3,{},ya.createElement(R5,{...y,forwardedRef:f}))),P5=sg;exports.Arc=X5;exports.Arrow=Z5;exports.Circle=O5;exports.Ellipse=U5;exports.FastLayer=N5;exports.Group=z5;exports.Image=B5;exports.KonvaRenderer=kc;exports.Label=D5;exports.Layer=A5;exports.Line=x5;exports.Path=Q5;exports.Rect=M5;exports.RegularPolygon=L5;exports.Ring=j5;exports.Shape=J5;exports.Sprite=G5;exports.Stage=W5;exports.Star=Y5;exports.Tag=K5;exports.Text=q5;exports.TextPath=V5;exports.Transformer=F5;exports.Wedge=H5;exports.useContextBridge=j3;exports.useStrictMode=P5;exports.version=w5;