@volter/world-console 3.0.16 → 3.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,76 +1,76 @@
1
- var qN=Object.create;var{getPrototypeOf:UN,defineProperty:jA,getOwnPropertyNames:GN}=Object;var ZN=Object.prototype.hasOwnProperty;function FN(Q){return this[Q]}var XN,KN,p0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?XN??=new WeakMap:KN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?qN(UN(Q)):{};let W=U||!Q||!Q.__esModule?jA(Z,"default",{value:Q,enumerable:!0}):Z;for(let L of GN(Q))if(!ZN.call(W,L))jA(W,L,{get:FN.bind(Q,L),enumerable:!0});if(K)H.set(Q,W);return W};var p4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var yA=p4((HN)=>{(function(){function Q(){if(j=!1,b){var p=HN.unstable_now();$1=p;var c=!0;try{_:{y=!1,C&&(C=!1,h(D),D=-1),f=!0;var a=v;try{J:{Y(p);for(V=Z(R);V!==null&&!(V.expirationTime>p&&L());){var i=V.callback;if(typeof i==="function"){V.callback=null,v=V.priorityLevel;var o=i(V.expirationTime<=p);if(p=HN.unstable_now(),typeof o==="function"){V.callback=o,Y(p),c=!0;break J}V===Z(R)&&K(R),Y(p)}else K(R);V=Z(R)}if(V!==null)c=!0;else{var k=Z(P);k!==null&&M(W,k.startTime-p),c=!1}}break _}finally{V=null,v=a,f=!1}c=void 0}}finally{c?Q1():b=!1}}}function U(p,c){var a=p.length;p.push(c);_:for(;0<a;){var i=a-1>>>1,o=p[i];if(0<H(o,c))p[i]=c,p[a]=o,a=i;else break _}}function Z(p){return p.length===0?null:p[0]}function K(p){if(p.length===0)return null;var c=p[0],a=p.pop();if(a!==c){p[0]=a;_:for(var i=0,o=p.length,k=o>>>1;i<k;){var g=2*(i+1)-1,q1=p[g],t=g+1,W1=p[t];if(0>H(q1,a))t<o&&0>H(W1,q1)?(p[i]=W1,p[t]=a,i=t):(p[i]=q1,p[g]=a,i=g);else if(t<o&&0>H(W1,a))p[i]=W1,p[t]=a,i=t;else break _}}return c}function H(p,c){var a=p.sortIndex-c.sortIndex;return a!==0?a:p.id-c.id}function Y(p){for(var c=Z(P);c!==null;){if(c.callback===null)K(P);else if(c.startTime<=p)K(P),c.sortIndex=c.expirationTime,U(R,c);else break;c=Z(P)}}function W(p){if(C=!1,Y(p),!y)if(Z(R)!==null)y=!0,b||(b=!0,Q1());else{var c=Z(P);c!==null&&M(W,c.startTime-p)}}function L(){return j?!0:HN.unstable_now()-$1<x?!1:!0}function M(p,c){D=u(function(){p(HN.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),HN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var O=performance;HN.unstable_now=function(){return O.now()}}else{var T=Date,A=T.now();HN.unstable_now=function(){return T.now()-A}}var R=[],P=[],N=1,V=null,v=3,f=!1,y=!1,C=!1,j=!1,u=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null,b=!1,D=-1,x=5,$1=-1;if(typeof E==="function")var Q1=function(){E(Q)};else if(typeof MessageChannel<"u"){var J1=new MessageChannel,m=J1.port2;J1.port1.onmessage=Q,Q1=function(){m.postMessage(null)}}else Q1=function(){u(Q,0)};HN.unstable_IdlePriority=5,HN.unstable_ImmediatePriority=1,HN.unstable_LowPriority=4,HN.unstable_NormalPriority=3,HN.unstable_Profiling=null,HN.unstable_UserBlockingPriority=2,HN.unstable_cancelCallback=function(p){p.callback=null},HN.unstable_forceFrameRate=function(p){0>p||125<p?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<p?Math.floor(1000/p):5},HN.unstable_getCurrentPriorityLevel=function(){return v},HN.unstable_next=function(p){switch(v){case 1:case 2:case 3:var c=3;break;default:c=v}var a=v;v=c;try{return p()}finally{v=a}},HN.unstable_requestPaint=function(){j=!0},HN.unstable_runWithPriority=function(p,c){switch(p){case 1:case 2:case 3:case 4:case 5:break;default:p=3}var a=v;v=p;try{return c()}finally{v=a}},HN.unstable_scheduleCallback=function(p,c,a){var i=HN.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?i+a:i):a=i,p){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5000}return o=a+o,p={id:N++,callback:c,priorityLevel:p,startTime:a,expirationTime:o,sortIndex:-1},a>i?(p.sortIndex=a,U(P,p),Z(R)===null&&p===Z(P)&&(C?(h(D),D=-1):C=!0,M(W,a-i))):(p.sortIndex=o,U(R,p),y||f||(y=!0,b||(b=!0,Q1()))),p},HN.unstable_shouldYield=L,HN.unstable_wrapCallback=function(p){var c=v;return function(){var a=v;v=c;try{return p.apply(this,arguments)}finally{v=a}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var G4=p4((YN,Lq)=>{(function(){function Q(I,l){Object.defineProperty(K.prototype,I,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})}function U(I){if(I===null||typeof I!=="object")return null;return I=v1&&I[v1]||I["@@iterator"],typeof I==="function"?I:null}function Z(I,l){I=(I=I.constructor)&&(I.displayName||I.name)||"ReactClass";var F1=I+"."+l;A1[F1]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",l,I),A1[F1]=!0)}function K(I,l,F1){this.props=I,this.context=l,this.refs=g1,this.updater=F1||k1}function H(){}function Y(I,l,F1){this.props=I,this.context=l,this.refs=g1,this.updater=F1||k1}function W(){}function L(I){return""+I}function M(I){try{L(I);var l=!1}catch(R1){l=!0}if(l){l=console;var F1=l.error,I1=typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return F1.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I1),L(I)}}function O(I){if(I==null)return null;if(typeof I==="function")return I.$$typeof===r1?null:I.displayName||I.name||null;if(typeof I==="string")return I;switch(I){case o:return"Fragment";case g:return"Profiler";case k:return"StrictMode";case T1:return"Suspense";case O1:return"SuspenseList";case P1:return"Activity"}if(typeof I==="object")switch(typeof I.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case i:return"Portal";case t:return I.displayName||"Context";case q1:return(I._context.displayName||"Context")+".Consumer";case W1:var l=I.render;return I=I.displayName,I||(I=l.displayName||l.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case L1:return l=I.displayName||null,l!==null?l:O(I.type)||"Memo";case U1:l=I._payload,I=I._init;try{return O(I(l))}catch(F1){}}return null}function T(I){if(I===o)return"<>";if(typeof I==="object"&&I!==null&&I.$$typeof===U1)return"<...>";try{var l=O(I);return l?"<"+l+">":"<...>"}catch(F1){return"<...>"}}function A(){var I=u1.A;return I===null?null:I.getOwner()}function R(){return Error("react-stack-top-frame")}function P(I){if(D0.call(I,"key")){var l=Object.getOwnPropertyDescriptor(I,"key").get;if(l&&l.isReactWarning)return!1}return I.key!==void 0}function N(I,l){function F1(){X2||(X2=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",l))}F1.isReactWarning=!0,Object.defineProperty(I,"key",{get:F1,configurable:!0})}function V(){var I=O(this.type);return N2[I]||(N2[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function v(I,l,F1,I1,R1,N1){var C1=F1.ref;return I={$$typeof:a,type:I,key:l,props:F1,_owner:I1},(C1!==void 0?C1:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:V}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R1}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N1}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function f(I,l){return l=v(I.type,l,I.props,I._owner,I._debugStack,I._debugTask),I._store&&(l._store.validated=I._store.validated),l}function y(I){C(I)?I._store&&(I._store.validated=1):typeof I==="object"&&I!==null&&I.$$typeof===U1&&(I._payload.status==="fulfilled"?C(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function C(I){return typeof I==="object"&&I!==null&&I.$$typeof===a}function j(I){var l={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(F1){return l[F1]})}function u(I,l){return typeof I==="object"&&I!==null&&I.key!=null?(M(I.key),j(""+I.key)):l.toString(36)}function h(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status==="string"?I.then(W,W):(I.status="pending",I.then(function(l){I.status==="pending"&&(I.status="fulfilled",I.value=l)},function(l){I.status==="pending"&&(I.status="rejected",I.reason=l)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function E(I,l,F1,I1,R1){var N1=typeof I;if(N1==="undefined"||N1==="boolean")I=null;var C1=!1;if(I===null)C1=!0;else switch(N1){case"bigint":case"string":case"number":C1=!0;break;case"object":switch(I.$$typeof){case a:case i:C1=!0;break;case U1:return C1=I._init,E(C1(I._payload),l,F1,I1,R1)}}if(C1){C1=I,R1=R1(C1);var V1=I1===""?"."+u(C1,0):I1;return M1(R1)?(F1="",V1!=null&&(F1=V1.replace(H2,"$&/")+"/"),E(R1,l,F1,"",function(p1){return p1})):R1!=null&&(C(R1)&&(R1.key!=null&&(C1&&C1.key===R1.key||M(R1.key)),F1=f(R1,F1+(R1.key==null||C1&&C1.key===R1.key?"":(""+R1.key).replace(H2,"$&/")+"/")+V1),I1!==""&&C1!=null&&C(C1)&&C1.key==null&&C1._store&&!C1._store.validated&&(F1._store.validated=2),R1=F1),l.push(R1)),1}if(C1=0,V1=I1===""?".":I1+":",M1(I))for(var j1=0;j1<I.length;j1++)I1=I[j1],N1=V1+u(I1,j1),C1+=E(I1,l,F1,N1,R1);else if(j1=U(I),typeof j1==="function")for(j1===I.entries&&(M2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),M2=!0),I=j1.call(I),j1=0;!(I1=I.next()).done;)I1=I1.value,N1=V1+u(I1,j1++),C1+=E(I1,l,F1,N1,R1);else if(N1==="object"){if(typeof I.then==="function")return E(h(I),l,F1,I1,R1);throw l=String(I),Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.")}return C1}function b(I,l,F1){if(I==null)return I;var I1=[],R1=0;return E(I,I1,"","",function(N1){return l.call(F1,N1,R1++)}),I1}function D(I){if(I._status===-1){var l=I._ioInfo;l!=null&&(l.start=l.end=performance.now()),l=I._result;var F1=l();if(F1.then(function(R1){if(I._status===0||I._status===-1){I._status=1,I._result=R1;var N1=I._ioInfo;N1!=null&&(N1.end=performance.now()),F1.status===void 0&&(F1.status="fulfilled",F1.value=R1)}},function(R1){if(I._status===0||I._status===-1){I._status=2,I._result=R1;var N1=I._ioInfo;N1!=null&&(N1.end=performance.now()),F1.status===void 0&&(F1.status="rejected",F1.reason=R1)}}),l=I._ioInfo,l!=null){l.value=F1;var I1=F1.displayName;typeof I1==="string"&&(l.name=I1)}I._status===-1&&(I._status=0,I._result=F1)}if(I._status===1)return l=I._result,l===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var ZN=Object.create;var{getPrototypeOf:FN,defineProperty:VA,getOwnPropertyNames:XN}=Object;var KN=Object.prototype.hasOwnProperty;function HN(Q){return this[Q]}var YN,zN,s0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?YN??=new WeakMap:zN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?ZN(FN(Q)):{};let W=U||!Q||!Q.__esModule?VA(Z,"default",{value:Q,enumerable:!0}):Z;for(let L of XN(Q))if(!KN.call(W,L))VA(W,L,{get:HN.bind(Q,L),enumerable:!0});if(K)H.set(Q,W);return W};var o4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var yA=o4((WN)=>{(function(){function Q(){if(v=!1,u){var g=WN.unstable_now();s=g;var p=!0;try{_:{y=!1,N&&(N=!1,x(b),b=-1),C=!0;var c=S;try{J:{Y(g);for(V=Z(R);V!==null&&!(V.expirationTime>g&&L());){var l=V.callback;if(typeof l==="function"){V.callback=null,S=V.priorityLevel;var o=l(V.expirationTime<=g);if(g=WN.unstable_now(),typeof o==="function"){V.callback=o,Y(g),p=!0;break J}V===Z(R)&&K(R),Y(g)}else K(R);V=Z(R)}if(V!==null)p=!0;else{var k=Z(w);k!==null&&M(W,k.startTime-g),p=!1}}break _}finally{V=null,S=c,C=!1}p=void 0}}finally{p?U1():u=!1}}}function U(g,p){var c=g.length;g.push(p);_:for(;0<c;){var l=c-1>>>1,o=g[l];if(0<H(o,p))g[l]=p,g[c]=o,c=l;else break _}}function Z(g){return g.length===0?null:g[0]}function K(g){if(g.length===0)return null;var p=g[0],c=g.pop();if(c!==p){g[0]=c;_:for(var l=0,o=g.length,k=o>>>1;l<k;){var t=2*(l+1)-1,_1=g[t],a=t+1,H1=g[a];if(0>H(_1,c))a<o&&0>H(H1,_1)?(g[l]=H1,g[a]=c,l=a):(g[l]=_1,g[t]=c,l=t);else if(a<o&&0>H(H1,c))g[l]=H1,g[a]=c,l=a;else break _}}return p}function H(g,p){var c=g.sortIndex-p.sortIndex;return c!==0?c:g.id-p.id}function Y(g){for(var p=Z(w);p!==null;){if(p.callback===null)K(w);else if(p.startTime<=g)K(w),p.sortIndex=p.expirationTime,U(R,p);else break;p=Z(w)}}function W(g){if(N=!1,Y(g),!y)if(Z(R)!==null)y=!0,u||(u=!0,U1());else{var p=Z(w);p!==null&&M(W,p.startTime-g)}}function L(){return v?!0:WN.unstable_now()-s<m?!1:!0}function M(g,p){b=D(function(){g(WN.unstable_now())},p)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),WN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var O=performance;WN.unstable_now=function(){return O.now()}}else{var T=Date,A=T.now();WN.unstable_now=function(){return T.now()-A}}var R=[],w=[],P=1,V=null,S=3,C=!1,y=!1,N=!1,v=!1,D=typeof setTimeout==="function"?setTimeout:null,x=typeof clearTimeout==="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null,u=!1,b=-1,m=5,s=-1;if(typeof E==="function")var U1=function(){E(Q)};else if(typeof MessageChannel<"u"){var Q1=new MessageChannel,h=Q1.port2;Q1.port1.onmessage=Q,U1=function(){h.postMessage(null)}}else U1=function(){D(Q,0)};WN.unstable_IdlePriority=5,WN.unstable_ImmediatePriority=1,WN.unstable_LowPriority=4,WN.unstable_NormalPriority=3,WN.unstable_Profiling=null,WN.unstable_UserBlockingPriority=2,WN.unstable_cancelCallback=function(g){g.callback=null},WN.unstable_forceFrameRate=function(g){0>g||125<g?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<g?Math.floor(1000/g):5},WN.unstable_getCurrentPriorityLevel=function(){return S},WN.unstable_next=function(g){switch(S){case 1:case 2:case 3:var p=3;break;default:p=S}var c=S;S=p;try{return g()}finally{S=c}},WN.unstable_requestPaint=function(){v=!0},WN.unstable_runWithPriority=function(g,p){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var c=S;S=g;try{return p()}finally{S=c}},WN.unstable_scheduleCallback=function(g,p,c){var l=WN.unstable_now();switch(typeof c==="object"&&c!==null?(c=c.delay,c=typeof c==="number"&&0<c?l+c:l):c=l,g){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5000}return o=c+o,g={id:P++,callback:p,priorityLevel:g,startTime:c,expirationTime:o,sortIndex:-1},c>l?(g.sortIndex=c,U(w,g),Z(R)===null&&g===Z(w)&&(N?(x(b),b=-1):N=!0,M(W,c-l))):(g.sortIndex=o,U(R,g),y||C||(y=!0,u||(u=!0,U1()))),g},WN.unstable_shouldYield=L,WN.unstable_wrapCallback=function(g){var p=S;return function(){var c=S;S=p;try{return g.apply(this,arguments)}finally{S=c}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var B4=o4((LN,Bq)=>{(function(){function Q(j,q1){Object.defineProperty(K.prototype,j,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",q1[0],q1[1])}})}function U(j){if(j===null||typeof j!=="object")return null;return j=f1&&j[f1]||j["@@iterator"],typeof j==="function"?j:null}function Z(j,q1){j=(j=j.constructor)&&(j.displayName||j.name)||"ReactClass";var I1=j+"."+q1;z1[I1]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",q1,j),z1[I1]=!0)}function K(j,q1,I1){this.props=j,this.context=q1,this.refs=c1,this.updater=I1||C1}function H(){}function Y(j,q1,I1){this.props=j,this.context=q1,this.refs=c1,this.updater=I1||C1}function W(){}function L(j){return""+j}function M(j){try{L(j);var q1=!1}catch(y1){q1=!0}if(q1){q1=console;var I1=q1.error,P1=typeof Symbol==="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return I1.call(q1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P1),L(j)}}function O(j){if(j==null)return null;if(typeof j==="function")return j.$$typeof===e1?null:j.displayName||j.name||null;if(typeof j==="string")return j;switch(j){case o:return"Fragment";case t:return"Profiler";case k:return"StrictMode";case O1:return"Suspense";case L1:return"SuspenseList";case R1:return"Activity"}if(typeof j==="object")switch(typeof j.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case l:return"Portal";case a:return j.displayName||"Context";case _1:return(j._context.displayName||"Context")+".Consumer";case H1:var q1=j.render;return j=j.displayName,j||(j=q1.displayName||q1.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case T1:return q1=j.displayName||null,q1!==null?q1:O(j.type)||"Memo";case G1:q1=j._payload,j=j._init;try{return O(j(q1))}catch(I1){}}return null}function T(j){if(j===o)return"<>";if(typeof j==="object"&&j!==null&&j.$$typeof===G1)return"<...>";try{var q1=O(j);return q1?"<"+q1+">":"<...>"}catch(I1){return"<...>"}}function A(){var j=D1.A;return j===null?null:j.getOwner()}function R(){return Error("react-stack-top-frame")}function w(j){if(g0.call(j,"key")){var q1=Object.getOwnPropertyDescriptor(j,"key").get;if(q1&&q1.isReactWarning)return!1}return j.key!==void 0}function P(j,q1){function I1(){t0||(t0=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",q1))}I1.isReactWarning=!0,Object.defineProperty(j,"key",{get:I1,configurable:!0})}function V(){var j=O(this.type);return u2[j]||(u2[j]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),j=this.props.ref,j!==void 0?j:null}function S(j,q1,I1,P1,y1,i1){var r1=I1.ref;return j={$$typeof:c,type:j,key:q1,props:I1,_owner:P1},(r1!==void 0?r1:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:V}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y1}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i1}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function C(j,q1){return q1=S(j.type,q1,j.props,j._owner,j._debugStack,j._debugTask),j._store&&(q1._store.validated=j._store.validated),q1}function y(j){N(j)?j._store&&(j._store.validated=1):typeof j==="object"&&j!==null&&j.$$typeof===G1&&(j._payload.status==="fulfilled"?N(j._payload.value)&&j._payload.value._store&&(j._payload.value._store.validated=1):j._store&&(j._store.validated=1))}function N(j){return typeof j==="object"&&j!==null&&j.$$typeof===c}function v(j){var q1={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(I1){return q1[I1]})}function D(j,q1){return typeof j==="object"&&j!==null&&j.key!=null?(M(j.key),v(""+j.key)):q1.toString(36)}function x(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status==="string"?j.then(W,W):(j.status="pending",j.then(function(q1){j.status==="pending"&&(j.status="fulfilled",j.value=q1)},function(q1){j.status==="pending"&&(j.status="rejected",j.reason=q1)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function E(j,q1,I1,P1,y1){var i1=typeof j;if(i1==="undefined"||i1==="boolean")j=null;var r1=!1;if(j===null)r1=!0;else switch(i1){case"bigint":case"string":case"number":r1=!0;break;case"object":switch(j.$$typeof){case c:case l:r1=!0;break;case G1:return r1=j._init,E(r1(j._payload),q1,I1,P1,y1)}}if(r1){r1=j,y1=y1(r1);var F0=P1===""?"."+D(r1,0):P1;return A1(y1)?(I1="",F0!=null&&(I1=F0.replace(G2,"$&/")+"/"),E(y1,q1,I1,"",function(K2){return K2})):y1!=null&&(N(y1)&&(y1.key!=null&&(r1&&r1.key===y1.key||M(y1.key)),I1=C(y1,I1+(y1.key==null||r1&&r1.key===y1.key?"":(""+y1.key).replace(G2,"$&/")+"/")+F0),P1!==""&&r1!=null&&N(r1)&&r1.key==null&&r1._store&&!r1._store.validated&&(I1._store.validated=2),y1=I1),q1.push(y1)),1}if(r1=0,F0=P1===""?".":P1+":",A1(j))for(var x1=0;x1<j.length;x1++)P1=j[x1],i1=F0+D(P1,x1),r1+=E(P1,q1,I1,i1,y1);else if(x1=U(j),typeof x1==="function")for(x1===j.entries&&(T2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),T2=!0),j=x1.call(j),x1=0;!(P1=j.next()).done;)P1=P1.value,i1=F0+D(P1,x1++),r1+=E(P1,q1,I1,i1,y1);else if(i1==="object"){if(typeof j.then==="function")return E(x(j),q1,I1,P1,y1);throw q1=String(j),Error("Objects are not valid as a React child (found: "+(q1==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":q1)+"). If you meant to render a collection of children, use an array instead.")}return r1}function u(j,q1,I1){if(j==null)return j;var P1=[],y1=0;return E(j,P1,"","",function(i1){return q1.call(I1,i1,y1++)}),P1}function b(j){if(j._status===-1){var q1=j._ioInfo;q1!=null&&(q1.start=q1.end=performance.now()),q1=j._result;var I1=q1();if(I1.then(function(y1){if(j._status===0||j._status===-1){j._status=1,j._result=y1;var i1=j._ioInfo;i1!=null&&(i1.end=performance.now()),I1.status===void 0&&(I1.status="fulfilled",I1.value=y1)}},function(y1){if(j._status===0||j._status===-1){j._status=2,j._result=y1;var i1=j._ioInfo;i1!=null&&(i1.end=performance.now()),I1.status===void 0&&(I1.status="rejected",I1.reason=y1)}}),q1=j._ioInfo,q1!=null){q1.value=I1;var P1=I1.displayName;typeof P1==="string"&&(q1.name=P1)}j._status===-1&&(j._status=0,j._result=I1)}if(j._status===1)return q1=j._result,q1===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,l),"default"in l||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,q1),"default"in q1||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,l),l.default;throw I._result}function x(){var I=u1.H;return I===null&&console.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:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,q1),q1.default;throw j._result}function m(){var j=D1.H;return j===null&&console.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:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),I}function $1(){u1.asyncTransitions--}function Q1(I){if(m2===null)try{var l=("require"+Math.random()).slice(0,7);m2=(Lq&&Lq[l]).call(Lq,"timers").setImmediate}catch(F1){m2=function(I1){z4===!1&&(z4=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var R1=new MessageChannel;R1.port1.onmessage=I1,R1.port2.postMessage(void 0)}}return m2(I)}function J1(I){return 1<I.length&&typeof AggregateError==="function"?AggregateError(I):I[0]}function m(I,l){l!==f5-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),f5=l}function p(I,l,F1){var I1=u1.actQueue;if(I1!==null)if(I1.length!==0)try{c(I1),Q1(function(){return p(I,l,F1)});return}catch(R1){u1.thrownErrors.push(R1)}else u1.actQueue=null;0<u1.thrownErrors.length?(I1=J1(u1.thrownErrors),u1.thrownErrors.length=0,F1(I1)):l(I)}function c(I){if(!r5){r5=!0;var l=0;try{for(;l<I.length;l++){var F1=I[l];do{u1.didUsePromise=!1;var I1=F1(!1);if(I1!==null){if(u1.didUsePromise){I[l]=F1,I.splice(0,l);return}F1=I1}else break}while(1)}I.length=0}catch(R1){I.splice(0,l+1),u1.thrownErrors.push(R1)}finally{r5=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),q1=Symbol.for("react.consumer"),t=Symbol.for("react.context"),W1=Symbol.for("react.forward_ref"),T1=Symbol.for("react.suspense"),O1=Symbol.for("react.suspense_list"),L1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),P1=Symbol.for("react.activity"),v1=Symbol.iterator,A1={},k1={isMounted:function(){return!1},enqueueForceUpdate:function(I){Z(I,"forceUpdate")},enqueueReplaceState:function(I){Z(I,"replaceState")},enqueueSetState:function(I){Z(I,"setState")}},D1=Object.assign,g1={};Object.freeze(g1),K.prototype.isReactComponent={},K.prototype.setState=function(I,l){if(typeof I!=="object"&&typeof I!=="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,l,"setState")},K.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};var h1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(G1 in h1)h1.hasOwnProperty(G1)&&Q(G1,h1[G1]);H.prototype=K.prototype,h1=Y.prototype=new H,h1.constructor=Y,D1(h1,K.prototype),h1.isPureReactComponent=!0;var M1=Array.isArray,r1=Symbol.for("react.client.reference"),u1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D0=Object.prototype.hasOwnProperty,o1=console.createTask?console.createTask:function(){return null};h1={react_stack_bottom_frame:function(I){return I()}};var X2,K2,N2={},A2=h1.react_stack_bottom_frame.bind(h1,R)(),C2=o1(T(R)),M2=!1,H2=/\/+/g,_2=typeof reportError==="function"?reportError:function(I){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(l))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",I);return}console.error(I)},z4=!1,m2=null,f5=0,S5=!1,r5=!1,o4=typeof queueMicrotask==="function"?function(I){queueMicrotask(function(){return queueMicrotask(I)})}:Q1;h1=Object.freeze({__proto__:null,c:function(I){return x().useMemoCache(I)}});var G1={map:b,forEach:function(I,l,F1){b(I,function(){l.apply(this,arguments)},F1)},count:function(I){var l=0;return b(I,function(){l++}),l},toArray:function(I){return b(I,function(l){return l})||[]},only:function(I){if(!C(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};YN.Activity=P1,YN.Children=G1,YN.Component=K,YN.Fragment=o,YN.Profiler=g,YN.PureComponent=Y,YN.StrictMode=k,YN.Suspense=T1,YN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u1,YN.__COMPILER_RUNTIME=h1,YN.act=function(I){var l=u1.actQueue,F1=f5;f5++;var I1=u1.actQueue=l!==null?l:[],R1=!1;try{var N1=I()}catch(j1){u1.thrownErrors.push(j1)}if(0<u1.thrownErrors.length)throw m(l,F1),I=J1(u1.thrownErrors),u1.thrownErrors.length=0,I;if(N1!==null&&typeof N1==="object"&&typeof N1.then==="function"){var C1=N1;return o4(function(){R1||S5||(S5=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(j1,p1){R1=!0,C1.then(function(S0){if(m(l,F1),F1===0){try{c(I1),Q1(function(){return p(S0,j1,p1)})}catch(n4){u1.thrownErrors.push(n4)}if(0<u1.thrownErrors.length){var w0=J1(u1.thrownErrors);u1.thrownErrors.length=0,p1(w0)}}else j1(S0)},function(S0){m(l,F1),0<u1.thrownErrors.length?(S0=J1(u1.thrownErrors),u1.thrownErrors.length=0,p1(S0)):p1(S0)})}}}var V1=N1;if(m(l,F1),F1===0&&(c(I1),I1.length!==0&&o4(function(){R1||S5||(S5=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),u1.actQueue=null),0<u1.thrownErrors.length)throw I=J1(u1.thrownErrors),u1.thrownErrors.length=0,I;return{then:function(j1,p1){R1=!0,F1===0?(u1.actQueue=I1,Q1(function(){return p(V1,j1,p1)})):j1(V1)}}},YN.cache=function(I){return function(){return I.apply(null,arguments)}},YN.cacheSignal=function(){return null},YN.captureOwnerStack=function(){var I=u1.getCurrentStack;return I===null?null:I()},YN.cloneElement=function(I,l,F1){if(I===null||I===void 0)throw Error("The argument must be a React element, but you passed "+I+".");var I1=D1({},I.props),R1=I.key,N1=I._owner;if(l!=null){var C1;_:{if(D0.call(l,"ref")&&(C1=Object.getOwnPropertyDescriptor(l,"ref").get)&&C1.isReactWarning){C1=!1;break _}C1=l.ref!==void 0}C1&&(N1=A()),P(l)&&(M(l.key),R1=""+l.key);for(V1 in l)!D0.call(l,V1)||V1==="key"||V1==="__self"||V1==="__source"||V1==="ref"&&l.ref===void 0||(I1[V1]=l[V1])}var V1=arguments.length-2;if(V1===1)I1.children=F1;else if(1<V1){C1=Array(V1);for(var j1=0;j1<V1;j1++)C1[j1]=arguments[j1+2];I1.children=C1}I1=v(I.type,R1,I1,N1,I._debugStack,I._debugTask);for(R1=2;R1<arguments.length;R1++)y(arguments[R1]);return I1},YN.createContext=function(I){return I={$$typeof:t,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:q1,_context:I},I._currentRenderer=null,I._currentRenderer2=null,I},YN.createElement=function(I,l,F1){for(var I1=2;I1<arguments.length;I1++)y(arguments[I1]);I1={};var R1=null;if(l!=null)for(j1 in K2||!("__self"in l)||"key"in l||(K2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),P(l)&&(M(l.key),R1=""+l.key),l)D0.call(l,j1)&&j1!=="key"&&j1!=="__self"&&j1!=="__source"&&(I1[j1]=l[j1]);var N1=arguments.length-2;if(N1===1)I1.children=F1;else if(1<N1){for(var C1=Array(N1),V1=0;V1<N1;V1++)C1[V1]=arguments[V1+2];Object.freeze&&Object.freeze(C1),I1.children=C1}if(I&&I.defaultProps)for(j1 in N1=I.defaultProps,N1)I1[j1]===void 0&&(I1[j1]=N1[j1]);R1&&N(I1,typeof I==="function"?I.displayName||I.name||"Unknown":I);var j1=1e4>u1.recentlyCreatedOwnerStacks++;return v(I,R1,I1,A(),j1?Error("react-stack-top-frame"):A2,j1?o1(T(I)):C2)},YN.createRef=function(){var I={current:null};return Object.seal(I),I},YN.forwardRef=function(I){I!=null&&I.$$typeof===L1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!=="function"?console.error("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&I.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var l={$$typeof:W1,render:I},F1;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return F1},set:function(I1){F1=I1,I.name||I.displayName||(Object.defineProperty(I,"name",{value:I1}),I.displayName=I1)}}),l},YN.isValidElement=C,YN.lazy=function(I){I={_status:-1,_result:I};var l={$$typeof:U1,_payload:I,_init:D},F1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return I._ioInfo=F1,l._debugInfo=[{awaited:F1}],l},YN.memo=function(I,l){I==null&&console.error("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I),l={$$typeof:L1,type:I,compare:l===void 0?null:l};var F1;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return F1},set:function(I1){F1=I1,I.name||I.displayName||(Object.defineProperty(I,"name",{value:I1}),I.displayName=I1)}}),l},YN.startTransition=function(I){var l=u1.T,F1={};F1._updatedFibers=new Set,u1.T=F1;try{var I1=I(),R1=u1.S;R1!==null&&R1(F1,I1),typeof I1==="object"&&I1!==null&&typeof I1.then==="function"&&(u1.asyncTransitions++,I1.then($1,$1),I1.then(W,_2))}catch(N1){_2(N1)}finally{l===null&&F1._updatedFibers&&(I=F1._updatedFibers.size,F1._updatedFibers.clear(),10<I&&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.")),l!==null&&F1.types!==null&&(l.types!==null&&l.types!==F1.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."),l.types=F1.types),u1.T=l}},YN.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},YN.use=function(I){return x().use(I)},YN.useActionState=function(I,l,F1){return x().useActionState(I,l,F1)},YN.useCallback=function(I,l){return x().useCallback(I,l)},YN.useContext=function(I){var l=x();return I.$$typeof===q1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),l.useContext(I)},YN.useDebugValue=function(I,l){return x().useDebugValue(I,l)},YN.useDeferredValue=function(I,l){return x().useDeferredValue(I,l)},YN.useEffect=function(I,l){return I==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useEffect(I,l)},YN.useEffectEvent=function(I){return x().useEffectEvent(I)},YN.useId=function(){return x().useId()},YN.useImperativeHandle=function(I,l,F1){return x().useImperativeHandle(I,l,F1)},YN.useInsertionEffect=function(I,l){return I==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useInsertionEffect(I,l)},YN.useLayoutEffect=function(I,l){return I==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useLayoutEffect(I,l)},YN.useMemo=function(I,l){return x().useMemo(I,l)},YN.useOptimistic=function(I,l){return x().useOptimistic(I,l)},YN.useReducer=function(I,l,F1){return x().useReducer(I,l,F1)},YN.useRef=function(I){return x().useRef(I)},YN.useState=function(I){return x().useState(I)},YN.useSyncExternalStore=function(I,l,F1){return x().useSyncExternalStore(I,l,F1)},YN.useTransition=function(){return x().useTransition()},YN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var VA=p4((zN)=>{var lF=p0(G4());(function(){function Q(){}function U(T){return""+T}function Z(T,A,R){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(P);var N=!1}catch(V){N=!0}return N&&(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&&P[Symbol.toStringTag]||P.constructor.name||"Object"),U(P)),{$$typeof:M,key:P==null?null:""+P,children:T,containerInfo:A,implementation:R}}function K(T,A){if(T==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function H(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function Y(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function W(){var T=O.H;return T===null&&console.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:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),j}function s(){D1.asyncTransitions--}function U1(j){if(X5===null)try{var q1=("require"+Math.random()).slice(0,7);X5=(Bq&&Bq[q1]).call(Bq,"timers").setImmediate}catch(I1){X5=function(P1){I4===!1&&(I4=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y1=new MessageChannel;y1.port1.onmessage=P1,y1.port2.postMessage(void 0)}}return X5(j)}function Q1(j){return 1<j.length&&typeof AggregateError==="function"?AggregateError(j):j[0]}function h(j,q1){q1!==x5-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),x5=q1}function g(j,q1,I1){var P1=D1.actQueue;if(P1!==null)if(P1.length!==0)try{p(P1),U1(function(){return g(j,q1,I1)});return}catch(y1){D1.thrownErrors.push(y1)}else D1.actQueue=null;0<D1.thrownErrors.length?(P1=Q1(D1.thrownErrors),D1.thrownErrors.length=0,I1(P1)):q1(j)}function p(j){if(!R5){R5=!0;var q1=0;try{for(;q1<j.length;q1++){var I1=j[q1];do{D1.didUsePromise=!1;var P1=I1(!1);if(P1!==null){if(D1.didUsePromise){j[q1]=I1,j.splice(0,q1);return}I1=P1}else break}while(1)}j.length=0}catch(y1){j.splice(0,q1+1),D1.thrownErrors.push(y1)}finally{R5=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),_1=Symbol.for("react.consumer"),a=Symbol.for("react.context"),H1=Symbol.for("react.forward_ref"),O1=Symbol.for("react.suspense"),L1=Symbol.for("react.suspense_list"),T1=Symbol.for("react.memo"),G1=Symbol.for("react.lazy"),R1=Symbol.for("react.activity"),f1=Symbol.iterator,z1={},C1={isMounted:function(){return!1},enqueueForceUpdate:function(j){Z(j,"forceUpdate")},enqueueReplaceState:function(j){Z(j,"replaceState")},enqueueSetState:function(j){Z(j,"setState")}},b1=Object.assign,c1={};Object.freeze(c1),K.prototype.isReactComponent={},K.prototype.setState=function(j,q1){if(typeof j!=="object"&&typeof j!=="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,q1,"setState")},K.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};var k1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(O5 in k1)k1.hasOwnProperty(O5)&&Q(O5,k1[O5]);H.prototype=K.prototype,k1=Y.prototype=new H,k1.constructor=Y,b1(k1,K.prototype),k1.isPureReactComponent=!0;var A1=Array.isArray,e1=Symbol.for("react.client.reference"),D1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},g0=Object.prototype.hasOwnProperty,_0=console.createTask?console.createTask:function(){return null};k1={react_stack_bottom_frame:function(j){return j()}};var t0,C2,u2={},b2=k1.react_stack_bottom_frame.bind(k1,R)(),f2=_0(T(R)),T2=!1,G2=/\/+/g,R2=typeof reportError==="function"?reportError:function(j){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var q1=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j==="object"&&j!==null&&typeof j.message==="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(q1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",j);return}console.error(j)},I4=!1,X5=null,x5=0,q4=!1,R5=!1,G3=typeof queueMicrotask==="function"?function(j){queueMicrotask(function(){return queueMicrotask(j)})}:U1;k1=Object.freeze({__proto__:null,c:function(j){return m().useMemoCache(j)}});var O5={map:u,forEach:function(j,q1,I1){u(j,function(){q1.apply(this,arguments)},I1)},count:function(j){var q1=0;return u(j,function(){q1++}),q1},toArray:function(j){return u(j,function(q1){return q1})||[]},only:function(j){if(!N(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};LN.Activity=R1,LN.Children=O5,LN.Component=K,LN.Fragment=o,LN.Profiler=t,LN.PureComponent=Y,LN.StrictMode=k,LN.Suspense=O1,LN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D1,LN.__COMPILER_RUNTIME=k1,LN.act=function(j){var q1=D1.actQueue,I1=x5;x5++;var P1=D1.actQueue=q1!==null?q1:[],y1=!1;try{var i1=j()}catch(x1){D1.thrownErrors.push(x1)}if(0<D1.thrownErrors.length)throw h(q1,I1),j=Q1(D1.thrownErrors),D1.thrownErrors.length=0,j;if(i1!==null&&typeof i1==="object"&&typeof i1.then==="function"){var r1=i1;return G3(function(){y1||q4||(q4=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(x1,K2){y1=!0,r1.then(function(E2){if(h(q1,I1),I1===0){try{p(P1),U1(function(){return g(E2,x1,K2)})}catch(B1){D1.thrownErrors.push(B1)}if(0<D1.thrownErrors.length){var $1=Q1(D1.thrownErrors);D1.thrownErrors.length=0,K2($1)}}else x1(E2)},function(E2){h(q1,I1),0<D1.thrownErrors.length?(E2=Q1(D1.thrownErrors),D1.thrownErrors.length=0,K2(E2)):K2(E2)})}}}var F0=i1;if(h(q1,I1),I1===0&&(p(P1),P1.length!==0&&G3(function(){y1||q4||(q4=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),D1.actQueue=null),0<D1.thrownErrors.length)throw j=Q1(D1.thrownErrors),D1.thrownErrors.length=0,j;return{then:function(x1,K2){y1=!0,I1===0?(D1.actQueue=P1,U1(function(){return g(F0,x1,K2)})):x1(F0)}}},LN.cache=function(j){return function(){return j.apply(null,arguments)}},LN.cacheSignal=function(){return null},LN.captureOwnerStack=function(){var j=D1.getCurrentStack;return j===null?null:j()},LN.cloneElement=function(j,q1,I1){if(j===null||j===void 0)throw Error("The argument must be a React element, but you passed "+j+".");var P1=b1({},j.props),y1=j.key,i1=j._owner;if(q1!=null){var r1;_:{if(g0.call(q1,"ref")&&(r1=Object.getOwnPropertyDescriptor(q1,"ref").get)&&r1.isReactWarning){r1=!1;break _}r1=q1.ref!==void 0}r1&&(i1=A()),w(q1)&&(M(q1.key),y1=""+q1.key);for(F0 in q1)!g0.call(q1,F0)||F0==="key"||F0==="__self"||F0==="__source"||F0==="ref"&&q1.ref===void 0||(P1[F0]=q1[F0])}var F0=arguments.length-2;if(F0===1)P1.children=I1;else if(1<F0){r1=Array(F0);for(var x1=0;x1<F0;x1++)r1[x1]=arguments[x1+2];P1.children=r1}P1=S(j.type,y1,P1,i1,j._debugStack,j._debugTask);for(y1=2;y1<arguments.length;y1++)y(arguments[y1]);return P1},LN.createContext=function(j){return j={$$typeof:a,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:_1,_context:j},j._currentRenderer=null,j._currentRenderer2=null,j},LN.createElement=function(j,q1,I1){for(var P1=2;P1<arguments.length;P1++)y(arguments[P1]);P1={};var y1=null;if(q1!=null)for(x1 in C2||!("__self"in q1)||"key"in q1||(C2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),w(q1)&&(M(q1.key),y1=""+q1.key),q1)g0.call(q1,x1)&&x1!=="key"&&x1!=="__self"&&x1!=="__source"&&(P1[x1]=q1[x1]);var i1=arguments.length-2;if(i1===1)P1.children=I1;else if(1<i1){for(var r1=Array(i1),F0=0;F0<i1;F0++)r1[F0]=arguments[F0+2];Object.freeze&&Object.freeze(r1),P1.children=r1}if(j&&j.defaultProps)for(x1 in i1=j.defaultProps,i1)P1[x1]===void 0&&(P1[x1]=i1[x1]);y1&&P(P1,typeof j==="function"?j.displayName||j.name||"Unknown":j);var x1=1e4>D1.recentlyCreatedOwnerStacks++;return S(j,y1,P1,A(),x1?Error("react-stack-top-frame"):b2,x1?_0(T(j)):f2)},LN.createRef=function(){var j={current:null};return Object.seal(j),j},LN.forwardRef=function(j){j!=null&&j.$$typeof===T1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof j!=="function"?console.error("forwardRef requires a render function but was given %s.",j===null?"null":typeof j):j.length!==0&&j.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",j.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),j!=null&&j.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var q1={$$typeof:H1,render:j},I1;return Object.defineProperty(q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return I1},set:function(P1){I1=P1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:P1}),j.displayName=P1)}}),q1},LN.isValidElement=N,LN.lazy=function(j){j={_status:-1,_result:j};var q1={$$typeof:G1,_payload:j,_init:b},I1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return j._ioInfo=I1,q1._debugInfo=[{awaited:I1}],q1},LN.memo=function(j,q1){j==null&&console.error("memo: The first argument must be a component. Instead received: %s",j===null?"null":typeof j),q1={$$typeof:T1,type:j,compare:q1===void 0?null:q1};var I1;return Object.defineProperty(q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return I1},set:function(P1){I1=P1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:P1}),j.displayName=P1)}}),q1},LN.startTransition=function(j){var q1=D1.T,I1={};I1._updatedFibers=new Set,D1.T=I1;try{var P1=j(),y1=D1.S;y1!==null&&y1(I1,P1),typeof P1==="object"&&P1!==null&&typeof P1.then==="function"&&(D1.asyncTransitions++,P1.then(s,s),P1.then(W,R2))}catch(i1){R2(i1)}finally{q1===null&&I1._updatedFibers&&(j=I1._updatedFibers.size,I1._updatedFibers.clear(),10<j&&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.")),q1!==null&&I1.types!==null&&(q1.types!==null&&q1.types!==I1.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."),q1.types=I1.types),D1.T=q1}},LN.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},LN.use=function(j){return m().use(j)},LN.useActionState=function(j,q1,I1){return m().useActionState(j,q1,I1)},LN.useCallback=function(j,q1){return m().useCallback(j,q1)},LN.useContext=function(j){var q1=m();return j.$$typeof===_1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),q1.useContext(j)},LN.useDebugValue=function(j,q1){return m().useDebugValue(j,q1)},LN.useDeferredValue=function(j,q1){return m().useDeferredValue(j,q1)},LN.useEffect=function(j,q1){return j==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useEffect(j,q1)},LN.useEffectEvent=function(j){return m().useEffectEvent(j)},LN.useId=function(){return m().useId()},LN.useImperativeHandle=function(j,q1,I1){return m().useImperativeHandle(j,q1,I1)},LN.useInsertionEffect=function(j,q1){return j==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useInsertionEffect(j,q1)},LN.useLayoutEffect=function(j,q1){return j==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useLayoutEffect(j,q1)},LN.useMemo=function(j,q1){return m().useMemo(j,q1)},LN.useOptimistic=function(j,q1){return m().useOptimistic(j,q1)},LN.useReducer=function(j,q1,I1){return m().useReducer(j,q1,I1)},LN.useRef=function(j){return m().useRef(j)},LN.useState=function(j){return m().useState(j)},LN.useSyncExternalStore=function(j,q1,I1){return m().useSyncExternalStore(j,q1,I1)},LN.useTransition=function(){return m().useTransition()},LN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var kA=o4((BN)=>{var lF=s0(B4());(function(){function Q(){}function U(T){return""+T}function Z(T,A,R){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(w);var P=!1}catch(V){P=!0}return P&&(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&&w[Symbol.toStringTag]||w.constructor.name||"Object"),U(w)),{$$typeof:M,key:w==null?null:""+w,children:T,containerInfo:A,implementation:R}}function K(T,A){if(T==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function H(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function Y(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function W(){var T=O.H;return T===null&&console.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:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var L={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},M=Symbol.for("react.portal"),O=lF.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),zN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,zN.createPortal=function(T,A){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(T,A,null,R)},zN.flushSync=function(T){var A=O.T,R=L.p;try{if(O.T=null,L.p=2,T)return T()}finally{O.T=A,L.p=R,L.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},zN.preconnect=function(T,A){typeof T==="string"&&T?A!=null&&typeof A!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",Y(A)):A!=null&&typeof A.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",H(A.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T)),typeof T==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,L.d.C(T,A))},zN.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T));else if(1<arguments.length){var A=arguments[1];typeof A==="object"&&A.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(A)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(A))}typeof T==="string"&&L.d.D(T)},zN.preinit=function(T,A){if(typeof T==="string"&&T?A==null||typeof A!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",Y(A)):A.as!=="style"&&A.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',Y(A.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T)),typeof T==="string"&&A&&typeof A.as==="string"){var R=A.as,P=K(R,A.crossOrigin),N=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;R==="style"?L.d.S(T,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:P,integrity:N,fetchPriority:V}):R==="script"&&L.d.X(T,{crossOrigin:P,integrity:N,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},zN.preinitModule=function(T,A){var R="";if(typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(R+=" The `as` option encountered was "+Y(A.as)+"."),R)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",R);else switch(R=A&&typeof A.as==="string"?A.as:"script",R){case"script":break;default:R=Y(R),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',R,T)}if(typeof T==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")R=K(A.as,A.crossOrigin),L.d.M(T,{crossOrigin:R,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&L.d.M(T)},zN.preload=function(T,A){var R="";if(typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A==null||typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(R+=" The `as` option encountered was "+H(A.as)+"."),R&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',R),typeof T==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){R=A.as;var P=K(R,A.crossOrigin);L.d.L(T,R,{crossOrigin:P,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},zN.preloadModule=function(T,A){var R="";typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(R+=" The `as` option encountered was "+H(A.as)+"."),R&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',R),typeof T==="string"&&(A?(R=K(A.as,A.crossOrigin),L.d.m(T,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:R,integrity:typeof A.integrity==="string"?A.integrity:void 0})):L.d.m(T))},zN.requestFormReset=function(T){L.d.r(T)},zN.unstable_batchedUpdates=function(T,A){return T(A)},zN.useFormState=function(T,A,R){return W().useFormState(T,A,R)},zN.useFormStatus=function(){return W().useHostTransitionStatus()},zN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var iF=p4((Zk,kA)=>{var WN=p0(VA());kA.exports=WN});var DA=p4((LN)=>{var W0=p0(yA()),$9=p0(G4()),dF=p0(iF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],X=Y2(_)?_.slice():U0({},_);return X[G]=U(_[G],J,$+1,q),X}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return K(_,J,$,0)}}function K(_,J,$,q){var G=J[q],X=Y2(_)?_.slice():U0({},_);return q+1===J.length?(X[$[q]]=X[G],Y2(X)?X.splice(G,1):delete X[G]):X[G]=K(_[G],J,$,q+1),X}function H(_,J,$){var q=J[$],G=Y2(_)?_.slice():U0({},_);if($+1===J.length)return Y2(G)?G.splice(q,1):delete G[q],G;return G[q]=H(_[q],J,$+1),G}function Y(){return!1}function W(){return null}function L(){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 M(){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 O(){}function T(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function R(_,J,$,q){return new rO(_,J,$,q)}function P(_,J){_.context===F6&&(KZ(_.current,2,J,_,null,null),z7())}function N(_,J){if(k5!==null){var $=J.staleFamilies;J=J.updatedFamilies,$_(),bH(_.current,J,$),z7()}}function V(_){k5=_}function v(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function f(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function y(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function C(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function j(_){if(f(_)!==_)throw Error("Unable to find node on an unmounted component.")}function u(_){var J=_.alternate;if(!J){if(J=f(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var G=$.return;if(G===null)break;var X=G.alternate;if(X===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===X.child){for(X=G.child;X;){if(X===$)return j(G),_;if(X===q)return j(G),J;X=X.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=X;else{for(var z=!1,B=G.child;B;){if(B===$){z=!0,$=G,q=X;break}if(B===q){z=!0,q=G,$=X;break}B=B.sibling}if(!z){for(B=X.child;B;){if(B===$){z=!0,$=X,q=G;break}if(B===q){z=!0,q=X,$=G;break}B=B.sibling}if(!z)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($.alternate!==q)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($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function h(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=h(_),J!==null)return J;_=_.sibling}return null}function E(_){if(_===null||typeof _!=="object")return null;return _=cW&&_[cW]||_["@@iterator"],typeof _==="function"?_:null}function b(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Ww?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case R7:return"Fragment";case BZ:return"Profiler";case XQ:return"StrictMode";case MZ:return"Suspense";case TZ:return"SuspenseList";case RZ:return"Activity"}if(typeof _==="object")switch(typeof _.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case T7:return"Portal";case y4:return _.displayName||"Context";case AZ:return(_._context.displayName||"Context")+".Consumer";case Y_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case KQ:return J=_.displayName||null,J!==null?J:b(_.type)||"Memo";case A5:J=_._payload,_=_._init;try{return b(_(J))}catch($){}}return null}function D(_){return typeof _.tag==="number"?x(_):typeof _.name==="string"?_.name:null}function x(_){var J=_.type;switch(_.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(J._context.displayName||"Context")+".Consumer";case 10:return J.displayName||"Context";case 18:return"DehydratedFragment";case 11:return _=J.render,_=_.displayName||_.name||"",J.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return J;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return b(J);case 8:return J===XQ?"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 J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;break;case 29:if(J=_._debugInfo,J!=null){for(var $=J.length-1;0<=$;$--)if(typeof J[$].name==="string")return J[$].name}if(_.return!==null)return x(_.return)}return null}function $1(_){return{current:_}}function Q1(_,J){0>F3?console.error("Unexpected pop."):(J!==IZ[F3]&&console.error("Unexpected Fiber popped."),_.current=OZ[F3],OZ[F3]=null,IZ[F3]=null,F3--)}function J1(_,J,$){F3++,OZ[F3]=_.current,IZ[F3]=$,_.current=J}function m(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function p(_,J){J1($6,J,_),J1(z_,_,_),J1(J6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?zW(J):I3:I3;break;default:if($=J.tagName,J=J.namespaceURI)J=zW(J),J=WW(J,$);else switch($){case"svg":J=_9;break;case"math":J=Fq;break;default:J=I3}}$=$.toLowerCase(),$=y9(null,$),$={context:J,ancestorInfo:$},Q1(J6,_),J1(J6,$,_)}function c(_){Q1(J6,_),Q1(z_,_),Q1($6,_)}function a(){return m(J6.current)}function i(_){_.memoizedState!==null&&J1(HQ,_,_);var J=m(J6.current),$=_.type,q=WW(J.context,$);$=y9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(J1(z_,_,_),J1(J6,q,_))}function o(_){z_.current===_&&(Q1(J6,_),Q1(z_,_)),HQ.current===_&&(Q1(HQ,_),qJ._currentValue=P8)}function k(){}function g(){if(W_===0){lW=console.log,iW=console.info,dW=console.warn,rW=console.error,aW=console.group,sW=console.groupCollapsed,tW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}W_++}function q1(){if(W_--,W_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U0({},_,{value:lW}),info:U0({},_,{value:iW}),warn:U0({},_,{value:dW}),error:U0({},_,{value:rW}),group:U0({},_,{value:aW}),groupCollapsed:U0({},_,{value:sW}),groupEnd:U0({},_,{value:tW})})}0>W_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function t(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var L={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},M=Symbol.for("react.portal"),O=lF.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),BN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,BN.createPortal=function(T,A){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(T,A,null,R)},BN.flushSync=function(T){var A=O.T,R=L.p;try{if(O.T=null,L.p=2,T)return T()}finally{O.T=A,L.p=R,L.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},BN.preconnect=function(T,A){typeof T==="string"&&T?A!=null&&typeof A!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",Y(A)):A!=null&&typeof A.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",H(A.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T)),typeof T==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,L.d.C(T,A))},BN.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T));else if(1<arguments.length){var A=arguments[1];typeof A==="object"&&A.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(A)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(A))}typeof T==="string"&&L.d.D(T)},BN.preinit=function(T,A){if(typeof T==="string"&&T?A==null||typeof A!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",Y(A)):A.as!=="style"&&A.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',Y(A.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T)),typeof T==="string"&&A&&typeof A.as==="string"){var R=A.as,w=K(R,A.crossOrigin),P=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;R==="style"?L.d.S(T,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:w,integrity:P,fetchPriority:V}):R==="script"&&L.d.X(T,{crossOrigin:w,integrity:P,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},BN.preinitModule=function(T,A){var R="";if(typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(R+=" The `as` option encountered was "+Y(A.as)+"."),R)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",R);else switch(R=A&&typeof A.as==="string"?A.as:"script",R){case"script":break;default:R=Y(R),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',R,T)}if(typeof T==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")R=K(A.as,A.crossOrigin),L.d.M(T,{crossOrigin:R,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&L.d.M(T)},BN.preload=function(T,A){var R="";if(typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A==null||typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(R+=" The `as` option encountered was "+H(A.as)+"."),R&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',R),typeof T==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){R=A.as;var w=K(R,A.crossOrigin);L.d.L(T,R,{crossOrigin:w,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},BN.preloadModule=function(T,A){var R="";typeof T==="string"&&T||(R+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?R+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(R+=" The `as` option encountered was "+H(A.as)+"."),R&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',R),typeof T==="string"&&(A?(R=K(A.as,A.crossOrigin),L.d.m(T,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:R,integrity:typeof A.integrity==="string"?A.integrity:void 0})):L.d.m(T))},BN.requestFormReset=function(T){L.d.r(T)},BN.unstable_batchedUpdates=function(T,A){return T(A)},BN.useFormState=function(T,A,R){return W().useFormState(T,A,R)},BN.useFormStatus=function(){return W().useHostTransitionStatus()},BN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var iF=o4((Xk,DA)=>{var AN=s0(kA());DA.exports=AN});var uA=o4((MN)=>{var I0=s0(yA()),F9=s0(B4()),dF=s0(iF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],X=O2(_)?_.slice():Y0({},_);return X[G]=U(_[G],J,$+1,q),X}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return K(_,J,$,0)}}function K(_,J,$,q){var G=J[q],X=O2(_)?_.slice():Y0({},_);return q+1===J.length?(X[$[q]]=X[G],O2(X)?X.splice(G,1):delete X[G]):X[G]=K(_[G],J,$,q+1),X}function H(_,J,$){var q=J[$],G=O2(_)?_.slice():Y0({},_);if($+1===J.length)return O2(G)?G.splice(q,1):delete G[q],G;return G[q]=H(_[q],J,$+1),G}function Y(){return!1}function W(){return null}function L(){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 M(){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 O(){}function T(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function R(_,J,$,q){return new tO(_,J,$,q)}function w(_,J){_.context===A6&&(KZ(_.current,2,J,_,null,null),T7())}function P(_,J){if(c5!==null){var $=J.staleFamilies;J=J.updatedFamilies,G_(),EH(_.current,J,$),T7()}}function V(_){c5=_}function S(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function C(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function y(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function N(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function v(_){if(C(_)!==_)throw Error("Unable to find node on an unmounted component.")}function D(_){var J=_.alternate;if(!J){if(J=C(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var G=$.return;if(G===null)break;var X=G.alternate;if(X===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===X.child){for(X=G.child;X;){if(X===$)return v(G),_;if(X===q)return v(G),J;X=X.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=X;else{for(var z=!1,B=G.child;B;){if(B===$){z=!0,$=G,q=X;break}if(B===q){z=!0,q=G,$=X;break}B=B.sibling}if(!z){for(B=X.child;B;){if(B===$){z=!0,$=X,q=G;break}if(B===q){z=!0,q=X,$=G;break}B=B.sibling}if(!z)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($.alternate!==q)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($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function x(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=x(_),J!==null)return J;_=_.sibling}return null}function E(_){if(_===null||typeof _!=="object")return null;return _=lW&&_[lW]||_["@@iterator"],typeof _==="function"?_:null}function u(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Aw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case C7:return"Fragment";case BZ:return"Profiler";case KQ:return"StrictMode";case MZ:return"Suspense";case TZ:return"SuspenseList";case RZ:return"Activity"}if(typeof _==="object")switch(typeof _.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case N7:return"Portal";case m4:return _.displayName||"Context";case AZ:return(_._context.displayName||"Context")+".Consumer";case B_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case HQ:return J=_.displayName||null,J!==null?J:u(_.type)||"Memo";case v5:J=_._payload,_=_._init;try{return u(_(J))}catch($){}}return null}function b(_){return typeof _.tag==="number"?m(_):typeof _.name==="string"?_.name:null}function m(_){var J=_.type;switch(_.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(J._context.displayName||"Context")+".Consumer";case 10:return J.displayName||"Context";case 18:return"DehydratedFragment";case 11:return _=J.render,_=_.displayName||_.name||"",J.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return J;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return u(J);case 8:return J===KQ?"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 J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;break;case 29:if(J=_._debugInfo,J!=null){for(var $=J.length-1;0<=$;$--)if(typeof J[$].name==="string")return J[$].name}if(_.return!==null)return m(_.return)}return null}function s(_){return{current:_}}function U1(_,J){0>B3?console.error("Unexpected pop."):(J!==IZ[B3]&&console.error("Unexpected Fiber popped."),_.current=OZ[B3],OZ[B3]=null,IZ[B3]=null,B3--)}function Q1(_,J,$){B3++,OZ[B3]=_.current,IZ[B3]=$,_.current=J}function h(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function g(_,J){Q1(H6,J,_),Q1(A_,_,_),Q1(K6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?WW(J):j3:j3;break;default:if($=J.tagName,J=J.namespaceURI)J=WW(J),J=LW(J,$);else switch($){case"svg":J=G9;break;case"math":J=Xq;break;default:J=j3}}$=$.toLowerCase(),$=u9(null,$),$={context:J,ancestorInfo:$},U1(K6,_),Q1(K6,$,_)}function p(_){U1(K6,_),U1(A_,_),U1(H6,_)}function c(){return h(K6.current)}function l(_){_.memoizedState!==null&&Q1(YQ,_,_);var J=h(K6.current),$=_.type,q=LW(J.context,$);$=u9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(Q1(A_,_,_),Q1(K6,q,_))}function o(_){A_.current===_&&(U1(K6,_),U1(A_,_)),YQ.current===_&&(U1(YQ,_),FJ._currentValue=y8)}function k(){}function t(){if(M_===0){iW=console.log,dW=console.info,rW=console.warn,aW=console.error,sW=console.group,tW=console.groupCollapsed,oW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}M_++}function _1(){if(M_--,M_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y0({},_,{value:iW}),info:Y0({},_,{value:dW}),warn:Y0({},_,{value:rW}),error:Y0({},_,{value:aW}),group:Y0({},_,{value:sW}),groupCollapsed:Y0({},_,{value:tW}),groupEnd:Y0({},_,{value:oW})})}0>M_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function a(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(_=_.slice(29)),J=_.indexOf(`
19
19
  `),J!==-1&&(_=_.slice(J+1)),J=_.indexOf("react_stack_bottom_frame"),J!==-1&&(J=_.lastIndexOf(`
20
- `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function W1(_){if(wZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);wZ=J&&J[1]||"",oW=-1<$.stack.indexOf(`
20
+ `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function H1(_){if(wZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);wZ=J&&J[1]||"",nW=-1<$.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<$.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+wZ+_+oW}function T1(_,J){if(!_||PZ)return"";var $=NZ.get(_);if($!==void 0)return $;PZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=Y1.H,Y1.H=null,g();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(f1){var Z1=f1}Reflect.construct(_,[],r)}else{try{r.call()}catch(f1){Z1=f1}_.call(r.prototype)}}else{try{throw Error()}catch(f1){Z1=f1}(r=_())&&typeof r.catch==="function"&&r.catch(function(){})}}catch(f1){if(f1&&Z1&&typeof f1.stack==="string")return[f1.stack,Z1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),B=z[0],w=z[1];if(B&&w){var S=B.split(`
23
- `),e=w.split(`
24
- `);for(z=X=0;X<S.length&&!S[X].includes("DetermineComponentFrameRoot");)X++;for(;z<e.length&&!e[z].includes("DetermineComponentFrameRoot");)z++;if(X===S.length||z===e.length)for(X=S.length-1,z=e.length-1;1<=X&&0<=z&&S[X]!==e[z];)z--;for(;1<=X&&0<=z;X--,z--)if(S[X]!==e[z]){if(X!==1||z!==1)do if(X--,z--,0>z||S[X]!==e[z]){var _1=`
25
- `+S[X].replace(" at new "," at ");return _.displayName&&_1.includes("<anonymous>")&&(_1=_1.replace("<anonymous>",_.displayName)),typeof _==="function"&&NZ.set(_,_1),_1}while(1<=X&&0<=z);break}}}finally{PZ=!1,Y1.H=q,q1(),Error.prepareStackTrace=$}return S=(S=_?_.displayName||_.name:"")?W1(S):"",typeof _==="function"&&NZ.set(_,S),S}function O1(_,J){switch(_.tag){case 26:case 27:case 5:return W1(_.type);case 16:return W1("Lazy");case 13:return _.child!==J&&J!==null?W1("Suspense Fallback"):W1("Suspense");case 19:return W1("SuspenseList");case 0:case 15:return T1(_.type,!1);case 11:return T1(_.type.render,!1);case 1:return T1(_.type,!0);case 31:return W1("Activity");default:return""}}function L1(_){try{var J="",$=null;do{J+=O1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var X=q[G];if(typeof X.name==="string"){var z=J;_:{var{name:B,env:w,debugLocation:S}=X;if(S!=null){var e=t(S),_1=e.lastIndexOf(`
26
- `),r=_1===-1?e:e.slice(_1+1);if(r.indexOf(B)!==-1){var Z1=`
27
- `+r;break _}}Z1=W1(B+(w?" ["+w+"]":""))}J=z+Z1}}$=_,_=_.return}while(_);return J}catch(f1){return`
28
- Error generating stack: `+f1.message+`
29
- `+f1.stack}}function U1(_){return(_=_?_.displayName||_.name:"")?W1(_):""}function P1(){if(M5===null)return null;var _=M5._debugOwner;return _!=null?D(_):null}function v1(){if(M5===null)return"";var _=M5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=W1(_.type);break;case 13:J+=W1("Suspense");break;case 19:J+=W1("SuspenseList");break;case 31:J+=W1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=U1(_.type));break;case 11:_._debugOwner||J!==""||(J+=U1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=t(q);G!==""&&(J+=`
22
+ `+wZ+_+nW}function O1(_,J){if(!_||PZ)return"";var $=NZ.get(_);if($!==void 0)return $;PZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=Y1.H,Y1.H=null,t();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(N1){var Z1=N1}Reflect.construct(_,[],d)}else{try{d.call()}catch(N1){Z1=N1}_.call(d.prototype)}}else{try{throw Error()}catch(N1){Z1=N1}(d=_())&&typeof d.catch==="function"&&d.catch(function(){})}}catch(N1){if(N1&&Z1&&typeof N1.stack==="string")return[N1.stack,Z1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),B=z[0],I=z[1];if(B&&I){var f=B.split(`
23
+ `),e=I.split(`
24
+ `);for(z=X=0;X<f.length&&!f[X].includes("DetermineComponentFrameRoot");)X++;for(;z<e.length&&!e[z].includes("DetermineComponentFrameRoot");)z++;if(X===f.length||z===e.length)for(X=f.length-1,z=e.length-1;1<=X&&0<=z&&f[X]!==e[z];)z--;for(;1<=X&&0<=z;X--,z--)if(f[X]!==e[z]){if(X!==1||z!==1)do if(X--,z--,0>z||f[X]!==e[z]){var J1=`
25
+ `+f[X].replace(" at new "," at ");return _.displayName&&J1.includes("<anonymous>")&&(J1=J1.replace("<anonymous>",_.displayName)),typeof _==="function"&&NZ.set(_,J1),J1}while(1<=X&&0<=z);break}}}finally{PZ=!1,Y1.H=q,_1(),Error.prepareStackTrace=$}return f=(f=_?_.displayName||_.name:"")?H1(f):"",typeof _==="function"&&NZ.set(_,f),f}function L1(_,J){switch(_.tag){case 26:case 27:case 5:return H1(_.type);case 16:return H1("Lazy");case 13:return _.child!==J&&J!==null?H1("Suspense Fallback"):H1("Suspense");case 19:return H1("SuspenseList");case 0:case 15:return O1(_.type,!1);case 11:return O1(_.type.render,!1);case 1:return O1(_.type,!0);case 31:return H1("Activity");default:return""}}function T1(_){try{var J="",$=null;do{J+=L1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var X=q[G];if(typeof X.name==="string"){var z=J;_:{var{name:B,env:I,debugLocation:f}=X;if(f!=null){var e=a(f),J1=e.lastIndexOf(`
26
+ `),d=J1===-1?e:e.slice(J1+1);if(d.indexOf(B)!==-1){var Z1=`
27
+ `+d;break _}}Z1=H1(B+(I?" ["+I+"]":""))}J=z+Z1}}$=_,_=_.return}while(_);return J}catch(N1){return`
28
+ Error generating stack: `+N1.message+`
29
+ `+N1.stack}}function G1(_){return(_=_?_.displayName||_.name:"")?H1(_):""}function R1(){if(j5===null)return null;var _=j5._debugOwner;return _!=null?b(_):null}function f1(){if(j5===null)return"";var _=j5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=H1(_.type);break;case 13:J+=H1("Suspense");break;case 19:J+=H1("SuspenseList");break;case 31:J+=H1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=G1(_.type));break;case 11:_._debugOwner||J!==""||(J+=G1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=a(q);G!==""&&(J+=`
30
30
  `+G)}}else if(_.debugStack!=null){var X=_.debugStack;(_=_.owner)&&X&&(J+=`
31
- `+t(X))}else break;var z=J}catch(B){z=`
31
+ `+a(X))}else break;var z=J}catch(B){z=`
32
32
  Error generating stack: `+B.message+`
33
- `+B.stack}return z}function A1(_,J,$,q,G,X,z){var B=M5;k1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,X,z)):J($,q,G,X,z)}finally{k1(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function k1(_){Y1.getCurrentStack=_===null?null:v1,V4=!1,M5=_}function D1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function g1(_){try{return h1(_),!1}catch(J){return!0}}function h1(_){return""+_}function M1(_,J){if(g1(_))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",J,D1(_)),h1(_)}function r1(_,J){if(g1(_))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",J,D1(_)),h1(_)}function u1(_){if(g1(_))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",D1(_)),h1(_)}function D0(_){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var J=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(J.isDisabled)return!0;if(!J.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{I7=J.inject(_),D2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function o1(_){if(typeof Ow==="function"&&Iw(_),D2&&typeof D2.setStrictMode==="function")try{D2.setStrictMode(I7,_)}catch(J){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",J))}}function X2(_){return _>>>=0,_===0?32:31-(ww(_)/Pw|0)|0}function K2(_){var J=_&42;if(J!==0)return J;switch(_&-_){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 _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&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."),_}}function N2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,X=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var B=q&134217727;return B!==0?(q=B&~X,q!==0?G=K2(q):(z&=B,z!==0?G=K2(z):$||($=B&~_,$!==0&&(G=K2($))))):(B=q&~X,B!==0?G=K2(B):z!==0?G=K2(z):$||($=q&~_,$!==0&&(G=K2($)))),G===0?0:J!==0&&J!==G&&(J&X)===0&&(X=G&-G,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:G}function A2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function C2(_,J){switch(_){case 1:case 2:case 4:case 8:case 64:return J+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 J+5000;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 M2(){var _=WQ;return WQ<<=1,(WQ&62914560)===0&&(WQ=4194304),_}function H2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function _2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function z4(_,J,$,q,G,X){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:B,expirationTimes:w,hiddenUpdates:S}=_;for($=z&~$;0<$;){var e=31-c2($),_1=1<<e;B[e]=0,w[e]=-1;var r=S[e];if(r!==null)for(S[e]=null,e=0;e<r.length;e++){var Z1=r[e];Z1!==null&&(Z1.lane&=-536870913)}$&=~_1}q!==0&&m2(_,q,0),X!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=X&~(z&~J))}function m2(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-c2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function f5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-c2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function S5(_,J){var $=J&-J;return $=($&42)!==0?1:r5($),($&(_.suspendedLanes|J))!==0?0:$}function r5(_){switch(_){case 2:_=1;break;case 8:_=4;break;case 32:_=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:_=128;break;case 268435456:_=134217728;break;default:_=0}return _}function o4(_,J,$){if(D4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-c2($),G=1<<q;_[q].add(J),$&=~G}}function G1(_,J){if(D4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-c2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(X){var z=X.alternate;z!==null&&q.has(z)||q.add(X)}),G.clear()),J&=~_}}function I(_){return _&=-_,T5!==0&&T5<_?e5!==0&&e5<_?(_&134217727)!==0?u4:LQ:e5:T5}function l(){var _=A0.p;if(_!==0)return _;return _=window.event,_===void 0?u4:bW(_.type)}function F1(_,J){var $=A0.p;try{return A0.p=_,J()}finally{A0.p=$}}function I1(_){delete _[j2],delete _[l2],delete _[jZ],delete _[Nw],delete _[Cw]}function R1(_){var J=_[j2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[q6]||$[j2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=IW(_);_!==null;){if($=_[j2])return $;_=IW(_)}return J}_=$,$=_.parentNode}return null}function N1(_){if(_=_[j2]||_[q6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function C1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function V1(_){var J=_[nW];return J||(J=_[nW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function j1(_){_[L_]=!0}function p1(_,J){S0(_,J),S0(_+"Capture",J)}function S0(_,J){$8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),$8[_]=J;var $=_.toLowerCase();yZ[$]=_,_==="onDoubleClick"&&(yZ.ondblclick=_);for(_=0;_<J.length;_++)eW.add(J[_])}function w0(_,J){fw[J.type]||J.onChange||J.onInput||J.readOnly||J.disabled||J.value==null||(_==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),J.onChange||J.readOnly||J.disabled||J.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function n4(_){if(n5.call(JL,_))return!0;if(n5.call(_L,_))return!1;if(Sw.test(_))return JL[_]=!0;return _L[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function v5(_,J,$){if(n4(J)){if(!_.hasAttribute(J)){switch(typeof $){case"symbol":case"object":return $;case"function":return $;case"boolean":if($===!1)return $}return $===void 0?void 0:null}if(_=_.getAttribute(J),_===""&&$===!0)return!0;return M1($,J),_===""+$?$:_}}function T0(_,J,$){if(n4(J))if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":_.removeAttribute(J);return;case"boolean":var q=J.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){_.removeAttribute(J);return}}M1($,J),_.setAttribute(J,""+$)}}function e8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}M1($,J),_.setAttribute(J,""+$)}}function a5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}M1(q,$),_.setAttributeNS(J,$,""+q)}}function e2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return u1(_),_;default:return""}}function iJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function LU(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:G,set:X}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){u1(z),$=""+z,X.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){u1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function P9(_){if(!_._valueTracker){var J=iJ(_)?"checked":"value";_._valueTracker=LU(_,J,""+_[J])}}function dJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=iJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function _7(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function _5(_){return _.replace(vw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function rJ(_,J){J.checked===void 0||J.defaultChecked===void 0||QL||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",P1()||"A component",J.type),QL=!0),J.value===void 0||J.defaultValue===void 0||$L||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",P1()||"A component",J.type),$L=!0)}function J7(_,J,$,q,G,X,z,B){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(M1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+e2(J)}else _.value!==""+e2(J)&&(_.value=""+e2(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?$7(_,z,e2(J)):$!=null?$7(_,z,e2($)):q!=null&&_.removeAttribute("value"),G==null&&X!=null&&(_.defaultChecked=!!X),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(M1(B,"name"),_.name=""+e2(B)):_.removeAttribute("name")}function N9(_,J,$,q,G,X,z,B){if(X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(M1(X,"type"),_.type=X),J!=null||$!=null){if(!(X!=="submit"&&X!=="reset"||J!==void 0&&J!==null)){P9(_);return}$=$!=null?""+e2($):"",J=J!=null?""+e2(J):$,B||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=B?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(M1(z,"name"),_.name=z),P9(_)}function $7(_,J,$){J==="number"&&_7(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function aJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?$9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||UL||(UL=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):J.dangerouslySetInnerHTML==null||GL||(GL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||qL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),qL=!0)}function sJ(){var _=P1();return _?`
33
+ `+B.stack}return z}function z1(_,J,$,q,G,X,z){var B=j5;C1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,X,z)):J($,q,G,X,z)}finally{C1(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function C1(_){Y1.getCurrentStack=_===null?null:f1,g4=!1,j5=_}function b1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function c1(_){try{return k1(_),!1}catch(J){return!0}}function k1(_){return""+_}function A1(_,J){if(c1(_))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",J,b1(_)),k1(_)}function e1(_,J){if(c1(_))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",J,b1(_)),k1(_)}function D1(_){if(c1(_))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",b1(_)),k1(_)}function g0(_){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var J=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(J.isDisabled)return!0;if(!J.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{S7=J.inject(_),i2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function _0(_){if(typeof Pw==="function"&&Nw(_),i2&&typeof i2.setStrictMode==="function")try{i2.setStrictMode(S7,_)}catch(J){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",J))}}function t0(_){return _>>>=0,_===0?32:31-(Cw(_)/fw|0)|0}function C2(_){var J=_&42;if(J!==0)return J;switch(_&-_){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 _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&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."),_}}function u2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,X=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var B=q&134217727;return B!==0?(q=B&~X,q!==0?G=C2(q):(z&=B,z!==0?G=C2(z):$||($=B&~_,$!==0&&(G=C2($))))):(B=q&~X,B!==0?G=C2(B):z!==0?G=C2(z):$||($=q&~_,$!==0&&(G=C2($)))),G===0?0:J!==0&&J!==G&&(J&X)===0&&(X=G&-G,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:G}function b2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function f2(_,J){switch(_){case 1:case 2:case 4:case 8:case 64:return J+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 J+5000;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 T2(){var _=LQ;return LQ<<=1,(LQ&62914560)===0&&(LQ=4194304),_}function G2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function R2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function I4(_,J,$,q,G,X){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:B,expirationTimes:I,hiddenUpdates:f}=_;for($=z&~$;0<$;){var e=31-e2($),J1=1<<e;B[e]=0,I[e]=-1;var d=f[e];if(d!==null)for(f[e]=null,e=0;e<d.length;e++){var Z1=d[e];Z1!==null&&(Z1.lane&=-536870913)}$&=~J1}q!==0&&X5(_,q,0),X!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=X&~(z&~J))}function X5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-e2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function x5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-e2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function q4(_,J){var $=J&-J;return $=($&42)!==0?1:R5($),($&(_.suspendedLanes|J))!==0?0:$}function R5(_){switch(_){case 2:_=1;break;case 8:_=4;break;case 32:_=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:_=128;break;case 268435456:_=134217728;break;default:_=0}return _}function G3(_,J,$){if(c4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-e2($),G=1<<q;_[q].add(J),$&=~G}}function O5(_,J){if(c4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-e2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(X){var z=X.alternate;z!==null&&q.has(z)||q.add(X)}),G.clear()),J&=~_}}function j(_){return _&=-_,V5!==0&&V5<_?X4!==0&&X4<_?(_&134217727)!==0?l4:BQ:X4:V5}function q1(){var _=C0.p;if(_!==0)return _;return _=window.event,_===void 0?l4:EW(_.type)}function I1(_,J){var $=C0.p;try{return C0.p=_,J()}finally{C0.p=$}}function P1(_){delete _[g2],delete _[_5],delete _[jZ],delete _[Sw],delete _[vw]}function y1(_){var J=_[g2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[z6]||$[g2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=wW(_);_!==null;){if($=_[g2])return $;_=wW(_)}return J}_=$,$=_.parentNode}return null}function i1(_){if(_=_[g2]||_[z6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function r1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function F0(_){var J=_[eW];return J||(J=_[eW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function x1(_){_[T_]=!0}function K2(_,J){E2(_,J),E2(_+"Capture",J)}function E2(_,J){K8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),K8[_]=J;var $=_.toLowerCase();VZ[$]=_,_==="onDoubleClick"&&(VZ.ondblclick=_);for(_=0;_<J.length;_++)_L.add(J[_])}function $1(_,J){jw[J.type]||J.onChange||J.onInput||J.readOnly||J.disabled||J.value==null||(_==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),J.onChange||J.readOnly||J.disabled||J.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function B1(_){if(F4.call($L,_))return!0;if(F4.call(JL,_))return!1;if(Vw.test(_))return $L[_]=!0;return JL[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function v1(_,J,$){if(B1(J)){if(!_.hasAttribute(J)){switch(typeof $){case"symbol":case"object":return $;case"function":return $;case"boolean":if($===!1)return $}return $===void 0?void 0:null}if(_=_.getAttribute(J),_===""&&$===!0)return!0;return A1($,J),_===""+$?$:_}}function V1(_,J,$){if(B1(J))if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":_.removeAttribute(J);return;case"boolean":var q=J.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){_.removeAttribute(J);return}}A1($,J),_.setAttribute(J,""+$)}}function Q0(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}A1($,J),_.setAttribute(J,""+$)}}function u1(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}A1(q,$),_.setAttributeNS(J,$,""+q)}}function m1(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return D1(_),_;default:return""}}function J0(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function T0(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:G,set:X}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){D1(z),$=""+z,X.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){D1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function Z2(_){if(!_._valueTracker){var J=J0(_)?"checked":"value";_._valueTracker=T0(_,J,""+_[J])}}function K0(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=J0(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function S2(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function w0(_){return _.replace(yw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function Z7(_,J){J.checked===void 0||J.defaultChecked===void 0||qL||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",R1()||"A component",J.type),qL=!0),J.value===void 0||J.defaultValue===void 0||QL||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",R1()||"A component",J.type),QL=!0)}function K5(_,J,$,q,G,X,z,B){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(A1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+m1(J)}else _.value!==""+m1(J)&&(_.value=""+m1(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?F7(_,z,m1(J)):$!=null?F7(_,z,m1($)):q!=null&&_.removeAttribute("value"),G==null&&X!=null&&(_.defaultChecked=!!X),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(A1(B,"name"),_.name=""+m1(B)):_.removeAttribute("name")}function V0(_,J,$,q,G,X,z,B){if(X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(A1(X,"type"),_.type=X),J!=null||$!=null){if(!(X!=="submit"&&X!=="reset"||J!==void 0&&J!==null)){Z2(_);return}$=$!=null?""+m1($):"",J=J!=null?""+m1(J):$,B||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=B?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(A1(z,"name"),_.name=z),Z2(_)}function F7(_,J,$){J==="number"&&S2(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function sJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?F9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||GL||(GL=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):J.dangerouslySetInnerHTML==null||ZL||(ZL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||UL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),UL=!0)}function tJ(){var _=R1();return _?`
34
34
 
35
- Check the render method of \``+_+"`.":""}function h3(_,J,$,q){if(_=_.options,J){J={};for(var G=0;G<$.length;G++)J["$"+$[G]]=!0;for($=0;$<_.length;$++)G=J.hasOwnProperty("$"+_[$].value),_[$].selected!==G&&(_[$].selected=G),G&&q&&(_[$].defaultSelected=!0)}else{$=""+e2($),J=null;for(G=0;G<_.length;G++){if(_[G].value===$){_[G].selected=!0,q&&(_[G].defaultSelected=!0);return}J!==null||_[G].disabled||(J=_[G])}J!==null&&(J.selected=!0)}}function tJ(_,J){for(_=0;_<FL.length;_++){var $=FL[_];if(J[$]!=null){var q=Y2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,sJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,sJ())}}J.value===void 0||J.defaultValue===void 0||ZL||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ZL=!0)}function oJ(_,J){J.value===void 0||J.defaultValue===void 0||XL||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",P1()||"A component"),XL=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function nJ(_,J,$){if(J!=null&&(J=""+e2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+e2($):""}function C9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Y2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=e2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),P9(_)}function eJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?eJ(_.children[0],J):_}function g2(_){return" "+" ".repeat(_)}function x3(_){return"+ "+" ".repeat(_)}function e4(_){return"- "+" ".repeat(_)}function _$(_){switch(_.tag){case 26:case 27:case 5:return _.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return _=_.type,_.displayName||_.name||null;case 11:return _=_.type.render,_.displayName||_.name||null;case 1:return _=_.type,_.displayName||_.name||null;default:return null}}function m6(_,J){return KL.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function Q7(_,J,$){var q=120-2*$;if(J===null)return x3($)+m6(_,q)+`
36
- `;if(typeof J==="string"){for(var G=0;G<J.length&&G<_.length&&J.charCodeAt(G)===_.charCodeAt(G);G++);return G>q-8&&10<G&&(_="..."+_.slice(G-8),J="..."+J.slice(G-8)),x3($)+m6(_,q)+`
37
- `+e4($)+m6(J,q)+`
38
- `}return g2($)+m6(_,q)+`
39
- `}function f9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function m3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(Y2(_))return"[...]";if(_.$$typeof===j4)return(J=b(_.type))?"<"+J+">":"<...>";var $=f9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var G=JSON.stringify(q);if(G!=='"'+q+'"'&&(q=G),J-=q.length-2,G=m3(_[q],15>J?J:15),J-=G.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+G}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function g3(_,J){return typeof _!=="string"||KL.test(_)?"{"+m3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function S9(_,J,$){var q=120-$.length-_.length,G=[],X;for(X in J)if(J.hasOwnProperty(X)&&X!=="children"){var z=g3(J[X],120-$.length-X.length-1);q-=X.length+z.length+2,G.push(X+"="+z)}return G.length===0?$+"<"+_+`>
35
+ Check the render method of \``+_+"`.":""}function r3(_,J,$,q){if(_=_.options,J){J={};for(var G=0;G<$.length;G++)J["$"+$[G]]=!0;for($=0;$<_.length;$++)G=J.hasOwnProperty("$"+_[$].value),_[$].selected!==G&&(_[$].selected=G),G&&q&&(_[$].defaultSelected=!0)}else{$=""+m1($),J=null;for(G=0;G<_.length;G++){if(_[G].value===$){_[G].selected=!0,q&&(_[G].defaultSelected=!0);return}J!==null||_[G].disabled||(J=_[G])}J!==null&&(J.selected=!0)}}function oJ(_,J){for(_=0;_<XL.length;_++){var $=XL[_];if(J[$]!=null){var q=O2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,tJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,tJ())}}J.value===void 0||J.defaultValue===void 0||FL||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),FL=!0)}function nJ(_,J){J.value===void 0||J.defaultValue===void 0||KL||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",R1()||"A component"),KL=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function eJ(_,J,$){if(J!=null&&(J=""+m1(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+m1($):""}function j9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(O2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=m1(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),Z2(_)}function _$(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?_$(_.children[0],J):_}function o2(_){return" "+" ".repeat(_)}function a3(_){return"+ "+" ".repeat(_)}function Z3(_){return"- "+" ".repeat(_)}function J$(_){switch(_.tag){case 26:case 27:case 5:return _.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return _=_.type,_.displayName||_.name||null;case 11:return _=_.type.render,_.displayName||_.name||null;case 1:return _=_.type,_.displayName||_.name||null;default:return null}}function a6(_,J){return HL.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function X7(_,J,$){var q=120-2*$;if(J===null)return a3($)+a6(_,q)+`
36
+ `;if(typeof J==="string"){for(var G=0;G<J.length&&G<_.length&&J.charCodeAt(G)===_.charCodeAt(G);G++);return G>q-8&&10<G&&(_="..."+_.slice(G-8),J="..."+J.slice(G-8)),a3($)+a6(_,q)+`
37
+ `+Z3($)+a6(J,q)+`
38
+ `}return o2($)+a6(_,q)+`
39
+ `}function V9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function s3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(O2(_))return"[...]";if(_.$$typeof===x4)return(J=u(_.type))?"<"+J+">":"<...>";var $=V9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var G=JSON.stringify(q);if(G!=='"'+q+'"'&&(q=G),J-=q.length-2,G=s3(_[q],15>J?J:15),J-=G.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+G}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function t3(_,J){return typeof _!=="string"||HL.test(_)?"{"+s3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function y9(_,J,$){var q=120-$.length-_.length,G=[],X;for(X in J)if(J.hasOwnProperty(X)&&X!=="children"){var z=t3(J[X],120-$.length-X.length-1);q-=X.length+z.length+2,G.push(X+"="+z)}return G.length===0?$+"<"+_+`>
40
40
  `:0<q?$+"<"+_+" "+G.join(" ")+`>
41
41
  `:$+"<"+_+`
42
42
  `+$+" "+G.join(`
43
43
  `+$+" ")+`
44
44
  `+$+`>
45
- `}function BU(_,J,$){var q="",G=U0({},J),X;for(X in _)if(_.hasOwnProperty(X)){delete G[X];var z=120-2*$-X.length-2,B=m3(_[X],z);J.hasOwnProperty(X)?(z=m3(J[X],z),q+=x3($)+X+": "+B+`
46
- `,q+=e4($)+X+": "+z+`
47
- `):q+=x3($)+X+": "+B+`
48
- `}for(var w in G)G.hasOwnProperty(w)&&(_=m3(G[w],120-2*$-w.length-2),q+=e4($)+w+": "+_+`
49
- `);return q}function AU(_,J,$,q){var G="",X=new Map;for(S in $)$.hasOwnProperty(S)&&X.set(S.toLowerCase(),S);if(X.size===1&&X.has("children"))G+=S9(_,J,g2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var B=120-2*(q+1)-z.length-1,w=X.get(z.toLowerCase());if(w!==void 0){X.delete(z.toLowerCase());var S=J[z];w=$[w];var e=g3(S,B);B=g3(w,B),typeof S==="object"&&S!==null&&typeof w==="object"&&w!==null&&f9(S)==="Object"&&f9(w)==="Object"&&(2<Object.keys(S).length||2<Object.keys(w).length||-1<e.indexOf("...")||-1<B.indexOf("..."))?G+=g2(q+1)+z+`={{
50
- `+BU(S,w,q+2)+g2(q+1)+`}}
51
- `:(G+=x3(q+1)+z+"="+e+`
52
- `,G+=e4(q+1)+z+"="+B+`
53
- `)}else G+=g2(q+1)+z+"="+g3(J[z],B)+`
54
- `}X.forEach(function(_1){if(_1!=="children"){var r=120-2*(q+1)-_1.length-1;G+=e4(q+1)+_1+"="+g3($[_1],r)+`
55
- `}}),G=G===""?g2(q)+"<"+_+`>
56
- `:g2(q)+"<"+_+`
57
- `+G+g2(q)+`>
58
- `}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(X="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")X=""+J;G+=Q7(X,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+Q7(""+J,null,q+1):G+Q7(""+J,void 0,q+1);return G}function J$(_,J){var $=_$(_);if($===null){$="";for(_=_.child;_;)$+=J$(_,J),_=_.sibling;return $}return g2(J)+"<"+$+`>
59
- `}function v9(_,J){var $=eJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return g2(J)+`...
60
- `+v9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var X=q[G].name;typeof X==="string"&&($+=g2(J)+"<"+X+`>
61
- `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=Q7(G,_.serverProps,J),J++;else if(X=_$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-X.length-2,B="";for(S in G)if(G.hasOwnProperty(S)&&S!=="children"){var w=g3(G[S],15);if(z-=S.length+w.length+2,0>z){B+=" ...";break}B+=" "+S+"="+w}q=g2(q)+"<"+X+B+`>
62
- `,J++}else _.serverProps===null?(q=S9(X,G,x3(J)),J++):typeof _.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(q=AU(X,G,_.serverProps,J),J++);var S="";G=_.fiber.child;for(X=0;G&&X<_.children.length;)z=_.children[X],z.fiber===G?(S+=v9(z,J),X++):S+=J$(G,J),G=G.sibling;G&&0<_.children.length&&(S+=g2(J)+`...
63
- `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)X=G[_],S=typeof X==="string"?S+(e4(J)+m6(X,120-2*J)+`
64
- `):S+S9(X.type,X.props,e4(J));return $+q+S}function j9(_){try{return`
65
-
66
- `+v9(_,0)}catch(J){return""}}function $$(_,J,$){for(var q=J,G=null,X=0;q;)q===_&&(X=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:X},X++,q=q.return;return G!==null?j9(G).replaceAll(/^[+-]/gm,">"):""}function y9(_,J){var $=U0({},_||YL),q={tag:J};if(HL.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),yw.indexOf(J)!==-1&&($.pTagInButtonScope=null),jw.indexOf(J)!==-1&&J!=="address"&&J!=="div"&&J!=="p"&&($.listItemTagAutoclosing=null,$.dlItemTagAutoclosing=null),$.current=q,J==="form"&&($.formTag=q),J==="a"&&($.aTagInScope=q),J==="button"&&($.buttonTagInScope=q),J==="nobr"&&($.nobrTagInScope=q),J==="p"&&($.pTagInButtonScope=q),J==="li"&&($.listItemTagAutoclosing=q),J==="dd"||J==="dt")$.dlItemTagAutoclosing=q;return J==="#document"||J==="html"?$.containerTagInScope=null:$.containerTagInScope||($.containerTagInScope=q),_!==null||J!=="#document"&&J!=="html"&&J!=="body"?$.implicitRootScope===!0&&($.implicitRootScope=!1):$.implicitRootScope=!0,$}function Q$(_,J,$){switch(J){case"select":return _==="hr"||_==="option"||_==="optgroup"||_==="script"||_==="template"||_==="#text";case"optgroup":return _==="option"||_==="#text";case"option":return _==="#text";case"tr":return _==="th"||_==="td"||_==="style"||_==="script"||_==="template";case"tbody":case"thead":case"tfoot":return _==="tr"||_==="style"||_==="script"||_==="template";case"colgroup":return _==="col"||_==="template";case"table":return _==="caption"||_==="colgroup"||_==="tbody"||_==="tfoot"||_==="thead"||_==="style"||_==="script"||_==="template";case"head":return _==="base"||_==="basefont"||_==="bgsound"||_==="link"||_==="meta"||_==="title"||_==="noscript"||_==="noframes"||_==="style"||_==="script"||_==="template";case"html":if($)break;return _==="head"||_==="body"||_==="frameset";case"frameset":return _==="frame";case"#document":if(!$)return _==="html"}switch(_){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J!=="h1"&&J!=="h2"&&J!=="h3"&&J!=="h4"&&J!=="h5"&&J!=="h6";case"rp":case"rt":return Vw.indexOf(J)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return J==null;case"head":return $||J===null;case"html":return $&&J==="#document"||J===null;case"body":return $&&(J==="#document"||J==="html")||J===null}return!0}function q$(_,J){switch(_){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J.pTagInButtonScope;case"form":return J.formTag||J.pTagInButtonScope;case"li":return J.listItemTagAutoclosing;case"dd":case"dt":return J.dlItemTagAutoclosing;case"button":return J.buttonTagInScope;case"a":return J.aTagInScope;case"nobr":return J.nobrTagInScope}return null}function U$(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function V9(_,J){J=J||YL;var $=J.current;if(J=($=Q$(_,$&&$.tag,J.implicitRootScope)?null:$)?null:q$(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,BQ[J])return!1;BQ[J]=!0;var G=(J=M5)?U$(J.return,q):null,X=J!==null&&G!==null?$$(G,J,null):"",z="<"+_+">";return $?($="",q==="table"&&_==="tr"&&($+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
45
+ `}function BU(_,J,$){var q="",G=Y0({},J),X;for(X in _)if(_.hasOwnProperty(X)){delete G[X];var z=120-2*$-X.length-2,B=s3(_[X],z);J.hasOwnProperty(X)?(z=s3(J[X],z),q+=a3($)+X+": "+B+`
46
+ `,q+=Z3($)+X+": "+z+`
47
+ `):q+=a3($)+X+": "+B+`
48
+ `}for(var I in G)G.hasOwnProperty(I)&&(_=s3(G[I],120-2*$-I.length-2),q+=Z3($)+I+": "+_+`
49
+ `);return q}function AU(_,J,$,q){var G="",X=new Map;for(f in $)$.hasOwnProperty(f)&&X.set(f.toLowerCase(),f);if(X.size===1&&X.has("children"))G+=y9(_,J,o2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var B=120-2*(q+1)-z.length-1,I=X.get(z.toLowerCase());if(I!==void 0){X.delete(z.toLowerCase());var f=J[z];I=$[I];var e=t3(f,B);B=t3(I,B),typeof f==="object"&&f!==null&&typeof I==="object"&&I!==null&&V9(f)==="Object"&&V9(I)==="Object"&&(2<Object.keys(f).length||2<Object.keys(I).length||-1<e.indexOf("...")||-1<B.indexOf("..."))?G+=o2(q+1)+z+`={{
50
+ `+BU(f,I,q+2)+o2(q+1)+`}}
51
+ `:(G+=a3(q+1)+z+"="+e+`
52
+ `,G+=Z3(q+1)+z+"="+B+`
53
+ `)}else G+=o2(q+1)+z+"="+t3(J[z],B)+`
54
+ `}X.forEach(function(J1){if(J1!=="children"){var d=120-2*(q+1)-J1.length-1;G+=Z3(q+1)+J1+"="+t3($[J1],d)+`
55
+ `}}),G=G===""?o2(q)+"<"+_+`>
56
+ `:o2(q)+"<"+_+`
57
+ `+G+o2(q)+`>
58
+ `}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(X="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")X=""+J;G+=X7(X,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+X7(""+J,null,q+1):G+X7(""+J,void 0,q+1);return G}function $$(_,J){var $=J$(_);if($===null){$="";for(_=_.child;_;)$+=$$(_,J),_=_.sibling;return $}return o2(J)+"<"+$+`>
59
+ `}function k9(_,J){var $=_$(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return o2(J)+`...
60
+ `+k9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var X=q[G].name;typeof X==="string"&&($+=o2(J)+"<"+X+`>
61
+ `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=X7(G,_.serverProps,J),J++;else if(X=J$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-X.length-2,B="";for(f in G)if(G.hasOwnProperty(f)&&f!=="children"){var I=t3(G[f],15);if(z-=f.length+I.length+2,0>z){B+=" ...";break}B+=" "+f+"="+I}q=o2(q)+"<"+X+B+`>
62
+ `,J++}else _.serverProps===null?(q=y9(X,G,a3(J)),J++):typeof _.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(q=AU(X,G,_.serverProps,J),J++);var f="";G=_.fiber.child;for(X=0;G&&X<_.children.length;)z=_.children[X],z.fiber===G?(f+=k9(z,J),X++):f+=$$(G,J),G=G.sibling;G&&0<_.children.length&&(f+=o2(J)+`...
63
+ `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)X=G[_],f=typeof X==="string"?f+(Z3(J)+a6(X,120-2*J)+`
64
+ `):f+y9(X.type,X.props,Z3(J));return $+q+f}function D9(_){try{return`
65
+
66
+ `+k9(_,0)}catch(J){return""}}function Q$(_,J,$){for(var q=J,G=null,X=0;q;)q===_&&(X=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:X},X++,q=q.return;return G!==null?D9(G).replaceAll(/^[+-]/gm,">"):""}function u9(_,J){var $=Y0({},_||zL),q={tag:J};if(YL.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Dw.indexOf(J)!==-1&&($.pTagInButtonScope=null),kw.indexOf(J)!==-1&&J!=="address"&&J!=="div"&&J!=="p"&&($.listItemTagAutoclosing=null,$.dlItemTagAutoclosing=null),$.current=q,J==="form"&&($.formTag=q),J==="a"&&($.aTagInScope=q),J==="button"&&($.buttonTagInScope=q),J==="nobr"&&($.nobrTagInScope=q),J==="p"&&($.pTagInButtonScope=q),J==="li"&&($.listItemTagAutoclosing=q),J==="dd"||J==="dt")$.dlItemTagAutoclosing=q;return J==="#document"||J==="html"?$.containerTagInScope=null:$.containerTagInScope||($.containerTagInScope=q),_!==null||J!=="#document"&&J!=="html"&&J!=="body"?$.implicitRootScope===!0&&($.implicitRootScope=!1):$.implicitRootScope=!0,$}function q$(_,J,$){switch(J){case"select":return _==="hr"||_==="option"||_==="optgroup"||_==="script"||_==="template"||_==="#text";case"optgroup":return _==="option"||_==="#text";case"option":return _==="#text";case"tr":return _==="th"||_==="td"||_==="style"||_==="script"||_==="template";case"tbody":case"thead":case"tfoot":return _==="tr"||_==="style"||_==="script"||_==="template";case"colgroup":return _==="col"||_==="template";case"table":return _==="caption"||_==="colgroup"||_==="tbody"||_==="tfoot"||_==="thead"||_==="style"||_==="script"||_==="template";case"head":return _==="base"||_==="basefont"||_==="bgsound"||_==="link"||_==="meta"||_==="title"||_==="noscript"||_==="noframes"||_==="style"||_==="script"||_==="template";case"html":if($)break;return _==="head"||_==="body"||_==="frameset";case"frameset":return _==="frame";case"#document":if(!$)return _==="html"}switch(_){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J!=="h1"&&J!=="h2"&&J!=="h3"&&J!=="h4"&&J!=="h5"&&J!=="h6";case"rp":case"rt":return uw.indexOf(J)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return J==null;case"head":return $||J===null;case"html":return $&&J==="#document"||J===null;case"body":return $&&(J==="#document"||J==="html")||J===null}return!0}function U$(_,J){switch(_){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J.pTagInButtonScope;case"form":return J.formTag||J.pTagInButtonScope;case"li":return J.listItemTagAutoclosing;case"dd":case"dt":return J.dlItemTagAutoclosing;case"button":return J.buttonTagInScope;case"a":return J.aTagInScope;case"nobr":return J.nobrTagInScope}return null}function G$(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function b9(_,J){J=J||zL;var $=J.current;if(J=($=q$(_,$&&$.tag,J.implicitRootScope)?null:$)?null:U$(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,AQ[J])return!1;AQ[J]=!0;var G=(J=j5)?G$(J.return,q):null,X=J!==null&&G!==null?Q$(G,J,null):"",z="<"+_+">";return $?($="",q==="table"&&_==="tr"&&($+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
67
  This will cause a hydration error.%s`,z,q,$,X)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,z,q,X),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||A1(G,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,q,z)})),!1}function p3(_,J,$){if($||Q$("#text",J,!1))return!0;if($="#text|"+J,BQ[$])return!1;BQ[$]=!0;var q=($=M5)?U$($,J):null;return $=$!==null&&q!==null?$$(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
68
+ This will cause a hydration error.%s`,z,q,X),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||z1(G,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,q,z)})),!1}function o3(_,J,$){if($||q$("#text",J,!1))return!0;if($="#text|"+J,AQ[$])return!1;AQ[$]=!0;var q=($=j5)?G$($,J):null;return $=$!==null&&q!==null?Q$(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
70
  This will cause a hydration error.%s`,J,$):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
- This will cause a hydration error.%s`,J,$),!1}function g6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function MU(_){return _.replace(uw,function(J,$){return $.toUpperCase()})}function k9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?w7.hasOwnProperty(J)&&w7[J]||(w7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,MU(J.replace(Dw,"ms-")))):kw.test(J)?w7.hasOwnProperty(J)&&w7[J]||(w7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!LL.test($)||kZ.hasOwnProperty($)&&kZ[$]||(kZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(LL,""))),typeof $==="number"&&(isNaN($)?BL||(BL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||AL||(AL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",J)))),$==null||typeof $==="boolean"||$===""?q?_.setProperty(J,""):J==="float"?_.cssFloat="":_[J]="":q?_.setProperty(J,$):typeof $!=="number"||$===0||ML.has(J)?J==="float"?_.cssFloat=$:(r1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function HH(_,J,$){if(J!=null&&typeof J!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(J&&Object.freeze(J),_=_.style,$!=null){if(J){var q={};if($){for(var G in $)if($.hasOwnProperty(G)&&!J.hasOwnProperty(G))for(var X=VZ[G]||[G],z=0;z<X.length;z++)q[X[z]]=G}for(var B in J)if(J.hasOwnProperty(B)&&(!$||$[B]!==J[B]))for(G=VZ[B]||[B],X=0;X<G.length;X++)q[G[X]]=B;B={};for(var w in J)for(G=VZ[w]||[w],X=0;X<G.length;X++)B[G[X]]=w;w={};for(var S in q)if(G=q[S],(X=B[S])&&G!==X&&(z=G+","+X,!w[z])){w[z]=!0,z=console;var e=J[G];z.error.call(z,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",e==null||typeof e==="boolean"||e===""?"Removing":"Updating",G,X)}}for(var _1 in $)!$.hasOwnProperty(_1)||J!=null&&J.hasOwnProperty(_1)||(_1.indexOf("--")===0?_.setProperty(_1,""):_1==="float"?_.cssFloat="":_[_1]="");for(var r in J)S=J[r],J.hasOwnProperty(r)&&$[r]!==S&&k9(_,r,S)}else for(q in J)J.hasOwnProperty(q)&&k9(_,q,J[q])}function D9(_){if(_.indexOf("-")===-1)return!1;switch(_){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function YH(_){return bw.get(_)||_}function vO(_,J){if(n5.call(N7,J)&&N7[J])return!0;if(hw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=TL.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),N7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),N7[J]=!0}if(Ew.test(J)){if(_=J.toLowerCase(),_=TL.hasOwnProperty(_)?_:null,_==null)return N7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),N7[J]=!0)}return!0}function jO(_,J){var $=[],q;for(q in J)vO(_,q)||$.push(q);J=$.map(function(G){return"`"+G+"`"}).join(", "),$.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_):1<$.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_)}function yO(_,J,$,q){if(n5.call(i2,J)&&i2[J])return!0;var G=J.toLowerCase();if(G==="onfocusin"||G==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),i2[J]=!0;if(typeof $==="function"&&(_==="form"&&J==="action"||_==="input"&&J==="formAction"||_==="button"&&J==="formAction"))return!0;if(q!=null){if(_=q.possibleRegistrationNames,q.registrationNameDependencies.hasOwnProperty(J))return!0;if(q=_.hasOwnProperty(G)?_[G]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),i2[J]=!0;if(OL.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),i2[J]=!0}else if(OL.test(J))return xw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),i2[J]=!0;if(mw.test(J)||gw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),i2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),i2[J]=!0;if(G==="is"&&$!==null&&$!==void 0&&typeof $!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof $),i2[J]=!0;if(typeof $==="number"&&isNaN($))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",J),i2[J]=!0;if(MQ.hasOwnProperty(G)){if(G=MQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),i2[J]=!0}else if(J!==G)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",J,G),i2[J]=!0;switch(J){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof $){case"boolean":switch(J){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(G=J.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return $?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',$,J,J,$,J):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',$,J,J,$,J,J,J),i2[J]=!0}case"function":case"symbol":return i2[J]=!0,!1;case"string":if($==="false"||$==="true"){switch(J){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",$,J,$==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',J,$),i2[J]=!0}}return!0}function VO(_,J,$){var q=[],G;for(G in J)yO(_,G,J[G],$)||q.push(G);J=q.map(function(X){return"`"+X+"`"}).join(", "),q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_)}function u9(_){return pw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function _3(){}function TU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function zH(_){var J=N1(_);if(J&&(_=J.stateNode)){var $=_[l2]||null;_:switch(_=J.stateNode,J.type){case"input":if(J7(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;M1(J,"name"),$=$.querySelectorAll('input[name="'+_5(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[l2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");J7(q,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&dJ(q)}break _;case"textarea":nJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&h3(_,!!$.multiple,J,!1)}}}function WH(_,J,$){if(DZ)return _(J,$);DZ=!0;try{var q=_(J);return q}finally{if(DZ=!1,C7!==null||f7!==null){if(z7(),C7&&(J=C7,_=f7,f7=C7=null,zH(J),_))for(J=0;J<_.length;J++)zH(_[J])}}}function b9(_,J){var $=_.stateNode;if($===null)return null;var q=$[l2]||null;if(q===null)return null;$=q[J];_:switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(q=!q.disabled)||(_=_.type,q=!(_==="button"||_==="input"||_==="select"||_==="textarea")),_=!q;break _;default:_=!1}if(_)return null;if($&&typeof $!=="function")throw Error("Expected `"+J+"` listener to be a function, instead got a value of `"+typeof $+"` type.");return $}function LH(){if(TQ)return TQ;var _,J=bZ,$=J.length,q,G="value"in U6?U6.value:U6.textContent,X=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[X-q];q++);return TQ=G.slice(_,1<q?1-q:void 0)}function G$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function Z$(){return!0}function BH(){return!1}function J5(_){function J($,q,G,X,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=X,this.target=z,this.currentTarget=null;for(var B in _)_.hasOwnProperty(B)&&($=_[B],this[B]=$?$(X):X[B]);return this.isDefaultPrevented=(X.defaultPrevented!=null?X.defaultPrevented:X.returnValue===!1)?Z$:BH,this.isPropagationStopped=BH,this}return U0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=Z$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=Z$)},persist:function(){},isPersistent:Z$}),J}function kO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=JP[_])?!!J[_]:!1}function RU(){return kO}function AH(_,J){switch(_){case"keyup":return zP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==NL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function DO(_,J){switch(_){case"compositionend":return MH(J);case"keypress":if(J.which!==fL)return null;return vL=!0,SL;case"textInput":return _=J.data,_===SL&&vL?null:_;default:return null}}function uO(_,J){if(S7)return _==="compositionend"||!mZ&&AH(_,J)?(_=LH(),TQ=bZ=U6=null,S7=!1,_):null;switch(_){case"paste":return null;case"keypress":if(!(J.ctrlKey||J.altKey||J.metaKey)||J.ctrlKey&&J.altKey){if(J.char&&1<J.char.length)return J.char;if(J.which)return String.fromCharCode(J.which)}return null;case"compositionend":return CL&&J.locale!=="ko"?null:J.data;default:return null}}function TH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!LP[_.type]:J==="textarea"?!0:!1}function bO(_){if(!b4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function RH(_,J,$,q){C7?f7?f7.push(q):f7=[q]:C7=q,J=e$(J,"onChange"),0<J.length&&($=new RQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function EO(_){$W(_,0)}function F$(_){var J=C1(_);if(dJ(J))return _}function OH(_,J){if(_==="change")return J}function IH(){O_&&(O_.detachEvent("onpropertychange",wH),I_=O_=null)}function wH(_){if(_.propertyName==="value"&&F$(I_)){var J=[];RH(J,I_,_,TU(_)),WH(EO,J)}}function hO(_,J,$){_==="focusin"?(IH(),O_=J,I_=$,O_.attachEvent("onpropertychange",wH)):_==="focusout"&&IH()}function xO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return F$(I_)}function mO(_,J){if(_==="click")return F$(J)}function gO(_,J){if(_==="input"||_==="change")return F$(J)}function pO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function E9(_,J){if(d2(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!n5.call(J,G)||!d2(_[G],J[G]))return!1}return!0}function PH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function NH(_,J){var $=PH(_);_=0;for(var q;$;){if($.nodeType===3){if(q=_+$.textContent.length,_<=J&&q>=J)return{node:$,offset:J-_};_=q}_:{for(;$;){if($.nextSibling){$=$.nextSibling;break _}$=$.parentNode}$=void 0}$=PH($)}}function CH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?CH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function fH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=_7(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=_7(_.document)}return J}function OU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function SH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;pZ||v7==null||v7!==_7(q)||(q=v7,("selectionStart"in q)&&OU(q)?q={start:q.selectionStart,end:q.selectionEnd}:(q=(q.ownerDocument&&q.ownerDocument.defaultView||window).getSelection(),q={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}),w_&&E9(w_,q)||(w_=q,q=e$(gZ,"onSelect"),0<q.length&&(J=new RQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=v7)))}function p6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function c6(_){if(cZ[_])return cZ[_];if(!j7[_])return _;var J=j7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in yL)return cZ[_]=J[$];return _}function s5(_,J){bL.set(_,J),p1(J,[_])}function cO(_){for(var J=IQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(Y2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==IQ&&J!==aZ)return dZ;J=aZ}else return dZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==IQ&&J!==rZ)return dZ;J=rZ}}return J}function IU(_,J,$,q){for(var G in _)n5.call(_,G)&&G[0]!=="_"&&W4(G,_[G],J,$,q)}function W4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===j4){var X=b(J.type)||"…",z=J.key;J=J.props;var B=Object.keys(J),w=B.length;if(z==null&&w===0){J="<"+X+" />";break}if(3>q||w===1&&B[0]==="children"&&z==null){J="<"+X+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+X]),z!==null&&W4("key",z,$,q+1,G),_=!1;for(var S in J)S==="children"?J.children!=null&&(!Y2(J.children)||0<J.children.length)&&(_=!0):n5.call(J,S)&&S[0]!=="_"&&W4(S,J[S],$,q+1,G);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(S=cO(J),S===rZ||S===IQ){J=JSON.stringify(J);break}else if(S===aZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)X=J[_],W4(X[0],X[1],$,q+1,G);return}}if(X==="Promise"){if(J.status==="fulfilled"){if(X=$.length,W4(_,J.value,$,q,G),$.length>X){$=$[X],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(X=$.length,W4(_,J.reason,$,q,G),$.length>X)){$=$[X],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}X==="Object"&&(S=Object.getPrototypeOf(J))&&typeof S.constructor==="function"&&(X=S.constructor.name),$.push([G+"  ".repeat(q)+_,X==="Object"?3>q?"":"…":X]),3>q&&IU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===IP?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([G+"  ".repeat(q)+_,J])}function vH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([wQ+"  ".repeat(q)+z,"…"]),G=!1);for(var X in J)if(X in _){var z=_[X],B=J[X];if(z!==B){if(q===0&&X==="children")G="  ".repeat(q)+X,$.push([wQ+G,"…"],[PQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof B==="object"&&z!==null&&B!==null&&z.$$typeof===B.$$typeof)if(B.$$typeof===j4){if(z.type===B.type&&z.key===B.key){z=b(B.type)||"…",G="  ".repeat(q)+X,z="<"+z+" … />",$.push([wQ+G,z],[PQ+G,z]),G=!1;continue}}else{var w=Object.prototype.toString.call(z),S=Object.prototype.toString.call(B);if(w===S&&(S==="[object Object]"||S==="[object Array]")){w=[xL+"  ".repeat(q)+X,S==="[object Array]"?"Array":""],$.push(w),S=$.length,vH(z,B,$,q+1)?S===$.length&&(w[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof B==="function"&&z.name===B.name&&z.length===B.length&&(w=Function.prototype.toString.call(z),S=Function.prototype.toString.call(B),w===S)){z=B.name===""?"() => {}":B.name+"() {}",$.push([xL+"  ".repeat(q)+X,z+" Referentially unequal function closure. Consider memoization."]);continue}}W4(X,z,$,q,wQ),W4(X,B,$,q,PQ)}G=!1}}else $.push([PQ+"  ".repeat(q)+X,"…"]),G=!1;return G}function K5(_){Z0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function L4(_,J,$,q){y0&&(Z6.start=J,Z6.end=$,X3.color="warning",X3.tooltipText=q,X3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,Z6)):performance.measure(q,Z6))}function X$(_,J,$){L4(_,J,$,"Reconnect")}function K$(_,J,$,q,G){var X=x(_);if(X!==null&&y0){var{alternate:z,actualDuration:B}=_;if(z===null||z.child!==_.child)for(var w=_.child;w!==null;w=w.sibling)B-=w.actualDuration;q=0.5>B?q?"tertiary-light":"primary-light":10>B?q?"tertiary":"primary":100>B?q?"tertiary-dark":"primary-dark":"error";var S=_.memoizedProps;B=_._debugTask,S!==null&&z!==null&&z.memoizedProps!==S?(w=[wP],S=vH(z.memoizedProps,S,w,0),1<w.length&&(S&&!G6&&(z.lanes&G)===0&&100<_.actualDuration?(G6=!0,w[0]=PP,X3.color="warning",X3.tooltipText=mL):(X3.color=q,X3.tooltipText=X),X3.properties=w,Z6.start=J,Z6.end=$,B!=null?B.run(performance.measure.bind(performance,"​"+X,Z6)):performance.measure("​"+X,Z6))):B!=null?B.run(console.timeStamp.bind(console,X,J,$,y5,void 0,q)):console.timeStamp(X,J,$,y5,void 0,q)}}function wU(_,J,$,q){if(y0){var G=x(_);if(G!==null){for(var X=null,z=[],B=0;B<q.length;B++){var w=q[B];X==null&&w.source!==null&&(X=w.source._debugTask),w=w.value,z.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}_.key!==null&&W4("key",_.key,z,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,z,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:y5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},X?X.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function B4(_,J,$,q,G){if(G!==null){if(y0){var X=x(_);if(X!==null){q=[];for(var z=0;z<G.length;z++){var B=G[z].value;q.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_.key!==null&&W4("key",_.key,q,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:y5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+X,J)):performance.measure("​"+X,J)}}}else X=x(_),X!==null&&y0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,y5,void 0,G)):console.timeStamp(X,J,$,y5,void 0,G))}function lO(_,J,$,q){if(y0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,Z0,G0,G)):console.timeStamp($,_,J,Z0,G0,G)}}function jH(_,J,$,q){!y0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,Z0,G0,$)):console.timeStamp("Prewarm",_,J,Z0,G0,$))}function yH(_,J,$,q){!y0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,Z0,G0,$)):console.timeStamp("Suspended",_,J,Z0,G0,$))}function iO(_,J,$,q,G,X){if(y0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var B=q[z].value;$.push(["Recoverable Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:Z0,trackGroup:G0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function PU(_,J,$,q){!y0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,Z0,G0,"error")):console.timeStamp("Errored",_,J,Z0,G0,"error"))}function dO(_,J,$,q){!y0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,Z0,G0,"secondary-light")):console.timeStamp($,_,J,Z0,G0,"secondary-light"))}function VH(_,J,$,q,G){if(y0&&!(J<=_)){for(var X=[],z=0;z<$.length;z++){var B=$[z].value;X.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"error",track:Z0,trackGroup:G0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:X}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function h9(_,J,$){!y0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,Z0,G0,"secondary-dark")):console.timeStamp("Animating",_,J,Z0,G0,"secondary-dark"))}function H$(){for(var _=y7,J=sZ=y7=0;J<_;){var $=V5[J];V5[J++]=null;var q=V5[J];V5[J++]=null;var G=V5[J];V5[J++]=null;var X=V5[J];if(V5[J++]=null,q!==null&&G!==null){var z=q.pending;z===null?G.next=G:(G.next=z.next,z.next=G),q.pending=G}X!==0&&kH($,G,X)}}function Y$(_,J,$,q){V5[y7++]=_,V5[y7++]=J,V5[y7++]=$,V5[y7++]=q,sZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function NU(_,J,$,q){return Y$(_,J,$,q),z$(_)}function k2(_,J){return Y$(_,null,null,J),z$(_)}function kH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,X=_.return;X!==null;)X.childLanes|=$,q=X.alternate,q!==null&&(q.childLanes|=$),X.tag===22&&(_=X.stateNode,_===null||_._visibility&P_||(G=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,G&&J!==null&&(G=31-c2($),_=X.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),X):null}function z$(_){if(o_>xP)throw M8=o_=0,n_=SF=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.");M8>mP&&(M8=0,n_=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.")),_.alternate===null&&(_.flags&4098)!==0&&sz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&sz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function l6(_){if(k5===null)return _;var J=k5(_);return J===void 0?_:J.current}function CU(_){if(k5===null)return _;var J=k5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=l6(_.render),_.render!==J)?(J={$$typeof:Y_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function DH(_,J){if(k5===null)return!1;var $=_.elementType;J=J.type;var q=!1,G=typeof J==="object"&&J!==null?J.$$typeof:null;switch(_.tag){case 1:typeof J==="function"&&(q=!0);break;case 0:typeof J==="function"?q=!0:G===A5&&(q=!0);break;case 11:G===Y_?q=!0:G===A5&&(q=!0);break;case 14:case 15:G===KQ?q=!0:G===A5&&(q=!0);break;default:return!1}return q&&(_=k5($),_!==void 0&&_===k5(J))?!0:!1}function uH(_){k5!==null&&typeof WeakSet==="function"&&(V7===null&&(V7=new WeakSet),V7.add(_))}function bH(_,J,$){do{var q=_,G=q.alternate,X=q.child,z=q.sibling,B=q.tag;q=q.type;var w=null;switch(B){case 0:case 15:case 1:w=q;break;case 11:w=q.render}if(k5===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(q=!1,w!==null&&(w=k5(w),w!==void 0&&($.has(w)?q=!0:J.has(w)&&(B===1?q=!0:S=!0))),V7!==null&&(V7.has(_)||G!==null&&V7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||S)G=k2(_,2),G!==null&&c0(G,_,2);if(X===null||q||bH(X,J,$),z===null)break;_=z}while(1)}function rO(_,J,$,q){this.tag=_,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=J,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=q,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,gL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function J3(_,J){var $=_.alternate;switch($===null?($=R(_.tag,J,_.key,_.mode),$.elementType=_.elementType,$.type=_.type,$.stateNode=_.stateNode,$._debugOwner=_._debugOwner,$._debugStack=_._debugStack,$._debugTask=_._debugTask,$._debugHookTypes=_._debugHookTypes,$.alternate=_,_.alternate=$):($.pendingProps=J,$.type=_.type,$.flags=0,$.subtreeFlags=0,$.deletions=null,$.actualDuration=-0,$.actualStartTime=-1.1),$.flags=_.flags&65011712,$.childLanes=_.childLanes,$.lanes=_.lanes,$.child=_.child,$.memoizedProps=_.memoizedProps,$.memoizedState=_.memoizedState,$.updateQueue=_.updateQueue,J=_.dependencies,$.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},$.sibling=_.sibling,$.index=_.index,$.ref=_.ref,$.refCleanup=_.refCleanup,$.selfBaseDuration=_.selfBaseDuration,$.treeBaseDuration=_.treeBaseDuration,$._debugInfo=_._debugInfo,$._debugNeedsRemount=_._debugNeedsRemount,$.tag){case 0:case 15:$.type=l6(_.type);break;case 1:$.type=l6(_.type);break;case 11:$.type=CU(_.type)}return $}function EH(_,J){_.flags&=65011714;var $=_.alternate;return $===null?(_.childLanes=0,_.lanes=J,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null,_.selfBaseDuration=0,_.treeBaseDuration=0):(_.childLanes=$.childLanes,_.lanes=$.lanes,_.child=$.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=$.memoizedProps,_.memoizedState=$.memoizedState,_.updateQueue=$.updateQueue,_.type=$.type,J=$.dependencies,_.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},_.selfBaseDuration=$.selfBaseDuration,_.treeBaseDuration=$.treeBaseDuration),_}function SU(_,J,$,q,G,X){var z=0,B=_;if(typeof _==="function")fU(_)&&(z=1),B=l6(B);else if(typeof _==="string")z=a(),z=$w(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case RZ:return J=R(31,$,J,G),J.elementType=RZ,J.lanes=X,J;case R7:return i6($.children,G,X,J);case XQ:z=8,G|=u2,G|=_4;break;case BZ:return _=$,q=G,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=R(12,_,J,q|e1),J.elementType=BZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case MZ:return J=R(13,$,J,G),J.elementType=MZ,J.lanes=X,J;case TZ:return J=R(19,$,J,G),J.elementType=TZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case y4:z=10;break _;case AZ:z=9;break _;case Y_:z=11,B=CU(B);break _;case KQ:z=14;break _;case A5:z=16,B=null;break _}if(B="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";_===null?$="null":Y2(_)?$="array":_!==void 0&&_.$$typeof===j4?($="<"+(b(_.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?D(q):null)&&(B+=`
71
+ This will cause a hydration error.%s`,J,$),!1}function s6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function MU(_){return _.replace(hw,function(J,$){return $.toUpperCase()})}function E9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?v7.hasOwnProperty(J)&&v7[J]||(v7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,MU(J.replace(Ew,"ms-")))):bw.test(J)?v7.hasOwnProperty(J)&&v7[J]||(v7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!BL.test($)||kZ.hasOwnProperty($)&&kZ[$]||(kZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(BL,""))),typeof $==="number"&&(isNaN($)?AL||(AL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||ML||(ML=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",J)))),$==null||typeof $==="boolean"||$===""?q?_.setProperty(J,""):J==="float"?_.cssFloat="":_[J]="":q?_.setProperty(J,$):typeof $!=="number"||$===0||TL.has(J)?J==="float"?_.cssFloat=$:(e1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function YH(_,J,$){if(J!=null&&typeof J!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(J&&Object.freeze(J),_=_.style,$!=null){if(J){var q={};if($){for(var G in $)if($.hasOwnProperty(G)&&!J.hasOwnProperty(G))for(var X=yZ[G]||[G],z=0;z<X.length;z++)q[X[z]]=G}for(var B in J)if(J.hasOwnProperty(B)&&(!$||$[B]!==J[B]))for(G=yZ[B]||[B],X=0;X<G.length;X++)q[G[X]]=B;B={};for(var I in J)for(G=yZ[I]||[I],X=0;X<G.length;X++)B[G[X]]=I;I={};for(var f in q)if(G=q[f],(X=B[f])&&G!==X&&(z=G+","+X,!I[z])){I[z]=!0,z=console;var e=J[G];z.error.call(z,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",e==null||typeof e==="boolean"||e===""?"Removing":"Updating",G,X)}}for(var J1 in $)!$.hasOwnProperty(J1)||J!=null&&J.hasOwnProperty(J1)||(J1.indexOf("--")===0?_.setProperty(J1,""):J1==="float"?_.cssFloat="":_[J1]="");for(var d in J)f=J[d],J.hasOwnProperty(d)&&$[d]!==f&&E9(_,d,f)}else for(q in J)J.hasOwnProperty(q)&&E9(_,q,J[q])}function h9(_){if(_.indexOf("-")===-1)return!1;switch(_){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function zH(_){return xw.get(_)||_}function yO(_,J){if(F4.call(V7,J)&&V7[J])return!0;if(gw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=RL.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),V7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),V7[J]=!0}if(mw.test(J)){if(_=J.toLowerCase(),_=RL.hasOwnProperty(_)?_:null,_==null)return V7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),V7[J]=!0)}return!0}function kO(_,J){var $=[],q;for(q in J)yO(_,q)||$.push(q);J=$.map(function(G){return"`"+G+"`"}).join(", "),$.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_):1<$.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_)}function DO(_,J,$,q){if(F4.call(J5,J)&&J5[J])return!0;var G=J.toLowerCase();if(G==="onfocusin"||G==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),J5[J]=!0;if(typeof $==="function"&&(_==="form"&&J==="action"||_==="input"&&J==="formAction"||_==="button"&&J==="formAction"))return!0;if(q!=null){if(_=q.possibleRegistrationNames,q.registrationNameDependencies.hasOwnProperty(J))return!0;if(q=_.hasOwnProperty(G)?_[G]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),J5[J]=!0;if(IL.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),J5[J]=!0}else if(IL.test(J))return pw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),J5[J]=!0;if(cw.test(J)||lw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),J5[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),J5[J]=!0;if(G==="is"&&$!==null&&$!==void 0&&typeof $!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof $),J5[J]=!0;if(typeof $==="number"&&isNaN($))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",J),J5[J]=!0;if(TQ.hasOwnProperty(G)){if(G=TQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),J5[J]=!0}else if(J!==G)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",J,G),J5[J]=!0;switch(J){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof $){case"boolean":switch(J){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(G=J.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return $?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',$,J,J,$,J):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',$,J,J,$,J,J,J),J5[J]=!0}case"function":case"symbol":return J5[J]=!0,!1;case"string":if($==="false"||$==="true"){switch(J){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",$,J,$==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',J,$),J5[J]=!0}}return!0}function uO(_,J,$){var q=[],G;for(G in J)DO(_,G,J[G],$)||q.push(G);J=q.map(function(X){return"`"+X+"`"}).join(", "),q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_)}function x9(_){return iw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function F3(){}function TU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function WH(_){var J=i1(_);if(J&&(_=J.stateNode)){var $=_[_5]||null;_:switch(_=J.stateNode,J.type){case"input":if(K5(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;A1(J,"name"),$=$.querySelectorAll('input[name="'+w0(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[_5]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");K5(q,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&K0(q)}break _;case"textarea":eJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&r3(_,!!$.multiple,J,!1)}}}function LH(_,J,$){if(DZ)return _(J,$);DZ=!0;try{var q=_(J);return q}finally{if(DZ=!1,y7!==null||k7!==null){if(T7(),y7&&(J=y7,_=k7,k7=y7=null,WH(J),_))for(J=0;J<_.length;J++)WH(_[J])}}}function m9(_,J){var $=_.stateNode;if($===null)return null;var q=$[_5]||null;if(q===null)return null;$=q[J];_:switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(q=!q.disabled)||(_=_.type,q=!(_==="button"||_==="input"||_==="select"||_==="textarea")),_=!q;break _;default:_=!1}if(_)return null;if($&&typeof $!=="function")throw Error("Expected `"+J+"` listener to be a function, instead got a value of `"+typeof $+"` type.");return $}function BH(){if(RQ)return RQ;var _,J=bZ,$=J.length,q,G="value"in W6?W6.value:W6.textContent,X=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[X-q];q++);return RQ=G.slice(_,1<q?1-q:void 0)}function Z$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function F$(){return!0}function AH(){return!1}function H5(_){function J($,q,G,X,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=X,this.target=z,this.currentTarget=null;for(var B in _)_.hasOwnProperty(B)&&($=_[B],this[B]=$?$(X):X[B]);return this.isDefaultPrevented=(X.defaultPrevented!=null?X.defaultPrevented:X.returnValue===!1)?F$:AH,this.isPropagationStopped=AH,this}return Y0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=F$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=F$)},persist:function(){},isPersistent:F$}),J}function bO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=qP[_])?!!J[_]:!1}function RU(){return bO}function MH(_,J){switch(_){case"keyup":return BP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==CL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function EO(_,J){switch(_){case"compositionend":return TH(J);case"keypress":if(J.which!==SL)return null;return jL=!0,vL;case"textInput":return _=J.data,_===vL&&jL?null:_;default:return null}}function hO(_,J){if(D7)return _==="compositionend"||!mZ&&MH(_,J)?(_=BH(),RQ=bZ=W6=null,D7=!1,_):null;switch(_){case"paste":return null;case"keypress":if(!(J.ctrlKey||J.altKey||J.metaKey)||J.ctrlKey&&J.altKey){if(J.char&&1<J.char.length)return J.char;if(J.which)return String.fromCharCode(J.which)}return null;case"compositionend":return fL&&J.locale!=="ko"?null:J.data;default:return null}}function RH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!MP[_.type]:J==="textarea"?!0:!1}function xO(_){if(!i4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function OH(_,J,$,q){y7?k7?k7.push(q):k7=[q]:y7=q,J=_Q(J,"onChange"),0<J.length&&($=new OQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function mO(_){QW(_,0)}function X$(_){var J=r1(_);if(K0(J))return _}function IH(_,J){if(_==="change")return J}function wH(){N_&&(N_.detachEvent("onpropertychange",PH),C_=N_=null)}function PH(_){if(_.propertyName==="value"&&X$(C_)){var J=[];OH(J,C_,_,TU(_)),LH(mO,J)}}function gO(_,J,$){_==="focusin"?(wH(),N_=J,C_=$,N_.attachEvent("onpropertychange",PH)):_==="focusout"&&wH()}function pO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return X$(C_)}function cO(_,J){if(_==="click")return X$(J)}function lO(_,J){if(_==="input"||_==="change")return X$(J)}function iO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function g9(_,J){if($5(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!F4.call(J,G)||!$5(_[G],J[G]))return!1}return!0}function NH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function CH(_,J){var $=NH(_);_=0;for(var q;$;){if($.nodeType===3){if(q=_+$.textContent.length,_<=J&&q>=J)return{node:$,offset:J-_};_=q}_:{for(;$;){if($.nextSibling){$=$.nextSibling;break _}$=$.parentNode}$=void 0}$=NH($)}}function fH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?fH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function SH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=S2(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=S2(_.document)}return J}function OU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function vH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;pZ||u7==null||u7!==S2(q)||(q=u7,("selectionStart"in q)&&OU(q)?q={start:q.selectionStart,end:q.selectionEnd}:(q=(q.ownerDocument&&q.ownerDocument.defaultView||window).getSelection(),q={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}),f_&&g9(f_,q)||(f_=q,q=_Q(gZ,"onSelect"),0<q.length&&(J=new OQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=u7)))}function t6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function o6(_){if(cZ[_])return cZ[_];if(!b7[_])return _;var J=b7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in yL)return cZ[_]=J[$];return _}function U4(_,J){EL.set(_,J),K2(J,[_])}function dO(_){for(var J=wQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(O2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==wQ&&J!==aZ)return dZ;J=aZ}else return dZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==wQ&&J!==rZ)return dZ;J=rZ}}return J}function IU(_,J,$,q){for(var G in _)F4.call(_,G)&&G[0]!=="_"&&w4(G,_[G],J,$,q)}function w4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===x4){var X=u(J.type)||"…",z=J.key;J=J.props;var B=Object.keys(J),I=B.length;if(z==null&&I===0){J="<"+X+" />";break}if(3>q||I===1&&B[0]==="children"&&z==null){J="<"+X+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+X]),z!==null&&w4("key",z,$,q+1,G),_=!1;for(var f in J)f==="children"?J.children!=null&&(!O2(J.children)||0<J.children.length)&&(_=!0):F4.call(J,f)&&f[0]!=="_"&&w4(f,J[f],$,q+1,G);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(f=dO(J),f===rZ||f===wQ){J=JSON.stringify(J);break}else if(f===aZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)X=J[_],w4(X[0],X[1],$,q+1,G);return}}if(X==="Promise"){if(J.status==="fulfilled"){if(X=$.length,w4(_,J.value,$,q,G),$.length>X){$=$[X],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(X=$.length,w4(_,J.reason,$,q,G),$.length>X)){$=$[X],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}X==="Object"&&(f=Object.getPrototypeOf(J))&&typeof f.constructor==="function"&&(X=f.constructor.name),$.push([G+"  ".repeat(q)+_,X==="Object"?3>q?"":"…":X]),3>q&&IU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===NP?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([G+"  ".repeat(q)+_,J])}function jH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([PQ+"  ".repeat(q)+z,"…"]),G=!1);for(var X in J)if(X in _){var z=_[X],B=J[X];if(z!==B){if(q===0&&X==="children")G="  ".repeat(q)+X,$.push([PQ+G,"…"],[NQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof B==="object"&&z!==null&&B!==null&&z.$$typeof===B.$$typeof)if(B.$$typeof===x4){if(z.type===B.type&&z.key===B.key){z=u(B.type)||"…",G="  ".repeat(q)+X,z="<"+z+" … />",$.push([PQ+G,z],[NQ+G,z]),G=!1;continue}}else{var I=Object.prototype.toString.call(z),f=Object.prototype.toString.call(B);if(I===f&&(f==="[object Object]"||f==="[object Array]")){I=[mL+"  ".repeat(q)+X,f==="[object Array]"?"Array":""],$.push(I),f=$.length,jH(z,B,$,q+1)?f===$.length&&(I[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof B==="function"&&z.name===B.name&&z.length===B.length&&(I=Function.prototype.toString.call(z),f=Function.prototype.toString.call(B),I===f)){z=B.name===""?"() => {}":B.name+"() {}",$.push([mL+"  ".repeat(q)+X,z+" Referentially unequal function closure. Consider memoization."]);continue}}w4(X,z,$,q,PQ),w4(X,B,$,q,NQ)}G=!1}}else $.push([NQ+"  ".repeat(q)+X,"…"]),G=!1;return G}function I5(_){W0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function P4(_,J,$,q){h0&&(B6.start=J,B6.end=$,A3.color="warning",A3.tooltipText=q,A3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,B6)):performance.measure(q,B6))}function K$(_,J,$){P4(_,J,$,"Reconnect")}function H$(_,J,$,q,G){var X=m(_);if(X!==null&&h0){var{alternate:z,actualDuration:B}=_;if(z===null||z.child!==_.child)for(var I=_.child;I!==null;I=I.sibling)B-=I.actualDuration;q=0.5>B?q?"tertiary-light":"primary-light":10>B?q?"tertiary":"primary":100>B?q?"tertiary-dark":"primary-dark":"error";var f=_.memoizedProps;B=_._debugTask,f!==null&&z!==null&&z.memoizedProps!==f?(I=[CP],f=jH(z.memoizedProps,f,I,0),1<I.length&&(f&&!L6&&(z.lanes&G)===0&&100<_.actualDuration?(L6=!0,I[0]=fP,A3.color="warning",A3.tooltipText=gL):(A3.color=q,A3.tooltipText=X),A3.properties=I,B6.start=J,B6.end=$,B!=null?B.run(performance.measure.bind(performance,"​"+X,B6)):performance.measure("​"+X,B6))):B!=null?B.run(console.timeStamp.bind(console,X,J,$,g5,void 0,q)):console.timeStamp(X,J,$,g5,void 0,q)}}function wU(_,J,$,q){if(h0){var G=m(_);if(G!==null){for(var X=null,z=[],B=0;B<q.length;B++){var I=q[B];X==null&&I.source!==null&&(X=I.source._debugTask),I=I.value,z.push(["Error",typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I)])}_.key!==null&&w4("key",_.key,z,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,z,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:g5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},X?X.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function N4(_,J,$,q,G){if(G!==null){if(h0){var X=m(_);if(X!==null){q=[];for(var z=0;z<G.length;z++){var B=G[z].value;q.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_.key!==null&&w4("key",_.key,q,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:g5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+X,J)):performance.measure("​"+X,J)}}}else X=m(_),X!==null&&h0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,g5,void 0,G)):console.timeStamp(X,J,$,g5,void 0,G))}function rO(_,J,$,q){if(h0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,W0,z0,G)):console.timeStamp($,_,J,W0,z0,G)}}function VH(_,J,$,q){!h0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,W0,z0,$)):console.timeStamp("Prewarm",_,J,W0,z0,$))}function yH(_,J,$,q){!h0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,W0,z0,$)):console.timeStamp("Suspended",_,J,W0,z0,$))}function aO(_,J,$,q,G,X){if(h0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var B=q[z].value;$.push(["Recoverable Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:W0,trackGroup:z0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function PU(_,J,$,q){!h0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,W0,z0,"error")):console.timeStamp("Errored",_,J,W0,z0,"error"))}function sO(_,J,$,q){!h0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,W0,z0,"secondary-light")):console.timeStamp($,_,J,W0,z0,"secondary-light"))}function kH(_,J,$,q,G){if(h0&&!(J<=_)){for(var X=[],z=0;z<$.length;z++){var B=$[z].value;X.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"error",track:W0,trackGroup:z0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:X}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function p9(_,J,$){!h0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,W0,z0,"secondary-dark")):console.timeStamp("Animating",_,J,W0,z0,"secondary-dark"))}function Y$(){for(var _=E7,J=sZ=E7=0;J<_;){var $=p5[J];p5[J++]=null;var q=p5[J];p5[J++]=null;var G=p5[J];p5[J++]=null;var X=p5[J];if(p5[J++]=null,q!==null&&G!==null){var z=q.pending;z===null?G.next=G:(G.next=z.next,z.next=G),q.pending=G}X!==0&&DH($,G,X)}}function z$(_,J,$,q){p5[E7++]=_,p5[E7++]=J,p5[E7++]=$,p5[E7++]=q,sZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function NU(_,J,$,q){return z$(_,J,$,q),W$(_)}function l2(_,J){return z$(_,null,null,J),W$(_)}function DH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,X=_.return;X!==null;)X.childLanes|=$,q=X.alternate,q!==null&&(q.childLanes|=$),X.tag===22&&(_=X.stateNode,_===null||_._visibility&S_||(G=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,G&&J!==null&&(G=31-e2($),_=X.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),X):null}function W$(_){if(JJ>pP)throw C8=JJ=0,$J=SF=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.");C8>cP&&(C8=0,$J=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.")),_.alternate===null&&(_.flags&4098)!==0&&tz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&tz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function n6(_){if(c5===null)return _;var J=c5(_);return J===void 0?_:J.current}function CU(_){if(c5===null)return _;var J=c5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=n6(_.render),_.render!==J)?(J={$$typeof:B_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function uH(_,J){if(c5===null)return!1;var $=_.elementType;J=J.type;var q=!1,G=typeof J==="object"&&J!==null?J.$$typeof:null;switch(_.tag){case 1:typeof J==="function"&&(q=!0);break;case 0:typeof J==="function"?q=!0:G===v5&&(q=!0);break;case 11:G===B_?q=!0:G===v5&&(q=!0);break;case 14:case 15:G===HQ?q=!0:G===v5&&(q=!0);break;default:return!1}return q&&(_=c5($),_!==void 0&&_===c5(J))?!0:!1}function bH(_){c5!==null&&typeof WeakSet==="function"&&(h7===null&&(h7=new WeakSet),h7.add(_))}function EH(_,J,$){do{var q=_,G=q.alternate,X=q.child,z=q.sibling,B=q.tag;q=q.type;var I=null;switch(B){case 0:case 15:case 1:I=q;break;case 11:I=q.render}if(c5===null)throw Error("Expected resolveFamily to be set during hot reload.");var f=!1;if(q=!1,I!==null&&(I=c5(I),I!==void 0&&($.has(I)?q=!0:J.has(I)&&(B===1?q=!0:f=!0))),h7!==null&&(h7.has(_)||G!==null&&h7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||f)G=l2(_,2),G!==null&&o0(G,_,2);if(X===null||q||EH(X,J,$),z===null)break;_=z}while(1)}function tO(_,J,$,q){this.tag=_,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=J,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=q,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,pL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function X3(_,J){var $=_.alternate;switch($===null?($=R(_.tag,J,_.key,_.mode),$.elementType=_.elementType,$.type=_.type,$.stateNode=_.stateNode,$._debugOwner=_._debugOwner,$._debugStack=_._debugStack,$._debugTask=_._debugTask,$._debugHookTypes=_._debugHookTypes,$.alternate=_,_.alternate=$):($.pendingProps=J,$.type=_.type,$.flags=0,$.subtreeFlags=0,$.deletions=null,$.actualDuration=-0,$.actualStartTime=-1.1),$.flags=_.flags&65011712,$.childLanes=_.childLanes,$.lanes=_.lanes,$.child=_.child,$.memoizedProps=_.memoizedProps,$.memoizedState=_.memoizedState,$.updateQueue=_.updateQueue,J=_.dependencies,$.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},$.sibling=_.sibling,$.index=_.index,$.ref=_.ref,$.refCleanup=_.refCleanup,$.selfBaseDuration=_.selfBaseDuration,$.treeBaseDuration=_.treeBaseDuration,$._debugInfo=_._debugInfo,$._debugNeedsRemount=_._debugNeedsRemount,$.tag){case 0:case 15:$.type=n6(_.type);break;case 1:$.type=n6(_.type);break;case 11:$.type=CU(_.type)}return $}function hH(_,J){_.flags&=65011714;var $=_.alternate;return $===null?(_.childLanes=0,_.lanes=J,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null,_.selfBaseDuration=0,_.treeBaseDuration=0):(_.childLanes=$.childLanes,_.lanes=$.lanes,_.child=$.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=$.memoizedProps,_.memoizedState=$.memoizedState,_.updateQueue=$.updateQueue,_.type=$.type,J=$.dependencies,_.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},_.selfBaseDuration=$.selfBaseDuration,_.treeBaseDuration=$.treeBaseDuration),_}function SU(_,J,$,q,G,X){var z=0,B=_;if(typeof _==="function")fU(_)&&(z=1),B=n6(B);else if(typeof _==="string")z=c(),z=Uw(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case RZ:return J=R(31,$,J,G),J.elementType=RZ,J.lanes=X,J;case C7:return e6($.children,G,X,J);case KQ:z=8,G|=d2,G|=K4;break;case BZ:return _=$,q=G,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=R(12,_,J,q|q0),J.elementType=BZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case MZ:return J=R(13,$,J,G),J.elementType=MZ,J.lanes=X,J;case TZ:return J=R(19,$,J,G),J.elementType=TZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case m4:z=10;break _;case AZ:z=9;break _;case B_:z=11,B=CU(B);break _;case HQ:z=14;break _;case v5:z=16,B=null;break _}if(B="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";_===null?$="null":O2(_)?$="array":_!==void 0&&_.$$typeof===x4?($="<"+(u(_.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?b(q):null)&&(B+=`
72
72
 
73
- Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+B)),B=null}return J=R(z,$,J,G),J.elementType=_,J.type=B,J.lanes=X,J._debugOwner=q,J}function W$(_,J,$){return J=SU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function i6(_,J,$,q){return _=R(7,_,q,J),_.lanes=$,_}function vU(_,J,$){return _=R(6,_,null,J),_.lanes=$,_}function hH(_){var J=R(18,null,null,i1);return J.stateNode=_,J}function jU(_,J,$){return J=R(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function H5(_,J){if(typeof _==="object"&&_!==null){var $=tZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:L1(J)},tZ.set(_,J),J}return{value:_,source:J,stack:L1(J)}}function $3(_,J){c3(),k7[D7++]=N_,k7[D7++]=NQ,NQ=_,N_=J}function xH(_,J,$){c3(),D5[u5++]=H3,D5[u5++]=Y3,D5[u5++]=q8,q8=_;var q=H3;_=Y3;var G=32-c2(q)-1;q&=~(1<<G),$+=1;var X=32-c2(J)+G;if(30<X){var z=G-G%5;X=(q&(1<<z)-1).toString(32),q>>=z,G-=z,H3=1<<32-c2(J)+G|$<<G|q,Y3=X+_}else H3=1<<X|$<<G|q,Y3=_}function yU(_){c3(),_.return!==null&&($3(_,1),xH(_,1,0))}function VU(_){for(;_===NQ;)NQ=k7[--D7],k7[D7]=null,N_=k7[--D7],k7[D7]=null;for(;_===q8;)q8=D5[--u5],D5[u5]=null,Y3=D5[--u5],D5[u5]=null,H3=D5[--u5],D5[u5]=null}function mH(){return c3(),q8!==null?{id:H3,overflow:Y3}:null}function gH(_,J){c3(),D5[u5++]=H3,D5[u5++]=Y3,D5[u5++]=q8,H3=J.id,Y3=J.overflow,q8=_}function c3(){F0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function d6(_,J){if(_.return===null){if(R5===null)R5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(R5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");R5.distanceFromLeaf>J&&(R5.distanceFromLeaf=J)}return R5}var $=d6(_.return,J+1).children;if(0<$.length&&$[$.length-1].fiber===_)return $=$[$.length-1],$.distanceFromLeaf>J&&($.distanceFromLeaf=J),$;return J={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J},$.push(J),J}function pH(){F0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function L$(_,J){E4||(_=d6(_,0),_.serverProps=null,J!==null&&(J=RW(J),_.serverTail.push(J)))}function l3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=R5;throw q!==null&&(R5=null,$=j9(q)),x9(H5(Error("Hydration failed because the server rendered "+(J?"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:
73
+ Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+B)),B=null}return J=R(z,$,J,G),J.elementType=_,J.type=B,J.lanes=X,J._debugOwner=q,J}function L$(_,J,$){return J=SU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function e6(_,J,$,q){return _=R(7,_,q,J),_.lanes=$,_}function vU(_,J,$){return _=R(6,_,null,J),_.lanes=$,_}function xH(_){var J=R(18,null,null,a1);return J.stateNode=_,J}function jU(_,J,$){return J=R(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function w5(_,J){if(typeof _==="object"&&_!==null){var $=tZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:T1(J)},tZ.set(_,J),J}return{value:_,source:J,stack:T1(J)}}function K3(_,J){n3(),x7[m7++]=v_,x7[m7++]=CQ,CQ=_,v_=J}function mH(_,J,$){n3(),l5[i5++]=T3,l5[i5++]=R3,l5[i5++]=Y8,Y8=_;var q=T3;_=R3;var G=32-e2(q)-1;q&=~(1<<G),$+=1;var X=32-e2(J)+G;if(30<X){var z=G-G%5;X=(q&(1<<z)-1).toString(32),q>>=z,G-=z,T3=1<<32-e2(J)+G|$<<G|q,R3=X+_}else T3=1<<X|$<<G|q,R3=_}function VU(_){n3(),_.return!==null&&(K3(_,1),mH(_,1,0))}function yU(_){for(;_===CQ;)CQ=x7[--m7],x7[m7]=null,v_=x7[--m7],x7[m7]=null;for(;_===Y8;)Y8=l5[--i5],l5[i5]=null,R3=l5[--i5],l5[i5]=null,T3=l5[--i5],l5[i5]=null}function gH(){return n3(),Y8!==null?{id:T3,overflow:R3}:null}function pH(_,J){n3(),l5[i5++]=T3,l5[i5++]=R3,l5[i5++]=Y8,T3=J.id,R3=J.overflow,Y8=_}function n3(){B0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function _8(_,J){if(_.return===null){if(y5===null)y5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(y5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");y5.distanceFromLeaf>J&&(y5.distanceFromLeaf=J)}return y5}var $=_8(_.return,J+1).children;if(0<$.length&&$[$.length-1].fiber===_)return $=$[$.length-1],$.distanceFromLeaf>J&&($.distanceFromLeaf=J),$;return J={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J},$.push(J),J}function cH(){B0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function B$(_,J){d4||(_=_8(_,0),_.serverProps=null,J!==null&&(J=OW(J),_.serverTail.push(J)))}function e3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=y5;throw q!==null&&(y5=null,$=D9(q)),c9(w5(Error("Hydration failed because the server rendered "+(J?"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:
74
74
 
75
75
  - A server/client branch \`if (typeof window !== 'undefined')\`.
76
76
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -80,7 +80,7 @@ Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: ex
80
80
 
81
81
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
82
 
83
- https://react.dev/link/hydration-mismatch`+$),_)),oZ}function cH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[j2]=_,J[l2]=q,nG($,q),$){case"dialog":X0("cancel",J),X0("close",J);break;case"iframe":case"object":case"embed":X0("load",J);break;case"video":case"audio":for($=0;$<e_.length;$++)X0(e_[$],J);break;case"source":X0("error",J);break;case"img":case"image":case"link":X0("error",J),X0("load",J);break;case"details":X0("toggle",J);break;case"input":w0("input",q),X0("invalid",J),rJ(J,q),N9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":aJ(J,q);break;case"select":w0("select",q),X0("invalid",J),tJ(J,q);break;case"textarea":w0("textarea",q),X0("invalid",J),oJ(J,q),C9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||GW(J.textContent,$)?(q.popover!=null&&(X0("beforetoggle",J),X0("toggle",J)),q.onScroll!=null&&X0("scroll",J),q.onScrollEnd!=null&&X0("scrollend",J),q.onClick!=null&&(J.onclick=_3),J=!0):J=!1,J||l3(_,!0)}function lH(_){for(y2=_.return;y2;)switch(y2.tag){case 5:case 31:case 13:b5=!1;return;case 27:case 3:b5=!0;return;default:y2=y2.return}}function q7(_){if(_!==y2)return!1;if(!F0)return lH(_),F0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||QZ(_.type,_.memoizedProps);$=!$}if($&&V0){for($=V0;$;){var q=d6(_,0),G=RW($);q.serverTail.push(G),$=G.type==="Suspense"?ZZ($):B5($.nextSibling)}l3(_)}if(lH(_),J===13){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V0=ZZ(_)}else if(J===31){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V0=ZZ(_)}else J===27?(J=V0,_6(_.type)?(_=mF,mF=null,V0=_):V0=J):V0=y2?B5(_.stateNode.nextSibling):null;return!0}function r6(){V0=y2=null,E4=F0=!1}function kU(){var _=X6;return _!==null&&(t2===null?t2=_:t2.push.apply(t2,_),X6=null),_}function x9(_){X6===null?X6=[_]:X6.push(_)}function DU(){var _=R5;if(_!==null){R5=null;for(var J=j9(_);0<_.children.length;)_=_.children[0];A1(_.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:
83
+ https://react.dev/link/hydration-mismatch`+$),_)),oZ}function lH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[g2]=_,J[_5]=q,nG($,q),$){case"dialog":A0("cancel",J),A0("close",J);break;case"iframe":case"object":case"embed":A0("load",J);break;case"video":case"audio":for($=0;$<QJ.length;$++)A0(QJ[$],J);break;case"source":A0("error",J);break;case"img":case"image":case"link":A0("error",J),A0("load",J);break;case"details":A0("toggle",J);break;case"input":$1("input",q),A0("invalid",J),Z7(J,q),V0(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":sJ(J,q);break;case"select":$1("select",q),A0("invalid",J),oJ(J,q);break;case"textarea":$1("textarea",q),A0("invalid",J),nJ(J,q),j9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||ZW(J.textContent,$)?(q.popover!=null&&(A0("beforetoggle",J),A0("toggle",J)),q.onScroll!=null&&A0("scroll",J),q.onScrollEnd!=null&&A0("scrollend",J),q.onClick!=null&&(J.onclick=F3),J=!0):J=!1,J||e3(_,!0)}function iH(_){for(p2=_.return;p2;)switch(p2.tag){case 5:case 31:case 13:d5=!1;return;case 27:case 3:d5=!0;return;default:p2=p2.return}}function K7(_){if(_!==p2)return!1;if(!B0)return iH(_),B0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||QZ(_.type,_.memoizedProps);$=!$}if($&&x0){for($=x0;$;){var q=_8(_,0),G=OW($);q.serverTail.push(G),$=G.type==="Suspense"?ZZ($):S5($.nextSibling)}e3(_)}if(iH(_),J===13){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");x0=ZZ(_)}else if(J===31){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");x0=ZZ(_)}else J===27?(J=x0,X6(_.type)?(_=mF,mF=null,x0=_):x0=J):x0=p2?S5(_.stateNode.nextSibling):null;return!0}function J8(){x0=p2=null,d4=B0=!1}function kU(){var _=M6;return _!==null&&(G5===null?G5=_:G5.push.apply(G5,_),M6=null),_}function c9(_){M6===null?M6=[_]:M6.push(_)}function DU(){var _=y5;if(_!==null){y5=null;for(var J=D9(_);0<_.children.length;)_=_.children[0];z1(_.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:
84
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -90,54 +90,54 @@ https://react.dev/link/hydration-mismatch`+$),_)),oZ}function cH(_){var{stateNod
90
90
 
91
91
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
92
 
93
- %s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function B$(){u7=CQ=null,b7=!1}function i3(_,J,$){J1(nZ,J._currentValue,_),J._currentValue=$,J1(eZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==cL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=cL}function Q3(_,J){_._currentValue=nZ.current;var $=eZ.current;Q1(eZ,J),_._currentRenderer=$,Q1(nZ,J)}function uU(_,J,$){for(;_!==null;){var q=_.alternate;if((_.childLanes&J)!==J?(_.childLanes|=J,q!==null&&(q.childLanes|=J)):q!==null&&(q.childLanes&J)!==J&&(q.childLanes|=J),_===$)break;_=_.return}_!==$&&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 bU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var X=G.dependencies;if(X!==null){var z=G.child;X=X.firstContext;_:for(;X!==null;){var B=X;X=G;for(var w=0;w<J.length;w++)if(B.context===J[w]){X.lanes|=$,B=X.alternate,B!==null&&(B.lanes|=$),uU(X.return,$,_),q||(z=null);break _}X=B.next}}else if(G.tag===18){if(z=G.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=$,X=z.alternate,X!==null&&(X.lanes|=$),uU(z,$,_),z=null}else z=G.child;if(z!==null)z.return=G;else for(z=G;z!==null;){if(z===_){z=null;break}if(G=z.sibling,G!==null){G.return=z.return,z=G;break}z=z.return}G=z}}function U7(_,J,$,q){_=null;for(var G=J,X=!1;G!==null;){if(!X){if((G.flags&524288)!==0)X=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var z=G.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var B=G.type;d2(G.pendingProps.value,z.value)||(_!==null?_.push(B):_=[B])}}else if(G===HQ.current){if(z=G.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(qJ):_=[qJ])}G=G.return}_!==null&&bU(J,_,$,q),J.flags|=262144}function A$(_){for(_=_.firstContext;_!==null;){if(!d2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function a6(_){CQ=_,u7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function u0(_){return b7&&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()."),iH(CQ,_)}function M$(_,J){return CQ===null&&a6(_),iH(_,J)}function iH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},u7===null){if(_===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().");u7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else u7=u7.next=J;return $}function EU(){return{controller:new fP,data:new Map,refCount:0}}function s6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function m9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&SP(vP,function(){_.controller.abort()})}function A4(_,J,$){if((_&127)!==0)0>h4&&(h4=$2(),f_=fQ(J),_F=J,$!=null&&(JF=x($)),(Y0&(W2|w5))!==w2&&(l0=!0,Y6=C_),_=Z_(),J=G_(),_!==E7||J!==S_?E7=-1.1:J!==null&&(Y6=C_),G8=_,S_=J);else if((_&4194048)!==0&&0>E5&&(E5=$2(),v_=fQ(J),lL=J,$!=null&&(iL=x($)),0>L3)){if(_=Z_(),J=G_(),_!==W6||J!==Z8)W6=-1.1;z6=_,Z8=J}}function aO(_){if(0>h4){h4=$2(),f_=_._debugTask!=null?_._debugTask:null,(Y0&(W2|w5))!==w2&&(Y6=C_);var J=Z_(),$=G_();J!==E7||$!==S_?E7=-1.1:$!==null&&(Y6=C_),G8=J,S_=$}if(0>E5&&(E5=$2(),v_=_._debugTask!=null?_._debugTask:null,0>L3)){if(_=Z_(),J=G_(),_!==W6||J!==Z8)W6=-1.1;z6=_,Z8=J}}function q3(){var _=U8;return U8=0,_}function T$(_){var J=U8;return U8=_,J}function g9(_){var J=U8;return U8+=_,J}function R$(){l1=m1=-1.1}function Y5(){var _=m1;return m1=-1.1,_}function z5(_){0<=_&&(m1=_)}function M4(){var _=m0;return m0=-0,_}function T4(_){0<=_&&(m0=_)}function R4(){var _=b0;return b0=null,_}function O4(){var _=l0;return l0=!1,_}function hU(_){r2=$2(),0>_.actualStartTime&&(_.actualStartTime=r2)}function xU(_){if(0<=r2){var J=$2()-r2;_.actualDuration+=J,_.selfBaseDuration=J,r2=-1}}function dH(_){if(0<=r2){var J=$2()-r2;_.actualDuration+=J,r2=-1}}function I4(){if(0<=r2){var _=$2(),J=_-r2;r2=-1,U8+=J,m0+=J,l1=_}}function rH(_){b0===null&&(b0=[]),b0.push(_),W3===null&&(W3=[]),W3.push(_)}function w4(){r2=$2(),0>m1&&(m1=r2)}function p9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function sO(_,J){if(y_===null){var $=y_=[];QF=0,F8=aG(),h7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return QF++,J.then(aH,aH),J}function aH(){if(--QF===0&&(-1<E5||(L3=-1.1),y_!==null)){h7!==null&&(h7.status="fulfilled");var _=y_;y_=null,F8=0,h7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function tO(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(G){$.push(G)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var G=0;G<$.length;G++)(0,$[G])(J)},function(G){q.status="rejected",q.reason=G;for(G=0;G<$.length;G++)(0,$[G])(void 0)}),q}function mU(){var _=X8.current;return _!==null?_:f0.pooledCache}function O$(_,J){J===null?J1(X8,X8.current,_):J1(X8,J.pool,_)}function sH(){var _=mU();return _===null?null:{parent:J2._currentValue,pool:_}}function tH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function oH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function nH(_,J,$){Y1.actQueue!==null&&(Y1.didUsePromise=!0);var q=_.thenables;if($=q[$],$===void 0?q.push(J):$!==J&&(_.didWarnAboutUncachedPromise||(_.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.")),J.then(_3,_3),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var G={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:G}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){G.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,_Y(_),_;default:if(typeof J.status==="string")J.then(_3,_3);else{if(_=f0,_!==null&&100<_.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.");_=J,_.status="pending",_.then(function(X){if(J.status==="pending"){var z=J;z.status="fulfilled",z.value=X}},function(X){if(J.status==="pending"){var z=J;z.status="rejected",z.reason=X}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,_Y(_),_}throw H8=J,h_=!0,x7}}function d3(_){try{return kP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw H8=J,h_=!0,x7;throw J}}function eH(){if(H8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=H8;return H8=null,h_=!1,_}function _Y(_){if(_===x7||_===uQ)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 f2(_){var J=_0;return _!=null&&(_0=J===null?_:J.concat(_)),J}function gU(){var _=_0;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function I$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var X=q[G];if(X!=="children"&&X!=="key"){J===null&&(J=W$(_,$.mode,0),J._debugInfo=_0,J.return=$),A1(J,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},X);break}}}function w$(_){var J=x_;return x_+=1,m7===null&&(m7=tH()),nH(m7,_,J)}function c9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function JY(_,J){if(J.$$typeof===Yw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function A$(){g7=fQ=null,p7=!1}function _6(_,J,$){Q1(nZ,J._currentValue,_),J._currentValue=$,Q1(eZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==lL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=lL}function H3(_,J){_._currentValue=nZ.current;var $=eZ.current;U1(eZ,J),_._currentRenderer=$,U1(nZ,J)}function uU(_,J,$){for(;_!==null;){var q=_.alternate;if((_.childLanes&J)!==J?(_.childLanes|=J,q!==null&&(q.childLanes|=J)):q!==null&&(q.childLanes&J)!==J&&(q.childLanes|=J),_===$)break;_=_.return}_!==$&&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 bU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var X=G.dependencies;if(X!==null){var z=G.child;X=X.firstContext;_:for(;X!==null;){var B=X;X=G;for(var I=0;I<J.length;I++)if(B.context===J[I]){X.lanes|=$,B=X.alternate,B!==null&&(B.lanes|=$),uU(X.return,$,_),q||(z=null);break _}X=B.next}}else if(G.tag===18){if(z=G.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=$,X=z.alternate,X!==null&&(X.lanes|=$),uU(z,$,_),z=null}else z=G.child;if(z!==null)z.return=G;else for(z=G;z!==null;){if(z===_){z=null;break}if(G=z.sibling,G!==null){G.return=z.return,z=G;break}z=z.return}G=z}}function H7(_,J,$,q){_=null;for(var G=J,X=!1;G!==null;){if(!X){if((G.flags&524288)!==0)X=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var z=G.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var B=G.type;$5(G.pendingProps.value,z.value)||(_!==null?_.push(B):_=[B])}}else if(G===YQ.current){if(z=G.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(FJ):_=[FJ])}G=G.return}_!==null&&bU(J,_,$,q),J.flags|=262144}function M$(_){for(_=_.firstContext;_!==null;){if(!$5(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function $8(_){fQ=_,g7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function p0(_){return p7&&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()."),dH(fQ,_)}function T$(_,J){return fQ===null&&$8(_),dH(_,J)}function dH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},g7===null){if(_===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().");g7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else g7=g7.next=J;return $}function EU(){return{controller:new jP,data:new Map,refCount:0}}function Q8(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function l9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&VP(yP,function(){_.controller.abort()})}function C4(_,J,$){if((_&127)!==0)0>r4&&(r4=Y2(),V_=SQ(J),_F=J,$!=null&&(JF=m($)),(R0&(w2|u5))!==k2&&(n0=!0,O6=j_),_=H_(),J=K_(),_!==c7||J!==y_?c7=-1.1:J!==null&&(O6=j_),W8=_,y_=J);else if((_&4194048)!==0&&0>r5&&(r5=Y2(),k_=SQ(J),iL=J,$!=null&&(dL=m($)),0>w3)){if(_=H_(),J=K_(),_!==w6||J!==L8)w6=-1.1;I6=_,L8=J}}function oO(_){if(0>r4){r4=Y2(),V_=_._debugTask!=null?_._debugTask:null,(R0&(w2|u5))!==k2&&(O6=j_);var J=H_(),$=K_();J!==c7||$!==y_?c7=-1.1:$!==null&&(O6=j_),W8=J,y_=$}if(0>r5&&(r5=Y2(),k_=_._debugTask!=null?_._debugTask:null,0>w3)){if(_=H_(),J=K_(),_!==w6||J!==L8)w6=-1.1;I6=_,L8=J}}function Y3(){var _=z8;return z8=0,_}function R$(_){var J=z8;return z8=_,J}function i9(_){var J=z8;return z8+=_,J}function O$(){d1=p1=-1.1}function P5(){var _=p1;return p1=-1.1,_}function N5(_){0<=_&&(p1=_)}function f4(){var _=r0;return r0=-0,_}function S4(_){0<=_&&(r0=_)}function v4(){var _=c0;return c0=null,_}function j4(){var _=n0;return n0=!1,_}function hU(_){Q5=Y2(),0>_.actualStartTime&&(_.actualStartTime=Q5)}function xU(_){if(0<=Q5){var J=Y2()-Q5;_.actualDuration+=J,_.selfBaseDuration=J,Q5=-1}}function rH(_){if(0<=Q5){var J=Y2()-Q5;_.actualDuration+=J,Q5=-1}}function V4(){if(0<=Q5){var _=Y2(),J=_-Q5;Q5=-1,z8+=J,r0+=J,d1=_}}function aH(_){c0===null&&(c0=[]),c0.push(_),I3===null&&(I3=[]),I3.push(_)}function y4(){Q5=Y2(),0>p1&&(p1=Q5)}function d9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function nO(_,J){if(u_===null){var $=u_=[];QF=0,B8=aG(),l7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return QF++,J.then(sH,sH),J}function sH(){if(--QF===0&&(-1<r5||(w3=-1.1),u_!==null)){l7!==null&&(l7.status="fulfilled");var _=u_;u_=null,B8=0,l7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function eO(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(G){$.push(G)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var G=0;G<$.length;G++)(0,$[G])(J)},function(G){q.status="rejected",q.reason=G;for(G=0;G<$.length;G++)(0,$[G])(void 0)}),q}function mU(){var _=A8.current;return _!==null?_:u0.pooledCache}function I$(_,J){J===null?Q1(A8,A8.current,_):Q1(A8,J.pool,_)}function tH(){var _=mU();return _===null?null:{parent:H2._currentValue,pool:_}}function oH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function nH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function eH(_,J,$){Y1.actQueue!==null&&(Y1.didUsePromise=!0);var q=_.thenables;if($=q[$],$===void 0?q.push(J):$!==J&&(_.didWarnAboutUncachedPromise||(_.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.")),J.then(F3,F3),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var G={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:G}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){G.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,JY(_),_;default:if(typeof J.status==="string")J.then(F3,F3);else{if(_=u0,_!==null&&100<_.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.");_=J,_.status="pending",_.then(function(X){if(J.status==="pending"){var z=J;z.status="fulfilled",z.value=X}},function(X){if(J.status==="pending"){var z=J;z.status="rejected",z.reason=X}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,JY(_),_}throw T8=J,p_=!0,i7}}function J6(_){try{return bP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw T8=J,p_=!0,i7;throw J}}function _Y(){if(T8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=T8;return T8=null,p_=!1,_}function JY(_){if(_===i7||_===bQ)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 h2(_){var J=U0;return _!=null&&(U0=J===null?_:J.concat(_)),J}function gU(){var _=U0;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function w$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var X=q[G];if(X!=="children"&&X!=="key"){J===null&&(J=L$(_,$.mode,0),J._debugInfo=U0,J.return=$),z1(J,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},X);break}}}function P$(_){var J=c_;return c_+=1,d7===null&&(d7=oH()),eH(d7,_,J)}function r9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function $Y(_,J){if(J.$$typeof===Lw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
94
  - Multiple copies of the "react" package is used.
95
95
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
- - A compiler tries to "inline" JSX instead of using the runtime.`);throw _=Object.prototype.toString.call(J),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}function P$(_,J){var $=gU();$!==null?$.run(JY.bind(null,_,J)):JY(_,J)}function $Y(_,J){var $=x(_)||"Component";HB[$]||(HB[$]=!0,J=J.displayName||J.name||"Component",_.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.
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw _=Object.prototype.toString.call(J),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}function N$(_,J){var $=gU();$!==null?$.run($Y.bind(null,_,J)):$Y(_,J)}function QY(_,J){var $=m(_)||"Component";YB[$]||(YB[$]=!0,J=J.displayName||J.name||"Component",_.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.
97
97
  root.render(%s)`,J,J,J):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.
98
- <%s>{%s}</%s>`,J,J,$,J,$))}function N$(_,J){var $=gU();$!==null?$.run($Y.bind(null,_,J)):$Y(_,J)}function QY(_,J){var $=x(_)||"Component";YB[$]||(YB[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,J,J,$,J,$))}function C$(_,J){var $=gU();$!==null?$.run(QY.bind(null,_,J)):QY(_,J)}function qY(_,J){var $=m(_)||"Component";zB[$]||(zB[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
99
99
  root.render(%s)`,J):console.error(`Symbols are not valid as a React child.
100
- <%s>%s</%s>`,$,J,$))}function C$(_,J){var $=gU();$!==null?$.run(QY.bind(null,_,J)):QY(_,J)}function qY(_){function J(d,s){if(_){var n=d.deletions;n===null?(d.deletions=[s],d.flags|=16):n.push(s)}}function $(d,s){if(!_)return null;for(;s!==null;)J(d,s),s=s.sibling;return null}function q(d){for(var s=new Map;d!==null;)d.key!==null?s.set(d.key,d):s.set(d.index,d),d=d.sibling;return s}function G(d,s){return d=J3(d,s),d.index=0,d.sibling=null,d}function X(d,s,n){if(d.index=n,!_)return d.flags|=1048576,s;if(n=d.alternate,n!==null)return n=n.index,n<s?(d.flags|=67108866,s):n;return d.flags|=67108866,s}function z(d){return _&&d.alternate===null&&(d.flags|=67108866),d}function B(d,s,n,B1){if(s===null||s.tag!==6)return s=vU(n,d.mode,B1),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;return s=G(s,n),s.return=d,s._debugInfo=_0,s}function w(d,s,n,B1){var S1=n.type;if(S1===R7)return s=e(d,s,n.props.children,B1,n.key),I$(n,s,d),s;if(s!==null&&(s.elementType===S1||DH(s,n)||typeof S1==="object"&&S1!==null&&S1.$$typeof===A5&&d3(S1)===s.type))return s=G(s,n.props),c9(s,n),s.return=d,s._debugOwner=n._owner,s._debugInfo=_0,s;return s=W$(n,d.mode,B1),c9(s,n),s.return=d,s._debugInfo=_0,s}function S(d,s,n,B1){if(s===null||s.tag!==4||s.stateNode.containerInfo!==n.containerInfo||s.stateNode.implementation!==n.implementation)return s=jU(n,d.mode,B1),s.return=d,s._debugInfo=_0,s;return s=G(s,n.children||[]),s.return=d,s._debugInfo=_0,s}function e(d,s,n,B1,S1){if(s===null||s.tag!==7)return s=i6(n,d.mode,B1,S1),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;return s=G(s,n),s.return=d,s._debugInfo=_0,s}function _1(d,s,n){if(typeof s==="string"&&s!==""||typeof s==="number"||typeof s==="bigint")return s=vU(""+s,d.mode,n),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;if(typeof s==="object"&&s!==null){switch(s.$$typeof){case j4:return n=W$(s,d.mode,n),c9(n,s),n.return=d,d=f2(s._debugInfo),n._debugInfo=_0,_0=d,n;case T7:return s=jU(s,d.mode,n),s.return=d,s._debugInfo=_0,s;case A5:var B1=f2(s._debugInfo);return s=d3(s),d=_1(d,s,n),_0=B1,d}if(Y2(s)||E(s))return n=i6(s,d.mode,n,null),n.return=d,n._debugOwner=d,n._debugTask=d._debugTask,d=f2(s._debugInfo),n._debugInfo=_0,_0=d,n;if(typeof s.then==="function")return B1=f2(s._debugInfo),d=_1(d,w$(s),n),_0=B1,d;if(s.$$typeof===y4)return _1(d,M$(d,s),n);P$(d,s)}return typeof s==="function"&&N$(d,s),typeof s==="symbol"&&C$(d,s),null}function r(d,s,n,B1){var S1=s!==null?s.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1!==null?null:B(d,s,""+n,B1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case j4:return n.key===S1?(S1=f2(n._debugInfo),d=w(d,s,n,B1),_0=S1,d):null;case T7:return n.key===S1?S(d,s,n,B1):null;case A5:return S1=f2(n._debugInfo),n=d3(n),d=r(d,s,n,B1),_0=S1,d}if(Y2(n)||E(n)){if(S1!==null)return null;return S1=f2(n._debugInfo),d=e(d,s,n,B1,null),_0=S1,d}if(typeof n.then==="function")return S1=f2(n._debugInfo),d=r(d,s,w$(n),B1),_0=S1,d;if(n.$$typeof===y4)return r(d,s,M$(d,n),B1);P$(d,n)}return typeof n==="function"&&N$(d,n),typeof n==="symbol"&&C$(d,n),null}function Z1(d,s,n,B1,S1){if(typeof B1==="string"&&B1!==""||typeof B1==="number"||typeof B1==="bigint")return d=d.get(n)||null,B(s,d,""+B1,S1);if(typeof B1==="object"&&B1!==null){switch(B1.$$typeof){case j4:return n=d.get(B1.key===null?n:B1.key)||null,d=f2(B1._debugInfo),s=w(s,n,B1,S1),_0=d,s;case T7:return d=d.get(B1.key===null?n:B1.key)||null,S(s,d,B1,S1);case A5:var s1=f2(B1._debugInfo);return B1=d3(B1),s=Z1(d,s,n,B1,S1),_0=s1,s}if(Y2(B1)||E(B1))return n=d.get(n)||null,d=f2(B1._debugInfo),s=e(s,n,B1,S1,null),_0=d,s;if(typeof B1.then==="function")return s1=f2(B1._debugInfo),s=Z1(d,s,n,w$(B1),S1),_0=s1,s;if(B1.$$typeof===y4)return Z1(d,s,n,M$(s,B1),S1);P$(s,B1)}return typeof B1==="function"&&N$(s,B1),typeof B1==="symbol"&&C$(s,B1),null}function f1(d,s,n,B1){if(typeof n!=="object"||n===null)return B1;switch(n.$$typeof){case j4:case T7:T(d,s,n);var S1=n.key;if(typeof S1!=="string")break;if(B1===null){B1=new Set,B1.add(S1);break}if(!B1.has(S1)){B1.add(S1);break}A1(s,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.",S1)});break;case A5:n=d3(n),f1(d,s,n,B1)}return B1}function y1(d,s,n,B1){for(var S1=null,s1=null,x1=null,E1=s,n1=s=0,k0=null;E1!==null&&n1<n.length;n1++){E1.index>n1?(k0=E1,E1=null):k0=E1.sibling;var n0=r(d,E1,n[n1],B1);if(n0===null){E1===null&&(E1=k0);break}S1=f1(d,n0,n[n1],S1),_&&E1&&n0.alternate===null&&J(d,E1),s=X(n0,s,n1),x1===null?s1=n0:x1.sibling=n0,x1=n0,E1=k0}if(n1===n.length)return $(d,E1),F0&&$3(d,n1),s1;if(E1===null){for(;n1<n.length;n1++)E1=_1(d,n[n1],B1),E1!==null&&(S1=f1(d,E1,n[n1],S1),s=X(E1,s,n1),x1===null?s1=E1:x1.sibling=E1,x1=E1);return F0&&$3(d,n1),s1}for(E1=q(E1);n1<n.length;n1++)k0=Z1(E1,d,n1,n[n1],B1),k0!==null&&(S1=f1(d,k0,n[n1],S1),_&&k0.alternate!==null&&E1.delete(k0.key===null?n1:k0.key),s=X(k0,s,n1),x1===null?s1=k0:x1.sibling=k0,x1=k0);return _&&E1.forEach(function(P3){return J(d,P3)}),F0&&$3(d,n1),s1}function j0(d,s,n,B1){if(n==null)throw Error("An iterable object provided no iterator.");for(var S1=null,s1=null,x1=s,E1=s=0,n1=null,k0=null,n0=n.next();x1!==null&&!n0.done;E1++,n0=n.next()){x1.index>E1?(n1=x1,x1=null):n1=x1.sibling;var P3=r(d,x1,n0.value,B1);if(P3===null){x1===null&&(x1=n1);break}k0=f1(d,P3,n0.value,k0),_&&x1&&P3.alternate===null&&J(d,x1),s=X(P3,s,E1),s1===null?S1=P3:s1.sibling=P3,s1=P3,x1=n1}if(n0.done)return $(d,x1),F0&&$3(d,E1),S1;if(x1===null){for(;!n0.done;E1++,n0=n.next())x1=_1(d,n0.value,B1),x1!==null&&(k0=f1(d,x1,n0.value,k0),s=X(x1,s,E1),s1===null?S1=x1:s1.sibling=x1,s1=x1);return F0&&$3(d,E1),S1}for(x1=q(x1);!n0.done;E1++,n0=n.next())n1=Z1(x1,d,E1,n0.value,B1),n1!==null&&(k0=f1(d,n1,n0.value,k0),_&&n1.alternate!==null&&x1.delete(n1.key===null?E1:n1.key),s=X(n1,s,E1),s1===null?S1=n1:s1.sibling=n1,s1=n1);return _&&x1.forEach(function(QN){return J(d,QN)}),F0&&$3(d,E1),S1}function K0(d,s,n,B1){if(typeof n==="object"&&n!==null&&n.type===R7&&n.key===null&&(I$(n,null,d),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case j4:var S1=f2(n._debugInfo);_:{for(var s1=n.key;s!==null;){if(s.key===s1){if(s1=n.type,s1===R7){if(s.tag===7){$(d,s.sibling),B1=G(s,n.props.children),B1.return=d,B1._debugOwner=n._owner,B1._debugInfo=_0,I$(n,B1,d),d=B1;break _}}else if(s.elementType===s1||DH(s,n)||typeof s1==="object"&&s1!==null&&s1.$$typeof===A5&&d3(s1)===s.type){$(d,s.sibling),B1=G(s,n.props),c9(B1,n),B1.return=d,B1._debugOwner=n._owner,B1._debugInfo=_0,d=B1;break _}$(d,s);break}else J(d,s);s=s.sibling}n.type===R7?(B1=i6(n.props.children,d.mode,B1,n.key),B1.return=d,B1._debugOwner=d,B1._debugTask=d._debugTask,B1._debugInfo=_0,I$(n,B1,d),d=B1):(B1=W$(n,d.mode,B1),c9(B1,n),B1.return=d,B1._debugInfo=_0,d=B1)}return d=z(d),_0=S1,d;case T7:_:{S1=n;for(n=S1.key;s!==null;){if(s.key===n)if(s.tag===4&&s.stateNode.containerInfo===S1.containerInfo&&s.stateNode.implementation===S1.implementation){$(d,s.sibling),B1=G(s,S1.children||[]),B1.return=d,d=B1;break _}else{$(d,s);break}else J(d,s);s=s.sibling}B1=jU(S1,d.mode,B1),B1.return=d,d=B1}return z(d);case A5:return S1=f2(n._debugInfo),n=d3(n),d=K0(d,s,n,B1),_0=S1,d}if(Y2(n))return S1=f2(n._debugInfo),d=y1(d,s,n,B1),_0=S1,d;if(E(n)){if(S1=f2(n._debugInfo),s1=E(n),typeof s1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var x1=s1.call(n);if(x1===n){if(d.tag!==0||Object.prototype.toString.call(d.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(x1)!=="[object Generator]")XB||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."),XB=!0}else n.entries!==s1||ZF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZF=!0);return d=j0(d,s,x1,B1),_0=S1,d}if(typeof n.then==="function")return S1=f2(n._debugInfo),d=K0(d,s,w$(n),B1),_0=S1,d;if(n.$$typeof===y4)return K0(d,s,M$(d,n),B1);P$(d,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1=""+n,s!==null&&s.tag===6?($(d,s.sibling),B1=G(s,S1),B1.return=d,d=B1):($(d,s),B1=vU(S1,d.mode,B1),B1.return=d,B1._debugOwner=d,B1._debugTask=d._debugTask,B1._debugInfo=_0,d=B1),z(d);return typeof n==="function"&&N$(d,n),typeof n==="symbol"&&C$(d,n),$(d,s)}return function(d,s,n,B1){var S1=_0;_0=null;try{x_=0;var s1=K0(d,s,n,B1);return m7=null,s1}catch(k0){if(k0===x7||k0===uQ)throw k0;var x1=R(29,k0,null,d.mode);x1.lanes=B1,x1.return=d;var E1=x1._debugInfo=_0;if(x1._debugOwner=d._debugOwner,x1._debugTask=d._debugTask,E1!=null){for(var n1=E1.length-1;0<=n1;n1--)if(typeof E1[n1].stack==="string"){x1._debugOwner=E1[n1],x1._debugTask=E1[n1].debugTask;break}}return x1}finally{_0=S1}}}function UY(_,J){var $=Y2(_);return _=!$&&typeof E(_)==="function",$||_?($=$?"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>",$,J,$),!1):!0}function pU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function r3(_){return{lane:_,tag:WB,payload:null,callback:null,next:null}}function a3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,XF===q&&!AB){var G=x(_);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.
100
+ <%s>%s</%s>`,$,J,$))}function f$(_,J){var $=gU();$!==null?$.run(qY.bind(null,_,J)):qY(_,J)}function UY(_){function J(i,r){if(_){var n=i.deletions;n===null?(i.deletions=[r],i.flags|=16):n.push(r)}}function $(i,r){if(!_)return null;for(;r!==null;)J(i,r),r=r.sibling;return null}function q(i){for(var r=new Map;i!==null;)i.key!==null?r.set(i.key,i):r.set(i.index,i),i=i.sibling;return r}function G(i,r){return i=X3(i,r),i.index=0,i.sibling=null,i}function X(i,r,n){if(i.index=n,!_)return i.flags|=1048576,r;if(n=i.alternate,n!==null)return n=n.index,n<r?(i.flags|=67108866,r):n;return i.flags|=67108866,r}function z(i){return _&&i.alternate===null&&(i.flags|=67108866),i}function B(i,r,n,M1){if(r===null||r.tag!==6)return r=vU(n,i.mode,M1),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=U0,r;return r=G(r,n),r.return=i,r._debugInfo=U0,r}function I(i,r,n,M1){var S1=n.type;if(S1===C7)return r=e(i,r,n.props.children,M1,n.key),w$(n,r,i),r;if(r!==null&&(r.elementType===S1||uH(r,n)||typeof S1==="object"&&S1!==null&&S1.$$typeof===v5&&J6(S1)===r.type))return r=G(r,n.props),r9(r,n),r.return=i,r._debugOwner=n._owner,r._debugInfo=U0,r;return r=L$(n,i.mode,M1),r9(r,n),r.return=i,r._debugInfo=U0,r}function f(i,r,n,M1){if(r===null||r.tag!==4||r.stateNode.containerInfo!==n.containerInfo||r.stateNode.implementation!==n.implementation)return r=jU(n,i.mode,M1),r.return=i,r._debugInfo=U0,r;return r=G(r,n.children||[]),r.return=i,r._debugInfo=U0,r}function e(i,r,n,M1,S1){if(r===null||r.tag!==7)return r=e6(n,i.mode,M1,S1),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=U0,r;return r=G(r,n),r.return=i,r._debugInfo=U0,r}function J1(i,r,n){if(typeof r==="string"&&r!==""||typeof r==="number"||typeof r==="bigint")return r=vU(""+r,i.mode,n),r.return=i,r._debugOwner=i,r._debugTask=i._debugTask,r._debugInfo=U0,r;if(typeof r==="object"&&r!==null){switch(r.$$typeof){case x4:return n=L$(r,i.mode,n),r9(n,r),n.return=i,i=h2(r._debugInfo),n._debugInfo=U0,U0=i,n;case N7:return r=jU(r,i.mode,n),r.return=i,r._debugInfo=U0,r;case v5:var M1=h2(r._debugInfo);return r=J6(r),i=J1(i,r,n),U0=M1,i}if(O2(r)||E(r))return n=e6(r,i.mode,n,null),n.return=i,n._debugOwner=i,n._debugTask=i._debugTask,i=h2(r._debugInfo),n._debugInfo=U0,U0=i,n;if(typeof r.then==="function")return M1=h2(r._debugInfo),i=J1(i,P$(r),n),U0=M1,i;if(r.$$typeof===m4)return J1(i,T$(i,r),n);N$(i,r)}return typeof r==="function"&&C$(i,r),typeof r==="symbol"&&f$(i,r),null}function d(i,r,n,M1){var S1=r!==null?r.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1!==null?null:B(i,r,""+n,M1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case x4:return n.key===S1?(S1=h2(n._debugInfo),i=I(i,r,n,M1),U0=S1,i):null;case N7:return n.key===S1?f(i,r,n,M1):null;case v5:return S1=h2(n._debugInfo),n=J6(n),i=d(i,r,n,M1),U0=S1,i}if(O2(n)||E(n)){if(S1!==null)return null;return S1=h2(n._debugInfo),i=e(i,r,n,M1,null),U0=S1,i}if(typeof n.then==="function")return S1=h2(n._debugInfo),i=d(i,r,P$(n),M1),U0=S1,i;if(n.$$typeof===m4)return d(i,r,T$(i,n),M1);N$(i,n)}return typeof n==="function"&&C$(i,n),typeof n==="symbol"&&f$(i,n),null}function Z1(i,r,n,M1,S1){if(typeof M1==="string"&&M1!==""||typeof M1==="number"||typeof M1==="bigint")return i=i.get(n)||null,B(r,i,""+M1,S1);if(typeof M1==="object"&&M1!==null){switch(M1.$$typeof){case x4:return n=i.get(M1.key===null?n:M1.key)||null,i=h2(M1._debugInfo),r=I(r,n,M1,S1),U0=i,r;case N7:return i=i.get(M1.key===null?n:M1.key)||null,f(r,i,M1,S1);case v5:var o1=h2(M1._debugInfo);return M1=J6(M1),r=Z1(i,r,n,M1,S1),U0=o1,r}if(O2(M1)||E(M1))return n=i.get(n)||null,i=h2(M1._debugInfo),r=e(r,n,M1,S1,null),U0=i,r;if(typeof M1.then==="function")return o1=h2(M1._debugInfo),r=Z1(i,r,n,P$(M1),S1),U0=o1,r;if(M1.$$typeof===m4)return Z1(i,r,n,T$(r,M1),S1);N$(r,M1)}return typeof M1==="function"&&C$(r,M1),typeof M1==="symbol"&&f$(r,M1),null}function N1(i,r,n,M1){if(typeof n!=="object"||n===null)return M1;switch(n.$$typeof){case x4:case N7:T(i,r,n);var S1=n.key;if(typeof S1!=="string")break;if(M1===null){M1=new Set,M1.add(S1);break}if(!M1.has(S1)){M1.add(S1);break}z1(r,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.",S1)});break;case v5:n=J6(n),N1(i,r,n,M1)}return M1}function j1(i,r,n,M1){for(var S1=null,o1=null,g1=null,h1=r,$0=r=0,m0=null;h1!==null&&$0<n.length;$0++){h1.index>$0?(m0=h1,h1=null):m0=h1.sibling;var X2=d(i,h1,n[$0],M1);if(X2===null){h1===null&&(h1=m0);break}S1=N1(i,X2,n[$0],S1),_&&h1&&X2.alternate===null&&J(i,h1),r=X(X2,r,$0),g1===null?o1=X2:g1.sibling=X2,g1=X2,h1=m0}if($0===n.length)return $(i,h1),B0&&K3(i,$0),o1;if(h1===null){for(;$0<n.length;$0++)h1=J1(i,n[$0],M1),h1!==null&&(S1=N1(i,h1,n[$0],S1),r=X(h1,r,$0),g1===null?o1=h1:g1.sibling=h1,g1=h1);return B0&&K3(i,$0),o1}for(h1=q(h1);$0<n.length;$0++)m0=Z1(h1,i,$0,n[$0],M1),m0!==null&&(S1=N1(i,m0,n[$0],S1),_&&m0.alternate!==null&&h1.delete(m0.key===null?$0:m0.key),r=X(m0,r,$0),g1===null?o1=m0:g1.sibling=m0,g1=m0);return _&&h1.forEach(function(y3){return J(i,y3)}),B0&&K3(i,$0),o1}function E0(i,r,n,M1){if(n==null)throw Error("An iterable object provided no iterator.");for(var S1=null,o1=null,g1=r,h1=r=0,$0=null,m0=null,X2=n.next();g1!==null&&!X2.done;h1++,X2=n.next()){g1.index>h1?($0=g1,g1=null):$0=g1.sibling;var y3=d(i,g1,X2.value,M1);if(y3===null){g1===null&&(g1=$0);break}m0=N1(i,y3,X2.value,m0),_&&g1&&y3.alternate===null&&J(i,g1),r=X(y3,r,h1),o1===null?S1=y3:o1.sibling=y3,o1=y3,g1=$0}if(X2.done)return $(i,g1),B0&&K3(i,h1),S1;if(g1===null){for(;!X2.done;h1++,X2=n.next())g1=J1(i,X2.value,M1),g1!==null&&(m0=N1(i,g1,X2.value,m0),r=X(g1,r,h1),o1===null?S1=g1:o1.sibling=g1,o1=g1);return B0&&K3(i,h1),S1}for(g1=q(g1);!X2.done;h1++,X2=n.next())$0=Z1(g1,i,h1,X2.value,M1),$0!==null&&(m0=N1(i,$0,X2.value,m0),_&&$0.alternate!==null&&g1.delete($0.key===null?h1:$0.key),r=X($0,r,h1),o1===null?S1=$0:o1.sibling=$0,o1=$0);return _&&g1.forEach(function(GN){return J(i,GN)}),B0&&K3(i,h1),S1}function M0(i,r,n,M1){if(typeof n==="object"&&n!==null&&n.type===C7&&n.key===null&&(w$(n,null,i),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case x4:var S1=h2(n._debugInfo);_:{for(var o1=n.key;r!==null;){if(r.key===o1){if(o1=n.type,o1===C7){if(r.tag===7){$(i,r.sibling),M1=G(r,n.props.children),M1.return=i,M1._debugOwner=n._owner,M1._debugInfo=U0,w$(n,M1,i),i=M1;break _}}else if(r.elementType===o1||uH(r,n)||typeof o1==="object"&&o1!==null&&o1.$$typeof===v5&&J6(o1)===r.type){$(i,r.sibling),M1=G(r,n.props),r9(M1,n),M1.return=i,M1._debugOwner=n._owner,M1._debugInfo=U0,i=M1;break _}$(i,r);break}else J(i,r);r=r.sibling}n.type===C7?(M1=e6(n.props.children,i.mode,M1,n.key),M1.return=i,M1._debugOwner=i,M1._debugTask=i._debugTask,M1._debugInfo=U0,w$(n,M1,i),i=M1):(M1=L$(n,i.mode,M1),r9(M1,n),M1.return=i,M1._debugInfo=U0,i=M1)}return i=z(i),U0=S1,i;case N7:_:{S1=n;for(n=S1.key;r!==null;){if(r.key===n)if(r.tag===4&&r.stateNode.containerInfo===S1.containerInfo&&r.stateNode.implementation===S1.implementation){$(i,r.sibling),M1=G(r,S1.children||[]),M1.return=i,i=M1;break _}else{$(i,r);break}else J(i,r);r=r.sibling}M1=jU(S1,i.mode,M1),M1.return=i,i=M1}return z(i);case v5:return S1=h2(n._debugInfo),n=J6(n),i=M0(i,r,n,M1),U0=S1,i}if(O2(n))return S1=h2(n._debugInfo),i=j1(i,r,n,M1),U0=S1,i;if(E(n)){if(S1=h2(n._debugInfo),o1=E(n),typeof o1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var g1=o1.call(n);if(g1===n){if(i.tag!==0||Object.prototype.toString.call(i.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(g1)!=="[object Generator]")KB||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."),KB=!0}else n.entries!==o1||ZF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZF=!0);return i=E0(i,r,g1,M1),U0=S1,i}if(typeof n.then==="function")return S1=h2(n._debugInfo),i=M0(i,r,P$(n),M1),U0=S1,i;if(n.$$typeof===m4)return M0(i,r,T$(i,n),M1);N$(i,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1=""+n,r!==null&&r.tag===6?($(i,r.sibling),M1=G(r,S1),M1.return=i,i=M1):($(i,r),M1=vU(S1,i.mode,M1),M1.return=i,M1._debugOwner=i,M1._debugTask=i._debugTask,M1._debugInfo=U0,i=M1),z(i);return typeof n==="function"&&C$(i,n),typeof n==="symbol"&&f$(i,n),$(i,r)}return function(i,r,n,M1){var S1=U0;U0=null;try{c_=0;var o1=M0(i,r,n,M1);return d7=null,o1}catch(m0){if(m0===i7||m0===bQ)throw m0;var g1=R(29,m0,null,i.mode);g1.lanes=M1,g1.return=i;var h1=g1._debugInfo=U0;if(g1._debugOwner=i._debugOwner,g1._debugTask=i._debugTask,h1!=null){for(var $0=h1.length-1;0<=$0;$0--)if(typeof h1[$0].stack==="string"){g1._debugOwner=h1[$0],g1._debugTask=h1[$0].debugTask;break}}return g1}finally{U0=S1}}}function GY(_,J){var $=O2(_);return _=!$&&typeof E(_)==="function",$||_?($=$?"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>",$,J,$),!1):!0}function pU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function $6(_){return{lane:_,tag:LB,payload:null,callback:null,next:null}}function Q6(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,XF===q&&!MB){var G=m(_);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.
101
101
 
102
- Please update the following component: %s`,G),AB=!0}if((Y0&W2)!==w2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=z$(_),kH(_,null,$),J;return Y$(_,q,J,$),z$(_)}function l9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,f5(_,$)}}function f$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,X=null;if($=$.firstBaseUpdate,$!==null){do{var z={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};X===null?G=X=z:X=X.next=z,$=$.next}while($!==null);X===null?G=X=J:X=X.next=J}else G=X=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:X,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function i9(){if(KF){var _=h7;if(_!==null)throw _}}function d9(_,J,$,q){KF=!1;var G=_.updateQueue;L6=!1,XF=G.shared;var{firstBaseUpdate:X,lastBaseUpdate:z}=G,B=G.shared.pending;if(B!==null){G.shared.pending=null;var w=B,S=w.next;w.next=null,z===null?X=S:z.next=S,z=w;var e=_.alternate;e!==null&&(e=e.updateQueue,B=e.lastBaseUpdate,B!==z&&(B===null?e.firstBaseUpdate=S:B.next=S,e.lastBaseUpdate=w))}if(X!==null){var _1=G.baseState;z=0,e=S=w=null,B=X;do{var r=B.lane&-536870913,Z1=r!==B.lane;if(Z1?(J0&r)===r:(q&r)===r){r!==0&&r===F8&&(KF=!0),e!==null&&(e=e.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});_:{r=_;var f1=B,y1=J,j0=$;switch(f1.tag){case LB:if(f1=f1.payload,typeof f1==="function"){b7=!0;var K0=f1.call(j0,_1,y1);if(r.mode&u2){o1(!0);try{f1.call(j0,_1,y1)}finally{o1(!1)}}b7=!1,_1=K0;break _}_1=f1;break _;case FF:r.flags=r.flags&-65537|128;case WB:if(K0=f1.payload,typeof K0==="function"){if(b7=!0,f1=K0.call(j0,_1,y1),r.mode&u2){o1(!0);try{K0.call(j0,_1,y1)}finally{o1(!1)}}b7=!1}else f1=K0;if(f1===null||f1===void 0)break _;_1=U0({},_1,f1);break _;case BB:L6=!0}}r=B.callback,r!==null&&(_.flags|=64,Z1&&(_.flags|=8192),Z1=G.callbacks,Z1===null?G.callbacks=[r]:Z1.push(r))}else Z1={lane:r,tag:B.tag,payload:B.payload,callback:B.callback,next:null},e===null?(S=e=Z1,w=_1):e=e.next=Z1,z|=r;if(B=B.next,B===null)if(B=G.shared.pending,B===null)break;else Z1=B,B=Z1.next,Z1.next=null,G.lastBaseUpdate=Z1,G.shared.pending=null}while(1);e===null&&(w=_1),G.baseState=w,G.firstBaseUpdate=S,G.lastBaseUpdate=e,X===null&&(G.shared.lanes=0),M6|=z,_.lanes=z,_.memoizedState=_1}XF=null}function GY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function oO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)GY($[_],J)}function ZY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)GY($[_],J)}function FY(_,J){var $=g4;J1(EQ,$,_),J1(g7,J,_),g4=$|J.baseLanes}function lU(_){J1(EQ,g4,_),J1(g7,g7.current,_)}function iU(_){g4=EQ.current,Q1(g7,_),Q1(EQ,_)}function s3(_){var J=_.alternate;J1(o0,o0.current&p7,_),J1(O5,_,_),h5===null&&(J===null||g7.current!==null?h5=_:J.memoizedState!==null&&(h5=_))}function dU(_){J1(o0,o0.current,_),J1(O5,_,_),h5===null&&(h5=_)}function XY(_){_.tag===22?(J1(o0,o0.current,_),J1(O5,_,_),h5===null&&(h5=_)):t3(_)}function t3(_){J1(o0,o0.current,_),J1(O5,O5.current,_)}function W5(_){Q1(O5,_),h5===_&&(h5=null),Q1(o0,_)}function S$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||UZ($)||GZ($)))return J}else if(J.tag===19&&(J.memoizedProps.revealOrder==="forwards"||J.memoizedProps.revealOrder==="backwards"||J.memoizedProps.revealOrder==="unstable_legacy-backwards"||J.memoizedProps.revealOrder==="together")){if((J.flags&128)!==0)return J}else if(J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return null;J=J.return}J.sibling.return=J.return,J=J.sibling}return null}function q0(){var _=K1;m5===null?m5=[_]:m5.push(_)}function w1(){var _=K1;if(m5!==null&&(T3++,m5[T3]!==_)){var J=x(a1);if(!MB.has(J)&&(MB.add(J),m5!==null)){for(var $="",q=0;q<=T3;q++){var G=m5[q],X=q===T3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=X+`
102
+ Please update the following component: %s`,G),MB=!0}if((R0&w2)!==k2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=W$(_),DH(_,null,$),J;return z$(_,q,J,$),W$(_)}function a9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,x5(_,$)}}function S$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,X=null;if($=$.firstBaseUpdate,$!==null){do{var z={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};X===null?G=X=z:X=X.next=z,$=$.next}while($!==null);X===null?G=X=J:X=X.next=J}else G=X=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:X,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function s9(){if(KF){var _=l7;if(_!==null)throw _}}function t9(_,J,$,q){KF=!1;var G=_.updateQueue;P6=!1,XF=G.shared;var{firstBaseUpdate:X,lastBaseUpdate:z}=G,B=G.shared.pending;if(B!==null){G.shared.pending=null;var I=B,f=I.next;I.next=null,z===null?X=f:z.next=f,z=I;var e=_.alternate;e!==null&&(e=e.updateQueue,B=e.lastBaseUpdate,B!==z&&(B===null?e.firstBaseUpdate=f:B.next=f,e.lastBaseUpdate=I))}if(X!==null){var J1=G.baseState;z=0,e=f=I=null,B=X;do{var d=B.lane&-536870913,Z1=d!==B.lane;if(Z1?(G0&d)===d:(q&d)===d){d!==0&&d===B8&&(KF=!0),e!==null&&(e=e.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});_:{d=_;var N1=B,j1=J,E0=$;switch(N1.tag){case BB:if(N1=N1.payload,typeof N1==="function"){p7=!0;var M0=N1.call(E0,J1,j1);if(d.mode&d2){_0(!0);try{N1.call(E0,J1,j1)}finally{_0(!1)}}p7=!1,J1=M0;break _}J1=N1;break _;case FF:d.flags=d.flags&-65537|128;case LB:if(M0=N1.payload,typeof M0==="function"){if(p7=!0,N1=M0.call(E0,J1,j1),d.mode&d2){_0(!0);try{M0.call(E0,J1,j1)}finally{_0(!1)}}p7=!1}else N1=M0;if(N1===null||N1===void 0)break _;J1=Y0({},J1,N1);break _;case AB:P6=!0}}d=B.callback,d!==null&&(_.flags|=64,Z1&&(_.flags|=8192),Z1=G.callbacks,Z1===null?G.callbacks=[d]:Z1.push(d))}else Z1={lane:d,tag:B.tag,payload:B.payload,callback:B.callback,next:null},e===null?(f=e=Z1,I=J1):e=e.next=Z1,z|=d;if(B=B.next,B===null)if(B=G.shared.pending,B===null)break;else Z1=B,B=Z1.next,Z1.next=null,G.lastBaseUpdate=Z1,G.shared.pending=null}while(1);e===null&&(I=J1),G.baseState=I,G.firstBaseUpdate=f,G.lastBaseUpdate=e,X===null&&(G.shared.lanes=0),f6|=z,_.lanes=z,_.memoizedState=J1}XF=null}function ZY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function _I(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)ZY($[_],J)}function FY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)ZY($[_],J)}function XY(_,J){var $=t4;Q1(hQ,$,_),Q1(r7,J,_),t4=$|J.baseLanes}function lU(_){Q1(hQ,t4,_),Q1(r7,r7.current,_)}function iU(_){t4=hQ.current,U1(r7,_),U1(hQ,_)}function q6(_){var J=_.alternate;Q1(F2,F2.current&a7,_),Q1(k5,_,_),a5===null&&(J===null||r7.current!==null?a5=_:J.memoizedState!==null&&(a5=_))}function dU(_){Q1(F2,F2.current,_),Q1(k5,_,_),a5===null&&(a5=_)}function KY(_){_.tag===22?(Q1(F2,F2.current,_),Q1(k5,_,_),a5===null&&(a5=_)):U6(_)}function U6(_){Q1(F2,F2.current,_),Q1(k5,k5.current,_)}function C5(_){U1(k5,_),a5===_&&(a5=null),U1(F2,_)}function v$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||UZ($)||GZ($)))return J}else if(J.tag===19&&(J.memoizedProps.revealOrder==="forwards"||J.memoizedProps.revealOrder==="backwards"||J.memoizedProps.revealOrder==="unstable_legacy-backwards"||J.memoizedProps.revealOrder==="together")){if((J.flags&128)!==0)return J}else if(J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return null;J=J.return}J.sibling.return=J.return,J=J.sibling}return null}function H0(){var _=X1;t5===null?t5=[_]:t5.push(_)}function w1(){var _=X1;if(t5!==null&&(f3++,t5[f3]!==_)){var J=m(t1);if(!TB.has(J)&&(TB.add(J),t5!==null)){for(var $="",q=0;q<=f3;q++){var G=t5[q],X=q===f3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=X+`
103
103
  `,$+=G}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
104
104
 
105
105
  Previous render Next render
106
106
  ------------------------------------------------------
107
107
  %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
- `,J,$)}}}function G7(_){_===void 0||_===null||Y2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",K1,typeof _)}function v$(){var _=x(a1);RB.has(_)||(RB.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function r0(){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:
108
+ `,J,$)}}}function Y7(_){_===void 0||_===null||O2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",X1,typeof _)}function j$(){var _=m(t1);OB.has(_)||(OB.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function $2(){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:
109
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
111
  3. You might have more than one copy of React in the same app
112
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function rU(_,J){if(p_)return!1;if(J===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.",K1),!1;_.length!==J.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function rU(_,J){if(d_)return!1;if(J===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.",X1),!1;_.length!==J.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
113
 
114
114
  Previous: %s
115
- Incoming: %s`,K1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!d2(_[$],J[$]))return!1;return!0}function aU(_,J,$,q,G,X){if(A3=X,a1=J,m5=_!==null?_._debugHookTypes:null,T3=-1,p_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=x(a1),HF.has(X)||(HF.add(X),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.",X===null?"An unknown Component":"<"+X+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,Y1.H=_!==null&&_.memoizedState!==null?zF:m5!==null?OB:YF,z8=X=(J.mode&u2)!==i1;var z=qF($,q,G);if(z8=!1,l7&&(z=sU(J,$,q,G)),X){o1(!0);try{z=sU(J,$,q,G)}finally{o1(!1)}}return KY(_,J),z}function KY(_,J){J._debugHookTypes=m5,J.dependencies===null?M3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:M3}):J.dependencies._debugThenableState=M3,Y1.H=c_;var $=C0!==null&&C0.next!==null;if(A3=0,m5=K1=Q2=C0=a1=null,T3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),xQ=!1,g_=0,M3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||q2||(_=_.dependencies,_!==null&&A$(_)&&(q2=!0)),h_?(h_=!1,_=!0):_=!1,_&&(J=x(J)||"Unknown",TB.has(J)||HF.has(J)||(TB.add(J),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 sU(_,J,$,q){a1=_;var G=0;do{if(l7&&(M3=null),g_=0,l7=!1,G>=uP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,p_=!1,Q2=C0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}T3=-1,Y1.H=IB,X=qF(J,$,q)}while(l7);return X}function nO(){var _=Y1.H,J=_.useState()[0];return J=typeof J.then==="function"?r9(J):J,_=_.useState()[0],(C0!==null?C0.memoizedState:null)!==_&&(a1.flags|=1024),J}function tU(){var _=mQ!==0;return mQ=0,_}function oU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&_4)!==i1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function nU(_){if(xQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}xQ=!1}A3=0,m5=Q2=C0=a1=null,T3=-1,K1=null,l7=!1,g_=mQ=0,M3=null}function p2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Q2===null?a1.memoizedState=Q2=_:Q2=Q2.next=_,Q2}function R0(){if(C0===null){var _=a1.alternate;_=_!==null?_.memoizedState:null}else _=C0.next;var J=Q2===null?a1.memoizedState:Q2.next;if(J!==null)Q2=J,C0=_;else{if(_===null){if(a1.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}C0=_,_={memoizedState:C0.memoizedState,baseState:C0.baseState,baseQueue:C0.baseQueue,queue:C0.queue,next:null},Q2===null?a1.memoizedState=Q2=_:Q2=Q2.next=_}return Q2}function j$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function r9(_){var J=g_;return g_+=1,M3===null&&(M3=tH()),_=nH(M3,_,J),J=a1,(Q2===null?J.memoizedState:Q2.next)===null&&(J=J.alternate,Y1.H=J!==null&&J.memoizedState!==null?zF:YF),_}function o3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return r9(_);if(_.$$typeof===y4)return u0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function t6(_){var J=null,$=a1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=a1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(J={data:q.data.map(function(G){return G.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=j$(),a1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||p_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=zw;else $.length!==_&&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.",$.length,_);return J.index++,$}function t5(_,J){return typeof J==="function"?J(_):J}function eU(_,J,$){var q=p2();if($!==void 0){var G=$(J);if(z8){o1(!0);try{$(J)}finally{o1(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=QI.bind(null,a1,_),[q.memoizedState,_]}function Z7(_){var J=R0();return _G(J,C0,_)}function _G(_,J,$){var q=_.queue;if(q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");q.lastRenderedReducer=$;var G=_.baseQueue,X=q.pending;if(X!==null){if(G!==null){var z=G.next;G.next=X.next,X.next=z}J.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=G=X,q.pending=null}if(X=_.baseState,G===null)_.memoizedState=X;else{J=G.next;var B=z=null,w=null,S=J,e=!1;do{var _1=S.lane&-536870913;if(_1!==S.lane?(J0&_1)===_1:(A3&_1)===_1){var r=S.revertLane;if(r===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),_1===F8&&(e=!0);else if((A3&r)===r){S=S.next,r===F8&&(e=!0);continue}else _1={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},w===null?(B=w=_1,z=X):w=w.next=_1,a1.lanes|=r,M6|=r;_1=S.action,z8&&$(X,_1),X=S.hasEagerState?S.eagerState:$(X,_1)}else r={lane:_1,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},w===null?(B=w=r,z=X):w=w.next=r,a1.lanes|=_1,M6|=_1;S=S.next}while(S!==null&&S!==J);if(w===null?z=X:w.next=B,!d2(X,_.memoizedState)&&(q2=!0,e&&($=h7,$!==null)))throw $;_.memoizedState=X,_.baseState=z,_.baseQueue=w,q.lastRenderedState=X}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function a9(_){var J=R0(),$=J.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=_;var{dispatch:q,pending:G}=$,X=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do X=_(X,z.action),z=z.next;while(z!==G);d2(X,J.memoizedState)||(q2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function JG(_,J,$){var q=a1,G=p2();if(F0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();c7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),c7=!0)}else{if(X=J(),c7||($=J(),d2(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c7=!0)),f0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(J0&127)!==0||HY(q,J,X)}return G.memoizedState=X,$={value:X,getSnapshot:J},G.queue=$,D$(zY.bind(null,q,$,_),[_]),q.flags|=2048,X7(x5|s2,{destroy:void 0},YY.bind(null,q,$,X,J),null),X}function y$(_,J,$){var q=a1,G=R0(),X=F0;if(X){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!c7){var z=J();d2($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c7=!0)}if(z=!d2((C0||G).memoizedState,$))G.memoizedState=$,q2=!0;G=G.queue;var B=zY.bind(null,q,G,_);if($5(2048,s2,B,[_]),G.getSnapshot!==J||z||Q2!==null&&Q2.memoizedState.tag&x5){if(q.flags|=2048,X7(x5|s2,{destroy:void 0},YY.bind(null,q,G,$,J),null),f0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");X||(A3&127)!==0||HY(q,J,$)}return $}function HY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=a1.updateQueue,J===null?(J=j$(),a1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function YY(_,J,$,q){J.value=$,J.getSnapshot=q,WY(J)&&LY(_)}function zY(_,J,$){return $(function(){WY(J)&&(A4(2,"updateSyncExternalStore()",_),LY(_))})}function WY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!d2(_,$)}catch(q){return!0}}function LY(_){var J=k2(_,2);J!==null&&c0(J,_,2)}function $G(_){var J=p2();if(typeof _==="function"){var $=_;if(_=$(),z8){o1(!0);try{$()}finally{o1(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:_},J}function QG(_){_=$G(_);var J=_.queue,$=DY.bind(null,a1,J);return J.dispatch=$,[_.memoizedState,$]}function qG(_){var J=p2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=MG.bind(null,a1,!0,$),$.dispatch=J,[_,J]}function BY(_,J){var $=R0();return AY($,C0,_,J)}function AY(_,J,$,q){return _.baseState=$,_G(_,C0,typeof q==="function"?q:t5)}function MY(_,J){var $=R0();if(C0!==null)return AY($,C0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function eO(_,J,$,q,G){if(m$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var X={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){X.listeners.push(z)}};Y1.T!==null?$(!0):X.isTransition=!1,q(X),$=J.pending,$===null?(X.next=J.pending=X,TY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function TY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var X=Y1.T,z={};z._updatedFibers=new Set,Y1.T=z;try{var B=$(G,q),w=Y1.S;w!==null&&w(z,B),RY(_,J,B)}catch(S){UG(_,J,S)}finally{X!==null&&z.types!==null&&(X.types!==null&&X.types!==z.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."),X.types=z.types),Y1.T=X,X===null&&z._updatedFibers&&(_=z._updatedFibers.size,z._updatedFibers.clear(),10<_&&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{z=$(G,q),RY(_,J,z)}catch(S){UG(_,J,S)}}function RY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(Y1.asyncTransitions++,$.then(x$,x$),$.then(function(q){OY(_,J,q)},function(q){return UG(_,J,q)}),J.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.")):OY(_,J,$)}function OY(_,J,$){J.status="fulfilled",J.value=$,IY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,TY(_,$)))}function UG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,IY(J),J=J.next;while(J!==q)}_.action=null}function IY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function wY(_,J){return J}function F7(_,J){if(F0){var $=f0.formState;if($!==null){_:{var q=a1;if(F0){if(V0){J:{var G=V0;for(var X=b5;G.nodeType!==8;){if(!X){G=null;break J}if(G=B5(G.nextSibling),G===null){G=null;break J}}X=G.data,G=X===bF||X===ZA?G:null}if(G){V0=B5(G.nextSibling),q=G.data===bF;break _}}l3(q)}q=!1}q&&(J=$[0])}}return $=p2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wY,lastRenderedState:J},$.queue=q,$=DY.bind(null,a1,q),q.dispatch=$,q=$G(!1),X=MG.bind(null,a1,!1,q.queue),q=p2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=eO.bind(null,a1,G,X,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function V$(_){var J=R0();return PY(J,C0,_)}function PY(_,J,$){if(J=_G(_,J,wY)[0],_=Z7(t5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=r9(J)}catch(z){if(z===x7)throw uQ;throw z}else q=J;J=R0();var G=J.queue,X=G.dispatch;return $!==J.memoizedState&&(a1.flags|=2048,X7(x5|s2,{destroy:void 0},_I.bind(null,G,$),null)),[q,X,_]}function _I(_,J){_.action=J}function k$(_){var J=R0(),$=C0;if($!==null)return PY(J,$,_);R0(),J=J.memoizedState,$=R0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function X7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=a1.updateQueue,J===null&&(J=j$(),a1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function GG(_){var J=p2();return _={current:_},J.memoizedState=_}function o6(_,J,$,q){var G=p2();a1.flags|=_,G.memoizedState=X7(x5|J,{destroy:void 0},$,q===void 0?null:q)}function $5(_,J,$,q){var G=R0();q=q===void 0?null:q;var X=G.memoizedState.inst;C0!==null&&q!==null&&rU(q,C0.memoizedState.deps)?G.memoizedState=X7(J,X,$,q):(a1.flags|=_,G.memoizedState=X7(x5|J,X,$,q))}function D$(_,J){(a1.mode&_4)!==i1?o6(276826112,s2,_,J):o6(8390656,s2,_,J)}function JI(_){a1.flags|=4;var J=a1.updateQueue;if(J===null)J=j$(),a1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function ZG(_){var J=p2(),$={impl:_};return J.memoizedState=$,function(){if((Y0&W2)!==w2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function u$(_){var J=R0().memoizedState;return JI({ref:J,nextImpl:_}),function(){if((Y0&W2)!==w2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function FG(_,J){var $=4194308;return(a1.mode&_4)!==i1&&($|=134217728),o6($,I5,_,J)}function NY(_,J){if(typeof J==="function"){_=_();var $=J(_);return function(){typeof $==="function"?$():J(null)}}if(J!==null&&J!==void 0)return J.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(J).join(", ")+"}"),_=_(),J.current=_,function(){J.current=null}}function XG(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null;var q=4194308;(a1.mode&_4)!==i1&&(q|=134217728),o6(q,I5,NY.bind(null,J,_),$)}function b$(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null,$5(4,I5,NY.bind(null,J,_),$)}function KG(_,J){return p2().memoizedState=[_,J===void 0?null:J],_}function E$(_,J){var $=R0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function HG(_,J){var $=p2();J=J===void 0?null:J;var q=_();if(z8){o1(!0);try{_()}finally{o1(!1)}}return $.memoizedState=[q,J],q}function h$(_,J){var $=R0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];if(q=_(),z8){o1(!0);try{_()}finally{o1(!1)}}return $.memoizedState=[q,J],q}function YG(_,J){var $=p2();return zG($,_,J)}function CY(_,J){var $=R0();return SY($,C0.memoizedState,_,J)}function fY(_,J){var $=R0();return C0===null?zG($,_,J):SY($,C0.memoizedState,_,J)}function zG(_,J,$){if($===void 0||(A3&1073741824)!==0&&(J0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=vz(),a1.lanes|=_,M6|=_,$}function SY(_,J,$,q){if(d2($,J))return $;if(g7.current!==null)return _=zG(_,$,q),d2(_,J)||(q2=!0),_;if((A3&42)===0||(A3&1073741824)!==0&&(J0&261930)===0)return q2=!0,_.memoizedState=$;return _=vz(),a1.lanes|=_,M6|=_,J}function x$(){Y1.asyncTransitions--}function vY(_,J,$,q,G){var X=A0.p;A0.p=X!==0&&X<e5?X:e5;var z=Y1.T,B={};B._updatedFibers=new Set,Y1.T=B,MG(_,!1,J,$);try{var w=G(),S=Y1.S;if(S!==null&&S(B,w),w!==null&&typeof w==="object"&&typeof w.then==="function"){Y1.asyncTransitions++,w.then(x$,x$);var e=tO(w,q);s9(_,J,e,L5(_))}else s9(_,J,q,L5(_))}catch(_1){s9(_,J,{then:function(){},status:"rejected",reason:_1},L5(_))}finally{A0.p=X,z!==null&&B.types!==null&&(z.types!==null&&z.types!==B.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."),z.types=B.types),Y1.T=z,z===null&&B._updatedFibers&&(_=B._updatedFibers.size,B._updatedFibers.clear(),10<_&&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 WG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=jY(_).queue;aO(_),vY(_,G,J,P8,$===null?O:function(){return yY(_),$(q)})}function jY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:P8,baseState:P8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:P8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function yY(_){Y1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=jY(_);J.next===null&&(J=_.alternate.memoizedState),s9(_,J.next.queue,{},L5(_))}function LG(){var _=$G(!1);return _=vY.bind(null,a1,_.queue,!0,!1),p2().memoizedState=_,[!1,_]}function VY(){var _=Z7(t5)[0],J=R0().memoizedState;return[typeof _==="boolean"?_:r9(_),J]}function kY(){var _=a9(t5)[0],J=R0().memoizedState;return[typeof _==="boolean"?_:r9(_),J]}function n6(){return u0(qJ)}function BG(){var _=p2(),J=f0.identifierPrefix;if(F0){var $=Y3,q=H3;$=(q&~(1<<32-c2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=mQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=DP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function AG(){return p2().memoizedState=$I.bind(null,a1)}function $I(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=L5($),G=r3(q),X=a3($,G,q);X!==null&&(A4(q,"refresh()",_),c0(X,$,q),l9(X,$,q)),_=EU(),J!==null&&J!==void 0&&X!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function QI(_,J,$){var q=arguments;typeof q[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()."),q=L5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};m$(_)?uY(J,G):(G=NU(_,J,G,q),G!==null&&(A4(q,"dispatch()",_),c0(G,_,q),bY(G,J,q)))}function DY(_,J,$){var q=arguments;typeof q[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()."),q=L5(_),s9(_,J,$,q)&&A4(q,"setState()",_)}function s9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(m$(_))uY(J,G);else{var X=_.alternate;if(_.lanes===0&&(X===null||X.lanes===0)&&(X=J.lastRenderedReducer,X!==null)){var z=Y1.H;Y1.H=$4;try{var B=J.lastRenderedState,w=X(B,$);if(G.hasEagerState=!0,G.eagerState=w,d2(w,B))return Y$(_,J,G,0),f0===null&&H$(),!1}catch(S){}finally{Y1.H=z}}if($=NU(_,J,G,q),$!==null)return c0($,_,q),bY($,J,q),!0}return!1}function MG(_,J,$,q){if(Y1.T===null&&F8===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."),q={lane:2,revertLane:aG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},m$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=NU(_,$,q,2),J!==null&&(A4(2,"setOptimistic()",_),c0(J,_,2))}function m$(_){var J=_.alternate;return _===a1||J!==null&&J===a1}function uY(_,J){l7=xQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function bY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,f5(_,$)}}function TG(_){if(_!==null&&typeof _!=="function"){var J=String(_);kB.has(J)||(kB.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function RG(_,J,$,q){var G=_.memoizedState,X=$(q,G);if(_.mode&u2){o1(!0);try{X=$(q,G)}finally{o1(!1)}}X===void 0&&(J=b(J)||"Component",vB.has(J)||(vB.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=X===null||X===void 0?G:U0({},G,X),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function EY(_,J,$,q,G,X,z){var B=_.stateNode;if(typeof B.shouldComponentUpdate==="function"){if($=B.shouldComponentUpdate(q,X,z),_.mode&u2){o1(!0);try{$=B.shouldComponentUpdate(q,X,z)}finally{o1(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",b(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!E9($,q)||!E9(G,X):!0}function hY(_,J,$,q){var G=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==G&&(_=x(_)||"Component",PB.has(_)||(PB.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),WF.enqueueReplaceState(J,J.state,null))}function e6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=U0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function xY(_){iZ(_),console.warn(`%s
115
+ Incoming: %s`,X1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!$5(_[$],J[$]))return!1;return!0}function aU(_,J,$,q,G,X){if(N3=X,t1=J,t5=_!==null?_._debugHookTypes:null,f3=-1,d_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=m(t1),HF.has(X)||(HF.add(X),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.",X===null?"An unknown Component":"<"+X+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,Y1.H=_!==null&&_.memoizedState!==null?zF:t5!==null?IB:YF,O8=X=(J.mode&d2)!==a1;var z=qF($,q,G);if(O8=!1,t7&&(z=sU(J,$,q,G)),X){_0(!0);try{z=sU(J,$,q,G)}finally{_0(!1)}}return HY(_,J),z}function HY(_,J){J._debugHookTypes=t5,J.dependencies===null?C3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:C3}):J.dependencies._debugThenableState=C3,Y1.H=r_;var $=D0!==null&&D0.next!==null;if(N3=0,t5=X1=z2=D0=t1=null,f3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),mQ=!1,i_=0,C3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||W2||(_=_.dependencies,_!==null&&M$(_)&&(W2=!0)),p_?(p_=!1,_=!0):_=!1,_&&(J=m(J)||"Unknown",RB.has(J)||HF.has(J)||(RB.add(J),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 sU(_,J,$,q){t1=_;var G=0;do{if(t7&&(C3=null),i_=0,t7=!1,G>=hP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,d_=!1,z2=D0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}f3=-1,Y1.H=wB,X=qF(J,$,q)}while(t7);return X}function JI(){var _=Y1.H,J=_.useState()[0];return J=typeof J.then==="function"?o9(J):J,_=_.useState()[0],(D0!==null?D0.memoizedState:null)!==_&&(t1.flags|=1024),J}function tU(){var _=gQ!==0;return gQ=0,_}function oU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&K4)!==a1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function nU(_){if(mQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}mQ=!1}N3=0,t5=z2=D0=t1=null,f3=-1,X1=null,t7=!1,i_=gQ=0,C3=null}function n2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return z2===null?t1.memoizedState=z2=_:z2=z2.next=_,z2}function S0(){if(D0===null){var _=t1.alternate;_=_!==null?_.memoizedState:null}else _=D0.next;var J=z2===null?t1.memoizedState:z2.next;if(J!==null)z2=J,D0=_;else{if(_===null){if(t1.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}D0=_,_={memoizedState:D0.memoizedState,baseState:D0.baseState,baseQueue:D0.baseQueue,queue:D0.queue,next:null},z2===null?t1.memoizedState=z2=_:z2=z2.next=_}return z2}function V$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function o9(_){var J=i_;return i_+=1,C3===null&&(C3=oH()),_=eH(C3,_,J),J=t1,(z2===null?J.memoizedState:z2.next)===null&&(J=J.alternate,Y1.H=J!==null&&J.memoizedState!==null?zF:YF),_}function G6(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return o9(_);if(_.$$typeof===m4)return p0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function q8(_){var J=null,$=t1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=t1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(J={data:q.data.map(function(G){return G.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=V$(),t1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||d_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=Bw;else $.length!==_&&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.",$.length,_);return J.index++,$}function G4(_,J){return typeof J==="function"?J(_):J}function eU(_,J,$){var q=n2();if($!==void 0){var G=$(J);if(O8){_0(!0);try{$(J)}finally{_0(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=GI.bind(null,t1,_),[q.memoizedState,_]}function z7(_){var J=S0();return _G(J,D0,_)}function _G(_,J,$){var q=_.queue;if(q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");q.lastRenderedReducer=$;var G=_.baseQueue,X=q.pending;if(X!==null){if(G!==null){var z=G.next;G.next=X.next,X.next=z}J.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=G=X,q.pending=null}if(X=_.baseState,G===null)_.memoizedState=X;else{J=G.next;var B=z=null,I=null,f=J,e=!1;do{var J1=f.lane&-536870913;if(J1!==f.lane?(G0&J1)===J1:(N3&J1)===J1){var d=f.revertLane;if(d===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),J1===B8&&(e=!0);else if((N3&d)===d){f=f.next,d===B8&&(e=!0);continue}else J1={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},I===null?(B=I=J1,z=X):I=I.next=J1,t1.lanes|=d,f6|=d;J1=f.action,O8&&$(X,J1),X=f.hasEagerState?f.eagerState:$(X,J1)}else d={lane:J1,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},I===null?(B=I=d,z=X):I=I.next=d,t1.lanes|=J1,f6|=J1;f=f.next}while(f!==null&&f!==J);if(I===null?z=X:I.next=B,!$5(X,_.memoizedState)&&(W2=!0,e&&($=l7,$!==null)))throw $;_.memoizedState=X,_.baseState=z,_.baseQueue=I,q.lastRenderedState=X}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function n9(_){var J=S0(),$=J.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=_;var{dispatch:q,pending:G}=$,X=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do X=_(X,z.action),z=z.next;while(z!==G);$5(X,J.memoizedState)||(W2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function JG(_,J,$){var q=t1,G=n2();if(B0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();s7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),s7=!0)}else{if(X=J(),s7||($=J(),$5(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s7=!0)),u0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(G0&127)!==0||YY(q,J,X)}return G.memoizedState=X,$={value:X,getSnapshot:J},G.queue=$,u$(WY.bind(null,q,$,_),[_]),q.flags|=2048,L7(s5|U5,{destroy:void 0},zY.bind(null,q,$,X,J),null),X}function y$(_,J,$){var q=t1,G=S0(),X=B0;if(X){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!s7){var z=J();$5($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s7=!0)}if(z=!$5((D0||G).memoizedState,$))G.memoizedState=$,W2=!0;G=G.queue;var B=WY.bind(null,q,G,_);if(Y5(2048,U5,B,[_]),G.getSnapshot!==J||z||z2!==null&&z2.memoizedState.tag&s5){if(q.flags|=2048,L7(s5|U5,{destroy:void 0},zY.bind(null,q,G,$,J),null),u0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");X||(N3&127)!==0||YY(q,J,$)}return $}function YY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=t1.updateQueue,J===null?(J=V$(),t1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function zY(_,J,$,q){J.value=$,J.getSnapshot=q,LY(J)&&BY(_)}function WY(_,J,$){return $(function(){LY(J)&&(C4(2,"updateSyncExternalStore()",_),BY(_))})}function LY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!$5(_,$)}catch(q){return!0}}function BY(_){var J=l2(_,2);J!==null&&o0(J,_,2)}function $G(_){var J=n2();if(typeof _==="function"){var $=_;if(_=$(),O8){_0(!0);try{$()}finally{_0(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:G4,lastRenderedState:_},J}function QG(_){_=$G(_);var J=_.queue,$=uY.bind(null,t1,J);return J.dispatch=$,[_.memoizedState,$]}function qG(_){var J=n2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=MG.bind(null,t1,!0,$),$.dispatch=J,[_,J]}function AY(_,J){var $=S0();return MY($,D0,_,J)}function MY(_,J,$,q){return _.baseState=$,_G(_,D0,typeof q==="function"?q:G4)}function TY(_,J){var $=S0();if(D0!==null)return MY($,D0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function $I(_,J,$,q,G){if(g$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var X={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){X.listeners.push(z)}};Y1.T!==null?$(!0):X.isTransition=!1,q(X),$=J.pending,$===null?(X.next=J.pending=X,RY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function RY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var X=Y1.T,z={};z._updatedFibers=new Set,Y1.T=z;try{var B=$(G,q),I=Y1.S;I!==null&&I(z,B),OY(_,J,B)}catch(f){UG(_,J,f)}finally{X!==null&&z.types!==null&&(X.types!==null&&X.types!==z.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."),X.types=z.types),Y1.T=X,X===null&&z._updatedFibers&&(_=z._updatedFibers.size,z._updatedFibers.clear(),10<_&&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{z=$(G,q),OY(_,J,z)}catch(f){UG(_,J,f)}}function OY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(Y1.asyncTransitions++,$.then(m$,m$),$.then(function(q){IY(_,J,q)},function(q){return UG(_,J,q)}),J.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.")):IY(_,J,$)}function IY(_,J,$){J.status="fulfilled",J.value=$,wY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,RY(_,$)))}function UG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,wY(J),J=J.next;while(J!==q)}_.action=null}function wY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function PY(_,J){return J}function W7(_,J){if(B0){var $=u0.formState;if($!==null){_:{var q=t1;if(B0){if(x0){J:{var G=x0;for(var X=d5;G.nodeType!==8;){if(!X){G=null;break J}if(G=S5(G.nextSibling),G===null){G=null;break J}}X=G.data,G=X===bF||X===FA?G:null}if(G){x0=S5(G.nextSibling),q=G.data===bF;break _}}e3(q)}q=!1}q&&(J=$[0])}}return $=n2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PY,lastRenderedState:J},$.queue=q,$=uY.bind(null,t1,q),q.dispatch=$,q=$G(!1),X=MG.bind(null,t1,!1,q.queue),q=n2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=$I.bind(null,t1,G,X,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function k$(_){var J=S0();return NY(J,D0,_)}function NY(_,J,$){if(J=_G(_,J,PY)[0],_=z7(G4)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=o9(J)}catch(z){if(z===i7)throw bQ;throw z}else q=J;J=S0();var G=J.queue,X=G.dispatch;return $!==J.memoizedState&&(t1.flags|=2048,L7(s5|U5,{destroy:void 0},QI.bind(null,G,$),null)),[q,X,_]}function QI(_,J){_.action=J}function D$(_){var J=S0(),$=D0;if($!==null)return NY(J,$,_);S0(),J=J.memoizedState,$=S0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function L7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=t1.updateQueue,J===null&&(J=V$(),t1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function GG(_){var J=n2();return _={current:_},J.memoizedState=_}function U8(_,J,$,q){var G=n2();t1.flags|=_,G.memoizedState=L7(s5|J,{destroy:void 0},$,q===void 0?null:q)}function Y5(_,J,$,q){var G=S0();q=q===void 0?null:q;var X=G.memoizedState.inst;D0!==null&&q!==null&&rU(q,D0.memoizedState.deps)?G.memoizedState=L7(J,X,$,q):(t1.flags|=_,G.memoizedState=L7(s5|J,X,$,q))}function u$(_,J){(t1.mode&K4)!==a1?U8(276826112,U5,_,J):U8(8390656,U5,_,J)}function qI(_){t1.flags|=4;var J=t1.updateQueue;if(J===null)J=V$(),t1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function ZG(_){var J=n2(),$={impl:_};return J.memoizedState=$,function(){if((R0&w2)!==k2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function b$(_){var J=S0().memoizedState;return qI({ref:J,nextImpl:_}),function(){if((R0&w2)!==k2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function FG(_,J){var $=4194308;return(t1.mode&K4)!==a1&&($|=134217728),U8($,D5,_,J)}function CY(_,J){if(typeof J==="function"){_=_();var $=J(_);return function(){typeof $==="function"?$():J(null)}}if(J!==null&&J!==void 0)return J.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(J).join(", ")+"}"),_=_(),J.current=_,function(){J.current=null}}function XG(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null;var q=4194308;(t1.mode&K4)!==a1&&(q|=134217728),U8(q,D5,CY.bind(null,J,_),$)}function E$(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null,Y5(4,D5,CY.bind(null,J,_),$)}function KG(_,J){return n2().memoizedState=[_,J===void 0?null:J],_}function h$(_,J){var $=S0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function HG(_,J){var $=n2();J=J===void 0?null:J;var q=_();if(O8){_0(!0);try{_()}finally{_0(!1)}}return $.memoizedState=[q,J],q}function x$(_,J){var $=S0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];if(q=_(),O8){_0(!0);try{_()}finally{_0(!1)}}return $.memoizedState=[q,J],q}function YG(_,J){var $=n2();return zG($,_,J)}function fY(_,J){var $=S0();return vY($,D0.memoizedState,_,J)}function SY(_,J){var $=S0();return D0===null?zG($,_,J):vY($,D0.memoizedState,_,J)}function zG(_,J,$){if($===void 0||(N3&1073741824)!==0&&(G0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=jz(),t1.lanes|=_,f6|=_,$}function vY(_,J,$,q){if($5($,J))return $;if(r7.current!==null)return _=zG(_,$,q),$5(_,J)||(W2=!0),_;if((N3&42)===0||(N3&1073741824)!==0&&(G0&261930)===0)return W2=!0,_.memoizedState=$;return _=jz(),t1.lanes|=_,f6|=_,J}function m$(){Y1.asyncTransitions--}function jY(_,J,$,q,G){var X=C0.p;C0.p=X!==0&&X<X4?X:X4;var z=Y1.T,B={};B._updatedFibers=new Set,Y1.T=B,MG(_,!1,J,$);try{var I=G(),f=Y1.S;if(f!==null&&f(B,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){Y1.asyncTransitions++,I.then(m$,m$);var e=eO(I,q);e9(_,J,e,f5(_))}else e9(_,J,q,f5(_))}catch(J1){e9(_,J,{then:function(){},status:"rejected",reason:J1},f5(_))}finally{C0.p=X,z!==null&&B.types!==null&&(z.types!==null&&z.types!==B.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."),z.types=B.types),Y1.T=z,z===null&&B._updatedFibers&&(_=B._updatedFibers.size,B._updatedFibers.clear(),10<_&&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 WG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=VY(_).queue;oO(_),jY(_,G,J,y8,$===null?O:function(){return yY(_),$(q)})}function VY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:y8,baseState:y8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:G4,lastRenderedState:y8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:G4,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function yY(_){Y1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=VY(_);J.next===null&&(J=_.alternate.memoizedState),e9(_,J.next.queue,{},f5(_))}function LG(){var _=$G(!1);return _=jY.bind(null,t1,_.queue,!0,!1),n2().memoizedState=_,[!1,_]}function kY(){var _=z7(G4)[0],J=S0().memoizedState;return[typeof _==="boolean"?_:o9(_),J]}function DY(){var _=n9(G4)[0],J=S0().memoizedState;return[typeof _==="boolean"?_:o9(_),J]}function G8(){return p0(FJ)}function BG(){var _=n2(),J=u0.identifierPrefix;if(B0){var $=R3,q=T3;$=(q&~(1<<32-e2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=gQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=EP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function AG(){return n2().memoizedState=UI.bind(null,t1)}function UI(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=f5($),G=$6(q),X=Q6($,G,q);X!==null&&(C4(q,"refresh()",_),o0(X,$,q),a9(X,$,q)),_=EU(),J!==null&&J!==void 0&&X!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function GI(_,J,$){var q=arguments;typeof q[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()."),q=f5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};g$(_)?bY(J,G):(G=NU(_,J,G,q),G!==null&&(C4(q,"dispatch()",_),o0(G,_,q),EY(G,J,q)))}function uY(_,J,$){var q=arguments;typeof q[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()."),q=f5(_),e9(_,J,$,q)&&C4(q,"setState()",_)}function e9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(g$(_))bY(J,G);else{var X=_.alternate;if(_.lanes===0&&(X===null||X.lanes===0)&&(X=J.lastRenderedReducer,X!==null)){var z=Y1.H;Y1.H=Y4;try{var B=J.lastRenderedState,I=X(B,$);if(G.hasEagerState=!0,G.eagerState=I,$5(I,B))return z$(_,J,G,0),u0===null&&Y$(),!1}catch(f){}finally{Y1.H=z}}if($=NU(_,J,G,q),$!==null)return o0($,_,q),EY($,J,q),!0}return!1}function MG(_,J,$,q){if(Y1.T===null&&B8===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."),q={lane:2,revertLane:aG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},g$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=NU(_,$,q,2),J!==null&&(C4(2,"setOptimistic()",_),o0(J,_,2))}function g$(_){var J=_.alternate;return _===t1||J!==null&&J===t1}function bY(_,J){t7=mQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function EY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,x5(_,$)}}function TG(_){if(_!==null&&typeof _!=="function"){var J=String(_);DB.has(J)||(DB.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function RG(_,J,$,q){var G=_.memoizedState,X=$(q,G);if(_.mode&d2){_0(!0);try{X=$(q,G)}finally{_0(!1)}}X===void 0&&(J=u(J)||"Component",jB.has(J)||(jB.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=X===null||X===void 0?G:Y0({},G,X),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function hY(_,J,$,q,G,X,z){var B=_.stateNode;if(typeof B.shouldComponentUpdate==="function"){if($=B.shouldComponentUpdate(q,X,z),_.mode&d2){_0(!0);try{$=B.shouldComponentUpdate(q,X,z)}finally{_0(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",u(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!g9($,q)||!g9(G,X):!0}function xY(_,J,$,q){var G=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==G&&(_=m(_)||"Component",NB.has(_)||(NB.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),WF.enqueueReplaceState(J,J.state,null))}function Z8(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=Y0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function mY(_){iZ(_),console.warn(`%s
116
116
 
117
117
  %s
118
- `,i7?"An error occurred in the <"+i7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function mY(_){var J=i7?"The above error occurred in the <"+i7+"> component.":"The above error occurred in one of your React components.",$="React will try to recreate this component tree from scratch using the error boundary you provided, "+((LF||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
118
+ `,o7?"An error occurred in the <"+o7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function gY(_){var J=o7?"The above error occurred in the <"+o7+"> component.":"The above error occurred in one of your React components.",$="React will try to recreate this component tree from scratch using the error boundary you provided, "+((LF||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,LA+" "+_[0],BA,Hq+q+Hq,AA):_.splice(0,0,LA,BA,Hq+q+Hq,AA),_.unshift(console),q=JN.apply(console.error,_),q()}else console.error(`%o
124
+ `,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,BA+" "+_[0],AA,Yq+q+Yq,MA):_.splice(0,0,BA,AA,Yq+q+Yq,MA),_.unshift(console),q=qN.apply(console.error,_),q()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,_,J,$)}function gY(_){iZ(_)}function g$(_,J){try{i7=J.source?x(J.source):null,LF=null;var $=J.value;if(Y1.actQueue!==null)Y1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function pY(_,J,$){try{i7=$.source?x($.source):null,LF=x(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function OG(_,J,$){return $=r3($),$.tag=FF,$.payload={element:null},$.callback=function(){A1(J.source,g$,_,J)},$}function IG(_){return _=r3(_),_.tag=FF,_}function wG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var X=q.value;_.payload=function(){return G(X)},_.callback=function(){uH($),A1(q.source,pY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){uH($),A1(q.source,pY,J,$,q),typeof G!=="function"&&(R6===null?R6=new Set([this]):R6.add(this)),jP(this,q),typeof G==="function"||($.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.",x($)||"Unknown")})}function qI(_,J,$,q,G){if($.flags|=32768,D4&&Q_(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&U7(J,$,G,!0),F0&&(E4=!0),$=O5.current,$!==null){switch($.tag){case 31:case 13:return h5===null?t$():$.alternate===null&&g0===O3&&(g0=cQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===bQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),lG(_,q,G)),!1;case 22:return $.flags|=65536,q===bQ?$.flags|=16384:(J=$.updateQueue,J===null?(J={transitions:null,markerInstances:null,retryQueue:new Set([q])},$.updateQueue=J):($=J.retryQueue,$===null?J.retryQueue=new Set([q]):$.add(q)),lG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return lG(_,q,G),t$(),!1}if(F0)return E4=!0,J=O5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==oZ&&x9(H5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:q}),$))):(q!==oZ&&x9(H5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:q}),$)),_=_.current.alternate,_.flags|=65536,G&=-G,_.lanes|=G,q=H5(q,$),G=OG(_.stateNode,q,G),f$(_,G),g0!==B6&&(g0=W8)),!1;var X=H5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(s_===null?s_=[X]:s_.push(X),g0!==B6&&(g0=W8),J===null)return!0;q=H5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=OG($.stateNode,q,_),f$($,_),!1;case 1:if(J=$.type,X=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||X!==null&&typeof X.componentDidCatch==="function"&&(R6===null||!R6.has(X))))return $.flags|=65536,G&=-G,$.lanes|=G,G=IG(G),wG(G,_,$,q),f$($,G),!1}$=$.return}while($!==null);return!1}function S2(_,J,$,q){J.child=_===null?zB(J,null,$,q):Y8(J,_.child,$,q)}function cY(_,J,$,q,G){$=$.render;var X=J.ref;if("ref"in q){var z={};for(var B in q)B!=="ref"&&(z[B]=q[B])}else z=q;if(a6(J),q=aU(_,J,$,z,X,G),B=tU(),_!==null&&!q2)return oU(_,J,G),U3(_,J,G);return F0&&B&&yU(J),J.flags|=1,S2(_,J,q,G),J.child}function lY(_,J,$,q,G){if(_===null){var X=$.type;if(typeof X==="function"&&!fU(X)&&X.defaultProps===void 0&&$.compare===null)return $=l6(X),J.tag=15,J.type=$,NG(J,X),iY(_,J,$,q,G);return _=SU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(X=_.child,!yG(_,G)){var z=X.memoizedProps;if($=$.compare,$=$!==null?$:E9,$(z,q)&&_.ref===J.ref)return U3(_,J,G)}return J.flags|=1,_=J3(X,q),_.ref=J.ref,_.return=J,J.child=_}function iY(_,J,$,q,G){if(_!==null){var X=_.memoizedProps;if(E9(X,q)&&_.ref===J.ref&&J.type===_.type)if(q2=!1,J.pendingProps=q=X,yG(_,G))(_.flags&131072)!==0&&(q2=!0);else return J.lanes=_.lanes,U3(_,J,G)}return PG(_,J,$,q,G)}function dY(_,J,$,q){var G=q.children,X=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:P_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(X=X!==null?X.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~X}else q=0,J.child=null;return rY(_,J,X,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&O$(J,X!==null?X.cachePool:null),X!==null?FY(J,X):lU(J),XY(J);else return q=J.lanes=536870912,rY(_,J,X!==null?X.baseLanes|$:$,$,q)}else X!==null?(O$(J,X.cachePool),FY(J,X),t3(J),J.memoizedState=null):(_!==null&&O$(J,null),lU(J),t3(J));return S2(_,J,G,$),J.child}function t9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:P_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function rY(_,J,$,q,G){var X=mU();return X=X===null?null:{parent:J2._currentValue,pool:X},J.memoizedState={baseLanes:$,cachePool:X},_!==null&&O$(J,null),lU(J),XY(J),_!==null&&U7(_,J,q,!0),J.childLanes=G,null}function p$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,_,J,$)}function pY(_){iZ(_)}function p$(_,J){try{o7=J.source?m(J.source):null,LF=null;var $=J.value;if(Y1.actQueue!==null)Y1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function cY(_,J,$){try{o7=$.source?m($.source):null,LF=m(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function OG(_,J,$){return $=$6($),$.tag=FF,$.payload={element:null},$.callback=function(){z1(J.source,p$,_,J)},$}function IG(_){return _=$6(_),_.tag=FF,_}function wG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var X=q.value;_.payload=function(){return G(X)},_.callback=function(){bH($),z1(q.source,cY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){bH($),z1(q.source,cY,J,$,q),typeof G!=="function"&&(v6===null?v6=new Set([this]):v6.add(this)),kP(this,q),typeof G==="function"||($.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.",m($)||"Unknown")})}function ZI(_,J,$,q,G){if($.flags|=32768,c4&&Z_(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&H7(J,$,G,!0),B0&&(d4=!0),$=k5.current,$!==null){switch($.tag){case 31:case 13:return a5===null?o$():$.alternate===null&&a0===v3&&(a0=lQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===EQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),lG(_,q,G)),!1;case 22:return $.flags|=65536,q===EQ?$.flags|=16384:(J=$.updateQueue,J===null?(J={transitions:null,markerInstances:null,retryQueue:new Set([q])},$.updateQueue=J):($=J.retryQueue,$===null?J.retryQueue=new Set([q]):$.add(q)),lG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return lG(_,q,G),o$(),!1}if(B0)return d4=!0,J=k5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==oZ&&c9(w5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:q}),$))):(q!==oZ&&c9(w5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:q}),$)),_=_.current.alternate,_.flags|=65536,G&=-G,_.lanes|=G,q=w5(q,$),G=OG(_.stateNode,q,G),S$(_,G),a0!==N6&&(a0=I8)),!1;var X=w5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(e_===null?e_=[X]:e_.push(X),a0!==N6&&(a0=I8),J===null)return!0;q=w5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=OG($.stateNode,q,_),S$($,_),!1;case 1:if(J=$.type,X=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||X!==null&&typeof X.componentDidCatch==="function"&&(v6===null||!v6.has(X))))return $.flags|=65536,G&=-G,$.lanes|=G,G=IG(G),wG(G,_,$,q),S$($,G),!1}$=$.return}while($!==null);return!1}function x2(_,J,$,q){J.child=_===null?WB(J,null,$,q):R8(J,_.child,$,q)}function lY(_,J,$,q,G){$=$.render;var X=J.ref;if("ref"in q){var z={};for(var B in q)B!=="ref"&&(z[B]=q[B])}else z=q;if($8(J),q=aU(_,J,$,z,X,G),B=tU(),_!==null&&!W2)return oU(_,J,G),z3(_,J,G);return B0&&B&&VU(J),J.flags|=1,x2(_,J,q,G),J.child}function iY(_,J,$,q,G){if(_===null){var X=$.type;if(typeof X==="function"&&!fU(X)&&X.defaultProps===void 0&&$.compare===null)return $=n6(X),J.tag=15,J.type=$,NG(J,X),dY(_,J,$,q,G);return _=SU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(X=_.child,!VG(_,G)){var z=X.memoizedProps;if($=$.compare,$=$!==null?$:g9,$(z,q)&&_.ref===J.ref)return z3(_,J,G)}return J.flags|=1,_=X3(X,q),_.ref=J.ref,_.return=J,J.child=_}function dY(_,J,$,q,G){if(_!==null){var X=_.memoizedProps;if(g9(X,q)&&_.ref===J.ref&&J.type===_.type)if(W2=!1,J.pendingProps=q=X,VG(_,G))(_.flags&131072)!==0&&(W2=!0);else return J.lanes=_.lanes,z3(_,J,G)}return PG(_,J,$,q,G)}function rY(_,J,$,q){var G=q.children,X=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:S_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(X=X!==null?X.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~X}else q=0,J.child=null;return aY(_,J,X,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&I$(J,X!==null?X.cachePool:null),X!==null?XY(J,X):lU(J),KY(J);else return q=J.lanes=536870912,aY(_,J,X!==null?X.baseLanes|$:$,$,q)}else X!==null?(I$(J,X.cachePool),XY(J,X),U6(J),J.memoizedState=null):(_!==null&&I$(J,null),lU(J),U6(J));return x2(_,J,G,$),J.child}function __(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:S_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function aY(_,J,$,q,G){var X=mU();return X=X===null?null:{parent:H2._currentValue,pool:X},J.memoizedState={baseLanes:$,cachePool:X},_!==null&&I$(J,null),lU(J),KY(J),_!==null&&H7(_,J,q,!0),J.childLanes=G,null}function c$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=l$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function aY(_,J,$){return Y8(J,_.child,null,$),_=p$(J,J.pendingProps),_.flags|=2,W5(J),J.memoizedState=null,_}function UI(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(F0){if(q.mode==="hidden")return _=p$(J,q),J.lanes=536870912,t9(null,_);if(dU(J),(_=V0)?($=TW(_,b5),$=$!==null&&$.data===R8?$:null,$!==null&&(q={dehydrated:$,treeContext:mH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=hH($),q.return=J,J.child=q,y2=J,V0=null)):$=null,$===null)throw L$(J,_),l3(J);return J.lanes=536870912,null}return p$(J,q)}var X=_.memoizedState;if(X!==null){var z=X.dehydrated;if(dU(J),G)if(J.flags&256)J.flags&=-257,J=aY(_,J,$);else if(J.memoizedState!==null)J.child=_.child,J.flags|=128,J=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(pH(),($&536870912)!==0&&s$(J),q2||U7(_,J,$,!1),G=($&_.childLanes)!==0,q2||G){if(q=f0,q!==null&&(z=S5(q,$),z!==0&&z!==X.retryLane))throw X.retryLane=z,k2(_,z),c0(q,_,z),BF;t$(),J=aY(_,J,$)}else _=X.treeContext,V0=B5(z.nextSibling),y2=J,F0=!0,X6=null,E4=!1,R5=null,b5=!1,_!==null&&gH(J,_),J=p$(J,q),J.flags|=4096;return J}return X=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&s$(J),_=J3(X,q),_.ref=J.ref,J.child=_,_.return=J,_}function c$(_,J){var $=J.ref;if($===null)_!==null&&_.ref!==null&&(J.flags|=4194816);else{if(typeof $!=="function"&&typeof $!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(_===null||_.ref!==$)J.flags|=4194816}}function PG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var X=b($)||"Unknown";DB[X]||(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.",X,X),DB[X]=!0)}if(J.mode&u2&&J4.recordLegacyContextWarning(J,null),_===null&&(NG(J,J.type),$.contextTypes&&(X=b($)||"Unknown",bB[X]||(bB[X]=!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)",X)))),a6(J),$=aU(_,J,$,q,void 0,G),q=tU(),_!==null&&!q2)return oU(_,J,G),U3(_,J,G);return F0&&q&&yU(J),J.flags|=1,S2(_,J,$,G),J.child}function sY(_,J,$,q,G,X){if(a6(J),T3=-1,p_=_!==null&&_.type!==J.type,J.updateQueue=null,$=sU(J,q,$,G),KY(_,J),q=tU(),_!==null&&!q2)return oU(_,J,X),U3(_,J,X);return F0&&q&&yU(J),J.flags|=1,S2(_,J,$,X),J.child}function tY(_,J,$,q,G){switch(W(J)){case!1:var X=J.stateNode,z=new J.type(J.memoizedProps,X.context).state;X.updater.enqueueSetState(X,z,null);break;case!0:J.flags|=128,J.flags|=65536,X=Error("Simulated error coming from DevTools");var B=G&-G;if(J.lanes|=B,z=f0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=IG(B),wG(B,z,J,H5(X,J)),f$(J,B)}if(a6(J),J.stateNode===null){if(z=F6,X=$.contextType,"contextType"in $&&X!==null&&(X===void 0||X.$$typeof!==y4)&&!VB.has($)&&(VB.add($),B=X===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 X!=="object"?" However, it is set to a "+typeof X+".":X.$$typeof===AZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(X).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",b($)||"Component",B)),typeof X==="object"&&X!==null&&(z=u0(X)),X=new $(q,z),J.mode&u2){o1(!0);try{X=new $(q,z)}finally{o1(!1)}}if(z=J.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,X.updater=WF,J.stateNode=X,X._reactInternals=J,X._reactInternalInstance=wB,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=b($)||"Component",NB.has(z)||(NB.add(z),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.",z,X.state===null?"null":"undefined",z))),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"){var w=B=z=null;if(typeof X.componentWillMount==="function"&&X.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof X.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof X.componentWillReceiveProps==="function"&&X.componentWillReceiveProps.__suppressDeprecationWarning!==!0?B="componentWillReceiveProps":typeof X.UNSAFE_componentWillReceiveProps==="function"&&(B="UNSAFE_componentWillReceiveProps"),typeof X.componentWillUpdate==="function"&&X.componentWillUpdate.__suppressDeprecationWarning!==!0?w="componentWillUpdate":typeof X.UNSAFE_componentWillUpdate==="function"&&(w="UNSAFE_componentWillUpdate"),z!==null||B!==null||w!==null){X=b($)||"Component";var S=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";fB.has(X)||(fB.add(X),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=i$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function sY(_,J,$){return R8(J,_.child,null,$),_=c$(J,J.pendingProps),_.flags|=2,C5(J),J.memoizedState=null,_}function FI(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(B0){if(q.mode==="hidden")return _=c$(J,q),J.lanes=536870912,__(null,_);if(dU(J),(_=x0)?($=RW(_,d5),$=$!==null&&$.data===S8?$:null,$!==null&&(q={dehydrated:$,treeContext:gH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=xH($),q.return=J,J.child=q,p2=J,x0=null)):$=null,$===null)throw B$(J,_),e3(J);return J.lanes=536870912,null}return c$(J,q)}var X=_.memoizedState;if(X!==null){var z=X.dehydrated;if(dU(J),G)if(J.flags&256)J.flags&=-257,J=sY(_,J,$);else if(J.memoizedState!==null)J.child=_.child,J.flags|=128,J=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(cH(),($&536870912)!==0&&t$(J),W2||H7(_,J,$,!1),G=($&_.childLanes)!==0,W2||G){if(q=u0,q!==null&&(z=q4(q,$),z!==0&&z!==X.retryLane))throw X.retryLane=z,l2(_,z),o0(q,_,z),BF;o$(),J=sY(_,J,$)}else _=X.treeContext,x0=S5(z.nextSibling),p2=J,B0=!0,M6=null,d4=!1,y5=null,d5=!1,_!==null&&pH(J,_),J=c$(J,q),J.flags|=4096;return J}return X=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&t$(J),_=X3(X,q),_.ref=J.ref,J.child=_,_.return=J,_}function l$(_,J){var $=J.ref;if($===null)_!==null&&_.ref!==null&&(J.flags|=4194816);else{if(typeof $!=="function"&&typeof $!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(_===null||_.ref!==$)J.flags|=4194816}}function PG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var X=u($)||"Unknown";uB[X]||(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.",X,X),uB[X]=!0)}if(J.mode&d2&&H4.recordLegacyContextWarning(J,null),_===null&&(NG(J,J.type),$.contextTypes&&(X=u($)||"Unknown",EB[X]||(EB[X]=!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)",X)))),$8(J),$=aU(_,J,$,q,void 0,G),q=tU(),_!==null&&!W2)return oU(_,J,G),z3(_,J,G);return B0&&q&&VU(J),J.flags|=1,x2(_,J,$,G),J.child}function tY(_,J,$,q,G,X){if($8(J),f3=-1,d_=_!==null&&_.type!==J.type,J.updateQueue=null,$=sU(J,q,$,G),HY(_,J),q=tU(),_!==null&&!W2)return oU(_,J,X),z3(_,J,X);return B0&&q&&VU(J),J.flags|=1,x2(_,J,$,X),J.child}function oY(_,J,$,q,G){switch(W(J)){case!1:var X=J.stateNode,z=new J.type(J.memoizedProps,X.context).state;X.updater.enqueueSetState(X,z,null);break;case!0:J.flags|=128,J.flags|=65536,X=Error("Simulated error coming from DevTools");var B=G&-G;if(J.lanes|=B,z=u0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=IG(B),wG(B,z,J,w5(X,J)),S$(J,B)}if($8(J),J.stateNode===null){if(z=A6,X=$.contextType,"contextType"in $&&X!==null&&(X===void 0||X.$$typeof!==m4)&&!kB.has($)&&(kB.add($),B=X===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 X!=="object"?" However, it is set to a "+typeof X+".":X.$$typeof===AZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(X).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",u($)||"Component",B)),typeof X==="object"&&X!==null&&(z=p0(X)),X=new $(q,z),J.mode&d2){_0(!0);try{X=new $(q,z)}finally{_0(!1)}}if(z=J.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,X.updater=WF,J.stateNode=X,X._reactInternals=J,X._reactInternalInstance=PB,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=u($)||"Component",CB.has(z)||(CB.add(z),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.",z,X.state===null?"null":"undefined",z))),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"){var I=B=z=null;if(typeof X.componentWillMount==="function"&&X.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof X.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof X.componentWillReceiveProps==="function"&&X.componentWillReceiveProps.__suppressDeprecationWarning!==!0?B="componentWillReceiveProps":typeof X.UNSAFE_componentWillReceiveProps==="function"&&(B="UNSAFE_componentWillReceiveProps"),typeof X.componentWillUpdate==="function"&&X.componentWillUpdate.__suppressDeprecationWarning!==!0?I="componentWillUpdate":typeof X.UNSAFE_componentWillUpdate==="function"&&(I="UNSAFE_componentWillUpdate"),z!==null||B!==null||I!==null){X=u($)||"Component";var f=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";SB.has(X)||(SB.add(X),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
135
135
  The above lifecycles should be removed. Learn more about this warning here:
136
- https://react.dev/link/unsafe-component-lifecycles`,X,S,z!==null?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,X,f,z!==null?`
137
137
  `+z:"",B!==null?`
138
- `+B:"",w!==null?`
139
- `+w:""))}}X=J.stateNode,z=b($)||"Component",X.render||($.prototype&&typeof $.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!X.getInitialState||X.getInitialState.isReactClassApproved||X.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?",z),X.getDefaultProps&&!X.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.",z),X.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!yB.has($)&&(yB.add($),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),$.contextTypes&&!jB.has($)&&(jB.add($),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)",z)),typeof X.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.",z),$.prototype&&$.prototype.isPureReactComponent&&typeof X.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.",b($)||"A pure component"),typeof X.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof X.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().",z),typeof X.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof X.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),B=X.props!==q,X.props!==void 0&&B&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),X.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.",z,z),typeof X.getSnapshotBeforeUpdate!=="function"||typeof X.componentDidUpdate==="function"||CB.has($)||(CB.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",b($))),typeof X.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof X.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(B=X.state)&&(typeof B!=="object"||Y2(B))&&console.error("%s.state: must be set to an object or null",z),typeof X.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),X=J.stateNode,X.props=q,X.state=J.memoizedState,X.refs={},pU(J),z=$.contextType,X.context=typeof z==="object"&&z!==null?u0(z):F6,X.state===q&&(z=b($)||"Component",SB.has(z)||(SB.add(z),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.",z))),J.mode&u2&&J4.recordLegacyContextWarning(J,X),J4.recordUnsafeLifecycleWarnings(J,X),X.state=J.memoizedState,z=$.getDerivedStateFromProps,typeof z==="function"&&(RG(J,$,z,q),X.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(z=X.state,typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount(),z!==X.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",x(J)||"Component"),WF.enqueueReplaceState(X,X.state,null)),d9(J,q,X,G),i9(),X.state=J.memoizedState),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),X=!0}else if(_===null){X=J.stateNode;var e=J.memoizedProps;B=e6($,e),X.props=B;var _1=X.context;w=$.contextType,z=F6,typeof w==="object"&&w!==null&&(z=u0(w)),S=$.getDerivedStateFromProps,w=typeof S==="function"||typeof X.getSnapshotBeforeUpdate==="function",e=J.pendingProps!==e,w||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(e||_1!==z)&&hY(J,X,q,z),L6=!1;var r=J.memoizedState;X.state=r,d9(J,q,X,G),i9(),_1=J.memoizedState,e||r!==_1||L6?(typeof S==="function"&&(RG(J,$,S,q),_1=J.memoizedState),(B=L6||EY(J,$,B,q,r,_1,z))?(w||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount()),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728)):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=_1),X.props=q,X.state=_1,X.context=z,X=B):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),X=!1)}else{X=J.stateNode,cU(_,J),z=J.memoizedProps,w=e6($,z),X.props=w,S=J.pendingProps,r=X.context,_1=$.contextType,B=F6,typeof _1==="object"&&_1!==null&&(B=u0(_1)),e=$.getDerivedStateFromProps,(_1=typeof e==="function"||typeof X.getSnapshotBeforeUpdate==="function")||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(z!==S||r!==B)&&hY(J,X,q,B),L6=!1,r=J.memoizedState,X.state=r,d9(J,q,X,G),i9();var Z1=J.memoizedState;z!==S||r!==Z1||L6||_!==null&&_.dependencies!==null&&A$(_.dependencies)?(typeof e==="function"&&(RG(J,$,e,q),Z1=J.memoizedState),(w=L6||EY(J,$,w,q,r,Z1,B)||_!==null&&_.dependencies!==null&&A$(_.dependencies))?(_1||typeof X.UNSAFE_componentWillUpdate!=="function"&&typeof X.componentWillUpdate!=="function"||(typeof X.componentWillUpdate==="function"&&X.componentWillUpdate(q,Z1,B),typeof X.UNSAFE_componentWillUpdate==="function"&&X.UNSAFE_componentWillUpdate(q,Z1,B)),typeof X.componentDidUpdate==="function"&&(J.flags|=4),typeof X.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=Z1),X.props=q,X.state=Z1,X.context=B,X=w):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=1024),X=!1)}if(B=X,c$(_,J),z=(J.flags&128)!==0,B||z){if(B=J.stateNode,k1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,r2=-1;else if($=eL(B),J.mode&u2){o1(!0);try{eL(B)}finally{o1(!1)}}J.flags|=1,_!==null&&z?(J.child=Y8(J,_.child,null,G),J.child=Y8(J,null,$,G)):S2(_,J,$,G),J.memoizedState=B.state,_=J.child}else _=U3(_,J,G);return G=J.stateNode,X&&G.props!==q&&(d7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",x(J)||"a component"),d7=!0),_}function oY(_,J,$,q){return r6(),J.flags|=256,S2(_,J,$,q),J.child}function NG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
- %s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=b(J)||"Unknown",EB[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),EB[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=b(J)||"Unknown",uB[J]||(console.error("%s: Function components do not support contextType.",J),uB[J]=!0))}function CG(_){return{baseLanes:_,cachePool:sH()}}function fG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=Z5),_}function nY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var X=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(o0.current&m_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(F0){if(X?s3(J):t3(J),(_=V0)?($=TW(_,b5),$=$!==null&&$.data!==R8?$:null,$!==null&&(q={dehydrated:$,treeContext:mH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=hH($),q.return=J,J.child=q,y2=J,V0=null)):$=null,$===null)throw L$(J,_),l3(J);return GZ($)?J.lanes=32:J.lanes=536870912,null}var B=G.children;if(G=G.fallback,X){t3(J);var w=J.mode;return B=l$({mode:"hidden",children:B},w),G=i6(G,w,$,null),B.return=J,G.return=J,B.sibling=G,J.child=B,G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,t9(null,G)}return s3(J),SG(J,B)}var S=_.memoizedState;if(S!==null){var e=S.dehydrated;if(e!==null){if(z)J.flags&256?(s3(J),J.flags&=-257,J=vG(_,J,$)):J.memoizedState!==null?(t3(J),J.child=_.child,J.flags|=128,J=null):(t3(J),B=G.fallback,w=J.mode,G=l$({mode:"visible",children:G.children},w),B=i6(B,w,$,null),B.flags|=2,G.return=J,B.return=J,G.sibling=B,J.child=G,Y8(J,_.child,null,$),G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,J=t9(null,G));else if(s3(J),pH(),($&536870912)!==0&&s$(J),GZ(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){B=q.dgst;var _1=q.msg;w=q.stck;var r=q.cstck}X=_1,q=B,G=w,e=r,B=X,w=e,B=B?Error(B):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),B.stack=G||"",B.digest=q,q=w===void 0?null:w,G={value:B,source:null,stack:q},typeof q==="string"&&tZ.set(B,G),x9(G),J=vG(_,J,$)}else if(q2||U7(_,J,$,!1),q=($&_.childLanes)!==0,q2||q){if(q=f0,q!==null&&(G=S5(q,$),G!==0&&G!==S.retryLane))throw S.retryLane=G,k2(_,G),c0(q,_,G),BF;UZ(e)||t$(),J=vG(_,J,$)}else UZ(e)?(J.flags|=192,J.child=_.child,J=null):(_=S.treeContext,V0=B5(e.nextSibling),y2=J,F0=!0,X6=null,E4=!1,R5=null,b5=!1,_!==null&&gH(J,_),J=SG(J,G.children),J.flags|=4096);return J}}if(X)return t3(J),B=G.fallback,w=J.mode,r=_.child,e=r.sibling,G=J3(r,{mode:"hidden",children:G.children}),G.subtreeFlags=r.subtreeFlags&65011712,e!==null?B=J3(e,B):(B=i6(B,w,$,null),B.flags|=2),B.return=J,G.return=J,G.sibling=B,J.child=G,t9(null,G),G=J.child,B=_.child.memoizedState,B===null?B=CG($):(w=B.cachePool,w!==null?(r=J2._currentValue,w=w.parent!==r?{parent:r,pool:r}:w):w=sH(),B={baseLanes:B.baseLanes|$,cachePool:w}),G.memoizedState=B,G.childLanes=fG(_,q,$),J.memoizedState=AF,t9(_.child,G);return S!==null&&($&62914560)===$&&($&_.lanes)!==0&&s$(J),s3(J),$=_.child,_=$.sibling,$=J3($,{mode:"visible",children:G.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function SG(_,J){return J=l$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function l$(_,J){return _=R(22,_,null,J),_.lanes=0,_}function vG(_,J,$){return Y8(J,_.child,null,$),_=SG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function eY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),uU(_.return,J,$)}function jG(_,J,$,q,G,X){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:X}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=X)}function _z(_,J,$){var q=J.pendingProps,G=q.revealOrder,X=q.tail,z=q.children,B=o0.current;if((q=(B&m_)!==0)?(B=B&p7|m_,J.flags|=128):B&=p7,J1(o0,B,J),B=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!hB[B])if(hB[B]=!0,G==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(G==="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 G==="string")switch(G.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.',G,G.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.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(B=X==null?"null":X,!pQ[B])if(X==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")pQ[B]=!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".')}else X!=="visible"&&X!=="collapsed"&&X!=="hidden"?(pQ[B]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',X)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(pQ[B]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',X));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(Y2(z)){for(B=0;B<z.length;B++)if(!UY(z[B],B))break _}else if(B=E(z),typeof B==="function"){if(B=B.call(z))for(var w=B.next(),S=0;!w.done;w=B.next()){if(!UY(w.value,S))break _;S++}}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?',G);if(S2(_,J,z,$),F0?(c3(),z=N_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&eY(_,$,J);else if(_.tag===19)eY(_,$,J);else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===J)break _;for(;_.sibling===null;){if(_.return===null||_.return===J)break _;_=_.return}_.sibling.return=_.return,_=_.sibling}switch(G){case"forwards":$=J.child;for(G=null;$!==null;)_=$.alternate,_!==null&&S$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),jG(J,!1,G,$,X,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&S$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}jG(J,!0,$,null,X,z);break;case"together":jG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function U3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),r2=-1,M6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(U7(_,J,$,!1),($&J.childLanes)===0)return null}else return null;if(_!==null&&J.child!==_.child)throw Error("Resuming work not yet implemented.");if(J.child!==null){_=J.child,$=J3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=J3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function yG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&A$(_)?!0:!1}function GI(_,J,$){switch(J.tag){case 3:p(J,J.stateNode.containerInfo),i3(J,J2,_.memoizedState.cache),r6();break;case 27:case 5:i(J);break;case 4:p(J,J.stateNode.containerInfo);break;case 10:i3(J,J.type,J.memoizedProps.value);break;case 12:($&J.childLanes)!==0&&(J.flags|=4),J.flags|=2048;var q=J.stateNode;q.effectDuration=-0,q.passiveEffectDuration=-0;break;case 31:if(J.memoizedState!==null)return J.flags|=128,dU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return s3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return nY(_,J,$);return s3(J),_=U3(_,J,$),_!==null?_.sibling:null}s3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(U7(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return _z(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),J1(o0,o0.current,J),q)break;else return null;case 22:return J.lanes=0,dY(_,J,$,J.pendingProps);case 24:i3(J,J2,_.memoizedState.cache)}return U3(_,J,$)}function VG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=SU(J.type,J.key,J.pendingProps,J._debugOwner||null,J.mode,J.lanes),$._debugStack=J._debugStack,$._debugTask=J._debugTask;var q=J.return;if(q===null)throw Error("Cannot swap the root fiber.");if(_.alternate=null,J.alternate=null,$.index=J.index,$.sibling=J.sibling,$.return=J.return,$.ref=J.ref,$._debugInfo=J._debugInfo,J===q.child)q.child=$;else{var G=q.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==J;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=$}return J=q.deletions,J===null?(q.deletions=[_],q.flags|=16):J.push(_),$.flags|=2,$}if(_!==null)if(_.memoizedProps!==J.pendingProps||J.type!==_.type)q2=!0;else{if(!yG(_,$)&&(J.flags&128)===0)return q2=!1,GI(_,J,$);q2=(_.flags&131072)!==0?!0:!1}else{if(q2=!1,q=F0)c3(),q=(J.flags&1048576)!==0;q&&(q=J.index,c3(),xH(J,N_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=d3(J.elementType),J.type=_,typeof _==="function")fU(_)?(q=e6(_,q),J.tag=1,J.type=_=l6(_),J=tY(null,J,_,q,$)):(J.tag=0,NG(J,_),J.type=_=l6(_),J=PG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===Y_){J.tag=11,J.type=_=CU(_),J=cY(null,J,_,q,$);break _}else if(G===KQ){J.tag=14,J=lY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===A5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=b(_)||_,Error("Element type is invalid. Received a promise that resolves to: "+$+". Lazy element type must resolve to a class or function."+J)}return J;case 0:return PG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=e6(q,J.pendingProps),tY(_,J,q,G,$);case 3:_:{if(p(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var X=J.memoizedState;G=X.element,cU(_,J),d9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,i3(J,J2,q),q!==X.cache&&bU(J,[J2],$,!0),i9(),q=z.element,X.isDehydrated)if(X={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=X,J.memoizedState=X,J.flags&256){J=oY(_,J,q,$);break _}else if(q!==G){G=H5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),x9(G),J=oY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}V0=B5(_.firstChild),y2=J,F0=!0,X6=null,E4=!1,R5=null,b5=!0,$=zB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(r6(),q===G){J=U3(_,J,$);break _}S2(_,J,q,$)}J=J.child}return J;case 26:return c$(_,J),_===null?($=NW(J.type,null,J.pendingProps,null))?J.memoizedState=$:F0||($=J.type,_=J.pendingProps,q=m($6.current),q=_Q(q).createElement($),q[j2]=J,q[l2]=_,v2(q,$,_),j1(q),J.stateNode=q):J.memoizedState=NW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return i(J),_===null&&F0&&(q=m($6.current),G=a(),q=J.stateNode=wW(J.type,J.pendingProps,q,G,!1),E4||(G=HW(q,J.type,J.pendingProps,G),G!==null&&(d6(J,0).serverProps=G)),y2=J,b5=!0,G=V0,_6(J.type)?(mF=G,V0=B5(q.firstChild)):V0=G),S2(_,J,J.pendingProps.children,$),c$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&F0&&(X=a(),q=V9(J.type,X.ancestorInfo),G=V0,(z=!G)||(z=aI(G,J.type,J.pendingProps,b5),z!==null?(J.stateNode=z,E4||(X=HW(z,J.type,J.pendingProps,X),X!==null&&(d6(J,0).serverProps=X)),y2=J,V0=B5(z.firstChild),b5=!1,X=!0):X=!1,z=!X),z&&(q&&L$(J,G),l3(J))),i(J),G=J.type,X=J.pendingProps,z=_!==null?_.memoizedProps:null,q=X.children,QZ(G,X)?q=null:z!==null&&QZ(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=aU(_,J,nO,null,null,$),qJ._currentValue=G),c$(_,J),S2(_,J,q,$),J.child;case 6:return _===null&&F0&&($=J.pendingProps,_=a(),q=_.ancestorInfo.current,$=q!=null?p3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=V0,(q=!_)||(q=sI(_,J.pendingProps,b5),q!==null?(J.stateNode=q,y2=J,V0=null,q=!0):q=!1,q=!q),q&&($&&L$(J,_),l3(J))),null;case 13:return nY(_,J,$);case 4:return p(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=Y8(J,null,q,$):S2(_,J,q,$),J.child;case 11:return cY(_,J,J.type,J.pendingProps,$);case 7:return S2(_,J,J.pendingProps,$),J.child;case 8:return S2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,S2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,X=G.value,"value"in G||xB||(xB=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),i3(J,q,X),S2(_,J,G.children,$),J.child;case 9:return G=J.type._context,q=J.pendingProps.children,typeof q!=="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."),a6(J),G=u0(G),q=qF(q,G,void 0),J.flags|=1,S2(_,J,q,$),J.child;case 14:return lY(_,J,J.type,J.pendingProps,$);case 15:return iY(_,J,J.type,J.pendingProps,$);case 19:return _z(_,J,$);case 31:return UI(_,J,$);case 22:return dY(_,J,$,J.pendingProps);case 24:return a6(J),q=u0(J2),_===null?(G=mU(),G===null&&(G=f0,X=EU(),G.pooledCache=X,s6(X),X!==null&&(G.pooledCacheLanes|=$),G=X),J.memoizedState={parent:q,cache:G},pU(J),i3(J,J2,G)):((_.lanes&$)!==0&&(cU(_,J),d9(J,null,null,$),i9()),G=_.memoizedState,X=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),i3(J,J2,q)):(q=X.cache,i3(J,J2,q),q!==G.cache&&bU(J,[J2],$,!0))),S2(_,J,J.pendingProps.children,$),J.child;case 29:throw J.pendingProps}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function G3(_){_.flags|=4}function kG(_,J,$,q,G){if(J=(_.mode&CP)!==i1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(kz())_.flags|=8192;else throw H8=bQ,GF}else _.flags&=-16777217}function Jz(_,J){if(J.type!=="stylesheet"||(J.state.loading&g5)!==w8)_.flags&=-16777217;else if(_.flags|=16777216,!jW(J))if(kz())_.flags|=8192;else throw H8=bQ,GF}function i$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?M2():536870912,_.lanes|=J,A8|=J)}function o9(_,J){if(!F0)switch(_.tailMode){case"hidden":J=_.tail;for(var $=null;J!==null;)J.alternate!==null&&($=J),J=J.sibling;$===null?_.tail=null:$.sibling=null;break;case"collapsed":$=_.tail;for(var q=null;$!==null;)$.alternate!==null&&(q=$),$=$.sibling;q===null?J||_.tail===null?_.tail=null:_.tail.sibling=null:q.sibling=null}}function v0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&e1)!==i1){for(var{selfBaseDuration:G,child:X}=_;X!==null;)$|=X.lanes|X.childLanes,q|=X.subtreeFlags&65011712,q|=X.flags&65011712,G+=X.treeBaseDuration,X=X.sibling;_.treeBaseDuration=G}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags&65011712,q|=G.flags&65011712,G.return=_,G=G.sibling;else if((_.mode&e1)!==i1){G=_.actualDuration,X=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,X+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=X}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags,q|=G.flags,G.return=_,G=G.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function ZI(_,J,$){var q=J.pendingProps;switch(VU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return v0(J),null;case 1:return v0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),Q3(J2,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)q7(J)?(DU(),G3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,kU());return v0(J),null;case 26:var{type:G,memoizedState:X}=J;return _===null?(G3(J),X!==null?(v0(J),Jz(J,X)):(v0(J),kG(J,G,null,q,$))):X?X!==_.memoizedState?(G3(J),v0(J),Jz(J,X)):(v0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&G3(J),v0(J),kG(J,G,_,q,$)),null;case 27:if(o(J),$=m($6.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&G3(J);else{if(!q){if(J.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 v0(J),null}_=a(),q7(J)?cH(J,_):(_=wW(G,q,$,_,!0),J.stateNode=_,G3(J))}return v0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&G3(J);else{if(!q){if(J.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 v0(J),null}var z=a();if(q7(J))cH(J,z);else{switch(X=m($6.current),V9(G,z.ancestorInfo),z=z.context,X=_Q(X),z){case _9:X=X.createElementNS(P7,G);break;case Fq:X=X.createElementNS(AQ,G);break;default:switch(G){case"svg":X=X.createElementNS(P7,G);break;case"math":X=X.createElementNS(AQ,G);break;case"script":X=X.createElement("div"),X.innerHTML="<script></script>",X=X.removeChild(X.firstChild);break;case"select":X=typeof q.is==="string"?X.createElement("select",{is:q.is}):X.createElement("select"),q.multiple?X.multiple=!0:q.size&&(X.size=q.size);break;default:X=typeof q.is==="string"?X.createElement(G,{is:q.is}):X.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(X)!=="[object HTMLUnknownElement]"||n5.call(XA,G)||(XA[G]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",G)))}}X[j2]=J,X[l2]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)X.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===J)break _;for(;z.sibling===null;){if(z.return===null||z.return===J)break _;z=z.return}z.sibling.return=z.return,z=z.sibling}J.stateNode=X;_:switch(v2(X,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&G3(J)}}return v0(J),kG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&G3(J);else{if(typeof q!=="string"&&J.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(_=m($6.current),$=a(),q7(J)){if(_=J.stateNode,$=J.memoizedProps,G=!E4,q=null,X=y2,X!==null)switch(X.tag){case 3:G&&(G=OW(_,$,q),G!==null&&(d6(J,0).serverProps=G));break;case 27:case 5:q=X.memoizedProps,G&&(G=OW(_,$,q),G!==null&&(d6(J,0).serverProps=G))}_[j2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||GW(_.nodeValue,$)?!0:!1,_||l3(J,!0)}else G=$.ancestorInfo.current,G!=null&&p3(q,G.tag,$.ancestorInfo.implicitRootScope),_=_Q(_).createTextNode(q),_[j2]=J,J.stateNode=_}return v0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=q7(J),$!==null){if(_===null){if(!q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(_=J.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");_[j2]=J,v0(J),(J.mode&e1)!==i1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else DU(),r6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,v0(J),(J.mode&e1)!==i1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return W5(J),J;return W5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return v0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,X=q7(J),G!==null&&G.dehydrated!==null){if(_===null){if(!X)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(X=J.memoizedState,X=X!==null?X.dehydrated:null,!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");X[j2]=J,v0(J),(J.mode&e1)!==i1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else DU(),r6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,v0(J),(J.mode&e1)!==i1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return W5(J),J;return W5(J),null}}if(W5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&e1)!==i1&&p9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,G=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(G=q.alternate.memoizedState.cachePool.pool),X=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(X=q.memoizedState.cachePool.pool),X!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),i$(J,J.updateQueue),v0(J),(J.mode&e1)!==i1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&tG(J.stateNode.containerInfo),v0(J),null;case 10:return Q3(J.type,J),v0(J),null;case 19:if(Q1(o0,J),q=J.memoizedState,q===null)return v0(J),null;if(G=(J.flags&128)!==0,X=q.rendering,X===null)if(G)o9(q,!1);else{if(g0!==O3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=S$(_),X!==null){J.flags|=128,o9(q,!1),_=X.updateQueue,J.updateQueue=_,i$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)EH($,_),$=$.sibling;return J1(o0,o0.current&p7|m_,J),F0&&$3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&R2()>sQ&&(J.flags|=128,G=!0,o9(q,!1),J.lanes=4194304)}else{if(!G)if(_=S$(X),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,i$(J,_),o9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!X.alternate&&!F0)return v0(J),null}else 2*R2()-q.renderingStartTime>sQ&&$!==536870912&&(J.flags|=128,G=!0,o9(q,!1),J.lanes=4194304);q.isBackwards?(X.sibling=J.child,J.child=X):(_=q.last,_!==null?_.sibling=X:J.child=X,q.last=X)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=R2(),_.sibling=null,$=o0.current,$=G?$&p7|m_:$&p7,J1(o0,$,J),F0&&$3(J,q.treeForkCount),_;return v0(J),null;case 22:case 23:return W5(J),iU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(v0(J),J.subtreeFlags&6&&(J.flags|=8192)):v0(J),$=J.updateQueue,$!==null&&i$(J,$.retryQueue),$=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==$&&(J.flags|=2048),_!==null&&Q1(X8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),Q3(J2,J),v0(J),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function FI(_,J){switch(VU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&p9(J),J):null;case 3:return Q3(J2,J),c(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return o(J),null;case 31:if(J.memoizedState!==null){if(W5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");r6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&p9(J),J):null;case 13:if(W5(J),_=J.memoizedState,_!==null&&_.dehydrated!==null){if(J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");r6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&p9(J),J):null;case 19:return Q1(o0,J),null;case 4:return c(J),null;case 10:return Q3(J.type,J),null;case 22:case 23:return W5(J),iU(J),_!==null&&Q1(X8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&p9(J),J):null;case 24:return Q3(J2,J),null;case 25:return null;default:return null}}function $z(_,J){switch(VU(J),J.tag){case 3:Q3(J2,J),c(J);break;case 26:case 27:case 5:o(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&W5(J);break;case 13:W5(J);break;case 19:Q1(o0,J);break;case 10:Q3(J.type,J);break;case 22:case 23:W5(J),iU(J),_!==null&&Q1(X8,J);break;case 24:Q3(J2,J)}}function P4(_){return(_.mode&e1)!==i1}function Qz(_,J){P4(_)?(w4(),n9(J,_),I4()):n9(J,_)}function DG(_,J,$){P4(_)?(w4(),K7($,_,J),I4()):K7($,_,J)}function n9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&a2)!==hQ&&(o7=!0),q=A1(J,yP,$),(_&a2)!==hQ&&(o7=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&I5)!==0?"useLayoutEffect":($.tag&a2)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
138
+ `+B:"",I!==null?`
139
+ `+I:""))}}X=J.stateNode,z=u($)||"Component",X.render||($.prototype&&typeof $.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!X.getInitialState||X.getInitialState.isReactClassApproved||X.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?",z),X.getDefaultProps&&!X.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.",z),X.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!yB.has($)&&(yB.add($),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),$.contextTypes&&!VB.has($)&&(VB.add($),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)",z)),typeof X.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.",z),$.prototype&&$.prototype.isPureReactComponent&&typeof X.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.",u($)||"A pure component"),typeof X.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof X.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().",z),typeof X.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof X.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),B=X.props!==q,X.props!==void 0&&B&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),X.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.",z,z),typeof X.getSnapshotBeforeUpdate!=="function"||typeof X.componentDidUpdate==="function"||fB.has($)||(fB.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",u($))),typeof X.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof X.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(B=X.state)&&(typeof B!=="object"||O2(B))&&console.error("%s.state: must be set to an object or null",z),typeof X.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),X=J.stateNode,X.props=q,X.state=J.memoizedState,X.refs={},pU(J),z=$.contextType,X.context=typeof z==="object"&&z!==null?p0(z):A6,X.state===q&&(z=u($)||"Component",vB.has(z)||(vB.add(z),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.",z))),J.mode&d2&&H4.recordLegacyContextWarning(J,X),H4.recordUnsafeLifecycleWarnings(J,X),X.state=J.memoizedState,z=$.getDerivedStateFromProps,typeof z==="function"&&(RG(J,$,z,q),X.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(z=X.state,typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount(),z!==X.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m(J)||"Component"),WF.enqueueReplaceState(X,X.state,null)),t9(J,q,X,G),s9(),X.state=J.memoizedState),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&K4)!==a1&&(J.flags|=134217728),X=!0}else if(_===null){X=J.stateNode;var e=J.memoizedProps;B=Z8($,e),X.props=B;var J1=X.context;I=$.contextType,z=A6,typeof I==="object"&&I!==null&&(z=p0(I)),f=$.getDerivedStateFromProps,I=typeof f==="function"||typeof X.getSnapshotBeforeUpdate==="function",e=J.pendingProps!==e,I||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(e||J1!==z)&&xY(J,X,q,z),P6=!1;var d=J.memoizedState;X.state=d,t9(J,q,X,G),s9(),J1=J.memoizedState,e||d!==J1||P6?(typeof f==="function"&&(RG(J,$,f,q),J1=J.memoizedState),(B=P6||hY(J,$,B,q,d,J1,z))?(I||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount()),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&K4)!==a1&&(J.flags|=134217728)):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&K4)!==a1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=J1),X.props=q,X.state=J1,X.context=z,X=B):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&K4)!==a1&&(J.flags|=134217728),X=!1)}else{X=J.stateNode,cU(_,J),z=J.memoizedProps,I=Z8($,z),X.props=I,f=J.pendingProps,d=X.context,J1=$.contextType,B=A6,typeof J1==="object"&&J1!==null&&(B=p0(J1)),e=$.getDerivedStateFromProps,(J1=typeof e==="function"||typeof X.getSnapshotBeforeUpdate==="function")||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(z!==f||d!==B)&&xY(J,X,q,B),P6=!1,d=J.memoizedState,X.state=d,t9(J,q,X,G),s9();var Z1=J.memoizedState;z!==f||d!==Z1||P6||_!==null&&_.dependencies!==null&&M$(_.dependencies)?(typeof e==="function"&&(RG(J,$,e,q),Z1=J.memoizedState),(I=P6||hY(J,$,I,q,d,Z1,B)||_!==null&&_.dependencies!==null&&M$(_.dependencies))?(J1||typeof X.UNSAFE_componentWillUpdate!=="function"&&typeof X.componentWillUpdate!=="function"||(typeof X.componentWillUpdate==="function"&&X.componentWillUpdate(q,Z1,B),typeof X.UNSAFE_componentWillUpdate==="function"&&X.UNSAFE_componentWillUpdate(q,Z1,B)),typeof X.componentDidUpdate==="function"&&(J.flags|=4),typeof X.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=Z1),X.props=q,X.state=Z1,X.context=B,X=I):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),X=!1)}if(B=X,l$(_,J),z=(J.flags&128)!==0,B||z){if(B=J.stateNode,C1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,Q5=-1;else if($=_B(B),J.mode&d2){_0(!0);try{_B(B)}finally{_0(!1)}}J.flags|=1,_!==null&&z?(J.child=R8(J,_.child,null,G),J.child=R8(J,null,$,G)):x2(_,J,$,G),J.memoizedState=B.state,_=J.child}else _=z3(_,J,G);return G=J.stateNode,X&&G.props!==q&&(n7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",m(J)||"a component"),n7=!0),_}function nY(_,J,$,q){return J8(),J.flags|=256,x2(_,J,$,q),J.child}function NG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=u(J)||"Unknown",hB[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),hB[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=u(J)||"Unknown",bB[J]||(console.error("%s: Function components do not support contextType.",J),bB[J]=!0))}function CG(_){return{baseLanes:_,cachePool:tH()}}function fG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=A5),_}function eY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var X=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(F2.current&l_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(B0){if(X?q6(J):U6(J),(_=x0)?($=RW(_,d5),$=$!==null&&$.data!==S8?$:null,$!==null&&(q={dehydrated:$,treeContext:gH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=xH($),q.return=J,J.child=q,p2=J,x0=null)):$=null,$===null)throw B$(J,_),e3(J);return GZ($)?J.lanes=32:J.lanes=536870912,null}var B=G.children;if(G=G.fallback,X){U6(J);var I=J.mode;return B=i$({mode:"hidden",children:B},I),G=e6(G,I,$,null),B.return=J,G.return=J,B.sibling=G,J.child=B,G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,__(null,G)}return q6(J),SG(J,B)}var f=_.memoizedState;if(f!==null){var e=f.dehydrated;if(e!==null){if(z)J.flags&256?(q6(J),J.flags&=-257,J=vG(_,J,$)):J.memoizedState!==null?(U6(J),J.child=_.child,J.flags|=128,J=null):(U6(J),B=G.fallback,I=J.mode,G=i$({mode:"visible",children:G.children},I),B=e6(B,I,$,null),B.flags|=2,G.return=J,B.return=J,G.sibling=B,J.child=G,R8(J,_.child,null,$),G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,J=__(null,G));else if(q6(J),cH(),($&536870912)!==0&&t$(J),GZ(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){B=q.dgst;var J1=q.msg;I=q.stck;var d=q.cstck}X=J1,q=B,G=I,e=d,B=X,I=e,B=B?Error(B):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),B.stack=G||"",B.digest=q,q=I===void 0?null:I,G={value:B,source:null,stack:q},typeof q==="string"&&tZ.set(B,G),c9(G),J=vG(_,J,$)}else if(W2||H7(_,J,$,!1),q=($&_.childLanes)!==0,W2||q){if(q=u0,q!==null&&(G=q4(q,$),G!==0&&G!==f.retryLane))throw f.retryLane=G,l2(_,G),o0(q,_,G),BF;UZ(e)||o$(),J=vG(_,J,$)}else UZ(e)?(J.flags|=192,J.child=_.child,J=null):(_=f.treeContext,x0=S5(e.nextSibling),p2=J,B0=!0,M6=null,d4=!1,y5=null,d5=!1,_!==null&&pH(J,_),J=SG(J,G.children),J.flags|=4096);return J}}if(X)return U6(J),B=G.fallback,I=J.mode,d=_.child,e=d.sibling,G=X3(d,{mode:"hidden",children:G.children}),G.subtreeFlags=d.subtreeFlags&65011712,e!==null?B=X3(e,B):(B=e6(B,I,$,null),B.flags|=2),B.return=J,G.return=J,G.sibling=B,J.child=G,__(null,G),G=J.child,B=_.child.memoizedState,B===null?B=CG($):(I=B.cachePool,I!==null?(d=H2._currentValue,I=I.parent!==d?{parent:d,pool:d}:I):I=tH(),B={baseLanes:B.baseLanes|$,cachePool:I}),G.memoizedState=B,G.childLanes=fG(_,q,$),J.memoizedState=AF,__(_.child,G);return f!==null&&($&62914560)===$&&($&_.lanes)!==0&&t$(J),q6(J),$=_.child,_=$.sibling,$=X3($,{mode:"visible",children:G.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function SG(_,J){return J=i$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function i$(_,J){return _=R(22,_,null,J),_.lanes=0,_}function vG(_,J,$){return R8(J,_.child,null,$),_=SG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function _z(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),uU(_.return,J,$)}function jG(_,J,$,q,G,X){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:X}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=X)}function Jz(_,J,$){var q=J.pendingProps,G=q.revealOrder,X=q.tail,z=q.children,B=F2.current;if((q=(B&l_)!==0)?(B=B&a7|l_,J.flags|=128):B&=a7,Q1(F2,B,J),B=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!xB[B])if(xB[B]=!0,G==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(G==="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 G==="string")switch(G.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.',G,G.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.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(B=X==null?"null":X,!cQ[B])if(X==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")cQ[B]=!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".')}else X!=="visible"&&X!=="collapsed"&&X!=="hidden"?(cQ[B]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',X)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(cQ[B]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',X));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(O2(z)){for(B=0;B<z.length;B++)if(!GY(z[B],B))break _}else if(B=E(z),typeof B==="function"){if(B=B.call(z))for(var I=B.next(),f=0;!I.done;I=B.next()){if(!GY(I.value,f))break _;f++}}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?',G);if(x2(_,J,z,$),B0?(n3(),z=v_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&_z(_,$,J);else if(_.tag===19)_z(_,$,J);else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===J)break _;for(;_.sibling===null;){if(_.return===null||_.return===J)break _;_=_.return}_.sibling.return=_.return,_=_.sibling}switch(G){case"forwards":$=J.child;for(G=null;$!==null;)_=$.alternate,_!==null&&v$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),jG(J,!1,G,$,X,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&v$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}jG(J,!0,$,null,X,z);break;case"together":jG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function z3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),Q5=-1,f6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(H7(_,J,$,!1),($&J.childLanes)===0)return null}else return null;if(_!==null&&J.child!==_.child)throw Error("Resuming work not yet implemented.");if(J.child!==null){_=J.child,$=X3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=X3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function VG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&M$(_)?!0:!1}function XI(_,J,$){switch(J.tag){case 3:g(J,J.stateNode.containerInfo),_6(J,H2,_.memoizedState.cache),J8();break;case 27:case 5:l(J);break;case 4:g(J,J.stateNode.containerInfo);break;case 10:_6(J,J.type,J.memoizedProps.value);break;case 12:($&J.childLanes)!==0&&(J.flags|=4),J.flags|=2048;var q=J.stateNode;q.effectDuration=-0,q.passiveEffectDuration=-0;break;case 31:if(J.memoizedState!==null)return J.flags|=128,dU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return q6(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return eY(_,J,$);return q6(J),_=z3(_,J,$),_!==null?_.sibling:null}q6(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(H7(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return Jz(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),Q1(F2,F2.current,J),q)break;else return null;case 22:return J.lanes=0,rY(_,J,$,J.pendingProps);case 24:_6(J,H2,_.memoizedState.cache)}return z3(_,J,$)}function yG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=SU(J.type,J.key,J.pendingProps,J._debugOwner||null,J.mode,J.lanes),$._debugStack=J._debugStack,$._debugTask=J._debugTask;var q=J.return;if(q===null)throw Error("Cannot swap the root fiber.");if(_.alternate=null,J.alternate=null,$.index=J.index,$.sibling=J.sibling,$.return=J.return,$.ref=J.ref,$._debugInfo=J._debugInfo,J===q.child)q.child=$;else{var G=q.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==J;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=$}return J=q.deletions,J===null?(q.deletions=[_],q.flags|=16):J.push(_),$.flags|=2,$}if(_!==null)if(_.memoizedProps!==J.pendingProps||J.type!==_.type)W2=!0;else{if(!VG(_,$)&&(J.flags&128)===0)return W2=!1,XI(_,J,$);W2=(_.flags&131072)!==0?!0:!1}else{if(W2=!1,q=B0)n3(),q=(J.flags&1048576)!==0;q&&(q=J.index,n3(),mH(J,v_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=J6(J.elementType),J.type=_,typeof _==="function")fU(_)?(q=Z8(_,q),J.tag=1,J.type=_=n6(_),J=oY(null,J,_,q,$)):(J.tag=0,NG(J,_),J.type=_=n6(_),J=PG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===B_){J.tag=11,J.type=_=CU(_),J=lY(null,J,_,q,$);break _}else if(G===HQ){J.tag=14,J=iY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===v5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=u(_)||_,Error("Element type is invalid. Received a promise that resolves to: "+$+". Lazy element type must resolve to a class or function."+J)}return J;case 0:return PG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=Z8(q,J.pendingProps),oY(_,J,q,G,$);case 3:_:{if(g(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var X=J.memoizedState;G=X.element,cU(_,J),t9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,_6(J,H2,q),q!==X.cache&&bU(J,[H2],$,!0),s9(),q=z.element,X.isDehydrated)if(X={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=X,J.memoizedState=X,J.flags&256){J=nY(_,J,q,$);break _}else if(q!==G){G=w5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),c9(G),J=nY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}x0=S5(_.firstChild),p2=J,B0=!0,M6=null,d4=!1,y5=null,d5=!0,$=WB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(J8(),q===G){J=z3(_,J,$);break _}x2(_,J,q,$)}J=J.child}return J;case 26:return l$(_,J),_===null?($=CW(J.type,null,J.pendingProps,null))?J.memoizedState=$:B0||($=J.type,_=J.pendingProps,q=h(H6.current),q=JQ(q).createElement($),q[g2]=J,q[_5]=_,m2(q,$,_),x1(q),J.stateNode=q):J.memoizedState=CW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return l(J),_===null&&B0&&(q=h(H6.current),G=c(),q=J.stateNode=PW(J.type,J.pendingProps,q,G,!1),d4||(G=YW(q,J.type,J.pendingProps,G),G!==null&&(_8(J,0).serverProps=G)),p2=J,d5=!0,G=x0,X6(J.type)?(mF=G,x0=S5(q.firstChild)):x0=G),x2(_,J,J.pendingProps.children,$),l$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&B0&&(X=c(),q=b9(J.type,X.ancestorInfo),G=x0,(z=!G)||(z=oI(G,J.type,J.pendingProps,d5),z!==null?(J.stateNode=z,d4||(X=YW(z,J.type,J.pendingProps,X),X!==null&&(_8(J,0).serverProps=X)),p2=J,x0=S5(z.firstChild),d5=!1,X=!0):X=!1,z=!X),z&&(q&&B$(J,G),e3(J))),l(J),G=J.type,X=J.pendingProps,z=_!==null?_.memoizedProps:null,q=X.children,QZ(G,X)?q=null:z!==null&&QZ(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=aU(_,J,JI,null,null,$),FJ._currentValue=G),l$(_,J),x2(_,J,q,$),J.child;case 6:return _===null&&B0&&($=J.pendingProps,_=c(),q=_.ancestorInfo.current,$=q!=null?o3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=x0,(q=!_)||(q=nI(_,J.pendingProps,d5),q!==null?(J.stateNode=q,p2=J,x0=null,q=!0):q=!1,q=!q),q&&($&&B$(J,_),e3(J))),null;case 13:return eY(_,J,$);case 4:return g(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=R8(J,null,q,$):x2(_,J,q,$),J.child;case 11:return lY(_,J,J.type,J.pendingProps,$);case 7:return x2(_,J,J.pendingProps,$),J.child;case 8:return x2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,x2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,X=G.value,"value"in G||mB||(mB=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),_6(J,q,X),x2(_,J,G.children,$),J.child;case 9:return G=J.type._context,q=J.pendingProps.children,typeof q!=="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."),$8(J),G=p0(G),q=qF(q,G,void 0),J.flags|=1,x2(_,J,q,$),J.child;case 14:return iY(_,J,J.type,J.pendingProps,$);case 15:return dY(_,J,J.type,J.pendingProps,$);case 19:return Jz(_,J,$);case 31:return FI(_,J,$);case 22:return rY(_,J,$,J.pendingProps);case 24:return $8(J),q=p0(H2),_===null?(G=mU(),G===null&&(G=u0,X=EU(),G.pooledCache=X,Q8(X),X!==null&&(G.pooledCacheLanes|=$),G=X),J.memoizedState={parent:q,cache:G},pU(J),_6(J,H2,G)):((_.lanes&$)!==0&&(cU(_,J),t9(J,null,null,$),s9()),G=_.memoizedState,X=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),_6(J,H2,q)):(q=X.cache,_6(J,H2,q),q!==G.cache&&bU(J,[H2],$,!0))),x2(_,J,J.pendingProps.children,$),J.child;case 29:throw J.pendingProps}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function W3(_){_.flags|=4}function kG(_,J,$,q,G){if(J=(_.mode&vP)!==a1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(Dz())_.flags|=8192;else throw T8=EQ,GF}else _.flags&=-16777217}function $z(_,J){if(J.type!=="stylesheet"||(J.state.loading&o5)!==V8)_.flags&=-16777217;else if(_.flags|=16777216,!VW(J))if(Dz())_.flags|=8192;else throw T8=EQ,GF}function d$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?T2():536870912,_.lanes|=J,N8|=J)}function J_(_,J){if(!B0)switch(_.tailMode){case"hidden":J=_.tail;for(var $=null;J!==null;)J.alternate!==null&&($=J),J=J.sibling;$===null?_.tail=null:$.sibling=null;break;case"collapsed":$=_.tail;for(var q=null;$!==null;)$.alternate!==null&&(q=$),$=$.sibling;q===null?J||_.tail===null?_.tail=null:_.tail.sibling=null:q.sibling=null}}function b0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&q0)!==a1){for(var{selfBaseDuration:G,child:X}=_;X!==null;)$|=X.lanes|X.childLanes,q|=X.subtreeFlags&65011712,q|=X.flags&65011712,G+=X.treeBaseDuration,X=X.sibling;_.treeBaseDuration=G}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags&65011712,q|=G.flags&65011712,G.return=_,G=G.sibling;else if((_.mode&q0)!==a1){G=_.actualDuration,X=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,X+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=X}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags,q|=G.flags,G.return=_,G=G.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function KI(_,J,$){var q=J.pendingProps;switch(yU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return b0(J),null;case 1:return b0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),H3(H2,J),p(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)K7(J)?(DU(),W3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,kU());return b0(J),null;case 26:var{type:G,memoizedState:X}=J;return _===null?(W3(J),X!==null?(b0(J),$z(J,X)):(b0(J),kG(J,G,null,q,$))):X?X!==_.memoizedState?(W3(J),b0(J),$z(J,X)):(b0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&W3(J),b0(J),kG(J,G,_,q,$)),null;case 27:if(o(J),$=h(H6.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&W3(J);else{if(!q){if(J.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 b0(J),null}_=c(),K7(J)?lH(J,_):(_=PW(G,q,$,_,!0),J.stateNode=_,W3(J))}return b0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&W3(J);else{if(!q){if(J.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 b0(J),null}var z=c();if(K7(J))lH(J,z);else{switch(X=h(H6.current),b9(G,z.ancestorInfo),z=z.context,X=JQ(X),z){case G9:X=X.createElementNS(j7,G);break;case Xq:X=X.createElementNS(MQ,G);break;default:switch(G){case"svg":X=X.createElementNS(j7,G);break;case"math":X=X.createElementNS(MQ,G);break;case"script":X=X.createElement("div"),X.innerHTML="<script></script>",X=X.removeChild(X.firstChild);break;case"select":X=typeof q.is==="string"?X.createElement("select",{is:q.is}):X.createElement("select"),q.multiple?X.multiple=!0:q.size&&(X.size=q.size);break;default:X=typeof q.is==="string"?X.createElement(G,{is:q.is}):X.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(X)!=="[object HTMLUnknownElement]"||F4.call(KA,G)||(KA[G]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",G)))}}X[g2]=J,X[_5]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)X.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===J)break _;for(;z.sibling===null;){if(z.return===null||z.return===J)break _;z=z.return}z.sibling.return=z.return,z=z.sibling}J.stateNode=X;_:switch(m2(X,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&W3(J)}}return b0(J),kG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&W3(J);else{if(typeof q!=="string"&&J.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(_=h(H6.current),$=c(),K7(J)){if(_=J.stateNode,$=J.memoizedProps,G=!d4,q=null,X=p2,X!==null)switch(X.tag){case 3:G&&(G=IW(_,$,q),G!==null&&(_8(J,0).serverProps=G));break;case 27:case 5:q=X.memoizedProps,G&&(G=IW(_,$,q),G!==null&&(_8(J,0).serverProps=G))}_[g2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||ZW(_.nodeValue,$)?!0:!1,_||e3(J,!0)}else G=$.ancestorInfo.current,G!=null&&o3(q,G.tag,$.ancestorInfo.implicitRootScope),_=JQ(_).createTextNode(q),_[g2]=J,J.stateNode=_}return b0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=K7(J),$!==null){if(_===null){if(!q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(_=J.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");_[g2]=J,b0(J),(J.mode&q0)!==a1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else DU(),J8(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,b0(J),(J.mode&q0)!==a1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return C5(J),J;return C5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return b0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,X=K7(J),G!==null&&G.dehydrated!==null){if(_===null){if(!X)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(X=J.memoizedState,X=X!==null?X.dehydrated:null,!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");X[g2]=J,b0(J),(J.mode&q0)!==a1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else DU(),J8(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,b0(J),(J.mode&q0)!==a1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return C5(J),J;return C5(J),null}}if(C5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&q0)!==a1&&d9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,G=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(G=q.alternate.memoizedState.cachePool.pool),X=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(X=q.memoizedState.cachePool.pool),X!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),d$(J,J.updateQueue),b0(J),(J.mode&q0)!==a1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return p(J),_===null&&tG(J.stateNode.containerInfo),b0(J),null;case 10:return H3(J.type,J),b0(J),null;case 19:if(U1(F2,J),q=J.memoizedState,q===null)return b0(J),null;if(G=(J.flags&128)!==0,X=q.rendering,X===null)if(G)J_(q,!1);else{if(a0!==v3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=v$(_),X!==null){J.flags|=128,J_(q,!1),_=X.updateQueue,J.updateQueue=_,d$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)hH($,_),$=$.sibling;return Q1(F2,F2.current&a7|l_,J),B0&&K3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&j2()>tQ&&(J.flags|=128,G=!0,J_(q,!1),J.lanes=4194304)}else{if(!G)if(_=v$(X),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,d$(J,_),J_(q,!0),q.tail===null&&q.tailMode==="hidden"&&!X.alternate&&!B0)return b0(J),null}else 2*j2()-q.renderingStartTime>tQ&&$!==536870912&&(J.flags|=128,G=!0,J_(q,!1),J.lanes=4194304);q.isBackwards?(X.sibling=J.child,J.child=X):(_=q.last,_!==null?_.sibling=X:J.child=X,q.last=X)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=j2(),_.sibling=null,$=F2.current,$=G?$&a7|l_:$&a7,Q1(F2,$,J),B0&&K3(J,q.treeForkCount),_;return b0(J),null;case 22:case 23:return C5(J),iU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(b0(J),J.subtreeFlags&6&&(J.flags|=8192)):b0(J),$=J.updateQueue,$!==null&&d$(J,$.retryQueue),$=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==$&&(J.flags|=2048),_!==null&&U1(A8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),H3(H2,J),b0(J),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function HI(_,J){switch(yU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&q0)!==a1&&d9(J),J):null;case 3:return H3(H2,J),p(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return o(J),null;case 31:if(J.memoizedState!==null){if(C5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");J8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&q0)!==a1&&d9(J),J):null;case 13:if(C5(J),_=J.memoizedState,_!==null&&_.dehydrated!==null){if(J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");J8()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&q0)!==a1&&d9(J),J):null;case 19:return U1(F2,J),null;case 4:return p(J),null;case 10:return H3(J.type,J),null;case 22:case 23:return C5(J),iU(J),_!==null&&U1(A8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&q0)!==a1&&d9(J),J):null;case 24:return H3(H2,J),null;case 25:return null;default:return null}}function Qz(_,J){switch(yU(J),J.tag){case 3:H3(H2,J),p(J);break;case 26:case 27:case 5:o(J);break;case 4:p(J);break;case 31:J.memoizedState!==null&&C5(J);break;case 13:C5(J);break;case 19:U1(F2,J);break;case 10:H3(J.type,J);break;case 22:case 23:C5(J),iU(J),_!==null&&U1(A8,J);break;case 24:H3(H2,J)}}function k4(_){return(_.mode&q0)!==a1}function qz(_,J){k4(_)?(y4(),$_(J,_),V4()):$_(J,_)}function DG(_,J,$){k4(_)?(y4(),B7($,_,J),V4()):B7($,_,J)}function $_(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&q5)!==xQ&&(Q9=!0),q=z1(J,DP,$),(_&q5)!==xQ&&(Q9=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&D5)!==0?"useLayoutEffect":($.tag&q5)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
141
141
 
142
142
  It looks like you wrote `+X+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
@@ -150,11 +150,11 @@ It looks like you wrote `+X+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,A1(J,function(B,w){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,w)},X,z)}$=$.next}while($!==G)}}catch(B){B0(J,J.return,B)}}function K7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var X=G.next;q=X;do{if((q.tag&_)===_){var z=q.inst,B=z.destroy;B!==void 0&&(z.destroy=void 0,(_&a2)!==hQ&&(o7=!0),G=J,A1(G,VP,G,$,B),(_&a2)!==hQ&&(o7=!1))}q=q.next}while(q!==X)}}catch(w){B0(J,J.return,w)}}function qz(_,J){P4(_)?(w4(),n9(J,_),I4()):n9(J,_)}function uG(_,J,$){P4(_)?(w4(),K7($,_,J),I4()):K7($,_,J)}function Uz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||d7||($.props!==_.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.",x(_)||"instance"),$.state!==_.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.",x(_)||"instance"));try{A1(_,ZY,J,$)}catch(q){B0(_,_.return,q)}}}function XI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function KI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||d7||(J.props!==_.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.",x(_)||"instance"),J.state!==_.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.",x(_)||"instance"));try{var G=e6(_.type,$),X=A1(_,XI,J,G,q);$=mB,X!==void 0||$.has(_.type)||($.add(_.type),A1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",x(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(z){B0(_,_.return,z)}}function Gz(_,J,$){$.props=e6(_.type,_.memoizedProps),$.state=_.memoizedState,P4(_)?(w4(),A1(_,UB,_,J,$),I4()):A1(_,UB,_,J,$)}function HI(_){var J=_.ref;if(J!==null){switch(_.tag){case 26:case 27:case 5:var $=_.stateNode;break;case 30:$=_.stateNode;break;default:$=_.stateNode}if(typeof J==="function")if(P4(_))try{w4(),_.refCleanup=J($)}finally{I4()}else _.refCleanup=J($);else typeof J==="string"?console.error("String refs are no longer supported."):J.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",x(_)),J.current=$}}function e9(_,J){try{A1(_,HI,_)}catch($){B0(_,J,$)}}function N4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(P4(_))try{w4(),A1(_,q)}finally{I4(_)}else A1(_,q)}catch(G){B0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(P4(_))try{w4(),A1(_,$,null)}finally{I4(_)}else A1(_,$,null)}catch(G){B0(_,J,G)}else $.current=null}function Zz(_,J,$,q){var G=_.memoizedProps,X=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",VQ&&(J="nested-update"),typeof G==="function"&&G(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(X,J,q,$)}function YI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",VQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Fz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{A1(_,bI,q,J,$,_)}catch(G){B0(_,_.return,G)}}function bG(_,J,$){try{A1(_,hI,_.stateNode,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Xz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&_6(_.type)||_.tag===4}function EG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Xz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&_6(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function hG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(BW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(BW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=_3));else if(q!==4&&(q===27&&_6(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(hG(_,J,$),_=_.sibling;_!==null;)hG(_,J,$),_=_.sibling}function d$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&_6(_.type)&&($=_.stateNode),_=_.child,_!==null))for(d$(_,J,$),_=_.sibling;_!==null;)d$(_,J,$),_=_.sibling}function zI(_){for(var J,$=_.return;$!==null;){if(Xz($)){J=$;break}$=$.return}if(J==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(J.tag){case 27:J=J.stateNode,$=EG(_),d$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(LW($),J.flags&=-33),J=EG(_),d$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=EG(_),hG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Kz(_){var{stateNode:J,memoizedProps:$}=_;try{A1(_,_w,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Hz(_,J){return J.tag===31?(J=J.memoizedState,_.memoizedState!==null&&J===null):J.tag===13?(_=_.memoizedState,J=J.memoizedState,_!==null&&_.dehydrated!==null&&(J===null||J.dehydrated===null)):J.tag===3?_.memoizedState.isDehydrated&&(J.flags&256)===0:!1}function WI(_,J){if(_=_.containerInfo,EF=Yq,_=fH(_),OU(_)){if("selectionStart"in _)var $={start:_.selectionStart,end:_.selectionEnd};else _:{$=($=_.ownerDocument)&&$.defaultView||window;var q=$.getSelection&&$.getSelection();if(q&&q.rangeCount!==0){$=q.anchorNode;var{anchorOffset:G,focusNode:X}=q;q=q.focusOffset;try{$.nodeType,X.nodeType}catch(f1){$=null;break _}var z=0,B=-1,w=-1,S=0,e=0,_1=_,r=null;J:for(;;){for(var Z1;;){if(_1!==$||G!==0&&_1.nodeType!==3||(B=z+G),_1!==X||q!==0&&_1.nodeType!==3||(w=z+q),_1.nodeType===3&&(z+=_1.nodeValue.length),(Z1=_1.firstChild)===null)break;r=_1,_1=Z1}for(;;){if(_1===_)break J;if(r===$&&++S===G&&(B=z),r===X&&++e===q&&(w=z),(Z1=_1.nextSibling)!==null)break;_1=r,r=_1.parentNode}_1=Z1}$=B===-1||w===-1?null:{start:B,end:w}}else $=null}$=$||{start:0,end:0}}else $=null;hF={focusedElem:_,selectionRange:$},Yq=!1;for(I2=J;I2!==null;)if(J=I2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,I2=_;else for(;I2!==null;){switch(_=J=I2,$=_.alternate,G=_.flags,_.tag){case 0:if((G&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)G=_[$],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&$!==null&&KI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)qZ(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":qZ(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&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(_=J.sibling,_!==null){_.return=J.return,I2=_;break}I2=J.return}}function Yz(_,J,$){var q=Y5(),G=M4(),X=R4(),z=O4(),B=$.flags;switch($.tag){case 0:case 11:case 15:C4(_,$),B&4&&Qz($,I5|x5);break;case 1:if(C4(_,$),B&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||d7||(_.props!==$.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.",x($)||"instance"),_.state!==$.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.",x($)||"instance")),P4($)?(w4(),A1($,UF,$,_),I4()):A1($,UF,$,_);else{var w=e6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||d7||(_.props!==$.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.",x($)||"instance"),_.state!==$.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.",x($)||"instance")),P4($)?(w4(),A1($,$B,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate),I4()):A1($,$B,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate)}B&64&&Uz($),B&512&&e9($,$.return);break;case 3:if(J=q3(),C4(_,$),B&64&&(B=$.updateQueue,B!==null)){if(w=null,$.child!==null)switch($.child.tag){case 27:case 5:w=$.child.stateNode;break;case 1:w=$.child.stateNode}try{A1($,ZY,B,w)}catch(e){B0($,$.return,e)}}_.effectDuration+=T$(J);break;case 27:J===null&&B&4&&Kz($);case 26:case 5:if(C4(_,$),J===null){if(B&4)Fz($);else if(B&64){_=$.type,J=$.memoizedProps,w=$.stateNode;try{A1($,EI,w,_,J,$)}catch(e){B0($,$.return,e)}}}B&512&&e9($,$.return);break;case 12:if(B&4){B=q3(),C4(_,$),_=$.stateNode,_.effectDuration+=g9(B);try{A1($,Zz,$,J,K6,_.effectDuration)}catch(e){B0($,$.return,e)}}else C4(_,$);break;case 31:C4(_,$),B&4&&Lz(_,$);break;case 13:C4(_,$),B&4&&Bz(_,$),B&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(B=wI.bind(null,$),tI(_,B))));break;case 22:if(B=$.memoizedState!==null||R3,!B){J=J!==null&&J.memoizedState!==null||U2,w=R3;var S=U2;R3=B,(U2=J)&&!S?(f4(_,$,($.subtreeFlags&8772)!==0),($.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&X$($,m1,l1)):C4(_,$),R3=w,U2=S}break;case 30:break;default:C4(_,$)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&((l0||0.05<m0)&&B4($,m1,l1,m0,b0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<l1-m1&&(Hz($.return.alternate,$.return)||L4($,m1,l1,"Mount"))),z5(q),T4(G),b0=X,l0=z}function zz(_){var J=_.alternate;J!==null&&(_.alternate=null,zz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&I1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function Z3(_,J,$){for($=$.child;$!==null;)Wz(_,J,$),$=$.sibling}function Wz(_,J,$){if(D2&&typeof D2.onCommitFiberUnmount==="function")try{D2.onCommitFiberUnmount(I7,$)}catch(S){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",S))}var q=Y5(),G=M4(),X=R4(),z=O4();switch($.tag){case 26:U2||N4($,J),Z3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:U2||N4($,J);var B=G2,w=U5;_6($.type)&&(G2=$.stateNode,U5=!1),Z3(_,J,$),A1($,F_,$.stateNode),G2=B,U5=w;break;case 5:U2||N4($,J);case 6:if(B=G2,w=U5,G2=null,Z3(_,J,$),G2=B,U5=w,G2!==null)if(U5)try{A1($,gI,G2,$.stateNode)}catch(S){B0($,J,S)}else try{A1($,mI,G2,$.stateNode)}catch(S){B0($,J,S)}break;case 18:G2!==null&&(U5?(_=G2,AW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),M7(_)):AW(G2,$.stateNode));break;case 4:B=G2,w=U5,G2=$.stateNode.containerInfo,U5=!0,Z3(_,J,$),G2=B,U5=w;break;case 0:case 11:case 14:case 15:K7(a2,$,J),U2||DG($,J,I5),Z3(_,J,$);break;case 1:U2||(N4($,J),B=$.stateNode,typeof B.componentWillUnmount==="function"&&Gz($,J,B)),Z3(_,J,$);break;case 21:Z3(_,J,$);break;case 22:U2=(B=U2)||$.memoizedState!==null,Z3(_,J,$),U2=B;break;default:Z3(_,J,$)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4($,m1,l1,m0,b0),z5(q),T4(G),b0=X,l0=z}function Lz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{A1(J,nI,_)}catch($){B0(J,J.return,$)}}}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{A1(J,eI,_)}catch($){B0(J,J.return,$)}}function LI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new gB),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new gB),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function r$(_,J){var $=LI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),D4)if(r7!==null&&a7!==null)Q_(a7,r7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=PI.bind(null,_,q);q.then(G,G)}})}function Q5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,X=J,z=$[q],B=Y5(),w=X;_:for(;w!==null;){switch(w.tag){case 27:if(_6(w.type)){G2=w.stateNode,U5=!1;break _}break;case 5:G2=w.stateNode,U5=!1;break _;case 3:case 4:G2=w.stateNode.containerInfo,U5=!0;break _}w=w.return}if(G2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Wz(G,X,z),G2=null,U5=!1,(z.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(z,m1,l1,"Unmount"),z5(B),G=z,X=G.alternate,X!==null&&(X.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Az(J,_),J=J.sibling}function Az(_,J){var $=Y5(),q=M4(),G=R4(),X=O4(),z=_.alternate,B=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:Q5(J,_),q5(_),B&4&&(K7(a2|x5,_,_.return),n9(a2|x5,_),DG(_,_.return,I5|x5));break;case 1:if(Q5(J,_),q5(_),B&512&&(U2||z===null||N4(z,z.return)),B&64&&R3&&(B=_.updateQueue,B!==null&&(z=B.callbacks,z!==null))){var w=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=w===null?z:w.concat(z)}break;case 26:if(w=Q4,Q5(J,_),q5(_),B&512&&(U2||z===null||N4(z,z.return)),B&4){var S=z!==null?z.memoizedState:null;if(B=_.memoizedState,z===null)if(B===null)if(_.stateNode===null){_:{B=_.type,z=_.memoizedProps,w=w.ownerDocument||w;J:switch(B){case"title":if(S=w.getElementsByTagName("title")[0],!S||S[L_]||S[j2]||S.namespaceURI===P7||S.hasAttribute("itemprop"))S=w.createElement(B),w.head.insertBefore(S,w.querySelector("head > title"));v2(S,B,z),S[j2]=_,j1(S),B=S;break _;case"link":var e=SW("link","href",w).get(B+(z.href||""));if(e){for(var _1=0;_1<e.length;_1++)if(S=e[_1],S.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&S.getAttribute("rel")===(z.rel==null?null:z.rel)&&S.getAttribute("title")===(z.title==null?null:z.title)&&S.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){e.splice(_1,1);break J}}S=w.createElement(B),v2(S,B,z),w.head.appendChild(S);break;case"meta":if(e=SW("meta","content",w).get(B+(z.content||""))){for(_1=0;_1<e.length;_1++)if(S=e[_1],M1(z.content,"content"),S.getAttribute("content")===(z.content==null?null:""+z.content)&&S.getAttribute("name")===(z.name==null?null:z.name)&&S.getAttribute("property")===(z.property==null?null:z.property)&&S.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&S.getAttribute("charset")===(z.charSet==null?null:z.charSet)){e.splice(_1,1);break J}}S=w.createElement(B),v2(S,B,z),w.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}S[j2]=_,j1(S),B=S}_.stateNode=B}else vW(w,_.type,_.stateNode);else _.stateNode=fW(w,B,_.memoizedProps);else S!==B?(S===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):S.count--,B===null?vW(w,_.type,_.stateNode):fW(w,B,_.memoizedProps)):B===null&&_.stateNode!==null&&bG(_,_.memoizedProps,z.memoizedProps)}break;case 27:Q5(J,_),q5(_),B&512&&(U2||z===null||N4(z,z.return)),z!==null&&B&4&&bG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(Q5(J,_),q5(_),B&512&&(U2||z===null||N4(z,z.return)),_.flags&32){w=_.stateNode;try{A1(_,LW,w)}catch(y1){B0(_,_.return,y1)}}B&4&&_.stateNode!=null&&(w=_.memoizedProps,bG(_,w,z!==null?z.memoizedProps:w)),B&1024&&(MF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Q5(J,_),q5(_),B&4){if(_.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.");B=_.memoizedProps,z=z!==null?z.memoizedProps:B,w=_.stateNode;try{A1(_,xI,w,z,B)}catch(y1){B0(_,_.return,y1)}}break;case 3:if(w=q3(),Xq=null,S=Q4,Q4=JQ(J.containerInfo),Q5(J,_),Q4=S,q5(_),B&4&&z!==null&&z.memoizedState.isDehydrated)try{A1(_,oI,J.containerInfo)}catch(y1){B0(_,_.return,y1)}MF&&(MF=!1,Mz(_)),J.effectDuration+=T$(w);break;case 4:B=Q4,Q4=JQ(_.stateNode.containerInfo),Q5(J,_),q5(_),Q4=B;break;case 12:B=q3(),Q5(J,_),q5(_),_.stateNode.effectDuration+=g9(B);break;case 31:Q5(J,_),q5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,r$(_,B)));break;case 13:Q5(J,_),q5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(aQ=R2()),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,r$(_,B)));break;case 22:w=_.memoizedState!==null;var r=z!==null&&z.memoizedState!==null,Z1=R3,f1=U2;if(R3=Z1||w,U2=f1||r,Q5(J,_),U2=f1,R3=Z1,r&&!w&&!Z1&&!f1&&(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&X$(_,m1,l1),q5(_),B&8192)_:for(J=_.stateNode,J._visibility=w?J._visibility&~P_:J._visibility|P_,!w||z===null||r||R3||U2||(_8(_),(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(_,m1,l1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){r=z=J;try{S=r.stateNode,w?A1(r,cI,S):A1(r,dI,r.stateNode,r.memoizedProps)}catch(y1){B0(r,r.return,y1)}}}else if(J.tag===6){if(z===null){r=J;try{e=r.stateNode,w?A1(r,lI,e):A1(r,rI,e,r.memoizedProps)}catch(y1){B0(r,r.return,y1)}}}else if(J.tag===18){if(z===null){r=J;try{_1=r.stateNode,w?A1(r,pI,_1):A1(r,iI,r.stateNode)}catch(y1){B0(r,r.return,y1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;z===J&&(z=null),J=J.return}z===J&&(z=null),J.sibling.return=J.return,J=J.sibling}B&4&&(B=_.updateQueue,B!==null&&(z=B.retryQueue,z!==null&&(B.retryQueue=null,r$(_,z))));break;case 19:Q5(J,_),q5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,r$(_,B)));break;case 30:break;case 21:break;default:Q5(J,_),q5(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&((l0||0.05<m0)&&B4(_,m1,l1,m0,b0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<l1-m1&&(Hz(_.return.alternate,_.return)||L4(_,m1,l1,"Mount"))),z5($),T4(q),b0=G,l0=X}function q5(_){var J=_.flags;if(J&2){try{A1(_,zI,_)}catch($){B0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Mz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Mz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function C4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Yz(_,J.alternate,J),J=J.sibling}function Tz(_){var J=Y5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 14:case 15:DG(_,_.return,I5),_8(_);break;case 1:N4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Gz(_,_.return,X),_8(_);break;case 27:A1(_,F_,_.stateNode);case 26:case 5:N4(_,_.return),_8(_);break;case 22:_.memoizedState===null&&_8(_);break;case 30:_8(_);break;default:_8(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(_,m1,l1,m0,b0),z5(J),T4($),b0=q,l0=G}function _8(_){for(_=_.child;_!==null;)Tz(_),_=_.sibling}function Rz(_,J,$,q){var G=Y5(),X=M4(),z=R4(),B=O4(),w=$.flags;switch($.tag){case 0:case 11:case 15:f4(_,$,q),Qz($,I5);break;case 1:if(f4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&A1($,UF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{A1($,oO,J,_)}catch(S){B0($,$.return,S)}}q&&w&64&&Uz($),e9($,$.return);break;case 27:Kz($);case 26:case 5:f4(_,$,q),q&&J===null&&w&4&&Fz($),e9($,$.return);break;case 12:if(q&&w&4){w=q3(),f4(_,$,q),q=$.stateNode,q.effectDuration+=g9(w);try{A1($,Zz,$,J,K6,q.effectDuration)}catch(S){B0($,$.return,S)}}else f4(_,$,q);break;case 31:f4(_,$,q),q&&w&4&&Lz(_,$);break;case 13:f4(_,$,q),q&&w&4&&Bz(_,$);break;case 22:$.memoizedState===null&&f4(_,$,q),e9($,$.return);break;case 30:break;default:f4(_,$,q)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4($,m1,l1,m0,b0),z5(G),T4(X),b0=z,l0=B}function f4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Rz(_,J.alternate,J,$),J=J.sibling}function xG(_,J){var $=null;_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),_=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(_=J.memoizedState.cachePool.pool),_!==$&&(_!=null&&s6(_),$!=null&&m9($))}function mG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(s6(J),_!=null&&m9(_))}function o5(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(J=J.child;J!==null;){var X=J.sibling;Oz(_,J,$,q,X!==null?X.actualStartTime:G),J=X}}function Oz(_,J,$,q,G){var X=Y5(),z=M4(),B=R4(),w=O4(),S=G6,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&e1)!==i1&&0<J.actualStartTime&&(J.flags&1)!==0&&K$(J,J.actualStartTime,G,z2,$),o5(_,J,$,q,G),e&2048&&qz(J,s2|x5);break;case 1:(J.mode&e1)!==i1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&K$(J,J.actualStartTime,G,z2,$)),o5(_,J,$,q,G);break;case 3:var _1=q3(),r=z2;z2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,o5(_,J,$,q,G),z2=r,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(s6(q),$!=null&&m9($))),_.passiveEffectDuration+=T$(_1);break;case 12:if(e&2048){e=q3(),o5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=g9(e);try{A1(J,YI,J,J.alternate,K6,_.passiveEffectDuration)}catch(Z1){B0(J,J.return,Z1)}}else o5(_,J,$,q,G);break;case 31:e=z2,_1=J.alternate!==null?J.alternate.memoizedState:null,r=J.memoizedState,_1!==null&&r===null?(r=J.deletions,r!==null&&0<r.length&&r[0].tag===18?(z2=!1,_1=_1.hydrationErrors,_1!==null&&wU(J,J.actualStartTime,G,_1)):z2=!0):z2=!1,o5(_,J,$,q,G),z2=e;break;case 13:e=z2,_1=J.alternate!==null?J.alternate.memoizedState:null,r=J.memoizedState,_1===null||_1.dehydrated===null||r!==null&&r.dehydrated!==null?z2=!1:(r=J.deletions,r!==null&&0<r.length&&r[0].tag===18?(z2=!1,_1=_1.hydrationErrors,_1!==null&&wU(J,J.actualStartTime,G,_1)):z2=!0),o5(_,J,$,q,G),z2=e;break;case 23:break;case 22:r=J.stateNode,_1=J.alternate,J.memoizedState!==null?r._visibility&K3?o5(_,J,$,q,G):__(_,J,$,q,G):r._visibility&K3?o5(_,J,$,q,G):(r._visibility|=K3,H7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&e1)===i1||z2||(_=J.actualStartTime,0<=_&&0.05<G-_&&X$(J,_,G),0<=m1&&0<=l1&&0.05<l1-m1&&X$(J,m1,l1))),e&2048&&xG(_1,J);break;case 24:o5(_,J,$,q,G),e&2048&&mG(J.alternate,J);break;default:o5(_,J,$,q,G)}if((J.mode&e1)!==i1){if(_=!z2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&L4(J,$,G,"Mount");0<=m1&&0<=l1&&((l0||0.05<m0)&&B4(J,m1,l1,m0,b0),_&&0.05<l1-m1&&L4(J,m1,l1,"Mount"))}z5(X),T4(z),b0=B,l0=w,G6=S}function H7(_,J,$,q,G,X){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var z=J.sibling;Iz(_,J,$,q,G,z!==null?z.actualStartTime:X),J=z}}function Iz(_,J,$,q,G,X){var z=Y5(),B=M4(),w=R4(),S=O4(),e=G6;G&&(J.mode&e1)!==i1&&0<J.actualStartTime&&(J.flags&1)!==0&&K$(J,J.actualStartTime,X,z2,$);var _1=J.flags;switch(J.tag){case 0:case 11:case 15:H7(_,J,$,q,G,X),qz(J,s2);break;case 23:break;case 22:var r=J.stateNode;J.memoizedState!==null?r._visibility&K3?H7(_,J,$,q,G,X):__(_,J,$,q,X):(r._visibility|=K3,H7(_,J,$,q,G,X)),G&&_1&2048&&xG(J.alternate,J);break;case 24:H7(_,J,$,q,G,X),G&&_1&2048&&mG(J.alternate,J);break;default:H7(_,J,$,q,G,X)}(J.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(J,m1,l1,m0,b0),z5(z),T4(B),b0=w,l0=S,G6=e}function __(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var X=J.child;X!==null;){J=X.sibling;var z=_,B=$,w=q,S=J!==null?J.actualStartTime:G,e=G6;(X.mode&e1)!==i1&&0<X.actualStartTime&&(X.flags&1)!==0&&K$(X,X.actualStartTime,S,z2,B);var _1=X.flags;switch(X.tag){case 22:__(z,X,B,w,S),_1&2048&&xG(X.alternate,X);break;case 24:__(z,X,B,w,S),_1&2048&&mG(X.alternate,X);break;default:__(z,X,B,w,S)}G6=e,X=J}}function Y7(_,J,$){if(_.subtreeFlags&l_)for(_=_.child;_!==null;)wz(_,J,$),_=_.sibling}function wz(_,J,$){switch(_.tag){case 26:Y7(_,J,$),_.flags&l_&&_.memoizedState!==null&&Qw($,Q4,_.memoizedState,_.memoizedProps);break;case 5:Y7(_,J,$);break;case 3:case 4:var q=Q4;Q4=JQ(_.stateNode.containerInfo),Y7(_,J,$),Q4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=l_,l_=16777216,Y7(_,J,$),l_=q):Y7(_,J,$));break;default:Y7(_,J,$)}}function Pz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function J_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=Y5();I2=q,fz(q,_),(q.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(q,m1,l1,"Unmount"),z5(G)}Pz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Nz(_),_=_.sibling}function Nz(_){var J=Y5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 15:J_(_),_.flags&2048&&uG(_,_.return,s2|x5);break;case 3:var X=q3();J_(_),_.stateNode.passiveEffectDuration+=T$(X);break;case 12:X=q3(),J_(_),_.stateNode.passiveEffectDuration+=g9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&K3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~K3,a$(_),(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(_,m1,l1,"Disconnect")):J_(_);break;default:J_(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(_,m1,l1,m0,b0),z5(J),T4($),l0=G,b0=q}function a$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=Y5();I2=q,fz(q,_),(q.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(q,m1,l1,"Unmount"),z5(G)}Pz(_)}for(_=_.child;_!==null;)Cz(_),_=_.sibling}function Cz(_){var J=Y5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 15:uG(_,_.return,s2),a$(_);break;case 22:var X=_.stateNode;X._visibility&K3&&(X._visibility&=~K3,a$(_));break;default:a$(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(_,m1,l1,m0,b0),z5(J),T4($),l0=G,b0=q}function fz(_,J){for(;I2!==null;){var $=I2,q=$,G=J,X=Y5(),z=M4(),B=R4(),w=O4();switch(q.tag){case 0:case 11:case 15:uG(q,G,s2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&s6(G));break;case 24:m9(q.memoizedState.cache)}if((q.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(q,m1,l1,m0,b0),z5(X),T4(z),l0=w,b0=B,q=$.child,q!==null)q.return=$,I2=q;else _:for($=_;I2!==null;){if(q=I2,X=q.sibling,z=q.return,zz(q),q===$){I2=null;break _}if(X!==null){X.return=z,I2=X;break _}I2=z}}}function BI(){EP.forEach(function(_){return _()})}function Sz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||Y1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function L5(_){if((Y0&W2)!==w2&&J0!==0)return J0&-J0;var J=Y1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),aG()):l()}function vz(){if(Z5===0)if((J0&536870912)===0||F0){var _=zQ;zQ<<=1,(zQ&3932160)===0&&(zQ=262144),Z5=_}else Z5=536870912;return _=O5.current,_!==null&&(_.flags|=32),Z5}function c0(_,J,$){if(o7&&console.error("useInsertionEffect must not schedule updates."),vF&&(nQ=!0),_===f0&&(O0===L8||O0===B8)||_.cancelPendingCommit!==null)W7(_,0),n3(_,J0,Z5,!1);if(_2(_,$),(Y0&W2)!==w2&&_===f0){if(V4)switch(J.tag){case 0:case 11:case 15:_=Q0&&x(Q0)||"Unknown",$A.has(_)||($A.add(_),J=x(J)||"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",J,_,_));break;case 1:JA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),JA=!0)}}else D4&&o4(_,J,$),CI(J),_===f0&&((Y0&W2)===w2&&(T6|=$),g0===B6&&n3(_,J0,Z5,!1)),S4(_)}function jz(_,J,$){if((Y0&(W2|w5))!==w2)throw Error("Should not already be working.");if(J0!==0&&Q0!==null){var q=Q0,G=R2();switch(aL){case r_:case L8:var X=j_;y0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,G,y5,void 0,"primary-light")):console.timeStamp("Suspended",X,G,y5,void 0,"primary-light"));break;case B8:X=j_,y0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,G,y5,void 0,"primary-light")):console.timeStamp("Action",X,G,y5,void 0,"primary-light"));break;default:y0&&(q=G-j_,3>q||console.timeStamp("Blocked",j_,G,y5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||A2(_,J))?MI(_,J):pG(_,J,!0);var z=$;do{if(X===O3){s7&&!$&&n3(_,J,0,!1),J=O0,j_=$2(),aL=J;break}else{if(q=R2(),G=_.current.alternate,z&&!AI(G)){K5(J),G=O2,X=q,!y0||X<=G||(a0?a0.run(console.timeStamp.bind(console,"Teared Render",G,X,Z0,G0,"error")):console.timeStamp("Teared Render",G,X,Z0,G0,"error")),J8(J,q),X=pG(_,J,!1),z=!1;continue}if(X===W8){if(z=J,_.errorRecoveryDisabledLanes&z)var B=0;else B=_.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){K5(J),PU(O2,q,J,a0),J8(J,q),J=B;_:{q=_,X=z,z=s_;var w=q.current.memoizedState.isDehydrated;if(w&&(W7(q,B).flags|=256),B=pG(q,B,!1),B!==W8){if(OF&&!w){q.errorRecoveryDisabledLanes|=X,T6|=X,X=B6;break _}q=t2,t2=z,q!==null&&(t2===null?t2=q:t2.push.apply(t2,q))}X=B}if(z=!1,X!==W8)continue;else q=R2()}}if(X===d_){K5(J),PU(O2,q,J,a0),J8(J,q),W7(_,0),n3(_,J,0,!0);break}_:{switch($=_,X){case O3:case d_:throw Error("Root did not complete. This is a bug in React.");case B6:if((J&4194048)!==J)break;case lQ:K5(J),jH(O2,q,J,a0),J8(J,q),G=J,(G&127)!==0?vQ=q:(G&4194048)!==0&&(jQ=q),n3($,J,Z5,!A6);break _;case W8:t2=null;break;case cQ:case pB:break;default:throw Error("Unknown root exit status.")}if(Y1.actQueue!==null)cG($,G,J,t2,t_,rQ,Z5,T6,A8,X,null,null,O2,q);else{if((J&62914560)===J&&(z=aQ+iB-R2(),10<z)){if(n3($,J,Z5,!A6),N2($,0,!0)!==0)break _;q4=J,$.timeoutHandle=KA(yz.bind(null,$,G,t2,t_,rQ,J,Z5,T6,A8,A6,X,"Throttled",O2,q),z);break _}yz($,G,t2,t_,rQ,J,Z5,T6,A8,A6,X,null,O2,q)}}}break}while(1);S4(_)}function yz(_,J,$,q,G,X,z,B,w,S,e,_1,r,Z1){_.timeoutHandle=I8;var f1=J.subtreeFlags,y1=null;if(f1&8192||(f1&16785408)===16785408){if(y1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_3},wz(J,X,y1),f1=(X&62914560)===X?aQ-R2():(X&4194048)===X?lB-R2():0,f1=qw(y1,f1),f1!==null){q4=X,_.cancelPendingCommit=f1(cG.bind(null,_,J,X,$,q,G,z,B,w,e,y1,y1.waitingForViewTransition?"Waiting for the previous Animation":0<y1.count?0<y1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":y1.imgCount===1?"Suspended on an Image":0<y1.imgCount?"Suspended on Images":null,r,Z1)),n3(_,X,z,!S);return}}cG(_,J,X,$,q,G,z,B,w,e,y1,_1,r,Z1)}function AI(_){for(var J=_;;){var $=J.tag;if(($===0||$===11||$===15)&&J.flags&16384&&($=J.updateQueue,$!==null&&($=$.stores,$!==null)))for(var q=0;q<$.length;q++){var G=$[q],X=G.getSnapshot;G=G.value;try{if(!d2(X(),G))return!1}catch(z){return!1}}if($=J.child,J.subtreeFlags&16384&&$!==null)$.return=J,J=$;else{if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return!0;J=J.return}J.sibling.return=J.return,J=J.sibling}}return!0}function n3(_,J,$,q){J&=~IF,J&=~T6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var X=31-c2(G),z=1<<X;q[X]=-1,G&=~z}$!==0&&m2(_,$,J)}function z7(){return(Y0&(W2|w5))===w2?(q_(0,!1),!1):!0}function gG(){if(Q0!==null){if(O0===G5)var _=Q0.return;else _=Q0,B$(),nU(_),m7=null,x_=0,_=Q0;for(;_!==null;)$z(_.alternate,_),_=_.return;Q0=null}}function J8(_,J){(_&127)!==0&&(H6=J),(_&4194048)!==0&&(x4=J),(_&62914560)!==0&&(dL=J),(_&2080374784)!==0&&(rL=J)}function W7(_,J){y0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",G0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",G0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",G0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",G0,"primary-light"));var $=O2;if(O2=$2(),J0!==0&&0<$){if(K5(J0),g0===cQ||g0===B6)jH($,O2,J,a0);else{var q=O2,G=a0;if(y0&&!(q<=$)){var X=(J&738197653)===J?"tertiary-dark":"primary-dark",z=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,z,$,q,Z0,G0,X)):console.timeStamp(z,$,q,Z0,G0,X)}}J8(J0,O2)}if($=a0,a0=null,(J&127)!==0){a0=f_,G=0<=h4&&h4<H6?H6:h4,q=0<=G8&&G8<H6?H6:G8,X=0<=q?q:0<=G?G:O2,0<=vQ?(K5(2),yH(vQ,X,J,$)):(yQ&127)!==0&&(K5(2),h9(H6,X,B3)),$=G;var B=q,w=S_,S=0<E7,e=Y6===C_,_1=Y6===SQ;if(G=O2,q=f_,X=_F,z=JF,y0){if(Z0="Blocking",0<$?$>G&&($=G):$=G,0<B?B>$&&(B=$):B=$,w!==null&&$>B){var r=S?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+w,B,$,Z0,G0,r)):console.timeStamp(S?"Consecutive":"Event: "+w,B,$,Z0,G0,r)}G>$&&(B=e?"error":(J&738197653)===J?"tertiary-light":"primary-light",e=_1?"Promise Resolved":e?"Cascading Update":5<G-$?"Update Blocked":"Update",_1=[],z!=null&&_1.push(["Component name",z]),X!=null&&_1.push(["Method name",X]),$={start:$,end:G,detail:{devtools:{properties:_1,track:Z0,trackGroup:G0,color:B}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}h4=-1.1,Y6=0,JF=_F=null,vQ=-1.1,E7=G8,G8=-1.1,H6=$2()}if((J&4194048)!==0&&(a0=v_,G=0<=L3&&L3<x4?x4:L3,$=0<=E5&&E5<x4?x4:E5,q=0<=z6&&z6<x4?x4:z6,X=0<=q?q:0<=$?$:O2,0<=jQ?(K5(256),yH(jQ,X,J,a0)):(yQ&4194048)!==0&&(K5(256),h9(x4,X,B3)),_1=q,B=Z8,w=0<W6,S=$F===SQ,X=O2,q=v_,z=lL,e=iL,y0&&(Z0="Transition",0<$?$>X&&($=X):$=X,0<G?G>$&&(G=$):G=$,0<_1?_1>G&&(_1=G):_1=G,G>_1&&B!==null&&(r=w?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+B,_1,G,Z0,G0,r)):console.timeStamp(w?"Consecutive":"Event: "+B,_1,G,Z0,G0,r)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,Z0,G0,"primary-dark")):console.timeStamp("Action",G,$,Z0,G0,"primary-dark")),X>$&&(G=S?"Promise Resolved":5<X-$?"Update Blocked":"Update",_1=[],e!=null&&_1.push(["Component name",e]),z!=null&&_1.push(["Method name",z]),$={start:$,end:X,detail:{devtools:{properties:_1,track:Z0,trackGroup:G0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),E5=L3=-1.1,$F=0,jQ=-1.1,W6=z6,z6=-1.1,x4=$2()),(J&62914560)!==0&&(yQ&62914560)!==0&&(K5(4194304),h9(dL,O2,B3)),(J&2080374784)!==0&&(yQ&2080374784)!==0&&(K5(268435456),h9(rL,O2,B3)),$=_.timeoutHandle,$!==I8&&(_.timeoutHandle=I8,tP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),q4=0,gG(),f0=_,Q0=$=J3(_.current,null),J0=J,O0=G5,P5=null,A6=!1,s7=A2(_,J),OF=!1,g0=O3,A8=Z5=IF=T6=M6=0,t2=s_=null,rQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-c2(q),X=1<<G,J|=_[G],q&=~X;return g4=J,H$(),_=hL(),1000<_-EL&&(Y1.recentlyCreatedOwnerStacks=0,EL=_),J4.discardPendingWarnings(),$}function Vz(_,J){a1=null,Y1.H=c_,Y1.getCurrentStack=null,V4=!1,M5=null,J===x7||J===uQ?(J=eH(),O0=r_):J===GF?(J=eH(),O0=cB):O0=J===BF?RF:J!==null&&typeof J==="object"&&typeof J.then==="function"?a_:iQ,P5=J;var $=Q0;$===null?(g0=d_,g$(_,H5(J,_.current))):$.mode&e1&&xU($)}function kz(){var _=O5.current;return _===null?!0:(J0&4194048)===J0?h5===null?!0:!1:(J0&62914560)===J0||(J0&536870912)!==0?_===h5:!1}function Dz(){var _=Y1.H;return Y1.H=c_,_===null?c_:_}function uz(){var _=Y1.A;return Y1.A=bP,_}function s$(_){a0===null&&(a0=_._debugTask==null?null:_._debugTask)}function t$(){g0=B6,A6||(J0&4194048)!==J0&&O5.current!==null||(s7=!0),(M6&134217727)===0&&(T6&134217727)===0||f0===null||n3(f0,J0,Z5,!1)}function pG(_,J,$){var q=Y0;Y0|=W2;var G=Dz(),X=uz();if(f0!==_||J0!==J){if(D4){var z=_.memoizedUpdaters;0<z.size&&(Q_(_,J0),z.clear()),G1(_,J)}t_=null,W7(_,J)}J=!1,z=g0;_:do try{if(O0!==G5&&Q0!==null){var B=Q0,w=P5;switch(O0){case RF:gG(),z=lQ;break _;case r_:case L8:case B8:case a_:O5.current===null&&(J=!0);var S=O0;if(O0=G5,P5=null,L7(_,B,w,S),$&&s7){z=O3;break _}break;default:S=O0,O0=G5,P5=null,L7(_,B,w,S)}}bz(),z=g0;break}catch(e){Vz(_,e)}while(1);return J&&_.shellSuspendCounter++,B$(),Y0=q,Y1.H=G,Y1.A=X,Q0===null&&(f0=null,J0=0,H$()),z}function bz(){for(;Q0!==null;)Ez(Q0)}function MI(_,J){var $=Y0;Y0|=W2;var q=Dz(),G=uz();if(f0!==_||J0!==J){if(D4){var X=_.memoizedUpdaters;0<X.size&&(Q_(_,J0),X.clear()),G1(_,J)}t_=null,sQ=R2()+dB,W7(_,J)}else s7=A2(_,J);_:do try{if(O0!==G5&&Q0!==null)J:switch(J=Q0,X=P5,O0){case iQ:O0=G5,P5=null,L7(_,J,X,iQ);break;case L8:case B8:if(oH(X)){O0=G5,P5=null,hz(J);break}J=function(){O0!==L8&&O0!==B8||f0!==_||(O0=dQ),S4(_)},X.then(J,J);break _;case r_:O0=dQ;break _;case cB:O0=TF;break _;case dQ:oH(X)?(O0=G5,P5=null,hz(J)):(O0=G5,P5=null,L7(_,J,X,dQ));break;case TF:var z=null;switch(Q0.tag){case 26:z=Q0.memoizedState;case 5:case 27:var B=Q0;if(z?jW(z):B.stateNode.complete){O0=G5,P5=null;var w=B.sibling;if(w!==null)Q0=w;else{var S=B.return;S!==null?(Q0=S,o$(S)):Q0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}O0=G5,P5=null,L7(_,J,X,TF);break;case a_:O0=G5,P5=null,L7(_,J,X,a_);break;case RF:gG(),g0=lQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y1.actQueue!==null?bz():TI();break}catch(e){Vz(_,e)}while(1);if(B$(),Y1.H=q,Y1.A=G,Y0=$,Q0!==null)return O3;return f0=null,J0=0,H$(),g0}function TI(){for(;Q0!==null&&!Aw();)Ez(Q0)}function Ez(_){var J=_.alternate;(_.mode&e1)!==i1?(hU(_),J=A1(_,VG,J,_,g4),xU(_)):J=A1(_,VG,J,_,g4),_.memoizedProps=_.pendingProps,J===null?o$(_):Q0=J}function hz(_){var J=A1(_,RI,_);_.memoizedProps=_.pendingProps,J===null?o$(_):Q0=J}function RI(_){var J=_.alternate,$=(_.mode&e1)!==i1;switch($&&hU(_),_.tag){case 15:case 0:J=sY(J,_,_.pendingProps,_.type,void 0,J0);break;case 11:J=sY(J,_,_.pendingProps,_.type.render,_.ref,J0);break;case 5:nU(_);default:$z(J,_),_=Q0=EH(_,g4),J=VG(J,_,g4)}return $&&xU(_),J}function L7(_,J,$,q){B$(),nU(J),m7=null,x_=0;var G=J.return;try{if(qI(_,G,J,$,J0)){g0=d_,g$(_,H5($,_.current)),Q0=null;return}}catch(X){if(G!==null)throw Q0=G,X;g0=d_,g$(_,H5($,_.current)),Q0=null;return}if(J.flags&32768){if(F0||q===iQ)_=!0;else if(s7||(J0&536870912)!==0)_=!1;else if(A6=_=!0,q===L8||q===B8||q===r_||q===a_)q=O5.current,q!==null&&q.tag===13&&(q.flags|=16384);xz(J,_)}else o$(J)}function o$(_){var J=_;do{if((J.flags&32768)!==0){xz(J,A6);return}var $=J.alternate;if(_=J.return,hU(J),$=A1(J,ZI,$,J,g4),(J.mode&e1)!==i1&&dH(J),$!==null){Q0=$;return}if(J=J.sibling,J!==null){Q0=J;return}Q0=J=_}while(J!==null);g0===O3&&(g0=pB)}function xz(_,J){do{var $=FI(_.alternate,_);if($!==null){$.flags&=32767,Q0=$;return}if((_.mode&e1)!==i1){dH(_),$=_.actualDuration;for(var q=_.child;q!==null;)$+=q.actualDuration,q=q.sibling;_.actualDuration=$}if($=_.return,$!==null&&($.flags|=32768,$.subtreeFlags=0,$.deletions=null),!J&&(_=_.sibling,_!==null)){Q0=_;return}Q0=_=$}while(_!==null);g0=lQ,Q0=null}function cG(_,J,$,q,G,X,z,B,w,S,e,_1,r,Z1){_.cancelPendingCommit=null;do $_();while(Z2!==O6);if(J4.flushLegacyContextWarning(),J4.flushPendingUnsafeLifecycleWarnings(),(Y0&(W2|w5))!==w2)throw Error("Should not already be working.");if(K5($),S===W8?PU(r,Z1,$,a0):q!==null?iO(r,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,a0):lO(r,Z1,$,a0),J!==null){if($===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),J===_.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(X=J.lanes|J.childLanes,X|=sZ,z4(_,$,X,z,B,w),_===f0&&(Q0=f0=null,J0=0),t7=J,I6=_,q4=$,NF=X,fF=G,nB=q,CF=Z1,eB=_1,U4=tQ,_A=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,NI(O7,function(){return $J=window.event,U4===tQ&&(U4=PF),lz(),null})):(_.callbackNode=null,_.callbackPriority=0),W3=null,K6=$2(),_1!==null&&dO(Z1,K6,_1,a0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null,G=A0.p,A0.p=T5,z=Y0,Y0|=w5;try{WI(_,J,$)}finally{Y0=z,A0.p=G,Y1.T=q}}Z2=aB,mz(),gz(),pz()}}function mz(){if(Z2===aB){Z2=O6;var _=I6,J=t7,$=q4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null;var G=A0.p;A0.p=T5;var X=Y0;Y0|=w5;try{r7=$,a7=_,R$(),Az(J,_),a7=r7=null,$=hF;var z=fH(_.containerInfo),B=$.focusedElem,w=$.selectionRange;if(z!==B&&B&&B.ownerDocument&&CH(B.ownerDocument.documentElement,B)){if(w!==null&&OU(B)){var{start:S,end:e}=w;if(e===void 0&&(e=S),"selectionStart"in B)B.selectionStart=S,B.selectionEnd=Math.min(e,B.value.length);else{var _1=B.ownerDocument||document,r=_1&&_1.defaultView||window;if(r.getSelection){var Z1=r.getSelection(),f1=B.textContent.length,y1=Math.min(w.start,f1),j0=w.end===void 0?y1:Math.min(w.end,f1);!Z1.extend&&y1>j0&&(z=j0,j0=y1,y1=z);var K0=NH(B,y1),d=NH(B,j0);if(K0&&d&&(Z1.rangeCount!==1||Z1.anchorNode!==K0.node||Z1.anchorOffset!==K0.offset||Z1.focusNode!==d.node||Z1.focusOffset!==d.offset)){var s=_1.createRange();s.setStart(K0.node,K0.offset),Z1.removeAllRanges(),y1>j0?(Z1.addRange(s),Z1.extend(d.node,d.offset)):(s.setEnd(d.node,d.offset),Z1.addRange(s))}}}}_1=[];for(Z1=B;Z1=Z1.parentNode;)Z1.nodeType===1&&_1.push({element:Z1,left:Z1.scrollLeft,top:Z1.scrollTop});typeof B.focus==="function"&&B.focus();for(B=0;B<_1.length;B++){var n=_1[B];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}Yq=!!EF,hF=EF=null}finally{Y0=X,A0.p=G,Y1.T=q}}_.current=J,Z2=sB}}function gz(){if(Z2===sB){Z2=O6;var _=_A;if(_!==null){K6=$2();var J=z3,$=K6;!y0||$<=J||(B3?B3.run(console.timeStamp.bind(console,_,J,$,Z0,G0,"secondary-light")):console.timeStamp(_,J,$,Z0,G0,"secondary-light"))}_=I6,J=t7,$=q4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=Y1.T,Y1.T=null;var G=A0.p;A0.p=T5;var X=Y0;Y0|=w5;try{r7=$,a7=_,R$(),Yz(_,J.alternate,J),a7=r7=null}finally{Y0=X,A0.p=G,Y1.T=q}}_=CF,J=eB,z3=$2(),_=J===null?_:K6,J=z3,$=U4===wF,q=a0,W3!==null?VH(_,J,W3,!1,q):!y0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,Z0,G0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,Z0,G0,$?"error":"secondary-dark")),Z2=tB}}function pz(){if(Z2===oB||Z2===tB){if(Z2===oB){var _=z3;z3=$2();var J=z3,$=U4===wF;!y0||J<=_||(B3?B3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,Z0,G0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,Z0,G0,$?" error":"secondary-light")),U4!==wF&&(U4=rB)}Z2=O6,Mw(),_=I6;var q=t7;J=q4,$=nB;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?Z2=oQ:(Z2=O6,t7=I6=null,cz(_,_.pendingLanes),M8=0,n_=null);var X=_.pendingLanes;if(X===0&&(R6=null),G||az(_),X=I(J),q=q.stateNode,D2&&typeof D2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(X){case T5:var B=fZ;break;case e5:B=SZ;break;case u4:B=O7;break;case LQ:B=vZ;break;default:B=O7}D2.onCommitFiberRoot(I7,q,B,z)}catch(_1){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",_1))}if(D4&&_.memoizedUpdaters.clear(),BI(),$!==null){z=Y1.T,B=A0.p,A0.p=T5,Y1.T=null;try{var w=_.onRecoverableError;for(q=0;q<$.length;q++){var S=$[q],e=OI(S.stack);A1(S.source,w,S.value,e)}}finally{Y1.T=z,A0.p=B}}(q4&3)!==0&&$_(),S4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(kQ=!0,_===SF?o_++:(o_=0,SF=_)):o_=0,G||J8(J,z3),q_(0,!1)}}function OI(_){return _={componentStack:_},Object.defineProperty(_,"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.')}}),_}function cz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,m9(J)))}function $_(){return mz(),gz(),pz(),lz()}function lz(){if(Z2!==oQ)return!1;var _=I6,J=NF;NF=0;var $=I(q4),q=u4===0||u4>$?u4:$;$=Y1.T;var G=A0.p;try{A0.p=q,Y1.T=null;var X=fF;fF=null,q=I6;var z=q4;if(Z2=O6,t7=I6=null,q4=0,(Y0&(W2|w5))!==w2)throw Error("Cannot flush passive effects while already rendering.");K5(z),vF=!0,nQ=!1;var B=0;if(W3=null,B=R2(),U4===rB)h9(z3,B,B3);else{var w=z3,S=B,e=U4===PF;!y0||S<=w||(a0?a0.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",w,S,Z0,G0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",w,S,Z0,G0,"secondary-light"))}w=Y0,Y0|=w5;var _1=q.current;R$(),Nz(_1);var r=q.current;_1=CF,R$(),Oz(q,r,z,X,_1),az(q),Y0=w;var Z1=R2();if(r=B,_1=a0,W3!==null?VH(r,Z1,W3,!0,_1):!y0||Z1<=r||(_1?_1.run(console.timeStamp.bind(console,"Remaining Effects",r,Z1,Z0,G0,"secondary-dark")):console.timeStamp("Remaining Effects",r,Z1,Z0,G0,"secondary-dark")),J8(z,Z1),q_(0,!1),nQ?q===n_?M8++:(M8=0,n_=q):M8=0,nQ=vF=!1,D2&&typeof D2.onPostCommitFiberRoot==="function")try{D2.onPostCommitFiberRoot(I7,q)}catch(y1){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",y1))}var f1=q.current.stateNode;return f1.effectDuration=0,f1.passiveEffectDuration=0,!0}finally{A0.p=G,Y1.T=$,cz(_,J)}}function iz(_,J,$){J=H5($,J),rH(J),J=OG(_.stateNode,J,2),_=a3(_,J,2),_!==null&&(_2(_,2),S4(_))}function B0(_,J,$){if(o7=!1,_.tag===3)iz(_,_,$);else{for(;J!==null;){if(J.tag===3){iz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(R6===null||!R6.has(q))){_=H5($,_),rH(_),$=IG(2),q=a3(J,$,2),q!==null&&(wG($,q,J,_),_2(q,2),S4(q));return}}J=J.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.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,z1(J,function(B,I){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,I)},X,z)}$=$.next}while($!==G)}}catch(B){N0(J,J.return,B)}}function B7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var X=G.next;q=X;do{if((q.tag&_)===_){var z=q.inst,B=z.destroy;B!==void 0&&(z.destroy=void 0,(_&q5)!==xQ&&(Q9=!0),G=J,z1(G,uP,G,$,B),(_&q5)!==xQ&&(Q9=!1))}q=q.next}while(q!==X)}}catch(I){N0(J,J.return,I)}}function Uz(_,J){k4(_)?(y4(),$_(J,_),V4()):$_(J,_)}function uG(_,J,$){k4(_)?(y4(),B7($,_,J),V4()):B7($,_,J)}function Gz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||n7||($.props!==_.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.",m(_)||"instance"),$.state!==_.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.",m(_)||"instance"));try{z1(_,FY,J,$)}catch(q){N0(_,_.return,q)}}}function YI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function zI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||n7||(J.props!==_.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.",m(_)||"instance"),J.state!==_.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.",m(_)||"instance"));try{var G=Z8(_.type,$),X=z1(_,YI,J,G,q);$=gB,X!==void 0||$.has(_.type)||($.add(_.type),z1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",m(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(z){N0(_,_.return,z)}}function Zz(_,J,$){$.props=Z8(_.type,_.memoizedProps),$.state=_.memoizedState,k4(_)?(y4(),z1(_,GB,_,J,$),V4()):z1(_,GB,_,J,$)}function WI(_){var J=_.ref;if(J!==null){switch(_.tag){case 26:case 27:case 5:var $=_.stateNode;break;case 30:$=_.stateNode;break;default:$=_.stateNode}if(typeof J==="function")if(k4(_))try{y4(),_.refCleanup=J($)}finally{V4()}else _.refCleanup=J($);else typeof J==="string"?console.error("String refs are no longer supported."):J.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",m(_)),J.current=$}}function Q_(_,J){try{z1(_,WI,_)}catch($){N0(_,J,$)}}function D4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(k4(_))try{y4(),z1(_,q)}finally{V4(_)}else z1(_,q)}catch(G){N0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(k4(_))try{y4(),z1(_,$,null)}finally{V4(_)}else z1(_,$,null)}catch(G){N0(_,J,G)}else $.current=null}function Fz(_,J,$,q){var G=_.memoizedProps,X=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof G==="function"&&G(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(X,J,q,$)}function LI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",kQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Xz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{z1(_,xI,q,J,$,_)}catch(G){N0(_,_.return,G)}}function bG(_,J,$){try{z1(_,gI,_.stateNode,_.type,$,J,_)}catch(q){N0(_,_.return,q)}}function Kz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&X6(_.type)||_.tag===4}function EG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Kz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&X6(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function hG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(AW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(AW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=F3));else if(q!==4&&(q===27&&X6(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(hG(_,J,$),_=_.sibling;_!==null;)hG(_,J,$),_=_.sibling}function r$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&X6(_.type)&&($=_.stateNode),_=_.child,_!==null))for(r$(_,J,$),_=_.sibling;_!==null;)r$(_,J,$),_=_.sibling}function BI(_){for(var J,$=_.return;$!==null;){if(Kz($)){J=$;break}$=$.return}if(J==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(J.tag){case 27:J=J.stateNode,$=EG(_),r$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(BW($),J.flags&=-33),J=EG(_),r$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=EG(_),hG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Hz(_){var{stateNode:J,memoizedProps:$}=_;try{z1(_,Qw,_.type,$,J,_)}catch(q){N0(_,_.return,q)}}function Yz(_,J){return J.tag===31?(J=J.memoizedState,_.memoizedState!==null&&J===null):J.tag===13?(_=_.memoizedState,J=J.memoizedState,_!==null&&_.dehydrated!==null&&(J===null||J.dehydrated===null)):J.tag===3?_.memoizedState.isDehydrated&&(J.flags&256)===0:!1}function AI(_,J){if(_=_.containerInfo,EF=zq,_=SH(_),OU(_)){if("selectionStart"in _)var $={start:_.selectionStart,end:_.selectionEnd};else _:{$=($=_.ownerDocument)&&$.defaultView||window;var q=$.getSelection&&$.getSelection();if(q&&q.rangeCount!==0){$=q.anchorNode;var{anchorOffset:G,focusNode:X}=q;q=q.focusOffset;try{$.nodeType,X.nodeType}catch(N1){$=null;break _}var z=0,B=-1,I=-1,f=0,e=0,J1=_,d=null;J:for(;;){for(var Z1;;){if(J1!==$||G!==0&&J1.nodeType!==3||(B=z+G),J1!==X||q!==0&&J1.nodeType!==3||(I=z+q),J1.nodeType===3&&(z+=J1.nodeValue.length),(Z1=J1.firstChild)===null)break;d=J1,J1=Z1}for(;;){if(J1===_)break J;if(d===$&&++f===G&&(B=z),d===X&&++e===q&&(I=z),(Z1=J1.nextSibling)!==null)break;J1=d,d=J1.parentNode}J1=Z1}$=B===-1||I===-1?null:{start:B,end:I}}else $=null}$=$||{start:0,end:0}}else $=null;hF={focusedElem:_,selectionRange:$},zq=!1;for(y2=J;y2!==null;)if(J=y2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,y2=_;else for(;y2!==null;){switch(_=J=y2,$=_.alternate,G=_.flags,_.tag){case 0:if((G&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)G=_[$],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&$!==null&&zI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)qZ(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":qZ(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&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(_=J.sibling,_!==null){_.return=J.return,y2=_;break}y2=J.return}}function zz(_,J,$){var q=P5(),G=f4(),X=v4(),z=j4(),B=$.flags;switch($.tag){case 0:case 11:case 15:u4(_,$),B&4&&qz($,D5|s5);break;case 1:if(u4(_,$),B&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||n7||(_.props!==$.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.",m($)||"instance"),_.state!==$.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.",m($)||"instance")),k4($)?(y4(),z1($,UF,$,_),V4()):z1($,UF,$,_);else{var I=Z8($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||n7||(_.props!==$.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.",m($)||"instance"),_.state!==$.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.",m($)||"instance")),k4($)?(y4(),z1($,QB,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate),V4()):z1($,QB,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate)}B&64&&Gz($),B&512&&Q_($,$.return);break;case 3:if(J=Y3(),u4(_,$),B&64&&(B=$.updateQueue,B!==null)){if(I=null,$.child!==null)switch($.child.tag){case 27:case 5:I=$.child.stateNode;break;case 1:I=$.child.stateNode}try{z1($,FY,B,I)}catch(e){N0($,$.return,e)}}_.effectDuration+=R$(J);break;case 27:J===null&&B&4&&Hz($);case 26:case 5:if(u4(_,$),J===null){if(B&4)Xz($);else if(B&64){_=$.type,J=$.memoizedProps,I=$.stateNode;try{z1($,mI,I,_,J,$)}catch(e){N0($,$.return,e)}}}B&512&&Q_($,$.return);break;case 12:if(B&4){B=Y3(),u4(_,$),_=$.stateNode,_.effectDuration+=i9(B);try{z1($,Fz,$,J,T6,_.effectDuration)}catch(e){N0($,$.return,e)}}else u4(_,$);break;case 31:u4(_,$),B&4&&Bz(_,$);break;case 13:u4(_,$),B&4&&Az(_,$),B&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(B=CI.bind(null,$),eI(_,B))));break;case 22:if(B=$.memoizedState!==null||S3,!B){J=J!==null&&J.memoizedState!==null||L2,I=S3;var f=L2;S3=B,(L2=J)&&!f?(b4(_,$,($.subtreeFlags&8772)!==0),($.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&K$($,p1,d1)):u4(_,$),S3=I,L2=f}break;case 30:break;default:u4(_,$)}($.mode&q0)!==a1&&0<=p1&&0<=d1&&((n0||0.05<r0)&&N4($,p1,d1,r0,c0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<d1-p1&&(Yz($.return.alternate,$.return)||P4($,p1,d1,"Mount"))),N5(q),S4(G),c0=X,n0=z}function Wz(_){var J=_.alternate;J!==null&&(_.alternate=null,Wz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&P1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function L3(_,J,$){for($=$.child;$!==null;)Lz(_,J,$),$=$.sibling}function Lz(_,J,$){if(i2&&typeof i2.onCommitFiberUnmount==="function")try{i2.onCommitFiberUnmount(S7,$)}catch(f){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",f))}var q=P5(),G=f4(),X=v4(),z=j4();switch($.tag){case 26:L2||D4($,J),L3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:L2||D4($,J);var B=B2,I=L5;X6($.type)&&(B2=$.stateNode,L5=!1),L3(_,J,$),z1($,Y_,$.stateNode),B2=B,L5=I;break;case 5:L2||D4($,J);case 6:if(B=B2,I=L5,B2=null,L3(_,J,$),B2=B,L5=I,B2!==null)if(L5)try{z1($,lI,B2,$.stateNode)}catch(f){N0($,J,f)}else try{z1($,cI,B2,$.stateNode)}catch(f){N0($,J,f)}break;case 18:B2!==null&&(L5?(_=B2,MW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),P7(_)):MW(B2,$.stateNode));break;case 4:B=B2,I=L5,B2=$.stateNode.containerInfo,L5=!0,L3(_,J,$),B2=B,L5=I;break;case 0:case 11:case 14:case 15:B7(q5,$,J),L2||DG($,J,D5),L3(_,J,$);break;case 1:L2||(D4($,J),B=$.stateNode,typeof B.componentWillUnmount==="function"&&Zz($,J,B)),L3(_,J,$);break;case 21:L3(_,J,$);break;case 22:L2=(B=L2)||$.memoizedState!==null,L3(_,J,$),L2=B;break;default:L3(_,J,$)}($.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4($,p1,d1,r0,c0),N5(q),S4(G),c0=X,n0=z}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{z1(J,Jw,_)}catch($){N0(J,J.return,$)}}}function Az(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{z1(J,$w,_)}catch($){N0(J,J.return,$)}}function MI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new pB),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new pB),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function a$(_,J){var $=MI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),c4)if(e7!==null&&_9!==null)Z_(_9,e7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=fI.bind(null,_,q);q.then(G,G)}})}function z5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,X=J,z=$[q],B=P5(),I=X;_:for(;I!==null;){switch(I.tag){case 27:if(X6(I.type)){B2=I.stateNode,L5=!1;break _}break;case 5:B2=I.stateNode,L5=!1;break _;case 3:case 4:B2=I.stateNode.containerInfo,L5=!0;break _}I=I.return}if(B2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Lz(G,X,z),B2=null,L5=!1,(z.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(z,p1,d1,"Unmount"),N5(B),G=z,X=G.alternate,X!==null&&(X.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Mz(J,_),J=J.sibling}function Mz(_,J){var $=P5(),q=f4(),G=v4(),X=j4(),z=_.alternate,B=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:z5(J,_),W5(_),B&4&&(B7(q5|s5,_,_.return),$_(q5|s5,_),DG(_,_.return,D5|s5));break;case 1:if(z5(J,_),W5(_),B&512&&(L2||z===null||D4(z,z.return)),B&64&&S3&&(B=_.updateQueue,B!==null&&(z=B.callbacks,z!==null))){var I=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=I===null?z:I.concat(z)}break;case 26:if(I=z4,z5(J,_),W5(_),B&512&&(L2||z===null||D4(z,z.return)),B&4){var f=z!==null?z.memoizedState:null;if(B=_.memoizedState,z===null)if(B===null)if(_.stateNode===null){_:{B=_.type,z=_.memoizedProps,I=I.ownerDocument||I;J:switch(B){case"title":if(f=I.getElementsByTagName("title")[0],!f||f[T_]||f[g2]||f.namespaceURI===j7||f.hasAttribute("itemprop"))f=I.createElement(B),I.head.insertBefore(f,I.querySelector("head > title"));m2(f,B,z),f[g2]=_,x1(f),B=f;break _;case"link":var e=vW("link","href",I).get(B+(z.href||""));if(e){for(var J1=0;J1<e.length;J1++)if(f=e[J1],f.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&f.getAttribute("rel")===(z.rel==null?null:z.rel)&&f.getAttribute("title")===(z.title==null?null:z.title)&&f.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){e.splice(J1,1);break J}}f=I.createElement(B),m2(f,B,z),I.head.appendChild(f);break;case"meta":if(e=vW("meta","content",I).get(B+(z.content||""))){for(J1=0;J1<e.length;J1++)if(f=e[J1],A1(z.content,"content"),f.getAttribute("content")===(z.content==null?null:""+z.content)&&f.getAttribute("name")===(z.name==null?null:z.name)&&f.getAttribute("property")===(z.property==null?null:z.property)&&f.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&f.getAttribute("charset")===(z.charSet==null?null:z.charSet)){e.splice(J1,1);break J}}f=I.createElement(B),m2(f,B,z),I.head.appendChild(f);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}f[g2]=_,x1(f),B=f}_.stateNode=B}else jW(I,_.type,_.stateNode);else _.stateNode=SW(I,B,_.memoizedProps);else f!==B?(f===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):f.count--,B===null?jW(I,_.type,_.stateNode):SW(I,B,_.memoizedProps)):B===null&&_.stateNode!==null&&bG(_,_.memoizedProps,z.memoizedProps)}break;case 27:z5(J,_),W5(_),B&512&&(L2||z===null||D4(z,z.return)),z!==null&&B&4&&bG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(z5(J,_),W5(_),B&512&&(L2||z===null||D4(z,z.return)),_.flags&32){I=_.stateNode;try{z1(_,BW,I)}catch(j1){N0(_,_.return,j1)}}B&4&&_.stateNode!=null&&(I=_.memoizedProps,bG(_,I,z!==null?z.memoizedProps:I)),B&1024&&(MF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(z5(J,_),W5(_),B&4){if(_.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.");B=_.memoizedProps,z=z!==null?z.memoizedProps:B,I=_.stateNode;try{z1(_,pI,I,z,B)}catch(j1){N0(_,_.return,j1)}}break;case 3:if(I=Y3(),Kq=null,f=z4,z4=$Q(J.containerInfo),z5(J,_),z4=f,W5(_),B&4&&z!==null&&z.memoizedState.isDehydrated)try{z1(_,_w,J.containerInfo)}catch(j1){N0(_,_.return,j1)}MF&&(MF=!1,Tz(_)),J.effectDuration+=R$(I);break;case 4:B=z4,z4=$Q(_.stateNode.containerInfo),z5(J,_),W5(_),z4=B;break;case 12:B=Y3(),z5(J,_),W5(_),_.stateNode.effectDuration+=i9(B);break;case 31:z5(J,_),W5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 13:z5(J,_),W5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(sQ=j2()),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 22:I=_.memoizedState!==null;var d=z!==null&&z.memoizedState!==null,Z1=S3,N1=L2;if(S3=Z1||I,L2=N1||d,z5(J,_),L2=N1,S3=Z1,d&&!I&&!Z1&&!N1&&(_.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&K$(_,p1,d1),W5(_),B&8192)_:for(J=_.stateNode,J._visibility=I?J._visibility&~S_:J._visibility|S_,!I||z===null||d||S3||L2||(F8(_),(_.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(_,p1,d1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){d=z=J;try{f=d.stateNode,I?z1(d,dI,f):z1(d,sI,d.stateNode,d.memoizedProps)}catch(j1){N0(d,d.return,j1)}}}else if(J.tag===6){if(z===null){d=J;try{e=d.stateNode,I?z1(d,rI,e):z1(d,tI,e,d.memoizedProps)}catch(j1){N0(d,d.return,j1)}}}else if(J.tag===18){if(z===null){d=J;try{J1=d.stateNode,I?z1(d,iI,J1):z1(d,aI,d.stateNode)}catch(j1){N0(d,d.return,j1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;z===J&&(z=null),J=J.return}z===J&&(z=null),J.sibling.return=J.return,J=J.sibling}B&4&&(B=_.updateQueue,B!==null&&(z=B.retryQueue,z!==null&&(B.retryQueue=null,a$(_,z))));break;case 19:z5(J,_),W5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,a$(_,B)));break;case 30:break;case 21:break;default:z5(J,_),W5(_)}(_.mode&q0)!==a1&&0<=p1&&0<=d1&&((n0||0.05<r0)&&N4(_,p1,d1,r0,c0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<d1-p1&&(Yz(_.return.alternate,_.return)||P4(_,p1,d1,"Mount"))),N5($),S4(q),c0=G,n0=X}function W5(_){var J=_.flags;if(J&2){try{z1(_,BI,_)}catch($){N0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Tz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Tz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function u4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)zz(_,J.alternate,J),J=J.sibling}function Rz(_){var J=P5(),$=f4(),q=v4(),G=j4();switch(_.tag){case 0:case 11:case 14:case 15:DG(_,_.return,D5),F8(_);break;case 1:D4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Zz(_,_.return,X),F8(_);break;case 27:z1(_,Y_,_.stateNode);case 26:case 5:D4(_,_.return),F8(_);break;case 22:_.memoizedState===null&&F8(_);break;case 30:F8(_);break;default:F8(_)}(_.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(_,p1,d1,r0,c0),N5(J),S4($),c0=q,n0=G}function F8(_){for(_=_.child;_!==null;)Rz(_),_=_.sibling}function Oz(_,J,$,q){var G=P5(),X=f4(),z=v4(),B=j4(),I=$.flags;switch($.tag){case 0:case 11:case 15:b4(_,$,q),qz($,D5);break;case 1:if(b4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&z1($,UF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{z1($,_I,J,_)}catch(f){N0($,$.return,f)}}q&&I&64&&Gz($),Q_($,$.return);break;case 27:Hz($);case 26:case 5:b4(_,$,q),q&&J===null&&I&4&&Xz($),Q_($,$.return);break;case 12:if(q&&I&4){I=Y3(),b4(_,$,q),q=$.stateNode,q.effectDuration+=i9(I);try{z1($,Fz,$,J,T6,q.effectDuration)}catch(f){N0($,$.return,f)}}else b4(_,$,q);break;case 31:b4(_,$,q),q&&I&4&&Bz(_,$);break;case 13:b4(_,$,q),q&&I&4&&Az(_,$);break;case 22:$.memoizedState===null&&b4(_,$,q),Q_($,$.return);break;case 30:break;default:b4(_,$,q)}($.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4($,p1,d1,r0,c0),N5(G),S4(X),c0=z,n0=B}function b4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Oz(_,J.alternate,J,$),J=J.sibling}function xG(_,J){var $=null;_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),_=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(_=J.memoizedState.cachePool.pool),_!==$&&(_!=null&&Q8(_),$!=null&&l9($))}function mG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(Q8(J),_!=null&&l9(_))}function Z4(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(J=J.child;J!==null;){var X=J.sibling;Iz(_,J,$,q,X!==null?X.actualStartTime:G),J=X}}function Iz(_,J,$,q,G){var X=P5(),z=f4(),B=v4(),I=j4(),f=L6,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&q0)!==a1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,G,I2,$),Z4(_,J,$,q,G),e&2048&&Uz(J,U5|s5);break;case 1:(J.mode&q0)!==a1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&H$(J,J.actualStartTime,G,I2,$)),Z4(_,J,$,q,G);break;case 3:var J1=Y3(),d=I2;I2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,Z4(_,J,$,q,G),I2=d,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(Q8(q),$!=null&&l9($))),_.passiveEffectDuration+=R$(J1);break;case 12:if(e&2048){e=Y3(),Z4(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=i9(e);try{z1(J,LI,J,J.alternate,T6,_.passiveEffectDuration)}catch(Z1){N0(J,J.return,Z1)}}else Z4(_,J,$,q,G);break;case 31:e=I2,J1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,J1!==null&&d===null?(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(I2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,G,J1)):I2=!0):I2=!1,Z4(_,J,$,q,G),I2=e;break;case 13:e=I2,J1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,J1===null||J1.dehydrated===null||d!==null&&d.dehydrated!==null?I2=!1:(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(I2=!1,J1=J1.hydrationErrors,J1!==null&&wU(J,J.actualStartTime,G,J1)):I2=!0),Z4(_,J,$,q,G),I2=e;break;case 23:break;case 22:d=J.stateNode,J1=J.alternate,J.memoizedState!==null?d._visibility&M3?Z4(_,J,$,q,G):q_(_,J,$,q,G):d._visibility&M3?Z4(_,J,$,q,G):(d._visibility|=M3,A7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&q0)===a1||I2||(_=J.actualStartTime,0<=_&&0.05<G-_&&K$(J,_,G),0<=p1&&0<=d1&&0.05<d1-p1&&K$(J,p1,d1))),e&2048&&xG(J1,J);break;case 24:Z4(_,J,$,q,G),e&2048&&mG(J.alternate,J);break;default:Z4(_,J,$,q,G)}if((J.mode&q0)!==a1){if(_=!I2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&P4(J,$,G,"Mount");0<=p1&&0<=d1&&((n0||0.05<r0)&&N4(J,p1,d1,r0,c0),_&&0.05<d1-p1&&P4(J,p1,d1,"Mount"))}N5(X),S4(z),c0=B,n0=I,L6=f}function A7(_,J,$,q,G,X){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var z=J.sibling;wz(_,J,$,q,G,z!==null?z.actualStartTime:X),J=z}}function wz(_,J,$,q,G,X){var z=P5(),B=f4(),I=v4(),f=j4(),e=L6;G&&(J.mode&q0)!==a1&&0<J.actualStartTime&&(J.flags&1)!==0&&H$(J,J.actualStartTime,X,I2,$);var J1=J.flags;switch(J.tag){case 0:case 11:case 15:A7(_,J,$,q,G,X),Uz(J,U5);break;case 23:break;case 22:var d=J.stateNode;J.memoizedState!==null?d._visibility&M3?A7(_,J,$,q,G,X):q_(_,J,$,q,X):(d._visibility|=M3,A7(_,J,$,q,G,X)),G&&J1&2048&&xG(J.alternate,J);break;case 24:A7(_,J,$,q,G,X),G&&J1&2048&&mG(J.alternate,J);break;default:A7(_,J,$,q,G,X)}(J.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(J,p1,d1,r0,c0),N5(z),S4(B),c0=I,n0=f,L6=e}function q_(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var X=J.child;X!==null;){J=X.sibling;var z=_,B=$,I=q,f=J!==null?J.actualStartTime:G,e=L6;(X.mode&q0)!==a1&&0<X.actualStartTime&&(X.flags&1)!==0&&H$(X,X.actualStartTime,f,I2,B);var J1=X.flags;switch(X.tag){case 22:q_(z,X,B,I,f),J1&2048&&xG(X.alternate,X);break;case 24:q_(z,X,B,I,f),J1&2048&&mG(X.alternate,X);break;default:q_(z,X,B,I,f)}L6=e,X=J}}function M7(_,J,$){if(_.subtreeFlags&a_)for(_=_.child;_!==null;)Pz(_,J,$),_=_.sibling}function Pz(_,J,$){switch(_.tag){case 26:M7(_,J,$),_.flags&a_&&_.memoizedState!==null&&Gw($,z4,_.memoizedState,_.memoizedProps);break;case 5:M7(_,J,$);break;case 3:case 4:var q=z4;z4=$Q(_.stateNode.containerInfo),M7(_,J,$),z4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=a_,a_=16777216,M7(_,J,$),a_=q):M7(_,J,$));break;default:M7(_,J,$)}}function Nz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function U_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=P5();y2=q,Sz(q,_),(q.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(q,p1,d1,"Unmount"),N5(G)}Nz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Cz(_),_=_.sibling}function Cz(_){var J=P5(),$=f4(),q=v4(),G=j4();switch(_.tag){case 0:case 11:case 15:U_(_),_.flags&2048&&uG(_,_.return,U5|s5);break;case 3:var X=Y3();U_(_),_.stateNode.passiveEffectDuration+=R$(X);break;case 12:X=Y3(),U_(_),_.stateNode.passiveEffectDuration+=i9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&M3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~M3,s$(_),(_.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(_,p1,d1,"Disconnect")):U_(_);break;default:U_(_)}(_.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(_,p1,d1,r0,c0),N5(J),S4($),n0=G,c0=q}function s$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=P5();y2=q,Sz(q,_),(q.mode&q0)!==a1&&0<=p1&&0<=d1&&0.05<d1-p1&&P4(q,p1,d1,"Unmount"),N5(G)}Nz(_)}for(_=_.child;_!==null;)fz(_),_=_.sibling}function fz(_){var J=P5(),$=f4(),q=v4(),G=j4();switch(_.tag){case 0:case 11:case 15:uG(_,_.return,U5),s$(_);break;case 22:var X=_.stateNode;X._visibility&M3&&(X._visibility&=~M3,s$(_));break;default:s$(_)}(_.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(_,p1,d1,r0,c0),N5(J),S4($),n0=G,c0=q}function Sz(_,J){for(;y2!==null;){var $=y2,q=$,G=J,X=P5(),z=f4(),B=v4(),I=j4();switch(q.tag){case 0:case 11:case 15:uG(q,G,U5);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&Q8(G));break;case 24:l9(q.memoizedState.cache)}if((q.mode&q0)!==a1&&0<=p1&&0<=d1&&(n0||0.05<r0)&&N4(q,p1,d1,r0,c0),N5(X),S4(z),n0=I,c0=B,q=$.child,q!==null)q.return=$,y2=q;else _:for($=_;y2!==null;){if(q=y2,X=q.sibling,z=q.return,Wz(q),q===$){y2=null;break _}if(X!==null){X.return=z,y2=X;break _}y2=z}}}function TI(){mP.forEach(function(_){return _()})}function vz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||Y1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function f5(_){if((R0&w2)!==k2&&G0!==0)return G0&-G0;var J=Y1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),aG()):q1()}function jz(){if(A5===0)if((G0&536870912)===0||B0){var _=WQ;WQ<<=1,(WQ&3932160)===0&&(WQ=262144),A5=_}else A5=536870912;return _=k5.current,_!==null&&(_.flags|=32),A5}function o0(_,J,$){if(Q9&&console.error("useInsertionEffect must not schedule updates."),vF&&(eQ=!0),_===u0&&(v0===w8||v0===P8)||_.cancelPendingCommit!==null)R7(_,0),Z6(_,G0,A5,!1);if(R2(_,$),(R0&w2)!==k2&&_===u0){if(g4)switch(J.tag){case 0:case 11:case 15:_=X0&&m(X0)||"Unknown",QA.has(_)||(QA.add(_),J=m(J)||"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",J,_,_));break;case 1:$A||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),$A=!0)}}else c4&&G3(_,J,$),vI(J),_===u0&&((R0&w2)===k2&&(S6|=$),a0===N6&&Z6(_,G0,A5,!1)),E4(_)}function Vz(_,J,$){if((R0&(w2|u5))!==k2)throw Error("Should not already be working.");if(G0!==0&&X0!==null){var q=X0,G=j2();switch(sL){case o_:case w8:var X=D_;h0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,G,g5,void 0,"primary-light")):console.timeStamp("Suspended",X,G,g5,void 0,"primary-light"));break;case P8:X=D_,h0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,G,g5,void 0,"primary-light")):console.timeStamp("Action",X,G,g5,void 0,"primary-light"));break;default:h0&&(q=G-D_,3>q||console.timeStamp("Blocked",D_,G,g5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||b2(_,J))?OI(_,J):pG(_,J,!0);var z=$;do{if(X===v3){J9&&!$&&Z6(_,J,0,!1),J=v0,D_=Y2(),sL=J;break}else{if(q=j2(),G=_.current.alternate,z&&!RI(G)){I5(J),G=V2,X=q,!h0||X<=G||(Q2?Q2.run(console.timeStamp.bind(console,"Teared Render",G,X,W0,z0,"error")):console.timeStamp("Teared Render",G,X,W0,z0,"error")),X8(J,q),X=pG(_,J,!1),z=!1;continue}if(X===I8){if(z=J,_.errorRecoveryDisabledLanes&z)var B=0;else B=_.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){I5(J),PU(V2,q,J,Q2),X8(J,q),J=B;_:{q=_,X=z,z=e_;var I=q.current.memoizedState.isDehydrated;if(I&&(R7(q,B).flags|=256),B=pG(q,B,!1),B!==I8){if(OF&&!I){q.errorRecoveryDisabledLanes|=X,S6|=X,X=N6;break _}q=G5,G5=z,q!==null&&(G5===null?G5=q:G5.push.apply(G5,q))}X=B}if(z=!1,X!==I8)continue;else q=j2()}}if(X===t_){I5(J),PU(V2,q,J,Q2),X8(J,q),R7(_,0),Z6(_,J,0,!0);break}_:{switch($=_,X){case v3:case t_:throw Error("Root did not complete. This is a bug in React.");case N6:if((J&4194048)!==J)break;case iQ:I5(J),VH(V2,q,J,Q2),X8(J,q),G=J,(G&127)!==0?jQ=q:(G&4194048)!==0&&(VQ=q),Z6($,J,A5,!C6);break _;case I8:G5=null;break;case lQ:case cB:break;default:throw Error("Unknown root exit status.")}if(Y1.actQueue!==null)cG($,G,J,G5,_J,aQ,A5,S6,N8,X,null,null,V2,q);else{if((J&62914560)===J&&(z=sQ+dB-j2(),10<z)){if(Z6($,J,A5,!C6),u2($,0,!0)!==0)break _;W4=J,$.timeoutHandle=HA(yz.bind(null,$,G,G5,_J,aQ,J,A5,S6,N8,C6,X,"Throttled",V2,q),z);break _}yz($,G,G5,_J,aQ,J,A5,S6,N8,C6,X,null,V2,q)}}}break}while(1);E4(_)}function yz(_,J,$,q,G,X,z,B,I,f,e,J1,d,Z1){_.timeoutHandle=j8;var N1=J.subtreeFlags,j1=null;if(N1&8192||(N1&16785408)===16785408){if(j1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:F3},Pz(J,X,j1),N1=(X&62914560)===X?sQ-j2():(X&4194048)===X?iB-j2():0,N1=Zw(j1,N1),N1!==null){W4=X,_.cancelPendingCommit=N1(cG.bind(null,_,J,X,$,q,G,z,B,I,e,j1,j1.waitingForViewTransition?"Waiting for the previous Animation":0<j1.count?0<j1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":j1.imgCount===1?"Suspended on an Image":0<j1.imgCount?"Suspended on Images":null,d,Z1)),Z6(_,X,z,!f);return}}cG(_,J,X,$,q,G,z,B,I,e,j1,J1,d,Z1)}function RI(_){for(var J=_;;){var $=J.tag;if(($===0||$===11||$===15)&&J.flags&16384&&($=J.updateQueue,$!==null&&($=$.stores,$!==null)))for(var q=0;q<$.length;q++){var G=$[q],X=G.getSnapshot;G=G.value;try{if(!$5(X(),G))return!1}catch(z){return!1}}if($=J.child,J.subtreeFlags&16384&&$!==null)$.return=J,J=$;else{if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return!0;J=J.return}J.sibling.return=J.return,J=J.sibling}}return!0}function Z6(_,J,$,q){J&=~IF,J&=~S6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var X=31-e2(G),z=1<<X;q[X]=-1,G&=~z}$!==0&&X5(_,$,J)}function T7(){return(R0&(w2|u5))===k2?(F_(0,!1),!1):!0}function gG(){if(X0!==null){if(v0===B5)var _=X0.return;else _=X0,A$(),nU(_),d7=null,c_=0,_=X0;for(;_!==null;)Qz(_.alternate,_),_=_.return;X0=null}}function X8(_,J){(_&127)!==0&&(R6=J),(_&4194048)!==0&&(a4=J),(_&62914560)!==0&&(rL=J),(_&2080374784)!==0&&(aL=J)}function R7(_,J){h0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",z0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",z0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",z0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",z0,"primary-light"));var $=V2;if(V2=Y2(),G0!==0&&0<$){if(I5(G0),a0===lQ||a0===N6)VH($,V2,J,Q2);else{var q=V2,G=Q2;if(h0&&!(q<=$)){var X=(J&738197653)===J?"tertiary-dark":"primary-dark",z=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,z,$,q,W0,z0,X)):console.timeStamp(z,$,q,W0,z0,X)}}X8(G0,V2)}if($=Q2,Q2=null,(J&127)!==0){Q2=V_,G=0<=r4&&r4<R6?R6:r4,q=0<=W8&&W8<R6?R6:W8,X=0<=q?q:0<=G?G:V2,0<=jQ?(I5(2),yH(jQ,X,J,$)):(yQ&127)!==0&&(I5(2),p9(R6,X,P3)),$=G;var B=q,I=y_,f=0<c7,e=O6===j_,J1=O6===vQ;if(G=V2,q=V_,X=_F,z=JF,h0){if(W0="Blocking",0<$?$>G&&($=G):$=G,0<B?B>$&&(B=$):B=$,I!==null&&$>B){var d=f?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+I,B,$,W0,z0,d)):console.timeStamp(f?"Consecutive":"Event: "+I,B,$,W0,z0,d)}G>$&&(B=e?"error":(J&738197653)===J?"tertiary-light":"primary-light",e=J1?"Promise Resolved":e?"Cascading Update":5<G-$?"Update Blocked":"Update",J1=[],z!=null&&J1.push(["Component name",z]),X!=null&&J1.push(["Method name",X]),$={start:$,end:G,detail:{devtools:{properties:J1,track:W0,trackGroup:z0,color:B}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}r4=-1.1,O6=0,JF=_F=null,jQ=-1.1,c7=W8,W8=-1.1,R6=Y2()}if((J&4194048)!==0&&(Q2=k_,G=0<=w3&&w3<a4?a4:w3,$=0<=r5&&r5<a4?a4:r5,q=0<=I6&&I6<a4?a4:I6,X=0<=q?q:0<=$?$:V2,0<=VQ?(I5(256),yH(VQ,X,J,Q2)):(yQ&4194048)!==0&&(I5(256),p9(a4,X,P3)),J1=q,B=L8,I=0<w6,f=$F===vQ,X=V2,q=k_,z=iL,e=dL,h0&&(W0="Transition",0<$?$>X&&($=X):$=X,0<G?G>$&&(G=$):G=$,0<J1?J1>G&&(J1=G):J1=G,G>J1&&B!==null&&(d=I?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+B,J1,G,W0,z0,d)):console.timeStamp(I?"Consecutive":"Event: "+B,J1,G,W0,z0,d)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,W0,z0,"primary-dark")):console.timeStamp("Action",G,$,W0,z0,"primary-dark")),X>$&&(G=f?"Promise Resolved":5<X-$?"Update Blocked":"Update",J1=[],e!=null&&J1.push(["Component name",e]),z!=null&&J1.push(["Method name",z]),$={start:$,end:X,detail:{devtools:{properties:J1,track:W0,trackGroup:z0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),r5=w3=-1.1,$F=0,VQ=-1.1,w6=I6,I6=-1.1,a4=Y2()),(J&62914560)!==0&&(yQ&62914560)!==0&&(I5(4194304),p9(rL,V2,P3)),(J&2080374784)!==0&&(yQ&2080374784)!==0&&(I5(268435456),p9(aL,V2,P3)),$=_.timeoutHandle,$!==j8&&(_.timeoutHandle=j8,eP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),W4=0,gG(),u0=_,X0=$=X3(_.current,null),G0=J,v0=B5,b5=null,C6=!1,J9=b2(_,J),OF=!1,a0=v3,N8=A5=IF=S6=f6=0,G5=e_=null,aQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-e2(q),X=1<<G,J|=_[G],q&=~X;return t4=J,Y$(),_=xL(),1000<_-hL&&(Y1.recentlyCreatedOwnerStacks=0,hL=_),H4.discardPendingWarnings(),$}function kz(_,J){t1=null,Y1.H=r_,Y1.getCurrentStack=null,g4=!1,j5=null,J===i7||J===bQ?(J=_Y(),v0=o_):J===GF?(J=_Y(),v0=lB):v0=J===BF?RF:J!==null&&typeof J==="object"&&typeof J.then==="function"?n_:dQ,b5=J;var $=X0;$===null?(a0=t_,p$(_,w5(J,_.current))):$.mode&q0&&xU($)}function Dz(){var _=k5.current;return _===null?!0:(G0&4194048)===G0?a5===null?!0:!1:(G0&62914560)===G0||(G0&536870912)!==0?_===a5:!1}function uz(){var _=Y1.H;return Y1.H=r_,_===null?r_:_}function bz(){var _=Y1.A;return Y1.A=xP,_}function t$(_){Q2===null&&(Q2=_._debugTask==null?null:_._debugTask)}function o$(){a0=N6,C6||(G0&4194048)!==G0&&k5.current!==null||(J9=!0),(f6&134217727)===0&&(S6&134217727)===0||u0===null||Z6(u0,G0,A5,!1)}function pG(_,J,$){var q=R0;R0|=w2;var G=uz(),X=bz();if(u0!==_||G0!==J){if(c4){var z=_.memoizedUpdaters;0<z.size&&(Z_(_,G0),z.clear()),O5(_,J)}_J=null,R7(_,J)}J=!1,z=a0;_:do try{if(v0!==B5&&X0!==null){var B=X0,I=b5;switch(v0){case RF:gG(),z=iQ;break _;case o_:case w8:case P8:case n_:k5.current===null&&(J=!0);var f=v0;if(v0=B5,b5=null,O7(_,B,I,f),$&&J9){z=v3;break _}break;default:f=v0,v0=B5,b5=null,O7(_,B,I,f)}}Ez(),z=a0;break}catch(e){kz(_,e)}while(1);return J&&_.shellSuspendCounter++,A$(),R0=q,Y1.H=G,Y1.A=X,X0===null&&(u0=null,G0=0,Y$()),z}function Ez(){for(;X0!==null;)hz(X0)}function OI(_,J){var $=R0;R0|=w2;var q=uz(),G=bz();if(u0!==_||G0!==J){if(c4){var X=_.memoizedUpdaters;0<X.size&&(Z_(_,G0),X.clear()),O5(_,J)}_J=null,tQ=j2()+rB,R7(_,J)}else J9=b2(_,J);_:do try{if(v0!==B5&&X0!==null)J:switch(J=X0,X=b5,v0){case dQ:v0=B5,b5=null,O7(_,J,X,dQ);break;case w8:case P8:if(nH(X)){v0=B5,b5=null,xz(J);break}J=function(){v0!==w8&&v0!==P8||u0!==_||(v0=rQ),E4(_)},X.then(J,J);break _;case o_:v0=rQ;break _;case lB:v0=TF;break _;case rQ:nH(X)?(v0=B5,b5=null,xz(J)):(v0=B5,b5=null,O7(_,J,X,rQ));break;case TF:var z=null;switch(X0.tag){case 26:z=X0.memoizedState;case 5:case 27:var B=X0;if(z?VW(z):B.stateNode.complete){v0=B5,b5=null;var I=B.sibling;if(I!==null)X0=I;else{var f=B.return;f!==null?(X0=f,n$(f)):X0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}v0=B5,b5=null,O7(_,J,X,TF);break;case n_:v0=B5,b5=null,O7(_,J,X,n_);break;case RF:gG(),a0=iQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y1.actQueue!==null?Ez():II();break}catch(e){kz(_,e)}while(1);if(A$(),Y1.H=q,Y1.A=G,R0=$,X0!==null)return v3;return u0=null,G0=0,Y$(),a0}function II(){for(;X0!==null&&!Rw();)hz(X0)}function hz(_){var J=_.alternate;(_.mode&q0)!==a1?(hU(_),J=z1(_,yG,J,_,t4),xU(_)):J=z1(_,yG,J,_,t4),_.memoizedProps=_.pendingProps,J===null?n$(_):X0=J}function xz(_){var J=z1(_,wI,_);_.memoizedProps=_.pendingProps,J===null?n$(_):X0=J}function wI(_){var J=_.alternate,$=(_.mode&q0)!==a1;switch($&&hU(_),_.tag){case 15:case 0:J=tY(J,_,_.pendingProps,_.type,void 0,G0);break;case 11:J=tY(J,_,_.pendingProps,_.type.render,_.ref,G0);break;case 5:nU(_);default:Qz(J,_),_=X0=hH(_,t4),J=yG(J,_,t4)}return $&&xU(_),J}function O7(_,J,$,q){A$(),nU(J),d7=null,c_=0;var G=J.return;try{if(ZI(_,G,J,$,G0)){a0=t_,p$(_,w5($,_.current)),X0=null;return}}catch(X){if(G!==null)throw X0=G,X;a0=t_,p$(_,w5($,_.current)),X0=null;return}if(J.flags&32768){if(B0||q===dQ)_=!0;else if(J9||(G0&536870912)!==0)_=!1;else if(C6=_=!0,q===w8||q===P8||q===o_||q===n_)q=k5.current,q!==null&&q.tag===13&&(q.flags|=16384);mz(J,_)}else n$(J)}function n$(_){var J=_;do{if((J.flags&32768)!==0){mz(J,C6);return}var $=J.alternate;if(_=J.return,hU(J),$=z1(J,KI,$,J,t4),(J.mode&q0)!==a1&&rH(J),$!==null){X0=$;return}if(J=J.sibling,J!==null){X0=J;return}X0=J=_}while(J!==null);a0===v3&&(a0=cB)}function mz(_,J){do{var $=HI(_.alternate,_);if($!==null){$.flags&=32767,X0=$;return}if((_.mode&q0)!==a1){rH(_),$=_.actualDuration;for(var q=_.child;q!==null;)$+=q.actualDuration,q=q.sibling;_.actualDuration=$}if($=_.return,$!==null&&($.flags|=32768,$.subtreeFlags=0,$.deletions=null),!J&&(_=_.sibling,_!==null)){X0=_;return}X0=_=$}while(_!==null);a0=iQ,X0=null}function cG(_,J,$,q,G,X,z,B,I,f,e,J1,d,Z1){_.cancelPendingCommit=null;do G_();while(A2!==j6);if(H4.flushLegacyContextWarning(),H4.flushPendingUnsafeLifecycleWarnings(),(R0&(w2|u5))!==k2)throw Error("Should not already be working.");if(I5($),f===I8?PU(d,Z1,$,Q2):q!==null?aO(d,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,Q2):rO(d,Z1,$,Q2),J!==null){if($===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),J===_.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(X=J.lanes|J.childLanes,X|=sZ,I4(_,$,X,z,B,I),_===u0&&(X0=u0=null,G0=0),$9=J,V6=_,W4=$,NF=X,fF=G,eB=q,CF=Z1,_A=J1,L4=oQ,JA=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,SI(f7,function(){return GJ=window.event,L4===oQ&&(L4=PF),iz(),null})):(_.callbackNode=null,_.callbackPriority=0),I3=null,T6=Y2(),J1!==null&&sO(Z1,T6,J1,Q2),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null,G=C0.p,C0.p=V5,z=R0,R0|=u5;try{AI(_,J,$)}finally{R0=z,C0.p=G,Y1.T=q}}A2=sB,gz(),pz(),cz()}}function gz(){if(A2===sB){A2=j6;var _=V6,J=$9,$=W4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null;var G=C0.p;C0.p=V5;var X=R0;R0|=u5;try{e7=$,_9=_,O$(),Mz(J,_),_9=e7=null,$=hF;var z=SH(_.containerInfo),B=$.focusedElem,I=$.selectionRange;if(z!==B&&B&&B.ownerDocument&&fH(B.ownerDocument.documentElement,B)){if(I!==null&&OU(B)){var{start:f,end:e}=I;if(e===void 0&&(e=f),"selectionStart"in B)B.selectionStart=f,B.selectionEnd=Math.min(e,B.value.length);else{var J1=B.ownerDocument||document,d=J1&&J1.defaultView||window;if(d.getSelection){var Z1=d.getSelection(),N1=B.textContent.length,j1=Math.min(I.start,N1),E0=I.end===void 0?j1:Math.min(I.end,N1);!Z1.extend&&j1>E0&&(z=E0,E0=j1,j1=z);var M0=CH(B,j1),i=CH(B,E0);if(M0&&i&&(Z1.rangeCount!==1||Z1.anchorNode!==M0.node||Z1.anchorOffset!==M0.offset||Z1.focusNode!==i.node||Z1.focusOffset!==i.offset)){var r=J1.createRange();r.setStart(M0.node,M0.offset),Z1.removeAllRanges(),j1>E0?(Z1.addRange(r),Z1.extend(i.node,i.offset)):(r.setEnd(i.node,i.offset),Z1.addRange(r))}}}}J1=[];for(Z1=B;Z1=Z1.parentNode;)Z1.nodeType===1&&J1.push({element:Z1,left:Z1.scrollLeft,top:Z1.scrollTop});typeof B.focus==="function"&&B.focus();for(B=0;B<J1.length;B++){var n=J1[B];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}zq=!!EF,hF=EF=null}finally{R0=X,C0.p=G,Y1.T=q}}_.current=J,A2=tB}}function pz(){if(A2===tB){A2=j6;var _=JA;if(_!==null){T6=Y2();var J=O3,$=T6;!h0||$<=J||(P3?P3.run(console.timeStamp.bind(console,_,J,$,W0,z0,"secondary-light")):console.timeStamp(_,J,$,W0,z0,"secondary-light"))}_=V6,J=$9,$=W4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=Y1.T,Y1.T=null;var G=C0.p;C0.p=V5;var X=R0;R0|=u5;try{e7=$,_9=_,O$(),zz(_,J.alternate,J),_9=e7=null}finally{R0=X,C0.p=G,Y1.T=q}}_=CF,J=_A,O3=Y2(),_=J===null?_:T6,J=O3,$=L4===wF,q=Q2,I3!==null?kH(_,J,I3,!1,q):!h0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,W0,z0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,W0,z0,$?"error":"secondary-dark")),A2=oB}}function cz(){if(A2===nB||A2===oB){if(A2===nB){var _=O3;O3=Y2();var J=O3,$=L4===wF;!h0||J<=_||(P3?P3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,W0,z0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,W0,z0,$?" error":"secondary-light")),L4!==wF&&(L4=aB)}A2=j6,Ow(),_=V6;var q=$9;J=W4,$=eB;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?A2=nQ:(A2=j6,$9=V6=null,lz(_,_.pendingLanes),C8=0,$J=null);var X=_.pendingLanes;if(X===0&&(v6=null),G||sz(_),X=j(J),q=q.stateNode,i2&&typeof i2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(X){case V5:var B=fZ;break;case X4:B=SZ;break;case l4:B=f7;break;case BQ:B=vZ;break;default:B=f7}i2.onCommitFiberRoot(S7,q,B,z)}catch(J1){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",J1))}if(c4&&_.memoizedUpdaters.clear(),TI(),$!==null){z=Y1.T,B=C0.p,C0.p=V5,Y1.T=null;try{var I=_.onRecoverableError;for(q=0;q<$.length;q++){var f=$[q],e=PI(f.stack);z1(f.source,I,f.value,e)}}finally{Y1.T=z,C0.p=B}}(W4&3)!==0&&G_(),E4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(DQ=!0,_===SF?JJ++:(JJ=0,SF=_)):JJ=0,G||X8(J,O3),F_(0,!1)}}function PI(_){return _={componentStack:_},Object.defineProperty(_,"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.')}}),_}function lz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,l9(J)))}function G_(){return gz(),pz(),cz(),iz()}function iz(){if(A2!==nQ)return!1;var _=V6,J=NF;NF=0;var $=j(W4),q=l4===0||l4>$?l4:$;$=Y1.T;var G=C0.p;try{C0.p=q,Y1.T=null;var X=fF;fF=null,q=V6;var z=W4;if(A2=j6,$9=V6=null,W4=0,(R0&(w2|u5))!==k2)throw Error("Cannot flush passive effects while already rendering.");I5(z),vF=!0,eQ=!1;var B=0;if(I3=null,B=j2(),L4===aB)p9(O3,B,P3);else{var I=O3,f=B,e=L4===PF;!h0||f<=I||(Q2?Q2.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",I,f,W0,z0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",I,f,W0,z0,"secondary-light"))}I=R0,R0|=u5;var J1=q.current;O$(),Cz(J1);var d=q.current;J1=CF,O$(),Iz(q,d,z,X,J1),sz(q),R0=I;var Z1=j2();if(d=B,J1=Q2,I3!==null?kH(d,Z1,I3,!0,J1):!h0||Z1<=d||(J1?J1.run(console.timeStamp.bind(console,"Remaining Effects",d,Z1,W0,z0,"secondary-dark")):console.timeStamp("Remaining Effects",d,Z1,W0,z0,"secondary-dark")),X8(z,Z1),F_(0,!1),eQ?q===$J?C8++:(C8=0,$J=q):C8=0,eQ=vF=!1,i2&&typeof i2.onPostCommitFiberRoot==="function")try{i2.onPostCommitFiberRoot(S7,q)}catch(j1){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",j1))}var N1=q.current.stateNode;return N1.effectDuration=0,N1.passiveEffectDuration=0,!0}finally{C0.p=G,Y1.T=$,lz(_,J)}}function dz(_,J,$){J=w5($,J),aH(J),J=OG(_.stateNode,J,2),_=Q6(_,J,2),_!==null&&(R2(_,2),E4(_))}function N0(_,J,$){if(Q9=!1,_.tag===3)dz(_,_,$);else{for(;J!==null;){if(J.tag===3){dz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(v6===null||!v6.has(q))){_=w5($,_),aH(_),$=IG(2),q=Q6(J,$,2),q!==null&&(wG($,q,J,_),R2(q,2),E4(q));return}}J=J.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.
154
154
 
155
155
  Error message:
156
156
 
157
- %s`,$)}}function lG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new hP;var G=new Set;q.set(J,G)}else G=q.get(J),G===void 0&&(G=new Set,q.set(J,G));G.has($)||(OF=!0,G.add($),q=II.bind(null,_,J,$),D4&&Q_(_,$),J.then(q,q))}function II(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>h4&&(H6=h4=$2(),f_=fQ("Promise Resolved"),Y6=SQ):($&4194048)!==0&&0>E5&&(x4=E5=$2(),v_=fQ("Promise Resolved"),$F=SQ),Sz()&&Y1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,$)}}function lG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new gP;var G=new Set;q.set(J,G)}else G=q.get(J),G===void 0&&(G=new Set,q.set(J,G));G.has($)||(OF=!0,G.add($),q=NI.bind(null,_,J,$),c4&&Z_(_,$),J.then(q,q))}function NI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>r4&&(R6=r4=Y2(),V_=SQ("Promise Resolved"),O6=vQ):($&4194048)!==0&&0>r5&&(a4=r5=Y2(),k_=SQ("Promise Resolved"),$F=vQ),vz()&&Y1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
158
 
159
159
  When testing, code that resolves suspended data should be wrapped into act(...):
160
160
 
@@ -163,7 +163,7 @@ act(() => {
163
163
  });
164
164
  /* assert on the output */
165
165
 
166
- 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`),f0===_&&(J0&$)===$&&(g0===B6||g0===cQ&&(J0&62914560)===J0&&R2()-aQ<iB?(Y0&W2)===w2&&W7(_,0):IF|=$,A8===J0&&(A8=0)),S4(_)}function dz(_,J){J===0&&(J=M2()),_=k2(_,J),_!==null&&(_2(_,J),S4(_))}function wI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),dz(_,$)}function PI(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:G}=_;G!==null&&($=G.retryLane);break;case 19:q=_.stateNode;break;case 22:q=_.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}q!==null&&q.delete(J),dz(_,$)}function iG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,X=G.type===XQ;X=$||X,G.tag!==22?G.flags&67108864?X&&A1(G,rz,q,G):iG(q,G,X):G.memoizedState===null&&(X&&G.flags&8192?A1(G,rz,q,G):G.subtreeFlags&67108864&&A1(G,iG,q,G,X)),J=J.sibling}}function rz(_,J){o1(!0);try{Tz(J),Cz(J),Rz(_,J.alternate,J,!1),Iz(_,J,0,null,!1,0)}finally{o1(!1)}}function az(_){var J=!0;_.current.mode&(u2|_4)||(J=!1),iG(_,_.current,J)}function sz(_){if((Y0&W2)===w2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=x(_)||"ReactComponent",eQ!==null){if(eQ.has(J))return;eQ.add(J)}else eQ=new Set([J]);A1(_,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 Q_(_,J){D4&&_.memoizedUpdaters.forEach(function($){o4(_,$,J)})}function NI(_,J){var $=Y1.actQueue;return $!==null?($.push(J),gP):CZ(_,J)}function CI(_){Sz()&&Y1.actQueue===null&&A1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
166
+ 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`),u0===_&&(G0&$)===$&&(a0===N6||a0===lQ&&(G0&62914560)===G0&&j2()-sQ<dB?(R0&w2)===k2&&R7(_,0):IF|=$,N8===G0&&(N8=0)),E4(_)}function rz(_,J){J===0&&(J=T2()),_=l2(_,J),_!==null&&(R2(_,J),E4(_))}function CI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),rz(_,$)}function fI(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:G}=_;G!==null&&($=G.retryLane);break;case 19:q=_.stateNode;break;case 22:q=_.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}q!==null&&q.delete(J),rz(_,$)}function iG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,X=G.type===KQ;X=$||X,G.tag!==22?G.flags&67108864?X&&z1(G,az,q,G):iG(q,G,X):G.memoizedState===null&&(X&&G.flags&8192?z1(G,az,q,G):G.subtreeFlags&67108864&&z1(G,iG,q,G,X)),J=J.sibling}}function az(_,J){_0(!0);try{Rz(J),fz(J),Oz(_,J.alternate,J,!1),wz(_,J,0,null,!1,0)}finally{_0(!1)}}function sz(_){var J=!0;_.current.mode&(d2|K4)||(J=!1),iG(_,_.current,J)}function tz(_){if((R0&w2)===k2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=m(_)||"ReactComponent",_q!==null){if(_q.has(J))return;_q.add(J)}else _q=new Set([J]);z1(_,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 Z_(_,J){c4&&_.memoizedUpdaters.forEach(function($){G3(_,$,J)})}function SI(_,J){var $=Y1.actQueue;return $!==null?($.push(J),lP):CZ(_,J)}function vI(_){vz()&&Y1.actQueue===null&&z1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,16 +172,16 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- 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`,x(_))})}function S4(_){_!==n7&&_.next===null&&(n7===null?_q=n7=_:n7=n7.next=_),Jq=!0,Y1.actQueue!==null?yF||(yF=!0,ez()):jF||(jF=!0,ez())}function q_(_,J){if(!VF&&Jq){VF=!0;do{var $=!1;for(var q=_q;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var X=0;else{var{suspendedLanes:z,pingedLanes:B}=q;X=(1<<31-c2(42|_)+1)-1,X&=G&~(z&~B),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,nz(q,X))}else X=J0,X=N2(q,q===f0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==I8),(X&3)===0||A2(q,X)||($=!0,nz(q,X));q=q.next}}while($);VF=!1}}function fI(){$J=window.event,dG()}function dG(){Jq=yF=jF=!1;var _=0;w6!==0&&DI()&&(_=w6);for(var J=R2(),$=null,q=_q;q!==null;){var G=q.next,X=tz(q,J);if(X===0)q.next=null,$===null?_q=G:$.next=G,G===null&&(n7=$);else if($=q,_!==0||(X&3)!==0)Jq=!0;q=G}Z2!==O6&&Z2!==oQ||q_(_,!1),w6!==0&&(w6=0)}function tz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,X=_.pendingLanes&-62914561;0<X;){var z=31-c2(X),B=1<<z,w=G[z];if(w===-1){if((B&$)===0||(B&q)!==0)G[z]=C2(B,J)}else w<=J&&(_.expiredLanes|=B);X&=~B}if(J=f0,$=J0,$=N2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==I8),q=_.callbackNode,$===0||_===J&&(O0===L8||O0===B8)||_.cancelPendingCommit!==null)return q!==null&&rG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||A2(_,$)){if(J=$&-$,J!==_.callbackPriority||Y1.actQueue!==null&&q!==kF)rG(q);else return J;switch(I($)){case T5:case e5:$=SZ;break;case u4:$=O7;break;case LQ:$=vZ;break;default:$=O7}return q=oz.bind(null,_),Y1.actQueue!==null?(Y1.actQueue.push(q),$=kF):$=CZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&rG(q),_.callbackPriority=2,_.callbackNode=null,2}function oz(_,J){if(kQ=VQ=!1,$J=window.event,Z2!==O6&&Z2!==oQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(U4===tQ&&(U4=PF),$_()&&_.callbackNode!==$)return null;var q=J0;if(q=N2(_,_===f0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==I8),q===0)return null;return jz(_,q,J),tz(_,R2()),_.callbackNode!=null&&_.callbackNode===$?oz.bind(null,_):null}function nz(_,J){if($_())return null;VQ=kQ,kQ=!1,jz(_,J,!0)}function rG(_){_!==kF&&_!==null&&Bw(_)}function ez(){Y1.actQueue!==null&&Y1.actQueue.push(function(){return dG(),null}),oP(function(){(Y0&(W2|w5))!==w2?CZ(fZ,fI):dG()})}function aG(){if(w6===0){var _=F8;_===0&&(_=YQ,YQ<<=1,(YQ&261888)===0&&(YQ=256)),w6=_}return w6}function _W(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return M1(_,"action"),u9(""+_)}function JW(_,J){var $=J.ownerDocument.createElement("input");return $.name=J.name,$.value=J.value,_.id&&$.setAttribute("form",_.id),J.parentNode.insertBefore($,J),_=new FormData(_),$.parentNode.removeChild($),_}function SI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var X=_W((G[l2]||null).action),z=q.submitter;z&&(J=(J=z[l2]||null)?_W(J.formAction):z.getAttribute("formAction"),J!==null&&(X=J,z=null));var B=new RQ("action","action",null,q,G);_.push({event:B,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(w6!==0){var w=z?JW(G,z):new FormData(G),S={pending:!0,data:w,method:G.method,action:X};Object.freeze(S),WG($,S,null,w)}}else typeof X==="function"&&(B.preventDefault(),w=z?JW(G,z):new FormData(G),S={pending:!0,data:w,method:G.method,action:X},Object.freeze(S),WG($,S,X,w))},currentTarget:G}]})}}function n$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){iZ(q)}_.currentTarget=null}function $W(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,X=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var B=q[z],w=B.instance,S=B.currentTarget;if(B=B.listener,w!==G&&X.isPropagationStopped())break _;w!==null?A1(w,n$,X,B,S):n$(X,B,S),G=w}else for(z=0;z<q.length;z++){if(B=q[z],w=B.instance,S=B.currentTarget,B=B.listener,w!==G&&X.isPropagationStopped())break _;w!==null?A1(w,n$,X,B,S):n$(X,B,S),G=w}}}}function X0(_,J){DF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[jZ];$===void 0&&($=J[jZ]=new Set);var q=_+"__bubble";$.has(q)||(QW(J,_,2,!1),$.add(q))}function sG(_,J,$){DF.has(_)&&!J&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',_);var q=0;J&&(q|=4),QW($,_,q,J)}function tG(_){if(!_[$q]){_[$q]=!0,eW.forEach(function($){$!=="selectionchange"&&(DF.has($)||sG($,!1,_),sG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[$q]||(J[$q]=!0,sG("selectionchange",!1,J))}}function QW(_,J,$,q){switch(bW(J)){case T5:var G=Fw;break;case e5:G=Xw;break;default:G=YZ}$=G.bind(null,J,$,_),G=void 0,!uZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(G=!0),q?G!==void 0?_.addEventListener(J,$,{capture:!0,passive:G}):_.addEventListener(J,$,!0):G!==void 0?_.addEventListener(J,$,{passive:G}):_.addEventListener(J,$,!1)}function oG(_,J,$,q,G){var X=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var z=q.tag;if(z===3||z===4){var B=q.stateNode.containerInfo;if(B===G)break;if(z===4)for(z=q.return;z!==null;){var w=z.tag;if((w===3||w===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;B!==null;){if(z=R1(B),z===null)return;if(w=z.tag,w===5||w===6||w===26||w===27){q=X=z;continue _}B=B.parentNode}}q=q.return}WH(function(){var S=X,e=TU($),_1=[];_:{var r=bL.get(_);if(r!==void 0){var Z1=RQ,f1=_;switch(_){case"keypress":if(G$($)===0)break _;case"keydown":case"keyup":Z1=QP;break;case"focusin":f1="focus",Z1=xZ;break;case"focusout":f1="blur",Z1=xZ;break;case"beforeblur":case"afterblur":Z1=xZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z1=IL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=iw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=GP;break;case VL:case kL:case DL:Z1=aw;break;case uL:Z1=FP;break;case"scroll":case"scrollend":Z1=cw;break;case"wheel":Z1=KP;break;case"copy":case"cut":case"paste":Z1=tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=PL;break;case"toggle":case"beforetoggle":Z1=YP}var y1=(J&4)!==0,j0=!y1&&(_==="scroll"||_==="scrollend"),K0=y1?r!==null?r+"Capture":null:r;y1=[];for(var d=S,s;d!==null;){var n=d;if(s=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||s===null||K0===null||(n=b9(d,K0),n!=null&&y1.push(U_(d,n,s))),j0)break;d=d.return}0<y1.length&&(r=new Z1(r,f1,null,$,e),_1.push({event:r,listeners:y1}))}}if((J&7)===0){_:{if(r=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",r&&$!==B_&&(f1=$.relatedTarget||$.fromElement)&&(R1(f1)||f1[q6]))break _;if(Z1||r){if(r=e.window===e?e:(r=e.ownerDocument)?r.defaultView||r.parentWindow:window,Z1){if(f1=$.relatedTarget||$.toElement,Z1=S,f1=f1?R1(f1):null,f1!==null&&(j0=f(f1),y1=f1.tag,f1!==j0||y1!==5&&y1!==27&&y1!==6))f1=null}else Z1=null,f1=S;if(Z1!==f1){if(y1=IL,n="onMouseLeave",K0="onMouseEnter",d="mouse",_==="pointerout"||_==="pointerover")y1=PL,n="onPointerLeave",K0="onPointerEnter",d="pointer";if(j0=Z1==null?r:C1(Z1),s=f1==null?r:C1(f1),r=new y1(n,d+"leave",Z1,$,e),r.target=j0,r.relatedTarget=s,n=null,R1(e)===S&&(y1=new y1(K0,d+"enter",f1,$,e),y1.target=s,y1.relatedTarget=j0,n=y1),j0=n,Z1&&f1)J:{y1=vI,K0=Z1,d=f1,s=0;for(n=K0;n;n=y1(n))s++;n=0;for(var B1=d;B1;B1=y1(B1))n++;for(;0<s-n;)K0=y1(K0),s--;for(;0<n-s;)d=y1(d),n--;for(;s--;){if(K0===d||d!==null&&K0===d.alternate){y1=K0;break J}K0=y1(K0),d=y1(d)}y1=null}else y1=null;Z1!==null&&qW(_1,r,Z1,y1,!1),f1!==null&&j0!==null&&qW(_1,j0,f1,y1,!0)}}}_:{if(r=S?C1(S):window,Z1=r.nodeName&&r.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&r.type==="file")var S1=OH;else if(TH(r))if(jL)S1=gO;else{S1=xO;var s1=hO}else Z1=r.nodeName,!Z1||Z1.toLowerCase()!=="input"||r.type!=="checkbox"&&r.type!=="radio"?S&&D9(S.elementType)&&(S1=OH):S1=mO;if(S1&&(S1=S1(_,S))){RH(_1,S1,$,e);break _}s1&&s1(_,r,S),_==="focusout"&&S&&r.type==="number"&&S.memoizedProps.value!=null&&$7(r,"number",r.value)}switch(s1=S?C1(S):window,_){case"focusin":if(TH(s1)||s1.contentEditable==="true")v7=s1,gZ=S,w_=null;break;case"focusout":w_=gZ=v7=null;break;case"mousedown":pZ=!0;break;case"contextmenu":case"mouseup":case"dragend":pZ=!1,SH(_1,$,e);break;case"selectionchange":if(BP)break;case"keydown":case"keyup":SH(_1,$,e)}var x1;if(mZ)_:{switch(_){case"compositionstart":var E1="onCompositionStart";break _;case"compositionend":E1="onCompositionEnd";break _;case"compositionupdate":E1="onCompositionUpdate";break _}E1=void 0}else S7?AH(_,$)&&(E1="onCompositionEnd"):_==="keydown"&&$.keyCode===NL&&(E1="onCompositionStart");if(E1&&(CL&&$.locale!=="ko"&&(S7||E1!=="onCompositionStart"?E1==="onCompositionEnd"&&S7&&(x1=LH()):(U6=e,bZ=("value"in U6)?U6.value:U6.textContent,S7=!0)),s1=e$(S,E1),0<s1.length&&(E1=new wL(E1,_,null,$,e),_1.push({event:E1,listeners:s1}),x1?E1.data=x1:(x1=MH($),x1!==null&&(E1.data=x1)))),x1=WP?DO(_,$):uO(_,$))E1=e$(S,"onBeforeInput"),0<E1.length&&(s1=new nw("onBeforeInput","beforeinput",null,$,e),_1.push({event:s1,listeners:E1}),s1.data=x1);SI(_1,_,S,$,e)}$W(_1,J)})}function U_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function e$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,X=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||X===null||(G=b9(_,$),G!=null&&q.unshift(U_(_,G,X)),G=b9(_,J),G!=null&&q.push(U_(_,G,X))),_.tag===3)return q;_=_.return}return[]}function vI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function qW(_,J,$,q,G){for(var X=J._reactName,z=[];$!==null&&$!==q;){var B=$,w=B.alternate,S=B.stateNode;if(B=B.tag,w!==null&&w===q)break;B!==5&&B!==26&&B!==27||S===null||(w=S,G?(S=b9($,X),S!=null&&z.unshift(U_($,S,w))):G||(S=b9($,X),S!=null&&z.push(U_($,S,w)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function nG(_,J){jO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||RL||(RL=!0,_==="select"&&J.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",_):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",_));var $={registrationNameDependencies:$8,possibleRegistrationNames:yZ};D9(_)||typeof J.is==="string"||VO(_,J,$),J.contentEditable&&!J.suppressContentEditableWarning&&J.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function T2(_,J,$,q){J!==$&&($=e3($),e3(J)!==$&&(q[_]=J))}function jI(_,J,$){J.forEach(function(q){$[ZW(q)]=q==="style"?_Z(_):_.getAttribute(q)})}function v4(_,J){J===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",_,_,_):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",_,typeof J)}function UW(_,J){return _=_.namespaceURI===AQ||_.namespaceURI===P7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function e3(_){return g1(_)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",D1(_)),h1(_)),(typeof _==="string"?_:""+_).replace(pP,`
176
- `).replace(cP,"")}function GW(_,J){return J=e3(J),e3(_)===J?!0:!1}function N0(_,J,$,q,G,X){switch($){case"children":if(typeof q==="string")p3(q,J,!1),J==="body"||J==="textarea"&&q===""||g6(_,q);else if(typeof q==="number"||typeof q==="bigint")p3(""+q,J,!1),J!=="body"&&g6(_,""+q);break;case"className":e8(_,"class",q);break;case"tabIndex":e8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":e8(_,$,q);break;case"style":HH(_,q,X);break;case"data":if(J!=="object"){e8(_,"data",q);break}case"src":case"href":if(q===""&&(J!=="a"||$!=="href")){$==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$),_.removeAttribute($);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}M1(q,$),q=u9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||Uq||(Uq=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),G.target==null||qq||(qq=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):J==="input"||J==="button"?$==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):J!=="input"||G.type==="submit"||G.type==="image"||Qq?J!=="button"||G.type==null||G.type==="submit"||Qq?typeof q==="function"&&(G.name==null||UA||(UA=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),G.formEncType==null&&G.formMethod==null||Uq||(Uq=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),G.formTarget==null||qq||(qq=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Qq=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Qq=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):$==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof q==="function"){_.setAttribute($,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof X==="function"&&($==="formAction"?(J!=="input"&&N0(_,J,"name",G.name,G,null),N0(_,J,"formEncType",G.formEncType,G,null),N0(_,J,"formMethod",G.formMethod,G,null),N0(_,J,"formTarget",G.formTarget,G,null)):(N0(_,J,"encType",G.encType,G,null),N0(_,J,"method",G.method,G,null),N0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}M1(q,$),q=u9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&v4($,q),_.onclick=_3);break;case"onScroll":q!=null&&(typeof q!=="function"&&v4($,q),X0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&v4($,q),X0("scrollend",_));break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"multiple":_.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":_.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){_.removeAttribute("xlink:href");break}M1(q,$),$=u9(""+q),_.setAttributeNS(T8,"xlink:href",$);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(M1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||Gq[$]||(Gq[$]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",$));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q&&typeof q!=="function"&&typeof q!=="symbol"?_.setAttribute($,""):_.removeAttribute($);break;case"capture":case"download":q===!0?_.setAttribute($,""):q!==!1&&q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(M1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?(M1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(M1(q,$),_.setAttribute($,q));break;case"popover":X0("beforetoggle",_),X0("toggle",_),T0(_,"popover",q);break;case"xlinkActuate":a5(_,T8,"xlink:actuate",q);break;case"xlinkArcrole":a5(_,T8,"xlink:arcrole",q);break;case"xlinkRole":a5(_,T8,"xlink:role",q);break;case"xlinkShow":a5(_,T8,"xlink:show",q);break;case"xlinkTitle":a5(_,T8,"xlink:title",q);break;case"xlinkType":a5(_,T8,"xlink:type",q);break;case"xmlBase":a5(_,uF,"xml:base",q);break;case"xmlLang":a5(_,uF,"xml:lang",q);break;case"xmlSpace":a5(_,uF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),T0(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":GA||q==null||typeof q!=="object"||(GA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",q));default:!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"?($=YH($),T0(_,$,q)):$8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&v4($,q)}}function eG(_,J,$,q,G,X){switch($){case"style":HH(_,q,X);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?g6(_,q):(typeof q==="number"||typeof q==="bigint")&&g6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&v4($,q),X0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&v4($,q),X0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&v4($,q),_.onclick=_3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if($8.hasOwnProperty($))q!=null&&typeof q!=="function"&&v4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),X=_[l2]||null,X=X!=null?X[$]:null,typeof X==="function"&&_.removeEventListener(J,X,G),typeof q==="function")){typeof X!=="function"&&X!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):T0(_,$,q)}}}function v2(_,J,$){switch(nG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":X0("error",_),X0("load",_);var q=!1,G=!1,X;for(X in $)if($.hasOwnProperty(X)){var z=$[X];if(z!=null)switch(X){case"src":q=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:N0(_,J,X,z,$,null)}}G&&N0(_,J,"srcSet",$.srcSet,$,null),q&&N0(_,J,"src",$.src,$,null);return;case"input":w0("input",$),X0("invalid",_);var B=X=z=G=null,w=null,S=null;for(q in $)if($.hasOwnProperty(q)){var e=$[q];if(e!=null)switch(q){case"name":G=e;break;case"type":z=e;break;case"checked":w=e;break;case"defaultChecked":S=e;break;case"value":X=e;break;case"defaultValue":B=e;break;case"children":case"dangerouslySetInnerHTML":if(e!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:N0(_,J,q,e,$,null)}}rJ(_,$),N9(_,X,B,w,S,z,G,!1);return;case"select":w0("select",$),X0("invalid",_),q=z=X=null;for(G in $)if($.hasOwnProperty(G)&&(B=$[G],B!=null))switch(G){case"value":X=B;break;case"defaultValue":z=B;break;case"multiple":q=B;default:N0(_,J,G,B,$,null)}tJ(_,$),J=X,$=z,_.multiple=!!q,J!=null?h3(_,!!q,J,!1):$!=null&&h3(_,!!q,$,!0);return;case"textarea":w0("textarea",$),X0("invalid",_),X=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(B=$[z],B!=null))switch(z){case"value":q=B;break;case"defaultValue":G=B;break;case"children":X=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:N0(_,J,z,B,$,null)}oJ(_,$),C9(_,q,G,X);return;case"option":aJ(_,$);for(w in $)if($.hasOwnProperty(w)&&(q=$[w],q!=null))switch(w){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:N0(_,J,w,q,$,null)}return;case"dialog":X0("beforetoggle",_),X0("toggle",_),X0("cancel",_),X0("close",_);break;case"iframe":case"object":X0("load",_);break;case"video":case"audio":for(q=0;q<e_.length;q++)X0(e_[q],_);break;case"image":X0("error",_),X0("load",_);break;case"details":X0("toggle",_);break;case"embed":case"source":case"link":X0("error",_),X0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in $)if($.hasOwnProperty(S)&&(q=$[S],q!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:N0(_,J,S,q,$,null)}return;default:if(D9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&eG(_,J,e,q,$,void 0));return}}for(B in $)$.hasOwnProperty(B)&&(q=$[B],q!=null&&N0(_,J,B,q,$,null))}function yI(_,J,$,q){switch(nG(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,X=null,z=null,B=null,w=null,S=null,e=null;for(Z1 in $){var _1=$[Z1];if($.hasOwnProperty(Z1)&&_1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":w=_1;default:q.hasOwnProperty(Z1)||N0(_,J,Z1,null,q,_1)}}for(var r in q){var Z1=q[r];if(_1=$[r],q.hasOwnProperty(r)&&(Z1!=null||_1!=null))switch(r){case"type":X=Z1;break;case"name":G=Z1;break;case"checked":S=Z1;break;case"defaultChecked":e=Z1;break;case"value":z=Z1;break;case"defaultValue":B=Z1;break;case"children":case"dangerouslySetInnerHTML":if(Z1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Z1!==_1&&N0(_,J,r,Z1,q,_1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||qA||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),qA=!0),!J||q||QA||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),QA=!0),J7(_,z,B,w,S,e,X,G);return;case"select":Z1=z=B=r=null;for(X in $)if(w=$[X],$.hasOwnProperty(X)&&w!=null)switch(X){case"value":break;case"multiple":Z1=w;default:q.hasOwnProperty(X)||N0(_,J,X,null,q,w)}for(G in q)if(X=q[G],w=$[G],q.hasOwnProperty(G)&&(X!=null||w!=null))switch(G){case"value":r=X;break;case"defaultValue":B=X;break;case"multiple":z=X;default:X!==w&&N0(_,J,G,X,q,w)}q=B,J=z,$=Z1,r!=null?h3(_,!!J,r,!1):!!$!==!!J&&(q!=null?h3(_,!!J,q,!0):h3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=r=null;for(B in $)if(G=$[B],$.hasOwnProperty(B)&&G!=null&&!q.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:N0(_,J,B,null,q,G)}for(z in q)if(G=q[z],X=$[z],q.hasOwnProperty(z)&&(G!=null||X!=null))switch(z){case"value":r=G;break;case"defaultValue":Z1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==X&&N0(_,J,z,G,q,X)}nJ(_,r,Z1);return;case"option":for(var f1 in $)if(r=$[f1],$.hasOwnProperty(f1)&&r!=null&&!q.hasOwnProperty(f1))switch(f1){case"selected":_.selected=!1;break;default:N0(_,J,f1,null,q,r)}for(w in q)if(r=q[w],Z1=$[w],q.hasOwnProperty(w)&&r!==Z1&&(r!=null||Z1!=null))switch(w){case"selected":_.selected=r&&typeof r!=="function"&&typeof r!=="symbol";break;default:N0(_,J,w,r,q,Z1)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y1 in $)r=$[y1],$.hasOwnProperty(y1)&&r!=null&&!q.hasOwnProperty(y1)&&N0(_,J,y1,null,q,r);for(S in q)if(r=q[S],Z1=$[S],q.hasOwnProperty(S)&&r!==Z1&&(r!=null||Z1!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(r!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:N0(_,J,S,r,q,Z1)}return;default:if(D9(J)){for(var j0 in $)r=$[j0],$.hasOwnProperty(j0)&&r!==void 0&&!q.hasOwnProperty(j0)&&eG(_,J,j0,void 0,q,r);for(e in q)r=q[e],Z1=$[e],!q.hasOwnProperty(e)||r===Z1||r===void 0&&Z1===void 0||eG(_,J,e,r,q,Z1);return}}for(var K0 in $)r=$[K0],$.hasOwnProperty(K0)&&r!=null&&!q.hasOwnProperty(K0)&&N0(_,J,K0,null,q,r);for(_1 in q)r=q[_1],Z1=$[_1],!q.hasOwnProperty(_1)||r===Z1||r==null&&Z1==null||N0(_,J,_1,r,q,Z1)}function ZW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function _Z(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function FW(_,J,$){if(J!=null&&typeof J!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var q,G=q="",X;for(X in J)if(J.hasOwnProperty(X)){var z=J[X];z!=null&&typeof z!=="boolean"&&z!==""&&(X.indexOf("--")===0?(r1(z,X),q+=G+X+":"+(""+z).trim()):typeof z!=="number"||z===0||ML.has(X)?(r1(z,X),q+=G+X.replace(zL,"-$1").toLowerCase().replace(WL,"-ms-")+":"+(""+z).trim()):q+=G+X.replace(zL,"-$1").toLowerCase().replace(WL,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=e3(q),e3(J)!==q&&($.style=_Z(_)))}}function j5(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(M1(q,J),_===""+q)return}T2(J,_,q,X)}function XW(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null){switch(typeof q){case"function":case"symbol":return}if(!q)return}else switch(typeof q){case"function":case"symbol":break;default:if(q)return}T2(J,_,q,X)}function JZ(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(M1(q,$),_===""+q)return}T2(J,_,q,X)}function KW(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(M1(q,J),_===""+q))return}T2(J,_,q,X)}function $Z(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(M1(q,J),$=u9(""+q),_===$)return}T2(J,_,q,X)}function HW(_,J,$,q){for(var G={},X=new Set,z=_.attributes,B=0;B<z.length;B++)switch(z[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:X.add(z[B].name)}if(D9(J)){for(var w in $)if($.hasOwnProperty(w)){var S=$[w];if(S!=null){if($8.hasOwnProperty(w))typeof S!=="function"&&v4(w,S);else if($.suppressHydrationWarning!==!0)switch(w){case"children":typeof S!=="string"&&typeof S!=="number"||T2("children",_.textContent,S,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,S=S?S.__html:void 0,S!=null&&(S=UW(_,S),T2(w,z,S,G));continue;case"style":X.delete(w),FW(_,S,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":X.delete(w.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",w);continue;case"className":X.delete("class"),z=v5(_,"class",S),T2("className",z,S,G);continue;default:q.context===I3&&J!=="svg"&&J!=="math"?X.delete(w.toLowerCase()):X.delete(w),z=v5(_,w,S),T2(w,z,S,G)}}}}else for(S in $)if($.hasOwnProperty(S)&&(w=$[S],w!=null)){if($8.hasOwnProperty(S))typeof w!=="function"&&v4(S,w);else if($.suppressHydrationWarning!==!0)switch(S){case"children":typeof w!=="string"&&typeof w!=="number"||T2("children",_.textContent,w,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,w=w?w.__html:void 0,w!=null&&(w=UW(_,w),z!==w&&(G[S]={__html:z}));continue;case"className":j5(_,S,"class",w,X,G);continue;case"tabIndex":j5(_,S,"tabindex",w,X,G);continue;case"style":X.delete(S),FW(_,w,G);continue;case"multiple":X.delete(S),T2(S,_.multiple,w,G);continue;case"muted":X.delete(S),T2(S,_.muted,w,G);continue;case"autoFocus":X.delete("autofocus"),T2(S,_.autofocus,w,G);continue;case"data":if(J!=="object"){X.delete(S),z=_.getAttribute("data"),T2(S,z,w,G);continue}case"src":case"href":if(!(w!==""||J==="a"&&S==="href"||J==="object"&&S==="data")){S==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}$Z(_,S,S,w,X,G);continue;case"action":case"formAction":if(z=_.getAttribute(S),typeof w==="function"){X.delete(S.toLowerCase()),S==="formAction"?(X.delete("name"),X.delete("formenctype"),X.delete("formmethod"),X.delete("formtarget")):(X.delete("enctype"),X.delete("method"),X.delete("target"));continue}else if(z===lP){X.delete(S.toLowerCase()),T2(S,"function",w,G);continue}$Z(_,S,S.toLowerCase(),w,X,G);continue;case"xlinkHref":$Z(_,S,"xlink:href",w,X,G);continue;case"contentEditable":JZ(_,S,"contenteditable",w,X,G);continue;case"spellCheck":JZ(_,S,"spellcheck",w,X,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":JZ(_,S,S,w,X,G);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":XW(_,S,S.toLowerCase(),w,X,G);continue;case"capture":case"download":_:{B=_;var e=z=S,_1=G;if(X.delete(e),B=B.getAttribute(e),B===null)switch(typeof w){case"undefined":case"function":case"symbol":break _;default:if(w===!1)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":break;case"boolean":if(w===!0&&B==="")break _;break;default:if(M1(w,z),B===""+w)break _}T2(z,B,w,_1)}continue;case"cols":case"rows":case"size":case"span":_:{if(B=_,e=z=S,_1=G,X.delete(e),B=B.getAttribute(e),B===null)switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(w)||1>w)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(w)||1>w)&&(M1(w,z),B===""+w))break _}T2(z,B,w,_1)}continue;case"rowSpan":KW(_,S,"rowspan",w,X,G);continue;case"start":KW(_,S,S,w,X,G);continue;case"xHeight":j5(_,S,"x-height",w,X,G);continue;case"xlinkActuate":j5(_,S,"xlink:actuate",w,X,G);continue;case"xlinkArcrole":j5(_,S,"xlink:arcrole",w,X,G);continue;case"xlinkRole":j5(_,S,"xlink:role",w,X,G);continue;case"xlinkShow":j5(_,S,"xlink:show",w,X,G);continue;case"xlinkTitle":j5(_,S,"xlink:title",w,X,G);continue;case"xlinkType":j5(_,S,"xlink:type",w,X,G);continue;case"xmlBase":j5(_,S,"xml:base",w,X,G);continue;case"xmlLang":j5(_,S,"xml:lang",w,X,G);continue;case"xmlSpace":j5(_,S,"xml:space",w,X,G);continue;case"inert":w!==""||Gq[S]||(Gq[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),XW(_,S,S,w,X,G);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){B=YH(S),z=!1,q.context===I3&&J!=="svg"&&J!=="math"?X.delete(B.toLowerCase()):(e=S.toLowerCase(),e=MQ.hasOwnProperty(e)?MQ[e]||null:null,e!==null&&e!==S&&(z=!0,X.delete(e)),X.delete(B));_:if(e=_,_1=B,B=w,n4(_1))if(e.hasAttribute(_1))e=e.getAttribute(_1),M1(B,_1),B=e===""+B?B:e;else{switch(typeof B){case"function":case"symbol":break _;case"boolean":if(e=_1.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")break _}B=B===void 0?void 0:null}else B=void 0;z||T2(S,B,w,G)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&jI(_,X,G),Object.keys(G).length===0?null:G}function VI(_,J){switch(_.length){case 0:return"";case 1:return _[0];case 2:return _[0]+" "+J+" "+_[1];default:return _.slice(0,-1).join(", ")+", "+J+" "+_[_.length-1]}}function YW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],X=G.transferSize,z=G.initiatorType,B=G.duration;if(X&&B&&YW(z)){z=0,B=G.responseEnd;for(q+=1;q<$.length;q++){var w=$[q],S=w.startTime;if(S>B)break;var{transferSize:e,initiatorType:_1}=w;e&&YW(_1)&&(w=w.responseEnd,z+=e*(w<B?1:(B-S)/(w-S)))}if(--q,J+=8*(X+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function _Q(_){return _.nodeType===9?_:_.ownerDocument}function zW(_){switch(_){case P7:return _9;case AQ:return Fq;default:return I3}}function WW(_,J){if(_===I3)switch(J){case"svg":return _9;case"math":return Fq;default:return I3}return _===_9&&J==="foreignObject"?I3:_}function QZ(_,J){return _==="textarea"||_==="noscript"||typeof J.children==="string"||typeof J.children==="number"||typeof J.children==="bigint"||typeof J.dangerouslySetInnerHTML==="object"&&J.dangerouslySetInnerHTML!==null&&J.dangerouslySetInnerHTML.__html!=null}function DI(){var _=window.event;if(_&&_.type==="popstate"){if(_===xF)return!1;return xF=_,!0}return xF=null,!1}function G_(){var _=window.event;return _&&_!==$J?_.type:null}function Z_(){var _=window.event;return _&&_!==$J?_.timeStamp:-1.1}function uI(_){setTimeout(function(){throw _})}function bI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function EI(){}function hI(_,J,$,q){yI(_,J,$,q),_[l2]=q}function LW(_){g6(_,"")}function xI(_,J,$){_.nodeValue=$}function BW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[l2]||null;if(J!==null){var $=N1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,A1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):J.dangerouslySetInnerHTML!=null&&(_.__reactWarnedAboutChildrenConflict=!0,A1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function _6(_){return _==="head"}function mI(_,J){_.removeChild(J)}function gI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function AW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===JJ||$===Zq){if(q===0){_.removeChild(G),M7(J);return}q--}else if($===_J||$===P6||$===O8||$===e7||$===R8)q++;else if($===dP)F_(_.ownerDocument.documentElement);else if($===aP){$=_.ownerDocument.head,F_($);for(var X=$.firstChild;X;){var{nextSibling:z,nodeName:B}=X;X[L_]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=z}}else $===rP&&F_(_.ownerDocument.body);$=G}while($);M7(J)}function MW(_,J){var $=_;_=0;do{var q=$.nextSibling;if($.nodeType===1?J?($._stashedDisplay=$.style.display,$.style.display="none"):($.style.display=$._stashedDisplay||"",$.getAttribute("style")===""&&$.removeAttribute("style")):$.nodeType===3&&(J?($._stashedText=$.nodeValue,$.nodeValue=""):$.nodeValue=$._stashedText||""),q&&q.nodeType===8)if($=q.data,$===JJ)if(_===0)break;else _--;else $!==_J&&$!==P6&&$!==O8&&$!==e7||_++;$=q}while($)}function pI(_){MW(_,!0)}function cI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function lI(_){_.nodeValue=""}function iI(_){MW(_,!1)}function dI(_,J){J=J[sP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function rI(_,J){_.nodeValue=J}function qZ(_){var J=_.firstChild;J&&J.nodeType===10&&(J=J.nextSibling);for(;J;){var $=J;switch(J=J.nextSibling,$.nodeName){case"HTML":case"HEAD":case"BODY":qZ($),I1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function aI(_,J,$,q){for(;_.nodeType===1;){var G=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){M1(G.name,"name");var X=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[L_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(X=_.getAttribute("rel"),X==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(X!==G.rel||_.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||_.getAttribute("title")!==(G.title==null?null:G.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(X=_.getAttribute("src"),(X!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&X&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=B5(_.nextSibling),_===null)break}return null}function sI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=B5(_.nextSibling),_===null)return null}return _}function TW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=B5(_.nextSibling),_===null)return null}return _}function UZ(_){return _.data===P6||_.data===O8}function GZ(_){return _.data===e7||_.data===P6&&_.ownerDocument.readyState!==FA}function tI(_,J){var $=_.ownerDocument;if(_.data===O8)_._reactRetry=J;else if(_.data!==P6||$.readyState!==FA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function B5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===_J||J===e7||J===P6||J===O8||J===R8||J===bF||J===ZA)break;if(J===JJ||J===Zq)return null}}return _}function RW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var X=q[G];$[ZW(X.name)]=X.name.toLowerCase()==="style"?_Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===R8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function OW(_,J,$){return $===null||$[iP]!==!0?(_.nodeValue===J?_=null:(J=e3(J),_=e3(_.nodeValue)===J?null:_.nodeValue),_):null}function ZZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===JJ||$===Zq){if(J===0)return B5(_.nextSibling);J--}else $!==_J&&$!==e7&&$!==P6&&$!==O8&&$!==R8||J++}_=_.nextSibling}return null}function IW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===_J||$===e7||$===P6||$===O8||$===R8){if(J===0)return _;J--}else $!==JJ&&$!==Zq||J++}_=_.previousSibling}return null}function oI(_){M7(_)}function nI(_){M7(_)}function eI(_){M7(_)}function wW(_,J,$,q,G){switch(G&&V9(_,q.ancestorInfo),J=_Q($),_){case"html":if(_=J.documentElement,!_)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"head":if(_=J.head,!_)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"body":if(_=J.body,!_)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return _;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function _w(_,J,$,q){if(!$[q6]&&N1($)){var G=$.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",G,G,G)}switch(_){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(G=$.attributes;G.length;)$.removeAttributeNode(G[0]);v2($,_,J),$[j2]=q,$[l2]=J}function F_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);I1(_)}function JQ(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function PW(_,J,$){var q=J9;if(q&&typeof J==="string"&&J){var G=_5(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),WA.has(G)||(WA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),v2(J,"link",_),j1(J),q.head.appendChild(J)))}}function NW(_,J,$,q){var G=(G=$6.current)?JQ(G):null;if(!G)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(_){case"meta":case"title":return null;case"style":return typeof $.precedence==="string"&&typeof $.href==="string"?($=B7($.href),J=V1(G).hoistableStyles,q=J.get($),q||(q={type:"style",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if($.rel==="stylesheet"&&typeof $.href==="string"&&typeof $.precedence==="string"){_=B7($.href);var X=V1(G).hoistableStyles,z=X.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:w8,preload:null}},X.set(_,z),(X=G.querySelector(X_(_)))&&!X._p&&(z.instance=X,z.state.loading=QJ|g5),!p5.has(_))){var B={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};p5.set(_,B),X||Jw(G,_,B,z.state)}if(J&&q===null)throw $=`
175
+ 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`,m(_))})}function E4(_){_!==q9&&_.next===null&&(q9===null?Jq=q9=_:q9=q9.next=_),$q=!0,Y1.actQueue!==null?VF||(VF=!0,_W()):jF||(jF=!0,_W())}function F_(_,J){if(!yF&&$q){yF=!0;do{var $=!1;for(var q=Jq;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var X=0;else{var{suspendedLanes:z,pingedLanes:B}=q;X=(1<<31-e2(42|_)+1)-1,X&=G&~(z&~B),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,ez(q,X))}else X=G0,X=u2(q,q===u0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==j8),(X&3)===0||b2(q,X)||($=!0,ez(q,X));q=q.next}}while($);yF=!1}}function jI(){GJ=window.event,dG()}function dG(){$q=VF=jF=!1;var _=0;y6!==0&&EI()&&(_=y6);for(var J=j2(),$=null,q=Jq;q!==null;){var G=q.next,X=oz(q,J);if(X===0)q.next=null,$===null?Jq=G:$.next=G,G===null&&(q9=$);else if($=q,_!==0||(X&3)!==0)$q=!0;q=G}A2!==j6&&A2!==nQ||F_(_,!1),y6!==0&&(y6=0)}function oz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,X=_.pendingLanes&-62914561;0<X;){var z=31-e2(X),B=1<<z,I=G[z];if(I===-1){if((B&$)===0||(B&q)!==0)G[z]=f2(B,J)}else I<=J&&(_.expiredLanes|=B);X&=~B}if(J=u0,$=G0,$=u2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==j8),q=_.callbackNode,$===0||_===J&&(v0===w8||v0===P8)||_.cancelPendingCommit!==null)return q!==null&&rG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||b2(_,$)){if(J=$&-$,J!==_.callbackPriority||Y1.actQueue!==null&&q!==kF)rG(q);else return J;switch(j($)){case V5:case X4:$=SZ;break;case l4:$=f7;break;case BQ:$=vZ;break;default:$=f7}return q=nz.bind(null,_),Y1.actQueue!==null?(Y1.actQueue.push(q),$=kF):$=CZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&rG(q),_.callbackPriority=2,_.callbackNode=null,2}function nz(_,J){if(DQ=kQ=!1,GJ=window.event,A2!==j6&&A2!==nQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(L4===oQ&&(L4=PF),G_()&&_.callbackNode!==$)return null;var q=G0;if(q=u2(_,_===u0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==j8),q===0)return null;return Vz(_,q,J),oz(_,j2()),_.callbackNode!=null&&_.callbackNode===$?nz.bind(null,_):null}function ez(_,J){if(G_())return null;kQ=DQ,DQ=!1,Vz(_,J,!0)}function rG(_){_!==kF&&_!==null&&Tw(_)}function _W(){Y1.actQueue!==null&&Y1.actQueue.push(function(){return dG(),null}),_N(function(){(R0&(w2|u5))!==k2?CZ(fZ,jI):dG()})}function aG(){if(y6===0){var _=B8;_===0&&(_=zQ,zQ<<=1,(zQ&261888)===0&&(zQ=256)),y6=_}return y6}function JW(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return A1(_,"action"),x9(""+_)}function $W(_,J){var $=J.ownerDocument.createElement("input");return $.name=J.name,$.value=J.value,_.id&&$.setAttribute("form",_.id),J.parentNode.insertBefore($,J),_=new FormData(_),$.parentNode.removeChild($),_}function VI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var X=JW((G[_5]||null).action),z=q.submitter;z&&(J=(J=z[_5]||null)?JW(J.formAction):z.getAttribute("formAction"),J!==null&&(X=J,z=null));var B=new OQ("action","action",null,q,G);_.push({event:B,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(y6!==0){var I=z?$W(G,z):new FormData(G),f={pending:!0,data:I,method:G.method,action:X};Object.freeze(f),WG($,f,null,I)}}else typeof X==="function"&&(B.preventDefault(),I=z?$W(G,z):new FormData(G),f={pending:!0,data:I,method:G.method,action:X},Object.freeze(f),WG($,f,X,I))},currentTarget:G}]})}}function e$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){iZ(q)}_.currentTarget=null}function QW(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,X=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var B=q[z],I=B.instance,f=B.currentTarget;if(B=B.listener,I!==G&&X.isPropagationStopped())break _;I!==null?z1(I,e$,X,B,f):e$(X,B,f),G=I}else for(z=0;z<q.length;z++){if(B=q[z],I=B.instance,f=B.currentTarget,B=B.listener,I!==G&&X.isPropagationStopped())break _;I!==null?z1(I,e$,X,B,f):e$(X,B,f),G=I}}}}function A0(_,J){DF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[jZ];$===void 0&&($=J[jZ]=new Set);var q=_+"__bubble";$.has(q)||(qW(J,_,2,!1),$.add(q))}function sG(_,J,$){DF.has(_)&&!J&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',_);var q=0;J&&(q|=4),qW($,_,q,J)}function tG(_){if(!_[Qq]){_[Qq]=!0,_L.forEach(function($){$!=="selectionchange"&&(DF.has($)||sG($,!1,_),sG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[Qq]||(J[Qq]=!0,sG("selectionchange",!1,J))}}function qW(_,J,$,q){switch(EW(J)){case V5:var G=Hw;break;case X4:G=Yw;break;default:G=YZ}$=G.bind(null,J,$,_),G=void 0,!uZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(G=!0),q?G!==void 0?_.addEventListener(J,$,{capture:!0,passive:G}):_.addEventListener(J,$,!0):G!==void 0?_.addEventListener(J,$,{passive:G}):_.addEventListener(J,$,!1)}function oG(_,J,$,q,G){var X=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var z=q.tag;if(z===3||z===4){var B=q.stateNode.containerInfo;if(B===G)break;if(z===4)for(z=q.return;z!==null;){var I=z.tag;if((I===3||I===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;B!==null;){if(z=y1(B),z===null)return;if(I=z.tag,I===5||I===6||I===26||I===27){q=X=z;continue _}B=B.parentNode}}q=q.return}LH(function(){var f=X,e=TU($),J1=[];_:{var d=EL.get(_);if(d!==void 0){var Z1=OQ,N1=_;switch(_){case"keypress":if(Z$($)===0)break _;case"keydown":case"keyup":Z1=GP;break;case"focusin":N1="focus",Z1=xZ;break;case"focusout":N1="blur",Z1=xZ;break;case"beforeblur":case"afterblur":Z1=xZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z1=wL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=aw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=XP;break;case kL:case DL:case uL:Z1=ow;break;case bL:Z1=HP;break;case"scroll":case"scrollend":Z1=dw;break;case"wheel":Z1=zP;break;case"copy":case"cut":case"paste":Z1=ew;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=NL;break;case"toggle":case"beforetoggle":Z1=LP}var j1=(J&4)!==0,E0=!j1&&(_==="scroll"||_==="scrollend"),M0=j1?d!==null?d+"Capture":null:d;j1=[];for(var i=f,r;i!==null;){var n=i;if(r=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||r===null||M0===null||(n=m9(i,M0),n!=null&&j1.push(X_(i,n,r))),E0)break;i=i.return}0<j1.length&&(d=new Z1(d,N1,null,$,e),J1.push({event:d,listeners:j1}))}}if((J&7)===0){_:{if(d=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",d&&$!==R_&&(N1=$.relatedTarget||$.fromElement)&&(y1(N1)||N1[z6]))break _;if(Z1||d){if(d=e.window===e?e:(d=e.ownerDocument)?d.defaultView||d.parentWindow:window,Z1){if(N1=$.relatedTarget||$.toElement,Z1=f,N1=N1?y1(N1):null,N1!==null&&(E0=C(N1),j1=N1.tag,N1!==E0||j1!==5&&j1!==27&&j1!==6))N1=null}else Z1=null,N1=f;if(Z1!==N1){if(j1=wL,n="onMouseLeave",M0="onMouseEnter",i="mouse",_==="pointerout"||_==="pointerover")j1=NL,n="onPointerLeave",M0="onPointerEnter",i="pointer";if(E0=Z1==null?d:r1(Z1),r=N1==null?d:r1(N1),d=new j1(n,i+"leave",Z1,$,e),d.target=E0,d.relatedTarget=r,n=null,y1(e)===f&&(j1=new j1(M0,i+"enter",N1,$,e),j1.target=r,j1.relatedTarget=E0,n=j1),E0=n,Z1&&N1)J:{j1=yI,M0=Z1,i=N1,r=0;for(n=M0;n;n=j1(n))r++;n=0;for(var M1=i;M1;M1=j1(M1))n++;for(;0<r-n;)M0=j1(M0),r--;for(;0<n-r;)i=j1(i),n--;for(;r--;){if(M0===i||i!==null&&M0===i.alternate){j1=M0;break J}M0=j1(M0),i=j1(i)}j1=null}else j1=null;Z1!==null&&UW(J1,d,Z1,j1,!1),N1!==null&&E0!==null&&UW(J1,E0,N1,j1,!0)}}}_:{if(d=f?r1(f):window,Z1=d.nodeName&&d.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&d.type==="file")var S1=IH;else if(RH(d))if(VL)S1=lO;else{S1=pO;var o1=gO}else Z1=d.nodeName,!Z1||Z1.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?f&&h9(f.elementType)&&(S1=IH):S1=cO;if(S1&&(S1=S1(_,f))){OH(J1,S1,$,e);break _}o1&&o1(_,d,f),_==="focusout"&&f&&d.type==="number"&&f.memoizedProps.value!=null&&F7(d,"number",d.value)}switch(o1=f?r1(f):window,_){case"focusin":if(RH(o1)||o1.contentEditable==="true")u7=o1,gZ=f,f_=null;break;case"focusout":f_=gZ=u7=null;break;case"mousedown":pZ=!0;break;case"contextmenu":case"mouseup":case"dragend":pZ=!1,vH(J1,$,e);break;case"selectionchange":if(TP)break;case"keydown":case"keyup":vH(J1,$,e)}var g1;if(mZ)_:{switch(_){case"compositionstart":var h1="onCompositionStart";break _;case"compositionend":h1="onCompositionEnd";break _;case"compositionupdate":h1="onCompositionUpdate";break _}h1=void 0}else D7?MH(_,$)&&(h1="onCompositionEnd"):_==="keydown"&&$.keyCode===CL&&(h1="onCompositionStart");if(h1&&(fL&&$.locale!=="ko"&&(D7||h1!=="onCompositionStart"?h1==="onCompositionEnd"&&D7&&(g1=BH()):(W6=e,bZ=("value"in W6)?W6.value:W6.textContent,D7=!0)),o1=_Q(f,h1),0<o1.length&&(h1=new PL(h1,_,null,$,e),J1.push({event:h1,listeners:o1}),g1?h1.data=g1:(g1=TH($),g1!==null&&(h1.data=g1)))),g1=AP?EO(_,$):hO(_,$))h1=_Q(f,"onBeforeInput"),0<h1.length&&(o1=new JP("onBeforeInput","beforeinput",null,$,e),J1.push({event:o1,listeners:h1}),o1.data=g1);VI(J1,_,f,$,e)}QW(J1,J)})}function X_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function _Q(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,X=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||X===null||(G=m9(_,$),G!=null&&q.unshift(X_(_,G,X)),G=m9(_,J),G!=null&&q.push(X_(_,G,X))),_.tag===3)return q;_=_.return}return[]}function yI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function UW(_,J,$,q,G){for(var X=J._reactName,z=[];$!==null&&$!==q;){var B=$,I=B.alternate,f=B.stateNode;if(B=B.tag,I!==null&&I===q)break;B!==5&&B!==26&&B!==27||f===null||(I=f,G?(f=m9($,X),f!=null&&z.unshift(X_($,f,I))):G||(f=m9($,X),f!=null&&z.push(X_($,f,I)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function nG(_,J){kO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||OL||(OL=!0,_==="select"&&J.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",_):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",_));var $={registrationNameDependencies:K8,possibleRegistrationNames:VZ};h9(_)||typeof J.is==="string"||uO(_,J,$),J.contentEditable&&!J.suppressContentEditableWarning&&J.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function v2(_,J,$,q){J!==$&&($=F6($),F6(J)!==$&&(q[_]=J))}function kI(_,J,$){J.forEach(function(q){$[FW(q)]=q==="style"?_Z(_):_.getAttribute(q)})}function h4(_,J){J===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",_,_,_):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",_,typeof J)}function GW(_,J){return _=_.namespaceURI===MQ||_.namespaceURI===j7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function F6(_){return c1(_)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",b1(_)),k1(_)),(typeof _==="string"?_:""+_).replace(iP,`
176
+ `).replace(dP,"")}function ZW(_,J){return J=F6(J),F6(_)===J?!0:!1}function k0(_,J,$,q,G,X){switch($){case"children":if(typeof q==="string")o3(q,J,!1),J==="body"||J==="textarea"&&q===""||s6(_,q);else if(typeof q==="number"||typeof q==="bigint")o3(""+q,J,!1),J!=="body"&&s6(_,""+q);break;case"className":Q0(_,"class",q);break;case"tabIndex":Q0(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":Q0(_,$,q);break;case"style":YH(_,q,X);break;case"data":if(J!=="object"){Q0(_,"data",q);break}case"src":case"href":if(q===""&&(J!=="a"||$!=="href")){$==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$),_.removeAttribute($);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}A1(q,$),q=x9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||Gq||(Gq=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),G.target==null||Uq||(Uq=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):J==="input"||J==="button"?$==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):J!=="input"||G.type==="submit"||G.type==="image"||qq?J!=="button"||G.type==null||G.type==="submit"||qq?typeof q==="function"&&(G.name==null||GA||(GA=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),G.formEncType==null&&G.formMethod==null||Gq||(Gq=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),G.formTarget==null||Uq||(Uq=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(qq=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(qq=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):$==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof q==="function"){_.setAttribute($,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof X==="function"&&($==="formAction"?(J!=="input"&&k0(_,J,"name",G.name,G,null),k0(_,J,"formEncType",G.formEncType,G,null),k0(_,J,"formMethod",G.formMethod,G,null),k0(_,J,"formTarget",G.formTarget,G,null)):(k0(_,J,"encType",G.encType,G,null),k0(_,J,"method",G.method,G,null),k0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}A1(q,$),q=x9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&h4($,q),_.onclick=F3);break;case"onScroll":q!=null&&(typeof q!=="function"&&h4($,q),A0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&h4($,q),A0("scrollend",_));break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"multiple":_.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":_.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){_.removeAttribute("xlink:href");break}A1(q,$),$=x9(""+q),_.setAttributeNS(f8,"xlink:href",$);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(A1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||Zq[$]||(Zq[$]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",$));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q&&typeof q!=="function"&&typeof q!=="symbol"?_.setAttribute($,""):_.removeAttribute($);break;case"capture":case"download":q===!0?_.setAttribute($,""):q!==!1&&q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(A1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?(A1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(A1(q,$),_.setAttribute($,q));break;case"popover":A0("beforetoggle",_),A0("toggle",_),V1(_,"popover",q);break;case"xlinkActuate":u1(_,f8,"xlink:actuate",q);break;case"xlinkArcrole":u1(_,f8,"xlink:arcrole",q);break;case"xlinkRole":u1(_,f8,"xlink:role",q);break;case"xlinkShow":u1(_,f8,"xlink:show",q);break;case"xlinkTitle":u1(_,f8,"xlink:title",q);break;case"xlinkType":u1(_,f8,"xlink:type",q);break;case"xmlBase":u1(_,uF,"xml:base",q);break;case"xmlLang":u1(_,uF,"xml:lang",q);break;case"xmlSpace":u1(_,uF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),V1(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":ZA||q==null||typeof q!=="object"||(ZA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",q));default:!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"?($=zH($),V1(_,$,q)):K8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&h4($,q)}}function eG(_,J,$,q,G,X){switch($){case"style":YH(_,q,X);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?s6(_,q):(typeof q==="number"||typeof q==="bigint")&&s6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&h4($,q),A0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&h4($,q),A0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&h4($,q),_.onclick=F3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(K8.hasOwnProperty($))q!=null&&typeof q!=="function"&&h4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),X=_[_5]||null,X=X!=null?X[$]:null,typeof X==="function"&&_.removeEventListener(J,X,G),typeof q==="function")){typeof X!=="function"&&X!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):V1(_,$,q)}}}function m2(_,J,$){switch(nG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":A0("error",_),A0("load",_);var q=!1,G=!1,X;for(X in $)if($.hasOwnProperty(X)){var z=$[X];if(z!=null)switch(X){case"src":q=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:k0(_,J,X,z,$,null)}}G&&k0(_,J,"srcSet",$.srcSet,$,null),q&&k0(_,J,"src",$.src,$,null);return;case"input":$1("input",$),A0("invalid",_);var B=X=z=G=null,I=null,f=null;for(q in $)if($.hasOwnProperty(q)){var e=$[q];if(e!=null)switch(q){case"name":G=e;break;case"type":z=e;break;case"checked":I=e;break;case"defaultChecked":f=e;break;case"value":X=e;break;case"defaultValue":B=e;break;case"children":case"dangerouslySetInnerHTML":if(e!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:k0(_,J,q,e,$,null)}}Z7(_,$),V0(_,X,B,I,f,z,G,!1);return;case"select":$1("select",$),A0("invalid",_),q=z=X=null;for(G in $)if($.hasOwnProperty(G)&&(B=$[G],B!=null))switch(G){case"value":X=B;break;case"defaultValue":z=B;break;case"multiple":q=B;default:k0(_,J,G,B,$,null)}oJ(_,$),J=X,$=z,_.multiple=!!q,J!=null?r3(_,!!q,J,!1):$!=null&&r3(_,!!q,$,!0);return;case"textarea":$1("textarea",$),A0("invalid",_),X=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(B=$[z],B!=null))switch(z){case"value":q=B;break;case"defaultValue":G=B;break;case"children":X=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:k0(_,J,z,B,$,null)}nJ(_,$),j9(_,q,G,X);return;case"option":sJ(_,$);for(I in $)if($.hasOwnProperty(I)&&(q=$[I],q!=null))switch(I){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:k0(_,J,I,q,$,null)}return;case"dialog":A0("beforetoggle",_),A0("toggle",_),A0("cancel",_),A0("close",_);break;case"iframe":case"object":A0("load",_);break;case"video":case"audio":for(q=0;q<QJ.length;q++)A0(QJ[q],_);break;case"image":A0("error",_),A0("load",_);break;case"details":A0("toggle",_);break;case"embed":case"source":case"link":A0("error",_),A0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(f in $)if($.hasOwnProperty(f)&&(q=$[f],q!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:k0(_,J,f,q,$,null)}return;default:if(h9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&eG(_,J,e,q,$,void 0));return}}for(B in $)$.hasOwnProperty(B)&&(q=$[B],q!=null&&k0(_,J,B,q,$,null))}function DI(_,J,$,q){switch(nG(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,X=null,z=null,B=null,I=null,f=null,e=null;for(Z1 in $){var J1=$[Z1];if($.hasOwnProperty(Z1)&&J1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":I=J1;default:q.hasOwnProperty(Z1)||k0(_,J,Z1,null,q,J1)}}for(var d in q){var Z1=q[d];if(J1=$[d],q.hasOwnProperty(d)&&(Z1!=null||J1!=null))switch(d){case"type":X=Z1;break;case"name":G=Z1;break;case"checked":f=Z1;break;case"defaultChecked":e=Z1;break;case"value":z=Z1;break;case"defaultValue":B=Z1;break;case"children":case"dangerouslySetInnerHTML":if(Z1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Z1!==J1&&k0(_,J,d,Z1,q,J1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||UA||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),UA=!0),!J||q||qA||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),qA=!0),K5(_,z,B,I,f,e,X,G);return;case"select":Z1=z=B=d=null;for(X in $)if(I=$[X],$.hasOwnProperty(X)&&I!=null)switch(X){case"value":break;case"multiple":Z1=I;default:q.hasOwnProperty(X)||k0(_,J,X,null,q,I)}for(G in q)if(X=q[G],I=$[G],q.hasOwnProperty(G)&&(X!=null||I!=null))switch(G){case"value":d=X;break;case"defaultValue":B=X;break;case"multiple":z=X;default:X!==I&&k0(_,J,G,X,q,I)}q=B,J=z,$=Z1,d!=null?r3(_,!!J,d,!1):!!$!==!!J&&(q!=null?r3(_,!!J,q,!0):r3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=d=null;for(B in $)if(G=$[B],$.hasOwnProperty(B)&&G!=null&&!q.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:k0(_,J,B,null,q,G)}for(z in q)if(G=q[z],X=$[z],q.hasOwnProperty(z)&&(G!=null||X!=null))switch(z){case"value":d=G;break;case"defaultValue":Z1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==X&&k0(_,J,z,G,q,X)}eJ(_,d,Z1);return;case"option":for(var N1 in $)if(d=$[N1],$.hasOwnProperty(N1)&&d!=null&&!q.hasOwnProperty(N1))switch(N1){case"selected":_.selected=!1;break;default:k0(_,J,N1,null,q,d)}for(I in q)if(d=q[I],Z1=$[I],q.hasOwnProperty(I)&&d!==Z1&&(d!=null||Z1!=null))switch(I){case"selected":_.selected=d&&typeof d!=="function"&&typeof d!=="symbol";break;default:k0(_,J,I,d,q,Z1)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var j1 in $)d=$[j1],$.hasOwnProperty(j1)&&d!=null&&!q.hasOwnProperty(j1)&&k0(_,J,j1,null,q,d);for(f in q)if(d=q[f],Z1=$[f],q.hasOwnProperty(f)&&d!==Z1&&(d!=null||Z1!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:k0(_,J,f,d,q,Z1)}return;default:if(h9(J)){for(var E0 in $)d=$[E0],$.hasOwnProperty(E0)&&d!==void 0&&!q.hasOwnProperty(E0)&&eG(_,J,E0,void 0,q,d);for(e in q)d=q[e],Z1=$[e],!q.hasOwnProperty(e)||d===Z1||d===void 0&&Z1===void 0||eG(_,J,e,d,q,Z1);return}}for(var M0 in $)d=$[M0],$.hasOwnProperty(M0)&&d!=null&&!q.hasOwnProperty(M0)&&k0(_,J,M0,null,q,d);for(J1 in q)d=q[J1],Z1=$[J1],!q.hasOwnProperty(J1)||d===Z1||d==null&&Z1==null||k0(_,J,J1,d,q,Z1)}function FW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function _Z(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function XW(_,J,$){if(J!=null&&typeof J!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var q,G=q="",X;for(X in J)if(J.hasOwnProperty(X)){var z=J[X];z!=null&&typeof z!=="boolean"&&z!==""&&(X.indexOf("--")===0?(e1(z,X),q+=G+X+":"+(""+z).trim()):typeof z!=="number"||z===0||TL.has(X)?(e1(z,X),q+=G+X.replace(WL,"-$1").toLowerCase().replace(LL,"-ms-")+":"+(""+z).trim()):q+=G+X.replace(WL,"-$1").toLowerCase().replace(LL,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=F6(q),F6(J)!==q&&($.style=_Z(_)))}}function m5(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(A1(q,J),_===""+q)return}v2(J,_,q,X)}function KW(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null){switch(typeof q){case"function":case"symbol":return}if(!q)return}else switch(typeof q){case"function":case"symbol":break;default:if(q)return}v2(J,_,q,X)}function JZ(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(A1(q,$),_===""+q)return}v2(J,_,q,X)}function HW(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(A1(q,J),_===""+q))return}v2(J,_,q,X)}function $Z(_,J,$,q,G,X){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(A1(q,J),$=x9(""+q),_===$)return}v2(J,_,q,X)}function YW(_,J,$,q){for(var G={},X=new Set,z=_.attributes,B=0;B<z.length;B++)switch(z[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:X.add(z[B].name)}if(h9(J)){for(var I in $)if($.hasOwnProperty(I)){var f=$[I];if(f!=null){if(K8.hasOwnProperty(I))typeof f!=="function"&&h4(I,f);else if($.suppressHydrationWarning!==!0)switch(I){case"children":typeof f!=="string"&&typeof f!=="number"||v2("children",_.textContent,f,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,f=f?f.__html:void 0,f!=null&&(f=GW(_,f),v2(I,z,f,G));continue;case"style":X.delete(I),XW(_,f,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":X.delete(I.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",I);continue;case"className":X.delete("class"),z=v1(_,"class",f),v2("className",z,f,G);continue;default:q.context===j3&&J!=="svg"&&J!=="math"?X.delete(I.toLowerCase()):X.delete(I),z=v1(_,I,f),v2(I,z,f,G)}}}}else for(f in $)if($.hasOwnProperty(f)&&(I=$[f],I!=null)){if(K8.hasOwnProperty(f))typeof I!=="function"&&h4(f,I);else if($.suppressHydrationWarning!==!0)switch(f){case"children":typeof I!=="string"&&typeof I!=="number"||v2("children",_.textContent,I,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,I=I?I.__html:void 0,I!=null&&(I=GW(_,I),z!==I&&(G[f]={__html:z}));continue;case"className":m5(_,f,"class",I,X,G);continue;case"tabIndex":m5(_,f,"tabindex",I,X,G);continue;case"style":X.delete(f),XW(_,I,G);continue;case"multiple":X.delete(f),v2(f,_.multiple,I,G);continue;case"muted":X.delete(f),v2(f,_.muted,I,G);continue;case"autoFocus":X.delete("autofocus"),v2(f,_.autofocus,I,G);continue;case"data":if(J!=="object"){X.delete(f),z=_.getAttribute("data"),v2(f,z,I,G);continue}case"src":case"href":if(!(I!==""||J==="a"&&f==="href"||J==="object"&&f==="data")){f==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',f,f):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',f,f);continue}$Z(_,f,f,I,X,G);continue;case"action":case"formAction":if(z=_.getAttribute(f),typeof I==="function"){X.delete(f.toLowerCase()),f==="formAction"?(X.delete("name"),X.delete("formenctype"),X.delete("formmethod"),X.delete("formtarget")):(X.delete("enctype"),X.delete("method"),X.delete("target"));continue}else if(z===rP){X.delete(f.toLowerCase()),v2(f,"function",I,G);continue}$Z(_,f,f.toLowerCase(),I,X,G);continue;case"xlinkHref":$Z(_,f,"xlink:href",I,X,G);continue;case"contentEditable":JZ(_,f,"contenteditable",I,X,G);continue;case"spellCheck":JZ(_,f,"spellcheck",I,X,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":JZ(_,f,f,I,X,G);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":KW(_,f,f.toLowerCase(),I,X,G);continue;case"capture":case"download":_:{B=_;var e=z=f,J1=G;if(X.delete(e),B=B.getAttribute(e),B===null)switch(typeof I){case"undefined":case"function":case"symbol":break _;default:if(I===!1)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":break;case"boolean":if(I===!0&&B==="")break _;break;default:if(A1(I,z),B===""+I)break _}v2(z,B,I,J1)}continue;case"cols":case"rows":case"size":case"span":_:{if(B=_,e=z=f,J1=G,X.delete(e),B=B.getAttribute(e),B===null)switch(typeof I){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(I)||1>I)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(I)||1>I)&&(A1(I,z),B===""+I))break _}v2(z,B,I,J1)}continue;case"rowSpan":HW(_,f,"rowspan",I,X,G);continue;case"start":HW(_,f,f,I,X,G);continue;case"xHeight":m5(_,f,"x-height",I,X,G);continue;case"xlinkActuate":m5(_,f,"xlink:actuate",I,X,G);continue;case"xlinkArcrole":m5(_,f,"xlink:arcrole",I,X,G);continue;case"xlinkRole":m5(_,f,"xlink:role",I,X,G);continue;case"xlinkShow":m5(_,f,"xlink:show",I,X,G);continue;case"xlinkTitle":m5(_,f,"xlink:title",I,X,G);continue;case"xlinkType":m5(_,f,"xlink:type",I,X,G);continue;case"xmlBase":m5(_,f,"xml:base",I,X,G);continue;case"xmlLang":m5(_,f,"xml:lang",I,X,G);continue;case"xmlSpace":m5(_,f,"xml:space",I,X,G);continue;case"inert":I!==""||Zq[f]||(Zq[f]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",f)),KW(_,f,f,I,X,G);continue;default:if(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N"){B=zH(f),z=!1,q.context===j3&&J!=="svg"&&J!=="math"?X.delete(B.toLowerCase()):(e=f.toLowerCase(),e=TQ.hasOwnProperty(e)?TQ[e]||null:null,e!==null&&e!==f&&(z=!0,X.delete(e)),X.delete(B));_:if(e=_,J1=B,B=I,B1(J1))if(e.hasAttribute(J1))e=e.getAttribute(J1),A1(B,J1),B=e===""+B?B:e;else{switch(typeof B){case"function":case"symbol":break _;case"boolean":if(e=J1.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")break _}B=B===void 0?void 0:null}else B=void 0;z||v2(f,B,I,G)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&kI(_,X,G),Object.keys(G).length===0?null:G}function uI(_,J){switch(_.length){case 0:return"";case 1:return _[0];case 2:return _[0]+" "+J+" "+_[1];default:return _.slice(0,-1).join(", ")+", "+J+" "+_[_.length-1]}}function zW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],X=G.transferSize,z=G.initiatorType,B=G.duration;if(X&&B&&zW(z)){z=0,B=G.responseEnd;for(q+=1;q<$.length;q++){var I=$[q],f=I.startTime;if(f>B)break;var{transferSize:e,initiatorType:J1}=I;e&&zW(J1)&&(I=I.responseEnd,z+=e*(I<B?1:(B-f)/(I-f)))}if(--q,J+=8*(X+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function JQ(_){return _.nodeType===9?_:_.ownerDocument}function WW(_){switch(_){case j7:return G9;case MQ:return Xq;default:return j3}}function LW(_,J){if(_===j3)switch(J){case"svg":return G9;case"math":return Xq;default:return j3}return _===G9&&J==="foreignObject"?j3:_}function QZ(_,J){return _==="textarea"||_==="noscript"||typeof J.children==="string"||typeof J.children==="number"||typeof J.children==="bigint"||typeof J.dangerouslySetInnerHTML==="object"&&J.dangerouslySetInnerHTML!==null&&J.dangerouslySetInnerHTML.__html!=null}function EI(){var _=window.event;if(_&&_.type==="popstate"){if(_===xF)return!1;return xF=_,!0}return xF=null,!1}function K_(){var _=window.event;return _&&_!==GJ?_.type:null}function H_(){var _=window.event;return _&&_!==GJ?_.timeStamp:-1.1}function hI(_){setTimeout(function(){throw _})}function xI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function mI(){}function gI(_,J,$,q){DI(_,J,$,q),_[_5]=q}function BW(_){s6(_,"")}function pI(_,J,$){_.nodeValue=$}function AW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[_5]||null;if(J!==null){var $=i1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,z1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):J.dangerouslySetInnerHTML!=null&&(_.__reactWarnedAboutChildrenConflict=!0,z1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function X6(_){return _==="head"}function cI(_,J){_.removeChild(J)}function lI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function MW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===UJ||$===Fq){if(q===0){_.removeChild(G),P7(J);return}q--}else if($===qJ||$===k6||$===v8||$===U9||$===S8)q++;else if($===sP)Y_(_.ownerDocument.documentElement);else if($===oP){$=_.ownerDocument.head,Y_($);for(var X=$.firstChild;X;){var{nextSibling:z,nodeName:B}=X;X[T_]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=z}}else $===tP&&Y_(_.ownerDocument.body);$=G}while($);P7(J)}function TW(_,J){var $=_;_=0;do{var q=$.nextSibling;if($.nodeType===1?J?($._stashedDisplay=$.style.display,$.style.display="none"):($.style.display=$._stashedDisplay||"",$.getAttribute("style")===""&&$.removeAttribute("style")):$.nodeType===3&&(J?($._stashedText=$.nodeValue,$.nodeValue=""):$.nodeValue=$._stashedText||""),q&&q.nodeType===8)if($=q.data,$===UJ)if(_===0)break;else _--;else $!==qJ&&$!==k6&&$!==v8&&$!==U9||_++;$=q}while($)}function iI(_){TW(_,!0)}function dI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function rI(_){_.nodeValue=""}function aI(_){TW(_,!1)}function sI(_,J){J=J[nP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function tI(_,J){_.nodeValue=J}function qZ(_){var J=_.firstChild;J&&J.nodeType===10&&(J=J.nextSibling);for(;J;){var $=J;switch(J=J.nextSibling,$.nodeName){case"HTML":case"HEAD":case"BODY":qZ($),P1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function oI(_,J,$,q){for(;_.nodeType===1;){var G=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){A1(G.name,"name");var X=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[T_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(X=_.getAttribute("rel"),X==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(X!==G.rel||_.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||_.getAttribute("title")!==(G.title==null?null:G.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(X=_.getAttribute("src"),(X!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&X&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=S5(_.nextSibling),_===null)break}return null}function nI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=S5(_.nextSibling),_===null)return null}return _}function RW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=S5(_.nextSibling),_===null)return null}return _}function UZ(_){return _.data===k6||_.data===v8}function GZ(_){return _.data===U9||_.data===k6&&_.ownerDocument.readyState!==XA}function eI(_,J){var $=_.ownerDocument;if(_.data===v8)_._reactRetry=J;else if(_.data!==k6||$.readyState!==XA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function S5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===qJ||J===U9||J===k6||J===v8||J===S8||J===bF||J===FA)break;if(J===UJ||J===Fq)return null}}return _}function OW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var X=q[G];$[FW(X.name)]=X.name.toLowerCase()==="style"?_Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===S8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function IW(_,J,$){return $===null||$[aP]!==!0?(_.nodeValue===J?_=null:(J=F6(J),_=F6(_.nodeValue)===J?null:_.nodeValue),_):null}function ZZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===UJ||$===Fq){if(J===0)return S5(_.nextSibling);J--}else $!==qJ&&$!==U9&&$!==k6&&$!==v8&&$!==S8||J++}_=_.nextSibling}return null}function wW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===qJ||$===U9||$===k6||$===v8||$===S8){if(J===0)return _;J--}else $!==UJ&&$!==Fq||J++}_=_.previousSibling}return null}function _w(_){P7(_)}function Jw(_){P7(_)}function $w(_){P7(_)}function PW(_,J,$,q,G){switch(G&&b9(_,q.ancestorInfo),J=JQ($),_){case"html":if(_=J.documentElement,!_)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"head":if(_=J.head,!_)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"body":if(_=J.body,!_)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return _;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Qw(_,J,$,q){if(!$[z6]&&i1($)){var G=$.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",G,G,G)}switch(_){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(G=$.attributes;G.length;)$.removeAttributeNode(G[0]);m2($,_,J),$[g2]=q,$[_5]=J}function Y_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);P1(_)}function $Q(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function NW(_,J,$){var q=Z9;if(q&&typeof J==="string"&&J){var G=w0(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),LA.has(G)||(LA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),m2(J,"link",_),x1(J),q.head.appendChild(J)))}}function CW(_,J,$,q){var G=(G=H6.current)?$Q(G):null;if(!G)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(_){case"meta":case"title":return null;case"style":return typeof $.precedence==="string"&&typeof $.href==="string"?($=I7($.href),J=F0(G).hoistableStyles,q=J.get($),q||(q={type:"style",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if($.rel==="stylesheet"&&typeof $.href==="string"&&typeof $.precedence==="string"){_=I7($.href);var X=F0(G).hoistableStyles,z=X.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:V8,preload:null}},X.set(_,z),(X=G.querySelector(z_(_)))&&!X._p&&(z.instance=X,z.state.loading=ZJ|o5),!n5.has(_))){var B={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};n5.set(_,B),X||qw(G,_,B,z.state)}if(J&&q===null)throw $=`
177
177
 
178
- - `+$Q(J)+`
179
- + `+$Q($),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return z}if(J&&q!==null)throw $=`
178
+ - `+QQ(J)+`
179
+ + `+QQ($),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return z}if(J&&q!==null)throw $=`
180
180
 
181
- - `+$Q(J)+`
182
- + `+$Q($),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return null;case"script":return J=$.async,$=$.src,typeof $==="string"&&J&&typeof J!=="function"&&typeof J!=="symbol"?($=A7($),J=V1(G).hoistableScripts,q=J.get($),q||(q={type:"script",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+_+'". this is a bug in React.')}}function $Q(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):n5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):n5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):n5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function B7(_){return'href="'+_5(_)+'"'}function X_(_){return'link[rel="stylesheet"]['+_+"]"}function CW(_){return U0({},_,{"data-precedence":_.precedence,precedence:null})}function Jw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=QJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=QJ}),J.addEventListener("error",function(){return q.loading|=YA}),v2(J,"link",$),j1(J),_.head.appendChild(J))}function A7(_){return'[src="'+_5(_)+'"]'}function K_(_){return"script[async]"+_}function fW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+_5($.href)+'"]');if(q)return J.instance=q,j1(q),q;var G=U0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),j1(q),v2(q,"style",G),QQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=B7($.href);var X=_.querySelector(X_(G));if(X)return J.state.loading|=g5,J.instance=X,j1(X),X;q=CW($),(G=p5.get(G))&&FZ(q,G),X=(_.ownerDocument||_).createElement("link"),j1(X);var z=X;return z._p=new Promise(function(B,w){z.onload=B,z.onerror=w}),v2(X,"link",q),J.state.loading|=g5,QQ(X,$.precedence,_),J.instance=X;case"script":if(X=A7($.src),G=_.querySelector(K_(X)))return J.instance=G,j1(G),G;if(q=$,G=p5.get(X))q=U0({},$),XZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),j1(G),v2(G,"link",q),_.head.appendChild(G),J.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+J.type+'". this is a bug in React.')}else J.type==="stylesheet"&&(J.state.loading&g5)===w8&&(q=J.instance,J.state.loading|=g5,QQ(q,$.precedence,_));return J.instance}function QQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,X=G,z=0;z<q.length;z++){var B=q[z];if(B.dataset.precedence===J)X=B;else if(X!==G)break}X?X.parentNode.insertBefore(_,X.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function FZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function XZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function SW(_,J,$){if(Xq===null){var q=new Map,G=Xq=new Map;G.set($,q)}else G=Xq,q=G.get($),q||(q=new Map,G.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(G=0;G<$.length;G++){var X=$[G];if(!(X[L_]||X[j2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==P7){var z=X.getAttribute(J)||"";z=_+z;var B=q.get(z);B?B.push(X):q.set(z,[X])}}return q}function vW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function $w(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===_9||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:X}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),X!=null&&$.push("`disabled`"),G=VI($,"and"),G+=$.length===1?" prop":" props",X=$.length===1?"an "+G:"the "+G,$.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',_,X,G)}q&&(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(J.onError||J.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(J.rel){case"stylesheet":return _=J.precedence,J=J.disabled,typeof _!=="string"&&q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof _==="string"&&J==null;default:return!0}case"script":if(_=J.async&&typeof J.async!=="function"&&typeof J.async!=="symbol",!_||J.onLoad||J.onError||!J.src||typeof J.src!=="string"){q&&(_?J.onLoad||J.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",_)}return!1}function jW(_){return _.type==="stylesheet"&&(_.state.loading&zA)===w8?!1:!0}function Qw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&g5)===w8){if($.instance===null){var G=B7(q.href),X=J.querySelector(X_(G));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=qQ.bind(_),J.then(_,_)),$.state.loading|=g5,$.instance=X,j1(X);return}X=J.ownerDocument||J,q=CW(q),(G=p5.get(G))&&FZ(q,G),X=X.createElement("link"),j1(X);var z=X;z._p=new Promise(function(B,w){z.onload=B,z.onerror=w}),v2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&zA)===w8&&(_.count++,$=qQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function qw(_,J){return _.stylesheets&&_.count===0&&UQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&UQ(_,_.stylesheets),_.unsuspend){var X=_.unsuspend;_.unsuspend=null,X()}},nP+J);0<_.imgBytes&&gF===0&&(gF=125*kI()*_N);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&UQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>gF?50:eP)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function qQ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)UQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function UQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Kq=new Map,J.forEach(Uw,_),Kq=null,qQ.call(_))}function Uw(_,J){if(!(J.state.loading&g5)){var $=Kq.get(_);if($)var q=$.get(pF);else{$=new Map,Kq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),X=0;X<G.length;X++){var z=G[X];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(pF,q)}G=J.instance,z=G.getAttribute("data-precedence"),X=$.get(z)||q,X===q&&$.set(pF,G),$.set(z,G),this.count++,q=qQ.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),X?X.parentNode.insertBefore(G,X.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=g5}}function Gw(_,J,$,q,G,X,z,B,w){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=I8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=H2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=H2(0),this.hiddenUpdates=H2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=X,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function yW(_,J,$,q,G,X,z,B,w,S,e,_1){return _=new Gw(_,J,$,z,w,S,e,_1,B),J=NP,X===!0&&(J|=u2|_4),J|=e1,X=R(3,null,null,J),_.current=X,X.stateNode=_,J=EU(),s6(J),_.pooledCache=J,s6(J),X.memoizedState={element:q,isDehydrated:$,cache:J},pU(X),_}function VW(_){if(!_)return F6;return _=F6,_}function KZ(_,J,$,q,G,X){if(D2&&typeof D2.onScheduleFiberRoot==="function")try{D2.onScheduleFiberRoot(I7,q,$)}catch(z){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",z))}G=VW(G),q.context===null?q.context=G:q.pendingContext=G,V4&&M5!==null&&!MA&&(MA=!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.
181
+ - `+QQ(J)+`
182
+ + `+QQ($),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return null;case"script":return J=$.async,$=$.src,typeof $==="string"&&J&&typeof J!=="function"&&typeof J!=="symbol"?($=w7($),J=F0(G).hoistableScripts,q=J.get($),q||(q={type:"script",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+_+'". this is a bug in React.')}}function QQ(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):F4.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):F4.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):F4.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function I7(_){return'href="'+w0(_)+'"'}function z_(_){return'link[rel="stylesheet"]['+_+"]"}function fW(_){return Y0({},_,{"data-precedence":_.precedence,precedence:null})}function qw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=ZJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=ZJ}),J.addEventListener("error",function(){return q.loading|=zA}),m2(J,"link",$),x1(J),_.head.appendChild(J))}function w7(_){return'[src="'+w0(_)+'"]'}function W_(_){return"script[async]"+_}function SW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+w0($.href)+'"]');if(q)return J.instance=q,x1(q),q;var G=Y0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),x1(q),m2(q,"style",G),qQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=I7($.href);var X=_.querySelector(z_(G));if(X)return J.state.loading|=o5,J.instance=X,x1(X),X;q=fW($),(G=n5.get(G))&&FZ(q,G),X=(_.ownerDocument||_).createElement("link"),x1(X);var z=X;return z._p=new Promise(function(B,I){z.onload=B,z.onerror=I}),m2(X,"link",q),J.state.loading|=o5,qQ(X,$.precedence,_),J.instance=X;case"script":if(X=w7($.src),G=_.querySelector(W_(X)))return J.instance=G,x1(G),G;if(q=$,G=n5.get(X))q=Y0({},$),XZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),x1(G),m2(G,"link",q),_.head.appendChild(G),J.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+J.type+'". this is a bug in React.')}else J.type==="stylesheet"&&(J.state.loading&o5)===V8&&(q=J.instance,J.state.loading|=o5,qQ(q,$.precedence,_));return J.instance}function qQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,X=G,z=0;z<q.length;z++){var B=q[z];if(B.dataset.precedence===J)X=B;else if(X!==G)break}X?X.parentNode.insertBefore(_,X.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function FZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function XZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function vW(_,J,$){if(Kq===null){var q=new Map,G=Kq=new Map;G.set($,q)}else G=Kq,q=G.get($),q||(q=new Map,G.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(G=0;G<$.length;G++){var X=$[G];if(!(X[T_]||X[g2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==j7){var z=X.getAttribute(J)||"";z=_+z;var B=q.get(z);B?B.push(X):q.set(z,[X])}}return q}function jW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function Uw(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===G9||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:X}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),X!=null&&$.push("`disabled`"),G=uI($,"and"),G+=$.length===1?" prop":" props",X=$.length===1?"an "+G:"the "+G,$.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',_,X,G)}q&&(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(J.onError||J.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(J.rel){case"stylesheet":return _=J.precedence,J=J.disabled,typeof _!=="string"&&q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof _==="string"&&J==null;default:return!0}case"script":if(_=J.async&&typeof J.async!=="function"&&typeof J.async!=="symbol",!_||J.onLoad||J.onError||!J.src||typeof J.src!=="string"){q&&(_?J.onLoad||J.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",_)}return!1}function VW(_){return _.type==="stylesheet"&&(_.state.loading&WA)===V8?!1:!0}function Gw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&o5)===V8){if($.instance===null){var G=I7(q.href),X=J.querySelector(z_(G));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=UQ.bind(_),J.then(_,_)),$.state.loading|=o5,$.instance=X,x1(X);return}X=J.ownerDocument||J,q=fW(q),(G=n5.get(G))&&FZ(q,G),X=X.createElement("link"),x1(X);var z=X;z._p=new Promise(function(B,I){z.onload=B,z.onerror=I}),m2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&WA)===V8&&(_.count++,$=UQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function Zw(_,J){return _.stylesheets&&_.count===0&&GQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&GQ(_,_.stylesheets),_.unsuspend){var X=_.unsuspend;_.unsuspend=null,X()}},JN+J);0<_.imgBytes&&gF===0&&(gF=125*bI()*QN);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&GQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>gF?50:$N)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function UQ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)GQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function GQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Hq=new Map,J.forEach(Fw,_),Hq=null,UQ.call(_))}function Fw(_,J){if(!(J.state.loading&o5)){var $=Hq.get(_);if($)var q=$.get(pF);else{$=new Map,Hq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),X=0;X<G.length;X++){var z=G[X];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(pF,q)}G=J.instance,z=G.getAttribute("data-precedence"),X=$.get(z)||q,X===q&&$.set(pF,G),$.set(z,G),this.count++,q=UQ.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),X?X.parentNode.insertBefore(G,X.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=o5}}function Xw(_,J,$,q,G,X,z,B,I){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=j8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=G2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=G2(0),this.hiddenUpdates=G2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=X,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function yW(_,J,$,q,G,X,z,B,I,f,e,J1){return _=new Xw(_,J,$,z,I,f,e,J1,B),J=SP,X===!0&&(J|=d2|K4),J|=q0,X=R(3,null,null,J),_.current=X,X.stateNode=_,J=EU(),Q8(J),_.pooledCache=J,Q8(J),X.memoizedState={element:q,isDehydrated:$,cache:J},pU(X),_}function kW(_){if(!_)return A6;return _=A6,_}function KZ(_,J,$,q,G,X){if(i2&&typeof i2.onScheduleFiberRoot==="function")try{i2.onScheduleFiberRoot(S7,q,$)}catch(z){p4||(p4=!0,console.error("React instrumentation encountered an error: %o",z))}G=kW(G),q.context===null?q.context=G:q.pendingContext=G,g4&&j5!==null&&!TA&&(TA=!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.
183
183
 
184
- Check the render method of %s.`,x(M5)||"Unknown")),q=r3(J),q.payload={element:$},X=X===void 0?null:X,X!==null&&(typeof X!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",X),q.callback=X),$=a3(_,q,J),$!==null&&(A4(J,"root.render()",null),c0($,_,J),l9($,_,J))}function kW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function HZ(_,J){kW(_,J),(_=_.alternate)&&kW(_,J)}function DW(_){if(_.tag===13||_.tag===31){var J=k2(_,67108864);J!==null&&c0(J,_,67108864),HZ(_,67108864)}}function uW(_){if(_.tag===13||_.tag===31){var J=L5(_);J=r5(J);var $=k2(_,J);$!==null&&c0($,_,J),HZ(_,J)}}function Zw(){return M5}function Fw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=A0.p;try{A0.p=T5,YZ(_,J,$,q)}finally{A0.p=X,Y1.T=G}}function Xw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=A0.p;try{A0.p=e5,YZ(_,J,$,q)}finally{A0.p=X,Y1.T=G}}function YZ(_,J,$,q){if(Yq){var G=zZ(q);if(G===null)oG(_,J,q,zq,$),EW(_,q);else if(Kw(G,_,J,$,q))q.stopPropagation();else if(EW(_,q),J&4&&-1<$N.indexOf(_)){for(;G!==null;){var X=N1(G);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var z=K2(X.pendingLanes);if(z!==0){var B=X;B.pendingLanes|=2;for(B.entangledLanes|=2;z;){var w=1<<31-c2(z);B.entanglements[1]|=w,z&=~w}S4(X),(Y0&(W2|w5))===w2&&(sQ=R2()+dB,q_(0,!1))}}break;case 31:case 13:B=k2(X,2),B!==null&&c0(B,X,2),z7(),HZ(X,2)}if(X=zZ(q),X===null&&oG(_,J,q,zq,$),X===G)break;G=X}G!==null&&q.stopPropagation()}else oG(_,J,q,null,$)}}function zZ(_){return _=TU(_),WZ(_)}function WZ(_){if(zq=null,_=R1(_),_!==null){var J=f(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=y(J),_!==null)return _;_=null}else if($===31){if(_=C(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return zq=_,null}function bW(_){switch(_){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return T5;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return e5;case"message":switch(Tw()){case fZ:return T5;case SZ:return e5;case O7:case Rw:return u4;case vZ:return LQ;default:return u4}default:return u4}}function EW(_,J){switch(_){case"focusin":case"focusout":N6=null;break;case"dragenter":case"dragleave":C6=null;break;case"mouseover":case"mouseout":f6=null;break;case"pointerover":case"pointerout":UJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":GJ.delete(J.pointerId)}}function H_(_,J,$,q,G,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[G]},J!==null&&(J=N1(J),J!==null&&DW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Kw(_,J,$,q,G){switch(J){case"focusin":return N6=H_(N6,_,J,$,q,G),!0;case"dragenter":return C6=H_(C6,_,J,$,q,G),!0;case"mouseover":return f6=H_(f6,_,J,$,q,G),!0;case"pointerover":var X=G.pointerId;return UJ.set(X,H_(UJ.get(X)||null,_,J,$,q,G)),!0;case"gotpointercapture":return X=G.pointerId,GJ.set(X,H_(GJ.get(X)||null,_,J,$,q,G)),!0}return!1}function hW(_){var J=R1(_.target);if(J!==null){var $=f(J);if($!==null){if(J=$.tag,J===13){if(J=y($),J!==null){_.blockedOn=J,F1(_.priority,function(){uW($)});return}}else if(J===31){if(J=C($),J!==null){_.blockedOn=J,F1(_.priority,function(){uW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function GQ(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=zZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;B_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),B_=G,$.target.dispatchEvent(q),B_===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),B_=null}else return J=N1($),J!==null&&DW(J),_.blockedOn=$,!1;J.shift()}return!0}function xW(_,J,$){GQ(_)&&$.delete(J)}function Hw(){cF=!1,N6!==null&&GQ(N6)&&(N6=null),C6!==null&&GQ(C6)&&(C6=null),f6!==null&&GQ(f6)&&(f6=null),UJ.forEach(xW),GJ.forEach(xW)}function ZQ(_,J){_.blockedOn===J&&(_.blockedOn=null,cF||(cF=!0,W0.unstable_scheduleCallback(W0.unstable_NormalPriority,Hw)))}function mW(_){Wq!==_&&(Wq=_,W0.unstable_scheduleCallback(W0.unstable_NormalPriority,function(){Wq===_&&(Wq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(WZ(q||$)===null)continue;else break;var X=N1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),WG(X,$,q,G))}}))}function M7(_){function J(w){return ZQ(w,_)}N6!==null&&ZQ(N6,_),C6!==null&&ZQ(C6,_),f6!==null&&ZQ(f6,_),UJ.forEach(J),GJ.forEach(J);for(var $=0;$<S6.length;$++){var q=S6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<S6.length&&($=S6[0],$.blockedOn===null);)hW($),$.blockedOn===null&&S6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],X=$[q+1],z=G[l2]||null;if(typeof X==="function")z||mW($);else if(z){var B=null;if(X&&X.hasAttribute("formAction")){if(G=X,z=X[l2]||null)B=z.formAction;else if(WZ(G)!==null)continue}else B=z.action;typeof B==="function"?$[q+1]=B:($.splice(q,3),q-=3),mW($)}}}function gW(){function _(X){X.canIntercept&&X.info==="react-transition"&&X.intercept({handler:function(){return new Promise(function(z){return G=z})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var X=navigation.currentEntry;X&&X.url!=null&&navigation.navigate(X.url,{state:X.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,G=null;return navigation.addEventListener("navigate",_),navigation.addEventListener("navigatesuccess",J),navigation.addEventListener("navigateerror",J),setTimeout($,100),function(){q=!0,navigation.removeEventListener("navigate",_),navigation.removeEventListener("navigatesuccess",J),navigation.removeEventListener("navigateerror",J),G!==null&&(G(),G=null)}}}function LZ(_){this._internalRoot=_}function FQ(_){this._internalRoot=_}function pW(_){_[q6]&&(_._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U0=Object.assign,Yw=Symbol.for("react.element"),j4=Symbol.for("react.transitional.element"),T7=Symbol.for("react.portal"),R7=Symbol.for("react.fragment"),XQ=Symbol.for("react.strict_mode"),BZ=Symbol.for("react.profiler"),AZ=Symbol.for("react.consumer"),y4=Symbol.for("react.context"),Y_=Symbol.for("react.forward_ref"),MZ=Symbol.for("react.suspense"),TZ=Symbol.for("react.suspense_list"),KQ=Symbol.for("react.memo"),A5=Symbol.for("react.lazy"),RZ=Symbol.for("react.activity"),zw=Symbol.for("react.memo_cache_sentinel"),cW=Symbol.iterator,Ww=Symbol.for("react.client.reference"),Y2=Array.isArray,Y1=$9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A0=dF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Lw=Object.freeze({pending:!1,data:null,method:null,action:null}),OZ=[],IZ=[],F3=-1,J6=$1(null),z_=$1(null),$6=$1(null),HQ=$1(null),W_=0,lW,iW,dW,rW,aW,sW,tW;k.__reactDisabledLog=!0;var wZ,oW,PZ=!1,NZ=new(typeof WeakMap==="function"?WeakMap:Map),M5=null,V4=!1,n5=Object.prototype.hasOwnProperty,CZ=W0.unstable_scheduleCallback,Bw=W0.unstable_cancelCallback,Aw=W0.unstable_shouldYield,Mw=W0.unstable_requestPaint,R2=W0.unstable_now,Tw=W0.unstable_getCurrentPriorityLevel,fZ=W0.unstable_ImmediatePriority,SZ=W0.unstable_UserBlockingPriority,O7=W0.unstable_NormalPriority,Rw=W0.unstable_LowPriority,vZ=W0.unstable_IdlePriority,Ow=W0.log,Iw=W0.unstable_setDisableYieldValue,I7=null,D2=null,k4=!1,D4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",c2=Math.clz32?Math.clz32:X2,ww=Math.log,Pw=Math.LN2,YQ=256,zQ=262144,WQ=4194304,T5=2,e5=8,u4=32,LQ=268435456,Q6=Math.random().toString(36).slice(2),j2="__reactFiber$"+Q6,l2="__reactProps$"+Q6,q6="__reactContainer$"+Q6,jZ="__reactEvents$"+Q6,Nw="__reactListeners$"+Q6,Cw="__reactHandles$"+Q6,nW="__reactResources$"+Q6,L_="__reactMarker$"+Q6,eW=new Set,$8={},yZ={},fw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Sw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_L={},JL={},vw=/[\n"\\]/g,$L=!1,QL=!1,qL=!1,UL=!1,GL=!1,ZL=!1,FL=["value","defaultValue"],XL=!1,KL=/["'&<>\n\t]|^\s|\s$/,jw="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),HL="applet caption html table td th marquee object template foreignObject desc title".split(" "),yw=HL.concat(["button"]),Vw="dd dt li option optgroup p rp rt".split(" "),YL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},BQ={},VZ={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},zL=/([A-Z])/g,WL=/^ms-/,kw=/^(?:webkit|moz|o)[A-Z]/,Dw=/^-ms-/,uw=/-(.)/g,LL=/;\s*$/,w7={},kZ={},BL=!1,AL=!1,ML=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),AQ="http://www.w3.org/1998/Math/MathML",P7="http://www.w3.org/2000/svg",bw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),MQ={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},TL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},N7={},Ew=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hw=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),RL=!1,i2={},OL=/^on./,xw=/^on[^A-Z]/,mw=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gw=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),pw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,B_=null,C7=null,f7=null,DZ=!1,b4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uZ=!1;if(b4)try{var A_={};Object.defineProperty(A_,"passive",{get:function(){uZ=!0}}),window.addEventListener("test",A_,A_),window.removeEventListener("test",A_,A_)}catch(_){uZ=!1}var U6=null,bZ=null,TQ=null,Q8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RQ=J5(Q8),M_=U0({},Q8,{view:0,detail:0}),cw=J5(M_),EZ,hZ,T_,OQ=U0({},M_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:RU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==T_&&(T_&&_.type==="mousemove"?(EZ=_.screenX-T_.screenX,hZ=_.screenY-T_.screenY):hZ=EZ=0,T_=_),EZ},movementY:function(_){return"movementY"in _?_.movementY:hZ}}),IL=J5(OQ),lw=U0({},OQ,{dataTransfer:0}),iw=J5(lw),dw=U0({},M_,{relatedTarget:0}),xZ=J5(dw),rw=U0({},Q8,{animationName:0,elapsedTime:0,pseudoElement:0}),aw=J5(rw),sw=U0({},Q8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),tw=J5(sw),ow=U0({},Q8,{data:0}),wL=J5(ow),nw=wL,ew={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_P={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},JP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$P=U0({},M_,{key:function(_){if(_.key){var J=ew[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=G$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?_P[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:RU,charCode:function(_){return _.type==="keypress"?G$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?G$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),QP=J5($P),qP=U0({},OQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),PL=J5(qP),UP=U0({},M_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RU}),GP=J5(UP),ZP=U0({},Q8,{propertyName:0,elapsedTime:0,pseudoElement:0}),FP=J5(ZP),XP=U0({},OQ,{deltaX:function(_){return"deltaX"in _?_.deltaX:("wheelDeltaX"in _)?-_.wheelDeltaX:0},deltaY:function(_){return"deltaY"in _?_.deltaY:("wheelDeltaY"in _)?-_.wheelDeltaY:("wheelDelta"in _)?-_.wheelDelta:0},deltaZ:0,deltaMode:0}),KP=J5(XP),HP=U0({},Q8,{newState:0,oldState:0}),YP=J5(HP),zP=[9,13,27,32],NL=229,mZ=b4&&"CompositionEvent"in window,R_=null;b4&&"documentMode"in document&&(R_=document.documentMode);var WP=b4&&"TextEvent"in window&&!R_,CL=b4&&(!mZ||R_&&8<R_&&11>=R_),fL=32,SL=String.fromCharCode(fL),vL=!1,S7=!1,LP={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},O_=null,I_=null,jL=!1;b4&&(jL=bO("input")&&(!document.documentMode||9<document.documentMode));var d2=typeof Object.is==="function"?Object.is:pO,BP=b4&&"documentMode"in document&&11>=document.documentMode,v7=null,gZ=null,w_=null,pZ=!1,j7={animationend:p6("Animation","AnimationEnd"),animationiteration:p6("Animation","AnimationIteration"),animationstart:p6("Animation","AnimationStart"),transitionrun:p6("Transition","TransitionRun"),transitionstart:p6("Transition","TransitionStart"),transitioncancel:p6("Transition","TransitionCancel"),transitionend:p6("Transition","TransitionEnd")},cZ={},yL={};b4&&(yL=document.createElement("div").style,("AnimationEvent"in window)||(delete j7.animationend.animation,delete j7.animationiteration.animation,delete j7.animationstart.animation),("TransitionEvent"in window)||delete j7.transitionend.transition);var VL=c6("animationend"),kL=c6("animationiteration"),DL=c6("animationstart"),AP=c6("transitionrun"),MP=c6("transitionstart"),TP=c6("transitioncancel"),uL=c6("transitionend"),bL=new Map,lZ="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");lZ.push("scrollEnd");var EL=0;if(typeof performance==="object"&&typeof performance.now==="function")var RP=performance,hL=function(){return RP.now()};else{var OP=Date;hL=function(){return OP.now()}}var iZ=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},IP="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.",IQ=0,dZ=1,rZ=2,aZ=3,wQ="– ",PQ="+ ",xL="  ",y0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",y5="Components ⚛",G0="Scheduler ⚛",Z0="Blocking",G6=!1,X3={color:"primary",properties:null,tooltipText:"",track:y5},Z6={start:-0,end:-0,detail:{devtools:X3}},wP=["Changed Props",""],mL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",PP=["Changed Props",mL],P_=1,K3=2,V5=[],y7=0,sZ=0,F6={};Object.freeze(F6);var k5=null,V7=null,i1=0,NP=1,e1=2,u2=8,_4=16,CP=32,gL=!1;try{var pL=Object.preventExtensions({})}catch(_){gL=!0}var tZ=new WeakMap,k7=[],D7=0,NQ=null,N_=0,D5=[],u5=0,q8=null,H3=1,Y3="",y2=null,V0=null,F0=!1,E4=!1,R5=null,X6=null,b5=!1,oZ=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."),nZ=$1(null),eZ=$1(null),cL={},CQ=null,u7=null,b7=!1,fP=typeof AbortController<"u"?AbortController:function(){var _=[],J=this.signal={aborted:!1,addEventListener:function($,q){_.push(q)}};this.abort=function(){J.aborted=!0,_.forEach(function($){return $()})}},SP=W0.unstable_scheduleCallback,vP=W0.unstable_NormalPriority,J2={$$typeof:y4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},$2=W0.unstable_now,fQ=console.createTask?console.createTask:function(){return null},C_=1,SQ=2,O2=-0,K6=-0,z3=-0,W3=null,r2=-1.1,U8=-0,m0=-0,m1=-1.1,l1=-1.1,b0=null,l0=!1,H6=-0,h4=-1.1,f_=null,Y6=0,_F=null,JF=null,G8=-1.1,S_=null,E7=-1.1,vQ=-1.1,x4=-0,L3=-1.1,E5=-1.1,$F=0,v_=null,lL=null,iL=null,z6=-1.1,Z8=null,W6=-1.1,jQ=-1.1,dL=-0,rL=-0,yQ=0,B3=null,aL=0,j_=-1.1,VQ=!1,kQ=!1,y_=null,QF=0,F8=0,h7=null,sL=Y1.S;Y1.S=function(_,J){if(lB=R2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>L3&&0>E5){L3=$2();var $=Z_(),q=G_();if($!==W6||q!==Z8)W6=-1.1;z6=$,Z8=q}sO(_,J)}sL!==null&&sL(_,J)};var X8=$1(null),J4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},V_=[],k_=[],D_=[],u_=[],b_=[],E_=[],K8=new Set;J4.recordUnsafeLifecycleWarnings=function(_,J){K8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&V_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillMount==="function"&&k_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&D_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&u_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&b_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillUpdate==="function"&&E_.push(_))},J4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<V_.length&&(V_.forEach(function(B){_.add(x(B)||"Component"),K8.add(B.type)}),V_=[]);var J=new Set;0<k_.length&&(k_.forEach(function(B){J.add(x(B)||"Component"),K8.add(B.type)}),k_=[]);var $=new Set;0<D_.length&&(D_.forEach(function(B){$.add(x(B)||"Component"),K8.add(B.type)}),D_=[]);var q=new Set;0<u_.length&&(u_.forEach(function(B){q.add(x(B)||"Component"),K8.add(B.type)}),u_=[]);var G=new Set;0<b_.length&&(b_.forEach(function(B){G.add(x(B)||"Component"),K8.add(B.type)}),b_=[]);var X=new Set;if(0<E_.length&&(E_.forEach(function(B){X.add(x(B)||"Component"),K8.add(B.type)}),E_=[]),0<J.size){var z=A(J);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.
184
+ Check the render method of %s.`,m(j5)||"Unknown")),q=$6(J),q.payload={element:$},X=X===void 0?null:X,X!==null&&(typeof X!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",X),q.callback=X),$=Q6(_,q,J),$!==null&&(C4(J,"root.render()",null),o0($,_,J),a9($,_,J))}function DW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function HZ(_,J){DW(_,J),(_=_.alternate)&&DW(_,J)}function uW(_){if(_.tag===13||_.tag===31){var J=l2(_,67108864);J!==null&&o0(J,_,67108864),HZ(_,67108864)}}function bW(_){if(_.tag===13||_.tag===31){var J=f5(_);J=R5(J);var $=l2(_,J);$!==null&&o0($,_,J),HZ(_,J)}}function Kw(){return j5}function Hw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=C0.p;try{C0.p=V5,YZ(_,J,$,q)}finally{C0.p=X,Y1.T=G}}function Yw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=C0.p;try{C0.p=X4,YZ(_,J,$,q)}finally{C0.p=X,Y1.T=G}}function YZ(_,J,$,q){if(zq){var G=zZ(q);if(G===null)oG(_,J,q,Wq,$),hW(_,q);else if(zw(G,_,J,$,q))q.stopPropagation();else if(hW(_,q),J&4&&-1<UN.indexOf(_)){for(;G!==null;){var X=i1(G);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var z=C2(X.pendingLanes);if(z!==0){var B=X;B.pendingLanes|=2;for(B.entangledLanes|=2;z;){var I=1<<31-e2(z);B.entanglements[1]|=I,z&=~I}E4(X),(R0&(w2|u5))===k2&&(tQ=j2()+rB,F_(0,!1))}}break;case 31:case 13:B=l2(X,2),B!==null&&o0(B,X,2),T7(),HZ(X,2)}if(X=zZ(q),X===null&&oG(_,J,q,Wq,$),X===G)break;G=X}G!==null&&q.stopPropagation()}else oG(_,J,q,null,$)}}function zZ(_){return _=TU(_),WZ(_)}function WZ(_){if(Wq=null,_=y1(_),_!==null){var J=C(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=y(J),_!==null)return _;_=null}else if($===31){if(_=N(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return Wq=_,null}function EW(_){switch(_){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return V5;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return X4;case"message":switch(Iw()){case fZ:return V5;case SZ:return X4;case f7:case ww:return l4;case vZ:return BQ;default:return l4}default:return l4}}function hW(_,J){switch(_){case"focusin":case"focusout":D6=null;break;case"dragenter":case"dragleave":u6=null;break;case"mouseover":case"mouseout":b6=null;break;case"pointerover":case"pointerout":XJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":KJ.delete(J.pointerId)}}function L_(_,J,$,q,G,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[G]},J!==null&&(J=i1(J),J!==null&&uW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function zw(_,J,$,q,G){switch(J){case"focusin":return D6=L_(D6,_,J,$,q,G),!0;case"dragenter":return u6=L_(u6,_,J,$,q,G),!0;case"mouseover":return b6=L_(b6,_,J,$,q,G),!0;case"pointerover":var X=G.pointerId;return XJ.set(X,L_(XJ.get(X)||null,_,J,$,q,G)),!0;case"gotpointercapture":return X=G.pointerId,KJ.set(X,L_(KJ.get(X)||null,_,J,$,q,G)),!0}return!1}function xW(_){var J=y1(_.target);if(J!==null){var $=C(J);if($!==null){if(J=$.tag,J===13){if(J=y($),J!==null){_.blockedOn=J,I1(_.priority,function(){bW($)});return}}else if(J===31){if(J=N($),J!==null){_.blockedOn=J,I1(_.priority,function(){bW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function ZQ(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=zZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;R_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),R_=G,$.target.dispatchEvent(q),R_===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),R_=null}else return J=i1($),J!==null&&uW(J),_.blockedOn=$,!1;J.shift()}return!0}function mW(_,J,$){ZQ(_)&&$.delete(J)}function Ww(){cF=!1,D6!==null&&ZQ(D6)&&(D6=null),u6!==null&&ZQ(u6)&&(u6=null),b6!==null&&ZQ(b6)&&(b6=null),XJ.forEach(mW),KJ.forEach(mW)}function FQ(_,J){_.blockedOn===J&&(_.blockedOn=null,cF||(cF=!0,I0.unstable_scheduleCallback(I0.unstable_NormalPriority,Ww)))}function gW(_){Lq!==_&&(Lq=_,I0.unstable_scheduleCallback(I0.unstable_NormalPriority,function(){Lq===_&&(Lq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(WZ(q||$)===null)continue;else break;var X=i1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),WG(X,$,q,G))}}))}function P7(_){function J(I){return FQ(I,_)}D6!==null&&FQ(D6,_),u6!==null&&FQ(u6,_),b6!==null&&FQ(b6,_),XJ.forEach(J),KJ.forEach(J);for(var $=0;$<E6.length;$++){var q=E6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<E6.length&&($=E6[0],$.blockedOn===null);)xW($),$.blockedOn===null&&E6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],X=$[q+1],z=G[_5]||null;if(typeof X==="function")z||gW($);else if(z){var B=null;if(X&&X.hasAttribute("formAction")){if(G=X,z=X[_5]||null)B=z.formAction;else if(WZ(G)!==null)continue}else B=z.action;typeof B==="function"?$[q+1]=B:($.splice(q,3),q-=3),gW($)}}}function pW(){function _(X){X.canIntercept&&X.info==="react-transition"&&X.intercept({handler:function(){return new Promise(function(z){return G=z})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var X=navigation.currentEntry;X&&X.url!=null&&navigation.navigate(X.url,{state:X.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,G=null;return navigation.addEventListener("navigate",_),navigation.addEventListener("navigatesuccess",J),navigation.addEventListener("navigateerror",J),setTimeout($,100),function(){q=!0,navigation.removeEventListener("navigate",_),navigation.removeEventListener("navigatesuccess",J),navigation.removeEventListener("navigateerror",J),G!==null&&(G(),G=null)}}}function LZ(_){this._internalRoot=_}function XQ(_){this._internalRoot=_}function cW(_){_[z6]&&(_._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Y0=Object.assign,Lw=Symbol.for("react.element"),x4=Symbol.for("react.transitional.element"),N7=Symbol.for("react.portal"),C7=Symbol.for("react.fragment"),KQ=Symbol.for("react.strict_mode"),BZ=Symbol.for("react.profiler"),AZ=Symbol.for("react.consumer"),m4=Symbol.for("react.context"),B_=Symbol.for("react.forward_ref"),MZ=Symbol.for("react.suspense"),TZ=Symbol.for("react.suspense_list"),HQ=Symbol.for("react.memo"),v5=Symbol.for("react.lazy"),RZ=Symbol.for("react.activity"),Bw=Symbol.for("react.memo_cache_sentinel"),lW=Symbol.iterator,Aw=Symbol.for("react.client.reference"),O2=Array.isArray,Y1=F9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C0=dF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mw=Object.freeze({pending:!1,data:null,method:null,action:null}),OZ=[],IZ=[],B3=-1,K6=s(null),A_=s(null),H6=s(null),YQ=s(null),M_=0,iW,dW,rW,aW,sW,tW,oW;k.__reactDisabledLog=!0;var wZ,nW,PZ=!1,NZ=new(typeof WeakMap==="function"?WeakMap:Map),j5=null,g4=!1,F4=Object.prototype.hasOwnProperty,CZ=I0.unstable_scheduleCallback,Tw=I0.unstable_cancelCallback,Rw=I0.unstable_shouldYield,Ow=I0.unstable_requestPaint,j2=I0.unstable_now,Iw=I0.unstable_getCurrentPriorityLevel,fZ=I0.unstable_ImmediatePriority,SZ=I0.unstable_UserBlockingPriority,f7=I0.unstable_NormalPriority,ww=I0.unstable_LowPriority,vZ=I0.unstable_IdlePriority,Pw=I0.log,Nw=I0.unstable_setDisableYieldValue,S7=null,i2=null,p4=!1,c4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",e2=Math.clz32?Math.clz32:t0,Cw=Math.log,fw=Math.LN2,zQ=256,WQ=262144,LQ=4194304,V5=2,X4=8,l4=32,BQ=268435456,Y6=Math.random().toString(36).slice(2),g2="__reactFiber$"+Y6,_5="__reactProps$"+Y6,z6="__reactContainer$"+Y6,jZ="__reactEvents$"+Y6,Sw="__reactListeners$"+Y6,vw="__reactHandles$"+Y6,eW="__reactResources$"+Y6,T_="__reactMarker$"+Y6,_L=new Set,K8={},VZ={},jw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Vw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),JL={},$L={},yw=/[\n"\\]/g,QL=!1,qL=!1,UL=!1,GL=!1,ZL=!1,FL=!1,XL=["value","defaultValue"],KL=!1,HL=/["'&<>\n\t]|^\s|\s$/,kw="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),YL="applet caption html table td th marquee object template foreignObject desc title".split(" "),Dw=YL.concat(["button"]),uw="dd dt li option optgroup p rp rt".split(" "),zL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},AQ={},yZ={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},WL=/([A-Z])/g,LL=/^ms-/,bw=/^(?:webkit|moz|o)[A-Z]/,Ew=/^-ms-/,hw=/-(.)/g,BL=/;\s*$/,v7={},kZ={},AL=!1,ML=!1,TL=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),MQ="http://www.w3.org/1998/Math/MathML",j7="http://www.w3.org/2000/svg",xw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),TQ={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},RL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},V7={},mw=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gw=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),OL=!1,J5={},IL=/^on./,pw=/^on[^A-Z]/,cw=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lw=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),iw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,R_=null,y7=null,k7=null,DZ=!1,i4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uZ=!1;if(i4)try{var O_={};Object.defineProperty(O_,"passive",{get:function(){uZ=!0}}),window.addEventListener("test",O_,O_),window.removeEventListener("test",O_,O_)}catch(_){uZ=!1}var W6=null,bZ=null,RQ=null,H8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OQ=H5(H8),I_=Y0({},H8,{view:0,detail:0}),dw=H5(I_),EZ,hZ,w_,IQ=Y0({},I_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:RU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==w_&&(w_&&_.type==="mousemove"?(EZ=_.screenX-w_.screenX,hZ=_.screenY-w_.screenY):hZ=EZ=0,w_=_),EZ},movementY:function(_){return"movementY"in _?_.movementY:hZ}}),wL=H5(IQ),rw=Y0({},IQ,{dataTransfer:0}),aw=H5(rw),sw=Y0({},I_,{relatedTarget:0}),xZ=H5(sw),tw=Y0({},H8,{animationName:0,elapsedTime:0,pseudoElement:0}),ow=H5(tw),nw=Y0({},H8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),ew=H5(nw),_P=Y0({},H8,{data:0}),PL=H5(_P),JP=PL,$P={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QP={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},qP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},UP=Y0({},I_,{key:function(_){if(_.key){var J=$P[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=Z$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?QP[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:RU,charCode:function(_){return _.type==="keypress"?Z$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?Z$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),GP=H5(UP),ZP=Y0({},IQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),NL=H5(ZP),FP=Y0({},I_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RU}),XP=H5(FP),KP=Y0({},H8,{propertyName:0,elapsedTime:0,pseudoElement:0}),HP=H5(KP),YP=Y0({},IQ,{deltaX:function(_){return"deltaX"in _?_.deltaX:("wheelDeltaX"in _)?-_.wheelDeltaX:0},deltaY:function(_){return"deltaY"in _?_.deltaY:("wheelDeltaY"in _)?-_.wheelDeltaY:("wheelDelta"in _)?-_.wheelDelta:0},deltaZ:0,deltaMode:0}),zP=H5(YP),WP=Y0({},H8,{newState:0,oldState:0}),LP=H5(WP),BP=[9,13,27,32],CL=229,mZ=i4&&"CompositionEvent"in window,P_=null;i4&&"documentMode"in document&&(P_=document.documentMode);var AP=i4&&"TextEvent"in window&&!P_,fL=i4&&(!mZ||P_&&8<P_&&11>=P_),SL=32,vL=String.fromCharCode(SL),jL=!1,D7=!1,MP={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},N_=null,C_=null,VL=!1;i4&&(VL=xO("input")&&(!document.documentMode||9<document.documentMode));var $5=typeof Object.is==="function"?Object.is:iO,TP=i4&&"documentMode"in document&&11>=document.documentMode,u7=null,gZ=null,f_=null,pZ=!1,b7={animationend:t6("Animation","AnimationEnd"),animationiteration:t6("Animation","AnimationIteration"),animationstart:t6("Animation","AnimationStart"),transitionrun:t6("Transition","TransitionRun"),transitionstart:t6("Transition","TransitionStart"),transitioncancel:t6("Transition","TransitionCancel"),transitionend:t6("Transition","TransitionEnd")},cZ={},yL={};i4&&(yL=document.createElement("div").style,("AnimationEvent"in window)||(delete b7.animationend.animation,delete b7.animationiteration.animation,delete b7.animationstart.animation),("TransitionEvent"in window)||delete b7.transitionend.transition);var kL=o6("animationend"),DL=o6("animationiteration"),uL=o6("animationstart"),RP=o6("transitionrun"),OP=o6("transitionstart"),IP=o6("transitioncancel"),bL=o6("transitionend"),EL=new Map,lZ="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");lZ.push("scrollEnd");var hL=0;if(typeof performance==="object"&&typeof performance.now==="function")var wP=performance,xL=function(){return wP.now()};else{var PP=Date;xL=function(){return PP.now()}}var iZ=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},NP="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.",wQ=0,dZ=1,rZ=2,aZ=3,PQ="– ",NQ="+ ",mL="  ",h0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",g5="Components ⚛",z0="Scheduler ⚛",W0="Blocking",L6=!1,A3={color:"primary",properties:null,tooltipText:"",track:g5},B6={start:-0,end:-0,detail:{devtools:A3}},CP=["Changed Props",""],gL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",fP=["Changed Props",gL],S_=1,M3=2,p5=[],E7=0,sZ=0,A6={};Object.freeze(A6);var c5=null,h7=null,a1=0,SP=1,q0=2,d2=8,K4=16,vP=32,pL=!1;try{var cL=Object.preventExtensions({})}catch(_){pL=!0}var tZ=new WeakMap,x7=[],m7=0,CQ=null,v_=0,l5=[],i5=0,Y8=null,T3=1,R3="",p2=null,x0=null,B0=!1,d4=!1,y5=null,M6=null,d5=!1,oZ=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."),nZ=s(null),eZ=s(null),lL={},fQ=null,g7=null,p7=!1,jP=typeof AbortController<"u"?AbortController:function(){var _=[],J=this.signal={aborted:!1,addEventListener:function($,q){_.push(q)}};this.abort=function(){J.aborted=!0,_.forEach(function($){return $()})}},VP=I0.unstable_scheduleCallback,yP=I0.unstable_NormalPriority,H2={$$typeof:m4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Y2=I0.unstable_now,SQ=console.createTask?console.createTask:function(){return null},j_=1,vQ=2,V2=-0,T6=-0,O3=-0,I3=null,Q5=-1.1,z8=-0,r0=-0,p1=-1.1,d1=-1.1,c0=null,n0=!1,R6=-0,r4=-1.1,V_=null,O6=0,_F=null,JF=null,W8=-1.1,y_=null,c7=-1.1,jQ=-1.1,a4=-0,w3=-1.1,r5=-1.1,$F=0,k_=null,iL=null,dL=null,I6=-1.1,L8=null,w6=-1.1,VQ=-1.1,rL=-0,aL=-0,yQ=0,P3=null,sL=0,D_=-1.1,kQ=!1,DQ=!1,u_=null,QF=0,B8=0,l7=null,tL=Y1.S;Y1.S=function(_,J){if(iB=j2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>w3&&0>r5){w3=Y2();var $=H_(),q=K_();if($!==w6||q!==L8)w6=-1.1;I6=$,L8=q}nO(_,J)}tL!==null&&tL(_,J)};var A8=s(null),H4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},b_=[],E_=[],h_=[],x_=[],m_=[],g_=[],M8=new Set;H4.recordUnsafeLifecycleWarnings=function(_,J){M8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&b_.push(_),_.mode&d2&&typeof J.UNSAFE_componentWillMount==="function"&&E_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&h_.push(_),_.mode&d2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&x_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&m_.push(_),_.mode&d2&&typeof J.UNSAFE_componentWillUpdate==="function"&&g_.push(_))},H4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<b_.length&&(b_.forEach(function(B){_.add(m(B)||"Component"),M8.add(B.type)}),b_=[]);var J=new Set;0<E_.length&&(E_.forEach(function(B){J.add(m(B)||"Component"),M8.add(B.type)}),E_=[]);var $=new Set;0<h_.length&&(h_.forEach(function(B){$.add(m(B)||"Component"),M8.add(B.type)}),h_=[]);var q=new Set;0<x_.length&&(x_.forEach(function(B){q.add(m(B)||"Component"),M8.add(B.type)}),x_=[]);var G=new Set;0<m_.length&&(m_.forEach(function(B){G.add(m(B)||"Component"),M8.add(B.type)}),m_=[]);var X=new Set;if(0<g_.length&&(g_.forEach(function(B){X.add(m(B)||"Component"),M8.add(B.type)}),g_=[]),0<J.size){var z=A(J);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.
185
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
@@ -210,41 +210,41 @@ Please update the following components: %s`,z)),0<G.size&&(z=A(G),console.warn(`
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
211
  * 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.
212
212
 
213
- Please update the following components: %s`,z))};var DQ=new Map,tL=new Set;J4.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&u2&&($=q),q=q.return;$===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."):!tL.has(_.type)&&(q=DQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],DQ.set($,q)),q.push(_))},J4.flushLegacyContextWarning=function(){DQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(x(G)||"Component"),tL.add(G.type)});var q=A($);A1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,z))};var uQ=new Map,oL=new Set;H4.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&d2&&($=q),q=q.return;$===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."):!oL.has(_.type)&&(q=uQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],uQ.set($,q)),q.push(_))},H4.flushLegacyContextWarning=function(){uQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(m(G)||"Component"),oL.add(G.type)});var q=A($);z1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
214
 
215
215
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
216
 
217
217
  Please update the following components: %s
218
218
 
219
- Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},J4.discardPendingWarnings=function(){V_=[],k_=[],D_=[],u_=[],b_=[],E_=[],DQ=new Map};var oL={react_stack_bottom_frame:function(_,J,$){var q=V4;V4=!0;try{return _(J,$)}finally{V4=q}}},qF=oL.react_stack_bottom_frame.bind(oL),nL={react_stack_bottom_frame:function(_){var J=V4;V4=!0;try{return _.render()}finally{V4=J}}},eL=nL.react_stack_bottom_frame.bind(nL),_B={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){B0(_,_.return,$)}}},UF=_B.react_stack_bottom_frame.bind(_B),JB={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(X){B0(_,_.return,X)}}},$B=JB.react_stack_bottom_frame.bind(JB),QB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},jP=QB.react_stack_bottom_frame.bind(QB),qB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){B0(_,J,q)}}},UB=qB.react_stack_bottom_frame.bind(qB),GB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},yP=GB.react_stack_bottom_frame.bind(GB),ZB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){B0(_,J,q)}}},VP=ZB.react_stack_bottom_frame.bind(ZB),FB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},kP=FB.react_stack_bottom_frame.bind(FB),x7=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`."),GF=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."),uQ=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."),bQ={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.')}},H8=null,h_=!1,m7=null,x_=0,_0=null,ZF,XB=ZF=!1,KB={},HB={},YB={};T=function(_,J,$){if($!==null&&typeof $==="object"&&$._store&&(!$._store.validated&&$.key==null||$._store.validated===2)){if(typeof $._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.");$._store.validated=1;var q=x(_),G=q||"null";if(!KB[G]){KB[G]=!0,$=$._owner,_=_._debugOwner;var X="";_&&typeof _.tag==="number"&&(G=x(_))&&(X=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},H4.discardPendingWarnings=function(){b_=[],E_=[],h_=[],x_=[],m_=[],g_=[],uQ=new Map};var nL={react_stack_bottom_frame:function(_,J,$){var q=g4;g4=!0;try{return _(J,$)}finally{g4=q}}},qF=nL.react_stack_bottom_frame.bind(nL),eL={react_stack_bottom_frame:function(_){var J=g4;g4=!0;try{return _.render()}finally{g4=J}}},_B=eL.react_stack_bottom_frame.bind(eL),JB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){N0(_,_.return,$)}}},UF=JB.react_stack_bottom_frame.bind(JB),$B={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(X){N0(_,_.return,X)}}},QB=$B.react_stack_bottom_frame.bind($B),qB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},kP=qB.react_stack_bottom_frame.bind(qB),UB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){N0(_,J,q)}}},GB=UB.react_stack_bottom_frame.bind(UB),ZB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},DP=ZB.react_stack_bottom_frame.bind(ZB),FB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){N0(_,J,q)}}},uP=FB.react_stack_bottom_frame.bind(FB),XB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},bP=XB.react_stack_bottom_frame.bind(XB),i7=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`."),GF=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."),bQ=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."),EQ={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.')}},T8=null,p_=!1,d7=null,c_=0,U0=null,ZF,KB=ZF=!1,HB={},YB={},zB={};T=function(_,J,$){if($!==null&&typeof $==="object"&&$._store&&(!$._store.validated&&$.key==null||$._store.validated===2)){if(typeof $._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.");$._store.validated=1;var q=m(_),G=q||"null";if(!HB[G]){HB[G]=!0,$=$._owner,_=_._debugOwner;var X="";_&&typeof _.tag==="number"&&(G=m(_))&&(X=`
220
220
 
221
221
  Check the render method of \``+G+"`."),X||q&&(X=`
222
222
 
223
- Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=x($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),A1(J,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.',X,z)})}}};var Y8=qY(!0),zB=qY(!1),WB=0,LB=1,BB=2,FF=3,L6=!1,AB=!1,XF=null,KF=!1,g7=$1(null),EQ=$1(0),O5=$1(null),h5=null,p7=1,m_=2,o0=$1(0),hQ=0,x5=1,a2=2,I5=4,s2=8,c7,MB=new Set,TB=new Set,HF=new Set,RB=new Set,A3=0,a1=null,C0=null,Q2=null,xQ=!1,l7=!1,z8=!1,mQ=0,g_=0,M3=null,DP=0,uP=25,K1=null,m5=null,T3=-1,p_=!1,c_={readContext:u0,use:o3,useCallback:r0,useContext:r0,useEffect:r0,useImperativeHandle:r0,useLayoutEffect:r0,useInsertionEffect:r0,useMemo:r0,useReducer:r0,useRef:r0,useState:r0,useDebugValue:r0,useDeferredValue:r0,useTransition:r0,useSyncExternalStore:r0,useId:r0,useHostTransitionStatus:r0,useFormState:r0,useActionState:r0,useOptimistic:r0,useMemoCache:r0,useCacheRefresh:r0};c_.useEffectEvent=r0;var YF=null,OB=null,zF=null,IB=null,m4=null,$4=null,gQ=null;YF={readContext:function(_){return u0(_)},use:o3,useCallback:function(_,J){return K1="useCallback",q0(),G7(J),KG(_,J)},useContext:function(_){return K1="useContext",q0(),u0(_)},useEffect:function(_,J){return K1="useEffect",q0(),G7(J),D$(_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",q0(),G7($),XG(_,J,$)},useInsertionEffect:function(_,J){K1="useInsertionEffect",q0(),G7(J),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",q0(),G7(J),FG(_,J)},useMemo:function(_,J){K1="useMemo",q0(),G7(J);var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){K1="useReducer",q0();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return K1="useRef",q0(),GG(_)},useState:function(_){K1="useState",q0();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){K1="useDebugValue",q0()},useDeferredValue:function(_,J){return K1="useDeferredValue",q0(),YG(_,J)},useTransition:function(){return K1="useTransition",q0(),LG()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",q0(),JG(_,J,$)},useId:function(){return K1="useId",q0(),BG()},useFormState:function(_,J){return K1="useFormState",q0(),v$(),F7(_,J)},useActionState:function(_,J){return K1="useActionState",q0(),F7(_,J)},useOptimistic:function(_){return K1="useOptimistic",q0(),qG(_)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return K1="useCacheRefresh",q0(),AG()},useEffectEvent:function(_){return K1="useEffectEvent",q0(),ZG(_)}},OB={readContext:function(_){return u0(_)},use:o3,useCallback:function(_,J){return K1="useCallback",w1(),KG(_,J)},useContext:function(_){return K1="useContext",w1(),u0(_)},useEffect:function(_,J){return K1="useEffect",w1(),D$(_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",w1(),XG(_,J,$)},useInsertionEffect:function(_,J){K1="useInsertionEffect",w1(),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",w1(),FG(_,J)},useMemo:function(_,J){K1="useMemo",w1();var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){K1="useReducer",w1();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return K1="useRef",w1(),GG(_)},useState:function(_){K1="useState",w1();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){K1="useDebugValue",w1()},useDeferredValue:function(_,J){return K1="useDeferredValue",w1(),YG(_,J)},useTransition:function(){return K1="useTransition",w1(),LG()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",w1(),JG(_,J,$)},useId:function(){return K1="useId",w1(),BG()},useActionState:function(_,J){return K1="useActionState",w1(),F7(_,J)},useFormState:function(_,J){return K1="useFormState",w1(),v$(),F7(_,J)},useOptimistic:function(_){return K1="useOptimistic",w1(),qG(_)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return K1="useCacheRefresh",w1(),AG()},useEffectEvent:function(_){return K1="useEffectEvent",w1(),ZG(_)}},zF={readContext:function(_){return u0(_)},use:o3,useCallback:function(_,J){return K1="useCallback",w1(),E$(_,J)},useContext:function(_){return K1="useContext",w1(),u0(_)},useEffect:function(_,J){K1="useEffect",w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return K1="useInsertionEffect",w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",w1(),$5(4,I5,_,J)},useMemo:function(_,J){K1="useMemo",w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){K1="useReducer",w1();var q=Y1.H;Y1.H=$4;try{return Z7(_,J,$)}finally{Y1.H=q}},useRef:function(){return K1="useRef",w1(),R0().memoizedState},useState:function(){K1="useState",w1();var _=Y1.H;Y1.H=$4;try{return Z7(t5)}finally{Y1.H=_}},useDebugValue:function(){K1="useDebugValue",w1()},useDeferredValue:function(_,J){return K1="useDeferredValue",w1(),CY(_,J)},useTransition:function(){return K1="useTransition",w1(),VY()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",w1(),y$(_,J,$)},useId:function(){return K1="useId",w1(),R0().memoizedState},useFormState:function(_){return K1="useFormState",w1(),v$(),V$(_)},useActionState:function(_){return K1="useActionState",w1(),V$(_)},useOptimistic:function(_,J){return K1="useOptimistic",w1(),BY(_,J)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return K1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return K1="useEffectEvent",w1(),u$(_)}},IB={readContext:function(_){return u0(_)},use:o3,useCallback:function(_,J){return K1="useCallback",w1(),E$(_,J)},useContext:function(_){return K1="useContext",w1(),u0(_)},useEffect:function(_,J){K1="useEffect",w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return K1="useInsertionEffect",w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",w1(),$5(4,I5,_,J)},useMemo:function(_,J){K1="useMemo",w1();var $=Y1.H;Y1.H=gQ;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){K1="useReducer",w1();var q=Y1.H;Y1.H=gQ;try{return a9(_,J,$)}finally{Y1.H=q}},useRef:function(){return K1="useRef",w1(),R0().memoizedState},useState:function(){K1="useState",w1();var _=Y1.H;Y1.H=gQ;try{return a9(t5)}finally{Y1.H=_}},useDebugValue:function(){K1="useDebugValue",w1()},useDeferredValue:function(_,J){return K1="useDeferredValue",w1(),fY(_,J)},useTransition:function(){return K1="useTransition",w1(),kY()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",w1(),y$(_,J,$)},useId:function(){return K1="useId",w1(),R0().memoizedState},useFormState:function(_){return K1="useFormState",w1(),v$(),k$(_)},useActionState:function(_){return K1="useActionState",w1(),k$(_)},useOptimistic:function(_,J){return K1="useOptimistic",w1(),MY(_,J)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return K1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return K1="useEffectEvent",w1(),u$(_)}},m4={readContext:function(_){return M(),u0(_)},use:function(_){return L(),o3(_)},useCallback:function(_,J){return K1="useCallback",L(),q0(),KG(_,J)},useContext:function(_){return K1="useContext",L(),q0(),u0(_)},useEffect:function(_,J){return K1="useEffect",L(),q0(),D$(_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",L(),q0(),XG(_,J,$)},useInsertionEffect:function(_,J){K1="useInsertionEffect",L(),q0(),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",L(),q0(),FG(_,J)},useMemo:function(_,J){K1="useMemo",L(),q0();var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){K1="useReducer",L(),q0();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return K1="useRef",L(),q0(),GG(_)},useState:function(_){K1="useState",L(),q0();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){K1="useDebugValue",L(),q0()},useDeferredValue:function(_,J){return K1="useDeferredValue",L(),q0(),YG(_,J)},useTransition:function(){return K1="useTransition",L(),q0(),LG()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",L(),q0(),JG(_,J,$)},useId:function(){return K1="useId",L(),q0(),BG()},useFormState:function(_,J){return K1="useFormState",L(),q0(),F7(_,J)},useActionState:function(_,J){return K1="useActionState",L(),q0(),F7(_,J)},useOptimistic:function(_){return K1="useOptimistic",L(),q0(),qG(_)},useMemoCache:function(_){return L(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return K1="useCacheRefresh",q0(),AG()},useEffectEvent:function(_){return K1="useEffectEvent",L(),q0(),ZG(_)}},$4={readContext:function(_){return M(),u0(_)},use:function(_){return L(),o3(_)},useCallback:function(_,J){return K1="useCallback",L(),w1(),E$(_,J)},useContext:function(_){return K1="useContext",L(),w1(),u0(_)},useEffect:function(_,J){K1="useEffect",L(),w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",L(),w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return K1="useInsertionEffect",L(),w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",L(),w1(),$5(4,I5,_,J)},useMemo:function(_,J){K1="useMemo",L(),w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){K1="useReducer",L(),w1();var q=Y1.H;Y1.H=$4;try{return Z7(_,J,$)}finally{Y1.H=q}},useRef:function(){return K1="useRef",L(),w1(),R0().memoizedState},useState:function(){K1="useState",L(),w1();var _=Y1.H;Y1.H=$4;try{return Z7(t5)}finally{Y1.H=_}},useDebugValue:function(){K1="useDebugValue",L(),w1()},useDeferredValue:function(_,J){return K1="useDeferredValue",L(),w1(),CY(_,J)},useTransition:function(){return K1="useTransition",L(),w1(),VY()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",L(),w1(),y$(_,J,$)},useId:function(){return K1="useId",L(),w1(),R0().memoizedState},useFormState:function(_){return K1="useFormState",L(),w1(),V$(_)},useActionState:function(_){return K1="useActionState",L(),w1(),V$(_)},useOptimistic:function(_,J){return K1="useOptimistic",L(),w1(),BY(_,J)},useMemoCache:function(_){return L(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return K1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return K1="useEffectEvent",L(),w1(),u$(_)}},gQ={readContext:function(_){return M(),u0(_)},use:function(_){return L(),o3(_)},useCallback:function(_,J){return K1="useCallback",L(),w1(),E$(_,J)},useContext:function(_){return K1="useContext",L(),w1(),u0(_)},useEffect:function(_,J){K1="useEffect",L(),w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return K1="useImperativeHandle",L(),w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return K1="useInsertionEffect",L(),w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return K1="useLayoutEffect",L(),w1(),$5(4,I5,_,J)},useMemo:function(_,J){K1="useMemo",L(),w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){K1="useReducer",L(),w1();var q=Y1.H;Y1.H=$4;try{return a9(_,J,$)}finally{Y1.H=q}},useRef:function(){return K1="useRef",L(),w1(),R0().memoizedState},useState:function(){K1="useState",L(),w1();var _=Y1.H;Y1.H=$4;try{return a9(t5)}finally{Y1.H=_}},useDebugValue:function(){K1="useDebugValue",L(),w1()},useDeferredValue:function(_,J){return K1="useDeferredValue",L(),w1(),fY(_,J)},useTransition:function(){return K1="useTransition",L(),w1(),kY()},useSyncExternalStore:function(_,J,$){return K1="useSyncExternalStore",L(),w1(),y$(_,J,$)},useId:function(){return K1="useId",L(),w1(),R0().memoizedState},useFormState:function(_){return K1="useFormState",L(),w1(),k$(_)},useActionState:function(_){return K1="useActionState",L(),w1(),k$(_)},useOptimistic:function(_,J){return K1="useOptimistic",L(),w1(),MY(_,J)},useMemoCache:function(_){return L(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return K1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return K1="useEffectEvent",L(),w1(),u$(_)}};var wB={},PB=new Set,NB=new Set,CB=new Set,fB=new Set,SB=new Set,vB=new Set,jB=new Set,yB=new Set,VB=new Set,kB=new Set;Object.freeze(wB);var WF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=L5(_),G=r3(q);G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=a3(_,G,q),J!==null&&(A4(q,"this.setState()",_),c0(J,_,q),l9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=L5(_),G=r3(q);G.tag=LB,G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=a3(_,G,q),J!==null&&(A4(q,"this.replaceState()",_),c0(J,_,q),l9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=L5(_),q=r3($);q.tag=BB,J!==void 0&&J!==null&&(TG(J),q.callback=J),J=a3(_,q,$),J!==null&&(A4($,"this.forceUpdate()",_),c0(J,_,$),l9(J,_,$))}},i7=null,LF=null,BF=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."),q2=!1,DB={},uB={},bB={},EB={},d7=!1,hB={},pQ={},AF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},xB=!1,mB=null;mB=new Set;var R3=!1,U2=!1,MF=!1,gB=typeof WeakSet==="function"?WeakSet:Set,I2=null,r7=null,a7=null,G2=null,U5=!1,Q4=null,z2=!1,l_=8192,bP={getCacheForType:function(_){var J=u0(J2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return u0(J2).controller.signal},getOwner:function(){return M5}};if(typeof Symbol==="function"&&Symbol.for){var i_=Symbol.for;i_("selector.component"),i_("selector.has_pseudo_class"),i_("selector.role"),i_("selector.test_id"),i_("selector.text")}var EP=[],hP=typeof WeakMap==="function"?WeakMap:Map,w2=0,W2=2,w5=4,O3=0,d_=1,W8=2,cQ=3,B6=4,lQ=6,pB=5,Y0=w2,f0=null,Q0=null,J0=0,G5=0,iQ=1,L8=2,r_=3,cB=4,TF=5,a_=6,dQ=7,RF=8,B8=9,O0=G5,P5=null,A6=!1,s7=!1,OF=!1,g4=0,g0=O3,M6=0,T6=0,IF=0,Z5=0,A8=0,s_=null,t2=null,rQ=!1,aQ=0,lB=0,iB=300,sQ=1/0,dB=500,t_=null,a0=null,R6=null,tQ=0,wF=1,PF=2,rB=3,O6=0,aB=1,sB=2,tB=3,oB=4,oQ=5,Z2=0,I6=null,t7=null,q4=0,NF=0,CF=-0,fF=null,nB=null,eB=null,U4=tQ,_A=null,xP=50,o_=0,SF=null,vF=!1,nQ=!1,mP=50,M8=0,n_=null,o7=!1,eQ=null,JA=!1,$A=new Set,gP={},_q=null,n7=null,jF=!1,yF=!1,Jq=!1,VF=!1,w6=0,kF={};(function(){for(var _=0;_<lZ.length;_++){var J=lZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),s5($,"on"+J)}s5(VL,"onAnimationEnd"),s5(kL,"onAnimationIteration"),s5(DL,"onAnimationStart"),s5("dblclick","onDoubleClick"),s5("focusin","onFocus"),s5("focusout","onBlur"),s5(AP,"onTransitionRun"),s5(MP,"onTransitionStart"),s5(TP,"onTransitionCancel"),s5(uL,"onTransitionEnd")})(),S0("onMouseEnter",["mouseout","mouseover"]),S0("onMouseLeave",["mouseout","mouseover"]),S0("onPointerEnter",["pointerout","pointerover"]),S0("onPointerLeave",["pointerout","pointerover"]),p1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p1("onBeforeInput",["compositionend","keypress","textInput","paste"]),p1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var e_="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),DF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(e_)),$q="_reactListening"+Math.random().toString(36).slice(2),QA=!1,qA=!1,Qq=!1,UA=!1,qq=!1,Uq=!1,GA=!1,Gq={},pP=/\r\n?/g,cP=/\u0000|\uFFFD/g,T8="http://www.w3.org/1999/xlink",uF="http://www.w3.org/XML/1998/namespace",lP="javascript:throw new Error('React form unexpectedly submitted.')",iP="suppressHydrationWarning",R8="&",Zq="/&",_J="$",JJ="/$",P6="$?",O8="$~",e7="$!",dP="html",rP="body",aP="head",bF="F!",ZA="F",FA="loading",sP="style",I3=0,_9=1,Fq=2,EF=null,hF=null,XA={dialog:!0,webview:!0},xF=null,$J=void 0,KA=typeof setTimeout==="function"?setTimeout:void 0,tP=typeof clearTimeout==="function"?clearTimeout:void 0,I8=-1,HA=typeof Promise==="function"?Promise:void 0,oP=typeof queueMicrotask==="function"?queueMicrotask:typeof HA<"u"?function(_){return HA.resolve(null).then(_).catch(uI)}:KA,mF=null,w8=0,QJ=1,YA=2,zA=3,g5=4,p5=new Map,WA=new Set,w3=A0.d;A0.d={f:function(){var _=w3.f(),J=z7();return _||J},r:function(_){var J=N1(_);J!==null&&J.tag===5&&J.type==="form"?yY(J):w3.r(_)},D:function(_){w3.D(_),PW("dns-prefetch",_,null)},C:function(_,J){w3.C(_,J),PW("preconnect",_,J)},L:function(_,J,$){w3.L(_,J,$);var q=J9;if(q&&_&&J){var G='link[rel="preload"][as="'+_5(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+_5($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+_5($.imageSizes)+'"]')):G+='[href="'+_5(_)+'"]':G+='[href="'+_5(_)+'"]';var X=G;switch(J){case"style":X=B7(_);break;case"script":X=A7(_)}p5.has(X)||(_=U0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),p5.set(X,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(X_(X))||J==="script"&&q.querySelector(K_(X))||(J=q.createElement("link"),v2(J,"link",_),j1(J),q.head.appendChild(J)))}},m:function(_,J){w3.m(_,J);var $=J9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+_5(q)+'"][href="'+_5(_)+'"]',X=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=A7(_)}if(!p5.has(X)&&(_=U0({rel:"modulepreload",href:_},J),p5.set(X,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(K_(X)))return}q=$.createElement("link"),v2(q,"link",_),j1(q),$.head.appendChild(q)}}},X:function(_,J){w3.X(_,J);var $=J9;if($&&_){var q=V1($).hoistableScripts,G=A7(_),X=q.get(G);X||(X=$.querySelector(K_(G)),X||(_=U0({src:_,async:!0},J),(J=p5.get(G))&&XZ(_,J),X=$.createElement("script"),j1(X),v2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}},S:function(_,J,$){w3.S(_,J,$);var q=J9;if(q&&_){var G=V1(q).hoistableStyles,X=B7(_);J=J||"default";var z=G.get(X);if(!z){var B={loading:w8,preload:null};if(z=q.querySelector(X_(X)))B.loading=QJ|g5;else{_=U0({rel:"stylesheet",href:_,"data-precedence":J},$),($=p5.get(X))&&FZ(_,$);var w=z=q.createElement("link");j1(w),v2(w,"link",_),w._p=new Promise(function(S,e){w.onload=S,w.onerror=e}),w.addEventListener("load",function(){B.loading|=QJ}),w.addEventListener("error",function(){B.loading|=YA}),B.loading|=g5,QQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:B},G.set(X,z)}}},M:function(_,J){w3.M(_,J);var $=J9;if($&&_){var q=V1($).hoistableScripts,G=A7(_),X=q.get(G);X||(X=$.querySelector(K_(G)),X||(_=U0({src:_,async:!0,type:"module"},J),(J=p5.get(G))&&XZ(_,J),X=$.createElement("script"),j1(X),v2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}}};var J9=typeof document>"u"?null:document,Xq=null,nP=60000,eP=800,_N=500,gF=0,pF=null,Kq=null,P8=Lw,qJ={$$typeof:y4,Provider:null,Consumer:null,_currentValue:P8,_currentValue2:P8,_threadCount:0},LA="%c%s%c",BA="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",AA="",Hq=" ",JN=Function.prototype.bind,MA=!1,TA=null,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null,SA=null;TA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},RA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},OA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},IA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},wA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},PA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},NA=function(_){var J=k2(_,2);J!==null&&c0(J,_,2)},CA=function(_){var J=M2(),$=k2(_,J);$!==null&&c0($,_,J)},fA=function(_){W=_},SA=function(_){Y=_};var Yq=!0,zq=null,cF=!1,N6=null,C6=null,f6=null,UJ=new Map,GJ=new Map,S6=[],$N="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Wq=null;if(FQ.prototype.render=LZ.prototype.render=function(_){var J=this._internalRoot;if(J===null)throw Error("Cannot update an unmounted root.");var $=arguments;typeof $[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):v($[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof $[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),$=_;var q=J.current,G=L5(q);KZ(q,G,$,J,null,null)},FQ.prototype.unmount=LZ.prototype.unmount=function(){var _=arguments;if(typeof _[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),_=this._internalRoot,_!==null){this._internalRoot=null;var J=_.containerInfo;(Y0&(W2|w5))!==w2&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),KZ(_.current,2,null,_,null,null),z7(),J[q6]=null}},FQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=l();_={blockedOn:null,target:_,priority:J};for(var $=0;$<S6.length&&J!==0&&J<S6[$].priority;$++);S6.splice($,0,_),$===0&&hW(_)}},function(){var _=$9.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=m($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),z1(J,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.',X,z)})}}};var R8=UY(!0),WB=UY(!1),LB=0,BB=1,AB=2,FF=3,P6=!1,MB=!1,XF=null,KF=!1,r7=s(null),hQ=s(0),k5=s(null),a5=null,a7=1,l_=2,F2=s(0),xQ=0,s5=1,q5=2,D5=4,U5=8,s7,TB=new Set,RB=new Set,HF=new Set,OB=new Set,N3=0,t1=null,D0=null,z2=null,mQ=!1,t7=!1,O8=!1,gQ=0,i_=0,C3=null,EP=0,hP=25,X1=null,t5=null,f3=-1,d_=!1,r_={readContext:p0,use:G6,useCallback:$2,useContext:$2,useEffect:$2,useImperativeHandle:$2,useLayoutEffect:$2,useInsertionEffect:$2,useMemo:$2,useReducer:$2,useRef:$2,useState:$2,useDebugValue:$2,useDeferredValue:$2,useTransition:$2,useSyncExternalStore:$2,useId:$2,useHostTransitionStatus:$2,useFormState:$2,useActionState:$2,useOptimistic:$2,useMemoCache:$2,useCacheRefresh:$2};r_.useEffectEvent=$2;var YF=null,IB=null,zF=null,wB=null,s4=null,Y4=null,pQ=null;YF={readContext:function(_){return p0(_)},use:G6,useCallback:function(_,J){return X1="useCallback",H0(),Y7(J),KG(_,J)},useContext:function(_){return X1="useContext",H0(),p0(_)},useEffect:function(_,J){return X1="useEffect",H0(),Y7(J),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",H0(),Y7($),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",H0(),Y7(J),U8(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",H0(),Y7(J),FG(_,J)},useMemo:function(_,J){X1="useMemo",H0(),Y7(J);var $=Y1.H;Y1.H=s4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",H0();var q=Y1.H;Y1.H=s4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",H0(),GG(_)},useState:function(_){X1="useState",H0();var J=Y1.H;Y1.H=s4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",H0()},useDeferredValue:function(_,J){return X1="useDeferredValue",H0(),YG(_,J)},useTransition:function(){return X1="useTransition",H0(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",H0(),JG(_,J,$)},useId:function(){return X1="useId",H0(),BG()},useFormState:function(_,J){return X1="useFormState",H0(),j$(),W7(_,J)},useActionState:function(_,J){return X1="useActionState",H0(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",H0(),qG(_)},useHostTransitionStatus:G8,useMemoCache:q8,useCacheRefresh:function(){return X1="useCacheRefresh",H0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",H0(),ZG(_)}},IB={readContext:function(_){return p0(_)},use:G6,useCallback:function(_,J){return X1="useCallback",w1(),KG(_,J)},useContext:function(_){return X1="useContext",w1(),p0(_)},useEffect:function(_,J){return X1="useEffect",w1(),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",w1(),U8(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),FG(_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=s4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=s4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",w1(),GG(_)},useState:function(_){X1="useState",w1();var J=Y1.H;Y1.H=s4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),YG(_,J)},useTransition:function(){return X1="useTransition",w1(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),JG(_,J,$)},useId:function(){return X1="useId",w1(),BG()},useActionState:function(_,J){return X1="useActionState",w1(),W7(_,J)},useFormState:function(_,J){return X1="useFormState",w1(),j$(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",w1(),qG(_)},useHostTransitionStatus:G8,useMemoCache:q8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",w1(),ZG(_)}},zF={readContext:function(_){return p0(_)},use:G6,useCallback:function(_,J){return X1="useCallback",w1(),h$(_,J)},useContext:function(_){return X1="useContext",w1(),p0(_)},useEffect:function(_,J){X1="useEffect",w1(),Y5(2048,U5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),Y5(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),Y5(4,D5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=Y4;try{return x$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=Y4;try{return z7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),S0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=Y4;try{return z7(G4)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),fY(_,J)},useTransition:function(){return X1="useTransition",w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),y$(_,J,$)},useId:function(){return X1="useId",w1(),S0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),j$(),k$(_)},useActionState:function(_){return X1="useActionState",w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),AY(_,J)},useHostTransitionStatus:G8,useMemoCache:q8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),S0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),b$(_)}},wB={readContext:function(_){return p0(_)},use:G6,useCallback:function(_,J){return X1="useCallback",w1(),h$(_,J)},useContext:function(_){return X1="useContext",w1(),p0(_)},useEffect:function(_,J){X1="useEffect",w1(),Y5(2048,U5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),Y5(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),Y5(4,D5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=pQ;try{return x$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=pQ;try{return n9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),S0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=pQ;try{return n9(G4)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),SY(_,J)},useTransition:function(){return X1="useTransition",w1(),DY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),y$(_,J,$)},useId:function(){return X1="useId",w1(),S0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),j$(),D$(_)},useActionState:function(_){return X1="useActionState",w1(),D$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),TY(_,J)},useHostTransitionStatus:G8,useMemoCache:q8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),S0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),b$(_)}},s4={readContext:function(_){return M(),p0(_)},use:function(_){return L(),G6(_)},useCallback:function(_,J){return X1="useCallback",L(),H0(),KG(_,J)},useContext:function(_){return X1="useContext",L(),H0(),p0(_)},useEffect:function(_,J){return X1="useEffect",L(),H0(),u$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),H0(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",L(),H0(),U8(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),H0(),FG(_,J)},useMemo:function(_,J){X1="useMemo",L(),H0();var $=Y1.H;Y1.H=s4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),H0();var q=Y1.H;Y1.H=s4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",L(),H0(),GG(_)},useState:function(_){X1="useState",L(),H0();var J=Y1.H;Y1.H=s4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",L(),H0()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),H0(),YG(_,J)},useTransition:function(){return X1="useTransition",L(),H0(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),H0(),JG(_,J,$)},useId:function(){return X1="useId",L(),H0(),BG()},useFormState:function(_,J){return X1="useFormState",L(),H0(),W7(_,J)},useActionState:function(_,J){return X1="useActionState",L(),H0(),W7(_,J)},useOptimistic:function(_){return X1="useOptimistic",L(),H0(),qG(_)},useMemoCache:function(_){return L(),q8(_)},useHostTransitionStatus:G8,useCacheRefresh:function(){return X1="useCacheRefresh",H0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",L(),H0(),ZG(_)}},Y4={readContext:function(_){return M(),p0(_)},use:function(_){return L(),G6(_)},useCallback:function(_,J){return X1="useCallback",L(),w1(),h$(_,J)},useContext:function(_){return X1="useContext",L(),w1(),p0(_)},useEffect:function(_,J){X1="useEffect",L(),w1(),Y5(2048,U5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),w1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),w1(),Y5(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),w1(),Y5(4,D5,_,J)},useMemo:function(_,J){X1="useMemo",L(),w1();var $=Y1.H;Y1.H=Y4;try{return x$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),w1();var q=Y1.H;Y1.H=Y4;try{return z7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",L(),w1(),S0().memoizedState},useState:function(){X1="useState",L(),w1();var _=Y1.H;Y1.H=Y4;try{return z7(G4)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),w1(),fY(_,J)},useTransition:function(){return X1="useTransition",L(),w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),w1(),y$(_,J,$)},useId:function(){return X1="useId",L(),w1(),S0().memoizedState},useFormState:function(_){return X1="useFormState",L(),w1(),k$(_)},useActionState:function(_){return X1="useActionState",L(),w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",L(),w1(),AY(_,J)},useMemoCache:function(_){return L(),q8(_)},useHostTransitionStatus:G8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),S0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),w1(),b$(_)}},pQ={readContext:function(_){return M(),p0(_)},use:function(_){return L(),G6(_)},useCallback:function(_,J){return X1="useCallback",L(),w1(),h$(_,J)},useContext:function(_){return X1="useContext",L(),w1(),p0(_)},useEffect:function(_,J){X1="useEffect",L(),w1(),Y5(2048,U5,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),w1(),E$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),w1(),Y5(4,q5,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),w1(),Y5(4,D5,_,J)},useMemo:function(_,J){X1="useMemo",L(),w1();var $=Y1.H;Y1.H=Y4;try{return x$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),w1();var q=Y1.H;Y1.H=Y4;try{return n9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",L(),w1(),S0().memoizedState},useState:function(){X1="useState",L(),w1();var _=Y1.H;Y1.H=Y4;try{return n9(G4)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),w1(),SY(_,J)},useTransition:function(){return X1="useTransition",L(),w1(),DY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),w1(),y$(_,J,$)},useId:function(){return X1="useId",L(),w1(),S0().memoizedState},useFormState:function(_){return X1="useFormState",L(),w1(),D$(_)},useActionState:function(_){return X1="useActionState",L(),w1(),D$(_)},useOptimistic:function(_,J){return X1="useOptimistic",L(),w1(),TY(_,J)},useMemoCache:function(_){return L(),q8(_)},useHostTransitionStatus:G8,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),S0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),w1(),b$(_)}};var PB={},NB=new Set,CB=new Set,fB=new Set,SB=new Set,vB=new Set,jB=new Set,VB=new Set,yB=new Set,kB=new Set,DB=new Set;Object.freeze(PB);var WF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=f5(_),G=$6(q);G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=Q6(_,G,q),J!==null&&(C4(q,"this.setState()",_),o0(J,_,q),a9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=f5(_),G=$6(q);G.tag=BB,G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=Q6(_,G,q),J!==null&&(C4(q,"this.replaceState()",_),o0(J,_,q),a9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=f5(_),q=$6($);q.tag=AB,J!==void 0&&J!==null&&(TG(J),q.callback=J),J=Q6(_,q,$),J!==null&&(C4($,"this.forceUpdate()",_),o0(J,_,$),a9(J,_,$))}},o7=null,LF=null,BF=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."),W2=!1,uB={},bB={},EB={},hB={},n7=!1,xB={},cQ={},AF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},mB=!1,gB=null;gB=new Set;var S3=!1,L2=!1,MF=!1,pB=typeof WeakSet==="function"?WeakSet:Set,y2=null,e7=null,_9=null,B2=null,L5=!1,z4=null,I2=!1,a_=8192,xP={getCacheForType:function(_){var J=p0(H2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return p0(H2).controller.signal},getOwner:function(){return j5}};if(typeof Symbol==="function"&&Symbol.for){var s_=Symbol.for;s_("selector.component"),s_("selector.has_pseudo_class"),s_("selector.role"),s_("selector.test_id"),s_("selector.text")}var mP=[],gP=typeof WeakMap==="function"?WeakMap:Map,k2=0,w2=2,u5=4,v3=0,t_=1,I8=2,lQ=3,N6=4,iQ=6,cB=5,R0=k2,u0=null,X0=null,G0=0,B5=0,dQ=1,w8=2,o_=3,lB=4,TF=5,n_=6,rQ=7,RF=8,P8=9,v0=B5,b5=null,C6=!1,J9=!1,OF=!1,t4=0,a0=v3,f6=0,S6=0,IF=0,A5=0,N8=0,e_=null,G5=null,aQ=!1,sQ=0,iB=0,dB=300,tQ=1/0,rB=500,_J=null,Q2=null,v6=null,oQ=0,wF=1,PF=2,aB=3,j6=0,sB=1,tB=2,oB=3,nB=4,nQ=5,A2=0,V6=null,$9=null,W4=0,NF=0,CF=-0,fF=null,eB=null,_A=null,L4=oQ,JA=null,pP=50,JJ=0,SF=null,vF=!1,eQ=!1,cP=50,C8=0,$J=null,Q9=!1,_q=null,$A=!1,QA=new Set,lP={},Jq=null,q9=null,jF=!1,VF=!1,$q=!1,yF=!1,y6=0,kF={};(function(){for(var _=0;_<lZ.length;_++){var J=lZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),U4($,"on"+J)}U4(kL,"onAnimationEnd"),U4(DL,"onAnimationIteration"),U4(uL,"onAnimationStart"),U4("dblclick","onDoubleClick"),U4("focusin","onFocus"),U4("focusout","onBlur"),U4(RP,"onTransitionRun"),U4(OP,"onTransitionStart"),U4(IP,"onTransitionCancel"),U4(bL,"onTransitionEnd")})(),E2("onMouseEnter",["mouseout","mouseover"]),E2("onMouseLeave",["mouseout","mouseover"]),E2("onPointerEnter",["pointerout","pointerover"]),E2("onPointerLeave",["pointerout","pointerover"]),K2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K2("onBeforeInput",["compositionend","keypress","textInput","paste"]),K2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var QJ="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),DF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(QJ)),Qq="_reactListening"+Math.random().toString(36).slice(2),qA=!1,UA=!1,qq=!1,GA=!1,Uq=!1,Gq=!1,ZA=!1,Zq={},iP=/\r\n?/g,dP=/\u0000|\uFFFD/g,f8="http://www.w3.org/1999/xlink",uF="http://www.w3.org/XML/1998/namespace",rP="javascript:throw new Error('React form unexpectedly submitted.')",aP="suppressHydrationWarning",S8="&",Fq="/&",qJ="$",UJ="/$",k6="$?",v8="$~",U9="$!",sP="html",tP="body",oP="head",bF="F!",FA="F",XA="loading",nP="style",j3=0,G9=1,Xq=2,EF=null,hF=null,KA={dialog:!0,webview:!0},xF=null,GJ=void 0,HA=typeof setTimeout==="function"?setTimeout:void 0,eP=typeof clearTimeout==="function"?clearTimeout:void 0,j8=-1,YA=typeof Promise==="function"?Promise:void 0,_N=typeof queueMicrotask==="function"?queueMicrotask:typeof YA<"u"?function(_){return YA.resolve(null).then(_).catch(hI)}:HA,mF=null,V8=0,ZJ=1,zA=2,WA=3,o5=4,n5=new Map,LA=new Set,V3=C0.d;C0.d={f:function(){var _=V3.f(),J=T7();return _||J},r:function(_){var J=i1(_);J!==null&&J.tag===5&&J.type==="form"?yY(J):V3.r(_)},D:function(_){V3.D(_),NW("dns-prefetch",_,null)},C:function(_,J){V3.C(_,J),NW("preconnect",_,J)},L:function(_,J,$){V3.L(_,J,$);var q=Z9;if(q&&_&&J){var G='link[rel="preload"][as="'+w0(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+w0($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+w0($.imageSizes)+'"]')):G+='[href="'+w0(_)+'"]':G+='[href="'+w0(_)+'"]';var X=G;switch(J){case"style":X=I7(_);break;case"script":X=w7(_)}n5.has(X)||(_=Y0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),n5.set(X,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(z_(X))||J==="script"&&q.querySelector(W_(X))||(J=q.createElement("link"),m2(J,"link",_),x1(J),q.head.appendChild(J)))}},m:function(_,J){V3.m(_,J);var $=Z9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+w0(q)+'"][href="'+w0(_)+'"]',X=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=w7(_)}if(!n5.has(X)&&(_=Y0({rel:"modulepreload",href:_},J),n5.set(X,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(W_(X)))return}q=$.createElement("link"),m2(q,"link",_),x1(q),$.head.appendChild(q)}}},X:function(_,J){V3.X(_,J);var $=Z9;if($&&_){var q=F0($).hoistableScripts,G=w7(_),X=q.get(G);X||(X=$.querySelector(W_(G)),X||(_=Y0({src:_,async:!0},J),(J=n5.get(G))&&XZ(_,J),X=$.createElement("script"),x1(X),m2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}},S:function(_,J,$){V3.S(_,J,$);var q=Z9;if(q&&_){var G=F0(q).hoistableStyles,X=I7(_);J=J||"default";var z=G.get(X);if(!z){var B={loading:V8,preload:null};if(z=q.querySelector(z_(X)))B.loading=ZJ|o5;else{_=Y0({rel:"stylesheet",href:_,"data-precedence":J},$),($=n5.get(X))&&FZ(_,$);var I=z=q.createElement("link");x1(I),m2(I,"link",_),I._p=new Promise(function(f,e){I.onload=f,I.onerror=e}),I.addEventListener("load",function(){B.loading|=ZJ}),I.addEventListener("error",function(){B.loading|=zA}),B.loading|=o5,qQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:B},G.set(X,z)}}},M:function(_,J){V3.M(_,J);var $=Z9;if($&&_){var q=F0($).hoistableScripts,G=w7(_),X=q.get(G);X||(X=$.querySelector(W_(G)),X||(_=Y0({src:_,async:!0,type:"module"},J),(J=n5.get(G))&&XZ(_,J),X=$.createElement("script"),x1(X),m2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}}};var Z9=typeof document>"u"?null:document,Kq=null,JN=60000,$N=800,QN=500,gF=0,pF=null,Hq=null,y8=Mw,FJ={$$typeof:m4,Provider:null,Consumer:null,_currentValue:y8,_currentValue2:y8,_threadCount:0},BA="%c%s%c",AA="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",MA="",Yq=" ",qN=Function.prototype.bind,TA=!1,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null,SA=null,vA=null;RA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=l2(_,2),$!==null&&o0($,_,2))},OA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=l2(_,2),$!==null&&o0($,_,2))},IA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=Y0({},_.memoizedProps),$=l2(_,2),$!==null&&o0($,_,2))},wA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=l2(_,2),J!==null&&o0(J,_,2)},PA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=l2(_,2),J!==null&&o0(J,_,2)},NA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=l2(_,2),J!==null&&o0(J,_,2)},CA=function(_){var J=l2(_,2);J!==null&&o0(J,_,2)},fA=function(_){var J=T2(),$=l2(_,J);$!==null&&o0($,_,J)},SA=function(_){W=_},vA=function(_){Y=_};var zq=!0,Wq=null,cF=!1,D6=null,u6=null,b6=null,XJ=new Map,KJ=new Map,E6=[],UN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Lq=null;if(XQ.prototype.render=LZ.prototype.render=function(_){var J=this._internalRoot;if(J===null)throw Error("Cannot update an unmounted root.");var $=arguments;typeof $[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):S($[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof $[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),$=_;var q=J.current,G=f5(q);KZ(q,G,$,J,null,null)},XQ.prototype.unmount=LZ.prototype.unmount=function(){var _=arguments;if(typeof _[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),_=this._internalRoot,_!==null){this._internalRoot=null;var J=_.containerInfo;(R0&(w2|u5))!==k2&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),KZ(_.current,2,null,_,null,null),T7(),J[z6]=null}},XQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=q1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<E6.length&&J!==0&&J<E6[$].priority;$++);E6.splice($,0,_),$===0&&xW(_)}},function(){var _=F9.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
224
  - react: `+(_+`
225
225
  - react-dom: 19.2.7
226
- Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),A0.findDOMNode=function(_){var J=_._reactInternals;if(J===void 0){if(typeof _.render==="function")throw Error("Unable to find node on an unmounted component.");throw _=Object.keys(_).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+_)}return _=u(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Y1,reconcilerVersion:"19.2.7"};return _.overrideHookState=TA,_.overrideHookStateDeletePath=RA,_.overrideHookStateRenamePath=OA,_.overrideProps=IA,_.overridePropsDeletePath=wA,_.overridePropsRenamePath=PA,_.scheduleUpdate=NA,_.scheduleRetry=CA,_.setErrorHandler=fA,_.setSuspenseHandler=SA,_.scheduleRefresh=N,_.scheduleRoot=P,_.setRefreshHandler=V,_.getCurrentFiber=Zw,D0(_)}()&&b4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var vA=window.location.protocol;/^(https?|file):$/.test(vA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(vA==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}LN.createRoot=function(_,J){if(!v(_))throw Error("Target container is not a DOM element.");pW(_);var $=!1,q="",G=xY,X=mY,z=gY;return J!==null&&J!==void 0&&(J.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof J==="object"&&J!==null&&J.$$typeof===j4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
226
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),C0.findDOMNode=function(_){var J=_._reactInternals;if(J===void 0){if(typeof _.render==="function")throw Error("Unable to find node on an unmounted component.");throw _=Object.keys(_).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+_)}return _=D(J),_=_!==null?x(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Y1,reconcilerVersion:"19.2.7"};return _.overrideHookState=RA,_.overrideHookStateDeletePath=OA,_.overrideHookStateRenamePath=IA,_.overrideProps=wA,_.overridePropsDeletePath=PA,_.overridePropsRenamePath=NA,_.scheduleUpdate=CA,_.scheduleRetry=fA,_.setErrorHandler=SA,_.setSuspenseHandler=vA,_.scheduleRefresh=P,_.scheduleRoot=w,_.setRefreshHandler=V,_.getCurrentFiber=Kw,g0(_)}()&&i4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var jA=window.location.protocol;/^(https?|file):$/.test(jA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(jA==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}MN.createRoot=function(_,J){if(!S(_))throw Error("Target container is not a DOM element.");cW(_);var $=!1,q="",G=mY,X=gY,z=pY;return J!==null&&J!==void 0&&(J.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof J==="object"&&J!==null&&J.$$typeof===x4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
228
 
229
229
  let root = createRoot(domContainer);
230
- root.render(<App />);`),J.unstable_strictMode===!0&&($=!0),J.identifierPrefix!==void 0&&(q=J.identifierPrefix),J.onUncaughtError!==void 0&&(G=J.onUncaughtError),J.onCaughtError!==void 0&&(X=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=yW(_,1,!1,null,null,$,q,null,G,X,z,gW),_[q6]=J.current,tG(_),new LZ(J)},LN.hydrateRoot=function(_,J,$){if(!v(_))throw Error("Target container is not a DOM element.");pW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",X=xY,z=mY,B=gY,w=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(X=$.onUncaughtError),$.onCaughtError!==void 0&&(z=$.onCaughtError),$.onRecoverableError!==void 0&&(B=$.onRecoverableError),$.formState!==void 0&&(w=$.formState)),J=yW(_,1,!0,J,$!=null?$:null,q,G,w,X,z,B,gW),J.context=VW(null),$=J.current,q=L5($),q=r5(q),G=r3(q),G.callback=null,a3($,G,q),A4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,_2(J,$),S4(J),_[q6]=J.current,tG(_),new FQ(J)},LN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var bA=p4((Lk,uA)=>{var BN=p0(DA());uA.exports=BN});var f8=p4((AN)=>{var C8=p0(G4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===x?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case f:return"Profiler";case v:return"StrictMode";case u:return"Suspense";case h:return"SuspenseList";case D:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case N:return"Portal";case C:return k.displayName||"Context";case y:return(k._context.displayName||"Context")+".Consumer";case j:var g=k.render;return k=k.displayName,k||(k=g.displayName||g.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return g=k.displayName||null,g!==null?g:Q(k.type)||"Memo";case b:g=k._payload,k=k._init;try{return Q(k(g))}catch(q1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var g=!1}catch(W1){g=!0}if(g){g=console;var q1=g.error,t=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return q1.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),U(k)}}function K(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===b)return"<...>";try{var g=Q(k);return g?"<"+g+">":"<...>"}catch(q1){return"<...>"}}function H(){var k=$1.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(k){if(Q1.call(k,"key")){var g=Object.getOwnPropertyDescriptor(k,"key").get;if(g&&g.isReactWarning)return!1}return k.key!==void 0}function L(k,g){function q1(){p||(p=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}q1.isReactWarning=!0,Object.defineProperty(k,"key",{get:q1,configurable:!0})}function M(){var k=Q(this.type);return c[k]||(c[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function O(k,g,q1,t,W1,T1){var O1=q1.ref;return k={$$typeof:P,type:k,key:g,props:q1,_owner:t},(O1!==void 0?O1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,g,q1,t,W1,T1){var O1=g.children;if(O1!==void 0)if(t)if(J1(O1)){for(t=0;t<O1.length;t++)A(O1[t]);Object.freeze&&Object.freeze(O1)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(O1);if(Q1.call(g,"key")){O1=Q(k);var L1=Object.keys(g).filter(function(P1){return P1!=="key"});t=0<L1.length?"{key: someKey, "+L1.join(": ..., ")+": ...}":"{key: someKey}",o[O1+t]||(L1=0<L1.length?"{"+L1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),J.unstable_strictMode===!0&&($=!0),J.identifierPrefix!==void 0&&(q=J.identifierPrefix),J.onUncaughtError!==void 0&&(G=J.onUncaughtError),J.onCaughtError!==void 0&&(X=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=yW(_,1,!1,null,null,$,q,null,G,X,z,pW),_[z6]=J.current,tG(_),new LZ(J)},MN.hydrateRoot=function(_,J,$){if(!S(_))throw Error("Target container is not a DOM element.");cW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",X=mY,z=gY,B=pY,I=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(X=$.onUncaughtError),$.onCaughtError!==void 0&&(z=$.onCaughtError),$.onRecoverableError!==void 0&&(B=$.onRecoverableError),$.formState!==void 0&&(I=$.formState)),J=yW(_,1,!0,J,$!=null?$:null,q,G,I,X,z,B,pW),J.context=kW(null),$=J.current,q=f5($),q=R5(q),G=$6(q),G.callback=null,Q6($,G,q),C4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,R2(J,$),E4(J),_[z6]=J.current,tG(_),new XQ(J)},MN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var EA=o4((Ak,bA)=>{var TN=s0(uA());bA.exports=TN});var u8=o4((RN)=>{var D8=s0(B4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case x:return"SuspenseList";case b:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case y:return(k._context.displayName||"Context")+".Consumer";case v:var t=k.render;return k=k.displayName,k||(k=t.displayName||t.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return t=k.displayName||null,t!==null?t:Q(k.type)||"Memo";case u:t=k._payload,k=k._init;try{return Q(k(t))}catch(_1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var t=!1}catch(H1){t=!0}if(t){t=console;var _1=t.error,a=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return _1.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),U(k)}}function K(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===u)return"<...>";try{var t=Q(k);return t?"<"+t+">":"<...>"}catch(_1){return"<...>"}}function H(){var k=s.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(k){if(U1.call(k,"key")){var t=Object.getOwnPropertyDescriptor(k,"key").get;if(t&&t.isReactWarning)return!1}return k.key!==void 0}function L(k,t){function _1(){g||(g=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}_1.isReactWarning=!0,Object.defineProperty(k,"key",{get:_1,configurable:!0})}function M(){var k=Q(this.type);return p[k]||(p[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function O(k,t,_1,a,H1,O1){var L1=_1.ref;return k={$$typeof:w,type:k,key:t,props:_1,_owner:a},(L1!==void 0?L1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,t,_1,a,H1,O1){var L1=t.children;if(L1!==void 0)if(a)if(Q1(L1)){for(a=0;a<L1.length;a++)A(L1[a]);Object.freeze&&Object.freeze(L1)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(L1);if(U1.call(t,"key")){L1=Q(k);var T1=Object.keys(t).filter(function(R1){return R1!=="key"});a=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",o[L1+a]||(T1=0<T1.length?"{"+T1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
231
  let props = %s;
232
232
  <%s {...props} />
233
233
  React keys must be passed directly to JSX without using spread:
234
234
  let props = %s;
235
- <%s key={someKey} {...props} />`,t,O1,L1,O1),o[O1+t]=!0)}if(O1=null,q1!==void 0&&(Z(q1),O1=""+q1),W(g)&&(Z(g.key),O1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return O1&&L(q1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,O1,q1,H(),W1,T1)}function A(k){R(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===b&&(k._payload.status==="fulfilled"?R(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function R(k){return typeof k==="object"&&k!==null&&k.$$typeof===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),C=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),$1=C8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,m=console.createTask?console.createTask:function(){return null};C8={react_stack_bottom_frame:function(k){return k()}};var p,c={},a=C8.react_stack_bottom_frame.bind(C8,Y)(),i=m(K(Y)),o={};AN.Fragment=V,AN.jsxDEV=function(k,g,q1,t){var W1=1e4>$1.recentlyCreatedOwnerStacks++;return T(k,g,q1,t,W1?Error("react-stack-top-frame"):a,W1?m(K(k)):i)}})()});var iA=p4((wN)=>{var j8=p0(G4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===x?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case f:return"Profiler";case v:return"StrictMode";case u:return"Suspense";case h:return"SuspenseList";case D:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case N:return"Portal";case C:return k.displayName||"Context";case y:return(k._context.displayName||"Context")+".Consumer";case j:var g=k.render;return k=k.displayName,k||(k=g.displayName||g.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return g=k.displayName||null,g!==null?g:Q(k.type)||"Memo";case b:g=k._payload,k=k._init;try{return Q(k(g))}catch(q1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var g=!1}catch(W1){g=!0}if(g){g=console;var q1=g.error,t=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return q1.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),U(k)}}function K(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===b)return"<...>";try{var g=Q(k);return g?"<"+g+">":"<...>"}catch(q1){return"<...>"}}function H(){var k=$1.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(k){if(Q1.call(k,"key")){var g=Object.getOwnPropertyDescriptor(k,"key").get;if(g&&g.isReactWarning)return!1}return k.key!==void 0}function L(k,g){function q1(){p||(p=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}q1.isReactWarning=!0,Object.defineProperty(k,"key",{get:q1,configurable:!0})}function M(){var k=Q(this.type);return c[k]||(c[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function O(k,g,q1,t,W1,T1){var O1=q1.ref;return k={$$typeof:P,type:k,key:g,props:q1,_owner:t},(O1!==void 0?O1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,g,q1,t,W1,T1){var O1=g.children;if(O1!==void 0)if(t)if(J1(O1)){for(t=0;t<O1.length;t++)A(O1[t]);Object.freeze&&Object.freeze(O1)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(O1);if(Q1.call(g,"key")){O1=Q(k);var L1=Object.keys(g).filter(function(P1){return P1!=="key"});t=0<L1.length?"{key: someKey, "+L1.join(": ..., ")+": ...}":"{key: someKey}",o[O1+t]||(L1=0<L1.length?"{"+L1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,a,L1,T1,L1),o[L1+a]=!0)}if(L1=null,_1!==void 0&&(Z(_1),L1=""+_1),W(t)&&(Z(t.key),L1=""+t.key),"key"in t){_1={};for(var G1 in t)G1!=="key"&&(_1[G1]=t[G1])}else _1=t;return L1&&L(_1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,L1,_1,H(),H1,O1)}function A(k){R(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===u&&(k._payload.status==="fulfilled"?R(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function R(k){return typeof k==="object"&&k!==null&&k.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),N=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),s=D8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=Object.prototype.hasOwnProperty,Q1=Array.isArray,h=console.createTask?console.createTask:function(){return null};D8={react_stack_bottom_frame:function(k){return k()}};var g,p={},c=D8.react_stack_bottom_frame.bind(D8,Y)(),l=h(K(Y)),o={};RN.Fragment=V,RN.jsxDEV=function(k,t,_1,a){var H1=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,a,H1?Error("react-stack-top-frame"):c,H1?h(K(k)):l)}})()});var dA=o4((CN)=>{var h8=s0(B4());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case x:return"SuspenseList";case b:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case y:return(k._context.displayName||"Context")+".Consumer";case v:var t=k.render;return k=k.displayName,k||(k=t.displayName||t.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return t=k.displayName||null,t!==null?t:Q(k.type)||"Memo";case u:t=k._payload,k=k._init;try{return Q(k(t))}catch(_1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var t=!1}catch(H1){t=!0}if(t){t=console;var _1=t.error,a=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return _1.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),U(k)}}function K(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===u)return"<...>";try{var t=Q(k);return t?"<"+t+">":"<...>"}catch(_1){return"<...>"}}function H(){var k=s.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(k){if(U1.call(k,"key")){var t=Object.getOwnPropertyDescriptor(k,"key").get;if(t&&t.isReactWarning)return!1}return k.key!==void 0}function L(k,t){function _1(){g||(g=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}_1.isReactWarning=!0,Object.defineProperty(k,"key",{get:_1,configurable:!0})}function M(){var k=Q(this.type);return p[k]||(p[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function O(k,t,_1,a,H1,O1){var L1=_1.ref;return k={$$typeof:w,type:k,key:t,props:_1,_owner:a},(L1!==void 0?L1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,t,_1,a,H1,O1){var L1=t.children;if(L1!==void 0)if(a)if(Q1(L1)){for(a=0;a<L1.length;a++)A(L1[a]);Object.freeze&&Object.freeze(L1)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(L1);if(U1.call(t,"key")){L1=Q(k);var T1=Object.keys(t).filter(function(R1){return R1!=="key"});a=0<T1.length?"{key: someKey, "+T1.join(": ..., ")+": ...}":"{key: someKey}",o[L1+a]||(T1=0<T1.length?"{"+T1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
236
  let props = %s;
237
237
  <%s {...props} />
238
238
  React keys must be passed directly to JSX without using spread:
239
239
  let props = %s;
240
- <%s key={someKey} {...props} />`,t,O1,L1,O1),o[O1+t]=!0)}if(O1=null,q1!==void 0&&(Z(q1),O1=""+q1),W(g)&&(Z(g.key),O1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return O1&&L(q1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,O1,q1,H(),W1,T1)}function A(k){R(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===b&&(k._payload.status==="fulfilled"?R(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function R(k){return typeof k==="object"&&k!==null&&k.$$typeof===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),C=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),$1=j8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,m=console.createTask?console.createTask:function(){return null};j8={react_stack_bottom_frame:function(k){return k()}};var p,c={},a=j8.react_stack_bottom_frame.bind(j8,Y)(),i=m(K(Y)),o={};wN.Fragment=V,wN.jsx=function(k,g,q1){var t=1e4>$1.recentlyCreatedOwnerStacks++;return T(k,g,q1,!1,t?Error("react-stack-top-frame"):a,t?m(K(k)):i)},wN.jsxs=function(k,g,q1){var t=1e4>$1.recentlyCreatedOwnerStacks++;return T(k,g,q1,!0,t?Error("react-stack-top-frame"):a,t?m(K(k)):i)}})()});var PT=p4((TS)=>{var C5=p0(G4());(function(){function Q(R,P){return R===P&&(R!==0||1/R===1/P)||R!==R&&P!==P}function U(R,P){O||C5.startTransition===void 0||(O=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var N=P();if(!T){var V=P();H(N,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}V=Y({inst:{value:N,getSnapshot:P}});var v=V[0].inst,f=V[1];return L(function(){v.value=N,v.getSnapshot=P,Z(v)&&f({inst:v})},[R,N,P]),W(function(){return Z(v)&&f({inst:v}),R(function(){Z(v)&&f({inst:v})})},[R]),M(N),N}function Z(R){var P=R.getSnapshot;R=R.value;try{var N=P();return!H(R,N)}catch(V){return!0}}function K(R,P){return P()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=C5.useState,W=C5.useEffect,L=C5.useLayoutEffect,M=C5.useDebugValue,O=!1,T=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;TS.useSyncExternalStore=C5.useSyncExternalStore!==void 0?C5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var NT=p4((RS)=>{var V3=p0(G4());(function(){function Q(M,O){return M===O&&(M!==0||1/M===1/O)||M!==M&&O!==O}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=PT(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=V3.useRef,Y=V3.useEffect,W=V3.useMemo,L=V3.useDebugValue;RS.useSyncExternalStoreWithSelector=function(M,O,T,A,R){var P=H(null);if(P.current===null){var N={hasValue:!1,value:null};P.current=N}else N=P.current;P=W(function(){function v(u){if(!f){if(f=!0,y=u,u=A(u),R!==void 0&&N.hasValue){var h=N.value;if(R(h,u))return C=h}return C=u}if(h=C,Z(y,u))return h;var E=A(u);if(R!==void 0&&R(h,E))return y=u,h;return y=u,C=E}var f=!1,y,C,j=T===void 0?null:T;return[function(){return v(O())},j===null?void 0:function(){return v(j())}]},[O,T,A,R]);var V=K(M,P[0],P[1]);return Y(function(){N.hasValue=!0,N.value=V},[V]),L(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fO=p0(bA(),1);var P2=p0(G4(),1);var EA={x:{title:"X",fill:"currentColor",d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},youtube:{title:"YouTube",fill:"#FF0000",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},tiktok:{title:"TikTok",fill:"currentColor",d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},discord:{title:"Discord",fill:"#5865F2",d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},resend:{title:"Resend",fill:"currentColor",d:"M2.023 0v24h5.553v-8.434h2.998L15.326 24h6.65l-5.372-9.258a7.652 7.652 0 0 0 3.316-3.016c.709-1.21 1.062-2.57 1.062-4.08 0-1.462-.353-2.767-1.062-3.91-.709-1.165-1.692-2.079-2.95-2.742C15.737.331 14.355 0 12.823 0Zm5.553 4.87h4.219c.731 0 1.349.125 1.851.376.526.252.925.618 1.2 1.098.274.457.412.994.412 1.611S15.132 9.12 14.88 9.6c-.229.48-.572.856-1.03 1.13-.434.252-.948.38-1.542.38H7.576Z"},linkedin:{title:"LinkedIn",fill:"#0A66C2",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},reddit:{title:"Reddit",fill:"#FF4500",d:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"},bluesky:{title:"Bluesky",fill:"#0285FF",d:"M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"},instagram:{title:"Instagram",fill:"#FF0069",d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},github:{title:"GitHub",fill:"currentColor",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"},stripe:{title:"Stripe",fill:"#635BFF",d:"M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"},slack:{title:"Slack",fill:"#4A154B",d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},openai:{title:"OpenAI",fill:"#412991",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"},anthropic:{title:"Anthropic",fill:"currentColor",d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"},twilio:{title:"Twilio",fill:"#F22F46",d:"M12 0C5.381-.008.008 5.352 0 11.971V12c0 6.64 5.359 12 12 12 6.64 0 12-5.36 12-12 0-6.641-5.36-12-12-12zm0 20.801c-4.846.015-8.786-3.904-8.801-8.75V12c-.014-4.846 3.904-8.786 8.75-8.801H12c4.847-.014 8.786 3.904 8.801 8.75V12c.015 4.847-3.904 8.786-8.75 8.801H12zm5.44-11.76c0 1.359-1.12 2.479-2.481 2.479-1.366-.007-2.472-1.113-2.479-2.479 0-1.361 1.12-2.481 2.479-2.481 1.361 0 2.481 1.12 2.481 2.481zm0 5.919c0 1.36-1.12 2.48-2.481 2.48-1.367-.008-2.473-1.114-2.479-2.48 0-1.359 1.12-2.479 2.479-2.479 1.361-.001 2.481 1.12 2.481 2.479zm-5.919 0c0 1.36-1.12 2.48-2.479 2.48-1.368-.007-2.475-1.113-2.481-2.48 0-1.359 1.12-2.479 2.481-2.479 1.358-.001 2.479 1.12 2.479 2.479zm0-5.919c0 1.359-1.12 2.479-2.479 2.479-1.367-.007-2.475-1.112-2.481-2.479 0-1.361 1.12-2.481 2.481-2.481 1.358 0 2.479 1.12 2.479 2.481z"},sendgrid:{title:"SendGrid",fill:"#51A9E3",d:"M.8 24h13.6c.88 0 1.6-.72 1.6-1.6v-4.8c0-.88-.72-1.6-1.6-1.6H9.6c-.88 0-1.6-.72-1.6-1.6V9.6C8 8.72 7.28 8 6.4 8H1.6C.72 8 0 8.72 0 9.6v13.6c0 .44.36.8.8.8zM23.2 0H9.6C8.72 0 8 .72 8 1.6v4.8C8 7.28 8.72 8 9.6 8h4.8c.88 0 1.6.72 1.6 1.6v4.8c0 .88.72 1.6 1.6 1.6h4.8c.88 0 1.6-.72 1.6-1.6V.8c0-.44-.36-.8-.8-.8Z"},mailgun:{title:"Mailgun",fill:"#F06B66",d:"M11.837 0c6.602 0 11.984 5.381 11.984 11.994-.017 2.99-3.264 4.84-5.844 3.331a3.805 3.805 0 0 1-.06-.035l-.055-.033-.022.055c-2.554 4.63-9.162 4.758-11.894.232-2.732-4.527.46-10.313 5.746-10.416a6.868 6.868 0 0 1 7.002 6.866 1.265 1.265 0 0 0 2.52 0c0-5.18-4.197-9.38-9.377-9.387C4.611 2.594.081 10.41 3.683 16.673c3.238 5.632 11.08 6.351 15.289 1.402l1.997 1.686A11.95 11.95 0 0 1 11.837 24C2.6 23.72-2.87 13.543 1.992 5.684A12.006 12.006 0 0 1 11.837 0Zm0 7.745c-3.276-.163-5.5 3.281-4.003 6.2a4.26 4.26 0 0 0 4.014 2.31c3.276-.171 5.137-3.824 3.35-6.575a4.26 4.26 0 0 0-3.36-1.935Zm0 2.53c1.324 0 2.152 1.433 1.49 2.58a1.72 1.72 0 0 1-1.49.86 1.72 1.72 0 1 1 0-3.44Z"},notion:{title:"Notion",fill:"currentColor",d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"},linear:{title:"Linear",fill:"#5E6AD2",d:"M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"},jira:{title:"Jira",fill:"#0052CC",d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"},hubspot:{title:"HubSpot",fill:"#FF7A59",d:"M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"},paypal:{title:"PayPal",fill:"#003087",d:"M7.016 19.198h-4.2a.562.562 0 0 1-.555-.65L5.093.584A.692.692 0 0 1 5.776 0h7.222c3.417 0 5.904 2.488 5.846 5.5-.006.25-.027.5-.066.747A6.794 6.794 0 0 1 12.071 12H8.743a.69.69 0 0 0-.682.583l-.325 2.056-.013.083-.692 4.39-.015.087zM19.79 6.142c-.01.087-.01.175-.023.261a7.76 7.76 0 0 1-7.695 6.598H9.007l-.283 1.795-.013.083-.692 4.39-.134.843-.014.088H6.86l-.497 3.15a.562.562 0 0 0 .555.65h3.612c.34 0 .63-.249.683-.585l.952-6.031a.692.692 0 0 1 .683-.584h2.126a6.793 6.793 0 0 0 6.707-5.752c.306-1.95-.466-3.744-1.89-4.906z"},shopify:{title:"Shopify",fill:"#7AB55C",d:"M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023zM11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z"},sentry:{title:"Sentry",fill:"#362D59",d:"M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"},vercel:{title:"Vercel",fill:"currentColor",d:"M24 22.525H0l12-21.05 12 21.05z"},supabase:{title:"Supabase",fill:"#3FCF8E",d:"M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"},clerk:{title:"Clerk",fill:"#6C47FF",d:"m21.47 20.829-2.881-2.881a.572.572 0 0 0-.7-.084 6.854 6.854 0 0 1-7.081 0 .576.576 0 0 0-.7.084l-2.881 2.881a.576.576 0 0 0-.103.69.57.57 0 0 0 .166.186 12 12 0 0 0 14.113 0 .58.58 0 0 0 .239-.423.576.576 0 0 0-.172-.453Zm.002-17.668-2.88 2.88a.569.569 0 0 1-.701.084A6.857 6.857 0 0 0 8.724 8.08a6.862 6.862 0 0 0-1.222 3.692 6.86 6.86 0 0 0 .978 3.764.573.573 0 0 1-.083.699l-2.881 2.88a.567.567 0 0 1-.864-.063A11.993 11.993 0 0 1 6.771 2.7a11.99 11.99 0 0 1 14.637-.405.566.566 0 0 1 .232.418.57.57 0 0 1-.168.448Zm-7.118 12.261a3.427 3.427 0 1 0 0-6.854 3.427 3.427 0 0 0 0 6.854Z"},aws:{title:"Amazon Web Services",fill:"#232F3E",d:"M6.763 10.036c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 0 1-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 0 1-.287-.375 6.18 6.18 0 0 1-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.391-.384-.59-.894-.59-1.533 0-.678.239-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272a2.287 2.287 0 0 1-.28.104.488.488 0 0 1-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 0 1 .224-.167c.279-.144.614-.264 1.005-.36a4.84 4.84 0 0 1 1.246-.151c.95 0 1.644.216 2.091.647.439.43.662 1.085.662 1.963v2.586zm-3.24 1.214c.263 0 .534-.048.822-.144.287-.096.543-.271.758-.51.128-.152.224-.32.272-.512.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 0 0-.735-.136 6.02 6.02 0 0 0-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 5.55a1.398 1.398 0 0 1-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 0 1 .32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 0 1 .311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 0 1-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 0 1-.303.08h-.687c-.151 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32l-1.238-5.148-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 0 1-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.319.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 0 0 .415-.758.777.777 0 0 0-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 0 1-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .359.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 0 1 .24.2.43.43 0 0 1 .071.263v.375c0 .168-.064.256-.184.256a.83.83 0 0 1-.303-.096 3.652 3.652 0 0 0-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.159.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926-.144.272-.336.511-.583.703-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167zM21.698 16.207c-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351 3.384 1.963 7.559 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.439-.2.814.287.383.607zM22.792 14.961c-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151.32-.79 1.03-2.57.695-2.994z"},figma:{title:"Figma",fill:"#F24E1E",d:"M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.097-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z"},airtable:{title:"Airtable",fill:"#18BFFF",d:"M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"},intercom:{title:"Intercom",fill:"#6AFDEF",d:"M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"},posthog:{title:"PostHog",fill:"currentColor",d:"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z"},datadog:{title:"Datadog",fill:"#632CA6",d:"M19.57 17.04l-1.997-1.316-1.665 2.782-1.937-.567-1.706 2.604.087.82 9.274-1.71-.538-5.794zm-8.649-2.498l1.488-.204c.241.108.409.15.697.223.45.117.97.23 1.741-.16.18-.088.553-.43.704-.625l6.096-1.106.622 7.527-10.444 1.882zm11.325-2.712l-.602.115L20.488 0 .789 2.285l2.427 19.693 2.306-.334c-.184-.263-.471-.581-.96-.989-.68-.564-.44-1.522-.039-2.127.53-1.022 3.26-2.322 3.106-3.956-.056-.594-.15-1.368-.702-1.898-.02.22.017.432.017.432s-.227-.289-.34-.683c-.112-.15-.2-.199-.319-.4-.085.233-.073.503-.073.503s-.186-.437-.216-.807c-.11.166-.137.48-.137.48s-.241-.69-.186-1.062c-.11-.323-.436-.965-.343-2.424.6.421 1.924.321 2.44-.439.171-.251.288-.939-.086-2.293-.24-.868-.835-2.16-1.066-2.651l-.028.02c.122.395.374 1.223.47 1.625.293 1.218.372 1.642.234 2.204-.116.488-.397.808-1.107 1.165-.71.358-1.653-.514-1.713-.562-.69-.55-1.224-1.447-1.284-1.883-.062-.477.275-.763.445-1.153-.243.07-.514.192-.514.192s.323-.334.722-.624c.165-.109.262-.178.436-.323a9.762 9.762 0 0 0-.456.003s.42-.227.855-.392c-.318-.014-.623-.003-.623-.003s.937-.419 1.678-.727c.509-.208 1.006-.147 1.286.257.367.53.752.817 1.569.996.501-.223.653-.337 1.284-.509.554-.61.99-.688.99-.688s-.216.198-.274.51c.314-.249.66-.455.66-.455s-.134.164-.259.426l.03.043c.366-.22.797-.394.797-.394s-.123.156-.268.358c.277-.002.838.012 1.056.037 1.285.028 1.552-1.374 2.045-1.55.618-.22.894-.353 1.947.68.903.888 1.609 2.477 1.259 2.833-.294.295-.874-.115-1.516-.916a3.466 3.466 0 0 1-.716-1.562 1.533 1.533 0 0 0-.497-.85s.23.51.23.96c0 .246.03 1.165.424 1.68-.039.076-.057.374-.1.43-.458-.554-1.443-.95-1.604-1.067.544.445 1.793 1.468 2.273 2.449.453.927.186 1.777.416 1.997.065.063.976 1.197 1.15 1.767.306.994.019 2.038-.381 2.685l-1.117.174c-.163-.045-.273-.068-.42-.153.08-.143.241-.5.243-.572l-.063-.111c-.348.492-.93.97-1.414 1.245-.633.359-1.363.304-1.838.156-1.348-.415-2.623-1.327-2.93-1.566 0 0-.01.191.048.234.34.383 1.119 1.077 1.872 1.56l-1.605.177.759 5.908c-.337.048-.39.071-.757.124-.325-1.147-.946-1.895-1.624-2.332-.599-.384-1.424-.47-2.214-.314l-.05.059a2.851 2.851 0 0 1 1.863.444c.654.413 1.181 1.481 1.375 2.124.248.822.42 1.7-.248 2.632-.476.662-1.864 1.028-2.986.237.3.481.705.876 1.25.95.809.11 1.577-.03 2.106-.574.452-.464.69-1.434.628-2.456l.714-.104.258 1.834 11.827-1.424zM15.05 6.848c-.034.075-.085.125-.007.37l.004.014.013.032.032.073c.14.287.295.558.552.696.067-.011.136-.019.207-.023.242-.01.395.028.492.08.009-.048.01-.119.005-.222-.018-.364.072-.982-.626-1.308-.264-.122-.634-.084-.757.068a.302.302 0 0 1 .058.013c.186.066.06.13.027.207m1.958 3.392c-.092-.05-.52-.03-.821.005-.574.068-1.193.267-1.328.372-.247.191-.135.523.047.66.511.382.96.638 1.432.575.29-.038.546-.497.728-.914.124-.288.124-.598-.058-.698m-5.077-2.942c.162-.154-.805-.355-1.556.156-.554.378-.571 1.187-.041 1.646.053.046.096.078.137.104a4.77 4.77 0 0 1 1.396-.412c.113-.125.243-.345.21-.745-.044-.542-.455-.456-.146-.749"},algolia:{title:"Algolia",fill:"#003DFF",d:"M12 0C5.445 0 .103 5.285.01 11.817c-.097 6.634 5.285 12.131 11.92 12.17a11.91 11.91 0 0 0 5.775-1.443.281.281 0 0 0 .052-.457l-1.122-.994a.79.79 0 0 0-.833-.14 9.693 9.693 0 0 1-3.923.77c-5.36-.067-9.692-4.527-9.607-9.888.084-5.293 4.417-9.573 9.73-9.573h9.73v17.296l-5.522-4.907a.407.407 0 0 0-.596.063 4.52 4.52 0 0 1-3.934 1.793 4.538 4.538 0 0 1-4.192-4.168 4.53 4.53 0 0 1 4.512-4.872 4.532 4.532 0 0 1 4.509 4.126c.018.205.11.397.265.533l1.438 1.275a.28.28 0 0 0 .462-.158 6.82 6.82 0 0 0 .099-1.725c-.232-3.376-2.966-6.092-6.345-6.3-3.873-.24-7.11 2.79-7.214 6.588-.1 3.7 2.933 6.892 6.634 6.974a6.75 6.75 0 0 0 4.136-1.294l7.212 6.394a.48.48 0 0 0 .797-.36V.456A.456.456 0 0 0 23.54 0Z"},cloudflare:{title:"Cloudflare",fill:"#F38020",d:"M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727"},upstash:{title:"Upstash",fill:"#00E9A3",d:"M13.8027 0C11.193 0 8.583.9952 6.5918 2.9863c-3.9823 3.9823-3.9823 10.4396 0 14.4219 1.9911 1.9911 5.2198 1.9911 7.211 0 1.991-1.9911 1.991-5.2198 0-7.211L12 12c.9956.9956.9956 2.6098 0 3.6055-.9956.9955-2.6099.9955-3.6055 0-2.9866-2.9868-2.9866-7.8297 0-10.8164 2.9868-2.9868 7.8297-2.9868 10.8164 0l1.8028-1.8028C19.0225.9952 16.4125 0 13.8027 0zM12 12c-.9956-.9956-.9956-2.6098 0-3.6055.9956-.9955 2.6098-.9955 3.6055 0 2.9867 2.9868 2.9867 7.8297 0 10.8164-2.9867 2.9868-7.8297 2.9868-10.8164 0l-1.8028 1.8028c3.9823 3.9822 10.4396 3.9822 14.4219 0 3.9823-3.9824 3.9823-10.4396 0-14.4219-.9956-.9956-2.3006-1.4922-3.6055-1.4922-1.3048 0-2.6099.4966-3.6054 1.4922-1.9912 1.9912-1.9912 5.2198 0 7.211z"},mixpanel:{title:"Mixpanel",fill:"#7856FF",d:"M6.967 9.996h3.053c-.763-.477-1.048-1.145-1.431-2.384L7.443 3.366C6.919 1.458 6.49.551 4.39.551H.004v1.145h.621c1.286 0 1.431.477 1.814 1.908L3.44 7.326c.524 1.814 1.337 2.67 3.53 2.67h-.003Zm7.06 0h3.053c2.194 0 2.956-.86 3.484-2.67l1.001-3.722c.382-1.431.57-1.908 1.814-1.908H24V.551h-4.34c-2.146 0-2.576.86-3.053 2.815l-1.145 4.246c-.384 1.286-.673 1.907-1.435 2.384Zm-4.007 4.008h4.007V9.996H10.02v4.008ZM0 23.449h4.39c2.1 0 2.529-.907 3.053-2.815l1.146-4.246c.383-1.239.668-1.907 1.431-2.384H6.967c-2.194 0-3.007.86-3.531 2.67l-1.001 3.722c-.383 1.431-.524 1.907-1.814 1.907H0v1.146Zm19.65 0h4.343v-1.146h-.622c-1.239 0-1.431-.476-1.814-1.907l-1.001-3.722c-.524-1.814-1.286-2.67-3.483-2.67h-3.046c.762.477 1.041 1.098 1.424 2.384l1.145 4.246c.477 1.955.907 2.815 3.054 2.815Z"},gemini:{title:"Google Gemini",fill:"#8E75B2",d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"}};var c1=p0(f8(),1),MN="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function ZJ({href:Q,onClick:U}){return c1.jsxDEV("h1",{children:c1.jsxDEV("a",{href:Q,onClick:U,children:[c1.jsxDEV("img",{src:MN,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),c1.jsxDEV("span",{className:"brand-name",children:" Volter World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}async function N3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function xA(Q,U,Z=0,K=""){let[H,Y]=P2.useState({state:"loading"});return P2.useEffect(()=>{Y({state:"loading"})},[K,U]),P2.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let L=await Q(U),M=L.ok?{state:"ok",data:await L.json()}:{state:"error",status:L.status,error:await N3(L)};if(W)Y(M)}catch(L){if(W)Y({state:"error",status:0,error:String(L)})}})(),()=>{W=!1}},[K,U,Z]),H}function b2({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return c1.jsxDEV(TN,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return c1.jsxDEV("div",{role:"alert",className:"error-state",children:[c1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?c1.jsxDEV("button",{type:"button",onClick:Z,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function TN({lines:Q=3,label:U="Loading…"}){return c1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,K)=>c1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function I0({iso:Q,time:U}){if(!Q)return c1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return c1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var S8=(Q)=>Q?new Date(Q).toLocaleString():"—";function sF(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let Z=Math.max(0,Math.round((Date.now()-U)/1000));return Z<60?"just now":Z<3600?`${Math.round(Z/60)}m ago`:Z<86400?`${Math.round(Z/3600)}h ago`:`${Math.round(Z/86400)}d ago`}function E0(Q,U){let Z=U.replace(/[_-]+/g," "),K=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:K}`}var v8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,RN={github:"GitHub",openai:"OpenAI",aws:"AWS",hubspot:"HubSpot",paypal:"PayPal",youtube:"YouTube",tiktok:"TikTok",linkedin:"LinkedIn",xai:"xAI",sendgrid:"SendGrid",elevenlabs:"ElevenLabs",assemblyai:"AssemblyAI",planetscale:"PlanetScale",googleoauth:"Google sign-in",npm:"npm","npm-registry":"npm registry",posthog:"PostHog",mongodb:"MongoDB",pagerduty:"PagerDuty",mailgun:"Mailgun",turbopuffer:"turbopuffer"},d1=(Q)=>RN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function s0({vendor:Q}){let U=EA[Q];return c1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?c1.jsxDEV("svg",{viewBox:"0 0 24 24",children:c1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):d1(Q).charAt(0)},void 0,!1,void 0,this)}var hA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},ON="volter.theme",tF=()=>{try{let Q=localStorage.getItem(ON);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Bq(Q=tF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function mA(){return P2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(K)=>{if(K.key!=="Escape"||document.querySelector("dialog[open]"))return;let H=Q();if(!H.length)return;for(let Y of H)Y.removeAttribute("open");H[H.length-1].querySelector("summary")?.focus()},Z=(K)=>{let H=K.target;for(let Y of Q())if(!H||!Y.contains(H))Y.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function N5({open:Q,onClose:U,title:Z,children:K,footer:H,wide:Y}){let W=P2.useRef(null),L=P2.useId();return P2.useEffect(()=>{let M=W.current;if(!M)return;if(Q&&!M.open){M.showModal();let O=M.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(O?.focus(),O instanceof HTMLInputElement&&O.value&&/^(text|search|email|url)$/.test(O.type))O.select()}if(!Q&&M.open)M.close()},[Q]),c1.jsxDEV("dialog",{ref:W,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":L,onClose:U,onCancel:(M)=>{M.preventDefault(),U()},onMouseDown:(M)=>{if(M.target===W.current)U()},children:Q?c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("div",{className:"dialog-head",children:[c1.jsxDEV("h2",{id:L,children:Z},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Close",onClick:U,children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),H?c1.jsxDEV("div",{className:"dialog-foot",children:H},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)}var rF="volter:confirm";function c4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(rF,{detail:{ask:Q,resolve:U}}))})}function gA(){let[Q,U]=P2.useState(null),[Z,K]=P2.useState("");P2.useEffect(()=>{let L=(M)=>{K(""),U(M.detail)};return window.addEventListener(rF,L),()=>window.removeEventListener(rF,L)},[]);let H=(L)=>{Q?.resolve(L),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return c1.jsxDEV(N5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!W,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?c1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?c1.jsxDEV("div",{className:"typed-confirm",children:[c1.jsxDEV("p",{children:["Type ",c1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),c1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(L)=>K(L.target.value),onKeyDown:(L)=>{if(L.key==="Enter"&&W)H(!0)},autoComplete:"off",spellCheck:!1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}var aF="volter:toast";function i0(Q,U="ok"){window.dispatchEvent(new CustomEvent(aF,{detail:{text:Q,kind:U}}))}function pA(){let[Q,U]=P2.useState([]);return P2.useEffect(()=>{let Z=0,K=(H)=>{let{text:Y,kind:W}=H.detail,L=++Z;if(U((M)=>[...M.slice(-3),{id:L,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((M)=>M.filter((O)=>O.id!==L)),4500)};return window.addEventListener(aF,K),()=>window.removeEventListener(aF,K)},[]),c1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>c1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[c1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.filter((H)=>H.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function oF({value:Q,label:U,secret:Z}){let[K,H]=P2.useState(!1);return c1.jsxDEV("div",{className:"copy-field",children:[U?c1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,c1.jsxDEV("div",{className:"copy-row",children:[c1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),i0(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>i0("Your browser would not copy it: select it and copy","error"))},children:K?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cA({label:Q,items:U}){return c1.jsxDEV("details",{className:"menu row-menu",children:[c1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),c1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?c1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:hA,children:Z.label},Z.label,!1,void 0,this):c1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(K)=>{hA(K),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Q9({title:Q,children:U,action:Z}){return c1.jsxDEV("div",{className:"empty-state",children:[c1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?c1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?c1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function lA(){return P2.useEffect(()=>{let Q=(Z)=>{let K=document.querySelector("main.app"),H=Z.target;if(K?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")IN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),c1.jsxDEV("button",{type:"button",className:"icon-button drawer-button","aria-label":"Menu",onClick:()=>{document.querySelector("main.app")?.toggleAttribute("data-drawer")},children:"☰"},void 0,!1,void 0,this)}var IN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var X1=p0(G4(),1);var H1=p0(iA(),1),z1=p0(G4(),1);function d0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,K;Z<Q.length;Z++)if((K=d0(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var PN={value:()=>{}};function rA(){for(var Q=0,U=arguments.length,Z={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in Z||/[\s.]/.test(K))throw Error("illegal type: "+K);Z[K]=[]}return new Aq(Z)}function Aq(Q){this._=Q}function NN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var K="",H=Z.indexOf(".");if(H>=0)K=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:K}})}Aq.prototype=rA.prototype={constructor:Aq,on:function(Q,U){var Z=this._,K=NN(Q+"",Z),H,Y=-1,W=K.length;if(arguments.length<2){while(++Y<W)if((H=(Q=K[Y]).type)&&(H=CN(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<W)if(H=(Q=K[Y]).type)Z[H]=dA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=dA(Z[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new Aq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),K=0,H,Y;K<H;++K)Z[K]=arguments[K+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],K=0,H=Y.length;K<H;++K)Y[K].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var K=this._[Q],H=0,Y=K.length;H<Y;++H)K[H].value.apply(U,Z)}};function CN(Q,U){for(var Z=0,K=Q.length,H;Z<K;++Z)if((H=Q[Z]).name===U)return H.value}function dA(Q,U,Z){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=PN,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var y8=rA;function q9(Q){return function(){return this.matches(Q)}}function Mq(Q){return function(U){return U.matches(Q)}}var Tq="http://www.w3.org/1999/xhtml",nF={svg:"http://www.w3.org/2000/svg",xhtml:Tq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function l4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return nF.hasOwnProperty(U)?{space:nF[U],local:Q}:Q}function eF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function E2(Q,U){if(Q=eF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var K=Z.createSVGPoint();return K.x=Q.clientX,K.y=Q.clientY,K=K.matrixTransform(U.getScreenCTM().inverse()),[K.x,K.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function fN(){}function v6(Q){return Q==null?fN:function(){return this.querySelector(Q)}}function _X(Q){if(typeof Q!=="function")Q=v6(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[H]=Array(W),M,O,T=0;T<W;++T)if((M=Y[T])&&(O=Q.call(M,M.__data__,T,Y))){if("__data__"in M)O.__data__=M.__data__;L[T]=O}return new t0(K,this._parents)}function JX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function SN(){return[]}function U9(Q){return Q==null?SN:function(){return this.querySelectorAll(Q)}}function vN(Q){return function(){return JX(Q.apply(this,arguments))}}function $X(Q){if(typeof Q==="function")Q=vN(Q);else Q=U9(Q);for(var U=this._groups,Z=U.length,K=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O])K.push(Q.call(M,M.__data__,O,W)),H.push(M);return new t0(K,H)}var jN=Array.prototype.find;function yN(Q){return function(){return jN.call(this.children,Q)}}function VN(){return this.firstElementChild}function QX(Q){return this.select(Q==null?VN:yN(typeof Q==="function"?Q:Mq(Q)))}var kN=Array.prototype.filter;function DN(){return Array.from(this.children)}function uN(Q){return function(){return kN.call(this.children,Q)}}function qX(Q){return this.selectAll(Q==null?DN:uN(typeof Q==="function"?Q:Mq(Q)))}function UX(Q){if(typeof Q!=="function")Q=q9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[H]=[],M,O=0;O<W;++O)if((M=Y[O])&&Q.call(M,M.__data__,O,Y))L.push(M);return new t0(K,this._parents)}function FJ(Q){return Array(Q.length)}function GX(){return new t0(this._enter||this._groups.map(FJ),this._parents)}function XJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}XJ.prototype={constructor:XJ,appendChild:function(Q){return this._parent.insertBefore(Q,this._next)},insertBefore:function(Q,U){return this._parent.insertBefore(Q,U)},querySelector:function(Q){return this._parent.querySelector(Q)},querySelectorAll:function(Q){return this._parent.querySelectorAll(Q)}};function ZX(Q){return function(){return Q}}function bN(Q,U,Z,K,H,Y){var W=0,L,M=U.length,O=Y.length;for(;W<O;++W)if(L=U[W])L.__data__=Y[W],K[W]=L;else Z[W]=new XJ(Q,Y[W]);for(;W<M;++W)if(L=U[W])H[W]=L}function EN(Q,U,Z,K,H,Y,W){var L,M,O=new Map,T=U.length,A=Y.length,R=Array(T),P;for(L=0;L<T;++L)if(M=U[L])if(R[L]=P=W.call(M,M.__data__,L,U)+"",O.has(P))H[L]=M;else O.set(P,M);for(L=0;L<A;++L)if(P=W.call(Q,Y[L],L,Y)+"",M=O.get(P))K[L]=M,M.__data__=Y[L],O.delete(P);else Z[L]=new XJ(Q,Y[L]);for(L=0;L<T;++L)if((M=U[L])&&O.get(R[L])===M)H[L]=M}function hN(Q){return Q.__data__}function FX(Q,U){if(!arguments.length)return Array.from(this,hN);var Z=U?EN:bN,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=ZX(Q);for(var Y=H.length,W=Array(Y),L=Array(Y),M=Array(Y),O=0;O<Y;++O){var T=K[O],A=H[O],R=A.length,P=xN(Q.call(T,T&&T.__data__,O,K)),N=P.length,V=L[O]=Array(N),v=W[O]=Array(N),f=M[O]=Array(R);Z(T,A,V,v,f,P,U);for(var y=0,C=0,j,u;y<N;++y)if(j=V[y]){if(y>=C)C=y+1;while(!(u=v[C])&&++C<N);j._next=u||null}}return W=new t0(W,K),W._enter=L,W._exit=M,W}function xN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function XX(){return new t0(this._exit||this._groups.map(FJ),this._parents)}function KX(Q,U,Z){var K=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(K=Q(K),K)K=K.selection()}else K=K.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return K&&H?K.merge(H).order():H}function HX(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,K=U._groups,H=Z.length,Y=K.length,W=Math.min(H,Y),L=Array(H),M=0;M<W;++M)for(var O=Z[M],T=K[M],A=O.length,R=L[M]=Array(A),P,N=0;N<A;++N)if(P=O[N]||T[N])R[N]=P;for(;M<H;++M)L[M]=Z[M];return new t0(L,this._parents)}function YX(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var K=Q[U],H=K.length-1,Y=K[H],W;--H>=0;)if(W=K[H]){if(Y&&W.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(W,Y);Y=W}return this}function zX(Q){if(!Q)Q=mN;function U(A,R){return A&&R?Q(A.__data__,R.__data__):!A-!R}for(var Z=this._groups,K=Z.length,H=Array(K),Y=0;Y<K;++Y){for(var W=Z[Y],L=W.length,M=H[Y]=Array(L),O,T=0;T<L;++T)if(O=W[T])M[T]=O;M.sort(U)}return new t0(H,this._parents).order()}function mN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function WX(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function LX(){return Array.from(this)}function BX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length;H<Y;++H){var W=K[H];if(W)return W}return null}function AX(){let Q=0;for(let U of this)++Q;return Q}function MX(){return!this.node()}function TX(Q){for(var U=this._groups,Z=0,K=U.length;Z<K;++Z)for(var H=U[Z],Y=0,W=H.length,L;Y<W;++Y)if(L=H[Y])Q.call(L,L.__data__,Y,H);return this}function gN(Q){return function(){this.removeAttribute(Q)}}function pN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function cN(Q,U){return function(){this.setAttribute(Q,U)}}function lN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function iN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function dN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,Z)}}function RX(Q,U){var Z=l4(Q);if(arguments.length<2){var K=this.node();return Z.local?K.getAttributeNS(Z.space,Z.local):K.getAttribute(Z)}return this.each((U==null?Z.local?pN:gN:typeof U==="function"?Z.local?dN:iN:Z.local?lN:cN)(Z,U))}function KJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function rN(Q){return function(){this.style.removeProperty(Q)}}function aN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function sN(Q,U,Z){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,Z)}}function OX(Q,U,Z){return arguments.length>1?this.each((U==null?rN:typeof U==="function"?sN:aN)(Q,U,Z==null?"":Z)):j6(this.node(),Q)}function j6(Q,U){return Q.style.getPropertyValue(U)||KJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function tN(Q){return function(){delete this[Q]}}function oN(Q,U){return function(){this[Q]=U}}function nN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function IX(Q,U){return arguments.length>1?this.each((U==null?tN:typeof U==="function"?nN:oN)(Q,U)):this.node()[Q]}function aA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new sA(Q)}function sA(Q){this._node=Q,this._names=aA(Q.getAttribute("class")||"")}sA.prototype={add:function(Q){var U=this._names.indexOf(Q);if(U<0)this._names.push(Q),this._node.setAttribute("class",this._names.join(" "))},remove:function(Q){var U=this._names.indexOf(Q);if(U>=0)this._names.splice(U,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(Q){return this._names.indexOf(Q)>=0}};function tA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.add(U[K])}function oA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.remove(U[K])}function eN(Q){return function(){tA(this,Q)}}function _C(Q){return function(){oA(this,Q)}}function JC(Q,U){return function(){(U.apply(this,arguments)?tA:oA)(this,Q)}}function PX(Q,U){var Z=aA(Q+"");if(arguments.length<2){var K=wX(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!K.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?JC:U?eN:_C)(Z,U))}function $C(){this.textContent=""}function QC(Q){return function(){this.textContent=Q}}function qC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function NX(Q){return arguments.length?this.each(Q==null?$C:(typeof Q==="function"?qC:QC)(Q)):this.node().textContent}function UC(){this.innerHTML=""}function GC(Q){return function(){this.innerHTML=Q}}function ZC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function CX(Q){return arguments.length?this.each(Q==null?UC:(typeof Q==="function"?ZC:GC)(Q)):this.node().innerHTML}function FC(){if(this.nextSibling)this.parentNode.appendChild(this)}function fX(){return this.each(FC)}function XC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SX(){return this.each(XC)}function KC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Tq&&U.documentElement.namespaceURI===Tq?U.createElement(Q):U.createElementNS(Z,Q)}}function HC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function HJ(Q){var U=l4(Q);return(U.local?HC:KC)(U)}function vX(Q){var U=typeof Q==="function"?Q:HJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function YC(){return null}function jX(Q,U){var Z=typeof Q==="function"?Q:HJ(Q),K=U==null?YC:typeof U==="function"?U:v6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function zC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function yX(){return this.each(zC)}function WC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function LC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function VX(Q){return this.select(Q?LC:WC)}function kX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function BC(Q){return function(U){Q.call(this,U,this.__data__)}}function AC(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",K=U.indexOf(".");if(K>=0)Z=U.slice(K+1),U=U.slice(0,K);return{type:U,name:Z}})}function MC(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,K=-1,H=U.length,Y;Z<H;++Z)if(Y=U[Z],(!Q.type||Y.type===Q.type)&&Y.name===Q.name)this.removeEventListener(Y.type,Y.listener,Y.options);else U[++K]=Y;if(++K)U.length=K;else delete this.__on}}function TC(Q,U,Z){return function(){var K=this.__on,H,Y=BC(U);if(K){for(var W=0,L=K.length;W<L;++W)if((H=K[W]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=Z),H.value=U;return}}if(this.addEventListener(Q.type,Y,Z),H={type:Q.type,name:Q.name,value:U,listener:Y,options:Z},!K)this.__on=[H];else K.push(H)}}function DX(Q,U,Z){var K=AC(Q+""),H,Y=K.length,W;if(arguments.length<2){var L=this.node().__on;if(L){for(var M=0,O=L.length,T;M<O;++M)for(H=0,T=L[M];H<Y;++H)if((W=K[H]).type===T.type&&W.name===T.name)return T.value}return}L=U?TC:MC;for(H=0;H<Y;++H)this.each(L(K[H],U,Z));return this}function nA(Q,U,Z){var K=KJ(Q),H=K.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=K.document.createEvent("Event"),Z)H.initEvent(U,Z.bubbles,Z.cancelable),H.detail=Z.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function RC(Q,U){return function(){return nA(this,Q,U)}}function OC(Q,U){return function(){return nA(this,Q,U.apply(this,arguments))}}function uX(Q,U){return this.each((typeof U==="function"?OC:RC)(Q,U))}function*bX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length,W;H<Y;++H)if(W=K[H])yield W}var EX=[null];function t0(Q,U){this._groups=Q,this._parents=U}function eA(){return new t0([[document.documentElement]],EX)}function IC(){return this}t0.prototype=eA.prototype={constructor:t0,select:_X,selectAll:$X,selectChild:QX,selectChildren:qX,filter:UX,data:FX,enter:GX,exit:XX,join:KX,merge:HX,selection:IC,order:YX,sort:zX,call:WX,nodes:LX,node:BX,size:AX,empty:MX,each:TX,attr:RX,style:OX,property:IX,classed:PX,text:NX,html:CX,raise:fX,lower:SX,append:vX,insert:jX,remove:yX,clone:VX,datum:kX,on:DX,dispatch:uX,[Symbol.iterator]:bX};var C3=eA;function L2(Q){return typeof Q==="string"?new t0([[document.querySelector(Q)]],[document.documentElement]):new t0([[Q]],EX)}var _M={passive:!1},V8={capture:!0,passive:!1};function Rq(Q){Q.stopImmediatePropagation()}function f3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function G9(Q){var U=Q.document.documentElement,Z=L2(Q).on("dragstart.drag",f3,V8);if("onselectstart"in U)Z.on("selectstart.drag",f3,V8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function YJ(Q,U){var Z=Q.document.documentElement,K=L2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",f3,V8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in Z)K.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var zJ=(Q)=>()=>Q;function WJ(Q,{sourceEvent:U,subject:Z,target:K,identifier:H,active:Y,x:W,y:L,dx:M,dy:O,dispatch:T}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:Z,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},identifier:{value:H,enumerable:!0,configurable:!0},active:{value:Y,enumerable:!0,configurable:!0},x:{value:W,enumerable:!0,configurable:!0},y:{value:L,enumerable:!0,configurable:!0},dx:{value:M,enumerable:!0,configurable:!0},dy:{value:O,enumerable:!0,configurable:!0},_:{value:T}})}WJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function wC(Q){return!Q.ctrlKey&&!Q.button}function PC(){return this.parentNode}function NC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function CC(){return navigator.maxTouchPoints||"ontouchstart"in this}function LJ(){var Q=wC,U=PC,Z=NC,K=CC,H={},Y=y8("start","drag","end"),W=0,L,M,O,T,A=0;function R(j){j.on("mousedown.drag",P).filter(K).on("touchstart.drag",v).on("touchmove.drag",f,_M).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(j,u){if(T||!Q.call(this,j,u))return;var h=C(this,U.call(this,j,u),j,u,"mouse");if(!h)return;L2(j.view).on("mousemove.drag",N,V8).on("mouseup.drag",V,V8),G9(j.view),Rq(j),O=!1,L=j.clientX,M=j.clientY,h("start",j)}function N(j){if(f3(j),!O){var u=j.clientX-L,h=j.clientY-M;O=u*u+h*h>A}H.mouse("drag",j)}function V(j){L2(j.view).on("mousemove.drag mouseup.drag",null),YJ(j.view,O),f3(j),H.mouse("end",j)}function v(j,u){if(!Q.call(this,j,u))return;var h=j.changedTouches,E=U.call(this,j,u),b=h.length,D,x;for(D=0;D<b;++D)if(x=C(this,E,j,u,h[D].identifier,h[D]))Rq(j),x("start",j,h[D])}function f(j){var u=j.changedTouches,h=u.length,E,b;for(E=0;E<h;++E)if(b=H[u[E].identifier])f3(j),b("drag",j,u[E])}function y(j){var u=j.changedTouches,h=u.length,E,b;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(E=0;E<h;++E)if(b=H[u[E].identifier])Rq(j),b("end",j,u[E])}function C(j,u,h,E,b,D){var x=Y.copy(),$1=E2(D||h,u),Q1,J1,m;if((m=Z.call(j,new WJ("beforestart",{sourceEvent:h,target:R,identifier:b,active:W,x:$1[0],y:$1[1],dx:0,dy:0,dispatch:x}),E))==null)return;return Q1=m.x-$1[0]||0,J1=m.y-$1[1]||0,function p(c,a,i){var o=$1,k;switch(c){case"start":H[b]=p,k=W++;break;case"end":delete H[b],--W;case"drag":$1=E2(i||a,u),k=W;break}x.call(c,j,new WJ(c,{sourceEvent:a,subject:m,target:R,identifier:b,active:k,x:$1[0]+Q1,y:$1[1]+J1,dx:$1[0]-o[0],dy:$1[1]-o[1],dispatch:x}),E)}}return R.filter=function(j){return arguments.length?(Q=typeof j==="function"?j:zJ(!!j),R):Q},R.container=function(j){return arguments.length?(U=typeof j==="function"?j:zJ(j),R):U},R.subject=function(j){return arguments.length?(Z=typeof j==="function"?j:zJ(j),R):Z},R.touchable=function(j){return arguments.length?(K=typeof j==="function"?j:zJ(!!j),R):K},R.on=function(){var j=Y.on.apply(Y,arguments);return j===Y?R:j},R.clickDistance=function(j){return arguments.length?(A=(j=+j)*j,R):Math.sqrt(A)},R}function BJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function hX(Q,U){var Z=Object.create(Q.prototype);for(var K in U)Z[K]=U[K];return Z}function TJ(){}var AJ=0.7,wq=1/AJ,Z9="\\s*([+-]?\\d+)\\s*",MJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",i4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fC=/^#([0-9a-f]{3,8})$/,SC=new RegExp(`^rgb\\(${Z9},${Z9},${Z9}\\)$`),vC=new RegExp(`^rgb\\(${i4},${i4},${i4}\\)$`),jC=new RegExp(`^rgba\\(${Z9},${Z9},${Z9},${MJ}\\)$`),yC=new RegExp(`^rgba\\(${i4},${i4},${i4},${MJ}\\)$`),VC=new RegExp(`^hsl\\(${MJ},${i4},${i4}\\)$`),kC=new RegExp(`^hsla\\(${MJ},${i4},${i4},${MJ}\\)$`),JM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};BJ(TJ,F4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:$M,formatHex:$M,formatHex8:DC,formatHsl:uC,formatRgb:QM,toString:QM});function $M(){return this.rgb().formatHex()}function DC(){return this.rgb().formatHex8()}function uC(){return XM(this).formatHsl()}function QM(){return this.rgb().formatRgb()}function F4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=fC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?qM(U):Z===3?new F5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Oq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Oq(U>>12&15|U>>8&240,U>>8&15|U>>4&240,U>>4&15|U&240,((U&15)<<4|U&15)/255):null):(U=SC.exec(Q))?new F5(U[1],U[2],U[3],1):(U=vC.exec(Q))?new F5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=jC.exec(Q))?Oq(U[1],U[2],U[3],U[4]):(U=yC.exec(Q))?Oq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=VC.exec(Q))?ZM(U[1],U[2]/100,U[3]/100,1):(U=kC.exec(Q))?ZM(U[1],U[2]/100,U[3]/100,U[4]):JM.hasOwnProperty(Q)?qM(JM[Q]):Q==="transparent"?new F5(NaN,NaN,NaN,0):null}function qM(Q){return new F5(Q>>16&255,Q>>8&255,Q&255,1)}function Oq(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new F5(Q,U,Z,K)}function bC(Q){if(!(Q instanceof TJ))Q=F4(Q);if(!Q)return new F5;return Q=Q.rgb(),new F5(Q.r,Q.g,Q.b,Q.opacity)}function F9(Q,U,Z,K){return arguments.length===1?bC(Q):new F5(Q,U,Z,K==null?1:K)}function F5(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}BJ(F5,F9,hX(TJ,{brighter(Q){return Q=Q==null?wq:Math.pow(wq,Q),new F5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?AJ:Math.pow(AJ,Q),new F5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new F5(D8(this.r),D8(this.g),D8(this.b),Pq(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:UM,formatHex:UM,formatHex8:EC,formatRgb:GM,toString:GM}));function UM(){return`#${k8(this.r)}${k8(this.g)}${k8(this.b)}`}function EC(){return`#${k8(this.r)}${k8(this.g)}${k8(this.b)}${k8((isNaN(this.opacity)?1:this.opacity)*255)}`}function GM(){let Q=Pq(this.opacity);return`${Q===1?"rgb(":"rgba("}${D8(this.r)}, ${D8(this.g)}, ${D8(this.b)}${Q===1?")":`, ${Q})`}`}function Pq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function D8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function k8(Q){return Q=D8(Q),(Q<16?"0":"")+Q.toString(16)}function ZM(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new Z4(Q,U,Z,K)}function XM(Q){if(Q instanceof Z4)return new Z4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof TJ))Q=F4(Q);if(!Q)return new Z4;if(Q instanceof Z4)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,K=Q.b/255,H=Math.min(U,Z,K),Y=Math.max(U,Z,K),W=NaN,L=Y-H,M=(Y+H)/2;if(L){if(U===Y)W=(Z-K)/L+(Z<K)*6;else if(Z===Y)W=(K-U)/L+2;else W=(U-Z)/L+4;L/=M<0.5?Y+H:2-Y-H,W*=60}else L=M>0&&M<1?0:W;return new Z4(W,L,M,Q.opacity)}function KM(Q,U,Z,K){return arguments.length===1?XM(Q):new Z4(Q,U,Z,K==null?1:K)}function Z4(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}BJ(Z4,KM,hX(TJ,{brighter(Q){return Q=Q==null?wq:Math.pow(wq,Q),new Z4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?AJ:Math.pow(AJ,Q),new Z4(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,K=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-K;return new F5(xX(Q>=240?Q-240:Q+120,H,K),xX(Q,H,K),xX(Q<120?Q+240:Q-120,H,K),this.opacity)},clamp(){return new Z4(FM(this.h),Iq(this.s),Iq(this.l),Pq(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let Q=Pq(this.opacity);return`${Q===1?"hsl(":"hsla("}${FM(this.h)}, ${Iq(this.s)*100}%, ${Iq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function FM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Iq(Q){return Math.max(0,Math.min(1,Q||0))}function xX(Q,U,Z){return(Q<60?U+(Z-U)*Q/60:Q<180?Z:Q<240?U+(Z-U)*(240-Q)/60:U)*255}function mX(Q,U,Z,K,H){var Y=Q*Q,W=Y*Q;return((1-3*Q+3*Y-W)*U+(4-6*Y+3*W)*Z+(1+3*Q+3*Y-3*W)*K+W*H)/6}function gX(Q){var U=Q.length-1;return function(Z){var K=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[K],Y=Q[K+1],W=K>0?Q[K-1]:2*H-Y,L=K<U-1?Q[K+2]:2*Y-H;return mX((Z-K/U)*U,W,H,Y,L)}}function pX(Q){var U=Q.length;return function(Z){var K=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(K+U-1)%U],Y=Q[K%U],W=Q[(K+1)%U],L=Q[(K+2)%U];return mX((Z-K/U)*U,H,Y,W,L)}}var RJ=(Q)=>()=>Q;function hC(Q,U){return function(Z){return Q+Z*U}}function xC(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(K){return Math.pow(Q+K*U,Z)}}function HM(Q){return(Q=+Q)===1?Nq:function(U,Z){return Z-U?xC(U,Z,Q):RJ(isNaN(U)?Z:U)}}function Nq(Q,U){var Z=U-Q;return Z?hC(Q,Z):RJ(isNaN(Q)?U:Q)}var u8=function Q(U){var Z=HM(U);function K(H,Y){var W=Z((H=F9(H)).r,(Y=F9(Y)).r),L=Z(H.g,Y.g),M=Z(H.b,Y.b),O=Nq(H.opacity,Y.opacity);return function(T){return H.r=W(T),H.g=L(T),H.b=M(T),H.opacity=O(T),H+""}}return K.gamma=Q,K}(1);function YM(Q){return function(U){var Z=U.length,K=Array(Z),H=Array(Z),Y=Array(Z),W,L;for(W=0;W<Z;++W)L=F9(U[W]),K[W]=L.r||0,H[W]=L.g||0,Y[W]=L.b||0;return K=Q(K),H=Q(H),Y=Q(Y),L.opacity=1,function(M){return L.r=K(M),L.g=H(M),L.b=Y(M),L+""}}}var mC=YM(gX),gC=YM(pX);function cX(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,K=U.slice(),H;return function(Y){for(H=0;H<Z;++H)K[H]=Q[H]*(1-Y)+U[H]*Y;return K}}function zM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function WM(Q,U){var Z=U?U.length:0,K=Q?Math.min(Z,Q.length):0,H=Array(K),Y=Array(Z),W;for(W=0;W<K;++W)H[W]=d4(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(L){for(W=0;W<K;++W)Y[W]=H[W](L);return Y}}function lX(Q,U){var Z=new Date;return Q=+Q,U=+U,function(K){return Z.setTime(Q*(1-K)+U*K),Z}}function h2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function iX(Q,U){var Z={},K={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)Z[H]=d4(Q[H],U[H]);else K[H]=U[H];return function(Y){for(H in Z)K[H]=Z[H](Y);return K}}var rX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dX=new RegExp(rX.source,"g");function pC(Q){return function(){return Q}}function cC(Q){return function(U){return Q(U)+""}}function X9(Q,U){var Z=rX.lastIndex=dX.lastIndex=0,K,H,Y,W=-1,L=[],M=[];Q=Q+"",U=U+"";while((K=rX.exec(Q))&&(H=dX.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),L[W])L[W]+=Y;else L[++W]=Y;if((K=K[0])===(H=H[0]))if(L[W])L[W]+=H;else L[++W]=H;else L[++W]=null,M.push({i:W,x:h2(K,H)});Z=dX.lastIndex}if(Z<U.length)if(Y=U.slice(Z),L[W])L[W]+=Y;else L[++W]=Y;return L.length<2?M[0]?cC(M[0].x):pC(U):(U=M.length,function(O){for(var T=0,A;T<U;++T)L[(A=M[T]).i]=A.x(O);return L.join("")})}function d4(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?RJ(U):(Z==="number"?h2:Z==="string"?(K=F4(U))?(U=K,u8):X9:U instanceof F4?u8:U instanceof Date?lX:zM(U)?cX:Array.isArray(U)?WM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?iX:h2)(Q,U)}var LM=180/Math.PI,Cq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fq(Q,U,Z,K,H,Y){var W,L,M;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(M=Q*Z+U*K)Z-=Q*M,K-=U*M;if(L=Math.sqrt(Z*Z+K*K))Z/=L,K/=L,M/=L;if(Q*K<U*Z)Q=-Q,U=-U,M=-M,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*LM,skewX:Math.atan(M)*LM,scaleX:W,scaleY:L}}var Sq;function BM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Cq:fq(U.a,U.b,U.c,U.d,U.e,U.f)}function AM(Q){if(Q==null)return Cq;if(!Sq)Sq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Sq.setAttribute("transform",Q),!(Q=Sq.transform.baseVal.consolidate()))return Cq;return Q=Q.matrix,fq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function MM(Q,U,Z,K){function H(O){return O.length?O.pop()+" ":""}function Y(O,T,A,R,P,N){if(O!==A||T!==R){var V=P.push("translate(",null,U,null,Z);N.push({i:V-4,x:h2(O,A)},{i:V-2,x:h2(T,R)})}else if(A||R)P.push("translate("+A+U+R+Z)}function W(O,T,A,R){if(O!==T){if(O-T>180)T+=360;else if(T-O>180)O+=360;R.push({i:A.push(H(A)+"rotate(",null,K)-2,x:h2(O,T)})}else if(T)A.push(H(A)+"rotate("+T+K)}function L(O,T,A,R){if(O!==T)R.push({i:A.push(H(A)+"skewX(",null,K)-2,x:h2(O,T)});else if(T)A.push(H(A)+"skewX("+T+K)}function M(O,T,A,R,P,N){if(O!==A||T!==R){var V=P.push(H(P)+"scale(",null,",",null,")");N.push({i:V-4,x:h2(O,A)},{i:V-2,x:h2(T,R)})}else if(A!==1||R!==1)P.push(H(P)+"scale("+A+","+R+")")}return function(O,T){var A=[],R=[];return O=Q(O),T=Q(T),Y(O.translateX,O.translateY,T.translateX,T.translateY,A,R),W(O.rotate,T.rotate,A,R),L(O.skewX,T.skewX,A,R),M(O.scaleX,O.scaleY,T.scaleX,T.scaleY,A,R),O=T=null,function(P){var N=-1,V=R.length,v;while(++N<V)A[(v=R[N]).i]=v.x(P);return A.join("")}}}var aX=MM(BM,"px, ","px)","deg)"),sX=MM(AM,", ",")",")");var lC=0.000000000001;function TM(Q){return((Q=Math.exp(Q))+1/Q)/2}function iC(Q){return((Q=Math.exp(Q))-1/Q)/2}function dC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var b8=function Q(U,Z,K){function H(Y,W){var L=Y[0],M=Y[1],O=Y[2],T=W[0],A=W[1],R=W[2],P=T-L,N=A-M,V=P*P+N*N,v,f;if(V<lC)f=Math.log(R/O)/U,v=function(E){return[L+E*P,M+E*N,O*Math.exp(U*E*f)]};else{var y=Math.sqrt(V),C=(R*R-O*O+K*V)/(2*O*Z*y),j=(R*R-O*O-K*V)/(2*R*Z*y),u=Math.log(Math.sqrt(C*C+1)-C),h=Math.log(Math.sqrt(j*j+1)-j);f=(h-u)/U,v=function(E){var b=E*f,D=TM(u),x=O/(Z*y)*(D*dC(U*b+u)-iC(u));return[L+x*P,M+x*N,O*D/TM(U*b+u)]}}return v.duration=f*1000*U/Math.SQRT2,v}return H.rho=function(Y){var W=Math.max(0.001,+Y),L=W*W,M=L*L;return Q(W,L,M)},H}(Math.SQRT2,2,4);var K9=0,IJ=0,OJ=0,OM=1000,vq,wJ,jq=0,E8=0,yq=0,PJ=typeof performance==="object"&&performance.now?performance:Date,IM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function CJ(){return E8||(IM(rC),E8=PJ.now()+yq)}function rC(){E8=0}function NJ(){this._call=this._time=this._next=null}NJ.prototype=Vq.prototype={constructor:NJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?CJ():+Z)+(U==null?0:+U),!this._next&&wJ!==this){if(wJ)wJ._next=this;else vq=this;wJ=this}this._call=Q,this._time=Z,tX()},stop:function(){if(this._call)this._call=null,this._time=1/0,tX()}};function Vq(Q,U,Z){var K=new NJ;return K.restart(Q,U,Z),K}function wM(){CJ(),++K9;var Q=vq,U;while(Q){if((U=E8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--K9}function RM(){E8=(jq=PJ.now())+yq,K9=IJ=0;try{wM()}finally{K9=0,sC(),E8=0}}function aC(){var Q=PJ.now(),U=Q-jq;if(U>OM)yq-=U,jq=Q}function sC(){var Q,U=vq,Z,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:vq=Z;wJ=Q,tX(K)}function tX(Q){if(K9)return;if(IJ)IJ=clearTimeout(IJ);var U=Q-E8;if(U>24){if(Q<1/0)IJ=setTimeout(RM,Q-PJ.now()-yq);if(OJ)OJ=clearInterval(OJ)}else{if(!OJ)jq=PJ.now(),OJ=setInterval(aC,OM);K9=1,IM(RM)}}function fJ(Q,U,Z){var K=new NJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,Z),K}var tC=y8("start","end","cancel","interrupt"),oC=[],CM=0,PM=1,Dq=2,kq=3,NM=4,uq=5,SJ=6;function S3(Q,U,Z,K,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;nC(Q,Z,{name:U,index:K,group:H,on:tC,tween:oC,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:CM})}function vJ(Q,U){var Z=B2(Q,U);if(Z.state>CM)throw Error("too late; already scheduled");return Z}function V2(Q,U){var Z=B2(Q,U);if(Z.state>kq)throw Error("too late; already running");return Z}function B2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function nC(Q,U,Z){var K=Q.__transition,H;K[U]=Z,Z.timer=Vq(Y,0,Z.time);function Y(O){if(Z.state=PM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=O)W(O-Z.delay)}function W(O){var T,A,R,P;if(Z.state!==PM)return M();for(T in K){if(P=K[T],P.name!==Z.name)continue;if(P.state===kq)return fJ(W);if(P.state===NM)P.state=SJ,P.timer.stop(),P.on.call("interrupt",Q,Q.__data__,P.index,P.group),delete K[T];else if(+T<U)P.state=SJ,P.timer.stop(),P.on.call("cancel",Q,Q.__data__,P.index,P.group),delete K[T]}if(fJ(function(){if(Z.state===kq)Z.state=NM,Z.timer.restart(L,Z.delay,Z.time),L(O)}),Z.state=Dq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==Dq)return;Z.state=kq,H=Array(R=Z.tween.length);for(T=0,A=-1;T<R;++T)if(P=Z.tween[T].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=P;H.length=A+1}function L(O){var T=O<Z.duration?Z.ease.call(null,O/Z.duration):(Z.timer.restart(M),Z.state=uq,1),A=-1,R=H.length;while(++A<R)H[A].call(Q,T);if(Z.state===uq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),M()}function M(){Z.state=SJ,Z.timer.stop(),delete K[U];for(var O in K)return;delete Q.__transition}}function y6(Q,U){var Z=Q.__transition,K,H,Y=!0,W;if(!Z)return;U=U==null?null:U+"";for(W in Z){if((K=Z[W]).name!==U){Y=!1;continue}H=K.state>Dq&&K.state<uq,K.state=SJ,K.timer.stop(),K.on.call(H?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete Z[W]}if(Y)delete Q.__transition}function oX(Q){return this.each(function(){y6(this,Q)})}function eC(Q,U){var Z,K;return function(){var H=V2(this,Q),Y=H.tween;if(Y!==Z){K=Z=Y;for(var W=0,L=K.length;W<L;++W)if(K[W].name===U){K=K.slice(),K.splice(W,1);break}}H.tween=K}}function _f(Q,U,Z){var K,H;if(typeof Z!=="function")throw Error();return function(){var Y=V2(this,Q),W=Y.tween;if(W!==K){H=(K=W).slice();for(var L={name:U,value:Z},M=0,O=H.length;M<O;++M)if(H[M].name===U){H[M]=L;break}if(M===O)H.push(L)}Y.tween=H}}function nX(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=B2(this.node(),Z).tween;for(var H=0,Y=K.length,W;H<Y;++H)if((W=K[H]).name===Q)return W.value;return null}return this.each((U==null?eC:_f)(Z,Q,U))}function H9(Q,U,Z){var K=Q._id;return Q.each(function(){var H=V2(this,K);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return B2(H,K).value[U]}}function jJ(Q,U){var Z;return(typeof U==="number"?h2:U instanceof F4?u8:(Z=F4(U))?(U=Z,u8):X9)(Q,U)}function Jf(Q){return function(){this.removeAttribute(Q)}}function $f(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function Qf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttribute(Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function qf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttributeNS(Q.space,Q.local);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Uf(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),M;if(L==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),M=L+"",W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function Gf(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),M;if(L==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),M=L+"",W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function eX(Q,U){var Z=l4(Q),K=Z==="transform"?sX:jJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Gf:Uf)(Z,K,H9(this,"attr."+Q,U)):U==null?(Z.local?$f:Jf)(Z):(Z.local?qf:Qf)(Z,K,U))}function Zf(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Ff(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function Xf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Ff(Q,Y);return Z}return H._value=U,H}function Kf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Zf(Q,Y);return Z}return H._value=U,H}function _K(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var K=l4(Q);return this.tween(Z,(K.local?Xf:Kf)(K,U))}function Hf(Q,U){return function(){vJ(this,Q).delay=+U.apply(this,arguments)}}function Yf(Q,U){return U=+U,function(){vJ(this,Q).delay=U}}function JK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Hf:Yf)(U,Q)):B2(this.node(),U).delay}function zf(Q,U){return function(){V2(this,Q).duration=+U.apply(this,arguments)}}function Wf(Q,U){return U=+U,function(){V2(this,Q).duration=U}}function $K(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?zf:Wf)(U,Q)):B2(this.node(),U).duration}function Lf(Q,U){if(typeof U!=="function")throw Error();return function(){V2(this,Q).ease=U}}function QK(Q){var U=this._id;return arguments.length?this.each(Lf(U,Q)):B2(this.node(),U).ease}function Bf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();V2(this,Q).ease=Z}}function qK(Q){if(typeof Q!=="function")throw Error();return this.each(Bf(this._id,Q))}function UK(Q){if(typeof Q!=="function")Q=q9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[H]=[],M,O=0;O<W;++O)if((M=Y[O])&&Q.call(M,M.__data__,O,Y))L.push(M);return new o2(K,this._parents,this._name,this._id)}function GK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,K=U.length,H=Z.length,Y=Math.min(K,H),W=Array(K),L=0;L<Y;++L)for(var M=U[L],O=Z[L],T=M.length,A=W[L]=Array(T),R,P=0;P<T;++P)if(R=M[P]||O[P])A[P]=R;for(;L<K;++L)W[L]=U[L];return new o2(W,this._parents,this._name,this._id)}function Af(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var Z=U.indexOf(".");if(Z>=0)U=U.slice(0,Z);return!U||U==="start"})}function Mf(Q,U,Z){var K,H,Y=Af(U)?vJ:V2;return function(){var W=Y(this,Q),L=W.on;if(L!==K)(H=(K=L).copy()).on(U,Z);W.on=H}}function ZK(Q,U){var Z=this._id;return arguments.length<2?B2(this.node(),Z).on.on(Q):this.each(Mf(Z,Q,U))}function Tf(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function FK(){return this.on("end.remove",Tf(this._id))}function XK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=v6(Q);for(var K=this._groups,H=K.length,Y=Array(H),W=0;W<H;++W)for(var L=K[W],M=L.length,O=Y[W]=Array(M),T,A,R=0;R<M;++R)if((T=L[R])&&(A=Q.call(T,T.__data__,R,L))){if("__data__"in T)A.__data__=T.__data__;O[R]=A,S3(O[R],U,Z,R,O,B2(T,Z))}return new o2(Y,this._parents,U,Z)}function KK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=U9(Q);for(var K=this._groups,H=K.length,Y=[],W=[],L=0;L<H;++L)for(var M=K[L],O=M.length,T,A=0;A<O;++A)if(T=M[A]){for(var R=Q.call(T,T.__data__,A,M),P,N=B2(T,Z),V=0,v=R.length;V<v;++V)if(P=R[V])S3(P,U,Z,V,R,N);Y.push(R),W.push(T)}return new o2(Y,W,U,Z)}var Rf=C3.prototype.constructor;function HK(){return new Rf(this._groups,this._parents)}function Of(Q,U){var Z,K,H;return function(){var Y=j6(this,Q),W=(this.style.removeProperty(Q),j6(this,Q));return Y===W?null:Y===Z&&W===K?H:H=U(Z=Y,K=W)}}function fM(Q){return function(){this.style.removeProperty(Q)}}function If(Q,U,Z){var K,H=Z+"",Y;return function(){var W=j6(this,Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function wf(Q,U,Z){var K,H,Y;return function(){var W=j6(this,Q),L=Z(this),M=L+"";if(L==null)M=L=(this.style.removeProperty(Q),j6(this,Q));return W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function Pf(Q,U){var Z,K,H,Y="style."+U,W="end."+Y,L;return function(){var M=V2(this,Q),O=M.on,T=M.value[Y]==null?L||(L=fM(U)):void 0;if(O!==Z||H!==T)(K=(Z=O).copy()).on(W,H=T);M.on=K}}function YK(Q,U,Z){var K=(Q+="")==="transform"?aX:jJ;return U==null?this.styleTween(Q,Of(Q,K)).on("end.style."+Q,fM(Q)):typeof U==="function"?this.styleTween(Q,wf(Q,K,H9(this,"style."+Q,U))).each(Pf(this._id,Q)):this.styleTween(Q,If(Q,K,U),Z).on("end.style."+Q,null)}function Nf(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function Cf(Q,U,Z){var K,H;function Y(){var W=U.apply(this,arguments);if(W!==H)K=(H=W)&&Nf(Q,W,Z);return K}return Y._value=U,Y}function zK(Q,U,Z){var K="style."+(Q+="");if(arguments.length<2)return(K=this.tween(K))&&K._value;if(U==null)return this.tween(K,null);if(typeof U!=="function")throw Error();return this.tween(K,Cf(Q,U,Z==null?"":Z))}function ff(Q){return function(){this.textContent=Q}}function Sf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function WK(Q){return this.tween("text",typeof Q==="function"?Sf(H9(this,"text",Q)):ff(Q==null?"":Q+""))}function vf(Q){return function(U){this.textContent=Q.call(this,U)}}function jf(Q){var U,Z;function K(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&vf(H);return U}return K._value=Q,K}function LK(Q){var U="text";if(arguments.length<1)return(U=this.tween(U))&&U._value;if(Q==null)return this.tween(U,null);if(typeof Q!=="function")throw Error();return this.tween(U,jf(Q))}function BK(){var Q=this._name,U=this._id,Z=bq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O]){var T=B2(M,U);S3(M,Q,Z,O,W,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new o2(K,this._parents,Q,Z)}function AK(){var Q,U,Z=this,K=Z._id,H=Z.size();return new Promise(function(Y,W){var L={value:W},M={value:function(){if(--H===0)Y()}};if(Z.each(function(){var O=V2(this,K),T=O.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(L),U._.interrupt.push(L),U._.end.push(M);O.on=U}),H===0)Y()})}var yf=0;function o2(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function SM(Q){return C3().transition(Q)}function bq(){return++yf}var v3=C3.prototype;o2.prototype=SM.prototype={constructor:o2,select:XK,selectAll:KK,selectChild:v3.selectChild,selectChildren:v3.selectChildren,filter:UK,merge:GK,selection:HK,transition:BK,call:v3.call,nodes:v3.nodes,node:v3.node,size:v3.size,empty:v3.empty,each:v3.each,on:ZK,attr:eX,attrTween:_K,style:YK,styleTween:zK,text:WK,textTween:LK,remove:FK,tween:nX,delay:JK,duration:$K,ease:QK,easeVarying:qK,end:AK,[Symbol.iterator]:v3[Symbol.iterator]};function Eq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var Vf={time:null,delay:0,duration:250,ease:Eq};function kf(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function MK(Q){var U,Z;if(Q instanceof o2)U=Q._id,Q=Q._name;else U=bq(),(Z=Vf).time=CJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O])S3(M,Q,U,O,W,Z||kf(M,U));return new o2(K,this._parents,Q,U)}C3.prototype.interrupt=oX;C3.prototype.transition=MK;var yJ=(Q)=>()=>Q;function TK(Q,{sourceEvent:U,target:Z,transform:K,dispatch:H}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:Z,enumerable:!0,configurable:!0},transform:{value:K,enumerable:!0,configurable:!0},_:{value:H}})}function X4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}X4.prototype={constructor:X4,scale:function(Q){return Q===1?this:new X4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new X4(this.k,this.x+this.k*Q,this.y+this.k*U)},apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},applyX:function(Q){return Q*this.k+this.x},applyY:function(Q){return Q*this.k+this.y},invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},invertX:function(Q){return(Q-this.x)/this.k},invertY:function(Q){return(Q-this.y)/this.k},rescaleX:function(Q){return Q.copy().domain(Q.range().map(this.invertX,this).map(Q.invert,Q))},rescaleY:function(Q){return Q.copy().domain(Q.range().map(this.invertY,this).map(Q.invert,Q))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var h8=new X4(1,0,0);VJ.prototype=X4.prototype;function VJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return h8;return Q.__zoom}function hq(Q){Q.stopImmediatePropagation()}function x8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Df(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function uf(){var Q=this;if(Q instanceof SVGElement){if(Q=Q.ownerSVGElement||Q,Q.hasAttribute("viewBox"))return Q=Q.viewBox.baseVal,[[Q.x,Q.y],[Q.x+Q.width,Q.y+Q.height]];return[[0,0],[Q.width.baseVal.value,Q.height.baseVal.value]]}return[[0,0],[Q.clientWidth,Q.clientHeight]]}function vM(){return this.__zoom||h8}function bf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function Ef(){return navigator.maxTouchPoints||"ontouchstart"in this}function hf(Q,U,Z){var K=Q.invertX(U[0][0])-Z[0][0],H=Q.invertX(U[1][0])-Z[1][0],Y=Q.invertY(U[0][1])-Z[0][1],W=Q.invertY(U[1][1])-Z[1][1];return Q.translate(H>K?(K+H)/2:Math.min(0,K)||Math.max(0,H),W>Y?(Y+W)/2:Math.min(0,Y)||Math.max(0,W))}function kJ(){var Q=Df,U=uf,Z=hf,K=bf,H=Ef,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],L=250,M=b8,O=y8("start","zoom","end"),T,A,R,P=500,N=150,V=0,v=10;function f(m){m.property("__zoom",vM).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",D).on("dblclick.zoom",x).filter(H).on("touchstart.zoom",$1).on("touchmove.zoom",Q1).on("touchend.zoom touchcancel.zoom",J1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}f.transform=function(m,p,c,a){var i=m.selection?m.selection():m;if(i.property("__zoom",vM),m!==i)u(m,p,c,a);else i.interrupt().each(function(){h(this,arguments).event(a).start().zoom(null,typeof p==="function"?p.apply(this,arguments):p).end()})},f.scaleBy=function(m,p,c,a){f.scaleTo(m,function(){var i=this.__zoom.k,o=typeof p==="function"?p.apply(this,arguments):p;return i*o},c,a)},f.scaleTo=function(m,p,c,a){f.transform(m,function(){var i=U.apply(this,arguments),o=this.__zoom,k=c==null?j(i):typeof c==="function"?c.apply(this,arguments):c,g=o.invert(k),q1=typeof p==="function"?p.apply(this,arguments):p;return Z(C(y(o,q1),k,g),i,W)},c,a)},f.translateBy=function(m,p,c,a){f.transform(m,function(){return Z(this.__zoom.translate(typeof p==="function"?p.apply(this,arguments):p,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),W)},null,a)},f.translateTo=function(m,p,c,a,i){f.transform(m,function(){var o=U.apply(this,arguments),k=this.__zoom,g=a==null?j(o):typeof a==="function"?a.apply(this,arguments):a;return Z(h8.translate(g[0],g[1]).scale(k.k).translate(typeof p==="function"?-p.apply(this,arguments):-p,typeof c==="function"?-c.apply(this,arguments):-c),o,W)},a,i)};function y(m,p){return p=Math.max(Y[0],Math.min(Y[1],p)),p===m.k?m:new X4(p,m.x,m.y)}function C(m,p,c){var a=p[0]-c[0]*m.k,i=p[1]-c[1]*m.k;return a===m.x&&i===m.y?m:new X4(m.k,a,i)}function j(m){return[(+m[0][0]+ +m[1][0])/2,(+m[0][1]+ +m[1][1])/2]}function u(m,p,c,a){m.on("start.zoom",function(){h(this,arguments).event(a).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).event(a).end()}).tween("zoom",function(){var i=this,o=arguments,k=h(i,o).event(a),g=U.apply(i,o),q1=c==null?j(g):typeof c==="function"?c.apply(i,o):c,t=Math.max(g[1][0]-g[0][0],g[1][1]-g[0][1]),W1=i.__zoom,T1=typeof p==="function"?p.apply(i,o):p,O1=M(W1.invert(q1).concat(t/W1.k),T1.invert(q1).concat(t/T1.k));return function(L1){if(L1===1)L1=T1;else{var U1=O1(L1),P1=t/U1[2];L1=new X4(P1,q1[0]-U1[0]*P1,q1[1]-U1[1]*P1)}k.zoom(null,L1)}})}function h(m,p,c){return!c&&m.__zooming||new E(m,p)}function E(m,p){this.that=m,this.args=p,this.active=0,this.sourceEvent=null,this.extent=U.apply(m,p),this.taps=0}E.prototype={event:function(m){if(m)this.sourceEvent=m;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(m,p){if(this.mouse&&m!=="mouse")this.mouse[1]=p.invert(this.mouse[0]);if(this.touch0&&m!=="touch")this.touch0[1]=p.invert(this.touch0[0]);if(this.touch1&&m!=="touch")this.touch1[1]=p.invert(this.touch1[0]);return this.that.__zoom=p,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(m){var p=L2(this.that).datum();O.call(m,this.that,new TK(m,{sourceEvent:this.sourceEvent,target:f,type:m,transform:this.that.__zoom,dispatch:O}),p)}};function b(m,...p){if(!Q.apply(this,arguments))return;var c=h(this,p).event(m),a=this.__zoom,i=Math.max(Y[0],Math.min(Y[1],a.k*Math.pow(2,K.apply(this,arguments)))),o=E2(m);if(c.wheel){if(c.mouse[0][0]!==o[0]||c.mouse[0][1]!==o[1])c.mouse[1]=a.invert(c.mouse[0]=o);clearTimeout(c.wheel)}else if(a.k===i)return;else c.mouse=[o,a.invert(o)],y6(this),c.start();x8(m),c.wheel=setTimeout(k,N),c.zoom("mouse",Z(C(y(a,i),c.mouse[0],c.mouse[1]),c.extent,W));function k(){c.wheel=null,c.end()}}function D(m,...p){if(R||!Q.apply(this,arguments))return;var c=m.currentTarget,a=h(this,p,!0).event(m),i=L2(m.view).on("mousemove.zoom",q1,!0).on("mouseup.zoom",t,!0),o=E2(m,c),k=m.clientX,g=m.clientY;G9(m.view),hq(m),a.mouse=[o,this.__zoom.invert(o)],y6(this),a.start();function q1(W1){if(x8(W1),!a.moved){var T1=W1.clientX-k,O1=W1.clientY-g;a.moved=T1*T1+O1*O1>V}a.event(W1).zoom("mouse",Z(C(a.that.__zoom,a.mouse[0]=E2(W1,c),a.mouse[1]),a.extent,W))}function t(W1){i.on("mousemove.zoom mouseup.zoom",null),YJ(W1.view,a.moved),x8(W1),a.event(W1).end()}}function x(m,...p){if(!Q.apply(this,arguments))return;var c=this.__zoom,a=E2(m.changedTouches?m.changedTouches[0]:m,this),i=c.invert(a),o=c.k*(m.shiftKey?0.5:2),k=Z(C(y(c,o),a,i),U.apply(this,p),W);if(x8(m),L>0)L2(this).transition().duration(L).call(u,k,a,m);else L2(this).call(f.transform,k,a,m)}function $1(m,...p){if(!Q.apply(this,arguments))return;var c=m.touches,a=c.length,i=h(this,p,m.changedTouches.length===a).event(m),o,k,g,q1;hq(m);for(k=0;k<a;++k)if(g=c[k],q1=E2(g,this),q1=[q1,this.__zoom.invert(q1),g.identifier],!i.touch0)i.touch0=q1,o=!0,i.taps=1+!!T;else if(!i.touch1&&i.touch0[2]!==q1[2])i.touch1=q1,i.taps=0;if(T)T=clearTimeout(T);if(o){if(i.taps<2)A=q1[0],T=setTimeout(function(){T=null},P);y6(this),i.start()}}function Q1(m,...p){if(!this.__zooming)return;var c=h(this,p).event(m),a=m.changedTouches,i=a.length,o,k,g,q1;x8(m);for(o=0;o<i;++o)if(k=a[o],g=E2(k,this),c.touch0&&c.touch0[2]===k.identifier)c.touch0[0]=g;else if(c.touch1&&c.touch1[2]===k.identifier)c.touch1[0]=g;if(k=c.that.__zoom,c.touch1){var t=c.touch0[0],W1=c.touch0[1],T1=c.touch1[0],O1=c.touch1[1],L1=(L1=T1[0]-t[0])*L1+(L1=T1[1]-t[1])*L1,U1=(U1=O1[0]-W1[0])*U1+(U1=O1[1]-W1[1])*U1;k=y(k,Math.sqrt(L1/U1)),g=[(t[0]+T1[0])/2,(t[1]+T1[1])/2],q1=[(W1[0]+O1[0])/2,(W1[1]+O1[1])/2]}else if(c.touch0)g=c.touch0[0],q1=c.touch0[1];else return;c.zoom("touch",Z(C(k,g,q1),c.extent,W))}function J1(m,...p){if(!this.__zooming)return;var c=h(this,p).event(m),a=m.changedTouches,i=a.length,o,k;if(hq(m),R)clearTimeout(R);R=setTimeout(function(){R=null},P);for(o=0;o<i;++o)if(k=a[o],c.touch0&&c.touch0[2]===k.identifier)delete c.touch0;else if(c.touch1&&c.touch1[2]===k.identifier)delete c.touch1;if(c.touch1&&!c.touch0)c.touch0=c.touch1,delete c.touch1;if(c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),c.taps===2){if(k=E2(k,this),Math.hypot(A[0]-k[0],A[1]-k[1])<v){var g=L2(this).on("dblclick.zoom");if(g)g.apply(this,arguments)}}}return f.wheelDelta=function(m){return arguments.length?(K=typeof m==="function"?m:yJ(+m),f):K},f.filter=function(m){return arguments.length?(Q=typeof m==="function"?m:yJ(!!m),f):Q},f.touchable=function(m){return arguments.length?(H=typeof m==="function"?m:yJ(!!m),f):H},f.extent=function(m){return arguments.length?(U=typeof m==="function"?m:yJ([[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]]),f):U},f.scaleExtent=function(m){return arguments.length?(Y[0]=+m[0],Y[1]=+m[1],f):[Y[0],Y[1]]},f.translateExtent=function(m){return arguments.length?(W[0][0]=+m[0][0],W[1][0]=+m[1][0],W[0][1]=+m[0][1],W[1][1]=+m[1][1],f):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},f.constrain=function(m){return arguments.length?(Z=m,f):Z},f.duration=function(m){return arguments.length?(L=+m,f):L},f.interpolate=function(m){return arguments.length?(M=m,f):M},f.on=function(){var m=O.on.apply(O,arguments);return m===O?f:m},f.clickDistance=function(m){return arguments.length?(V=(m=+m)*m,f):Math.sqrt(V)},f.tapDistance=function(m){return arguments.length?(v=+m,f):v},f}var n2={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:K}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},L9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],PK=["Enter"," ","Escape"],NK={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:Q,x:U,y:Z})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${Z}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"},u6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(u6||(u6={}));var j3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(j3||(j3={}));var m8;(function(Q){Q.Partial="partial",Q.Full="full"})(m8||(m8={}));var CK={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},r4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(r4||(r4={}));var z9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(z9||(z9={}));var b1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(b1||(b1={}));var jM={[b1.Left]:b1.Right,[b1.Right]:b1.Left,[b1.Top]:b1.Bottom,[b1.Bottom]:b1.Top},fK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),lM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),SK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var uJ=(Q,U=[0,0])=>{let{width:Z,height:K}=i5(Q),H=Q.origin??U,Y=Z*H[0],W=K*H[1];return{x:Q.position.x-Y,y:Q.position.y-W}},vK=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,K=Q.reduce((H,Y)=>{let W=typeof Y==="string",L=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)L=W?U.nodeLookup.get(Y):!SK(Y)?U.nodeLookup.get(Y.id):Y;if(!L)return H;return Z=!0,lq(H,gq(L,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?iq(K):{x:0,y:0,width:0,height:0}},l8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},K=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=lq(Z,gq(H)),K=!0}),K?iq(Z):{x:0,y:0,width:0,height:0}},pq=(Q,U,[Z,K,H]=[0,0,1],Y=!1,W=!1)=>{let L=(U.x-Z)/H,M=(U.y-K)/H,O=U.width/H,T=U.height/H,A=[];for(let R of Q.values()){let{measured:P,selectable:N=!0,hidden:V=!1}=R;if(W&&!N||V)continue;let v=P.width??R.width??R.initialWidth??0,f=P.height??R.height??R.initialHeight??0,{x:y,y:C}=R.internals.positionAbsolute,j=sM(L,M,O,T,y,C,v,f),u=v*f,h=Y&&j>0;if(!R.internals.handleBounds||h||j>=u||R.dragging)A.push(R)}return A},iM=(Q,U)=>{let Z=new Set;return Q.forEach((K)=>{Z.add(K.id)}),U.filter((K)=>Z.has(K.source)||Z.has(K.target))};function xf(Q,U){let Z=new Map,K=U?.nodes?new Set(U.nodes.map((H)=>H.id)):null;return Q.forEach((H)=>{let Y;if(U?.includeHiddenNodes){let{width:W,height:L}=i5(H);Y=W>0&&L>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!K||K.has(H.id)))Z.set(H.id,H)}),Z}async function dM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let L=xf(Q,W),M=l8(L),O=EJ(M,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await K.setViewport(O,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function jK({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:K=[0,0],nodeExtent:H,onError:Y}){let W=Z.get(Q),L=W.parentId?Z.get(W.parentId):void 0,{x:M,y:O}=L?L.internals.positionAbsolute:{x:0,y:0},T=W.origin??K,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!L)Y?.("005",n2.error005());else{let{width:P,height:N}=i5(L);if(P&&N)A=[[M,O],[M+P,O+N]]}else if(L&&c8(W.extent))A=[[W.extent[0][0]+M,W.extent[0][1]+O],[W.extent[1][0]+M,W.extent[1][1]+O]];let R=c8(A)?g8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",n2.error015());return{position:{x:R.x-M+(W.measured.width??0)*T[0],y:R.y-O+(W.measured.height??0)*T[1]},positionAbsolute:R}}async function rM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((R)=>R.id)),W=[];for(let R of Z){if(R.deletable===!1)continue;let P=Y.has(R.id),N=!P&&R.parentId&&W.find((V)=>V.id===R.parentId);if(P||N)W.push(R)}let L=new Set(U.map((R)=>R.id)),M=K.filter((R)=>R.deletable!==!1),T=iM(W,M);for(let R of M)if(L.has(R.id)&&!T.find((N)=>N.id===R.id))T.push(R);if(!H)return{edges:T,nodes:W};let A=await H({nodes:W,edges:T});if(typeof A==="boolean")return A?{edges:T,nodes:W}:{edges:[],nodes:[]};return A}var W9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),g8=(Q={x:0,y:0},U,Z)=>({x:W9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:W9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function aM(Q,U,Z){let{width:K,height:H}=i5(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return g8(Q,[[Y,W],[Y+K,W+H]],U)}var yM=(Q,U,Z)=>{if(Q<U)return W9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-W9(Math.abs(Q-Z),1,U)/U;return 0},cq=(Q,U,Z=15,K=40)=>{let H=yM(Q.x,K,U.width-K)*Z,Y=yM(Q.y,K,U.height-K)*Z;return[H,Y]},lq=(Q,U)=>({x:Math.min(Q.x,U.x),y:Math.min(Q.y,U.y),x2:Math.max(Q.x2,U.x2),y2:Math.max(Q.y2,U.y2)}),wK=({x:Q,y:U,width:Z,height:K})=>({x:Q,y:U,x2:Q+Z,y2:U+K}),iq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),B9=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:uJ(Q,U);return{x:Z,y:K,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},gq=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:uJ(Q,U);return{x:Z,y:K,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},yK=(Q,U)=>iq(lq(wK(Q),wK(U))),sM=(Q,U,Z,K,H,Y,W,L)=>{let M=Math.max(0,Math.min(Q+Z,H+W)-Math.max(Q,H)),O=Math.max(0,Math.min(U+K,Y+L)-Math.max(U,Y));return Math.ceil(M*O)},bJ=(Q,U)=>sM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),VK=(Q)=>c5(Q.width)&&c5(Q.height)&&c5(Q.x)&&c5(Q.y),c5=(Q)=>!isNaN(Q)&&isFinite(Q),kK=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},A9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},M9=({x:Q,y:U},[Z,K,H],Y=!1,W=[1,1])=>{let L={x:(Q-Z)/H,y:(U-K)/H};return Y?A9(L,W):L},p8=({x:Q,y:U},[Z,K,H])=>{return{x:Q*H+Z,y:U*H+K}};function Y9(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(Z)}if(typeof Q==="string"&&Q.endsWith("%")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(U*Z*0.01)}return console.error(`The padding value "${Q}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function mf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=Y9(Q,Z),H=Y9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=Y9(Q.top??Q.y??0,Z),H=Y9(Q.bottom??Q.y??0,Z),Y=Y9(Q.left??Q.x??0,U),W=Y9(Q.right??Q.x??0,U);return{top:K,right:W,bottom:H,left:Y,x:Y+W,y:K+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function gf(Q,U,Z,K,H,Y){let{x:W,y:L}=p8(Q,[U,Z,K]),{x:M,y:O}=p8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),T=H-M,A=Y-O;return{left:Math.floor(W),top:Math.floor(L),right:Math.floor(T),bottom:Math.floor(A)}}var EJ=(Q,U,Z,K,H,Y)=>{let W=mf(Y,U,Z),L=(U-W.x)/Q.width,M=(Z-W.y)/Q.height,O=Math.min(L,M),T=W9(O,K,H),A=Q.x+Q.width/2,R=Q.y+Q.height/2,P=U/2-A*T,N=Z/2-R*T,V=gf(Q,P,N,T,U,Z),v={left:Math.min(V.left-W.left,0),top:Math.min(V.top-W.top,0),right:Math.min(V.right-W.right,0),bottom:Math.min(V.bottom-W.bottom,0)};return{x:P-v.left+v.right,y:N-v.top+v.bottom,zoom:T}},T9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function c8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function i5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function DK(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function uK(Q,U={width:0,height:0},Z,K,H){let Y={...Q},W=K.get(Z);if(W){let L=W.origin||H;Y.x+=W.internals.positionAbsolute.x-(U.width??0)*L[0],Y.y+=W.internals.positionAbsolute.y-(U.height??0)*L[1]}return Y}function bK(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function tM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function oM(Q){return{...NK,...Q||{}}}function pf(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let K=U.getBoundingClientRect();if(K.width===0&&K.height===0)return!0;let H=document.querySelector(`.${Q}-flow__attribution`);if(!H||!H.isConnected)return!1;let Y=getComputedStyle(H);if(Y.display==="none")return!1;if(Y.visibility==="hidden"||Y.visibility==="collapse")return!1;if(Y.opacity==="0")return!1;let W=H.getBoundingClientRect();if(W.width===0&&W.height===0)return!1;return!0}var VM=!1;function nM(Q){if(VM)return;VM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!pf(Q))console.warn(`${U}: It seems like you are hiding the attribution. Please only do this when you are subscribed to ${U} Pro: https://${Q}flow.dev/remove-attr
241
- %cYou can ignore this warning if you are subscribed.`,"font-style: italic;")},1000)}function EK(Q){return Q===null?null:Q?"valid":"invalid"}function DJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:H}){let{x:Y,y:W}=l5(Q),L=M9({x:Y-(H?.left??0),y:W-(H?.top??0)},K),{x:M,y:O}=Z?A9(L,U):L;return{xSnapped:M,ySnapped:O,...L}}var dq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),hK=(Q)=>Q?.getRootNode?.()||window?.document,cf=["INPUT","SELECT","TEXTAREA"];function xK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return cf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var mK=(Q)=>("clientX"in Q),l5=(Q,U)=>{let Z=mK(Q),K=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:H-(U?.top??0)}},kM=(Q,U,Z,K,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((W)=>{let L=W.getBoundingClientRect();return{id:W.getAttribute("data-handleid"),type:Q,nodeId:H,position:W.getAttribute("data-handlepos"),x:(L.left-Z.left)/K,y:(L.top-Z.top)/K,...dq(W)}})};function rq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,sourceControlX:H,sourceControlY:Y,targetControlX:W,targetControlY:L}){let M=Q*0.125+H*0.375+W*0.375+Z*0.125,O=U*0.125+Y*0.375+L*0.375+K*0.125,T=Math.abs(M-Q),A=Math.abs(O-U);return[M,O,T,A]}function xq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function DM({pos:Q,x1:U,y1:Z,x2:K,y2:H,c:Y}){switch(Q){case b1.Left:return[U-xq(U-K,Y),Z];case b1.Right:return[U+xq(K-U,Y),Z];case b1.Top:return[U,Z-xq(Z-H,Y)];case b1.Bottom:return[U,Z+xq(H-Z,Y)]}}function aq({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top,curvature:W=0.25}){let[L,M]=DM({pos:Z,x1:Q,y1:U,x2:K,y2:H,c:W}),[O,T]=DM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:W}),[A,R,P,N]=rq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:L,sourceControlY:M,targetControlX:O,targetControlY:T});return[`M${Q},${U} C${L},${M} ${O},${T} ${K},${H}`,A,R,P,N]}function gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,W=Math.abs(K-U)/2,L=K<U?K+W:K-W;return[Y,L,H,W]}function eM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:K=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return K;let W=H&&Z?K+1000:K,L=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return W+L}function _T({sourceNode:Q,targetNode:U,width:Z,height:K,transform:H}){let Y=lq(gq(Q),gq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let W={x:-H[0]/H[2],y:-H[1]/H[2],width:Z/H[2],height:K/H[2]};return bJ(W,iq(Y))>0}var lf=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,df=(Q,U)=>{return U.some((Z)=>Z.source===Q.source&&Z.target===Q.target&&(Z.sourceHandle===Q.sourceHandle||!Z.sourceHandle&&!Q.sourceHandle)&&(Z.targetHandle===Q.targetHandle||!Z.targetHandle&&!Q.targetHandle))},JT=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",n2.error006()),U;let K=Z.getEdgeId||lf,H;if(fK(Q))H={...Q};else H={...Q,id:K(Q)};if(df(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function sq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[H,Y,W,L]=gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,H,Y,W,L]}var uM={[b1.Left]:{x:-1,y:0},[b1.Right]:{x:1,y:0},[b1.Top]:{x:0,y:-1},[b1.Bottom]:{x:0,y:1}},rf=({source:Q,sourcePosition:U=b1.Bottom,target:Z})=>{if(U===b1.Left||U===b1.Right)return Q.x<Z.x?{x:1,y:0}:{x:-1,y:0};return Q.y<Z.y?{x:0,y:1}:{x:0,y:-1}},bM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function af({source:Q,sourcePosition:U=b1.Bottom,target:Z,targetPosition:K=b1.Top,center:H,offset:Y,stepPosition:W}){let L=uM[U],M=uM[K],O={x:Q.x+L.x*Y,y:Q.y+L.y*Y},T={x:Z.x+M.x*Y,y:Z.y+M.y*Y},A=rf({source:O,sourcePosition:U,target:T}),R=A.x!==0?"x":"y",P=A[R],N=[],V,v,f={x:0,y:0},y={x:0,y:0},[,,C,j]=gK({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(L[R]*M[R]===-1){if(R==="x")V=H.x??O.x+(T.x-O.x)*W,v=H.y??(O.y+T.y)/2;else V=H.x??(O.x+T.x)/2,v=H.y??O.y+(T.y-O.y)*W;let b=[{x:V,y:O.y},{x:V,y:T.y}],D=[{x:O.x,y:v},{x:T.x,y:v}];if(L[R]===P)N=R==="x"?b:D;else N=R==="x"?D:b}else{let b=[{x:O.x,y:T.y}],D=[{x:T.x,y:O.y}];if(R==="x")N=L.x===P?D:b;else N=L.y===P?b:D;if(U===K){let m=Math.abs(Q[R]-Z[R]);if(m<=Y){let p=Math.min(Y-1,Y-m);if(L[R]===P)f[R]=(O[R]>Q[R]?-1:1)*p;else y[R]=(T[R]>Z[R]?-1:1)*p}}if(U!==K){let m=R==="x"?"y":"x",p=L[R]===M[m],c=O[m]>T[m],a=O[m]<T[m];if(L[R]===1&&(!p&&c||p&&a)||L[R]!==1&&(!p&&a||p&&c))N=R==="x"?b:D}let x={x:O.x+f.x,y:O.y+f.y},$1={x:T.x+y.x,y:T.y+y.y},Q1=Math.max(Math.abs(x.x-N[0].x),Math.abs($1.x-N[0].x)),J1=Math.max(Math.abs(x.y-N[0].y),Math.abs($1.y-N[0].y));if(Q1>=J1)V=(x.x+$1.x)/2,v=N[0].y;else V=N[0].x,v=(x.y+$1.y)/2}let u={x:O.x+f.x,y:O.y+f.y},h={x:T.x+y.x,y:T.y+y.y};return[[Q,...u.x!==N[0].x||u.y!==N[0].y?[u]:[],...N,...h.x!==N[N.length-1].x||h.y!==N[N.length-1].y?[h]:[],Z],V,v,C,j]}function sf(Q,U,Z,K){let H=Math.min(bM(Q,U)/2,bM(U,Z)/2,K),{x:Y,y:W}=U;if(Q.x===Y&&Y===Z.x||Q.y===W&&W===Z.y)return`L${Y} ${W}`;if(Q.y===W){let O=Q.x<Z.x?-1:1,T=Q.y<Z.y?1:-1;return`L ${Y+H*O},${W}Q ${Y},${W} ${Y},${W+H*T}`}let L=Q.x<Z.x?1:-1,M=Q.y<Z.y?-1:1;return`L ${Y},${W+H*M}Q ${Y},${W} ${Y+H*L},${W}`}function hJ({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top,borderRadius:W=5,centerX:L,centerY:M,offset:O=20,stepPosition:T=0.5}){let[A,R,P,N,V]=af({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:H},targetPosition:Y,center:{x:L,y:M},offset:O,stepPosition:T}),v=`M${A[0].x} ${A[0].y}`;for(let f=1;f<A.length-1;f++)v+=sf(A[f-1],A[f],A[f+1],W);return v+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[v,R,P,N,V]}function EM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function $T(Q){let{sourceNode:U,targetNode:Z}=Q;if(!EM(U)||!EM(Z))return null;let K=U.internals.handleBounds||hM(U.handles),H=Z.internals.handleBounds||hM(Z.handles),Y=xM(K?.source??[],Q.sourceHandle),W=xM(Q.connectionMode===u6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",n2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let L=Y?.position||b1.Bottom,M=W?.position||b1.Top,O=b6(U,Y,L),T=b6(Z,W,M);return{sourceX:O.x,sourceY:O.y,targetX:T.x,targetY:T.y,sourcePosition:L,targetPosition:M}}function hM(Q){if(!Q)return null;let U=[],Z=[];for(let K of Q)if(K.width=K.width??1,K.height=K.height??1,K.type==="source")U.push(K);else if(K.type==="target")Z.push(K);return{source:U,target:Z}}function b6(Q,U,Z=b1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:L}=U??i5(Q);if(K)return{x:H+W/2,y:Y+L/2};switch(U?.position??Z){case b1.Top:return{x:H+W/2,y:Y};case b1.Right:return{x:H+W,y:Y+L/2};case b1.Bottom:return{x:H+W/2,y:Y+L};case b1.Left:return{x:H,y:Y+L/2}}}function xM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function tq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((K)=>`${K}=${Q[K]}`).join("&")}`}function QT(Q,{id:U,defaultColor:Z,defaultMarkerStart:K,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((W,L)=>{return[L.markerStart||K,L.markerEnd||H].forEach((M)=>{if(M&&typeof M==="object"){let O=tq(M,U);if(!Y.has(O))W.push({id:O,color:M.color||Z,...M}),Y.add(O)}}),W},[]).sort((W,L)=>W.id.localeCompare(L.id))}function qT(Q,U,Z,K,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let W=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-K],L=[-100*Y,-100];switch(Z){case b1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[0,-100*Y];break;case b1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+K,L[1]=0;break;case b1.Left:W=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${L[0]}%, ${L[1]}%)`}var UT=1000,tf=10,pK={nodeOrigin:[0,0],nodeExtent:L9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},of={...pK,checkEquality:!0};function cK(Q,U){let Z={...Q};for(let K in U)if(U[K]!==void 0)Z[K]=U[K];return Z}function GT(Q,U,Z){let K=cK(pK,Z);for(let H of Q.values())if(H.parentId)iK(H,Q,U,K);else{let Y=uJ(H,K.nodeOrigin),W=c8(H.extent)?H.extent:K.nodeExtent,L=g8(Y,W,i5(H));H.internals.positionAbsolute=L}}function nf(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],K=[];for(let H of Q.handles){let Y={id:H.id,width:H.width??1,height:H.height??1,nodeId:Q.id,x:H.x,y:H.y,position:H.position,type:H.type};if(H.type==="source")Z.push(Y);else if(H.type==="target")K.push(Y)}return{source:Z,target:K}}function lK(Q){return Q==="manual"}function oq(Q,U,Z,K={}){let H=cK(of,K),Y={i:0},W=new Map(U),L=H?.elevateNodesOnSelect&&!lK(H.zIndexMode)?UT:0,M=Q.length>0,O=!1;U.clear(),Z.clear();for(let T of Q){let A=W.get(T.id);if(H.checkEquality&&T===A?.internals.userNode)U.set(T.id,A);else{let R=uJ(T,H.nodeOrigin),P=c8(T.extent)?T.extent:H.nodeExtent,N=g8(R,P,i5(T));A={...H.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:N,handleBounds:nf(T,A),z:ZT(T,L,H.zIndexMode),userNode:T}},U.set(T.id,A)}if((A.measured===void 0||A.measured.width===void 0||A.measured.height===void 0)&&!A.hidden)M=!1;if(T.parentId)iK(A,U,Z,K,Y);O||=T.selected??!1}return{nodesInitialized:M,hasSelectedNodes:O}}function ef(Q,U){if(!Q.parentId)return;let Z=U.get(Q.parentId);if(Z)Z.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function iK(Q,U,Z,K,H){let{elevateNodesOnSelect:Y,nodeOrigin:W,nodeExtent:L,zIndexMode:M}=cK(pK,K),O=Q.parentId,T=U.get(O);if(!T){console.warn(`Parent node ${O} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(ef(Q,Z),H&&!T.parentId&&T.internals.rootParentIndex===void 0&&M==="auto")T.internals.rootParentIndex=++H.i,T.internals.z=T.internals.z+H.i*tf;if(H&&T.internals.rootParentIndex!==void 0)H.i=T.internals.rootParentIndex;let A=Y&&!lK(M)?UT:0,{x:R,y:P,z:N}=_S(Q,T,W,L,A,M),{positionAbsolute:V}=Q.internals,v=R!==V.x||P!==V.y;if(v||N!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:v?{x:R,y:P}:V,z:N}})}function ZT(Q,U,Z){let K=c5(Q.zIndex)?Q.zIndex:0;if(lK(Z))return K;return K+(Q.selected?U:0)}function _S(Q,U,Z,K,H,Y){let{x:W,y:L}=U.internals.positionAbsolute,M=i5(Q),O=uJ(Q,Z),T=c8(Q.extent)?g8(O,Q.extent,M):O,A=g8({x:W+T.x,y:L+T.y},K,M);if(Q.extent==="parent")A=aM(A,M,U);let R=ZT(Q,H,Y),P=U.internals.z??0;return{x:A.x,y:A.y,z:P>=R?P+1:R}}function nq(Q,U,Z,K=[0,0]){let H=[],Y=new Map;for(let W of Q){let L=U.get(W.parentId);if(!L)continue;let M=Y.get(W.parentId)?.expandedRect??B9(L),O=yK(M,W.rect);Y.set(W.parentId,{expandedRect:O,parent:L})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:L},M)=>{let O=L.internals.positionAbsolute,T=i5(L),A=L.origin??K,R=W.x<O.x?Math.round(Math.abs(O.x-W.x)):0,P=W.y<O.y?Math.round(Math.abs(O.y-W.y)):0,N=Math.max(T.width,Math.round(W.width)),V=Math.max(T.height,Math.round(W.height)),v=(N-T.width)*A[0],f=(V-T.height)*A[1];if(R>0||P>0||v||f)H.push({id:M,type:"position",position:{x:L.position.x-R+v,y:L.position.y-P+f}}),Z.get(M)?.forEach((y)=>{if(!Q.some((C)=>C.id===y.id))H.push({id:y.id,type:"position",position:{x:y.position.x+R,y:y.position.y+P}})});if(T.width<W.width||T.height<W.height||R||P)H.push({id:M,type:"dimensions",setAttributes:!0,dimensions:{width:N+(R?A[0]*R-v:0),height:V+(P?A[1]*P-f:0)}})});return H}function FT(Q,U,Z,K,H,Y,W){let L=K?.querySelector(".xyflow__viewport"),M=!1;if(!L)return{changes:[],updatedInternals:M};let O=[],T=window.getComputedStyle(L),{m22:A}=new window.DOMMatrixReadOnly(T.transform),R=[];for(let P of Q.values()){let N=U.get(P.id);if(!N)continue;if(N.hidden){U.set(N.id,{...N,internals:{...N.internals,handleBounds:void 0}}),M=!0;continue}let V=dq(P.nodeElement),v=N.measured.width!==V.width||N.measured.height!==V.height;if(!!(V.width&&V.height&&(v||!N.internals.handleBounds||P.force))){let y=P.nodeElement.getBoundingClientRect(),C=c8(N.extent)?N.extent:Y,{positionAbsolute:j}=N.internals;if(N.parentId&&N.extent==="parent"){let h=U.get(N.parentId);if(h)j=aM(j,V,h)}else if(C)j=g8(j,C,V);let u={...N,measured:V,internals:{...N.internals,positionAbsolute:j,handleBounds:{source:kM("source",P.nodeElement,y,A,N.id),target:kM("target",P.nodeElement,y,A,N.id)}}};if(U.set(N.id,u),N.parentId)iK(u,U,Z,{nodeOrigin:H,zIndexMode:W});if(M=!0,v){if(O.push({id:N.id,type:"dimensions",dimensions:V}),N.expandParent&&N.parentId)R.push({id:N.id,parentId:N.parentId,rect:B9(u,H)})}}}if(R.length>0){let P=nq(R,U,Z,H);O.push(...P)}return{changes:O,updatedInternals:M}}async function XT({delta:Q,panZoom:U,transform:Z,translateExtent:K,width:H,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let W=await U.setViewportConstrained({x:Z[0]+Q.x,y:Z[1]+Q.y,zoom:Z[2]},[[0,0],[H,Y]],K);return!!W&&(W.x!==Z[0]||W.y!==Z[1]||W.k!==Z[2])}function mM(Q,U,Z,K,H,Y){let W=H,L=K.get(W)||new Map;K.set(W,L.set(Z,U)),W=`${H}-${Q}`;let M=K.get(W)||new Map;if(K.set(W,M.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let O=K.get(W)||new Map;K.set(W,O.set(Z,U))}}function dK(Q,U,Z){Q.clear(),U.clear();for(let K of Z){let{source:H,target:Y,sourceHandle:W=null,targetHandle:L=null}=K,M={edgeId:K.id,source:H,target:Y,sourceHandle:W,targetHandle:L},O=`${H}-${W}--${Y}-${L}`,T=`${Y}-${L}--${H}-${W}`;mM("source",M,T,Q,H,W),mM("target",M,O,Q,Y,L),U.set(K.id,K)}}function KT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return KT(Z,U)}function gM(Q,U,Z){let K=Q;do{if(K?.matches?.(U))return!0;if(K===Z)return!1;K=K?.parentElement}while(K);return!1}function JS(Q,U,Z,K){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===K)&&(!W.parentId||!KT(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let L=Q.get(Y);if(L)H.set(Y,{id:Y,position:L.position||{x:0,y:0},distance:{x:Z.x-L.internals.positionAbsolute.x,y:Z.y-L.internals.positionAbsolute.y},extent:L.extent,parentId:L.parentId,origin:L.origin,expandParent:L.expandParent,internals:{positionAbsolute:L.internals.positionAbsolute||{x:0,y:0}},measured:{width:L.measured.width??0,height:L.measured.height??0}})}return H}function RK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!0}){let H=[];for(let[W,L]of U){let M=Z.get(W)?.internals.userNode;if(M)H.push({...M,position:L.position,dragging:K})}if(!Q)return[H[0],H];let Y=Z.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:K},H]}function $S({dragItems:Q,snapGrid:U,x:Z,y:K}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:K-H.distance.y},W=A9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function HT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,onDragStop:H}){let Y={x:null,y:null},W=0,L=new Map,M=!1,O={x:0,y:0},T=null,A=!1,R=null,P=!1,N=!1,V=null;function v({noDragClassName:y,handleSelector:C,domNode:j,isSelectable:u,nodeId:h,nodeClickDistance:E=0}){R=L2(j);function b({x:Q1,y:J1}){let{nodeLookup:m,nodeExtent:p,snapGrid:c,snapToGrid:a,nodeOrigin:i,onNodeDrag:o,onSelectionDrag:k,onError:g,updateNodePositions:q1}=U();Y={x:Q1,y:J1};let t=!1,W1=L.size>1,T1=W1&&p?wK(l8(L)):null,O1=W1&&a?$S({dragItems:L,snapGrid:c,x:Q1,y:J1}):null;for(let[L1,U1]of L){if(!m.has(L1))continue;let P1={x:Q1-U1.distance.x,y:J1-U1.distance.y};if(a)P1=O1?{x:Math.round(P1.x+O1.x),y:Math.round(P1.y+O1.y)}:A9(P1,c);let v1=null;if(W1&&p&&!U1.extent&&T1){let{positionAbsolute:D1}=U1.internals,g1=D1.x-T1.x+p[0][0],h1=D1.x+U1.measured.width-T1.x2+p[1][0],M1=D1.y-T1.y+p[0][1],r1=D1.y+U1.measured.height-T1.y2+p[1][1];v1=[[g1,M1],[h1,r1]]}let{position:A1,positionAbsolute:k1}=jK({nodeId:L1,nextPosition:P1,nodeLookup:m,nodeExtent:v1?v1:p,nodeOrigin:i,onError:g});t=t||U1.position.x!==A1.x||U1.position.y!==A1.y,U1.position=A1,U1.internals.positionAbsolute=k1}if(N=N||t,!t)return;if(q1(L,!0),V&&(K||o||!h&&k)){let[L1,U1]=RK({nodeId:h,dragItems:L,nodeLookup:m});if(K?.(V,L,L1,U1),o?.(V,L1,U1),!h)k?.(V,U1)}}async function D(){if(!T)return;let{transform:Q1,panBy:J1,autoPanSpeed:m,autoPanOnNodeDrag:p}=U();if(!p){M=!1,cancelAnimationFrame(W);return}let[c,a]=cq(O,T,m);if(c!==0||a!==0){if(Y.x=(Y.x??0)-c/Q1[2],Y.y=(Y.y??0)-a/Q1[2],await J1({x:c,y:a}))b(Y)}W=requestAnimationFrame(D)}function x(Q1){let{nodeLookup:J1,multiSelectionActive:m,nodesDraggable:p,transform:c,snapGrid:a,snapToGrid:i,selectNodesOnDrag:o,onNodeDragStart:k,onSelectionDragStart:g,unselectNodesAndEdges:q1}=U();if(A=!0,(!o||!u)&&!m&&h){if(!J1.get(h)?.selected)q1()}if(u&&o&&h)Q?.(h);let t=DJ(Q1.sourceEvent,{transform:c,snapGrid:a,snapToGrid:i,containerBounds:T});if(Y=t,L=JS(J1,p,t,h),L.size>0&&(Z||k||!h&&g)){let[W1,T1]=RK({nodeId:h,dragItems:L,nodeLookup:J1});if(Z?.(Q1.sourceEvent,L,W1,T1),k?.(Q1.sourceEvent,W1,T1),!h)g?.(Q1.sourceEvent,T1)}}let $1=LJ().clickDistance(E).on("start",(Q1)=>{let{domNode:J1,nodeDragThreshold:m,transform:p,snapGrid:c,snapToGrid:a}=U();if(T=J1?.getBoundingClientRect()||null,P=!1,N=!1,V=Q1.sourceEvent,m===0)x(Q1);Y=DJ(Q1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:a,containerBounds:T}),O=l5(Q1.sourceEvent,T)}).on("drag",(Q1)=>{let{autoPanOnNodeDrag:J1,transform:m,snapGrid:p,snapToGrid:c,nodeDragThreshold:a,nodeLookup:i}=U(),o=DJ(Q1.sourceEvent,{transform:m,snapGrid:p,snapToGrid:c,containerBounds:T});if(V=Q1.sourceEvent,Q1.sourceEvent.type==="touchmove"&&Q1.sourceEvent.touches.length>1||h&&!i.has(h))P=!0;if(P)return;if(!M&&J1&&A)M=!0,D();if(!A){let k=l5(Q1.sourceEvent,T),g=k.x-O.x,q1=k.y-O.y;if(Math.sqrt(g*g+q1*q1)>a)x(Q1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&L&&A)O=l5(Q1.sourceEvent,T),b(o)}).on("end",(Q1)=>{if(!A||P){if(P&&L.size>0)U().updateNodePositions(L,!1);return}if(M=!1,A=!1,cancelAnimationFrame(W),L.size>0){let{nodeLookup:J1,updateNodePositions:m,onNodeDragStop:p,onSelectionDragStop:c}=U();if(N)m(L,!1),N=!1;if(H||p||!h&&c){let[a,i]=RK({nodeId:h,dragItems:L,nodeLookup:J1,dragging:!1});if(H?.(Q1.sourceEvent,L,a,i),p?.(Q1.sourceEvent,a,i),!h)c?.(Q1.sourceEvent,i)}}}).filter((Q1)=>{let J1=Q1.target;return!Q1.button&&(!y||!gM(J1,`.${y}`,j))&&(!C||gM(J1,C,j))});R.call($1)}function f(){R?.on(".drag",null)}return{update:v,destroy:f}}function QS(Q,U,Z){let K=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(bJ(H,B9(Y))>0)K.push(Y);return K}var qS=250;function US(Q,U,Z,K){let H=[],Y=1/0,W=QS(Q,Z,U+qS);for(let L of W){let M=[...L.internals.handleBounds?.source??[],...L.internals.handleBounds?.target??[]];for(let O of M){if(K.nodeId===O.nodeId&&K.type===O.type&&K.id===O.id)continue;let{x:T,y:A}=b6(L,O,O.position,!0),R=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(A-Q.y,2));if(R>U)continue;if(R<Y)H=[{...O,x:T,y:A}],Y=R;else if(R===Y)H.push({...O,x:T,y:A})}}if(!H.length)return null;if(H.length>1){let L=K.type==="source"?"target":"source";return H.find((M)=>M.type===L)??H[0]}return H[0]}function YT(Q,U,Z,K,H,Y=!1){let W=K.get(Q);if(!W)return null;let L=H==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],M=(Z?L?.find((O)=>O.id===Z):L?.[0])??null;return M&&Y?{...M,...b6(W,M,M.position,!0)}:M}function zT(Q,U){if(Q)return Q;else if(U?.classList.contains("target"))return"target";else if(U?.classList.contains("source"))return"source";return null}function GS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var WT=()=>!0;function ZS(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:L,nodeLookup:M,lib:O,autoPanOnConnect:T,flowId:A,panBy:R,cancelConnection:P,onConnectStart:N,onConnect:V,onConnectEnd:v,isValidConnection:f=WT,onReconnectEnd:y,updateConnection:C,getTransform:j,getFromHandle:u,autoPanSpeed:h,dragThreshold:E=1,handleDomNode:b}){let D=hK(Q.target),x=0,$1,{x:Q1,y:J1}=l5(Q),m=zT(Y,b),p=L?.getBoundingClientRect(),c=!1;if(!p||!m)return;let a=YT(H,m,K,M,U);if(!a)return;let i=l5(Q,p),o=!1,k=null,g=!1,q1=null;function t(){if(!T||!p)return;let[A1,k1]=cq(i,p,h);R({x:A1,y:k1}),x=requestAnimationFrame(t)}let W1={...a,nodeId:H,type:m,position:a.position},T1=M.get(H),L1={inProgress:!0,isValid:null,from:b6(T1,W1,b1.Left,!0),fromHandle:W1,fromPosition:W1.position,fromNode:T1,to:i,toHandle:null,toPosition:jM[W1.position],toNode:null,pointer:i};function U1(){c=!0,C(L1),N?.(Q,{nodeId:H,handleId:K,handleType:m})}if(E===0)U1();function P1(A1){if(!c){let{x:r1,y:u1}=l5(A1),D0=r1-Q1,o1=u1-J1;if(!(D0*D0+o1*o1>E*E))return;U1()}if(!u()||!W1){v1(A1);return}let k1=j();if(i=l5(A1,p),$1=US(M9(i,k1,!1,[1,1]),Z,M,W1),!o)t(),o=!0;let D1=LT(A1,{handle:$1,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:W?"target":"source",isValidConnection:f,doc:D,lib:O,flowId:A,nodeLookup:M});q1=D1.handleDomNode,k=D1.connection,g=GS(!!$1,D1.isValid);let g1=M.get(H),h1=g1?b6(g1,W1,b1.Left,!0):L1.from,M1={...L1,from:h1,isValid:g,to:D1.toHandle&&g?p8({x:D1.toHandle.x,y:D1.toHandle.y},k1):i,toHandle:D1.toHandle,toPosition:g&&D1.toHandle?D1.toHandle.position:jM[W1.position],toNode:D1.toHandle?M.get(D1.toHandle.nodeId):null,pointer:i};C(M1),L1=M1}function v1(A1){if("touches"in A1&&A1.touches.length>0)return;if(c){if(($1||q1)&&k&&g)V?.(k);let{inProgress:k1,...D1}=L1,g1={...D1,toPosition:L1.toHandle?L1.toPosition:null};if(v?.(A1,g1),Y)y?.(A1,g1)}P(),cancelAnimationFrame(x),o=!1,g=!1,k=null,q1=null,D.removeEventListener("mousemove",P1),D.removeEventListener("mouseup",v1),D.removeEventListener("touchmove",P1),D.removeEventListener("touchend",v1)}D.addEventListener("mousemove",P1),D.addEventListener("mouseup",v1),D.addEventListener("touchmove",P1),D.addEventListener("touchend",v1)}function LT(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:H,fromType:Y,doc:W,lib:L,flowId:M,isValidConnection:O=WT,nodeLookup:T}){let A=Y==="target",R=U?W.querySelector(`.${L}-flow__handle[data-id="${M}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:P,y:N}=l5(Q),V=W.elementFromPoint(P,N),v=V?.classList.contains(`${L}-flow__handle`)?V:R,f={handleDomNode:v,isValid:!1,connection:null,toHandle:null};if(v){let y=zT(void 0,v),C=v.getAttribute("data-nodeid"),j=v.getAttribute("data-handleid"),u=v.classList.contains("connectable"),h=v.classList.contains("connectableend");if(!C||!y)return f;let E={source:A?C:K,sourceHandle:A?j:H,target:A?K:C,targetHandle:A?H:j};f.connection=E;let D=u&&h&&(Z===u6.Strict?A&&y==="source"||!A&&y==="target":C!==K||j!==H);f.isValid=D&&O(E),f.toHandle=YT(C,y,j,T,Z,!0)}return f}var eq={onPointerDown:ZS,isValid:LT};function BT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let H=L2(Q);function Y({translateExtent:L,width:M,height:O,zoomStep:T=1,pannable:A=!0,zoomable:R=!0,inversePan:P=!1}){let N=(C)=>{if(C.sourceEvent.type!=="wheel"||!U)return;let j=Z(),u=C.sourceEvent.ctrlKey&&T9()?10:1,h=-C.sourceEvent.deltaY*(C.sourceEvent.deltaMode===1?0.05:C.sourceEvent.deltaMode?1:0.002)*T,E=j[2]*Math.pow(2,h*u);U.scaleTo(E)},V=[0,0],v=(C)=>{if(C.sourceEvent.type==="mousedown"||C.sourceEvent.type==="touchstart")V=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY]},f=(C)=>{let j=Z();if(C.sourceEvent.type!=="mousemove"&&C.sourceEvent.type!=="touchmove"||!U)return;let u=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY],h=[u[0]-V[0],u[1]-V[1]];V=u;let E=K()*Math.max(j[2],Math.log(j[2]))*(P?-1:1),b={x:j[0]-h[0]*E,y:j[1]-h[1]*E},D=[[0,0],[M,O]];U.setViewportConstrained({x:b.x,y:b.y,zoom:j[2]},D,L)},y=kJ().on("start",v).on("zoom",A?f:null).on("zoom.wheel",R?N:null);H.call(y,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:E2}}var _U=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),OK=({x:Q,y:U,zoom:Z})=>h8.translate(Q,U).scale(Z),D6=(Q,U)=>Q.target.closest(`.${U}`),AT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),FS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,IK=(Q,U=0,Z=FS,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(Z).on("end",K):Q},MT=(Q)=>{let U=Q.ctrlKey&&T9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function XS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:L,onPanZoom:M,onPanZoomEnd:O}){return(T)=>{if(D6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(T.ctrlKey&&W){let v=E2(T),f=MT(T),y=A*Math.pow(2,f);K.scaleTo(Z,y,v,T);return}let R=T.deltaMode===1?20:1,P=H===j3.Vertical?0:T.deltaX*R,N=H===j3.Horizontal?0:T.deltaY*R;if(!T9()&&T.shiftKey&&H!==j3.Vertical)P=T.deltaY*R,N=0;K.translateBy(Z,-(P/A)*Y,-(N/A)*Y,{internal:!0});let V=_U(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,L?.(T,V);else M?.(T,V);Q.panScrollTimeout=setTimeout(()=>{O?.(T,V),Q.isPanScrolling=!1},150)}}function KS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,H){let Y=K.type==="wheel",W=!U&&Y&&!K.ctrlKey,L=D6(K,Q);if(K.ctrlKey&&Y&&L)K.preventDefault();if(W||L)return null;K.preventDefault(),Z.call(this,K,H)}}function HS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let H=_U(K.transform);if(Q.mouseButton=K.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,K.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(K.sourceEvent,H)}}function YS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&AT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)K([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,_U(Y.transform))}}function zS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&AT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let L=_U(W.transform);Q.prevViewport=L,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,L)},Z?150:0)}}}function WS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:L,noWheelClassName:M,noPanClassName:O,lib:T,connectionInProgress:A}){return(R)=>{let P=U||Z,N=K&&R.ctrlKey,V=R.type==="wheel";if(R.button===1&&R.type==="mousedown"&&(D6(R,`${T}-flow__node`)||D6(R,`${T}-flow__edge`)||D6(R,`${T}-flow__selection`)||D6(R,`${T}-flow__nodesselection`)))return!0;if(!H&&!P&&!Y&&!W&&!K)return!1;if(L)return!1;if(A&&!V)return!1;if(D6(R,M)&&V)return!1;if(D6(R,O)&&(!V||Y&&V&&!U))return!1;if(!K&&R.ctrlKey&&V)return!1;if(!K&&R.type==="touchstart"&&R.touches?.length>1)return R.preventDefault(),!1;if(!P&&!Y&&!N&&V)return!1;if(!H&&(R.type==="mousedown"||R.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(R.button)&&R.type==="mousedown")return!1;let v=Array.isArray(H)&&H.includes(R.button)||!R.button||R.button<=1;return(!R.ctrlKey||V||Q)&&v}}function TT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,viewport:H,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:L,onDraggingChange:M}){let O={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},T=Q.getBoundingClientRect(),A=[[0,0],[T.width,T.height]];(typeof ResizeObserver<"u"?new ResizeObserver((J1)=>{let m=J1[0];if(m)A=[[0,0],[m.contentRect.width,m.contentRect.height]]}):null)?.observe(Q);let P=kJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(K),N=L2(Q).call(P);j({x:H.x,y:H.y,zoom:W9(H.zoom,U,Z)},[[0,0],[T.width,T.height]],K);let V=N.on("wheel.zoom"),v=N.on("dblclick.zoom");P.wheelDelta(MT);async function f(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:b8).transform(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}function y({noWheelClassName:J1,noPanClassName:m,onPaneContextMenu:p,userSelectionActive:c,panOnScroll:a,panOnDrag:i,panOnScrollMode:o,panOnScrollSpeed:k,preventScrolling:g,zoomOnPinch:q1,zoomOnScroll:t,zoomOnDoubleClick:W1,panActivationKeyPressed:T1=!1,zoomActivationKeyPressed:O1,lib:L1,onTransformChange:U1,connectionInProgress:P1,paneClickDistance:v1,selectionOnDrag:A1}){if(c&&!O.isZoomingOrPanning)C();let k1=a&&!O1&&!c;P.clickDistance(A1?1/0:!c5(v1)||v1<0?0:v1);let D1=k1?XS({zoomPanValues:O,noWheelClassName:J1,d3Selection:N,d3Zoom:P,panOnScrollMode:o,panOnScrollSpeed:k,zoomOnPinch:q1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:L}):KS({noWheelClassName:J1,preventScrolling:g,d3ZoomHandler:V});N.on("wheel.zoom",D1,{passive:!1});let g1=HS({zoomPanValues:O,onDraggingChange:M,onPanZoomStart:W});P.on("start",g1);let h1=YS({zoomPanValues:O,panOnDrag:i,onPaneContextMenu:!!p,onPanZoom:Y,onTransformChange:U1});P.on("zoom",h1);let M1=zS({zoomPanValues:O,panOnDrag:i,panOnScroll:a,onPaneContextMenu:p,onPanZoomEnd:L,onDraggingChange:M});P.on("end",M1);let r1=WS({panActivationKeyPressed:T1,zoomActivationKeyPressed:O1,panOnDrag:i,zoomOnScroll:t,panOnScroll:a,zoomOnDoubleClick:W1,zoomOnPinch:q1,userSelectionActive:c,noPanClassName:m,noWheelClassName:J1,lib:L1,connectionInProgress:P1});if(P.filter(r1),W1)N.on("dblclick.zoom",v);else N.on("dblclick.zoom",null)}function C(){P.on("zoom",null)}async function j(J1,m,p){let c=OK(J1),a=P?.constrain()(c,m,p);if(a)await f(a);return a}async function u(J1,m){let p=OK(J1);return await f(p,m),p}function h(J1){if(N){let m=OK(J1),p=N.property("__zoom");if(p.k!==J1.zoom||p.x!==J1.x||p.y!==J1.y)P?.transform(N,m,null,{sync:!0})}}function E(){let J1=N?VJ(N.node()):{x:0,y:0,k:1};return{x:J1.x,y:J1.y,zoom:J1.k}}async function b(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:b8).scaleTo(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}async function D(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:b8).scaleBy(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}function x(J1){P?.scaleExtent(J1)}function $1(J1){P?.translateExtent(J1)}function Q1(J1){let m=!c5(J1)||J1<0?0:J1;P?.clickDistance(m)}return{update:y,destroy:C,setViewport:u,setViewportConstrained:j,getViewport:E,scaleTo:b,scaleBy:D,setScaleExtent:x,setTranslateExtent:$1,syncViewport:h,setClickDistance:Q1}}var y3;(function(Q){Q.Line="line",Q.Handle="handle"})(y3||(y3={}));var RT=["top-left","top-right","bottom-left","bottom-right"],OT=["top","right","bottom","left"];function LS({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:H,affectsY:Y}){let W=Q-U,L=Z-K,M=[W>0?1:W<0?-1:0,L>0?1:L<0?-1:0];if(W&&H)M[0]=M[0]*-1;if(L&&Y)M[1]=M[1]*-1;return M}function pM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:K,affectsY:H}}function V6(Q,U){return Math.max(0,U-Q)}function k6(Q,U){return Math.max(0,Q-U)}function mq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function cM(Q,U){return Q?!U:U}function BS(Q,U,Z,K,H,Y,W,L){let{affectsX:M,affectsY:O}=U,{isHorizontal:T,isVertical:A}=U,R=T&&A,{xSnapped:P,ySnapped:N}=Z,{minWidth:V,maxWidth:v,minHeight:f,maxHeight:y}=K,{x:C,y:j,width:u,height:h,aspectRatio:E}=Q,b=Math.floor(T?P-Q.pointerX:0),D=Math.floor(A?N-Q.pointerY:0),x=u+(M?-b:b),$1=h+(O?-D:D),Q1=-Y[0]*u,J1=-Y[1]*h,m=mq(x,V,v),p=mq($1,f,y);if(W){let i=0,o=0;if(M&&b<0)i=V6(C+b+Q1,W[0][0]);else if(!M&&b>0)i=k6(C+x+Q1,W[1][0]);if(O&&D<0)o=V6(j+D+J1,W[0][1]);else if(!O&&D>0)o=k6(j+$1+J1,W[1][1]);m=Math.max(m,i),p=Math.max(p,o)}if(L){let i=0,o=0;if(M&&b>0)i=k6(C+b,L[0][0]);else if(!M&&b<0)i=V6(C+x,L[1][0]);if(O&&D>0)o=k6(j+D,L[0][1]);else if(!O&&D<0)o=V6(j+$1,L[1][1]);m=Math.max(m,i),p=Math.max(p,o)}if(H){if(T){let i=mq(x/E,f,y)*E;if(m=Math.max(m,i),W){let o=0;if(!M&&!O||M&&!O&&R)o=k6(j+J1+x/E,W[1][1])*E;else o=V6(j+J1+(M?b:-b)/E,W[0][1])*E;m=Math.max(m,o)}if(L){let o=0;if(!M&&!O||M&&!O&&R)o=V6(j+x/E,L[1][1])*E;else o=k6(j+(M?b:-b)/E,L[0][1])*E;m=Math.max(m,o)}}if(A){let i=mq($1*E,V,v)/E;if(p=Math.max(p,i),W){let o=0;if(!M&&!O||O&&!M&&R)o=k6(C+$1*E+Q1,W[1][0])/E;else o=V6(C+(O?D:-D)*E+Q1,W[0][0])/E;p=Math.max(p,o)}if(L){let o=0;if(!M&&!O||O&&!M&&R)o=V6(C+$1*E,L[1][0])/E;else o=k6(C+(O?D:-D)*E,L[0][0])/E;p=Math.max(p,o)}}}if(D=D+(D<0?p:-p),b=b+(b<0?m:-m),H)if(R)if(x>$1*E)D=(cM(M,O)?-b:b)/E;else b=(cM(M,O)?-D:D)*E;else if(T)D=b/E,O=M;else b=D*E,M=O;let c=M?C+b:C,a=O?j+D:j;return{width:u+(M?-b:b),height:h+(O?-D:D),x:Y[0]*b*(!M?1:-1)+c,y:Y[1]*D*(!O?1:-1)+a}}var IT={width:0,height:0,x:0,y:0},AS={...IT,pointerX:0,pointerY:0,aspectRatio:1};function MS(Q,U,Z){let K=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,W=Q.measured.height??0,L=Z[0]*Y,M=Z[1]*W;return[[K-L,H-M],[K+Y-L,H+W-M]]}function wT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:H}){let Y=L2(Q),W={controlDirection:pM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function L({controlPosition:O,boundaries:T,keepAspectRatio:A,resizeDirection:R,onResizeStart:P,onResize:N,onResizeEnd:V,shouldResize:v}){let f={...IT},y={...AS};W={boundaries:T,resizeDirection:R,keepAspectRatio:A,controlDirection:pM(O)};let C=void 0,j=null,u=[],h=void 0,E=void 0,b=void 0,D=LJ().on("start",(x)=>{let{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,paneDomNode:c}=Z();if(C=$1.get(U),!C)return;j=c?.getBoundingClientRect()??null;let{xSnapped:a,ySnapped:i}=DJ(x.sourceEvent,{transform:Q1,snapGrid:J1,snapToGrid:m,containerBounds:j});if(f={width:C.measured.width??0,height:C.measured.height??0,x:C.position.x??0,y:C.position.y??0},y={...f,pointerX:a,pointerY:i,aspectRatio:f.width/f.height},h=void 0,E=c8(C.extent)?C.extent:void 0,C.parentId&&(C.extent==="parent"||C.expandParent))h=$1.get(C.parentId);if(h&&C.extent==="parent")E=[[0,0],[h.measured.width,h.measured.height]];u=[],b=void 0;for(let[o,k]of $1)if(k.parentId===U){if(u.push({id:o,position:{...k.position},extent:k.extent}),k.extent==="parent"||k.expandParent){let g=MS(k,C,k.origin??p);if(b)b=[[Math.min(g[0][0],b[0][0]),Math.min(g[0][1],b[0][1])],[Math.max(g[1][0],b[1][0]),Math.max(g[1][1],b[1][1])]];else b=g}}P?.(x,{...f})}).on("drag",(x)=>{let{transform:$1,snapGrid:Q1,snapToGrid:J1,nodeOrigin:m}=Z(),p=DJ(x.sourceEvent,{transform:$1,snapGrid:Q1,snapToGrid:J1,containerBounds:j}),c=[];if(!C)return;let{x:a,y:i,width:o,height:k}=f,g={},q1=C.origin??m,{width:t,height:W1,x:T1,y:O1}=BS(y,W.controlDirection,p,W.boundaries,W.keepAspectRatio,q1,E,b),L1=t!==o,U1=W1!==k,P1=T1!==a&&L1,v1=O1!==i&&U1;if(!P1&&!v1&&!L1&&!U1)return;let A1={prevValues:{...f},startX:y.x,startY:y.y,childNodes:u.map((h1)=>({...h1,position:{...h1.position}}))};if(P1||v1||q1[0]===1||q1[1]===1){if(g.x=P1?T1:f.x,g.y=v1?O1:f.y,f.x=g.x,f.y=g.y,u.length>0){let h1=T1-a,M1=O1-i;for(let r1 of u)r1.position={x:r1.position.x-h1+q1[0]*(t-o),y:r1.position.y-M1+q1[1]*(W1-k)},c.push(r1)}}if(L1||U1)g.width=L1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?t:f.width,g.height=U1&&(!W.resizeDirection||W.resizeDirection==="vertical")?W1:f.height,f.width=g.width,f.height=g.height;if(h&&C.expandParent){let h1=q1[0]*(g.width??0);if(g.x&&g.x<h1)f.x=h1,y.x=y.x-(g.x-h1);let M1=q1[1]*(g.height??0);if(g.y&&g.y<M1)f.y=M1,y.y=y.y-(g.y-M1)}let k1=LS({width:f.width,prevWidth:o,height:f.height,prevHeight:k,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),D1={...f,direction:k1};if(v?.(x,D1)===!1){f=A1.prevValues,y.x=A1.startX,y.y=A1.startY,u.forEach((h1,M1)=>{h1.position=A1.childNodes[M1].position});return}N?.(x,D1),K(g,c)}).on("end",(x)=>{V?.(x,{...f}),H?.({...f})});Y.call(D)}function M(){Y.on(".drag",null)}return{update:L,destroy:M}}var vT=p0(G4(),1),jT=p0(NT(),1);var CT=(Q)=>{let U,Z=new Set,K=(T,A)=>{let R=typeof T==="function"?T(U):T;if(!Object.is(R,U)){let P=U;U=(A!=null?A:typeof R!=="object"||R===null)?R:Object.assign({},U,R),Z.forEach((N)=>N(U,P))}},H=()=>U,M={setState:K,getState:H,getInitialState:()=>O,subscribe:(T)=>{return Z.add(T),()=>Z.delete(T)},destroy:()=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");Z.clear()}},O=U=Q(K,H,M);return M},fT=(Q)=>Q?CT(Q):CT;var{useDebugValue:OS}=vT.default,{useSyncExternalStoreWithSelector:IS}=jT.default,wS=(Q)=>Q;function rK(Q,U=wS,Z){let K=IS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return OS(K),K}var ST=(Q,U)=>{let Z=fT(Q),K=(H,Y=U)=>rK(Z,H,Y);return Object.assign(K,Z),K},yT=(Q,U)=>Q?ST(Q,U):ST;function h0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[K,H]of Q)if(!Object.is(H,U.get(K)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let K of Q)if(!U.has(K))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let K of Z)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var UR=p0(iF(),1),UU=z1.createContext(null),PS=UU.Provider,GR=n2.error001("react");function H0(Q,U){let Z=z1.useContext(UU);if(Z===null)throw Error(GR);return rK(Z,Q,U)}function x0(){let Q=z1.useContext(UU);if(Q===null)throw Error(GR);return z1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var VT={display:"none"},NS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ZR="react-flow__node-desc",FR="react-flow__edge-desc",CS="react-flow__aria-live",fS=(Q)=>Q.ariaLiveMessage,SS=(Q)=>Q.ariaLabelConfig;function vS({rfId:Q}){let U=H0(fS);return H1.jsx("div",{id:`${CS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:NS,children:U})}function jS({rfId:Q,disableKeyboardA11y:U}){let Z=H0(SS);return H1.jsxs(H1.Fragment,{children:[H1.jsx("div",{id:`${ZR}-${Q}`,style:VT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),H1.jsx("div",{id:`${FR}-${Q}`,style:VT,children:Z["edge.a11yDescription.default"]}),!U&&H1.jsx(vS,{rfId:Q})]})}var s4=z1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...H},Y)=>{let W=`${Q}`.split("-");return H1.jsx("div",{className:d0(["react-flow__panel",Z,...W]),style:K,ref:Y,...H,children:U})});s4.displayName="Panel";var kT="https://reactflow.dev/attribution";function yS({proOptions:Q,position:U="bottom-right"}){if(z1.useEffect(()=>{nM("react")},[]),Q?.hideAttribution)return null;return H1.jsx(s4,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${kT}`,children:H1.jsx("a",{href:kT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var VS=(Q)=>{let U=[],Z=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)Z.push(K);return{selectedNodes:U,selectedEdges:Z}},JU=(Q)=>Q.id;function kS(Q,U){return h0(Q.selectedNodes.map(JU),U.selectedNodes.map(JU))&&h0(Q.selectedEdges.map(JU),U.selectedEdges.map(JU))}function DS({onSelectionChange:Q}){let U=x0(),{selectedNodes:Z,selectedEdges:K}=H0(VS,kS);return z1.useEffect(()=>{let H={nodes:Z,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,K,Q]),null}var uS=(Q)=>!!Q.onSelectionChangeHandlers;function bS({onSelectionChange:Q}){let U=H0(uS);if(Q||U)return H1.jsx(DS,{onSelectionChange:Q});return null}var XR=[0,0],ES={x:0,y:0,zoom:1},hS=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],DT=[...hS,"rfId"],xS=(Q)=>({setNodes:Q.setNodes,setEdges:Q.setEdges,setMinZoom:Q.setMinZoom,setMaxZoom:Q.setMaxZoom,setTranslateExtent:Q.setTranslateExtent,setNodeExtent:Q.setNodeExtent,reset:Q.reset,setDefaultNodesAndEdges:Q.setDefaultNodesAndEdges}),uT={translateExtent:L9,nodeOrigin:XR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function mS(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:L,setDefaultNodesAndEdges:M}=H0(xS,h0),O=x0();z1.useEffect(()=>{return M(Q.defaultNodes,Q.defaultEdges),()=>{T.current=uT,L()}},[]);let T=z1.useRef(uT);return z1.useEffect(()=>{for(let A of DT){let R=Q[A],P=T.current[A];if(R===P)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(R);else if(A==="edges")Z(R);else if(A==="minZoom")K(R);else if(A==="maxZoom")H(R);else if(A==="translateExtent")Y(R);else if(A==="nodeExtent")W(R);else if(A==="ariaLabelConfig")O.setState({ariaLabelConfig:oM(R)});else if(A==="fitView")O.setState({fitViewQueued:R});else if(A==="fitViewOptions")O.setState({fitViewOptions:R});else O.setState({[A]:R})}T.current=Q},DT.map((A)=>Q[A])),null}function bT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function gS(Q){let[U,Z]=z1.useState(Q==="system"?null:Q);return z1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=bT(),H=()=>Z(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:bT()?.matches?"dark":"light"}var ET=typeof document<"u"?document:null;function xJ(Q=null,U={target:ET,actInsideInputWithModifier:!0}){let[Z,K]=z1.useState(!1),H=z1.useRef(!1),Y=z1.useRef(new Set([])),[W,L]=z1.useMemo(()=>{if(Q!==null){let O=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
240
+ <%s key={someKey} {...props} />`,a,L1,T1,L1),o[L1+a]=!0)}if(L1=null,_1!==void 0&&(Z(_1),L1=""+_1),W(t)&&(Z(t.key),L1=""+t.key),"key"in t){_1={};for(var G1 in t)G1!=="key"&&(_1[G1]=t[G1])}else _1=t;return L1&&L(_1,typeof k==="function"?k.displayName||k.name||"Unknown":k),O(k,L1,_1,H(),H1,O1)}function A(k){R(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===u&&(k._payload.status==="fulfilled"?R(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function R(k){return typeof k==="object"&&k!==null&&k.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),N=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),s=h8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=Object.prototype.hasOwnProperty,Q1=Array.isArray,h=console.createTask?console.createTask:function(){return null};h8={react_stack_bottom_frame:function(k){return k()}};var g,p={},c=h8.react_stack_bottom_frame.bind(h8,Y)(),l=h(K(Y)),o={};CN.Fragment=V,CN.jsx=function(k,t,_1){var a=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,!1,a?Error("react-stack-top-frame"):c,a?h(K(k)):l)},CN.jsxs=function(k,t,_1){var a=1e4>s.recentlyCreatedOwnerStacks++;return T(k,t,_1,!0,a?Error("react-stack-top-frame"):c,a?h(K(k)):l)}})()});var NT=o4((IS)=>{var h5=s0(B4());(function(){function Q(R,w){return R===w&&(R!==0||1/R===1/w)||R!==R&&w!==w}function U(R,w){O||h5.startTransition===void 0||(O=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var P=w();if(!T){var V=w();H(P,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}V=Y({inst:{value:P,getSnapshot:w}});var S=V[0].inst,C=V[1];return L(function(){S.value=P,S.getSnapshot=w,Z(S)&&C({inst:S})},[R,P,w]),W(function(){return Z(S)&&C({inst:S}),R(function(){Z(S)&&C({inst:S})})},[R]),M(P),P}function Z(R){var w=R.getSnapshot;R=R.value;try{var P=w();return!H(R,P)}catch(V){return!0}}function K(R,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=h5.useState,W=h5.useEffect,L=h5.useLayoutEffect,M=h5.useDebugValue,O=!1,T=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;IS.useSyncExternalStore=h5.useSyncExternalStore!==void 0?h5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var CT=o4((wS)=>{var m3=s0(B4());(function(){function Q(M,O){return M===O&&(M!==0||1/M===1/O)||M!==M&&O!==O}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=NT(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=m3.useRef,Y=m3.useEffect,W=m3.useMemo,L=m3.useDebugValue;wS.useSyncExternalStoreWithSelector=function(M,O,T,A,R){var w=H(null);if(w.current===null){var P={hasValue:!1,value:null};w.current=P}else P=w.current;w=W(function(){function S(D){if(!C){if(C=!0,y=D,D=A(D),R!==void 0&&P.hasValue){var x=P.value;if(R(x,D))return N=x}return N=D}if(x=N,Z(y,D))return x;var E=A(D);if(R!==void 0&&R(x,E))return y=D,x;return y=D,N=E}var C=!1,y,N,v=T===void 0?null:T;return[function(){return S(O())},v===null?void 0:function(){return S(v())}]},[O,T,A,R]);var V=K(M,w[0],w[1]);return Y(function(){P.hasValue=!0,P.value=V},[V]),L(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var jO=s0(EA(),1);var D2=s0(B4(),1);var hA={x:{title:"X",fill:"currentColor",d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},youtube:{title:"YouTube",fill:"#FF0000",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},tiktok:{title:"TikTok",fill:"currentColor",d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},discord:{title:"Discord",fill:"#5865F2",d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},resend:{title:"Resend",fill:"currentColor",d:"M2.023 0v24h5.553v-8.434h2.998L15.326 24h6.65l-5.372-9.258a7.652 7.652 0 0 0 3.316-3.016c.709-1.21 1.062-2.57 1.062-4.08 0-1.462-.353-2.767-1.062-3.91-.709-1.165-1.692-2.079-2.95-2.742C15.737.331 14.355 0 12.823 0Zm5.553 4.87h4.219c.731 0 1.349.125 1.851.376.526.252.925.618 1.2 1.098.274.457.412.994.412 1.611S15.132 9.12 14.88 9.6c-.229.48-.572.856-1.03 1.13-.434.252-.948.38-1.542.38H7.576Z"},linkedin:{title:"LinkedIn",fill:"#0A66C2",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},reddit:{title:"Reddit",fill:"#FF4500",d:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"},bluesky:{title:"Bluesky",fill:"#0285FF",d:"M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"},instagram:{title:"Instagram",fill:"#FF0069",d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},github:{title:"GitHub",fill:"currentColor",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"},stripe:{title:"Stripe",fill:"#635BFF",d:"M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"},slack:{title:"Slack",fill:"#4A154B",d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},openai:{title:"OpenAI",fill:"#412991",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"},anthropic:{title:"Anthropic",fill:"currentColor",d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"},twilio:{title:"Twilio",fill:"#F22F46",d:"M12 0C5.381-.008.008 5.352 0 11.971V12c0 6.64 5.359 12 12 12 6.64 0 12-5.36 12-12 0-6.641-5.36-12-12-12zm0 20.801c-4.846.015-8.786-3.904-8.801-8.75V12c-.014-4.846 3.904-8.786 8.75-8.801H12c4.847-.014 8.786 3.904 8.801 8.75V12c.015 4.847-3.904 8.786-8.75 8.801H12zm5.44-11.76c0 1.359-1.12 2.479-2.481 2.479-1.366-.007-2.472-1.113-2.479-2.479 0-1.361 1.12-2.481 2.479-2.481 1.361 0 2.481 1.12 2.481 2.481zm0 5.919c0 1.36-1.12 2.48-2.481 2.48-1.367-.008-2.473-1.114-2.479-2.48 0-1.359 1.12-2.479 2.479-2.479 1.361-.001 2.481 1.12 2.481 2.479zm-5.919 0c0 1.36-1.12 2.48-2.479 2.48-1.368-.007-2.475-1.113-2.481-2.48 0-1.359 1.12-2.479 2.481-2.479 1.358-.001 2.479 1.12 2.479 2.479zm0-5.919c0 1.359-1.12 2.479-2.479 2.479-1.367-.007-2.475-1.112-2.481-2.479 0-1.361 1.12-2.481 2.481-2.481 1.358 0 2.479 1.12 2.479 2.481z"},sendgrid:{title:"SendGrid",fill:"#51A9E3",d:"M.8 24h13.6c.88 0 1.6-.72 1.6-1.6v-4.8c0-.88-.72-1.6-1.6-1.6H9.6c-.88 0-1.6-.72-1.6-1.6V9.6C8 8.72 7.28 8 6.4 8H1.6C.72 8 0 8.72 0 9.6v13.6c0 .44.36.8.8.8zM23.2 0H9.6C8.72 0 8 .72 8 1.6v4.8C8 7.28 8.72 8 9.6 8h4.8c.88 0 1.6.72 1.6 1.6v4.8c0 .88.72 1.6 1.6 1.6h4.8c.88 0 1.6-.72 1.6-1.6V.8c0-.44-.36-.8-.8-.8Z"},mailgun:{title:"Mailgun",fill:"#F06B66",d:"M11.837 0c6.602 0 11.984 5.381 11.984 11.994-.017 2.99-3.264 4.84-5.844 3.331a3.805 3.805 0 0 1-.06-.035l-.055-.033-.022.055c-2.554 4.63-9.162 4.758-11.894.232-2.732-4.527.46-10.313 5.746-10.416a6.868 6.868 0 0 1 7.002 6.866 1.265 1.265 0 0 0 2.52 0c0-5.18-4.197-9.38-9.377-9.387C4.611 2.594.081 10.41 3.683 16.673c3.238 5.632 11.08 6.351 15.289 1.402l1.997 1.686A11.95 11.95 0 0 1 11.837 24C2.6 23.72-2.87 13.543 1.992 5.684A12.006 12.006 0 0 1 11.837 0Zm0 7.745c-3.276-.163-5.5 3.281-4.003 6.2a4.26 4.26 0 0 0 4.014 2.31c3.276-.171 5.137-3.824 3.35-6.575a4.26 4.26 0 0 0-3.36-1.935Zm0 2.53c1.324 0 2.152 1.433 1.49 2.58a1.72 1.72 0 0 1-1.49.86 1.72 1.72 0 1 1 0-3.44Z"},notion:{title:"Notion",fill:"currentColor",d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"},linear:{title:"Linear",fill:"#5E6AD2",d:"M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"},jira:{title:"Jira",fill:"#0052CC",d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"},hubspot:{title:"HubSpot",fill:"#FF7A59",d:"M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"},paypal:{title:"PayPal",fill:"#003087",d:"M7.016 19.198h-4.2a.562.562 0 0 1-.555-.65L5.093.584A.692.692 0 0 1 5.776 0h7.222c3.417 0 5.904 2.488 5.846 5.5-.006.25-.027.5-.066.747A6.794 6.794 0 0 1 12.071 12H8.743a.69.69 0 0 0-.682.583l-.325 2.056-.013.083-.692 4.39-.015.087zM19.79 6.142c-.01.087-.01.175-.023.261a7.76 7.76 0 0 1-7.695 6.598H9.007l-.283 1.795-.013.083-.692 4.39-.134.843-.014.088H6.86l-.497 3.15a.562.562 0 0 0 .555.65h3.612c.34 0 .63-.249.683-.585l.952-6.031a.692.692 0 0 1 .683-.584h2.126a6.793 6.793 0 0 0 6.707-5.752c.306-1.95-.466-3.744-1.89-4.906z"},shopify:{title:"Shopify",fill:"#7AB55C",d:"M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023zM11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z"},sentry:{title:"Sentry",fill:"#362D59",d:"M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"},vercel:{title:"Vercel",fill:"currentColor",d:"M24 22.525H0l12-21.05 12 21.05z"},supabase:{title:"Supabase",fill:"#3FCF8E",d:"M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"},clerk:{title:"Clerk",fill:"#6C47FF",d:"m21.47 20.829-2.881-2.881a.572.572 0 0 0-.7-.084 6.854 6.854 0 0 1-7.081 0 .576.576 0 0 0-.7.084l-2.881 2.881a.576.576 0 0 0-.103.69.57.57 0 0 0 .166.186 12 12 0 0 0 14.113 0 .58.58 0 0 0 .239-.423.576.576 0 0 0-.172-.453Zm.002-17.668-2.88 2.88a.569.569 0 0 1-.701.084A6.857 6.857 0 0 0 8.724 8.08a6.862 6.862 0 0 0-1.222 3.692 6.86 6.86 0 0 0 .978 3.764.573.573 0 0 1-.083.699l-2.881 2.88a.567.567 0 0 1-.864-.063A11.993 11.993 0 0 1 6.771 2.7a11.99 11.99 0 0 1 14.637-.405.566.566 0 0 1 .232.418.57.57 0 0 1-.168.448Zm-7.118 12.261a3.427 3.427 0 1 0 0-6.854 3.427 3.427 0 0 0 0 6.854Z"},aws:{title:"Amazon Web Services",fill:"#232F3E",d:"M6.763 10.036c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 0 1-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 0 1-.287-.375 6.18 6.18 0 0 1-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.391-.384-.59-.894-.59-1.533 0-.678.239-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272a2.287 2.287 0 0 1-.28.104.488.488 0 0 1-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 0 1 .224-.167c.279-.144.614-.264 1.005-.36a4.84 4.84 0 0 1 1.246-.151c.95 0 1.644.216 2.091.647.439.43.662 1.085.662 1.963v2.586zm-3.24 1.214c.263 0 .534-.048.822-.144.287-.096.543-.271.758-.51.128-.152.224-.32.272-.512.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 0 0-.735-.136 6.02 6.02 0 0 0-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 5.55a1.398 1.398 0 0 1-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 0 1 .32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 0 1 .311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 0 1-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 0 1-.303.08h-.687c-.151 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32l-1.238-5.148-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 0 1-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.319.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 0 0 .415-.758.777.777 0 0 0-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 0 1-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .359.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 0 1 .24.2.43.43 0 0 1 .071.263v.375c0 .168-.064.256-.184.256a.83.83 0 0 1-.303-.096 3.652 3.652 0 0 0-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.159.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926-.144.272-.336.511-.583.703-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167zM21.698 16.207c-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351 3.384 1.963 7.559 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.439-.2.814.287.383.607zM22.792 14.961c-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151.32-.79 1.03-2.57.695-2.994z"},figma:{title:"Figma",fill:"#F24E1E",d:"M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.097-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z"},airtable:{title:"Airtable",fill:"#18BFFF",d:"M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"},intercom:{title:"Intercom",fill:"#6AFDEF",d:"M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"},posthog:{title:"PostHog",fill:"currentColor",d:"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z"},datadog:{title:"Datadog",fill:"#632CA6",d:"M19.57 17.04l-1.997-1.316-1.665 2.782-1.937-.567-1.706 2.604.087.82 9.274-1.71-.538-5.794zm-8.649-2.498l1.488-.204c.241.108.409.15.697.223.45.117.97.23 1.741-.16.18-.088.553-.43.704-.625l6.096-1.106.622 7.527-10.444 1.882zm11.325-2.712l-.602.115L20.488 0 .789 2.285l2.427 19.693 2.306-.334c-.184-.263-.471-.581-.96-.989-.68-.564-.44-1.522-.039-2.127.53-1.022 3.26-2.322 3.106-3.956-.056-.594-.15-1.368-.702-1.898-.02.22.017.432.017.432s-.227-.289-.34-.683c-.112-.15-.2-.199-.319-.4-.085.233-.073.503-.073.503s-.186-.437-.216-.807c-.11.166-.137.48-.137.48s-.241-.69-.186-1.062c-.11-.323-.436-.965-.343-2.424.6.421 1.924.321 2.44-.439.171-.251.288-.939-.086-2.293-.24-.868-.835-2.16-1.066-2.651l-.028.02c.122.395.374 1.223.47 1.625.293 1.218.372 1.642.234 2.204-.116.488-.397.808-1.107 1.165-.71.358-1.653-.514-1.713-.562-.69-.55-1.224-1.447-1.284-1.883-.062-.477.275-.763.445-1.153-.243.07-.514.192-.514.192s.323-.334.722-.624c.165-.109.262-.178.436-.323a9.762 9.762 0 0 0-.456.003s.42-.227.855-.392c-.318-.014-.623-.003-.623-.003s.937-.419 1.678-.727c.509-.208 1.006-.147 1.286.257.367.53.752.817 1.569.996.501-.223.653-.337 1.284-.509.554-.61.99-.688.99-.688s-.216.198-.274.51c.314-.249.66-.455.66-.455s-.134.164-.259.426l.03.043c.366-.22.797-.394.797-.394s-.123.156-.268.358c.277-.002.838.012 1.056.037 1.285.028 1.552-1.374 2.045-1.55.618-.22.894-.353 1.947.68.903.888 1.609 2.477 1.259 2.833-.294.295-.874-.115-1.516-.916a3.466 3.466 0 0 1-.716-1.562 1.533 1.533 0 0 0-.497-.85s.23.51.23.96c0 .246.03 1.165.424 1.68-.039.076-.057.374-.1.43-.458-.554-1.443-.95-1.604-1.067.544.445 1.793 1.468 2.273 2.449.453.927.186 1.777.416 1.997.065.063.976 1.197 1.15 1.767.306.994.019 2.038-.381 2.685l-1.117.174c-.163-.045-.273-.068-.42-.153.08-.143.241-.5.243-.572l-.063-.111c-.348.492-.93.97-1.414 1.245-.633.359-1.363.304-1.838.156-1.348-.415-2.623-1.327-2.93-1.566 0 0-.01.191.048.234.34.383 1.119 1.077 1.872 1.56l-1.605.177.759 5.908c-.337.048-.39.071-.757.124-.325-1.147-.946-1.895-1.624-2.332-.599-.384-1.424-.47-2.214-.314l-.05.059a2.851 2.851 0 0 1 1.863.444c.654.413 1.181 1.481 1.375 2.124.248.822.42 1.7-.248 2.632-.476.662-1.864 1.028-2.986.237.3.481.705.876 1.25.95.809.11 1.577-.03 2.106-.574.452-.464.69-1.434.628-2.456l.714-.104.258 1.834 11.827-1.424zM15.05 6.848c-.034.075-.085.125-.007.37l.004.014.013.032.032.073c.14.287.295.558.552.696.067-.011.136-.019.207-.023.242-.01.395.028.492.08.009-.048.01-.119.005-.222-.018-.364.072-.982-.626-1.308-.264-.122-.634-.084-.757.068a.302.302 0 0 1 .058.013c.186.066.06.13.027.207m1.958 3.392c-.092-.05-.52-.03-.821.005-.574.068-1.193.267-1.328.372-.247.191-.135.523.047.66.511.382.96.638 1.432.575.29-.038.546-.497.728-.914.124-.288.124-.598-.058-.698m-5.077-2.942c.162-.154-.805-.355-1.556.156-.554.378-.571 1.187-.041 1.646.053.046.096.078.137.104a4.77 4.77 0 0 1 1.396-.412c.113-.125.243-.345.21-.745-.044-.542-.455-.456-.146-.749"},algolia:{title:"Algolia",fill:"#003DFF",d:"M12 0C5.445 0 .103 5.285.01 11.817c-.097 6.634 5.285 12.131 11.92 12.17a11.91 11.91 0 0 0 5.775-1.443.281.281 0 0 0 .052-.457l-1.122-.994a.79.79 0 0 0-.833-.14 9.693 9.693 0 0 1-3.923.77c-5.36-.067-9.692-4.527-9.607-9.888.084-5.293 4.417-9.573 9.73-9.573h9.73v17.296l-5.522-4.907a.407.407 0 0 0-.596.063 4.52 4.52 0 0 1-3.934 1.793 4.538 4.538 0 0 1-4.192-4.168 4.53 4.53 0 0 1 4.512-4.872 4.532 4.532 0 0 1 4.509 4.126c.018.205.11.397.265.533l1.438 1.275a.28.28 0 0 0 .462-.158 6.82 6.82 0 0 0 .099-1.725c-.232-3.376-2.966-6.092-6.345-6.3-3.873-.24-7.11 2.79-7.214 6.588-.1 3.7 2.933 6.892 6.634 6.974a6.75 6.75 0 0 0 4.136-1.294l7.212 6.394a.48.48 0 0 0 .797-.36V.456A.456.456 0 0 0 23.54 0Z"},cloudflare:{title:"Cloudflare",fill:"#F38020",d:"M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727"},upstash:{title:"Upstash",fill:"#00E9A3",d:"M13.8027 0C11.193 0 8.583.9952 6.5918 2.9863c-3.9823 3.9823-3.9823 10.4396 0 14.4219 1.9911 1.9911 5.2198 1.9911 7.211 0 1.991-1.9911 1.991-5.2198 0-7.211L12 12c.9956.9956.9956 2.6098 0 3.6055-.9956.9955-2.6099.9955-3.6055 0-2.9866-2.9868-2.9866-7.8297 0-10.8164 2.9868-2.9868 7.8297-2.9868 10.8164 0l1.8028-1.8028C19.0225.9952 16.4125 0 13.8027 0zM12 12c-.9956-.9956-.9956-2.6098 0-3.6055.9956-.9955 2.6098-.9955 3.6055 0 2.9867 2.9868 2.9867 7.8297 0 10.8164-2.9867 2.9868-7.8297 2.9868-10.8164 0l-1.8028 1.8028c3.9823 3.9822 10.4396 3.9822 14.4219 0 3.9823-3.9824 3.9823-10.4396 0-14.4219-.9956-.9956-2.3006-1.4922-3.6055-1.4922-1.3048 0-2.6099.4966-3.6054 1.4922-1.9912 1.9912-1.9912 5.2198 0 7.211z"},mixpanel:{title:"Mixpanel",fill:"#7856FF",d:"M6.967 9.996h3.053c-.763-.477-1.048-1.145-1.431-2.384L7.443 3.366C6.919 1.458 6.49.551 4.39.551H.004v1.145h.621c1.286 0 1.431.477 1.814 1.908L3.44 7.326c.524 1.814 1.337 2.67 3.53 2.67h-.003Zm7.06 0h3.053c2.194 0 2.956-.86 3.484-2.67l1.001-3.722c.382-1.431.57-1.908 1.814-1.908H24V.551h-4.34c-2.146 0-2.576.86-3.053 2.815l-1.145 4.246c-.384 1.286-.673 1.907-1.435 2.384Zm-4.007 4.008h4.007V9.996H10.02v4.008ZM0 23.449h4.39c2.1 0 2.529-.907 3.053-2.815l1.146-4.246c.383-1.239.668-1.907 1.431-2.384H6.967c-2.194 0-3.007.86-3.531 2.67l-1.001 3.722c-.383 1.431-.524 1.907-1.814 1.907H0v1.146Zm19.65 0h4.343v-1.146h-.622c-1.239 0-1.431-.476-1.814-1.907l-1.001-3.722c-.524-1.814-1.286-2.67-3.483-2.67h-3.046c.762.477 1.041 1.098 1.424 2.384l1.145 4.246c.477 1.955.907 2.815 3.054 2.815Z"},gemini:{title:"Google Gemini",fill:"#8E75B2",d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"}};var l1=s0(u8(),1),ON="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function HJ({href:Q,onClick:U}){return l1.jsxDEV("h1",{children:l1.jsxDEV("a",{href:Q,onClick:U,children:[l1.jsxDEV("img",{src:ON,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),l1.jsxDEV("span",{className:"brand-name",children:" Volter World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}async function k3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function mA(Q,U,Z=0,K=""){let[H,Y]=D2.useState({state:"loading"});return D2.useEffect(()=>{Y({state:"loading"})},[K,U]),D2.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let L=await Q(U),M=L.ok?{state:"ok",data:await L.json()}:{state:"error",status:L.status,error:await k3(L)};if(W)Y(M)}catch(L){if(W)Y({state:"error",status:0,error:String(L)})}})(),()=>{W=!1}},[K,U,Z]),H}function r2({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return l1.jsxDEV(IN,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return l1.jsxDEV("div",{role:"alert",className:"error-state",children:[l1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?l1.jsxDEV("button",{type:"button",onClick:Z,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function IN({lines:Q=3,label:U="Loading…"}){return l1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,K)=>l1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function j0({iso:Q,time:U}){if(!Q)return l1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return l1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var b8=(Q)=>Q?new Date(Q).toLocaleString():"—";function sF(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let Z=Math.max(0,Math.round((Date.now()-U)/1000));return Z<60?"just now":Z<3600?`${Math.round(Z/60)}m ago`:Z<86400?`${Math.round(Z/3600)}h ago`:`${Math.round(Z/86400)}d ago`}function l0(Q,U){let Z=U.replace(/[_-]+/g," "),K=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:K}`}var E8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,wN={github:"GitHub",openai:"OpenAI",aws:"AWS",hubspot:"HubSpot",paypal:"PayPal",youtube:"YouTube",tiktok:"TikTok",linkedin:"LinkedIn",xai:"xAI",sendgrid:"SendGrid",elevenlabs:"ElevenLabs",assemblyai:"AssemblyAI",planetscale:"PlanetScale",googleoauth:"Google sign-in",npm:"npm","npm-registry":"npm registry",posthog:"PostHog",mongodb:"MongoDB",pagerduty:"PagerDuty",mailgun:"Mailgun",turbopuffer:"turbopuffer"},s1=(Q)=>wN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function q2({vendor:Q}){let U=hA[Q];return l1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?l1.jsxDEV("svg",{viewBox:"0 0 24 24",children:l1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):s1(Q).charAt(0)},void 0,!1,void 0,this)}var xA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},PN="volter.theme",tF=()=>{try{let Q=localStorage.getItem(PN);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Aq(Q=tF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function gA(){return D2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(K)=>{if(K.key!=="Escape"||document.querySelector("dialog[open]"))return;let H=Q();if(!H.length)return;for(let Y of H)Y.removeAttribute("open");H[H.length-1].querySelector("summary")?.focus()},Z=(K)=>{let H=K.target;for(let Y of Q())if(!H||!Y.contains(H))Y.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function E5({open:Q,onClose:U,title:Z,children:K,footer:H,wide:Y}){let W=D2.useRef(null),L=D2.useId();return D2.useEffect(()=>{let M=W.current;if(!M)return;if(Q&&!M.open){M.showModal();let O=M.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(O?.focus(),O instanceof HTMLInputElement&&O.value&&/^(text|search|email|url)$/.test(O.type))O.select()}if(!Q&&M.open)M.close()},[Q]),l1.jsxDEV("dialog",{ref:W,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":L,onClose:U,onCancel:(M)=>{M.preventDefault(),U()},onMouseDown:(M)=>{if(M.target===W.current)U()},children:Q?l1.jsxDEV(l1.Fragment,{children:[l1.jsxDEV("div",{className:"dialog-head",children:[l1.jsxDEV("h2",{id:L,children:Z},void 0,!1,void 0,this),l1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Close",onClick:U,children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),H?l1.jsxDEV("div",{className:"dialog-foot",children:H},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)}var rF="volter:confirm";function n4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(rF,{detail:{ask:Q,resolve:U}}))})}function pA(){let[Q,U]=D2.useState(null),[Z,K]=D2.useState("");D2.useEffect(()=>{let L=(M)=>{K(""),U(M.detail)};return window.addEventListener(rF,L),()=>window.removeEventListener(rF,L)},[]);let H=(L)=>{Q?.resolve(L),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return l1.jsxDEV(E5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:l1.jsxDEV(l1.Fragment,{children:[l1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),l1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!W,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?l1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?l1.jsxDEV("div",{className:"typed-confirm",children:[l1.jsxDEV("p",{children:["Type ",l1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),l1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(L)=>K(L.target.value),onKeyDown:(L)=>{if(L.key==="Enter"&&W)H(!0)},autoComplete:"off",spellCheck:!1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}var aF="volter:toast";function e0(Q,U="ok"){window.dispatchEvent(new CustomEvent(aF,{detail:{text:Q,kind:U}}))}function cA(){let[Q,U]=D2.useState([]);return D2.useEffect(()=>{let Z=0,K=(H)=>{let{text:Y,kind:W}=H.detail,L=++Z;if(U((M)=>[...M.slice(-3),{id:L,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((M)=>M.filter((O)=>O.id!==L)),4500)};return window.addEventListener(aF,K),()=>window.removeEventListener(aF,K)},[]),l1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>l1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[l1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),l1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.filter((H)=>H.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function oF({value:Q,label:U,secret:Z}){let[K,H]=D2.useState(!1);return l1.jsxDEV("div",{className:"copy-field",children:[U?l1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,l1.jsxDEV("div",{className:"copy-row",children:[l1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),l1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),e0(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>e0("Your browser would not copy it: select it and copy","error"))},children:K?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function lA({label:Q,items:U}){return l1.jsxDEV("details",{className:"menu row-menu",children:[l1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),l1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?l1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:xA,children:Z.label},Z.label,!1,void 0,this):l1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(K)=>{xA(K),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function X9({title:Q,children:U,action:Z}){return l1.jsxDEV("div",{className:"empty-state",children:[l1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?l1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?l1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function iA(){return D2.useEffect(()=>{let Q=(Z)=>{let K=document.querySelector("main.app"),H=Z.target;if(K?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")NN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),l1.jsxDEV("button",{type:"button",className:"icon-button drawer-button","aria-label":"Menu",onClick:()=>{document.querySelector("main.app")?.toggleAttribute("data-drawer")},children:"☰"},void 0,!1,void 0,this)}var NN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var F1=s0(B4(),1);var K1=s0(dA(),1),W1=s0(B4(),1);function _2(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,K;Z<Q.length;Z++)if((K=_2(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var fN={value:()=>{}};function aA(){for(var Q=0,U=arguments.length,Z={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in Z||/[\s.]/.test(K))throw Error("illegal type: "+K);Z[K]=[]}return new Mq(Z)}function Mq(Q){this._=Q}function SN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var K="",H=Z.indexOf(".");if(H>=0)K=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:K}})}Mq.prototype=aA.prototype={constructor:Mq,on:function(Q,U){var Z=this._,K=SN(Q+"",Z),H,Y=-1,W=K.length;if(arguments.length<2){while(++Y<W)if((H=(Q=K[Y]).type)&&(H=vN(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<W)if(H=(Q=K[Y]).type)Z[H]=rA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=rA(Z[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new Mq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),K=0,H,Y;K<H;++K)Z[K]=arguments[K+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],K=0,H=Y.length;K<H;++K)Y[K].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var K=this._[Q],H=0,Y=K.length;H<Y;++H)K[H].value.apply(U,Z)}};function vN(Q,U){for(var Z=0,K=Q.length,H;Z<K;++Z)if((H=Q[Z]).name===U)return H.value}function rA(Q,U,Z){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=fN,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var x8=aA;function K9(Q){return function(){return this.matches(Q)}}function Tq(Q){return function(U){return U.matches(Q)}}var Rq="http://www.w3.org/1999/xhtml",nF={svg:"http://www.w3.org/2000/svg",xhtml:Rq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function e4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return nF.hasOwnProperty(U)?{space:nF[U],local:Q}:Q}function eF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function a2(Q,U){if(Q=eF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var K=Z.createSVGPoint();return K.x=Q.clientX,K.y=Q.clientY,K=K.matrixTransform(U.getScreenCTM().inverse()),[K.x,K.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function jN(){}function h6(Q){return Q==null?jN:function(){return this.querySelector(Q)}}function _X(Q){if(typeof Q!=="function")Q=h6(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[H]=Array(W),M,O,T=0;T<W;++T)if((M=Y[T])&&(O=Q.call(M,M.__data__,T,Y))){if("__data__"in M)O.__data__=M.__data__;L[T]=O}return new U2(K,this._parents)}function JX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function VN(){return[]}function H9(Q){return Q==null?VN:function(){return this.querySelectorAll(Q)}}function yN(Q){return function(){return JX(Q.apply(this,arguments))}}function $X(Q){if(typeof Q==="function")Q=yN(Q);else Q=H9(Q);for(var U=this._groups,Z=U.length,K=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O])K.push(Q.call(M,M.__data__,O,W)),H.push(M);return new U2(K,H)}var kN=Array.prototype.find;function DN(Q){return function(){return kN.call(this.children,Q)}}function uN(){return this.firstElementChild}function QX(Q){return this.select(Q==null?uN:DN(typeof Q==="function"?Q:Tq(Q)))}var bN=Array.prototype.filter;function EN(){return Array.from(this.children)}function hN(Q){return function(){return bN.call(this.children,Q)}}function qX(Q){return this.selectAll(Q==null?EN:hN(typeof Q==="function"?Q:Tq(Q)))}function UX(Q){if(typeof Q!=="function")Q=K9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[H]=[],M,O=0;O<W;++O)if((M=Y[O])&&Q.call(M,M.__data__,O,Y))L.push(M);return new U2(K,this._parents)}function YJ(Q){return Array(Q.length)}function GX(){return new U2(this._enter||this._groups.map(YJ),this._parents)}function zJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}zJ.prototype={constructor:zJ,appendChild:function(Q){return this._parent.insertBefore(Q,this._next)},insertBefore:function(Q,U){return this._parent.insertBefore(Q,U)},querySelector:function(Q){return this._parent.querySelector(Q)},querySelectorAll:function(Q){return this._parent.querySelectorAll(Q)}};function ZX(Q){return function(){return Q}}function xN(Q,U,Z,K,H,Y){var W=0,L,M=U.length,O=Y.length;for(;W<O;++W)if(L=U[W])L.__data__=Y[W],K[W]=L;else Z[W]=new zJ(Q,Y[W]);for(;W<M;++W)if(L=U[W])H[W]=L}function mN(Q,U,Z,K,H,Y,W){var L,M,O=new Map,T=U.length,A=Y.length,R=Array(T),w;for(L=0;L<T;++L)if(M=U[L])if(R[L]=w=W.call(M,M.__data__,L,U)+"",O.has(w))H[L]=M;else O.set(w,M);for(L=0;L<A;++L)if(w=W.call(Q,Y[L],L,Y)+"",M=O.get(w))K[L]=M,M.__data__=Y[L],O.delete(w);else Z[L]=new zJ(Q,Y[L]);for(L=0;L<T;++L)if((M=U[L])&&O.get(R[L])===M)H[L]=M}function gN(Q){return Q.__data__}function FX(Q,U){if(!arguments.length)return Array.from(this,gN);var Z=U?mN:xN,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=ZX(Q);for(var Y=H.length,W=Array(Y),L=Array(Y),M=Array(Y),O=0;O<Y;++O){var T=K[O],A=H[O],R=A.length,w=pN(Q.call(T,T&&T.__data__,O,K)),P=w.length,V=L[O]=Array(P),S=W[O]=Array(P),C=M[O]=Array(R);Z(T,A,V,S,C,w,U);for(var y=0,N=0,v,D;y<P;++y)if(v=V[y]){if(y>=N)N=y+1;while(!(D=S[N])&&++N<P);v._next=D||null}}return W=new U2(W,K),W._enter=L,W._exit=M,W}function pN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function XX(){return new U2(this._exit||this._groups.map(YJ),this._parents)}function KX(Q,U,Z){var K=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(K=Q(K),K)K=K.selection()}else K=K.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return K&&H?K.merge(H).order():H}function HX(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,K=U._groups,H=Z.length,Y=K.length,W=Math.min(H,Y),L=Array(H),M=0;M<W;++M)for(var O=Z[M],T=K[M],A=O.length,R=L[M]=Array(A),w,P=0;P<A;++P)if(w=O[P]||T[P])R[P]=w;for(;M<H;++M)L[M]=Z[M];return new U2(L,this._parents)}function YX(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var K=Q[U],H=K.length-1,Y=K[H],W;--H>=0;)if(W=K[H]){if(Y&&W.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(W,Y);Y=W}return this}function zX(Q){if(!Q)Q=cN;function U(A,R){return A&&R?Q(A.__data__,R.__data__):!A-!R}for(var Z=this._groups,K=Z.length,H=Array(K),Y=0;Y<K;++Y){for(var W=Z[Y],L=W.length,M=H[Y]=Array(L),O,T=0;T<L;++T)if(O=W[T])M[T]=O;M.sort(U)}return new U2(H,this._parents).order()}function cN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function WX(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function LX(){return Array.from(this)}function BX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length;H<Y;++H){var W=K[H];if(W)return W}return null}function AX(){let Q=0;for(let U of this)++Q;return Q}function MX(){return!this.node()}function TX(Q){for(var U=this._groups,Z=0,K=U.length;Z<K;++Z)for(var H=U[Z],Y=0,W=H.length,L;Y<W;++Y)if(L=H[Y])Q.call(L,L.__data__,Y,H);return this}function lN(Q){return function(){this.removeAttribute(Q)}}function iN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function dN(Q,U){return function(){this.setAttribute(Q,U)}}function rN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function aN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function sN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,Z)}}function RX(Q,U){var Z=e4(Q);if(arguments.length<2){var K=this.node();return Z.local?K.getAttributeNS(Z.space,Z.local):K.getAttribute(Z)}return this.each((U==null?Z.local?iN:lN:typeof U==="function"?Z.local?sN:aN:Z.local?rN:dN)(Z,U))}function WJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function tN(Q){return function(){this.style.removeProperty(Q)}}function oN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function nN(Q,U,Z){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,Z)}}function OX(Q,U,Z){return arguments.length>1?this.each((U==null?tN:typeof U==="function"?nN:oN)(Q,U,Z==null?"":Z)):x6(this.node(),Q)}function x6(Q,U){return Q.style.getPropertyValue(U)||WJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function eN(Q){return function(){delete this[Q]}}function _C(Q,U){return function(){this[Q]=U}}function JC(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function IX(Q,U){return arguments.length>1?this.each((U==null?eN:typeof U==="function"?JC:_C)(Q,U)):this.node()[Q]}function sA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new tA(Q)}function tA(Q){this._node=Q,this._names=sA(Q.getAttribute("class")||"")}tA.prototype={add:function(Q){var U=this._names.indexOf(Q);if(U<0)this._names.push(Q),this._node.setAttribute("class",this._names.join(" "))},remove:function(Q){var U=this._names.indexOf(Q);if(U>=0)this._names.splice(U,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(Q){return this._names.indexOf(Q)>=0}};function oA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.add(U[K])}function nA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.remove(U[K])}function $C(Q){return function(){oA(this,Q)}}function QC(Q){return function(){nA(this,Q)}}function qC(Q,U){return function(){(U.apply(this,arguments)?oA:nA)(this,Q)}}function PX(Q,U){var Z=sA(Q+"");if(arguments.length<2){var K=wX(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!K.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?qC:U?$C:QC)(Z,U))}function UC(){this.textContent=""}function GC(Q){return function(){this.textContent=Q}}function ZC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function NX(Q){return arguments.length?this.each(Q==null?UC:(typeof Q==="function"?ZC:GC)(Q)):this.node().textContent}function FC(){this.innerHTML=""}function XC(Q){return function(){this.innerHTML=Q}}function KC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function CX(Q){return arguments.length?this.each(Q==null?FC:(typeof Q==="function"?KC:XC)(Q)):this.node().innerHTML}function HC(){if(this.nextSibling)this.parentNode.appendChild(this)}function fX(){return this.each(HC)}function YC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SX(){return this.each(YC)}function zC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Rq&&U.documentElement.namespaceURI===Rq?U.createElement(Q):U.createElementNS(Z,Q)}}function WC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function LJ(Q){var U=e4(Q);return(U.local?WC:zC)(U)}function vX(Q){var U=typeof Q==="function"?Q:LJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function LC(){return null}function jX(Q,U){var Z=typeof Q==="function"?Q:LJ(Q),K=U==null?LC:typeof U==="function"?U:h6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function BC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function VX(){return this.each(BC)}function AC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function MC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function yX(Q){return this.select(Q?MC:AC)}function kX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function TC(Q){return function(U){Q.call(this,U,this.__data__)}}function RC(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",K=U.indexOf(".");if(K>=0)Z=U.slice(K+1),U=U.slice(0,K);return{type:U,name:Z}})}function OC(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,K=-1,H=U.length,Y;Z<H;++Z)if(Y=U[Z],(!Q.type||Y.type===Q.type)&&Y.name===Q.name)this.removeEventListener(Y.type,Y.listener,Y.options);else U[++K]=Y;if(++K)U.length=K;else delete this.__on}}function IC(Q,U,Z){return function(){var K=this.__on,H,Y=TC(U);if(K){for(var W=0,L=K.length;W<L;++W)if((H=K[W]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=Z),H.value=U;return}}if(this.addEventListener(Q.type,Y,Z),H={type:Q.type,name:Q.name,value:U,listener:Y,options:Z},!K)this.__on=[H];else K.push(H)}}function DX(Q,U,Z){var K=RC(Q+""),H,Y=K.length,W;if(arguments.length<2){var L=this.node().__on;if(L){for(var M=0,O=L.length,T;M<O;++M)for(H=0,T=L[M];H<Y;++H)if((W=K[H]).type===T.type&&W.name===T.name)return T.value}return}L=U?IC:OC;for(H=0;H<Y;++H)this.each(L(K[H],U,Z));return this}function eA(Q,U,Z){var K=WJ(Q),H=K.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=K.document.createEvent("Event"),Z)H.initEvent(U,Z.bubbles,Z.cancelable),H.detail=Z.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function wC(Q,U){return function(){return eA(this,Q,U)}}function PC(Q,U){return function(){return eA(this,Q,U.apply(this,arguments))}}function uX(Q,U){return this.each((typeof U==="function"?PC:wC)(Q,U))}function*bX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length,W;H<Y;++H)if(W=K[H])yield W}var EX=[null];function U2(Q,U){this._groups=Q,this._parents=U}function _M(){return new U2([[document.documentElement]],EX)}function NC(){return this}U2.prototype=_M.prototype={constructor:U2,select:_X,selectAll:$X,selectChild:QX,selectChildren:qX,filter:UX,data:FX,enter:GX,exit:XX,join:KX,merge:HX,selection:NC,order:YX,sort:zX,call:WX,nodes:LX,node:BX,size:AX,empty:MX,each:TX,attr:RX,style:OX,property:IX,classed:PX,text:NX,html:CX,raise:fX,lower:SX,append:vX,insert:jX,remove:VX,clone:yX,datum:kX,on:DX,dispatch:uX,[Symbol.iterator]:bX};var D3=_M;function P2(Q){return typeof Q==="string"?new U2([[document.querySelector(Q)]],[document.documentElement]):new U2([[Q]],EX)}var JM={passive:!1},m8={capture:!0,passive:!1};function Oq(Q){Q.stopImmediatePropagation()}function u3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Y9(Q){var U=Q.document.documentElement,Z=P2(Q).on("dragstart.drag",u3,m8);if("onselectstart"in U)Z.on("selectstart.drag",u3,m8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function BJ(Q,U){var Z=Q.document.documentElement,K=P2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",u3,m8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in Z)K.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var AJ=(Q)=>()=>Q;function MJ(Q,{sourceEvent:U,subject:Z,target:K,identifier:H,active:Y,x:W,y:L,dx:M,dy:O,dispatch:T}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:Z,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},identifier:{value:H,enumerable:!0,configurable:!0},active:{value:Y,enumerable:!0,configurable:!0},x:{value:W,enumerable:!0,configurable:!0},y:{value:L,enumerable:!0,configurable:!0},dx:{value:M,enumerable:!0,configurable:!0},dy:{value:O,enumerable:!0,configurable:!0},_:{value:T}})}MJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function CC(Q){return!Q.ctrlKey&&!Q.button}function fC(){return this.parentNode}function SC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function vC(){return navigator.maxTouchPoints||"ontouchstart"in this}function TJ(){var Q=CC,U=fC,Z=SC,K=vC,H={},Y=x8("start","drag","end"),W=0,L,M,O,T,A=0;function R(v){v.on("mousedown.drag",w).filter(K).on("touchstart.drag",S).on("touchmove.drag",C,JM).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(v,D){if(T||!Q.call(this,v,D))return;var x=N(this,U.call(this,v,D),v,D,"mouse");if(!x)return;P2(v.view).on("mousemove.drag",P,m8).on("mouseup.drag",V,m8),Y9(v.view),Oq(v),O=!1,L=v.clientX,M=v.clientY,x("start",v)}function P(v){if(u3(v),!O){var D=v.clientX-L,x=v.clientY-M;O=D*D+x*x>A}H.mouse("drag",v)}function V(v){P2(v.view).on("mousemove.drag mouseup.drag",null),BJ(v.view,O),u3(v),H.mouse("end",v)}function S(v,D){if(!Q.call(this,v,D))return;var x=v.changedTouches,E=U.call(this,v,D),u=x.length,b,m;for(b=0;b<u;++b)if(m=N(this,E,v,D,x[b].identifier,x[b]))Oq(v),m("start",v,x[b])}function C(v){var D=v.changedTouches,x=D.length,E,u;for(E=0;E<x;++E)if(u=H[D[E].identifier])u3(v),u("drag",v,D[E])}function y(v){var D=v.changedTouches,x=D.length,E,u;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(E=0;E<x;++E)if(u=H[D[E].identifier])Oq(v),u("end",v,D[E])}function N(v,D,x,E,u,b){var m=Y.copy(),s=a2(b||x,D),U1,Q1,h;if((h=Z.call(v,new MJ("beforestart",{sourceEvent:x,target:R,identifier:u,active:W,x:s[0],y:s[1],dx:0,dy:0,dispatch:m}),E))==null)return;return U1=h.x-s[0]||0,Q1=h.y-s[1]||0,function g(p,c,l){var o=s,k;switch(p){case"start":H[u]=g,k=W++;break;case"end":delete H[u],--W;case"drag":s=a2(l||c,D),k=W;break}m.call(p,v,new MJ(p,{sourceEvent:c,subject:h,target:R,identifier:u,active:k,x:s[0]+U1,y:s[1]+Q1,dx:s[0]-o[0],dy:s[1]-o[1],dispatch:m}),E)}}return R.filter=function(v){return arguments.length?(Q=typeof v==="function"?v:AJ(!!v),R):Q},R.container=function(v){return arguments.length?(U=typeof v==="function"?v:AJ(v),R):U},R.subject=function(v){return arguments.length?(Z=typeof v==="function"?v:AJ(v),R):Z},R.touchable=function(v){return arguments.length?(K=typeof v==="function"?v:AJ(!!v),R):K},R.on=function(){var v=Y.on.apply(Y,arguments);return v===Y?R:v},R.clickDistance=function(v){return arguments.length?(A=(v=+v)*v,R):Math.sqrt(A)},R}function RJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function hX(Q,U){var Z=Object.create(Q.prototype);for(var K in U)Z[K]=U[K];return Z}function wJ(){}var OJ=0.7,Pq=1/OJ,z9="\\s*([+-]?\\d+)\\s*",IJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jC=/^#([0-9a-f]{3,8})$/,VC=new RegExp(`^rgb\\(${z9},${z9},${z9}\\)$`),yC=new RegExp(`^rgb\\(${_3},${_3},${_3}\\)$`),kC=new RegExp(`^rgba\\(${z9},${z9},${z9},${IJ}\\)$`),DC=new RegExp(`^rgba\\(${_3},${_3},${_3},${IJ}\\)$`),uC=new RegExp(`^hsl\\(${IJ},${_3},${_3}\\)$`),bC=new RegExp(`^hsla\\(${IJ},${_3},${_3},${IJ}\\)$`),$M={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};RJ(wJ,M4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:QM,formatHex:QM,formatHex8:EC,formatHsl:hC,formatRgb:qM,toString:qM});function QM(){return this.rgb().formatHex()}function EC(){return this.rgb().formatHex8()}function hC(){return KM(this).formatHsl()}function qM(){return this.rgb().formatRgb()}function M4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=jC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?UM(U):Z===3?new M5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Iq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Iq(U>>12&15|U>>8&240,U>>8&15|U>>4&240,U>>4&15|U&240,((U&15)<<4|U&15)/255):null):(U=VC.exec(Q))?new M5(U[1],U[2],U[3],1):(U=yC.exec(Q))?new M5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=kC.exec(Q))?Iq(U[1],U[2],U[3],U[4]):(U=DC.exec(Q))?Iq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=uC.exec(Q))?FM(U[1],U[2]/100,U[3]/100,1):(U=bC.exec(Q))?FM(U[1],U[2]/100,U[3]/100,U[4]):$M.hasOwnProperty(Q)?UM($M[Q]):Q==="transparent"?new M5(NaN,NaN,NaN,0):null}function UM(Q){return new M5(Q>>16&255,Q>>8&255,Q&255,1)}function Iq(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new M5(Q,U,Z,K)}function xC(Q){if(!(Q instanceof wJ))Q=M4(Q);if(!Q)return new M5;return Q=Q.rgb(),new M5(Q.r,Q.g,Q.b,Q.opacity)}function W9(Q,U,Z,K){return arguments.length===1?xC(Q):new M5(Q,U,Z,K==null?1:K)}function M5(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}RJ(M5,W9,hX(wJ,{brighter(Q){return Q=Q==null?Pq:Math.pow(Pq,Q),new M5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?OJ:Math.pow(OJ,Q),new M5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new M5(p8(this.r),p8(this.g),p8(this.b),Nq(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:GM,formatHex:GM,formatHex8:mC,formatRgb:ZM,toString:ZM}));function GM(){return`#${g8(this.r)}${g8(this.g)}${g8(this.b)}`}function mC(){return`#${g8(this.r)}${g8(this.g)}${g8(this.b)}${g8((isNaN(this.opacity)?1:this.opacity)*255)}`}function ZM(){let Q=Nq(this.opacity);return`${Q===1?"rgb(":"rgba("}${p8(this.r)}, ${p8(this.g)}, ${p8(this.b)}${Q===1?")":`, ${Q})`}`}function Nq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function p8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function g8(Q){return Q=p8(Q),(Q<16?"0":"")+Q.toString(16)}function FM(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new A4(Q,U,Z,K)}function KM(Q){if(Q instanceof A4)return new A4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof wJ))Q=M4(Q);if(!Q)return new A4;if(Q instanceof A4)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,K=Q.b/255,H=Math.min(U,Z,K),Y=Math.max(U,Z,K),W=NaN,L=Y-H,M=(Y+H)/2;if(L){if(U===Y)W=(Z-K)/L+(Z<K)*6;else if(Z===Y)W=(K-U)/L+2;else W=(U-Z)/L+4;L/=M<0.5?Y+H:2-Y-H,W*=60}else L=M>0&&M<1?0:W;return new A4(W,L,M,Q.opacity)}function HM(Q,U,Z,K){return arguments.length===1?KM(Q):new A4(Q,U,Z,K==null?1:K)}function A4(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}RJ(A4,HM,hX(wJ,{brighter(Q){return Q=Q==null?Pq:Math.pow(Pq,Q),new A4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?OJ:Math.pow(OJ,Q),new A4(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,K=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-K;return new M5(xX(Q>=240?Q-240:Q+120,H,K),xX(Q,H,K),xX(Q<120?Q+240:Q-120,H,K),this.opacity)},clamp(){return new A4(XM(this.h),wq(this.s),wq(this.l),Nq(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let Q=Nq(this.opacity);return`${Q===1?"hsl(":"hsla("}${XM(this.h)}, ${wq(this.s)*100}%, ${wq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function XM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function wq(Q){return Math.max(0,Math.min(1,Q||0))}function xX(Q,U,Z){return(Q<60?U+(Z-U)*Q/60:Q<180?Z:Q<240?U+(Z-U)*(240-Q)/60:U)*255}function mX(Q,U,Z,K,H){var Y=Q*Q,W=Y*Q;return((1-3*Q+3*Y-W)*U+(4-6*Y+3*W)*Z+(1+3*Q+3*Y-3*W)*K+W*H)/6}function gX(Q){var U=Q.length-1;return function(Z){var K=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[K],Y=Q[K+1],W=K>0?Q[K-1]:2*H-Y,L=K<U-1?Q[K+2]:2*Y-H;return mX((Z-K/U)*U,W,H,Y,L)}}function pX(Q){var U=Q.length;return function(Z){var K=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(K+U-1)%U],Y=Q[K%U],W=Q[(K+1)%U],L=Q[(K+2)%U];return mX((Z-K/U)*U,H,Y,W,L)}}var PJ=(Q)=>()=>Q;function gC(Q,U){return function(Z){return Q+Z*U}}function pC(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(K){return Math.pow(Q+K*U,Z)}}function YM(Q){return(Q=+Q)===1?Cq:function(U,Z){return Z-U?pC(U,Z,Q):PJ(isNaN(U)?Z:U)}}function Cq(Q,U){var Z=U-Q;return Z?gC(Q,Z):PJ(isNaN(Q)?U:Q)}var c8=function Q(U){var Z=YM(U);function K(H,Y){var W=Z((H=W9(H)).r,(Y=W9(Y)).r),L=Z(H.g,Y.g),M=Z(H.b,Y.b),O=Cq(H.opacity,Y.opacity);return function(T){return H.r=W(T),H.g=L(T),H.b=M(T),H.opacity=O(T),H+""}}return K.gamma=Q,K}(1);function zM(Q){return function(U){var Z=U.length,K=Array(Z),H=Array(Z),Y=Array(Z),W,L;for(W=0;W<Z;++W)L=W9(U[W]),K[W]=L.r||0,H[W]=L.g||0,Y[W]=L.b||0;return K=Q(K),H=Q(H),Y=Q(Y),L.opacity=1,function(M){return L.r=K(M),L.g=H(M),L.b=Y(M),L+""}}}var cC=zM(gX),lC=zM(pX);function cX(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,K=U.slice(),H;return function(Y){for(H=0;H<Z;++H)K[H]=Q[H]*(1-Y)+U[H]*Y;return K}}function WM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function LM(Q,U){var Z=U?U.length:0,K=Q?Math.min(Z,Q.length):0,H=Array(K),Y=Array(Z),W;for(W=0;W<K;++W)H[W]=J3(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(L){for(W=0;W<K;++W)Y[W]=H[W](L);return Y}}function lX(Q,U){var Z=new Date;return Q=+Q,U=+U,function(K){return Z.setTime(Q*(1-K)+U*K),Z}}function s2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function iX(Q,U){var Z={},K={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)Z[H]=J3(Q[H],U[H]);else K[H]=U[H];return function(Y){for(H in Z)K[H]=Z[H](Y);return K}}var rX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dX=new RegExp(rX.source,"g");function iC(Q){return function(){return Q}}function dC(Q){return function(U){return Q(U)+""}}function L9(Q,U){var Z=rX.lastIndex=dX.lastIndex=0,K,H,Y,W=-1,L=[],M=[];Q=Q+"",U=U+"";while((K=rX.exec(Q))&&(H=dX.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),L[W])L[W]+=Y;else L[++W]=Y;if((K=K[0])===(H=H[0]))if(L[W])L[W]+=H;else L[++W]=H;else L[++W]=null,M.push({i:W,x:s2(K,H)});Z=dX.lastIndex}if(Z<U.length)if(Y=U.slice(Z),L[W])L[W]+=Y;else L[++W]=Y;return L.length<2?M[0]?dC(M[0].x):iC(U):(U=M.length,function(O){for(var T=0,A;T<U;++T)L[(A=M[T]).i]=A.x(O);return L.join("")})}function J3(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?PJ(U):(Z==="number"?s2:Z==="string"?(K=M4(U))?(U=K,c8):L9:U instanceof M4?c8:U instanceof Date?lX:WM(U)?cX:Array.isArray(U)?LM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?iX:s2)(Q,U)}var BM=180/Math.PI,fq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sq(Q,U,Z,K,H,Y){var W,L,M;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(M=Q*Z+U*K)Z-=Q*M,K-=U*M;if(L=Math.sqrt(Z*Z+K*K))Z/=L,K/=L,M/=L;if(Q*K<U*Z)Q=-Q,U=-U,M=-M,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*BM,skewX:Math.atan(M)*BM,scaleX:W,scaleY:L}}var vq;function AM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?fq:Sq(U.a,U.b,U.c,U.d,U.e,U.f)}function MM(Q){if(Q==null)return fq;if(!vq)vq=document.createElementNS("http://www.w3.org/2000/svg","g");if(vq.setAttribute("transform",Q),!(Q=vq.transform.baseVal.consolidate()))return fq;return Q=Q.matrix,Sq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function TM(Q,U,Z,K){function H(O){return O.length?O.pop()+" ":""}function Y(O,T,A,R,w,P){if(O!==A||T!==R){var V=w.push("translate(",null,U,null,Z);P.push({i:V-4,x:s2(O,A)},{i:V-2,x:s2(T,R)})}else if(A||R)w.push("translate("+A+U+R+Z)}function W(O,T,A,R){if(O!==T){if(O-T>180)T+=360;else if(T-O>180)O+=360;R.push({i:A.push(H(A)+"rotate(",null,K)-2,x:s2(O,T)})}else if(T)A.push(H(A)+"rotate("+T+K)}function L(O,T,A,R){if(O!==T)R.push({i:A.push(H(A)+"skewX(",null,K)-2,x:s2(O,T)});else if(T)A.push(H(A)+"skewX("+T+K)}function M(O,T,A,R,w,P){if(O!==A||T!==R){var V=w.push(H(w)+"scale(",null,",",null,")");P.push({i:V-4,x:s2(O,A)},{i:V-2,x:s2(T,R)})}else if(A!==1||R!==1)w.push(H(w)+"scale("+A+","+R+")")}return function(O,T){var A=[],R=[];return O=Q(O),T=Q(T),Y(O.translateX,O.translateY,T.translateX,T.translateY,A,R),W(O.rotate,T.rotate,A,R),L(O.skewX,T.skewX,A,R),M(O.scaleX,O.scaleY,T.scaleX,T.scaleY,A,R),O=T=null,function(w){var P=-1,V=R.length,S;while(++P<V)A[(S=R[P]).i]=S.x(w);return A.join("")}}}var aX=TM(AM,"px, ","px)","deg)"),sX=TM(MM,", ",")",")");var rC=0.000000000001;function RM(Q){return((Q=Math.exp(Q))+1/Q)/2}function aC(Q){return((Q=Math.exp(Q))-1/Q)/2}function sC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var l8=function Q(U,Z,K){function H(Y,W){var L=Y[0],M=Y[1],O=Y[2],T=W[0],A=W[1],R=W[2],w=T-L,P=A-M,V=w*w+P*P,S,C;if(V<rC)C=Math.log(R/O)/U,S=function(E){return[L+E*w,M+E*P,O*Math.exp(U*E*C)]};else{var y=Math.sqrt(V),N=(R*R-O*O+K*V)/(2*O*Z*y),v=(R*R-O*O-K*V)/(2*R*Z*y),D=Math.log(Math.sqrt(N*N+1)-N),x=Math.log(Math.sqrt(v*v+1)-v);C=(x-D)/U,S=function(E){var u=E*C,b=RM(D),m=O/(Z*y)*(b*sC(U*u+D)-aC(D));return[L+m*w,M+m*P,O*b/RM(U*u+D)]}}return S.duration=C*1000*U/Math.SQRT2,S}return H.rho=function(Y){var W=Math.max(0.001,+Y),L=W*W,M=L*L;return Q(W,L,M)},H}(Math.SQRT2,2,4);var B9=0,CJ=0,NJ=0,IM=1000,jq,fJ,Vq=0,i8=0,yq=0,SJ=typeof performance==="object"&&performance.now?performance:Date,wM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function jJ(){return i8||(wM(tC),i8=SJ.now()+yq)}function tC(){i8=0}function vJ(){this._call=this._time=this._next=null}vJ.prototype=kq.prototype={constructor:vJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?jJ():+Z)+(U==null?0:+U),!this._next&&fJ!==this){if(fJ)fJ._next=this;else jq=this;fJ=this}this._call=Q,this._time=Z,tX()},stop:function(){if(this._call)this._call=null,this._time=1/0,tX()}};function kq(Q,U,Z){var K=new vJ;return K.restart(Q,U,Z),K}function PM(){jJ(),++B9;var Q=jq,U;while(Q){if((U=i8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--B9}function OM(){i8=(Vq=SJ.now())+yq,B9=CJ=0;try{PM()}finally{B9=0,nC(),i8=0}}function oC(){var Q=SJ.now(),U=Q-Vq;if(U>IM)yq-=U,Vq=Q}function nC(){var Q,U=jq,Z,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:jq=Z;fJ=Q,tX(K)}function tX(Q){if(B9)return;if(CJ)CJ=clearTimeout(CJ);var U=Q-i8;if(U>24){if(Q<1/0)CJ=setTimeout(OM,Q-SJ.now()-yq);if(NJ)NJ=clearInterval(NJ)}else{if(!NJ)Vq=SJ.now(),NJ=setInterval(oC,IM);B9=1,wM(OM)}}function VJ(Q,U,Z){var K=new vJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,Z),K}var eC=x8("start","end","cancel","interrupt"),_f=[],fM=0,NM=1,uq=2,Dq=3,CM=4,bq=5,yJ=6;function b3(Q,U,Z,K,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;Jf(Q,Z,{name:U,index:K,group:H,on:eC,tween:_f,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:fM})}function kJ(Q,U){var Z=N2(Q,U);if(Z.state>fM)throw Error("too late; already scheduled");return Z}function c2(Q,U){var Z=N2(Q,U);if(Z.state>Dq)throw Error("too late; already running");return Z}function N2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function Jf(Q,U,Z){var K=Q.__transition,H;K[U]=Z,Z.timer=kq(Y,0,Z.time);function Y(O){if(Z.state=NM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=O)W(O-Z.delay)}function W(O){var T,A,R,w;if(Z.state!==NM)return M();for(T in K){if(w=K[T],w.name!==Z.name)continue;if(w.state===Dq)return VJ(W);if(w.state===CM)w.state=yJ,w.timer.stop(),w.on.call("interrupt",Q,Q.__data__,w.index,w.group),delete K[T];else if(+T<U)w.state=yJ,w.timer.stop(),w.on.call("cancel",Q,Q.__data__,w.index,w.group),delete K[T]}if(VJ(function(){if(Z.state===Dq)Z.state=CM,Z.timer.restart(L,Z.delay,Z.time),L(O)}),Z.state=uq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==uq)return;Z.state=Dq,H=Array(R=Z.tween.length);for(T=0,A=-1;T<R;++T)if(w=Z.tween[T].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=w;H.length=A+1}function L(O){var T=O<Z.duration?Z.ease.call(null,O/Z.duration):(Z.timer.restart(M),Z.state=bq,1),A=-1,R=H.length;while(++A<R)H[A].call(Q,T);if(Z.state===bq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),M()}function M(){Z.state=yJ,Z.timer.stop(),delete K[U];for(var O in K)return;delete Q.__transition}}function m6(Q,U){var Z=Q.__transition,K,H,Y=!0,W;if(!Z)return;U=U==null?null:U+"";for(W in Z){if((K=Z[W]).name!==U){Y=!1;continue}H=K.state>uq&&K.state<bq,K.state=yJ,K.timer.stop(),K.on.call(H?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete Z[W]}if(Y)delete Q.__transition}function oX(Q){return this.each(function(){m6(this,Q)})}function $f(Q,U){var Z,K;return function(){var H=c2(this,Q),Y=H.tween;if(Y!==Z){K=Z=Y;for(var W=0,L=K.length;W<L;++W)if(K[W].name===U){K=K.slice(),K.splice(W,1);break}}H.tween=K}}function Qf(Q,U,Z){var K,H;if(typeof Z!=="function")throw Error();return function(){var Y=c2(this,Q),W=Y.tween;if(W!==K){H=(K=W).slice();for(var L={name:U,value:Z},M=0,O=H.length;M<O;++M)if(H[M].name===U){H[M]=L;break}if(M===O)H.push(L)}Y.tween=H}}function nX(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=N2(this.node(),Z).tween;for(var H=0,Y=K.length,W;H<Y;++H)if((W=K[H]).name===Q)return W.value;return null}return this.each((U==null?$f:Qf)(Z,Q,U))}function A9(Q,U,Z){var K=Q._id;return Q.each(function(){var H=c2(this,K);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return N2(H,K).value[U]}}function DJ(Q,U){var Z;return(typeof U==="number"?s2:U instanceof M4?c8:(Z=M4(U))?(U=Z,c8):L9)(Q,U)}function qf(Q){return function(){this.removeAttribute(Q)}}function Uf(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function Gf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttribute(Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Zf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttributeNS(Q.space,Q.local);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Ff(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),M;if(L==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),M=L+"",W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function Xf(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),M;if(L==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),M=L+"",W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function eX(Q,U){var Z=e4(Q),K=Z==="transform"?sX:DJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Xf:Ff)(Z,K,A9(this,"attr."+Q,U)):U==null?(Z.local?Uf:qf)(Z):(Z.local?Zf:Gf)(Z,K,U))}function Kf(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Hf(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function Yf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Hf(Q,Y);return Z}return H._value=U,H}function zf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Kf(Q,Y);return Z}return H._value=U,H}function _K(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var K=e4(Q);return this.tween(Z,(K.local?Yf:zf)(K,U))}function Wf(Q,U){return function(){kJ(this,Q).delay=+U.apply(this,arguments)}}function Lf(Q,U){return U=+U,function(){kJ(this,Q).delay=U}}function JK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Wf:Lf)(U,Q)):N2(this.node(),U).delay}function Bf(Q,U){return function(){c2(this,Q).duration=+U.apply(this,arguments)}}function Af(Q,U){return U=+U,function(){c2(this,Q).duration=U}}function $K(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Bf:Af)(U,Q)):N2(this.node(),U).duration}function Mf(Q,U){if(typeof U!=="function")throw Error();return function(){c2(this,Q).ease=U}}function QK(Q){var U=this._id;return arguments.length?this.each(Mf(U,Q)):N2(this.node(),U).ease}function Tf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();c2(this,Q).ease=Z}}function qK(Q){if(typeof Q!=="function")throw Error();return this.each(Tf(this._id,Q))}function UK(Q){if(typeof Q!=="function")Q=K9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[H]=[],M,O=0;O<W;++O)if((M=Y[O])&&Q.call(M,M.__data__,O,Y))L.push(M);return new Z5(K,this._parents,this._name,this._id)}function GK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,K=U.length,H=Z.length,Y=Math.min(K,H),W=Array(K),L=0;L<Y;++L)for(var M=U[L],O=Z[L],T=M.length,A=W[L]=Array(T),R,w=0;w<T;++w)if(R=M[w]||O[w])A[w]=R;for(;L<K;++L)W[L]=U[L];return new Z5(W,this._parents,this._name,this._id)}function Rf(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var Z=U.indexOf(".");if(Z>=0)U=U.slice(0,Z);return!U||U==="start"})}function Of(Q,U,Z){var K,H,Y=Rf(U)?kJ:c2;return function(){var W=Y(this,Q),L=W.on;if(L!==K)(H=(K=L).copy()).on(U,Z);W.on=H}}function ZK(Q,U){var Z=this._id;return arguments.length<2?N2(this.node(),Z).on.on(Q):this.each(Of(Z,Q,U))}function If(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function FK(){return this.on("end.remove",If(this._id))}function XK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=h6(Q);for(var K=this._groups,H=K.length,Y=Array(H),W=0;W<H;++W)for(var L=K[W],M=L.length,O=Y[W]=Array(M),T,A,R=0;R<M;++R)if((T=L[R])&&(A=Q.call(T,T.__data__,R,L))){if("__data__"in T)A.__data__=T.__data__;O[R]=A,b3(O[R],U,Z,R,O,N2(T,Z))}return new Z5(Y,this._parents,U,Z)}function KK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=H9(Q);for(var K=this._groups,H=K.length,Y=[],W=[],L=0;L<H;++L)for(var M=K[L],O=M.length,T,A=0;A<O;++A)if(T=M[A]){for(var R=Q.call(T,T.__data__,A,M),w,P=N2(T,Z),V=0,S=R.length;V<S;++V)if(w=R[V])b3(w,U,Z,V,R,P);Y.push(R),W.push(T)}return new Z5(Y,W,U,Z)}var wf=D3.prototype.constructor;function HK(){return new wf(this._groups,this._parents)}function Pf(Q,U){var Z,K,H;return function(){var Y=x6(this,Q),W=(this.style.removeProperty(Q),x6(this,Q));return Y===W?null:Y===Z&&W===K?H:H=U(Z=Y,K=W)}}function SM(Q){return function(){this.style.removeProperty(Q)}}function Nf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=x6(this,Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Cf(Q,U,Z){var K,H,Y;return function(){var W=x6(this,Q),L=Z(this),M=L+"";if(L==null)M=L=(this.style.removeProperty(Q),x6(this,Q));return W===M?null:W===K&&M===H?Y:(H=M,Y=U(K=W,L))}}function ff(Q,U){var Z,K,H,Y="style."+U,W="end."+Y,L;return function(){var M=c2(this,Q),O=M.on,T=M.value[Y]==null?L||(L=SM(U)):void 0;if(O!==Z||H!==T)(K=(Z=O).copy()).on(W,H=T);M.on=K}}function YK(Q,U,Z){var K=(Q+="")==="transform"?aX:DJ;return U==null?this.styleTween(Q,Pf(Q,K)).on("end.style."+Q,SM(Q)):typeof U==="function"?this.styleTween(Q,Cf(Q,K,A9(this,"style."+Q,U))).each(ff(this._id,Q)):this.styleTween(Q,Nf(Q,K,U),Z).on("end.style."+Q,null)}function Sf(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function vf(Q,U,Z){var K,H;function Y(){var W=U.apply(this,arguments);if(W!==H)K=(H=W)&&Sf(Q,W,Z);return K}return Y._value=U,Y}function zK(Q,U,Z){var K="style."+(Q+="");if(arguments.length<2)return(K=this.tween(K))&&K._value;if(U==null)return this.tween(K,null);if(typeof U!=="function")throw Error();return this.tween(K,vf(Q,U,Z==null?"":Z))}function jf(Q){return function(){this.textContent=Q}}function Vf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function WK(Q){return this.tween("text",typeof Q==="function"?Vf(A9(this,"text",Q)):jf(Q==null?"":Q+""))}function yf(Q){return function(U){this.textContent=Q.call(this,U)}}function kf(Q){var U,Z;function K(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&yf(H);return U}return K._value=Q,K}function LK(Q){var U="text";if(arguments.length<1)return(U=this.tween(U))&&U._value;if(Q==null)return this.tween(U,null);if(typeof Q!=="function")throw Error();return this.tween(U,kf(Q))}function BK(){var Q=this._name,U=this._id,Z=Eq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O]){var T=N2(M,U);b3(M,Q,Z,O,W,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new Z5(K,this._parents,Q,Z)}function AK(){var Q,U,Z=this,K=Z._id,H=Z.size();return new Promise(function(Y,W){var L={value:W},M={value:function(){if(--H===0)Y()}};if(Z.each(function(){var O=c2(this,K),T=O.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(L),U._.interrupt.push(L),U._.end.push(M);O.on=U}),H===0)Y()})}var Df=0;function Z5(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function vM(Q){return D3().transition(Q)}function Eq(){return++Df}var E3=D3.prototype;Z5.prototype=vM.prototype={constructor:Z5,select:XK,selectAll:KK,selectChild:E3.selectChild,selectChildren:E3.selectChildren,filter:UK,merge:GK,selection:HK,transition:BK,call:E3.call,nodes:E3.nodes,node:E3.node,size:E3.size,empty:E3.empty,each:E3.each,on:ZK,attr:eX,attrTween:_K,style:YK,styleTween:zK,text:WK,textTween:LK,remove:FK,tween:nX,delay:JK,duration:$K,ease:QK,easeVarying:qK,end:AK,[Symbol.iterator]:E3[Symbol.iterator]};function hq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var uf={time:null,delay:0,duration:250,ease:hq};function bf(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function MK(Q){var U,Z;if(Q instanceof Z5)U=Q._id,Q=Q._name;else U=Eq(),(Z=uf).time=jJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,M,O=0;O<L;++O)if(M=W[O])b3(M,Q,U,O,W,Z||bf(M,U));return new Z5(K,this._parents,Q,U)}D3.prototype.interrupt=oX;D3.prototype.transition=MK;var uJ=(Q)=>()=>Q;function TK(Q,{sourceEvent:U,target:Z,transform:K,dispatch:H}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:Z,enumerable:!0,configurable:!0},transform:{value:K,enumerable:!0,configurable:!0},_:{value:H}})}function T4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}T4.prototype={constructor:T4,scale:function(Q){return Q===1?this:new T4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new T4(this.k,this.x+this.k*Q,this.y+this.k*U)},apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},applyX:function(Q){return Q*this.k+this.x},applyY:function(Q){return Q*this.k+this.y},invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},invertX:function(Q){return(Q-this.x)/this.k},invertY:function(Q){return(Q-this.y)/this.k},rescaleX:function(Q){return Q.copy().domain(Q.range().map(this.invertX,this).map(Q.invert,Q))},rescaleY:function(Q){return Q.copy().domain(Q.range().map(this.invertY,this).map(Q.invert,Q))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var d8=new T4(1,0,0);bJ.prototype=T4.prototype;function bJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return d8;return Q.__zoom}function xq(Q){Q.stopImmediatePropagation()}function r8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Ef(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function hf(){var Q=this;if(Q instanceof SVGElement){if(Q=Q.ownerSVGElement||Q,Q.hasAttribute("viewBox"))return Q=Q.viewBox.baseVal,[[Q.x,Q.y],[Q.x+Q.width,Q.y+Q.height]];return[[0,0],[Q.width.baseVal.value,Q.height.baseVal.value]]}return[[0,0],[Q.clientWidth,Q.clientHeight]]}function jM(){return this.__zoom||d8}function xf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function mf(){return navigator.maxTouchPoints||"ontouchstart"in this}function gf(Q,U,Z){var K=Q.invertX(U[0][0])-Z[0][0],H=Q.invertX(U[1][0])-Z[1][0],Y=Q.invertY(U[0][1])-Z[0][1],W=Q.invertY(U[1][1])-Z[1][1];return Q.translate(H>K?(K+H)/2:Math.min(0,K)||Math.max(0,H),W>Y?(Y+W)/2:Math.min(0,Y)||Math.max(0,W))}function EJ(){var Q=Ef,U=hf,Z=gf,K=xf,H=mf,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],L=250,M=l8,O=x8("start","zoom","end"),T,A,R,w=500,P=150,V=0,S=10;function C(h){h.property("__zoom",jM).on("wheel.zoom",u,{passive:!1}).on("mousedown.zoom",b).on("dblclick.zoom",m).filter(H).on("touchstart.zoom",s).on("touchmove.zoom",U1).on("touchend.zoom touchcancel.zoom",Q1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(h,g,p,c){var l=h.selection?h.selection():h;if(l.property("__zoom",jM),h!==l)D(h,g,p,c);else l.interrupt().each(function(){x(this,arguments).event(c).start().zoom(null,typeof g==="function"?g.apply(this,arguments):g).end()})},C.scaleBy=function(h,g,p,c){C.scaleTo(h,function(){var l=this.__zoom.k,o=typeof g==="function"?g.apply(this,arguments):g;return l*o},p,c)},C.scaleTo=function(h,g,p,c){C.transform(h,function(){var l=U.apply(this,arguments),o=this.__zoom,k=p==null?v(l):typeof p==="function"?p.apply(this,arguments):p,t=o.invert(k),_1=typeof g==="function"?g.apply(this,arguments):g;return Z(N(y(o,_1),k,t),l,W)},p,c)},C.translateBy=function(h,g,p,c){C.transform(h,function(){return Z(this.__zoom.translate(typeof g==="function"?g.apply(this,arguments):g,typeof p==="function"?p.apply(this,arguments):p),U.apply(this,arguments),W)},null,c)},C.translateTo=function(h,g,p,c,l){C.transform(h,function(){var o=U.apply(this,arguments),k=this.__zoom,t=c==null?v(o):typeof c==="function"?c.apply(this,arguments):c;return Z(d8.translate(t[0],t[1]).scale(k.k).translate(typeof g==="function"?-g.apply(this,arguments):-g,typeof p==="function"?-p.apply(this,arguments):-p),o,W)},c,l)};function y(h,g){return g=Math.max(Y[0],Math.min(Y[1],g)),g===h.k?h:new T4(g,h.x,h.y)}function N(h,g,p){var c=g[0]-p[0]*h.k,l=g[1]-p[1]*h.k;return c===h.x&&l===h.y?h:new T4(h.k,c,l)}function v(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function D(h,g,p,c){h.on("start.zoom",function(){x(this,arguments).event(c).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(c).end()}).tween("zoom",function(){var l=this,o=arguments,k=x(l,o).event(c),t=U.apply(l,o),_1=p==null?v(t):typeof p==="function"?p.apply(l,o):p,a=Math.max(t[1][0]-t[0][0],t[1][1]-t[0][1]),H1=l.__zoom,O1=typeof g==="function"?g.apply(l,o):g,L1=M(H1.invert(_1).concat(a/H1.k),O1.invert(_1).concat(a/O1.k));return function(T1){if(T1===1)T1=O1;else{var G1=L1(T1),R1=a/G1[2];T1=new T4(R1,_1[0]-G1[0]*R1,_1[1]-G1[1]*R1)}k.zoom(null,T1)}})}function x(h,g,p){return!p&&h.__zooming||new E(h,g)}function E(h,g){this.that=h,this.args=g,this.active=0,this.sourceEvent=null,this.extent=U.apply(h,g),this.taps=0}E.prototype={event:function(h){if(h)this.sourceEvent=h;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(h,g){if(this.mouse&&h!=="mouse")this.mouse[1]=g.invert(this.mouse[0]);if(this.touch0&&h!=="touch")this.touch0[1]=g.invert(this.touch0[0]);if(this.touch1&&h!=="touch")this.touch1[1]=g.invert(this.touch1[0]);return this.that.__zoom=g,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(h){var g=P2(this.that).datum();O.call(h,this.that,new TK(h,{sourceEvent:this.sourceEvent,target:C,type:h,transform:this.that.__zoom,dispatch:O}),g)}};function u(h,...g){if(!Q.apply(this,arguments))return;var p=x(this,g).event(h),c=this.__zoom,l=Math.max(Y[0],Math.min(Y[1],c.k*Math.pow(2,K.apply(this,arguments)))),o=a2(h);if(p.wheel){if(p.mouse[0][0]!==o[0]||p.mouse[0][1]!==o[1])p.mouse[1]=c.invert(p.mouse[0]=o);clearTimeout(p.wheel)}else if(c.k===l)return;else p.mouse=[o,c.invert(o)],m6(this),p.start();r8(h),p.wheel=setTimeout(k,P),p.zoom("mouse",Z(N(y(c,l),p.mouse[0],p.mouse[1]),p.extent,W));function k(){p.wheel=null,p.end()}}function b(h,...g){if(R||!Q.apply(this,arguments))return;var p=h.currentTarget,c=x(this,g,!0).event(h),l=P2(h.view).on("mousemove.zoom",_1,!0).on("mouseup.zoom",a,!0),o=a2(h,p),k=h.clientX,t=h.clientY;Y9(h.view),xq(h),c.mouse=[o,this.__zoom.invert(o)],m6(this),c.start();function _1(H1){if(r8(H1),!c.moved){var O1=H1.clientX-k,L1=H1.clientY-t;c.moved=O1*O1+L1*L1>V}c.event(H1).zoom("mouse",Z(N(c.that.__zoom,c.mouse[0]=a2(H1,p),c.mouse[1]),c.extent,W))}function a(H1){l.on("mousemove.zoom mouseup.zoom",null),BJ(H1.view,c.moved),r8(H1),c.event(H1).end()}}function m(h,...g){if(!Q.apply(this,arguments))return;var p=this.__zoom,c=a2(h.changedTouches?h.changedTouches[0]:h,this),l=p.invert(c),o=p.k*(h.shiftKey?0.5:2),k=Z(N(y(p,o),c,l),U.apply(this,g),W);if(r8(h),L>0)P2(this).transition().duration(L).call(D,k,c,h);else P2(this).call(C.transform,k,c,h)}function s(h,...g){if(!Q.apply(this,arguments))return;var p=h.touches,c=p.length,l=x(this,g,h.changedTouches.length===c).event(h),o,k,t,_1;xq(h);for(k=0;k<c;++k)if(t=p[k],_1=a2(t,this),_1=[_1,this.__zoom.invert(_1),t.identifier],!l.touch0)l.touch0=_1,o=!0,l.taps=1+!!T;else if(!l.touch1&&l.touch0[2]!==_1[2])l.touch1=_1,l.taps=0;if(T)T=clearTimeout(T);if(o){if(l.taps<2)A=_1[0],T=setTimeout(function(){T=null},w);m6(this),l.start()}}function U1(h,...g){if(!this.__zooming)return;var p=x(this,g).event(h),c=h.changedTouches,l=c.length,o,k,t,_1;r8(h);for(o=0;o<l;++o)if(k=c[o],t=a2(k,this),p.touch0&&p.touch0[2]===k.identifier)p.touch0[0]=t;else if(p.touch1&&p.touch1[2]===k.identifier)p.touch1[0]=t;if(k=p.that.__zoom,p.touch1){var a=p.touch0[0],H1=p.touch0[1],O1=p.touch1[0],L1=p.touch1[1],T1=(T1=O1[0]-a[0])*T1+(T1=O1[1]-a[1])*T1,G1=(G1=L1[0]-H1[0])*G1+(G1=L1[1]-H1[1])*G1;k=y(k,Math.sqrt(T1/G1)),t=[(a[0]+O1[0])/2,(a[1]+O1[1])/2],_1=[(H1[0]+L1[0])/2,(H1[1]+L1[1])/2]}else if(p.touch0)t=p.touch0[0],_1=p.touch0[1];else return;p.zoom("touch",Z(N(k,t,_1),p.extent,W))}function Q1(h,...g){if(!this.__zooming)return;var p=x(this,g).event(h),c=h.changedTouches,l=c.length,o,k;if(xq(h),R)clearTimeout(R);R=setTimeout(function(){R=null},w);for(o=0;o<l;++o)if(k=c[o],p.touch0&&p.touch0[2]===k.identifier)delete p.touch0;else if(p.touch1&&p.touch1[2]===k.identifier)delete p.touch1;if(p.touch1&&!p.touch0)p.touch0=p.touch1,delete p.touch1;if(p.touch0)p.touch0[1]=this.__zoom.invert(p.touch0[0]);else if(p.end(),p.taps===2){if(k=a2(k,this),Math.hypot(A[0]-k[0],A[1]-k[1])<S){var t=P2(this).on("dblclick.zoom");if(t)t.apply(this,arguments)}}}return C.wheelDelta=function(h){return arguments.length?(K=typeof h==="function"?h:uJ(+h),C):K},C.filter=function(h){return arguments.length?(Q=typeof h==="function"?h:uJ(!!h),C):Q},C.touchable=function(h){return arguments.length?(H=typeof h==="function"?h:uJ(!!h),C):H},C.extent=function(h){return arguments.length?(U=typeof h==="function"?h:uJ([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),C):U},C.scaleExtent=function(h){return arguments.length?(Y[0]=+h[0],Y[1]=+h[1],C):[Y[0],Y[1]]},C.translateExtent=function(h){return arguments.length?(W[0][0]=+h[0][0],W[1][0]=+h[1][0],W[0][1]=+h[0][1],W[1][1]=+h[1][1],C):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},C.constrain=function(h){return arguments.length?(Z=h,C):Z},C.duration=function(h){return arguments.length?(L=+h,C):L},C.interpolate=function(h){return arguments.length?(M=h,C):M},C.on=function(){var h=O.on.apply(O,arguments);return h===O?C:h},C.clickDistance=function(h){return arguments.length?(V=(h=+h)*h,C):Math.sqrt(V)},C.tapDistance=function(h){return arguments.length?(S=+h,C):S},C}var F5={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:K}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},O9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],PK=["Enter"," ","Escape"],NK={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:Q,x:U,y:Z})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${Z}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"},l6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(l6||(l6={}));var h3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(h3||(h3={}));var a8;(function(Q){Q.Partial="partial",Q.Full="full"})(a8||(a8={}));var CK={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},$3;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})($3||($3={}));var T9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(T9||(T9={}));var E1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(E1||(E1={}));var VM={[E1.Left]:E1.Right,[E1.Right]:E1.Left,[E1.Top]:E1.Bottom,[E1.Bottom]:E1.Top},fK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),iM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),SK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var xJ=(Q,U=[0,0])=>{let{width:Z,height:K}=J4(Q),H=Q.origin??U,Y=Z*H[0],W=K*H[1];return{x:Q.position.x-Y,y:Q.position.y-W}},vK=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,K=Q.reduce((H,Y)=>{let W=typeof Y==="string",L=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)L=W?U.nodeLookup.get(Y):!SK(Y)?U.nodeLookup.get(Y.id):Y;if(!L)return H;return Z=!0,iq(H,pq(L,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?dq(K):{x:0,y:0,width:0,height:0}},n8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},K=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=iq(Z,pq(H)),K=!0}),K?dq(Z):{x:0,y:0,width:0,height:0}},cq=(Q,U,[Z,K,H]=[0,0,1],Y=!1,W=!1)=>{let L=(U.x-Z)/H,M=(U.y-K)/H,O=U.width/H,T=U.height/H,A=[];for(let R of Q.values()){let{measured:w,selectable:P=!0,hidden:V=!1}=R;if(W&&!P||V)continue;let S=w.width??R.width??R.initialWidth??0,C=w.height??R.height??R.initialHeight??0,{x:y,y:N}=R.internals.positionAbsolute,v=tM(L,M,O,T,y,N,S,C),D=S*C,x=Y&&v>0;if(!R.internals.handleBounds||x||v>=D||R.dragging)A.push(R)}return A},dM=(Q,U)=>{let Z=new Set;return Q.forEach((K)=>{Z.add(K.id)}),U.filter((K)=>Z.has(K.source)||Z.has(K.target))};function pf(Q,U){let Z=new Map,K=U?.nodes?new Set(U.nodes.map((H)=>H.id)):null;return Q.forEach((H)=>{let Y;if(U?.includeHiddenNodes){let{width:W,height:L}=J4(H);Y=W>0&&L>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!K||K.has(H.id)))Z.set(H.id,H)}),Z}async function rM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let L=pf(Q,W),M=n8(L),O=gJ(M,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await K.setViewport(O,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function jK({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:K=[0,0],nodeExtent:H,onError:Y}){let W=Z.get(Q),L=W.parentId?Z.get(W.parentId):void 0,{x:M,y:O}=L?L.internals.positionAbsolute:{x:0,y:0},T=W.origin??K,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!L)Y?.("005",F5.error005());else{let{width:w,height:P}=J4(L);if(w&&P)A=[[M,O],[M+w,O+P]]}else if(L&&o8(W.extent))A=[[W.extent[0][0]+M,W.extent[0][1]+O],[W.extent[1][0]+M,W.extent[1][1]+O]];let R=o8(A)?s8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",F5.error015());return{position:{x:R.x-M+(W.measured.width??0)*T[0],y:R.y-O+(W.measured.height??0)*T[1]},positionAbsolute:R}}async function aM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((R)=>R.id)),W=[];for(let R of Z){if(R.deletable===!1)continue;let w=Y.has(R.id),P=!w&&R.parentId&&W.find((V)=>V.id===R.parentId);if(w||P)W.push(R)}let L=new Set(U.map((R)=>R.id)),M=K.filter((R)=>R.deletable!==!1),T=dM(W,M);for(let R of M)if(L.has(R.id)&&!T.find((P)=>P.id===R.id))T.push(R);if(!H)return{edges:T,nodes:W};let A=await H({nodes:W,edges:T});if(typeof A==="boolean")return A?{edges:T,nodes:W}:{edges:[],nodes:[]};return A}var R9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),s8=(Q={x:0,y:0},U,Z)=>({x:R9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:R9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function sM(Q,U,Z){let{width:K,height:H}=J4(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return s8(Q,[[Y,W],[Y+K,W+H]],U)}var yM=(Q,U,Z)=>{if(Q<U)return R9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-R9(Math.abs(Q-Z),1,U)/U;return 0},lq=(Q,U,Z=15,K=40)=>{let H=yM(Q.x,K,U.width-K)*Z,Y=yM(Q.y,K,U.height-K)*Z;return[H,Y]},iq=(Q,U)=>({x:Math.min(Q.x,U.x),y:Math.min(Q.y,U.y),x2:Math.max(Q.x2,U.x2),y2:Math.max(Q.y2,U.y2)}),wK=({x:Q,y:U,width:Z,height:K})=>({x:Q,y:U,x2:Q+Z,y2:U+K}),dq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),I9=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:xJ(Q,U);return{x:Z,y:K,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},pq=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:xJ(Q,U);return{x:Z,y:K,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},VK=(Q,U)=>dq(iq(wK(Q),wK(U))),tM=(Q,U,Z,K,H,Y,W,L)=>{let M=Math.max(0,Math.min(Q+Z,H+W)-Math.max(Q,H)),O=Math.max(0,Math.min(U+K,Y+L)-Math.max(U,Y));return Math.ceil(M*O)},mJ=(Q,U)=>tM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),yK=(Q)=>e5(Q.width)&&e5(Q.height)&&e5(Q.x)&&e5(Q.y),e5=(Q)=>!isNaN(Q)&&isFinite(Q),kK=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},w9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},P9=({x:Q,y:U},[Z,K,H],Y=!1,W=[1,1])=>{let L={x:(Q-Z)/H,y:(U-K)/H};return Y?w9(L,W):L},t8=({x:Q,y:U},[Z,K,H])=>{return{x:Q*H+Z,y:U*H+K}};function M9(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(Z)}if(typeof Q==="string"&&Q.endsWith("%")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(U*Z*0.01)}return console.error(`The padding value "${Q}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function cf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=M9(Q,Z),H=M9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=M9(Q.top??Q.y??0,Z),H=M9(Q.bottom??Q.y??0,Z),Y=M9(Q.left??Q.x??0,U),W=M9(Q.right??Q.x??0,U);return{top:K,right:W,bottom:H,left:Y,x:Y+W,y:K+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function lf(Q,U,Z,K,H,Y){let{x:W,y:L}=t8(Q,[U,Z,K]),{x:M,y:O}=t8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),T=H-M,A=Y-O;return{left:Math.floor(W),top:Math.floor(L),right:Math.floor(T),bottom:Math.floor(A)}}var gJ=(Q,U,Z,K,H,Y)=>{let W=cf(Y,U,Z),L=(U-W.x)/Q.width,M=(Z-W.y)/Q.height,O=Math.min(L,M),T=R9(O,K,H),A=Q.x+Q.width/2,R=Q.y+Q.height/2,w=U/2-A*T,P=Z/2-R*T,V=lf(Q,w,P,T,U,Z),S={left:Math.min(V.left-W.left,0),top:Math.min(V.top-W.top,0),right:Math.min(V.right-W.right,0),bottom:Math.min(V.bottom-W.bottom,0)};return{x:w-S.left+S.right,y:P-S.top+S.bottom,zoom:T}},N9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function o8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function J4(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function DK(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function uK(Q,U={width:0,height:0},Z,K,H){let Y={...Q},W=K.get(Z);if(W){let L=W.origin||H;Y.x+=W.internals.positionAbsolute.x-(U.width??0)*L[0],Y.y+=W.internals.positionAbsolute.y-(U.height??0)*L[1]}return Y}function bK(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function oM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function nM(Q){return{...NK,...Q||{}}}function df(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let K=U.getBoundingClientRect();if(K.width===0&&K.height===0)return!0;let H=document.querySelector(`.${Q}-flow__attribution`);if(!H||!H.isConnected)return!1;let Y=getComputedStyle(H);if(Y.display==="none")return!1;if(Y.visibility==="hidden"||Y.visibility==="collapse")return!1;if(Y.opacity==="0")return!1;let W=H.getBoundingClientRect();if(W.width===0&&W.height===0)return!1;return!0}var kM=!1;function eM(Q){if(kM)return;kM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!df(Q))console.warn(`${U}: It seems like you are hiding the attribution. Please only do this when you are subscribed to ${U} Pro: https://${Q}flow.dev/remove-attr
241
+ %cYou can ignore this warning if you are subscribed.`,"font-style: italic;")},1000)}function EK(Q){return Q===null?null:Q?"valid":"invalid"}function hJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:H}){let{x:Y,y:W}=_4(Q),L=P9({x:Y-(H?.left??0),y:W-(H?.top??0)},K),{x:M,y:O}=Z?w9(L,U):L;return{xSnapped:M,ySnapped:O,...L}}var rq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),hK=(Q)=>Q?.getRootNode?.()||window?.document,rf=["INPUT","SELECT","TEXTAREA"];function xK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return rf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var mK=(Q)=>("clientX"in Q),_4=(Q,U)=>{let Z=mK(Q),K=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:H-(U?.top??0)}},DM=(Q,U,Z,K,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((W)=>{let L=W.getBoundingClientRect();return{id:W.getAttribute("data-handleid"),type:Q,nodeId:H,position:W.getAttribute("data-handlepos"),x:(L.left-Z.left)/K,y:(L.top-Z.top)/K,...rq(W)}})};function aq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,sourceControlX:H,sourceControlY:Y,targetControlX:W,targetControlY:L}){let M=Q*0.125+H*0.375+W*0.375+Z*0.125,O=U*0.125+Y*0.375+L*0.375+K*0.125,T=Math.abs(M-Q),A=Math.abs(O-U);return[M,O,T,A]}function mq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function uM({pos:Q,x1:U,y1:Z,x2:K,y2:H,c:Y}){switch(Q){case E1.Left:return[U-mq(U-K,Y),Z];case E1.Right:return[U+mq(K-U,Y),Z];case E1.Top:return[U,Z-mq(Z-H,Y)];case E1.Bottom:return[U,Z+mq(H-Z,Y)]}}function sq({sourceX:Q,sourceY:U,sourcePosition:Z=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top,curvature:W=0.25}){let[L,M]=uM({pos:Z,x1:Q,y1:U,x2:K,y2:H,c:W}),[O,T]=uM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:W}),[A,R,w,P]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:L,sourceControlY:M,targetControlX:O,targetControlY:T});return[`M${Q},${U} C${L},${M} ${O},${T} ${K},${H}`,A,R,w,P]}function gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,W=Math.abs(K-U)/2,L=K<U?K+W:K-W;return[Y,L,H,W]}function _T({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:K=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return K;let W=H&&Z?K+1000:K,L=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return W+L}function JT({sourceNode:Q,targetNode:U,width:Z,height:K,transform:H}){let Y=iq(pq(Q),pq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let W={x:-H[0]/H[2],y:-H[1]/H[2],width:Z/H[2],height:K/H[2]};return mJ(W,dq(Y))>0}var af=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,sf=(Q,U)=>{return U.some((Z)=>Z.source===Q.source&&Z.target===Q.target&&(Z.sourceHandle===Q.sourceHandle||!Z.sourceHandle&&!Q.sourceHandle)&&(Z.targetHandle===Q.targetHandle||!Z.targetHandle&&!Q.targetHandle))},$T=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",F5.error006()),U;let K=Z.getEdgeId||af,H;if(fK(Q))H={...Q};else H={...Q,id:K(Q)};if(sf(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function tq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[H,Y,W,L]=gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,H,Y,W,L]}var bM={[E1.Left]:{x:-1,y:0},[E1.Right]:{x:1,y:0},[E1.Top]:{x:0,y:-1},[E1.Bottom]:{x:0,y:1}},tf=({source:Q,sourcePosition:U=E1.Bottom,target:Z})=>{if(U===E1.Left||U===E1.Right)return Q.x<Z.x?{x:1,y:0}:{x:-1,y:0};return Q.y<Z.y?{x:0,y:1}:{x:0,y:-1}},EM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function of({source:Q,sourcePosition:U=E1.Bottom,target:Z,targetPosition:K=E1.Top,center:H,offset:Y,stepPosition:W}){let L=bM[U],M=bM[K],O={x:Q.x+L.x*Y,y:Q.y+L.y*Y},T={x:Z.x+M.x*Y,y:Z.y+M.y*Y},A=tf({source:O,sourcePosition:U,target:T}),R=A.x!==0?"x":"y",w=A[R],P=[],V,S,C={x:0,y:0},y={x:0,y:0},[,,N,v]=gK({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(L[R]*M[R]===-1){if(R==="x")V=H.x??O.x+(T.x-O.x)*W,S=H.y??(O.y+T.y)/2;else V=H.x??(O.x+T.x)/2,S=H.y??O.y+(T.y-O.y)*W;let u=[{x:V,y:O.y},{x:V,y:T.y}],b=[{x:O.x,y:S},{x:T.x,y:S}];if(L[R]===w)P=R==="x"?u:b;else P=R==="x"?b:u}else{let u=[{x:O.x,y:T.y}],b=[{x:T.x,y:O.y}];if(R==="x")P=L.x===w?b:u;else P=L.y===w?u:b;if(U===K){let h=Math.abs(Q[R]-Z[R]);if(h<=Y){let g=Math.min(Y-1,Y-h);if(L[R]===w)C[R]=(O[R]>Q[R]?-1:1)*g;else y[R]=(T[R]>Z[R]?-1:1)*g}}if(U!==K){let h=R==="x"?"y":"x",g=L[R]===M[h],p=O[h]>T[h],c=O[h]<T[h];if(L[R]===1&&(!g&&p||g&&c)||L[R]!==1&&(!g&&c||g&&p))P=R==="x"?u:b}let m={x:O.x+C.x,y:O.y+C.y},s={x:T.x+y.x,y:T.y+y.y},U1=Math.max(Math.abs(m.x-P[0].x),Math.abs(s.x-P[0].x)),Q1=Math.max(Math.abs(m.y-P[0].y),Math.abs(s.y-P[0].y));if(U1>=Q1)V=(m.x+s.x)/2,S=P[0].y;else V=P[0].x,S=(m.y+s.y)/2}let D={x:O.x+C.x,y:O.y+C.y},x={x:T.x+y.x,y:T.y+y.y};return[[Q,...D.x!==P[0].x||D.y!==P[0].y?[D]:[],...P,...x.x!==P[P.length-1].x||x.y!==P[P.length-1].y?[x]:[],Z],V,S,N,v]}function nf(Q,U,Z,K){let H=Math.min(EM(Q,U)/2,EM(U,Z)/2,K),{x:Y,y:W}=U;if(Q.x===Y&&Y===Z.x||Q.y===W&&W===Z.y)return`L${Y} ${W}`;if(Q.y===W){let O=Q.x<Z.x?-1:1,T=Q.y<Z.y?1:-1;return`L ${Y+H*O},${W}Q ${Y},${W} ${Y},${W+H*T}`}let L=Q.x<Z.x?1:-1,M=Q.y<Z.y?-1:1;return`L ${Y},${W+H*M}Q ${Y},${W} ${Y+H*L},${W}`}function pJ({sourceX:Q,sourceY:U,sourcePosition:Z=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top,borderRadius:W=5,centerX:L,centerY:M,offset:O=20,stepPosition:T=0.5}){let[A,R,w,P,V]=of({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:H},targetPosition:Y,center:{x:L,y:M},offset:O,stepPosition:T}),S=`M${A[0].x} ${A[0].y}`;for(let C=1;C<A.length-1;C++)S+=nf(A[C-1],A[C],A[C+1],W);return S+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[S,R,w,P,V]}function hM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function QT(Q){let{sourceNode:U,targetNode:Z}=Q;if(!hM(U)||!hM(Z))return null;let K=U.internals.handleBounds||xM(U.handles),H=Z.internals.handleBounds||xM(Z.handles),Y=mM(K?.source??[],Q.sourceHandle),W=mM(Q.connectionMode===l6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",F5.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let L=Y?.position||E1.Bottom,M=W?.position||E1.Top,O=i6(U,Y,L),T=i6(Z,W,M);return{sourceX:O.x,sourceY:O.y,targetX:T.x,targetY:T.y,sourcePosition:L,targetPosition:M}}function xM(Q){if(!Q)return null;let U=[],Z=[];for(let K of Q)if(K.width=K.width??1,K.height=K.height??1,K.type==="source")U.push(K);else if(K.type==="target")Z.push(K);return{source:U,target:Z}}function i6(Q,U,Z=E1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:L}=U??J4(Q);if(K)return{x:H+W/2,y:Y+L/2};switch(U?.position??Z){case E1.Top:return{x:H+W/2,y:Y};case E1.Right:return{x:H+W,y:Y+L/2};case E1.Bottom:return{x:H+W/2,y:Y+L};case E1.Left:return{x:H,y:Y+L/2}}}function mM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function oq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((K)=>`${K}=${Q[K]}`).join("&")}`}function qT(Q,{id:U,defaultColor:Z,defaultMarkerStart:K,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((W,L)=>{return[L.markerStart||K,L.markerEnd||H].forEach((M)=>{if(M&&typeof M==="object"){let O=oq(M,U);if(!Y.has(O))W.push({id:O,color:M.color||Z,...M}),Y.add(O)}}),W},[]).sort((W,L)=>W.id.localeCompare(L.id))}function UT(Q,U,Z,K,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let W=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-K],L=[-100*Y,-100];switch(Z){case E1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[0,-100*Y];break;case E1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+K,L[1]=0;break;case E1.Left:W=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${L[0]}%, ${L[1]}%)`}var GT=1000,ef=10,pK={nodeOrigin:[0,0],nodeExtent:O9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},_S={...pK,checkEquality:!0};function cK(Q,U){let Z={...Q};for(let K in U)if(U[K]!==void 0)Z[K]=U[K];return Z}function ZT(Q,U,Z){let K=cK(pK,Z);for(let H of Q.values())if(H.parentId)iK(H,Q,U,K);else{let Y=xJ(H,K.nodeOrigin),W=o8(H.extent)?H.extent:K.nodeExtent,L=s8(Y,W,J4(H));H.internals.positionAbsolute=L}}function JS(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],K=[];for(let H of Q.handles){let Y={id:H.id,width:H.width??1,height:H.height??1,nodeId:Q.id,x:H.x,y:H.y,position:H.position,type:H.type};if(H.type==="source")Z.push(Y);else if(H.type==="target")K.push(Y)}return{source:Z,target:K}}function lK(Q){return Q==="manual"}function nq(Q,U,Z,K={}){let H=cK(_S,K),Y={i:0},W=new Map(U),L=H?.elevateNodesOnSelect&&!lK(H.zIndexMode)?GT:0,M=Q.length>0,O=!1;U.clear(),Z.clear();for(let T of Q){let A=W.get(T.id);if(H.checkEquality&&T===A?.internals.userNode)U.set(T.id,A);else{let R=xJ(T,H.nodeOrigin),w=o8(T.extent)?T.extent:H.nodeExtent,P=s8(R,w,J4(T));A={...H.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:P,handleBounds:JS(T,A),z:FT(T,L,H.zIndexMode),userNode:T}},U.set(T.id,A)}if((A.measured===void 0||A.measured.width===void 0||A.measured.height===void 0)&&!A.hidden)M=!1;if(T.parentId)iK(A,U,Z,K,Y);O||=T.selected??!1}return{nodesInitialized:M,hasSelectedNodes:O}}function $S(Q,U){if(!Q.parentId)return;let Z=U.get(Q.parentId);if(Z)Z.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function iK(Q,U,Z,K,H){let{elevateNodesOnSelect:Y,nodeOrigin:W,nodeExtent:L,zIndexMode:M}=cK(pK,K),O=Q.parentId,T=U.get(O);if(!T){console.warn(`Parent node ${O} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if($S(Q,Z),H&&!T.parentId&&T.internals.rootParentIndex===void 0&&M==="auto")T.internals.rootParentIndex=++H.i,T.internals.z=T.internals.z+H.i*ef;if(H&&T.internals.rootParentIndex!==void 0)H.i=T.internals.rootParentIndex;let A=Y&&!lK(M)?GT:0,{x:R,y:w,z:P}=QS(Q,T,W,L,A,M),{positionAbsolute:V}=Q.internals,S=R!==V.x||w!==V.y;if(S||P!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:S?{x:R,y:w}:V,z:P}})}function FT(Q,U,Z){let K=e5(Q.zIndex)?Q.zIndex:0;if(lK(Z))return K;return K+(Q.selected?U:0)}function QS(Q,U,Z,K,H,Y){let{x:W,y:L}=U.internals.positionAbsolute,M=J4(Q),O=xJ(Q,Z),T=o8(Q.extent)?s8(O,Q.extent,M):O,A=s8({x:W+T.x,y:L+T.y},K,M);if(Q.extent==="parent")A=sM(A,M,U);let R=FT(Q,H,Y),w=U.internals.z??0;return{x:A.x,y:A.y,z:w>=R?w+1:R}}function eq(Q,U,Z,K=[0,0]){let H=[],Y=new Map;for(let W of Q){let L=U.get(W.parentId);if(!L)continue;let M=Y.get(W.parentId)?.expandedRect??I9(L),O=VK(M,W.rect);Y.set(W.parentId,{expandedRect:O,parent:L})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:L},M)=>{let O=L.internals.positionAbsolute,T=J4(L),A=L.origin??K,R=W.x<O.x?Math.round(Math.abs(O.x-W.x)):0,w=W.y<O.y?Math.round(Math.abs(O.y-W.y)):0,P=Math.max(T.width,Math.round(W.width)),V=Math.max(T.height,Math.round(W.height)),S=(P-T.width)*A[0],C=(V-T.height)*A[1];if(R>0||w>0||S||C)H.push({id:M,type:"position",position:{x:L.position.x-R+S,y:L.position.y-w+C}}),Z.get(M)?.forEach((y)=>{if(!Q.some((N)=>N.id===y.id))H.push({id:y.id,type:"position",position:{x:y.position.x+R,y:y.position.y+w}})});if(T.width<W.width||T.height<W.height||R||w)H.push({id:M,type:"dimensions",setAttributes:!0,dimensions:{width:P+(R?A[0]*R-S:0),height:V+(w?A[1]*w-C:0)}})});return H}function XT(Q,U,Z,K,H,Y,W){let L=K?.querySelector(".xyflow__viewport"),M=!1;if(!L)return{changes:[],updatedInternals:M};let O=[],T=window.getComputedStyle(L),{m22:A}=new window.DOMMatrixReadOnly(T.transform),R=[];for(let w of Q.values()){let P=U.get(w.id);if(!P)continue;if(P.hidden){U.set(P.id,{...P,internals:{...P.internals,handleBounds:void 0}}),M=!0;continue}let V=rq(w.nodeElement),S=P.measured.width!==V.width||P.measured.height!==V.height;if(!!(V.width&&V.height&&(S||!P.internals.handleBounds||w.force))){let y=w.nodeElement.getBoundingClientRect(),N=o8(P.extent)?P.extent:Y,{positionAbsolute:v}=P.internals;if(P.parentId&&P.extent==="parent"){let x=U.get(P.parentId);if(x)v=sM(v,V,x)}else if(N)v=s8(v,N,V);let D={...P,measured:V,internals:{...P.internals,positionAbsolute:v,handleBounds:{source:DM("source",w.nodeElement,y,A,P.id),target:DM("target",w.nodeElement,y,A,P.id)}}};if(U.set(P.id,D),P.parentId)iK(D,U,Z,{nodeOrigin:H,zIndexMode:W});if(M=!0,S){if(O.push({id:P.id,type:"dimensions",dimensions:V}),P.expandParent&&P.parentId)R.push({id:P.id,parentId:P.parentId,rect:I9(D,H)})}}}if(R.length>0){let w=eq(R,U,Z,H);O.push(...w)}return{changes:O,updatedInternals:M}}async function KT({delta:Q,panZoom:U,transform:Z,translateExtent:K,width:H,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let W=await U.setViewportConstrained({x:Z[0]+Q.x,y:Z[1]+Q.y,zoom:Z[2]},[[0,0],[H,Y]],K);return!!W&&(W.x!==Z[0]||W.y!==Z[1]||W.k!==Z[2])}function gM(Q,U,Z,K,H,Y){let W=H,L=K.get(W)||new Map;K.set(W,L.set(Z,U)),W=`${H}-${Q}`;let M=K.get(W)||new Map;if(K.set(W,M.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let O=K.get(W)||new Map;K.set(W,O.set(Z,U))}}function dK(Q,U,Z){Q.clear(),U.clear();for(let K of Z){let{source:H,target:Y,sourceHandle:W=null,targetHandle:L=null}=K,M={edgeId:K.id,source:H,target:Y,sourceHandle:W,targetHandle:L},O=`${H}-${W}--${Y}-${L}`,T=`${Y}-${L}--${H}-${W}`;gM("source",M,T,Q,H,W),gM("target",M,O,Q,Y,L),U.set(K.id,K)}}function HT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return HT(Z,U)}function pM(Q,U,Z){let K=Q;do{if(K?.matches?.(U))return!0;if(K===Z)return!1;K=K?.parentElement}while(K);return!1}function qS(Q,U,Z,K){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===K)&&(!W.parentId||!HT(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let L=Q.get(Y);if(L)H.set(Y,{id:Y,position:L.position||{x:0,y:0},distance:{x:Z.x-L.internals.positionAbsolute.x,y:Z.y-L.internals.positionAbsolute.y},extent:L.extent,parentId:L.parentId,origin:L.origin,expandParent:L.expandParent,internals:{positionAbsolute:L.internals.positionAbsolute||{x:0,y:0}},measured:{width:L.measured.width??0,height:L.measured.height??0}})}return H}function RK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!0}){let H=[];for(let[W,L]of U){let M=Z.get(W)?.internals.userNode;if(M)H.push({...M,position:L.position,dragging:K})}if(!Q)return[H[0],H];let Y=Z.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:K},H]}function US({dragItems:Q,snapGrid:U,x:Z,y:K}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:K-H.distance.y},W=w9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function YT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,onDragStop:H}){let Y={x:null,y:null},W=0,L=new Map,M=!1,O={x:0,y:0},T=null,A=!1,R=null,w=!1,P=!1,V=null;function S({noDragClassName:y,handleSelector:N,domNode:v,isSelectable:D,nodeId:x,nodeClickDistance:E=0}){R=P2(v);function u({x:U1,y:Q1}){let{nodeLookup:h,nodeExtent:g,snapGrid:p,snapToGrid:c,nodeOrigin:l,onNodeDrag:o,onSelectionDrag:k,onError:t,updateNodePositions:_1}=U();Y={x:U1,y:Q1};let a=!1,H1=L.size>1,O1=H1&&g?wK(n8(L)):null,L1=H1&&c?US({dragItems:L,snapGrid:p,x:U1,y:Q1}):null;for(let[T1,G1]of L){if(!h.has(T1))continue;let R1={x:U1-G1.distance.x,y:Q1-G1.distance.y};if(c)R1=L1?{x:Math.round(R1.x+L1.x),y:Math.round(R1.y+L1.y)}:w9(R1,p);let f1=null;if(H1&&g&&!G1.extent&&O1){let{positionAbsolute:b1}=G1.internals,c1=b1.x-O1.x+g[0][0],k1=b1.x+G1.measured.width-O1.x2+g[1][0],A1=b1.y-O1.y+g[0][1],e1=b1.y+G1.measured.height-O1.y2+g[1][1];f1=[[c1,A1],[k1,e1]]}let{position:z1,positionAbsolute:C1}=jK({nodeId:T1,nextPosition:R1,nodeLookup:h,nodeExtent:f1?f1:g,nodeOrigin:l,onError:t});a=a||G1.position.x!==z1.x||G1.position.y!==z1.y,G1.position=z1,G1.internals.positionAbsolute=C1}if(P=P||a,!a)return;if(_1(L,!0),V&&(K||o||!x&&k)){let[T1,G1]=RK({nodeId:x,dragItems:L,nodeLookup:h});if(K?.(V,L,T1,G1),o?.(V,T1,G1),!x)k?.(V,G1)}}async function b(){if(!T)return;let{transform:U1,panBy:Q1,autoPanSpeed:h,autoPanOnNodeDrag:g}=U();if(!g){M=!1,cancelAnimationFrame(W);return}let[p,c]=lq(O,T,h);if(p!==0||c!==0){if(Y.x=(Y.x??0)-p/U1[2],Y.y=(Y.y??0)-c/U1[2],await Q1({x:p,y:c}))u(Y)}W=requestAnimationFrame(b)}function m(U1){let{nodeLookup:Q1,multiSelectionActive:h,nodesDraggable:g,transform:p,snapGrid:c,snapToGrid:l,selectNodesOnDrag:o,onNodeDragStart:k,onSelectionDragStart:t,unselectNodesAndEdges:_1}=U();if(A=!0,(!o||!D)&&!h&&x){if(!Q1.get(x)?.selected)_1()}if(D&&o&&x)Q?.(x);let a=hJ(U1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:l,containerBounds:T});if(Y=a,L=qS(Q1,g,a,x),L.size>0&&(Z||k||!x&&t)){let[H1,O1]=RK({nodeId:x,dragItems:L,nodeLookup:Q1});if(Z?.(U1.sourceEvent,L,H1,O1),k?.(U1.sourceEvent,H1,O1),!x)t?.(U1.sourceEvent,O1)}}let s=TJ().clickDistance(E).on("start",(U1)=>{let{domNode:Q1,nodeDragThreshold:h,transform:g,snapGrid:p,snapToGrid:c}=U();if(T=Q1?.getBoundingClientRect()||null,w=!1,P=!1,V=U1.sourceEvent,h===0)m(U1);Y=hJ(U1.sourceEvent,{transform:g,snapGrid:p,snapToGrid:c,containerBounds:T}),O=_4(U1.sourceEvent,T)}).on("drag",(U1)=>{let{autoPanOnNodeDrag:Q1,transform:h,snapGrid:g,snapToGrid:p,nodeDragThreshold:c,nodeLookup:l}=U(),o=hJ(U1.sourceEvent,{transform:h,snapGrid:g,snapToGrid:p,containerBounds:T});if(V=U1.sourceEvent,U1.sourceEvent.type==="touchmove"&&U1.sourceEvent.touches.length>1||x&&!l.has(x))w=!0;if(w)return;if(!M&&Q1&&A)M=!0,b();if(!A){let k=_4(U1.sourceEvent,T),t=k.x-O.x,_1=k.y-O.y;if(Math.sqrt(t*t+_1*_1)>c)m(U1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&L&&A)O=_4(U1.sourceEvent,T),u(o)}).on("end",(U1)=>{if(!A||w){if(w&&L.size>0)U().updateNodePositions(L,!1);return}if(M=!1,A=!1,cancelAnimationFrame(W),L.size>0){let{nodeLookup:Q1,updateNodePositions:h,onNodeDragStop:g,onSelectionDragStop:p}=U();if(P)h(L,!1),P=!1;if(H||g||!x&&p){let[c,l]=RK({nodeId:x,dragItems:L,nodeLookup:Q1,dragging:!1});if(H?.(U1.sourceEvent,L,c,l),g?.(U1.sourceEvent,c,l),!x)p?.(U1.sourceEvent,l)}}}).filter((U1)=>{let Q1=U1.target;return!U1.button&&(!y||!pM(Q1,`.${y}`,v))&&(!N||pM(Q1,N,v))});R.call(s)}function C(){R?.on(".drag",null)}return{update:S,destroy:C}}function GS(Q,U,Z){let K=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(mJ(H,I9(Y))>0)K.push(Y);return K}var ZS=250;function FS(Q,U,Z,K){let H=[],Y=1/0,W=GS(Q,Z,U+ZS);for(let L of W){let M=[...L.internals.handleBounds?.source??[],...L.internals.handleBounds?.target??[]];for(let O of M){if(K.nodeId===O.nodeId&&K.type===O.type&&K.id===O.id)continue;let{x:T,y:A}=i6(L,O,O.position,!0),R=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(A-Q.y,2));if(R>U)continue;if(R<Y)H=[{...O,x:T,y:A}],Y=R;else if(R===Y)H.push({...O,x:T,y:A})}}if(!H.length)return null;if(H.length>1){let L=K.type==="source"?"target":"source";return H.find((M)=>M.type===L)??H[0]}return H[0]}function zT(Q,U,Z,K,H,Y=!1){let W=K.get(Q);if(!W)return null;let L=H==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],M=(Z?L?.find((O)=>O.id===Z):L?.[0])??null;return M&&Y?{...M,...i6(W,M,M.position,!0)}:M}function WT(Q,U){if(Q)return Q;else if(U?.classList.contains("target"))return"target";else if(U?.classList.contains("source"))return"source";return null}function XS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var LT=()=>!0;function KS(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:L,nodeLookup:M,lib:O,autoPanOnConnect:T,flowId:A,panBy:R,cancelConnection:w,onConnectStart:P,onConnect:V,onConnectEnd:S,isValidConnection:C=LT,onReconnectEnd:y,updateConnection:N,getTransform:v,getFromHandle:D,autoPanSpeed:x,dragThreshold:E=1,handleDomNode:u}){let b=hK(Q.target),m=0,s,{x:U1,y:Q1}=_4(Q),h=WT(Y,u),g=L?.getBoundingClientRect(),p=!1;if(!g||!h)return;let c=zT(H,h,K,M,U);if(!c)return;let l=_4(Q,g),o=!1,k=null,t=!1,_1=null;function a(){if(!T||!g)return;let[z1,C1]=lq(l,g,x);R({x:z1,y:C1}),m=requestAnimationFrame(a)}let H1={...c,nodeId:H,type:h,position:c.position},O1=M.get(H),T1={inProgress:!0,isValid:null,from:i6(O1,H1,E1.Left,!0),fromHandle:H1,fromPosition:H1.position,fromNode:O1,to:l,toHandle:null,toPosition:VM[H1.position],toNode:null,pointer:l};function G1(){p=!0,N(T1),P?.(Q,{nodeId:H,handleId:K,handleType:h})}if(E===0)G1();function R1(z1){if(!p){let{x:e1,y:D1}=_4(z1),g0=e1-U1,_0=D1-Q1;if(!(g0*g0+_0*_0>E*E))return;G1()}if(!D()||!H1){f1(z1);return}let C1=v();if(l=_4(z1,g),s=FS(P9(l,C1,!1,[1,1]),Z,M,H1),!o)a(),o=!0;let b1=BT(z1,{handle:s,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:W?"target":"source",isValidConnection:C,doc:b,lib:O,flowId:A,nodeLookup:M});_1=b1.handleDomNode,k=b1.connection,t=XS(!!s,b1.isValid);let c1=M.get(H),k1=c1?i6(c1,H1,E1.Left,!0):T1.from,A1={...T1,from:k1,isValid:t,to:b1.toHandle&&t?t8({x:b1.toHandle.x,y:b1.toHandle.y},C1):l,toHandle:b1.toHandle,toPosition:t&&b1.toHandle?b1.toHandle.position:VM[H1.position],toNode:b1.toHandle?M.get(b1.toHandle.nodeId):null,pointer:l};N(A1),T1=A1}function f1(z1){if("touches"in z1&&z1.touches.length>0)return;if(p){if((s||_1)&&k&&t)V?.(k);let{inProgress:C1,...b1}=T1,c1={...b1,toPosition:T1.toHandle?T1.toPosition:null};if(S?.(z1,c1),Y)y?.(z1,c1)}w(),cancelAnimationFrame(m),o=!1,t=!1,k=null,_1=null,b.removeEventListener("mousemove",R1),b.removeEventListener("mouseup",f1),b.removeEventListener("touchmove",R1),b.removeEventListener("touchend",f1)}b.addEventListener("mousemove",R1),b.addEventListener("mouseup",f1),b.addEventListener("touchmove",R1),b.addEventListener("touchend",f1)}function BT(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:H,fromType:Y,doc:W,lib:L,flowId:M,isValidConnection:O=LT,nodeLookup:T}){let A=Y==="target",R=U?W.querySelector(`.${L}-flow__handle[data-id="${M}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:w,y:P}=_4(Q),V=W.elementFromPoint(w,P),S=V?.classList.contains(`${L}-flow__handle`)?V:R,C={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let y=WT(void 0,S),N=S.getAttribute("data-nodeid"),v=S.getAttribute("data-handleid"),D=S.classList.contains("connectable"),x=S.classList.contains("connectableend");if(!N||!y)return C;let E={source:A?N:K,sourceHandle:A?v:H,target:A?K:N,targetHandle:A?H:v};C.connection=E;let b=D&&x&&(Z===l6.Strict?A&&y==="source"||!A&&y==="target":N!==K||v!==H);C.isValid=b&&O(E),C.toHandle=zT(N,y,v,T,Z,!0)}return C}var _U={onPointerDown:KS,isValid:BT};function AT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let H=P2(Q);function Y({translateExtent:L,width:M,height:O,zoomStep:T=1,pannable:A=!0,zoomable:R=!0,inversePan:w=!1}){let P=(N)=>{if(N.sourceEvent.type!=="wheel"||!U)return;let v=Z(),D=N.sourceEvent.ctrlKey&&N9()?10:1,x=-N.sourceEvent.deltaY*(N.sourceEvent.deltaMode===1?0.05:N.sourceEvent.deltaMode?1:0.002)*T,E=v[2]*Math.pow(2,x*D);U.scaleTo(E)},V=[0,0],S=(N)=>{if(N.sourceEvent.type==="mousedown"||N.sourceEvent.type==="touchstart")V=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY]},C=(N)=>{let v=Z();if(N.sourceEvent.type!=="mousemove"&&N.sourceEvent.type!=="touchmove"||!U)return;let D=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY],x=[D[0]-V[0],D[1]-V[1]];V=D;let E=K()*Math.max(v[2],Math.log(v[2]))*(w?-1:1),u={x:v[0]-x[0]*E,y:v[1]-x[1]*E},b=[[0,0],[M,O]];U.setViewportConstrained({x:u.x,y:u.y,zoom:v[2]},b,L)},y=EJ().on("start",S).on("zoom",A?C:null).on("zoom.wheel",R?P:null);H.call(y,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:a2}}var JU=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),OK=({x:Q,y:U,zoom:Z})=>d8.translate(Q,U).scale(Z),c6=(Q,U)=>Q.target.closest(`.${U}`),MT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),HS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,IK=(Q,U=0,Z=HS,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(Z).on("end",K):Q},TT=(Q)=>{let U=Q.ctrlKey&&N9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function YS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:L,onPanZoom:M,onPanZoomEnd:O}){return(T)=>{if(c6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(T.ctrlKey&&W){let S=a2(T),C=TT(T),y=A*Math.pow(2,C);K.scaleTo(Z,y,S,T);return}let R=T.deltaMode===1?20:1,w=H===h3.Vertical?0:T.deltaX*R,P=H===h3.Horizontal?0:T.deltaY*R;if(!N9()&&T.shiftKey&&H!==h3.Vertical)w=T.deltaY*R,P=0;K.translateBy(Z,-(w/A)*Y,-(P/A)*Y,{internal:!0});let V=JU(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,L?.(T,V);else M?.(T,V);Q.panScrollTimeout=setTimeout(()=>{O?.(T,V),Q.isPanScrolling=!1},150)}}function zS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,H){let Y=K.type==="wheel",W=!U&&Y&&!K.ctrlKey,L=c6(K,Q);if(K.ctrlKey&&Y&&L)K.preventDefault();if(W||L)return null;K.preventDefault(),Z.call(this,K,H)}}function WS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let H=JU(K.transform);if(Q.mouseButton=K.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,K.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(K.sourceEvent,H)}}function LS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&MT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)K([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,JU(Y.transform))}}function BS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&MT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let L=JU(W.transform);Q.prevViewport=L,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,L)},Z?150:0)}}}function AS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:L,noWheelClassName:M,noPanClassName:O,lib:T,connectionInProgress:A}){return(R)=>{let w=U||Z,P=K&&R.ctrlKey,V=R.type==="wheel";if(R.button===1&&R.type==="mousedown"&&(c6(R,`${T}-flow__node`)||c6(R,`${T}-flow__edge`)||c6(R,`${T}-flow__selection`)||c6(R,`${T}-flow__nodesselection`)))return!0;if(!H&&!w&&!Y&&!W&&!K)return!1;if(L)return!1;if(A&&!V)return!1;if(c6(R,M)&&V)return!1;if(c6(R,O)&&(!V||Y&&V&&!U))return!1;if(!K&&R.ctrlKey&&V)return!1;if(!K&&R.type==="touchstart"&&R.touches?.length>1)return R.preventDefault(),!1;if(!w&&!Y&&!P&&V)return!1;if(!H&&(R.type==="mousedown"||R.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(R.button)&&R.type==="mousedown")return!1;let S=Array.isArray(H)&&H.includes(R.button)||!R.button||R.button<=1;return(!R.ctrlKey||V||Q)&&S}}function RT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,viewport:H,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:L,onDraggingChange:M}){let O={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},T=Q.getBoundingClientRect(),A=[[0,0],[T.width,T.height]];(typeof ResizeObserver<"u"?new ResizeObserver((Q1)=>{let h=Q1[0];if(h)A=[[0,0],[h.contentRect.width,h.contentRect.height]]}):null)?.observe(Q);let w=EJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(K),P=P2(Q).call(w);v({x:H.x,y:H.y,zoom:R9(H.zoom,U,Z)},[[0,0],[T.width,T.height]],K);let V=P.on("wheel.zoom"),S=P.on("dblclick.zoom");w.wheelDelta(TT);async function C(Q1,h){if(P)return new Promise((g)=>{w?.interpolate(h?.interpolate==="linear"?J3:l8).transform(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}function y({noWheelClassName:Q1,noPanClassName:h,onPaneContextMenu:g,userSelectionActive:p,panOnScroll:c,panOnDrag:l,panOnScrollMode:o,panOnScrollSpeed:k,preventScrolling:t,zoomOnPinch:_1,zoomOnScroll:a,zoomOnDoubleClick:H1,panActivationKeyPressed:O1=!1,zoomActivationKeyPressed:L1,lib:T1,onTransformChange:G1,connectionInProgress:R1,paneClickDistance:f1,selectionOnDrag:z1}){if(p&&!O.isZoomingOrPanning)N();let C1=c&&!L1&&!p;w.clickDistance(z1?1/0:!e5(f1)||f1<0?0:f1);let b1=C1?YS({zoomPanValues:O,noWheelClassName:Q1,d3Selection:P,d3Zoom:w,panOnScrollMode:o,panOnScrollSpeed:k,zoomOnPinch:_1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:L}):zS({noWheelClassName:Q1,preventScrolling:t,d3ZoomHandler:V});P.on("wheel.zoom",b1,{passive:!1});let c1=WS({zoomPanValues:O,onDraggingChange:M,onPanZoomStart:W});w.on("start",c1);let k1=LS({zoomPanValues:O,panOnDrag:l,onPaneContextMenu:!!g,onPanZoom:Y,onTransformChange:G1});w.on("zoom",k1);let A1=BS({zoomPanValues:O,panOnDrag:l,panOnScroll:c,onPaneContextMenu:g,onPanZoomEnd:L,onDraggingChange:M});w.on("end",A1);let e1=AS({panActivationKeyPressed:O1,zoomActivationKeyPressed:L1,panOnDrag:l,zoomOnScroll:a,panOnScroll:c,zoomOnDoubleClick:H1,zoomOnPinch:_1,userSelectionActive:p,noPanClassName:h,noWheelClassName:Q1,lib:T1,connectionInProgress:R1});if(w.filter(e1),H1)P.on("dblclick.zoom",S);else P.on("dblclick.zoom",null)}function N(){w.on("zoom",null)}async function v(Q1,h,g){let p=OK(Q1),c=w?.constrain()(p,h,g);if(c)await C(c);return c}async function D(Q1,h){let g=OK(Q1);return await C(g,h),g}function x(Q1){if(P){let h=OK(Q1),g=P.property("__zoom");if(g.k!==Q1.zoom||g.x!==Q1.x||g.y!==Q1.y)w?.transform(P,h,null,{sync:!0})}}function E(){let Q1=P?bJ(P.node()):{x:0,y:0,k:1};return{x:Q1.x,y:Q1.y,zoom:Q1.k}}async function u(Q1,h){if(P)return new Promise((g)=>{w?.interpolate(h?.interpolate==="linear"?J3:l8).scaleTo(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}async function b(Q1,h){if(P)return new Promise((g)=>{w?.interpolate(h?.interpolate==="linear"?J3:l8).scaleBy(IK(P,h?.duration,h?.ease,()=>g(!0)),Q1)});return!1}function m(Q1){w?.scaleExtent(Q1)}function s(Q1){w?.translateExtent(Q1)}function U1(Q1){let h=!e5(Q1)||Q1<0?0:Q1;w?.clickDistance(h)}return{update:y,destroy:N,setViewport:D,setViewportConstrained:v,getViewport:E,scaleTo:u,scaleBy:b,setScaleExtent:m,setTranslateExtent:s,syncViewport:x,setClickDistance:U1}}var x3;(function(Q){Q.Line="line",Q.Handle="handle"})(x3||(x3={}));var OT=["top-left","top-right","bottom-left","bottom-right"],IT=["top","right","bottom","left"];function MS({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:H,affectsY:Y}){let W=Q-U,L=Z-K,M=[W>0?1:W<0?-1:0,L>0?1:L<0?-1:0];if(W&&H)M[0]=M[0]*-1;if(L&&Y)M[1]=M[1]*-1;return M}function cM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:K,affectsY:H}}function g6(Q,U){return Math.max(0,U-Q)}function p6(Q,U){return Math.max(0,Q-U)}function gq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function lM(Q,U){return Q?!U:U}function TS(Q,U,Z,K,H,Y,W,L){let{affectsX:M,affectsY:O}=U,{isHorizontal:T,isVertical:A}=U,R=T&&A,{xSnapped:w,ySnapped:P}=Z,{minWidth:V,maxWidth:S,minHeight:C,maxHeight:y}=K,{x:N,y:v,width:D,height:x,aspectRatio:E}=Q,u=Math.floor(T?w-Q.pointerX:0),b=Math.floor(A?P-Q.pointerY:0),m=D+(M?-u:u),s=x+(O?-b:b),U1=-Y[0]*D,Q1=-Y[1]*x,h=gq(m,V,S),g=gq(s,C,y);if(W){let l=0,o=0;if(M&&u<0)l=g6(N+u+U1,W[0][0]);else if(!M&&u>0)l=p6(N+m+U1,W[1][0]);if(O&&b<0)o=g6(v+b+Q1,W[0][1]);else if(!O&&b>0)o=p6(v+s+Q1,W[1][1]);h=Math.max(h,l),g=Math.max(g,o)}if(L){let l=0,o=0;if(M&&u>0)l=p6(N+u,L[0][0]);else if(!M&&u<0)l=g6(N+m,L[1][0]);if(O&&b>0)o=p6(v+b,L[0][1]);else if(!O&&b<0)o=g6(v+s,L[1][1]);h=Math.max(h,l),g=Math.max(g,o)}if(H){if(T){let l=gq(m/E,C,y)*E;if(h=Math.max(h,l),W){let o=0;if(!M&&!O||M&&!O&&R)o=p6(v+Q1+m/E,W[1][1])*E;else o=g6(v+Q1+(M?u:-u)/E,W[0][1])*E;h=Math.max(h,o)}if(L){let o=0;if(!M&&!O||M&&!O&&R)o=g6(v+m/E,L[1][1])*E;else o=p6(v+(M?u:-u)/E,L[0][1])*E;h=Math.max(h,o)}}if(A){let l=gq(s*E,V,S)/E;if(g=Math.max(g,l),W){let o=0;if(!M&&!O||O&&!M&&R)o=p6(N+s*E+U1,W[1][0])/E;else o=g6(N+(O?b:-b)*E+U1,W[0][0])/E;g=Math.max(g,o)}if(L){let o=0;if(!M&&!O||O&&!M&&R)o=g6(N+s*E,L[1][0])/E;else o=p6(N+(O?b:-b)*E,L[0][0])/E;g=Math.max(g,o)}}}if(b=b+(b<0?g:-g),u=u+(u<0?h:-h),H)if(R)if(m>s*E)b=(lM(M,O)?-u:u)/E;else u=(lM(M,O)?-b:b)*E;else if(T)b=u/E,O=M;else u=b*E,M=O;let p=M?N+u:N,c=O?v+b:v;return{width:D+(M?-u:u),height:x+(O?-b:b),x:Y[0]*u*(!M?1:-1)+p,y:Y[1]*b*(!O?1:-1)+c}}var wT={width:0,height:0,x:0,y:0},RS={...wT,pointerX:0,pointerY:0,aspectRatio:1};function OS(Q,U,Z){let K=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,W=Q.measured.height??0,L=Z[0]*Y,M=Z[1]*W;return[[K-L,H-M],[K+Y-L,H+W-M]]}function PT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:H}){let Y=P2(Q),W={controlDirection:cM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function L({controlPosition:O,boundaries:T,keepAspectRatio:A,resizeDirection:R,onResizeStart:w,onResize:P,onResizeEnd:V,shouldResize:S}){let C={...wT},y={...RS};W={boundaries:T,resizeDirection:R,keepAspectRatio:A,controlDirection:cM(O)};let N=void 0,v=null,D=[],x=void 0,E=void 0,u=void 0,b=TJ().on("start",(m)=>{let{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,paneDomNode:p}=Z();if(N=s.get(U),!N)return;v=p?.getBoundingClientRect()??null;let{xSnapped:c,ySnapped:l}=hJ(m.sourceEvent,{transform:U1,snapGrid:Q1,snapToGrid:h,containerBounds:v});if(C={width:N.measured.width??0,height:N.measured.height??0,x:N.position.x??0,y:N.position.y??0},y={...C,pointerX:c,pointerY:l,aspectRatio:C.width/C.height},x=void 0,E=o8(N.extent)?N.extent:void 0,N.parentId&&(N.extent==="parent"||N.expandParent))x=s.get(N.parentId);if(x&&N.extent==="parent")E=[[0,0],[x.measured.width,x.measured.height]];D=[],u=void 0;for(let[o,k]of s)if(k.parentId===U){if(D.push({id:o,position:{...k.position},extent:k.extent}),k.extent==="parent"||k.expandParent){let t=OS(k,N,k.origin??g);if(u)u=[[Math.min(t[0][0],u[0][0]),Math.min(t[0][1],u[0][1])],[Math.max(t[1][0],u[1][0]),Math.max(t[1][1],u[1][1])]];else u=t}}w?.(m,{...C})}).on("drag",(m)=>{let{transform:s,snapGrid:U1,snapToGrid:Q1,nodeOrigin:h}=Z(),g=hJ(m.sourceEvent,{transform:s,snapGrid:U1,snapToGrid:Q1,containerBounds:v}),p=[];if(!N)return;let{x:c,y:l,width:o,height:k}=C,t={},_1=N.origin??h,{width:a,height:H1,x:O1,y:L1}=TS(y,W.controlDirection,g,W.boundaries,W.keepAspectRatio,_1,E,u),T1=a!==o,G1=H1!==k,R1=O1!==c&&T1,f1=L1!==l&&G1;if(!R1&&!f1&&!T1&&!G1)return;let z1={prevValues:{...C},startX:y.x,startY:y.y,childNodes:D.map((k1)=>({...k1,position:{...k1.position}}))};if(R1||f1||_1[0]===1||_1[1]===1){if(t.x=R1?O1:C.x,t.y=f1?L1:C.y,C.x=t.x,C.y=t.y,D.length>0){let k1=O1-c,A1=L1-l;for(let e1 of D)e1.position={x:e1.position.x-k1+_1[0]*(a-o),y:e1.position.y-A1+_1[1]*(H1-k)},p.push(e1)}}if(T1||G1)t.width=T1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?a:C.width,t.height=G1&&(!W.resizeDirection||W.resizeDirection==="vertical")?H1:C.height,C.width=t.width,C.height=t.height;if(x&&N.expandParent){let k1=_1[0]*(t.width??0);if(t.x&&t.x<k1)C.x=k1,y.x=y.x-(t.x-k1);let A1=_1[1]*(t.height??0);if(t.y&&t.y<A1)C.y=A1,y.y=y.y-(t.y-A1)}let C1=MS({width:C.width,prevWidth:o,height:C.height,prevHeight:k,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),b1={...C,direction:C1};if(S?.(m,b1)===!1){C=z1.prevValues,y.x=z1.startX,y.y=z1.startY,D.forEach((k1,A1)=>{k1.position=z1.childNodes[A1].position});return}P?.(m,b1),K(t,p)}).on("end",(m)=>{V?.(m,{...C}),H?.({...C})});Y.call(b)}function M(){Y.on(".drag",null)}return{update:L,destroy:M}}var jT=s0(B4(),1),VT=s0(CT(),1);var fT=(Q)=>{let U,Z=new Set,K=(T,A)=>{let R=typeof T==="function"?T(U):T;if(!Object.is(R,U)){let w=U;U=(A!=null?A:typeof R!=="object"||R===null)?R:Object.assign({},U,R),Z.forEach((P)=>P(U,w))}},H=()=>U,M={setState:K,getState:H,getInitialState:()=>O,subscribe:(T)=>{return Z.add(T),()=>Z.delete(T)},destroy:()=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");Z.clear()}},O=U=Q(K,H,M);return M},ST=(Q)=>Q?fT(Q):fT;var{useDebugValue:PS}=jT.default,{useSyncExternalStoreWithSelector:NS}=VT.default,CS=(Q)=>Q;function rK(Q,U=CS,Z){let K=NS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return PS(K),K}var vT=(Q,U)=>{let Z=ST(Q),K=(H,Y=U)=>rK(Z,H,Y);return Object.assign(K,Z),K},yT=(Q,U)=>Q?vT(Q,U):vT;function i0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[K,H]of Q)if(!Object.is(H,U.get(K)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let K of Q)if(!U.has(K))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let K of Z)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var GR=s0(iF(),1),GU=W1.createContext(null),fS=GU.Provider,ZR=F5.error001("react");function L0(Q,U){let Z=W1.useContext(GU);if(Z===null)throw Error(ZR);return rK(Z,Q,U)}function d0(){let Q=W1.useContext(GU);if(Q===null)throw Error(ZR);return W1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var kT={display:"none"},SS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},FR="react-flow__node-desc",XR="react-flow__edge-desc",vS="react-flow__aria-live",jS=(Q)=>Q.ariaLiveMessage,VS=(Q)=>Q.ariaLabelConfig;function yS({rfId:Q}){let U=L0(jS);return K1.jsx("div",{id:`${vS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:SS,children:U})}function kS({rfId:Q,disableKeyboardA11y:U}){let Z=L0(VS);return K1.jsxs(K1.Fragment,{children:[K1.jsx("div",{id:`${FR}-${Q}`,style:kT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),K1.jsx("div",{id:`${XR}-${Q}`,style:kT,children:Z["edge.a11yDescription.default"]}),!U&&K1.jsx(yS,{rfId:Q})]})}var q3=W1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...H},Y)=>{let W=`${Q}`.split("-");return K1.jsx("div",{className:_2(["react-flow__panel",Z,...W]),style:K,ref:Y,...H,children:U})});q3.displayName="Panel";var DT="https://reactflow.dev/attribution";function DS({proOptions:Q,position:U="bottom-right"}){if(W1.useEffect(()=>{eM("react")},[]),Q?.hideAttribution)return null;return K1.jsx(q3,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${DT}`,children:K1.jsx("a",{href:DT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var uS=(Q)=>{let U=[],Z=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)Z.push(K);return{selectedNodes:U,selectedEdges:Z}},$U=(Q)=>Q.id;function bS(Q,U){return i0(Q.selectedNodes.map($U),U.selectedNodes.map($U))&&i0(Q.selectedEdges.map($U),U.selectedEdges.map($U))}function ES({onSelectionChange:Q}){let U=d0(),{selectedNodes:Z,selectedEdges:K}=L0(uS,bS);return W1.useEffect(()=>{let H={nodes:Z,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,K,Q]),null}var hS=(Q)=>!!Q.onSelectionChangeHandlers;function xS({onSelectionChange:Q}){let U=L0(hS);if(Q||U)return K1.jsx(ES,{onSelectionChange:Q});return null}var KR=[0,0],mS={x:0,y:0,zoom:1},gS=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],uT=[...gS,"rfId"],pS=(Q)=>({setNodes:Q.setNodes,setEdges:Q.setEdges,setMinZoom:Q.setMinZoom,setMaxZoom:Q.setMaxZoom,setTranslateExtent:Q.setTranslateExtent,setNodeExtent:Q.setNodeExtent,reset:Q.reset,setDefaultNodesAndEdges:Q.setDefaultNodesAndEdges}),bT={translateExtent:O9,nodeOrigin:KR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function cS(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:L,setDefaultNodesAndEdges:M}=L0(pS,i0),O=d0();W1.useEffect(()=>{return M(Q.defaultNodes,Q.defaultEdges),()=>{T.current=bT,L()}},[]);let T=W1.useRef(bT);return W1.useEffect(()=>{for(let A of uT){let R=Q[A],w=T.current[A];if(R===w)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(R);else if(A==="edges")Z(R);else if(A==="minZoom")K(R);else if(A==="maxZoom")H(R);else if(A==="translateExtent")Y(R);else if(A==="nodeExtent")W(R);else if(A==="ariaLabelConfig")O.setState({ariaLabelConfig:nM(R)});else if(A==="fitView")O.setState({fitViewQueued:R});else if(A==="fitViewOptions")O.setState({fitViewOptions:R});else O.setState({[A]:R})}T.current=Q},uT.map((A)=>Q[A])),null}function ET(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function lS(Q){let[U,Z]=W1.useState(Q==="system"?null:Q);return W1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=ET(),H=()=>Z(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:ET()?.matches?"dark":"light"}var hT=typeof document<"u"?document:null;function cJ(Q=null,U={target:hT,actInsideInputWithModifier:!0}){let[Z,K]=W1.useState(!1),H=W1.useRef(!1),Y=W1.useRef(new Set([])),[W,L]=W1.useMemo(()=>{if(Q!==null){let O=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
242
242
  `).replace(`
243
243
 
244
244
  `,`
245
245
  +`).split(`
246
- `)),T=O.reduce((A,R)=>A.concat(...R),[]);return[O,T]}return[[],[]]},[Q]);return z1.useEffect(()=>{let M=U?.target??ET,O=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(P)=>{if(H.current=P.ctrlKey||P.metaKey||P.shiftKey||P.altKey,(!H.current||H.current&&!O)&&xK(P))return!1;let V=xT(P.code,L);if(Y.current.add(P[V]),hT(W,Y.current,!1)){let v=P.composedPath?.()?.[0]||P.target,f=v?.nodeName==="BUTTON"||v?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!f))P.preventDefault();K(!0)}},A=(P)=>{let N=xT(P.code,L);if(hT(W,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(P[N]);if(P.key==="Meta")Y.current.clear();H.current=!1},R=()=>{Y.current.clear(),K(!1)};return M?.addEventListener("keydown",T),M?.addEventListener("keyup",A),window.addEventListener("blur",R),window.addEventListener("contextmenu",R),()=>{M?.removeEventListener("keydown",T),M?.removeEventListener("keyup",A),window.removeEventListener("blur",R),window.removeEventListener("contextmenu",R)}}},[Q,K]),Z}function hT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function xT(Q,U){return U.includes(Q)?"code":"key"}var pS=()=>{let Q=x0();return z1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,Z)=>{let{panZoom:K}=Q.getState();return K?K.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[K,H,Y],panZoom:W}=Q.getState();if(!W)return!1;return await W.setViewport({x:U.x??K,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,K]=Q.getState().transform;return{x:U,y:Z,zoom:K}},setCenter:async(U,Z,K)=>{return Q.getState().setCenter(U,Z,K)},fitBounds:async(U,Z)=>{let{width:K,height:H,minZoom:Y,maxZoom:W,panZoom:L}=Q.getState(),M=EJ(U,K,H,Y,W,Z?.padding??0.1);if(!L)return!1;return await L.setViewport(M,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:K,snapGrid:H,snapToGrid:Y,domNode:W}=Q.getState();if(!W)return U;let{x:L,y:M}=W.getBoundingClientRect(),O={x:U.x-L,y:U.y-M},T=Z.snapGrid??H,A=Z.snapToGrid??Y;return M9(O,K,A,T)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),W=p8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function KR(Q,U){let Z=[],K=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")K.set(Y.id,[Y]);else{let W=K.get(Y.id);if(W)W.push(Y);else K.set(Y.id,[Y])}for(let Y of U){let W=K.get(Y.id);if(!W){Z.push(Y);continue}if(W[0].type==="remove")continue;if(W[0].type==="replace"){Z.push({...W[0].item});continue}let L={...Y};for(let M of W)cS(M,L);Z.push(L)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)Z.splice(Y.index,0,{...Y.item});else Z.push({...Y.item})});return Z}function cS(Q,U){switch(Q.type){case"select":{U.selected=Q.selected;break}case"position":{if(typeof Q.position<"u")U.position=Q.position;if(typeof Q.dragging<"u")U.dragging=Q.dragging;break}case"dimensions":{if(typeof Q.dimensions<"u"){if(U.measured={...Q.dimensions},Q.setAttributes){if(Q.setAttributes===!0||Q.setAttributes==="width")U.width=Q.dimensions.width;if(Q.setAttributes===!0||Q.setAttributes==="height")U.height=Q.dimensions.height}}if(typeof Q.resizing==="boolean")U.resizing=Q.resizing;break}}}function HR(Q,U){return KR(Q,U)}function lS(Q,U){return KR(Q,U)}function i8(Q,U){return{id:Q,type:"select",selected:U}}function R9(Q,U=new Set,Z=!1){let K=[];for(let[H,Y]of Q){let W=U.has(H);if(!(Y.selected===void 0&&!W)&&Y.selected!==W){if(Z)Y.selected=W;K.push(i8(Y.id,W))}}return K}function mT({items:Q=[],lookup:U}){let Z=[],K=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let W=U.get(Y.id),L=W?.internals?.userNode??W;if(L!==void 0&&L!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(L===void 0)Z.push({item:Y,type:"add",index:H})}for(let[H]of U)if(K.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function gT(Q){return{id:Q.id,type:"remove"}}var iS=kK("React Flow","https://reactflow.dev/");function dS(Q,U,Z={}){return JT(Q,U,{...Z,onError:Z.onError??iS})}var pT=(Q)=>lM(Q),rS=(Q)=>fK(Q);function YR(Q){return z1.forwardRef(Q)}var zR=typeof window<"u"?z1.useLayoutEffect:z1.useEffect;function cT(Q){let[U,Z]=z1.useState(BigInt(0)),[K]=z1.useState(()=>aS(()=>Z((H)=>H+BigInt(1))));return zR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function aS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var WR=z1.createContext(null);function sS({children:Q}){let U=x0(),Z=z1.useCallback((L)=>{let{nodes:M=[],setNodes:O,hasDefaultNodes:T,onNodesChange:A,nodeLookup:R,fitViewQueued:P,onNodesChangeMiddlewareMap:N}=U.getState(),V=M;for(let f of L)V=typeof f==="function"?f(V):f;let v=mT({items:V,lookup:R});for(let f of N.values())v=f(v);if(T)O(V);if(v.length>0)A?.(v);else if(P)window.requestAnimationFrame(()=>{let{fitViewQueued:f,nodes:y,setNodes:C}=U.getState();if(f)C(y)})},[]),K=cT(Z),H=z1.useCallback((L)=>{let{edges:M=[],setEdges:O,hasDefaultEdges:T,onEdgesChange:A,edgeLookup:R}=U.getState(),P=M;for(let N of L)P=typeof N==="function"?N(P):N;if(T)O(P);else if(A)A(mT({items:P,lookup:R}))},[]),Y=cT(H),W=z1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return H1.jsx(WR.Provider,{value:W,children:Q})}function tS(){let Q=z1.useContext(WR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var oS=(Q)=>!!Q.panZoom;function mJ(){let Q=pS(),U=x0(),Z=tS(),K=H0(oS),H=z1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),W=(A)=>{Z.nodeQueue.push(A)},L=(A)=>{Z.edgeQueue.push(A)},M=(A)=>{let{nodeLookup:R,nodeOrigin:P}=U.getState(),N=pT(A)?A:R.get(A.id),V=N.parentId?uK(N.position,N.measured,N.parentId,R,P):N.position,v={...N,position:V,width:N.measured?.width??N.width,height:N.measured?.height??N.height};return B9(v)},O=(A,R,P={replace:!1})=>{W((N)=>N.map((V)=>{if(V.id===A){let v=typeof R==="function"?R(V):R;return P.replace&&pT(v)?v:{...V,...v}}return V}))},T=(A,R,P={replace:!1})=>{L((N)=>N.map((V)=>{if(V.id===A){let v=typeof R==="function"?R(V):R;return P.replace&&rS(v)?v:{...V,...v}}return V}))};return{getNodes:()=>U.getState().nodes.map((A)=>({...A})),getNode:(A)=>Y(A)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:A=[]}=U.getState();return A.map((R)=>({...R}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:W,setEdges:L,addNodes:(A)=>{let R=Array.isArray(A)?A:[A];Z.nodeQueue.push((P)=>[...P,...R])},addEdges:(A)=>{let R=Array.isArray(A)?A:[A];Z.edgeQueue.push((P)=>[...P,...R])},toObject:()=>{let{nodes:A=[],edges:R=[],transform:P}=U.getState(),[N,V,v]=P;return{nodes:A.map((f)=>({...f})),edges:R.map((f)=>({...f})),viewport:{x:N,y:V,zoom:v}}},deleteElements:async({nodes:A=[],edges:R=[]})=>{let{nodes:P,edges:N,onNodesDelete:V,onEdgesDelete:v,triggerNodeChanges:f,triggerEdgeChanges:y,onDelete:C,onBeforeDelete:j}=U.getState(),{nodes:u,edges:h}=await rM({nodesToRemove:A,edgesToRemove:R,nodes:P,edges:N,onBeforeDelete:j}),E=h.length>0,b=u.length>0;if(E){let D=h.map(gT);v?.(h),y(D)}if(b){let D=u.map(gT);V?.(u),f(D)}if(b||E)C?.({nodes:u,edges:h});return{deletedNodes:u,deletedEdges:h}},getIntersectingNodes:(A,R=!0,P)=>{let N=VK(A),V=N?A:M(A),v=P!==void 0;if(!V)return[];return(P||U.getState().nodes).filter((f)=>{let y=U.getState().nodeLookup.get(f.id);if(y&&!N&&(f.id===A.id||!y.internals.positionAbsolute))return!1;let C=B9(v?f:y),j=bJ(C,V);return R&&j>0||j>=C.width*C.height||j>=V.width*V.height})},isNodeIntersecting:(A,R,P=!0)=>{let V=VK(A)?A:M(A);if(!V)return!1;let v=bJ(V,R);return P&&v>0||v>=R.width*R.height||v>=V.width*V.height},updateNode:O,updateNodeData:(A,R,P={replace:!1})=>{O(A,(N)=>{let V=typeof R==="function"?R(N):R;return P.replace?{...N,data:V}:{...N,data:{...N.data,...V}}},P)},updateEdge:T,updateEdgeData:(A,R,P={replace:!1})=>{T(A,(N)=>{let V=typeof R==="function"?R(N):R;return P.replace?{...N,data:V}:{...N,data:{...N.data,...V}}},P)},getNodesBounds:(A)=>{let{nodeLookup:R,nodeOrigin:P}=U.getState();return vK(A,{nodeLookup:R,nodeOrigin:P})},getHandleConnections:({type:A,id:R,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}-${A}${R?`-${R}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:R,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}${A?R?`-${A}-${R}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let R=U.getState().fitViewResolver??tM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:R}),Z.nodeQueue.push((P)=>[...P]),R.promise}}},[]);return z1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var lT=(Q)=>Q.selected,nS=typeof window<"u"?window:void 0;function eS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=x0(),{deleteElements:K}=mJ(),H=xJ(Q,{actInsideInputWithModifier:!1}),Y=xJ(U,{target:nS});z1.useEffect(()=>{if(H){let{edges:W,nodes:L}=Z.getState();K({nodes:L.filter(lT),edges:W.filter(lT)}),Z.setState({nodesSelectionActive:!1})}},[H]),z1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function _v(Q){let U=x0();z1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=dq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",n2.error004());U.setState({width:K.width||500,height:K.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let K=new ResizeObserver(()=>Z());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),K&&Q.current)K.unobserve(Q.current)}}},[])}var GU={position:"absolute",width:"100%",height:"100%",top:0,left:0},Jv=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function $v({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=j3.Free,zoomOnDoubleClick:L=!0,panOnDrag:M=!0,defaultViewport:O,translateExtent:T,minZoom:A,maxZoom:R,zoomActivationKeyCode:P,preventScrolling:N=!0,children:V,noWheelClassName:v,noPanClassName:f,onViewportChange:y,isControlledViewport:C,paneClickDistance:j,selectionOnDrag:u}){let h=x0(),E=z1.useRef(null),{userSelectionActive:b,lib:D,connectionInProgress:x}=H0(Jv,h0),$1=xJ(P),Q1=z1.useRef();_v(E);let J1=z1.useCallback((m)=>{if(y?.({x:m[0],y:m[1],zoom:m[2]}),!C)h.setState({transform:m})},[y,C]);return z1.useEffect(()=>{if(E.current){Q1.current=TT({domNode:E.current,minZoom:A,maxZoom:R,translateExtent:T,viewport:O,onDraggingChange:(a)=>h.setState((i)=>i.paneDragging===a?i:{paneDragging:a}),onPanZoomStart:(a,i)=>{let{onViewportChangeStart:o,onMoveStart:k}=h.getState();k?.(a,i),o?.(i)},onPanZoom:(a,i)=>{let{onViewportChange:o,onMove:k}=h.getState();k?.(a,i),o?.(i)},onPanZoomEnd:(a,i)=>{let{onViewportChangeEnd:o,onMoveEnd:k}=h.getState();k?.(a,i),o?.(i)}});let{x:m,y:p,zoom:c}=Q1.current.getViewport();return h.setState({panZoom:Q1.current,transform:[m,p,c],domNode:E.current.closest(".react-flow")}),()=>{Q1.current?.destroy()}}},[]),z1.useEffect(()=>{Q1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:L,panOnDrag:M,zoomActivationKeyPressed:$1,preventScrolling:N,noPanClassName:f,userSelectionActive:b,noWheelClassName:v,lib:D,onTransformChange:J1,connectionInProgress:x,selectionOnDrag:u,paneClickDistance:j})},[Q,U,Z,K,H,Y,W,L,M,$1,N,f,b,v,D,J1,x,u,j]),H1.jsx("div",{className:"react-flow__renderer",ref:E,style:GU,children:V})}var Qv=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function qv(){let{userSelectionActive:Q,userSelectionRect:U}=H0(Qv,h0);if(!(Q&&U))return null;return H1.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:U.width,height:U.height,transform:`translate(${U.x}px, ${U.y}px)`}})}var aK=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},Uv=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Gv({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=m8.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:L,onSelectionEnd:M,onPaneClick:O,onPaneContextMenu:T,onPaneScroll:A,onPaneMouseEnter:R,onPaneMouseMove:P,onPaneMouseLeave:N,children:V}){let v=z1.useRef(0),f=x0(),{userSelectionActive:y,elementsSelectable:C,dragging:j,panBy:u,autoPanSpeed:h}=H0(Uv,h0),E=C&&(Q||y),b=z1.useRef(null),D=z1.useRef(),x=z1.useRef(new Set),$1=z1.useRef(new Set),Q1=z1.useRef(!1),J1=z1.useRef(!1),m=z1.useRef({x:0,y:0}),p=z1.useRef(!1),c=(U1)=>{if(J1.current||Q1.current||f.getState().connection.inProgress){J1.current=!1,Q1.current=!1;return}O?.(U1),f.getState().resetSelectedElements(),f.setState({nodesSelectionActive:!1})},a=(U1)=>{if(Array.isArray(K)&&K?.includes(2)){U1.preventDefault();return}T?.(U1)},i=A?(U1)=>A(U1):void 0,o=(U1)=>{if(J1.current)U1.stopPropagation(),J1.current=!1},k=(U1)=>{if(U1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:P1,transform:v1}=f.getState();if(D.current=P1?.getBoundingClientRect(),!D.current)return;let A1=U1.target===b.current;if(!A1&&!!U1.target.closest(".nokey")||!Q||!(W&&A1||U)||U1.button!==0||!U1.isPrimary)return;U1.target?.setPointerCapture?.(U1.pointerId),J1.current=!1;let{x:g1,y:h1}=l5(U1.nativeEvent,D.current),M1=M9({x:g1,y:h1},v1);if(f.setState({userSelectionRect:{width:0,height:0,startX:M1.x,startY:M1.y,x:g1,y:h1}}),!A1)U1.stopPropagation(),U1.preventDefault()};function g(U1,P1){let{userSelectionRect:v1}=f.getState();if(!v1)return;let{transform:A1,nodeLookup:k1,edgeLookup:D1,connectionLookup:g1,triggerNodeChanges:h1,triggerEdgeChanges:M1,defaultEdgeOptions:r1}=f.getState(),u1={x:v1.startX,y:v1.startY},{x:D0,y:o1}=p8(u1,A1),X2={startX:u1.x,startY:u1.y,x:U1<D0?U1:D0,y:P1<o1?P1:o1,width:Math.abs(U1-D0),height:Math.abs(P1-o1)},K2=x.current,N2=$1.current;x.current=new Set(pq(k1,X2,A1,Z===m8.Partial,!0).map((C2)=>C2.id)),$1.current=new Set;let A2=r1?.selectable??!0;for(let C2 of x.current){let M2=g1.get(C2);if(!M2)continue;for(let{edgeId:H2}of M2.values()){let _2=D1.get(H2);if(_2&&(_2.selectable??A2))$1.current.add(H2)}}if(!bK(K2,x.current)){let C2=R9(k1,x.current,!0);h1(C2)}if(!bK(N2,$1.current)){let C2=R9(D1,$1.current);M1(C2)}f.setState({userSelectionRect:X2,userSelectionActive:!0,nodesSelectionActive:!1})}function q1(){if(!H||!D.current)return;let[U1,P1]=cq(m.current,D.current,h);u({x:U1,y:P1}).then((v1)=>{if(!J1.current||!v1){v.current=requestAnimationFrame(q1);return}let{x:A1,y:k1}=m.current;g(A1,k1),v.current=requestAnimationFrame(q1)})}let t=()=>{cancelAnimationFrame(v.current),v.current=0,p.current=!1};z1.useEffect(()=>{return()=>t()},[]);let W1=(U1)=>{let{userSelectionRect:P1,transform:v1,resetSelectedElements:A1}=f.getState();if(!D.current||!P1)return;let{x:k1,y:D1}=l5(U1.nativeEvent,D.current);m.current={x:k1,y:D1};let g1=p8({x:P1.startX,y:P1.startY},v1);if(!J1.current){let h1=U?0:Y;if(Math.hypot(k1-g1.x,D1-g1.y)<=h1)return;A1(),L?.(U1)}if(J1.current=!0,!p.current)q1(),p.current=!0;g(k1,D1)},T1=(U1)=>{if(!E){if(U1.target===b.current&&f.getState().connection.inProgress)Q1.current=!0;return}if(U1.button!==0)return;if(U1.target?.releasePointerCapture?.(U1.pointerId),!y&&U1.target===b.current&&f.getState().userSelectionRect)c?.(U1);if(f.setState({userSelectionActive:!1,userSelectionRect:null}),J1.current)M?.(U1),f.setState({nodesSelectionActive:x.current.size>0});t()},O1=(U1)=>{U1.target?.releasePointerCapture?.(U1.pointerId),t()},L1=K===!0||Array.isArray(K)&&K.includes(0);return H1.jsxs("div",{className:d0(["react-flow__pane",{draggable:L1,dragging:j,selection:Q}]),onClick:E?void 0:aK(c,b),onContextMenu:aK(a,b),onWheel:aK(i,b),onPointerEnter:E?void 0:R,onPointerMove:E?W1:P,onPointerUp:T1,onPointerCancel:E?O1:void 0,onPointerDownCapture:E?k:void 0,onClickCapture:E?o:void 0,onPointerLeave:N,ref:b,style:GU,children:[V,H1.jsx(qv,{})]})}function tK({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:L,onError:M}=U.getState(),O=L.get(Q);if(!O){M?.("012",n2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!O.selected)H([Q]);else if(Z||O.selected&&W)Y({nodes:[O],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function LR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let L=x0(),[M,O]=z1.useState(!1),T=z1.useRef();return z1.useEffect(()=>{if(U)return;return T.current=HT({getStoreItems:()=>L.getState(),onNodeMouseDown:(A)=>{tK({id:A,store:L,nodeRef:Q})},onDragStart:()=>{O(!0)},onDragStop:()=>{O(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,L,Q]),z1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:Z,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,K,U,Y,Q,H,W]),M}var Zv=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function BR(){let Q=x0();return z1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:L,updateNodePositions:M,nodeLookup:O,nodeOrigin:T}=Q.getState(),A=new Map,R=Zv(W),P=H?Y[0]:5,N=H?Y[1]:5,V=Z.direction.x*P*Z.factor,v=Z.direction.y*N*Z.factor;for(let[,f]of O){if(!R(f))continue;let y={x:f.internals.positionAbsolute.x+V,y:f.internals.positionAbsolute.y+v};if(H)y=A9(y,Y);let{position:C,positionAbsolute:j}=jK({nodeId:f.id,nextPosition:y,nodeLookup:O,nodeExtent:K,nodeOrigin:T,onError:L});f.position=C,f.internals.positionAbsolute=j,A.set(f.id,f)}M(A)},[])}var oK=z1.createContext(null),Fv=oK.Provider;oK.Consumer;var nK=()=>{return z1.useContext(oK)},Xv=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),AR=z1.createContext(null);function Kv({children:Q}){let U=H0(Xv,h0);return H1.jsx(AR.Provider,{value:U,children:Q})}function Hv(){let Q=z1.useContext(AR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Yv={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},zv=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=K,{fromHandle:L,toHandle:M,isValid:O}=W;if(!L&&!H)return Yv;let T=M?.nodeId===Q&&M?.id===U&&M?.type===Z;return{connectingFrom:L?.nodeId===Q&&L?.id===U&&L?.type===Z,connectingTo:T,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===u6.Strict?L?.type!==Z:Q!==L?.nodeId||U!==L?.id,connectionInProcess:!!L,clickConnectionInProcess:!!H,valid:T&&O}};function Wv({type:Q="source",position:U=b1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:L,children:M,className:O,onMouseDown:T,onTouchStart:A,...R},P){let N=W||null,V=Q==="target",v=x0(),f=nK(),{connectOnClick:y,noPanClassName:C,rfId:j}=Hv(),{connectingFrom:u,connectingTo:h,clickConnecting:E,isPossibleEndHandle:b,connectionInProcess:D,clickConnectionInProcess:x,valid:$1}=H0(zv(f,N,Q),h0);if(!f)v.getState().onError?.("010",n2.error010());let Q1=(p)=>{let{defaultEdgeOptions:c,onConnect:a,hasDefaultEdges:i}=v.getState(),o={...c,...p};if(i){let{edges:k,setEdges:g,onError:q1}=v.getState();g(dS(o,k,{onError:q1}))}a?.(o),L?.(o)},J1=(p)=>{if(!f)return;let c=mK(p.nativeEvent);if(H&&(c&&p.button===0||!c)){let a=v.getState();eq.onPointerDown(p.nativeEvent,{handleDomNode:p.currentTarget,autoPanOnConnect:a.autoPanOnConnect,connectionMode:a.connectionMode,connectionRadius:a.connectionRadius,domNode:a.domNode,nodeLookup:a.nodeLookup,lib:a.lib,isTarget:V,handleId:N,nodeId:f,flowId:a.rfId,panBy:a.panBy,cancelConnection:a.cancelConnection,onConnectStart:a.onConnectStart,onConnectEnd:(...i)=>v.getState().onConnectEnd?.(...i),updateConnection:a.updateConnection,onConnect:Q1,isValidConnection:Z||((...i)=>v.getState().isValidConnection?.(...i)??!0),getTransform:()=>v.getState().transform,getFromHandle:()=>v.getState().connection.fromHandle,autoPanSpeed:a.autoPanSpeed,dragThreshold:a.connectionDragThreshold})}if(c)T?.(p);else A?.(p)},m=(p)=>{let{onClickConnectStart:c,onClickConnectEnd:a,connectionClickStartHandle:i,connectionMode:o,isValidConnection:k,lib:g,rfId:q1,nodeLookup:t,connection:W1}=v.getState();if(!f||!i&&!H)return;if(!i){c?.(p.nativeEvent,{nodeId:f,handleId:N,handleType:Q}),v.setState({connectionClickStartHandle:{nodeId:f,type:Q,id:N}});return}let T1=hK(p.target),O1=Z||k,{connection:L1,isValid:U1}=eq.isValid(p.nativeEvent,{handle:{nodeId:f,id:N,type:Q},connectionMode:o,fromNodeId:i.nodeId,fromHandleId:i.id||null,fromType:i.type,isValidConnection:O1,flowId:q1,doc:T1,lib:g,nodeLookup:t});if(U1&&L1)Q1(L1);let P1=structuredClone(W1);delete P1.inProgress,P1.toPosition=P1.toHandle?P1.toHandle.position:null,a?.(p,P1),v.setState({connectionClickStartHandle:null})};return H1.jsx("div",{"data-handleid":N,"data-nodeid":f,"data-handlepos":U,"data-id":`${j}-${f}-${N}-${Q}`,className:d0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",C,O,{source:!V,target:V,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:E,connectingfrom:u,connectingto:h,valid:$1,connectionindicator:K&&(!D||b)&&(D||x?Y:H)}]),onMouseDown:J1,onTouchStart:J1,onClick:y?m:void 0,ref:P,...R,children:M})}var QU=z1.memo(YR(Wv));function Lv({data:Q,isConnectable:U,sourcePosition:Z=b1.Bottom}){return H1.jsxs(H1.Fragment,{children:[Q?.label,H1.jsx(QU,{type:"source",position:Z,isConnectable:U})]})}function Bv({data:Q,isConnectable:U,targetPosition:Z=b1.Top,sourcePosition:K=b1.Bottom}){return H1.jsxs(H1.Fragment,{children:[H1.jsx(QU,{type:"target",position:Z,isConnectable:U}),Q?.label,H1.jsx(QU,{type:"source",position:K,isConnectable:U})]})}function Av(){return null}function Mv({data:Q,isConnectable:U,targetPosition:Z=b1.Top}){return H1.jsxs(H1.Fragment,{children:[H1.jsx(QU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var qU={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},iT={input:Lv,default:Bv,output:Mv,group:Av};function Tv(Q){if(Q.internals.handleBounds===void 0)return{width:Q.width??Q.initialWidth??Q.style?.width,height:Q.height??Q.initialHeight??Q.style?.height};return{width:Q.width??Q.style?.width,height:Q.height??Q.style?.height}}var Rv=(Q)=>{let{width:U,height:Z,x:K,y:H}=l8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:c5(U)?U:null,height:c5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${H}px)`}};function Ov({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=x0(),{width:H,height:Y,transformString:W,userSelectionActive:L}=H0(Rv,h0),M=BR(),O=z1.useRef(null);z1.useEffect(()=>{if(!Z)O.current?.focus({preventScroll:!0})},[Z]);let T=!L&&H!==null&&Y!==null;if(LR({nodeRef:O,disabled:!T}),!T)return null;let A=Q?(P)=>{let N=K.getState().nodes.filter((V)=>V.selected);Q(P,N)}:void 0,R=(P)=>{if(Object.prototype.hasOwnProperty.call(qU,P.key))P.preventDefault(),M({direction:qU[P.key],factor:P.shiftKey?4:1})};return H1.jsx("div",{className:d0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:H1.jsx("div",{ref:O,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:R,style:{width:H,height:Y}})})}var dT=typeof window<"u"?window:void 0,Iv=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function MR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:L,deleteKeyCode:M,selectionKeyCode:O,selectionOnDrag:T,selectionMode:A,onSelectionStart:R,onSelectionEnd:P,multiSelectionKeyCode:N,panActivationKeyCode:V,zoomActivationKeyCode:v,elementsSelectable:f,zoomOnScroll:y,zoomOnPinch:C,panOnScroll:j,panOnScrollSpeed:u,panOnScrollMode:h,zoomOnDoubleClick:E,panOnDrag:b,autoPanOnSelection:D,defaultViewport:x,translateExtent:$1,minZoom:Q1,maxZoom:J1,preventScrolling:m,onSelectionContextMenu:p,noWheelClassName:c,noPanClassName:a,disableKeyboardA11y:i,onViewportChange:o,isControlledViewport:k}){let{nodesSelectionActive:g,userSelectionActive:q1}=H0(Iv,h0),t=xJ(O,{target:dT}),W1=xJ(V,{target:dT}),T1=W1||b,O1=W1||j,L1=T&&T1!==!0,U1=t||q1||L1;return eS({deleteKeyCode:M,multiSelectionKeyCode:N}),H1.jsx($v,{onPaneContextMenu:Y,elementsSelectable:f,zoomOnScroll:y,zoomOnPinch:C,panOnScroll:O1,panActivationKeyPressed:W1,panOnScrollSpeed:u,panOnScrollMode:h,zoomOnDoubleClick:E,panOnDrag:!t&&T1,defaultViewport:x,translateExtent:$1,minZoom:Q1,maxZoom:J1,zoomActivationKeyCode:v,preventScrolling:m,noWheelClassName:c,noPanClassName:a,onViewportChange:o,isControlledViewport:k,paneClickDistance:L,selectionOnDrag:L1,children:H1.jsxs(Gv,{onSelectionStart:R,onSelectionEnd:P,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:T1,autoPanOnSelection:D,isSelecting:!!U1,selectionMode:A,selectionKeyPressed:t,paneClickDistance:L,selectionOnDrag:L1,children:[Q,g&&H1.jsx(Ov,{onSelectionContextMenu:p,noPanClassName:a,disableKeyboardA11y:i})]})})}MR.displayName="FlowRenderer";var wv=z1.memo(MR),Pv=(Q)=>(U)=>{return Q?pq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function Nv(Q){return H0(z1.useCallback(Pv(Q),[Q]),h0)}var Cv=(Q)=>Q.updateNodeInternals;function fv(){let Q=H0(Cv),[U]=z1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let K=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");K.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(K)})});return z1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Sv({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let H=x0(),Y=z1.useRef(null),W=z1.useRef(null),L=z1.useRef(Q.sourcePosition),M=z1.useRef(Q.targetPosition),O=z1.useRef(U),T=Z&&!!Q.internals.handleBounds;return z1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||W.current!==Y.current)){if(W.current)K?.unobserve(W.current);K?.observe(Y.current),W.current=Y.current}},[T,Q.hidden]),z1.useEffect(()=>{return()=>{if(W.current)K?.unobserve(W.current),W.current=null}},[]),z1.useEffect(()=>{if(Y.current){let A=O.current!==U,R=L.current!==Q.sourcePosition,P=M.current!==Q.targetPosition;if(A||R||P)O.current=U,L.current=Q.sourcePosition,M.current=Q.targetPosition,H.getState().updateNodeInternals(new Map([[Q.id,{id:Q.id,nodeElement:Y.current,force:!0}]]))}},[Q.id,U,Q.sourcePosition,Q.targetPosition]),Y}function vv({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:L,elementsSelectable:M,nodesConnectable:O,nodesFocusable:T,resizeObserver:A,noDragClassName:R,noPanClassName:P,disableKeyboardA11y:N,rfId:V,nodeTypes:v,nodeClickDistance:f,onError:y}){let{node:C,internals:j,isParent:u}=H0((U1)=>{let P1=U1.nodeLookup.get(Q),v1=U1.parentLookup.has(Q);return{node:P1,internals:P1.internals,isParent:v1}},h0),h=C.type||"default",E=v?.[h]||iT[h];if(E===void 0)y?.("003",n2.error003(h)),h="default",E=v?.default||iT.default;let b=!!(C.draggable||L&&typeof C.draggable>"u"),D=!!(C.selectable||M&&typeof C.selectable>"u"),x=!!(C.connectable||O&&typeof C.connectable>"u"),$1=!!(C.focusable||T&&typeof C.focusable>"u"),Q1=x0(),J1=DK(C),m=Sv({node:C,nodeType:h,hasDimensions:J1,resizeObserver:A}),p=LR({nodeRef:m,disabled:C.hidden||!b,noDragClassName:R,handleSelector:C.dragHandle,nodeId:Q,isSelectable:D,nodeClickDistance:f}),c=BR();if(C.hidden)return null;let a=i5(C),i=Tv(C),o=D||b||U||Z||K||H,k=Z?(U1)=>Z(U1,{...j.userNode}):void 0,g=K?(U1)=>K(U1,{...j.userNode}):void 0,q1=H?(U1)=>H(U1,{...j.userNode}):void 0,t=Y?(U1)=>Y(U1,{...j.userNode}):void 0,W1=W?(U1)=>W(U1,{...j.userNode}):void 0,T1=(U1)=>{let{selectNodesOnDrag:P1,nodeDragThreshold:v1}=Q1.getState();if(D&&(!P1||!b||v1>0))tK({id:Q,store:Q1,nodeRef:m});if(U)U(U1,{...j.userNode})},O1=(U1)=>{if(xK(U1.nativeEvent)||N)return;if(PK.includes(U1.key)&&D){let P1=U1.key==="Escape";tK({id:Q,store:Q1,unselect:P1,nodeRef:m})}else if(b&&C.selected&&Object.prototype.hasOwnProperty.call(qU,U1.key)){U1.preventDefault();let{ariaLabelConfig:P1}=Q1.getState();Q1.setState({ariaLiveMessage:P1["node.a11yDescription.ariaLiveMessage"]({direction:U1.key.replace("Arrow","").toLowerCase(),x:~~j.positionAbsolute.x,y:~~j.positionAbsolute.y})}),c({direction:qU[U1.key],factor:U1.shiftKey?4:1})}},L1=()=>{if(N||!m.current?.matches(":focus-visible"))return;let{transform:U1,width:P1,height:v1,autoPanOnNodeFocus:A1,setCenter:k1}=Q1.getState();if(!A1)return;if(!(pq(new Map([[Q,C]]),{x:0,y:0,width:P1,height:v1},U1,!0).length>0))k1(C.position.x+a.width/2,C.position.y+a.height/2,{zoom:U1[2]})};return H1.jsx("div",{className:d0(["react-flow__node",`react-flow__node-${h}`,{[P]:b},C.className,{selected:C.selected,selectable:D,parent:u,draggable:b,dragging:p}]),ref:m,style:{zIndex:j.z,transform:`translate(${j.positionAbsolute.x}px,${j.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:J1?"visible":"hidden",...C.style,...i},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:k,onMouseMove:g,onMouseLeave:q1,onContextMenu:t,onClick:T1,onDoubleClick:W1,onKeyDown:$1?O1:void 0,tabIndex:$1?0:void 0,onFocus:$1?L1:void 0,role:C.ariaRole??($1?"group":void 0),"aria-roledescription":"node","aria-describedby":N?void 0:`${ZR}-${V}`,"aria-label":C.ariaLabel,...C.domAttributes,children:H1.jsx(Fv,{value:Q,children:H1.jsx(E,{id:Q,data:C.data,type:h,positionAbsoluteX:j.positionAbsolute.x,positionAbsoluteY:j.positionAbsolute.y,selected:C.selected??!1,selectable:D,draggable:b,deletable:C.deletable??!0,isConnectable:x,sourcePosition:C.sourcePosition,targetPosition:C.targetPosition,dragging:p,dragHandle:C.dragHandle,zIndex:j.z,parentId:C.parentId,...a})})})}var jv=z1.memo(vv),yv=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function TR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:H}=H0(yv,h0),Y=Nv(Q.onlyRenderVisibleElements),W=fv();return H1.jsx("div",{className:"react-flow__nodes",style:GU,children:Y.map((L)=>{return H1.jsx(jv,{id:L,nodeTypes:Q.nodeTypes,nodeExtent:Q.nodeExtent,onClick:Q.onNodeClick,onMouseEnter:Q.onNodeMouseEnter,onMouseMove:Q.onNodeMouseMove,onMouseLeave:Q.onNodeMouseLeave,onContextMenu:Q.onNodeContextMenu,onDoubleClick:Q.onNodeDoubleClick,noDragClassName:Q.noDragClassName,noPanClassName:Q.noPanClassName,rfId:Q.rfId,disableKeyboardA11y:Q.disableKeyboardA11y,resizeObserver:W,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:H},L)})})}TR.displayName="NodeRenderer";var Vv=z1.memo(TR);function kv(Q){return H0(z1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let K=[];if(Z.width&&Z.height)for(let H of Z.edges){let Y=Z.nodeLookup.get(H.source),W=Z.nodeLookup.get(H.target);if(Y&&W&&_T({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))K.push(H.id)}return K},[Q]),h0)}var Dv=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return H1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},uv=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return H1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},rT={[z9.Arrow]:Dv,[z9.ArrowClosed]:uv};function bv(Q){let U=x0();return z1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(rT,Q))return U.getState().onError?.("009",n2.error009(Q)),null;return rT[Q]},[Q])}var Ev=({id:Q,type:U,color:Z,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:L="auto-start-reverse"})=>{let M=bv(U);if(!M)return null;return H1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:L,refX:"0",refY:"0",children:H1.jsx(M,{color:Z,strokeWidth:W})})},RR=({defaultColor:Q,rfId:U})=>{let Z=H0((Y)=>Y.edges),K=H0((Y)=>Y.defaultEdgeOptions),H=z1.useMemo(()=>{return QT(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!H.length)return null;return H1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:H1.jsx("defs",{children:H.map((Y)=>H1.jsx(Ev,{id:Y.id,type:Y.type,color:Y.color,width:Y.width,height:Y.height,markerUnits:Y.markerUnits,strokeWidth:Y.strokeWidth,orient:Y.orient},Y.id))})})};RR.displayName="MarkerDefinitions";var hv=z1.memo(RR);function OR({x:Q,y:U,label:Z,labelStyle:K,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:L=2,children:M,className:O,...T}){let[A,R]=z1.useState({x:1,y:0,width:0,height:0}),P=d0(["react-flow__edge-textwrapper",O]),N=z1.useRef(null);if(z1.useEffect(()=>{if(N.current){let V=N.current.getBBox();R({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return H1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:P,visibility:A.width?"visible":"hidden",...T,children:[H&&H1.jsx("rect",{width:A.width+2*W[0],x:-W[0],y:-W[1],height:A.height+2*W[1],className:"react-flow__edge-textbg",style:Y,rx:L,ry:L}),H1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:N,style:K,children:Z}),M]})}OR.displayName="EdgeText";var xv=z1.memo(OR);function ZU({path:Q,labelX:U,labelY:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:M,interactionWidth:O=20,...T}){return H1.jsxs(H1.Fragment,{children:[H1.jsx("path",{...T,d:Q,fill:"none",className:d0(["react-flow__edge-path",T.className])}),O?H1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:O,className:"react-flow__edge-interaction"}):null,K&&c5(U)&&c5(Z)?H1.jsx(xv,{x:U,y:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:M}):null]})}function aT({pos:Q,x1:U,y1:Z,x2:K,y2:H}){if(Q===b1.Left||Q===b1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+H)]}function IR({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top}){let[W,L]=aT({pos:Z,x1:Q,y1:U,x2:K,y2:H}),[M,O]=aT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[T,A,R,P]=rq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:W,sourceControlY:L,targetControlX:M,targetControlY:O});return[`M${Q},${U} C${W},${L} ${M},${O} ${K},${H}`,T,A,R,P]}function wR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W,targetPosition:L,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:v,interactionWidth:f})=>{let[y,C,j]=IR({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L}),u=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:u,path:y,labelX:C,labelY:j,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:v,interactionWidth:f})})}var mv=wR({isInternal:!1}),PR=wR({isInternal:!0});mv.displayName="SimpleBezierEdge";PR.displayName="SimpleBezierEdgeInternal";function NR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,sourcePosition:P=b1.Bottom,targetPosition:N=b1.Top,markerEnd:V,markerStart:v,pathOptions:f,interactionWidth:y})=>{let[C,j,u]=hJ({sourceX:Z,sourceY:K,sourcePosition:P,targetX:H,targetY:Y,targetPosition:N,borderRadius:f?.borderRadius,offset:f?.offset,stepPosition:f?.stepPosition}),h=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:h,path:C,labelX:j,labelY:u,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:V,markerStart:v,interactionWidth:y})})}var CR=NR({isInternal:!1}),fR=NR({isInternal:!0});CR.displayName="SmoothStepEdge";fR.displayName="SmoothStepEdgeInternal";function SR(Q){return z1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return H1.jsx(CR,{...Z,id:K,pathOptions:z1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var gv=SR({isInternal:!1}),vR=SR({isInternal:!0});gv.displayName="StepEdge";vR.displayName="StepEdgeInternal";function jR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:P,markerStart:N,interactionWidth:V})=>{let[v,f,y]=sq({sourceX:Z,sourceY:K,targetX:H,targetY:Y}),C=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:C,path:v,labelX:f,labelY:y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:P,markerStart:N,interactionWidth:V})})}var pv=jR({isInternal:!1}),yR=jR({isInternal:!0});pv.displayName="StraightEdge";yR.displayName="StraightEdgeInternal";function VR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W=b1.Bottom,targetPosition:L=b1.Top,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:v,pathOptions:f,interactionWidth:y})=>{let[C,j,u]=aq({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L,curvature:f?.curvature}),h=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:h,path:C,labelX:j,labelY:u,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:v,interactionWidth:y})})}var cv=VR({isInternal:!1}),kR=VR({isInternal:!0});cv.displayName="BezierEdge";kR.displayName="BezierEdgeInternal";var sT={default:kR,straight:yR,step:vR,smoothstep:fR,simplebezier:PR},tT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},lv=(Q,U,Z)=>{if(Z===b1.Left)return Q-U;if(Z===b1.Right)return Q+U;return Q},iv=(Q,U,Z)=>{if(Z===b1.Top)return Q-U;if(Z===b1.Bottom)return Q+U;return Q},oT="react-flow__edgeupdater";function nT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:L}){return H1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:d0([oT,`${oT}-${L}`]),cx:lv(U,K,Q),cy:iv(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function dv({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:H,targetX:Y,targetY:W,sourcePosition:L,targetPosition:M,onReconnect:O,onReconnectStart:T,onReconnectEnd:A,setReconnecting:R,setUpdateHover:P}){let N=x0(),V=(j,u)=>{if(j.button!==0)return;let{autoPanOnConnect:h,domNode:E,connectionMode:b,connectionRadius:D,lib:x,onConnectStart:$1,cancelConnection:Q1,nodeLookup:J1,rfId:m,panBy:p,updateConnection:c}=N.getState(),a=u.type==="target",i=(g,q1)=>{R(!1),A?.(g,Z,u.type,q1)},o=(g)=>O?.(Z,g),k=(g,q1)=>{R(!0),T?.(j,Z,u.type),$1?.(g,q1)};eq.onPointerDown(j.nativeEvent,{autoPanOnConnect:h,connectionMode:b,connectionRadius:D,domNode:E,handleId:u.id,nodeId:u.nodeId,nodeLookup:J1,isTarget:a,edgeUpdaterType:u.type,lib:x,flowId:m,cancelConnection:Q1,panBy:p,isValidConnection:(...g)=>N.getState().isValidConnection?.(...g)??!0,onConnect:o,onConnectStart:k,onConnectEnd:(...g)=>N.getState().onConnectEnd?.(...g),onReconnectEnd:i,updateConnection:c,getTransform:()=>N.getState().transform,getFromHandle:()=>N.getState().connection.fromHandle,dragThreshold:N.getState().connectionDragThreshold,handleDomNode:j.currentTarget})},v=(j)=>V(j,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),f=(j)=>V(j,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),y=()=>P(!0),C=()=>P(!1);return H1.jsxs(H1.Fragment,{children:[(Q===!0||Q==="source")&&H1.jsx(nT,{position:L,centerX:K,centerY:H,radius:U,onMouseDown:v,onMouseEnter:y,onMouseOut:C,type:"source"}),(Q===!0||Q==="target")&&H1.jsx(nT,{position:M,centerX:Y,centerY:W,radius:U,onMouseDown:f,onMouseEnter:y,onMouseOut:C,type:"target"})]})}function rv({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:M,onMouseLeave:O,reconnectRadius:T,onReconnect:A,onReconnectStart:R,onReconnectEnd:P,rfId:N,edgeTypes:V,noPanClassName:v,onError:f,disableKeyboardA11y:y}){let C=H0((k1)=>k1.edgeLookup.get(Q)),j=H0((k1)=>k1.defaultEdgeOptions);C=j?{...j,...C}:C;let u=C.type||"default",h=V?.[u]||sT[u];if(h===void 0)f?.("011",n2.error011(u)),u="default",h=V?.default||sT.default;let E=!!(C.focusable||U&&typeof C.focusable>"u"),b=typeof A<"u"&&(C.reconnectable||Z&&typeof C.reconnectable>"u"),D=!!(C.selectable||K&&typeof C.selectable>"u"),x=z1.useRef(null),[$1,Q1]=z1.useState(!1),[J1,m]=z1.useState(!1),p=x0(),{zIndex:c=C.zIndex,sourceX:a,sourceY:i,targetX:o,targetY:k,sourcePosition:g,targetPosition:q1}=H0(z1.useCallback((k1)=>{let D1=k1.nodeLookup.get(C.source),g1=k1.nodeLookup.get(C.target);if(!D1||!g1)return tT;let h1=$T({id:Q,sourceNode:D1,targetNode:g1,sourceHandle:C.sourceHandle||null,targetHandle:C.targetHandle||null,connectionMode:k1.connectionMode,onError:f}),M1=eM({selected:C.selected,zIndex:C.zIndex,sourceNode:D1,targetNode:g1,elevateOnSelect:k1.elevateEdgesOnSelect,zIndexMode:k1.zIndexMode});return{...h1||tT,zIndex:M1}},[C.source,C.target,C.sourceHandle,C.targetHandle,C.selected,C.zIndex,f]),h0),t=z1.useMemo(()=>C.markerStart?`url('#${tq(C.markerStart,N)}')`:void 0,[C.markerStart,N]),W1=z1.useMemo(()=>C.markerEnd?`url('#${tq(C.markerEnd,N)}')`:void 0,[C.markerEnd,N]);if(C.hidden||a===null||i===null||o===null||k===null)return null;let T1=(k1)=>{let{addSelectedEdges:D1,unselectNodesAndEdges:g1,multiSelectionActive:h1}=p.getState();if(D)if(p.setState({nodesSelectionActive:!1}),C.selected&&h1)g1({nodes:[],edges:[C]}),x.current?.blur();else D1([Q]);if(H)H(k1,C)},O1=Y?(k1)=>{Y(k1,{...C})}:void 0,L1=W?(k1)=>{W(k1,{...C})}:void 0,U1=L?(k1)=>{L(k1,{...C})}:void 0,P1=M?(k1)=>{M(k1,{...C})}:void 0,v1=O?(k1)=>{O(k1,{...C})}:void 0,A1=(k1)=>{if(!y&&PK.includes(k1.key)&&D){let{unselectNodesAndEdges:D1,addSelectedEdges:g1}=p.getState();if(k1.key==="Escape")x.current?.blur(),D1({edges:[C]});else g1([Q])}};return H1.jsx("svg",{style:{zIndex:c},children:H1.jsxs("g",{className:d0(["react-flow__edge",`react-flow__edge-${u}`,C.className,v,{selected:C.selected,animated:C.animated,inactive:!D&&!H,updating:$1,selectable:D}]),onClick:T1,onDoubleClick:O1,onContextMenu:L1,onMouseEnter:U1,onMouseMove:P1,onMouseLeave:v1,onKeyDown:E?A1:void 0,tabIndex:E?0:void 0,role:C.ariaRole??(E?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":C.ariaLabel===null?void 0:C.ariaLabel||`Edge from ${C.source} to ${C.target}`,"aria-describedby":E?`${FR}-${N}`:void 0,ref:x,...C.domAttributes,children:[!J1&&H1.jsx(h,{id:Q,source:C.source,target:C.target,type:C.type,selected:C.selected,animated:C.animated,selectable:D,deletable:C.deletable??!0,label:C.label,labelStyle:C.labelStyle,labelShowBg:C.labelShowBg,labelBgStyle:C.labelBgStyle,labelBgPadding:C.labelBgPadding,labelBgBorderRadius:C.labelBgBorderRadius,sourceX:a,sourceY:i,targetX:o,targetY:k,sourcePosition:g,targetPosition:q1,data:C.data,style:C.style,sourceHandleId:C.sourceHandle,targetHandleId:C.targetHandle,markerStart:t,markerEnd:W1,pathOptions:"pathOptions"in C?C.pathOptions:void 0,interactionWidth:C.interactionWidth}),b&&H1.jsx(dv,{edge:C,isReconnectable:b,reconnectRadius:T,onReconnect:A,onReconnectStart:R,onReconnectEnd:P,sourceX:a,sourceY:i,targetX:o,targetY:k,sourcePosition:g,targetPosition:q1,setUpdateHover:Q1,setReconnecting:m})]})})}var av=z1.memo(rv),sv=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function DR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:L,onEdgeMouseMove:M,onEdgeMouseLeave:O,onEdgeClick:T,reconnectRadius:A,onEdgeDoubleClick:R,onReconnectStart:P,onReconnectEnd:N,disableKeyboardA11y:V}){let{edgesFocusable:v,edgesReconnectable:f,elementsSelectable:y,onError:C}=H0(sv,h0),j=kv(U);return H1.jsxs("div",{className:"react-flow__edges",children:[H1.jsx(hv,{defaultColor:Q,rfId:Z}),j.map((u)=>{return H1.jsx(av,{id:u,edgesFocusable:v,edgesReconnectable:f,elementsSelectable:y,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:M,onMouseLeave:O,onClick:T,reconnectRadius:A,onDoubleClick:R,onReconnectStart:P,onReconnectEnd:N,rfId:Z,onError:C,edgeTypes:K,disableKeyboardA11y:V},u)})]})}DR.displayName="EdgeRenderer";var tv=z1.memo(DR),eT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function ov({children:Q}){let U=x0(),Z=z1.useRef(null),[K]=z1.useState(()=>U.getState().transform);return zR(()=>{let H=null,Y=()=>{let W=U.getState().transform;if(H&&W[0]===H[0]&&W[1]===H[1]&&W[2]===H[2])return;if(H=W,Z.current)Z.current.style.transform=eT(W)};return Y(),U.subscribe(Y)},[U]),H1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:eT(K)},children:Q})}function nv(Q){let U=mJ(),Z=z1.useRef(!1);z1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var ev=(Q)=>Q.panZoom?.syncViewport;function _j(Q){let U=H0(ev),Z=x0();return z1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function _R(Q){return Q.connection.inProgress?{...Q.connection,to:M9(Q.connection.to,Q.transform)}:{...Q.connection}}function Jj(Q){if(Q)return(Z)=>{let K=_R(Z);return Q(K)};return _R}function $j(Q){let U=Jj(Q);return H0(U,h0)}var Qj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function qj({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:H,width:Y,height:W,isValid:L,inProgress:M}=H0(Qj,h0);if(!(Y&&H&&M))return null;return H1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:H1.jsx("g",{className:d0(["react-flow__connection",EK(L)]),children:H1.jsx(uR,{style:U,type:Z,CustomComponent:K,isValid:L})})})}var uR=({style:Q,type:U=r4.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:L,fromPosition:M,to:O,toNode:T,toHandle:A,toPosition:R,pointer:P}=$j();if(!H)return;if(Z)return H1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:L,fromX:Y.x,fromY:Y.y,toX:O.x,toY:O.y,fromPosition:M,toPosition:R,connectionStatus:EK(K),toNode:T,toHandle:A,pointer:P});let N="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:M,targetX:O.x,targetY:O.y,targetPosition:R};switch(U){case r4.Bezier:[N]=aq(V);break;case r4.SimpleBezier:[N]=IR(V);break;case r4.Step:[N]=hJ({...V,borderRadius:0});break;case r4.SmoothStep:[N]=hJ(V);break;default:[N]=sq(V)}return H1.jsx("path",{d:N,fill:"none",className:"react-flow__connection-path",style:Q})};uR.displayName="ConnectionLine";var Uj={};function JR(Q=Uj){let U=z1.useRef(Q),Z=x0();z1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of K)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",n2.error002());break}U.current=Q}},[Q])}function Gj(){let Q=x0(),U=z1.useRef(!1);z1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",n2.error013("react"));U.current=!0}},[])}function bR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:O,onNodeContextMenu:T,onSelectionContextMenu:A,onSelectionStart:R,onSelectionEnd:P,connectionLineType:N,connectionLineStyle:V,connectionLineComponent:v,connectionLineContainerStyle:f,selectionKeyCode:y,selectionOnDrag:C,selectionMode:j,multiSelectionKeyCode:u,panActivationKeyCode:h,zoomActivationKeyCode:E,deleteKeyCode:b,onlyRenderVisibleElements:D,elementsSelectable:x,defaultViewport:$1,translateExtent:Q1,minZoom:J1,maxZoom:m,preventScrolling:p,defaultMarkerColor:c,zoomOnScroll:a,zoomOnPinch:i,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:g,zoomOnDoubleClick:q1,panOnDrag:t,autoPanOnSelection:W1,onPaneClick:T1,onPaneMouseEnter:O1,onPaneMouseMove:L1,onPaneMouseLeave:U1,onPaneScroll:P1,onPaneContextMenu:v1,paneClickDistance:A1,nodeClickDistance:k1,onEdgeContextMenu:D1,onEdgeMouseEnter:g1,onEdgeMouseMove:h1,onEdgeMouseLeave:M1,reconnectRadius:r1,onReconnect:u1,onReconnectStart:D0,onReconnectEnd:o1,noDragClassName:X2,noWheelClassName:K2,noPanClassName:N2,disableKeyboardA11y:A2,nodeExtent:C2,rfId:M2,viewport:H2,onViewportChange:_2,nodesDraggable:z4}){return JR(Q),JR(U),Gj(),nv(Z),_j(H2),H1.jsx(wv,{onPaneClick:T1,onPaneMouseEnter:O1,onPaneMouseMove:L1,onPaneMouseLeave:U1,onPaneContextMenu:v1,onPaneScroll:P1,paneClickDistance:A1,deleteKeyCode:b,selectionKeyCode:y,selectionOnDrag:C,selectionMode:j,onSelectionStart:R,onSelectionEnd:P,multiSelectionKeyCode:u,panActivationKeyCode:h,zoomActivationKeyCode:E,elementsSelectable:x,zoomOnScroll:a,zoomOnPinch:i,zoomOnDoubleClick:q1,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:g,panOnDrag:t,autoPanOnSelection:W1,defaultViewport:$1,translateExtent:Q1,minZoom:J1,maxZoom:m,onSelectionContextMenu:A,preventScrolling:p,noDragClassName:X2,noWheelClassName:K2,noPanClassName:N2,disableKeyboardA11y:A2,onViewportChange:_2,isControlledViewport:!!H2,children:H1.jsxs(ov,{children:[H1.jsx(tv,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:u1,onReconnectStart:D0,onReconnectEnd:o1,onlyRenderVisibleElements:D,onEdgeContextMenu:D1,onEdgeMouseEnter:g1,onEdgeMouseMove:h1,onEdgeMouseLeave:M1,reconnectRadius:r1,defaultMarkerColor:c,noPanClassName:N2,disableKeyboardA11y:A2,rfId:M2}),H1.jsx(qj,{style:V,type:N,component:v,containerStyle:f}),H1.jsx("div",{className:"react-flow__edgelabel-renderer"}),H1.jsx(Vv,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:O,onNodeContextMenu:T,nodeClickDistance:k1,onlyRenderVisibleElements:D,noPanClassName:N2,noDragClassName:X2,disableKeyboardA11y:A2,nodeExtent:C2,rfId:M2,nodesDraggable:z4}),H1.jsx("div",{className:"react-flow__viewport-portal"})]})})}bR.displayName="GraphView";var Zj=z1.memo(bR),Fj=kK("React Flow","https://reactflow.dev/"),$R=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M=0.5,maxZoom:O=2,nodeOrigin:T,nodeExtent:A,zIndexMode:R="basic"}={})=>{let P=new Map,N=new Map,V=new Map,v=new Map,f=K??U??[],y=Z??Q??[],C=T??[0,0],j=A??L9;dK(V,v,f);let{nodesInitialized:u}=oq(y,P,N,{nodeOrigin:C,nodeExtent:j,zIndexMode:R}),h=[0,0,1];if(W&&H&&Y){let E=l8(P,{filter:($1)=>!!(($1.width||$1.initialWidth)&&($1.height||$1.initialHeight))}),{x:b,y:D,zoom:x}=EJ(E,H,Y,M,O,L?.padding??0.1);h=[b,D,x]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:y,nodesInitialized:u,nodeLookup:P,parentLookup:N,edges:f,edgeLookup:v,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:M,maxZoom:O,translateExtent:L9,nodeExtent:j,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:u6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:W??!1,fitViewOptions:L,fitViewResolver:null,connection:{...CK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Fj,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:NK,zIndexMode:R,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},Xj=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M,maxZoom:O,nodeOrigin:T,nodeExtent:A,zIndexMode:R})=>yT((P,N)=>{async function V(){let{nodeLookup:v,panZoom:f,fitViewOptions:y,fitViewResolver:C,width:j,height:u,minZoom:h,maxZoom:E}=N();if(!f)return;await dM({nodes:v,width:j,height:u,panZoom:f,minZoom:h,maxZoom:E},y),C?.resolve(!0),P({fitViewResolver:null})}return{...$R({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M,maxZoom:O,nodeOrigin:T,nodeExtent:A,defaultNodes:Z,defaultEdges:K,zIndexMode:R}),setNodes:(v)=>{let{nodeLookup:f,parentLookup:y,nodeOrigin:C,nodeExtent:j,elevateNodesOnSelect:u,fitViewQueued:h,zIndexMode:E,nodesSelectionActive:b}=N(),{nodesInitialized:D,hasSelectedNodes:x}=oq(v,f,y,{nodeOrigin:C,nodeExtent:j,elevateNodesOnSelect:u,checkEquality:!0,zIndexMode:E}),$1=b&&x;if(h&&D)V(),P({nodes:v,nodesInitialized:D,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:$1});else P({nodes:v,nodesInitialized:D,nodesSelectionActive:$1})},setEdges:(v)=>{let{connectionLookup:f,edgeLookup:y}=N();dK(f,y,v),P({edges:v})},setDefaultNodesAndEdges:(v,f)=>{if(v){let{setNodes:y}=N();y(v),P({hasDefaultNodes:!0})}if(f){let{setEdges:y}=N();y(f),P({hasDefaultEdges:!0})}},updateNodeInternals:(v)=>{let{triggerNodeChanges:f,nodeLookup:y,parentLookup:C,domNode:j,nodeOrigin:u,nodeExtent:h,debug:E,fitViewQueued:b,zIndexMode:D}=N(),{changes:x,updatedInternals:$1}=FT(v,y,C,j,u,h,D);if(!$1)return;if(GT(y,C,{nodeOrigin:u,nodeExtent:h,zIndexMode:D}),b)V(),P({fitViewQueued:!1,fitViewOptions:void 0});else P({});if(x?.length>0){if(E)console.log("React Flow: trigger node changes",x);f?.(x)}},updateNodePositions:(v,f=!1)=>{let y=[],C=[],{nodeLookup:j,triggerNodeChanges:u,connection:h,updateConnection:E,onNodesChangeMiddlewareMap:b}=N();for(let[D,x]of v){let $1=j.get(D),Q1=!!($1?.expandParent&&$1?.parentId&&x?.position),J1={id:D,type:"position",position:Q1?{x:Math.max(0,x.position.x),y:Math.max(0,x.position.y)}:x.position,dragging:f};if($1&&h.inProgress&&h.fromNode.id===$1.id){let m=b6($1,h.fromHandle,b1.Left,!0);E({...h,from:m})}if(Q1&&$1.parentId)y.push({id:D,parentId:$1.parentId,rect:{...x.internals.positionAbsolute,width:x.measured.width??0,height:x.measured.height??0}});C.push(J1)}if(y.length>0){let{parentLookup:D,nodeOrigin:x}=N(),$1=nq(y,j,D,x);C.push(...$1)}for(let D of b.values())C=D(C);u(C)},triggerNodeChanges:(v)=>{let{onNodesChange:f,setNodes:y,nodes:C,hasDefaultNodes:j,debug:u}=N();if(v?.length){if(j){let h=HR(v,C);y(h)}if(u)console.log("React Flow: trigger node changes",v);f?.(v)}},triggerEdgeChanges:(v)=>{let{onEdgesChange:f,setEdges:y,edges:C,hasDefaultEdges:j,debug:u}=N();if(v?.length){if(j){let h=lS(v,C);y(h)}if(u)console.log("React Flow: trigger edge changes",v);f?.(v)}},addSelectedNodes:(v)=>{let{multiSelectionActive:f,edgeLookup:y,nodeLookup:C,triggerNodeChanges:j,triggerEdgeChanges:u}=N();if(f){let h=v.map((E)=>i8(E,!0));j(h);return}j(R9(C,new Set([...v]),!0)),u(R9(y))},addSelectedEdges:(v)=>{let{multiSelectionActive:f,edgeLookup:y,nodeLookup:C,triggerNodeChanges:j,triggerEdgeChanges:u}=N();if(f){let h=v.map((E)=>i8(E,!0));u(h);return}u(R9(y,new Set([...v]))),j(R9(C,new Set,!0))},unselectNodesAndEdges:({nodes:v,edges:f}={})=>{let{edges:y,nodes:C,nodeLookup:j,triggerNodeChanges:u,triggerEdgeChanges:h}=N(),E=v?v:C,b=f?f:y,D=[];for(let $1 of E){if(!$1.selected)continue;let Q1=j.get($1.id);if(Q1)Q1.selected=!1;D.push(i8($1.id,!1))}let x=[];for(let $1 of b){if(!$1.selected)continue;x.push(i8($1.id,!1))}u(D),h(x)},setMinZoom:(v)=>{let{panZoom:f,maxZoom:y}=N();f?.setScaleExtent([v,y]),P({minZoom:v})},setMaxZoom:(v)=>{let{panZoom:f,minZoom:y}=N();f?.setScaleExtent([y,v]),P({maxZoom:v})},setTranslateExtent:(v)=>{N().panZoom?.setTranslateExtent(v),P({translateExtent:v})},resetSelectedElements:()=>{let{edges:v,nodes:f,triggerNodeChanges:y,triggerEdgeChanges:C,elementsSelectable:j}=N();if(!j)return;let u=f.reduce((E,b)=>b.selected?[...E,i8(b.id,!1)]:E,[]),h=v.reduce((E,b)=>b.selected?[...E,i8(b.id,!1)]:E,[]);y(u),C(h)},setNodeExtent:(v)=>{let{nodes:f,nodeLookup:y,parentLookup:C,nodeOrigin:j,elevateNodesOnSelect:u,nodeExtent:h,zIndexMode:E}=N();if(v[0][0]===h[0][0]&&v[0][1]===h[0][1]&&v[1][0]===h[1][0]&&v[1][1]===h[1][1])return;oq(f,y,C,{nodeOrigin:j,nodeExtent:v,elevateNodesOnSelect:u,checkEquality:!1,zIndexMode:E}),P({nodeExtent:v})},panBy:(v)=>{let{transform:f,width:y,height:C,panZoom:j,translateExtent:u}=N();return XT({delta:v,panZoom:j,transform:f,translateExtent:u,width:y,height:C})},setCenter:async(v,f,y)=>{let{width:C,height:j,maxZoom:u,panZoom:h}=N();if(!h)return!1;let E=typeof y?.zoom<"u"?y.zoom:u;return await h.setViewport({x:C/2-v*E,y:j/2-f*E,zoom:E},{duration:y?.duration,ease:y?.ease,interpolate:y?.interpolate}),!0},cancelConnection:()=>{P({connection:{...CK}})},updateConnection:(v)=>{P({connection:v})},reset:()=>P({...$R()})}},Object.is);function eK({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:L,initialFitViewOptions:M,fitView:O,nodeOrigin:T,nodeExtent:A,zIndexMode:R,children:P}){let[N]=z1.useState(()=>Xj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:O,minZoom:W,maxZoom:L,fitViewOptions:M,nodeOrigin:T,nodeExtent:A,zIndexMode:R}));return H1.jsx(PS,{value:N,children:H1.jsx(sS,{children:H1.jsx(Kv,{children:P})})})}function Kj({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:H,width:Y,height:W,fitView:L,fitViewOptions:M,minZoom:O,maxZoom:T,nodeOrigin:A,nodeExtent:R,zIndexMode:P}){if(z1.useContext(UU))return H1.jsx(H1.Fragment,{children:Q});return H1.jsx(eK,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:L,initialFitViewOptions:M,initialMinZoom:O,initialMaxZoom:T,nodeOrigin:A,nodeExtent:R,zIndexMode:P,children:Q})}var Hj={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Yj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:L,onEdgeClick:M,onInit:O,onMove:T,onMoveStart:A,onMoveEnd:R,onConnect:P,onConnectStart:N,onConnectEnd:V,onClickConnectStart:v,onClickConnectEnd:f,onNodeMouseEnter:y,onNodeMouseMove:C,onNodeMouseLeave:j,onNodeContextMenu:u,onNodeDoubleClick:h,onNodeDragStart:E,onNodeDrag:b,onNodeDragStop:D,onNodesDelete:x,onEdgesDelete:$1,onDelete:Q1,onSelectionChange:J1,onSelectionDragStart:m,onSelectionDrag:p,onSelectionDragStop:c,onSelectionContextMenu:a,onSelectionStart:i,onSelectionEnd:o,onBeforeDelete:k,connectionMode:g,connectionLineType:q1=r4.Bezier,connectionLineStyle:t,connectionLineComponent:W1,connectionLineContainerStyle:T1,deleteKeyCode:O1="Backspace",selectionKeyCode:L1="Shift",selectionOnDrag:U1=!1,selectionMode:P1=m8.Full,panActivationKeyCode:v1="Space",multiSelectionKeyCode:A1=T9()?"Meta":"Control",zoomActivationKeyCode:k1=T9()?"Meta":"Control",snapToGrid:D1,snapGrid:g1,onlyRenderVisibleElements:h1=!1,selectNodesOnDrag:M1,nodesDraggable:r1,autoPanOnNodeFocus:u1,nodesConnectable:D0,nodesFocusable:o1,nodeOrigin:X2=XR,edgesFocusable:K2,edgesReconnectable:N2,elementsSelectable:A2=!0,defaultViewport:C2=ES,minZoom:M2=0.5,maxZoom:H2=2,translateExtent:_2=L9,preventScrolling:z4=!0,nodeExtent:m2,defaultMarkerColor:f5="#b1b1b7",zoomOnScroll:S5=!0,zoomOnPinch:r5=!0,panOnScroll:o4=!1,panOnScrollSpeed:G1=0.5,panOnScrollMode:I=j3.Free,zoomOnDoubleClick:l=!0,panOnDrag:F1=!0,onPaneClick:I1,onPaneMouseEnter:R1,onPaneMouseMove:N1,onPaneMouseLeave:C1,onPaneScroll:V1,onPaneContextMenu:j1,paneClickDistance:p1=1,nodeClickDistance:S0=0,children:w0,onReconnect:n4,onReconnectStart:v5,onReconnectEnd:T0,onEdgeContextMenu:e8,onEdgeDoubleClick:a5,onEdgeMouseEnter:e2,onEdgeMouseMove:iJ,onEdgeMouseLeave:LU,reconnectRadius:P9=10,onNodesChange:dJ,onEdgesChange:_7,noDragClassName:_5="nodrag",noWheelClassName:rJ="nowheel",noPanClassName:J7="nopan",fitView:N9,fitViewOptions:$7,connectOnClick:aJ,attributionPosition:sJ,proOptions:h3,defaultEdgeOptions:tJ,elevateNodesOnSelect:oJ=!0,elevateEdgesOnSelect:nJ=!1,disableKeyboardA11y:C9=!1,autoPanOnConnect:eJ,autoPanOnNodeDrag:g2,autoPanOnSelection:x3=!0,autoPanSpeed:e4,connectionRadius:_$,isValidConnection:m6,onError:Q7,style:f9,id:m3,nodeDragThreshold:g3,connectionDragThreshold:S9,viewport:BU,onViewportChange:AU,width:J$,height:v9,colorMode:j9="light",debug:$$,onScroll:y9,ariaLabelConfig:Q$,zIndexMode:q$="basic",...U$},V9){let p3=m3||"1",g6=gS(j9),MU=z1.useCallback((k9)=>{k9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),y9?.(k9)},[y9]);return H1.jsx("div",{"data-testid":"rf__wrapper",...U$,onScroll:MU,style:{...f9,...Hj},ref:V9,className:d0(["react-flow",H,g6]),id:m3,role:"application",children:H1.jsxs(Kj,{nodes:Q,edges:U,width:J$,height:v9,fitView:N9,fitViewOptions:$7,minZoom:M2,maxZoom:H2,nodeOrigin:X2,nodeExtent:m2,zIndexMode:q$,children:[H1.jsx(mS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:P,onConnectStart:N,onConnectEnd:V,onClickConnectStart:v,onClickConnectEnd:f,nodesDraggable:r1,autoPanOnNodeFocus:u1,nodesConnectable:D0,nodesFocusable:o1,edgesFocusable:K2,edgesReconnectable:N2,elementsSelectable:A2,elevateNodesOnSelect:oJ,elevateEdgesOnSelect:nJ,minZoom:M2,maxZoom:H2,nodeExtent:m2,onNodesChange:dJ,onEdgesChange:_7,snapToGrid:D1,snapGrid:g1,connectionMode:g,translateExtent:_2,connectOnClick:aJ,defaultEdgeOptions:tJ,fitView:N9,fitViewOptions:$7,onNodesDelete:x,onEdgesDelete:$1,onDelete:Q1,onNodeDragStart:E,onNodeDrag:b,onNodeDragStop:D,onSelectionDrag:p,onSelectionDragStart:m,onSelectionDragStop:c,onMove:T,onMoveStart:A,onMoveEnd:R,noPanClassName:J7,nodeOrigin:X2,rfId:p3,autoPanOnConnect:eJ,autoPanOnNodeDrag:g2,autoPanSpeed:e4,onError:Q7,connectionRadius:_$,isValidConnection:m6,selectNodesOnDrag:M1,nodeDragThreshold:g3,connectionDragThreshold:S9,onBeforeDelete:k,debug:$$,ariaLabelConfig:Q$,zIndexMode:q$}),H1.jsx(Zj,{onInit:O,onNodeClick:L,onEdgeClick:M,onNodeMouseEnter:y,onNodeMouseMove:C,onNodeMouseLeave:j,onNodeContextMenu:u,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:W,connectionLineType:q1,connectionLineStyle:t,connectionLineComponent:W1,connectionLineContainerStyle:T1,selectionKeyCode:L1,selectionOnDrag:U1,selectionMode:P1,deleteKeyCode:O1,multiSelectionKeyCode:A1,panActivationKeyCode:v1,zoomActivationKeyCode:k1,onlyRenderVisibleElements:h1,defaultViewport:C2,translateExtent:_2,minZoom:M2,maxZoom:H2,preventScrolling:z4,zoomOnScroll:S5,zoomOnPinch:r5,zoomOnDoubleClick:l,panOnScroll:o4,panOnScrollSpeed:G1,panOnScrollMode:I,panOnDrag:F1,autoPanOnSelection:x3,onPaneClick:I1,onPaneMouseEnter:R1,onPaneMouseMove:N1,onPaneMouseLeave:C1,onPaneScroll:V1,onPaneContextMenu:j1,paneClickDistance:p1,nodeClickDistance:S0,onSelectionContextMenu:a,onSelectionStart:i,onSelectionEnd:o,onReconnect:n4,onReconnectStart:v5,onReconnectEnd:T0,onEdgeContextMenu:e8,onEdgeDoubleClick:a5,onEdgeMouseEnter:e2,onEdgeMouseMove:iJ,onEdgeMouseLeave:LU,reconnectRadius:P9,defaultMarkerColor:f5,noDragClassName:_5,noWheelClassName:rJ,noPanClassName:J7,rfId:p3,disableKeyboardA11y:C9,nodeExtent:m2,viewport:BU,onViewportChange:AU,nodesDraggable:r1}),H1.jsx(bS,{onSelectionChange:J1}),w0,H1.jsx(yS,{proOptions:h3,position:sJ}),H1.jsx(jS,{rfId:p3,disableKeyboardA11y:C9})]})})}var ER=YR(Yj);function hR(Q){let[U,Z]=z1.useState(Q),K=z1.useCallback((H)=>Z((Y)=>HR(H,Y)),[]);return[U,Z,K]}var yg=n2.error014();function zj({dimensions:Q,lineWidth:U,variant:Z,className:K}){return H1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:d0(["react-flow__background-pattern",Z,K])})}function Wj({radius:Q,className:U}){return H1.jsx("circle",{cx:Q,cy:Q,r:Q,className:d0(["react-flow__background-pattern","dots",U])})}var a4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(a4||(a4={}));var Lj={[a4.Dots]:1,[a4.Lines]:1,[a4.Cross]:6},Bj=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function xR({id:Q,variant:U=a4.Dots,gap:Z=20,size:K,lineWidth:H=1,offset:Y=0,color:W,bgColor:L,style:M,className:O,patternClassName:T}){let A=z1.useRef(null),{transform:R,patternId:P}=H0(Bj,h0),N=K||Lj[U],V=U===a4.Dots,v=U===a4.Cross,f=Array.isArray(Z)?Z:[Z,Z],y=[f[0]*R[2]||1,f[1]*R[2]||1],C=N*R[2],j=Array.isArray(Y)?Y:[Y,Y],u=v?[C,C]:y,h=[j[0]*R[2]+u[0]/2,j[1]*R[2]+u[1]/2],E=`${P}${Q?Q:""}`;return H1.jsxs("svg",{className:d0(["react-flow__background",O]),style:{...M,...GU,"--xy-background-color-props":L,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[H1.jsx("pattern",{id:E,x:R[0]%y[0],y:R[1]%y[1],width:y[0],height:y[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:V?H1.jsx(Wj,{radius:C/2,className:T}):H1.jsx(zj,{dimensions:u,lineWidth:H,variant:U,className:T})}),H1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}xR.displayName="Background";var mR=z1.memo(xR);function Aj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:H1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Mj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:H1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Tj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:H1.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function Rj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:H1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Oj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:H1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function $U({children:Q,className:U,...Z}){return H1.jsx("button",{type:"button",className:d0(["react-flow__controls-button",U]),...Z,children:Q})}var Ij=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function gR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:L,onInteractiveChange:M,className:O,children:T,position:A="bottom-left",orientation:R="vertical","aria-label":P}){let N=x0(),{isInteractive:V,minZoomReached:v,maxZoomReached:f,ariaLabelConfig:y}=H0(Ij,h0),{zoomIn:C,zoomOut:j,fitView:u}=mJ(),h=()=>{C(),Y?.()},E=()=>{j(),W?.()},b=()=>{u(H),L?.()},D=()=>{N.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),M?.(!V)};return H1.jsxs(s4,{className:d0(["react-flow__controls",R==="horizontal"?"horizontal":"vertical",O]),position:A,style:Q,"data-testid":"rf__controls","aria-label":P??y["controls.ariaLabel"],children:[U&&H1.jsxs(H1.Fragment,{children:[H1.jsx($U,{onClick:h,className:"react-flow__controls-zoomin",title:y["controls.zoomIn.ariaLabel"],"aria-label":y["controls.zoomIn.ariaLabel"],disabled:f,children:H1.jsx(Aj,{})}),H1.jsx($U,{onClick:E,className:"react-flow__controls-zoomout",title:y["controls.zoomOut.ariaLabel"],"aria-label":y["controls.zoomOut.ariaLabel"],disabled:v,children:H1.jsx(Mj,{})})]}),Z&&H1.jsx($U,{className:"react-flow__controls-fitview",onClick:b,title:y["controls.fitView.ariaLabel"],"aria-label":y["controls.fitView.ariaLabel"],children:H1.jsx(Tj,{})}),K&&H1.jsx($U,{className:"react-flow__controls-interactive",onClick:D,title:y["controls.interactive.ariaLabel"],"aria-label":y["controls.interactive.ariaLabel"],children:V?H1.jsx(Oj,{}):H1.jsx(Rj,{})}),T]})}gR.displayName="Controls";var pR=z1.memo(gR);function wj({id:Q,x:U,y:Z,width:K,height:H,style:Y,color:W,strokeColor:L,strokeWidth:M,className:O,borderRadius:T,shapeRendering:A,selected:R,onClick:P}){let{background:N,backgroundColor:V}=Y||{},v=W||N||V;return H1.jsx("rect",{className:d0(["react-flow__minimap-node",{selected:R},O]),x:U,y:Z,rx:T,ry:T,width:K,height:H,style:{fill:v,stroke:L,strokeWidth:M},shapeRendering:A,onClick:P?(f)=>P(f,Q):void 0})}var Pj=z1.memo(wj),Nj=(Q)=>Q.nodes.map((U)=>U.id),sK=(Q)=>Q instanceof Function?Q:()=>Q;function Cj({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=Pj,onClick:W}){let L=H0(Nj,h0),M=sK(U),O=sK(Q),T=sK(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return H1.jsx(H1.Fragment,{children:L.map((R)=>H1.jsx(Sj,{id:R,nodeColorFunc:M,nodeStrokeColorFunc:O,nodeClassNameFunc:T,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},R))})}function fj({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:L,onClick:M}){let{node:O,x:T,y:A,width:R,height:P}=H0((N)=>{let V=N.nodeLookup.get(Q);if(!V)return{node:void 0,x:0,y:0,width:0,height:0};let v=V.internals.userNode,{x:f,y}=V.internals.positionAbsolute,{width:C,height:j}=i5(v);return{node:v,x:f,y,width:C,height:j}},h0);if(!O||O.hidden||!DK(O))return null;return H1.jsx(L,{x:T,y:A,width:R,height:P,style:O.style,selected:!!O.selected,className:K(O),color:U(O),borderRadius:H,strokeColor:Z(O),strokeWidth:Y,shapeRendering:W,onClick:M,id:O.id})}var Sj=z1.memo(fj),vj=z1.memo(Cj),jj=200,yj=150,Vj=(Q)=>!Q.hidden,kj=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?yK(l8(Q.nodeLookup,{filter:Vj}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},QR=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,Dj=(Q,U)=>QR(Q.viewBB,U.viewBB)&&QR(Q.boundingRect,U.boundingRect)&&Q.rfId===U.rfId&&Q.panZoom===U.panZoom&&Q.translateExtent===U.translateExtent&&Q.flowWidth===U.flowWidth&&Q.flowHeight===U.flowHeight&&Q.ariaLabelConfig===U.ariaLabelConfig,uj="react-flow__minimap-desc";function cR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:L,bgColor:M,maskColor:O,maskStrokeColor:T,maskStrokeWidth:A,position:R="bottom-right",onClick:P,onNodeClick:N,pannable:V=!1,zoomable:v=!1,ariaLabel:f,inversePan:y,zoomStep:C=1,offsetScale:j=5}){let u=x0(),h=z1.useRef(null),{boundingRect:E,panZoom:b,viewBB:D,rfId:x,translateExtent:$1,flowWidth:Q1,flowHeight:J1,ariaLabelConfig:m}=H0(kj,Dj),p=Q?.width??jj,c=Q?.height??yj,a=E.width/p,i=E.height/c,o=Math.max(a,i),k=o*p,g=o*c,q1=j*o,t=E.x-(k-E.width)/2-q1,W1=E.y-(g-E.height)/2-q1,T1=k+q1*2,O1=g+q1*2,L1=`${uj}-${x}`,U1=z1.useRef(0),P1=z1.useRef();U1.current=o,z1.useEffect(()=>{let g1=u.getState().panZoom;if(h.current&&g1)return P1.current=BT({domNode:h.current,panZoom:g1,getTransform:()=>u.getState().transform,getViewScale:()=>U1.current}),()=>{P1.current?.destroy()}},[b]),z1.useEffect(()=>{P1.current?.update({translateExtent:$1,width:Q1,height:J1,inversePan:y,pannable:V,zoomStep:C,zoomable:v})},[V,v,y,C,$1,Q1,J1]);let v1=P?(g1)=>{let[h1,M1]=P1.current?.pointer(g1)||[0,0];P(g1,{x:h1,y:M1})}:void 0,A1=z1.useCallback((g1,h1)=>{let M1=u.getState().nodeLookup.get(h1).internals.userNode;N?.(g1,M1)},[N]),k1=N?A1:void 0,D1=f??m["minimap.ariaLabel"];return H1.jsx(s4,{position:R,style:{...Q,"--xy-minimap-background-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-background-color-props":typeof O==="string"?O:void 0,"--xy-minimap-mask-stroke-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-stroke-width-props":typeof A==="number"?A*o:void 0,"--xy-minimap-node-background-color-props":typeof K==="string"?K:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof W==="number"?W:void 0},className:d0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:H1.jsxs("svg",{width:p,height:c,viewBox:`${t} ${W1} ${T1} ${O1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":L1,ref:h,onClick:v1,children:[D1&&H1.jsx("title",{id:L1,children:D1}),H1.jsx(vj,{onClick:k1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:L}),H1.jsx("path",{className:"react-flow__minimap-mask",d:`M${t-q1},${W1-q1}h${T1+q1*2}v${O1+q1*2}h${-T1-q1*2}z
247
- M${D.x},${D.y}h${D.width}v${D.height}h${-D.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}cR.displayName="MiniMap";var lR=z1.memo(cR),bj=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,Ej={[y3.Line]:"right",[y3.Handle]:"bottom-right"};function hj({nodeId:Q,position:U,variant:Z=y3.Handle,className:K,style:H=void 0,children:Y,color:W,minWidth:L=10,minHeight:M=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:R,autoScale:P=!0,shouldResize:N,onResizeStart:V,onResize:v,onResizeEnd:f}){let y=nK(),C=typeof Q==="string"?Q:y,j=x0(),u=z1.useRef(null),h=Z===y3.Handle,E=H0(z1.useCallback(bj(h&&P),[h,P]),h0),b=z1.useRef(null),D=U??Ej[Z];z1.useEffect(()=>{if(!u.current||!C)return;if(!b.current)b.current=wT({domNode:u.current,nodeId:C,getStoreItems:()=>{let{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,domNode:c}=j.getState();return{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,paneDomNode:c}},onChange:($1,Q1)=>{let{triggerNodeChanges:J1,nodeLookup:m,parentLookup:p,nodeOrigin:c}=j.getState(),a=[],i={x:$1.x,y:$1.y},o=m.get(C);if(o&&o.expandParent&&o.parentId){let k=o.origin??c,g=$1.width??o.measured.width??0,q1=$1.height??o.measured.height??0,t={id:o.id,parentId:o.parentId,rect:{width:g,height:q1,...uK({x:$1.x??o.position.x,y:$1.y??o.position.y},{width:g,height:q1},o.parentId,m,k)}},W1=nq([t],m,p,c);a.push(...W1),i.x=$1.x?Math.max(k[0]*g,$1.x):void 0,i.y=$1.y?Math.max(k[1]*q1,$1.y):void 0}if(i.x!==void 0&&i.y!==void 0){let k={id:C,type:"position",position:{...i}};a.push(k)}if($1.width!==void 0&&$1.height!==void 0){let g={id:C,type:"dimensions",resizing:!0,setAttributes:!R?!0:R==="horizontal"?"width":"height",dimensions:{width:$1.width,height:$1.height}};a.push(g)}for(let k of Q1){let g={...k,type:"position"};a.push(g)}J1(a)},onEnd:({width:$1,height:Q1})=>{let J1={id:C,type:"dimensions",resizing:!1,dimensions:{width:$1,height:Q1}};j.getState().triggerNodeChanges([J1])}});return b.current.update({controlPosition:D,boundaries:{minWidth:L,minHeight:M,maxWidth:O,maxHeight:T},keepAspectRatio:A,resizeDirection:R,onResizeStart:V,onResize:v,onResizeEnd:f,shouldResize:N}),()=>{b.current?.destroy()}},[D,L,M,O,T,A,V,v,f,N]);let x=D.split("-");return H1.jsx("div",{className:d0(["react-flow__resize-control","nodrag",...x,Z,K]),ref:u,style:{...H,scale:E,...W&&{[h?"backgroundColor":"borderColor"]:W}},children:Y})}var qR=z1.memo(hj);function iR({nodeId:Q,isVisible:U=!0,handleClassName:Z,handleStyle:K,lineClassName:H,lineStyle:Y,color:W,minWidth:L=10,minHeight:M=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,autoScale:R=!0,shouldResize:P,onResizeStart:N,onResize:V,onResizeEnd:v}){if(!U)return null;return H1.jsxs(H1.Fragment,{children:[OT.map((f)=>H1.jsx(qR,{className:H,style:Y,nodeId:Q,position:f,variant:y3.Line,color:W,minWidth:L,minHeight:M,maxWidth:O,maxHeight:T,onResizeStart:N,keepAspectRatio:A,autoScale:R,shouldResize:P,onResize:V,onResizeEnd:v},f)),RT.map((f)=>H1.jsx(qR,{className:Z,style:K,nodeId:Q,position:f,color:W,minWidth:L,minHeight:M,maxWidth:O,maxHeight:T,onResizeStart:N,keepAspectRatio:A,autoScale:R,shouldResize:P,onResize:V,onResizeEnd:v},f))]})}var xj=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function mj({children:Q}){let U=H0(xj);if(!U)return null;return UR.createPortal(Q,U)}var gj=(Q,U)=>Q?.internals.positionAbsolute.x!==U?.internals.positionAbsolute.x||Q?.internals.positionAbsolute.y!==U?.internals.positionAbsolute.y||Q?.measured.width!==U?.measured.width||Q?.measured.height!==U?.measured.height||Q?.selected!==U?.selected||Q?.internals.z!==U?.internals.z,pj=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,K]of Q)if(gj(K,U.get(Z)))return!1;return!0},cj=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function _H({nodeId:Q,children:U,className:Z,style:K,isVisible:H,position:Y=b1.Top,offset:W=10,align:L="center",...M}){let O=nK(),T=z1.useCallback((u)=>{return(Array.isArray(Q)?Q:[Q||O||""]).reduce((b,D)=>{let x=u.nodeLookup.get(D);if(x)b.set(x.id,x);return b},new Map)},[Q,O]),A=H0(T,pj),{x:R,y:P,zoom:N,selectedNodesCount:V}=H0(cj,h0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let f=l8(A),y=Array.from(A.values()),C=Math.max(...y.map((u)=>u.internals.z+1)),j={position:"absolute",transform:qT(f,{x:R,y:P,zoom:N},Y,W,L),zIndex:C,...K};return H1.jsx(mj,{children:H1.jsx("div",{style:j,className:d0(["react-flow__node-toolbar",Z]),...M,"data-id":y.reduce((u,h)=>`${u}${h.id} `,"").trim(),children:U})})}function FU(Q={}){let U=(K,H)=>Q.tools?`${H} (\`${K}\`)`:`\`${K}\``,Z=["Set up Volter World for this app, so its calls to Stripe, Slack, GitHub, OpenAI and the other services it uses go to local twins instead of the real APIs. The app keeps its real SDKs and code.","",Q.tools?"1. You have the Volter World tools (volter mcp). If the `volter` command is missing, install it: `npm install -g @volter/world`.":"1. Install the command and your agent tooling: `npm install -g @volter/world`, then `volter agents install --yes`.",`2. In the app's folder, ${U("volter world init --install","world_init")}: it detects the vendors the app calls and installs their twins. Show me the vendors it detected and why, before keeping them.`,`3. ${Q.tools?"Start it with world_up":"Start it: `volter world up`"}, then run the tests inside it: ${U("volter world run -- <the test command>","world_run")}. Fix anything that fails because a call went to the real service.`,`4. Tell me what the app did at each vendor (${U("volter world log","world_log")}), and give me the dashboard link (${Q.tools?"world_view":"`volter world view --no-open`, started in the background: it keeps running"}).`];if(Q.platform){let K=Q.world??"<org>/<world>";Z.push(`5. Share it with my team on ${Q.platform}: ${U(`volter login ${Q.platform}`,"platform_login")} gives a link and a code for me to approve in my browser. Once I have, link it with ${U(`volter remote add origin ${K} --create`,"remote_link with create: true")}${Q.world?"":" (ask me for <org>/<world>)"}, then send what the app did: ${U('volter world changeset -m "<what and why>"',"world_changeset")} and ${U("volter world push","world_push")}.`)}return Z.push("","The guide: https://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),Z.join(`
248
- `)}var dR={"git-commit-horizontal":[["rect",{x:"9",y:"9",width:"6",height:"6"}],["path",{d:"M3 12h6M15 12h6"}]],"arrow-down-to-line":[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]],"arrow-up-from-line":[["path",{d:"m18 9-6-6-6 6"}],["path",{d:"M12 3v14"}],["path",{d:"M5 21h14"}]],"git-branch":[["rect",{x:"4",y:"3",width:"4",height:"4"}],["rect",{x:"4",y:"17",width:"4",height:"4"}],["rect",{x:"16",y:"5",width:"4",height:"4"}],["path",{d:"M6 7v10M18 9v2a4 4 0 0 1-4 4H6"}]],monitor:[["rect",{x:"3",y:"4",width:"18",height:"13"}],["path",{d:"M8 21h8M12 17v4"}]],vault:[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"6.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 7.9 2.7 2.7"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 10.6 2.7-2.7"}],["rect",{x:"6.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 16.1 2.7-2.7"}],["rect",{x:"15.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 13.4 2.7 2.7"}],["circle",{cx:"12",cy:"12",r:"2"}]],settings:[["circle",{cx:"12",cy:"12",r:"3"}],["circle",{cx:"12",cy:"12",r:"7"}],["path",{d:"M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9L7 7M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"}]],history:[["path",{d:"M3 12a9 9 0 1 0 3-6.7"}],["path",{d:"M3 4v5h5"}],["path",{d:"M12 7v5l3 3"}]],activity:[["path",{d:"M2 12h4l3-8 6 16 3-8h4"}]],"file-diff":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M9 10h6"}],["path",{d:"M12 13V7"}],["path",{d:"M9 17h6"}]],"square-plus":[["rect",{x:"4",y:"4",width:"16",height:"16"}],["path",{d:"M12 8v8M8 12h8"}]],"square-minus":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["path",{d:"M8 12h8"}]],"square-dot":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"10.8",y:"10.8",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],cloud:[["path",{d:"M7 19a5 5 0 0 1-.5-10A6 6 0 0 1 18 8a4.5 4.5 0 0 1 .5 11z"}]],"refresh-cw":[["path",{d:"M20 12a8 8 0 0 1-14.3 4.9M4 12a8 8 0 0 1 14.3-4.9"}],["path",{d:"M19 3v5h-5M5 21v-5h5"}]],clock:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M12 7v5l3 3"}]],"key-round":[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],plug:[["path",{d:"M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0zM12 18v3"}]],"list-checks":[["path",{d:"M11 6h9M11 12h9M11 18h9"}],["path",{d:"M3 6l1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17"}]],palette:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}],["rect",{x:"12.3",y:"5.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"16.3",y:"9.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"5.3",y:"11.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"7.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],check:[["path",{d:"M4 12l5 5L20 6"}]],plus:[["path",{d:"M12 4v16M4 12h16"}]],"chevron-down":[["path",{d:"M5 9l7 7 7-7"}]],"external-link":[["path",{d:"M14 4h6v6M20 4l-9 9"}],["path",{d:"M18 14v6H4V6h6"}]],"table-2":[["path",{d:"M3 9h18"}],["path",{d:"M9 3v18"}],["rect",{x:"3",y:"3",width:"18",height:"18"}]],"scroll-text":[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]],"layout-grid":[["rect",{x:"4",y:"4",width:"7",height:"7"}],["rect",{x:"13",y:"4",width:"7",height:"7"}],["rect",{x:"4",y:"13",width:"7",height:"7"}],["rect",{x:"13",y:"13",width:"7",height:"7"}]],globe:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"}]],"arrow-left":[["path",{d:"M20 12H5M11 6l-6 6 6 6"}]],link:[["path",{d:"M9 15l6-6"}],["path",{d:"M11 6l2-2a4.2 4.2 0 0 1 6 6l-2 2M13 18l-2 2a4.2 4.2 0 0 1-6-6l2-2"}]],user:[["circle",{cx:"12",cy:"8",r:"4"}],["path",{d:"M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"}]],"log-out":[["path",{d:"M10 4H4v16h6M9 12h11M16 8l4 4-4 4"}]]};var F=p0(f8(),1),KU="volter.console.token",o8=document.getElementById("root"),t1=o8.dataset.base??"/-/console",L0=window.location.origin,D3=(o8.dataset.worlds??L0).replace(/\/+$/,""),JO=(o8.dataset.names??"").split(",").filter((Q)=>Q!==""),E6=o8.dataset.worldOrigin==="1",t8=window.fetch.bind(window),h6="(session)",$O="(pass)",gJ=(Q)=>{try{if(Q&&!E6)sessionStorage.setItem(KU,Q);else sessionStorage.removeItem(KU);localStorage.removeItem(KU)}catch{}},QO="volter.console.portal",qO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(QO,new URL(Q).origin)}catch{}},lj=()=>{return n8.get("token")??""},x2=()=>{try{let Q=sessionStorage.getItem(QO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},ij=()=>{let Q=lj();if(E6){if(gJ(""),n8.get("pass"))return $O;let U=new URLSearchParams(window.location.search).has("signin");if(U)try{window.history.replaceState(null,"",window.location.pathname+window.location.hash)}catch{}return Q||(U?"":h6)}if(Q)return gJ(Q),Q;try{return sessionStorage.getItem(KU)??""}catch{return""}};function F2(Q){let U=Q.trim();if(/not ready/i.test(U)&&/(never verified|not verified|no approvals)/i.test(U)){let Y=[],W=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),W.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),W.push("approve");return{text:`Not ready to deploy: ${v8(Y)}.`,acts:W}}let Z=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(Z)return{text:`No credential is sealed for ${d1(Z[1])}: seal one in Settings › Vault.`,acts:["vault"]};if(/has no origin/i.test(U))return{text:"This World has no remote: name one in Settings › Remote.",acts:["remote"]};let K=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(K){let Y=K[1].split(/,\s*/).filter(Boolean).map(d1);return{text:`${v8(Y)} ${Y.length===1?"is":"are"} not connected to ${Y.length===1?"its":"their"} real service: Settings › Real services.`,acts:["settings"]}}if(/opening a seal is/i.test(U))return{text:"A key cannot seal a credential: open the World as yourself.",acts:[]};if(/a key manages no keys/i.test(U))return{text:"A key cannot manage keys: open the World as yourself.",acts:[]};if(/^PUT origin:/i.test(U))return{text:"That is not a World's address: https://<host>/<org>/<world>",acts:[]};if(/^clock: \{/i.test(U))return{text:"Pick a date and time.",acts:[]};if(/^advance: \{/i.test(U))return{text:"Advance by a number and a unit: 90m, 12h, 3d.",acts:[]};if(/^branches: \{/i.test(U))return{text:"That branch could not be made: pick now, or an instant before it.",acts:[]};if(/^approve: \{/i.test(U))return{text:"Name who approves.",acts:[]};if(/a browser deploys only what it names/i.test(U))return{text:"A deploy is confirmed by its name: use Deploy again.",acts:[]};if(/^no such door/i.test(U))return{text:"This World does not answer that here.",acts:[]};return{text:U.replace(/\s*[—–-]+\s*(?:run\s+)?`[^`]*`/g,"").replace(/\s*[—–-]+\s*(?:PUT|POST|GET|DELETE)\s+\/-\/\S+(?:\s*\{[^}]*\})?/g,"").replace(/\s*\(\s*`[^`]*`\s*\)/g,"").replace(/`(?:volter|printf|curl|npm|bun)[^`]*`/g,"").replace(/:\s*\{[^}]*\}/g,"").replace(/\(\s*\)/g,"").replace(/\s*;\s*(?=[;.]|$)/g,"").replace(/\s+([,.;:])/g,"$1").trim()||Q,acts:[]}}var X5=async(Q)=>F2(await N3(Q)).text,dj={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function UO({name:Q,acts:U}){let Z=U.map((K)=>dj[K]).filter((K)=>Boolean(K));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([K,H])=>F.jsxDEV(X1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${t1}/${Q}/~/${K}`,onClick:(Y)=>{Y.preventDefault(),M0([...Q.split("/"),"~",...K.split("/")])},children:H},void 0,!1,void 0,this)]},K,!0,void 0,this))},void 0,!1,void 0,this)}async function z0(Q,U,Z={}){return t8(`${L0}${U}`,{...Z,headers:{...Z.headers??{},...Q===h6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function P0(Q,U,Z=0){let K=xA((H)=>z0(Q,H),U,Z,Q);return K.state==="error"?{...K,error:F2(K.error).text}:K}var w9=(Q)=>{let U=new Date(Q),Z=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},rR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),GO=(Q)=>Q.operation==="observed"?`observed${Q.provenance==="placeholder"?" (default data)":" (vendor)"}`:Q.receipt?`${Q.receipt.status??""} ${Q.receipt.externalId??""} ${Q.receipt.reason??""}`.trim():Q.provenance==="placeholder"?"default data":"unpushed",rj=(Q)=>{let U=/^[0-9a-f]{2}-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/.exec(Q??"");return U?{trace:U[1],span:U[2]}:null},UH="volter.console.snapshots",u3=()=>{try{return JSON.parse(sessionStorage.getItem(UH)??"{}")}catch{return{}}},ZO=new Map,GH=(Q)=>{if(E6){if(Q.token||Q.readToken)ZO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(UH,JSON.stringify({...u3(),[Q.name]:Q}))}catch{}},ZH=(Q)=>ZO.get(Q)?.readToken||u3()[Q]?.readToken||"",HU=(Q)=>{try{let U=u3();delete U[Q],sessionStorage.setItem(UH,JSON.stringify(U))}catch{}},n8=new URLSearchParams(window.location.hash.slice(1)),O9=n8.get("close")??"";function cJ(Q){if(typeof Q!=="string")return null;let U;try{U=new URL(Q)}catch{return null}return(U.protocol==="http:"||U.protocol==="https:")&&U.origin===Q.replace(/\/+$/,"")?U:null}function FH(Q){let U=cJ(Q);if(!U)return null;let Z=new URL(L0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let K=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!K.test(U.hostname))return null;let H=U.hostname.replace(K,"");return H===Z.hostname||K.test(Z.hostname)&&H===Z.hostname.replace(K,"")?U.origin:null}function aj(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:FH(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...K?{parentOrigin:K}:{}}}{let Q=n8.get("snapshot");if(Q){let U=aj(Q);if(U&&!u3()[U.name])GH(U)}}var FO="volter.console.home",XO=(Q)=>{let U=cJ(Q);if(!U)return null;let Z=new URL(L0).hostname,K=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===K?U.origin:null};{let Q=XO(n8.get("home"));if(Q)try{sessionStorage.setItem(FO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>n8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var Y4=()=>{try{return XO(sessionStorage.getItem(FO))??""}catch{return""}};function XH(Q,U,Z,K){let H=new URLSearchParams({token:U,home:Y4()||L0}),Y=u3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var qH=o8.dataset.route==="memory"?"":null;function r8(){return(qH??window.location.pathname.slice(t1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var aR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,k3=(Q,U)=>Q&&U&&aR.test(Q)&&aR.test(U)?`${Q}/${U}`:"";function M0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(qH!==null)qH=U;else window.history.pushState(null,"",`${t1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function KO(Q,U){let Z=FH(u3()[Q]?.origin);if(Z&&Z!==L0){XH(Z,ZH(Q),Q,`${t1}/${U.map(encodeURIComponent).join("/")}`);return}M0(U)}async function sR(){let[Q,U]=r8(),Z=k3(Q,U),K=Z?[Z]:JO;if(K.length===0){let H=await t8(`${L0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,W,...L]=H.split("/");return L.length===0&&k3(Y,W)===H});for(let H of K){let Y=await t8(`${L0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),L=cJ(W.origin)?.origin;if(Y.status===409&&L&&L!==L0)return window.location.replace(`${L}${t1}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:h6}}return null}function sj(){let[Q,U]=X1.useState(tF),Z=(K)=>()=>{try{if(K==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",K)}catch{}Bq(K),U(K)};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Appearance",children:["system","light","dark"].map((K)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===K,onClick:Z(K),children:K==="system"?"System":K==="light"?"Light":"Dark"},K,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tj(){let[Q,U]=X1.useState(ij()),[Z,K]=X1.useState(!1),[H,Y]=X1.useState(!1),[W,L]=X1.useState(""),[M,O]=X1.useState(null),[T,A]=X1.useState(null),[R,P]=X1.useState(r8());X1.useEffect(()=>{let g=()=>P(r8());return window.addEventListener("popstate",g),()=>window.removeEventListener("popstate",g)},[]),X1.useEffect(()=>{let[g,q1]=r8(),t=k3(g,q1),[W1,T1]=t?t.split("/"):[],O1=u3()[O9];if(!O9||!Q||!W1||!T1||!O1?.made||O1.parent!==`${W1}/${T1}`||k3(...O9.split("/"))!==O9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}z0(Q,`/-/${W1}/${T1}/branches/${O9}`,{method:"DELETE"}).catch(()=>null).then(()=>HU(O9))},[Q]);let N=X1.useCallback(async(g)=>{if(A(null),!g){let T1=await sR();if(T1==="moved")return;if(T1){if(K(!0),T1.token!==h6)gJ(T1.token);U(T1.token);return}O(null),Y(!0);return}if(E6&&g===h6){let T1=await sR();if(T1==="moved")return;if(T1)K(!0)}if(E6&&g===$O){let[T1,O1]=r8(),L1=k3(T1,O1),[U1,P1]=L1?L1.split("/"):[],v1=U1&&P1?await t8(`${L0}/-/${U1}/${P1}/session`,{method:"POST",headers:{"x-volter-pass":n8.get("pass")??""}}).catch(()=>null):null;if(!v1){A(`${L0} did not answer: no session was opened`),O(null);return}if(!v1.ok){A(`${await X5(v1)}. Open it again from the platform.`),O(null);return}qO((await v1.json().catch(()=>({}))).issuer),U(h6);return}if(E6&&g!==h6){let[T1,O1]=r8(),L1=k3(T1,O1),[U1,P1]=L1?L1.split("/"):[],v1=U1&&P1?await t8(`${L0}/-/${U1}/${P1}/session`,{method:"POST",headers:{"x-volter-token":g}}).catch(()=>null):null;if(!v1){A(`${L0} did not answer: no session was opened`),O(null);return}if(!v1.ok){let A1=await X5(v1);A(v1.status===401||v1.status===403?`That token does not open ${U1}/${P1}.`:v1.status===409?`${U1}/${P1}'s session lives at another origin: ${A1}`:`The World could not open a session (${v1.status}): ${A1}`),O(null);return}U(h6);return}let q1=E6?new Response(null,{status:404}):await z0(g,"/-/worlds");if(q1.ok){let{worlds:T1}=await q1.json();O({kind:"admin",worlds:T1});return}if(q1.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),O(null);return}if(q1.status>=500){let T1=await q1.json().catch(()=>({}));A(`The platform could not list your worlds${T1.error?`: ${T1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),O(null);return}let t=JO;if(t.length===0){let T1=await t8(`${L0}/-/ping`);if(!T1.ok){A(`${L0} does not answer as a host`),O(null);return}if(t=(await T1.json()).worlds??[],t.length===0){A(`${L0} does not list its Worlds: open a World at its own address, ${L0}${t1}/<org>/<world>`),O(null);return}}let W1=[];for(let T1 of t){let O1=await z0(g,`/-/${T1}/twins`);if(O1.ok){let L1=await O1.json();W1.push({name:T1,base:`${D3}/${T1}`,twins:(L1.twins??[]).map((U1)=>({vendor:U1.twin,protocol:U1.protocol??null,root:U1.root??null}))})}}if(W1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),O(null);return}O({kind:"world",worlds:W1})},[]);X1.useEffect(()=>{N(Q)},[Q,N]);let V=(g)=>M?.kind==="admin"?M.worlds.find((q1)=>q1.name===g)?.token??Q:Q,[v,f]=X1.useState("");if(!Q||!M&&!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(ZJ,{href:`${t1}/`},void 0,!1,void 0,this),Q&&!M&&!T||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(g)=>{g.preventDefault(),gJ(W.trim()),U(W.trim())},className:"stack",children:[F.jsxDEV("h2",{children:"Open a World"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"A World's token opens that World. A host's admin token opens every World it serves."},void 0,!1,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Token"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"token",type:"password",value:W,onChange:(g)=>L(g.target.value),autoFocus:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let y=()=>{if(Z){window.location.reload();return}if(E6){let[g,q1]=r8(),t=k3(g,q1),[W1,T1]=t?t.split("/"):[],O1=()=>window.location.replace(x2()?`${x2()}/`:`${L0}${t1}/${W1&&T1?`${W1}/${T1}`:""}?signin`);if(setTimeout(O1,2000),W1&&T1)t8(`${L0}/-/${W1}/${T1}/session/end`,{method:"POST"}).catch(()=>null).then(O1);else O1();return}if(M)for(let g of M.worlds)navigator.sendBeacon(`${g.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${g.name}/session/end`);gJ(""),U(""),L(""),O(null),M0([])};if(T||!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(ZJ,{href:`${t1}/`},void 0,!1,void 0,this),F.jsxDEV("h2",{children:"Could not open it"},void 0,!1,void 0,this),F.jsxDEV("p",{role:"alert",children:T??"nothing answered"},void 0,!1,void 0,this),x2()?F.jsxDEV("a",{className:"button primary",href:`${x2()}/`,children:["Back to ",new URL(x2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:y,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let[C,j,u,h,E,b,D]=R,x=u==="~",$1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,J1=x||!u||!$1.test(u)?void 0:u,m=E&&$1.test(E)?b!==void 0&&h!=="changes"&&h!=="screens"?k3(E,b)||void 0:E:void 0,p=h==="changes"&&E==="changesets"&&b&&$1.test(b)?b:h==="screens"&&b&&D&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(D)?`${b}:${D}`:void 0,c=k3(C,j),a=c?u3()[c]??null:null,i=(g)=>ZH(g)||V(g),o=a?M.kind==="admin"?M.worlds.find((g)=>g.name===a.parent)?.token??null:M.worlds.some((g)=>g.name===a.parent)?Q:null:null,k=async(g)=>{let q1=FH(g.parentOrigin);if(q1&&q1!==L0){HU(g.name),window.location.assign(`${q1}${t1}/${g.parent}#close=${encodeURIComponent(g.name)}`);return}if(g.made)await z0(V(g.parent),`/-/${g.parent}/branches/${g.name}`,{method:"DELETE"}).catch(()=>null),HU(g.name);M0(g.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(lA,{},void 0,!1,void 0,this):null,F.jsxDEV(ZJ,{href:`${Y4()&&Y4()!==L0?Y4():""}${t1}/`,onClick:(g)=>{if(Y4()&&Y4()!==L0)return;g.preventDefault(),M0([])}},void 0,!1,void 0,this),F.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[c?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("span",{children:c.split("/")[0]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${c}`,className:"crumb-world",onClick:(g)=>{g.preventDefault(),M0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J1?F.jsxDEV("span",{children:[" / ",J1]},void 0,!0,void 0,this):null,x&&h==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),x2()?F.jsxDEV("a",{href:`${x2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(x2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(x2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,c?null:F.jsxDEV("span",{className:"mode",children:Z?"on this machine":v?`signed in as ${v}`:M.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:y,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(_y,{name:c,token:i(c),twin:J1,tab:x?h??"overview":"overview",arg:x?m:void 0,...x&&p?{sub:p}:{},admin:a?null:M.kind==="admin"?Q:null,snapshot:a,parentToken:o,who:{local:Z,person:v||null,admin:M.kind==="admin"},onSignOut:y,onReturn:k,opens:(g)=>!!u3()[g]||M.kind==="admin"&&M.worlds.some((q1)=>q1.name===g),onRemoved:()=>{N(Q),M0([])},onWho:f,worlds:M.worlds.map((g)=>g.name)},c,!1,void 0,this):F.jsxDEV(oj,{mode:M,admin:M.kind==="admin"?Q:null,reload:()=>N(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oj({mode:Q,admin:U,reload:Z}){let[K,H]=X1.useState(""),[Y,W]=X1.useState(""),[L,M]=X1.useState(""),[O,T]=X1.useState(null),A=async(E)=>{if(!await c4({title:`Rotate the tokens of ${E}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let b=await z0(U,`/-/worlds/${E}/rotate`,{method:"POST"}),D=await b.json().catch(()=>({}));T(b.ok?`rotated ${E}: the new tokens are shown once — token ${D.token} · read token ${D.readToken}`:D.error?F2(D.error).text:`answered ${b.status}`),await Z()},R=async(E)=>{let b=await z0(U,`/-/worlds/${E}`,{method:"DELETE"}),D=await b.json().catch(()=>({}));T(b.ok?`removed ${E}`:D.error?F2(D.error).text:`answered ${b.status}`),await Z()},[P,N]=X1.useState(!1),[V,v]=X1.useState(!1),[f,y]=X1.useState(""),C=async(E)=>{E.preventDefault(),T(null),N(!0);try{let b=await z0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:L.split(",").map((x)=>x.trim()).filter(Boolean)})}),D=await b.json();if(!b.ok){T(D.error?F2(D.error).text:`the host answered ${b.status}`);return}T(`provisioned ${D.name}`),W(""),M(""),v(!1),await Z()}finally{N(!1)}},j=f.trim().toLowerCase(),u=Q.worlds.filter((E)=>!j||E.name.toLowerCase().includes(j)||E.twins.some((b)=>b.vendor.includes(j))),h=[...new Set(u.map((E)=>E.name.split("/")[0]))];return F.jsxDEV("section",{className:"home-window","aria-labelledby":"worlds",children:[F.jsxDEV("div",{className:"home-head",children:[F.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[E0(Q.worlds.length,"World")," ",U?"this host serves":"this key opens"]},void 0,!0,void 0,this),U?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{T(null),v(!0)},children:[F.jsxDEV($0,{name:"plus",size:16},void 0,!1,void 0,this),"New World"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"home-find",children:F.jsxDEV("input",{type:"search",placeholder:"Filter by World or vendor","aria-label":"Filter Worlds",value:f,onChange:(E)=>y(E.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),O&&!V?F.jsxDEV("p",{role:"status",className:"home-note",children:O},void 0,!1,void 0,this):null,h.map((E)=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:E},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:u.filter((b)=>b.name.split("/")[0]===E).map((b)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${t1}/${b.name}`,onClick:(D)=>{D.preventDefault(),M0(b.name.split("/"))},children:[F.jsxDEV($0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:b.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:b.base},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"home-vendors",children:b.twins.map((D)=>F.jsxDEV("span",{title:d1(D.vendor),children:F.jsxDEV(s0,{vendor:D.vendor},void 0,!1,void 0,this)},D.vendor,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?F.jsxDEV("details",{className:"menu home-more",children:[F.jsxDEV("summary",{"aria-label":`More for ${b.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(D)=>{D.currentTarget.closest("details")?.removeAttribute("open"),A(b.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(D)=>{D.currentTarget.closest("details")?.removeAttribute("open"),c4({title:`Remove ${b.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:b.name}).then((x)=>{if(x)R(b.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},b.name,!0,void 0,this))},void 0,!1,void 0,this)]},E,!0,void 0,this)),u.length===0?F.jsxDEV("p",{className:"mode home-note",children:j?`No World matches ${f}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(N5,{open:V,onClose:()=>{if(!P)v(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(!1),disabled:P,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:P,children:P?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:C,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:K,onChange:(E)=>H(E.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"world",value:Y,onChange:(E)=>W(E.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Vendors"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"vendors",value:L,onChange:(E)=>M(E.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O?F.jsxDEV("p",{role:"status",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var nj=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],ej=(Q,U)=>{let Z=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&Z?`${D3}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},tR={verify:"verified",use:"used",issue:"issued",revoke:"revoked",rotate:"rotated",seed:"seeded",upsert:"saved",set:"set",start:"started",finish:"finished",fail:"failed",schedule:"scheduled",deliver:"delivered",like:"liked",follow:"followed",reply:"replied",create:"created",update:"updated",delete:"deleted",record:"recorded",remove:"removed",add:"added",send:"sent",post:"posted",postmessage:"posted",cancel:"canceled",close:"closed",open:"opened",publish:"published",upload:"uploaded",invite:"invited",archive:"archived",merge:"merged",refund:"refunded",capture:"captured",confirm:"confirmed",pay:"paid"};function d5(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),K=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${K.charAt(0).toUpperCase()}${K.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),W=U.replace(/[._]+/g," ").trim(),L=Y?`${H} seeded`:tR[Z]?`${H} ${tR[Z]}`:`${W.charAt(0).toUpperCase()}${W.slice(1)}`,M=Q.fields??{},O=["title","name","email","text","subject","summary","description"].map((A)=>M[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,T=O===null?null:O.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,R,P)=>`${R==="!"?"@":R}${P}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:L,label:T===null?null:T.length>80?`${T.slice(0,79)}…`:T}}var b3=(Q)=>/token|password|secret|key|credential/i.test(Q.subject.type)&&Q.subject.id.length>6?`••••${Q.subject.id.slice(-4)}`:Q.subject.id;function _y({name:Q,token:U,twin:Z,tab:K,arg:H,sub:Y,admin:W,snapshot:L,parentToken:M,who:O,onSignOut:T,onReturn:A,opens:R,onRemoved:P,onWho:N,worlds:V=[]}){let[v,f]=X1.useState("pending"),[y,C]=X1.useState(null),[j,u]=X1.useState(0),[h,E]=X1.useState(null);X1.useEffect(()=>{let L1=!0;return C(null),z0(U,`/-/${Q}/session`,{method:"POST"}).then(async(U1)=>{let P1=await U1.json().catch(()=>({}));if(qO(P1.issuer),P1.who)N?.(P1.who);E(typeof P1.signsAs==="string"?P1.signsAs:null);let v1=cJ(P1.origin)?.origin;if(U1.status===409&&v1&&v1!==L0){XH(v1,U,Q);return}if(!L1)return;if(f(!U1.ok?"unknown":P1.scope==="read"?"read":P1.scope==="write"?"write":"unknown"),!U1.ok)C(P1.error?F2(P1.error).text:`answered ${U1.status}`)}).catch((U1)=>{if(L1)f("unknown"),C(`the World did not answer: ${U1 instanceof Error?U1.message:String(U1)}`)}),()=>{L1=!1}},[Q,U,j]);let b=y?{state:"error",error:y}:v==="pending"?{state:"pending"}:{state:"ok",scope:v},D=v==="write",x=(L1)=>{if(L1.status!==403)return;L1.clone().json().then((U1)=>{if(/read token|opens only reads|write access|reads only/i.test(U1?.error??""))f("read")},()=>null)},[$1,Q1]=X1.useState(0);X1.useEffect(()=>{let L1=setInterval(()=>{if(!document.hidden)Q1((U1)=>U1+1)},5000);return()=>clearInterval(L1)},[]);let[J1,m]=X1.useState(0),p=P0(U,`/-/${Q}/clock`,$1+J1),c=P0(U,`/-/${Q}/twins`),a=P0(U,`/-/${Q}/branches`,J1),i=P0(U,`/-/${Q}/map`,Math.floor($1/2)),o=!(a.state==="error"&&(a.status===404||a.status===405)),k=nj.includes(K)?K:"overview",g=c.state==="ok"?c.data.twins.map((L1)=>L1.twin):[];if(Z&&c.state==="ok"&&!g.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(Q9,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${t1}/${Q}`,onClick:(L1)=>{L1.preventDefault(),M0(Q.split("/"))},children:["Open ",Q]},void 0,!0,void 0,this),children:F.jsxDEV("p",{children:["No vendor of this World is called ",Z,". Its changesets are under Changes › History."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);let q1=k==="vendors"&&H?H:void 0,t=()=>{f("pending"),u((L1)=>L1+1)};if(k==="canvas"||k==="vendors"&&!q1||K==="screens"&&!H)return F.jsxDEV(vy,{name:Q,token:U,twins:c,session:b,retry:t,snapshot:L,back:()=>M0(Q.split("/")),canWrite:D&&!L},void 0,!1,void 0,this);let T1=K==="settings"?{kind:"settings",tab:((L1)=>HO.find(([U1])=>U1===L1)?.[0]??"account")(H)}:K==="remote"?{kind:"settings",tab:"remote"}:K==="vault"?{kind:"settings",tab:"vault"}:K==="branches"?{kind:"branches",...H?{open:H}:{}}:null,O1=Z?"vendor":K==="screens"&&H?"screen":k==="vendors"&&q1?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(Ky,{name:Q,token:U,view:O1,win:T1,who:O,snapshot:L,onReturn:A,onSignOut:T,worlds:V,session:b,retry:t,...O1==="vendor"?{arg:Z??q1}:O1==="events"||O1==="trace"||O1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:i,branches:o?a:null,clock:p,canWrite:D&&!L,refused:x,signsAs:h,opens:R,tick:$1,admin:W,onRemoved:P,onClock:()=>m((L1)=>L1+1),scope:L?"read":v},void 0,!1,void 0,this)}function $0({name:Q,size:U=20}){return F.jsxDEV("svg",{className:"icon",viewBox:"0 0 24 24",width:U,height:U,fill:"none",stroke:"currentColor",strokeWidth:U<=16?1.75:1.5,strokeLinecap:"square",strokeLinejoin:"miter","aria-hidden":"true",children:(dR[Q]??[]).map(([Z,K],H)=>X1.default.createElement(Z,{key:H,...K}))},void 0,!1,void 0,this)}function zU(Q){let U=(Z)=>{let K=(Z.operation??Z.op).toLowerCase();return K.includes(".")?K.slice(K.lastIndexOf(".")+1):K};if(Q.some((Z)=>/^(delete|remove|archive|revoke)/.test(U(Z))||Z.fields?.deleted===!0))return{icon:"square-minus",word:"removed",tone:"removed"};if(/^(create|add|insert|issue|send|post|upload|invite|record|seed)/.test(U(Q[0])))return{icon:"square-plus",word:"made",tone:"added"};return{icon:"square-dot",word:"changed",tone:"changed"}}var HO=[["account","Account","user"],["changesets","Changesets","git-commit-horizontal"],["remote","Remote","cloud"],["access","Access","key-round"],["services","Real services","plug"],["vault","Vault","vault"],["checks","Checks","list-checks"],["clock","Clock","clock"],["appearance","Appearance","palette"]],Jy=(Q,U)=>{let Z=U.split("/").pop()??U,K=Q.split("/").pop()??"";return Z.startsWith(`${K}-`)?Z.slice(K.length+1):Z},a8=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function YO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],K=d5(Z),H=zU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),W=Q.writes[0].occurredAt,L={};if(U){for(let A of U)if(!Y.has(A.id)&&!A.landsId&&!A.aliasOf&&A.subject.type===Z.subject.type&&A.subject.id===Z.subject.id&&A.occurredAt<=W)Object.assign(L,A.fields??{})}let M={...L};for(let A of Q.writes)Object.assign(M,A.fields??{});let O=H.tone==="added"&&Object.keys(L).length===0,T=[...new Set([...Object.keys(L),...Object.keys(M)])].filter((A)=>!PO(L[A],M[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??b3(Z)}: its changes`,children:[F.jsxDEV("div",{className:"ws-diff-head",children:[F.jsxDEV("span",{className:`ws-kind ${H.tone}`,title:H.word,children:F.jsxDEV($0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(s0,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??b3(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[d1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:b3(Z)},void 0,!1,void 0,this)," · ",H.word," here"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ol",{className:"ws-writes",children:Q.writes.map((A)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:d5(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",pJ(A)]},void 0,!0,void 0,this)]},A.id,!0,void 0,this))},void 0,!1,void 0,this),U===null?F.jsxDEV("p",{className:"mode pad",children:"Reading its history…"},void 0,!1,void 0,this):T.length===0?F.jsxDEV("p",{className:"mode pad",children:"No field holds a new value."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"ws-fields","aria-label":"Fields before and after",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Field"},void 0,!1,void 0,this),O?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:H.tone==="removed"?"After":"Now"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:T.map((A)=>F.jsxDEV("tr",{children:[F.jsxDEV("th",{scope:"row",children:F.jsxDEV("code",{children:A},void 0,!1,void 0,this)},void 0,!1,void 0,this),O?null:F.jsxDEV("td",{className:A in L?"was":"none",children:A in L?F.jsxDEV(E3,{v:L[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:A in M?"now":"none",children:A in M?F.jsxDEV(E3,{v:M[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},A,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function zO({records:Q,selected:U,onPick:Z,label:K}){let[H,Y]=X1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),W=(O)=>{Y(O);try{localStorage.setItem("volter.console.records",O?"tree":"path")}catch{}},L=(O,T)=>{let A=O.writes[O.writes.length-1],R=d5(A),P=zU(O.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===O.key?"on":"",T?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===O.key,onClick:()=>Z(O.key),children:[T?null:F.jsxDEV(s0,{vendor:O.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:R.label??b3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[a8(A.subject.type)," · ",R.what.split(" ").slice(-1)[0],O.writes.length>1?` · ${E0(O.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${P.tone}`,title:P.word,"aria-label":P.word,children:F.jsxDEV($0,{name:P.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},O.key,!1,void 0,this)},M=[...new Set(Q.map((O)=>O.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>W(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>W(!0),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"ws-list","aria-label":K,children:H?M.map((O)=>{let T=Q.filter((A)=>A.twin===O);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(s0,{vendor:O},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(O)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:T.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:T.map((A)=>L(A,!0))},void 0,!1,void 0,this)]},O,!0,void 0,this)}):Q.map((O)=>L(O,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $y({name:Q,token:U,branches:Z,opens:K,refused:H,onChanged:Y}){let[W,L]=X1.useState(""),[M,O]=X1.useState(!1),T=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:T,running:!0}],R=Z?.state==="ok"?Z.data.branches:[],P=W.trim().toLowerCase(),N=(v)=>!P||v.toLowerCase().includes(P),V=(v)=>{v.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"The branch served here",children:[F.jsxDEV($0,{name:"git-branch",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("b",{children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV($0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover ws-branch-menu",children:[F.jsxDEV("div",{className:"ws-branch-find",children:[F.jsxDEV("input",{type:"search",placeholder:"Filter","aria-label":"Filter branches",value:W,onChange:(v)=>L(v.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(v)=>{V(v),O(!0)},disabled:!Z,children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"This World"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-branch-list",children:A.filter((v)=>N(v.name)).map((v)=>F.jsxDEV("li",{className:v.name===T?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:v.name===T?F.jsxDEV($0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV($0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:v.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:v.name===T?"served here":v.running?"running":"stopped"},void 0,!1,void 0,this)]},v.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),R.length===0?F.jsxDEV("p",{className:"mode ws-branch-none",children:"None yet. New branch makes one, from now or as the World was."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"ws-branch-list",children:R.filter((v)=>N(v.name)).map((v)=>{let f=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV($0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:Jy(Q,v.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:v.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(I0,{iso:v.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y=v.expiresAt?`Goes away ${new Date(v.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(v.name)?F.jsxDEV("a",{href:`${t1}/${v.name}`,title:y,onClick:(C)=>{C.preventDefault(),V(C),KO(v.name,v.name.split("/"))},children:f},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${y}. Its tokens went to whoever made it; it opens from their page.`,children:f},void 0,!1,void 0,this)},v.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches`,onClick:(v)=>{v.preventDefault(),V(v),M0([...Q.split("/"),"~","branches"])},children:"Manage branches…"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(BO,{name:Q,token:U,open:M,onClose:()=>O(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function WO({name:Q,view:U,changes:Z,changesets:K}){let H=(Y)=>(W)=>{W.preventDefault(),M0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/changes`,className:U==="changes"?"on":void 0,"aria-current":U==="changes"?"page":void 0,onClick:H(["changes"]),children:["Changes",Z?F.jsxDEV("span",{className:"count",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",K?F.jsxDEV("span",{className:"count",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Qy({name:Q,token:U,sets:Z,sub:K,signsAs:H,canWrite:Y,rooted:W,refused:L,onChanged:M,changes:O,withScreens:T,required:A}){let[R,P]=X1.useState(null),[N,V]=X1.useState(!1),v=Z.state==="ok"?[...Z.data.changesets].sort((b,D)=>D.createdAt.localeCompare(b.createdAt)):[],f=v.find((b)=>b.name===K)??v[0],y=X1.useMemo(()=>{let b=new Map;for(let D of f?IO(f):[]){let x=`${D.twin}:${D.entry.subject.type}:${D.entry.subject.id}`,$1=b.get(x)??{key:x,twin:D.twin,writes:[]};$1.writes.push(D.entry),b.set(x,$1)}return[...b.values()]},[f]),C=y.find((b)=>b.key===R)??y[0],j=P0(U,C?`/-/${Q}/log/${C.twin}`:null),u={added:0,removed:0,changed:0};for(let b of y)u[zU(b.writes).tone]=(u[zU(b.writes).tone]??0)+1;let h=f?WU(f):null,E=f?wO(f,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(WO,{name:Q,view:"history",changes:O,changesets:v.length},void 0,!1,void 0,this),F.jsxDEV(b2,{load:Z,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:v.map((b)=>{let D=f?.name===b.name,x=WU(b).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${t1}/${Q}/~/changes/changesets/${b.name}`,className:D?"on":void 0,"aria-current":D?"true":void 0,onClick:($1)=>{$1.preventDefault(),P(null),M0([...Q.split("/"),"~","changes","changesets",b.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:QH(b)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[b.owner??(b.cutBy?YU(b.cutBy):"unrecorded")," • ",F.jsxDEV(I0,{iso:b.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),x?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV($0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},b.name,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-pane-right",children:[Z.state==="ok"&&!f?F.jsxDEV(Q9,{title:"No changesets yet",children:F.jsxDEV("p",{children:"Cut one from Changes: the cut box is at its foot."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,f&&h&&E?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-commit-head",children:[F.jsxDEV("div",{className:"ws-commit-title",children:[F.jsxDEV("h3",{children:QH(f)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV($0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",E0(y.length,"changed record"),u.added?F.jsxDEV("span",{className:"plus",children:[" +",u.added]},void 0,!0,void 0,this):null,u.removed?F.jsxDEV("span",{className:"minus",children:[" −",u.removed]},void 0,!0,void 0,this):null,u.changed?F.jsxDEV("span",{className:"dot",children:[" •",u.changed]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode ws-commit-meta",children:[F.jsxDEV("code",{children:f.name},void 0,!1,void 0,this)," · ",F.jsxDEV(I0,{iso:f.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",f.owner??(f.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(f.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",f.cutBy?f.pushedBy&&f.applied===null&&f.cutBy==="machine"?"the machine it was cut on":YU(f.cutBy):"unrecorded"],...f.pushedBy?[["Pushed by",YU(f.pushedBy)]]:[]].map(([b,D])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:b},void 0,!1,void 0,this)," ",D]},b,!0,void 0,this))},void 0,!1,void 0,this),f.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:f.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),title:"Where it went, the checks, the approvals; Verify, Approve and Deploy",children:[F.jsxDEV("span",{className:`badge cs-${h.tone}`,children:h.label},void 0,!1,void 0,this),F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.label},void 0,!1,void 0,this),"Review…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-two inner",children:[F.jsxDEV("div",{className:"ws-files",children:F.jsxDEV(zO,{records:y,...C?{selected:C.key}:{},onPick:P,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:C?F.jsxDEV(YO,{record:C,history:j.state==="ok"?j.data.entries:j.state==="error"?[]:null},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"It changes nothing."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(N5,{open:N,onClose:()=>V(!1),title:`Review: ${QH(f)}`,wide:!0,children:[F.jsxDEV(_O,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:W,refused:L,onChanged:M,part:"head",required:A},`h:${f.name}`,!1,void 0,this),F.jsxDEV(_O,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:W,refused:L,onChanged:M,part:"review",required:A},`r:${f.name}`,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function qy({name:Q,token:U,vendors:Z,vendor:K,tick:H}){let[Y,W]=X1.useState(oR*4),[L,M]=X1.useState(""),[O,T]=X1.useState(null),A=P0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),R=A.state==="ok"?Iy(A.data.entries):[],P=[...new Set(R.map((u)=>d5(u.entry).what))].sort(),N=R.filter((u)=>!L||d5(u.entry).what===L),V=N.find((u)=>I9(u)===O)??N[0],v=(u)=>(h)=>{h.preventDefault(),T(null),M0([...Q.split("/"),"~","events",...u?[u]:[]])},f=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,y=V?rj(V.entry.traceparent):null,C=V?nR(V):null,j=V?My(V.entry):[];return F.jsxDEV("div",{className:"ws-events",children:[F.jsxDEV("div",{className:"ws-filterbar",children:[F.jsxDEV("nav",{className:"ws-seg","aria-label":"Vendor",children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/events`,className:!K?"on":void 0,"aria-current":!K?"page":void 0,onClick:v(),children:"All"},void 0,!1,void 0,this),Z.map((u)=>F.jsxDEV("a",{href:`${t1}/${Q}/~/events/${u}`,className:K===u?"on":void 0,"aria-current":K===u?"page":void 0,onClick:v(u),children:[F.jsxDEV(s0,{vendor:u},void 0,!1,void 0,this),d1(u)]},u,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:L,onChange:(u)=>{M(u.target.value),T(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),P.map((u)=>F.jsxDEV("option",{value:u,children:u},u,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[F.jsxDEV(b2,{load:A,what:"the events",lines:6},void 0,!1,void 0,this),F.jsxDEV("table",{className:"ws-grid","aria-label":"Events",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Time"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"What"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Record"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"By"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Receipt"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:N.map((u)=>{let h=d5(u.entry),E=nR(u),b=V&&I9(u)===I9(V);return F.jsxDEV("tr",{className:b?"on":void 0,"aria-selected":b,onClick:()=>T(I9(u)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(I0,{iso:u.entry.occurredAt,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:u.twin},void 0,!1,void 0,this),d1(u.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:h.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:h.label?`“${h.label}”`:F.jsxDEV("code",{children:b3(u.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:pJ(u.entry,u.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E?F.jsxDEV("span",{className:E.bad?"badge cs-bad":E.status==="deployed"?"badge cs-done":"badge",children:E.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:GO(u.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},I9(u),!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-detail",children:V?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-event-line",children:[F.jsxDEV("span",{className:"badge",children:MO(V.entry)},void 0,!1,void 0,this),C?F.jsxDEV("span",{className:C.bad?"badge cs-bad":"badge cs-good",children:C.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[V.entry.subject.type,":",b3(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",pJ(V.entry,V.caller)]},void 0,!0,void 0,this),y?F.jsxDEV("a",{href:`${t1}/${Q}/~/trace/${y.trace}`,onClick:(u)=>{u.preventDefault(),M0([...Q.split("/"),"~","trace",y.trace])},children:"Its trace →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-panes",children:[F.jsxDEV("div",{role:"region","aria-label":"The request",children:[F.jsxDEV("h4",{children:"Request"},void 0,!1,void 0,this),f!==void 0?F.jsxDEV(Ry,{body:f},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"No request body: the World or the vendor wrote it."},void 0,!1,void 0,this),j.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:j.map(([u,h])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:u},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},u,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{role:"region","aria-label":"What it wrote",children:[F.jsxDEV("h4",{children:"Written"},void 0,!1,void 0,this),F.jsxDEV(RO,{fields:V.entry.fields},void 0,!1,void 0,this),F.jsxDEV("h4",{children:V.copies.length?"Receipts":"Receipt"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:V.copies.length?V.copies.map((u)=>u.entry.receipt?.status??"landed copy").join(" · "):Oy(V.entry)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"Nothing written here yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:[F.jsxDEV("span",{children:[V?`${N.indexOf(V)+1} of ${N.length}`:N.length," events",K?` at ${d1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((u)=>u+oR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Uy({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),H=P0(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,R)=>-AO(A,R)):[],[W,L]=X1.useState(null),M=Y[0]?Date.parse(Y[0].entry.occurredAt):0,O=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-M):1,T=[...new Set(Y.map((A)=>A.twin))];return F.jsxDEV("div",{className:"ws-sheet ws-trace",children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),M0([...Q.split("/"),"~","events"])},children:[F.jsxDEV($0,{name:"arrow-left",size:16},void 0,!1,void 0,this)," Events"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("h2",{children:[Y[0]?`${d5(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:Z.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!K?F.jsxDEV("p",{role:"alert",children:[Z?`${Z} is not a trace id`:"No trace named",": a W3C trace id is 32 hex characters."]},void 0,!0,void 0,this):F.jsxDEV(b2,{load:H,what:"the trace"},void 0,!1,void 0,this),Y.length?F.jsxDEV("p",{className:"ws-trace-meta",children:["Started ",F.jsxDEV("b",{children:F.jsxDEV(I0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[O," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:T.map(d1).join(", ")},void 0,!1,void 0,this)," · Writes ",F.jsxDEV("b",{children:Y.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.state==="ok"&&Y.length===0?F.jsxDEV(Q9,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(O/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let R=Date.parse(A.entry.occurredAt)-M,P=I9(A),N=d5(A.entry);return F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("div",{className:W===P?"ws-span on":"ws-span",role:"row",onClick:()=>L(W===P?null:P),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(s0,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[N.what,N.label?` “${N.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${R/O*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${R/O*100}%`},children:["+",R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W===P?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:MO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",b3(A.entry)]},void 0,!0,void 0,this)," · ",pJ(A.entry,A.caller)," · ",GO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(RO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},P,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function Gy({name:Q,token:U,vendor:Z,withScreens:K,tick:H}){let Y=P0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),W=Y.state==="ok"?Y.data.tree.filter((j)=>j.deleted!==!0):[],L=[...new Set(W.map((j)=>j.type))].map((j)=>({type:j,count:W.filter((u)=>u.type===j).length})).sort((j,u)=>Number(j.type.startsWith("_"))-Number(u.type.startsWith("_"))||a8(j.type).localeCompare(a8(u.type))),[M,O]=X1.useState(null),[T,A]=X1.useState(null),R=L.some((j)=>j.type===M)?M:L[0]?.type,P=W.filter((j)=>j.type===R),N=P.find((j)=>j.id===T)??P[0],V=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],v=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),f=(j)=>!v.has(j)&&P.some((u)=>u[j]!==void 0&&u[j]!==null&&typeof u[j]!=="object"),y=[...new Set(P.flatMap((j)=>Object.keys(j)))],C=[...V.filter(f),...y.filter((j)=>!V.includes(j)&&f(j))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${d1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:Z},void 0,!1,void 0,this),d1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{load:Y,what:"what it stores",lines:4},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Stores"},void 0,!1,void 0,this),L.map((j)=>F.jsxDEV("a",{href:`#${j.type}`,className:R===j.type?"on":void 0,"aria-current":R===j.type?"true":void 0,onClick:(u)=>{u.preventDefault(),O(j.type),A(null)},children:[F.jsxDEV($0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:a8(j.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:j.count},void 0,!1,void 0,this)]},j.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/events/${Z}`,onClick:(j)=>{j.preventDefault(),M0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV($0,{name:"activity",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K?F.jsxDEV("a",{href:`${t1}/${Q}/~/screens/${Z}`,onClick:(j)=>{j.preventDefault(),M0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV($0,{name:"monitor",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[Y.state==="ok"&&L.length===0?F.jsxDEV(Q9,{title:`${d1(Z)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,P.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${a8(R??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),C.map((j)=>F.jsxDEV("th",{children:j},j,!1,void 0,this)),F.jsxDEV("th",{children:"updated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:P.map((j)=>F.jsxDEV("tr",{className:N?.id===j.id?"on":void 0,"aria-selected":N?.id===j.id,onClick:()=>A(j.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:j.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),C.map((u)=>F.jsxDEV("td",{className:"ws-cell-clip",children:j[u]===void 0||j[u]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(j[u])},u,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof j.updatedAt==="string"?F.jsxDEV(I0,{iso:j.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},j.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("aside",{className:"ws-record","aria-label":"The selected record",children:N?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:a8(N.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:N.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(N).filter(([j])=>j!=="type"&&j!=="id").map(([j,u])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:j},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(E3,{v:u},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},j,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:N?`${P.indexOf(N)+1} of ${E0(P.length,a8(R??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Zy({name:Q,vendor:U,url:Z,mapError:K,holding:H,session:Y,retry:W}){return F.jsxDEV("div",{className:"ws-screen",children:[F.jsxDEV("div",{className:"ws-screen-bar",children:[F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(U)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:H},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/vendors/${U}`,onClick:(L)=>{L.preventDefault(),M0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV($0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),Z?F.jsxDEV("a",{href:Z,target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV($0,{name:"external-link",size:16},void 0,!1,void 0,this),"New tab"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Y.state==="ok"&&Y.scope==="read"?F.jsxDEV("p",{className:"mode ws-screens-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,K?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not say where its screens are: ",K]},void 0,!0,void 0,this):Y.state==="pending"||Z===void 0?F.jsxDEV("p",{className:"mode ws-screens-note",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Y.state==="error"?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not open its screens: ",Y.error," ",F.jsxDEV("button",{type:"button",onClick:W,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z===null?F.jsxDEV("p",{className:"mode ws-screens-note",children:[d1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${d1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function Fy({name:Q,token:U,who:Z,scope:K}){let[H,Y]=X1.useState(0),W=P0(U,`/-/${Q}/twins`),L=P0(U,`/-/${Q}/rules`,H),M=L.state==="ok"?L.data.changesets:null,[O,T]=X1.useState(null),[A,R]=X1.useState(null),[P,N]=X1.useState(!1),[V,v]=X1.useState([]),f=O??M?.approvals??1,y=A??M?.summary??"required",C=M!==null&&(f!==(M.approvals??1)||y!==(M.summary??"required")),j=(x,$1)=>{if(v((Q1)=>[{ok:x,text:$1,at:new Date().toISOString(),n:++lJ},...Q1].slice(0,3)),!x)i0($1,"error")},u=async(x)=>{x.preventDefault(),N(!0);try{let $1=await z0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:f,summary:y}})});if(!$1.ok){j(!1,`Save: ${await X5($1)}`);return}j(!0,`Saved: ${f===0?"no approval":E0(f,"approval")} before a deploy; a summary ${y==="required"?"required":"generated when none is given"}.`),T(null),R(null),Y((Q1)=>Q1+1)}finally{N(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},E=Z.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:Z.person},void 0,!1,void 0,this),Z.local?", signed in on this machine":""]},void 0,!0,void 0,this):Z.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this machine"},void 0,!1,void 0,this),": no one is signed in here, so no person owns them until they are pushed by one"]},void 0,!0,void 0,this):Z.admin?F.jsxDEV(F.Fragment,{children:F.jsxDEV("b",{children:"the host's admin"},void 0,!1,void 0,this)},void 0,!1,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this token"},void 0,!1,void 0,this),", a service"]},void 0,!0,void 0,this),b=W.state==="ok"?W.data.twins.filter((x)=>x.root?.url):[],D=K!=="write"?"This session reads the World; it changes no rules":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Changesets"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"This World's rules, kept with it and shared by everyone who works in it. A person or the World's token changes them; a key never does, so an agent cannot relax the review its own changes go through."},void 0,!1,void 0,this),F.jsxDEV(b2,{load:L,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(x)=>void u(x),"aria-label":"Changeset rules",children:[F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Recorded as"},void 0,!1,void 0,this),F.jsxDEV("p",{children:["What you cut here is recorded as ",E,". An agent's or an app's key cuts as itself, for the person it was made for; a World's token cuts as a service."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"A cut's summary"},void 0,!1,void 0,this),F.jsxDEV("fieldset",{className:"choice",disabled:Boolean(D)||M===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:y==="required",onChange:()=>R("required")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Required: whoever cuts says what it does and why"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:y==="generated",onChange:()=>R("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV($0,{name:"check",size:16},void 0,!1,void 0,this),"Verified: replayed in a throwaway World, the World's checks passing"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("label",{className:"ws-rule-row",children:[F.jsxDEV("span",{children:"Approved by"},void 0,!1,void 0,this),F.jsxDEV("select",{value:f,onChange:(x)=>T(Number(x.target.value)),disabled:Boolean(D)||M===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((x)=>F.jsxDEV("option",{value:x,children:x===0?"no one: verified is enough":x===1?"1 person":`${x} different people`},x,!1,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"for its contents as they stand"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Deploys to"},void 0,!1,void 0,this),W.state==="ok"&&b.length===0?F.jsxDEV("p",{className:"mode",children:"No vendor here is connected to its real service, so nothing deploys from this World."},void 0,!1,void 0,this):null,b.length?F.jsxDEV("ul",{className:"ws-rule-list",children:b.map((x)=>F.jsxDEV("li",{children:[F.jsxDEV(s0,{vendor:x.twin},void 0,!1,void 0,this),d1(x.twin),": ",h[x.root.deploy??"gated"]??"gated"]},x.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/services`,onClick:(x)=>{x.preventDefault(),M0([...Q.split("/"),"~","settings","services"])},children:"Real services"},void 0,!1,void 0,this)," sets each vendor's deploy policy."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(x6,{log:V,name:Q},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(D)||P||!C,title:D??void 0,children:P?"Saving…":"Save"},void 0,!1,void 0,this),C?F.jsxDEV("button",{type:"button",onClick:()=>{T(null),R(null)},children:"Cancel"},void 0,!1,void 0,this):null,D?F.jsxDEV("span",{className:"mode",children:[D,"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Xy({who:Q,scope:U,snapshot:Z,portal:K,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[W,L]=Z?["A snapshot",`of ${Z.parent}, read only`]:Q.local&&Q.person?[Q.person,"Signed in on this machine: this World is served here, and acts as you"]:Q.local?["This machine","Served here, with no one signed in: what you do is recorded as this machine"]:Q.person?[Q.person,K?`Signed in through ${new URL(K).host}`:"Signed in"]:Q.admin?["The host's admin","Opened with the host admin token: every World it serves"]:["A link or key","Opened with a token for this World"];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Account"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-account",children:[F.jsxDEV("span",{className:"ws-account-face","aria-hidden":"true",children:F.jsxDEV($0,{name:Q.person?"user":Q.local?"monitor":Z?"clock":"key-round",size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:W},void 0,!1,void 0,this),F.jsxDEV("small",{children:L},void 0,!1,void 0,this),F.jsxDEV("small",{children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.local||Z?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV($0,{name:"log-out",size:16},void 0,!1,void 0,this),Q.person?"Sign out":Q.admin?"Sign out of the host":"Use another token"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${K}/`,children:new URL(K).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function Ky({name:Q,token:U,view:Z,sub:K,arg:H,win:Y,who:W,snapshot:L,onReturn:M,onSignOut:O,worlds:T,session:A,retry:R,twins:P,map:N,branches:V,clock:v,canWrite:f,refused:y,signsAs:C,opens:j,tick:u,admin:h,onRemoved:E,onClock:b,scope:D}){let x=NO(Q,U,u,y),[$1,Q1]=X1.useState(0),J1=$1*1e5+Math.floor(u/2),m=P0(U,`/-/${Q}/diff`,J1),p=P0(U,`/-/${Q}/changesets`,J1),c=P0(U,`/-/${Q}/rules`,J1),[a,i]=X1.useState(null),o=(M1)=>(r1)=>{r1?.preventDefault(),M0([...Q.split("/"),"~",...M1])},k=P.state==="ok"?P.data.twins.map((M1)=>M1.twin):[],g=new Map((N.state==="ok"?N.data.twins:[]).flatMap((M1)=>{let r1=ej(Q,M1);return r1?[[M1.twin,r1]]:[]})),q1=[...g.keys()],t=N.state==="ok"?N.data.twins.filter((M1)=>M1.root).map((M1)=>M1.twin):[],W1=(M1)=>N.state==="ok"?(N.data.twins.find((r1)=>r1.twin===M1)?.resources??[]).reduce((r1,u1)=>r1+u1.count,0):0,T1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],O1=X1.useMemo(()=>{if(m.state!=="ok")return[];let M1=new Map;for(let r1 of m.data.changes){let u1=`${r1.twin}:${r1.entry.subject.type}:${r1.entry.subject.id}`,D0=M1.get(u1)??{key:u1,twin:r1.twin,writes:[]};D0.writes.push(r1.entry),M1.set(u1,D0)}return[...M1.values()]},[m]),L1=O1.find((M1)=>M1.key===a)??O1[0],U1=P0(U,Z==="changes"&&L1?`/-/${Q}/log/${L1.twin}`:null,J1),P1=m.state==="ok"?m.data.changes.length:0,v1=x.waiting.length,A1=x.there,k1=x.origin.state==="ok"?x.origin.data.origin:null,D1=!f?"This session reads the World; it changes nothing":!A1?"No remote: name one in Settings › Remote":null,g1=(M1,r1,u1,D0,o1,X2)=>F.jsxDEV("a",{href:`${t1}/${Q}/~/${D0}`,className:M1?"on":void 0,"aria-current":M1?"page":void 0,onClick:o1,children:[r1,F.jsxDEV("span",{children:u1},void 0,!1,void 0,this),X2?F.jsxDEV("span",{className:"count",children:X2},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),h1=(M1)=>{M1.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("div",{className:"ws",children:[F.jsxDEV("div",{className:"ws-bar",role:"toolbar","aria-label":`${Q} toolbar`,children:[F.jsxDEV("div",{className:"ws-left",children:[F.jsxDEV(ZJ,{href:`${t1}/${Q}`,onClick:(M1)=>{M1.preventDefault(),o(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV($0,{name:"globe",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("b",{children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV($0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover menu-list ws-world-menu",children:[W.local?null:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Worlds"},void 0,!1,void 0,this),T.map((M1)=>F.jsxDEV("a",{href:`${t1}/${M1}`,className:M1===Q?"on":void 0,onClick:(r1)=>{r1.preventDefault(),h1(r1),M0(M1.split("/"))},children:[M1===Q?F.jsxDEV($0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV($0,{name:"globe",size:16},void 0,!1,void 0,this),M1]},M1,!0,void 0,this)),F.jsxDEV("a",{href:`${Y4()&&Y4()!==L0?Y4():""}${t1}/`,onClick:(M1)=>{if(Y4()&&Y4()!==L0)return;M1.preventDefault(),h1(M1),M0([])},children:[F.jsxDEV($0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",x2()?` on ${new URL(x2()).host}`:""]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Connect an app"},void 0,!1,void 0,this),x2()?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key made on the platform; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[D3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU({platform:x2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!W.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key from Settings › Access; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[D3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Run it in this World; its calls to these vendors land here:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:"volter world run -- npm start"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-menu-text mode",children:["Or point an SDK at ",F.jsxDEV("code",{children:[D3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this)," with the token in ",F.jsxDEV("code",{children:".volter/token"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/settings`,onClick:(M1)=>{h1(M1),o(["settings"])(M1)},children:[F.jsxDEV($0,{name:"settings",size:16},void 0,!1,void 0,this),"Settings…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV($y,{name:Q,token:U,branches:V,opens:j,refused:y,onChanged:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-where",title:"Where this is",children:[F.jsxDEV("span",{children:Q},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("span",{children:T1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),k1?F.jsxDEV("a",{href:`${t1}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",k1.namespace,v1?F.jsxDEV("b",{children:[" ↑",v1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${t1}/${Q}/~/remote`,onClick:o(["remote"]),children:"no remote"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:v.state==="ok"?F.jsxDEV(F.Fragment,{children:[v.data.frozen?"stopped at ":"",F.jsxDEV(I0,{iso:v.data.at,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-right",children:[F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void x.pull(),disabled:Boolean(D1)||x.busy!==null,title:D1??`Fetch what ${A1} has and move this branch onto it`,children:[F.jsxDEV($0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),x.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void x.push(),disabled:Boolean(D1)||x.busy!==null||v1===0,title:D1??(v1?`Push ${E0(v1,"changeset")} to ${A1}`:`Every changeset is at ${A1}`),children:[F.jsxDEV($0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),x.busy==="Push"?"Pushing…":"Push",v1?F.jsxDEV("span",{className:"ws-btn-count",children:v1},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn icon-only","aria-label":"Settings",title:"Settings",onClick:()=>o(["settings"])(),children:F.jsxDEV($0,{name:"settings",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),L?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV($0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:L.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(I0,{iso:L.at},void 0,!1,void 0,this),": a read-only snapshot",L.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(I0,{iso:L.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,"."]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void M(L),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,x.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(x6,{log:x.log.slice(0,1),name:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV("div",{className:"ws-body",children:[F.jsxDEV("nav",{className:"ws-side","aria-label":`${Q} places`,children:[k.length?F.jsxDEV("a",{href:`${t1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`The board: ${v8(k.map(d1))}`,children:[F.jsxDEV($0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Board"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-screens-marks",children:[k.slice(0,3).map((M1)=>F.jsxDEV(s0,{vendor:M1},M1,!1,void 0,this)),k.length>3?F.jsxDEV("span",{className:"more",children:["+",k.length-3]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{className:"side-group",children:"Workspace"},void 0,!1,void 0,this),g1(Z==="changes"||Z==="history",F.jsxDEV($0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),O1.length?String(O1.length):void 0),g1(Z==="events"&&!H||Z==="trace",F.jsxDEV($0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",o(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),k.map((M1)=>F.jsxDEV(X1.default.Fragment,{children:g1(Z==="vendor"&&H===M1,F.jsxDEV(s0,{vendor:M1},void 0,!1,void 0,this),d1(M1),`vendors/${M1}`,o(["vendors",M1]),W1(M1)?String(W1(M1)):void 0)},M1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),g1(!1,F.jsxDEV($0,{name:"cloud",size:16},void 0,!1,void 0,this),A1?"origin":"Name a remote…","remote",o(["remote"]),v1?`↑${v1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[Z==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(WO,{name:Q,view:"changes",changes:O1.length,changesets:p.state==="ok"?p.data.changesets.length:0},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:"Not in a changeset"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:m.state==="ok"?`${E0(O1.length,"record")} · ${E0(P1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:m,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(zO,{records:O1,...L1?{selected:L1.key}:{},onPick:i,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[m.state==="ok"&&!L1?F.jsxDEV(Q9,{title:"No changes on this branch",action:v1>0&&A1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(D1)||x.busy!==null,onClick:()=>void x.push(),children:["Push ",E0(v1,"changeset")," to origin"]},void 0,!0,void 0,this):void 0,children:F.jsxDEV("p",{children:["What your app writes to this World lands here, record by record, to cut into a changeset. Everything since ",m.data.base.at?F.jsxDEV(I0,{iso:m.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:m.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,L1?F.jsxDEV(YO,{record:L1,history:U1.state==="ok"?U1.data.entries:U1.state==="error"?[]:null},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(ky,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV($0,{name:W.person?"user":W.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:W.person??(W.local?"This machine":W.admin?"The host's admin":"A token"),account:`${t1}/${Q}/~/settings/account`,branch:T1},name:Q,token:U,changes:P1,canWrite:f,refused:y,onCut:()=>{Q1((M1)=>M1+1),i(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(Qy,{name:Q,token:U,sets:p,changes:O1.length,withScreens:q1,required:c.state==="ok"?c.data.changesets.approvals??1:1,...K?{sub:K}:{},signsAs:C,canWrite:f,rooted:t,refused:y,onChanged:()=>Q1((M1)=>M1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(qy,{name:Q,token:U,vendors:k,...H&&k.includes(H)?{vendor:H}:{},tick:u},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(Uy,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(Gy,{name:Q,token:U,vendor:H,withScreens:q1.includes(H),tick:u},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(Zy,{name:Q,vendor:H,url:N.state==="ok"?g.get(H)??null:void 0,...N.state==="error"?{mapError:N.error}:{},holding:Yy(N.state==="ok"?N.data.twins.find((M1)=>M1.twin===H)?.resources??[]:[]),session:A,retry:R},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(N5,{open:Y?.kind==="settings",onClose:()=>o(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:HO.map(([M1,r1,u1])=>F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/${M1}`,className:Y.tab===M1?"on":void 0,"aria-current":Y.tab===M1?"page":void 0,onClick:o(["settings",M1]),children:[F.jsxDEV($0,{name:u1,size:16},void 0,!1,void 0,this),r1]},M1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[D==="read"?F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"badge read-only",children:"Read only"},void 0,!1,void 0,this)," This session reads the World; it changes nothing."]},void 0,!0,void 0,this):null,Y.tab==="account"?F.jsxDEV(Xy,{who:W,scope:D,snapshot:L,portal:x2(),onSignOut:O},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(Fy,{name:Q,token:U,who:W,scope:D},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(uy,{name:Q,token:U,canWrite:f,tick:u,refused:y},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(Ey,{name:Q,token:U,admin:h,canWrite:f,refused:y,onRemoved:E,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(by,{name:Q,token:U,canWrite:f,refused:y},void 0,!1,void 0,this):null,Y.tab==="appearance"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV(sj,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV(N5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(Ly,{name:Q,token:U,canWrite:f,branches:V,opens:j,...Y.open?{open:Y.open}:{},onChanged:b,refused:y},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JH({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>i0("Copied the prompt: paste it into your coding agent"),()=>i0("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var KH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,Hy=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),Yy=(Q,U=4)=>{let Z=[...Q].filter((K)=>K.count>0).sort((K,H)=>H.count-K.count);return Z.length?Z.slice(0,U).map((K)=>E0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},LO=F.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:F.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this);function zy({name:Q,token:U,clock:Z,canWrite:K,onChanged:H,refused:Y,open:W}){let[L,M]=X1.useState(!1),[O,T]=X1.useState(""),[A,R]=X1.useState(""),[P,N]=X1.useState(null),[V,v]=X1.useState(!1),f=Z.state==="ok"?Z.data:null,y=async(h,E,b)=>{v(!0),N(null);try{let D=await z0(U,`/-/${Q}/${E}`,{method:E==="clock"?"PUT":"POST",body:JSON.stringify(b)});if(!D.ok){Y(D),N({ok:!1,text:await X5(D)});return}let x=await D.json();N({ok:!0,text:`${h} — the World is at ${new Date(x.at).toLocaleString()}`}),M(!1),H()}catch(D){N({ok:!1,text:`the World did not answer: ${D instanceof Error?D.message:String(D)}`})}finally{v(!1)}},C=(h)=>{h.preventDefault();let E=new Date(O);if(Number.isNaN(E.getTime())){N({ok:!1,text:"Pick a date and time."});return}if(f&&E.getTime()<Date.parse(f.at)){N({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(f.at).toLocaleString()}.`});return}y("Clock set","clock",{at:E.toISOString()})},j=(h,E)=>{y(`Advanced ${E}`,"clock/advance",{by:h})},u=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${f?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):f.frozen?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",F.jsxDEV("strong",{children:F.jsxDEV(I0,{iso:f.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:["World time ",F.jsxDEV("strong",{children:F.jsxDEV(I0,{iso:f.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"· real time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&f?F.jsxDEV("details",{className:W?"clock-more inline":"clock-more",open:W||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:W?void 0:"popover",children:[F.jsxDEV("p",{className:"mode",children:"Move this World's clock forward to see what happens later: renewals, expiries, scheduled sends. Like a test clock, it only moves forward; to look back, the branch picker’s Manage branches… views an earlier moment."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"clock-controls",children:[F.jsxDEV("button",{type:"button","aria-expanded":L,onClick:()=>{M(!L),T(w9(rR(f.at))),N(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),u.map(([h,E])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${E}`,disabled:V||!f.frozen,title:f.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>j(h,E),children:E},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){N({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}j(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(h)=>R(h.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!f.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V||!f.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!f.frozen?F.jsxDEV("p",{className:"mode",children:"The World runs on real time. Set a time to start simulating; then advance it."},void 0,!1,void 0,this):null,L?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:C,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:O,min:w9(rR(f.at)),onChange:(h)=>T(h.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>M(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,P?F.jsxDEV("p",{role:P.ok?"status":"alert",children:P.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function Wy({name:Q,token:U,clock:Z,refused:K}){let[H,Y]=X1.useState(!1),[W,L]=X1.useState(""),[M,O]=X1.useState(null),[T,A]=X1.useState(!1),R=Z.state==="ok"?Z.data.at:new Date().toISOString(),P=X1.useRef(null);return X1.useEffect(()=>{if(!H)return;let V=(f)=>{if(f.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),P.current?.querySelector("button")?.focus()},v=(f)=>{if(!P.current?.contains(f.target))Y(!1)};return document.addEventListener("keydown",V),document.addEventListener("click",v),()=>{document.removeEventListener("keydown",V),document.removeEventListener("click",v)}},[H]),F.jsxDEV("div",{className:"as-of",ref:P,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),L(w9(R)),O(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(V)=>{V.preventDefault(),O(null);let v=new Date(W);if(Number.isNaN(v.getTime())){O("Pick a date and time.");return}if(v.getTime()>Date.parse(R)){O(`That is after the World's present (${new Date(R).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let f=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:v.toISOString()},ttl:3600})});if(!f.ok){K(f),O(await X5(f));return}let y=await f.json();GH({name:y.name,parent:Q,token:y.token,readToken:y.readToken,at:v.toISOString(),expiresAt:y.expiresAt??null,parentOrigin:L0,made:!0});let C=cJ(y.origin)?.origin;if(C&&C!==L0){XH(C,y.readToken,y.name,`${t1}/${y.name}`);return}M0(y.name.split("/"))}catch(f){O(`the World did not answer: ${f instanceof Error?f.message:String(f)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:W,max:w9(R),onChange:(V)=>L(V.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:T,children:T?"Opening…":"Open snapshot"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Opens a read-only copy of this World as it was then; the copy goes away within the hour."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function BO({name:Q,token:U,open:Z,onClose:K,onMade:H,refused:Y}){let W=(E)=>E.split("/").pop()??E,[L,M]=X1.useState(!1),[O,T]=X1.useState(null),[A,R]=X1.useState(""),[P,N]=X1.useState("now"),[V,v]=X1.useState(""),[f,y]=X1.useState("24"),[C,j]=X1.useState(!0);X1.useEffect(()=>{if(Z)T(null),v(w9(new Date().toISOString()))},[Z]);let u=async(E)=>{E.preventDefault(),T(null);let b=P==="at"?new Date(V):null;if(b&&Number.isNaN(b.getTime())){T("Pick a date and time, or make it as of now.");return}if(b&&b.getTime()>Date.now()){T("A branch is made as of now or a moment before it.");return}M(!0);let D=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(f)*3600),...b?{at:{instant:b.toISOString()}}:C?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(M(!1),!D){T(`${L0} did not answer`);return}if(!D.ok){Y(D),T(await X5(D));return}let x=await D.json();GH({name:x.name,parent:Q,token:x.token??"",readToken:x.readToken,at:(b??new Date).toISOString(),expiresAt:x.expiresAt??null,parentOrigin:L0,...x.origin?{origin:x.origin}:{}}),K(),R(""),i0(`Made ${W(x.name)}`),H()};return F.jsxDEV(N5,{open:Z,onClose:()=>{if(!L)K()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>K(),disabled:L,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:L,children:L?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"new-branch",onSubmit:(E)=>void u(E),className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Label ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"branchLabel",value:A,onChange:(E)=>R(E.target.value.toLowerCase()),placeholder:"checkout-flow",pattern:"[a-z0-9][a-z0-9\\-]{0,23}",maxLength:24},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="now",onChange:()=>N("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:C,onChange:(E)=>j(E.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="at",onChange:()=>N("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:w9(new Date().toISOString()),onChange:(E)=>v(E.target.value)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Goes away after"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"branchLife",value:f,onChange:(E)=>y(E.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"168",children:"7 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O?F.jsxDEV("p",{role:"alert",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Ly({name:Q,token:U,canWrite:Z,branches:K,opens:H,open:Y,onChanged:W,refused:L,snapshotOf:M}){let O=P0(U,`/-/${Q}/clock`),T=(y)=>y.split("/").pop()??y,[A,R]=X1.useState(!1),P=(y)=>(C)=>{C.preventDefault(),M0([...Q.split("/"),"~","branches",...y?y.split("/"):[]])};if(!K)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let N=K.state==="ok"?K.data.branches:[],V=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:T(Q),running:!0}],v=K.state==="ok"?K.data.checkedOut??T(Q):T(Q),f=async(y)=>{if(!await c4({title:`Remove the branch ${T(y)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let C=await z0(U,`/-/${Q}/branches/${y}`,{method:"DELETE"}).catch((j)=>j);if(C instanceof Error){i0(`Remove ${T(y)}: the World did not answer (${C.message})`,"error");return}if(!C.ok){L(C),i0(`Remove ${T(y)}: ${await X5(C)}`,"error");return}HU(y),i0(`Removed ${T(y)}`),W(),M0([...Q.split("/"),"~","branches"])};if(Y){let y=Y.includes("/")?N.find((j)=>j.name===Y):void 0,C=Y.includes("/")?void 0:V.find((j)=>j.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches`,onClick:P(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"&&!y&&!C?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,y?F.jsxDEV(By,{name:Q,b:y,canWrite:Z,opens:H(y.name),remove:()=>void f(y.name)},void 0,!1,void 0,this):null,C&&!y?F.jsxDEV(Ay,{name:Q,token:U,b:C,served:C.name===v,canWrite:Z,canServe:K.state==="ok"&&Boolean(K.data.canServe)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}return F.jsxDEV("div",{"aria-labelledby":"branches",children:[F.jsxDEV("div",{className:"branches-head",children:[F.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",F.jsxDEV("b",{children:v},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),Z?F.jsxDEV("div",{className:"head-actions",children:[M?null:F.jsxDEV(Wy,{name:Q,token:U,clock:O,refused:L},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>R(!0),children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:[V.map((y)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/branches/${y.name}`,onClick:P(y.name),children:F.jsxDEV("b",{children:y.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),y.name===v?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):y.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${y.name}`,!0,void 0,this)),N.map((y)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches/${y.name}`,onClick:P(y.name),children:F.jsxDEV("b",{children:T(y.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:T(y.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:y.at?.instant?F.jsxDEV(I0,{iso:y.at.instant},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV(I0,{iso:y.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:y.expiresAt?F.jsxDEV(I0,{iso:y.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},y.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(BO,{name:Q,token:U,open:A,onClose:()=>R(!1),onMade:W,refused:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function By({name:Q,b:U,canWrite:Z,opens:K,remove:H}){let Y=(M)=>M.split("/").pop()??M,W=ZH(U.name),L=P0(W,W?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[LO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[K?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>KO(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,Z?F.jsxDEV("button",{type:"button",className:"danger-button",onClick:H,children:"Remove…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:U.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Y(U.from??Q)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.at?.instant?F.jsxDEV(I0,{iso:U.at.instant},void 0,!1,void 0,this):"live: it keeps its parent's time"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(I0,{iso:U.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Goes away"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.expiresAt?F.jsxDEV(I0,{iso:U.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!K?F.jsxDEV("p",{className:"mode",children:"Its tokens were handed to whoever made it: it opens, and shows its own changes, in their tab."},void 0,!1,void 0,this):null,L.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),L.data.changes.length===0?F.jsxDEV("p",{className:"mode",children:"Nothing written on it since it branched."},void 0,!1,void 0,this):F.jsxDEV(Vy,{changes:L.data.changes,idPrefix:`branch-${Y(U.name)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function Ay({name:Q,token:U,b:Z,served:K,canWrite:H,canServe:Y}){let[W,L]=X1.useState(!1),[M,O]=X1.useState(null),T=async()=>{L(!0),O(null);let A=await z0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}L(!1),O(A?await X5(A):`${L0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[LO," ",Z.name," ",K?F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:H&&Y&&!K?F.jsxDEV("button",{type:"button",className:"primary",disabled:W,onClick:()=>void T(),children:W?"Switching…":"Serve here"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:Z.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Kind"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:"one of this World's own branches"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"State"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Z.running?"running":"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${t1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),M0([...Q.split("/"),"~","changes"])},children:"Changes"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):Y?F.jsxDEV("p",{className:"mode",children:["“Serve here” stops this one's twins and serves ",Z.name," in its place."]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode",children:"This host serves one of the World's own branches at a time, and does not switch them from this page."},void 0,!1,void 0,this),M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var oR=50,I9=(Q)=>`${Q.twin}:${Q.position}`,AO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,YU=(Q)=>{if(!Q)return"someone";if(Q.startsWith("key:")){let[U,Z]=Q.slice(4).split(" for:");return Z?`${U}, for ${Z}`:U||"a key"}if(Q.startsWith("person:"))return Q.slice(7);return Q==="machine"?"this machine":Q==="person"?"a session with no name":Q==="token:read"?"the read-only token":Q==="token"?"the World's token":Q},pJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${YU(Z)}`;if(Z.startsWith("person:")&&Z.length>7)return`by ${Z.slice(7)}`;if(Z==="machine")return"by this machine";if(Z==="person")return"by a session with no name";if(Z==="key")return"by a key";if(Z==="token:read")return"by the read-only token";if(Z==="token")return"by the World's token";return Q.actor?.kind==="system"?"by the vendor":Q.actor?.id?`by ${Q.actor.id}`:"by an app"},MO=(Q)=>Q.operation??Q.op;function My(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...O)=>O.map((T)=>Z[T]??U[T]).find((T)=>typeof T==="number"),H=[],Y=K("prompt_tokens","input_tokens"),W=K("completion_tokens","output_tokens"),L=K("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(W!==void 0)H.push(["tokens out",W.toLocaleString()]);if(L!==void 0)H.push(["tokens in all",L.toLocaleString()]);let M=K("cost_usd","cost");if(M!==void 0)H.push(["cost",`$${M<0.01?M.toPrecision(2):M.toFixed(2)}`]);return H}function TO({text:Q,at:U=280}){if(Q.length<=U)return F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this);return F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:[F.jsxDEV("span",{className:"text",children:[Q.slice(0,U),"…"]},void 0,!0,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:["show all ",Q.length.toLocaleString()," characters"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function E3({v:Q}){if(typeof Q==="string")return F.jsxDEV(TO,{text:Q},void 0,!1,void 0,this);if(Q===null||typeof Q!=="object")return F.jsxDEV("code",{children:String(Q)},void 0,!1,void 0,this);let U=JSON.stringify(Q,null,2);return U.length<=160?F.jsxDEV("code",{children:JSON.stringify(Q)},void 0,!1,void 0,this):F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:F.jsxDEV("code",{children:[JSON.stringify(Q).slice(0,120),"…"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("pre",{children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ty=(Q)=>typeof Q==="string"?Q:Array.isArray(Q)?Q.map((U)=>U&&typeof U==="object"&&typeof U.text==="string"?U.text:"").filter(Boolean).join(`
249
- `):JSON.stringify(Q??"");function Ry({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(E3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,K=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[K.length?F.jsxDEV("dl",{className:"fields",children:K.map(([H,Y])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(E3,{v:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},H,!0,void 0,this))},void 0,!1,void 0,this):null,Z?F.jsxDEV("ol",{className:"messages",children:Z.map((H,Y)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"role",children:typeof H.role==="string"?H.role:"message"},void 0,!1,void 0,this),F.jsxDEV(TO,{text:Ty(H.content)},void 0,!1,void 0,this)]},Y,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function RO({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return F.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return F.jsxDEV("dl",{className:"fields",children:U.map(([Z,K])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(E3,{v:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var Oy=(Q)=>Q.receipt?`${Q.receipt.status??""}${Q.receipt.externalId?` · ${Q.receipt.externalId}`:""}${Q.receipt.reason?` · ${Q.receipt.reason}`:""}`:Q.operation==="observed"?"observed from the vendor":Q.provenance==="placeholder"?"default data":"none: it has not left this World";function Iy(Q){let U=new Map,Z=[],K=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){K.push(Y);continue}let W={...Y,copies:[]};if(Z.push(W),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,W);if(!H.has(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`))H.set(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`,W)}for(let Y of K){let W=Y.entry.landsId?U.get(`${Y.twin}:${Y.entry.landsId}`):Y.entry.aliasOf?H.get(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.aliasOf}`):void 0;if(W)W.copies.push(Y);else Z.push({...Y,copies:[]})}return Z.sort(AO)}var $H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function nR(Q){let U=[Q.entry.receipt,...Q.copies.map((H)=>H.entry.receipt)].filter((H)=>Boolean(H?.status));if(U.length===0)return null;let Z=U.find((H)=>H.status==="failed"||H.status==="refused"),K=[...U].sort((H,Y)=>($H[Y.status]??0)-($H[H.status]??0))[0];return Z&&!($H[K.status]>=5)?{status:Z.status,bad:!0}:{status:K.status,bad:!1}}var H4=1280,t4=820,XU=160,K4=72,wy=72,e0=(Q)=>`${Q.vendor}:${Q.id}`,d8=(Q)=>`${Q.vendor}:section:${Q.section.id}`,s8=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),OO=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${D3}/${Q}/${U.vendor}${U.at.screen}`:null,Py=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(e0(Z))||s8(Z).some((K)=>Q.include.includes(K))):U.filter((Z)=>!(Q.hidden??[]).includes(e0(Z)));function Ny({data:Q}){let{frame:U,url:Z,active:K,picked:H,boards:Y,addTo:W,remove:L,compare:M}=Q,O=e0(U),T=Y.filter((A)=>A.include&&!A.include.includes(O)&&!s8(U).some((R)=>A.include.includes(R)));return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(_H,{isVisible:!0,position:b1.Top,align:"start",className:"frame-label",children:[F.jsxDEV(s0,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:U.title},void 0,!1,void 0,this),U.changes?F.jsxDEV("button",{type:"button",className:"frame-changed nodrag",onClick:()=>M(O),title:`${E0(U.changes,"change")} here, not in a changeset: compare before and now`,children:[F.jsxDEV($0,{name:"square-dot",size:14},void 0,!1,void 0,this),U.changes]},void 0,!0,void 0,this):H?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>M(O),title:"Compare with a branch of this World","aria-label":`Compare ${U.title} with a branch`,children:F.jsxDEV($0,{name:"file-diff",size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,H&&T.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(A)=>{if(A.target.value)W(A.target.value,O)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),T.map((A)=>F.jsxDEV("option",{value:A.id,children:A.name},A.id,!1,void 0,this))]},void 0,!0,void 0,this):null,H&&L?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>L.act(O),title:L.label,"aria-label":L.label,children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame on":H?"frame picked":"frame",style:{width:H4,height:t4},children:[F.jsxDEV("div",{className:"frame-bar",title:"Drag to move · double-click to use",children:[F.jsxDEV(s0,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:[d1(U.vendor)," · ",U.kind]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"frame-url",children:U.url.replace(/^https?:\/\//,"")},void 0,!1,void 0,this),Z?F.jsxDEV("a",{className:"nodrag",href:Z,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${U.title} in a new tab`,children:"↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame-body nodrag nopan nowheel":"frame-body",children:Z?F.jsxDEV("iframe",{title:U.title,src:Z,loading:"lazy",style:{pointerEvents:K?"auto":"none"}},void 0,!1,void 0,this):F.jsxDEV("div",{className:"frame-none",children:[F.jsxDEV("p",{children:F.jsxDEV("strong",{children:U.unseen==="sites-not-routed"?`This World shows ${U.title} only at its own local address.`:`${d1(U.vendor)}'s twin draws no page for this ${U.kind} yet.`},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:U.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Cy({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(iR,{isVisible:Q.picked&&Q.editable,minWidth:480,minHeight:360,color:"var(--accent)",onResizeEnd:Q.resized},void 0,!1,void 0,this),F.jsxDEV(_H,{isVisible:!0,position:b1.Top,align:"start",offset:6,className:"section-tag",children:[F.jsxDEV("button",{type:"button",className:Q.picked?"nodrag on":"nodrag",onClick:()=>Q.pick(Q.key),onDoubleClick:()=>{if(Q.editable)Q.rename(Q.key)},title:Q.editable?"Double-click to rename":void 0,children:[Q.vendor?F.jsxDEV(s0,{vendor:Q.vendor},void 0,!1,void 0,this):null,F.jsxDEV("span",{children:Q.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.picked&&Q.editable?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>Q.remove(Q.key),"aria-label":`Remove the section ${Q.name}`,title:"Remove the section (its frames stay)",children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:Q.picked?"section-box on":"section-box"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eR({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*t4/H4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:H4,height:t4,transform:`scale(${420/H4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function fy({name:Q,token:U,frame:Z,onClose:K,reads:H}){let[Y,W]=X1.useState(Z.since?"before":""),[L,M]=X1.useState({state:"opening"}),[O,T]=X1.useState(null),A=X1.useRef(new Set),R=P0(U,`/-/${Q}/branches`,H),P=R.state==="ok"?R.data.branches.filter((y)=>y.name!==O&&!A.current.has(y.name)):[],N=P0(U,`/-/${Q}/board/changes?frame=${encodeURIComponent(e0(Z))}`,H),V=async(y,C,j)=>{let u=Z.at;if("site"in u){let b=new URL(Z.url),D=C&&/^https?:\/\/\{host\}\./.test(C)?C.replace("{host}",b.hostname.toLowerCase()):null;return D?{url:`${D}${b.pathname}${b.search}`}:{why:"This World shows its branches' sites only on this machine."}}let h=`${D3}/-/${Q}/branches/${y}/pages?${new URLSearchParams({land:`/${y}/${Z.vendor}${u.screen}`}).toString()}`,E=await fetch(h,{credentials:"same-origin",redirect:"manual"}).catch(()=>null);if(j())return{why:""};return E?.type==="opaqueredirect"?{url:h}:{why:`This World does not show its branches' pages${E?`: ${await X5(E)}`:""}.`}};X1.useEffect(()=>{if(!Z.at){M({state:"none",why:`${d1(Z.vendor)}'s twin draws no page for this ${Z.kind} yet; its changes are listed below.`});return}if(Y===""){M({state:"none",why:"Choose a branch of this World to set beside it."});return}let y=!1;if(Y!=="before"){M({state:"opening"});let b=R.state==="ok"?R.data.branches.find((x)=>x.name===Y):void 0,D=setTimeout(()=>void V(Y,b?.sites??null,()=>y).then((x)=>{if(!y)M("url"in x?{state:"ok",url:x.url}:{state:"none",why:x.why})}),300);return()=>{y=!0,clearTimeout(D)}}if(!Z.since){M({state:"none",why:"Nothing here has changed since the World was last cut."});return}M({state:"opening"});let C=new Date(Date.parse(Z.since)-1).toISOString(),j=null,u=setTimeout(()=>void(async()=>{let b=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:C},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!b?.ok){M({state:"none",why:`The World made no copy of itself as it was then${b?`: ${await X5(b)}`:""}.`});return}let D=await b.json();if(j=D.name,T(D.name),A.current.add(D.name),y){z0(U,`/-/${Q}/branches/${D.name}`,{method:"DELETE"}).catch(()=>null);return}let x=await V(D.name,D.sites??null,()=>y);if(!y)M("url"in x?{state:"ok",url:x.url,at:C}:{state:"none",why:x.why})})(),500),h=()=>{if(j)z0(U,`/-/${Q}/branches/${j}`,{method:"DELETE",keepalive:!0}).catch(()=>null);j=null},E=(b)=>{if(!b.persisted)h()};return window.addEventListener("pagehide",E),()=>{y=!0,clearTimeout(u),window.removeEventListener("pagehide",E),h(),T(null)}},[Q,U,Z.vendor,Z.id,Z.since,Y]);let v=OO(Q,Z),f=!Z.at||Y!==""?null:R.state==="ok"&&P.length===0?"This World has no branches to set beside it: make one under Branches.":R.state==="error"?`The World's branches could not be read: ${R.error}`:null;return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${Z.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(s0,{vendor:Z.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:Z.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:Z.changes?`${E0(Z.changes,"change")} not yet cut${Z.since?`, since ${S8(Z.since)}`:""}`:"No changes here not yet cut"},void 0,!1,void 0,this),Z.at?F.jsxDEV("label",{className:"compare-base",children:["Compare with"," ",F.jsxDEV("select",{value:Y,onChange:(y)=>W(y.target.value),children:[Y===""?F.jsxDEV("option",{value:"",children:"Choose a branch…"},void 0,!1,void 0,this):null,Z.since||Y==="before"?F.jsxDEV("option",{value:"before",children:"Before these changes"},void 0,!1,void 0,this):null,Y&&Y!=="before"&&!P.some((y)=>y.name===Y)?F.jsxDEV("option",{value:Y,children:Y.split("/")[1]},void 0,!1,void 0,this):null,P.map((y)=>F.jsxDEV("option",{value:y.name,children:[y.name.split("/")[1],y.at?.label?` (${y.at.label})`:y.at?.instant?` (as of ${S8(y.at.instant)})`:y.at?.live?" (live)":""]},y.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("button",{type:"button",className:"ghost",onClick:K,"aria-label":"Close the comparison",children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"compare-sides",children:[F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:Y==="before"?`Before${L.state==="ok"&&L.at?` · as of ${S8(L.at)}`:""}`:Y?Y.split("/")[1]:"A branch"},void 0,!1,void 0,this),f?F.jsxDEV("p",{className:"mode compare-note",children:f},void 0,!1,void 0,this):L.state==="ok"?F.jsxDEV(eR,{url:L.url,title:`${Z.title} before`},void 0,!1,void 0,this):L.state==="opening"?F.jsxDEV("p",{className:"mode compare-note",role:"status",children:"Opening the World as it was…"},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:L.why},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:"Now"},void 0,!1,void 0,this),v?F.jsxDEV(eR,{url:v,title:`${Z.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:[d1(Z.vendor),"'s twin draws no page for this ",Z.kind," yet."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",N.error]},void 0,!0,void 0,this):null,Y!=="before"&&Y&&N.state==="ok"&&N.data.acts.length?F.jsxDEV("p",{className:"mode compare-acts-head",children:"This World's own changes here, not yet cut:"},void 0,!1,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(N.state==="ok"?N.data.acts:[]).map((y)=>{let C=y.entries[0],j=d5({...C,service:Z.vendor,id:"",occurredAt:y.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:S8(y.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:j.what},void 0,!1,void 0,this),j.label?` · ${j.label}`:"",y.writes>1?F.jsxDEV("span",{className:"mode",children:[" and ",E0(y.writes-1,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:[y.entries.map((u,h)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:u.operation??u.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[u.subject.type," ",b3(u)]},void 0,!0,void 0,this)]},h,!0,void 0,this)),y.writes>y.entries.length?F.jsxDEV("li",{className:"mode",children:["and ",E0(y.writes-y.entries.length,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${y.at}:${C.subject.type}:${C.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),N.state==="ok"&&N.data.total>N.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",E0(N.data.total-N.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,F.jsxDEV("a",{className:"compare-all",href:`${t1}/${Q}/~/changes`,onClick:(y)=>{y.preventDefault(),M0([...Q.split("/"),"~","changes"])},children:"Every change in the World →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Sy={screen:Ny,section:Cy};function vy(Q){return F.jsxDEV(eK,{children:F.jsxDEV(jy,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function jy({name:Q,token:U,session:Z,retry:K,snapshot:H,back:Y,canWrite:W}){let L=X1.useRef(null),M=X1.useRef(0),O=X1.useRef(Promise.resolve()),T=X1.useRef(0),[,A]=X1.useState(0),[R,P]=X1.useState({state:"loading"}),[N,V]=X1.useState(null),[v,f]=X1.useState(0),y=X1.useRef(0),C=X1.useRef(0),j=X1.useCallback(async()=>{let G1=T.current,I=++y.current,l=await z0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),F1=l?.ok?await l.json().catch(()=>null):null;if(I<C.current)return;if(C.current=I,!F1?.frames||!F1.boards||!F1.version){let I1=l?`the World answered ${l.status}`:"the World did not answer";P((R1)=>R1.state==="ok"?R1:{state:"error",status:l?.status??0,error:I1}),V(I1);return}if(V(null),f((I1)=>I1+1),G1===T.current&&M.current===0)L.current={boards:F1.boards,version:F1.version};P({state:"ok",data:F1})},[U,Q]);X1.useEffect(()=>{j();let G1=setInterval(()=>{if(!document.hidden)j()},1e4);return()=>clearInterval(G1)},[j]);let u=R.state==="ok"?R.data.frames:[],h=L.current?.boards??[{id:"everything",name:"Everything"}],[E,b]=X1.useState("everything"),D=h.find((G1)=>G1.id===E)??h[0],x=W&&!H,$1=X1.useCallback((G1)=>{if(!L.current)return i0("The board is being read again: make that change once it shows","error"),Promise.resolve();L.current={...L.current,boards:G1(L.current.boards)},M.current+=1,T.current+=1,A((l)=>l+1);let I=O.current.then(async()=>{let l=L.current;if(!l)return;try{let F1=await z0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:l.boards,version:l.version}),signal:AbortSignal.timeout(15000)}),I1=await F1.json().catch(()=>null);if(F1.ok&&I1?.boards&&I1.version)L.current={boards:M.current>1&&L.current?L.current.boards:I1.boards,version:I1.version};else if(F1.status===409&&I1?.boards&&I1.version)L.current={boards:I1.boards,version:I1.version},i0("Someone else changed the board first: it is shown as they left it","error");else throw Error(I1?.error??`the World answered ${F1.status}`)}catch(F1){i0(`The board was not kept: ${F1 instanceof Error?F1.message:String(F1)}`,"error"),L.current=null;let I1=await z0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),R1=I1?.ok?await I1.json().catch(()=>null):null;if(R1?.boards&&R1.version)L.current={boards:R1.boards,version:R1.version}}}).finally(()=>{if(M.current-=1,T.current+=1,A((l)=>l+1),M.current===0&&!L.current)j()});return O.current=I,I},[U,Q,j]),Q1=(G1,I)=>{$1((l)=>l.map((F1)=>F1.id===G1?I(F1):F1))},J1=Py(D,u),m=u.filter((G1)=>G1.changes&&!J1.includes(G1)).reduce((G1,I)=>G1+I.changes,0),[p,c]=X1.useState(null),[a,i]=X1.useState(null),[o,k]=X1.useState(null),g=mJ(),q1=h.filter((G1)=>G1.include),t=(G1,I)=>Q1(G1,(l)=>({...l,include:[...l.include??[],I]})),W1={label:D.include?"Take it off this board":"Hide it",act:(G1)=>{i(null),Q1(D.id,(I)=>I.include?{...I,include:I.include.filter((l)=>l!==G1)}:{...I,hidden:[...I.hidden??[],G1]})}},T1=(G1)=>({x:G1.position.x,y:G1.position.y,w:G1.width??G1.measured?.width??H4,h:G1.height??G1.measured?.height??t4}),O1=(G1,I)=>{let l=T1(G1),F1=l.x+l.w/2,I1=l.y+l.h/2;return I.filter((R1)=>R1.type==="section").map((R1,N1)=>({s:R1,i:N1})).filter(({s:R1})=>{let N1=T1(R1);return F1>=N1.x&&F1<=N1.x+N1.w&&I1>=N1.y&&I1<=N1.y+N1.h}).sort((R1,N1)=>T1(R1.s).w*T1(R1.s).h-T1(N1.s).w*T1(N1.s).h||N1.i-R1.i)[0]?.s},L1=X1.useCallback(()=>{let G1=new Map;for(let C1 of J1){let V1=D.placed?.[e0(C1)];if(V1)G1.set(e0(C1),V1)}let I=Math.max(-XU,...[...G1.values()].map((C1)=>C1.y+t4)),l=[...new Set(J1.map(d8))];for(let C1 of l){let V1=J1.filter((w0)=>d8(w0)===C1),j1=V1.filter((w0)=>G1.has(e0(w0))).map((w0)=>G1.get(e0(w0))),p1=j1.length?Math.max(...j1.map((w0)=>w0.x))+H4+XU:0,S0=j1.length?Math.min(...j1.map((w0)=>w0.y)):I+XU+K4*2+wy;for(let w0 of V1)if(!G1.has(e0(w0)))G1.set(e0(w0),{x:p1,y:S0}),p1+=H4+XU;I=Math.max(I,S0+t4)}let F1=D.sections??{},I1=(C1,V1,j1,p1,S0)=>({id:`sec:${C1}`,type:"section",position:{x:V1.x,y:V1.y},width:V1.w,height:V1.h,zIndex:0,draggable:x,data:{key:C1,name:j1,vendor:p1,named:S0}}),R1=[];for(let C1 of l){let V1=J1.find((T0)=>d8(T0)===C1),j1=s8(V1).find((T0)=>F1[T0])??C1,p1=F1[j1];if(p1?.gone)continue;let S0=J1.filter((T0)=>d8(T0)===C1).map((T0)=>G1.get(e0(T0))),w0={x:Math.min(...S0.map((T0)=>T0.x))-K4,y:Math.min(...S0.map((T0)=>T0.y))-K4,w:0,h:0};w0.w=Math.max(...S0.map((T0)=>T0.x))+H4+K4-w0.x,w0.h=Math.max(...S0.map((T0)=>T0.y))+t4+K4-w0.y;let n4=J1.filter((T0)=>d8(T0)===C1&&!D.placed?.[e0(T0)]).map((T0)=>G1.get(e0(T0))),v5=p1?{...p1}:w0;if(p1)for(let T0 of n4)v5.w=Math.max(v5.w,T0.x+H4+K4-v5.x),v5.h=Math.max(v5.h,T0.y+t4+K4-v5.y);R1.push(I1(j1,v5,p1?.name??`${d1(V1.vendor)} · ${V1.section.title}`,V1.vendor,Boolean(p1?.name)))}for(let[C1,V1]of Object.entries(F1))if(C1.startsWith("user:")&&!V1.gone)R1.push(I1(C1,V1,V1.name??"Section",null,!0));let N1=J1.map((C1)=>({id:e0(C1),type:"screen",zIndex:1,width:H4,height:t4,dragHandle:".frame-bar",draggable:x,position:G1.get(e0(C1)),data:{world:Q,frame:C1,url:OO(Q,C1)}}));return[...R1,...N1]},[JSON.stringify(J1),JSON.stringify(D),Q,x]),[U1,P1,v1]=hR([]),A1=X1.useRef("");X1.useEffect(()=>{let G1=L1();if(P1(G1),G1.length&&A1.current!==D.id)A1.current=D.id,requestAnimationFrame(()=>{g.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[L1,P1]);let k1=(G1,I=[],l={})=>{let F1=Object.fromEntries(I.map((R1)=>{let N1=g.getNode(`sec:${R1}`);if(!N1)return[R1,void 0];let C1=T1(N1),V1=N1.data,j1=l[R1]??(V1.named?V1.name:void 0);return[R1,{x:Math.round(C1.x),y:Math.round(C1.y),w:Math.round(C1.w),h:Math.round(C1.h),...j1?{name:j1.slice(0,80)}:{}}]}).filter(([,R1])=>R1!==void 0)),I1=Object.fromEntries(Object.entries(G1).map(([R1,N1])=>[R1,{x:Math.round(N1.x),y:Math.round(N1.y)}]));Q1(D.id,(R1)=>({...R1,placed:{...R1.placed??{},...I1},sections:{...R1.sections??{},...F1}}))},D1=X1.useRef(null),g1=(G1,I)=>{if(I.type!=="section"){D1.current=null;return}let l=g.getNodes(),F1=T1(I),I1=(R1)=>{let N1=T1(R1);if(R1.type==="screen"){let C1=N1.x+N1.w/2,V1=N1.y+N1.h/2;return C1>=F1.x&&C1<=F1.x+F1.w&&V1>=F1.y&&V1<=F1.y+F1.h}return R1.id!==I.id&&N1.x>=F1.x&&N1.y>=F1.y&&N1.x+N1.w<=F1.x+F1.w&&N1.y+N1.h<=F1.y+F1.h};D1.current={id:I.id,from:{...I.position},members:l.filter(I1).map((R1)=>({id:R1.id,x:R1.position.x,y:R1.position.y}))}},h1=(G1,I)=>{let l=D1.current;if(!l||l.id!==I.id)return;let F1=I.position.x-l.from.x,I1=I.position.y-l.from.y,R1=new Map(l.members.map((N1)=>[N1.id,N1]));P1((N1)=>N1.map((C1)=>{let V1=R1.get(C1.id);return V1?{...C1,position:{x:V1.x+F1,y:V1.y+I1}}:C1}))},M1=(G1,I)=>{let l=D1.current;D1.current=null;let F1=I.position.x-(l?.from.x??I.position.x),I1=I.position.y-(l?.from.y??I.position.y),R1=I.type==="screen"?[{id:I.id,x:I.position.x,y:I.position.y}]:(l?.members??[]).map((N1)=>({...N1,x:N1.x+F1,y:N1.y+I1}));requestAnimationFrame(()=>{let N1=g.getNodes(),C1=new Map(R1.filter((p1)=>!p1.id.startsWith("sec:")).map((p1)=>[p1.id,{x:p1.x,y:p1.y}])),V1=new Set([...I.type==="section"?[I.data.key]:[],...R1.filter((p1)=>p1.id.startsWith("sec:")).map((p1)=>p1.id.slice(4))]),j1=new Set(N1.filter((p1)=>C1.has(p1.id)).flatMap((p1)=>s8(p1.data.frame)));for(let p1 of N1){if(p1.type==="screen"&&s8(p1.data.frame).some((S0)=>j1.has(S0))&&!C1.has(p1.id))C1.set(p1.id,{x:p1.position.x,y:p1.position.y});if(p1.type==="section"&&j1.has(p1.data.key))V1.add(p1.data.key)}k1(Object.fromEntries(C1),[...V1])})},r1=(G1)=>Object.fromEntries(g.getNodes().filter((I)=>I.type==="screen"&&s8(I.data.frame).includes(G1)).map((I)=>[I.id,{x:I.position.x,y:I.position.y}])),u1=(G1)=>{let l=g.getNode(`sec:${G1}`)?.data?.name??"Section",F1=window.prompt("Name this section",l)?.trim();if(!F1)return;P1((I1)=>I1.map((R1)=>R1.id===`sec:${G1}`?{...R1,data:{...R1.data,name:F1.slice(0,80),named:!0}}:R1)),requestAnimationFrame(()=>k1(r1(G1),[G1],{[G1]:F1}))},D0=(G1)=>{i(null);let I=g.getNode(`sec:${G1}`);Q1(D.id,(l)=>{let F1=Object.fromEntries(Object.entries(l.sections??{}).filter(([I1])=>I1!==G1));return{...l,sections:G1.startsWith("user:")?F1:{...F1,[G1]:{...I?{x:Math.round(I.position.x),y:Math.round(I.position.y),w:Math.round(T1(I).w),h:Math.round(T1(I).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},o1=()=>{let G1=a?g.getNode(a):void 0,I=g.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),l=G1?.type==="screen"?{x:G1.position.x-K4,y:G1.position.y-K4,w:H4+K4*2,h:t4+K4*2}:{x:I.x-900,y:I.y-600,w:1800,h:1200},F1=`user:${Date.now().toString(36)}`,I1=Object.keys(D.sections??{}).filter((R1)=>R1.startsWith("user:")).length+1;i(`sec:${F1}`),Q1(D.id,(R1)=>({...R1,sections:{...R1.sections??{},[F1]:{x:Math.round(l.x),y:Math.round(l.y),w:Math.round(l.w),h:Math.round(l.h),name:`Section ${I1}`}}}))},X2=U1.map((G1)=>G1.type==="section"?{...G1,data:{...G1.data,picked:a===G1.id,editable:x,pick:(I)=>i(`sec:${I}`),rename:u1,remove:D0,resized:()=>requestAnimationFrame(()=>{let I=G1.data.key;k1(r1(I),[I])})}}:{...G1,data:{...G1.data,active:p===G1.id,picked:a===G1.id,boards:x?q1:[],addTo:t,remove:!x||D.include&&!D.include.includes(G1.id)?null:W1,compare:(I)=>{i(I),k(I)}}});X1.useEffect(()=>{let G1=(I)=>{if(I.target?.closest("input, textarea, select, [contenteditable]"))return;if(I.key==="Escape"){if(p)c(null);else i(null);return}if(!x||p)return;if((I.key==="Delete"||I.key==="Backspace")&&a){if(I.preventDefault(),a.startsWith("sec:"))D0(a.slice(4));else if(!D.include||D.include.includes(a))W1.act(a);else i0("It is on this board with its whole group: take the group off in the list to remove it","error");return}if(I.key==="S"&&I.shiftKey&&!I.metaKey&&!I.ctrlKey)I.preventDefault(),o1()};return document.addEventListener("keydown",G1),()=>document.removeEventListener("keydown",G1)});let K2=(G1)=>{i(G1);let I=g.getNode(G1);if(!I)return;let l=T1(I);g.fitBounds({x:l.x,y:l.y,width:l.w,height:l.h},{padding:0.15,duration:400})},N2=()=>{let G1=`board-${Date.now().toString(36)}`;b(G1),$1((I)=>[...I,{id:G1,name:`Board ${I.length}`,include:[]}])},A2=()=>{let G1=window.prompt("Name this board",D.name)?.trim();if(G1)Q1(D.id,(I)=>({...I,name:G1.slice(0,80)}))},C2=()=>{let G1=D.id;b("everything"),$1((I)=>I.filter((l)=>l.id!==G1))},M2=[...new Map(u.map((G1)=>[d8(G1),G1])).values()],H2=D.include?[...M2.filter((G1)=>!s8(G1).some((I)=>D.include.includes(I))).map((G1)=>({key:d8(G1),label:`${d1(G1.vendor)} · ${G1.section.title} (all)`})),...u.filter((G1)=>!J1.includes(G1)).map((G1)=>({key:e0(G1),label:G1.title}))]:[],_2=D.include?[]:u.filter((G1)=>!J1.includes(G1)),z4=U1.filter((G1)=>G1.type==="section"),m2=U1.filter((G1)=>G1.type==="screen"),f5=new Map(m2.map((G1)=>[G1.id,O1(G1,U1)?.id??null])),S5=(G1)=>{let I=G1.data.frame;return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:a===G1.id?"on":void 0,onClick:()=>K2(G1.id),onDoubleClick:()=>c(G1.id),children:[F.jsxDEV(s0,{vendor:I.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:I.title},void 0,!1,void 0,this),I.changes?F.jsxDEV("span",{className:"layer-changed",title:`${E0(I.changes,"change")}, not in a changeset: its mark on the board compares before and now`,children:[F.jsxDEV($0,{name:"square-dot",size:14},void 0,!1,void 0,this),I.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},G1.id,!1,void 0,this)},r5=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,o4=Z.state==="ok"&&R.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",children:F.jsxDEV(ER,{nodes:o4?X2:[],onNodesChange:v1,nodeTypes:Sy,onNodeDragStart:g1,onNodeDrag:h1,onNodeDragStop:M1,onNodeClick:(G1,I)=>{if(I.id!==p)i(I.id)},onNodeDoubleClick:(G1,I)=>{if(I.type==="screen")i(I.id),c(I.id)},onPaneClick:()=>{c(null),i(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:r5?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(mR,{variant:a4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(s4,{position:"top-left",className:"float layers",children:[F.jsxDEV("div",{className:"float-head",children:[F.jsxDEV("button",{type:"button",className:"back",onClick:Y,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"float-title",children:[F.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],H?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"board-tabs",role:"tablist","aria-label":"Boards",children:[h.map((G1)=>F.jsxDEV("button",{type:"button",role:"tab","aria-selected":G1.id===D.id,className:G1.id===D.id?"on":void 0,onClick:()=>{i(null),c(null),b(G1.id)},onDoubleClick:x&&G1.id===D.id&&G1.include?A2:void 0,children:G1.name},G1.id,!1,void 0,this)),x?F.jsxDEV("button",{type:"button",className:"ghost",onClick:N2,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),D.include&&x?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:A2,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:C2,children:"Delete board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("ul",{className:"layer-list","aria-label":"Layers",children:[z4.map((G1)=>{let I=G1.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:a===G1.id?"layer-section on":"layer-section",onClick:()=>K2(G1.id),onDoubleClick:()=>{if(x)u1(I.key)},children:[I.vendor?F.jsxDEV(s0,{vendor:I.vendor},void 0,!1,void 0,this):F.jsxDEV($0,{name:"layout-grid",size:14},void 0,!1,void 0,this),F.jsxDEV("span",{children:I.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:m2.filter((l)=>f5.get(l.id)===G1.id).map(S5)},void 0,!1,void 0,this)]},G1.id,!0,void 0,this)}),m2.filter((G1)=>!f5.get(G1.id)).map(S5)]},void 0,!0,void 0,this),D.include&&!J1.length?F.jsxDEV("p",{className:"mode pad-s",children:"An empty board: add frames from Everything, or below."},void 0,!1,void 0,this):null,H2.length&&x?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:(G1)=>{let I=G1.target.value;if(I)Q1(D.id,(l)=>({...l,include:[...l.include??[],I]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),H2.map((G1)=>F.jsxDEV("option",{value:G1.key,children:G1.label},G1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,_2.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",_2.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:_2.map((G1)=>F.jsxDEV("li",{children:x?F.jsxDEV("button",{type:"button",onClick:()=>Q1(D.id,(I)=>({...I,hidden:(I.hidden??[]).filter((l)=>l!==e0(G1))})),children:[F.jsxDEV("span",{children:G1.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"pad-s",children:G1.title},void 0,!1,void 0,this)},e0(G1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>b("everything"),children:[F.jsxDEV($0,{name:"square-dot",size:14},void 0,!1,void 0,this),E0(m,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(b2,{load:R,what:"the board"},void 0,!1,void 0,this),N&&R.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",N,"): it shows what was last read."]},void 0,!0,void 0,this):null,Z.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Z.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",Z.error," ",F.jsxDEV("button",{type:"button",onClick:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),p?F.jsxDEV(s4,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",J1.find((G1)=>e0(G1)===p)?.title??p]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>c(null),children:["Done ",F.jsxDEV("kbd",{children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(s4,{position:"top-center",className:"float hint mode",children:"Scroll to pan · pinch or ⌘ scroll to zoom · double-click a frame to use it"},void 0,!1,void 0,this),x?F.jsxDEV(s4,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:o1,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV($0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Section"},void 0,!1,void 0,this),F.jsxDEV("kbd",{children:"⇧S"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,o&&J1.some((G1)=>e0(G1)===o)?F.jsxDEV(s4,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(fy,{name:Q,token:U,frame:J1.find((G1)=>e0(G1)===o),onClose:()=>k(null),reads:v},o,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(pR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(lR,{pannable:!0,zoomable:!0,nodeBorderRadius:8,position:"bottom-right"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var IO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),yy=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function WU(Q){let U=Q.actions.filter(yy).length,Z=Q.actions.length-U,K=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((M)=>M.status==="deployed"),...K.filter((M)=>M.status==="confirmed")].map((M)=>M.actionId)).size,W=new Set([...H.filter((M)=>M.status==="refused"||M.status==="failed"),...K.filter((M)=>M.status==="failed")].map((M)=>M.actionId)).size,L={performed:Y,failed:W,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...L};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...L};if(W>0)return{label:`${W} refused or failed`,tone:"bad",...L};if(K.some((M)=>M.status==="replayed")&&K.every((M)=>M.status==="replayed"||M.status==="skipped"))return{label:"Pushed",tone:"good",...L};return{label:"Not sent",tone:"plain",...L}}var QH=(Q)=>Q.message??Q.narration?.split(`
250
- `)[0]?.replace(/ setting .*$/,"")??Q.name;function wO(Q,U=1){let Z=Q.currentHash??Q.contentHash,K=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===Z).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===Z?Q.verification:null;if(H&&!H.passed)return{label:"Checks failed",tone:"bad"};if(K>0&&K<U)return{label:`Approved by ${K} of ${U}`,tone:"plain"};if(K>0)return{label:`Approved by ${K}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function _O({name:Q,token:U,signsAs:Z,c:K,canWrite:H,rooted:Y,refused:W,onChanged:L,part:M,required:O}){let T=M==="head",A=M==="review",[R,P]=X1.useState(null),[N,V]=X1.useState(!1),[v,f]=X1.useState(""),[y,C]=X1.useState(""),[j,u]=X1.useState(null),h=P0(U,`/-/${Q}/origin`),E=WU(K),b=wO(K,O),D=IO(K),x=[...new Set(D.map((t)=>t.twin))],$1=x.some((t)=>Y.includes(t)),Q1=(t)=>t===(K.currentHash??K.contentHash),J1=K.applied?.receipts??[],m=(K.deployed??[]).filter((t)=>t.status!=="landed"),p=J1.filter((t)=>t.status==="confirmed").length,c=m.filter((t)=>t.status==="deployed"),a=async(t,W1,T1,O1)=>{P(t),u(null);try{let L1=await z0(U,W1,{method:"POST",...T1===void 0?{}:{body:JSON.stringify(T1)}});if(!L1.ok)return W(L1),u({what:t,...F2(await N3(L1))}),!1;if(O1)i0(O1);return L(),!0}catch(L1){return u({what:t,text:`the World did not answer (${L1 instanceof Error?L1.message:String(L1)})`,acts:[]}),!1}finally{P(null)}},i=()=>{a("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(t)=>{if(t.preventDefault(),await a("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...v.trim()?{note:v.trim()}:{},...Z===null&&y.trim()?{as:y.trim()}:{}},"Approved"))V(!1),f("")},k=async()=>{let t=x.filter((W1)=>Y.includes(W1));if(!await c4({title:`Deploy ${K.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",K.actions.length," change",K.actions.length===1?"":"s"," against the real account",t.length===1?"":"s"," behind ",v8(t.map(d1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;P("Deploy"),u(null);try{let W1=await z0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!W1.ok){W(W1),u({what:"Deploy",...F2(await N3(W1))});return}let T1=await z0(U,`/-/${Q}/changesets/${K.name}`),O1=T1.ok?await T1.json():null;if(!O1){i0("Deploy: sent; reading its receipts failed","info"),L();return}let L1=WU(O1);i0(`Deploy: ${L1.performed} of ${L1.total} change${L1.total===1?"":"s"} performed at the vendor${L1.failed?`; ${L1.failed} refused or failed`:""}`,L1.failed?"error":L1.performed?"ok":"info"),L()}catch(W1){u({what:"Deploy",text:`the World did not answer (${W1 instanceof Error?W1.message:String(W1)})`,acts:[]})}finally{P(null)}},g=!H?"This session reads the World; it changes nothing":E.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,q1=h.state==="ok"&&h.data.origin?KH(h.data.origin):null;return F.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[T?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"changeset-title",children:[K.message??K.name," ",F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${b.tone}`,children:b.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:K.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(I0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",v8(x.map(d1))||"no vendor"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[F.jsxDEV("button",{type:"button",onClick:i,disabled:Boolean(g)||R!==null,title:g??"Replay it in a throwaway World and run the World's checks",children:R==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:Boolean(g)||R!==null,title:g??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),$1?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void k(),disabled:Boolean(g)||R!==null,title:g??"Perform it against the real accounts behind this World",children:R==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[g,"."]},void 0,!0,void 0,this):null,j?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:j.what},void 0,!1,void 0,this),": ",j.text]},void 0,!0,void 0,this),j.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:i,disabled:R!==null,children:"Verify"},void 0,!1,void 0,this):null,j.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:R!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(UO,{name:Q,acts:j.acts},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null,A?F.jsxDEV(F.Fragment,{children:[K.narration?F.jsxDEV("p",{className:"narration",children:K.narration},void 0,!1,void 0,this):null,F.jsxDEV("h4",{children:"Where it went"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"block where",children:[E.performed>0?F.jsxDEV("p",{className:"pad",children:[E.performed>=E.total?"Deployed":"Partly deployed",": ",E.performed," of ",E.total," change",E.total===1?"":"s",E.own?` (and ${E.own} of the World's own, which stay in it)`:""," performed at ",v8([...new Set([...c.map((t)=>t.service),...J1.filter((t)=>t.status==="confirmed").map((t)=>t.service)].map(d1))]),c.length?` (${c.length} from here`:" (",c.length&&p?", ":"",p?`${p} by the remote`:"",")."]},void 0,!0,void 0,this):E.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",q1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:q1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(I0,{iso:K.applied.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,": every change was replayed there. No vendor has performed any of it."]},void 0,!0,void 0,this):E.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",K.applied?.outcome==="refused"?" A push was refused (below); Push sends it again.":F.jsxDEV(F.Fragment,{children:[" Push sends it to the remote World",$1?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,E.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[E.failed," change",E.failed===1?" was":"s were"," refused or failed at the vendor",[...m.filter((t)=>t.reason&&(t.status==="refused"||t.status==="failed")).map((t)=>t.reason),...J1.filter((t)=>t.status==="failed"&&t.error).map((t)=>t.error)].slice(0,3).map((t)=>`: ${F2(t).text}`).join(""),"."]},void 0,!0,void 0,this):null,K.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:K.applied.refusal.map((t,W1)=>F.jsxDEV("li",{className:"mode",children:F2(t).text},W1,!1,void 0,this))},void 0,!1,void 0,this):null,m.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the vendor"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:m.map((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="refused"||t.status==="failed"?"badge cs-bad":t.status==="deployed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",d1(t.service)," ",t.status==="deployed"?t.url?F.jsxDEV("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:t.externalId??t.url},void 0,!1,void 0,this):t.externalId?F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this):null:null,t.reason?F.jsxDEV("span",{className:"mode",children:[" · ",F2(t.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(I0,{iso:t.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${t.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J1.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the remote"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:J1.map((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="failed"?"badge cs-bad":t.status==="confirmed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",d1(t.service)," ",F.jsxDEV("span",{className:"mode",children:t.status==="replayed"?"replayed at the remote World":t.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),t.status==="confirmed"&&t.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t.error?F.jsxDEV("span",{className:"mode",children:[" · ",F2(t.error).text]},void 0,!0,void 0,this):null]},`r:${t.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!$1&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:["No vendor it changes is connected to its real service here, so it does not deploy from this World. ",F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/services`,onClick:(t)=>{t.preventDefault(),M0([...Q.split("/"),"~","settings","services"])},children:"Connect a vendor in Settings › Real services"},void 0,!1,void 0,this)," to deploy."]},void 0,!0,void 0,this):null,F.jsxDEV("h4",{children:"Checks"},void 0,!1,void 0,this),!K.verification?F.jsxDEV("p",{className:"mode",children:"Not verified yet. Verify replays it in a throwaway World and runs this World's checks over the result."},void 0,!1,void 0,this):F.jsxDEV("div",{className:Q1(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(I0,{iso:K.verification.at},void 0,!1,void 0,this),Q1(K.verification.contentHash)?null:F.jsxDEV("span",{className:"mode",children:" · on an earlier version of it: verify again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.verification.results.length?F.jsxDEV("ul",{className:"checks",children:K.verification.results.map((t)=>F.jsxDEV("li",{children:[t.passed?"✓":"✗"," ",F.jsxDEV("code",{children:t.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:d1(t.service)},void 0,!1,void 0,this)]},t.id,!0,void 0,this))},void 0,!1,void 0,this):null,K.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:K.verification.refusals.map((t,W1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:t.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[d1(t.service),": ",t.reason]},void 0,!0,void 0,this)]},W1,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("h4",{children:"Approvals"},void 0,!1,void 0,this),K.approvals.length===0?F.jsxDEV("p",{className:"mode",children:"No one has approved it."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"approvals",children:K.approvals.map((t,W1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:t.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:t.at},void 0,!1,void 0,this),Q1(t.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),t.note?F.jsxDEV("div",{className:"mode",children:["“",t.note,"”"]},void 0,!0,void 0,this):null]},W1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(N5,{open:N,onClose:()=>{if(!R)V(!1)},title:`Approve ${K.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(!1),disabled:R!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:R!==null,children:R==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(t)=>void o(t),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",Z?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.jsxDEV("b",{children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,". A later change to it shows your approval as for an earlier version."]},void 0,!0,void 0,this),Z===null?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:y,onChange:(t)=>C(t.target.value),maxLength:80,required:!0,placeholder:"your name or email",autoComplete:"off"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"This World was opened with its token, which names no person: the approval records the name you give."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Note ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("textarea",{name:"approveNote",value:v,onChange:(t)=>f(t.target.value),rows:3,maxLength:500},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var PO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function Vy({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((K)=>K.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((K)=>{let H=Q.filter((W)=>W.twin===K).map((W)=>W.entry),Y=[...new Set(H.map((W)=>`${W.subject.type}:${W.subject.id}`))];return F.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`${U}-${K}`,children:[F.jsxDEV("h3",{id:`${U}-${K}`,className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:K},void 0,!1,void 0,this),d1(K)," ",F.jsxDEV("span",{className:"mode",children:["· ",E0(Y.length,"record"),", ",E0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((W)=>{let L=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===W),M=L[L.length-1],O=d5(M),T={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:M.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",O.label?F.jsxDEV("span",{className:"label",children:["“",O.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:b3(M)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L.map((A)=>{let R=A.fields??{},P=Object.entries(R).filter(([V,v])=>!(V in T)||!PO(T[V],v)),N=T;return T={...T,...R},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:d5(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(I0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",pJ(A)]},void 0,!0,void 0,this),P.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${d5(A).what} set`,children:P.map(([V,v])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:V in N?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(E3,{v:N[V]},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"arrow","aria-label":"becomes",children:"→"},void 0,!1,void 0,this),F.jsxDEV("ins",{children:F.jsxDEV(E3,{v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(E3,{v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},V,!0,void 0,this))},void 0,!1,void 0,this)]},A.id,!0,void 0,this)})]},W,!0,void 0,this)})},void 0,!1,void 0,this)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function ky({name:Q,token:U,changes:Z,canWrite:K,refused:H,onCut:Y,pinned:W,generated:L,inputRef:M,author:O}){let[T,A]=X1.useState(""),[R,P]=X1.useState(!1),[N,V]=X1.useState([]),v=(y,C,j)=>{V((u)=>[{ok:y,text:C,at:new Date().toISOString(),n:++lJ,...j?.length?{acts:j}:{}},...u].slice(0,4))},f=async(y)=>{y.preventDefault(),P(!0);try{let C=await z0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(T.trim()?{message:T.trim()}:{})});if(!C.ok){H(C);let u=F2(await N3(C));v(!1,`Cut a changeset: ${u.text}`,u.acts);return}let j=await C.json();v(!0,`Cut ${j.name??"a changeset"}: ${E0(j.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(C){v(!1,`Cut a changeset: the World did not answer (${C instanceof Error?C.message:String(C)})`)}finally{P(!1)}};if(W){let y=!K?"This session reads the World; it changes nothing":Z===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(x6,{log:N,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(C)=>void f(C),"aria-label":"Cut a changeset",children:[O?F.jsxDEV("a",{className:"ws-author",href:O.account,title:`${O.who}: your account`,onClick:(C)=>{C.preventDefault(),M0(O.account.slice(t1.length+1).split("/"))},children:O.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:M,name:"changesetMessage","aria-label":"Summary",value:T,onChange:(C)=>A(C.target.value),placeholder:Z===0?"Nothing to cut":L?"Summary (optional)":"Summary (required)",required:!L,maxLength:200,disabled:Boolean(y),title:y??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(y)||R,title:y??void 0,children:R?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",E0(Z,"change"),O?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:O.branch},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!K||Z===0)return F.jsxDEV(x6,{log:N,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(y)=>void f(y),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",Z===1?"this change":`these ${Z} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:T,onChange:(y)=>A(y.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:Z===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:R||Z===0,children:R?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(x6,{log:N,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Dy({name:Q,token:U}){let[Z,K]=X1.useState(0),H=P0(U,`/-/${Q}/keys`,Z),[Y,W]=X1.useState(!1),[L,M]=X1.useState(""),[O,T]=X1.useState("write"),[A,R]=X1.useState(!1),[P,N]=X1.useState(null),[V,v]=X1.useState(null),[f,y]=X1.useState(null),C=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,E=await z0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),b=E?await E.json().catch(()=>({})):{error:`${L0} did not answer`};if(!E?.ok||!b.key){i0(b.error?F2(b.error).text:"refused","error");return}y(`${window.location.origin}${t1}/${Q}#${new URLSearchParams({token:b.key}).toString()}`),K((D)=>D+1)},j=async(h)=>{h.preventDefault(),R(!0),N(null);let E=await z0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:L.trim(),scope:O})}).catch(()=>null);R(!1);let b=E?await E.json().catch(()=>({})):{error:`${L0} did not answer`};if(!E?.ok||!b.key){N(b.error?F2(b.error).text:"refused");return}W(!1),v({key:b.key,name:L.trim()}),M(""),K((D)=>D+1)},u=async(h)=>{if(!await c4({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let E=await z0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(E.ok)i0(`Revoked ${h.name}`);else i0(await X5(E),"error");K((b)=>b+1)};return F.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[F.jsxDEV("div",{className:"keys-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"What an app, a script or a CI job holds to reach this World: each named for what holds it and revoked alone. People open the World as themselves; keys are for software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x2()?F.jsxDEV("a",{className:"button primary",href:`${x2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):F.jsxDEV("div",{className:"head-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>void C(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{N(null),W(!0)},children:"Make a key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:H,what:"the keys",retry:()=>K((h)=>h+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:H.data.keys.map((h)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:h.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:S8(h.createdAt),children:sF(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?sF(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(cA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void u(h)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},h.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(N5,{open:Y,onClose:()=>{if(!A)W(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>W(!1),disabled:A,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"make-key",disabled:A||!L.trim(),children:A?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"make-key",onSubmit:j,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:L,onChange:(h)=>M(h.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:["Access ",F.jsxDEV("select",{value:O,onChange:(h)=>T(h.target.value==="read"?"read":"write"),children:[F.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"read",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P?F.jsxDEV("p",{role:"alert",children:P},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(N5,{open:Boolean(V),onClose:()=>v(null),title:`${V?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>v(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Copy it now: it is shown this once. Put it where the app reads its secrets."},void 0,!1,void 0,this),V?F.jsxDEV(oF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(N5,{open:Boolean(f),onClose:()=>y(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>y(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Whoever opens it sees this World's pages and changes nothing. Copy it now: it is shown this once. It is listed under Keys, where revoking it closes the link at once."},void 0,!1,void 0,this),f?F.jsxDEV(oF,{label:"Link",value:f,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var lJ=0;function x6({log:Q,name:U}){if(Q.length===0)return null;return F.jsxDEV("ul",{className:"narration-log",role:"status","aria-live":"polite",children:Q.map((Z)=>F.jsxDEV("li",{className:Z.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(I0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(UO,{name:U,acts:Z.acts},void 0,!1,void 0,this):null]},Z.n,!0,void 0,this))},void 0,!1,void 0,this)}function NO(Q,U,Z,K){let[H,Y]=X1.useState(0),W=H*1e5+Math.floor(Z/2),L=P0(U,`/-/${Q}/origin`,W),M=P0(U,`/-/${Q}/diff`,W),O=P0(U,`/-/${Q}/changesets`,W),[T,A]=X1.useState([]),[R,P]=X1.useState(null),N=(u,h,E)=>{if(A((b)=>[{ok:u,text:h,at:new Date().toISOString(),n:++lJ,...E?.length?{acts:E}:{}},...b].slice(0,8)),!u)i0(h,"error")},V=async(u,h,E)=>{P(u);try{let b=await z0(U,`/-/${Q}/${h}`,E);if(!b.ok){K(b);let D=F2(await N3(b));return N(!1,`${u}: ${D.text}`,D.acts),null}return await b.json()}catch(b){return N(!1,`${u}: the World did not answer (${b instanceof Error?b.message:String(b)})`),null}finally{P(null),Y((b)=>b+1)}},v=L.state==="ok"&&L.data.origin?KH(L.data.origin):null,f=M.state==="ok"?M.data.changes.length:null,y=O.state==="ok"&&v?Hy(O.data.changesets.filter((u)=>!u.pushedBy)).sort((u,h)=>u.createdAt.localeCompare(h.createdAt)):[];return{origin:L,diff:M,sets:O,there:v,changes:f,waiting:y,log:T,busy:R,say:N,send:V,push:async()=>{let u=await V("Push","origin/push",{method:"POST"});if(!u)return;if(u.pushed.length===0){N(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of u.pushed){let E=h.receipts??[],b=E.filter((J1)=>J1.status==="replayed").length,D=E.filter((J1)=>J1.status==="confirmed").length,x=E.filter((J1)=>J1.status==="failed").length,$1=h.outcome==="applied"&&x===0;if(h.outcome==="refused"){N(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((J1)=>F2(J1).text).join("; ")}`:""}.`);continue}let Q1=[`${b} of ${E0(E.length,"change")} replayed there`,...D?[`${D} performed at the vendor by the remote`]:[],...x?[`${x} failed`]:[]];N($1,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${v??"the remote"}: ${Q1.join("; ")}${h.refusal?.length?` (${h.refusal.map((J1)=>F2(J1).text).join("; ")})`:""}.`)}},pull:async()=>{let u=await V("Pull","origin/pull",{method:"POST"});if(!u)return;let h=Object.entries(u.appended).filter(([,b])=>b>0),E=u.rebased.flatMap((b)=>b.conflicts.map((D)=>`${d1(b.twin)} ${D.subject.type}:${D.subject.id} ${D.field}`));N(E.length===0,`Pulled from ${v??"the remote"}: ${h.length?h.map(([b,D])=>`${E0(D,"entry")} at ${d1(b)}`).join(", "):"nothing new"}${E.length?`; conflicts at ${E.join(", ")}`:""}.`)}}}function uy({name:Q,token:U,canWrite:Z,tick:K,refused:H}){let{origin:Y,there:W,changes:L,log:M,busy:O,say:T,send:A,push:R,pull:P}=NO(Q,U,K,H),[N,V]=X1.useState(""),[v,f]=X1.useState(""),[y,C]=X1.useState(!1),j=async(h)=>{h.preventDefault();let E=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:N.trim(),token:v.trim()})});if(E){let b=Object.values(E.appended??{}).reduce((D,x)=>D+x,0);T(!0,`The remote is ${KH(E.origin)}: its history came in (${E0(b,"entry")}).`),f(""),C(!1)}},u=!Z?"This session reads the World; it changes nothing":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"block remote",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{children:"Origin"},void 0,!1,void 0,this),Z?F.jsxDEV("button",{type:"button",onClick:()=>{V(W??""),C(!y)},"aria-expanded":y,children:W?"Change the remote…":"Name a remote…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"pad",children:[Y.state==="ok"?W?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:W},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(I0,{iso:Y.data.origin.fetchedAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("p",{children:"No remote — this World keeps its default data. Name one to push its changesets to a shared World and pull what others pushed there."},void 0,!1,void 0,this):F.jsxDEV(b2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),y?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void j(h),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:N,onChange:(h)=>V(h.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:v,onChange:(h)=>f(h.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:O!==null,children:O==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>C(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(x6,{log:M,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function by({name:Q,token:U,canWrite:Z,refused:K}){let[H,Y]=X1.useState(0),W=P0(U,`/-/${Q}/twins`,H),L=P0(U,`/-/${Q}/links`,H),M=P0(U,`/-/${Q}/requests?hours=24`,H),[O,T]=X1.useState({}),[A,R]=X1.useState(null),[P,N]=X1.useState(""),[V,v]=X1.useState(!1),[f,y]=X1.useState([]),C=(D,x,$1)=>{if(y((Q1)=>[{ok:D,text:x,at:new Date().toISOString(),n:++lJ,...$1?.length?{acts:$1}:{}},...Q1].slice(0,6)),!D)i0(x,"error")},j=L.state==="ok"?Object.keys(L.data.links).sort():[];X1.useEffect(()=>{let D=!0;return Promise.all(j.map(async(x)=>{let $1=await z0(U,`/-/${Q}/twins/${x}/credential`).catch(()=>null),Q1=$1?.ok?await $1.json():null;return[x,Q1?.credential??null]})).then((x)=>{if(D)T(Object.fromEntries(x))}),()=>{D=!1}},[Q,U,j.join(","),H]);let u=async(D)=>{if(D.preventDefault(),!A||!P)return;v(!0);let x=await z0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:P,headers:{"content-type":"text/plain"}}).catch(()=>null);if(v(!1),!x){C(!1,`Seal ${A.vendor}: ${L0} did not answer`);return}if(!x.ok){K(x);let Q1=F2(await N3(x));C(!1,`Seal ${d1(A.vendor)}: ${Q1.text}`,Q1.acts);return}let $1=await x.json().catch(()=>({}));C(!0,`Sealed a credential for ${d1(A.vendor)}${$1.fingerprint?` (${$1.fingerprint})`:""}: it opens for ${$1.boundTo??A.to} only, and is never shown again.`),N(""),R(null),Y((Q1)=>Q1+1)},h=async(D)=>{if(!await c4({title:`Remove the link ${D}?`,body:`Requests to ${D3}/${Q}/${D}/… stop being forwarded to ${L.state==="ok"?L.data.links[D]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let x=await z0(U,`/-/${Q}/links/${D}`,{method:"DELETE"}).catch(()=>null);if(!x?.ok){if(x)K(x);C(!1,`Remove ${D}: ${x?await X5(x):"the World did not answer"}`);return}C(!0,`Removed the link ${D}.`),Y(($1)=>$1+1)},E=(D)=>D?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge rooted",children:"sealed"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[D.fingerprint?F.jsxDEV("code",{children:D.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(I0,{iso:D.placedAt},void 0,!1,void 0,this),D.sealedBy?` · by ${D.sealedBy==="vault"?"the vault":"the host's key"}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this),b=W.state==="ok"?W.data.twins:[];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"lede",children:"A real vendor's credential lives in one place, sealed: beside this World, bound to where it goes. It is never readable back; this page says only that one is sealed, when, by what, and for where."},void 0,!1,void 0,this),F.jsxDEV(x6,{log:f,name:Q},void 0,!1,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"creds-head",children:[F.jsxDEV("div",{className:"block-head",children:F.jsxDEV("h3",{id:"creds-head",children:"Vendors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{load:W,what:"the vendors"},void 0,!1,void 0,this),W.state==="ok"?F.jsxDEV("table",{className:"dense","aria-label":"Credentials by vendor",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Bound to"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:b.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:D.twin},void 0,!1,void 0,this),d1(D.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E(D.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.credential?.boundTo?F.jsxDEV("code",{children:D.credential.boundTo},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.root?.url?F.jsxDEV("code",{children:D.root.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"none: a stand-in"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!D.root?.url,title:D.root?.url?`Seal ${d1(D.twin)}'s real credential for ${D.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{N(""),R({vendor:D.twin,to:D.root.url})},children:D.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},D.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&b.every((D)=>!D.root?.url)?F.jsxDEV("p",{className:"mode pad",children:"No vendor here has a real service behind it, so none holds a credential. Connect one in Settings › Real services; its credential is sealed here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"links-head",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{id:"links-head",children:"Links"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"a vendor with no twin, forwarded with its sealed credential"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:L,what:"the links"},void 0,!1,void 0,this),M.state==="ok"&&(M.data.journalFailures??0)>0?F.jsxDEV("p",{className:"mode pad",role:"alert",children:[M.data.journalFailures," request ",M.data.journalFailures===1?"line was":"lines were"," not kept by this World's server since it started (its links, and the twins it runs in its own process): those requests are missing from what this page counts."]},void 0,!0,void 0,this):null,L.state==="ok"&&j.length===0?F.jsxDEV("p",{className:"mode pad",children:["No links. A link forwards requests for a vendor with no twin here, at ",F.jsxDEV("code",{children:[D3,"/",Q,"/<link>/…"]},void 0,!0,void 0,this),", to that vendor's real API with the credential sealed for it."]},void 0,!0,void 0,this):null,j.length?F.jsxDEV("table",{className:"dense","aria-label":"Links",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Link"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Origin"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:"Requests, 24h"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:j.map((D)=>{let x=L.state==="ok"?L.data.links[D].origin:"",$1=M.state==="ok"?M.data.twins.find((Q1)=>Q1.twin===D):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:D},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:x},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:$1?F.jsxDEV("span",{title:Object.entries($1.byStatus).map(([Q1,J1])=>`${Q1}: ${J1}`).join(" · "),children:$1.requests},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:[E(O[D]??null),O[D]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:O[D].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Z?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{N(""),R({vendor:D,to:x})},children:O[D]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(D),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},D,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(N5,{open:Boolean(A),onClose:()=>{if(!V)R(null)},title:`Seal ${A?d1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>R(null),disabled:V,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:V||!P,children:V?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(D)=>void u(D),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:P,onChange:(D)=>N(D.target.value),autoComplete:"off",required:!0,autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ey({name:Q,token:U,admin:Z,canWrite:K,refused:H,onRemoved:Y,only:W}){let L=(i)=>!W||W===i,[M,O]=X1.useState(0),T=P0(U,`/-/${Q}/twins`,M),A=P0(U,`/-/${Q}/checks`,M),[R,P]=X1.useState(0),N=P0(U,`/-/${Q}/clock`,R),[V,v]=X1.useState([]),[f,y]=X1.useState(null),[C,j]=X1.useState(null),[u,h]=X1.useState(""),[E,b]=X1.useState("gated"),[D,x]=X1.useState(!1),$1=(i,o,k)=>{if(v((g)=>[{ok:i,text:o,at:new Date().toISOString(),n:++lJ,...k?.length?{acts:k}:{}},...g].slice(0,6)),!i)i0(o,"error")},Q1=async(i,o,k)=>{let g=await z0(U,o,k).catch(()=>null);if(!g)return $1(!1,`${i}: the World did not answer`),!1;if(!g.ok){H(g);let q1=F2(await N3(g));return $1(!1,`${i}: ${q1.text}`,q1.acts),!1}return $1(!0,`${i}: done.`),O((q1)=>q1+1),!0},J1=async(i)=>{if(i.preventDefault(),!C)return;x(!0);let o=C.root??{},k=await Q1(u.trim()?`Connect ${d1(C.twin)} to ${u.trim()}`:`Disconnect ${d1(C.twin)}`,`/-/${Q}/twins/${C.twin}/root`,{method:"PUT",body:JSON.stringify(u.trim()?{...o,url:u.trim(),deploy:E}:null)});if(x(!1),k)j(null)},m=async()=>{if(!await c4({title:`Rotate the tokens of ${Q}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let i=await z0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(i.ok)y(await i.json()),$1(!0,"Rotated: the new tokens are shown once, below.");else $1(!1,`Rotate: ${await X5(i)}`)},p=async()=>{if(!await c4({title:`Remove ${Q}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:Q}))return;let i=await z0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(i instanceof Error){$1(!1,`Remove: the host did not answer (${i.message})`);return}if(i.ok)Y();else $1(!1,`Remove: ${await X5(i)}`)},c=T.state==="ok"?T.data.twins:[],a={gated:"gated: a person deploys an approved changeset",auto:"auto: a push deploys at once",hold:"hold: nothing deploys"};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(x6,{log:V,name:Q},void 0,!1,void 0,this),L("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),K?F.jsxDEV(Dy,{name:Q,token:U},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"This session reads the World: its keys are managed by whoever holds its token."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,L("services")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Real services"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:[c.some((i)=>i.root?.url)?null:"Every vendor here is a stand-in. ","Connect a vendor to its real service to read the real state into this World; its real credential is sealed in the Vault, and an approved changeset deploys there by its policy."]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:T,what:"the vendors"},void 0,!1,void 0,this),T.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Real services",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last read from it"},void 0,!1,void 0,this),K?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:c.map((i)=>{let o=i.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:i.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/${i.twin}`,title:`Its log and stored state · ${i.position??0} entries`,onClick:(k)=>{k.preventDefault(),M0([...Q.split("/"),i.twin])},children:d1(i.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:o?.url?F.jsxDEV("code",{children:o.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:o?.url?a[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:i.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",i.refresh.failed.count??1,": ",i.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?S8(i.refresh?.observedAt??i.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(o?.url??""),b(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),j(i)},children:o?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!o?.url,title:o?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void c4({title:`Read ${d1(i.twin)} now?`,body:`The real ${d1(i.twin)}'s current state is read into this World. Nothing is written to ${d1(i.twin)}.`,action:"Read from it"}).then((k)=>{if(k)Q1(`Read from ${d1(i.twin)}`,`/-/${Q}/twins/${i.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},i.twin,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,L("clock")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Clock"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"The instant every vendor here stamps from. Set it and move it forward to see what happens later: renewals, expiries, scheduled sends."},void 0,!1,void 0,this),F.jsxDEV(zy,{name:Q,token:U,clock:N,canWrite:K,onChanged:()=>P((i)=>i+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,L("checks")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Checks"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"JavaScript the World runs over every change before it is performed (a changeset's Verify runs them too)."},void 0,!1,void 0,this),F.jsxDEV(b2,{load:A,what:"the checks"},void 0,!1,void 0,this),A.state==="ok"?A.data.checks.length===0?F.jsxDEV("p",{className:"mode",children:"No checks: every change is performed as it comes."},void 0,!1,void 0,this):F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Checks",children:F.jsxDEV("tbody",{children:A.data.checks.map((i)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)},i,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,Z&&!W?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),f?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:f.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:f.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void m(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"New tokens for this World; every app, script and browser using the old ones is signed out."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void p(),children:"Remove world"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"Deletes this World and everything in it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(N5,{open:Boolean(C),onClose:()=>{if(!D)j(null)},title:`Connect ${C?d1(C.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>j(null),disabled:D,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:D,children:D?"Saving…":u.trim()?"Connect":"Disconnect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"connect-root",className:"stack",onSubmit:(i)=>void J1(i),children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real service's API address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"rootUrl",value:u,onChange:(i)=>h(i.target.value),placeholder:"https://api.openai.com",autoFocus:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Empty disconnects it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"rootDeploy",value:E,onChange:(i)=>b(i.target.value==="auto"?"auto":i.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((i)=>F.jsxDEV("option",{value:i,children:a[i]},i,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function CO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(tj,{},void 0,!1,void 0,this),F.jsxDEV(pA,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this),F.jsxDEV(mA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var SO=p0(f8(),1);Bq();fO.createRoot(o8).render(SO.jsxDEV(CO,{},void 0,!1,void 0,this));
246
+ `)),T=O.reduce((A,R)=>A.concat(...R),[]);return[O,T]}return[[],[]]},[Q]);return W1.useEffect(()=>{let M=U?.target??hT,O=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(w)=>{if(H.current=w.ctrlKey||w.metaKey||w.shiftKey||w.altKey,(!H.current||H.current&&!O)&&xK(w))return!1;let V=mT(w.code,L);if(Y.current.add(w[V]),xT(W,Y.current,!1)){let S=w.composedPath?.()?.[0]||w.target,C=S?.nodeName==="BUTTON"||S?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!C))w.preventDefault();K(!0)}},A=(w)=>{let P=mT(w.code,L);if(xT(W,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(w[P]);if(w.key==="Meta")Y.current.clear();H.current=!1},R=()=>{Y.current.clear(),K(!1)};return M?.addEventListener("keydown",T),M?.addEventListener("keyup",A),window.addEventListener("blur",R),window.addEventListener("contextmenu",R),()=>{M?.removeEventListener("keydown",T),M?.removeEventListener("keyup",A),window.removeEventListener("blur",R),window.removeEventListener("contextmenu",R)}}},[Q,K]),Z}function xT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function mT(Q,U){return U.includes(Q)?"code":"key"}var iS=()=>{let Q=d0();return W1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,Z)=>{let{panZoom:K}=Q.getState();return K?K.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[K,H,Y],panZoom:W}=Q.getState();if(!W)return!1;return await W.setViewport({x:U.x??K,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,K]=Q.getState().transform;return{x:U,y:Z,zoom:K}},setCenter:async(U,Z,K)=>{return Q.getState().setCenter(U,Z,K)},fitBounds:async(U,Z)=>{let{width:K,height:H,minZoom:Y,maxZoom:W,panZoom:L}=Q.getState(),M=gJ(U,K,H,Y,W,Z?.padding??0.1);if(!L)return!1;return await L.setViewport(M,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:K,snapGrid:H,snapToGrid:Y,domNode:W}=Q.getState();if(!W)return U;let{x:L,y:M}=W.getBoundingClientRect(),O={x:U.x-L,y:U.y-M},T=Z.snapGrid??H,A=Z.snapToGrid??Y;return P9(O,K,A,T)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),W=t8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function HR(Q,U){let Z=[],K=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")K.set(Y.id,[Y]);else{let W=K.get(Y.id);if(W)W.push(Y);else K.set(Y.id,[Y])}for(let Y of U){let W=K.get(Y.id);if(!W){Z.push(Y);continue}if(W[0].type==="remove")continue;if(W[0].type==="replace"){Z.push({...W[0].item});continue}let L={...Y};for(let M of W)dS(M,L);Z.push(L)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)Z.splice(Y.index,0,{...Y.item});else Z.push({...Y.item})});return Z}function dS(Q,U){switch(Q.type){case"select":{U.selected=Q.selected;break}case"position":{if(typeof Q.position<"u")U.position=Q.position;if(typeof Q.dragging<"u")U.dragging=Q.dragging;break}case"dimensions":{if(typeof Q.dimensions<"u"){if(U.measured={...Q.dimensions},Q.setAttributes){if(Q.setAttributes===!0||Q.setAttributes==="width")U.width=Q.dimensions.width;if(Q.setAttributes===!0||Q.setAttributes==="height")U.height=Q.dimensions.height}}if(typeof Q.resizing==="boolean")U.resizing=Q.resizing;break}}}function YR(Q,U){return HR(Q,U)}function rS(Q,U){return HR(Q,U)}function e8(Q,U){return{id:Q,type:"select",selected:U}}function C9(Q,U=new Set,Z=!1){let K=[];for(let[H,Y]of Q){let W=U.has(H);if(!(Y.selected===void 0&&!W)&&Y.selected!==W){if(Z)Y.selected=W;K.push(e8(Y.id,W))}}return K}function gT({items:Q=[],lookup:U}){let Z=[],K=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let W=U.get(Y.id),L=W?.internals?.userNode??W;if(L!==void 0&&L!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(L===void 0)Z.push({item:Y,type:"add",index:H})}for(let[H]of U)if(K.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function pT(Q){return{id:Q.id,type:"remove"}}var aS=kK("React Flow","https://reactflow.dev/");function sS(Q,U,Z={}){return $T(Q,U,{...Z,onError:Z.onError??aS})}var cT=(Q)=>iM(Q),tS=(Q)=>fK(Q);function zR(Q){return W1.forwardRef(Q)}var WR=typeof window<"u"?W1.useLayoutEffect:W1.useEffect;function lT(Q){let[U,Z]=W1.useState(BigInt(0)),[K]=W1.useState(()=>oS(()=>Z((H)=>H+BigInt(1))));return WR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function oS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var LR=W1.createContext(null);function nS({children:Q}){let U=d0(),Z=W1.useCallback((L)=>{let{nodes:M=[],setNodes:O,hasDefaultNodes:T,onNodesChange:A,nodeLookup:R,fitViewQueued:w,onNodesChangeMiddlewareMap:P}=U.getState(),V=M;for(let C of L)V=typeof C==="function"?C(V):C;let S=gT({items:V,lookup:R});for(let C of P.values())S=C(S);if(T)O(V);if(S.length>0)A?.(S);else if(w)window.requestAnimationFrame(()=>{let{fitViewQueued:C,nodes:y,setNodes:N}=U.getState();if(C)N(y)})},[]),K=lT(Z),H=W1.useCallback((L)=>{let{edges:M=[],setEdges:O,hasDefaultEdges:T,onEdgesChange:A,edgeLookup:R}=U.getState(),w=M;for(let P of L)w=typeof P==="function"?P(w):P;if(T)O(w);else if(A)A(gT({items:w,lookup:R}))},[]),Y=lT(H),W=W1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return K1.jsx(LR.Provider,{value:W,children:Q})}function eS(){let Q=W1.useContext(LR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var _v=(Q)=>!!Q.panZoom;function lJ(){let Q=iS(),U=d0(),Z=eS(),K=L0(_v),H=W1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),W=(A)=>{Z.nodeQueue.push(A)},L=(A)=>{Z.edgeQueue.push(A)},M=(A)=>{let{nodeLookup:R,nodeOrigin:w}=U.getState(),P=cT(A)?A:R.get(A.id),V=P.parentId?uK(P.position,P.measured,P.parentId,R,w):P.position,S={...P,position:V,width:P.measured?.width??P.width,height:P.measured?.height??P.height};return I9(S)},O=(A,R,w={replace:!1})=>{W((P)=>P.map((V)=>{if(V.id===A){let S=typeof R==="function"?R(V):R;return w.replace&&cT(S)?S:{...V,...S}}return V}))},T=(A,R,w={replace:!1})=>{L((P)=>P.map((V)=>{if(V.id===A){let S=typeof R==="function"?R(V):R;return w.replace&&tS(S)?S:{...V,...S}}return V}))};return{getNodes:()=>U.getState().nodes.map((A)=>({...A})),getNode:(A)=>Y(A)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:A=[]}=U.getState();return A.map((R)=>({...R}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:W,setEdges:L,addNodes:(A)=>{let R=Array.isArray(A)?A:[A];Z.nodeQueue.push((w)=>[...w,...R])},addEdges:(A)=>{let R=Array.isArray(A)?A:[A];Z.edgeQueue.push((w)=>[...w,...R])},toObject:()=>{let{nodes:A=[],edges:R=[],transform:w}=U.getState(),[P,V,S]=w;return{nodes:A.map((C)=>({...C})),edges:R.map((C)=>({...C})),viewport:{x:P,y:V,zoom:S}}},deleteElements:async({nodes:A=[],edges:R=[]})=>{let{nodes:w,edges:P,onNodesDelete:V,onEdgesDelete:S,triggerNodeChanges:C,triggerEdgeChanges:y,onDelete:N,onBeforeDelete:v}=U.getState(),{nodes:D,edges:x}=await aM({nodesToRemove:A,edgesToRemove:R,nodes:w,edges:P,onBeforeDelete:v}),E=x.length>0,u=D.length>0;if(E){let b=x.map(pT);S?.(x),y(b)}if(u){let b=D.map(pT);V?.(D),C(b)}if(u||E)N?.({nodes:D,edges:x});return{deletedNodes:D,deletedEdges:x}},getIntersectingNodes:(A,R=!0,w)=>{let P=yK(A),V=P?A:M(A),S=w!==void 0;if(!V)return[];return(w||U.getState().nodes).filter((C)=>{let y=U.getState().nodeLookup.get(C.id);if(y&&!P&&(C.id===A.id||!y.internals.positionAbsolute))return!1;let N=I9(S?C:y),v=mJ(N,V);return R&&v>0||v>=N.width*N.height||v>=V.width*V.height})},isNodeIntersecting:(A,R,w=!0)=>{let V=yK(A)?A:M(A);if(!V)return!1;let S=mJ(V,R);return w&&S>0||S>=R.width*R.height||S>=V.width*V.height},updateNode:O,updateNodeData:(A,R,w={replace:!1})=>{O(A,(P)=>{let V=typeof R==="function"?R(P):R;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},updateEdge:T,updateEdgeData:(A,R,w={replace:!1})=>{T(A,(P)=>{let V=typeof R==="function"?R(P):R;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},getNodesBounds:(A)=>{let{nodeLookup:R,nodeOrigin:w}=U.getState();return vK(A,{nodeLookup:R,nodeOrigin:w})},getHandleConnections:({type:A,id:R,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}-${A}${R?`-${R}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:R,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}${A?R?`-${A}-${R}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let R=U.getState().fitViewResolver??oM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:R}),Z.nodeQueue.push((w)=>[...w]),R.promise}}},[]);return W1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var iT=(Q)=>Q.selected,Jv=typeof window<"u"?window:void 0;function $v({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=d0(),{deleteElements:K}=lJ(),H=cJ(Q,{actInsideInputWithModifier:!1}),Y=cJ(U,{target:Jv});W1.useEffect(()=>{if(H){let{edges:W,nodes:L}=Z.getState();K({nodes:L.filter(iT),edges:W.filter(iT)}),Z.setState({nodesSelectionActive:!1})}},[H]),W1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function Qv(Q){let U=d0();W1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=rq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",F5.error004());U.setState({width:K.width||500,height:K.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let K=new ResizeObserver(()=>Z());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),K&&Q.current)K.unobserve(Q.current)}}},[])}var ZU={position:"absolute",width:"100%",height:"100%",top:0,left:0},qv=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function Uv({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=h3.Free,zoomOnDoubleClick:L=!0,panOnDrag:M=!0,defaultViewport:O,translateExtent:T,minZoom:A,maxZoom:R,zoomActivationKeyCode:w,preventScrolling:P=!0,children:V,noWheelClassName:S,noPanClassName:C,onViewportChange:y,isControlledViewport:N,paneClickDistance:v,selectionOnDrag:D}){let x=d0(),E=W1.useRef(null),{userSelectionActive:u,lib:b,connectionInProgress:m}=L0(qv,i0),s=cJ(w),U1=W1.useRef();Qv(E);let Q1=W1.useCallback((h)=>{if(y?.({x:h[0],y:h[1],zoom:h[2]}),!N)x.setState({transform:h})},[y,N]);return W1.useEffect(()=>{if(E.current){U1.current=RT({domNode:E.current,minZoom:A,maxZoom:R,translateExtent:T,viewport:O,onDraggingChange:(c)=>x.setState((l)=>l.paneDragging===c?l:{paneDragging:c}),onPanZoomStart:(c,l)=>{let{onViewportChangeStart:o,onMoveStart:k}=x.getState();k?.(c,l),o?.(l)},onPanZoom:(c,l)=>{let{onViewportChange:o,onMove:k}=x.getState();k?.(c,l),o?.(l)},onPanZoomEnd:(c,l)=>{let{onViewportChangeEnd:o,onMoveEnd:k}=x.getState();k?.(c,l),o?.(l)}});let{x:h,y:g,zoom:p}=U1.current.getViewport();return x.setState({panZoom:U1.current,transform:[h,g,p],domNode:E.current.closest(".react-flow")}),()=>{U1.current?.destroy()}}},[]),W1.useEffect(()=>{U1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:L,panOnDrag:M,zoomActivationKeyPressed:s,preventScrolling:P,noPanClassName:C,userSelectionActive:u,noWheelClassName:S,lib:b,onTransformChange:Q1,connectionInProgress:m,selectionOnDrag:D,paneClickDistance:v})},[Q,U,Z,K,H,Y,W,L,M,s,P,C,u,S,b,Q1,m,D,v]),K1.jsx("div",{className:"react-flow__renderer",ref:E,style:ZU,children:V})}var Gv=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function Zv(){let{userSelectionActive:Q,userSelectionRect:U}=L0(Gv,i0);if(!(Q&&U))return null;return K1.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:U.width,height:U.height,transform:`translate(${U.x}px, ${U.y}px)`}})}var aK=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},Fv=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Xv({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=a8.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:L,onSelectionEnd:M,onPaneClick:O,onPaneContextMenu:T,onPaneScroll:A,onPaneMouseEnter:R,onPaneMouseMove:w,onPaneMouseLeave:P,children:V}){let S=W1.useRef(0),C=d0(),{userSelectionActive:y,elementsSelectable:N,dragging:v,panBy:D,autoPanSpeed:x}=L0(Fv,i0),E=N&&(Q||y),u=W1.useRef(null),b=W1.useRef(),m=W1.useRef(new Set),s=W1.useRef(new Set),U1=W1.useRef(!1),Q1=W1.useRef(!1),h=W1.useRef({x:0,y:0}),g=W1.useRef(!1),p=(G1)=>{if(Q1.current||U1.current||C.getState().connection.inProgress){Q1.current=!1,U1.current=!1;return}O?.(G1),C.getState().resetSelectedElements(),C.setState({nodesSelectionActive:!1})},c=(G1)=>{if(Array.isArray(K)&&K?.includes(2)){G1.preventDefault();return}T?.(G1)},l=A?(G1)=>A(G1):void 0,o=(G1)=>{if(Q1.current)G1.stopPropagation(),Q1.current=!1},k=(G1)=>{if(G1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:R1,transform:f1}=C.getState();if(b.current=R1?.getBoundingClientRect(),!b.current)return;let z1=G1.target===u.current;if(!z1&&!!G1.target.closest(".nokey")||!Q||!(W&&z1||U)||G1.button!==0||!G1.isPrimary)return;G1.target?.setPointerCapture?.(G1.pointerId),Q1.current=!1;let{x:c1,y:k1}=_4(G1.nativeEvent,b.current),A1=P9({x:c1,y:k1},f1);if(C.setState({userSelectionRect:{width:0,height:0,startX:A1.x,startY:A1.y,x:c1,y:k1}}),!z1)G1.stopPropagation(),G1.preventDefault()};function t(G1,R1){let{userSelectionRect:f1}=C.getState();if(!f1)return;let{transform:z1,nodeLookup:C1,edgeLookup:b1,connectionLookup:c1,triggerNodeChanges:k1,triggerEdgeChanges:A1,defaultEdgeOptions:e1}=C.getState(),D1={x:f1.startX,y:f1.startY},{x:g0,y:_0}=t8(D1,z1),t0={startX:D1.x,startY:D1.y,x:G1<g0?G1:g0,y:R1<_0?R1:_0,width:Math.abs(G1-g0),height:Math.abs(R1-_0)},C2=m.current,u2=s.current;m.current=new Set(cq(C1,t0,z1,Z===a8.Partial,!0).map((f2)=>f2.id)),s.current=new Set;let b2=e1?.selectable??!0;for(let f2 of m.current){let T2=c1.get(f2);if(!T2)continue;for(let{edgeId:G2}of T2.values()){let R2=b1.get(G2);if(R2&&(R2.selectable??b2))s.current.add(G2)}}if(!bK(C2,m.current)){let f2=C9(C1,m.current,!0);k1(f2)}if(!bK(u2,s.current)){let f2=C9(b1,s.current);A1(f2)}C.setState({userSelectionRect:t0,userSelectionActive:!0,nodesSelectionActive:!1})}function _1(){if(!H||!b.current)return;let[G1,R1]=lq(h.current,b.current,x);D({x:G1,y:R1}).then((f1)=>{if(!Q1.current||!f1){S.current=requestAnimationFrame(_1);return}let{x:z1,y:C1}=h.current;t(z1,C1),S.current=requestAnimationFrame(_1)})}let a=()=>{cancelAnimationFrame(S.current),S.current=0,g.current=!1};W1.useEffect(()=>{return()=>a()},[]);let H1=(G1)=>{let{userSelectionRect:R1,transform:f1,resetSelectedElements:z1}=C.getState();if(!b.current||!R1)return;let{x:C1,y:b1}=_4(G1.nativeEvent,b.current);h.current={x:C1,y:b1};let c1=t8({x:R1.startX,y:R1.startY},f1);if(!Q1.current){let k1=U?0:Y;if(Math.hypot(C1-c1.x,b1-c1.y)<=k1)return;z1(),L?.(G1)}if(Q1.current=!0,!g.current)_1(),g.current=!0;t(C1,b1)},O1=(G1)=>{if(!E){if(G1.target===u.current&&C.getState().connection.inProgress)U1.current=!0;return}if(G1.button!==0)return;if(G1.target?.releasePointerCapture?.(G1.pointerId),!y&&G1.target===u.current&&C.getState().userSelectionRect)p?.(G1);if(C.setState({userSelectionActive:!1,userSelectionRect:null}),Q1.current)M?.(G1),C.setState({nodesSelectionActive:m.current.size>0});a()},L1=(G1)=>{G1.target?.releasePointerCapture?.(G1.pointerId),a()},T1=K===!0||Array.isArray(K)&&K.includes(0);return K1.jsxs("div",{className:_2(["react-flow__pane",{draggable:T1,dragging:v,selection:Q}]),onClick:E?void 0:aK(p,u),onContextMenu:aK(c,u),onWheel:aK(l,u),onPointerEnter:E?void 0:R,onPointerMove:E?H1:w,onPointerUp:O1,onPointerCancel:E?L1:void 0,onPointerDownCapture:E?k:void 0,onClickCapture:E?o:void 0,onPointerLeave:P,ref:u,style:ZU,children:[V,K1.jsx(Zv,{})]})}function tK({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:L,onError:M}=U.getState(),O=L.get(Q);if(!O){M?.("012",F5.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!O.selected)H([Q]);else if(Z||O.selected&&W)Y({nodes:[O],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function BR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let L=d0(),[M,O]=W1.useState(!1),T=W1.useRef();return W1.useEffect(()=>{if(U)return;return T.current=YT({getStoreItems:()=>L.getState(),onNodeMouseDown:(A)=>{tK({id:A,store:L,nodeRef:Q})},onDragStart:()=>{O(!0)},onDragStop:()=>{O(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,L,Q]),W1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:Z,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,K,U,Y,Q,H,W]),M}var Kv=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function AR(){let Q=d0();return W1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:L,updateNodePositions:M,nodeLookup:O,nodeOrigin:T}=Q.getState(),A=new Map,R=Kv(W),w=H?Y[0]:5,P=H?Y[1]:5,V=Z.direction.x*w*Z.factor,S=Z.direction.y*P*Z.factor;for(let[,C]of O){if(!R(C))continue;let y={x:C.internals.positionAbsolute.x+V,y:C.internals.positionAbsolute.y+S};if(H)y=w9(y,Y);let{position:N,positionAbsolute:v}=jK({nodeId:C.id,nextPosition:y,nodeLookup:O,nodeExtent:K,nodeOrigin:T,onError:L});C.position=N,C.internals.positionAbsolute=v,A.set(C.id,C)}M(A)},[])}var oK=W1.createContext(null),Hv=oK.Provider;oK.Consumer;var nK=()=>{return W1.useContext(oK)},Yv=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),MR=W1.createContext(null);function zv({children:Q}){let U=L0(Yv,i0);return K1.jsx(MR.Provider,{value:U,children:Q})}function Wv(){let Q=W1.useContext(MR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Lv={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},Bv=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=K,{fromHandle:L,toHandle:M,isValid:O}=W;if(!L&&!H)return Lv;let T=M?.nodeId===Q&&M?.id===U&&M?.type===Z;return{connectingFrom:L?.nodeId===Q&&L?.id===U&&L?.type===Z,connectingTo:T,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===l6.Strict?L?.type!==Z:Q!==L?.nodeId||U!==L?.id,connectionInProcess:!!L,clickConnectionInProcess:!!H,valid:T&&O}};function Av({type:Q="source",position:U=E1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:L,children:M,className:O,onMouseDown:T,onTouchStart:A,...R},w){let P=W||null,V=Q==="target",S=d0(),C=nK(),{connectOnClick:y,noPanClassName:N,rfId:v}=Wv(),{connectingFrom:D,connectingTo:x,clickConnecting:E,isPossibleEndHandle:u,connectionInProcess:b,clickConnectionInProcess:m,valid:s}=L0(Bv(C,P,Q),i0);if(!C)S.getState().onError?.("010",F5.error010());let U1=(g)=>{let{defaultEdgeOptions:p,onConnect:c,hasDefaultEdges:l}=S.getState(),o={...p,...g};if(l){let{edges:k,setEdges:t,onError:_1}=S.getState();t(sS(o,k,{onError:_1}))}c?.(o),L?.(o)},Q1=(g)=>{if(!C)return;let p=mK(g.nativeEvent);if(H&&(p&&g.button===0||!p)){let c=S.getState();_U.onPointerDown(g.nativeEvent,{handleDomNode:g.currentTarget,autoPanOnConnect:c.autoPanOnConnect,connectionMode:c.connectionMode,connectionRadius:c.connectionRadius,domNode:c.domNode,nodeLookup:c.nodeLookup,lib:c.lib,isTarget:V,handleId:P,nodeId:C,flowId:c.rfId,panBy:c.panBy,cancelConnection:c.cancelConnection,onConnectStart:c.onConnectStart,onConnectEnd:(...l)=>S.getState().onConnectEnd?.(...l),updateConnection:c.updateConnection,onConnect:U1,isValidConnection:Z||((...l)=>S.getState().isValidConnection?.(...l)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:c.autoPanSpeed,dragThreshold:c.connectionDragThreshold})}if(p)T?.(g);else A?.(g)},h=(g)=>{let{onClickConnectStart:p,onClickConnectEnd:c,connectionClickStartHandle:l,connectionMode:o,isValidConnection:k,lib:t,rfId:_1,nodeLookup:a,connection:H1}=S.getState();if(!C||!l&&!H)return;if(!l){p?.(g.nativeEvent,{nodeId:C,handleId:P,handleType:Q}),S.setState({connectionClickStartHandle:{nodeId:C,type:Q,id:P}});return}let O1=hK(g.target),L1=Z||k,{connection:T1,isValid:G1}=_U.isValid(g.nativeEvent,{handle:{nodeId:C,id:P,type:Q},connectionMode:o,fromNodeId:l.nodeId,fromHandleId:l.id||null,fromType:l.type,isValidConnection:L1,flowId:_1,doc:O1,lib:t,nodeLookup:a});if(G1&&T1)U1(T1);let R1=structuredClone(H1);delete R1.inProgress,R1.toPosition=R1.toHandle?R1.toHandle.position:null,c?.(g,R1),S.setState({connectionClickStartHandle:null})};return K1.jsx("div",{"data-handleid":P,"data-nodeid":C,"data-handlepos":U,"data-id":`${v}-${C}-${P}-${Q}`,className:_2(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",N,O,{source:!V,target:V,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:E,connectingfrom:D,connectingto:x,valid:s,connectionindicator:K&&(!b||u)&&(b||m?Y:H)}]),onMouseDown:Q1,onTouchStart:Q1,onClick:y?h:void 0,ref:w,...R,children:M})}var qU=W1.memo(zR(Av));function Mv({data:Q,isConnectable:U,sourcePosition:Z=E1.Bottom}){return K1.jsxs(K1.Fragment,{children:[Q?.label,K1.jsx(qU,{type:"source",position:Z,isConnectable:U})]})}function Tv({data:Q,isConnectable:U,targetPosition:Z=E1.Top,sourcePosition:K=E1.Bottom}){return K1.jsxs(K1.Fragment,{children:[K1.jsx(qU,{type:"target",position:Z,isConnectable:U}),Q?.label,K1.jsx(qU,{type:"source",position:K,isConnectable:U})]})}function Rv(){return null}function Ov({data:Q,isConnectable:U,targetPosition:Z=E1.Top}){return K1.jsxs(K1.Fragment,{children:[K1.jsx(qU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var UU={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},dT={input:Mv,default:Tv,output:Ov,group:Rv};function Iv(Q){if(Q.internals.handleBounds===void 0)return{width:Q.width??Q.initialWidth??Q.style?.width,height:Q.height??Q.initialHeight??Q.style?.height};return{width:Q.width??Q.style?.width,height:Q.height??Q.style?.height}}var wv=(Q)=>{let{width:U,height:Z,x:K,y:H}=n8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:e5(U)?U:null,height:e5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${H}px)`}};function Pv({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=d0(),{width:H,height:Y,transformString:W,userSelectionActive:L}=L0(wv,i0),M=AR(),O=W1.useRef(null);W1.useEffect(()=>{if(!Z)O.current?.focus({preventScroll:!0})},[Z]);let T=!L&&H!==null&&Y!==null;if(BR({nodeRef:O,disabled:!T}),!T)return null;let A=Q?(w)=>{let P=K.getState().nodes.filter((V)=>V.selected);Q(w,P)}:void 0,R=(w)=>{if(Object.prototype.hasOwnProperty.call(UU,w.key))w.preventDefault(),M({direction:UU[w.key],factor:w.shiftKey?4:1})};return K1.jsx("div",{className:_2(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:K1.jsx("div",{ref:O,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:R,style:{width:H,height:Y}})})}var rT=typeof window<"u"?window:void 0,Nv=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function TR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:L,deleteKeyCode:M,selectionKeyCode:O,selectionOnDrag:T,selectionMode:A,onSelectionStart:R,onSelectionEnd:w,multiSelectionKeyCode:P,panActivationKeyCode:V,zoomActivationKeyCode:S,elementsSelectable:C,zoomOnScroll:y,zoomOnPinch:N,panOnScroll:v,panOnScrollSpeed:D,panOnScrollMode:x,zoomOnDoubleClick:E,panOnDrag:u,autoPanOnSelection:b,defaultViewport:m,translateExtent:s,minZoom:U1,maxZoom:Q1,preventScrolling:h,onSelectionContextMenu:g,noWheelClassName:p,noPanClassName:c,disableKeyboardA11y:l,onViewportChange:o,isControlledViewport:k}){let{nodesSelectionActive:t,userSelectionActive:_1}=L0(Nv,i0),a=cJ(O,{target:rT}),H1=cJ(V,{target:rT}),O1=H1||u,L1=H1||v,T1=T&&O1!==!0,G1=a||_1||T1;return $v({deleteKeyCode:M,multiSelectionKeyCode:P}),K1.jsx(Uv,{onPaneContextMenu:Y,elementsSelectable:C,zoomOnScroll:y,zoomOnPinch:N,panOnScroll:L1,panActivationKeyPressed:H1,panOnScrollSpeed:D,panOnScrollMode:x,zoomOnDoubleClick:E,panOnDrag:!a&&O1,defaultViewport:m,translateExtent:s,minZoom:U1,maxZoom:Q1,zoomActivationKeyCode:S,preventScrolling:h,noWheelClassName:p,noPanClassName:c,onViewportChange:o,isControlledViewport:k,paneClickDistance:L,selectionOnDrag:T1,children:K1.jsxs(Xv,{onSelectionStart:R,onSelectionEnd:w,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:O1,autoPanOnSelection:b,isSelecting:!!G1,selectionMode:A,selectionKeyPressed:a,paneClickDistance:L,selectionOnDrag:T1,children:[Q,t&&K1.jsx(Pv,{onSelectionContextMenu:g,noPanClassName:c,disableKeyboardA11y:l})]})})}TR.displayName="FlowRenderer";var Cv=W1.memo(TR),fv=(Q)=>(U)=>{return Q?cq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function Sv(Q){return L0(W1.useCallback(fv(Q),[Q]),i0)}var vv=(Q)=>Q.updateNodeInternals;function jv(){let Q=L0(vv),[U]=W1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let K=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");K.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(K)})});return W1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Vv({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let H=d0(),Y=W1.useRef(null),W=W1.useRef(null),L=W1.useRef(Q.sourcePosition),M=W1.useRef(Q.targetPosition),O=W1.useRef(U),T=Z&&!!Q.internals.handleBounds;return W1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||W.current!==Y.current)){if(W.current)K?.unobserve(W.current);K?.observe(Y.current),W.current=Y.current}},[T,Q.hidden]),W1.useEffect(()=>{return()=>{if(W.current)K?.unobserve(W.current),W.current=null}},[]),W1.useEffect(()=>{if(Y.current){let A=O.current!==U,R=L.current!==Q.sourcePosition,w=M.current!==Q.targetPosition;if(A||R||w)O.current=U,L.current=Q.sourcePosition,M.current=Q.targetPosition,H.getState().updateNodeInternals(new Map([[Q.id,{id:Q.id,nodeElement:Y.current,force:!0}]]))}},[Q.id,U,Q.sourcePosition,Q.targetPosition]),Y}function yv({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:L,elementsSelectable:M,nodesConnectable:O,nodesFocusable:T,resizeObserver:A,noDragClassName:R,noPanClassName:w,disableKeyboardA11y:P,rfId:V,nodeTypes:S,nodeClickDistance:C,onError:y}){let{node:N,internals:v,isParent:D}=L0((G1)=>{let R1=G1.nodeLookup.get(Q),f1=G1.parentLookup.has(Q);return{node:R1,internals:R1.internals,isParent:f1}},i0),x=N.type||"default",E=S?.[x]||dT[x];if(E===void 0)y?.("003",F5.error003(x)),x="default",E=S?.default||dT.default;let u=!!(N.draggable||L&&typeof N.draggable>"u"),b=!!(N.selectable||M&&typeof N.selectable>"u"),m=!!(N.connectable||O&&typeof N.connectable>"u"),s=!!(N.focusable||T&&typeof N.focusable>"u"),U1=d0(),Q1=DK(N),h=Vv({node:N,nodeType:x,hasDimensions:Q1,resizeObserver:A}),g=BR({nodeRef:h,disabled:N.hidden||!u,noDragClassName:R,handleSelector:N.dragHandle,nodeId:Q,isSelectable:b,nodeClickDistance:C}),p=AR();if(N.hidden)return null;let c=J4(N),l=Iv(N),o=b||u||U||Z||K||H,k=Z?(G1)=>Z(G1,{...v.userNode}):void 0,t=K?(G1)=>K(G1,{...v.userNode}):void 0,_1=H?(G1)=>H(G1,{...v.userNode}):void 0,a=Y?(G1)=>Y(G1,{...v.userNode}):void 0,H1=W?(G1)=>W(G1,{...v.userNode}):void 0,O1=(G1)=>{let{selectNodesOnDrag:R1,nodeDragThreshold:f1}=U1.getState();if(b&&(!R1||!u||f1>0))tK({id:Q,store:U1,nodeRef:h});if(U)U(G1,{...v.userNode})},L1=(G1)=>{if(xK(G1.nativeEvent)||P)return;if(PK.includes(G1.key)&&b){let R1=G1.key==="Escape";tK({id:Q,store:U1,unselect:R1,nodeRef:h})}else if(u&&N.selected&&Object.prototype.hasOwnProperty.call(UU,G1.key)){G1.preventDefault();let{ariaLabelConfig:R1}=U1.getState();U1.setState({ariaLiveMessage:R1["node.a11yDescription.ariaLiveMessage"]({direction:G1.key.replace("Arrow","").toLowerCase(),x:~~v.positionAbsolute.x,y:~~v.positionAbsolute.y})}),p({direction:UU[G1.key],factor:G1.shiftKey?4:1})}},T1=()=>{if(P||!h.current?.matches(":focus-visible"))return;let{transform:G1,width:R1,height:f1,autoPanOnNodeFocus:z1,setCenter:C1}=U1.getState();if(!z1)return;if(!(cq(new Map([[Q,N]]),{x:0,y:0,width:R1,height:f1},G1,!0).length>0))C1(N.position.x+c.width/2,N.position.y+c.height/2,{zoom:G1[2]})};return K1.jsx("div",{className:_2(["react-flow__node",`react-flow__node-${x}`,{[w]:u},N.className,{selected:N.selected,selectable:b,parent:D,draggable:u,dragging:g}]),ref:h,style:{zIndex:v.z,transform:`translate(${v.positionAbsolute.x}px,${v.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:Q1?"visible":"hidden",...N.style,...l},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:k,onMouseMove:t,onMouseLeave:_1,onContextMenu:a,onClick:O1,onDoubleClick:H1,onKeyDown:s?L1:void 0,tabIndex:s?0:void 0,onFocus:s?T1:void 0,role:N.ariaRole??(s?"group":void 0),"aria-roledescription":"node","aria-describedby":P?void 0:`${FR}-${V}`,"aria-label":N.ariaLabel,...N.domAttributes,children:K1.jsx(Hv,{value:Q,children:K1.jsx(E,{id:Q,data:N.data,type:x,positionAbsoluteX:v.positionAbsolute.x,positionAbsoluteY:v.positionAbsolute.y,selected:N.selected??!1,selectable:b,draggable:u,deletable:N.deletable??!0,isConnectable:m,sourcePosition:N.sourcePosition,targetPosition:N.targetPosition,dragging:g,dragHandle:N.dragHandle,zIndex:v.z,parentId:N.parentId,...c})})})}var kv=W1.memo(yv),Dv=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function RR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:H}=L0(Dv,i0),Y=Sv(Q.onlyRenderVisibleElements),W=jv();return K1.jsx("div",{className:"react-flow__nodes",style:ZU,children:Y.map((L)=>{return K1.jsx(kv,{id:L,nodeTypes:Q.nodeTypes,nodeExtent:Q.nodeExtent,onClick:Q.onNodeClick,onMouseEnter:Q.onNodeMouseEnter,onMouseMove:Q.onNodeMouseMove,onMouseLeave:Q.onNodeMouseLeave,onContextMenu:Q.onNodeContextMenu,onDoubleClick:Q.onNodeDoubleClick,noDragClassName:Q.noDragClassName,noPanClassName:Q.noPanClassName,rfId:Q.rfId,disableKeyboardA11y:Q.disableKeyboardA11y,resizeObserver:W,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:H},L)})})}RR.displayName="NodeRenderer";var uv=W1.memo(RR);function bv(Q){return L0(W1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let K=[];if(Z.width&&Z.height)for(let H of Z.edges){let Y=Z.nodeLookup.get(H.source),W=Z.nodeLookup.get(H.target);if(Y&&W&&JT({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))K.push(H.id)}return K},[Q]),i0)}var Ev=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return K1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},hv=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return K1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},aT={[T9.Arrow]:Ev,[T9.ArrowClosed]:hv};function xv(Q){let U=d0();return W1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(aT,Q))return U.getState().onError?.("009",F5.error009(Q)),null;return aT[Q]},[Q])}var mv=({id:Q,type:U,color:Z,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:L="auto-start-reverse"})=>{let M=xv(U);if(!M)return null;return K1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:L,refX:"0",refY:"0",children:K1.jsx(M,{color:Z,strokeWidth:W})})},OR=({defaultColor:Q,rfId:U})=>{let Z=L0((Y)=>Y.edges),K=L0((Y)=>Y.defaultEdgeOptions),H=W1.useMemo(()=>{return qT(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!H.length)return null;return K1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:K1.jsx("defs",{children:H.map((Y)=>K1.jsx(mv,{id:Y.id,type:Y.type,color:Y.color,width:Y.width,height:Y.height,markerUnits:Y.markerUnits,strokeWidth:Y.strokeWidth,orient:Y.orient},Y.id))})})};OR.displayName="MarkerDefinitions";var gv=W1.memo(OR);function IR({x:Q,y:U,label:Z,labelStyle:K,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:L=2,children:M,className:O,...T}){let[A,R]=W1.useState({x:1,y:0,width:0,height:0}),w=_2(["react-flow__edge-textwrapper",O]),P=W1.useRef(null);if(W1.useEffect(()=>{if(P.current){let V=P.current.getBBox();R({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return K1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:w,visibility:A.width?"visible":"hidden",...T,children:[H&&K1.jsx("rect",{width:A.width+2*W[0],x:-W[0],y:-W[1],height:A.height+2*W[1],className:"react-flow__edge-textbg",style:Y,rx:L,ry:L}),K1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:P,style:K,children:Z}),M]})}IR.displayName="EdgeText";var pv=W1.memo(IR);function FU({path:Q,labelX:U,labelY:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:M,interactionWidth:O=20,...T}){return K1.jsxs(K1.Fragment,{children:[K1.jsx("path",{...T,d:Q,fill:"none",className:_2(["react-flow__edge-path",T.className])}),O?K1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:O,className:"react-flow__edge-interaction"}):null,K&&e5(U)&&e5(Z)?K1.jsx(pv,{x:U,y:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:M}):null]})}function sT({pos:Q,x1:U,y1:Z,x2:K,y2:H}){if(Q===E1.Left||Q===E1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+H)]}function wR({sourceX:Q,sourceY:U,sourcePosition:Z=E1.Bottom,targetX:K,targetY:H,targetPosition:Y=E1.Top}){let[W,L]=sT({pos:Z,x1:Q,y1:U,x2:K,y2:H}),[M,O]=sT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[T,A,R,w]=aq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:W,sourceControlY:L,targetControlX:M,targetControlY:O});return[`M${Q},${U} C${W},${L} ${M},${O} ${K},${H}`,T,A,R,w]}function PR(Q){return W1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W,targetPosition:L,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:C})=>{let[y,N,v]=wR({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L}),D=Q.isInternal?void 0:U;return K1.jsx(FU,{id:D,path:y,labelX:N,labelY:v,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:C})})}var cv=PR({isInternal:!1}),NR=PR({isInternal:!0});cv.displayName="SimpleBezierEdge";NR.displayName="SimpleBezierEdgeInternal";function CR(Q){return W1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,sourcePosition:w=E1.Bottom,targetPosition:P=E1.Top,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:y})=>{let[N,v,D]=pJ({sourceX:Z,sourceY:K,sourcePosition:w,targetX:H,targetY:Y,targetPosition:P,borderRadius:C?.borderRadius,offset:C?.offset,stepPosition:C?.stepPosition}),x=Q.isInternal?void 0:U;return K1.jsx(FU,{id:x,path:N,labelX:v,labelY:D,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:V,markerStart:S,interactionWidth:y})})}var fR=CR({isInternal:!1}),SR=CR({isInternal:!0});fR.displayName="SmoothStepEdge";SR.displayName="SmoothStepEdgeInternal";function vR(Q){return W1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return K1.jsx(fR,{...Z,id:K,pathOptions:W1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var lv=vR({isInternal:!1}),jR=vR({isInternal:!0});lv.displayName="StepEdge";jR.displayName="StepEdgeInternal";function VR(Q){return W1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:w,markerStart:P,interactionWidth:V})=>{let[S,C,y]=tq({sourceX:Z,sourceY:K,targetX:H,targetY:Y}),N=Q.isInternal?void 0:U;return K1.jsx(FU,{id:N,path:S,labelX:C,labelY:y,label:W,labelStyle:L,labelShowBg:M,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:A,style:R,markerEnd:w,markerStart:P,interactionWidth:V})})}var iv=VR({isInternal:!1}),yR=VR({isInternal:!0});iv.displayName="StraightEdge";yR.displayName="StraightEdgeInternal";function kR(Q){return W1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W=E1.Bottom,targetPosition:L=E1.Top,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:y})=>{let[N,v,D]=sq({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L,curvature:C?.curvature}),x=Q.isInternal?void 0:U;return K1.jsx(FU,{id:x,path:N,labelX:v,labelY:D,label:M,labelStyle:O,labelShowBg:T,labelBgStyle:A,labelBgPadding:R,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:y})})}var dv=kR({isInternal:!1}),DR=kR({isInternal:!0});dv.displayName="BezierEdge";DR.displayName="BezierEdgeInternal";var tT={default:DR,straight:yR,step:jR,smoothstep:SR,simplebezier:NR},oT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},rv=(Q,U,Z)=>{if(Z===E1.Left)return Q-U;if(Z===E1.Right)return Q+U;return Q},av=(Q,U,Z)=>{if(Z===E1.Top)return Q-U;if(Z===E1.Bottom)return Q+U;return Q},nT="react-flow__edgeupdater";function eT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:L}){return K1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:_2([nT,`${nT}-${L}`]),cx:rv(U,K,Q),cy:av(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function sv({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:H,targetX:Y,targetY:W,sourcePosition:L,targetPosition:M,onReconnect:O,onReconnectStart:T,onReconnectEnd:A,setReconnecting:R,setUpdateHover:w}){let P=d0(),V=(v,D)=>{if(v.button!==0)return;let{autoPanOnConnect:x,domNode:E,connectionMode:u,connectionRadius:b,lib:m,onConnectStart:s,cancelConnection:U1,nodeLookup:Q1,rfId:h,panBy:g,updateConnection:p}=P.getState(),c=D.type==="target",l=(t,_1)=>{R(!1),A?.(t,Z,D.type,_1)},o=(t)=>O?.(Z,t),k=(t,_1)=>{R(!0),T?.(v,Z,D.type),s?.(t,_1)};_U.onPointerDown(v.nativeEvent,{autoPanOnConnect:x,connectionMode:u,connectionRadius:b,domNode:E,handleId:D.id,nodeId:D.nodeId,nodeLookup:Q1,isTarget:c,edgeUpdaterType:D.type,lib:m,flowId:h,cancelConnection:U1,panBy:g,isValidConnection:(...t)=>P.getState().isValidConnection?.(...t)??!0,onConnect:o,onConnectStart:k,onConnectEnd:(...t)=>P.getState().onConnectEnd?.(...t),onReconnectEnd:l,updateConnection:p,getTransform:()=>P.getState().transform,getFromHandle:()=>P.getState().connection.fromHandle,dragThreshold:P.getState().connectionDragThreshold,handleDomNode:v.currentTarget})},S=(v)=>V(v,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),C=(v)=>V(v,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),y=()=>w(!0),N=()=>w(!1);return K1.jsxs(K1.Fragment,{children:[(Q===!0||Q==="source")&&K1.jsx(eT,{position:L,centerX:K,centerY:H,radius:U,onMouseDown:S,onMouseEnter:y,onMouseOut:N,type:"source"}),(Q===!0||Q==="target")&&K1.jsx(eT,{position:M,centerX:Y,centerY:W,radius:U,onMouseDown:C,onMouseEnter:y,onMouseOut:N,type:"target"})]})}function tv({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:M,onMouseLeave:O,reconnectRadius:T,onReconnect:A,onReconnectStart:R,onReconnectEnd:w,rfId:P,edgeTypes:V,noPanClassName:S,onError:C,disableKeyboardA11y:y}){let N=L0((C1)=>C1.edgeLookup.get(Q)),v=L0((C1)=>C1.defaultEdgeOptions);N=v?{...v,...N}:N;let D=N.type||"default",x=V?.[D]||tT[D];if(x===void 0)C?.("011",F5.error011(D)),D="default",x=V?.default||tT.default;let E=!!(N.focusable||U&&typeof N.focusable>"u"),u=typeof A<"u"&&(N.reconnectable||Z&&typeof N.reconnectable>"u"),b=!!(N.selectable||K&&typeof N.selectable>"u"),m=W1.useRef(null),[s,U1]=W1.useState(!1),[Q1,h]=W1.useState(!1),g=d0(),{zIndex:p=N.zIndex,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1}=L0(W1.useCallback((C1)=>{let b1=C1.nodeLookup.get(N.source),c1=C1.nodeLookup.get(N.target);if(!b1||!c1)return oT;let k1=QT({id:Q,sourceNode:b1,targetNode:c1,sourceHandle:N.sourceHandle||null,targetHandle:N.targetHandle||null,connectionMode:C1.connectionMode,onError:C}),A1=_T({selected:N.selected,zIndex:N.zIndex,sourceNode:b1,targetNode:c1,elevateOnSelect:C1.elevateEdgesOnSelect,zIndexMode:C1.zIndexMode});return{...k1||oT,zIndex:A1}},[N.source,N.target,N.sourceHandle,N.targetHandle,N.selected,N.zIndex,C]),i0),a=W1.useMemo(()=>N.markerStart?`url('#${oq(N.markerStart,P)}')`:void 0,[N.markerStart,P]),H1=W1.useMemo(()=>N.markerEnd?`url('#${oq(N.markerEnd,P)}')`:void 0,[N.markerEnd,P]);if(N.hidden||c===null||l===null||o===null||k===null)return null;let O1=(C1)=>{let{addSelectedEdges:b1,unselectNodesAndEdges:c1,multiSelectionActive:k1}=g.getState();if(b)if(g.setState({nodesSelectionActive:!1}),N.selected&&k1)c1({nodes:[],edges:[N]}),m.current?.blur();else b1([Q]);if(H)H(C1,N)},L1=Y?(C1)=>{Y(C1,{...N})}:void 0,T1=W?(C1)=>{W(C1,{...N})}:void 0,G1=L?(C1)=>{L(C1,{...N})}:void 0,R1=M?(C1)=>{M(C1,{...N})}:void 0,f1=O?(C1)=>{O(C1,{...N})}:void 0,z1=(C1)=>{if(!y&&PK.includes(C1.key)&&b){let{unselectNodesAndEdges:b1,addSelectedEdges:c1}=g.getState();if(C1.key==="Escape")m.current?.blur(),b1({edges:[N]});else c1([Q])}};return K1.jsx("svg",{style:{zIndex:p},children:K1.jsxs("g",{className:_2(["react-flow__edge",`react-flow__edge-${D}`,N.className,S,{selected:N.selected,animated:N.animated,inactive:!b&&!H,updating:s,selectable:b}]),onClick:O1,onDoubleClick:L1,onContextMenu:T1,onMouseEnter:G1,onMouseMove:R1,onMouseLeave:f1,onKeyDown:E?z1:void 0,tabIndex:E?0:void 0,role:N.ariaRole??(E?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":N.ariaLabel===null?void 0:N.ariaLabel||`Edge from ${N.source} to ${N.target}`,"aria-describedby":E?`${XR}-${P}`:void 0,ref:m,...N.domAttributes,children:[!Q1&&K1.jsx(x,{id:Q,source:N.source,target:N.target,type:N.type,selected:N.selected,animated:N.animated,selectable:b,deletable:N.deletable??!0,label:N.label,labelStyle:N.labelStyle,labelShowBg:N.labelShowBg,labelBgStyle:N.labelBgStyle,labelBgPadding:N.labelBgPadding,labelBgBorderRadius:N.labelBgBorderRadius,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1,data:N.data,style:N.style,sourceHandleId:N.sourceHandle,targetHandleId:N.targetHandle,markerStart:a,markerEnd:H1,pathOptions:"pathOptions"in N?N.pathOptions:void 0,interactionWidth:N.interactionWidth}),u&&K1.jsx(sv,{edge:N,isReconnectable:u,reconnectRadius:T,onReconnect:A,onReconnectStart:R,onReconnectEnd:w,sourceX:c,sourceY:l,targetX:o,targetY:k,sourcePosition:t,targetPosition:_1,setUpdateHover:U1,setReconnecting:h})]})})}var ov=W1.memo(tv),nv=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function uR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:L,onEdgeMouseMove:M,onEdgeMouseLeave:O,onEdgeClick:T,reconnectRadius:A,onEdgeDoubleClick:R,onReconnectStart:w,onReconnectEnd:P,disableKeyboardA11y:V}){let{edgesFocusable:S,edgesReconnectable:C,elementsSelectable:y,onError:N}=L0(nv,i0),v=bv(U);return K1.jsxs("div",{className:"react-flow__edges",children:[K1.jsx(gv,{defaultColor:Q,rfId:Z}),v.map((D)=>{return K1.jsx(ov,{id:D,edgesFocusable:S,edgesReconnectable:C,elementsSelectable:y,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:M,onMouseLeave:O,onClick:T,reconnectRadius:A,onDoubleClick:R,onReconnectStart:w,onReconnectEnd:P,rfId:Z,onError:N,edgeTypes:K,disableKeyboardA11y:V},D)})]})}uR.displayName="EdgeRenderer";var ev=W1.memo(uR),_R=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function _j({children:Q}){let U=d0(),Z=W1.useRef(null),[K]=W1.useState(()=>U.getState().transform);return WR(()=>{let H=null,Y=()=>{let W=U.getState().transform;if(H&&W[0]===H[0]&&W[1]===H[1]&&W[2]===H[2])return;if(H=W,Z.current)Z.current.style.transform=_R(W)};return Y(),U.subscribe(Y)},[U]),K1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:_R(K)},children:Q})}function Jj(Q){let U=lJ(),Z=W1.useRef(!1);W1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var $j=(Q)=>Q.panZoom?.syncViewport;function Qj(Q){let U=L0($j),Z=d0();return W1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function JR(Q){return Q.connection.inProgress?{...Q.connection,to:P9(Q.connection.to,Q.transform)}:{...Q.connection}}function qj(Q){if(Q)return(Z)=>{let K=JR(Z);return Q(K)};return JR}function Uj(Q){let U=qj(Q);return L0(U,i0)}var Gj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function Zj({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:H,width:Y,height:W,isValid:L,inProgress:M}=L0(Gj,i0);if(!(Y&&H&&M))return null;return K1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:K1.jsx("g",{className:_2(["react-flow__connection",EK(L)]),children:K1.jsx(bR,{style:U,type:Z,CustomComponent:K,isValid:L})})})}var bR=({style:Q,type:U=$3.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:L,fromPosition:M,to:O,toNode:T,toHandle:A,toPosition:R,pointer:w}=Uj();if(!H)return;if(Z)return K1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:L,fromX:Y.x,fromY:Y.y,toX:O.x,toY:O.y,fromPosition:M,toPosition:R,connectionStatus:EK(K),toNode:T,toHandle:A,pointer:w});let P="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:M,targetX:O.x,targetY:O.y,targetPosition:R};switch(U){case $3.Bezier:[P]=sq(V);break;case $3.SimpleBezier:[P]=wR(V);break;case $3.Step:[P]=pJ({...V,borderRadius:0});break;case $3.SmoothStep:[P]=pJ(V);break;default:[P]=tq(V)}return K1.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Q})};bR.displayName="ConnectionLine";var Fj={};function $R(Q=Fj){let U=W1.useRef(Q),Z=d0();W1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of K)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",F5.error002());break}U.current=Q}},[Q])}function Xj(){let Q=d0(),U=W1.useRef(!1);W1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",F5.error013("react"));U.current=!0}},[])}function ER({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:O,onNodeContextMenu:T,onSelectionContextMenu:A,onSelectionStart:R,onSelectionEnd:w,connectionLineType:P,connectionLineStyle:V,connectionLineComponent:S,connectionLineContainerStyle:C,selectionKeyCode:y,selectionOnDrag:N,selectionMode:v,multiSelectionKeyCode:D,panActivationKeyCode:x,zoomActivationKeyCode:E,deleteKeyCode:u,onlyRenderVisibleElements:b,elementsSelectable:m,defaultViewport:s,translateExtent:U1,minZoom:Q1,maxZoom:h,preventScrolling:g,defaultMarkerColor:p,zoomOnScroll:c,zoomOnPinch:l,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:t,zoomOnDoubleClick:_1,panOnDrag:a,autoPanOnSelection:H1,onPaneClick:O1,onPaneMouseEnter:L1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneScroll:R1,onPaneContextMenu:f1,paneClickDistance:z1,nodeClickDistance:C1,onEdgeContextMenu:b1,onEdgeMouseEnter:c1,onEdgeMouseMove:k1,onEdgeMouseLeave:A1,reconnectRadius:e1,onReconnect:D1,onReconnectStart:g0,onReconnectEnd:_0,noDragClassName:t0,noWheelClassName:C2,noPanClassName:u2,disableKeyboardA11y:b2,nodeExtent:f2,rfId:T2,viewport:G2,onViewportChange:R2,nodesDraggable:I4}){return $R(Q),$R(U),Xj(),Jj(Z),Qj(G2),K1.jsx(Cv,{onPaneClick:O1,onPaneMouseEnter:L1,onPaneMouseMove:T1,onPaneMouseLeave:G1,onPaneContextMenu:f1,onPaneScroll:R1,paneClickDistance:z1,deleteKeyCode:u,selectionKeyCode:y,selectionOnDrag:N,selectionMode:v,onSelectionStart:R,onSelectionEnd:w,multiSelectionKeyCode:D,panActivationKeyCode:x,zoomActivationKeyCode:E,elementsSelectable:m,zoomOnScroll:c,zoomOnPinch:l,zoomOnDoubleClick:_1,panOnScroll:o,panOnScrollSpeed:k,panOnScrollMode:t,panOnDrag:a,autoPanOnSelection:H1,defaultViewport:s,translateExtent:U1,minZoom:Q1,maxZoom:h,onSelectionContextMenu:A,preventScrolling:g,noDragClassName:t0,noWheelClassName:C2,noPanClassName:u2,disableKeyboardA11y:b2,onViewportChange:R2,isControlledViewport:!!G2,children:K1.jsxs(_j,{children:[K1.jsx(ev,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:D1,onReconnectStart:g0,onReconnectEnd:_0,onlyRenderVisibleElements:b,onEdgeContextMenu:b1,onEdgeMouseEnter:c1,onEdgeMouseMove:k1,onEdgeMouseLeave:A1,reconnectRadius:e1,defaultMarkerColor:p,noPanClassName:u2,disableKeyboardA11y:b2,rfId:T2}),K1.jsx(Zj,{style:V,type:P,component:S,containerStyle:C}),K1.jsx("div",{className:"react-flow__edgelabel-renderer"}),K1.jsx(uv,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:L,onNodeMouseMove:M,onNodeMouseLeave:O,onNodeContextMenu:T,nodeClickDistance:C1,onlyRenderVisibleElements:b,noPanClassName:u2,noDragClassName:t0,disableKeyboardA11y:b2,nodeExtent:f2,rfId:T2,nodesDraggable:I4}),K1.jsx("div",{className:"react-flow__viewport-portal"})]})})}ER.displayName="GraphView";var Kj=W1.memo(ER),Hj=kK("React Flow","https://reactflow.dev/"),QR=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M=0.5,maxZoom:O=2,nodeOrigin:T,nodeExtent:A,zIndexMode:R="basic"}={})=>{let w=new Map,P=new Map,V=new Map,S=new Map,C=K??U??[],y=Z??Q??[],N=T??[0,0],v=A??O9;dK(V,S,C);let{nodesInitialized:D}=nq(y,w,P,{nodeOrigin:N,nodeExtent:v,zIndexMode:R}),x=[0,0,1];if(W&&H&&Y){let E=n8(w,{filter:(s)=>!!((s.width||s.initialWidth)&&(s.height||s.initialHeight))}),{x:u,y:b,zoom:m}=gJ(E,H,Y,M,O,L?.padding??0.1);x=[u,b,m]}return{rfId:"1",width:H??0,height:Y??0,transform:x,nodes:y,nodesInitialized:D,nodeLookup:w,parentLookup:P,edges:C,edgeLookup:S,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:M,maxZoom:O,translateExtent:O9,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:l6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:N,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:W??!1,fitViewOptions:L,fitViewResolver:null,connection:{...CK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Hj,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:NK,zIndexMode:R,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},Yj=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M,maxZoom:O,nodeOrigin:T,nodeExtent:A,zIndexMode:R})=>yT((w,P)=>{async function V(){let{nodeLookup:S,panZoom:C,fitViewOptions:y,fitViewResolver:N,width:v,height:D,minZoom:x,maxZoom:E}=P();if(!C)return;await rM({nodes:S,width:v,height:D,panZoom:C,minZoom:x,maxZoom:E},y),N?.resolve(!0),w({fitViewResolver:null})}return{...QR({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:M,maxZoom:O,nodeOrigin:T,nodeExtent:A,defaultNodes:Z,defaultEdges:K,zIndexMode:R}),setNodes:(S)=>{let{nodeLookup:C,parentLookup:y,nodeOrigin:N,nodeExtent:v,elevateNodesOnSelect:D,fitViewQueued:x,zIndexMode:E,nodesSelectionActive:u}=P(),{nodesInitialized:b,hasSelectedNodes:m}=nq(S,C,y,{nodeOrigin:N,nodeExtent:v,elevateNodesOnSelect:D,checkEquality:!0,zIndexMode:E}),s=u&&m;if(x&&b)V(),w({nodes:S,nodesInitialized:b,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:s});else w({nodes:S,nodesInitialized:b,nodesSelectionActive:s})},setEdges:(S)=>{let{connectionLookup:C,edgeLookup:y}=P();dK(C,y,S),w({edges:S})},setDefaultNodesAndEdges:(S,C)=>{if(S){let{setNodes:y}=P();y(S),w({hasDefaultNodes:!0})}if(C){let{setEdges:y}=P();y(C),w({hasDefaultEdges:!0})}},updateNodeInternals:(S)=>{let{triggerNodeChanges:C,nodeLookup:y,parentLookup:N,domNode:v,nodeOrigin:D,nodeExtent:x,debug:E,fitViewQueued:u,zIndexMode:b}=P(),{changes:m,updatedInternals:s}=XT(S,y,N,v,D,x,b);if(!s)return;if(ZT(y,N,{nodeOrigin:D,nodeExtent:x,zIndexMode:b}),u)V(),w({fitViewQueued:!1,fitViewOptions:void 0});else w({});if(m?.length>0){if(E)console.log("React Flow: trigger node changes",m);C?.(m)}},updateNodePositions:(S,C=!1)=>{let y=[],N=[],{nodeLookup:v,triggerNodeChanges:D,connection:x,updateConnection:E,onNodesChangeMiddlewareMap:u}=P();for(let[b,m]of S){let s=v.get(b),U1=!!(s?.expandParent&&s?.parentId&&m?.position),Q1={id:b,type:"position",position:U1?{x:Math.max(0,m.position.x),y:Math.max(0,m.position.y)}:m.position,dragging:C};if(s&&x.inProgress&&x.fromNode.id===s.id){let h=i6(s,x.fromHandle,E1.Left,!0);E({...x,from:h})}if(U1&&s.parentId)y.push({id:b,parentId:s.parentId,rect:{...m.internals.positionAbsolute,width:m.measured.width??0,height:m.measured.height??0}});N.push(Q1)}if(y.length>0){let{parentLookup:b,nodeOrigin:m}=P(),s=eq(y,v,b,m);N.push(...s)}for(let b of u.values())N=b(N);D(N)},triggerNodeChanges:(S)=>{let{onNodesChange:C,setNodes:y,nodes:N,hasDefaultNodes:v,debug:D}=P();if(S?.length){if(v){let x=YR(S,N);y(x)}if(D)console.log("React Flow: trigger node changes",S);C?.(S)}},triggerEdgeChanges:(S)=>{let{onEdgesChange:C,setEdges:y,edges:N,hasDefaultEdges:v,debug:D}=P();if(S?.length){if(v){let x=rS(S,N);y(x)}if(D)console.log("React Flow: trigger edge changes",S);C?.(S)}},addSelectedNodes:(S)=>{let{multiSelectionActive:C,edgeLookup:y,nodeLookup:N,triggerNodeChanges:v,triggerEdgeChanges:D}=P();if(C){let x=S.map((E)=>e8(E,!0));v(x);return}v(C9(N,new Set([...S]),!0)),D(C9(y))},addSelectedEdges:(S)=>{let{multiSelectionActive:C,edgeLookup:y,nodeLookup:N,triggerNodeChanges:v,triggerEdgeChanges:D}=P();if(C){let x=S.map((E)=>e8(E,!0));D(x);return}D(C9(y,new Set([...S]))),v(C9(N,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:C}={})=>{let{edges:y,nodes:N,nodeLookup:v,triggerNodeChanges:D,triggerEdgeChanges:x}=P(),E=S?S:N,u=C?C:y,b=[];for(let s of E){if(!s.selected)continue;let U1=v.get(s.id);if(U1)U1.selected=!1;b.push(e8(s.id,!1))}let m=[];for(let s of u){if(!s.selected)continue;m.push(e8(s.id,!1))}D(b),x(m)},setMinZoom:(S)=>{let{panZoom:C,maxZoom:y}=P();C?.setScaleExtent([S,y]),w({minZoom:S})},setMaxZoom:(S)=>{let{panZoom:C,minZoom:y}=P();C?.setScaleExtent([y,S]),w({maxZoom:S})},setTranslateExtent:(S)=>{P().panZoom?.setTranslateExtent(S),w({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:C,triggerNodeChanges:y,triggerEdgeChanges:N,elementsSelectable:v}=P();if(!v)return;let D=C.reduce((E,u)=>u.selected?[...E,e8(u.id,!1)]:E,[]),x=S.reduce((E,u)=>u.selected?[...E,e8(u.id,!1)]:E,[]);y(D),N(x)},setNodeExtent:(S)=>{let{nodes:C,nodeLookup:y,parentLookup:N,nodeOrigin:v,elevateNodesOnSelect:D,nodeExtent:x,zIndexMode:E}=P();if(S[0][0]===x[0][0]&&S[0][1]===x[0][1]&&S[1][0]===x[1][0]&&S[1][1]===x[1][1])return;nq(C,y,N,{nodeOrigin:v,nodeExtent:S,elevateNodesOnSelect:D,checkEquality:!1,zIndexMode:E}),w({nodeExtent:S})},panBy:(S)=>{let{transform:C,width:y,height:N,panZoom:v,translateExtent:D}=P();return KT({delta:S,panZoom:v,transform:C,translateExtent:D,width:y,height:N})},setCenter:async(S,C,y)=>{let{width:N,height:v,maxZoom:D,panZoom:x}=P();if(!x)return!1;let E=typeof y?.zoom<"u"?y.zoom:D;return await x.setViewport({x:N/2-S*E,y:v/2-C*E,zoom:E},{duration:y?.duration,ease:y?.ease,interpolate:y?.interpolate}),!0},cancelConnection:()=>{w({connection:{...CK}})},updateConnection:(S)=>{w({connection:S})},reset:()=>w({...QR()})}},Object.is);function eK({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:L,initialFitViewOptions:M,fitView:O,nodeOrigin:T,nodeExtent:A,zIndexMode:R,children:w}){let[P]=W1.useState(()=>Yj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:O,minZoom:W,maxZoom:L,fitViewOptions:M,nodeOrigin:T,nodeExtent:A,zIndexMode:R}));return K1.jsx(fS,{value:P,children:K1.jsx(nS,{children:K1.jsx(zv,{children:w})})})}function zj({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:H,width:Y,height:W,fitView:L,fitViewOptions:M,minZoom:O,maxZoom:T,nodeOrigin:A,nodeExtent:R,zIndexMode:w}){if(W1.useContext(GU))return K1.jsx(K1.Fragment,{children:Q});return K1.jsx(eK,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:L,initialFitViewOptions:M,initialMinZoom:O,initialMaxZoom:T,nodeOrigin:A,nodeExtent:R,zIndexMode:w,children:Q})}var Wj={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Lj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:L,onEdgeClick:M,onInit:O,onMove:T,onMoveStart:A,onMoveEnd:R,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,onNodeMouseEnter:y,onNodeMouseMove:N,onNodeMouseLeave:v,onNodeContextMenu:D,onNodeDoubleClick:x,onNodeDragStart:E,onNodeDrag:u,onNodeDragStop:b,onNodesDelete:m,onEdgesDelete:s,onDelete:U1,onSelectionChange:Q1,onSelectionDragStart:h,onSelectionDrag:g,onSelectionDragStop:p,onSelectionContextMenu:c,onSelectionStart:l,onSelectionEnd:o,onBeforeDelete:k,connectionMode:t,connectionLineType:_1=$3.Bezier,connectionLineStyle:a,connectionLineComponent:H1,connectionLineContainerStyle:O1,deleteKeyCode:L1="Backspace",selectionKeyCode:T1="Shift",selectionOnDrag:G1=!1,selectionMode:R1=a8.Full,panActivationKeyCode:f1="Space",multiSelectionKeyCode:z1=N9()?"Meta":"Control",zoomActivationKeyCode:C1=N9()?"Meta":"Control",snapToGrid:b1,snapGrid:c1,onlyRenderVisibleElements:k1=!1,selectNodesOnDrag:A1,nodesDraggable:e1,autoPanOnNodeFocus:D1,nodesConnectable:g0,nodesFocusable:_0,nodeOrigin:t0=KR,edgesFocusable:C2,edgesReconnectable:u2,elementsSelectable:b2=!0,defaultViewport:f2=mS,minZoom:T2=0.5,maxZoom:G2=2,translateExtent:R2=O9,preventScrolling:I4=!0,nodeExtent:X5,defaultMarkerColor:x5="#b1b1b7",zoomOnScroll:q4=!0,zoomOnPinch:R5=!0,panOnScroll:G3=!1,panOnScrollSpeed:O5=0.5,panOnScrollMode:j=h3.Free,zoomOnDoubleClick:q1=!0,panOnDrag:I1=!0,onPaneClick:P1,onPaneMouseEnter:y1,onPaneMouseMove:i1,onPaneMouseLeave:r1,onPaneScroll:F0,onPaneContextMenu:x1,paneClickDistance:K2=1,nodeClickDistance:E2=0,children:$1,onReconnect:B1,onReconnectStart:v1,onReconnectEnd:V1,onEdgeContextMenu:Q0,onEdgeDoubleClick:u1,onEdgeMouseEnter:m1,onEdgeMouseMove:J0,onEdgeMouseLeave:T0,reconnectRadius:Z2=10,onNodesChange:K0,onEdgesChange:S2,noDragClassName:w0="nodrag",noWheelClassName:Z7="nowheel",noPanClassName:K5="nopan",fitView:V0,fitViewOptions:F7,connectOnClick:sJ,attributionPosition:tJ,proOptions:r3,defaultEdgeOptions:oJ,elevateNodesOnSelect:nJ=!0,elevateEdgesOnSelect:eJ=!1,disableKeyboardA11y:j9=!1,autoPanOnConnect:_$,autoPanOnNodeDrag:o2,autoPanOnSelection:a3=!0,autoPanSpeed:Z3,connectionRadius:J$,isValidConnection:a6,onError:X7,style:V9,id:s3,nodeDragThreshold:t3,connectionDragThreshold:y9,viewport:BU,onViewportChange:AU,width:$$,height:k9,colorMode:D9="light",debug:Q$,onScroll:u9,ariaLabelConfig:q$,zIndexMode:U$="basic",...G$},b9){let o3=s3||"1",s6=lS(D9),MU=W1.useCallback((E9)=>{E9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),u9?.(E9)},[u9]);return K1.jsx("div",{"data-testid":"rf__wrapper",...G$,onScroll:MU,style:{...V9,...Wj},ref:b9,className:_2(["react-flow",H,s6]),id:s3,role:"application",children:K1.jsxs(zj,{nodes:Q,edges:U,width:$$,height:k9,fitView:V0,fitViewOptions:F7,minZoom:T2,maxZoom:G2,nodeOrigin:t0,nodeExtent:X5,zIndexMode:U$,children:[K1.jsx(cS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,nodesDraggable:e1,autoPanOnNodeFocus:D1,nodesConnectable:g0,nodesFocusable:_0,edgesFocusable:C2,edgesReconnectable:u2,elementsSelectable:b2,elevateNodesOnSelect:nJ,elevateEdgesOnSelect:eJ,minZoom:T2,maxZoom:G2,nodeExtent:X5,onNodesChange:K0,onEdgesChange:S2,snapToGrid:b1,snapGrid:c1,connectionMode:t,translateExtent:R2,connectOnClick:sJ,defaultEdgeOptions:oJ,fitView:V0,fitViewOptions:F7,onNodesDelete:m,onEdgesDelete:s,onDelete:U1,onNodeDragStart:E,onNodeDrag:u,onNodeDragStop:b,onSelectionDrag:g,onSelectionDragStart:h,onSelectionDragStop:p,onMove:T,onMoveStart:A,onMoveEnd:R,noPanClassName:K5,nodeOrigin:t0,rfId:o3,autoPanOnConnect:_$,autoPanOnNodeDrag:o2,autoPanSpeed:Z3,onError:X7,connectionRadius:J$,isValidConnection:a6,selectNodesOnDrag:A1,nodeDragThreshold:t3,connectionDragThreshold:y9,onBeforeDelete:k,debug:Q$,ariaLabelConfig:q$,zIndexMode:U$}),K1.jsx(Kj,{onInit:O,onNodeClick:L,onEdgeClick:M,onNodeMouseEnter:y,onNodeMouseMove:N,onNodeMouseLeave:v,onNodeContextMenu:D,onNodeDoubleClick:x,nodeTypes:Y,edgeTypes:W,connectionLineType:_1,connectionLineStyle:a,connectionLineComponent:H1,connectionLineContainerStyle:O1,selectionKeyCode:T1,selectionOnDrag:G1,selectionMode:R1,deleteKeyCode:L1,multiSelectionKeyCode:z1,panActivationKeyCode:f1,zoomActivationKeyCode:C1,onlyRenderVisibleElements:k1,defaultViewport:f2,translateExtent:R2,minZoom:T2,maxZoom:G2,preventScrolling:I4,zoomOnScroll:q4,zoomOnPinch:R5,zoomOnDoubleClick:q1,panOnScroll:G3,panOnScrollSpeed:O5,panOnScrollMode:j,panOnDrag:I1,autoPanOnSelection:a3,onPaneClick:P1,onPaneMouseEnter:y1,onPaneMouseMove:i1,onPaneMouseLeave:r1,onPaneScroll:F0,onPaneContextMenu:x1,paneClickDistance:K2,nodeClickDistance:E2,onSelectionContextMenu:c,onSelectionStart:l,onSelectionEnd:o,onReconnect:B1,onReconnectStart:v1,onReconnectEnd:V1,onEdgeContextMenu:Q0,onEdgeDoubleClick:u1,onEdgeMouseEnter:m1,onEdgeMouseMove:J0,onEdgeMouseLeave:T0,reconnectRadius:Z2,defaultMarkerColor:x5,noDragClassName:w0,noWheelClassName:Z7,noPanClassName:K5,rfId:o3,disableKeyboardA11y:j9,nodeExtent:X5,viewport:BU,onViewportChange:AU,nodesDraggable:e1}),K1.jsx(xS,{onSelectionChange:Q1}),$1,K1.jsx(DS,{proOptions:r3,position:tJ}),K1.jsx(kS,{rfId:o3,disableKeyboardA11y:j9})]})})}var hR=zR(Lj);function xR(Q){let[U,Z]=W1.useState(Q),K=W1.useCallback((H)=>Z((Y)=>YR(H,Y)),[]);return[U,Z,K]}var kg=F5.error014();function Bj({dimensions:Q,lineWidth:U,variant:Z,className:K}){return K1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:_2(["react-flow__background-pattern",Z,K])})}function Aj({radius:Q,className:U}){return K1.jsx("circle",{cx:Q,cy:Q,r:Q,className:_2(["react-flow__background-pattern","dots",U])})}var Q3;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(Q3||(Q3={}));var Mj={[Q3.Dots]:1,[Q3.Lines]:1,[Q3.Cross]:6},Tj=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function mR({id:Q,variant:U=Q3.Dots,gap:Z=20,size:K,lineWidth:H=1,offset:Y=0,color:W,bgColor:L,style:M,className:O,patternClassName:T}){let A=W1.useRef(null),{transform:R,patternId:w}=L0(Tj,i0),P=K||Mj[U],V=U===Q3.Dots,S=U===Q3.Cross,C=Array.isArray(Z)?Z:[Z,Z],y=[C[0]*R[2]||1,C[1]*R[2]||1],N=P*R[2],v=Array.isArray(Y)?Y:[Y,Y],D=S?[N,N]:y,x=[v[0]*R[2]+D[0]/2,v[1]*R[2]+D[1]/2],E=`${w}${Q?Q:""}`;return K1.jsxs("svg",{className:_2(["react-flow__background",O]),style:{...M,...ZU,"--xy-background-color-props":L,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[K1.jsx("pattern",{id:E,x:R[0]%y[0],y:R[1]%y[1],width:y[0],height:y[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${x[0]},-${x[1]})`,children:V?K1.jsx(Aj,{radius:N/2,className:T}):K1.jsx(Bj,{dimensions:D,lineWidth:H,variant:U,className:T})}),K1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}mR.displayName="Background";var gR=W1.memo(mR);function Rj(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:K1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Oj(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:K1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Ij(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:K1.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function wj(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:K1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Pj(){return K1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:K1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function QU({children:Q,className:U,...Z}){return K1.jsx("button",{type:"button",className:_2(["react-flow__controls-button",U]),...Z,children:Q})}var Nj=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function pR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:L,onInteractiveChange:M,className:O,children:T,position:A="bottom-left",orientation:R="vertical","aria-label":w}){let P=d0(),{isInteractive:V,minZoomReached:S,maxZoomReached:C,ariaLabelConfig:y}=L0(Nj,i0),{zoomIn:N,zoomOut:v,fitView:D}=lJ(),x=()=>{N(),Y?.()},E=()=>{v(),W?.()},u=()=>{D(H),L?.()},b=()=>{P.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),M?.(!V)};return K1.jsxs(q3,{className:_2(["react-flow__controls",R==="horizontal"?"horizontal":"vertical",O]),position:A,style:Q,"data-testid":"rf__controls","aria-label":w??y["controls.ariaLabel"],children:[U&&K1.jsxs(K1.Fragment,{children:[K1.jsx(QU,{onClick:x,className:"react-flow__controls-zoomin",title:y["controls.zoomIn.ariaLabel"],"aria-label":y["controls.zoomIn.ariaLabel"],disabled:C,children:K1.jsx(Rj,{})}),K1.jsx(QU,{onClick:E,className:"react-flow__controls-zoomout",title:y["controls.zoomOut.ariaLabel"],"aria-label":y["controls.zoomOut.ariaLabel"],disabled:S,children:K1.jsx(Oj,{})})]}),Z&&K1.jsx(QU,{className:"react-flow__controls-fitview",onClick:u,title:y["controls.fitView.ariaLabel"],"aria-label":y["controls.fitView.ariaLabel"],children:K1.jsx(Ij,{})}),K&&K1.jsx(QU,{className:"react-flow__controls-interactive",onClick:b,title:y["controls.interactive.ariaLabel"],"aria-label":y["controls.interactive.ariaLabel"],children:V?K1.jsx(Pj,{}):K1.jsx(wj,{})}),T]})}pR.displayName="Controls";var cR=W1.memo(pR);function Cj({id:Q,x:U,y:Z,width:K,height:H,style:Y,color:W,strokeColor:L,strokeWidth:M,className:O,borderRadius:T,shapeRendering:A,selected:R,onClick:w}){let{background:P,backgroundColor:V}=Y||{},S=W||P||V;return K1.jsx("rect",{className:_2(["react-flow__minimap-node",{selected:R},O]),x:U,y:Z,rx:T,ry:T,width:K,height:H,style:{fill:S,stroke:L,strokeWidth:M},shapeRendering:A,onClick:w?(C)=>w(C,Q):void 0})}var fj=W1.memo(Cj),Sj=(Q)=>Q.nodes.map((U)=>U.id),sK=(Q)=>Q instanceof Function?Q:()=>Q;function vj({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=fj,onClick:W}){let L=L0(Sj,i0),M=sK(U),O=sK(Q),T=sK(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return K1.jsx(K1.Fragment,{children:L.map((R)=>K1.jsx(Vj,{id:R,nodeColorFunc:M,nodeStrokeColorFunc:O,nodeClassNameFunc:T,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},R))})}function jj({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:L,onClick:M}){let{node:O,x:T,y:A,width:R,height:w}=L0((P)=>{let V=P.nodeLookup.get(Q);if(!V)return{node:void 0,x:0,y:0,width:0,height:0};let S=V.internals.userNode,{x:C,y}=V.internals.positionAbsolute,{width:N,height:v}=J4(S);return{node:S,x:C,y,width:N,height:v}},i0);if(!O||O.hidden||!DK(O))return null;return K1.jsx(L,{x:T,y:A,width:R,height:w,style:O.style,selected:!!O.selected,className:K(O),color:U(O),borderRadius:H,strokeColor:Z(O),strokeWidth:Y,shapeRendering:W,onClick:M,id:O.id})}var Vj=W1.memo(jj),yj=W1.memo(vj),kj=200,Dj=150,uj=(Q)=>!Q.hidden,bj=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?VK(n8(Q.nodeLookup,{filter:uj}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},qR=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,Ej=(Q,U)=>qR(Q.viewBB,U.viewBB)&&qR(Q.boundingRect,U.boundingRect)&&Q.rfId===U.rfId&&Q.panZoom===U.panZoom&&Q.translateExtent===U.translateExtent&&Q.flowWidth===U.flowWidth&&Q.flowHeight===U.flowHeight&&Q.ariaLabelConfig===U.ariaLabelConfig,hj="react-flow__minimap-desc";function lR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:L,bgColor:M,maskColor:O,maskStrokeColor:T,maskStrokeWidth:A,position:R="bottom-right",onClick:w,onNodeClick:P,pannable:V=!1,zoomable:S=!1,ariaLabel:C,inversePan:y,zoomStep:N=1,offsetScale:v=5}){let D=d0(),x=W1.useRef(null),{boundingRect:E,panZoom:u,viewBB:b,rfId:m,translateExtent:s,flowWidth:U1,flowHeight:Q1,ariaLabelConfig:h}=L0(bj,Ej),g=Q?.width??kj,p=Q?.height??Dj,c=E.width/g,l=E.height/p,o=Math.max(c,l),k=o*g,t=o*p,_1=v*o,a=E.x-(k-E.width)/2-_1,H1=E.y-(t-E.height)/2-_1,O1=k+_1*2,L1=t+_1*2,T1=`${hj}-${m}`,G1=W1.useRef(0),R1=W1.useRef();G1.current=o,W1.useEffect(()=>{let c1=D.getState().panZoom;if(x.current&&c1)return R1.current=AT({domNode:x.current,panZoom:c1,getTransform:()=>D.getState().transform,getViewScale:()=>G1.current}),()=>{R1.current?.destroy()}},[u]),W1.useEffect(()=>{R1.current?.update({translateExtent:s,width:U1,height:Q1,inversePan:y,pannable:V,zoomStep:N,zoomable:S})},[V,S,y,N,s,U1,Q1]);let f1=w?(c1)=>{let[k1,A1]=R1.current?.pointer(c1)||[0,0];w(c1,{x:k1,y:A1})}:void 0,z1=W1.useCallback((c1,k1)=>{let A1=D.getState().nodeLookup.get(k1).internals.userNode;P?.(c1,A1)},[P]),C1=P?z1:void 0,b1=C??h["minimap.ariaLabel"];return K1.jsx(q3,{position:R,style:{...Q,"--xy-minimap-background-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-background-color-props":typeof O==="string"?O:void 0,"--xy-minimap-mask-stroke-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-stroke-width-props":typeof A==="number"?A*o:void 0,"--xy-minimap-node-background-color-props":typeof K==="string"?K:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof W==="number"?W:void 0},className:_2(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:K1.jsxs("svg",{width:g,height:p,viewBox:`${a} ${H1} ${O1} ${L1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":T1,ref:x,onClick:f1,children:[b1&&K1.jsx("title",{id:T1,children:b1}),K1.jsx(yj,{onClick:C1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:L}),K1.jsx("path",{className:"react-flow__minimap-mask",d:`M${a-_1},${H1-_1}h${O1+_1*2}v${L1+_1*2}h${-O1-_1*2}z
247
+ M${b.x},${b.y}h${b.width}v${b.height}h${-b.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}lR.displayName="MiniMap";var iR=W1.memo(lR),xj=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,mj={[x3.Line]:"right",[x3.Handle]:"bottom-right"};function gj({nodeId:Q,position:U,variant:Z=x3.Handle,className:K,style:H=void 0,children:Y,color:W,minWidth:L=10,minHeight:M=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:R,autoScale:w=!0,shouldResize:P,onResizeStart:V,onResize:S,onResizeEnd:C}){let y=nK(),N=typeof Q==="string"?Q:y,v=d0(),D=W1.useRef(null),x=Z===x3.Handle,E=L0(W1.useCallback(xj(x&&w),[x,w]),i0),u=W1.useRef(null),b=U??mj[Z];W1.useEffect(()=>{if(!D.current||!N)return;if(!u.current)u.current=PT({domNode:D.current,nodeId:N,getStoreItems:()=>{let{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,domNode:p}=v.getState();return{nodeLookup:s,transform:U1,snapGrid:Q1,snapToGrid:h,nodeOrigin:g,paneDomNode:p}},onChange:(s,U1)=>{let{triggerNodeChanges:Q1,nodeLookup:h,parentLookup:g,nodeOrigin:p}=v.getState(),c=[],l={x:s.x,y:s.y},o=h.get(N);if(o&&o.expandParent&&o.parentId){let k=o.origin??p,t=s.width??o.measured.width??0,_1=s.height??o.measured.height??0,a={id:o.id,parentId:o.parentId,rect:{width:t,height:_1,...uK({x:s.x??o.position.x,y:s.y??o.position.y},{width:t,height:_1},o.parentId,h,k)}},H1=eq([a],h,g,p);c.push(...H1),l.x=s.x?Math.max(k[0]*t,s.x):void 0,l.y=s.y?Math.max(k[1]*_1,s.y):void 0}if(l.x!==void 0&&l.y!==void 0){let k={id:N,type:"position",position:{...l}};c.push(k)}if(s.width!==void 0&&s.height!==void 0){let t={id:N,type:"dimensions",resizing:!0,setAttributes:!R?!0:R==="horizontal"?"width":"height",dimensions:{width:s.width,height:s.height}};c.push(t)}for(let k of U1){let t={...k,type:"position"};c.push(t)}Q1(c)},onEnd:({width:s,height:U1})=>{let Q1={id:N,type:"dimensions",resizing:!1,dimensions:{width:s,height:U1}};v.getState().triggerNodeChanges([Q1])}});return u.current.update({controlPosition:b,boundaries:{minWidth:L,minHeight:M,maxWidth:O,maxHeight:T},keepAspectRatio:A,resizeDirection:R,onResizeStart:V,onResize:S,onResizeEnd:C,shouldResize:P}),()=>{u.current?.destroy()}},[b,L,M,O,T,A,V,S,C,P]);let m=b.split("-");return K1.jsx("div",{className:_2(["react-flow__resize-control","nodrag",...m,Z,K]),ref:D,style:{...H,scale:E,...W&&{[x?"backgroundColor":"borderColor"]:W}},children:Y})}var UR=W1.memo(gj);function dR({nodeId:Q,isVisible:U=!0,handleClassName:Z,handleStyle:K,lineClassName:H,lineStyle:Y,color:W,minWidth:L=10,minHeight:M=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,autoScale:R=!0,shouldResize:w,onResizeStart:P,onResize:V,onResizeEnd:S}){if(!U)return null;return K1.jsxs(K1.Fragment,{children:[IT.map((C)=>K1.jsx(UR,{className:H,style:Y,nodeId:Q,position:C,variant:x3.Line,color:W,minWidth:L,minHeight:M,maxWidth:O,maxHeight:T,onResizeStart:P,keepAspectRatio:A,autoScale:R,shouldResize:w,onResize:V,onResizeEnd:S},C)),OT.map((C)=>K1.jsx(UR,{className:Z,style:K,nodeId:Q,position:C,color:W,minWidth:L,minHeight:M,maxWidth:O,maxHeight:T,onResizeStart:P,keepAspectRatio:A,autoScale:R,shouldResize:w,onResize:V,onResizeEnd:S},C))]})}var pj=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function cj({children:Q}){let U=L0(pj);if(!U)return null;return GR.createPortal(Q,U)}var lj=(Q,U)=>Q?.internals.positionAbsolute.x!==U?.internals.positionAbsolute.x||Q?.internals.positionAbsolute.y!==U?.internals.positionAbsolute.y||Q?.measured.width!==U?.measured.width||Q?.measured.height!==U?.measured.height||Q?.selected!==U?.selected||Q?.internals.z!==U?.internals.z,ij=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,K]of Q)if(lj(K,U.get(Z)))return!1;return!0},dj=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function _H({nodeId:Q,children:U,className:Z,style:K,isVisible:H,position:Y=E1.Top,offset:W=10,align:L="center",...M}){let O=nK(),T=W1.useCallback((D)=>{return(Array.isArray(Q)?Q:[Q||O||""]).reduce((u,b)=>{let m=D.nodeLookup.get(b);if(m)u.set(m.id,m);return u},new Map)},[Q,O]),A=L0(T,ij),{x:R,y:w,zoom:P,selectedNodesCount:V}=L0(dj,i0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let C=n8(A),y=Array.from(A.values()),N=Math.max(...y.map((D)=>D.internals.z+1)),v={position:"absolute",transform:UT(C,{x:R,y:w,zoom:P},Y,W,L),zIndex:N,...K};return K1.jsx(cj,{children:K1.jsx("div",{style:v,className:_2(["react-flow__node-toolbar",Z]),...M,"data-id":y.reduce((D,x)=>`${D}${x.id} `,"").trim(),children:U})})}function XU(Q={}){let U=(K,H)=>Q.tools?`${H} (\`${K}\`)`:`\`${K}\``,Z=["Set up Volter World for this app, so its calls to Stripe, Slack, GitHub, OpenAI and the other services it uses go to local twins instead of the real APIs. The app keeps its real SDKs and code.","",Q.tools?"1. You have the Volter World tools (volter mcp). If the `volter` command is missing, install it: `npm install -g @volter/world`.":"1. Install the command and your agent tooling: `npm install -g @volter/world`, then `volter agents install --yes`.",`2. In the app's folder, ${U("volter world init --install","world_init")}: it detects the vendors the app calls and installs their twins. Show me the vendors it detected and why, before keeping them.`,`3. ${Q.tools?"Start it with world_up":"Start it: `volter world up`"}, then run the tests inside it: ${U("volter world run -- <the test command>","world_run")}. Fix anything that fails because a call went to the real service.`,`4. Tell me what the app did at each vendor (${U("volter world log","world_log")}), and give me the dashboard link (${Q.tools?"world_view":"`volter world view --no-open`, started in the background: it keeps running"}).`];if(Q.platform){let K=Q.world??"<org>/<world>";Z.push(`5. Share it with my team on ${Q.platform}: ${U(`volter login ${Q.platform}`,"platform_login")} gives a link and a code for me to approve in my browser. Once I have, link it with ${U(`volter remote add origin ${K} --create`,"remote_link with create: true")}${Q.world?"":" (ask me for <org>/<world>)"}, then send what the app did: ${U('volter world changeset -m "<what and why>"',"world_changeset")} and ${U("volter world push","world_push")}.`)}return Z.push("","The guide: https://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),Z.join(`
248
+ `)}var rR={"git-commit-horizontal":[["rect",{x:"9",y:"9",width:"6",height:"6"}],["path",{d:"M3 12h6M15 12h6"}]],"arrow-down-to-line":[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]],"arrow-up-from-line":[["path",{d:"m18 9-6-6-6 6"}],["path",{d:"M12 3v14"}],["path",{d:"M5 21h14"}]],"git-branch":[["rect",{x:"4",y:"3",width:"4",height:"4"}],["rect",{x:"4",y:"17",width:"4",height:"4"}],["rect",{x:"16",y:"5",width:"4",height:"4"}],["path",{d:"M6 7v10M18 9v2a4 4 0 0 1-4 4H6"}]],monitor:[["rect",{x:"3",y:"4",width:"18",height:"13"}],["path",{d:"M8 21h8M12 17v4"}]],vault:[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"6.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 7.9 2.7 2.7"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 10.6 2.7-2.7"}],["rect",{x:"6.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 16.1 2.7-2.7"}],["rect",{x:"15.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 13.4 2.7 2.7"}],["circle",{cx:"12",cy:"12",r:"2"}]],settings:[["circle",{cx:"12",cy:"12",r:"3"}],["circle",{cx:"12",cy:"12",r:"7"}],["path",{d:"M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9L7 7M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"}]],history:[["path",{d:"M3 12a9 9 0 1 0 3-6.7"}],["path",{d:"M3 4v5h5"}],["path",{d:"M12 7v5l3 3"}]],activity:[["path",{d:"M2 12h4l3-8 6 16 3-8h4"}]],"file-diff":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M9 10h6"}],["path",{d:"M12 13V7"}],["path",{d:"M9 17h6"}]],"square-plus":[["rect",{x:"4",y:"4",width:"16",height:"16"}],["path",{d:"M12 8v8M8 12h8"}]],"square-minus":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["path",{d:"M8 12h8"}]],"square-dot":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"10.8",y:"10.8",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],cloud:[["path",{d:"M7 19a5 5 0 0 1-.5-10A6 6 0 0 1 18 8a4.5 4.5 0 0 1 .5 11z"}]],"refresh-cw":[["path",{d:"M20 12a8 8 0 0 1-14.3 4.9M4 12a8 8 0 0 1 14.3-4.9"}],["path",{d:"M19 3v5h-5M5 21v-5h5"}]],clock:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M12 7v5l3 3"}]],"key-round":[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],plug:[["path",{d:"M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0zM12 18v3"}]],"list-checks":[["path",{d:"M11 6h9M11 12h9M11 18h9"}],["path",{d:"M3 6l1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17"}]],palette:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}],["rect",{x:"12.3",y:"5.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"16.3",y:"9.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"5.3",y:"11.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"7.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],check:[["path",{d:"M4 12l5 5L20 6"}]],plus:[["path",{d:"M12 4v16M4 12h16"}]],"chevron-down":[["path",{d:"M5 9l7 7 7-7"}]],"external-link":[["path",{d:"M14 4h6v6M20 4l-9 9"}],["path",{d:"M18 14v6H4V6h6"}]],"table-2":[["path",{d:"M3 9h18"}],["path",{d:"M9 3v18"}],["rect",{x:"3",y:"3",width:"18",height:"18"}]],"scroll-text":[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]],"layout-grid":[["rect",{x:"4",y:"4",width:"7",height:"7"}],["rect",{x:"13",y:"4",width:"7",height:"7"}],["rect",{x:"4",y:"13",width:"7",height:"7"}],["rect",{x:"13",y:"13",width:"7",height:"7"}]],globe:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"}]],"arrow-left":[["path",{d:"M20 12H5M11 6l-6 6 6 6"}]],link:[["path",{d:"M9 15l6-6"}],["path",{d:"M11 6l2-2a4.2 4.2 0 0 1 6 6l-2 2M13 18l-2 2a4.2 4.2 0 0 1-6-6l2-2"}]],user:[["circle",{cx:"12",cy:"8",r:"4"}],["path",{d:"M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"}]],"log-out":[["path",{d:"M10 4H4v16h6M9 12h11M16 8l4 4-4 4"}]]};var F=s0(u8(),1),HU="volter.console.token",U7=document.getElementById("root"),n1=U7.dataset.base??"/-/console",P0=window.location.origin,c3=(U7.dataset.worlds??P0).replace(/\/+$/,""),QO=(U7.dataset.names??"").split(",").filter((Q)=>Q!==""),p3=U7.dataset.worldOrigin==="1",q7=window.fetch.bind(window),d6="(session)",qO="(pass)",iJ=(Q)=>{try{if(Q&&!p3)sessionStorage.setItem(HU,Q);else sessionStorage.removeItem(HU);localStorage.removeItem(HU)}catch{}},UO="volter.console.portal",GO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(UO,new URL(Q).origin)}catch{}},rj=()=>{return G7.get("token")??""},t2=()=>{try{let Q=sessionStorage.getItem(UO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},aj=()=>{let Q=rj();if(p3){if(iJ(""),G7.get("pass"))return qO;let U=new URLSearchParams(window.location.search).has("signin");if(U)try{window.history.replaceState(null,"",window.location.pathname+window.location.hash)}catch{}return Q||(U?"":d6)}if(Q)return iJ(Q),Q;try{return sessionStorage.getItem(HU)??""}catch{return""}};function M2(Q){let U=Q.trim();if(/not ready/i.test(U)&&/(never verified|not verified|no approvals)/i.test(U)){let Y=[],W=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),W.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),W.push("approve");return{text:`Not ready to deploy: ${E8(Y)}.`,acts:W}}let Z=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(Z)return{text:`No credential is sealed for ${s1(Z[1])}: seal one in Settings › Vault.`,acts:["vault"]};if(/has no origin/i.test(U))return{text:"This World has no remote: name one in Settings › Remote.",acts:["remote"]};let K=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(K){let Y=K[1].split(/,\s*/).filter(Boolean).map(s1);return{text:`${E8(Y)} ${Y.length===1?"is":"are"} not connected to ${Y.length===1?"its":"their"} real service: Settings › Real services.`,acts:["settings"]}}if(/opening a seal is/i.test(U))return{text:"A key cannot seal a credential: open the World as yourself.",acts:[]};if(/a key manages no keys/i.test(U))return{text:"A key cannot manage keys: open the World as yourself.",acts:[]};if(/^PUT origin:/i.test(U))return{text:"That is not a World's address: https://<host>/<org>/<world>",acts:[]};if(/^clock: \{/i.test(U))return{text:"Pick a date and time.",acts:[]};if(/^advance: \{/i.test(U))return{text:"Advance by a number and a unit: 90m, 12h, 3d.",acts:[]};if(/^branches: \{/i.test(U))return{text:"That branch could not be made: pick now, or an instant before it.",acts:[]};if(/^approve: \{/i.test(U))return{text:"Name who approves.",acts:[]};if(/a browser deploys only what it names/i.test(U))return{text:"A deploy is confirmed by its name: use Deploy again.",acts:[]};if(/^no such door/i.test(U))return{text:"This World does not answer that here.",acts:[]};return{text:U.replace(/\s*[—–-]+\s*(?:run\s+)?`[^`]*`/g,"").replace(/\s*[—–-]+\s*(?:PUT|POST|GET|DELETE)\s+\/-\/\S+(?:\s*\{[^}]*\})?/g,"").replace(/\s*\(\s*`[^`]*`\s*\)/g,"").replace(/`(?:volter|printf|curl|npm|bun)[^`]*`/g,"").replace(/:\s*\{[^}]*\}/g,"").replace(/\(\s*\)/g,"").replace(/\s*;\s*(?=[;.]|$)/g,"").replace(/\s+([,.;:])/g,"$1").trim()||Q,acts:[]}}var T5=async(Q)=>M2(await k3(Q)).text,sj={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function ZO({name:Q,acts:U}){let Z=U.map((K)=>sj[K]).filter((K)=>Boolean(K));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([K,H])=>F.jsxDEV(F1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${n1}/${Q}/~/${K}`,onClick:(Y)=>{Y.preventDefault(),f0([...Q.split("/"),"~",...K.split("/")])},children:H},void 0,!1,void 0,this)]},K,!0,void 0,this))},void 0,!1,void 0,this)}async function O0(Q,U,Z={}){return q7(`${P0}${U}`,{...Z,headers:{...Z.headers??{},...Q===d6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function y0(Q,U,Z=0){let K=mA((H)=>O0(Q,H),U,Z,Q);return K.state==="error"?{...K,error:M2(K.error).text}:K}var v9=(Q)=>{let U=new Date(Q),Z=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},aR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),FO=(Q)=>Q.operation==="observed"?`observed${Q.provenance==="placeholder"?" (default data)":" (vendor)"}`:Q.receipt?`${Q.receipt.status??""} ${Q.receipt.externalId??""} ${Q.receipt.reason??""}`.trim():Q.provenance==="placeholder"?"default data":"unpushed",tj=(Q)=>{let U=/^[0-9a-f]{2}-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/.exec(Q??"");return U?{trace:U[1],span:U[2]}:null},GH="volter.console.snapshots",l3=()=>{try{return JSON.parse(sessionStorage.getItem(GH)??"{}")}catch{return{}}},XO=new Map,ZH=(Q)=>{if(p3){if(Q.token||Q.readToken)XO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(GH,JSON.stringify({...l3(),[Q.name]:Q}))}catch{}},FH=(Q)=>XO.get(Q)?.readToken||l3()[Q]?.readToken||"",YU=(Q)=>{try{let U=l3();delete U[Q],sessionStorage.setItem(GH,JSON.stringify(U))}catch{}},G7=new URLSearchParams(window.location.hash.slice(1)),f9=G7.get("close")??"";function rJ(Q){if(typeof Q!=="string")return null;let U;try{U=new URL(Q)}catch{return null}return(U.protocol==="http:"||U.protocol==="https:")&&U.origin===Q.replace(/\/+$/,"")?U:null}function XH(Q){let U=rJ(Q);if(!U)return null;let Z=new URL(P0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let K=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!K.test(U.hostname))return null;let H=U.hostname.replace(K,"");return H===Z.hostname||K.test(Z.hostname)&&H===Z.hostname.replace(K,"")?U.origin:null}function oj(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:XH(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...K?{parentOrigin:K}:{}}}{let Q=G7.get("snapshot");if(Q){let U=oj(Q);if(U&&!l3()[U.name])ZH(U)}}var KO="volter.console.home",HO=(Q)=>{let U=rJ(Q);if(!U)return null;let Z=new URL(P0).hostname,K=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===K?U.origin:null};{let Q=HO(G7.get("home"));if(Q)try{sessionStorage.setItem(KO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>G7.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var O4=()=>{try{return HO(sessionStorage.getItem(KO))??""}catch{return""}};function KH(Q,U,Z,K){let H=new URLSearchParams({token:U,home:O4()||P0}),Y=l3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var qH=U7.dataset.route==="memory"?"":null;function J7(){return(qH??window.location.pathname.slice(n1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var sR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,g3=(Q,U)=>Q&&U&&sR.test(Q)&&sR.test(U)?`${Q}/${U}`:"";function f0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(qH!==null)qH=U;else window.history.pushState(null,"",`${n1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function YO(Q,U){let Z=XH(l3()[Q]?.origin);if(Z&&Z!==P0){KH(Z,FH(Q),Q,`${n1}/${U.map(encodeURIComponent).join("/")}`);return}f0(U)}async function tR(){let[Q,U]=J7(),Z=g3(Q,U),K=Z?[Z]:QO;if(K.length===0){let H=await q7(`${P0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,W,...L]=H.split("/");return L.length===0&&g3(Y,W)===H});for(let H of K){let Y=await q7(`${P0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),L=rJ(W.origin)?.origin;if(Y.status===409&&L&&L!==P0)return window.location.replace(`${L}${n1}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:d6}}return null}function nj(){let[Q,U]=F1.useState(tF),Z=(K)=>()=>{try{if(K==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",K)}catch{}Aq(K),U(K)};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Appearance",children:["system","light","dark"].map((K)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===K,onClick:Z(K),children:K==="system"?"System":K==="light"?"Light":"Dark"},K,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ej(){let[Q,U]=F1.useState(aj()),[Z,K]=F1.useState(!1),[H,Y]=F1.useState(!1),[W,L]=F1.useState(""),[M,O]=F1.useState(null),[T,A]=F1.useState(null),[R,w]=F1.useState(J7());F1.useEffect(()=>{let _1=()=>w(J7());return window.addEventListener("popstate",_1),()=>window.removeEventListener("popstate",_1)},[]),F1.useEffect(()=>{let[_1,a]=J7(),H1=g3(_1,a),[O1,L1]=H1?H1.split("/"):[],T1=l3()[f9];if(!f9||!Q||!O1||!L1||!T1?.made||T1.parent!==`${O1}/${L1}`||g3(...f9.split("/"))!==f9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}O0(Q,`/-/${O1}/${L1}/branches/${f9}`,{method:"DELETE"}).catch(()=>null).then(()=>YU(f9))},[Q]);let P=F1.useCallback(async(_1)=>{if(A(null),!_1){let L1=await tR();if(L1==="moved")return;if(L1){if(K(!0),L1.token!==d6)iJ(L1.token);U(L1.token);return}O(null),Y(!0);return}if(p3&&_1===d6){let L1=await tR();if(L1==="moved")return;if(L1)K(!0)}if(p3&&_1===qO){let[L1,T1]=J7(),G1=g3(L1,T1),[R1,f1]=G1?G1.split("/"):[],z1=R1&&f1?await q7(`${P0}/-/${R1}/${f1}/session`,{method:"POST",headers:{"x-volter-pass":G7.get("pass")??""}}).catch(()=>null):null;if(!z1){A(`${P0} did not answer: no session was opened`),O(null);return}if(!z1.ok){A(`${await T5(z1)}. Open it again from the platform.`),O(null);return}GO((await z1.json().catch(()=>({}))).issuer),U(d6);return}if(p3&&_1!==d6){let[L1,T1]=J7(),G1=g3(L1,T1),[R1,f1]=G1?G1.split("/"):[],z1=R1&&f1?await q7(`${P0}/-/${R1}/${f1}/session`,{method:"POST",headers:{"x-volter-token":_1}}).catch(()=>null):null;if(!z1){A(`${P0} did not answer: no session was opened`),O(null);return}if(!z1.ok){let C1=await T5(z1);A(z1.status===401||z1.status===403?`That token does not open ${R1}/${f1}.`:z1.status===409?`${R1}/${f1}'s session lives at another origin: ${C1}`:`The World could not open a session (${z1.status}): ${C1}`),O(null);return}U(d6);return}let a=p3?new Response(null,{status:404}):await O0(_1,"/-/worlds");if(a.ok){let{worlds:L1}=await a.json();O({kind:"admin",worlds:L1});return}if(a.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),O(null);return}if(a.status>=500){let L1=await a.json().catch(()=>({}));A(`The platform could not list your worlds${L1.error?`: ${L1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),O(null);return}let H1=QO;if(H1.length===0){let L1=await q7(`${P0}/-/ping`);if(!L1.ok){A(`${P0} does not answer as a host`),O(null);return}if(H1=(await L1.json()).worlds??[],H1.length===0){A(`${P0} does not list its Worlds: open a World at its own address, ${P0}${n1}/<org>/<world>`),O(null);return}}let O1=[];for(let L1 of H1){let T1=await O0(_1,`/-/${L1}/twins`);if(T1.ok){let G1=await T1.json();O1.push({name:L1,base:`${c3}/${L1}`,twins:(G1.twins??[]).map((R1)=>({vendor:R1.twin,protocol:R1.protocol??null,root:R1.root??null}))})}}if(O1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),O(null);return}O({kind:"world",worlds:O1})},[]);F1.useEffect(()=>{P(Q)},[Q,P]);let V=(_1)=>M?.kind==="admin"?M.worlds.find((a)=>a.name===_1)?.token??Q:Q,[S,C]=F1.useState("");if(!Q||!M&&!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(HJ,{href:`${n1}/`},void 0,!1,void 0,this),Q&&!M&&!T||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(_1)=>{_1.preventDefault(),iJ(W.trim()),U(W.trim())},className:"stack",children:[F.jsxDEV("h2",{children:"Open a World"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"A World's token opens that World. A host's admin token opens every World it serves."},void 0,!1,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Token"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"token",type:"password",value:W,onChange:(_1)=>L(_1.target.value),autoFocus:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let y=()=>A("This link or key opens no World here: it was revoked, or it has ended."),N=()=>{if(Z){window.location.reload();return}if(p3){let[_1,a]=J7(),H1=g3(_1,a),[O1,L1]=H1?H1.split("/"):[],T1=()=>window.location.replace(t2()?`${t2()}/`:`${P0}${n1}/${O1&&L1?`${O1}/${L1}`:""}?signin`);if(setTimeout(T1,2000),O1&&L1)q7(`${P0}/-/${O1}/${L1}/session/end`,{method:"POST"}).catch(()=>null).then(T1);else T1();return}if(M)for(let _1 of M.worlds)navigator.sendBeacon(`${_1.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${_1.name}/session/end`);iJ(""),U(""),L(""),O(null),f0([])};if(T||!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(HJ,{href:`${n1}/`},void 0,!1,void 0,this),F.jsxDEV("h2",{children:"Could not open it"},void 0,!1,void 0,this),F.jsxDEV("p",{role:"alert",children:T??"nothing answered"},void 0,!1,void 0,this),t2()?F.jsxDEV("a",{className:"button primary",href:`${t2()}/`,children:["Back to ",new URL(t2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:N,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let[v,D,x,E,u,b,m]=R,s=x==="~",U1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,h=s||!x||!U1.test(x)?void 0:x,g=u&&U1.test(u)?b!==void 0&&E!=="changes"&&E!=="screens"?g3(u,b)||void 0:u:void 0,p=E==="changes"&&u==="changesets"&&b&&U1.test(b)?b:E==="screens"&&b&&m&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(m)?`${b}:${m}`:void 0,c=g3(v,D),l=c?l3()[c]??null:null,o=(_1)=>FH(_1)||V(_1),k=l?M.kind==="admin"?M.worlds.find((_1)=>_1.name===l.parent)?.token??null:M.worlds.some((_1)=>_1.name===l.parent)?Q:null:null,t=async(_1)=>{let a=XH(_1.parentOrigin);if(a&&a!==P0){YU(_1.name),window.location.assign(`${a}${n1}/${_1.parent}#close=${encodeURIComponent(_1.name)}`);return}if(_1.made)await O0(V(_1.parent),`/-/${_1.parent}/branches/${_1.name}`,{method:"DELETE"}).catch(()=>null),YU(_1.name);f0(_1.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(iA,{},void 0,!1,void 0,this):null,F.jsxDEV(HJ,{href:`${O4()&&O4()!==P0?O4():""}${n1}/`,onClick:(_1)=>{if(O4()&&O4()!==P0)return;_1.preventDefault(),f0([])}},void 0,!1,void 0,this),F.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[c?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("span",{children:c.split("/")[0]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${n1}/${c}`,className:"crumb-world",onClick:(_1)=>{_1.preventDefault(),f0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,h?F.jsxDEV("span",{children:[" / ",h]},void 0,!0,void 0,this):null,s&&E==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),t2()?F.jsxDEV("a",{href:`${t2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(t2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(t2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,c?null:F.jsxDEV("span",{className:"mode",children:Z?"on this machine":S?`signed in as ${S}`:M.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:N,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(QV,{name:c,token:o(c),twin:h,tab:s?E??"overview":"overview",arg:s?g:void 0,...s&&p?{sub:p}:{},admin:l?null:M.kind==="admin"?Q:null,snapshot:l,parentToken:k,who:{local:Z,person:S||null,admin:M.kind==="admin"},onSignOut:N,onReturn:t,opens:(_1)=>!!l3()[_1]||M.kind==="admin"&&M.worlds.some((a)=>a.name===_1),onRemoved:()=>{P(Q),f0([])},onWho:C,onEnded:y,worlds:M.worlds.map((_1)=>_1.name)},c,!1,void 0,this):F.jsxDEV(_V,{mode:M,admin:M.kind==="admin"?Q:null,reload:()=>P(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _V({mode:Q,admin:U,reload:Z}){let[K,H]=F1.useState(""),[Y,W]=F1.useState(""),[L,M]=F1.useState(""),[O,T]=F1.useState(null),A=async(E)=>{if(!await n4({title:`Rotate the tokens of ${E}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let u=await O0(U,`/-/worlds/${E}/rotate`,{method:"POST"}),b=await u.json().catch(()=>({}));T(u.ok?`rotated ${E}: the new tokens are shown once — token ${b.token} · read token ${b.readToken}`:b.error?M2(b.error).text:`answered ${u.status}`),await Z()},R=async(E)=>{let u=await O0(U,`/-/worlds/${E}`,{method:"DELETE"}),b=await u.json().catch(()=>({}));T(u.ok?`removed ${E}`:b.error?M2(b.error).text:`answered ${u.status}`),await Z()},[w,P]=F1.useState(!1),[V,S]=F1.useState(!1),[C,y]=F1.useState(""),N=async(E)=>{E.preventDefault(),T(null),P(!0);try{let u=await O0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:L.split(",").map((m)=>m.trim()).filter(Boolean)})}),b=await u.json();if(!u.ok){T(b.error?M2(b.error).text:`the host answered ${u.status}`);return}T(`provisioned ${b.name}`),W(""),M(""),S(!1),await Z()}finally{P(!1)}},v=C.trim().toLowerCase(),D=Q.worlds.filter((E)=>!v||E.name.toLowerCase().includes(v)||E.twins.some((u)=>u.vendor.includes(v))),x=[...new Set(D.map((E)=>E.name.split("/")[0]))];return F.jsxDEV("section",{className:"home-window","aria-labelledby":"worlds",children:[F.jsxDEV("div",{className:"home-head",children:[F.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[l0(Q.worlds.length,"World")," ",U?"this host serves":"this key opens"]},void 0,!0,void 0,this),U?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{T(null),S(!0)},children:[F.jsxDEV(Z0,{name:"plus",size:16},void 0,!1,void 0,this),"New World"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"home-find",children:F.jsxDEV("input",{type:"search",placeholder:"Filter by World or vendor","aria-label":"Filter Worlds",value:C,onChange:(E)=>y(E.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),O&&!V?F.jsxDEV("p",{role:"status",className:"home-note",children:O},void 0,!1,void 0,this):null,x.map((E)=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:E},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:D.filter((u)=>u.name.split("/")[0]===E).map((u)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${n1}/${u.name}`,onClick:(b)=>{b.preventDefault(),f0(u.name.split("/"))},children:[F.jsxDEV(Z0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:u.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:u.base},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"home-vendors",children:u.twins.map((b)=>F.jsxDEV("span",{title:s1(b.vendor),children:F.jsxDEV(q2,{vendor:b.vendor},void 0,!1,void 0,this)},b.vendor,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?F.jsxDEV("details",{className:"menu home-more",children:[F.jsxDEV("summary",{"aria-label":`More for ${u.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(b)=>{b.currentTarget.closest("details")?.removeAttribute("open"),A(u.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(b)=>{b.currentTarget.closest("details")?.removeAttribute("open"),n4({title:`Remove ${u.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:u.name}).then((m)=>{if(m)R(u.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},u.name,!0,void 0,this))},void 0,!1,void 0,this)]},E,!0,void 0,this)),D.length===0?F.jsxDEV("p",{className:"mode home-note",children:v?`No World matches ${C}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(E5,{open:V,onClose:()=>{if(!w)S(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>S(!1),disabled:w,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:w,children:w?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:N,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:K,onChange:(E)=>H(E.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"world",value:Y,onChange:(E)=>W(E.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Vendors"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"vendors",value:L,onChange:(E)=>M(E.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O?F.jsxDEV("p",{role:"status",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var JV=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],$V=(Q,U)=>{let Z=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&Z?`${c3}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},oR={verify:"verified",use:"used",issue:"issued",revoke:"revoked",rotate:"rotated",seed:"seeded",upsert:"saved",set:"set",start:"started",finish:"finished",fail:"failed",schedule:"scheduled",deliver:"delivered",like:"liked",follow:"followed",reply:"replied",create:"created",update:"updated",delete:"deleted",record:"recorded",remove:"removed",add:"added",send:"sent",post:"posted",postmessage:"posted",cancel:"canceled",close:"closed",open:"opened",publish:"published",upload:"uploaded",invite:"invited",archive:"archived",merge:"merged",refund:"refunded",capture:"captured",confirm:"confirmed",pay:"paid"};function Q4(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),K=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${K.charAt(0).toUpperCase()}${K.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),W=U.replace(/[._]+/g," ").trim(),L=Y?`${H} seeded`:oR[Z]?`${H} ${oR[Z]}`:`${W.charAt(0).toUpperCase()}${W.slice(1)}`,M=Q.fields??{},O=["title","name","email","text","subject","summary","description"].map((A)=>M[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,T=O===null?null:O.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,R,w)=>`${R==="!"?"@":R}${w}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:L,label:T===null?null:T.length>80?`${T.slice(0,79)}…`:T}}var i3=(Q)=>/token|password|secret|key|credential/i.test(Q.subject.type)&&Q.subject.id.length>6?`••••${Q.subject.id.slice(-4)}`:Q.subject.id;function QV({name:Q,token:U,twin:Z,tab:K,arg:H,sub:Y,admin:W,snapshot:L,parentToken:M,who:O,onSignOut:T,onReturn:A,opens:R,onRemoved:w,onWho:P,onEnded:V,worlds:S=[]}){let[C,y]=F1.useState("pending"),[N,v]=F1.useState(null),[D,x]=F1.useState(0),[E,u]=F1.useState(null);F1.useEffect(()=>{let G1=!0;return v(null),O0(U,`/-/${Q}/session`,{method:"POST"}).then(async(R1)=>{let f1=await R1.json().catch(()=>({}));if(GO(f1.issuer),f1.who)P?.(f1.who);u(typeof f1.signsAs==="string"?f1.signsAs:null);let z1=rJ(f1.origin)?.origin;if(R1.status===409&&z1&&z1!==P0){KH(z1,U,Q);return}if(!G1)return;if(y(!R1.ok?"unknown":f1.scope==="read"?"read":f1.scope==="write"?"write":"unknown"),!R1.ok)v(f1.error?M2(f1.error).text:`answered ${R1.status}`)}).catch((R1)=>{if(G1)y("unknown"),v(`the World did not answer: ${R1 instanceof Error?R1.message:String(R1)}`)}),()=>{G1=!1}},[Q,U,D]);let b=N?{state:"error",error:N}:C==="pending"?{state:"pending"}:{state:"ok",scope:C},m=C==="write",s=(G1)=>{if(G1.status!==403)return;G1.clone().json().then((R1)=>{if(/read token|opens only reads|write access|reads only/i.test(R1?.error??""))y("read")},()=>null)},[U1,Q1]=F1.useState(0);F1.useEffect(()=>{let G1=setInterval(()=>{if(!document.hidden)Q1((R1)=>R1+1)},5000);return()=>clearInterval(G1)},[]);let[h,g]=F1.useState(0),p=y0(U,`/-/${Q}/clock`,U1+h);F1.useEffect(()=>{if(p3&&!L&&p.state==="error"&&p.status===401)V?.()},[p,L,V]);let c=y0(U,`/-/${Q}/twins`),l=y0(U,`/-/${Q}/branches`,h),o=y0(U,`/-/${Q}/map`,Math.floor(U1/2)),k=!(l.state==="error"&&(l.status===404||l.status===405)),t=JV.includes(K)?K:"overview",_1=c.state==="ok"?c.data.twins.map((G1)=>G1.twin):[];if(Z&&c.state==="ok"&&!_1.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(X9,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${n1}/${Q}`,onClick:(G1)=>{G1.preventDefault(),f0(Q.split("/"))},children:["Open ",Q]},void 0,!0,void 0,this),children:F.jsxDEV("p",{children:["No vendor of this World is called ",Z,". Its changesets are under Changes › History."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);let a=t==="vendors"&&H?H:void 0,H1=()=>{y("pending"),x((G1)=>G1+1)};if(t==="canvas"||t==="vendors"&&!a||K==="screens"&&!H)return F.jsxDEV(VV,{name:Q,token:U,twins:c,session:b,retry:H1,snapshot:L,back:()=>f0(Q.split("/")),canWrite:m&&!L},void 0,!1,void 0,this);let L1=K==="settings"?{kind:"settings",tab:((G1)=>zO.find(([R1])=>R1===G1)?.[0]??"account")(H)}:K==="remote"?{kind:"settings",tab:"remote"}:K==="vault"?{kind:"settings",tab:"vault"}:K==="branches"?{kind:"branches",...H?{open:H}:{}}:null,T1=Z?"vendor":K==="screens"&&H?"screen":t==="vendors"&&a?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(zV,{name:Q,token:U,view:T1,win:L1,who:O,snapshot:L,onReturn:A,onSignOut:T,worlds:S,session:b,retry:H1,...T1==="vendor"?{arg:Z??a}:T1==="events"||T1==="trace"||T1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:o,branches:k?l:null,clock:p,canWrite:m&&!L,refused:s,signsAs:E,opens:R,tick:U1,admin:W,onRemoved:w,onClock:()=>g((G1)=>G1+1),scope:L?"read":C},void 0,!1,void 0,this)}function Z0({name:Q,size:U=20}){return F.jsxDEV("svg",{className:"icon",viewBox:"0 0 24 24",width:U,height:U,fill:"none",stroke:"currentColor",strokeWidth:U<=16?1.75:1.5,strokeLinecap:"square",strokeLinejoin:"miter","aria-hidden":"true",children:(rR[Q]??[]).map(([Z,K],H)=>F1.default.createElement(Z,{key:H,...K}))},void 0,!1,void 0,this)}function WU(Q){let U=(Z)=>{let K=(Z.operation??Z.op).toLowerCase();return K.includes(".")?K.slice(K.lastIndexOf(".")+1):K};if(Q.some((Z)=>/^(delete|remove|archive|revoke)/.test(U(Z))||Z.fields?.deleted===!0))return{icon:"square-minus",word:"removed",tone:"removed"};if(/^(create|add|insert|issue|send|post|upload|invite|record|seed)/.test(U(Q[0])))return{icon:"square-plus",word:"made",tone:"added"};return{icon:"square-dot",word:"changed",tone:"changed"}}var zO=[["account","Account","user"],["changesets","Changesets","git-commit-horizontal"],["remote","Remote","cloud"],["access","Access","key-round"],["services","Real services","plug"],["vault","Vault","vault"],["checks","Checks","list-checks"],["clock","Clock","clock"],["appearance","Appearance","palette"]],qV=(Q,U)=>{let Z=U.split("/").pop()??U,K=Q.split("/").pop()??"";return Z.startsWith(`${K}-`)?Z.slice(K.length+1):Z},$7=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function WO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],K=Q4(Z),H=WU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),W=Q.writes[0].occurredAt,L={};if(U){for(let A of U)if(!Y.has(A.id)&&!A.landsId&&!A.aliasOf&&A.subject.type===Z.subject.type&&A.subject.id===Z.subject.id&&A.occurredAt<=W)Object.assign(L,A.fields??{})}let M={...L};for(let A of Q.writes)Object.assign(M,A.fields??{});let O=H.tone==="added"&&Object.keys(L).length===0,T=[...new Set([...Object.keys(L),...Object.keys(M)])].filter((A)=>!fO(L[A],M[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??i3(Z)}: its changes`,children:[F.jsxDEV("div",{className:"ws-diff-head",children:[F.jsxDEV("span",{className:`ws-kind ${H.tone}`,title:H.word,children:F.jsxDEV(Z0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(q2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??i3(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[s1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:i3(Z)},void 0,!1,void 0,this)," · ",H.word," here"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ol",{className:"ws-writes",children:Q.writes.map((A)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:Q4(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(j0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",dJ(A)]},void 0,!0,void 0,this)]},A.id,!0,void 0,this))},void 0,!1,void 0,this),U===null?F.jsxDEV("p",{className:"mode pad",children:"Reading its history…"},void 0,!1,void 0,this):T.length===0?F.jsxDEV("p",{className:"mode pad",children:"No field holds a new value."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"ws-fields","aria-label":"Fields before and after",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Field"},void 0,!1,void 0,this),O?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:H.tone==="removed"?"After":"Now"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:T.map((A)=>F.jsxDEV("tr",{children:[F.jsxDEV("th",{scope:"row",children:F.jsxDEV("code",{children:A},void 0,!1,void 0,this)},void 0,!1,void 0,this),O?null:F.jsxDEV("td",{className:A in L?"was":"none",children:A in L?F.jsxDEV(d3,{v:L[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:A in M?"now":"none",children:A in M?F.jsxDEV(d3,{v:M[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},A,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function LO({records:Q,selected:U,onPick:Z,label:K}){let[H,Y]=F1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),W=(O)=>{Y(O);try{localStorage.setItem("volter.console.records",O?"tree":"path")}catch{}},L=(O,T)=>{let A=O.writes[O.writes.length-1],R=Q4(A),w=WU(O.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===O.key?"on":"",T?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===O.key,onClick:()=>Z(O.key),children:[T?null:F.jsxDEV(q2,{vendor:O.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:R.label??i3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[$7(A.subject.type)," · ",R.what.split(" ").slice(-1)[0],O.writes.length>1?` · ${l0(O.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${w.tone}`,title:w.word,"aria-label":w.word,children:F.jsxDEV(Z0,{name:w.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},O.key,!1,void 0,this)},M=[...new Set(Q.map((O)=>O.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>W(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>W(!0),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"ws-list","aria-label":K,children:H?M.map((O)=>{let T=Q.filter((A)=>A.twin===O);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(q2,{vendor:O},void 0,!1,void 0,this),F.jsxDEV("b",{children:s1(O)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:T.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:T.map((A)=>L(A,!0))},void 0,!1,void 0,this)]},O,!0,void 0,this)}):Q.map((O)=>L(O,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function UV({name:Q,token:U,branches:Z,opens:K,refused:H,onChanged:Y}){let[W,L]=F1.useState(""),[M,O]=F1.useState(!1),T=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:T,running:!0}],R=Z?.state==="ok"?Z.data.branches:[],w=W.trim().toLowerCase(),P=(S)=>!w||S.toLowerCase().includes(w),V=(S)=>{S.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"The branch served here",children:[F.jsxDEV(Z0,{name:"git-branch",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("b",{children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(Z0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover ws-branch-menu",children:[F.jsxDEV("div",{className:"ws-branch-find",children:[F.jsxDEV("input",{type:"search",placeholder:"Filter","aria-label":"Filter branches",value:W,onChange:(S)=>L(S.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(S)=>{V(S),O(!0)},disabled:!Z,children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"This World"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-branch-list",children:A.filter((S)=>P(S.name)).map((S)=>F.jsxDEV("li",{className:S.name===T?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:S.name===T?F.jsxDEV(Z0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Z0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:S.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.name===T?"served here":S.running?"running":"stopped"},void 0,!1,void 0,this)]},S.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),R.length===0?F.jsxDEV("p",{className:"mode ws-branch-none",children:"None yet. New branch makes one, from now or as the World was."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"ws-branch-list",children:R.filter((S)=>P(S.name)).map((S)=>{let C=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(Z0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:qV(Q,S.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(j0,{iso:S.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y=S.expiresAt?`Goes away ${new Date(S.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(S.name)?F.jsxDEV("a",{href:`${n1}/${S.name}`,title:y,onClick:(N)=>{N.preventDefault(),V(N),YO(S.name,S.name.split("/"))},children:C},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${y}. Its tokens went to whoever made it; it opens from their page.`,children:C},void 0,!1,void 0,this)},S.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${n1}/${Q}/~/branches`,onClick:(S)=>{S.preventDefault(),V(S),f0([...Q.split("/"),"~","branches"])},children:"Manage branches…"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(MO,{name:Q,token:U,open:M,onClose:()=>O(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function BO({name:Q,view:U,changes:Z,changesets:K}){let H=(Y)=>(W)=>{W.preventDefault(),f0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${n1}/${Q}/~/changes`,className:U==="changes"?"on":void 0,"aria-current":U==="changes"?"page":void 0,onClick:H(["changes"]),children:["Changes",Z?F.jsxDEV("span",{className:"count",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("a",{href:`${n1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",K?F.jsxDEV("span",{className:"count",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function GV({name:Q,token:U,sets:Z,sub:K,signsAs:H,canWrite:Y,rooted:W,refused:L,onChanged:M,changes:O,withScreens:T,required:A}){let[R,w]=F1.useState(null),[P,V]=F1.useState(!1),S=Z.state==="ok"?[...Z.data.changesets].sort((u,b)=>b.createdAt.localeCompare(u.createdAt)):[],C=S.find((u)=>u.name===K)??S[0],y=F1.useMemo(()=>{let u=new Map;for(let b of C?NO(C):[]){let m=`${b.twin}:${b.entry.subject.type}:${b.entry.subject.id}`,s=u.get(m)??{key:m,twin:b.twin,writes:[]};s.writes.push(b.entry),u.set(m,s)}return[...u.values()]},[C]),N=y.find((u)=>u.key===R)??y[0],v=y0(U,N?`/-/${Q}/log/${N.twin}`:null),D={added:0,removed:0,changed:0};for(let u of y)D[WU(u.writes).tone]=(D[WU(u.writes).tone]??0)+1;let x=C?LU(C):null,E=C?CO(C,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(BO,{name:Q,view:"history",changes:O,changesets:S.length},void 0,!1,void 0,this),F.jsxDEV(r2,{load:Z,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:S.map((u)=>{let b=C?.name===u.name,m=LU(u).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${n1}/${Q}/~/changes/changesets/${u.name}`,className:b?"on":void 0,"aria-current":b?"true":void 0,onClick:(s)=>{s.preventDefault(),w(null),f0([...Q.split("/"),"~","changes","changesets",u.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:QH(u)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[u.owner??(u.cutBy?zU(u.cutBy):"unrecorded")," • ",F.jsxDEV(j0,{iso:u.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(Z0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},u.name,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-pane-right",children:[Z.state==="ok"&&!C?F.jsxDEV(X9,{title:"No changesets yet",children:F.jsxDEV("p",{children:"Cut one from Changes: the cut box is at its foot."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,C&&x&&E?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-commit-head",children:[F.jsxDEV("div",{className:"ws-commit-title",children:[F.jsxDEV("h3",{children:QH(C)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(Z0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",l0(y.length,"changed record"),D.added?F.jsxDEV("span",{className:"plus",children:[" +",D.added]},void 0,!0,void 0,this):null,D.removed?F.jsxDEV("span",{className:"minus",children:[" −",D.removed]},void 0,!0,void 0,this):null,D.changed?F.jsxDEV("span",{className:"dot",children:[" •",D.changed]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode ws-commit-meta",children:[F.jsxDEV("code",{children:C.name},void 0,!1,void 0,this)," · ",F.jsxDEV(j0,{iso:C.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",C.owner??(C.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(C.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",C.cutBy?C.pushedBy&&C.applied===null&&C.cutBy==="machine"?"the machine it was cut on":zU(C.cutBy):"unrecorded"],...C.pushedBy?[["Pushed by",zU(C.pushedBy)]]:[]].map(([u,b])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:u},void 0,!1,void 0,this)," ",b]},u,!0,void 0,this))},void 0,!1,void 0,this),C.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:C.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),title:"Where it went, the checks, the approvals; Verify, Approve and Deploy",children:[F.jsxDEV("span",{className:`badge cs-${x.tone}`,children:x.label},void 0,!1,void 0,this),F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.label},void 0,!1,void 0,this),"Review…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-two inner",children:[F.jsxDEV("div",{className:"ws-files",children:F.jsxDEV(LO,{records:y,...N?{selected:N.key}:{},onPick:w,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:N?F.jsxDEV(WO,{record:N,history:v.state==="ok"?v.data.entries:v.state==="error"?[]:null},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"It changes nothing."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(E5,{open:P,onClose:()=>V(!1),title:`Review: ${QH(C)}`,wide:!0,children:[F.jsxDEV($O,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:L,onChanged:M,part:"head",required:A},`h:${C.name}`,!1,void 0,this),F.jsxDEV($O,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:L,onChanged:M,part:"review",required:A},`r:${C.name}`,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ZV({name:Q,token:U,vendors:Z,vendor:K,tick:H}){let[Y,W]=F1.useState(nR*4),[L,M]=F1.useState(""),[O,T]=F1.useState(null),A=y0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),R=A.state==="ok"?NV(A.data.entries):[],w=[...new Set(R.map((D)=>Q4(D.entry).what))].sort(),P=R.filter((D)=>!L||Q4(D.entry).what===L),V=P.find((D)=>S9(D)===O)??P[0],S=(D)=>(x)=>{x.preventDefault(),T(null),f0([...Q.split("/"),"~","events",...D?[D]:[]])},C=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,y=V?tj(V.entry.traceparent):null,N=V?eR(V):null,v=V?OV(V.entry):[];return F.jsxDEV("div",{className:"ws-events",children:[F.jsxDEV("div",{className:"ws-filterbar",children:[F.jsxDEV("nav",{className:"ws-seg","aria-label":"Vendor",children:[F.jsxDEV("a",{href:`${n1}/${Q}/~/events`,className:!K?"on":void 0,"aria-current":!K?"page":void 0,onClick:S(),children:"All"},void 0,!1,void 0,this),Z.map((D)=>F.jsxDEV("a",{href:`${n1}/${Q}/~/events/${D}`,className:K===D?"on":void 0,"aria-current":K===D?"page":void 0,onClick:S(D),children:[F.jsxDEV(q2,{vendor:D},void 0,!1,void 0,this),s1(D)]},D,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:L,onChange:(D)=>{M(D.target.value),T(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),w.map((D)=>F.jsxDEV("option",{value:D,children:D},D,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[F.jsxDEV(r2,{load:A,what:"the events",lines:6},void 0,!1,void 0,this),F.jsxDEV("table",{className:"ws-grid","aria-label":"Events",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Time"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"What"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Record"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"By"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Receipt"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:P.map((D)=>{let x=Q4(D.entry),E=eR(D),u=V&&S9(D)===S9(V);return F.jsxDEV("tr",{className:u?"on":void 0,"aria-selected":u,onClick:()=>T(S9(D)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(j0,{iso:D.entry.occurredAt,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:D.twin},void 0,!1,void 0,this),s1(D.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:x.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:x.label?`“${x.label}”`:F.jsxDEV("code",{children:i3(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:dJ(D.entry,D.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E?F.jsxDEV("span",{className:E.bad?"badge cs-bad":E.status==="deployed"?"badge cs-done":"badge",children:E.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:FO(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},S9(D),!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-detail",children:V?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-event-line",children:[F.jsxDEV("span",{className:"badge",children:RO(V.entry)},void 0,!1,void 0,this),N?F.jsxDEV("span",{className:N.bad?"badge cs-bad":"badge cs-good",children:N.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[V.entry.subject.type,":",i3(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(j0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",dJ(V.entry,V.caller)]},void 0,!0,void 0,this),y?F.jsxDEV("a",{href:`${n1}/${Q}/~/trace/${y.trace}`,onClick:(D)=>{D.preventDefault(),f0([...Q.split("/"),"~","trace",y.trace])},children:"Its trace →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-panes",children:[F.jsxDEV("div",{role:"region","aria-label":"The request",children:[F.jsxDEV("h4",{children:"Request"},void 0,!1,void 0,this),C!==void 0?F.jsxDEV(wV,{body:C},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"No request body: the World or the vendor wrote it."},void 0,!1,void 0,this),v.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:v.map(([D,x])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:D},void 0,!1,void 0,this),F.jsxDEV("dd",{children:x},void 0,!1,void 0,this)]},D,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{role:"region","aria-label":"What it wrote",children:[F.jsxDEV("h4",{children:"Written"},void 0,!1,void 0,this),F.jsxDEV(IO,{fields:V.entry.fields},void 0,!1,void 0,this),F.jsxDEV("h4",{children:V.copies.length?"Receipts":"Receipt"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:V.copies.length?V.copies.map((D)=>D.entry.receipt?.status??"landed copy").join(" · "):PV(V.entry)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"Nothing written here yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:[F.jsxDEV("span",{children:[V?`${P.indexOf(V)+1} of ${P.length}`:P.length," events",K?` at ${s1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((D)=>D+nR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function FV({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),H=y0(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,R)=>-TO(A,R)):[],[W,L]=F1.useState(null),M=Y[0]?Date.parse(Y[0].entry.occurredAt):0,O=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-M):1,T=[...new Set(Y.map((A)=>A.twin))];return F.jsxDEV("div",{className:"ws-sheet ws-trace",children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${n1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),f0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(Z0,{name:"arrow-left",size:16},void 0,!1,void 0,this)," Events"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("h2",{children:[Y[0]?`${Q4(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:Z.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!K?F.jsxDEV("p",{role:"alert",children:[Z?`${Z} is not a trace id`:"No trace named",": a W3C trace id is 32 hex characters."]},void 0,!0,void 0,this):F.jsxDEV(r2,{load:H,what:"the trace"},void 0,!1,void 0,this),Y.length?F.jsxDEV("p",{className:"ws-trace-meta",children:["Started ",F.jsxDEV("b",{children:F.jsxDEV(j0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[O," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:T.map(s1).join(", ")},void 0,!1,void 0,this)," · Writes ",F.jsxDEV("b",{children:Y.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.state==="ok"&&Y.length===0?F.jsxDEV(X9,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(O/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let R=Date.parse(A.entry.occurredAt)-M,w=S9(A),P=Q4(A.entry);return F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("div",{className:W===w?"ws-span on":"ws-span",role:"row",onClick:()=>L(W===w?null:w),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(q2,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:s1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[P.what,P.label?` “${P.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${R/O*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${R/O*100}%`},children:["+",R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W===w?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:RO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",i3(A.entry)]},void 0,!0,void 0,this)," · ",dJ(A.entry,A.caller)," · ",FO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(IO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},w,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function XV({name:Q,token:U,vendor:Z,withScreens:K,tick:H}){let Y=y0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),W=Y.state==="ok"?Y.data.tree.filter((v)=>v.deleted!==!0):[],L=[...new Set(W.map((v)=>v.type))].map((v)=>({type:v,count:W.filter((D)=>D.type===v).length})).sort((v,D)=>Number(v.type.startsWith("_"))-Number(D.type.startsWith("_"))||$7(v.type).localeCompare($7(D.type))),[M,O]=F1.useState(null),[T,A]=F1.useState(null),R=L.some((v)=>v.type===M)?M:L[0]?.type,w=W.filter((v)=>v.type===R),P=w.find((v)=>v.id===T)??w[0],V=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],S=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),C=(v)=>!S.has(v)&&w.some((D)=>D[v]!==void 0&&D[v]!==null&&typeof D[v]!=="object"),y=[...new Set(w.flatMap((v)=>Object.keys(v)))],N=[...V.filter(C),...y.filter((v)=>!V.includes(v)&&C(v))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${s1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:Z},void 0,!1,void 0,this),s1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(r2,{load:Y,what:"what it stores",lines:4},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Stores"},void 0,!1,void 0,this),L.map((v)=>F.jsxDEV("a",{href:`#${v.type}`,className:R===v.type?"on":void 0,"aria-current":R===v.type?"true":void 0,onClick:(D)=>{D.preventDefault(),O(v.type),A(null)},children:[F.jsxDEV(Z0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:$7(v.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:v.count},void 0,!1,void 0,this)]},v.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${n1}/${Q}/~/events/${Z}`,onClick:(v)=>{v.preventDefault(),f0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(Z0,{name:"activity",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K?F.jsxDEV("a",{href:`${n1}/${Q}/~/screens/${Z}`,onClick:(v)=>{v.preventDefault(),f0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(Z0,{name:"monitor",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[Y.state==="ok"&&L.length===0?F.jsxDEV(X9,{title:`${s1(Z)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,w.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${$7(R??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),N.map((v)=>F.jsxDEV("th",{children:v},v,!1,void 0,this)),F.jsxDEV("th",{children:"updated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:w.map((v)=>F.jsxDEV("tr",{className:P?.id===v.id?"on":void 0,"aria-selected":P?.id===v.id,onClick:()=>A(v.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:v.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.map((D)=>F.jsxDEV("td",{className:"ws-cell-clip",children:v[D]===void 0||v[D]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(v[D])},D,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof v.updatedAt==="string"?F.jsxDEV(j0,{iso:v.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},v.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("aside",{className:"ws-record","aria-label":"The selected record",children:P?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:$7(P.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:P.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(P).filter(([v])=>v!=="type"&&v!=="id").map(([v,D])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(d3,{v:D},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},v,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:P?`${w.indexOf(P)+1} of ${l0(w.length,$7(R??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KV({name:Q,vendor:U,url:Z,mapError:K,holding:H,session:Y,retry:W}){return F.jsxDEV("div",{className:"ws-screen",children:[F.jsxDEV("div",{className:"ws-screen-bar",children:[F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:s1(U)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:H},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${n1}/${Q}/~/vendors/${U}`,onClick:(L)=>{L.preventDefault(),f0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(Z0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),Z?F.jsxDEV("a",{href:Z,target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV(Z0,{name:"external-link",size:16},void 0,!1,void 0,this),"New tab"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Y.state==="ok"&&Y.scope==="read"?F.jsxDEV("p",{className:"mode ws-screens-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,K?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not say where its screens are: ",K]},void 0,!0,void 0,this):Y.state==="pending"||Z===void 0?F.jsxDEV("p",{className:"mode ws-screens-note",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Y.state==="error"?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not open its screens: ",Y.error," ",F.jsxDEV("button",{type:"button",onClick:W,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z===null?F.jsxDEV("p",{className:"mode ws-screens-note",children:[s1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${s1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function HV({name:Q,token:U,who:Z,scope:K}){let[H,Y]=F1.useState(0),W=y0(U,`/-/${Q}/twins`),L=y0(U,`/-/${Q}/rules`,H),M=L.state==="ok"?L.data.changesets:null,[O,T]=F1.useState(null),[A,R]=F1.useState(null),[w,P]=F1.useState(!1),[V,S]=F1.useState([]),C=O??M?.approvals??1,y=A??M?.summary??"required",N=M!==null&&(C!==(M.approvals??1)||y!==(M.summary??"required")),v=(m,s)=>{if(S((U1)=>[{ok:m,text:s,at:new Date().toISOString(),n:++aJ},...U1].slice(0,3)),!m)e0(s,"error")},D=async(m)=>{m.preventDefault(),P(!0);try{let s=await O0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:C,summary:y}})});if(!s.ok){v(!1,`Save: ${await T5(s)}`);return}v(!0,`Saved: ${C===0?"no approval":l0(C,"approval")} before a deploy; a summary ${y==="required"?"required":"generated when none is given"}.`),T(null),R(null),Y((U1)=>U1+1)}finally{P(!1)}},x={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},E=Z.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:Z.person},void 0,!1,void 0,this),Z.local?", signed in on this machine":""]},void 0,!0,void 0,this):Z.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this machine"},void 0,!1,void 0,this),": no one is signed in here, so no person owns them until they are pushed by one"]},void 0,!0,void 0,this):Z.admin?F.jsxDEV(F.Fragment,{children:F.jsxDEV("b",{children:"the host's admin"},void 0,!1,void 0,this)},void 0,!1,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this token"},void 0,!1,void 0,this),", a service"]},void 0,!0,void 0,this),u=W.state==="ok"?W.data.twins.filter((m)=>m.root?.url):[],b=K!=="write"?"This session reads the World; it changes no rules":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Changesets"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"This World's rules, kept with it and shared by everyone who works in it. A person or the World's token changes them; a key never does, so an agent cannot relax the review its own changes go through."},void 0,!1,void 0,this),F.jsxDEV(r2,{load:L,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(m)=>void D(m),"aria-label":"Changeset rules",children:[F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Recorded as"},void 0,!1,void 0,this),F.jsxDEV("p",{children:["What you cut here is recorded as ",E,". An agent's or an app's key cuts as itself, for the person it was made for; a World's token cuts as a service."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"A cut's summary"},void 0,!1,void 0,this),F.jsxDEV("fieldset",{className:"choice",disabled:Boolean(b)||M===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:y==="required",onChange:()=>R("required")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Required: whoever cuts says what it does and why"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:y==="generated",onChange:()=>R("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV(Z0,{name:"check",size:16},void 0,!1,void 0,this),"Verified: replayed in a throwaway World, the World's checks passing"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("label",{className:"ws-rule-row",children:[F.jsxDEV("span",{children:"Approved by"},void 0,!1,void 0,this),F.jsxDEV("select",{value:C,onChange:(m)=>T(Number(m.target.value)),disabled:Boolean(b)||M===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((m)=>F.jsxDEV("option",{value:m,children:m===0?"no one: verified is enough":m===1?"1 person":`${m} different people`},m,!1,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"for its contents as they stand"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Deploys to"},void 0,!1,void 0,this),W.state==="ok"&&u.length===0?F.jsxDEV("p",{className:"mode",children:"No vendor here is connected to its real service, so nothing deploys from this World."},void 0,!1,void 0,this):null,u.length?F.jsxDEV("ul",{className:"ws-rule-list",children:u.map((m)=>F.jsxDEV("li",{children:[F.jsxDEV(q2,{vendor:m.twin},void 0,!1,void 0,this),s1(m.twin),": ",x[m.root.deploy??"gated"]??"gated"]},m.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${n1}/${Q}/~/settings/services`,onClick:(m)=>{m.preventDefault(),f0([...Q.split("/"),"~","settings","services"])},children:"Real services"},void 0,!1,void 0,this)," sets each vendor's deploy policy."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(r6,{log:V,name:Q},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(b)||w||!N,title:b??void 0,children:w?"Saving…":"Save"},void 0,!1,void 0,this),N?F.jsxDEV("button",{type:"button",onClick:()=>{T(null),R(null)},children:"Cancel"},void 0,!1,void 0,this):null,b?F.jsxDEV("span",{className:"mode",children:[b,"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function YV({who:Q,scope:U,snapshot:Z,portal:K,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[W,L]=Z?["A snapshot",`of ${Z.parent}, read only`]:Q.local&&Q.person?[Q.person,"Signed in on this machine: this World is served here, and acts as you"]:Q.local?["This machine","Served here, with no one signed in: what you do is recorded as this machine"]:Q.person?[Q.person,K?`Signed in through ${new URL(K).host}`:"Signed in"]:Q.admin?["The host's admin","Opened with the host admin token: every World it serves"]:["A link or key","Opened with a token for this World"];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Account"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-account",children:[F.jsxDEV("span",{className:"ws-account-face","aria-hidden":"true",children:F.jsxDEV(Z0,{name:Q.person?"user":Q.local?"monitor":Z?"clock":"key-round",size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:W},void 0,!1,void 0,this),F.jsxDEV("small",{children:L},void 0,!1,void 0,this),F.jsxDEV("small",{children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.local||Z?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV(Z0,{name:"log-out",size:16},void 0,!1,void 0,this),Q.person?"Sign out":Q.admin?"Sign out of the host":"Use another token"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${K}/`,children:new URL(K).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function zV({name:Q,token:U,view:Z,sub:K,arg:H,win:Y,who:W,snapshot:L,onReturn:M,onSignOut:O,worlds:T,session:A,retry:R,twins:w,map:P,branches:V,clock:S,canWrite:C,refused:y,signsAs:N,opens:v,tick:D,admin:x,onRemoved:E,onClock:u,scope:b}){let m=SO(Q,U,D,y),[s,U1]=F1.useState(0),Q1=s*1e5+Math.floor(D/2),h=y0(U,`/-/${Q}/diff`,Q1),g=y0(U,`/-/${Q}/changesets`,Q1),p=y0(U,`/-/${Q}/rules`,Q1),[c,l]=F1.useState(null),o=(A1)=>(e1)=>{e1?.preventDefault(),f0([...Q.split("/"),"~",...A1])},k=w.state==="ok"?w.data.twins.map((A1)=>A1.twin):[],t=new Map((P.state==="ok"?P.data.twins:[]).flatMap((A1)=>{let e1=$V(Q,A1);return e1?[[A1.twin,e1]]:[]})),_1=[...t.keys()],a=P.state==="ok"?P.data.twins.filter((A1)=>A1.root).map((A1)=>A1.twin):[],H1=(A1)=>P.state==="ok"?(P.data.twins.find((e1)=>e1.twin===A1)?.resources??[]).reduce((e1,D1)=>e1+D1.count,0):0,O1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],L1=F1.useMemo(()=>{if(h.state!=="ok")return[];let A1=new Map;for(let e1 of h.data.changes){let D1=`${e1.twin}:${e1.entry.subject.type}:${e1.entry.subject.id}`,g0=A1.get(D1)??{key:D1,twin:e1.twin,writes:[]};g0.writes.push(e1.entry),A1.set(D1,g0)}return[...A1.values()]},[h]),T1=L1.find((A1)=>A1.key===c)??L1[0],G1=y0(U,Z==="changes"&&T1?`/-/${Q}/log/${T1.twin}`:null,Q1),R1=h.state==="ok"?h.data.changes.length:0,f1=m.waiting.length,z1=m.there,C1=m.origin.state==="ok"?m.origin.data.origin:null,b1=!C?"This session reads the World; it changes nothing":!z1?"No remote: name one in Settings › Remote":null,c1=(A1,e1,D1,g0,_0,t0)=>F.jsxDEV("a",{href:`${n1}/${Q}/~/${g0}`,className:A1?"on":void 0,"aria-current":A1?"page":void 0,onClick:_0,children:[e1,F.jsxDEV("span",{children:D1},void 0,!1,void 0,this),t0?F.jsxDEV("span",{className:"count",children:t0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k1=(A1)=>{A1.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("div",{className:"ws",children:[F.jsxDEV("div",{className:"ws-bar",role:"toolbar","aria-label":`${Q} toolbar`,children:[F.jsxDEV("div",{className:"ws-left",children:[F.jsxDEV(HJ,{href:`${n1}/${Q}`,onClick:(A1)=>{A1.preventDefault(),o(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(Z0,{name:"globe",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("b",{children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(Z0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover menu-list ws-world-menu",children:[W.local?null:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Worlds"},void 0,!1,void 0,this),T.map((A1)=>F.jsxDEV("a",{href:`${n1}/${A1}`,className:A1===Q?"on":void 0,onClick:(e1)=>{e1.preventDefault(),k1(e1),f0(A1.split("/"))},children:[A1===Q?F.jsxDEV(Z0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Z0,{name:"globe",size:16},void 0,!1,void 0,this),A1]},A1,!0,void 0,this)),F.jsxDEV("a",{href:`${O4()&&O4()!==P0?O4():""}${n1}/`,onClick:(A1)=>{if(O4()&&O4()!==P0)return;A1.preventDefault(),k1(A1),f0([])},children:[F.jsxDEV(Z0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",t2()?` on ${new URL(t2()).host}`:""]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Connect an app"},void 0,!1,void 0,this),t2()?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key made on the platform; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[c3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:XU({platform:t2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!W.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key from Settings › Access; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[c3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:XU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Run it in this World; its calls to these vendors land here:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:"volter world run -- npm start"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-menu-text mode",children:["Or point an SDK at ",F.jsxDEV("code",{children:[c3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this)," with the token in ",F.jsxDEV("code",{children:".volter/token"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:XU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${n1}/${Q}/~/settings`,onClick:(A1)=>{k1(A1),o(["settings"])(A1)},children:[F.jsxDEV(Z0,{name:"settings",size:16},void 0,!1,void 0,this),"Settings…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(UV,{name:Q,token:U,branches:V,opens:v,refused:y,onChanged:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-where",title:"Where this is",children:[F.jsxDEV("span",{children:Q},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("span",{children:O1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),C1?F.jsxDEV("a",{href:`${n1}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",C1.namespace,f1?F.jsxDEV("b",{children:[" ↑",f1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${n1}/${Q}/~/remote`,onClick:o(["remote"]),children:"no remote"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${n1}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:S.state==="ok"?F.jsxDEV(F.Fragment,{children:[S.data.frozen?"stopped at ":"",F.jsxDEV(j0,{iso:S.data.at,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-right",children:[F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.pull(),disabled:Boolean(b1)||m.busy!==null,title:b1??`Fetch what ${z1} has and move this branch onto it`,children:[F.jsxDEV(Z0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),m.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.push(),disabled:Boolean(b1)||m.busy!==null||f1===0,title:b1??(f1?`Push ${l0(f1,"changeset")} to ${z1}`:`Every changeset is at ${z1}`),children:[F.jsxDEV(Z0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),m.busy==="Push"?"Pushing…":"Push",f1?F.jsxDEV("span",{className:"ws-btn-count",children:f1},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn icon-only","aria-label":"Settings",title:"Settings",onClick:()=>o(["settings"])(),children:F.jsxDEV(Z0,{name:"settings",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),L?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(Z0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:L.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(j0,{iso:L.at},void 0,!1,void 0,this),": a read-only snapshot",L.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(j0,{iso:L.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,"."]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void M(L),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(r6,{log:m.log.slice(0,1),name:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV("div",{className:"ws-body",children:[F.jsxDEV("nav",{className:"ws-side","aria-label":`${Q} places`,children:[k.length?F.jsxDEV("a",{href:`${n1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`The board: ${E8(k.map(s1))}`,children:[F.jsxDEV(Z0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Board"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-screens-marks",children:[k.slice(0,3).map((A1)=>F.jsxDEV(q2,{vendor:A1},A1,!1,void 0,this)),k.length>3?F.jsxDEV("span",{className:"more",children:["+",k.length-3]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{className:"side-group",children:"Workspace"},void 0,!1,void 0,this),c1(Z==="changes"||Z==="history",F.jsxDEV(Z0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),L1.length?String(L1.length):void 0),c1(Z==="events"&&!H||Z==="trace",F.jsxDEV(Z0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",o(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),k.map((A1)=>F.jsxDEV(F1.default.Fragment,{children:c1(Z==="vendor"&&H===A1,F.jsxDEV(q2,{vendor:A1},void 0,!1,void 0,this),s1(A1),`vendors/${A1}`,o(["vendors",A1]),H1(A1)?String(H1(A1)):void 0)},A1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),c1(!1,F.jsxDEV(Z0,{name:"cloud",size:16},void 0,!1,void 0,this),z1?"origin":"Name a remote…","remote",o(["remote"]),f1?`↑${f1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[Z==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(BO,{name:Q,view:"changes",changes:L1.length,changesets:g.state==="ok"?g.data.changesets.length:0},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:"Not in a changeset"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:h.state==="ok"?`${l0(L1.length,"record")} · ${l0(R1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(r2,{load:h,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(LO,{records:L1,...T1?{selected:T1.key}:{},onPick:l,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[h.state==="ok"&&!T1?F.jsxDEV(X9,{title:"No changes on this branch",action:f1>0&&z1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(b1)||m.busy!==null,onClick:()=>void m.push(),children:["Push ",l0(f1,"changeset")," to origin"]},void 0,!0,void 0,this):void 0,children:F.jsxDEV("p",{children:["What your app writes to this World lands here, record by record, to cut into a changeset. Everything since ",h.data.base.at?F.jsxDEV(j0,{iso:h.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:h.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,T1?F.jsxDEV(WO,{record:T1,history:G1.state==="ok"?G1.data.entries:G1.state==="error"?[]:null},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(uV,{pinned:!0,generated:p.state==="ok"&&p.data.changesets.summary==="generated",author:{face:F.jsxDEV(Z0,{name:W.person?"user":W.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:W.person??(W.local?"This machine":W.admin?"The host's admin":"A token"),account:`${n1}/${Q}/~/settings/account`,branch:O1},name:Q,token:U,changes:R1,canWrite:C,refused:y,onCut:()=>{U1((A1)=>A1+1),l(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(GV,{name:Q,token:U,sets:g,changes:L1.length,withScreens:_1,required:p.state==="ok"?p.data.changesets.approvals??1:1,...K?{sub:K}:{},signsAs:N,canWrite:C,rooted:a,refused:y,onChanged:()=>U1((A1)=>A1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(ZV,{name:Q,token:U,vendors:k,...H&&k.includes(H)?{vendor:H}:{},tick:D},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(FV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(XV,{name:Q,token:U,vendor:H,withScreens:_1.includes(H),tick:D},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(KV,{name:Q,vendor:H,url:P.state==="ok"?t.get(H)??null:void 0,...P.state==="error"?{mapError:P.error}:{},holding:LV(P.state==="ok"?P.data.twins.find((A1)=>A1.twin===H)?.resources??[]:[]),session:A,retry:R},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(E5,{open:Y?.kind==="settings",onClose:()=>o(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:zO.map(([A1,e1,D1])=>F.jsxDEV("a",{href:`${n1}/${Q}/~/settings/${A1}`,className:Y.tab===A1?"on":void 0,"aria-current":Y.tab===A1?"page":void 0,onClick:o(["settings",A1]),children:[F.jsxDEV(Z0,{name:D1,size:16},void 0,!1,void 0,this),e1]},A1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[b==="read"?F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"badge read-only",children:"Read only"},void 0,!1,void 0,this)," This session reads the World; it changes nothing."]},void 0,!0,void 0,this):null,Y.tab==="account"?F.jsxDEV(YV,{who:W,scope:b,snapshot:L,portal:t2(),onSignOut:O},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(HV,{name:Q,token:U,who:W,scope:b},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(EV,{name:Q,token:U,canWrite:C,tick:D,refused:y},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(xV,{name:Q,token:U,admin:x,canWrite:C,refused:y,onRemoved:E,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(hV,{name:Q,token:U,canWrite:C,refused:y},void 0,!1,void 0,this):null,Y.tab==="appearance"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV(nj,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV(E5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(MV,{name:Q,token:U,canWrite:C,branches:V,opens:v,...Y.open?{open:Y.open}:{},onChanged:u,refused:y},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JH({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>e0("Copied the prompt: paste it into your coding agent"),()=>e0("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var HH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,WV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),LV=(Q,U=4)=>{let Z=[...Q].filter((K)=>K.count>0).sort((K,H)=>H.count-K.count);return Z.length?Z.slice(0,U).map((K)=>l0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},AO=F.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:F.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this);function BV({name:Q,token:U,clock:Z,canWrite:K,onChanged:H,refused:Y,open:W}){let[L,M]=F1.useState(!1),[O,T]=F1.useState(""),[A,R]=F1.useState(""),[w,P]=F1.useState(null),[V,S]=F1.useState(!1),C=Z.state==="ok"?Z.data:null,y=async(x,E,u)=>{S(!0),P(null);try{let b=await O0(U,`/-/${Q}/${E}`,{method:E==="clock"?"PUT":"POST",body:JSON.stringify(u)});if(!b.ok){Y(b),P({ok:!1,text:await T5(b)});return}let m=await b.json();P({ok:!0,text:`${x} — the World is at ${new Date(m.at).toLocaleString()}`}),M(!1),H()}catch(b){P({ok:!1,text:`the World did not answer: ${b instanceof Error?b.message:String(b)}`})}finally{S(!1)}},N=(x)=>{x.preventDefault();let E=new Date(O);if(Number.isNaN(E.getTime())){P({ok:!1,text:"Pick a date and time."});return}if(C&&E.getTime()<Date.parse(C.at)){P({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(C.at).toLocaleString()}.`});return}y("Clock set","clock",{at:E.toISOString()})},v=(x,E)=>{y(`Advanced ${E}`,"clock/advance",{by:x})},D=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${C?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):C.frozen?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",F.jsxDEV("strong",{children:F.jsxDEV(j0,{iso:C.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:["World time ",F.jsxDEV("strong",{children:F.jsxDEV(j0,{iso:C.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"· real time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&C?F.jsxDEV("details",{className:W?"clock-more inline":"clock-more",open:W||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:W?void 0:"popover",children:[F.jsxDEV("p",{className:"mode",children:"Move this World's clock forward to see what happens later: renewals, expiries, scheduled sends. Like a test clock, it only moves forward; to look back, the branch picker’s Manage branches… views an earlier moment."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"clock-controls",children:[F.jsxDEV("button",{type:"button","aria-expanded":L,onClick:()=>{M(!L),T(v9(aR(C.at))),P(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),D.map(([x,E])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${E}`,disabled:V||!C.frozen,title:C.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>v(x,E),children:E},x,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(x)=>{if(x.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){P({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}v(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(x)=>R(x.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!C.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V||!C.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!C.frozen?F.jsxDEV("p",{className:"mode",children:"The World runs on real time. Set a time to start simulating; then advance it."},void 0,!1,void 0,this):null,L?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:N,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:O,min:v9(aR(C.at)),onChange:(x)=>T(x.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>M(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,w?F.jsxDEV("p",{role:w.ok?"status":"alert",children:w.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function AV({name:Q,token:U,clock:Z,refused:K}){let[H,Y]=F1.useState(!1),[W,L]=F1.useState(""),[M,O]=F1.useState(null),[T,A]=F1.useState(!1),R=Z.state==="ok"?Z.data.at:new Date().toISOString(),w=F1.useRef(null);return F1.useEffect(()=>{if(!H)return;let V=(C)=>{if(C.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),w.current?.querySelector("button")?.focus()},S=(C)=>{if(!w.current?.contains(C.target))Y(!1)};return document.addEventListener("keydown",V),document.addEventListener("click",S),()=>{document.removeEventListener("keydown",V),document.removeEventListener("click",S)}},[H]),F.jsxDEV("div",{className:"as-of",ref:w,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),L(v9(R)),O(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(V)=>{V.preventDefault(),O(null);let S=new Date(W);if(Number.isNaN(S.getTime())){O("Pick a date and time.");return}if(S.getTime()>Date.parse(R)){O(`That is after the World's present (${new Date(R).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let C=await O0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:S.toISOString()},ttl:3600})});if(!C.ok){K(C),O(await T5(C));return}let y=await C.json();ZH({name:y.name,parent:Q,token:y.token,readToken:y.readToken,at:S.toISOString(),expiresAt:y.expiresAt??null,parentOrigin:P0,made:!0});let N=rJ(y.origin)?.origin;if(N&&N!==P0){KH(N,y.readToken,y.name,`${n1}/${y.name}`);return}f0(y.name.split("/"))}catch(C){O(`the World did not answer: ${C instanceof Error?C.message:String(C)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:W,max:v9(R),onChange:(V)=>L(V.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:T,children:T?"Opening…":"Open snapshot"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Opens a read-only copy of this World as it was then; the copy goes away within the hour."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function MO({name:Q,token:U,open:Z,onClose:K,onMade:H,refused:Y}){let W=(E)=>E.split("/").pop()??E,[L,M]=F1.useState(!1),[O,T]=F1.useState(null),[A,R]=F1.useState(""),[w,P]=F1.useState("now"),[V,S]=F1.useState(""),[C,y]=F1.useState("24"),[N,v]=F1.useState(!0);F1.useEffect(()=>{if(Z)T(null),S(v9(new Date().toISOString()))},[Z]);let D=async(E)=>{E.preventDefault(),T(null);let u=w==="at"?new Date(V):null;if(u&&Number.isNaN(u.getTime())){T("Pick a date and time, or make it as of now.");return}if(u&&u.getTime()>Date.now()){T("A branch is made as of now or a moment before it.");return}M(!0);let b=await O0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(C)*3600),...u?{at:{instant:u.toISOString()}}:N?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(M(!1),!b){T(`${P0} did not answer`);return}if(!b.ok){Y(b),T(await T5(b));return}let m=await b.json();ZH({name:m.name,parent:Q,token:m.token??"",readToken:m.readToken,at:(u??new Date).toISOString(),expiresAt:m.expiresAt??null,parentOrigin:P0,...m.origin?{origin:m.origin}:{}}),K(),R(""),e0(`Made ${W(m.name)}`),H()};return F.jsxDEV(E5,{open:Z,onClose:()=>{if(!L)K()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>K(),disabled:L,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:L,children:L?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"new-branch",onSubmit:(E)=>void D(E),className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Label ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"branchLabel",value:A,onChange:(E)=>R(E.target.value.toLowerCase()),placeholder:"checkout-flow",pattern:"[a-z0-9][a-z0-9\\-]{0,23}",maxLength:24},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="now",onChange:()=>P("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:N,onChange:(E)=>v(E.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="at",onChange:()=>P("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:v9(new Date().toISOString()),onChange:(E)=>S(E.target.value)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Goes away after"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"branchLife",value:C,onChange:(E)=>y(E.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"168",children:"7 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O?F.jsxDEV("p",{role:"alert",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function MV({name:Q,token:U,canWrite:Z,branches:K,opens:H,open:Y,onChanged:W,refused:L,snapshotOf:M}){let O=y0(U,`/-/${Q}/clock`),T=(y)=>y.split("/").pop()??y,[A,R]=F1.useState(!1),w=(y)=>(N)=>{N.preventDefault(),f0([...Q.split("/"),"~","branches",...y?y.split("/"):[]])};if(!K)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let P=K.state==="ok"?K.data.branches:[],V=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:T(Q),running:!0}],S=K.state==="ok"?K.data.checkedOut??T(Q):T(Q),C=async(y)=>{if(!await n4({title:`Remove the branch ${T(y)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let N=await O0(U,`/-/${Q}/branches/${y}`,{method:"DELETE"}).catch((v)=>v);if(N instanceof Error){e0(`Remove ${T(y)}: the World did not answer (${N.message})`,"error");return}if(!N.ok){L(N),e0(`Remove ${T(y)}: ${await T5(N)}`,"error");return}YU(y),e0(`Removed ${T(y)}`),W(),f0([...Q.split("/"),"~","branches"])};if(Y){let y=Y.includes("/")?P.find((v)=>v.name===Y):void 0,N=Y.includes("/")?void 0:V.find((v)=>v.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${n1}/${Q}/~/branches`,onClick:w(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(r2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"&&!y&&!N?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,y?F.jsxDEV(TV,{name:Q,b:y,canWrite:Z,opens:H(y.name),remove:()=>void C(y.name)},void 0,!1,void 0,this):null,N&&!y?F.jsxDEV(RV,{name:Q,token:U,b:N,served:N.name===S,canWrite:Z,canServe:K.state==="ok"&&Boolean(K.data.canServe)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}return F.jsxDEV("div",{"aria-labelledby":"branches",children:[F.jsxDEV("div",{className:"branches-head",children:[F.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",F.jsxDEV("b",{children:S},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),Z?F.jsxDEV("div",{className:"head-actions",children:[M?null:F.jsxDEV(AV,{name:Q,token:U,clock:O,refused:L},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>R(!0),children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(r2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:[V.map((y)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${n1}/${Q}/~/branches/${y.name}`,onClick:w(y.name),children:F.jsxDEV("b",{children:y.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),y.name===S?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):y.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${y.name}`,!0,void 0,this)),P.map((y)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${n1}/${Q}/~/branches/${y.name}`,onClick:w(y.name),children:F.jsxDEV("b",{children:T(y.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:T(y.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:y.at?.instant?F.jsxDEV(j0,{iso:y.at.instant},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV(j0,{iso:y.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:y.expiresAt?F.jsxDEV(j0,{iso:y.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},y.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(MO,{name:Q,token:U,open:A,onClose:()=>R(!1),onMade:W,refused:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TV({name:Q,b:U,canWrite:Z,opens:K,remove:H}){let Y=(M)=>M.split("/").pop()??M,W=FH(U.name),L=y0(W,W?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[AO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[K?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>YO(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,Z?F.jsxDEV("button",{type:"button",className:"danger-button",onClick:H,children:"Remove…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:U.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Y(U.from??Q)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.at?.instant?F.jsxDEV(j0,{iso:U.at.instant},void 0,!1,void 0,this):"live: it keeps its parent's time"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(j0,{iso:U.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Goes away"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.expiresAt?F.jsxDEV(j0,{iso:U.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!K?F.jsxDEV("p",{className:"mode",children:"Its tokens were handed to whoever made it: it opens, and shows its own changes, in their tab."},void 0,!1,void 0,this):null,L.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),L.data.changes.length===0?F.jsxDEV("p",{className:"mode",children:"Nothing written on it since it branched."},void 0,!1,void 0,this):F.jsxDEV(DV,{changes:L.data.changes,idPrefix:`branch-${Y(U.name)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function RV({name:Q,token:U,b:Z,served:K,canWrite:H,canServe:Y}){let[W,L]=F1.useState(!1),[M,O]=F1.useState(null),T=async()=>{L(!0),O(null);let A=await O0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}L(!1),O(A?await T5(A):`${P0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[AO," ",Z.name," ",K?F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:H&&Y&&!K?F.jsxDEV("button",{type:"button",className:"primary",disabled:W,onClick:()=>void T(),children:W?"Switching…":"Serve here"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:Z.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Kind"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:"one of this World's own branches"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"State"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Z.running?"running":"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${n1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),f0([...Q.split("/"),"~","changes"])},children:"Changes"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):Y?F.jsxDEV("p",{className:"mode",children:["“Serve here” stops this one's twins and serves ",Z.name," in its place."]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode",children:"This host serves one of the World's own branches at a time, and does not switch them from this page."},void 0,!1,void 0,this),M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var nR=50,S9=(Q)=>`${Q.twin}:${Q.position}`,TO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,zU=(Q)=>{if(!Q)return"someone";if(Q.startsWith("key:")){let[U,Z]=Q.slice(4).split(" for:");return Z?`${U}, for ${Z}`:U||"a key"}if(Q.startsWith("person:"))return Q.slice(7);return Q==="machine"?"this machine":Q==="person"?"a session with no name":Q==="token:read"?"the read-only token":Q==="token"?"the World's token":Q},dJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${zU(Z)}`;if(Z.startsWith("person:")&&Z.length>7)return`by ${Z.slice(7)}`;if(Z==="machine")return"by this machine";if(Z==="person")return"by a session with no name";if(Z==="key")return"by a key";if(Z==="token:read")return"by the read-only token";if(Z==="token")return"by the World's token";return Q.actor?.kind==="system"?"by the vendor":Q.actor?.id?`by ${Q.actor.id}`:"by an app"},RO=(Q)=>Q.operation??Q.op;function OV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...O)=>O.map((T)=>Z[T]??U[T]).find((T)=>typeof T==="number"),H=[],Y=K("prompt_tokens","input_tokens"),W=K("completion_tokens","output_tokens"),L=K("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(W!==void 0)H.push(["tokens out",W.toLocaleString()]);if(L!==void 0)H.push(["tokens in all",L.toLocaleString()]);let M=K("cost_usd","cost");if(M!==void 0)H.push(["cost",`$${M<0.01?M.toPrecision(2):M.toFixed(2)}`]);return H}function OO({text:Q,at:U=280}){if(Q.length<=U)return F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this);return F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:[F.jsxDEV("span",{className:"text",children:[Q.slice(0,U),"…"]},void 0,!0,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:["show all ",Q.length.toLocaleString()," characters"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function d3({v:Q}){if(typeof Q==="string")return F.jsxDEV(OO,{text:Q},void 0,!1,void 0,this);if(Q===null||typeof Q!=="object")return F.jsxDEV("code",{children:String(Q)},void 0,!1,void 0,this);let U=JSON.stringify(Q,null,2);return U.length<=160?F.jsxDEV("code",{children:JSON.stringify(Q)},void 0,!1,void 0,this):F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:F.jsxDEV("code",{children:[JSON.stringify(Q).slice(0,120),"…"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("pre",{children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var IV=(Q)=>typeof Q==="string"?Q:Array.isArray(Q)?Q.map((U)=>U&&typeof U==="object"&&typeof U.text==="string"?U.text:"").filter(Boolean).join(`
249
+ `):JSON.stringify(Q??"");function wV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(d3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,K=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[K.length?F.jsxDEV("dl",{className:"fields",children:K.map(([H,Y])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(d3,{v:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},H,!0,void 0,this))},void 0,!1,void 0,this):null,Z?F.jsxDEV("ol",{className:"messages",children:Z.map((H,Y)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"role",children:typeof H.role==="string"?H.role:"message"},void 0,!1,void 0,this),F.jsxDEV(OO,{text:IV(H.content)},void 0,!1,void 0,this)]},Y,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function IO({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return F.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return F.jsxDEV("dl",{className:"fields",children:U.map(([Z,K])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(d3,{v:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var PV=(Q)=>Q.receipt?`${Q.receipt.status??""}${Q.receipt.externalId?` · ${Q.receipt.externalId}`:""}${Q.receipt.reason?` · ${Q.receipt.reason}`:""}`:Q.operation==="observed"?"observed from the vendor":Q.provenance==="placeholder"?"default data":"none: it has not left this World";function NV(Q){let U=new Map,Z=[],K=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){K.push(Y);continue}let W={...Y,copies:[]};if(Z.push(W),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,W);if(!H.has(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`))H.set(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`,W)}for(let Y of K){let W=Y.entry.landsId?U.get(`${Y.twin}:${Y.entry.landsId}`):Y.entry.aliasOf?H.get(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.aliasOf}`):void 0;if(W)W.copies.push(Y);else Z.push({...Y,copies:[]})}return Z.sort(TO)}var $H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function eR(Q){let U=[Q.entry.receipt,...Q.copies.map((H)=>H.entry.receipt)].filter((H)=>Boolean(H?.status));if(U.length===0)return null;let Z=U.find((H)=>H.status==="failed"||H.status==="refused"),K=[...U].sort((H,Y)=>($H[Y.status]??0)-($H[H.status]??0))[0];return Z&&!($H[K.status]>=5)?{status:Z.status,bad:!0}:{status:K.status,bad:!1}}var R4=1280,U3=820,KU=160,$4=72,UH=120,CV=72,J2=(Q)=>`${Q.vendor}:${Q.id}`,_7=(Q)=>`${Q.vendor}:section:${Q.section.id}`,Q7=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),wO=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${c3}/${Q}/${U.vendor}${U.at.screen}`:null,_O=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(J2(Z))||Q7(Z).some((K)=>Q.include.includes(K))):U.filter((Z)=>!(Q.hidden??[]).includes(J2(Z)));function fV({data:Q}){let{frame:U,url:Z,active:K,picked:H,boards:Y,addTo:W,remove:L,compare:M}=Q,O=J2(U),T=Y.filter((R)=>R.include&&!R.include.includes(O)&&!Q7(U).some((w)=>R.include.includes(w))),A=L0((R)=>R.transform[2]*($4+UH)>=CV);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(_H,{isVisible:A||H||K,position:E1.Top,align:"start",className:"frame-label",children:[F.jsxDEV(q2,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:U.title},void 0,!1,void 0,this),U.changes?F.jsxDEV("button",{type:"button",className:"frame-changed nodrag",onClick:()=>M(O),title:`${l0(U.changes,"change")} here, not in a changeset: compare before and now`,children:[F.jsxDEV(Z0,{name:"square-dot",size:14},void 0,!1,void 0,this),U.changes]},void 0,!0,void 0,this):H?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>M(O),title:"Compare with a branch of this World","aria-label":`Compare ${U.title} with a branch`,children:F.jsxDEV(Z0,{name:"file-diff",size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,H&&T.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(R)=>{if(R.target.value)W(R.target.value,O)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),T.map((R)=>F.jsxDEV("option",{value:R.id,children:R.name},R.id,!1,void 0,this))]},void 0,!0,void 0,this):null,H&&L?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>L.act(O),title:L.label,"aria-label":L.label,children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame on":H?"frame picked":"frame",style:{width:R4,height:U3},children:[F.jsxDEV("div",{className:"frame-bar",children:[F.jsxDEV(q2,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:[s1(U.vendor)," · ",U.kind]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"frame-url",children:U.url.replace(/^https?:\/\//,"")},void 0,!1,void 0,this),Z?F.jsxDEV("a",{className:"nodrag",href:Z,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${U.title} in a new tab`,children:"↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame-body nodrag nopan nowheel":"frame-body",children:Z?F.jsxDEV("iframe",{title:U.title,src:Z,loading:"lazy",style:{pointerEvents:K?"auto":"none"}},void 0,!1,void 0,this):F.jsxDEV("div",{className:"frame-none",children:[F.jsxDEV("p",{children:F.jsxDEV("strong",{children:U.unseen==="sites-not-routed"?`This World shows ${U.title} only at its own local address.`:`${s1(U.vendor)}'s twin draws no page for this ${U.kind} yet.`},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:U.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function PO({name:Q,label:U,done:Z}){let K=F1.useRef(!1),H=(Y)=>{if(K.current)return;K.current=!0,Z(Y?.trim()&&Y.trim()!==Q?Y.trim().slice(0,80):null)};return F.jsxDEV("input",{className:"nodrag nopan name-field","aria-label":U,defaultValue:Q,size:Math.max(8,Q.length+2),autoFocus:!0,onFocus:(Y)=>Y.currentTarget.select(),onKeyDown:(Y)=>{if(Y.key==="Enter")H(Y.currentTarget.value);else if(Y.key==="Escape")H(null)},onBlur:(Y)=>H(Y.currentTarget.value)},void 0,!1,void 0,this)}function SV({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(dR,{isVisible:Q.picked&&Q.editable,minWidth:480,minHeight:360,color:"var(--accent)",onResizeEnd:Q.resized},void 0,!1,void 0,this),F.jsxDEV(_H,{isVisible:!0,position:E1.Top,align:"start",offset:-30,className:"section-tag",children:[Q.renaming?F.jsxDEV(PO,{name:Q.name,label:"Name this section",done:(U)=>Q.renamed(Q.key,U)},void 0,!1,void 0,this):F.jsxDEV("button",{type:"button",className:Q.picked?"nodrag on":"nodrag",onClick:()=>Q.pick(Q.key),onDoubleClick:()=>{if(Q.editable)Q.rename(Q.key)},title:Q.editable?"Double-click to rename":void 0,children:[Q.vendor?F.jsxDEV(q2,{vendor:Q.vendor},void 0,!1,void 0,this):null,F.jsxDEV("span",{children:Q.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.picked&&Q.editable&&!Q.renaming?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>Q.remove(Q.key),"aria-label":`Remove the section ${Q.name}`,title:"Remove the section (its frames stay)",children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:Q.picked?"section-box on":"section-box"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JO({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*U3/R4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:R4,height:U3,transform:`scale(${420/R4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function vV({name:Q,token:U,frame:Z,onClose:K,reads:H}){let[Y,W]=F1.useState(Z.since?"before":""),[L,M]=F1.useState({state:"opening"}),[O,T]=F1.useState(null),A=F1.useRef(new Set),R=y0(U,`/-/${Q}/branches`,H),w=R.state==="ok"?R.data.branches.filter((y)=>y.name!==O&&!A.current.has(y.name)):[],P=y0(U,`/-/${Q}/board/changes?frame=${encodeURIComponent(J2(Z))}`,H),V=async(y,N,v)=>{let D=Z.at;if("site"in D){let u=new URL(Z.url),b=N&&/^https?:\/\/\{host\}\./.test(N)?N.replace("{host}",u.hostname.toLowerCase()):null;return b?{url:`${b}${u.pathname}${u.search}`}:{why:"This World shows its branches' sites only on this machine."}}let x=`${c3}/-/${Q}/branches/${y}/pages?${new URLSearchParams({land:`/${y}/${Z.vendor}${D.screen}`}).toString()}`,E=await fetch(x,{credentials:"same-origin",redirect:"manual"}).catch(()=>null);if(v())return{why:""};return E?.type==="opaqueredirect"?{url:x}:{why:`This World does not show its branches' pages${E?`: ${await T5(E)}`:""}.`}};F1.useEffect(()=>{if(!Z.at){M({state:"none",why:`${s1(Z.vendor)}'s twin draws no page for this ${Z.kind} yet; its changes are listed below.`});return}if(Y===""){M({state:"none",why:"Choose a branch of this World to set beside it."});return}let y=!1;if(Y!=="before"){M({state:"opening"});let u=R.state==="ok"?R.data.branches.find((m)=>m.name===Y):void 0,b=setTimeout(()=>void V(Y,u?.sites??null,()=>y).then((m)=>{if(!y)M("url"in m?{state:"ok",url:m.url}:{state:"none",why:m.why})}),300);return()=>{y=!0,clearTimeout(b)}}if(!Z.since){M({state:"none",why:"Nothing here has changed since the World was last cut."});return}M({state:"opening"});let N=new Date(Date.parse(Z.since)-1).toISOString(),v=null,D=setTimeout(()=>void(async()=>{let u=await O0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:N},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!u?.ok){M({state:"none",why:`The World made no copy of itself as it was then${u?`: ${await T5(u)}`:""}.`});return}let b=await u.json();if(v=b.name,T(b.name),A.current.add(b.name),y){O0(U,`/-/${Q}/branches/${b.name}`,{method:"DELETE"}).catch(()=>null);return}let m=await V(b.name,b.sites??null,()=>y);if(!y)M("url"in m?{state:"ok",url:m.url,at:N}:{state:"none",why:m.why})})(),500),x=()=>{if(v)O0(U,`/-/${Q}/branches/${v}`,{method:"DELETE",keepalive:!0}).catch(()=>null);v=null},E=(u)=>{if(!u.persisted)x()};return window.addEventListener("pagehide",E),()=>{y=!0,clearTimeout(D),window.removeEventListener("pagehide",E),x(),T(null)}},[Q,U,Z.vendor,Z.id,Z.since,Y]);let S=wO(Q,Z),C=!Z.at||Y!==""?null:R.state==="ok"&&w.length===0?"This World has no branches to set beside it: make one under Branches.":R.state==="error"?`The World's branches could not be read: ${R.error}`:null;return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${Z.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(q2,{vendor:Z.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:Z.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:Z.changes?`${l0(Z.changes,"change")} not yet cut${Z.since?`, since ${b8(Z.since)}`:""}`:"No changes here not yet cut"},void 0,!1,void 0,this),Z.at?F.jsxDEV("label",{className:"compare-base",children:["Compare with"," ",F.jsxDEV("select",{value:Y,onChange:(y)=>W(y.target.value),children:[Y===""?F.jsxDEV("option",{value:"",children:"Choose a branch…"},void 0,!1,void 0,this):null,Z.since||Y==="before"?F.jsxDEV("option",{value:"before",children:"Before these changes"},void 0,!1,void 0,this):null,Y&&Y!=="before"&&!w.some((y)=>y.name===Y)?F.jsxDEV("option",{value:Y,children:Y.split("/")[1]},void 0,!1,void 0,this):null,w.map((y)=>F.jsxDEV("option",{value:y.name,children:[y.name.split("/")[1],y.at?.label?` (${y.at.label})`:y.at?.instant?` (as of ${b8(y.at.instant)})`:y.at?.live?" (live)":""]},y.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("button",{type:"button",className:"ghost",onClick:K,"aria-label":"Close the comparison",children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"compare-sides",children:[F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:Y==="before"?`Before${L.state==="ok"&&L.at?` · as of ${b8(L.at)}`:""}`:Y?Y.split("/")[1]:"A branch"},void 0,!1,void 0,this),C?F.jsxDEV("p",{className:"mode compare-note",children:C},void 0,!1,void 0,this):L.state==="ok"?F.jsxDEV(JO,{url:L.url,title:`${Z.title} before`},void 0,!1,void 0,this):L.state==="opening"?F.jsxDEV("p",{className:"mode compare-note",role:"status",children:"Opening the World as it was…"},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:L.why},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:"Now"},void 0,!1,void 0,this),S?F.jsxDEV(JO,{url:S,title:`${Z.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:[s1(Z.vendor),"'s twin draws no page for this ",Z.kind," yet."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",P.error]},void 0,!0,void 0,this):null,Y!=="before"&&Y&&P.state==="ok"&&P.data.acts.length?F.jsxDEV("p",{className:"mode compare-acts-head",children:"This World's own changes here, not yet cut:"},void 0,!1,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(P.state==="ok"?P.data.acts:[]).map((y)=>{let N=y.entries[0],v=Q4({...N,service:Z.vendor,id:"",occurredAt:y.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:b8(y.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:v.what},void 0,!1,void 0,this),v.label?` · ${v.label}`:"",y.writes>1?F.jsxDEV("span",{className:"mode",children:[" and ",l0(y.writes-1,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:[y.entries.map((D,x)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:D.operation??D.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[D.subject.type," ",i3(D)]},void 0,!0,void 0,this)]},x,!0,void 0,this)),y.writes>y.entries.length?F.jsxDEV("li",{className:"mode",children:["and ",l0(y.writes-y.entries.length,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${y.at}:${N.subject.type}:${N.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),P.state==="ok"&&P.data.total>P.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",l0(P.data.total-P.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,F.jsxDEV("a",{className:"compare-all",href:`${n1}/${Q}/~/changes`,onClick:(y)=>{y.preventDefault(),f0([...Q.split("/"),"~","changes"])},children:"Every change in the World →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jV={screen:fV,section:SV};function VV(Q){return F.jsxDEV(eK,{children:F.jsxDEV(yV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function yV({name:Q,token:U,session:Z,retry:K,snapshot:H,back:Y,canWrite:W}){let L=F1.useRef(null),M=F1.useRef(0),O=F1.useRef(Promise.resolve()),T=F1.useRef(0),[,A]=F1.useState(0),[R,w]=F1.useState({state:"loading"}),[P,V]=F1.useState(null),[S,C]=F1.useState(0),y=F1.useRef(0),N=F1.useRef(0),v=F1.useCallback(async()=>{let $1=T.current,B1=++y.current,v1=await O0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),V1=v1?.ok?await v1.json().catch(()=>null):null;if(B1<N.current)return;if(N.current=B1,!V1?.frames||!V1.boards||!V1.version){let Q0=v1?`the World answered ${v1.status}`:"the World did not answer";w((u1)=>u1.state==="ok"?u1:{state:"error",status:v1?.status??0,error:Q0}),V(Q0);return}if(V(null),C((Q0)=>Q0+1),$1===T.current&&M.current===0)L.current={boards:V1.boards,version:V1.version};w({state:"ok",data:V1})},[U,Q]);F1.useEffect(()=>{v();let $1=setInterval(()=>{if(!document.hidden)v()},1e4);return()=>clearInterval($1)},[v]);let D=R.state==="ok"?R.data.frames:[],x=L.current?.boards??[{id:"everything",name:"Everything"}],[E,u]=F1.useState(null),b=D.some(($1)=>$1.changes),m=E??(b?"changes":"everything"),s=(m==="changes"?x[0]:x.find(($1)=>$1.id===m))??x[0],[U1,Q1]=F1.useState(new Set),h=W&&!H,g=F1.useCallback(($1)=>{if(!L.current)return e0("The board is being read again: make that change once it shows","error"),Promise.resolve();L.current={...L.current,boards:$1(L.current.boards)},M.current+=1,T.current+=1,A((v1)=>v1+1);let B1=O.current.then(async()=>{let v1=L.current;if(!v1)return;try{let V1=await O0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:v1.boards,version:v1.version}),signal:AbortSignal.timeout(15000)}),Q0=await V1.json().catch(()=>null);if(V1.ok&&Q0?.boards&&Q0.version)L.current={boards:M.current>1&&L.current?L.current.boards:Q0.boards,version:Q0.version};else if(V1.status===409&&Q0?.boards&&Q0.version)L.current={boards:Q0.boards,version:Q0.version},e0("Someone else changed the board first: it is shown as they left it","error");else throw Error(Q0?.error??`the World answered ${V1.status}`)}catch(V1){e0(`The board was not kept: ${V1 instanceof Error?V1.message:String(V1)}`,"error"),L.current=null;let Q0=await O0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),u1=Q0?.ok?await Q0.json().catch(()=>null):null;if(u1?.boards&&u1.version)L.current={boards:u1.boards,version:u1.version}}}).finally(()=>{if(M.current-=1,T.current+=1,A((v1)=>v1+1),M.current===0&&!L.current)v()});return O.current=B1,B1},[U,Q,v]),p=($1,B1)=>{g((v1)=>v1.map((V1)=>V1.id===$1?B1(V1):V1))},c=($1)=>$1.parent?`${$1.vendor}:${$1.parent}`:null,l=new Set(D.map(J2)),o=($1)=>{let B1=c($1);return!B1||!l.has(B1)},k=m==="changes"?D.filter(($1)=>$1.changes):s.include?_O(s,D):_O(s,D).filter(($1)=>o($1)||U1.has(c($1))),t=D.filter(($1)=>$1.changes&&!k.includes($1)).reduce(($1,B1)=>$1+B1.changes,0),[_1,a]=F1.useState(null),[H1,O1]=F1.useState(null),[L1,T1]=F1.useState(null),G1=lJ(),R1=x.filter(($1)=>$1.include),f1=($1,B1)=>p($1,(v1)=>({...v1,include:[...v1.include??[],B1]})),z1={label:s.include?"Take it off this board":"Hide it",act:($1)=>{O1(null),p(s.id,(B1)=>B1.include?{...B1,include:B1.include.filter((v1)=>v1!==$1)}:{...B1,hidden:[...B1.hidden??[],$1]})}},C1=($1)=>({x:$1.position.x,y:$1.position.y,w:$1.width??$1.measured?.width??R4,h:$1.height??$1.measured?.height??U3}),b1=($1,B1)=>{let v1=C1($1),V1=v1.x+v1.w/2,Q0=v1.y+v1.h/2;return B1.filter((u1)=>u1.type==="section").map((u1,m1)=>({s:u1,i:m1})).filter(({s:u1})=>{let m1=C1(u1);return V1>=m1.x&&V1<=m1.x+m1.w&&Q0>=m1.y&&Q0<=m1.y+m1.h}).sort((u1,m1)=>C1(u1.s).w*C1(u1.s).h-C1(m1.s).w*C1(m1.s).h||m1.i-u1.i)[0]?.s},c1=F1.useCallback(()=>{let $1=new Map;for(let J0 of k){let T0=s.placed?.[J2(J0)];if(T0)$1.set(J2(J0),T0)}let B1=Math.max(-KU,...[...$1.values()].map((J0)=>J0.y+U3)),v1=[...new Set(k.map(_7))];for(let J0 of v1){let T0=k.filter((w0)=>_7(w0)===J0),Z2=T0.filter((w0)=>$1.has(J2(w0))).map((w0)=>$1.get(J2(w0))),K0=Z2.length?Math.max(...Z2.map((w0)=>w0.x))+R4+KU:0,S2=Z2.length?Math.min(...Z2.map((w0)=>w0.y)):B1+KU+$4*2+UH;for(let w0 of T0)if(!$1.has(J2(w0)))$1.set(J2(w0),{x:K0,y:S2}),K0+=R4+KU;B1=Math.max(B1,S2+U3)}let V1=s.sections??{},Q0=(J0,T0,Z2,K0,S2)=>({id:`sec:${J0}`,type:"section",position:{x:T0.x,y:T0.y},width:T0.w,height:T0.h,zIndex:0,draggable:h,data:{key:J0,name:Z2,vendor:K0,named:S2}}),u1=[];for(let J0 of v1){let T0=k.find((V0)=>_7(V0)===J0),Z2=Q7(T0).find((V0)=>V1[V0])??J0,K0=V1[Z2];if(K0?.gone)continue;let S2=k.filter((V0)=>_7(V0)===J0).map((V0)=>$1.get(J2(V0))),w0={x:Math.min(...S2.map((V0)=>V0.x))-$4,y:Math.min(...S2.map((V0)=>V0.y))-$4-UH,w:0,h:0};w0.w=Math.max(...S2.map((V0)=>V0.x))+R4+$4-w0.x,w0.h=Math.max(...S2.map((V0)=>V0.y))+U3+$4-w0.y;let Z7=k.filter((V0)=>_7(V0)===J0&&!s.placed?.[J2(V0)]).map((V0)=>$1.get(J2(V0))),K5=K0?{...K0}:w0;if(K0)for(let V0 of Z7)K5.w=Math.max(K5.w,V0.x+R4+$4-K5.x),K5.h=Math.max(K5.h,V0.y+U3+$4-K5.y);u1.push(Q0(Z2,K5,K0?.name??`${s1(T0.vendor)} · ${T0.section.title}`,T0.vendor,Boolean(K0?.name)))}for(let[J0,T0]of Object.entries(V1))if(J0.startsWith("user:")&&!T0.gone)u1.push(Q0(J0,T0,T0.name??"Section",null,!0));let m1=k.map((J0)=>({id:J2(J0),type:"screen",zIndex:1,width:R4,height:U3,draggable:h,position:$1.get(J2(J0)),data:{world:Q,frame:J0,url:wO(Q,J0)}}));return[...u1,...m1]},[JSON.stringify(k),JSON.stringify(s),Q,h]),[k1,A1,e1]=xR([]),D1=L0(($1)=>$1.transform[2]),g0=F1.useRef("");F1.useEffect(()=>{let $1=c1();if(A1($1),$1.length&&g0.current!==m)g0.current=m,requestAnimationFrame(()=>{G1.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[c1,A1]);let _0=($1,B1=[],v1={})=>{let V1=Object.fromEntries(B1.map((u1)=>{let m1=G1.getNode(`sec:${u1}`);if(!m1)return[u1,void 0];let J0=C1(m1),T0=m1.data,Z2=v1[u1]??(T0.named?T0.name:void 0);return[u1,{x:Math.round(J0.x),y:Math.round(J0.y),w:Math.round(J0.w),h:Math.round(J0.h),...Z2?{name:Z2.slice(0,80)}:{}}]}).filter(([,u1])=>u1!==void 0)),Q0=Object.fromEntries(Object.entries($1).map(([u1,m1])=>[u1,{x:Math.round(m1.x),y:Math.round(m1.y)}]));p(s.id,(u1)=>({...u1,placed:{...u1.placed??{},...Q0},sections:{...u1.sections??{},...V1}}))},t0=F1.useRef(null),C2=($1,B1)=>{if(B1.type!=="section"){t0.current=null;return}let v1=G1.getNodes(),V1=C1(B1),Q0=(u1)=>{let m1=C1(u1);if(u1.type==="screen"){let J0=m1.x+m1.w/2,T0=m1.y+m1.h/2;return J0>=V1.x&&J0<=V1.x+V1.w&&T0>=V1.y&&T0<=V1.y+V1.h}return u1.id!==B1.id&&m1.x>=V1.x&&m1.y>=V1.y&&m1.x+m1.w<=V1.x+V1.w&&m1.y+m1.h<=V1.y+V1.h};t0.current={id:B1.id,from:{...B1.position},members:v1.filter(Q0).map((u1)=>({id:u1.id,x:u1.position.x,y:u1.position.y}))}},u2=($1,B1)=>{let v1=t0.current;if(!v1||v1.id!==B1.id)return;let V1=B1.position.x-v1.from.x,Q0=B1.position.y-v1.from.y,u1=new Map(v1.members.map((m1)=>[m1.id,m1]));A1((m1)=>m1.map((J0)=>{let T0=u1.get(J0.id);return T0?{...J0,position:{x:T0.x+V1,y:T0.y+Q0}}:J0}))},b2=($1,B1)=>{let v1=t0.current;t0.current=null;let V1=B1.position.x-(v1?.from.x??B1.position.x),Q0=B1.position.y-(v1?.from.y??B1.position.y),u1=B1.type==="screen"?[{id:B1.id,x:B1.position.x,y:B1.position.y}]:(v1?.members??[]).map((m1)=>({...m1,x:m1.x+V1,y:m1.y+Q0}));requestAnimationFrame(()=>{let m1=G1.getNodes(),J0=new Map(u1.filter((K0)=>!K0.id.startsWith("sec:")).map((K0)=>[K0.id,{x:K0.x,y:K0.y}])),T0=new Set([...B1.type==="section"?[B1.data.key]:[],...u1.filter((K0)=>K0.id.startsWith("sec:")).map((K0)=>K0.id.slice(4))]),Z2=new Set(m1.filter((K0)=>J0.has(K0.id)).flatMap((K0)=>Q7(K0.data.frame)));for(let K0 of m1){if(K0.type==="screen"&&Q7(K0.data.frame).some((S2)=>Z2.has(S2))&&!J0.has(K0.id))J0.set(K0.id,{x:K0.position.x,y:K0.position.y});if(K0.type==="section"&&Z2.has(K0.data.key))T0.add(K0.data.key)}_0(Object.fromEntries(J0),[...T0])})},f2=($1)=>Object.fromEntries(G1.getNodes().filter((B1)=>B1.type==="screen"&&Q7(B1.data.frame).includes($1)).map((B1)=>[B1.id,{x:B1.position.x,y:B1.position.y}])),[T2,G2]=F1.useState(null),R2=($1)=>{O1(`sec:${$1}`),G2($1)},I4=($1,B1)=>{if(G2(null),!B1)return;A1((v1)=>v1.map((V1)=>V1.id===`sec:${$1}`?{...V1,data:{...V1.data,name:B1,named:!0}}:V1)),requestAnimationFrame(()=>_0(f2($1),[$1],{[$1]:B1}))},X5=($1)=>{O1(null);let B1=G1.getNode(`sec:${$1}`);p(s.id,(v1)=>{let V1=Object.fromEntries(Object.entries(v1.sections??{}).filter(([Q0])=>Q0!==$1));return{...v1,sections:$1.startsWith("user:")?V1:{...V1,[$1]:{...B1?{x:Math.round(B1.position.x),y:Math.round(B1.position.y),w:Math.round(C1(B1).w),h:Math.round(C1(B1).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},x5=()=>{let $1=H1?G1.getNode(H1):void 0,B1=G1.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),v1=$1?.type==="screen"?{x:$1.position.x-$4,y:$1.position.y-$4,w:R4+$4*2,h:U3+$4*2}:{x:B1.x-900,y:B1.y-600,w:1800,h:1200},V1=`user:${Date.now().toString(36)}`,Q0=Object.keys(s.sections??{}).filter((u1)=>u1.startsWith("user:")).length+1;O1(`sec:${V1}`),p(s.id,(u1)=>({...u1,sections:{...u1.sections??{},[V1]:{x:Math.round(v1.x),y:Math.round(v1.y),w:Math.round(v1.w),h:Math.round(v1.h),name:`Section ${Q0}`}}}))},q4=k1.map(($1)=>$1.type==="section"?{...$1,data:{...$1.data,picked:H1===$1.id,editable:h,renaming:h&&T2===$1.data.key,pick:(B1)=>O1(`sec:${B1}`),rename:R2,renamed:I4,remove:X5,resized:()=>requestAnimationFrame(()=>{let B1=$1.data.key;_0(f2(B1),[B1])})}}:{...$1,data:{...$1.data,active:_1===$1.id,picked:H1===$1.id,boards:h?R1:[],addTo:f1,remove:!h||s.include&&!s.include.includes($1.id)?null:z1,compare:(B1)=>{O1(B1),T1(B1)}}});F1.useEffect(()=>{let $1=(B1)=>{if(B1.target?.closest("input, textarea, select, [contenteditable]"))return;if(B1.key==="Escape"){if(_1)a(null);else O1(null);return}if(!h||_1)return;if((B1.key==="Delete"||B1.key==="Backspace")&&H1){if(B1.preventDefault(),H1.startsWith("sec:"))X5(H1.slice(4));else if(!s.include||s.include.includes(H1))z1.act(H1);else e0("It is on this board with its whole group: take the group off in the list to remove it","error");return}if(B1.key==="S"&&B1.shiftKey&&!B1.metaKey&&!B1.ctrlKey)B1.preventDefault(),x5()};return document.addEventListener("keydown",$1),()=>document.removeEventListener("keydown",$1)});let R5=($1)=>{O1($1);let B1=G1.getNode($1);if(!B1)return;let v1=C1(B1);G1.fitBounds({x:v1.x,y:v1.y,width:v1.w,height:v1.h},{padding:0.15,duration:400})},G3=()=>{let $1=`board-${Date.now().toString(36)}`;u($1),g((B1)=>[...B1,{id:$1,name:`Board ${B1.length}`,include:[]}])},O5=()=>G2(`board:${s.id}`),j=()=>{let $1=s.id;u(null),g((B1)=>B1.filter((v1)=>v1.id!==$1))},q1=[...new Map(D.map(($1)=>[_7($1),$1])).values()],I1=s.include?[...q1.filter(($1)=>!Q7($1).some((B1)=>s.include.includes(B1))).map(($1)=>({key:_7($1),label:`${s1($1.vendor)} · ${$1.section.title} (all)`})),...D.filter(($1)=>!k.includes($1)).map(($1)=>({key:J2($1),label:$1.title}))]:[],P1=s.include?[]:D.filter(($1)=>(s.hidden??[]).includes(J2($1))),y1=k1.filter(($1)=>$1.type==="section"),i1=k1.filter(($1)=>$1.type==="screen"),r1=new Map(i1.map(($1)=>[$1.id,b1($1,k1)?.id??null])),F0=new Map;for(let $1 of D){let B1=c($1);if(B1&&l.has(B1))F0.set(B1,(F0.get(B1)??0)+1)}let x1=($1)=>{let B1=$1.data.frame;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:H1===$1.id?"on":void 0,onClick:()=>R5($1.id),onDoubleClick:()=>a($1.id),children:[F.jsxDEV(q2,{vendor:B1.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:B1.title},void 0,!1,void 0,this),B1.changes?F.jsxDEV("span",{className:"layer-changed",title:`${l0(B1.changes,"change")}, not in a changeset: its mark on the board compares before and now`,children:[F.jsxDEV(Z0,{name:"square-dot",size:14},void 0,!1,void 0,this),B1.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F0.get($1.id)&&m!=="changes"&&!s.include?F.jsxDEV("button",{type:"button",className:"ghost layer-open","aria-expanded":U1.has($1.id),onClick:()=>Q1((v1)=>{let V1=new Set(v1);if(V1.has($1.id))V1.delete($1.id);else V1.add($1.id);return V1}),title:U1.has($1.id)?"Close the pages under it":"Open the pages under it",children:[U1.has($1.id)?"−":"+",F0.get($1.id)]},void 0,!0,void 0,this):null]},$1.id,!0,void 0,this)},K2=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,E2=Z.state==="ok"&&R.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",style:{"--zoom":D1},children:F.jsxDEV(hR,{nodes:E2?q4:[],onNodesChange:e1,nodeTypes:jV,onNodeDragStart:C2,onNodeDrag:u2,onNodeDragStop:b2,onNodeClick:($1,B1)=>{if(B1.id!==_1)O1(B1.id)},onNodeDoubleClick:($1,B1)=>{if(B1.type==="screen")O1(B1.id),a(B1.id)},onPaneClick:()=>{a(null),O1(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:K2?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(gR,{variant:Q3.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(q3,{position:"top-left",className:"float layers",children:[F.jsxDEV("div",{className:"float-head",children:[F.jsxDEV("button",{type:"button",className:"back",onClick:Y,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"float-title",children:[F.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],H?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"board-tabs",role:"tablist","aria-label":"Boards",children:[F.jsxDEV("button",{type:"button",role:"tab","aria-selected":m==="changes",className:m==="changes"?"on":void 0,onClick:()=>{O1(null),a(null),u("changes")},title:"The pages whose records changed and are not yet in a changeset",children:["Changes",b?` (${D.filter(($1)=>$1.changes).length})`:""]},void 0,!0,void 0,this),x.map(($1)=>T2===`board:${$1.id}`?F.jsxDEV(PO,{name:$1.name,label:"Name this board",done:(B1)=>{if(G2(null),B1)p($1.id,(v1)=>({...v1,name:B1}))}},$1.id,!1,void 0,this):F.jsxDEV("button",{type:"button",role:"tab","aria-selected":m!=="changes"&&$1.id===s.id,className:m!=="changes"&&$1.id===s.id?"on":void 0,onClick:()=>{O1(null),a(null),u($1.id)},onDoubleClick:h&&$1.id===s.id&&$1.include?O5:void 0,children:$1.name},$1.id,!1,void 0,this)),h?F.jsxDEV("button",{type:"button",className:"ghost",onClick:G3,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),s.include&&h?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:O5,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:j,children:"Delete board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("ul",{className:"layer-list","aria-label":"Layers",children:[y1.map(($1)=>{let B1=$1.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:H1===$1.id?"layer-section on":"layer-section",onClick:()=>R5($1.id),onDoubleClick:()=>{if(h)R5($1.id),R2(B1.key)},children:[B1.vendor?F.jsxDEV(q2,{vendor:B1.vendor},void 0,!1,void 0,this):F.jsxDEV(Z0,{name:"layout-grid",size:14},void 0,!1,void 0,this),F.jsxDEV("span",{children:B1.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:i1.filter((v1)=>r1.get(v1.id)===$1.id).map(x1)},void 0,!1,void 0,this)]},$1.id,!0,void 0,this)}),i1.filter(($1)=>!r1.get($1.id)).map(x1)]},void 0,!0,void 0,this),s.include&&!k.length?F.jsxDEV("p",{className:"mode pad-s",children:"An empty board: add frames from Everything, or below."},void 0,!1,void 0,this):null,I1.length&&h?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:($1)=>{let B1=$1.target.value;if(B1)p(s.id,(v1)=>({...v1,include:[...v1.include??[],B1]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),I1.map(($1)=>F.jsxDEV("option",{value:$1.key,children:$1.label},$1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,P1.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",P1.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:P1.map(($1)=>F.jsxDEV("li",{children:h?F.jsxDEV("button",{type:"button",onClick:()=>p(s.id,(B1)=>({...B1,hidden:(B1.hidden??[]).filter((v1)=>v1!==J2($1))})),children:[F.jsxDEV("span",{children:$1.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"pad-s",children:$1.title},void 0,!1,void 0,this)},J2($1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>u("changes"),children:[F.jsxDEV(Z0,{name:"square-dot",size:14},void 0,!1,void 0,this),l0(t,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(r2,{load:R,what:"the board"},void 0,!1,void 0,this),P&&R.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",P,"): it shows what was last read."]},void 0,!0,void 0,this):null,Z.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Z.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",Z.error," ",F.jsxDEV("button",{type:"button",onClick:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),_1?F.jsxDEV(q3,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",k.find(($1)=>J2($1)===_1)?.title??_1]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>a(null),children:["Done ",F.jsxDEV("kbd",{children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(q3,{position:"top-center",className:"float hint mode",children:"Scroll to pan · pinch or ⌘ scroll to zoom · double-click a frame to use it"},void 0,!1,void 0,this),h?F.jsxDEV(q3,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:x5,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV(Z0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Section"},void 0,!1,void 0,this),F.jsxDEV("kbd",{children:"⇧S"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,L1&&k.some(($1)=>J2($1)===L1)?F.jsxDEV(q3,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(vV,{name:Q,token:U,frame:k.find(($1)=>J2($1)===L1),onClose:()=>T1(null),reads:S},L1,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(cR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(iR,{pannable:!0,zoomable:!0,nodeBorderRadius:8,position:"bottom-right"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var NO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),kV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function LU(Q){let U=Q.actions.filter(kV).length,Z=Q.actions.length-U,K=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((M)=>M.status==="deployed"),...K.filter((M)=>M.status==="confirmed")].map((M)=>M.actionId)).size,W=new Set([...H.filter((M)=>M.status==="refused"||M.status==="failed"),...K.filter((M)=>M.status==="failed")].map((M)=>M.actionId)).size,L={performed:Y,failed:W,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...L};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...L};if(W>0)return{label:`${W} refused or failed`,tone:"bad",...L};if(K.some((M)=>M.status==="replayed")&&K.every((M)=>M.status==="replayed"||M.status==="skipped"))return{label:"Pushed",tone:"good",...L};return{label:"Not sent",tone:"plain",...L}}var QH=(Q)=>Q.message??Q.narration?.split(`
250
+ `)[0]?.replace(/ setting .*$/,"")??Q.name;function CO(Q,U=1){let Z=Q.currentHash??Q.contentHash,K=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===Z).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===Z?Q.verification:null;if(H&&!H.passed)return{label:"Checks failed",tone:"bad"};if(K>0&&K<U)return{label:`Approved by ${K} of ${U}`,tone:"plain"};if(K>0)return{label:`Approved by ${K}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function $O({name:Q,token:U,signsAs:Z,c:K,canWrite:H,rooted:Y,refused:W,onChanged:L,part:M,required:O}){let T=M==="head",A=M==="review",[R,w]=F1.useState(null),[P,V]=F1.useState(!1),[S,C]=F1.useState(""),[y,N]=F1.useState(""),[v,D]=F1.useState(null),x=y0(U,`/-/${Q}/origin`),E=LU(K),u=CO(K,O),b=NO(K),m=[...new Set(b.map((a)=>a.twin))],s=m.some((a)=>Y.includes(a)),U1=(a)=>a===(K.currentHash??K.contentHash),Q1=K.applied?.receipts??[],h=(K.deployed??[]).filter((a)=>a.status!=="landed"),g=Q1.filter((a)=>a.status==="confirmed").length,p=h.filter((a)=>a.status==="deployed"),c=async(a,H1,O1,L1)=>{w(a),D(null);try{let T1=await O0(U,H1,{method:"POST",...O1===void 0?{}:{body:JSON.stringify(O1)}});if(!T1.ok)return W(T1),D({what:a,...M2(await k3(T1))}),!1;if(L1)e0(L1);return L(),!0}catch(T1){return D({what:a,text:`the World did not answer (${T1 instanceof Error?T1.message:String(T1)})`,acts:[]}),!1}finally{w(null)}},l=()=>{c("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(a)=>{if(a.preventDefault(),await c("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...S.trim()?{note:S.trim()}:{},...Z===null&&y.trim()?{as:y.trim()}:{}},"Approved"))V(!1),C("")},k=async()=>{let a=m.filter((H1)=>Y.includes(H1));if(!await n4({title:`Deploy ${K.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",K.actions.length," change",K.actions.length===1?"":"s"," against the real account",a.length===1?"":"s"," behind ",E8(a.map(s1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;w("Deploy"),D(null);try{let H1=await O0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!H1.ok){W(H1),D({what:"Deploy",...M2(await k3(H1))});return}let O1=await O0(U,`/-/${Q}/changesets/${K.name}`),L1=O1.ok?await O1.json():null;if(!L1){e0("Deploy: sent; reading its receipts failed","info"),L();return}let T1=LU(L1);e0(`Deploy: ${T1.performed} of ${T1.total} change${T1.total===1?"":"s"} performed at the vendor${T1.failed?`; ${T1.failed} refused or failed`:""}`,T1.failed?"error":T1.performed?"ok":"info"),L()}catch(H1){D({what:"Deploy",text:`the World did not answer (${H1 instanceof Error?H1.message:String(H1)})`,acts:[]})}finally{w(null)}},t=!H?"This session reads the World; it changes nothing":E.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,_1=x.state==="ok"&&x.data.origin?HH(x.data.origin):null;return F.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[T?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"changeset-title",children:[K.message??K.name," ",F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${u.tone}`,children:u.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:K.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(j0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",E8(m.map(s1))||"no vendor"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[F.jsxDEV("button",{type:"button",onClick:l,disabled:Boolean(t)||R!==null,title:t??"Replay it in a throwaway World and run the World's checks",children:R==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:Boolean(t)||R!==null,title:t??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),s?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void k(),disabled:Boolean(t)||R!==null,title:t??"Perform it against the real accounts behind this World",children:R==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),t&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[t,"."]},void 0,!0,void 0,this):null,v?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:v.what},void 0,!1,void 0,this),": ",v.text]},void 0,!0,void 0,this),v.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:l,disabled:R!==null,children:"Verify"},void 0,!1,void 0,this):null,v.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:R!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(ZO,{name:Q,acts:v.acts},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null,A?F.jsxDEV(F.Fragment,{children:[K.narration?F.jsxDEV("p",{className:"narration",children:K.narration},void 0,!1,void 0,this):null,F.jsxDEV("h4",{children:"Where it went"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"block where",children:[E.performed>0?F.jsxDEV("p",{className:"pad",children:[E.performed>=E.total?"Deployed":"Partly deployed",": ",E.performed," of ",E.total," change",E.total===1?"":"s",E.own?` (and ${E.own} of the World's own, which stay in it)`:""," performed at ",E8([...new Set([...p.map((a)=>a.service),...Q1.filter((a)=>a.status==="confirmed").map((a)=>a.service)].map(s1))]),p.length?` (${p.length} from here`:" (",p.length&&g?", ":"",g?`${g} by the remote`:"",")."]},void 0,!0,void 0,this):E.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",_1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:_1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(j0,{iso:K.applied.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,": every change was replayed there. No vendor has performed any of it."]},void 0,!0,void 0,this):E.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",K.applied?.outcome==="refused"?" A push was refused (below); Push sends it again.":F.jsxDEV(F.Fragment,{children:[" Push sends it to the remote World",s?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,E.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[E.failed," change",E.failed===1?" was":"s were"," refused or failed at the vendor",[...h.filter((a)=>a.reason&&(a.status==="refused"||a.status==="failed")).map((a)=>a.reason),...Q1.filter((a)=>a.status==="failed"&&a.error).map((a)=>a.error)].slice(0,3).map((a)=>`: ${M2(a).text}`).join(""),"."]},void 0,!0,void 0,this):null,K.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:K.applied.refusal.map((a,H1)=>F.jsxDEV("li",{className:"mode",children:M2(a).text},H1,!1,void 0,this))},void 0,!1,void 0,this):null,h.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the vendor"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:h.map((a)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:a.status==="refused"||a.status==="failed"?"badge cs-bad":a.status==="deployed"?"badge cs-done":"badge",children:a.status},void 0,!1,void 0,this)," ",s1(a.service)," ",a.status==="deployed"?a.url?F.jsxDEV("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:a.externalId??a.url},void 0,!1,void 0,this):a.externalId?F.jsxDEV("code",{children:a.externalId},void 0,!1,void 0,this):null:null,a.reason?F.jsxDEV("span",{className:"mode",children:[" · ",M2(a.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(j0,{iso:a.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${a.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Q1.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the remote"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:Q1.map((a)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:a.status==="failed"?"badge cs-bad":a.status==="confirmed"?"badge cs-done":"badge",children:a.status},void 0,!1,void 0,this)," ",s1(a.service)," ",F.jsxDEV("span",{className:"mode",children:a.status==="replayed"?"replayed at the remote World":a.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),a.status==="confirmed"&&a.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:a.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,a.error?F.jsxDEV("span",{className:"mode",children:[" · ",M2(a.error).text]},void 0,!0,void 0,this):null]},`r:${a.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!s&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:["No vendor it changes is connected to its real service here, so it does not deploy from this World. ",F.jsxDEV("a",{href:`${n1}/${Q}/~/settings/services`,onClick:(a)=>{a.preventDefault(),f0([...Q.split("/"),"~","settings","services"])},children:"Connect a vendor in Settings › Real services"},void 0,!1,void 0,this)," to deploy."]},void 0,!0,void 0,this):null,F.jsxDEV("h4",{children:"Checks"},void 0,!1,void 0,this),!K.verification?F.jsxDEV("p",{className:"mode",children:"Not verified yet. Verify replays it in a throwaway World and runs this World's checks over the result."},void 0,!1,void 0,this):F.jsxDEV("div",{className:U1(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(j0,{iso:K.verification.at},void 0,!1,void 0,this),U1(K.verification.contentHash)?null:F.jsxDEV("span",{className:"mode",children:" · on an earlier version of it: verify again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.verification.results.length?F.jsxDEV("ul",{className:"checks",children:K.verification.results.map((a)=>F.jsxDEV("li",{children:[a.passed?"✓":"✗"," ",F.jsxDEV("code",{children:a.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:s1(a.service)},void 0,!1,void 0,this)]},a.id,!0,void 0,this))},void 0,!1,void 0,this):null,K.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:K.verification.refusals.map((a,H1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:a.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[s1(a.service),": ",a.reason]},void 0,!0,void 0,this)]},H1,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("h4",{children:"Approvals"},void 0,!1,void 0,this),K.approvals.length===0?F.jsxDEV("p",{className:"mode",children:"No one has approved it."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"approvals",children:K.approvals.map((a,H1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:a.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(j0,{iso:a.at},void 0,!1,void 0,this),U1(a.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),a.note?F.jsxDEV("div",{className:"mode",children:["“",a.note,"”"]},void 0,!0,void 0,this):null]},H1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(E5,{open:P,onClose:()=>{if(!R)V(!1)},title:`Approve ${K.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(!1),disabled:R!==null,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:R!==null,children:R==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(a)=>void o(a),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",Z?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.jsxDEV("b",{children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,". A later change to it shows your approval as for an earlier version."]},void 0,!0,void 0,this),Z===null?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:y,onChange:(a)=>N(a.target.value),maxLength:80,required:!0,placeholder:"your name or email",autoComplete:"off"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"This World was opened with its token, which names no person: the approval records the name you give."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Note ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("textarea",{name:"approveNote",value:S,onChange:(a)=>C(a.target.value),rows:3,maxLength:500},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var fO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function DV({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((K)=>K.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((K)=>{let H=Q.filter((W)=>W.twin===K).map((W)=>W.entry),Y=[...new Set(H.map((W)=>`${W.subject.type}:${W.subject.id}`))];return F.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`${U}-${K}`,children:[F.jsxDEV("h3",{id:`${U}-${K}`,className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:K},void 0,!1,void 0,this),s1(K)," ",F.jsxDEV("span",{className:"mode",children:["· ",l0(Y.length,"record"),", ",l0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((W)=>{let L=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===W),M=L[L.length-1],O=Q4(M),T={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:M.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",O.label?F.jsxDEV("span",{className:"label",children:["“",O.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:i3(M)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L.map((A)=>{let R=A.fields??{},w=Object.entries(R).filter(([V,S])=>!(V in T)||!fO(T[V],S)),P=T;return T={...T,...R},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:Q4(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(j0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",dJ(A)]},void 0,!0,void 0,this),w.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${Q4(A).what} set`,children:w.map(([V,S])=>F.jsxDEV(F1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:V in P?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(d3,{v:P[V]},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"arrow","aria-label":"becomes",children:"→"},void 0,!1,void 0,this),F.jsxDEV("ins",{children:F.jsxDEV(d3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(d3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},V,!0,void 0,this))},void 0,!1,void 0,this)]},A.id,!0,void 0,this)})]},W,!0,void 0,this)})},void 0,!1,void 0,this)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function uV({name:Q,token:U,changes:Z,canWrite:K,refused:H,onCut:Y,pinned:W,generated:L,inputRef:M,author:O}){let[T,A]=F1.useState(""),[R,w]=F1.useState(!1),[P,V]=F1.useState([]),S=(y,N,v)=>{V((D)=>[{ok:y,text:N,at:new Date().toISOString(),n:++aJ,...v?.length?{acts:v}:{}},...D].slice(0,4))},C=async(y)=>{y.preventDefault(),w(!0);try{let N=await O0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(T.trim()?{message:T.trim()}:{})});if(!N.ok){H(N);let D=M2(await k3(N));S(!1,`Cut a changeset: ${D.text}`,D.acts);return}let v=await N.json();S(!0,`Cut ${v.name??"a changeset"}: ${l0(v.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(N){S(!1,`Cut a changeset: the World did not answer (${N instanceof Error?N.message:String(N)})`)}finally{w(!1)}};if(W){let y=!K?"This session reads the World; it changes nothing":Z===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(r6,{log:P,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(N)=>void C(N),"aria-label":"Cut a changeset",children:[O?F.jsxDEV("a",{className:"ws-author",href:O.account,title:`${O.who}: your account`,onClick:(N)=>{N.preventDefault(),f0(O.account.slice(n1.length+1).split("/"))},children:O.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:M,name:"changesetMessage","aria-label":"Summary",value:T,onChange:(N)=>A(N.target.value),placeholder:Z===0?"Nothing to cut":L?"Summary (optional)":"Summary (required)",required:!L,maxLength:200,disabled:Boolean(y),title:y??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(y)||R,title:y??void 0,children:R?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",l0(Z,"change"),O?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:O.branch},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!K||Z===0)return F.jsxDEV(r6,{log:P,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(y)=>void C(y),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",Z===1?"this change":`these ${Z} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:T,onChange:(y)=>A(y.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:Z===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:R||Z===0,children:R?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(r6,{log:P,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bV({name:Q,token:U}){let[Z,K]=F1.useState(0),H=y0(U,`/-/${Q}/keys`,Z),[Y,W]=F1.useState(!1),[L,M]=F1.useState(""),[O,T]=F1.useState("write"),[A,R]=F1.useState(!1),[w,P]=F1.useState(null),[V,S]=F1.useState(null),[C,y]=F1.useState(null),N=async()=>{let x=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,E=await O0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:x,scope:"read"})}).catch(()=>null),u=E?await E.json().catch(()=>({})):{error:`${P0} did not answer`};if(!E?.ok||!u.key){e0(u.error?M2(u.error).text:"refused","error");return}y(`${window.location.origin}${n1}/${Q}#${new URLSearchParams({token:u.key}).toString()}`),K((b)=>b+1)},v=async(x)=>{x.preventDefault(),R(!0),P(null);let E=await O0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:L.trim(),scope:O})}).catch(()=>null);R(!1);let u=E?await E.json().catch(()=>({})):{error:`${P0} did not answer`};if(!E?.ok||!u.key){P(u.error?M2(u.error).text:"refused");return}W(!1),S({key:u.key,name:L.trim()}),M(""),K((b)=>b+1)},D=async(x)=>{if(!await n4({title:`Revoke ${x.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let E=await O0(U,`/-/${Q}/keys/${x.id}`,{method:"DELETE"});if(E.ok)e0(`Revoked ${x.name}`);else e0(await T5(E),"error");K((u)=>u+1)};return F.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[F.jsxDEV("div",{className:"keys-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"What an app, a script or a CI job holds to reach this World: each named for what holds it and revoked alone. People open the World as themselves; keys are for software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t2()?F.jsxDEV("a",{className:"button primary",href:`${t2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):F.jsxDEV("div",{className:"head-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>void N(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{P(null),W(!0)},children:"Make a key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(r2,{load:H,what:"the keys",retry:()=>K((x)=>x+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:H.data.keys.map((x)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:x.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:x.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:x.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:b8(x.createdAt),children:sF(x.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:x.lastUsedAt?sF(x.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(lA,{label:`More for ${x.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void D(x)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},x.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(E5,{open:Y,onClose:()=>{if(!A)W(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>W(!1),disabled:A,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"make-key",disabled:A||!L.trim(),children:A?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"make-key",onSubmit:v,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:L,onChange:(x)=>M(x.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:["Access ",F.jsxDEV("select",{value:O,onChange:(x)=>T(x.target.value==="read"?"read":"write"),children:[F.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"read",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w?F.jsxDEV("p",{role:"alert",children:w},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(E5,{open:Boolean(V),onClose:()=>S(null),title:`${V?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>S(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Copy it now: it is shown this once. Put it where the app reads its secrets."},void 0,!1,void 0,this),V?F.jsxDEV(oF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(E5,{open:Boolean(C),onClose:()=>y(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>y(null),children:"Done"},void 0,!1,void 0,this),children:[F.jsxDEV("p",{className:"mode",children:"Whoever opens it sees this World's pages and changes nothing. Copy it now: it is shown this once. It is listed under Keys, where revoking it closes the link at once."},void 0,!1,void 0,this),C?F.jsxDEV(oF,{label:"Link",value:C,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var aJ=0;function r6({log:Q,name:U}){if(Q.length===0)return null;return F.jsxDEV("ul",{className:"narration-log",role:"status","aria-live":"polite",children:Q.map((Z)=>F.jsxDEV("li",{className:Z.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(j0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(ZO,{name:U,acts:Z.acts},void 0,!1,void 0,this):null]},Z.n,!0,void 0,this))},void 0,!1,void 0,this)}function SO(Q,U,Z,K){let[H,Y]=F1.useState(0),W=H*1e5+Math.floor(Z/2),L=y0(U,`/-/${Q}/origin`,W),M=y0(U,`/-/${Q}/diff`,W),O=y0(U,`/-/${Q}/changesets`,W),[T,A]=F1.useState([]),[R,w]=F1.useState(null),P=(D,x,E)=>{if(A((u)=>[{ok:D,text:x,at:new Date().toISOString(),n:++aJ,...E?.length?{acts:E}:{}},...u].slice(0,8)),!D)e0(x,"error")},V=async(D,x,E)=>{w(D);try{let u=await O0(U,`/-/${Q}/${x}`,E);if(!u.ok){K(u);let b=M2(await k3(u));return P(!1,`${D}: ${b.text}`,b.acts),null}return await u.json()}catch(u){return P(!1,`${D}: the World did not answer (${u instanceof Error?u.message:String(u)})`),null}finally{w(null),Y((u)=>u+1)}},S=L.state==="ok"&&L.data.origin?HH(L.data.origin):null,C=M.state==="ok"?M.data.changes.length:null,y=O.state==="ok"&&S?WV(O.data.changesets.filter((D)=>!D.pushedBy)).sort((D,x)=>D.createdAt.localeCompare(x.createdAt)):[];return{origin:L,diff:M,sets:O,there:S,changes:C,waiting:y,log:T,busy:R,say:P,send:V,push:async()=>{let D=await V("Push","origin/push",{method:"POST"});if(!D)return;if(D.pushed.length===0){P(!0,"Nothing to push: every changeset is already at the remote.");return}for(let x of D.pushed){let E=x.receipts??[],u=E.filter((Q1)=>Q1.status==="replayed").length,b=E.filter((Q1)=>Q1.status==="confirmed").length,m=E.filter((Q1)=>Q1.status==="failed").length,s=x.outcome==="applied"&&m===0;if(x.outcome==="refused"){P(!1,`Push of ${x.changeset} was refused${x.refusal?.length?`: ${x.refusal.map((Q1)=>M2(Q1).text).join("; ")}`:""}.`);continue}let U1=[`${u} of ${l0(E.length,"change")} replayed there`,...b?[`${b} performed at the vendor by the remote`]:[],...m?[`${m} failed`]:[]];P(s,`${x.outcome==="partial"?"Partly pushed":"Pushed"} ${x.changeset} to ${S??"the remote"}: ${U1.join("; ")}${x.refusal?.length?` (${x.refusal.map((Q1)=>M2(Q1).text).join("; ")})`:""}.`)}},pull:async()=>{let D=await V("Pull","origin/pull",{method:"POST"});if(!D)return;let x=Object.entries(D.appended).filter(([,u])=>u>0),E=D.rebased.flatMap((u)=>u.conflicts.map((b)=>`${s1(u.twin)} ${b.subject.type}:${b.subject.id} ${b.field}`));P(E.length===0,`Pulled from ${S??"the remote"}: ${x.length?x.map(([u,b])=>`${l0(b,"entry")} at ${s1(u)}`).join(", "):"nothing new"}${E.length?`; conflicts at ${E.join(", ")}`:""}.`)}}}function EV({name:Q,token:U,canWrite:Z,tick:K,refused:H}){let{origin:Y,there:W,changes:L,log:M,busy:O,say:T,send:A,push:R,pull:w}=SO(Q,U,K,H),[P,V]=F1.useState(""),[S,C]=F1.useState(""),[y,N]=F1.useState(!1),v=async(x)=>{x.preventDefault();let E=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:P.trim(),token:S.trim()})});if(E){let u=Object.values(E.appended??{}).reduce((b,m)=>b+m,0);T(!0,`The remote is ${HH(E.origin)}: its history came in (${l0(u,"entry")}).`),C(""),N(!1)}},D=!Z?"This session reads the World; it changes nothing":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"block remote",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{children:"Origin"},void 0,!1,void 0,this),Z?F.jsxDEV("button",{type:"button",onClick:()=>{V(W??""),N(!y)},"aria-expanded":y,children:W?"Change the remote…":"Name a remote…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"pad",children:[Y.state==="ok"?W?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:W},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(j0,{iso:Y.data.origin.fetchedAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("p",{children:"No remote — this World keeps its default data. Name one to push its changesets to a shared World and pull what others pushed there."},void 0,!1,void 0,this):F.jsxDEV(r2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),y?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(x)=>void v(x),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:P,onChange:(x)=>V(x.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:S,onChange:(x)=>C(x.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:O!==null,children:O==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>N(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(r6,{log:M,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hV({name:Q,token:U,canWrite:Z,refused:K}){let[H,Y]=F1.useState(0),W=y0(U,`/-/${Q}/twins`,H),L=y0(U,`/-/${Q}/links`,H),M=y0(U,`/-/${Q}/requests?hours=24`,H),[O,T]=F1.useState({}),[A,R]=F1.useState(null),[w,P]=F1.useState(""),[V,S]=F1.useState(!1),[C,y]=F1.useState([]),N=(b,m,s)=>{if(y((U1)=>[{ok:b,text:m,at:new Date().toISOString(),n:++aJ,...s?.length?{acts:s}:{}},...U1].slice(0,6)),!b)e0(m,"error")},v=L.state==="ok"?Object.keys(L.data.links).sort():[];F1.useEffect(()=>{let b=!0;return Promise.all(v.map(async(m)=>{let s=await O0(U,`/-/${Q}/twins/${m}/credential`).catch(()=>null),U1=s?.ok?await s.json():null;return[m,U1?.credential??null]})).then((m)=>{if(b)T(Object.fromEntries(m))}),()=>{b=!1}},[Q,U,v.join(","),H]);let D=async(b)=>{if(b.preventDefault(),!A||!w)return;S(!0);let m=await O0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:w,headers:{"content-type":"text/plain"}}).catch(()=>null);if(S(!1),!m){N(!1,`Seal ${A.vendor}: ${P0} did not answer`);return}if(!m.ok){K(m);let U1=M2(await k3(m));N(!1,`Seal ${s1(A.vendor)}: ${U1.text}`,U1.acts);return}let s=await m.json().catch(()=>({}));N(!0,`Sealed a credential for ${s1(A.vendor)}${s.fingerprint?` (${s.fingerprint})`:""}: it opens for ${s.boundTo??A.to} only, and is never shown again.`),P(""),R(null),Y((U1)=>U1+1)},x=async(b)=>{if(!await n4({title:`Remove the link ${b}?`,body:`Requests to ${c3}/${Q}/${b}/… stop being forwarded to ${L.state==="ok"?L.data.links[b]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let m=await O0(U,`/-/${Q}/links/${b}`,{method:"DELETE"}).catch(()=>null);if(!m?.ok){if(m)K(m);N(!1,`Remove ${b}: ${m?await T5(m):"the World did not answer"}`);return}N(!0,`Removed the link ${b}.`),Y((s)=>s+1)},E=(b)=>b?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge rooted",children:"sealed"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[b.fingerprint?F.jsxDEV("code",{children:b.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(j0,{iso:b.placedAt},void 0,!1,void 0,this),b.sealedBy?` · by ${b.sealedBy==="vault"?"the vault":"the host's key"}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this),u=W.state==="ok"?W.data.twins:[];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"lede",children:"A real vendor's credential lives in one place, sealed: beside this World, bound to where it goes. It is never readable back; this page says only that one is sealed, when, by what, and for where."},void 0,!1,void 0,this),F.jsxDEV(r6,{log:C,name:Q},void 0,!1,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"creds-head",children:[F.jsxDEV("div",{className:"block-head",children:F.jsxDEV("h3",{id:"creds-head",children:"Vendors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(r2,{load:W,what:"the vendors"},void 0,!1,void 0,this),W.state==="ok"?F.jsxDEV("table",{className:"dense","aria-label":"Credentials by vendor",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Bound to"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:u.map((b)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:b.twin},void 0,!1,void 0,this),s1(b.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E(b.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:b.credential?.boundTo?F.jsxDEV("code",{children:b.credential.boundTo},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:b.root?.url?F.jsxDEV("code",{children:b.root.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"none: a stand-in"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!b.root?.url,title:b.root?.url?`Seal ${s1(b.twin)}'s real credential for ${b.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{P(""),R({vendor:b.twin,to:b.root.url})},children:b.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},b.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&u.every((b)=>!b.root?.url)?F.jsxDEV("p",{className:"mode pad",children:"No vendor here has a real service behind it, so none holds a credential. Connect one in Settings › Real services; its credential is sealed here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"links-head",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{id:"links-head",children:"Links"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"a vendor with no twin, forwarded with its sealed credential"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(r2,{load:L,what:"the links"},void 0,!1,void 0,this),M.state==="ok"&&(M.data.journalFailures??0)>0?F.jsxDEV("p",{className:"mode pad",role:"alert",children:[M.data.journalFailures," request ",M.data.journalFailures===1?"line was":"lines were"," not kept by this World's server since it started (its links, and the twins it runs in its own process): those requests are missing from what this page counts."]},void 0,!0,void 0,this):null,L.state==="ok"&&v.length===0?F.jsxDEV("p",{className:"mode pad",children:["No links. A link forwards requests for a vendor with no twin here, at ",F.jsxDEV("code",{children:[c3,"/",Q,"/<link>/…"]},void 0,!0,void 0,this),", to that vendor's real API with the credential sealed for it."]},void 0,!0,void 0,this):null,v.length?F.jsxDEV("table",{className:"dense","aria-label":"Links",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Link"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Origin"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:"Requests, 24h"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:v.map((b)=>{let m=L.state==="ok"?L.data.links[b].origin:"",s=M.state==="ok"?M.data.twins.find((U1)=>U1.twin===b):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:b},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:m},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:s?F.jsxDEV("span",{title:Object.entries(s.byStatus).map(([U1,Q1])=>`${U1}: ${Q1}`).join(" · "),children:s.requests},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:[E(O[b]??null),O[b]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:O[b].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Z?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{P(""),R({vendor:b,to:m})},children:O[b]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void x(b),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},b,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(E5,{open:Boolean(A),onClose:()=>{if(!V)R(null)},title:`Seal ${A?s1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>R(null),disabled:V,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:V||!w,children:V?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(b)=>void D(b),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:w,onChange:(b)=>P(b.target.value),autoComplete:"off",required:!0,autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function xV({name:Q,token:U,admin:Z,canWrite:K,refused:H,onRemoved:Y,only:W}){let L=(l)=>!W||W===l,[M,O]=F1.useState(0),T=y0(U,`/-/${Q}/twins`,M),A=y0(U,`/-/${Q}/checks`,M),[R,w]=F1.useState(0),P=y0(U,`/-/${Q}/clock`,R),[V,S]=F1.useState([]),[C,y]=F1.useState(null),[N,v]=F1.useState(null),[D,x]=F1.useState(""),[E,u]=F1.useState("gated"),[b,m]=F1.useState(!1),s=(l,o,k)=>{if(S((t)=>[{ok:l,text:o,at:new Date().toISOString(),n:++aJ,...k?.length?{acts:k}:{}},...t].slice(0,6)),!l)e0(o,"error")},U1=async(l,o,k)=>{let t=await O0(U,o,k).catch(()=>null);if(!t)return s(!1,`${l}: the World did not answer`),!1;if(!t.ok){H(t);let _1=M2(await k3(t));return s(!1,`${l}: ${_1.text}`,_1.acts),!1}return s(!0,`${l}: done.`),O((_1)=>_1+1),!0},Q1=async(l)=>{if(l.preventDefault(),!N)return;m(!0);let o=N.root??{},k=await U1(D.trim()?`Connect ${s1(N.twin)} to ${D.trim()}`:`Disconnect ${s1(N.twin)}`,`/-/${Q}/twins/${N.twin}/root`,{method:"PUT",body:JSON.stringify(D.trim()?{...o,url:D.trim(),deploy:E}:null)});if(m(!1),k)v(null)},h=async()=>{if(!await n4({title:`Rotate the tokens of ${Q}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let l=await O0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(l.ok)y(await l.json()),s(!0,"Rotated: the new tokens are shown once, below.");else s(!1,`Rotate: ${await T5(l)}`)},g=async()=>{if(!await n4({title:`Remove ${Q}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:Q}))return;let l=await O0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(l instanceof Error){s(!1,`Remove: the host did not answer (${l.message})`);return}if(l.ok)Y();else s(!1,`Remove: ${await T5(l)}`)},p=T.state==="ok"?T.data.twins:[],c={gated:"gated: a person deploys an approved changeset",auto:"auto: a push deploys at once",hold:"hold: nothing deploys"};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(r6,{log:V,name:Q},void 0,!1,void 0,this),L("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),K?F.jsxDEV(bV,{name:Q,token:U},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"This session reads the World: its keys are managed by whoever holds its token."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,L("services")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Real services"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:[p.some((l)=>l.root?.url)?null:"Every vendor here is a stand-in. ","Connect a vendor to its real service to read the real state into this World; its real credential is sealed in the Vault, and an approved changeset deploys there by its policy."]},void 0,!0,void 0,this),F.jsxDEV(r2,{load:T,what:"the vendors"},void 0,!1,void 0,this),T.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Real services",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last read from it"},void 0,!1,void 0,this),K?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:p.map((l)=>{let o=l.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:l.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${n1}/${Q}/${l.twin}`,title:`Its log and stored state · ${l.position??0} entries`,onClick:(k)=>{k.preventDefault(),f0([...Q.split("/"),l.twin])},children:s1(l.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:o?.url?F.jsxDEV("code",{children:o.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:o?.url?c[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:l.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",l.refresh.failed.count??1,": ",l.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?b8(l.refresh?.observedAt??l.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{x(o?.url??""),u(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),v(l)},children:o?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!o?.url,title:o?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void n4({title:`Read ${s1(l.twin)} now?`,body:`The real ${s1(l.twin)}'s current state is read into this World. Nothing is written to ${s1(l.twin)}.`,action:"Read from it"}).then((k)=>{if(k)U1(`Read from ${s1(l.twin)}`,`/-/${Q}/twins/${l.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},l.twin,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,L("clock")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Clock"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"The instant every vendor here stamps from. Set it and move it forward to see what happens later: renewals, expiries, scheduled sends."},void 0,!1,void 0,this),F.jsxDEV(BV,{name:Q,token:U,clock:P,canWrite:K,onChanged:()=>w((l)=>l+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,L("checks")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Checks"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"JavaScript the World runs over every change before it is performed (a changeset's Verify runs them too)."},void 0,!1,void 0,this),F.jsxDEV(r2,{load:A,what:"the checks"},void 0,!1,void 0,this),A.state==="ok"?A.data.checks.length===0?F.jsxDEV("p",{className:"mode",children:"No checks: every change is performed as it comes."},void 0,!1,void 0,this):F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Checks",children:F.jsxDEV("tbody",{children:A.data.checks.map((l)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},l,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,Z&&!W?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),C?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:C.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:C.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void h(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"New tokens for this World; every app, script and browser using the old ones is signed out."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void g(),children:"Remove world"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:"Deletes this World and everything in it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(E5,{open:Boolean(N),onClose:()=>{if(!b)v(null)},title:`Connect ${N?s1(N.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(null),disabled:b,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:b,children:b?"Saving…":D.trim()?"Connect":"Disconnect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"connect-root",className:"stack",onSubmit:(l)=>void Q1(l),children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real service's API address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"rootUrl",value:D,onChange:(l)=>x(l.target.value),placeholder:"https://api.openai.com",autoFocus:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Empty disconnects it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"rootDeploy",value:E,onChange:(l)=>u(l.target.value==="auto"?"auto":l.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((l)=>F.jsxDEV("option",{value:l,children:c[l]},l,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(ej,{},void 0,!1,void 0,this),F.jsxDEV(cA,{},void 0,!1,void 0,this),F.jsxDEV(pA,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var VO=s0(u8(),1);Aq();jO.createRoot(U7).render(VO.jsxDEV(vO,{},void 0,!1,void 0,this));