@revisium/admin 0.11.0-alpha.5 → 1.0.1

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.
@@ -37,7 +37,7 @@ var C6=Object.defineProperty;var E6=(e,t,r)=>t in e?C6(e,t,{enumerable:!0,config
37
37
  `+P[D].replace(" at new "," at ");return s.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",s.displayName)),J}while(1<=D&&0<=W);break}}}finally{q=!1,Error.prepareStackTrace=h}return(s=s?s.displayName||s.name:"")?U(s):""}function F(s){switch(s.tag){case 5:return U(s.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return s=$(s.type,!1),s;case 11:return s=$(s.type.render,!1),s;case 1:return s=$(s.type,!0),s;default:return""}}function V(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case T:return"Fragment";case R:return"Portal";case M:return"Profiler";case A:return"StrictMode";case ie:return"Suspense";case N:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Q:return(s.displayName||"Context")+".Consumer";case B:return(s._context.displayName||"Context")+".Provider";case se:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case X:return u=s.displayName||null,u!==null?u:V(s.type)||"Memo";case ce:u=s._payload,s=s._init;try{return V(s(u))}catch{}}return null}function de(s){var u=s.type;switch(s.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=u.render,s=s.displayName||s.name||"",u.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(u);case 8:return u===A?"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 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function pe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Ee(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Me(s){var u=Ee(s)?"checked":"value",h=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),v=""+s[u];if(!s.hasOwnProperty(u)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var P=h.get,I=h.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return P.call(this)},set:function(D){v=""+D,I.call(this,D)}}),Object.defineProperty(s,u,{enumerable:h.enumerable}),{getValue:function(){return v},setValue:function(D){v=""+D},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function Y(s){s._valueTracker||(s._valueTracker=Me(s))}function K(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var h=u.getValue(),v="";return s&&(v=Ee(s)?s.checked?"true":"false":s.value),s=v,s!==h?(u.setValue(s),!0):!1}function we(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Te(s,u){var h=u.checked;return Z({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??s._wrapperState.initialChecked})}function he(s,u){var h=u.defaultValue==null?"":u.defaultValue,v=u.checked!=null?u.checked:u.defaultChecked;h=pe(u.value!=null?u.value:h),s._wrapperState={initialChecked:v,initialValue:h,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function Ce(s,u){u=u.checked,u!=null&&C(s,"checked",u,!1)}function Ge(s,u){Ce(s,u);var h=pe(u.value),v=u.type;if(h!=null)v==="number"?(h===0&&s.value===""||s.value!=h)&&(s.value=""+h):s.value!==""+h&&(s.value=""+h);else if(v==="submit"||v==="reset"){s.removeAttribute("value");return}u.hasOwnProperty("value")?Kt(s,u.type,h):u.hasOwnProperty("defaultValue")&&Kt(s,u.type,pe(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(s.defaultChecked=!!u.defaultChecked)}function $t(s,u,h){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var v=u.type;if(!(v!=="submit"&&v!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+s._wrapperState.initialValue,h||u===s.value||(s.value=u),s.defaultValue=u}h=s.name,h!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,h!==""&&(s.name=h)}function Kt(s,u,h){(u!=="number"||we(s.ownerDocument)!==s)&&(h==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+h&&(s.defaultValue=""+h))}var It=Array.isArray;function jt(s,u,h,v){if(s=s.options,u){u={};for(var P=0;P<h.length;P++)u["$"+h[P]]=!0;for(h=0;h<s.length;h++)P=u.hasOwnProperty("$"+s[h].value),s[h].selected!==P&&(s[h].selected=P),P&&v&&(s[h].defaultSelected=!0)}else{for(h=""+pe(h),u=null,P=0;P<s.length;P++){if(s[P].value===h){s[P].selected=!0,v&&(s[P].defaultSelected=!0);return}u!==null||s[P].disabled||(u=s[P])}u!==null&&(u.selected=!0)}}function Lt(s,u){if(u.dangerouslySetInnerHTML!=null)throw Error(r(91));return Z({},u,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function ht(s,u){var h=u.value;if(h==null){if(h=u.children,u=u.defaultValue,h!=null){if(u!=null)throw Error(r(92));if(It(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),h=u}s._wrapperState={initialValue:pe(h)}}function on(s,u){var h=pe(u.value),v=pe(u.defaultValue);h!=null&&(h=""+h,h!==s.value&&(s.value=h),u.defaultValue==null&&s.defaultValue!==h&&(s.defaultValue=h)),v!=null&&(s.defaultValue=""+v)}function mn(s){var u=s.textContent;u===s._wrapperState.initialValue&&u!==""&&u!==null&&(s.value=u)}function Ir(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jr(s,u){return s==null||s==="http://www.w3.org/1999/xhtml"?Ir(u):s==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var vn,Nr=function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,h,v,P){MSApp.execUnsafeLocalFunction(function(){return s(u,h,v,P)})}:s}(function(s,u){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=u;else{for(vn=vn||document.createElement("div"),vn.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=vn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}});function an(s,u){if(u){var h=s.firstChild;if(h&&h===s.lastChild&&h.nodeType===3){h.nodeValue=u;return}}s.textContent=u}var sn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_a=["Webkit","ms","Moz","O"];Object.keys(sn).forEach(function(s){_a.forEach(function(u){u=u+s.charAt(0).toUpperCase()+s.substring(1),sn[u]=sn[s]})});function Yi(s,u,h){return u==null||typeof u=="boolean"||u===""?"":h||typeof u!="number"||u===0||sn.hasOwnProperty(s)&&sn[s]?(""+u).trim():u+"px"}function xa(s,u){s=s.style;for(var h in u)if(u.hasOwnProperty(h)){var v=h.indexOf("--")===0,P=Yi(h,u[h],v);h==="float"&&(h="cssFloat"),v?s.setProperty(h,P):s[h]=P}}var Xi=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oi(s,u){if(u){if(Xi[s]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(r(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(r(61))}if(u.style!=null&&typeof u.style!="object")throw Error(r(62))}}function gn(s,u){if(s.indexOf("-")===-1)return typeof u.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wo=null;function Ko(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Pa=null,qn=null,vo=null;function pi(s){if(s=ah(s)){if(typeof Pa!="function")throw Error(r(280));var u=s.stateNode;u&&(u=bv(u),Pa(s.stateNode,s.type,u))}}function Ji(s){qn?vo?vo.push(s):vo=[s]:qn=s}function le(){if(qn){var s=qn,u=vo;if(vo=qn=null,pi(s),u)for(s=0;s<u.length;s++)pi(u[s])}}function ye(s,u){return s(u)}function xe(){}var $e=!1;function Be(s,u,h){if($e)return s(u,h);$e=!0;try{return ye(s,u,h)}finally{$e=!1,(qn!==null||vo!==null)&&(xe(),le())}}function pt(s,u){var h=s.stateNode;if(h===null)return null;var v=bv(h);if(v===null)return null;h=v[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(s=s.type,v=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!v;break e;default:s=!1}if(s)return null;if(h&&typeof h!="function")throw Error(r(231,u,typeof h));return h}var tt=!1;if(l)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){tt=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch{tt=!1}function xt(s,u,h,v,P,I,D,W,J){var Se=Array.prototype.slice.call(arguments,3);try{u.apply(h,Se)}catch(ke){this.onError(ke)}}var H=!1,L=null,G=!1,te=null,ue={onError:function(s){H=!0,L=s}};function ze(s,u,h,v,P,I,D,W,J){H=!1,L=null,xt.apply(ue,arguments)}function Ye(s,u,h,v,P,I,D,W,J){if(ze.apply(this,arguments),H){if(H){var Se=L;H=!1,L=null}else throw Error(r(198));G||(G=!0,te=Se)}}function ot(s){var u=s,h=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(h=u.return),s=u.return;while(s)}return u.tag===3?h:null}function Wt(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function nr(s){if(ot(s)!==s)throw Error(r(188))}function Pt(s){var u=s.alternate;if(!u){if(u=ot(s),u===null)throw Error(r(188));return u!==s?null:s}for(var h=s,v=u;;){var P=h.return;if(P===null)break;var I=P.alternate;if(I===null){if(v=P.return,v!==null){h=v;continue}break}if(P.child===I.child){for(I=P.child;I;){if(I===h)return nr(P),s;if(I===v)return nr(P),u;I=I.sibling}throw Error(r(188))}if(h.return!==v.return)h=P,v=I;else{for(var D=!1,W=P.child;W;){if(W===h){D=!0,h=P,v=I;break}if(W===v){D=!0,v=P,h=I;break}W=W.sibling}if(!D){for(W=I.child;W;){if(W===h){D=!0,h=I,v=P;break}if(W===v){D=!0,v=I,h=P;break}W=W.sibling}if(!D)throw Error(r(189))}}if(h.alternate!==v)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?s:u}function At(s){return s=Pt(s),s!==null?cr(s):null}function cr(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var u=cr(s);if(u!==null)return u;s=s.sibling}return null}var ft=t.unstable_scheduleCallback,Gt=t.unstable_cancelCallback,it=t.unstable_shouldYield,Ct=t.unstable_requestPaint,Et=t.unstable_now,ar=t.unstable_getCurrentPriorityLevel,Fr=t.unstable_ImmediatePriority,mi=t.unstable_UserBlockingPriority,ei=t.unstable_NormalPriority,ti=t.unstable_LowPriority,vi=t.unstable_IdlePriority,gi=null,ln=null;function as(s){if(ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(gi,s,void 0,(s.current.flags&128)===128)}catch{}}var ri=Math.clz32?Math.clz32:Xs,jc=Math.log,Ys=Math.LN2;function Xs(s){return s>>>=0,s===0?32:31-(jc(s)/Ys|0)|0}var Go=64,ss=4194304;function Ca(s){switch(s&-s){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: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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function go(s,u){var h=s.pendingLanes;if(h===0)return 0;var v=0,P=s.suspendedLanes,I=s.pingedLanes,D=h&268435455;if(D!==0){var W=D&~P;W!==0?v=Ca(W):(I&=D,I!==0&&(v=Ca(I)))}else D=h&~P,D!==0?v=Ca(D):I!==0&&(v=Ca(I));if(v===0)return 0;if(u!==0&&u!==v&&(u&P)===0&&(P=v&-v,I=u&-u,P>=I||P===16&&(I&4194240)!==0))return u;if((v&4)!==0&&(v|=h&16),u=s.entangledLanes,u!==0)for(s=s.entanglements,u&=v;0<u;)h=31-ri(u),P=1<<h,v|=s[h],u&=~P;return v}function $c(s,u){switch(s){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64: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 u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zf(s,u){for(var h=s.suspendedLanes,v=s.pingedLanes,P=s.expirationTimes,I=s.pendingLanes;0<I;){var D=31-ri(I),W=1<<D,J=P[D];J===-1?((W&h)===0||(W&v)!==0)&&(P[D]=$c(W,u)):J<=u&&(s.expiredLanes|=W),I&=~W}}function qf(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function ov(){var s=Go;return Go<<=1,(Go&4194240)===0&&(Go=64),s}function Ac(s){for(var u=[],h=0;31>h;h++)u.push(s);return u}function du(s,u,h){s.pendingLanes|=u,u!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,u=31-ri(u),s[u]=h}function Pw(s,u){var h=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u,u=s.entanglements;var v=s.eventTimes;for(s=s.expirationTimes;0<h;){var P=31-ri(h),I=1<<P;u[P]=0,v[P]=-1,s[P]=-1,h&=~I}}function Uf(s,u){var h=s.entangledLanes|=u;for(s=s.entanglements;h;){var v=31-ri(h),P=1<<v;P&u|s[v]&u&&(s[v]|=u),h&=~P}}var sr=0;function av(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var sv,Hf,Dc,lv,uv,Wf=!1,ls=[],yo=null,bo=null,wo=null,fu=new Map,Js=new Map,So=[],cv="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 submit".split(" ");function Ea(s,u){switch(s){case"focusin":case"focusout":yo=null;break;case"dragenter":case"dragleave":bo=null;break;case"mouseover":case"mouseout":wo=null;break;case"pointerover":case"pointerout":fu.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(u.pointerId)}}function Qo(s,u,h,v,P,I){return s===null||s.nativeEvent!==I?(s={blockedOn:u,domEventName:h,eventSystemFlags:v,nativeEvent:I,targetContainers:[P]},u!==null&&(u=ah(u),u!==null&&Hf(u)),s):(s.eventSystemFlags|=v,u=s.targetContainers,P!==null&&u.indexOf(P)===-1&&u.push(P),s)}function Cw(s,u,h,v,P){switch(u){case"focusin":return yo=Qo(yo,s,u,h,v,P),!0;case"dragenter":return bo=Qo(bo,s,u,h,v,P),!0;case"mouseover":return wo=Qo(wo,s,u,h,v,P),!0;case"pointerover":var I=P.pointerId;return fu.set(I,Qo(fu.get(I)||null,s,u,h,v,P)),!0;case"gotpointercapture":return I=P.pointerId,Js.set(I,Qo(Js.get(I)||null,s,u,h,v,P)),!0}return!1}function Kf(s){var u=pu(s.target);if(u!==null){var h=ot(u);if(h!==null){if(u=h.tag,u===13){if(u=Wt(h),u!==null){s.blockedOn=u,uv(s.priority,function(){Dc(h)});return}}else if(u===3&&h.stateNode.current.memoizedState.isDehydrated){s.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Mc(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var h=dr(s.domEventName,s.eventSystemFlags,u[0],s.nativeEvent);if(h===null){h=s.nativeEvent;var v=new h.constructor(h.type,h);Wo=v,h.target.dispatchEvent(v),Wo=null}else return u=ah(h),u!==null&&Hf(u),s.blockedOn=h,!1;u.shift()}return!0}function Gf(s,u,h){Mc(s)&&h.delete(u)}function Ew(){Wf=!1,yo!==null&&Mc(yo)&&(yo=null),bo!==null&&Mc(bo)&&(bo=null),wo!==null&&Mc(wo)&&(wo=null),fu.forEach(Gf),Js.forEach(Gf)}function hu(s,u){s.blockedOn===u&&(s.blockedOn=null,Wf||(Wf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ew)))}function Zs(s){function u(P){return hu(P,s)}if(0<ls.length){hu(ls[0],s);for(var h=1;h<ls.length;h++){var v=ls[h];v.blockedOn===s&&(v.blockedOn=null)}}for(yo!==null&&hu(yo,s),bo!==null&&hu(bo,s),wo!==null&&hu(wo,s),fu.forEach(u),Js.forEach(u),h=0;h<So.length;h++)v=So[h],v.blockedOn===s&&(v.blockedOn=null);for(;0<So.length&&(h=So[0],h.blockedOn===null);)Kf(h),h.blockedOn===null&&So.shift()}var el=k.ReactCurrentBatchConfig,z=!0;function oe(s,u,h,v){var P=sr,I=el.transition;el.transition=null;try{sr=1,We(s,u,h,v)}finally{sr=P,el.transition=I}}function _e(s,u,h,v){var P=sr,I=el.transition;el.transition=null;try{sr=4,We(s,u,h,v)}finally{sr=P,el.transition=I}}function We(s,u,h,v){if(z){var P=dr(s,u,h,v);if(P===null)zw(s,u,v,Bt,h),Ea(s,v);else if(Cw(P,s,u,h,v))v.stopPropagation();else if(Ea(s,v),u&4&&-1<cv.indexOf(s)){for(;P!==null;){var I=ah(P);if(I!==null&&sv(I),I=dr(s,u,h,v),I===null&&zw(s,u,v,Bt,h),I===P)break;P=I}P!==null&&v.stopPropagation()}else zw(s,u,v,null,h)}}var Bt=null;function dr(s,u,h,v){if(Bt=null,s=Ko(v),s=pu(s),s!==null)if(u=ot(s),u===null)s=null;else if(h=u.tag,h===13){if(s=Wt(u),s!==null)return s;s=null}else if(h===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null);return Bt=s,null}function kr(s){switch(s){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ar()){case Fr:return 1;case mi:return 4;case ei:case ti:return 16;case vi:return 536870912;default:return 16}default:return 16}}var Mt=null,Tr=null,ni=null;function ii(){if(ni)return ni;var s,u=Tr,h=u.length,v,P="value"in Mt?Mt.value:Mt.textContent,I=P.length;for(s=0;s<h&&u[s]===P[s];s++);var D=h-s;for(v=1;v<=D&&u[h-v]===P[I-v];v++);return ni=P.slice(s,1<v?1-v:void 0)}function Ta(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function tl(){return!0}function Nc(){return!1}function oi(s){function u(h,v,P,I,D){this._reactName=h,this._targetInst=P,this.type=v,this.nativeEvent=I,this.target=D,this.currentTarget=null;for(var W in s)s.hasOwnProperty(W)&&(h=s[W],this[W]=h?h(I):I[W]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?tl:Nc,this.isPropagationStopped=Nc,this}return Z(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=tl)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=tl)},persist:function(){},isPersistent:tl}),u}var Fc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tw=oi(Fc),Qf=Z({},Fc,{view:0,detail:0}),J3=oi(Qf),Ow,Rw,Yf,dv=Z({},Qf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kw,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Yf&&(Yf&&s.type==="mousemove"?(Ow=s.screenX-Yf.screenX,Rw=s.screenY-Yf.screenY):Rw=Ow=0,Yf=s),Ow)},movementY:function(s){return"movementY"in s?s.movementY:Rw}}),jT=oi(dv),Z3=Z({},dv,{dataTransfer:0}),ez=oi(Z3),tz=Z({},Qf,{relatedTarget:0}),Iw=oi(tz),rz=Z({},Fc,{animationName:0,elapsedTime:0,pseudoElement:0}),nz=oi(rz),iz=Z({},Fc,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),oz=oi(iz),az=Z({},Fc,{data:0}),$T=oi(az),sz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lz={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"},uz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cz(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=uz[s])?!!u[s]:!1}function kw(){return cz}var dz=Z({},Qf,{key:function(s){if(s.key){var u=sz[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=Ta(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?lz[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kw,charCode:function(s){return s.type==="keypress"?Ta(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Ta(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),fz=oi(dz),hz=Z({},dv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),AT=oi(hz),pz=Z({},Qf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kw}),mz=oi(pz),vz=Z({},Fc,{propertyName:0,elapsedTime:0,pseudoElement:0}),gz=oi(vz),yz=Z({},dv,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),bz=oi(yz),wz=[9,13,27,32],jw=l&&"CompositionEvent"in window,Xf=null;l&&"documentMode"in document&&(Xf=document.documentMode);var Sz=l&&"TextEvent"in window&&!Xf,DT=l&&(!jw||Xf&&8<Xf&&11>=Xf),MT=" ",NT=!1;function FT(s,u){switch(s){case"keyup":return wz.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LT(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Lc=!1;function _z(s,u){switch(s){case"compositionend":return LT(u);case"keypress":return u.which!==32?null:(NT=!0,MT);case"textInput":return s=u.data,s===MT&&NT?null:s;default:return null}}function xz(s,u){if(Lc)return s==="compositionend"||!jw&&FT(s,u)?(s=ii(),ni=Tr=Mt=null,Lc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return DT&&u.locale!=="ko"?null:u.data;default:return null}}var Pz={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function BT(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!Pz[s.type]:u==="textarea"}function VT(s,u,h,v){Ji(v),u=vv(u,"onChange"),0<u.length&&(h=new Tw("onChange","change",null,h,v),s.push({event:h,listeners:u}))}var Jf=null,Zf=null;function Cz(s){oO(s,0)}function fv(s){var u=Uc(s);if(K(u))return s}function Ez(s,u){if(s==="change")return u}var zT=!1;if(l){var $w;if(l){var Aw="oninput"in document;if(!Aw){var qT=document.createElement("div");qT.setAttribute("oninput","return;"),Aw=typeof qT.oninput=="function"}$w=Aw}else $w=!1;zT=$w&&(!document.documentMode||9<document.documentMode)}function UT(){Jf&&(Jf.detachEvent("onpropertychange",HT),Zf=Jf=null)}function HT(s){if(s.propertyName==="value"&&fv(Zf)){var u=[];VT(u,Zf,s,Ko(s)),Be(Cz,u)}}function Tz(s,u,h){s==="focusin"?(UT(),Jf=u,Zf=h,Jf.attachEvent("onpropertychange",HT)):s==="focusout"&&UT()}function Oz(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return fv(Zf)}function Rz(s,u){if(s==="click")return fv(u)}function Iz(s,u){if(s==="input"||s==="change")return fv(u)}function kz(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var Yo=typeof Object.is=="function"?Object.is:kz;function eh(s,u){if(Yo(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var h=Object.keys(s),v=Object.keys(u);if(h.length!==v.length)return!1;for(v=0;v<h.length;v++){var P=h[v];if(!c.call(u,P)||!Yo(s[P],u[P]))return!1}return!0}function WT(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function KT(s,u){var h=WT(s);s=0;for(var v;h;){if(h.nodeType===3){if(v=s+h.textContent.length,s<=u&&v>=u)return{node:h,offset:u-s};s=v}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=WT(h)}}function GT(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?GT(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function QT(){for(var s=window,u=we();u instanceof s.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href=="string"}catch{h=!1}if(h)s=u.contentWindow;else break;u=we(s.document)}return u}function Dw(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}function jz(s){var u=QT(),h=s.focusedElem,v=s.selectionRange;if(u!==h&&h&&h.ownerDocument&&GT(h.ownerDocument.documentElement,h)){if(v!==null&&Dw(h)){if(u=v.start,s=v.end,s===void 0&&(s=u),"selectionStart"in h)h.selectionStart=u,h.selectionEnd=Math.min(s,h.value.length);else if(s=(u=h.ownerDocument||document)&&u.defaultView||window,s.getSelection){s=s.getSelection();var P=h.textContent.length,I=Math.min(v.start,P);v=v.end===void 0?I:Math.min(v.end,P),!s.extend&&I>v&&(P=v,v=I,I=P),P=KT(h,I);var D=KT(h,v);P&&D&&(s.rangeCount!==1||s.anchorNode!==P.node||s.anchorOffset!==P.offset||s.focusNode!==D.node||s.focusOffset!==D.offset)&&(u=u.createRange(),u.setStart(P.node,P.offset),s.removeAllRanges(),I>v?(s.addRange(u),s.extend(D.node,D.offset)):(u.setEnd(D.node,D.offset),s.addRange(u)))}}for(u=[],s=h;s=s.parentNode;)s.nodeType===1&&u.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<u.length;h++)s=u[h],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var $z=l&&"documentMode"in document&&11>=document.documentMode,Bc=null,Mw=null,th=null,Nw=!1;function YT(s,u,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Nw||Bc==null||Bc!==we(v)||(v=Bc,"selectionStart"in v&&Dw(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),th&&eh(th,v)||(th=v,v=vv(Mw,"onSelect"),0<v.length&&(u=new Tw("onSelect","select",null,u,h),s.push({event:u,listeners:v}),u.target=Bc)))}function hv(s,u){var h={};return h[s.toLowerCase()]=u.toLowerCase(),h["Webkit"+s]="webkit"+u,h["Moz"+s]="moz"+u,h}var Vc={animationend:hv("Animation","AnimationEnd"),animationiteration:hv("Animation","AnimationIteration"),animationstart:hv("Animation","AnimationStart"),transitionend:hv("Transition","TransitionEnd")},Fw={},XT={};l&&(XT=document.createElement("div").style,"AnimationEvent"in window||(delete Vc.animationend.animation,delete Vc.animationiteration.animation,delete Vc.animationstart.animation),"TransitionEvent"in window||delete Vc.transitionend.transition);function pv(s){if(Fw[s])return Fw[s];if(!Vc[s])return s;var u=Vc[s],h;for(h in u)if(u.hasOwnProperty(h)&&h in XT)return Fw[s]=u[h];return s}var JT=pv("animationend"),ZT=pv("animationiteration"),eO=pv("animationstart"),tO=pv("transitionend"),rO=new Map,nO="abort auxClick 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(" ");function rl(s,u){rO.set(s,u),o(u,[s])}for(var Lw=0;Lw<nO.length;Lw++){var Bw=nO[Lw],Az=Bw.toLowerCase(),Dz=Bw[0].toUpperCase()+Bw.slice(1);rl(Az,"on"+Dz)}rl(JT,"onAnimationEnd"),rl(ZT,"onAnimationIteration"),rl(eO,"onAnimationStart"),rl("dblclick","onDoubleClick"),rl("focusin","onFocus"),rl("focusout","onBlur"),rl(tO,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rh="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(" "),Mz=new Set("cancel close invalid load scroll toggle".split(" ").concat(rh));function iO(s,u,h){var v=s.type||"unknown-event";s.currentTarget=h,Ye(v,u,void 0,s),s.currentTarget=null}function oO(s,u){u=(u&4)!==0;for(var h=0;h<s.length;h++){var v=s[h],P=v.event;v=v.listeners;e:{var I=void 0;if(u)for(var D=v.length-1;0<=D;D--){var W=v[D],J=W.instance,Se=W.currentTarget;if(W=W.listener,J!==I&&P.isPropagationStopped())break e;iO(P,W,Se),I=J}else for(D=0;D<v.length;D++){if(W=v[D],J=W.instance,Se=W.currentTarget,W=W.listener,J!==I&&P.isPropagationStopped())break e;iO(P,W,Se),I=J}}}if(G)throw s=te,G=!1,te=null,s}function Lr(s,u){var h=u[Gw];h===void 0&&(h=u[Gw]=new Set);var v=s+"__bubble";h.has(v)||(aO(u,s,2,!1),h.add(v))}function Vw(s,u,h){var v=0;u&&(v|=4),aO(h,s,v,u)}var mv="_reactListening"+Math.random().toString(36).slice(2);function nh(s){if(!s[mv]){s[mv]=!0,n.forEach(function(h){h!=="selectionchange"&&(Mz.has(h)||Vw(h,!1,s),Vw(h,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[mv]||(u[mv]=!0,Vw("selectionchange",!1,u))}}function aO(s,u,h,v){switch(kr(u)){case 1:var P=oe;break;case 4:P=_e;break;default:P=We}h=P.bind(null,u,h,s),P=void 0,!tt||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(P=!0),v?P!==void 0?s.addEventListener(u,h,{capture:!0,passive:P}):s.addEventListener(u,h,!0):P!==void 0?s.addEventListener(u,h,{passive:P}):s.addEventListener(u,h,!1)}function zw(s,u,h,v,P){var I=v;if((u&1)===0&&(u&2)===0&&v!==null)e:for(;;){if(v===null)return;var D=v.tag;if(D===3||D===4){var W=v.stateNode.containerInfo;if(W===P||W.nodeType===8&&W.parentNode===P)break;if(D===4)for(D=v.return;D!==null;){var J=D.tag;if((J===3||J===4)&&(J=D.stateNode.containerInfo,J===P||J.nodeType===8&&J.parentNode===P))return;D=D.return}for(;W!==null;){if(D=pu(W),D===null)return;if(J=D.tag,J===5||J===6){v=I=D;continue e}W=W.parentNode}}v=v.return}Be(function(){var Se=I,ke=Ko(h),Ae=[];e:{var Ie=rO.get(s);if(Ie!==void 0){var He=Tw,Xe=s;switch(s){case"keypress":if(Ta(h)===0)break e;case"keydown":case"keyup":He=fz;break;case"focusin":Xe="focus",He=Iw;break;case"focusout":Xe="blur",He=Iw;break;case"beforeblur":case"afterblur":He=Iw;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":He=jT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":He=ez;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":He=mz;break;case JT:case ZT:case eO:He=nz;break;case tO:He=gz;break;case"scroll":He=J3;break;case"wheel":He=bz;break;case"copy":case"cut":case"paste":He=oz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":He=AT}var et=(u&4)!==0,yn=!et&&s==="scroll",fe=et?Ie!==null?Ie+"Capture":null:Ie;et=[];for(var re=Se,me;re!==null;){me=re;var Fe=me.stateNode;if(me.tag===5&&Fe!==null&&(me=Fe,fe!==null&&(Fe=pt(re,fe),Fe!=null&&et.push(ih(re,Fe,me)))),yn)break;re=re.return}0<et.length&&(Ie=new He(Ie,Xe,null,h,ke),Ae.push({event:Ie,listeners:et}))}}if((u&7)===0){e:{if(Ie=s==="mouseover"||s==="pointerover",He=s==="mouseout"||s==="pointerout",Ie&&h!==Wo&&(Xe=h.relatedTarget||h.fromElement)&&(pu(Xe)||Xe[us]))break e;if((He||Ie)&&(Ie=ke.window===ke?ke:(Ie=ke.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,He?(Xe=h.relatedTarget||h.toElement,He=Se,Xe=Xe?pu(Xe):null,Xe!==null&&(yn=ot(Xe),Xe!==yn||Xe.tag!==5&&Xe.tag!==6)&&(Xe=null)):(He=null,Xe=Se),He!==Xe)){if(et=jT,Fe="onMouseLeave",fe="onMouseEnter",re="mouse",(s==="pointerout"||s==="pointerover")&&(et=AT,Fe="onPointerLeave",fe="onPointerEnter",re="pointer"),yn=He==null?Ie:Uc(He),me=Xe==null?Ie:Uc(Xe),Ie=new et(Fe,re+"leave",He,h,ke),Ie.target=yn,Ie.relatedTarget=me,Fe=null,pu(ke)===Se&&(et=new et(fe,re+"enter",Xe,h,ke),et.target=me,et.relatedTarget=yn,Fe=et),yn=Fe,He&&Xe)t:{for(et=He,fe=Xe,re=0,me=et;me;me=zc(me))re++;for(me=0,Fe=fe;Fe;Fe=zc(Fe))me++;for(;0<re-me;)et=zc(et),re--;for(;0<me-re;)fe=zc(fe),me--;for(;re--;){if(et===fe||fe!==null&&et===fe.alternate)break t;et=zc(et),fe=zc(fe)}et=null}else et=null;He!==null&&sO(Ae,Ie,He,et,!1),Xe!==null&&yn!==null&&sO(Ae,yn,Xe,et,!0)}}e:{if(Ie=Se?Uc(Se):window,He=Ie.nodeName&&Ie.nodeName.toLowerCase(),He==="select"||He==="input"&&Ie.type==="file")var nt=Ez;else if(BT(Ie))if(zT)nt=Iz;else{nt=Oz;var mt=Tz}else(He=Ie.nodeName)&&He.toLowerCase()==="input"&&(Ie.type==="checkbox"||Ie.type==="radio")&&(nt=Rz);if(nt&&(nt=nt(s,Se))){VT(Ae,nt,h,ke);break e}mt&&mt(s,Ie,Se),s==="focusout"&&(mt=Ie._wrapperState)&&mt.controlled&&Ie.type==="number"&&Kt(Ie,"number",Ie.value)}switch(mt=Se?Uc(Se):window,s){case"focusin":(BT(mt)||mt.contentEditable==="true")&&(Bc=mt,Mw=Se,th=null);break;case"focusout":th=Mw=Bc=null;break;case"mousedown":Nw=!0;break;case"contextmenu":case"mouseup":case"dragend":Nw=!1,YT(Ae,h,ke);break;case"selectionchange":if($z)break;case"keydown":case"keyup":YT(Ae,h,ke)}var vt;if(jw)e:{switch(s){case"compositionstart":var Tt="onCompositionStart";break e;case"compositionend":Tt="onCompositionEnd";break e;case"compositionupdate":Tt="onCompositionUpdate";break e}Tt=void 0}else Lc?FT(s,h)&&(Tt="onCompositionEnd"):s==="keydown"&&h.keyCode===229&&(Tt="onCompositionStart");Tt&&(DT&&h.locale!=="ko"&&(Lc||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&Lc&&(vt=ii()):(Mt=ke,Tr="value"in Mt?Mt.value:Mt.textContent,Lc=!0)),mt=vv(Se,Tt),0<mt.length&&(Tt=new $T(Tt,s,null,h,ke),Ae.push({event:Tt,listeners:mt}),vt?Tt.data=vt:(vt=LT(h),vt!==null&&(Tt.data=vt)))),(vt=Sz?_z(s,h):xz(s,h))&&(Se=vv(Se,"onBeforeInput"),0<Se.length&&(ke=new $T("onBeforeInput","beforeinput",null,h,ke),Ae.push({event:ke,listeners:Se}),ke.data=vt))}oO(Ae,u)})}function ih(s,u,h){return{instance:s,listener:u,currentTarget:h}}function vv(s,u){for(var h=u+"Capture",v=[];s!==null;){var P=s,I=P.stateNode;P.tag===5&&I!==null&&(P=I,I=pt(s,h),I!=null&&v.unshift(ih(s,I,P)),I=pt(s,u),I!=null&&v.push(ih(s,I,P))),s=s.return}return v}function zc(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function sO(s,u,h,v,P){for(var I=u._reactName,D=[];h!==null&&h!==v;){var W=h,J=W.alternate,Se=W.stateNode;if(J!==null&&J===v)break;W.tag===5&&Se!==null&&(W=Se,P?(J=pt(h,I),J!=null&&D.unshift(ih(h,J,W))):P||(J=pt(h,I),J!=null&&D.push(ih(h,J,W)))),h=h.return}D.length!==0&&s.push({event:u,listeners:D})}var Nz=/\r\n?/g,Fz=/\u0000|\uFFFD/g;function lO(s){return(typeof s=="string"?s:""+s).replace(Nz,`
38
38
  `).replace(Fz,"")}function gv(s,u,h){if(u=lO(u),lO(s)!==u&&h)throw Error(r(425))}function yv(){}var qw=null,Uw=null;function Hw(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Ww=typeof setTimeout=="function"?setTimeout:void 0,Lz=typeof clearTimeout=="function"?clearTimeout:void 0,uO=typeof Promise=="function"?Promise:void 0,Bz=typeof queueMicrotask=="function"?queueMicrotask:typeof uO<"u"?function(s){return uO.resolve(null).then(s).catch(Vz)}:Ww;function Vz(s){setTimeout(function(){throw s})}function Kw(s,u){var h=u,v=0;do{var P=h.nextSibling;if(s.removeChild(h),P&&P.nodeType===8)if(h=P.data,h==="/$"){if(v===0){s.removeChild(P),Zs(u);return}v--}else h!=="$"&&h!=="$?"&&h!=="$!"||v++;h=P}while(h);Zs(u)}function nl(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return s}function cO(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var h=s.data;if(h==="$"||h==="$!"||h==="$?"){if(u===0)return s;u--}else h==="/$"&&u++}s=s.previousSibling}return null}var qc=Math.random().toString(36).slice(2),Oa="__reactFiber$"+qc,oh="__reactProps$"+qc,us="__reactContainer$"+qc,Gw="__reactEvents$"+qc,zz="__reactListeners$"+qc,qz="__reactHandles$"+qc;function pu(s){var u=s[Oa];if(u)return u;for(var h=s.parentNode;h;){if(u=h[us]||h[Oa]){if(h=u.alternate,u.child!==null||h!==null&&h.child!==null)for(s=cO(s);s!==null;){if(h=s[Oa])return h;s=cO(s)}return u}s=h,h=s.parentNode}return null}function ah(s){return s=s[Oa]||s[us],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Uc(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(r(33))}function bv(s){return s[oh]||null}var Qw=[],Hc=-1;function il(s){return{current:s}}function Br(s){0>Hc||(s.current=Qw[Hc],Qw[Hc]=null,Hc--)}function $r(s,u){Hc++,Qw[Hc]=s.current,s.current=u}var ol={},ai=il(ol),Ri=il(!1),mu=ol;function Wc(s,u){var h=s.type.contextTypes;if(!h)return ol;var v=s.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===u)return v.__reactInternalMemoizedMaskedChildContext;var P={},I;for(I in h)P[I]=u[I];return v&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=u,s.__reactInternalMemoizedMaskedChildContext=P),P}function Ii(s){return s=s.childContextTypes,s!=null}function wv(){Br(Ri),Br(ai)}function dO(s,u,h){if(ai.current!==ol)throw Error(r(168));$r(ai,u),$r(Ri,h)}function fO(s,u,h){var v=s.stateNode;if(u=u.childContextTypes,typeof v.getChildContext!="function")return h;v=v.getChildContext();for(var P in v)if(!(P in u))throw Error(r(108,de(s)||"Unknown",P));return Z({},h,v)}function Sv(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||ol,mu=ai.current,$r(ai,s),$r(Ri,Ri.current),!0}function hO(s,u,h){var v=s.stateNode;if(!v)throw Error(r(169));h?(s=fO(s,u,mu),v.__reactInternalMemoizedMergedChildContext=s,Br(Ri),Br(ai),$r(ai,s)):Br(Ri),$r(Ri,h)}var cs=null,_v=!1,Yw=!1;function pO(s){cs===null?cs=[s]:cs.push(s)}function Uz(s){_v=!0,pO(s)}function al(){if(!Yw&&cs!==null){Yw=!0;var s=0,u=sr;try{var h=cs;for(sr=1;s<h.length;s++){var v=h[s];do v=v(!0);while(v!==null)}cs=null,_v=!1}catch(P){throw cs!==null&&(cs=cs.slice(s+1)),ft(Fr,al),P}finally{sr=u,Yw=!1}}return null}var Kc=[],Gc=0,xv=null,Pv=0,_o=[],xo=0,vu=null,ds=1,fs="";function gu(s,u){Kc[Gc++]=Pv,Kc[Gc++]=xv,xv=s,Pv=u}function mO(s,u,h){_o[xo++]=ds,_o[xo++]=fs,_o[xo++]=vu,vu=s;var v=ds;s=fs;var P=32-ri(v)-1;v&=~(1<<P),h+=1;var I=32-ri(u)+P;if(30<I){var D=P-P%5;I=(v&(1<<D)-1).toString(32),v>>=D,P-=D,ds=1<<32-ri(u)+P|h<<P|v,fs=I+s}else ds=1<<I|h<<P|v,fs=s}function Xw(s){s.return!==null&&(gu(s,1),mO(s,1,0))}function Jw(s){for(;s===xv;)xv=Kc[--Gc],Kc[Gc]=null,Pv=Kc[--Gc],Kc[Gc]=null;for(;s===vu;)vu=_o[--xo],_o[xo]=null,fs=_o[--xo],_o[xo]=null,ds=_o[--xo],_o[xo]=null}var Zi=null,eo=null,Gr=!1,Xo=null;function vO(s,u){var h=To(5,null,null,0);h.elementType="DELETED",h.stateNode=u,h.return=s,u=s.deletions,u===null?(s.deletions=[h],s.flags|=16):u.push(h)}function gO(s,u){switch(s.tag){case 5:var h=s.type;return u=u.nodeType!==1||h.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(s.stateNode=u,Zi=s,eo=nl(u.firstChild),!0):!1;case 6:return u=s.pendingProps===""||u.nodeType!==3?null:u,u!==null?(s.stateNode=u,Zi=s,eo=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(h=vu!==null?{id:ds,overflow:fs}:null,s.memoizedState={dehydrated:u,treeContext:h,retryLane:1073741824},h=To(18,null,null,0),h.stateNode=u,h.return=s,s.child=h,Zi=s,eo=null,!0):!1;default:return!1}}function Zw(s){return(s.mode&1)!==0&&(s.flags&128)===0}function eS(s){if(Gr){var u=eo;if(u){var h=u;if(!gO(s,u)){if(Zw(s))throw Error(r(418));u=nl(h.nextSibling);var v=Zi;u&&gO(s,u)?vO(v,h):(s.flags=s.flags&-4097|2,Gr=!1,Zi=s)}}else{if(Zw(s))throw Error(r(418));s.flags=s.flags&-4097|2,Gr=!1,Zi=s}}}function yO(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;Zi=s}function Cv(s){if(s!==Zi)return!1;if(!Gr)return yO(s),Gr=!0,!1;var u;if((u=s.tag!==3)&&!(u=s.tag!==5)&&(u=s.type,u=u!=="head"&&u!=="body"&&!Hw(s.type,s.memoizedProps)),u&&(u=eo)){if(Zw(s))throw bO(),Error(r(418));for(;u;)vO(s,u),u=nl(u.nextSibling)}if(yO(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,u=0;s;){if(s.nodeType===8){var h=s.data;if(h==="/$"){if(u===0){eo=nl(s.nextSibling);break e}u--}else h!=="$"&&h!=="$!"&&h!=="$?"||u++}s=s.nextSibling}eo=null}}else eo=Zi?nl(s.stateNode.nextSibling):null;return!0}function bO(){for(var s=eo;s;)s=nl(s.nextSibling)}function Qc(){eo=Zi=null,Gr=!1}function tS(s){Xo===null?Xo=[s]:Xo.push(s)}var Hz=k.ReactCurrentBatchConfig;function sh(s,u,h){if(s=h.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(h._owner){if(h=h._owner,h){if(h.tag!==1)throw Error(r(309));var v=h.stateNode}if(!v)throw Error(r(147,s));var P=v,I=""+s;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===I?u.ref:(u=function(D){var W=P.refs;D===null?delete W[I]:W[I]=D},u._stringRef=I,u)}if(typeof s!="string")throw Error(r(284));if(!h._owner)throw Error(r(290,s))}return s}function Ev(s,u){throw s=Object.prototype.toString.call(u),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s))}function wO(s){var u=s._init;return u(s._payload)}function SO(s){function u(fe,re){if(s){var me=fe.deletions;me===null?(fe.deletions=[re],fe.flags|=16):me.push(re)}}function h(fe,re){if(!s)return null;for(;re!==null;)u(fe,re),re=re.sibling;return null}function v(fe,re){for(fe=new Map;re!==null;)re.key!==null?fe.set(re.key,re):fe.set(re.index,re),re=re.sibling;return fe}function P(fe,re){return fe=pl(fe,re),fe.index=0,fe.sibling=null,fe}function I(fe,re,me){return fe.index=me,s?(me=fe.alternate,me!==null?(me=me.index,me<re?(fe.flags|=2,re):me):(fe.flags|=2,re)):(fe.flags|=1048576,re)}function D(fe){return s&&fe.alternate===null&&(fe.flags|=2),fe}function W(fe,re,me,Fe){return re===null||re.tag!==6?(re=WS(me,fe.mode,Fe),re.return=fe,re):(re=P(re,me),re.return=fe,re)}function J(fe,re,me,Fe){var nt=me.type;return nt===T?ke(fe,re,me.props.children,Fe,me.key):re!==null&&(re.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===ce&&wO(nt)===re.type)?(Fe=P(re,me.props),Fe.ref=sh(fe,re,me),Fe.return=fe,Fe):(Fe=Yv(me.type,me.key,me.props,null,fe.mode,Fe),Fe.ref=sh(fe,re,me),Fe.return=fe,Fe)}function Se(fe,re,me,Fe){return re===null||re.tag!==4||re.stateNode.containerInfo!==me.containerInfo||re.stateNode.implementation!==me.implementation?(re=KS(me,fe.mode,Fe),re.return=fe,re):(re=P(re,me.children||[]),re.return=fe,re)}function ke(fe,re,me,Fe,nt){return re===null||re.tag!==7?(re=Cu(me,fe.mode,Fe,nt),re.return=fe,re):(re=P(re,me),re.return=fe,re)}function Ae(fe,re,me){if(typeof re=="string"&&re!==""||typeof re=="number")return re=WS(""+re,fe.mode,me),re.return=fe,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case E:return me=Yv(re.type,re.key,re.props,null,fe.mode,me),me.ref=sh(fe,null,re),me.return=fe,me;case R:return re=KS(re,fe.mode,me),re.return=fe,re;case ce:var Fe=re._init;return Ae(fe,Fe(re._payload),me)}if(It(re)||ge(re))return re=Cu(re,fe.mode,me,null),re.return=fe,re;Ev(fe,re)}return null}function Ie(fe,re,me,Fe){var nt=re!==null?re.key:null;if(typeof me=="string"&&me!==""||typeof me=="number")return nt!==null?null:W(fe,re,""+me,Fe);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case E:return me.key===nt?J(fe,re,me,Fe):null;case R:return me.key===nt?Se(fe,re,me,Fe):null;case ce:return nt=me._init,Ie(fe,re,nt(me._payload),Fe)}if(It(me)||ge(me))return nt!==null?null:ke(fe,re,me,Fe,null);Ev(fe,me)}return null}function He(fe,re,me,Fe,nt){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number")return fe=fe.get(me)||null,W(re,fe,""+Fe,nt);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case E:return fe=fe.get(Fe.key===null?me:Fe.key)||null,J(re,fe,Fe,nt);case R:return fe=fe.get(Fe.key===null?me:Fe.key)||null,Se(re,fe,Fe,nt);case ce:var mt=Fe._init;return He(fe,re,me,mt(Fe._payload),nt)}if(It(Fe)||ge(Fe))return fe=fe.get(me)||null,ke(re,fe,Fe,nt,null);Ev(re,Fe)}return null}function Xe(fe,re,me,Fe){for(var nt=null,mt=null,vt=re,Tt=re=0,Mn=null;vt!==null&&Tt<me.length;Tt++){vt.index>Tt?(Mn=vt,vt=null):Mn=vt.sibling;var lr=Ie(fe,vt,me[Tt],Fe);if(lr===null){vt===null&&(vt=Mn);break}s&&vt&&lr.alternate===null&&u(fe,vt),re=I(lr,re,Tt),mt===null?nt=lr:mt.sibling=lr,mt=lr,vt=Mn}if(Tt===me.length)return h(fe,vt),Gr&&gu(fe,Tt),nt;if(vt===null){for(;Tt<me.length;Tt++)vt=Ae(fe,me[Tt],Fe),vt!==null&&(re=I(vt,re,Tt),mt===null?nt=vt:mt.sibling=vt,mt=vt);return Gr&&gu(fe,Tt),nt}for(vt=v(fe,vt);Tt<me.length;Tt++)Mn=He(vt,fe,Tt,me[Tt],Fe),Mn!==null&&(s&&Mn.alternate!==null&&vt.delete(Mn.key===null?Tt:Mn.key),re=I(Mn,re,Tt),mt===null?nt=Mn:mt.sibling=Mn,mt=Mn);return s&&vt.forEach(function(ml){return u(fe,ml)}),Gr&&gu(fe,Tt),nt}function et(fe,re,me,Fe){var nt=ge(me);if(typeof nt!="function")throw Error(r(150));if(me=nt.call(me),me==null)throw Error(r(151));for(var mt=nt=null,vt=re,Tt=re=0,Mn=null,lr=me.next();vt!==null&&!lr.done;Tt++,lr=me.next()){vt.index>Tt?(Mn=vt,vt=null):Mn=vt.sibling;var ml=Ie(fe,vt,lr.value,Fe);if(ml===null){vt===null&&(vt=Mn);break}s&&vt&&ml.alternate===null&&u(fe,vt),re=I(ml,re,Tt),mt===null?nt=ml:mt.sibling=ml,mt=ml,vt=Mn}if(lr.done)return h(fe,vt),Gr&&gu(fe,Tt),nt;if(vt===null){for(;!lr.done;Tt++,lr=me.next())lr=Ae(fe,lr.value,Fe),lr!==null&&(re=I(lr,re,Tt),mt===null?nt=lr:mt.sibling=lr,mt=lr);return Gr&&gu(fe,Tt),nt}for(vt=v(fe,vt);!lr.done;Tt++,lr=me.next())lr=He(vt,fe,Tt,lr.value,Fe),lr!==null&&(s&&lr.alternate!==null&&vt.delete(lr.key===null?Tt:lr.key),re=I(lr,re,Tt),mt===null?nt=lr:mt.sibling=lr,mt=lr);return s&&vt.forEach(function(P6){return u(fe,P6)}),Gr&&gu(fe,Tt),nt}function yn(fe,re,me,Fe){if(typeof me=="object"&&me!==null&&me.type===T&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case E:e:{for(var nt=me.key,mt=re;mt!==null;){if(mt.key===nt){if(nt=me.type,nt===T){if(mt.tag===7){h(fe,mt.sibling),re=P(mt,me.props.children),re.return=fe,fe=re;break e}}else if(mt.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===ce&&wO(nt)===mt.type){h(fe,mt.sibling),re=P(mt,me.props),re.ref=sh(fe,mt,me),re.return=fe,fe=re;break e}h(fe,mt);break}else u(fe,mt);mt=mt.sibling}me.type===T?(re=Cu(me.props.children,fe.mode,Fe,me.key),re.return=fe,fe=re):(Fe=Yv(me.type,me.key,me.props,null,fe.mode,Fe),Fe.ref=sh(fe,re,me),Fe.return=fe,fe=Fe)}return D(fe);case R:e:{for(mt=me.key;re!==null;){if(re.key===mt)if(re.tag===4&&re.stateNode.containerInfo===me.containerInfo&&re.stateNode.implementation===me.implementation){h(fe,re.sibling),re=P(re,me.children||[]),re.return=fe,fe=re;break e}else{h(fe,re);break}else u(fe,re);re=re.sibling}re=KS(me,fe.mode,Fe),re.return=fe,fe=re}return D(fe);case ce:return mt=me._init,yn(fe,re,mt(me._payload),Fe)}if(It(me))return Xe(fe,re,me,Fe);if(ge(me))return et(fe,re,me,Fe);Ev(fe,me)}return typeof me=="string"&&me!==""||typeof me=="number"?(me=""+me,re!==null&&re.tag===6?(h(fe,re.sibling),re=P(re,me),re.return=fe,fe=re):(h(fe,re),re=WS(me,fe.mode,Fe),re.return=fe,fe=re),D(fe)):h(fe,re)}return yn}var Yc=SO(!0),_O=SO(!1),Tv=il(null),Ov=null,Xc=null,rS=null;function nS(){rS=Xc=Ov=null}function iS(s){var u=Tv.current;Br(Tv),s._currentValue=u}function oS(s,u,h){for(;s!==null;){var v=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,v!==null&&(v.childLanes|=u)):v!==null&&(v.childLanes&u)!==u&&(v.childLanes|=u),s===h)break;s=s.return}}function Jc(s,u){Ov=s,rS=Xc=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&u)!==0&&(ki=!0),s.firstContext=null)}function Po(s){var u=s._currentValue;if(rS!==s)if(s={context:s,memoizedValue:u,next:null},Xc===null){if(Ov===null)throw Error(r(308));Xc=s,Ov.dependencies={lanes:0,firstContext:s}}else Xc=Xc.next=s;return u}var yu=null;function aS(s){yu===null?yu=[s]:yu.push(s)}function xO(s,u,h,v){var P=u.interleaved;return P===null?(h.next=h,aS(u)):(h.next=P.next,P.next=h),u.interleaved=h,hs(s,v)}function hs(s,u){s.lanes|=u;var h=s.alternate;for(h!==null&&(h.lanes|=u),h=s,s=s.return;s!==null;)s.childLanes|=u,h=s.alternate,h!==null&&(h.childLanes|=u),h=s,s=s.return;return h.tag===3?h.stateNode:null}var sl=!1;function sS(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function PO(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function ps(s,u){return{eventTime:s,lane:u,tag:0,payload:null,callback:null,next:null}}function ll(s,u,h){var v=s.updateQueue;if(v===null)return null;if(v=v.shared,(ir&2)!==0){var P=v.pending;return P===null?u.next=u:(u.next=P.next,P.next=u),v.pending=u,hs(s,h)}return P=v.interleaved,P===null?(u.next=u,aS(v)):(u.next=P.next,P.next=u),v.interleaved=u,hs(s,h)}function Rv(s,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194240)!==0)){var v=u.lanes;v&=s.pendingLanes,h|=v,u.lanes=h,Uf(s,h)}}function CO(s,u){var h=s.updateQueue,v=s.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var P=null,I=null;if(h=h.firstBaseUpdate,h!==null){do{var D={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};I===null?P=I=D:I=I.next=D,h=h.next}while(h!==null);I===null?P=I=u:I=I.next=u}else P=I=u;h={baseState:v.baseState,firstBaseUpdate:P,lastBaseUpdate:I,shared:v.shared,effects:v.effects},s.updateQueue=h;return}s=h.lastBaseUpdate,s===null?h.firstBaseUpdate=u:s.next=u,h.lastBaseUpdate=u}function Iv(s,u,h,v){var P=s.updateQueue;sl=!1;var I=P.firstBaseUpdate,D=P.lastBaseUpdate,W=P.shared.pending;if(W!==null){P.shared.pending=null;var J=W,Se=J.next;J.next=null,D===null?I=Se:D.next=Se,D=J;var ke=s.alternate;ke!==null&&(ke=ke.updateQueue,W=ke.lastBaseUpdate,W!==D&&(W===null?ke.firstBaseUpdate=Se:W.next=Se,ke.lastBaseUpdate=J))}if(I!==null){var Ae=P.baseState;D=0,ke=Se=J=null,W=I;do{var Ie=W.lane,He=W.eventTime;if((v&Ie)===Ie){ke!==null&&(ke=ke.next={eventTime:He,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var Xe=s,et=W;switch(Ie=u,He=h,et.tag){case 1:if(Xe=et.payload,typeof Xe=="function"){Ae=Xe.call(He,Ae,Ie);break e}Ae=Xe;break e;case 3:Xe.flags=Xe.flags&-65537|128;case 0:if(Xe=et.payload,Ie=typeof Xe=="function"?Xe.call(He,Ae,Ie):Xe,Ie==null)break e;Ae=Z({},Ae,Ie);break e;case 2:sl=!0}}W.callback!==null&&W.lane!==0&&(s.flags|=64,Ie=P.effects,Ie===null?P.effects=[W]:Ie.push(W))}else He={eventTime:He,lane:Ie,tag:W.tag,payload:W.payload,callback:W.callback,next:null},ke===null?(Se=ke=He,J=Ae):ke=ke.next=He,D|=Ie;if(W=W.next,W===null){if(W=P.shared.pending,W===null)break;Ie=W,W=Ie.next,Ie.next=null,P.lastBaseUpdate=Ie,P.shared.pending=null}}while(!0);if(ke===null&&(J=Ae),P.baseState=J,P.firstBaseUpdate=Se,P.lastBaseUpdate=ke,u=P.shared.interleaved,u!==null){P=u;do D|=P.lane,P=P.next;while(P!==u)}else I===null&&(P.shared.lanes=0);Su|=D,s.lanes=D,s.memoizedState=Ae}}function EO(s,u,h){if(s=u.effects,u.effects=null,s!==null)for(u=0;u<s.length;u++){var v=s[u],P=v.callback;if(P!==null){if(v.callback=null,v=h,typeof P!="function")throw Error(r(191,P));P.call(v)}}}var lh={},Ra=il(lh),uh=il(lh),ch=il(lh);function bu(s){if(s===lh)throw Error(r(174));return s}function lS(s,u){switch($r(ch,u),$r(uh,s),$r(Ra,lh),s=u.nodeType,s){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:Jr(null,"");break;default:s=s===8?u.parentNode:u,u=s.namespaceURI||null,s=s.tagName,u=Jr(u,s)}Br(Ra),$r(Ra,u)}function Zc(){Br(Ra),Br(uh),Br(ch)}function TO(s){bu(ch.current);var u=bu(Ra.current),h=Jr(u,s.type);u!==h&&($r(uh,s),$r(Ra,h))}function uS(s){uh.current===s&&(Br(Ra),Br(uh))}var Zr=il(0);function kv(s){for(var u=s;u!==null;){if(u.tag===13){var h=u.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var cS=[];function dS(){for(var s=0;s<cS.length;s++)cS[s]._workInProgressVersionPrimary=null;cS.length=0}var jv=k.ReactCurrentDispatcher,fS=k.ReactCurrentBatchConfig,wu=0,en=null,Tn=null,An=null,$v=!1,dh=!1,fh=0,Wz=0;function si(){throw Error(r(321))}function hS(s,u){if(u===null)return!1;for(var h=0;h<u.length&&h<s.length;h++)if(!Yo(s[h],u[h]))return!1;return!0}function pS(s,u,h,v,P,I){if(wu=I,en=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,jv.current=s===null||s.memoizedState===null?Yz:Xz,s=h(v,P),dh){I=0;do{if(dh=!1,fh=0,25<=I)throw Error(r(301));I+=1,An=Tn=null,u.updateQueue=null,jv.current=Jz,s=h(v,P)}while(dh)}if(jv.current=Mv,u=Tn!==null&&Tn.next!==null,wu=0,An=Tn=en=null,$v=!1,u)throw Error(r(300));return s}function mS(){var s=fh!==0;return fh=0,s}function Ia(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return An===null?en.memoizedState=An=s:An=An.next=s,An}function Co(){if(Tn===null){var s=en.alternate;s=s!==null?s.memoizedState:null}else s=Tn.next;var u=An===null?en.memoizedState:An.next;if(u!==null)An=u,Tn=s;else{if(s===null)throw Error(r(310));Tn=s,s={memoizedState:Tn.memoizedState,baseState:Tn.baseState,baseQueue:Tn.baseQueue,queue:Tn.queue,next:null},An===null?en.memoizedState=An=s:An=An.next=s}return An}function hh(s,u){return typeof u=="function"?u(s):u}function vS(s){var u=Co(),h=u.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=s;var v=Tn,P=v.baseQueue,I=h.pending;if(I!==null){if(P!==null){var D=P.next;P.next=I.next,I.next=D}v.baseQueue=P=I,h.pending=null}if(P!==null){I=P.next,v=v.baseState;var W=D=null,J=null,Se=I;do{var ke=Se.lane;if((wu&ke)===ke)J!==null&&(J=J.next={lane:0,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null}),v=Se.hasEagerState?Se.eagerState:s(v,Se.action);else{var Ae={lane:ke,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};J===null?(W=J=Ae,D=v):J=J.next=Ae,en.lanes|=ke,Su|=ke}Se=Se.next}while(Se!==null&&Se!==I);J===null?D=v:J.next=W,Yo(v,u.memoizedState)||(ki=!0),u.memoizedState=v,u.baseState=D,u.baseQueue=J,h.lastRenderedState=v}if(s=h.interleaved,s!==null){P=s;do I=P.lane,en.lanes|=I,Su|=I,P=P.next;while(P!==s)}else P===null&&(h.lanes=0);return[u.memoizedState,h.dispatch]}function gS(s){var u=Co(),h=u.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=s;var v=h.dispatch,P=h.pending,I=u.memoizedState;if(P!==null){h.pending=null;var D=P=P.next;do I=s(I,D.action),D=D.next;while(D!==P);Yo(I,u.memoizedState)||(ki=!0),u.memoizedState=I,u.baseQueue===null&&(u.baseState=I),h.lastRenderedState=I}return[I,v]}function OO(){}function RO(s,u){var h=en,v=Co(),P=u(),I=!Yo(v.memoizedState,P);if(I&&(v.memoizedState=P,ki=!0),v=v.queue,yS(jO.bind(null,h,v,s),[s]),v.getSnapshot!==u||I||An!==null&&An.memoizedState.tag&1){if(h.flags|=2048,ph(9,kO.bind(null,h,v,P,u),void 0,null),Dn===null)throw Error(r(349));(wu&30)!==0||IO(h,u,P)}return P}function IO(s,u,h){s.flags|=16384,s={getSnapshot:u,value:h},u=en.updateQueue,u===null?(u={lastEffect:null,stores:null},en.updateQueue=u,u.stores=[s]):(h=u.stores,h===null?u.stores=[s]:h.push(s))}function kO(s,u,h,v){u.value=h,u.getSnapshot=v,$O(u)&&AO(s)}function jO(s,u,h){return h(function(){$O(u)&&AO(s)})}function $O(s){var u=s.getSnapshot;s=s.value;try{var h=u();return!Yo(s,h)}catch{return!0}}function AO(s){var u=hs(s,1);u!==null&&ta(u,s,1,-1)}function DO(s){var u=Ia();return typeof s=="function"&&(s=s()),u.memoizedState=u.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:s},u.queue=s,s=s.dispatch=Qz.bind(null,en,s),[u.memoizedState,s]}function ph(s,u,h,v){return s={tag:s,create:u,destroy:h,deps:v,next:null},u=en.updateQueue,u===null?(u={lastEffect:null,stores:null},en.updateQueue=u,u.lastEffect=s.next=s):(h=u.lastEffect,h===null?u.lastEffect=s.next=s:(v=h.next,h.next=s,s.next=v,u.lastEffect=s)),s}function MO(){return Co().memoizedState}function Av(s,u,h,v){var P=Ia();en.flags|=s,P.memoizedState=ph(1|u,h,void 0,v===void 0?null:v)}function Dv(s,u,h,v){var P=Co();v=v===void 0?null:v;var I=void 0;if(Tn!==null){var D=Tn.memoizedState;if(I=D.destroy,v!==null&&hS(v,D.deps)){P.memoizedState=ph(u,h,I,v);return}}en.flags|=s,P.memoizedState=ph(1|u,h,I,v)}function NO(s,u){return Av(8390656,8,s,u)}function yS(s,u){return Dv(2048,8,s,u)}function FO(s,u){return Dv(4,2,s,u)}function LO(s,u){return Dv(4,4,s,u)}function BO(s,u){if(typeof u=="function")return s=s(),u(s),function(){u(null)};if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function VO(s,u,h){return h=h!=null?h.concat([s]):null,Dv(4,4,BO.bind(null,u,s),h)}function bS(){}function zO(s,u){var h=Co();u=u===void 0?null:u;var v=h.memoizedState;return v!==null&&u!==null&&hS(u,v[1])?v[0]:(h.memoizedState=[s,u],s)}function qO(s,u){var h=Co();u=u===void 0?null:u;var v=h.memoizedState;return v!==null&&u!==null&&hS(u,v[1])?v[0]:(s=s(),h.memoizedState=[s,u],s)}function UO(s,u,h){return(wu&21)===0?(s.baseState&&(s.baseState=!1,ki=!0),s.memoizedState=h):(Yo(h,u)||(h=ov(),en.lanes|=h,Su|=h,s.baseState=!0),u)}function Kz(s,u){var h=sr;sr=h!==0&&4>h?h:4,s(!0);var v=fS.transition;fS.transition={};try{s(!1),u()}finally{sr=h,fS.transition=v}}function HO(){return Co().memoizedState}function Gz(s,u,h){var v=fl(s);if(h={lane:v,action:h,hasEagerState:!1,eagerState:null,next:null},WO(s))KO(u,h);else if(h=xO(s,u,h,v),h!==null){var P=bi();ta(h,s,v,P),GO(h,u,v)}}function Qz(s,u,h){var v=fl(s),P={lane:v,action:h,hasEagerState:!1,eagerState:null,next:null};if(WO(s))KO(u,P);else{var I=s.alternate;if(s.lanes===0&&(I===null||I.lanes===0)&&(I=u.lastRenderedReducer,I!==null))try{var D=u.lastRenderedState,W=I(D,h);if(P.hasEagerState=!0,P.eagerState=W,Yo(W,D)){var J=u.interleaved;J===null?(P.next=P,aS(u)):(P.next=J.next,J.next=P),u.interleaved=P;return}}catch{}finally{}h=xO(s,u,P,v),h!==null&&(P=bi(),ta(h,s,v,P),GO(h,u,v))}}function WO(s){var u=s.alternate;return s===en||u!==null&&u===en}function KO(s,u){dh=$v=!0;var h=s.pending;h===null?u.next=u:(u.next=h.next,h.next=u),s.pending=u}function GO(s,u,h){if((h&4194240)!==0){var v=u.lanes;v&=s.pendingLanes,h|=v,u.lanes=h,Uf(s,h)}}var Mv={readContext:Po,useCallback:si,useContext:si,useEffect:si,useImperativeHandle:si,useInsertionEffect:si,useLayoutEffect:si,useMemo:si,useReducer:si,useRef:si,useState:si,useDebugValue:si,useDeferredValue:si,useTransition:si,useMutableSource:si,useSyncExternalStore:si,useId:si,unstable_isNewReconciler:!1},Yz={readContext:Po,useCallback:function(s,u){return Ia().memoizedState=[s,u===void 0?null:u],s},useContext:Po,useEffect:NO,useImperativeHandle:function(s,u,h){return h=h!=null?h.concat([s]):null,Av(4194308,4,BO.bind(null,u,s),h)},useLayoutEffect:function(s,u){return Av(4194308,4,s,u)},useInsertionEffect:function(s,u){return Av(4,2,s,u)},useMemo:function(s,u){var h=Ia();return u=u===void 0?null:u,s=s(),h.memoizedState=[s,u],s},useReducer:function(s,u,h){var v=Ia();return u=h!==void 0?h(u):u,v.memoizedState=v.baseState=u,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:u},v.queue=s,s=s.dispatch=Gz.bind(null,en,s),[v.memoizedState,s]},useRef:function(s){var u=Ia();return s={current:s},u.memoizedState=s},useState:DO,useDebugValue:bS,useDeferredValue:function(s){return Ia().memoizedState=s},useTransition:function(){var s=DO(!1),u=s[0];return s=Kz.bind(null,s[1]),Ia().memoizedState=s,[u,s]},useMutableSource:function(){},useSyncExternalStore:function(s,u,h){var v=en,P=Ia();if(Gr){if(h===void 0)throw Error(r(407));h=h()}else{if(h=u(),Dn===null)throw Error(r(349));(wu&30)!==0||IO(v,u,h)}P.memoizedState=h;var I={value:h,getSnapshot:u};return P.queue=I,NO(jO.bind(null,v,I,s),[s]),v.flags|=2048,ph(9,kO.bind(null,v,I,h,u),void 0,null),h},useId:function(){var s=Ia(),u=Dn.identifierPrefix;if(Gr){var h=fs,v=ds;h=(v&~(1<<32-ri(v)-1)).toString(32)+h,u=":"+u+"R"+h,h=fh++,0<h&&(u+="H"+h.toString(32)),u+=":"}else h=Wz++,u=":"+u+"r"+h.toString(32)+":";return s.memoizedState=u},unstable_isNewReconciler:!1},Xz={readContext:Po,useCallback:zO,useContext:Po,useEffect:yS,useImperativeHandle:VO,useInsertionEffect:FO,useLayoutEffect:LO,useMemo:qO,useReducer:vS,useRef:MO,useState:function(){return vS(hh)},useDebugValue:bS,useDeferredValue:function(s){var u=Co();return UO(u,Tn.memoizedState,s)},useTransition:function(){var s=vS(hh)[0],u=Co().memoizedState;return[s,u]},useMutableSource:OO,useSyncExternalStore:RO,useId:HO,unstable_isNewReconciler:!1},Jz={readContext:Po,useCallback:zO,useContext:Po,useEffect:yS,useImperativeHandle:VO,useInsertionEffect:FO,useLayoutEffect:LO,useMemo:qO,useReducer:gS,useRef:MO,useState:function(){return gS(hh)},useDebugValue:bS,useDeferredValue:function(s){var u=Co();return Tn===null?u.memoizedState=s:UO(u,Tn.memoizedState,s)},useTransition:function(){var s=gS(hh)[0],u=Co().memoizedState;return[s,u]},useMutableSource:OO,useSyncExternalStore:RO,useId:HO,unstable_isNewReconciler:!1};function Jo(s,u){if(s&&s.defaultProps){u=Z({},u),s=s.defaultProps;for(var h in s)u[h]===void 0&&(u[h]=s[h]);return u}return u}function wS(s,u,h,v){u=s.memoizedState,h=h(v,u),h=h==null?u:Z({},u,h),s.memoizedState=h,s.lanes===0&&(s.updateQueue.baseState=h)}var Nv={isMounted:function(s){return(s=s._reactInternals)?ot(s)===s:!1},enqueueSetState:function(s,u,h){s=s._reactInternals;var v=bi(),P=fl(s),I=ps(v,P);I.payload=u,h!=null&&(I.callback=h),u=ll(s,I,P),u!==null&&(ta(u,s,P,v),Rv(u,s,P))},enqueueReplaceState:function(s,u,h){s=s._reactInternals;var v=bi(),P=fl(s),I=ps(v,P);I.tag=1,I.payload=u,h!=null&&(I.callback=h),u=ll(s,I,P),u!==null&&(ta(u,s,P,v),Rv(u,s,P))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var h=bi(),v=fl(s),P=ps(h,v);P.tag=2,u!=null&&(P.callback=u),u=ll(s,P,v),u!==null&&(ta(u,s,v,h),Rv(u,s,v))}};function QO(s,u,h,v,P,I,D){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(v,I,D):u.prototype&&u.prototype.isPureReactComponent?!eh(h,v)||!eh(P,I):!0}function YO(s,u,h){var v=!1,P=ol,I=u.contextType;return typeof I=="object"&&I!==null?I=Po(I):(P=Ii(u)?mu:ai.current,v=u.contextTypes,I=(v=v!=null)?Wc(s,P):ol),u=new u(h,I),s.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Nv,s.stateNode=u,u._reactInternals=s,v&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=P,s.__reactInternalMemoizedMaskedChildContext=I),u}function XO(s,u,h,v){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(h,v),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(h,v),u.state!==s&&Nv.enqueueReplaceState(u,u.state,null)}function SS(s,u,h,v){var P=s.stateNode;P.props=h,P.state=s.memoizedState,P.refs={},sS(s);var I=u.contextType;typeof I=="object"&&I!==null?P.context=Po(I):(I=Ii(u)?mu:ai.current,P.context=Wc(s,I)),P.state=s.memoizedState,I=u.getDerivedStateFromProps,typeof I=="function"&&(wS(s,u,I,h),P.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(u=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),u!==P.state&&Nv.enqueueReplaceState(P,P.state,null),Iv(s,h,P,v),P.state=s.memoizedState),typeof P.componentDidMount=="function"&&(s.flags|=4194308)}function ed(s,u){try{var h="",v=u;do h+=F(v),v=v.return;while(v);var P=h}catch(I){P=`
39
39
  Error generating stack: `+I.message+`
40
- `+I.stack}return{value:s,source:u,stack:P,digest:null}}function _S(s,u,h){return{value:s,source:null,stack:h??null,digest:u??null}}function xS(s,u){try{console.error(u.value)}catch(h){setTimeout(function(){throw h})}}var Zz=typeof WeakMap=="function"?WeakMap:Map;function JO(s,u,h){h=ps(-1,h),h.tag=3,h.payload={element:null};var v=u.value;return h.callback=function(){Uv||(Uv=!0,FS=v),xS(s,u)},h}function ZO(s,u,h){h=ps(-1,h),h.tag=3;var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var P=u.value;h.payload=function(){return v(P)},h.callback=function(){xS(s,u)}}var I=s.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(h.callback=function(){xS(s,u),typeof v!="function"&&(cl===null?cl=new Set([this]):cl.add(this));var D=u.stack;this.componentDidCatch(u.value,{componentStack:D!==null?D:""})}),h}function eR(s,u,h){var v=s.pingCache;if(v===null){v=s.pingCache=new Zz;var P=new Set;v.set(u,P)}else P=v.get(u),P===void 0&&(P=new Set,v.set(u,P));P.has(h)||(P.add(h),s=h6.bind(null,s,u,h),u.then(s,s))}function tR(s){do{var u;if((u=s.tag===13)&&(u=s.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return s;s=s.return}while(s!==null);return null}function rR(s,u,h,v,P){return(s.mode&1)===0?(s===u?s.flags|=65536:(s.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(u=ps(-1,1),u.tag=2,ll(h,u,1))),h.lanes|=1),s):(s.flags|=65536,s.lanes=P,s)}var e6=k.ReactCurrentOwner,ki=!1;function yi(s,u,h,v){u.child=s===null?_O(u,null,h,v):Yc(u,s.child,h,v)}function nR(s,u,h,v,P){h=h.render;var I=u.ref;return Jc(u,P),v=pS(s,u,h,v,I,P),h=mS(),s!==null&&!ki?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~P,ms(s,u,P)):(Gr&&h&&Xw(u),u.flags|=1,yi(s,u,v,P),u.child)}function iR(s,u,h,v,P){if(s===null){var I=h.type;return typeof I=="function"&&!HS(I)&&I.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(u.tag=15,u.type=I,oR(s,u,I,v,P)):(s=Yv(h.type,null,v,u,u.mode,P),s.ref=u.ref,s.return=u,u.child=s)}if(I=s.child,(s.lanes&P)===0){var D=I.memoizedProps;if(h=h.compare,h=h!==null?h:eh,h(D,v)&&s.ref===u.ref)return ms(s,u,P)}return u.flags|=1,s=pl(I,v),s.ref=u.ref,s.return=u,u.child=s}function oR(s,u,h,v,P){if(s!==null){var I=s.memoizedProps;if(eh(I,v)&&s.ref===u.ref)if(ki=!1,u.pendingProps=v=I,(s.lanes&P)!==0)(s.flags&131072)!==0&&(ki=!0);else return u.lanes=s.lanes,ms(s,u,P)}return PS(s,u,h,v,P)}function aR(s,u,h){var v=u.pendingProps,P=v.children,I=s!==null?s.memoizedState:null;if(v.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},$r(rd,to),to|=h;else{if((h&1073741824)===0)return s=I!==null?I.baseLanes|h:h,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:s,cachePool:null,transitions:null},u.updateQueue=null,$r(rd,to),to|=s,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=I!==null?I.baseLanes:h,$r(rd,to),to|=v}else I!==null?(v=I.baseLanes|h,u.memoizedState=null):v=h,$r(rd,to),to|=v;return yi(s,u,P,h),u.child}function sR(s,u){var h=u.ref;(s===null&&h!==null||s!==null&&s.ref!==h)&&(u.flags|=512,u.flags|=2097152)}function PS(s,u,h,v,P){var I=Ii(h)?mu:ai.current;return I=Wc(u,I),Jc(u,P),h=pS(s,u,h,v,I,P),v=mS(),s!==null&&!ki?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~P,ms(s,u,P)):(Gr&&v&&Xw(u),u.flags|=1,yi(s,u,h,P),u.child)}function lR(s,u,h,v,P){if(Ii(h)){var I=!0;Sv(u)}else I=!1;if(Jc(u,P),u.stateNode===null)Lv(s,u),YO(u,h,v),SS(u,h,v,P),v=!0;else if(s===null){var D=u.stateNode,W=u.memoizedProps;D.props=W;var J=D.context,Se=h.contextType;typeof Se=="object"&&Se!==null?Se=Po(Se):(Se=Ii(h)?mu:ai.current,Se=Wc(u,Se));var ke=h.getDerivedStateFromProps,Ae=typeof ke=="function"||typeof D.getSnapshotBeforeUpdate=="function";Ae||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(W!==v||J!==Se)&&XO(u,D,v,Se),sl=!1;var Ie=u.memoizedState;D.state=Ie,Iv(u,v,D,P),J=u.memoizedState,W!==v||Ie!==J||Ri.current||sl?(typeof ke=="function"&&(wS(u,h,ke,v),J=u.memoizedState),(W=sl||QO(u,h,W,v,Ie,J,Se))?(Ae||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(u.flags|=4194308)):(typeof D.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=v,u.memoizedState=J),D.props=v,D.state=J,D.context=Se,v=W):(typeof D.componentDidMount=="function"&&(u.flags|=4194308),v=!1)}else{D=u.stateNode,PO(s,u),W=u.memoizedProps,Se=u.type===u.elementType?W:Jo(u.type,W),D.props=Se,Ae=u.pendingProps,Ie=D.context,J=h.contextType,typeof J=="object"&&J!==null?J=Po(J):(J=Ii(h)?mu:ai.current,J=Wc(u,J));var He=h.getDerivedStateFromProps;(ke=typeof He=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(W!==Ae||Ie!==J)&&XO(u,D,v,J),sl=!1,Ie=u.memoizedState,D.state=Ie,Iv(u,v,D,P);var Xe=u.memoizedState;W!==Ae||Ie!==Xe||Ri.current||sl?(typeof He=="function"&&(wS(u,h,He,v),Xe=u.memoizedState),(Se=sl||QO(u,h,Se,v,Ie,Xe,J)||!1)?(ke||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(v,Xe,J),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(v,Xe,J)),typeof D.componentDidUpdate=="function"&&(u.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof D.componentDidUpdate!="function"||W===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||W===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=1024),u.memoizedProps=v,u.memoizedState=Xe),D.props=v,D.state=Xe,D.context=J,v=Se):(typeof D.componentDidUpdate!="function"||W===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||W===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=1024),v=!1)}return CS(s,u,h,v,I,P)}function CS(s,u,h,v,P,I){sR(s,u);var D=(u.flags&128)!==0;if(!v&&!D)return P&&hO(u,h,!1),ms(s,u,I);v=u.stateNode,e6.current=u;var W=D&&typeof h.getDerivedStateFromError!="function"?null:v.render();return u.flags|=1,s!==null&&D?(u.child=Yc(u,s.child,null,I),u.child=Yc(u,null,W,I)):yi(s,u,W,I),u.memoizedState=v.state,P&&hO(u,h,!0),u.child}function uR(s){var u=s.stateNode;u.pendingContext?dO(s,u.pendingContext,u.pendingContext!==u.context):u.context&&dO(s,u.context,!1),lS(s,u.containerInfo)}function cR(s,u,h,v,P){return Qc(),tS(P),u.flags|=256,yi(s,u,h,v),u.child}var ES={dehydrated:null,treeContext:null,retryLane:0};function TS(s){return{baseLanes:s,cachePool:null,transitions:null}}function dR(s,u,h){var v=u.pendingProps,P=Zr.current,I=!1,D=(u.flags&128)!==0,W;if((W=D)||(W=s!==null&&s.memoizedState===null?!1:(P&2)!==0),W?(I=!0,u.flags&=-129):(s===null||s.memoizedState!==null)&&(P|=1),$r(Zr,P&1),s===null)return eS(u),s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((u.mode&1)===0?u.lanes=1:s.data==="$!"?u.lanes=8:u.lanes=1073741824,null):(D=v.children,s=v.fallback,I?(v=u.mode,I=u.child,D={mode:"hidden",children:D},(v&1)===0&&I!==null?(I.childLanes=0,I.pendingProps=D):I=Xv(D,v,0,null),s=Cu(s,v,h,null),I.return=u,s.return=u,I.sibling=s,u.child=I,u.child.memoizedState=TS(h),u.memoizedState=ES,s):OS(u,D));if(P=s.memoizedState,P!==null&&(W=P.dehydrated,W!==null))return t6(s,u,D,v,W,P,h);if(I){I=v.fallback,D=u.mode,P=s.child,W=P.sibling;var J={mode:"hidden",children:v.children};return(D&1)===0&&u.child!==P?(v=u.child,v.childLanes=0,v.pendingProps=J,u.deletions=null):(v=pl(P,J),v.subtreeFlags=P.subtreeFlags&14680064),W!==null?I=pl(W,I):(I=Cu(I,D,h,null),I.flags|=2),I.return=u,v.return=u,v.sibling=I,u.child=v,v=I,I=u.child,D=s.child.memoizedState,D=D===null?TS(h):{baseLanes:D.baseLanes|h,cachePool:null,transitions:D.transitions},I.memoizedState=D,I.childLanes=s.childLanes&~h,u.memoizedState=ES,v}return I=s.child,s=I.sibling,v=pl(I,{mode:"visible",children:v.children}),(u.mode&1)===0&&(v.lanes=h),v.return=u,v.sibling=null,s!==null&&(h=u.deletions,h===null?(u.deletions=[s],u.flags|=16):h.push(s)),u.child=v,u.memoizedState=null,v}function OS(s,u){return u=Xv({mode:"visible",children:u},s.mode,0,null),u.return=s,s.child=u}function Fv(s,u,h,v){return v!==null&&tS(v),Yc(u,s.child,null,h),s=OS(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function t6(s,u,h,v,P,I,D){if(h)return u.flags&256?(u.flags&=-257,v=_S(Error(r(422))),Fv(s,u,D,v)):u.memoizedState!==null?(u.child=s.child,u.flags|=128,null):(I=v.fallback,P=u.mode,v=Xv({mode:"visible",children:v.children},P,0,null),I=Cu(I,P,D,null),I.flags|=2,v.return=u,I.return=u,v.sibling=I,u.child=v,(u.mode&1)!==0&&Yc(u,s.child,null,D),u.child.memoizedState=TS(D),u.memoizedState=ES,I);if((u.mode&1)===0)return Fv(s,u,D,null);if(P.data==="$!"){if(v=P.nextSibling&&P.nextSibling.dataset,v)var W=v.dgst;return v=W,I=Error(r(419)),v=_S(I,v,void 0),Fv(s,u,D,v)}if(W=(D&s.childLanes)!==0,ki||W){if(v=Dn,v!==null){switch(D&-D){case 4:P=2;break;case 16:P=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:P=32;break;case 536870912:P=268435456;break;default:P=0}P=(P&(v.suspendedLanes|D))!==0?0:P,P!==0&&P!==I.retryLane&&(I.retryLane=P,hs(s,P),ta(v,s,P,-1))}return US(),v=_S(Error(r(421))),Fv(s,u,D,v)}return P.data==="$?"?(u.flags|=128,u.child=s.child,u=p6.bind(null,s),P._reactRetry=u,null):(s=I.treeContext,eo=nl(P.nextSibling),Zi=u,Gr=!0,Xo=null,s!==null&&(_o[xo++]=ds,_o[xo++]=fs,_o[xo++]=vu,ds=s.id,fs=s.overflow,vu=u),u=OS(u,v.children),u.flags|=4096,u)}function fR(s,u,h){s.lanes|=u;var v=s.alternate;v!==null&&(v.lanes|=u),oS(s.return,u,h)}function RS(s,u,h,v,P){var I=s.memoizedState;I===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:P}:(I.isBackwards=u,I.rendering=null,I.renderingStartTime=0,I.last=v,I.tail=h,I.tailMode=P)}function hR(s,u,h){var v=u.pendingProps,P=v.revealOrder,I=v.tail;if(yi(s,u,v.children,h),v=Zr.current,(v&2)!==0)v=v&1|2,u.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&fR(s,h,u);else if(s.tag===19)fR(s,h,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}v&=1}if($r(Zr,v),(u.mode&1)===0)u.memoizedState=null;else switch(P){case"forwards":for(h=u.child,P=null;h!==null;)s=h.alternate,s!==null&&kv(s)===null&&(P=h),h=h.sibling;h=P,h===null?(P=u.child,u.child=null):(P=h.sibling,h.sibling=null),RS(u,!1,P,h,I);break;case"backwards":for(h=null,P=u.child,u.child=null;P!==null;){if(s=P.alternate,s!==null&&kv(s)===null){u.child=P;break}s=P.sibling,P.sibling=h,h=P,P=s}RS(u,!0,h,null,I);break;case"together":RS(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Lv(s,u){(u.mode&1)===0&&s!==null&&(s.alternate=null,u.alternate=null,u.flags|=2)}function ms(s,u,h){if(s!==null&&(u.dependencies=s.dependencies),Su|=u.lanes,(h&u.childLanes)===0)return null;if(s!==null&&u.child!==s.child)throw Error(r(153));if(u.child!==null){for(s=u.child,h=pl(s,s.pendingProps),u.child=h,h.return=u;s.sibling!==null;)s=s.sibling,h=h.sibling=pl(s,s.pendingProps),h.return=u;h.sibling=null}return u.child}function r6(s,u,h){switch(u.tag){case 3:uR(u),Qc();break;case 5:TO(u);break;case 1:Ii(u.type)&&Sv(u);break;case 4:lS(u,u.stateNode.containerInfo);break;case 10:var v=u.type._context,P=u.memoizedProps.value;$r(Tv,v._currentValue),v._currentValue=P;break;case 13:if(v=u.memoizedState,v!==null)return v.dehydrated!==null?($r(Zr,Zr.current&1),u.flags|=128,null):(h&u.child.childLanes)!==0?dR(s,u,h):($r(Zr,Zr.current&1),s=ms(s,u,h),s!==null?s.sibling:null);$r(Zr,Zr.current&1);break;case 19:if(v=(h&u.childLanes)!==0,(s.flags&128)!==0){if(v)return hR(s,u,h);u.flags|=128}if(P=u.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),$r(Zr,Zr.current),v)break;return null;case 22:case 23:return u.lanes=0,aR(s,u,h)}return ms(s,u,h)}var pR,IS,mR,vR;pR=function(s,u){for(var h=u.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},IS=function(){},mR=function(s,u,h,v){var P=s.memoizedProps;if(P!==v){s=u.stateNode,bu(Ra.current);var I=null;switch(h){case"input":P=Te(s,P),v=Te(s,v),I=[];break;case"select":P=Z({},P,{value:void 0}),v=Z({},v,{value:void 0}),I=[];break;case"textarea":P=Lt(s,P),v=Lt(s,v),I=[];break;default:typeof P.onClick!="function"&&typeof v.onClick=="function"&&(s.onclick=yv)}Oi(h,v);var D;h=null;for(Se in P)if(!v.hasOwnProperty(Se)&&P.hasOwnProperty(Se)&&P[Se]!=null)if(Se==="style"){var W=P[Se];for(D in W)W.hasOwnProperty(D)&&(h||(h={}),h[D]="")}else Se!=="dangerouslySetInnerHTML"&&Se!=="children"&&Se!=="suppressContentEditableWarning"&&Se!=="suppressHydrationWarning"&&Se!=="autoFocus"&&(i.hasOwnProperty(Se)?I||(I=[]):(I=I||[]).push(Se,null));for(Se in v){var J=v[Se];if(W=P!=null?P[Se]:void 0,v.hasOwnProperty(Se)&&J!==W&&(J!=null||W!=null))if(Se==="style")if(W){for(D in W)!W.hasOwnProperty(D)||J&&J.hasOwnProperty(D)||(h||(h={}),h[D]="");for(D in J)J.hasOwnProperty(D)&&W[D]!==J[D]&&(h||(h={}),h[D]=J[D])}else h||(I||(I=[]),I.push(Se,h)),h=J;else Se==="dangerouslySetInnerHTML"?(J=J?J.__html:void 0,W=W?W.__html:void 0,J!=null&&W!==J&&(I=I||[]).push(Se,J)):Se==="children"?typeof J!="string"&&typeof J!="number"||(I=I||[]).push(Se,""+J):Se!=="suppressContentEditableWarning"&&Se!=="suppressHydrationWarning"&&(i.hasOwnProperty(Se)?(J!=null&&Se==="onScroll"&&Lr("scroll",s),I||W===J||(I=[])):(I=I||[]).push(Se,J))}h&&(I=I||[]).push("style",h);var Se=I;(u.updateQueue=Se)&&(u.flags|=4)}},vR=function(s,u,h,v){h!==v&&(u.flags|=4)};function mh(s,u){if(!Gr)switch(s.tailMode){case"hidden":u=s.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s.tail=null:h.sibling=null;break;case"collapsed":h=s.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:v.sibling=null}}function li(s){var u=s.alternate!==null&&s.alternate.child===s.child,h=0,v=0;if(u)for(var P=s.child;P!==null;)h|=P.lanes|P.childLanes,v|=P.subtreeFlags&14680064,v|=P.flags&14680064,P.return=s,P=P.sibling;else for(P=s.child;P!==null;)h|=P.lanes|P.childLanes,v|=P.subtreeFlags,v|=P.flags,P.return=s,P=P.sibling;return s.subtreeFlags|=v,s.childLanes=h,u}function n6(s,u,h){var v=u.pendingProps;switch(Jw(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return li(u),null;case 1:return Ii(u.type)&&wv(),li(u),null;case 3:return v=u.stateNode,Zc(),Br(Ri),Br(ai),dS(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(s===null||s.child===null)&&(Cv(u)?u.flags|=4:s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Xo!==null&&(VS(Xo),Xo=null))),IS(s,u),li(u),null;case 5:uS(u);var P=bu(ch.current);if(h=u.type,s!==null&&u.stateNode!=null)mR(s,u,h,v,P),s.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!v){if(u.stateNode===null)throw Error(r(166));return li(u),null}if(s=bu(Ra.current),Cv(u)){v=u.stateNode,h=u.type;var I=u.memoizedProps;switch(v[Oa]=u,v[oh]=I,s=(u.mode&1)!==0,h){case"dialog":Lr("cancel",v),Lr("close",v);break;case"iframe":case"object":case"embed":Lr("load",v);break;case"video":case"audio":for(P=0;P<rh.length;P++)Lr(rh[P],v);break;case"source":Lr("error",v);break;case"img":case"image":case"link":Lr("error",v),Lr("load",v);break;case"details":Lr("toggle",v);break;case"input":he(v,I),Lr("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!I.multiple},Lr("invalid",v);break;case"textarea":ht(v,I),Lr("invalid",v)}Oi(h,I),P=null;for(var D in I)if(I.hasOwnProperty(D)){var W=I[D];D==="children"?typeof W=="string"?v.textContent!==W&&(I.suppressHydrationWarning!==!0&&gv(v.textContent,W,s),P=["children",W]):typeof W=="number"&&v.textContent!==""+W&&(I.suppressHydrationWarning!==!0&&gv(v.textContent,W,s),P=["children",""+W]):i.hasOwnProperty(D)&&W!=null&&D==="onScroll"&&Lr("scroll",v)}switch(h){case"input":Y(v),$t(v,I,!0);break;case"textarea":Y(v),mn(v);break;case"select":case"option":break;default:typeof I.onClick=="function"&&(v.onclick=yv)}v=P,u.updateQueue=v,v!==null&&(u.flags|=4)}else{D=P.nodeType===9?P:P.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=Ir(h)),s==="http://www.w3.org/1999/xhtml"?h==="script"?(s=D.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof v.is=="string"?s=D.createElement(h,{is:v.is}):(s=D.createElement(h),h==="select"&&(D=s,v.multiple?D.multiple=!0:v.size&&(D.size=v.size))):s=D.createElementNS(s,h),s[Oa]=u,s[oh]=v,pR(s,u,!1,!1),u.stateNode=s;e:{switch(D=gn(h,v),h){case"dialog":Lr("cancel",s),Lr("close",s),P=v;break;case"iframe":case"object":case"embed":Lr("load",s),P=v;break;case"video":case"audio":for(P=0;P<rh.length;P++)Lr(rh[P],s);P=v;break;case"source":Lr("error",s),P=v;break;case"img":case"image":case"link":Lr("error",s),Lr("load",s),P=v;break;case"details":Lr("toggle",s),P=v;break;case"input":he(s,v),P=Te(s,v),Lr("invalid",s);break;case"option":P=v;break;case"select":s._wrapperState={wasMultiple:!!v.multiple},P=Z({},v,{value:void 0}),Lr("invalid",s);break;case"textarea":ht(s,v),P=Lt(s,v),Lr("invalid",s);break;default:P=v}Oi(h,P),W=P;for(I in W)if(W.hasOwnProperty(I)){var J=W[I];I==="style"?xa(s,J):I==="dangerouslySetInnerHTML"?(J=J?J.__html:void 0,J!=null&&Nr(s,J)):I==="children"?typeof J=="string"?(h!=="textarea"||J!=="")&&an(s,J):typeof J=="number"&&an(s,""+J):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(i.hasOwnProperty(I)?J!=null&&I==="onScroll"&&Lr("scroll",s):J!=null&&C(s,I,J,D))}switch(h){case"input":Y(s),$t(s,v,!1);break;case"textarea":Y(s),mn(s);break;case"option":v.value!=null&&s.setAttribute("value",""+pe(v.value));break;case"select":s.multiple=!!v.multiple,I=v.value,I!=null?jt(s,!!v.multiple,I,!1):v.defaultValue!=null&&jt(s,!!v.multiple,v.defaultValue,!0);break;default:typeof P.onClick=="function"&&(s.onclick=yv)}switch(h){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return li(u),null;case 6:if(s&&u.stateNode!=null)vR(s,u,s.memoizedProps,v);else{if(typeof v!="string"&&u.stateNode===null)throw Error(r(166));if(h=bu(ch.current),bu(Ra.current),Cv(u)){if(v=u.stateNode,h=u.memoizedProps,v[Oa]=u,(I=v.nodeValue!==h)&&(s=Zi,s!==null))switch(s.tag){case 3:gv(v.nodeValue,h,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&gv(v.nodeValue,h,(s.mode&1)!==0)}I&&(u.flags|=4)}else v=(h.nodeType===9?h:h.ownerDocument).createTextNode(v),v[Oa]=u,u.stateNode=v}return li(u),null;case 13:if(Br(Zr),v=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Gr&&eo!==null&&(u.mode&1)!==0&&(u.flags&128)===0)bO(),Qc(),u.flags|=98560,I=!1;else if(I=Cv(u),v!==null&&v.dehydrated!==null){if(s===null){if(!I)throw Error(r(318));if(I=u.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(r(317));I[Oa]=u}else Qc(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;li(u),I=!1}else Xo!==null&&(VS(Xo),Xo=null),I=!0;if(!I)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=h,u):(v=v!==null,v!==(s!==null&&s.memoizedState!==null)&&v&&(u.child.flags|=8192,(u.mode&1)!==0&&(s===null||(Zr.current&1)!==0?On===0&&(On=3):US())),u.updateQueue!==null&&(u.flags|=4),li(u),null);case 4:return Zc(),IS(s,u),s===null&&nh(u.stateNode.containerInfo),li(u),null;case 10:return iS(u.type._context),li(u),null;case 17:return Ii(u.type)&&wv(),li(u),null;case 19:if(Br(Zr),I=u.memoizedState,I===null)return li(u),null;if(v=(u.flags&128)!==0,D=I.rendering,D===null)if(v)mh(I,!1);else{if(On!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(D=kv(s),D!==null){for(u.flags|=128,mh(I,!1),v=D.updateQueue,v!==null&&(u.updateQueue=v,u.flags|=4),u.subtreeFlags=0,v=h,h=u.child;h!==null;)I=h,s=v,I.flags&=14680066,D=I.alternate,D===null?(I.childLanes=0,I.lanes=s,I.child=null,I.subtreeFlags=0,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=D.childLanes,I.lanes=D.lanes,I.child=D.child,I.subtreeFlags=0,I.deletions=null,I.memoizedProps=D.memoizedProps,I.memoizedState=D.memoizedState,I.updateQueue=D.updateQueue,I.type=D.type,s=D.dependencies,I.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),h=h.sibling;return $r(Zr,Zr.current&1|2),u.child}s=s.sibling}I.tail!==null&&Et()>nd&&(u.flags|=128,v=!0,mh(I,!1),u.lanes=4194304)}else{if(!v)if(s=kv(D),s!==null){if(u.flags|=128,v=!0,h=s.updateQueue,h!==null&&(u.updateQueue=h,u.flags|=4),mh(I,!0),I.tail===null&&I.tailMode==="hidden"&&!D.alternate&&!Gr)return li(u),null}else 2*Et()-I.renderingStartTime>nd&&h!==1073741824&&(u.flags|=128,v=!0,mh(I,!1),u.lanes=4194304);I.isBackwards?(D.sibling=u.child,u.child=D):(h=I.last,h!==null?h.sibling=D:u.child=D,I.last=D)}return I.tail!==null?(u=I.tail,I.rendering=u,I.tail=u.sibling,I.renderingStartTime=Et(),u.sibling=null,h=Zr.current,$r(Zr,v?h&1|2:h&1),u):(li(u),null);case 22:case 23:return qS(),v=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==v&&(u.flags|=8192),v&&(u.mode&1)!==0?(to&1073741824)!==0&&(li(u),u.subtreeFlags&6&&(u.flags|=8192)):li(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function i6(s,u){switch(Jw(u),u.tag){case 1:return Ii(u.type)&&wv(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return Zc(),Br(Ri),Br(ai),dS(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 5:return uS(u),null;case 13:if(Br(Zr),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Qc()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return Br(Zr),null;case 4:return Zc(),null;case 10:return iS(u.type._context),null;case 22:case 23:return qS(),null;case 24:return null;default:return null}}var Bv=!1,ui=!1,o6=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function td(s,u){var h=s.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(v){un(s,u,v)}else h.current=null}function kS(s,u,h){try{h()}catch(v){un(s,u,v)}}var gR=!1;function a6(s,u){if(qw=z,s=QT(),Dw(s)){if("selectionStart"in s)var h={start:s.selectionStart,end:s.selectionEnd};else e:{h=(h=s.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var P=v.anchorOffset,I=v.focusNode;v=v.focusOffset;try{h.nodeType,I.nodeType}catch{h=null;break e}var D=0,W=-1,J=-1,Se=0,ke=0,Ae=s,Ie=null;t:for(;;){for(var He;Ae!==h||P!==0&&Ae.nodeType!==3||(W=D+P),Ae!==I||v!==0&&Ae.nodeType!==3||(J=D+v),Ae.nodeType===3&&(D+=Ae.nodeValue.length),(He=Ae.firstChild)!==null;)Ie=Ae,Ae=He;for(;;){if(Ae===s)break t;if(Ie===h&&++Se===P&&(W=D),Ie===I&&++ke===v&&(J=D),(He=Ae.nextSibling)!==null)break;Ae=Ie,Ie=Ae.parentNode}Ae=He}h=W===-1||J===-1?null:{start:W,end:J}}else h=null}h=h||{start:0,end:0}}else h=null;for(Uw={focusedElem:s,selectionRange:h},z=!1,Ke=u;Ke!==null;)if(u=Ke,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,Ke=s;else for(;Ke!==null;){u=Ke;try{var Xe=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Xe!==null){var et=Xe.memoizedProps,yn=Xe.memoizedState,fe=u.stateNode,re=fe.getSnapshotBeforeUpdate(u.elementType===u.type?et:Jo(u.type,et),yn);fe.__reactInternalSnapshotBeforeUpdate=re}break;case 3:var me=u.stateNode.containerInfo;me.nodeType===1?me.textContent="":me.nodeType===9&&me.documentElement&&me.removeChild(me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Fe){un(u,u.return,Fe)}if(s=u.sibling,s!==null){s.return=u.return,Ke=s;break}Ke=u.return}return Xe=gR,gR=!1,Xe}function vh(s,u,h){var v=u.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var P=v=v.next;do{if((P.tag&s)===s){var I=P.destroy;P.destroy=void 0,I!==void 0&&kS(u,h,I)}P=P.next}while(P!==v)}}function Vv(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var h=u=u.next;do{if((h.tag&s)===s){var v=h.create;h.destroy=v()}h=h.next}while(h!==u)}}function jS(s){var u=s.ref;if(u!==null){var h=s.stateNode;switch(s.tag){case 5:s=h;break;default:s=h}typeof u=="function"?u(s):u.current=s}}function yR(s){var u=s.alternate;u!==null&&(s.alternate=null,yR(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[Oa],delete u[oh],delete u[Gw],delete u[zz],delete u[qz])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function bR(s){return s.tag===5||s.tag===3||s.tag===4}function wR(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||bR(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function $S(s,u,h){var v=s.tag;if(v===5||v===6)s=s.stateNode,u?h.nodeType===8?h.parentNode.insertBefore(s,u):h.insertBefore(s,u):(h.nodeType===8?(u=h.parentNode,u.insertBefore(s,h)):(u=h,u.appendChild(s)),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=yv));else if(v!==4&&(s=s.child,s!==null))for($S(s,u,h),s=s.sibling;s!==null;)$S(s,u,h),s=s.sibling}function AS(s,u,h){var v=s.tag;if(v===5||v===6)s=s.stateNode,u?h.insertBefore(s,u):h.appendChild(s);else if(v!==4&&(s=s.child,s!==null))for(AS(s,u,h),s=s.sibling;s!==null;)AS(s,u,h),s=s.sibling}var Un=null,Zo=!1;function ul(s,u,h){for(h=h.child;h!==null;)SR(s,u,h),h=h.sibling}function SR(s,u,h){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(gi,h)}catch{}switch(h.tag){case 5:ui||td(h,u);case 6:var v=Un,P=Zo;Un=null,ul(s,u,h),Un=v,Zo=P,Un!==null&&(Zo?(s=Un,h=h.stateNode,s.nodeType===8?s.parentNode.removeChild(h):s.removeChild(h)):Un.removeChild(h.stateNode));break;case 18:Un!==null&&(Zo?(s=Un,h=h.stateNode,s.nodeType===8?Kw(s.parentNode,h):s.nodeType===1&&Kw(s,h),Zs(s)):Kw(Un,h.stateNode));break;case 4:v=Un,P=Zo,Un=h.stateNode.containerInfo,Zo=!0,ul(s,u,h),Un=v,Zo=P;break;case 0:case 11:case 14:case 15:if(!ui&&(v=h.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){P=v=v.next;do{var I=P,D=I.destroy;I=I.tag,D!==void 0&&((I&2)!==0||(I&4)!==0)&&kS(h,u,D),P=P.next}while(P!==v)}ul(s,u,h);break;case 1:if(!ui&&(td(h,u),v=h.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=h.memoizedProps,v.state=h.memoizedState,v.componentWillUnmount()}catch(W){un(h,u,W)}ul(s,u,h);break;case 21:ul(s,u,h);break;case 22:h.mode&1?(ui=(v=ui)||h.memoizedState!==null,ul(s,u,h),ui=v):ul(s,u,h);break;default:ul(s,u,h)}}function _R(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var h=s.stateNode;h===null&&(h=s.stateNode=new o6),u.forEach(function(v){var P=m6.bind(null,s,v);h.has(v)||(h.add(v),v.then(P,P))})}}function ea(s,u){var h=u.deletions;if(h!==null)for(var v=0;v<h.length;v++){var P=h[v];try{var I=s,D=u,W=D;e:for(;W!==null;){switch(W.tag){case 5:Un=W.stateNode,Zo=!1;break e;case 3:Un=W.stateNode.containerInfo,Zo=!0;break e;case 4:Un=W.stateNode.containerInfo,Zo=!0;break e}W=W.return}if(Un===null)throw Error(r(160));SR(I,D,P),Un=null,Zo=!1;var J=P.alternate;J!==null&&(J.return=null),P.return=null}catch(Se){un(P,u,Se)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)xR(u,s),u=u.sibling}function xR(s,u){var h=s.alternate,v=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(ea(u,s),ka(s),v&4){try{vh(3,s,s.return),Vv(3,s)}catch(et){un(s,s.return,et)}try{vh(5,s,s.return)}catch(et){un(s,s.return,et)}}break;case 1:ea(u,s),ka(s),v&512&&h!==null&&td(h,h.return);break;case 5:if(ea(u,s),ka(s),v&512&&h!==null&&td(h,h.return),s.flags&32){var P=s.stateNode;try{an(P,"")}catch(et){un(s,s.return,et)}}if(v&4&&(P=s.stateNode,P!=null)){var I=s.memoizedProps,D=h!==null?h.memoizedProps:I,W=s.type,J=s.updateQueue;if(s.updateQueue=null,J!==null)try{W==="input"&&I.type==="radio"&&I.name!=null&&Ce(P,I),gn(W,D);var Se=gn(W,I);for(D=0;D<J.length;D+=2){var ke=J[D],Ae=J[D+1];ke==="style"?xa(P,Ae):ke==="dangerouslySetInnerHTML"?Nr(P,Ae):ke==="children"?an(P,Ae):C(P,ke,Ae,Se)}switch(W){case"input":Ge(P,I);break;case"textarea":on(P,I);break;case"select":var Ie=P._wrapperState.wasMultiple;P._wrapperState.wasMultiple=!!I.multiple;var He=I.value;He!=null?jt(P,!!I.multiple,He,!1):Ie!==!!I.multiple&&(I.defaultValue!=null?jt(P,!!I.multiple,I.defaultValue,!0):jt(P,!!I.multiple,I.multiple?[]:"",!1))}P[oh]=I}catch(et){un(s,s.return,et)}}break;case 6:if(ea(u,s),ka(s),v&4){if(s.stateNode===null)throw Error(r(162));P=s.stateNode,I=s.memoizedProps;try{P.nodeValue=I}catch(et){un(s,s.return,et)}}break;case 3:if(ea(u,s),ka(s),v&4&&h!==null&&h.memoizedState.isDehydrated)try{Zs(u.containerInfo)}catch(et){un(s,s.return,et)}break;case 4:ea(u,s),ka(s);break;case 13:ea(u,s),ka(s),P=s.child,P.flags&8192&&(I=P.memoizedState!==null,P.stateNode.isHidden=I,!I||P.alternate!==null&&P.alternate.memoizedState!==null||(NS=Et())),v&4&&_R(s);break;case 22:if(ke=h!==null&&h.memoizedState!==null,s.mode&1?(ui=(Se=ui)||ke,ea(u,s),ui=Se):ea(u,s),ka(s),v&8192){if(Se=s.memoizedState!==null,(s.stateNode.isHidden=Se)&&!ke&&(s.mode&1)!==0)for(Ke=s,ke=s.child;ke!==null;){for(Ae=Ke=ke;Ke!==null;){switch(Ie=Ke,He=Ie.child,Ie.tag){case 0:case 11:case 14:case 15:vh(4,Ie,Ie.return);break;case 1:td(Ie,Ie.return);var Xe=Ie.stateNode;if(typeof Xe.componentWillUnmount=="function"){v=Ie,h=Ie.return;try{u=v,Xe.props=u.memoizedProps,Xe.state=u.memoizedState,Xe.componentWillUnmount()}catch(et){un(v,h,et)}}break;case 5:td(Ie,Ie.return);break;case 22:if(Ie.memoizedState!==null){ER(Ae);continue}}He!==null?(He.return=Ie,Ke=He):ER(Ae)}ke=ke.sibling}e:for(ke=null,Ae=s;;){if(Ae.tag===5){if(ke===null){ke=Ae;try{P=Ae.stateNode,Se?(I=P.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none"):(W=Ae.stateNode,J=Ae.memoizedProps.style,D=J!=null&&J.hasOwnProperty("display")?J.display:null,W.style.display=Yi("display",D))}catch(et){un(s,s.return,et)}}}else if(Ae.tag===6){if(ke===null)try{Ae.stateNode.nodeValue=Se?"":Ae.memoizedProps}catch(et){un(s,s.return,et)}}else if((Ae.tag!==22&&Ae.tag!==23||Ae.memoizedState===null||Ae===s)&&Ae.child!==null){Ae.child.return=Ae,Ae=Ae.child;continue}if(Ae===s)break e;for(;Ae.sibling===null;){if(Ae.return===null||Ae.return===s)break e;ke===Ae&&(ke=null),Ae=Ae.return}ke===Ae&&(ke=null),Ae.sibling.return=Ae.return,Ae=Ae.sibling}}break;case 19:ea(u,s),ka(s),v&4&&_R(s);break;case 21:break;default:ea(u,s),ka(s)}}function ka(s){var u=s.flags;if(u&2){try{e:{for(var h=s.return;h!==null;){if(bR(h)){var v=h;break e}h=h.return}throw Error(r(160))}switch(v.tag){case 5:var P=v.stateNode;v.flags&32&&(an(P,""),v.flags&=-33);var I=wR(s);AS(s,I,P);break;case 3:case 4:var D=v.stateNode.containerInfo,W=wR(s);$S(s,W,D);break;default:throw Error(r(161))}}catch(J){un(s,s.return,J)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function s6(s,u,h){Ke=s,PR(s)}function PR(s,u,h){for(var v=(s.mode&1)!==0;Ke!==null;){var P=Ke,I=P.child;if(P.tag===22&&v){var D=P.memoizedState!==null||Bv;if(!D){var W=P.alternate,J=W!==null&&W.memoizedState!==null||ui;W=Bv;var Se=ui;if(Bv=D,(ui=J)&&!Se)for(Ke=P;Ke!==null;)D=Ke,J=D.child,D.tag===22&&D.memoizedState!==null?TR(P):J!==null?(J.return=D,Ke=J):TR(P);for(;I!==null;)Ke=I,PR(I),I=I.sibling;Ke=P,Bv=W,ui=Se}CR(s)}else(P.subtreeFlags&8772)!==0&&I!==null?(I.return=P,Ke=I):CR(s)}}function CR(s){for(;Ke!==null;){var u=Ke;if((u.flags&8772)!==0){var h=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:ui||Vv(5,u);break;case 1:var v=u.stateNode;if(u.flags&4&&!ui)if(h===null)v.componentDidMount();else{var P=u.elementType===u.type?h.memoizedProps:Jo(u.type,h.memoizedProps);v.componentDidUpdate(P,h.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var I=u.updateQueue;I!==null&&EO(u,I,v);break;case 3:var D=u.updateQueue;if(D!==null){if(h=null,u.child!==null)switch(u.child.tag){case 5:h=u.child.stateNode;break;case 1:h=u.child.stateNode}EO(u,D,h)}break;case 5:var W=u.stateNode;if(h===null&&u.flags&4){h=W;var J=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":J.autoFocus&&h.focus();break;case"img":J.src&&(h.src=J.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var Se=u.alternate;if(Se!==null){var ke=Se.memoizedState;if(ke!==null){var Ae=ke.dehydrated;Ae!==null&&Zs(Ae)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}ui||u.flags&512&&jS(u)}catch(Ie){un(u,u.return,Ie)}}if(u===s){Ke=null;break}if(h=u.sibling,h!==null){h.return=u.return,Ke=h;break}Ke=u.return}}function ER(s){for(;Ke!==null;){var u=Ke;if(u===s){Ke=null;break}var h=u.sibling;if(h!==null){h.return=u.return,Ke=h;break}Ke=u.return}}function TR(s){for(;Ke!==null;){var u=Ke;try{switch(u.tag){case 0:case 11:case 15:var h=u.return;try{Vv(4,u)}catch(J){un(u,h,J)}break;case 1:var v=u.stateNode;if(typeof v.componentDidMount=="function"){var P=u.return;try{v.componentDidMount()}catch(J){un(u,P,J)}}var I=u.return;try{jS(u)}catch(J){un(u,I,J)}break;case 5:var D=u.return;try{jS(u)}catch(J){un(u,D,J)}}}catch(J){un(u,u.return,J)}if(u===s){Ke=null;break}var W=u.sibling;if(W!==null){W.return=u.return,Ke=W;break}Ke=u.return}}var l6=Math.ceil,zv=k.ReactCurrentDispatcher,DS=k.ReactCurrentOwner,Eo=k.ReactCurrentBatchConfig,ir=0,Dn=null,Sn=null,Hn=0,to=0,rd=il(0),On=0,gh=null,Su=0,qv=0,MS=0,yh=null,ji=null,NS=0,nd=1/0,vs=null,Uv=!1,FS=null,cl=null,Hv=!1,dl=null,Wv=0,bh=0,LS=null,Kv=-1,Gv=0;function bi(){return(ir&6)!==0?Et():Kv!==-1?Kv:Kv=Et()}function fl(s){return(s.mode&1)===0?1:(ir&2)!==0&&Hn!==0?Hn&-Hn:Hz.transition!==null?(Gv===0&&(Gv=ov()),Gv):(s=sr,s!==0||(s=window.event,s=s===void 0?16:kr(s.type)),s)}function ta(s,u,h,v){if(50<bh)throw bh=0,LS=null,Error(r(185));du(s,h,v),((ir&2)===0||s!==Dn)&&(s===Dn&&((ir&2)===0&&(qv|=h),On===4&&hl(s,Hn)),$i(s,v),h===1&&ir===0&&(u.mode&1)===0&&(nd=Et()+500,_v&&al()))}function $i(s,u){var h=s.callbackNode;zf(s,u);var v=go(s,s===Dn?Hn:0);if(v===0)h!==null&&Gt(h),s.callbackNode=null,s.callbackPriority=0;else if(u=v&-v,s.callbackPriority!==u){if(h!=null&&Gt(h),u===1)s.tag===0?Uz(RR.bind(null,s)):pO(RR.bind(null,s)),Bz(function(){(ir&6)===0&&al()}),h=null;else{switch(av(v)){case 1:h=Fr;break;case 4:h=mi;break;case 16:h=ei;break;case 536870912:h=vi;break;default:h=ei}h=NR(h,OR.bind(null,s))}s.callbackPriority=u,s.callbackNode=h}}function OR(s,u){if(Kv=-1,Gv=0,(ir&6)!==0)throw Error(r(327));var h=s.callbackNode;if(id()&&s.callbackNode!==h)return null;var v=go(s,s===Dn?Hn:0);if(v===0)return null;if((v&30)!==0||(v&s.expiredLanes)!==0||u)u=Qv(s,v);else{u=v;var P=ir;ir|=2;var I=kR();(Dn!==s||Hn!==u)&&(vs=null,nd=Et()+500,xu(s,u));do try{d6();break}catch(W){IR(s,W)}while(!0);nS(),zv.current=I,ir=P,Sn!==null?u=0:(Dn=null,Hn=0,u=On)}if(u!==0){if(u===2&&(P=qf(s),P!==0&&(v=P,u=BS(s,P))),u===1)throw h=gh,xu(s,0),hl(s,v),$i(s,Et()),h;if(u===6)hl(s,v);else{if(P=s.current.alternate,(v&30)===0&&!u6(P)&&(u=Qv(s,v),u===2&&(I=qf(s),I!==0&&(v=I,u=BS(s,I))),u===1))throw h=gh,xu(s,0),hl(s,v),$i(s,Et()),h;switch(s.finishedWork=P,s.finishedLanes=v,u){case 0:case 1:throw Error(r(345));case 2:Pu(s,ji,vs);break;case 3:if(hl(s,v),(v&130023424)===v&&(u=NS+500-Et(),10<u)){if(go(s,0)!==0)break;if(P=s.suspendedLanes,(P&v)!==v){bi(),s.pingedLanes|=s.suspendedLanes&P;break}s.timeoutHandle=Ww(Pu.bind(null,s,ji,vs),u);break}Pu(s,ji,vs);break;case 4:if(hl(s,v),(v&4194240)===v)break;for(u=s.eventTimes,P=-1;0<v;){var D=31-ri(v);I=1<<D,D=u[D],D>P&&(P=D),v&=~I}if(v=P,v=Et()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*l6(v/1960))-v,10<v){s.timeoutHandle=Ww(Pu.bind(null,s,ji,vs),v);break}Pu(s,ji,vs);break;case 5:Pu(s,ji,vs);break;default:throw Error(r(329))}}}return $i(s,Et()),s.callbackNode===h?OR.bind(null,s):null}function BS(s,u){var h=yh;return s.current.memoizedState.isDehydrated&&(xu(s,u).flags|=256),s=Qv(s,u),s!==2&&(u=ji,ji=h,u!==null&&VS(u)),s}function VS(s){ji===null?ji=s:ji.push.apply(ji,s)}function u6(s){for(var u=s;;){if(u.flags&16384){var h=u.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var v=0;v<h.length;v++){var P=h[v],I=P.getSnapshot;P=P.value;try{if(!Yo(I(),P))return!1}catch{return!1}}}if(h=u.child,u.subtreeFlags&16384&&h!==null)h.return=u,u=h;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function hl(s,u){for(u&=~MS,u&=~qv,s.suspendedLanes|=u,s.pingedLanes&=~u,s=s.expirationTimes;0<u;){var h=31-ri(u),v=1<<h;s[h]=-1,u&=~v}}function RR(s){if((ir&6)!==0)throw Error(r(327));id();var u=go(s,0);if((u&1)===0)return $i(s,Et()),null;var h=Qv(s,u);if(s.tag!==0&&h===2){var v=qf(s);v!==0&&(u=v,h=BS(s,v))}if(h===1)throw h=gh,xu(s,0),hl(s,u),$i(s,Et()),h;if(h===6)throw Error(r(345));return s.finishedWork=s.current.alternate,s.finishedLanes=u,Pu(s,ji,vs),$i(s,Et()),null}function zS(s,u){var h=ir;ir|=1;try{return s(u)}finally{ir=h,ir===0&&(nd=Et()+500,_v&&al())}}function _u(s){dl!==null&&dl.tag===0&&(ir&6)===0&&id();var u=ir;ir|=1;var h=Eo.transition,v=sr;try{if(Eo.transition=null,sr=1,s)return s()}finally{sr=v,Eo.transition=h,ir=u,(ir&6)===0&&al()}}function qS(){to=rd.current,Br(rd)}function xu(s,u){s.finishedWork=null,s.finishedLanes=0;var h=s.timeoutHandle;if(h!==-1&&(s.timeoutHandle=-1,Lz(h)),Sn!==null)for(h=Sn.return;h!==null;){var v=h;switch(Jw(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&wv();break;case 3:Zc(),Br(Ri),Br(ai),dS();break;case 5:uS(v);break;case 4:Zc();break;case 13:Br(Zr);break;case 19:Br(Zr);break;case 10:iS(v.type._context);break;case 22:case 23:qS()}h=h.return}if(Dn=s,Sn=s=pl(s.current,null),Hn=to=u,On=0,gh=null,MS=qv=Su=0,ji=yh=null,yu!==null){for(u=0;u<yu.length;u++)if(h=yu[u],v=h.interleaved,v!==null){h.interleaved=null;var P=v.next,I=h.pending;if(I!==null){var D=I.next;I.next=P,v.next=D}h.pending=v}yu=null}return s}function IR(s,u){do{var h=Sn;try{if(nS(),jv.current=Mv,$v){for(var v=en.memoizedState;v!==null;){var P=v.queue;P!==null&&(P.pending=null),v=v.next}$v=!1}if(wu=0,An=Tn=en=null,dh=!1,fh=0,DS.current=null,h===null||h.return===null){On=1,gh=u,Sn=null;break}e:{var I=s,D=h.return,W=h,J=u;if(u=Hn,W.flags|=32768,J!==null&&typeof J=="object"&&typeof J.then=="function"){var Se=J,ke=W,Ae=ke.tag;if((ke.mode&1)===0&&(Ae===0||Ae===11||Ae===15)){var Ie=ke.alternate;Ie?(ke.updateQueue=Ie.updateQueue,ke.memoizedState=Ie.memoizedState,ke.lanes=Ie.lanes):(ke.updateQueue=null,ke.memoizedState=null)}var He=tR(D);if(He!==null){He.flags&=-257,rR(He,D,W,I,u),He.mode&1&&eR(I,Se,u),u=He,J=Se;var Xe=u.updateQueue;if(Xe===null){var et=new Set;et.add(J),u.updateQueue=et}else Xe.add(J);break e}else{if((u&1)===0){eR(I,Se,u),US();break e}J=Error(r(426))}}else if(Gr&&W.mode&1){var yn=tR(D);if(yn!==null){(yn.flags&65536)===0&&(yn.flags|=256),rR(yn,D,W,I,u),tS(ed(J,W));break e}}I=J=ed(J,W),On!==4&&(On=2),yh===null?yh=[I]:yh.push(I),I=D;do{switch(I.tag){case 3:I.flags|=65536,u&=-u,I.lanes|=u;var fe=JO(I,J,u);CO(I,fe);break e;case 1:W=J;var re=I.type,me=I.stateNode;if((I.flags&128)===0&&(typeof re.getDerivedStateFromError=="function"||me!==null&&typeof me.componentDidCatch=="function"&&(cl===null||!cl.has(me)))){I.flags|=65536,u&=-u,I.lanes|=u;var Fe=ZO(I,W,u);CO(I,Fe);break e}}I=I.return}while(I!==null)}$R(h)}catch(nt){u=nt,Sn===h&&h!==null&&(Sn=h=h.return);continue}break}while(!0)}function kR(){var s=zv.current;return zv.current=Mv,s===null?Mv:s}function US(){(On===0||On===3||On===2)&&(On=4),Dn===null||(Su&268435455)===0&&(qv&268435455)===0||hl(Dn,Hn)}function Qv(s,u){var h=ir;ir|=2;var v=kR();(Dn!==s||Hn!==u)&&(vs=null,xu(s,u));do try{c6();break}catch(P){IR(s,P)}while(!0);if(nS(),ir=h,zv.current=v,Sn!==null)throw Error(r(261));return Dn=null,Hn=0,On}function c6(){for(;Sn!==null;)jR(Sn)}function d6(){for(;Sn!==null&&!it();)jR(Sn)}function jR(s){var u=MR(s.alternate,s,to);s.memoizedProps=s.pendingProps,u===null?$R(s):Sn=u,DS.current=null}function $R(s){var u=s;do{var h=u.alternate;if(s=u.return,(u.flags&32768)===0){if(h=n6(h,u,to),h!==null){Sn=h;return}}else{if(h=i6(h,u),h!==null){h.flags&=32767,Sn=h;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{On=6,Sn=null;return}}if(u=u.sibling,u!==null){Sn=u;return}Sn=u=s}while(u!==null);On===0&&(On=5)}function Pu(s,u,h){var v=sr,P=Eo.transition;try{Eo.transition=null,sr=1,f6(s,u,h,v)}finally{Eo.transition=P,sr=v}return null}function f6(s,u,h,v){do id();while(dl!==null);if((ir&6)!==0)throw Error(r(327));h=s.finishedWork;var P=s.finishedLanes;if(h===null)return null;if(s.finishedWork=null,s.finishedLanes=0,h===s.current)throw Error(r(177));s.callbackNode=null,s.callbackPriority=0;var I=h.lanes|h.childLanes;if(Pw(s,I),s===Dn&&(Sn=Dn=null,Hn=0),(h.subtreeFlags&2064)===0&&(h.flags&2064)===0||Hv||(Hv=!0,NR(ei,function(){return id(),null})),I=(h.flags&15990)!==0,(h.subtreeFlags&15990)!==0||I){I=Eo.transition,Eo.transition=null;var D=sr;sr=1;var W=ir;ir|=4,DS.current=null,a6(s,h),xR(h,s),jz(Uw),z=!!qw,Uw=qw=null,s.current=h,s6(h),Ct(),ir=W,sr=D,Eo.transition=I}else s.current=h;if(Hv&&(Hv=!1,dl=s,Wv=P),I=s.pendingLanes,I===0&&(cl=null),as(h.stateNode),$i(s,Et()),u!==null)for(v=s.onRecoverableError,h=0;h<u.length;h++)P=u[h],v(P.value,{componentStack:P.stack,digest:P.digest});if(Uv)throw Uv=!1,s=FS,FS=null,s;return(Wv&1)!==0&&s.tag!==0&&id(),I=s.pendingLanes,(I&1)!==0?s===LS?bh++:(bh=0,LS=s):bh=0,al(),null}function id(){if(dl!==null){var s=av(Wv),u=Eo.transition,h=sr;try{if(Eo.transition=null,sr=16>s?16:s,dl===null)var v=!1;else{if(s=dl,dl=null,Wv=0,(ir&6)!==0)throw Error(r(331));var P=ir;for(ir|=4,Ke=s.current;Ke!==null;){var I=Ke,D=I.child;if((Ke.flags&16)!==0){var W=I.deletions;if(W!==null){for(var J=0;J<W.length;J++){var Se=W[J];for(Ke=Se;Ke!==null;){var ke=Ke;switch(ke.tag){case 0:case 11:case 15:vh(8,ke,I)}var Ae=ke.child;if(Ae!==null)Ae.return=ke,Ke=Ae;else for(;Ke!==null;){ke=Ke;var Ie=ke.sibling,He=ke.return;if(yR(ke),ke===Se){Ke=null;break}if(Ie!==null){Ie.return=He,Ke=Ie;break}Ke=He}}}var Xe=I.alternate;if(Xe!==null){var et=Xe.child;if(et!==null){Xe.child=null;do{var yn=et.sibling;et.sibling=null,et=yn}while(et!==null)}}Ke=I}}if((I.subtreeFlags&2064)!==0&&D!==null)D.return=I,Ke=D;else e:for(;Ke!==null;){if(I=Ke,(I.flags&2048)!==0)switch(I.tag){case 0:case 11:case 15:vh(9,I,I.return)}var fe=I.sibling;if(fe!==null){fe.return=I.return,Ke=fe;break e}Ke=I.return}}var re=s.current;for(Ke=re;Ke!==null;){D=Ke;var me=D.child;if((D.subtreeFlags&2064)!==0&&me!==null)me.return=D,Ke=me;else e:for(D=re;Ke!==null;){if(W=Ke,(W.flags&2048)!==0)try{switch(W.tag){case 0:case 11:case 15:Vv(9,W)}}catch(nt){un(W,W.return,nt)}if(W===D){Ke=null;break e}var Fe=W.sibling;if(Fe!==null){Fe.return=W.return,Ke=Fe;break e}Ke=W.return}}if(ir=P,al(),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(gi,s)}catch{}v=!0}return v}finally{sr=h,Eo.transition=u}}return!1}function AR(s,u,h){u=ed(h,u),u=JO(s,u,1),s=ll(s,u,1),u=bi(),s!==null&&(du(s,1,u),$i(s,u))}function un(s,u,h){if(s.tag===3)AR(s,s,h);else for(;u!==null;){if(u.tag===3){AR(u,s,h);break}else if(u.tag===1){var v=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(cl===null||!cl.has(v))){s=ed(h,s),s=ZO(u,s,1),u=ll(u,s,1),s=bi(),u!==null&&(du(u,1,s),$i(u,s));break}}u=u.return}}function h6(s,u,h){var v=s.pingCache;v!==null&&v.delete(u),u=bi(),s.pingedLanes|=s.suspendedLanes&h,Dn===s&&(Hn&h)===h&&(On===4||On===3&&(Hn&130023424)===Hn&&500>Et()-NS?xu(s,0):MS|=h),$i(s,u)}function DR(s,u){u===0&&((s.mode&1)===0?u=1:(u=ss,ss<<=1,(ss&130023424)===0&&(ss=4194304)));var h=bi();s=hs(s,u),s!==null&&(du(s,u,h),$i(s,h))}function p6(s){var u=s.memoizedState,h=0;u!==null&&(h=u.retryLane),DR(s,h)}function m6(s,u){var h=0;switch(s.tag){case 13:var v=s.stateNode,P=s.memoizedState;P!==null&&(h=P.retryLane);break;case 19:v=s.stateNode;break;default:throw Error(r(314))}v!==null&&v.delete(u),DR(s,h)}var MR;MR=function(s,u,h){if(s!==null)if(s.memoizedProps!==u.pendingProps||Ri.current)ki=!0;else{if((s.lanes&h)===0&&(u.flags&128)===0)return ki=!1,r6(s,u,h);ki=(s.flags&131072)!==0}else ki=!1,Gr&&(u.flags&1048576)!==0&&mO(u,Pv,u.index);switch(u.lanes=0,u.tag){case 2:var v=u.type;Lv(s,u),s=u.pendingProps;var P=Wc(u,ai.current);Jc(u,h),P=pS(null,u,v,s,P,h);var I=mS();return u.flags|=1,typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Ii(v)?(I=!0,Sv(u)):I=!1,u.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,sS(u),P.updater=Nv,u.stateNode=P,P._reactInternals=u,SS(u,v,s,h),u=CS(null,u,v,!0,I,h)):(u.tag=0,Gr&&I&&Xw(u),yi(null,u,P,h),u=u.child),u;case 16:v=u.elementType;e:{switch(Lv(s,u),s=u.pendingProps,P=v._init,v=P(v._payload),u.type=v,P=u.tag=g6(v),s=Jo(v,s),P){case 0:u=PS(null,u,v,s,h);break e;case 1:u=lR(null,u,v,s,h);break e;case 11:u=nR(null,u,v,s,h);break e;case 14:u=iR(null,u,v,Jo(v.type,s),h);break e}throw Error(r(306,v,""))}return u;case 0:return v=u.type,P=u.pendingProps,P=u.elementType===v?P:Jo(v,P),PS(s,u,v,P,h);case 1:return v=u.type,P=u.pendingProps,P=u.elementType===v?P:Jo(v,P),lR(s,u,v,P,h);case 3:e:{if(uR(u),s===null)throw Error(r(387));v=u.pendingProps,I=u.memoizedState,P=I.element,PO(s,u),Iv(u,v,null,h);var D=u.memoizedState;if(v=D.element,I.isDehydrated)if(I={element:v,isDehydrated:!1,cache:D.cache,pendingSuspenseBoundaries:D.pendingSuspenseBoundaries,transitions:D.transitions},u.updateQueue.baseState=I,u.memoizedState=I,u.flags&256){P=ed(Error(r(423)),u),u=cR(s,u,v,h,P);break e}else if(v!==P){P=ed(Error(r(424)),u),u=cR(s,u,v,h,P);break e}else for(eo=nl(u.stateNode.containerInfo.firstChild),Zi=u,Gr=!0,Xo=null,h=_O(u,null,v,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(Qc(),v===P){u=ms(s,u,h);break e}yi(s,u,v,h)}u=u.child}return u;case 5:return TO(u),s===null&&eS(u),v=u.type,P=u.pendingProps,I=s!==null?s.memoizedProps:null,D=P.children,Hw(v,P)?D=null:I!==null&&Hw(v,I)&&(u.flags|=32),sR(s,u),yi(s,u,D,h),u.child;case 6:return s===null&&eS(u),null;case 13:return dR(s,u,h);case 4:return lS(u,u.stateNode.containerInfo),v=u.pendingProps,s===null?u.child=Yc(u,null,v,h):yi(s,u,v,h),u.child;case 11:return v=u.type,P=u.pendingProps,P=u.elementType===v?P:Jo(v,P),nR(s,u,v,P,h);case 7:return yi(s,u,u.pendingProps,h),u.child;case 8:return yi(s,u,u.pendingProps.children,h),u.child;case 12:return yi(s,u,u.pendingProps.children,h),u.child;case 10:e:{if(v=u.type._context,P=u.pendingProps,I=u.memoizedProps,D=P.value,$r(Tv,v._currentValue),v._currentValue=D,I!==null)if(Yo(I.value,D)){if(I.children===P.children&&!Ri.current){u=ms(s,u,h);break e}}else for(I=u.child,I!==null&&(I.return=u);I!==null;){var W=I.dependencies;if(W!==null){D=I.child;for(var J=W.firstContext;J!==null;){if(J.context===v){if(I.tag===1){J=ps(-1,h&-h),J.tag=2;var Se=I.updateQueue;if(Se!==null){Se=Se.shared;var ke=Se.pending;ke===null?J.next=J:(J.next=ke.next,ke.next=J),Se.pending=J}}I.lanes|=h,J=I.alternate,J!==null&&(J.lanes|=h),oS(I.return,h,u),W.lanes|=h;break}J=J.next}}else if(I.tag===10)D=I.type===u.type?null:I.child;else if(I.tag===18){if(D=I.return,D===null)throw Error(r(341));D.lanes|=h,W=D.alternate,W!==null&&(W.lanes|=h),oS(D,h,u),D=I.sibling}else D=I.child;if(D!==null)D.return=I;else for(D=I;D!==null;){if(D===u){D=null;break}if(I=D.sibling,I!==null){I.return=D.return,D=I;break}D=D.return}I=D}yi(s,u,P.children,h),u=u.child}return u;case 9:return P=u.type,v=u.pendingProps.children,Jc(u,h),P=Po(P),v=v(P),u.flags|=1,yi(s,u,v,h),u.child;case 14:return v=u.type,P=Jo(v,u.pendingProps),P=Jo(v.type,P),iR(s,u,v,P,h);case 15:return oR(s,u,u.type,u.pendingProps,h);case 17:return v=u.type,P=u.pendingProps,P=u.elementType===v?P:Jo(v,P),Lv(s,u),u.tag=1,Ii(v)?(s=!0,Sv(u)):s=!1,Jc(u,h),YO(u,v,P),SS(u,v,P,h),CS(null,u,v,!0,s,h);case 19:return hR(s,u,h);case 22:return aR(s,u,h)}throw Error(r(156,u.tag))};function NR(s,u){return ft(s,u)}function v6(s,u,h,v){this.tag=s,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function To(s,u,h,v){return new v6(s,u,h,v)}function HS(s){return s=s.prototype,!(!s||!s.isReactComponent)}function g6(s){if(typeof s=="function")return HS(s)?1:0;if(s!=null){if(s=s.$$typeof,s===se)return 11;if(s===X)return 14}return 2}function pl(s,u){var h=s.alternate;return h===null?(h=To(s.tag,u,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=u,h.type=s.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=s.flags&14680064,h.childLanes=s.childLanes,h.lanes=s.lanes,h.child=s.child,h.memoizedProps=s.memoizedProps,h.memoizedState=s.memoizedState,h.updateQueue=s.updateQueue,u=s.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h}function Yv(s,u,h,v,P,I){var D=2;if(v=s,typeof s=="function")HS(s)&&(D=1);else if(typeof s=="string")D=5;else e:switch(s){case T:return Cu(h.children,P,I,u);case A:D=8,P|=8;break;case M:return s=To(12,h,u,P|2),s.elementType=M,s.lanes=I,s;case ie:return s=To(13,h,u,P),s.elementType=ie,s.lanes=I,s;case N:return s=To(19,h,u,P),s.elementType=N,s.lanes=I,s;case ne:return Xv(h,P,I,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case B:D=10;break e;case Q:D=9;break e;case se:D=11;break e;case X:D=14;break e;case ce:D=16,v=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return u=To(D,h,u,P),u.elementType=s,u.type=v,u.lanes=I,u}function Cu(s,u,h,v){return s=To(7,s,v,u),s.lanes=h,s}function Xv(s,u,h,v){return s=To(22,s,v,u),s.elementType=ne,s.lanes=h,s.stateNode={isHidden:!1},s}function WS(s,u,h){return s=To(6,s,null,u),s.lanes=h,s}function KS(s,u,h){return u=To(4,s.children!==null?s.children:[],s.key,u),u.lanes=h,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function y6(s,u,h,v,P){this.tag=u,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ac(0),this.expirationTimes=Ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ac(0),this.identifierPrefix=v,this.onRecoverableError=P,this.mutableSourceEagerHydrationData=null}function GS(s,u,h,v,P,I,D,W,J){return s=new y6(s,u,h,W,J),u===1?(u=1,I===!0&&(u|=8)):u=0,I=To(3,null,null,u),s.current=I,I.stateNode=s,I.memoizedState={element:v,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},sS(I),s}function b6(s,u,h){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:v==null?null:""+v,children:s,containerInfo:u,implementation:h}}function FR(s){if(!s)return ol;s=s._reactInternals;e:{if(ot(s)!==s||s.tag!==1)throw Error(r(170));var u=s;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Ii(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(r(171))}if(s.tag===1){var h=s.type;if(Ii(h))return fO(s,h,u)}return u}function LR(s,u,h,v,P,I,D,W,J){return s=GS(h,v,!0,s,P,I,D,W,J),s.context=FR(null),h=s.current,v=bi(),P=fl(h),I=ps(v,P),I.callback=u??null,ll(h,I,P),s.current.lanes=P,du(s,P,v),$i(s,v),s}function Jv(s,u,h,v){var P=u.current,I=bi(),D=fl(P);return h=FR(h),u.context===null?u.context=h:u.pendingContext=h,u=ps(I,D),u.payload={element:s},v=v===void 0?null:v,v!==null&&(u.callback=v),s=ll(P,u,D),s!==null&&(ta(s,P,D,I),Rv(s,P,D)),D}function Zv(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function BR(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<u?h:u}}function QS(s,u){BR(s,u),(s=s.alternate)&&BR(s,u)}function w6(){return null}var VR=typeof reportError=="function"?reportError:function(s){console.error(s)};function YS(s){this._internalRoot=s}eg.prototype.render=YS.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(r(409));Jv(s,u,null,null)},eg.prototype.unmount=YS.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;_u(function(){Jv(null,s,null,null)}),u[us]=null}};function eg(s){this._internalRoot=s}eg.prototype.unstable_scheduleHydration=function(s){if(s){var u=lv();s={blockedOn:null,target:s,priority:u};for(var h=0;h<So.length&&u!==0&&u<So[h].priority;h++);So.splice(h,0,s),h===0&&Kf(s)}};function XS(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function tg(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function zR(){}function S6(s,u,h,v,P){if(P){if(typeof v=="function"){var I=v;v=function(){var Se=Zv(D);I.call(Se)}}var D=LR(u,v,s,0,null,!1,!1,"",zR);return s._reactRootContainer=D,s[us]=D.current,nh(s.nodeType===8?s.parentNode:s),_u(),D}for(;P=s.lastChild;)s.removeChild(P);if(typeof v=="function"){var W=v;v=function(){var Se=Zv(J);W.call(Se)}}var J=GS(s,0,!1,null,null,!1,!1,"",zR);return s._reactRootContainer=J,s[us]=J.current,nh(s.nodeType===8?s.parentNode:s),_u(function(){Jv(u,J,h,v)}),J}function rg(s,u,h,v,P){var I=h._reactRootContainer;if(I){var D=I;if(typeof P=="function"){var W=P;P=function(){var J=Zv(D);W.call(J)}}Jv(u,D,s,P)}else D=S6(h,u,s,P,v);return Zv(D)}sv=function(s){switch(s.tag){case 3:var u=s.stateNode;if(u.current.memoizedState.isDehydrated){var h=Ca(u.pendingLanes);h!==0&&(Uf(u,h|1),$i(u,Et()),(ir&6)===0&&(nd=Et()+500,al()))}break;case 13:_u(function(){var v=hs(s,1);if(v!==null){var P=bi();ta(v,s,1,P)}}),QS(s,1)}},Hf=function(s){if(s.tag===13){var u=hs(s,134217728);if(u!==null){var h=bi();ta(u,s,134217728,h)}QS(s,134217728)}},Dc=function(s){if(s.tag===13){var u=fl(s),h=hs(s,u);if(h!==null){var v=bi();ta(h,s,u,v)}QS(s,u)}},lv=function(){return sr},uv=function(s,u){var h=sr;try{return sr=s,u()}finally{sr=h}},Pa=function(s,u,h){switch(u){case"input":if(Ge(s,h),u=h.name,h.type==="radio"&&u!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<h.length;u++){var v=h[u];if(v!==s&&v.form===s.form){var P=bv(v);if(!P)throw Error(r(90));K(v),Ge(v,P)}}}break;case"textarea":on(s,h);break;case"select":u=h.value,u!=null&&jt(s,!!h.multiple,u,!1)}},ye=zS,xe=_u;var _6={usingClientEntryPoint:!1,Events:[ah,Uc,bv,Ji,le,zS]},wh={findFiberByHostInstance:pu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},x6={bundleType:wh.bundleType,version:wh.version,rendererPackageName:wh.rendererPackageName,rendererConfig:wh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=At(s),s===null?null:s.stateNode},findFiberByHostInstance:wh.findFiberByHostInstance||w6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{gi=ng.inject(x6),ln=ng}catch{}}return Ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_6,Ai.createPortal=function(s,u){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!XS(u))throw Error(r(200));return b6(s,u,null,h)},Ai.createRoot=function(s,u){if(!XS(s))throw Error(r(299));var h=!1,v="",P=VR;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onRecoverableError!==void 0&&(P=u.onRecoverableError)),u=GS(s,1,!1,null,null,h,!1,v,P),s[us]=u.current,nh(s.nodeType===8?s.parentNode:s),new YS(u)},Ai.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=At(u),s=s===null?null:s.stateNode,s},Ai.flushSync=function(s){return _u(s)},Ai.hydrate=function(s,u,h){if(!tg(u))throw Error(r(200));return rg(null,s,u,!0,h)},Ai.hydrateRoot=function(s,u,h){if(!XS(s))throw Error(r(405));var v=h!=null&&h.hydratedSources||null,P=!1,I="",D=VR;if(h!=null&&(h.unstable_strictMode===!0&&(P=!0),h.identifierPrefix!==void 0&&(I=h.identifierPrefix),h.onRecoverableError!==void 0&&(D=h.onRecoverableError)),u=LR(u,null,s,1,h??null,P,!1,I,D),s[us]=u.current,nh(s),v)for(s=0;s<v.length;s++)h=v[s],P=h._getVersion,P=P(h._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[h,P]:u.mutableSourceEagerHydrationData.push(h,P);return new eg(u)},Ai.render=function(s,u,h){if(!tg(u))throw Error(r(200));return rg(null,s,u,!1,h)},Ai.unmountComponentAtNode=function(s){if(!tg(s))throw Error(r(40));return s._reactRootContainer?(_u(function(){rg(null,null,s,!1,function(){s._reactRootContainer=null,s[us]=null})}),!0):!1},Ai.unstable_batchedUpdates=zS,Ai.unstable_renderSubtreeIntoContainer=function(s,u,h,v){if(!tg(h))throw Error(r(200));if(s==null||s._reactInternals===void 0)throw Error(r(38));return rg(s,u,h,!1,v)},Ai.version="18.3.1-next-f1338f8080-20240426",Ai}var YR;function cM(){if(YR)return e1.exports;YR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),e1.exports=$6(),e1.exports}var XR;function A6(){if(XR)return og;XR=1;var e=cM();return og.createRoot=e.createRoot,og.hydrateRoot=e.hydrateRoot,og}var D6=A6();const M6={BASE_URL:"/",DEV:!1,GIT_BRANCH_NAME:"HEAD",GIT_COMMIT_HASH:"df72e0a",MODE:"production",PACKAGE_VERSION:"0.11.0-alpha.5",PROD:!0,REACT_APP_ENDPOINT_HOST:"",REACT_APP_ENDPOINT_PORT:"",REACT_APP_ENDPOINT_SERVER_URL:"/endpoint",REACT_APP_GRAPHQL_SERVER_URL:"/graphql",REACT_APP_SWAGGER_SERVER_URL:"/api",SSR:!1},Oy=e=>{var n;const t=M6[e];return((n=window.__env__)==null?void 0:n[e])||t};function N6(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function F6(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var L6=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(F6(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=N6(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ci="-ms-",ib="-moz-",hr="-webkit-",dM="comm",JP="rule",ZP="decl",B6="@import",fM="@keyframes",V6="@layer",z6=Math.abs,a0=String.fromCharCode,q6=Object.assign;function U6(e,t){return Yn(e,0)^45?(((t<<2^Yn(e,0))<<2^Yn(e,1))<<2^Yn(e,2))<<2^Yn(e,3):0}function hM(e){return e.trim()}function H6(e,t){return(e=t.exec(e))?e[0]:e}function pr(e,t,r){return e.replace(t,r)}function tx(e,t){return e.indexOf(t)}function Yn(e,t){return e.charCodeAt(t)|0}function Op(e,t,r){return e.slice(t,r)}function Ma(e){return e.length}function eC(e){return e.length}function ag(e,t){return t.push(e),e}function W6(e,t){return e.map(t).join("")}var s0=1,Zd=1,pM=0,Vi=0,Cn=0,_f="";function l0(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:s0,column:Zd,length:a,return:""}}function _h(e,t){return q6(l0("",null,null,"",null,null,0),e,{length:-e.length},t)}function K6(){return Cn}function G6(){return Cn=Vi>0?Yn(_f,--Vi):0,Zd--,Cn===10&&(Zd=1,s0--),Cn}function so(){return Cn=Vi<pM?Yn(_f,Vi++):0,Zd++,Cn===10&&(Zd=1,s0++),Cn}function Ua(){return Yn(_f,Vi)}function Ry(){return Vi}function Sm(e,t){return Op(_f,e,t)}function Rp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mM(e){return s0=Zd=1,pM=Ma(_f=e),Vi=0,[]}function vM(e){return _f="",e}function Iy(e){return hM(Sm(Vi-1,rx(e===91?e+2:e===40?e+1:e)))}function Q6(e){for(;(Cn=Ua())&&Cn<33;)so();return Rp(e)>2||Rp(Cn)>3?"":" "}function Y6(e,t){for(;--t&&so()&&!(Cn<48||Cn>102||Cn>57&&Cn<65||Cn>70&&Cn<97););return Sm(e,Ry()+(t<6&&Ua()==32&&so()==32))}function rx(e){for(;so();)switch(Cn){case e:return Vi;case 34:case 39:e!==34&&e!==39&&rx(Cn);break;case 40:e===41&&rx(e);break;case 92:so();break}return Vi}function X6(e,t){for(;so()&&e+Cn!==57;)if(e+Cn===84&&Ua()===47)break;return"/*"+Sm(t,Vi-1)+"*"+a0(e===47?e:so())}function J6(e){for(;!Rp(Ua());)so();return Sm(e,Vi)}function Z6(e){return vM(ky("",null,null,null,[""],e=mM(e),0,[0],e))}function ky(e,t,r,n,i,o,a,l,c){for(var d=0,f=0,p=a,m=0,g=0,b=0,y=1,w=1,_=1,S=0,C="",k=i,E=o,R=n,T=C;w;)switch(b=S,S=so()){case 40:if(b!=108&&Yn(T,p-1)==58){tx(T+=pr(Iy(S),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:T+=Iy(S);break;case 9:case 10:case 13:case 32:T+=Q6(b);break;case 92:T+=Y6(Ry()-1,7);continue;case 47:switch(Ua()){case 42:case 47:ag(e8(X6(so(),Ry()),t,r),c);break;default:T+="/"}break;case 123*y:l[d++]=Ma(T)*_;case 125*y:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+f:_==-1&&(T=pr(T,/\f/g,"")),g>0&&Ma(T)-p&&ag(g>32?ZR(T+";",n,r,p-1):ZR(pr(T," ","")+";",n,r,p-2),c);break;case 59:T+=";";default:if(ag(R=JR(T,t,r,d,f,i,l,C,k=[],E=[],p),o),S===123)if(f===0)ky(T,t,R,R,k,o,p,l,E);else switch(m===99&&Yn(T,3)===110?100:m){case 100:case 108:case 109:case 115:ky(e,R,R,n&&ag(JR(e,R,R,0,0,i,l,C,i,k=[],p),E),i,E,p,l,n?k:E);break;default:ky(T,R,R,R,[""],E,0,l,E)}}d=f=g=0,y=_=1,C=T="",p=a;break;case 58:p=1+Ma(T),g=b;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&G6()==125)continue}switch(T+=a0(S),S*y){case 38:_=f>0?1:(T+="\f",-1);break;case 44:l[d++]=(Ma(T)-1)*_,_=1;break;case 64:Ua()===45&&(T+=Iy(so())),m=Ua(),f=p=Ma(C=T+=J6(Ry())),S++;break;case 45:b===45&&Ma(T)==2&&(y=0)}}return o}function JR(e,t,r,n,i,o,a,l,c,d,f){for(var p=i-1,m=i===0?o:[""],g=eC(m),b=0,y=0,w=0;b<n;++b)for(var _=0,S=Op(e,p+1,p=z6(y=a[b])),C=e;_<g;++_)(C=hM(y>0?m[_]+" "+S:pr(S,/&\f/g,m[_])))&&(c[w++]=C);return l0(e,t,r,i===0?JP:l,c,d,f)}function e8(e,t,r){return l0(e,t,r,dM,a0(K6()),Op(e,2,-2),0)}function ZR(e,t,r,n){return l0(e,t,r,ZP,Op(e,0,n),Op(e,n+1,-1),n)}function qd(e,t){for(var r="",n=eC(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function t8(e,t,r,n){switch(e.type){case V6:if(e.children.length)break;case B6:case ZP:return e.return=e.return||e.value;case dM:return"";case fM:return e.return=e.value+"{"+qd(e.children,n)+"}";case JP:e.value=e.props.join(",")}return Ma(r=qd(e.children,n))?e.return=e.value+"{"+r+"}":""}function r8(e){var t=eC(e);return function(r,n,i,o){for(var a="",l=0;l<t;l++)a+=e[l](r,n,i,o)||"";return a}}function n8(e){return function(t){t.root||(t=t.return)&&e(t)}}var eI=function(t){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var i=t(n);return r.set(n,i),i}};function gM(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var i8=function(t,r,n){for(var i=0,o=0;i=o,o=Ua(),i===38&&o===12&&(r[n]=1),!Rp(o);)so();return Sm(t,Vi)},o8=function(t,r){var n=-1,i=44;do switch(Rp(i)){case 0:i===38&&Ua()===12&&(r[n]=1),t[n]+=i8(Vi-1,r,n);break;case 2:t[n]+=Iy(i);break;case 4:if(i===44){t[++n]=Ua()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=a0(i)}while(i=so());return t},a8=function(t,r){return vM(o8(mM(t),r))},tI=new WeakMap,s8=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!tI.get(n))&&!i){tI.set(t,!0);for(var o=[],a=a8(r,o),l=n.props,c=0,d=0;c<a.length;c++)for(var f=0;f<l.length;f++,d++)t.props[d]=o[c]?a[c].replace(/&\f/g,l[f]):l[f]+" "+a[c]}}},l8=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function yM(e,t){switch(U6(e,t)){case 5103:return hr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return hr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hr+e+ib+e+ci+e+e;case 6828:case 4268:return hr+e+ci+e+e;case 6165:return hr+e+ci+"flex-"+e+e;case 5187:return hr+e+pr(e,/(\w+).+(:[^]+)/,hr+"box-$1$2"+ci+"flex-$1$2")+e;case 5443:return hr+e+ci+"flex-item-"+pr(e,/flex-|-self/,"")+e;case 4675:return hr+e+ci+"flex-line-pack"+pr(e,/align-content|flex-|-self/,"")+e;case 5548:return hr+e+ci+pr(e,"shrink","negative")+e;case 5292:return hr+e+ci+pr(e,"basis","preferred-size")+e;case 6060:return hr+"box-"+pr(e,"-grow","")+hr+e+ci+pr(e,"grow","positive")+e;case 4554:return hr+pr(e,/([^-])(transform)/g,"$1"+hr+"$2")+e;case 6187:return pr(pr(pr(e,/(zoom-|grab)/,hr+"$1"),/(image-set)/,hr+"$1"),e,"")+e;case 5495:case 3959:return pr(e,/(image-set\([^]*)/,hr+"$1$`$1");case 4968:return pr(pr(e,/(.+:)(flex-)?(.*)/,hr+"box-pack:$3"+ci+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hr+e+e;case 4095:case 3583:case 4068:case 2532:return pr(e,/(.+)-inline(.+)/,hr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ma(e)-1-t>6)switch(Yn(e,t+1)){case 109:if(Yn(e,t+4)!==45)break;case 102:return pr(e,/(.+:)(.+)-([^]+)/,"$1"+hr+"$2-$3$1"+ib+(Yn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tx(e,"stretch")?yM(pr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yn(e,t+1)!==115)break;case 6444:switch(Yn(e,Ma(e)-3-(~tx(e,"!important")&&10))){case 107:return pr(e,":",":"+hr)+e;case 101:return pr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hr+(Yn(e,14)===45?"inline-":"")+"box$3$1"+hr+"$2$3$1"+ci+"$2box$3")+e}break;case 5936:switch(Yn(e,t+11)){case 114:return hr+e+ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hr+e+ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hr+e+ci+pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hr+e+ci+e+e}return e}var u8=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case ZP:t.return=yM(t.value,t.length);break;case fM:return qd([_h(t,{value:pr(t.value,"@","@"+hr)})],i);case JP:if(t.length)return W6(t.props,function(o){switch(H6(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qd([_h(t,{props:[pr(o,/:(read-\w+)/,":"+ib+"$1")]})],i);case"::placeholder":return qd([_h(t,{props:[pr(o,/:(plac\w+)/,":"+hr+"input-$1")]}),_h(t,{props:[pr(o,/:(plac\w+)/,":"+ib+"$1")]}),_h(t,{props:[pr(o,/:(plac\w+)/,ci+"input-$1")]})],i)}return""})}},c8=[u8],d8=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||c8,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),_=1;_<w.length;_++)o[w[_]]=!0;l.push(y)});var c,d=[s8,l8];{var f,p=[t8,n8(function(y){f.insert(y)})],m=r8(d.concat(i,p)),g=function(w){return qd(Z6(w),m)};c=function(w,_,S,C){f=S,g(w?w+"{"+_.styles+"}":_.styles),C&&(b.inserted[_.name]=!0)}}var b={key:r,sheet:new L6({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return b.sheet.hydrate(l),b};function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ob.apply(null,arguments)}var n1={exports:{}},br={};/** @license React v16.13.1
40
+ `+I.stack}return{value:s,source:u,stack:P,digest:null}}function _S(s,u,h){return{value:s,source:null,stack:h??null,digest:u??null}}function xS(s,u){try{console.error(u.value)}catch(h){setTimeout(function(){throw h})}}var Zz=typeof WeakMap=="function"?WeakMap:Map;function JO(s,u,h){h=ps(-1,h),h.tag=3,h.payload={element:null};var v=u.value;return h.callback=function(){Uv||(Uv=!0,FS=v),xS(s,u)},h}function ZO(s,u,h){h=ps(-1,h),h.tag=3;var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var P=u.value;h.payload=function(){return v(P)},h.callback=function(){xS(s,u)}}var I=s.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(h.callback=function(){xS(s,u),typeof v!="function"&&(cl===null?cl=new Set([this]):cl.add(this));var D=u.stack;this.componentDidCatch(u.value,{componentStack:D!==null?D:""})}),h}function eR(s,u,h){var v=s.pingCache;if(v===null){v=s.pingCache=new Zz;var P=new Set;v.set(u,P)}else P=v.get(u),P===void 0&&(P=new Set,v.set(u,P));P.has(h)||(P.add(h),s=h6.bind(null,s,u,h),u.then(s,s))}function tR(s){do{var u;if((u=s.tag===13)&&(u=s.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return s;s=s.return}while(s!==null);return null}function rR(s,u,h,v,P){return(s.mode&1)===0?(s===u?s.flags|=65536:(s.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(u=ps(-1,1),u.tag=2,ll(h,u,1))),h.lanes|=1),s):(s.flags|=65536,s.lanes=P,s)}var e6=k.ReactCurrentOwner,ki=!1;function yi(s,u,h,v){u.child=s===null?_O(u,null,h,v):Yc(u,s.child,h,v)}function nR(s,u,h,v,P){h=h.render;var I=u.ref;return Jc(u,P),v=pS(s,u,h,v,I,P),h=mS(),s!==null&&!ki?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~P,ms(s,u,P)):(Gr&&h&&Xw(u),u.flags|=1,yi(s,u,v,P),u.child)}function iR(s,u,h,v,P){if(s===null){var I=h.type;return typeof I=="function"&&!HS(I)&&I.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(u.tag=15,u.type=I,oR(s,u,I,v,P)):(s=Yv(h.type,null,v,u,u.mode,P),s.ref=u.ref,s.return=u,u.child=s)}if(I=s.child,(s.lanes&P)===0){var D=I.memoizedProps;if(h=h.compare,h=h!==null?h:eh,h(D,v)&&s.ref===u.ref)return ms(s,u,P)}return u.flags|=1,s=pl(I,v),s.ref=u.ref,s.return=u,u.child=s}function oR(s,u,h,v,P){if(s!==null){var I=s.memoizedProps;if(eh(I,v)&&s.ref===u.ref)if(ki=!1,u.pendingProps=v=I,(s.lanes&P)!==0)(s.flags&131072)!==0&&(ki=!0);else return u.lanes=s.lanes,ms(s,u,P)}return PS(s,u,h,v,P)}function aR(s,u,h){var v=u.pendingProps,P=v.children,I=s!==null?s.memoizedState:null;if(v.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},$r(rd,to),to|=h;else{if((h&1073741824)===0)return s=I!==null?I.baseLanes|h:h,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:s,cachePool:null,transitions:null},u.updateQueue=null,$r(rd,to),to|=s,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=I!==null?I.baseLanes:h,$r(rd,to),to|=v}else I!==null?(v=I.baseLanes|h,u.memoizedState=null):v=h,$r(rd,to),to|=v;return yi(s,u,P,h),u.child}function sR(s,u){var h=u.ref;(s===null&&h!==null||s!==null&&s.ref!==h)&&(u.flags|=512,u.flags|=2097152)}function PS(s,u,h,v,P){var I=Ii(h)?mu:ai.current;return I=Wc(u,I),Jc(u,P),h=pS(s,u,h,v,I,P),v=mS(),s!==null&&!ki?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~P,ms(s,u,P)):(Gr&&v&&Xw(u),u.flags|=1,yi(s,u,h,P),u.child)}function lR(s,u,h,v,P){if(Ii(h)){var I=!0;Sv(u)}else I=!1;if(Jc(u,P),u.stateNode===null)Lv(s,u),YO(u,h,v),SS(u,h,v,P),v=!0;else if(s===null){var D=u.stateNode,W=u.memoizedProps;D.props=W;var J=D.context,Se=h.contextType;typeof Se=="object"&&Se!==null?Se=Po(Se):(Se=Ii(h)?mu:ai.current,Se=Wc(u,Se));var ke=h.getDerivedStateFromProps,Ae=typeof ke=="function"||typeof D.getSnapshotBeforeUpdate=="function";Ae||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(W!==v||J!==Se)&&XO(u,D,v,Se),sl=!1;var Ie=u.memoizedState;D.state=Ie,Iv(u,v,D,P),J=u.memoizedState,W!==v||Ie!==J||Ri.current||sl?(typeof ke=="function"&&(wS(u,h,ke,v),J=u.memoizedState),(W=sl||QO(u,h,W,v,Ie,J,Se))?(Ae||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(u.flags|=4194308)):(typeof D.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=v,u.memoizedState=J),D.props=v,D.state=J,D.context=Se,v=W):(typeof D.componentDidMount=="function"&&(u.flags|=4194308),v=!1)}else{D=u.stateNode,PO(s,u),W=u.memoizedProps,Se=u.type===u.elementType?W:Jo(u.type,W),D.props=Se,Ae=u.pendingProps,Ie=D.context,J=h.contextType,typeof J=="object"&&J!==null?J=Po(J):(J=Ii(h)?mu:ai.current,J=Wc(u,J));var He=h.getDerivedStateFromProps;(ke=typeof He=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(W!==Ae||Ie!==J)&&XO(u,D,v,J),sl=!1,Ie=u.memoizedState,D.state=Ie,Iv(u,v,D,P);var Xe=u.memoizedState;W!==Ae||Ie!==Xe||Ri.current||sl?(typeof He=="function"&&(wS(u,h,He,v),Xe=u.memoizedState),(Se=sl||QO(u,h,Se,v,Ie,Xe,J)||!1)?(ke||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(v,Xe,J),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(v,Xe,J)),typeof D.componentDidUpdate=="function"&&(u.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof D.componentDidUpdate!="function"||W===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||W===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=1024),u.memoizedProps=v,u.memoizedState=Xe),D.props=v,D.state=Xe,D.context=J,v=Se):(typeof D.componentDidUpdate!="function"||W===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||W===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=1024),v=!1)}return CS(s,u,h,v,I,P)}function CS(s,u,h,v,P,I){sR(s,u);var D=(u.flags&128)!==0;if(!v&&!D)return P&&hO(u,h,!1),ms(s,u,I);v=u.stateNode,e6.current=u;var W=D&&typeof h.getDerivedStateFromError!="function"?null:v.render();return u.flags|=1,s!==null&&D?(u.child=Yc(u,s.child,null,I),u.child=Yc(u,null,W,I)):yi(s,u,W,I),u.memoizedState=v.state,P&&hO(u,h,!0),u.child}function uR(s){var u=s.stateNode;u.pendingContext?dO(s,u.pendingContext,u.pendingContext!==u.context):u.context&&dO(s,u.context,!1),lS(s,u.containerInfo)}function cR(s,u,h,v,P){return Qc(),tS(P),u.flags|=256,yi(s,u,h,v),u.child}var ES={dehydrated:null,treeContext:null,retryLane:0};function TS(s){return{baseLanes:s,cachePool:null,transitions:null}}function dR(s,u,h){var v=u.pendingProps,P=Zr.current,I=!1,D=(u.flags&128)!==0,W;if((W=D)||(W=s!==null&&s.memoizedState===null?!1:(P&2)!==0),W?(I=!0,u.flags&=-129):(s===null||s.memoizedState!==null)&&(P|=1),$r(Zr,P&1),s===null)return eS(u),s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((u.mode&1)===0?u.lanes=1:s.data==="$!"?u.lanes=8:u.lanes=1073741824,null):(D=v.children,s=v.fallback,I?(v=u.mode,I=u.child,D={mode:"hidden",children:D},(v&1)===0&&I!==null?(I.childLanes=0,I.pendingProps=D):I=Xv(D,v,0,null),s=Cu(s,v,h,null),I.return=u,s.return=u,I.sibling=s,u.child=I,u.child.memoizedState=TS(h),u.memoizedState=ES,s):OS(u,D));if(P=s.memoizedState,P!==null&&(W=P.dehydrated,W!==null))return t6(s,u,D,v,W,P,h);if(I){I=v.fallback,D=u.mode,P=s.child,W=P.sibling;var J={mode:"hidden",children:v.children};return(D&1)===0&&u.child!==P?(v=u.child,v.childLanes=0,v.pendingProps=J,u.deletions=null):(v=pl(P,J),v.subtreeFlags=P.subtreeFlags&14680064),W!==null?I=pl(W,I):(I=Cu(I,D,h,null),I.flags|=2),I.return=u,v.return=u,v.sibling=I,u.child=v,v=I,I=u.child,D=s.child.memoizedState,D=D===null?TS(h):{baseLanes:D.baseLanes|h,cachePool:null,transitions:D.transitions},I.memoizedState=D,I.childLanes=s.childLanes&~h,u.memoizedState=ES,v}return I=s.child,s=I.sibling,v=pl(I,{mode:"visible",children:v.children}),(u.mode&1)===0&&(v.lanes=h),v.return=u,v.sibling=null,s!==null&&(h=u.deletions,h===null?(u.deletions=[s],u.flags|=16):h.push(s)),u.child=v,u.memoizedState=null,v}function OS(s,u){return u=Xv({mode:"visible",children:u},s.mode,0,null),u.return=s,s.child=u}function Fv(s,u,h,v){return v!==null&&tS(v),Yc(u,s.child,null,h),s=OS(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function t6(s,u,h,v,P,I,D){if(h)return u.flags&256?(u.flags&=-257,v=_S(Error(r(422))),Fv(s,u,D,v)):u.memoizedState!==null?(u.child=s.child,u.flags|=128,null):(I=v.fallback,P=u.mode,v=Xv({mode:"visible",children:v.children},P,0,null),I=Cu(I,P,D,null),I.flags|=2,v.return=u,I.return=u,v.sibling=I,u.child=v,(u.mode&1)!==0&&Yc(u,s.child,null,D),u.child.memoizedState=TS(D),u.memoizedState=ES,I);if((u.mode&1)===0)return Fv(s,u,D,null);if(P.data==="$!"){if(v=P.nextSibling&&P.nextSibling.dataset,v)var W=v.dgst;return v=W,I=Error(r(419)),v=_S(I,v,void 0),Fv(s,u,D,v)}if(W=(D&s.childLanes)!==0,ki||W){if(v=Dn,v!==null){switch(D&-D){case 4:P=2;break;case 16:P=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:P=32;break;case 536870912:P=268435456;break;default:P=0}P=(P&(v.suspendedLanes|D))!==0?0:P,P!==0&&P!==I.retryLane&&(I.retryLane=P,hs(s,P),ta(v,s,P,-1))}return US(),v=_S(Error(r(421))),Fv(s,u,D,v)}return P.data==="$?"?(u.flags|=128,u.child=s.child,u=p6.bind(null,s),P._reactRetry=u,null):(s=I.treeContext,eo=nl(P.nextSibling),Zi=u,Gr=!0,Xo=null,s!==null&&(_o[xo++]=ds,_o[xo++]=fs,_o[xo++]=vu,ds=s.id,fs=s.overflow,vu=u),u=OS(u,v.children),u.flags|=4096,u)}function fR(s,u,h){s.lanes|=u;var v=s.alternate;v!==null&&(v.lanes|=u),oS(s.return,u,h)}function RS(s,u,h,v,P){var I=s.memoizedState;I===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:P}:(I.isBackwards=u,I.rendering=null,I.renderingStartTime=0,I.last=v,I.tail=h,I.tailMode=P)}function hR(s,u,h){var v=u.pendingProps,P=v.revealOrder,I=v.tail;if(yi(s,u,v.children,h),v=Zr.current,(v&2)!==0)v=v&1|2,u.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&fR(s,h,u);else if(s.tag===19)fR(s,h,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}v&=1}if($r(Zr,v),(u.mode&1)===0)u.memoizedState=null;else switch(P){case"forwards":for(h=u.child,P=null;h!==null;)s=h.alternate,s!==null&&kv(s)===null&&(P=h),h=h.sibling;h=P,h===null?(P=u.child,u.child=null):(P=h.sibling,h.sibling=null),RS(u,!1,P,h,I);break;case"backwards":for(h=null,P=u.child,u.child=null;P!==null;){if(s=P.alternate,s!==null&&kv(s)===null){u.child=P;break}s=P.sibling,P.sibling=h,h=P,P=s}RS(u,!0,h,null,I);break;case"together":RS(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Lv(s,u){(u.mode&1)===0&&s!==null&&(s.alternate=null,u.alternate=null,u.flags|=2)}function ms(s,u,h){if(s!==null&&(u.dependencies=s.dependencies),Su|=u.lanes,(h&u.childLanes)===0)return null;if(s!==null&&u.child!==s.child)throw Error(r(153));if(u.child!==null){for(s=u.child,h=pl(s,s.pendingProps),u.child=h,h.return=u;s.sibling!==null;)s=s.sibling,h=h.sibling=pl(s,s.pendingProps),h.return=u;h.sibling=null}return u.child}function r6(s,u,h){switch(u.tag){case 3:uR(u),Qc();break;case 5:TO(u);break;case 1:Ii(u.type)&&Sv(u);break;case 4:lS(u,u.stateNode.containerInfo);break;case 10:var v=u.type._context,P=u.memoizedProps.value;$r(Tv,v._currentValue),v._currentValue=P;break;case 13:if(v=u.memoizedState,v!==null)return v.dehydrated!==null?($r(Zr,Zr.current&1),u.flags|=128,null):(h&u.child.childLanes)!==0?dR(s,u,h):($r(Zr,Zr.current&1),s=ms(s,u,h),s!==null?s.sibling:null);$r(Zr,Zr.current&1);break;case 19:if(v=(h&u.childLanes)!==0,(s.flags&128)!==0){if(v)return hR(s,u,h);u.flags|=128}if(P=u.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),$r(Zr,Zr.current),v)break;return null;case 22:case 23:return u.lanes=0,aR(s,u,h)}return ms(s,u,h)}var pR,IS,mR,vR;pR=function(s,u){for(var h=u.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},IS=function(){},mR=function(s,u,h,v){var P=s.memoizedProps;if(P!==v){s=u.stateNode,bu(Ra.current);var I=null;switch(h){case"input":P=Te(s,P),v=Te(s,v),I=[];break;case"select":P=Z({},P,{value:void 0}),v=Z({},v,{value:void 0}),I=[];break;case"textarea":P=Lt(s,P),v=Lt(s,v),I=[];break;default:typeof P.onClick!="function"&&typeof v.onClick=="function"&&(s.onclick=yv)}Oi(h,v);var D;h=null;for(Se in P)if(!v.hasOwnProperty(Se)&&P.hasOwnProperty(Se)&&P[Se]!=null)if(Se==="style"){var W=P[Se];for(D in W)W.hasOwnProperty(D)&&(h||(h={}),h[D]="")}else Se!=="dangerouslySetInnerHTML"&&Se!=="children"&&Se!=="suppressContentEditableWarning"&&Se!=="suppressHydrationWarning"&&Se!=="autoFocus"&&(i.hasOwnProperty(Se)?I||(I=[]):(I=I||[]).push(Se,null));for(Se in v){var J=v[Se];if(W=P!=null?P[Se]:void 0,v.hasOwnProperty(Se)&&J!==W&&(J!=null||W!=null))if(Se==="style")if(W){for(D in W)!W.hasOwnProperty(D)||J&&J.hasOwnProperty(D)||(h||(h={}),h[D]="");for(D in J)J.hasOwnProperty(D)&&W[D]!==J[D]&&(h||(h={}),h[D]=J[D])}else h||(I||(I=[]),I.push(Se,h)),h=J;else Se==="dangerouslySetInnerHTML"?(J=J?J.__html:void 0,W=W?W.__html:void 0,J!=null&&W!==J&&(I=I||[]).push(Se,J)):Se==="children"?typeof J!="string"&&typeof J!="number"||(I=I||[]).push(Se,""+J):Se!=="suppressContentEditableWarning"&&Se!=="suppressHydrationWarning"&&(i.hasOwnProperty(Se)?(J!=null&&Se==="onScroll"&&Lr("scroll",s),I||W===J||(I=[])):(I=I||[]).push(Se,J))}h&&(I=I||[]).push("style",h);var Se=I;(u.updateQueue=Se)&&(u.flags|=4)}},vR=function(s,u,h,v){h!==v&&(u.flags|=4)};function mh(s,u){if(!Gr)switch(s.tailMode){case"hidden":u=s.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s.tail=null:h.sibling=null;break;case"collapsed":h=s.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:v.sibling=null}}function li(s){var u=s.alternate!==null&&s.alternate.child===s.child,h=0,v=0;if(u)for(var P=s.child;P!==null;)h|=P.lanes|P.childLanes,v|=P.subtreeFlags&14680064,v|=P.flags&14680064,P.return=s,P=P.sibling;else for(P=s.child;P!==null;)h|=P.lanes|P.childLanes,v|=P.subtreeFlags,v|=P.flags,P.return=s,P=P.sibling;return s.subtreeFlags|=v,s.childLanes=h,u}function n6(s,u,h){var v=u.pendingProps;switch(Jw(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return li(u),null;case 1:return Ii(u.type)&&wv(),li(u),null;case 3:return v=u.stateNode,Zc(),Br(Ri),Br(ai),dS(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(s===null||s.child===null)&&(Cv(u)?u.flags|=4:s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Xo!==null&&(VS(Xo),Xo=null))),IS(s,u),li(u),null;case 5:uS(u);var P=bu(ch.current);if(h=u.type,s!==null&&u.stateNode!=null)mR(s,u,h,v,P),s.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!v){if(u.stateNode===null)throw Error(r(166));return li(u),null}if(s=bu(Ra.current),Cv(u)){v=u.stateNode,h=u.type;var I=u.memoizedProps;switch(v[Oa]=u,v[oh]=I,s=(u.mode&1)!==0,h){case"dialog":Lr("cancel",v),Lr("close",v);break;case"iframe":case"object":case"embed":Lr("load",v);break;case"video":case"audio":for(P=0;P<rh.length;P++)Lr(rh[P],v);break;case"source":Lr("error",v);break;case"img":case"image":case"link":Lr("error",v),Lr("load",v);break;case"details":Lr("toggle",v);break;case"input":he(v,I),Lr("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!I.multiple},Lr("invalid",v);break;case"textarea":ht(v,I),Lr("invalid",v)}Oi(h,I),P=null;for(var D in I)if(I.hasOwnProperty(D)){var W=I[D];D==="children"?typeof W=="string"?v.textContent!==W&&(I.suppressHydrationWarning!==!0&&gv(v.textContent,W,s),P=["children",W]):typeof W=="number"&&v.textContent!==""+W&&(I.suppressHydrationWarning!==!0&&gv(v.textContent,W,s),P=["children",""+W]):i.hasOwnProperty(D)&&W!=null&&D==="onScroll"&&Lr("scroll",v)}switch(h){case"input":Y(v),$t(v,I,!0);break;case"textarea":Y(v),mn(v);break;case"select":case"option":break;default:typeof I.onClick=="function"&&(v.onclick=yv)}v=P,u.updateQueue=v,v!==null&&(u.flags|=4)}else{D=P.nodeType===9?P:P.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=Ir(h)),s==="http://www.w3.org/1999/xhtml"?h==="script"?(s=D.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof v.is=="string"?s=D.createElement(h,{is:v.is}):(s=D.createElement(h),h==="select"&&(D=s,v.multiple?D.multiple=!0:v.size&&(D.size=v.size))):s=D.createElementNS(s,h),s[Oa]=u,s[oh]=v,pR(s,u,!1,!1),u.stateNode=s;e:{switch(D=gn(h,v),h){case"dialog":Lr("cancel",s),Lr("close",s),P=v;break;case"iframe":case"object":case"embed":Lr("load",s),P=v;break;case"video":case"audio":for(P=0;P<rh.length;P++)Lr(rh[P],s);P=v;break;case"source":Lr("error",s),P=v;break;case"img":case"image":case"link":Lr("error",s),Lr("load",s),P=v;break;case"details":Lr("toggle",s),P=v;break;case"input":he(s,v),P=Te(s,v),Lr("invalid",s);break;case"option":P=v;break;case"select":s._wrapperState={wasMultiple:!!v.multiple},P=Z({},v,{value:void 0}),Lr("invalid",s);break;case"textarea":ht(s,v),P=Lt(s,v),Lr("invalid",s);break;default:P=v}Oi(h,P),W=P;for(I in W)if(W.hasOwnProperty(I)){var J=W[I];I==="style"?xa(s,J):I==="dangerouslySetInnerHTML"?(J=J?J.__html:void 0,J!=null&&Nr(s,J)):I==="children"?typeof J=="string"?(h!=="textarea"||J!=="")&&an(s,J):typeof J=="number"&&an(s,""+J):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(i.hasOwnProperty(I)?J!=null&&I==="onScroll"&&Lr("scroll",s):J!=null&&C(s,I,J,D))}switch(h){case"input":Y(s),$t(s,v,!1);break;case"textarea":Y(s),mn(s);break;case"option":v.value!=null&&s.setAttribute("value",""+pe(v.value));break;case"select":s.multiple=!!v.multiple,I=v.value,I!=null?jt(s,!!v.multiple,I,!1):v.defaultValue!=null&&jt(s,!!v.multiple,v.defaultValue,!0);break;default:typeof P.onClick=="function"&&(s.onclick=yv)}switch(h){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return li(u),null;case 6:if(s&&u.stateNode!=null)vR(s,u,s.memoizedProps,v);else{if(typeof v!="string"&&u.stateNode===null)throw Error(r(166));if(h=bu(ch.current),bu(Ra.current),Cv(u)){if(v=u.stateNode,h=u.memoizedProps,v[Oa]=u,(I=v.nodeValue!==h)&&(s=Zi,s!==null))switch(s.tag){case 3:gv(v.nodeValue,h,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&gv(v.nodeValue,h,(s.mode&1)!==0)}I&&(u.flags|=4)}else v=(h.nodeType===9?h:h.ownerDocument).createTextNode(v),v[Oa]=u,u.stateNode=v}return li(u),null;case 13:if(Br(Zr),v=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Gr&&eo!==null&&(u.mode&1)!==0&&(u.flags&128)===0)bO(),Qc(),u.flags|=98560,I=!1;else if(I=Cv(u),v!==null&&v.dehydrated!==null){if(s===null){if(!I)throw Error(r(318));if(I=u.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(r(317));I[Oa]=u}else Qc(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;li(u),I=!1}else Xo!==null&&(VS(Xo),Xo=null),I=!0;if(!I)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=h,u):(v=v!==null,v!==(s!==null&&s.memoizedState!==null)&&v&&(u.child.flags|=8192,(u.mode&1)!==0&&(s===null||(Zr.current&1)!==0?On===0&&(On=3):US())),u.updateQueue!==null&&(u.flags|=4),li(u),null);case 4:return Zc(),IS(s,u),s===null&&nh(u.stateNode.containerInfo),li(u),null;case 10:return iS(u.type._context),li(u),null;case 17:return Ii(u.type)&&wv(),li(u),null;case 19:if(Br(Zr),I=u.memoizedState,I===null)return li(u),null;if(v=(u.flags&128)!==0,D=I.rendering,D===null)if(v)mh(I,!1);else{if(On!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(D=kv(s),D!==null){for(u.flags|=128,mh(I,!1),v=D.updateQueue,v!==null&&(u.updateQueue=v,u.flags|=4),u.subtreeFlags=0,v=h,h=u.child;h!==null;)I=h,s=v,I.flags&=14680066,D=I.alternate,D===null?(I.childLanes=0,I.lanes=s,I.child=null,I.subtreeFlags=0,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=D.childLanes,I.lanes=D.lanes,I.child=D.child,I.subtreeFlags=0,I.deletions=null,I.memoizedProps=D.memoizedProps,I.memoizedState=D.memoizedState,I.updateQueue=D.updateQueue,I.type=D.type,s=D.dependencies,I.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),h=h.sibling;return $r(Zr,Zr.current&1|2),u.child}s=s.sibling}I.tail!==null&&Et()>nd&&(u.flags|=128,v=!0,mh(I,!1),u.lanes=4194304)}else{if(!v)if(s=kv(D),s!==null){if(u.flags|=128,v=!0,h=s.updateQueue,h!==null&&(u.updateQueue=h,u.flags|=4),mh(I,!0),I.tail===null&&I.tailMode==="hidden"&&!D.alternate&&!Gr)return li(u),null}else 2*Et()-I.renderingStartTime>nd&&h!==1073741824&&(u.flags|=128,v=!0,mh(I,!1),u.lanes=4194304);I.isBackwards?(D.sibling=u.child,u.child=D):(h=I.last,h!==null?h.sibling=D:u.child=D,I.last=D)}return I.tail!==null?(u=I.tail,I.rendering=u,I.tail=u.sibling,I.renderingStartTime=Et(),u.sibling=null,h=Zr.current,$r(Zr,v?h&1|2:h&1),u):(li(u),null);case 22:case 23:return qS(),v=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==v&&(u.flags|=8192),v&&(u.mode&1)!==0?(to&1073741824)!==0&&(li(u),u.subtreeFlags&6&&(u.flags|=8192)):li(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function i6(s,u){switch(Jw(u),u.tag){case 1:return Ii(u.type)&&wv(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return Zc(),Br(Ri),Br(ai),dS(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 5:return uS(u),null;case 13:if(Br(Zr),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Qc()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return Br(Zr),null;case 4:return Zc(),null;case 10:return iS(u.type._context),null;case 22:case 23:return qS(),null;case 24:return null;default:return null}}var Bv=!1,ui=!1,o6=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function td(s,u){var h=s.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(v){un(s,u,v)}else h.current=null}function kS(s,u,h){try{h()}catch(v){un(s,u,v)}}var gR=!1;function a6(s,u){if(qw=z,s=QT(),Dw(s)){if("selectionStart"in s)var h={start:s.selectionStart,end:s.selectionEnd};else e:{h=(h=s.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var P=v.anchorOffset,I=v.focusNode;v=v.focusOffset;try{h.nodeType,I.nodeType}catch{h=null;break e}var D=0,W=-1,J=-1,Se=0,ke=0,Ae=s,Ie=null;t:for(;;){for(var He;Ae!==h||P!==0&&Ae.nodeType!==3||(W=D+P),Ae!==I||v!==0&&Ae.nodeType!==3||(J=D+v),Ae.nodeType===3&&(D+=Ae.nodeValue.length),(He=Ae.firstChild)!==null;)Ie=Ae,Ae=He;for(;;){if(Ae===s)break t;if(Ie===h&&++Se===P&&(W=D),Ie===I&&++ke===v&&(J=D),(He=Ae.nextSibling)!==null)break;Ae=Ie,Ie=Ae.parentNode}Ae=He}h=W===-1||J===-1?null:{start:W,end:J}}else h=null}h=h||{start:0,end:0}}else h=null;for(Uw={focusedElem:s,selectionRange:h},z=!1,Ke=u;Ke!==null;)if(u=Ke,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,Ke=s;else for(;Ke!==null;){u=Ke;try{var Xe=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Xe!==null){var et=Xe.memoizedProps,yn=Xe.memoizedState,fe=u.stateNode,re=fe.getSnapshotBeforeUpdate(u.elementType===u.type?et:Jo(u.type,et),yn);fe.__reactInternalSnapshotBeforeUpdate=re}break;case 3:var me=u.stateNode.containerInfo;me.nodeType===1?me.textContent="":me.nodeType===9&&me.documentElement&&me.removeChild(me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Fe){un(u,u.return,Fe)}if(s=u.sibling,s!==null){s.return=u.return,Ke=s;break}Ke=u.return}return Xe=gR,gR=!1,Xe}function vh(s,u,h){var v=u.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var P=v=v.next;do{if((P.tag&s)===s){var I=P.destroy;P.destroy=void 0,I!==void 0&&kS(u,h,I)}P=P.next}while(P!==v)}}function Vv(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var h=u=u.next;do{if((h.tag&s)===s){var v=h.create;h.destroy=v()}h=h.next}while(h!==u)}}function jS(s){var u=s.ref;if(u!==null){var h=s.stateNode;switch(s.tag){case 5:s=h;break;default:s=h}typeof u=="function"?u(s):u.current=s}}function yR(s){var u=s.alternate;u!==null&&(s.alternate=null,yR(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[Oa],delete u[oh],delete u[Gw],delete u[zz],delete u[qz])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function bR(s){return s.tag===5||s.tag===3||s.tag===4}function wR(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||bR(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function $S(s,u,h){var v=s.tag;if(v===5||v===6)s=s.stateNode,u?h.nodeType===8?h.parentNode.insertBefore(s,u):h.insertBefore(s,u):(h.nodeType===8?(u=h.parentNode,u.insertBefore(s,h)):(u=h,u.appendChild(s)),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=yv));else if(v!==4&&(s=s.child,s!==null))for($S(s,u,h),s=s.sibling;s!==null;)$S(s,u,h),s=s.sibling}function AS(s,u,h){var v=s.tag;if(v===5||v===6)s=s.stateNode,u?h.insertBefore(s,u):h.appendChild(s);else if(v!==4&&(s=s.child,s!==null))for(AS(s,u,h),s=s.sibling;s!==null;)AS(s,u,h),s=s.sibling}var Un=null,Zo=!1;function ul(s,u,h){for(h=h.child;h!==null;)SR(s,u,h),h=h.sibling}function SR(s,u,h){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(gi,h)}catch{}switch(h.tag){case 5:ui||td(h,u);case 6:var v=Un,P=Zo;Un=null,ul(s,u,h),Un=v,Zo=P,Un!==null&&(Zo?(s=Un,h=h.stateNode,s.nodeType===8?s.parentNode.removeChild(h):s.removeChild(h)):Un.removeChild(h.stateNode));break;case 18:Un!==null&&(Zo?(s=Un,h=h.stateNode,s.nodeType===8?Kw(s.parentNode,h):s.nodeType===1&&Kw(s,h),Zs(s)):Kw(Un,h.stateNode));break;case 4:v=Un,P=Zo,Un=h.stateNode.containerInfo,Zo=!0,ul(s,u,h),Un=v,Zo=P;break;case 0:case 11:case 14:case 15:if(!ui&&(v=h.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){P=v=v.next;do{var I=P,D=I.destroy;I=I.tag,D!==void 0&&((I&2)!==0||(I&4)!==0)&&kS(h,u,D),P=P.next}while(P!==v)}ul(s,u,h);break;case 1:if(!ui&&(td(h,u),v=h.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=h.memoizedProps,v.state=h.memoizedState,v.componentWillUnmount()}catch(W){un(h,u,W)}ul(s,u,h);break;case 21:ul(s,u,h);break;case 22:h.mode&1?(ui=(v=ui)||h.memoizedState!==null,ul(s,u,h),ui=v):ul(s,u,h);break;default:ul(s,u,h)}}function _R(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var h=s.stateNode;h===null&&(h=s.stateNode=new o6),u.forEach(function(v){var P=m6.bind(null,s,v);h.has(v)||(h.add(v),v.then(P,P))})}}function ea(s,u){var h=u.deletions;if(h!==null)for(var v=0;v<h.length;v++){var P=h[v];try{var I=s,D=u,W=D;e:for(;W!==null;){switch(W.tag){case 5:Un=W.stateNode,Zo=!1;break e;case 3:Un=W.stateNode.containerInfo,Zo=!0;break e;case 4:Un=W.stateNode.containerInfo,Zo=!0;break e}W=W.return}if(Un===null)throw Error(r(160));SR(I,D,P),Un=null,Zo=!1;var J=P.alternate;J!==null&&(J.return=null),P.return=null}catch(Se){un(P,u,Se)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)xR(u,s),u=u.sibling}function xR(s,u){var h=s.alternate,v=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(ea(u,s),ka(s),v&4){try{vh(3,s,s.return),Vv(3,s)}catch(et){un(s,s.return,et)}try{vh(5,s,s.return)}catch(et){un(s,s.return,et)}}break;case 1:ea(u,s),ka(s),v&512&&h!==null&&td(h,h.return);break;case 5:if(ea(u,s),ka(s),v&512&&h!==null&&td(h,h.return),s.flags&32){var P=s.stateNode;try{an(P,"")}catch(et){un(s,s.return,et)}}if(v&4&&(P=s.stateNode,P!=null)){var I=s.memoizedProps,D=h!==null?h.memoizedProps:I,W=s.type,J=s.updateQueue;if(s.updateQueue=null,J!==null)try{W==="input"&&I.type==="radio"&&I.name!=null&&Ce(P,I),gn(W,D);var Se=gn(W,I);for(D=0;D<J.length;D+=2){var ke=J[D],Ae=J[D+1];ke==="style"?xa(P,Ae):ke==="dangerouslySetInnerHTML"?Nr(P,Ae):ke==="children"?an(P,Ae):C(P,ke,Ae,Se)}switch(W){case"input":Ge(P,I);break;case"textarea":on(P,I);break;case"select":var Ie=P._wrapperState.wasMultiple;P._wrapperState.wasMultiple=!!I.multiple;var He=I.value;He!=null?jt(P,!!I.multiple,He,!1):Ie!==!!I.multiple&&(I.defaultValue!=null?jt(P,!!I.multiple,I.defaultValue,!0):jt(P,!!I.multiple,I.multiple?[]:"",!1))}P[oh]=I}catch(et){un(s,s.return,et)}}break;case 6:if(ea(u,s),ka(s),v&4){if(s.stateNode===null)throw Error(r(162));P=s.stateNode,I=s.memoizedProps;try{P.nodeValue=I}catch(et){un(s,s.return,et)}}break;case 3:if(ea(u,s),ka(s),v&4&&h!==null&&h.memoizedState.isDehydrated)try{Zs(u.containerInfo)}catch(et){un(s,s.return,et)}break;case 4:ea(u,s),ka(s);break;case 13:ea(u,s),ka(s),P=s.child,P.flags&8192&&(I=P.memoizedState!==null,P.stateNode.isHidden=I,!I||P.alternate!==null&&P.alternate.memoizedState!==null||(NS=Et())),v&4&&_R(s);break;case 22:if(ke=h!==null&&h.memoizedState!==null,s.mode&1?(ui=(Se=ui)||ke,ea(u,s),ui=Se):ea(u,s),ka(s),v&8192){if(Se=s.memoizedState!==null,(s.stateNode.isHidden=Se)&&!ke&&(s.mode&1)!==0)for(Ke=s,ke=s.child;ke!==null;){for(Ae=Ke=ke;Ke!==null;){switch(Ie=Ke,He=Ie.child,Ie.tag){case 0:case 11:case 14:case 15:vh(4,Ie,Ie.return);break;case 1:td(Ie,Ie.return);var Xe=Ie.stateNode;if(typeof Xe.componentWillUnmount=="function"){v=Ie,h=Ie.return;try{u=v,Xe.props=u.memoizedProps,Xe.state=u.memoizedState,Xe.componentWillUnmount()}catch(et){un(v,h,et)}}break;case 5:td(Ie,Ie.return);break;case 22:if(Ie.memoizedState!==null){ER(Ae);continue}}He!==null?(He.return=Ie,Ke=He):ER(Ae)}ke=ke.sibling}e:for(ke=null,Ae=s;;){if(Ae.tag===5){if(ke===null){ke=Ae;try{P=Ae.stateNode,Se?(I=P.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none"):(W=Ae.stateNode,J=Ae.memoizedProps.style,D=J!=null&&J.hasOwnProperty("display")?J.display:null,W.style.display=Yi("display",D))}catch(et){un(s,s.return,et)}}}else if(Ae.tag===6){if(ke===null)try{Ae.stateNode.nodeValue=Se?"":Ae.memoizedProps}catch(et){un(s,s.return,et)}}else if((Ae.tag!==22&&Ae.tag!==23||Ae.memoizedState===null||Ae===s)&&Ae.child!==null){Ae.child.return=Ae,Ae=Ae.child;continue}if(Ae===s)break e;for(;Ae.sibling===null;){if(Ae.return===null||Ae.return===s)break e;ke===Ae&&(ke=null),Ae=Ae.return}ke===Ae&&(ke=null),Ae.sibling.return=Ae.return,Ae=Ae.sibling}}break;case 19:ea(u,s),ka(s),v&4&&_R(s);break;case 21:break;default:ea(u,s),ka(s)}}function ka(s){var u=s.flags;if(u&2){try{e:{for(var h=s.return;h!==null;){if(bR(h)){var v=h;break e}h=h.return}throw Error(r(160))}switch(v.tag){case 5:var P=v.stateNode;v.flags&32&&(an(P,""),v.flags&=-33);var I=wR(s);AS(s,I,P);break;case 3:case 4:var D=v.stateNode.containerInfo,W=wR(s);$S(s,W,D);break;default:throw Error(r(161))}}catch(J){un(s,s.return,J)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function s6(s,u,h){Ke=s,PR(s)}function PR(s,u,h){for(var v=(s.mode&1)!==0;Ke!==null;){var P=Ke,I=P.child;if(P.tag===22&&v){var D=P.memoizedState!==null||Bv;if(!D){var W=P.alternate,J=W!==null&&W.memoizedState!==null||ui;W=Bv;var Se=ui;if(Bv=D,(ui=J)&&!Se)for(Ke=P;Ke!==null;)D=Ke,J=D.child,D.tag===22&&D.memoizedState!==null?TR(P):J!==null?(J.return=D,Ke=J):TR(P);for(;I!==null;)Ke=I,PR(I),I=I.sibling;Ke=P,Bv=W,ui=Se}CR(s)}else(P.subtreeFlags&8772)!==0&&I!==null?(I.return=P,Ke=I):CR(s)}}function CR(s){for(;Ke!==null;){var u=Ke;if((u.flags&8772)!==0){var h=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:ui||Vv(5,u);break;case 1:var v=u.stateNode;if(u.flags&4&&!ui)if(h===null)v.componentDidMount();else{var P=u.elementType===u.type?h.memoizedProps:Jo(u.type,h.memoizedProps);v.componentDidUpdate(P,h.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var I=u.updateQueue;I!==null&&EO(u,I,v);break;case 3:var D=u.updateQueue;if(D!==null){if(h=null,u.child!==null)switch(u.child.tag){case 5:h=u.child.stateNode;break;case 1:h=u.child.stateNode}EO(u,D,h)}break;case 5:var W=u.stateNode;if(h===null&&u.flags&4){h=W;var J=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":J.autoFocus&&h.focus();break;case"img":J.src&&(h.src=J.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var Se=u.alternate;if(Se!==null){var ke=Se.memoizedState;if(ke!==null){var Ae=ke.dehydrated;Ae!==null&&Zs(Ae)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}ui||u.flags&512&&jS(u)}catch(Ie){un(u,u.return,Ie)}}if(u===s){Ke=null;break}if(h=u.sibling,h!==null){h.return=u.return,Ke=h;break}Ke=u.return}}function ER(s){for(;Ke!==null;){var u=Ke;if(u===s){Ke=null;break}var h=u.sibling;if(h!==null){h.return=u.return,Ke=h;break}Ke=u.return}}function TR(s){for(;Ke!==null;){var u=Ke;try{switch(u.tag){case 0:case 11:case 15:var h=u.return;try{Vv(4,u)}catch(J){un(u,h,J)}break;case 1:var v=u.stateNode;if(typeof v.componentDidMount=="function"){var P=u.return;try{v.componentDidMount()}catch(J){un(u,P,J)}}var I=u.return;try{jS(u)}catch(J){un(u,I,J)}break;case 5:var D=u.return;try{jS(u)}catch(J){un(u,D,J)}}}catch(J){un(u,u.return,J)}if(u===s){Ke=null;break}var W=u.sibling;if(W!==null){W.return=u.return,Ke=W;break}Ke=u.return}}var l6=Math.ceil,zv=k.ReactCurrentDispatcher,DS=k.ReactCurrentOwner,Eo=k.ReactCurrentBatchConfig,ir=0,Dn=null,Sn=null,Hn=0,to=0,rd=il(0),On=0,gh=null,Su=0,qv=0,MS=0,yh=null,ji=null,NS=0,nd=1/0,vs=null,Uv=!1,FS=null,cl=null,Hv=!1,dl=null,Wv=0,bh=0,LS=null,Kv=-1,Gv=0;function bi(){return(ir&6)!==0?Et():Kv!==-1?Kv:Kv=Et()}function fl(s){return(s.mode&1)===0?1:(ir&2)!==0&&Hn!==0?Hn&-Hn:Hz.transition!==null?(Gv===0&&(Gv=ov()),Gv):(s=sr,s!==0||(s=window.event,s=s===void 0?16:kr(s.type)),s)}function ta(s,u,h,v){if(50<bh)throw bh=0,LS=null,Error(r(185));du(s,h,v),((ir&2)===0||s!==Dn)&&(s===Dn&&((ir&2)===0&&(qv|=h),On===4&&hl(s,Hn)),$i(s,v),h===1&&ir===0&&(u.mode&1)===0&&(nd=Et()+500,_v&&al()))}function $i(s,u){var h=s.callbackNode;zf(s,u);var v=go(s,s===Dn?Hn:0);if(v===0)h!==null&&Gt(h),s.callbackNode=null,s.callbackPriority=0;else if(u=v&-v,s.callbackPriority!==u){if(h!=null&&Gt(h),u===1)s.tag===0?Uz(RR.bind(null,s)):pO(RR.bind(null,s)),Bz(function(){(ir&6)===0&&al()}),h=null;else{switch(av(v)){case 1:h=Fr;break;case 4:h=mi;break;case 16:h=ei;break;case 536870912:h=vi;break;default:h=ei}h=NR(h,OR.bind(null,s))}s.callbackPriority=u,s.callbackNode=h}}function OR(s,u){if(Kv=-1,Gv=0,(ir&6)!==0)throw Error(r(327));var h=s.callbackNode;if(id()&&s.callbackNode!==h)return null;var v=go(s,s===Dn?Hn:0);if(v===0)return null;if((v&30)!==0||(v&s.expiredLanes)!==0||u)u=Qv(s,v);else{u=v;var P=ir;ir|=2;var I=kR();(Dn!==s||Hn!==u)&&(vs=null,nd=Et()+500,xu(s,u));do try{d6();break}catch(W){IR(s,W)}while(!0);nS(),zv.current=I,ir=P,Sn!==null?u=0:(Dn=null,Hn=0,u=On)}if(u!==0){if(u===2&&(P=qf(s),P!==0&&(v=P,u=BS(s,P))),u===1)throw h=gh,xu(s,0),hl(s,v),$i(s,Et()),h;if(u===6)hl(s,v);else{if(P=s.current.alternate,(v&30)===0&&!u6(P)&&(u=Qv(s,v),u===2&&(I=qf(s),I!==0&&(v=I,u=BS(s,I))),u===1))throw h=gh,xu(s,0),hl(s,v),$i(s,Et()),h;switch(s.finishedWork=P,s.finishedLanes=v,u){case 0:case 1:throw Error(r(345));case 2:Pu(s,ji,vs);break;case 3:if(hl(s,v),(v&130023424)===v&&(u=NS+500-Et(),10<u)){if(go(s,0)!==0)break;if(P=s.suspendedLanes,(P&v)!==v){bi(),s.pingedLanes|=s.suspendedLanes&P;break}s.timeoutHandle=Ww(Pu.bind(null,s,ji,vs),u);break}Pu(s,ji,vs);break;case 4:if(hl(s,v),(v&4194240)===v)break;for(u=s.eventTimes,P=-1;0<v;){var D=31-ri(v);I=1<<D,D=u[D],D>P&&(P=D),v&=~I}if(v=P,v=Et()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*l6(v/1960))-v,10<v){s.timeoutHandle=Ww(Pu.bind(null,s,ji,vs),v);break}Pu(s,ji,vs);break;case 5:Pu(s,ji,vs);break;default:throw Error(r(329))}}}return $i(s,Et()),s.callbackNode===h?OR.bind(null,s):null}function BS(s,u){var h=yh;return s.current.memoizedState.isDehydrated&&(xu(s,u).flags|=256),s=Qv(s,u),s!==2&&(u=ji,ji=h,u!==null&&VS(u)),s}function VS(s){ji===null?ji=s:ji.push.apply(ji,s)}function u6(s){for(var u=s;;){if(u.flags&16384){var h=u.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var v=0;v<h.length;v++){var P=h[v],I=P.getSnapshot;P=P.value;try{if(!Yo(I(),P))return!1}catch{return!1}}}if(h=u.child,u.subtreeFlags&16384&&h!==null)h.return=u,u=h;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function hl(s,u){for(u&=~MS,u&=~qv,s.suspendedLanes|=u,s.pingedLanes&=~u,s=s.expirationTimes;0<u;){var h=31-ri(u),v=1<<h;s[h]=-1,u&=~v}}function RR(s){if((ir&6)!==0)throw Error(r(327));id();var u=go(s,0);if((u&1)===0)return $i(s,Et()),null;var h=Qv(s,u);if(s.tag!==0&&h===2){var v=qf(s);v!==0&&(u=v,h=BS(s,v))}if(h===1)throw h=gh,xu(s,0),hl(s,u),$i(s,Et()),h;if(h===6)throw Error(r(345));return s.finishedWork=s.current.alternate,s.finishedLanes=u,Pu(s,ji,vs),$i(s,Et()),null}function zS(s,u){var h=ir;ir|=1;try{return s(u)}finally{ir=h,ir===0&&(nd=Et()+500,_v&&al())}}function _u(s){dl!==null&&dl.tag===0&&(ir&6)===0&&id();var u=ir;ir|=1;var h=Eo.transition,v=sr;try{if(Eo.transition=null,sr=1,s)return s()}finally{sr=v,Eo.transition=h,ir=u,(ir&6)===0&&al()}}function qS(){to=rd.current,Br(rd)}function xu(s,u){s.finishedWork=null,s.finishedLanes=0;var h=s.timeoutHandle;if(h!==-1&&(s.timeoutHandle=-1,Lz(h)),Sn!==null)for(h=Sn.return;h!==null;){var v=h;switch(Jw(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&wv();break;case 3:Zc(),Br(Ri),Br(ai),dS();break;case 5:uS(v);break;case 4:Zc();break;case 13:Br(Zr);break;case 19:Br(Zr);break;case 10:iS(v.type._context);break;case 22:case 23:qS()}h=h.return}if(Dn=s,Sn=s=pl(s.current,null),Hn=to=u,On=0,gh=null,MS=qv=Su=0,ji=yh=null,yu!==null){for(u=0;u<yu.length;u++)if(h=yu[u],v=h.interleaved,v!==null){h.interleaved=null;var P=v.next,I=h.pending;if(I!==null){var D=I.next;I.next=P,v.next=D}h.pending=v}yu=null}return s}function IR(s,u){do{var h=Sn;try{if(nS(),jv.current=Mv,$v){for(var v=en.memoizedState;v!==null;){var P=v.queue;P!==null&&(P.pending=null),v=v.next}$v=!1}if(wu=0,An=Tn=en=null,dh=!1,fh=0,DS.current=null,h===null||h.return===null){On=1,gh=u,Sn=null;break}e:{var I=s,D=h.return,W=h,J=u;if(u=Hn,W.flags|=32768,J!==null&&typeof J=="object"&&typeof J.then=="function"){var Se=J,ke=W,Ae=ke.tag;if((ke.mode&1)===0&&(Ae===0||Ae===11||Ae===15)){var Ie=ke.alternate;Ie?(ke.updateQueue=Ie.updateQueue,ke.memoizedState=Ie.memoizedState,ke.lanes=Ie.lanes):(ke.updateQueue=null,ke.memoizedState=null)}var He=tR(D);if(He!==null){He.flags&=-257,rR(He,D,W,I,u),He.mode&1&&eR(I,Se,u),u=He,J=Se;var Xe=u.updateQueue;if(Xe===null){var et=new Set;et.add(J),u.updateQueue=et}else Xe.add(J);break e}else{if((u&1)===0){eR(I,Se,u),US();break e}J=Error(r(426))}}else if(Gr&&W.mode&1){var yn=tR(D);if(yn!==null){(yn.flags&65536)===0&&(yn.flags|=256),rR(yn,D,W,I,u),tS(ed(J,W));break e}}I=J=ed(J,W),On!==4&&(On=2),yh===null?yh=[I]:yh.push(I),I=D;do{switch(I.tag){case 3:I.flags|=65536,u&=-u,I.lanes|=u;var fe=JO(I,J,u);CO(I,fe);break e;case 1:W=J;var re=I.type,me=I.stateNode;if((I.flags&128)===0&&(typeof re.getDerivedStateFromError=="function"||me!==null&&typeof me.componentDidCatch=="function"&&(cl===null||!cl.has(me)))){I.flags|=65536,u&=-u,I.lanes|=u;var Fe=ZO(I,W,u);CO(I,Fe);break e}}I=I.return}while(I!==null)}$R(h)}catch(nt){u=nt,Sn===h&&h!==null&&(Sn=h=h.return);continue}break}while(!0)}function kR(){var s=zv.current;return zv.current=Mv,s===null?Mv:s}function US(){(On===0||On===3||On===2)&&(On=4),Dn===null||(Su&268435455)===0&&(qv&268435455)===0||hl(Dn,Hn)}function Qv(s,u){var h=ir;ir|=2;var v=kR();(Dn!==s||Hn!==u)&&(vs=null,xu(s,u));do try{c6();break}catch(P){IR(s,P)}while(!0);if(nS(),ir=h,zv.current=v,Sn!==null)throw Error(r(261));return Dn=null,Hn=0,On}function c6(){for(;Sn!==null;)jR(Sn)}function d6(){for(;Sn!==null&&!it();)jR(Sn)}function jR(s){var u=MR(s.alternate,s,to);s.memoizedProps=s.pendingProps,u===null?$R(s):Sn=u,DS.current=null}function $R(s){var u=s;do{var h=u.alternate;if(s=u.return,(u.flags&32768)===0){if(h=n6(h,u,to),h!==null){Sn=h;return}}else{if(h=i6(h,u),h!==null){h.flags&=32767,Sn=h;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{On=6,Sn=null;return}}if(u=u.sibling,u!==null){Sn=u;return}Sn=u=s}while(u!==null);On===0&&(On=5)}function Pu(s,u,h){var v=sr,P=Eo.transition;try{Eo.transition=null,sr=1,f6(s,u,h,v)}finally{Eo.transition=P,sr=v}return null}function f6(s,u,h,v){do id();while(dl!==null);if((ir&6)!==0)throw Error(r(327));h=s.finishedWork;var P=s.finishedLanes;if(h===null)return null;if(s.finishedWork=null,s.finishedLanes=0,h===s.current)throw Error(r(177));s.callbackNode=null,s.callbackPriority=0;var I=h.lanes|h.childLanes;if(Pw(s,I),s===Dn&&(Sn=Dn=null,Hn=0),(h.subtreeFlags&2064)===0&&(h.flags&2064)===0||Hv||(Hv=!0,NR(ei,function(){return id(),null})),I=(h.flags&15990)!==0,(h.subtreeFlags&15990)!==0||I){I=Eo.transition,Eo.transition=null;var D=sr;sr=1;var W=ir;ir|=4,DS.current=null,a6(s,h),xR(h,s),jz(Uw),z=!!qw,Uw=qw=null,s.current=h,s6(h),Ct(),ir=W,sr=D,Eo.transition=I}else s.current=h;if(Hv&&(Hv=!1,dl=s,Wv=P),I=s.pendingLanes,I===0&&(cl=null),as(h.stateNode),$i(s,Et()),u!==null)for(v=s.onRecoverableError,h=0;h<u.length;h++)P=u[h],v(P.value,{componentStack:P.stack,digest:P.digest});if(Uv)throw Uv=!1,s=FS,FS=null,s;return(Wv&1)!==0&&s.tag!==0&&id(),I=s.pendingLanes,(I&1)!==0?s===LS?bh++:(bh=0,LS=s):bh=0,al(),null}function id(){if(dl!==null){var s=av(Wv),u=Eo.transition,h=sr;try{if(Eo.transition=null,sr=16>s?16:s,dl===null)var v=!1;else{if(s=dl,dl=null,Wv=0,(ir&6)!==0)throw Error(r(331));var P=ir;for(ir|=4,Ke=s.current;Ke!==null;){var I=Ke,D=I.child;if((Ke.flags&16)!==0){var W=I.deletions;if(W!==null){for(var J=0;J<W.length;J++){var Se=W[J];for(Ke=Se;Ke!==null;){var ke=Ke;switch(ke.tag){case 0:case 11:case 15:vh(8,ke,I)}var Ae=ke.child;if(Ae!==null)Ae.return=ke,Ke=Ae;else for(;Ke!==null;){ke=Ke;var Ie=ke.sibling,He=ke.return;if(yR(ke),ke===Se){Ke=null;break}if(Ie!==null){Ie.return=He,Ke=Ie;break}Ke=He}}}var Xe=I.alternate;if(Xe!==null){var et=Xe.child;if(et!==null){Xe.child=null;do{var yn=et.sibling;et.sibling=null,et=yn}while(et!==null)}}Ke=I}}if((I.subtreeFlags&2064)!==0&&D!==null)D.return=I,Ke=D;else e:for(;Ke!==null;){if(I=Ke,(I.flags&2048)!==0)switch(I.tag){case 0:case 11:case 15:vh(9,I,I.return)}var fe=I.sibling;if(fe!==null){fe.return=I.return,Ke=fe;break e}Ke=I.return}}var re=s.current;for(Ke=re;Ke!==null;){D=Ke;var me=D.child;if((D.subtreeFlags&2064)!==0&&me!==null)me.return=D,Ke=me;else e:for(D=re;Ke!==null;){if(W=Ke,(W.flags&2048)!==0)try{switch(W.tag){case 0:case 11:case 15:Vv(9,W)}}catch(nt){un(W,W.return,nt)}if(W===D){Ke=null;break e}var Fe=W.sibling;if(Fe!==null){Fe.return=W.return,Ke=Fe;break e}Ke=W.return}}if(ir=P,al(),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(gi,s)}catch{}v=!0}return v}finally{sr=h,Eo.transition=u}}return!1}function AR(s,u,h){u=ed(h,u),u=JO(s,u,1),s=ll(s,u,1),u=bi(),s!==null&&(du(s,1,u),$i(s,u))}function un(s,u,h){if(s.tag===3)AR(s,s,h);else for(;u!==null;){if(u.tag===3){AR(u,s,h);break}else if(u.tag===1){var v=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(cl===null||!cl.has(v))){s=ed(h,s),s=ZO(u,s,1),u=ll(u,s,1),s=bi(),u!==null&&(du(u,1,s),$i(u,s));break}}u=u.return}}function h6(s,u,h){var v=s.pingCache;v!==null&&v.delete(u),u=bi(),s.pingedLanes|=s.suspendedLanes&h,Dn===s&&(Hn&h)===h&&(On===4||On===3&&(Hn&130023424)===Hn&&500>Et()-NS?xu(s,0):MS|=h),$i(s,u)}function DR(s,u){u===0&&((s.mode&1)===0?u=1:(u=ss,ss<<=1,(ss&130023424)===0&&(ss=4194304)));var h=bi();s=hs(s,u),s!==null&&(du(s,u,h),$i(s,h))}function p6(s){var u=s.memoizedState,h=0;u!==null&&(h=u.retryLane),DR(s,h)}function m6(s,u){var h=0;switch(s.tag){case 13:var v=s.stateNode,P=s.memoizedState;P!==null&&(h=P.retryLane);break;case 19:v=s.stateNode;break;default:throw Error(r(314))}v!==null&&v.delete(u),DR(s,h)}var MR;MR=function(s,u,h){if(s!==null)if(s.memoizedProps!==u.pendingProps||Ri.current)ki=!0;else{if((s.lanes&h)===0&&(u.flags&128)===0)return ki=!1,r6(s,u,h);ki=(s.flags&131072)!==0}else ki=!1,Gr&&(u.flags&1048576)!==0&&mO(u,Pv,u.index);switch(u.lanes=0,u.tag){case 2:var v=u.type;Lv(s,u),s=u.pendingProps;var P=Wc(u,ai.current);Jc(u,h),P=pS(null,u,v,s,P,h);var I=mS();return u.flags|=1,typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Ii(v)?(I=!0,Sv(u)):I=!1,u.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,sS(u),P.updater=Nv,u.stateNode=P,P._reactInternals=u,SS(u,v,s,h),u=CS(null,u,v,!0,I,h)):(u.tag=0,Gr&&I&&Xw(u),yi(null,u,P,h),u=u.child),u;case 16:v=u.elementType;e:{switch(Lv(s,u),s=u.pendingProps,P=v._init,v=P(v._payload),u.type=v,P=u.tag=g6(v),s=Jo(v,s),P){case 0:u=PS(null,u,v,s,h);break e;case 1:u=lR(null,u,v,s,h);break e;case 11:u=nR(null,u,v,s,h);break e;case 14:u=iR(null,u,v,Jo(v.type,s),h);break e}throw Error(r(306,v,""))}return u;case 0:return v=u.type,P=u.pendingProps,P=u.elementType===v?P:Jo(v,P),PS(s,u,v,P,h);case 1:return v=u.type,P=u.pendingProps,P=u.elementType===v?P:Jo(v,P),lR(s,u,v,P,h);case 3:e:{if(uR(u),s===null)throw Error(r(387));v=u.pendingProps,I=u.memoizedState,P=I.element,PO(s,u),Iv(u,v,null,h);var D=u.memoizedState;if(v=D.element,I.isDehydrated)if(I={element:v,isDehydrated:!1,cache:D.cache,pendingSuspenseBoundaries:D.pendingSuspenseBoundaries,transitions:D.transitions},u.updateQueue.baseState=I,u.memoizedState=I,u.flags&256){P=ed(Error(r(423)),u),u=cR(s,u,v,h,P);break e}else if(v!==P){P=ed(Error(r(424)),u),u=cR(s,u,v,h,P);break e}else for(eo=nl(u.stateNode.containerInfo.firstChild),Zi=u,Gr=!0,Xo=null,h=_O(u,null,v,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(Qc(),v===P){u=ms(s,u,h);break e}yi(s,u,v,h)}u=u.child}return u;case 5:return TO(u),s===null&&eS(u),v=u.type,P=u.pendingProps,I=s!==null?s.memoizedProps:null,D=P.children,Hw(v,P)?D=null:I!==null&&Hw(v,I)&&(u.flags|=32),sR(s,u),yi(s,u,D,h),u.child;case 6:return s===null&&eS(u),null;case 13:return dR(s,u,h);case 4:return lS(u,u.stateNode.containerInfo),v=u.pendingProps,s===null?u.child=Yc(u,null,v,h):yi(s,u,v,h),u.child;case 11:return v=u.type,P=u.pendingProps,P=u.elementType===v?P:Jo(v,P),nR(s,u,v,P,h);case 7:return yi(s,u,u.pendingProps,h),u.child;case 8:return yi(s,u,u.pendingProps.children,h),u.child;case 12:return yi(s,u,u.pendingProps.children,h),u.child;case 10:e:{if(v=u.type._context,P=u.pendingProps,I=u.memoizedProps,D=P.value,$r(Tv,v._currentValue),v._currentValue=D,I!==null)if(Yo(I.value,D)){if(I.children===P.children&&!Ri.current){u=ms(s,u,h);break e}}else for(I=u.child,I!==null&&(I.return=u);I!==null;){var W=I.dependencies;if(W!==null){D=I.child;for(var J=W.firstContext;J!==null;){if(J.context===v){if(I.tag===1){J=ps(-1,h&-h),J.tag=2;var Se=I.updateQueue;if(Se!==null){Se=Se.shared;var ke=Se.pending;ke===null?J.next=J:(J.next=ke.next,ke.next=J),Se.pending=J}}I.lanes|=h,J=I.alternate,J!==null&&(J.lanes|=h),oS(I.return,h,u),W.lanes|=h;break}J=J.next}}else if(I.tag===10)D=I.type===u.type?null:I.child;else if(I.tag===18){if(D=I.return,D===null)throw Error(r(341));D.lanes|=h,W=D.alternate,W!==null&&(W.lanes|=h),oS(D,h,u),D=I.sibling}else D=I.child;if(D!==null)D.return=I;else for(D=I;D!==null;){if(D===u){D=null;break}if(I=D.sibling,I!==null){I.return=D.return,D=I;break}D=D.return}I=D}yi(s,u,P.children,h),u=u.child}return u;case 9:return P=u.type,v=u.pendingProps.children,Jc(u,h),P=Po(P),v=v(P),u.flags|=1,yi(s,u,v,h),u.child;case 14:return v=u.type,P=Jo(v,u.pendingProps),P=Jo(v.type,P),iR(s,u,v,P,h);case 15:return oR(s,u,u.type,u.pendingProps,h);case 17:return v=u.type,P=u.pendingProps,P=u.elementType===v?P:Jo(v,P),Lv(s,u),u.tag=1,Ii(v)?(s=!0,Sv(u)):s=!1,Jc(u,h),YO(u,v,P),SS(u,v,P,h),CS(null,u,v,!0,s,h);case 19:return hR(s,u,h);case 22:return aR(s,u,h)}throw Error(r(156,u.tag))};function NR(s,u){return ft(s,u)}function v6(s,u,h,v){this.tag=s,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function To(s,u,h,v){return new v6(s,u,h,v)}function HS(s){return s=s.prototype,!(!s||!s.isReactComponent)}function g6(s){if(typeof s=="function")return HS(s)?1:0;if(s!=null){if(s=s.$$typeof,s===se)return 11;if(s===X)return 14}return 2}function pl(s,u){var h=s.alternate;return h===null?(h=To(s.tag,u,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=u,h.type=s.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=s.flags&14680064,h.childLanes=s.childLanes,h.lanes=s.lanes,h.child=s.child,h.memoizedProps=s.memoizedProps,h.memoizedState=s.memoizedState,h.updateQueue=s.updateQueue,u=s.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h}function Yv(s,u,h,v,P,I){var D=2;if(v=s,typeof s=="function")HS(s)&&(D=1);else if(typeof s=="string")D=5;else e:switch(s){case T:return Cu(h.children,P,I,u);case A:D=8,P|=8;break;case M:return s=To(12,h,u,P|2),s.elementType=M,s.lanes=I,s;case ie:return s=To(13,h,u,P),s.elementType=ie,s.lanes=I,s;case N:return s=To(19,h,u,P),s.elementType=N,s.lanes=I,s;case ne:return Xv(h,P,I,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case B:D=10;break e;case Q:D=9;break e;case se:D=11;break e;case X:D=14;break e;case ce:D=16,v=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return u=To(D,h,u,P),u.elementType=s,u.type=v,u.lanes=I,u}function Cu(s,u,h,v){return s=To(7,s,v,u),s.lanes=h,s}function Xv(s,u,h,v){return s=To(22,s,v,u),s.elementType=ne,s.lanes=h,s.stateNode={isHidden:!1},s}function WS(s,u,h){return s=To(6,s,null,u),s.lanes=h,s}function KS(s,u,h){return u=To(4,s.children!==null?s.children:[],s.key,u),u.lanes=h,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function y6(s,u,h,v,P){this.tag=u,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ac(0),this.expirationTimes=Ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ac(0),this.identifierPrefix=v,this.onRecoverableError=P,this.mutableSourceEagerHydrationData=null}function GS(s,u,h,v,P,I,D,W,J){return s=new y6(s,u,h,W,J),u===1?(u=1,I===!0&&(u|=8)):u=0,I=To(3,null,null,u),s.current=I,I.stateNode=s,I.memoizedState={element:v,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},sS(I),s}function b6(s,u,h){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:v==null?null:""+v,children:s,containerInfo:u,implementation:h}}function FR(s){if(!s)return ol;s=s._reactInternals;e:{if(ot(s)!==s||s.tag!==1)throw Error(r(170));var u=s;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Ii(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(r(171))}if(s.tag===1){var h=s.type;if(Ii(h))return fO(s,h,u)}return u}function LR(s,u,h,v,P,I,D,W,J){return s=GS(h,v,!0,s,P,I,D,W,J),s.context=FR(null),h=s.current,v=bi(),P=fl(h),I=ps(v,P),I.callback=u??null,ll(h,I,P),s.current.lanes=P,du(s,P,v),$i(s,v),s}function Jv(s,u,h,v){var P=u.current,I=bi(),D=fl(P);return h=FR(h),u.context===null?u.context=h:u.pendingContext=h,u=ps(I,D),u.payload={element:s},v=v===void 0?null:v,v!==null&&(u.callback=v),s=ll(P,u,D),s!==null&&(ta(s,P,D,I),Rv(s,P,D)),D}function Zv(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function BR(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<u?h:u}}function QS(s,u){BR(s,u),(s=s.alternate)&&BR(s,u)}function w6(){return null}var VR=typeof reportError=="function"?reportError:function(s){console.error(s)};function YS(s){this._internalRoot=s}eg.prototype.render=YS.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(r(409));Jv(s,u,null,null)},eg.prototype.unmount=YS.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;_u(function(){Jv(null,s,null,null)}),u[us]=null}};function eg(s){this._internalRoot=s}eg.prototype.unstable_scheduleHydration=function(s){if(s){var u=lv();s={blockedOn:null,target:s,priority:u};for(var h=0;h<So.length&&u!==0&&u<So[h].priority;h++);So.splice(h,0,s),h===0&&Kf(s)}};function XS(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function tg(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function zR(){}function S6(s,u,h,v,P){if(P){if(typeof v=="function"){var I=v;v=function(){var Se=Zv(D);I.call(Se)}}var D=LR(u,v,s,0,null,!1,!1,"",zR);return s._reactRootContainer=D,s[us]=D.current,nh(s.nodeType===8?s.parentNode:s),_u(),D}for(;P=s.lastChild;)s.removeChild(P);if(typeof v=="function"){var W=v;v=function(){var Se=Zv(J);W.call(Se)}}var J=GS(s,0,!1,null,null,!1,!1,"",zR);return s._reactRootContainer=J,s[us]=J.current,nh(s.nodeType===8?s.parentNode:s),_u(function(){Jv(u,J,h,v)}),J}function rg(s,u,h,v,P){var I=h._reactRootContainer;if(I){var D=I;if(typeof P=="function"){var W=P;P=function(){var J=Zv(D);W.call(J)}}Jv(u,D,s,P)}else D=S6(h,u,s,P,v);return Zv(D)}sv=function(s){switch(s.tag){case 3:var u=s.stateNode;if(u.current.memoizedState.isDehydrated){var h=Ca(u.pendingLanes);h!==0&&(Uf(u,h|1),$i(u,Et()),(ir&6)===0&&(nd=Et()+500,al()))}break;case 13:_u(function(){var v=hs(s,1);if(v!==null){var P=bi();ta(v,s,1,P)}}),QS(s,1)}},Hf=function(s){if(s.tag===13){var u=hs(s,134217728);if(u!==null){var h=bi();ta(u,s,134217728,h)}QS(s,134217728)}},Dc=function(s){if(s.tag===13){var u=fl(s),h=hs(s,u);if(h!==null){var v=bi();ta(h,s,u,v)}QS(s,u)}},lv=function(){return sr},uv=function(s,u){var h=sr;try{return sr=s,u()}finally{sr=h}},Pa=function(s,u,h){switch(u){case"input":if(Ge(s,h),u=h.name,h.type==="radio"&&u!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<h.length;u++){var v=h[u];if(v!==s&&v.form===s.form){var P=bv(v);if(!P)throw Error(r(90));K(v),Ge(v,P)}}}break;case"textarea":on(s,h);break;case"select":u=h.value,u!=null&&jt(s,!!h.multiple,u,!1)}},ye=zS,xe=_u;var _6={usingClientEntryPoint:!1,Events:[ah,Uc,bv,Ji,le,zS]},wh={findFiberByHostInstance:pu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},x6={bundleType:wh.bundleType,version:wh.version,rendererPackageName:wh.rendererPackageName,rendererConfig:wh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=At(s),s===null?null:s.stateNode},findFiberByHostInstance:wh.findFiberByHostInstance||w6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{gi=ng.inject(x6),ln=ng}catch{}}return Ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_6,Ai.createPortal=function(s,u){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!XS(u))throw Error(r(200));return b6(s,u,null,h)},Ai.createRoot=function(s,u){if(!XS(s))throw Error(r(299));var h=!1,v="",P=VR;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onRecoverableError!==void 0&&(P=u.onRecoverableError)),u=GS(s,1,!1,null,null,h,!1,v,P),s[us]=u.current,nh(s.nodeType===8?s.parentNode:s),new YS(u)},Ai.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=At(u),s=s===null?null:s.stateNode,s},Ai.flushSync=function(s){return _u(s)},Ai.hydrate=function(s,u,h){if(!tg(u))throw Error(r(200));return rg(null,s,u,!0,h)},Ai.hydrateRoot=function(s,u,h){if(!XS(s))throw Error(r(405));var v=h!=null&&h.hydratedSources||null,P=!1,I="",D=VR;if(h!=null&&(h.unstable_strictMode===!0&&(P=!0),h.identifierPrefix!==void 0&&(I=h.identifierPrefix),h.onRecoverableError!==void 0&&(D=h.onRecoverableError)),u=LR(u,null,s,1,h??null,P,!1,I,D),s[us]=u.current,nh(s),v)for(s=0;s<v.length;s++)h=v[s],P=h._getVersion,P=P(h._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[h,P]:u.mutableSourceEagerHydrationData.push(h,P);return new eg(u)},Ai.render=function(s,u,h){if(!tg(u))throw Error(r(200));return rg(null,s,u,!1,h)},Ai.unmountComponentAtNode=function(s){if(!tg(s))throw Error(r(40));return s._reactRootContainer?(_u(function(){rg(null,null,s,!1,function(){s._reactRootContainer=null,s[us]=null})}),!0):!1},Ai.unstable_batchedUpdates=zS,Ai.unstable_renderSubtreeIntoContainer=function(s,u,h,v){if(!tg(h))throw Error(r(200));if(s==null||s._reactInternals===void 0)throw Error(r(38));return rg(s,u,h,!1,v)},Ai.version="18.3.1-next-f1338f8080-20240426",Ai}var YR;function cM(){if(YR)return e1.exports;YR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),e1.exports=$6(),e1.exports}var XR;function A6(){if(XR)return og;XR=1;var e=cM();return og.createRoot=e.createRoot,og.hydrateRoot=e.hydrateRoot,og}var D6=A6();const M6={BASE_URL:"/",DEV:!1,GIT_BRANCH_NAME:"HEAD",GIT_COMMIT_HASH:"712ebec",MODE:"production",PACKAGE_VERSION:"1.0.1",PROD:!0,REACT_APP_ENDPOINT_HOST:"",REACT_APP_ENDPOINT_PORT:"",REACT_APP_ENDPOINT_SERVER_URL:"/endpoint",REACT_APP_GRAPHQL_SERVER_URL:"/graphql",REACT_APP_SWAGGER_SERVER_URL:"/api",SSR:!1},Oy=e=>{var n;const t=M6[e];return((n=window.__env__)==null?void 0:n[e])||t};function N6(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function F6(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var L6=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(F6(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=N6(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ci="-ms-",ib="-moz-",hr="-webkit-",dM="comm",JP="rule",ZP="decl",B6="@import",fM="@keyframes",V6="@layer",z6=Math.abs,a0=String.fromCharCode,q6=Object.assign;function U6(e,t){return Yn(e,0)^45?(((t<<2^Yn(e,0))<<2^Yn(e,1))<<2^Yn(e,2))<<2^Yn(e,3):0}function hM(e){return e.trim()}function H6(e,t){return(e=t.exec(e))?e[0]:e}function pr(e,t,r){return e.replace(t,r)}function tx(e,t){return e.indexOf(t)}function Yn(e,t){return e.charCodeAt(t)|0}function Op(e,t,r){return e.slice(t,r)}function Ma(e){return e.length}function eC(e){return e.length}function ag(e,t){return t.push(e),e}function W6(e,t){return e.map(t).join("")}var s0=1,Zd=1,pM=0,Vi=0,Cn=0,_f="";function l0(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:s0,column:Zd,length:a,return:""}}function _h(e,t){return q6(l0("",null,null,"",null,null,0),e,{length:-e.length},t)}function K6(){return Cn}function G6(){return Cn=Vi>0?Yn(_f,--Vi):0,Zd--,Cn===10&&(Zd=1,s0--),Cn}function so(){return Cn=Vi<pM?Yn(_f,Vi++):0,Zd++,Cn===10&&(Zd=1,s0++),Cn}function Ua(){return Yn(_f,Vi)}function Ry(){return Vi}function Sm(e,t){return Op(_f,e,t)}function Rp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mM(e){return s0=Zd=1,pM=Ma(_f=e),Vi=0,[]}function vM(e){return _f="",e}function Iy(e){return hM(Sm(Vi-1,rx(e===91?e+2:e===40?e+1:e)))}function Q6(e){for(;(Cn=Ua())&&Cn<33;)so();return Rp(e)>2||Rp(Cn)>3?"":" "}function Y6(e,t){for(;--t&&so()&&!(Cn<48||Cn>102||Cn>57&&Cn<65||Cn>70&&Cn<97););return Sm(e,Ry()+(t<6&&Ua()==32&&so()==32))}function rx(e){for(;so();)switch(Cn){case e:return Vi;case 34:case 39:e!==34&&e!==39&&rx(Cn);break;case 40:e===41&&rx(e);break;case 92:so();break}return Vi}function X6(e,t){for(;so()&&e+Cn!==57;)if(e+Cn===84&&Ua()===47)break;return"/*"+Sm(t,Vi-1)+"*"+a0(e===47?e:so())}function J6(e){for(;!Rp(Ua());)so();return Sm(e,Vi)}function Z6(e){return vM(ky("",null,null,null,[""],e=mM(e),0,[0],e))}function ky(e,t,r,n,i,o,a,l,c){for(var d=0,f=0,p=a,m=0,g=0,b=0,y=1,w=1,_=1,S=0,C="",k=i,E=o,R=n,T=C;w;)switch(b=S,S=so()){case 40:if(b!=108&&Yn(T,p-1)==58){tx(T+=pr(Iy(S),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:T+=Iy(S);break;case 9:case 10:case 13:case 32:T+=Q6(b);break;case 92:T+=Y6(Ry()-1,7);continue;case 47:switch(Ua()){case 42:case 47:ag(e8(X6(so(),Ry()),t,r),c);break;default:T+="/"}break;case 123*y:l[d++]=Ma(T)*_;case 125*y:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+f:_==-1&&(T=pr(T,/\f/g,"")),g>0&&Ma(T)-p&&ag(g>32?ZR(T+";",n,r,p-1):ZR(pr(T," ","")+";",n,r,p-2),c);break;case 59:T+=";";default:if(ag(R=JR(T,t,r,d,f,i,l,C,k=[],E=[],p),o),S===123)if(f===0)ky(T,t,R,R,k,o,p,l,E);else switch(m===99&&Yn(T,3)===110?100:m){case 100:case 108:case 109:case 115:ky(e,R,R,n&&ag(JR(e,R,R,0,0,i,l,C,i,k=[],p),E),i,E,p,l,n?k:E);break;default:ky(T,R,R,R,[""],E,0,l,E)}}d=f=g=0,y=_=1,C=T="",p=a;break;case 58:p=1+Ma(T),g=b;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&G6()==125)continue}switch(T+=a0(S),S*y){case 38:_=f>0?1:(T+="\f",-1);break;case 44:l[d++]=(Ma(T)-1)*_,_=1;break;case 64:Ua()===45&&(T+=Iy(so())),m=Ua(),f=p=Ma(C=T+=J6(Ry())),S++;break;case 45:b===45&&Ma(T)==2&&(y=0)}}return o}function JR(e,t,r,n,i,o,a,l,c,d,f){for(var p=i-1,m=i===0?o:[""],g=eC(m),b=0,y=0,w=0;b<n;++b)for(var _=0,S=Op(e,p+1,p=z6(y=a[b])),C=e;_<g;++_)(C=hM(y>0?m[_]+" "+S:pr(S,/&\f/g,m[_])))&&(c[w++]=C);return l0(e,t,r,i===0?JP:l,c,d,f)}function e8(e,t,r){return l0(e,t,r,dM,a0(K6()),Op(e,2,-2),0)}function ZR(e,t,r,n){return l0(e,t,r,ZP,Op(e,0,n),Op(e,n+1,-1),n)}function qd(e,t){for(var r="",n=eC(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function t8(e,t,r,n){switch(e.type){case V6:if(e.children.length)break;case B6:case ZP:return e.return=e.return||e.value;case dM:return"";case fM:return e.return=e.value+"{"+qd(e.children,n)+"}";case JP:e.value=e.props.join(",")}return Ma(r=qd(e.children,n))?e.return=e.value+"{"+r+"}":""}function r8(e){var t=eC(e);return function(r,n,i,o){for(var a="",l=0;l<t;l++)a+=e[l](r,n,i,o)||"";return a}}function n8(e){return function(t){t.root||(t=t.return)&&e(t)}}var eI=function(t){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var i=t(n);return r.set(n,i),i}};function gM(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var i8=function(t,r,n){for(var i=0,o=0;i=o,o=Ua(),i===38&&o===12&&(r[n]=1),!Rp(o);)so();return Sm(t,Vi)},o8=function(t,r){var n=-1,i=44;do switch(Rp(i)){case 0:i===38&&Ua()===12&&(r[n]=1),t[n]+=i8(Vi-1,r,n);break;case 2:t[n]+=Iy(i);break;case 4:if(i===44){t[++n]=Ua()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=a0(i)}while(i=so());return t},a8=function(t,r){return vM(o8(mM(t),r))},tI=new WeakMap,s8=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!tI.get(n))&&!i){tI.set(t,!0);for(var o=[],a=a8(r,o),l=n.props,c=0,d=0;c<a.length;c++)for(var f=0;f<l.length;f++,d++)t.props[d]=o[c]?a[c].replace(/&\f/g,l[f]):l[f]+" "+a[c]}}},l8=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function yM(e,t){switch(U6(e,t)){case 5103:return hr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return hr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hr+e+ib+e+ci+e+e;case 6828:case 4268:return hr+e+ci+e+e;case 6165:return hr+e+ci+"flex-"+e+e;case 5187:return hr+e+pr(e,/(\w+).+(:[^]+)/,hr+"box-$1$2"+ci+"flex-$1$2")+e;case 5443:return hr+e+ci+"flex-item-"+pr(e,/flex-|-self/,"")+e;case 4675:return hr+e+ci+"flex-line-pack"+pr(e,/align-content|flex-|-self/,"")+e;case 5548:return hr+e+ci+pr(e,"shrink","negative")+e;case 5292:return hr+e+ci+pr(e,"basis","preferred-size")+e;case 6060:return hr+"box-"+pr(e,"-grow","")+hr+e+ci+pr(e,"grow","positive")+e;case 4554:return hr+pr(e,/([^-])(transform)/g,"$1"+hr+"$2")+e;case 6187:return pr(pr(pr(e,/(zoom-|grab)/,hr+"$1"),/(image-set)/,hr+"$1"),e,"")+e;case 5495:case 3959:return pr(e,/(image-set\([^]*)/,hr+"$1$`$1");case 4968:return pr(pr(e,/(.+:)(flex-)?(.*)/,hr+"box-pack:$3"+ci+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hr+e+e;case 4095:case 3583:case 4068:case 2532:return pr(e,/(.+)-inline(.+)/,hr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ma(e)-1-t>6)switch(Yn(e,t+1)){case 109:if(Yn(e,t+4)!==45)break;case 102:return pr(e,/(.+:)(.+)-([^]+)/,"$1"+hr+"$2-$3$1"+ib+(Yn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tx(e,"stretch")?yM(pr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yn(e,t+1)!==115)break;case 6444:switch(Yn(e,Ma(e)-3-(~tx(e,"!important")&&10))){case 107:return pr(e,":",":"+hr)+e;case 101:return pr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hr+(Yn(e,14)===45?"inline-":"")+"box$3$1"+hr+"$2$3$1"+ci+"$2box$3")+e}break;case 5936:switch(Yn(e,t+11)){case 114:return hr+e+ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hr+e+ci+pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hr+e+ci+pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hr+e+ci+e+e}return e}var u8=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case ZP:t.return=yM(t.value,t.length);break;case fM:return qd([_h(t,{value:pr(t.value,"@","@"+hr)})],i);case JP:if(t.length)return W6(t.props,function(o){switch(H6(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qd([_h(t,{props:[pr(o,/:(read-\w+)/,":"+ib+"$1")]})],i);case"::placeholder":return qd([_h(t,{props:[pr(o,/:(plac\w+)/,":"+hr+"input-$1")]}),_h(t,{props:[pr(o,/:(plac\w+)/,":"+ib+"$1")]}),_h(t,{props:[pr(o,/:(plac\w+)/,ci+"input-$1")]})],i)}return""})}},c8=[u8],d8=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||c8,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),_=1;_<w.length;_++)o[w[_]]=!0;l.push(y)});var c,d=[s8,l8];{var f,p=[t8,n8(function(y){f.insert(y)})],m=r8(d.concat(i,p)),g=function(w){return qd(Z6(w),m)};c=function(w,_,S,C){f=S,g(w?w+"{"+_.styles+"}":_.styles),C&&(b.inserted[_.name]=!0)}}var b={key:r,sheet:new L6({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return b.sheet.hydrate(l),b};function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ob.apply(null,arguments)}var n1={exports:{}},br={};/** @license React v16.13.1
41
41
  * react-is.production.min.js
42
42
  *
43
43
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -439,7 +439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
439
439
  `),S=_ue(w.slice(0,_)),C=S["content-type"],C&&C.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(k=w.slice(_),k){if(E=U5(e,k),Object.keys(E).length>1||"data"in E||"incremental"in E||"errors"in E||"payload"in E)if(rue(E)){if(R={},"payload"in E){if(Object.keys(E).length===1&&E.payload===null)return[2];R=ve({},E.payload)}"errors"in E&&(R=ve(ve({},R),{extensions:ve(ve({},"extensions"in R?R.extensions:null),(A={},A[LE]=E.errors,A))})),t(R)}else t(E);else if(Object.keys(E).length===1&&"hasNext"in E&&!E.hasNext)return[2]}y=l.indexOf(a)}return[3,1];case 3:return[2]}})})}function _ue(e){var t={};return e.split(`
440
440
  `).forEach(function(r){var n=r.indexOf(":");if(n>-1){var i=r.slice(0,n).trim().toLowerCase(),o=r.slice(n+1).trim();t[i]=o}}),t}function U5(e,t){if(e.status>=300){var r=function(){try{return JSON.parse(t)}catch{return t}};q5(e,r(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(i){var n=i;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function xue(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function Pue(e){return function(t){return t.text().then(function(r){return U5(t,r)}).then(function(r){return!Array.isArray(r)&&!W$.call(r,"data")&&!W$.call(r,"errors")&&q5(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(n){return n.operationName}):e.operationName,"'.")),r})}}var yP=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=Ei(39,t,i.message);throw n.parseError=i,n}return r},Cue={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Eue={accept:"*/*","content-type":"application/json"},Tue={method:"POST"},Oue={http:Cue,headers:Eue,options:Tue},Rue=function(e,t){return t(e)};function Iue(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach(function(p){i=ve(ve(ve({},i),p.options),{headers:ve(ve({},i.headers),p.headers)}),p.credentials&&(i.credentials=p.credentials),o=ve(ve({},o),p.http)}),i.headers&&(i.headers=kue(i.headers,o.preserveHeaderCase));var a=e.operationName,l=e.extensions,c=e.variables,d=e.query,f={operationName:a,variables:c};return o.includeExtensions&&(f.extensions=l),o.includeQuery&&(f.query=t(d,G0)),{options:i,body:f}}function kue(e,t){if(!t){var r=Object.create(null);return Object.keys(Object(e)).forEach(function(o){r[o.toLowerCase()]=e[o]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(o){n[o.toLowerCase()]={originalName:o,value:e[o]}});var i=Object.create(null);return Object.keys(n).forEach(function(o){i[n[o].originalName]=n[o].value}),i}var jue=function(e){if(!e&&typeof fetch>"u")throw Ei(37)},$ue=function(e,t){var r=e.getContext(),n=r.uri;return n||(typeof t=="function"?t(e):t||"/graphql")};function Aue(e,t){var r=[],n=function(p,m){r.push("".concat(p,"=").concat(encodeURIComponent(m)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=yP(t.variables,"Variables map")}catch(p){return{parseError:p}}n("variables",i)}if(t.extensions){var o=void 0;try{o=yP(t.extensions,"Extensions map")}catch(p){return{parseError:p}}n("extensions",o)}var a="",l=e,c=e.indexOf("#");c!==-1&&(a=e.substr(c),l=e.substr(0,c));var d=l.indexOf("?")===-1?"?":"&",f=l+d+r.join("&")+a;return{newURI:f}}var K$=aa(function(){return fetch}),H5=function(e){e===void 0&&(e={});var t=e.uri,r=t===void 0?"/graphql":t,n=e.fetch,i=e.print,o=i===void 0?Rue:i,a=e.includeExtensions,l=e.preserveHeaderCase,c=e.useGETForQueries,d=e.includeUnusedVariables,f=d===void 0?!1:d,p=Ms(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&jue(n||K$);var m={http:{includeExtensions:a,preserveHeaderCase:l},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new Ws(function(g){var b=$ue(g,r),y=g.getContext(),w={};if(y.clientAwareness){var _=y.clientAwareness,S=_.name,C=_.version;S&&(w["apollographql-client-name"]=S),C&&(w["apollographql-client-version"]=C)}var k=ve(ve({},w),y.headers),E={http:y.http,options:y.fetchOptions,credentials:y.credentials,headers:k};if(Jp(["client"],g.query)){var R=M5(g.query);if(!R)return c_(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));g.query=R}var T=Iue(g,o,Oue,m,E),A=T.options,M=T.body;M.variables&&!f&&(M.variables=aue(M.variables,g.query));var B;!A.signal&&typeof AbortController<"u"&&(B=new AbortController,A.signal=B.signal);var Q=function(ge){return ge.kind==="OperationDefinition"&&ge.operation==="mutation"},se=function(ge){return ge.kind==="OperationDefinition"&&ge.operation==="subscription"},ie=se(Gm(g.query)),N=Jp(["defer"],g.query);if(c&&!g.query.definitions.some(Q)&&(A.method="GET"),N||ie){A.headers=A.headers||{};var X="multipart/mixed;";ie&&N&&globalThis.__DEV__!==!1&&_t.warn(38),ie?X+="boundary=graphql;subscriptionSpec=1.0,application/json":N&&(X+="deferSpec=20220824,application/json"),A.headers.accept=X}if(A.method==="GET"){var ce=Aue(b,M),ne=ce.newURI,ee=ce.parseError;if(ee)return c_(ee);b=ne}else try{A.body=yP(M,"Payload")}catch(ge){return c_(ge)}return new Rr(function(ge){var Z=n||aa(function(){return fetch})||K$,j=ge.next.bind(ge);return Z(b,A).then(function(U){var q;g.setContext({response:U});var $=(q=U.headers)===null||q===void 0?void 0:q.get("content-type");return $!==null&&/^multipart\/mixed/i.test($)?Sue(U,j):Pue(g)(U).then(j)}).then(function(){B=void 0,ge.complete()}).catch(function(U){B=void 0,xue(U,ge)}),function(){B&&B.abort()}})})},Due=function(e){ga(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,H5(r).request)||this;return n.options=r,n}return t}(Ws);const{toString:G$,hasOwnProperty:Mue}=Object.prototype,Q$=Function.prototype.toString,bP=new Map;function qr(e,t){try{return wP(e,t)}finally{bP.clear()}}function wP(e,t){if(e===t)return!0;const r=G$.call(e),n=G$.call(t);if(r!==n)return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(X$(e,t))return!0;const i=Y$(e),o=Y$(t),a=i.length;if(a!==o.length)return!1;for(let l=0;l<a;++l)if(!Mue.call(t,i[l]))return!1;for(let l=0;l<a;++l){const c=i[l];if(!wP(e[c],t[c]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(X$(e,t))return!0;const i=e.entries(),o=r==="[object Map]";for(;;){const a=i.next();if(a.done)break;const[l,c]=a.value;if(!t.has(l)||o&&!wP(c,t.get(l)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let i=e.byteLength;if(i===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=Q$.call(e);return i!==Q$.call(t)?!1:!Lue(i,Fue)}}return!1}function Y$(e){return Object.keys(e).filter(Nue,e)}function Nue(e){return this[e]!==void 0}const Fue="{ [native code] }";function Lue(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function X$(e,t){let r=bP.get(e);if(r){if(r.has(t))return!0}else bP.set(e,r=new Set);return r.add(t),!1}function W5(e,t,r,n){var i=t.data,o=Ms(t,["data"]),a=r.data,l=Ms(r,["data"]);return qr(o,l)&&Jy(Gm(e).selectionSet,i,a,{fragmentMap:z0(H0(e)),variables:n})}function Jy(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every(function(o){if(i.has(o)||(i.add(o),!Hm(o,n.variables))||J$(o))return!0;if(Kl(o)){var a=Wl(o),l=t&&t[a],c=r&&r[a],d=o.selectionSet;if(!d)return qr(l,c);var f=Array.isArray(l),p=Array.isArray(c);if(f!==p)return!1;if(f&&p){var m=l.length;if(c.length!==m)return!1;for(var g=0;g<m;++g)if(!Jy(d,l[g],c[g],n))return!1;return!0}return Jy(d,l,c,n)}else{var b=q0(o,n.fragmentMap);if(b)return J$(b)?!0:Jy(b.selectionSet,t,r,n)}})}function J$(e){return!!e.directives&&e.directives.some(Bue)}function Bue(e){return e.name.value==="nonreactive"}var K5=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=em(Use,{max:Bs["cache.fragmentQueryDocuments"]||1e3,cache:kb})}return e.prototype.batch=function(t){var r=this,n=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(r)},n),i},e.prototype.recordOptimisticTransaction=function(t,r){this.performTransaction(t,r)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,r){return r===void 0&&(r=!!t.optimistic),this.read(ve(ve({},t),{rootId:t.id||"ROOT_QUERY",optimistic:r}))},e.prototype.watchFragment=function(t){var r=this,n=t.fragment,i=t.fragmentName,o=t.from,a=t.optimistic,l=a===void 0?!0:a,c=this.getFragmentDoc(n,i),d={returnPartialData:!0,id:typeof o=="string"?o:this.identify(o),query:c,optimistic:l},f;return new Rr(function(p){return r.watch(ve(ve({},d),{immediate:!0,callback:function(m){if(!(f&&W5(c,{data:f==null?void 0:f.result},{data:m.result}))){var g={data:m.result,complete:!!m.complete};m.missing&&(g.missing=Q0(m.missing.map(function(b){return b.missing}))),f=m,p.next(g)}}}))})},e.prototype.readFragment=function(t,r){return r===void 0&&(r=!!t.optimistic),this.read(ve(ve({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:r}))},e.prototype.writeQuery=function(t){var r=t.id,n=t.data,i=Ms(t,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(t){var r=t.id,n=t.data,i=t.fragment,o=t.fragmentName,a=Ms(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:r,result:n}))},e.prototype.updateQuery=function(t,r){return this.batch({update:function(n){var i=n.readQuery(t),o=r(i);return o==null?i:(n.writeQuery(ve(ve({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,r){return this.batch({update:function(n){var i=n.readFragment(t),o=r(i);return o==null?i:(n.writeFragment(ve(ve({},t),{data:o})),o)}})},e}();globalThis.__DEV__!==!1&&(K5.prototype.getMemoryInternals=tle);var G5=function(e){ga(t,e);function t(r,n,i,o){var a,l=e.call(this,r)||this;if(l.message=r,l.path=n,l.query=i,l.variables=o,Array.isArray(l.path)){l.missing=l.message;for(var c=l.path.length-1;c>=0;--c)l.missing=(a={},a[l.path[c]]=l.missing,a)}else l.missing=l.path;return l.__proto__=t.prototype,l}return t}(Error),Fn=Object.prototype.hasOwnProperty;function Dh(e){return e==null}function Q5(e,t){var r=e.__typename,n=e.id,i=e._id;if(typeof r=="string"&&(t&&(t.keyObject=Dh(n)?Dh(i)?void 0:{_id:i}:{id:n}),Dh(n)&&!Dh(i)&&(n=i),!Dh(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var Y5={dataIdFromObject:Q5,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Vue(e){return gf(Y5,e)}function X5(e){var t=e.canonizeResults;return t===void 0?Y5.canonizeResults:t}function zue(e,t){return wr(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var J5=/^[_a-z][_0-9a-z]*/i;function Yl(e){var t=e.match(J5);return t?t[0]:e}function SP(e,t,r){return fn(t)?hn(t)?t.every(function(n){return SP(e,n,r)}):e.selections.every(function(n){if(Kl(n)&&Hm(n,r)){var i=Wl(n);return Fn.call(t,i)&&(!n.selectionSet||SP(n.selectionSet,t[i],r))}return!0}):!1}function Bd(e){return fn(e)&&!wr(e)&&!hn(e)}function que(){return new Ql}function Z5(e,t){var r=z0(H0(e));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&t&&(i=t.lookup(n)),i||null}}}var Zy=Object.create(null),d_=function(){return Zy},Z$=Object.create(null),tm=function(){function e(t,r){var n=this;this.policies=t,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return mP(wr(i)?n.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return wr(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return Qd(i);if(wr(i))return i;var a=n.policies.identify(i)[0];if(a){var l=Qd(a);return o&&n.merge(a,i),l}}}return e.prototype.toObject=function(){return ve({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,r){if(this.group.depend(t,r),Fn.call(this.data,t)){var n=this.data[t];if(n&&Fn.call(n,r))return n[r]}if(r==="__typename"&&Fn.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof xl)return this.parent.get(t,r)},e.prototype.lookup=function(t,r){if(r&&this.group.depend(t,"__exists"),Fn.call(this.data,t))return this.data[t];if(this instanceof xl)return this.parent.lookup(t,r);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,r){var n=this,i;wr(t)&&(t=t.__ref),wr(r)&&(r=r.__ref);var o=typeof t=="string"?this.lookup(i=t):t,a=typeof r=="string"?this.lookup(i=r):r;if(a){_t(typeof i=="string",1);var l=new Ql(Hue).merge(o,a);if(this.data[i]=l,l!==o&&(delete this.refs[i],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(a).forEach(function(d){if(!o||o[d]!==l[d]){c[d]=1;var f=Yl(d);f!==d&&!n.policies.hasKeyArgs(l.__typename,f)&&(c[f]=1),l[d]===void 0&&!(n instanceof xl)&&delete l[d]}}),c.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===l.__typename&&delete c.__typename,Object.keys(c).forEach(function(d){return n.group.dirty(i,d)})}}},e.prototype.modify=function(t,r){var n=this,i=this.lookup(t);if(i){var o=Object.create(null),a=!1,l=!0,c={DELETE:Zy,INVALIDATE:Z$,isReference:wr,toReference:this.toReference,canRead:this.canRead,readField:function(d,f){return n.policies.readField(typeof d=="string"?{fieldName:d,from:f||Qd(t)}:d,{store:n})}};if(Object.keys(i).forEach(function(d){var f=Yl(d),p=i[d];if(p!==void 0){var m=typeof r=="function"?r:r[d]||r[f];if(m){var g=m===d_?Zy:m(mP(p),ve(ve({},c),{fieldName:f,storeFieldName:d,storage:n.getStorage(t,d)}));if(g===Z$)n.group.dirty(t,d);else if(g===Zy&&(g=void 0),g!==p&&(o[d]=g,a=!0,p=g,globalThis.__DEV__!==!1)){var b=function(E){if(n.lookup(E.__ref)===void 0)return globalThis.__DEV__!==!1&&_t.warn(2,E),!0};if(wr(g))b(g);else if(Array.isArray(g))for(var y=!1,w=void 0,_=0,S=g;_<S.length;_++){var C=S[_];if(wr(C)){if(y=!0,b(C))break}else if(typeof C=="object"&&C){var k=n.policies.identify(C)[0];k&&(w=C)}if(y&&w!==void 0){globalThis.__DEV__!==!1&&_t.warn(3,w);break}}}}p!==void 0&&(l=!1)}}),a)return this.merge(t,o),l&&(this instanceof xl?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,r,n){var i,o=this.lookup(t);if(o){var a=this.getFieldValue(o,"__typename"),l=r&&n?this.policies.getStoreFieldName({typename:a,fieldName:r,args:n}):r;return this.modify(t,l?(i={},i[l]=d_,i):d_)}return!1},e.prototype.evict=function(t,r){var n=!1;return t.id&&(Fn.call(this.data,t.id)&&(n=this.delete(t.id,t.fieldName,t.args)),this instanceof xl&&this!==r&&(n=this.parent.evict(t,r)||n),(t.fieldName||n)&&this.group.dirty(t.id,t.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){Fn.call(t.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},e.prototype.replace=function(t){var r=this;if(Object.keys(this.data).forEach(function(o){t&&Fn.call(t,o)||r.delete(o)}),t){var n=t.__META,i=Ms(t,["__META"]);Object.keys(i).forEach(function(o){r.merge(o,i[o])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var r=--this.rootIds[t];return r||delete this.rootIds[t],r}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof xl?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(a){Fn.call(n,a)&&(Object.keys(t.findChildRefIds(a)).forEach(r.add,r),delete n[a])});var i=Object.keys(n);if(i.length){for(var o=this;o instanceof xl;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},e.prototype.findChildRefIds=function(t){if(!Fn.call(this.refs,t)){var r=this.refs[t]=Object.create(null),n=this.data[t];if(!n)return r;var i=new Set([n]);i.forEach(function(o){wr(o)&&(r[o.__ref]=!0),fn(o)&&Object.keys(o).forEach(function(a){var l=o[a];fn(l)&&i.add(l)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),eB=function(){function e(t,r){r===void 0&&(r=null),this.caching=t,this.parent=r,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?j5():null,this.keyMaker=new kf(jf)},e.prototype.depend=function(t,r){if(this.d){this.d(f_(t,r));var n=Yl(r);n!==r&&this.d(f_(t,n)),this.parent&&this.parent.depend(t,r)}},e.prototype.dirty=function(t,r){this.d&&this.d.dirty(f_(t,r),r==="__exists"?"forget":"setDirty")},e}();function f_(e,t){return t+"#"+e}function e2(e,t){yp(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(r){ga(n,r);function n(i){var o=i.policies,a=i.resultCaching,l=a===void 0?!0:a,c=i.seed,d=r.call(this,o,new eB(l))||this;return d.stump=new Uue(d),d.storageTrie=new kf(jf),c&&d.replace(c),d}return n.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(e);e.Root=t})(tm||(tm={}));var xl=function(e){ga(t,e);function t(r,n,i,o){var a=e.call(this,n.policies,o)||this;return a.id=r,a.parent=n,a.replay=i,a.group=o,i(a),a}return t.prototype.addLayer=function(r,n){return new t(r,this,n,this.group)},t.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=n.data[o],l=i.lookup(o);l?a?a!==l&&Object.keys(a).forEach(function(c){qr(a[c],l[c])||n.group.dirty(o,c)}):(n.group.dirty(o,"__exists"),Object.keys(l).forEach(function(c){n.group.dirty(o,c)})):n.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return ve(ve({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return Fn.call(this.data,r)?ve(ve({},n),e.prototype.findChildRefIds.call(this,r)):n},t.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},t}(tm),Uue=function(e){ga(t,e);function t(r){return e.call(this,"EntityStore.Stump",r,function(){},new eB(r.group.caching,r.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(r,n){return this.parent.merge(r,n)},t}(xl);function Hue(e,t,r){var n=e[r],i=t[r];return qr(n,i)?n:i}function yp(e){return!!(e instanceof tm&&e.group.caching)}function Wue(e){return fn(e)?hn(e)?e.slice(0):ve({__proto__:Object.getPrototypeOf(e)},e):e}var t2=function(){function e(){this.known=new(h5?WeakSet:Set),this.pool=new kf(jf),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return fn(t)&&this.known.has(t)},e.prototype.pass=function(t){if(fn(t)){var r=Wue(t);return this.passes.set(r,t),r}return t},e.prototype.admit=function(t){var r=this;if(fn(t)){var n=this.passes.get(t);if(n)return n;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var o=t.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),globalThis.__DEV__!==!1&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(t))return t;var l=Object.getPrototypeOf(t),c=[l],d=this.sortedKeys(t);c.push(d.json);var f=c.length;d.sorted.forEach(function(g){c.push(r.admit(t[g]))});var a=this.pool.lookupArray(c);if(!a.object){var p=a.object=Object.create(l);this.known.add(p),d.sorted.forEach(function(g,b){p[g]=c[f+b]}),globalThis.__DEV__!==!1&&Object.freeze(p)}return a.object}}}return t},e.prototype.sortedKeys=function(t){var r=Object.keys(t),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},e}();function r2(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Kue=function(){function e(t){var r=this;this.knownResults=new(jf?WeakMap:Map),this.config=gf(t,{addTypename:t.addTypename!==!1,canonizeResults:X5(t)}),this.canon=t.canon||new t2,this.executeSelectionSet=em(function(n){var i,o=n.context.canonizeResults,a=r2(n);a[3]=!o;var l=(i=r.executeSelectionSet).peek.apply(i,a);return l?o?ve(ve({},l),{result:r.canon.admit(l.result)}):l:(e2(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize||Bs["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:r2,makeCacheKey:function(n,i,o,a){if(yp(o.store))return o.store.makeCacheKey(n,wr(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=em(function(n){return e2(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize||Bs["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(n){var i=n.field,o=n.array,a=n.context;if(yp(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return e.prototype.resetCanon=function(){this.canon=new t2},e.prototype.diffQueryAgainstStore=function(t){var r=t.store,n=t.query,i=t.rootId,o=i===void 0?"ROOT_QUERY":i,a=t.variables,l=t.returnPartialData,c=l===void 0?!0:l,d=t.canonizeResults,f=d===void 0?this.config.canonizeResults:d,p=this.config.cache.policies;a=ve(ve({},OE(S5(n))),a);var m=Qd(o),g=this.executeSelectionSet({selectionSet:Gm(n).selectionSet,objectOrReference:m,enclosingRef:m,context:ve({store:r,query:n,policies:p,variables:a,varString:Ml(a),canonizeResults:f},Z5(n,this.config.fragments))}),b;if(g.missing&&(b=[new G5(Gue(g.missing),g.missing,n,a)],!c))throw b[0];return{result:g.result,complete:!b,missing:b}},e.prototype.isFresh=function(t,r,n,i){if(yp(i.store)&&this.knownResults.get(t)===n){var o=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var r=this,n=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,a=t.context;if(wr(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var l=a.variables,c=a.policies,d=a.store,f=d.getFieldValue(i,"__typename"),p=[],m,g=new Ql;this.config.addTypename&&typeof f=="string"&&!c.rootIdsByTypename[f]&&p.push({__typename:f});function b(C,k){var E;return C.missing&&(m=g.merge(m,(E={},E[k]=C.missing,E))),C.result}var y=new Set(n.selections);y.forEach(function(C){var k,E;if(Hm(C,l))if(Kl(C)){var R=c.readField({fieldName:C.name.value,field:C,variables:a.variables,from:i},a),T=Wl(C);R===void 0?AE.added(C)||(m=g.merge(m,(k={},k[T]="Can't find field '".concat(C.name.value,"' on ").concat(wr(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),k))):hn(R)?R.length>0&&(R=b(r.executeSubSelectedArray({field:C,array:R,enclosingRef:o,context:a}),T)):C.selectionSet?R!=null&&(R=b(r.executeSelectionSet({selectionSet:C.selectionSet,objectOrReference:R,enclosingRef:wr(R)?R:o,context:a}),T)):a.canonizeResults&&(R=r.canon.pass(R)),R!==void 0&&p.push((E={},E[T]=R,E))}else{var A=q0(C,a.lookupFragment);if(!A&&C.kind===Je.FRAGMENT_SPREAD)throw Ei(9,C.name.value);A&&c.fragmentMatches(A,f)&&A.selectionSet.selections.forEach(y.add,y)}});var w=Q0(p),_={result:w,missing:m},S=a.canonizeResults?this.canon.admit(_):mP(_);return S.result&&this.knownResults.set(S.result,n),S},e.prototype.execSubSelectedArrayImpl=function(t){var r=this,n=t.field,i=t.array,o=t.enclosingRef,a=t.context,l,c=new Ql;function d(f,p){var m;return f.missing&&(l=c.merge(l,(m={},m[p]=f.missing,m))),f.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(f,p){return f===null?null:hn(f)?d(r.executeSubSelectedArray({field:n,array:f,enclosingRef:o,context:a}),p):n.selectionSet?d(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:wr(f)?f:o,context:a}),p):(globalThis.__DEV__!==!1&&Que(a.store,n,f),f)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:l}},e}();function Gue(e){try{JSON.stringify(e,function(t,r){if(typeof r=="string")throw r;return r})}catch(t){return t}}function Que(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(i){fn(i)&&(_t(!wr(i),10,zue(e,i),t.name.value),Object.values(i).forEach(n.add,n))})}}var BE=new IE,n2=new WeakMap;function bp(e){var t=n2.get(e);return t||n2.set(e,t={vars:new Set,dep:j5()}),t}function i2(e){bp(e).vars.forEach(function(t){return t.forgetCache(e)})}function Yue(e){bp(e).vars.forEach(function(t){return t.attachCache(e)})}function Xue(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){bp(c).dep.dirty(n),Jue(c)});var a=Array.from(r);r.clear(),a.forEach(function(c){return c(e)})}}else{var l=BE.getValue();l&&(i(l),bp(l).dep(n))}return e};n.onNextChange=function(o){return r.add(o),function(){r.delete(o)}};var i=n.attachCache=function(o){return t.add(o),bp(o).vars.add(n),n};return n.forgetCache=function(o){return t.delete(o)},n}function Jue(e){e.broadcastWatches&&e.broadcastWatches()}var o2=Object.create(null);function VE(e){var t=JSON.stringify(e);return o2[t]||(o2[t]=Object.create(null))}function a2(e){var t=VE(e);return t.keyFieldsFn||(t.keyFieldsFn=function(r,n){var i=function(a,l){return n.readField(l,a)},o=n.keyObject=zE(e,function(a){var l=Xd(n.storeObject,a,i);return l===void 0&&r!==n.storeObject&&Fn.call(r,a[0])&&(l=Xd(r,a,rB)),_t(l!==void 0,4,a.join("."),r),l});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function s2(e){var t=VE(e);return t.keyArgsFn||(t.keyArgsFn=function(r,n){var i=n.field,o=n.variables,a=n.fieldName,l=zE(e,function(d){var f=d[0],p=f.charAt(0);if(p==="@"){if(i&&Za(i.directives)){var m=f.slice(1),g=i.directives.find(function(_){return _.name.value===m}),b=g&&U0(g,o);return b&&Xd(b,d.slice(1))}return}if(p==="$"){var y=f.slice(1);if(o&&Fn.call(o,y)){var w=d.slice(0);return w[0]=y,Xd(o,w)}return}if(r)return Xd(r,d)}),c=JSON.stringify(l);return(r||c!=="{}")&&(a+=":"+c),a})}function zE(e,t){var r=new Ql;return tB(e).reduce(function(n,i){var o,a=t(i);if(a!==void 0){for(var l=i.length-1;l>=0;--l)a=(o={},o[i[l]]=a,o);n=r.merge(n,a)}return n},Object.create(null))}function tB(e){var t=VE(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(i,o){hn(i)?(tB(i).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(i),hn(e[o+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function rB(e,t){return e[t]}function Xd(e,t,r){return r=r||rB,nB(t.reduce(function n(i,o){return hn(i)?i.map(function(a){return n(a,o)}):i&&r(i,o)},e))}function nB(e){return fn(e)?hn(e)?e.map(nB):zE(Object.keys(e).sort(),function(t){return Xd(e,t)}):e}function _P(e){return e.args!==void 0?e.args:e.field?U0(e.field,e.variables):null}var Zue=function(){},l2=function(e,t){return t.fieldName},u2=function(e,t,r){var n=r.mergeObjects;return n(e,t)},c2=function(e,t){return t},ece=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ve({dataIdFromObject:Q5},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,r){var n,i=this,o=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=r&&r.storeObject||t,l=ve(ve({},r),{typename:o,storeObject:a,readField:r&&r.readField||function(){var m=qE(arguments,a);return i.readField(m,{store:i.cache.data,variables:m.variables})}}),c,d=o&&this.getTypePolicy(o),f=d&&d.keyFn||this.config.dataIdFromObject;f;){var p=f(ve(ve({},t),a),l);if(hn(p))f=a2(p);else{c=p;break}}return c=c?String(c):void 0,l.keyObject?[c,l.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var r=this;Object.keys(t).forEach(function(n){var i=t[n],o=i.queryType,a=i.mutationType,l=i.subscriptionType,c=Ms(i,["queryType","mutationType","subscriptionType"]);o&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),l&&r.setRootTypename("Subscription",n),Fn.call(r.toBeAdded,n)?r.toBeAdded[n].push(c):r.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(t,r){var n=this,i=this.getTypePolicy(t),o=r.keyFields,a=r.fields;function l(c,d){c.merge=typeof d=="function"?d:d===!0?u2:d===!1?c2:c.merge}l(i,r.merge),i.keyFn=o===!1?Zue:hn(o)?a2(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(function(c){var d=n.getFieldPolicy(t,c,!0),f=a[c];if(typeof f=="function")d.read=f;else{var p=f.keyArgs,m=f.read,g=f.merge;d.keyFn=p===!1?l2:hn(p)?s2(p):typeof p=="function"?p:d.keyFn,typeof m=="function"&&(d.read=m),l(d,g)}d.read&&d.merge&&(d.keyFn=d.keyFn||l2)})},e.prototype.setRootTypename=function(t,r){r===void 0&&(r=t);var n="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(_t(!i||i===t,5,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},e.prototype.addPossibleTypes=function(t){var r=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(n){r.getSupertypeSet(n,!0),t[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var o=i.match(J5);(!o||o[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var r=this;if(!Fn.call(this.typePolicies,t)){var n=this.typePolicies[t]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(a,l){if(a.test(t)){var c=r.supertypeMap.get(l);c&&c.forEach(function(d){return i.add(d)})}})),i&&i.size&&i.forEach(function(a){var l=r.getTypePolicy(a),c=l.fields,d=Ms(l,["fields"]);Object.assign(n,d),Object.assign(n.fields,c)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(a){r.updateTypePolicy(t,a)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,r,n){if(t){var i=this.getTypePolicy(t).fields;return i[r]||n&&(i[r]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,r){var n=this.supertypeMap.get(t);return!n&&r&&this.supertypeMap.set(t,n=new Set),n},e.prototype.fragmentMatches=function(t,r,n,i){var o=this;if(!t.typeCondition)return!0;if(!r)return!1;var a=t.typeCondition.name.value;if(r===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var l=this.getSupertypeSet(r,!0),c=[l],d=function(b){var y=o.getSupertypeSet(b,!1);y&&y.size&&c.indexOf(y)<0&&c.push(y)},f=!!(n&&this.fuzzySubtypes.size),p=!1,m=0;m<c.length;++m){var g=c[m];if(g.has(a))return l.has(a)||(p&&globalThis.__DEV__!==!1&&_t.warn(6,r,a),l.add(a)),!0;g.forEach(d),f&&m===c.length-1&&SP(t.selectionSet,n,i)&&(f=!1,p=!0,this.fuzzySubtypes.forEach(function(b,y){var w=r.match(b);w&&w[0]===r&&d(y)}))}return!1},e.prototype.hasKeyArgs=function(t,r){var n=this.getFieldPolicy(t,r,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(t){var r=t.typename,n=t.fieldName,i=this.getFieldPolicy(r,n,!1),o,a=i&&i.keyFn;if(a&&r)for(var l={typename:r,fieldName:n,field:t.field||null,variables:t.variables},c=_P(t);a;){var d=a(c,l);if(hn(d))a=s2(d);else{o=d||n;break}}return o===void 0&&(o=t.field?yle(t.field,t.variables):w5(n,_P(t))),o===!1?n:n===Yl(o)?o:n+":"+o},e.prototype.readField=function(t,r){var n=t.from;if(n){var i=t.field||t.fieldName;if(i){if(t.typename===void 0){var o=r.store.getFieldValue(n,"__typename");o&&(t.typename=o)}var a=this.getStoreFieldName(t),l=Yl(a),c=r.store.getFieldValue(n,a),d=this.getFieldPolicy(t.typename,l,!1),f=d&&d.read;if(f){var p=d2(this,n,t,r,r.store.getStorage(wr(n)?n.__ref:n,a));return BE.withValue(this.cache,f,[c,p])}return c}}},e.prototype.getReadFunction=function(t,r){var n=this.getFieldPolicy(t,r,!1);return n&&n.read},e.prototype.getMergeFunction=function(t,r,n){var i=this.getFieldPolicy(t,r,!1),o=i&&i.merge;return!o&&n&&(i=this.getTypePolicy(n),o=i&&i.merge),o},e.prototype.runMergeFunction=function(t,r,n,i,o){var a=n.field,l=n.typename,c=n.merge;return c===u2?iB(i.store)(t,r):c===c2?r:(i.overwrite&&(t=void 0),c(t,r,d2(this,void 0,{typename:l,fieldName:a.name.value,field:a,variables:i.variables},i,o||Object.create(null))))},e}();function d2(e,t,r,n,i){var o=e.getStoreFieldName(r),a=Yl(o),l=r.variables||n.variables,c=n.store,d=c.toReference,f=c.canRead;return{args:_P(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:l,isReference:wr,toReference:d,storage:i,cache:e.cache,canRead:f,readField:function(){return e.readField(qE(arguments,t,l),n)},mergeObjects:iB(n.store)}}function qE(e,t,r){var n=e[0],i=e[1],o=e.length,a;return typeof n=="string"?a={fieldName:n,from:o>1?i:t}:(a=ve({},n),Fn.call(a,"from")||(a.from=t)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&_t.warn(7,JL(Array.from(e))),a.variables===void 0&&(a.variables=r),a}function iB(e){return function(r,n){if(hn(r)||hn(n))throw Ei(8);if(fn(r)&&fn(n)){var i=e.getFieldValue(r,"__typename"),o=e.getFieldValue(n,"__typename"),a=i&&o&&i!==o;if(a)return n;if(wr(r)&&Bd(n))return e.merge(r.__ref,n),r;if(Bd(r)&&wr(n))return e.merge(r,n.__ref),n;if(Bd(r)&&Bd(n))return ve(ve({},r),n)}return n}}function h_(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:ve(ve({},e),{clientOnly:t,deferred:r})),i}var tce=function(){function e(t,r,n){this.cache=t,this.reader=r,this.fragments=n}return e.prototype.writeToStore=function(t,r){var n=this,i=r.query,o=r.result,a=r.dataId,l=r.variables,c=r.overwrite,d=Km(i),f=que();l=ve(ve({},OE(d)),l);var p=ve(ve({store:t,written:Object.create(null),merge:function(g,b){return f.merge(g,b)},variables:l,varString:Ml(l)},Z5(i,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),m=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:p});if(!wr(m))throw Ei(11,o);return p.incomingById.forEach(function(g,b){var y=g.storeObject,w=g.mergeTree,_=g.fieldNodeSet,S=Qd(b);if(w&&w.map.size){var C=n.applyMerges(w,S,y,p);if(wr(C))return;y=C}if(globalThis.__DEV__!==!1&&!p.overwrite){var k=Object.create(null);_.forEach(function(T){T.selectionSet&&(k[T.name.value]=!0)});var E=function(T){return k[Yl(T)]===!0},R=function(T){var A=w&&w.map.get(T);return!!(A&&A.info&&A.info.merge)};Object.keys(y).forEach(function(T){E(T)&&!R(T)&&rce(S,y,T,p.store)})}t.merge(b,y)}),t.retain(m.__ref),m},e.prototype.processSelectionSet=function(t){var r=this,n=t.dataId,i=t.result,o=t.selectionSet,a=t.context,l=t.mergeTree,c=this.cache.policies,d=Object.create(null),f=n&&c.rootTypenamesById[n]||cP(i,o,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof f=="string"&&(d.__typename=f);var p=function(){var C=qE(arguments,d,a.variables);if(wr(C.from)){var k=a.incomingById.get(C.from.__ref);if(k){var E=c.readField(ve(ve({},C),{from:k.storeObject}),a);if(E!==void 0)return E}}return c.readField(C,a)},m=new Set;this.flattenFields(o,i,a,f).forEach(function(C,k){var E,R=Wl(k),T=i[R];if(m.add(k),T!==void 0){var A=c.getStoreFieldName({typename:f,fieldName:k.name.value,field:k,variables:C.variables}),M=f2(l,A),B=r.processFieldValue(T,k,k.selectionSet?h_(C,!1,!1):C,M),Q=void 0;k.selectionSet&&(wr(B)||Bd(B))&&(Q=p("__typename",B));var se=c.getMergeFunction(f,k.name.value,Q);se?M.info={field:k,typename:f,merge:se}:h2(l,A),d=C.merge(d,(E={},E[A]=B,E))}else globalThis.__DEV__!==!1&&!C.clientOnly&&!C.deferred&&!AE.added(k)&&!c.getReadFunction(f,k.name.value)&&globalThis.__DEV__!==!1&&_t.error(12,Wl(k),i)});try{var g=c.identify(i,{typename:f,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:d,readField:p}),b=g[0],y=g[1];n=n||b,y&&(d=a.merge(d,y))}catch(C){if(!n)throw C}if(typeof n=="string"){var w=Qd(n),_=a.written[n]||(a.written[n]=[]);if(_.indexOf(o)>=0||(_.push(o),this.reader&&this.reader.isFresh(i,w,o,a)))return w;var S=a.incomingById.get(n);return S?(S.storeObject=a.merge(S.storeObject,d),S.mergeTree=xP(S.mergeTree,l),m.forEach(function(C){return S.fieldNodeSet.add(C)})):a.incomingById.set(n,{storeObject:d,mergeTree:$b(l)?void 0:l,fieldNodeSet:m}),w}return d},e.prototype.processFieldValue=function(t,r,n,i){var o=this;return!r.selectionSet||t===null?globalThis.__DEV__!==!1?B5(t):t:hn(t)?t.map(function(a,l){var c=o.processFieldValue(a,r,n,f2(i,l));return h2(i,l),c}):this.processSelectionSet({result:t,selectionSet:r.selectionSet,context:n,mergeTree:i})},e.prototype.flattenFields=function(t,r,n,i){i===void 0&&(i=cP(r,t,n.fragmentMap));var o=new Map,a=this.cache.policies,l=new kf(!1);return function c(d,f){var p=l.lookup(d,f.clientOnly,f.deferred);p.visited||(p.visited=!0,d.selections.forEach(function(m){if(Hm(m,n.variables)){var g=f.clientOnly,b=f.deferred;if(!(g&&b)&&Za(m.directives)&&m.directives.forEach(function(_){var S=_.name.value;if(S==="client"&&(g=!0),S==="defer"){var C=U0(_,n.variables);(!C||C.if!==!1)&&(b=!0)}}),Kl(m)){var y=o.get(m);y&&(g=g&&y.clientOnly,b=b&&y.deferred),o.set(m,h_(n,g,b))}else{var w=q0(m,n.lookupFragment);if(!w&&m.kind===Je.FRAGMENT_SPREAD)throw Ei(13,m.name.value);w&&a.fragmentMatches(w,i,r,n.variables)&&c(w.selectionSet,h_(n,g,b))}}}))}(t,n),o},e.prototype.applyMerges=function(t,r,n,i,o){var a,l=this;if(t.map.size&&!wr(n)){var c=!hn(n)&&(wr(r)||Bd(r))?r:void 0,d=n;c&&!o&&(o=[wr(c)?c.__ref:c]);var f,p=function(m,g){return hn(m)?typeof g=="number"?m[g]:void 0:i.store.getFieldValue(m,String(g))};t.map.forEach(function(m,g){var b=p(c,g),y=p(d,g);if(y!==void 0){o&&o.push(g);var w=l.applyMerges(m,b,y,i,o);w!==y&&(f=f||new Map,f.set(g,w)),o&&_t(o.pop()===g)}}),f&&(n=hn(d)?d.slice(0):ve({},d),f.forEach(function(m,g){n[g]=m}))}return t.info?this.cache.policies.runMergeFunction(r,n,t.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},e}(),oB=[];function f2(e,t){var r=e.map;return r.has(t)||r.set(t,oB.pop()||{map:new Map}),r.get(t)}function xP(e,t){if(e===t||!t||$b(t))return e;if(!e||$b(e))return t;var r=e.info&&t.info?ve(ve({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i=n?new Map:e.map.size?e.map:t.map,o={info:r,map:i};if(n){var a=new Set(t.map.keys());e.map.forEach(function(l,c){o.map.set(c,xP(l,t.map.get(c))),a.delete(c)}),a.forEach(function(l){o.map.set(l,xP(t.map.get(l),e.map.get(l)))})}return o}function $b(e){return!e||!(e.info||e.map.size)}function h2(e,t){var r=e.map,n=r.get(t);n&&$b(n)&&(oB.push(n),r.delete(t))}var p2=new Set;function rce(e,t,r,n){var i=function(p){var m=n.getFieldValue(p,r);return typeof m=="object"&&m},o=i(e);if(o){var a=i(t);if(a&&!wr(o)&&!qr(o,a)&&!Object.keys(o).every(function(p){return n.getFieldValue(a,p)!==void 0})){var l=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=Yl(r),d="".concat(l,".").concat(c);if(!p2.has(d)){p2.add(d);var f=[];!hn(o)&&!hn(a)&&[o,a].forEach(function(p){var m=n.getFieldValue(p,"__typename");typeof m=="string"&&!f.includes(m)&&f.push(m)}),globalThis.__DEV__!==!1&&_t.warn(14,c,l,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",d,ve({},o),ve({},a))}}}}var aB=function(e){ga(t,e);function t(r){r===void 0&&(r={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new $5(AE),n.assumeImmutableResults=!0,n.makeVar=Xue,n.txCount=0,n.config=Vue(r),n.addTypename=!!n.config.addTypename,n.policies=new ece({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return t.prototype.init=function(){var r=this.data=new tm.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},t.prototype.resetResultCache=function(r){var n=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new tce(this,this.storeReader=new Kue({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:X5(this.config),canon:r?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=em(function(a,l){return n.broadcastWatch(a,l)},{max:this.config.resultCacheMaxSize||Bs["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(a){var l=a.optimistic?n.optimisticData:n.data;if(yp(l)){var c=a.optimistic,d=a.id,f=a.variables;return l.makeCacheKey(a.query,a.callback,Ml({optimistic:c,id:d,variables:f}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},t.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},t.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},t.prototype.read=function(r){var n=r.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(ve(ve({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof G5)return null;throw o}},t.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(r){if(Fn.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(ve(ve({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(r){var n=this;return this.watches.size||Yue(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&i2(n),n.maybeBroadcastWatch.forget(r)}},t.prototype.gc=function(r){var n;Ml.reset(),G0.reset(),this.addTypenameTransform.resetCache(),(n=this.config.fragments)===null||n===void 0||n.resetCaches();var i=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),i},t.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},t.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},t.prototype.identify=function(r){if(wr(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&_t.warn(n)}},t.prototype.evict=function(r){if(!r.id){if(Fn.call(r,"id"))return!1;r=ve(ve({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(r){var n=this;return this.init(),Ml.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),i2(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},t.prototype.batch=function(r){var n=this,i=r.update,o=r.optimistic,a=o===void 0?!0:o,l=r.removeOptimistic,c=r.onWatchUpdated,d,f=function(m){var g=n,b=g.data,y=g.optimisticData;++n.txCount,m&&(n.data=n.optimisticData=m);try{return d=i(n)}finally{--n.txCount,n.data=b,n.optimisticData=y}},p=new Set;return c&&!this.txCount&&this.broadcastWatches(ve(ve({},r),{onWatchUpdated:function(m){return p.add(m),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof l=="string"&&(this.optimisticData=this.optimisticData.removeLayer(l)),c&&p.size?(this.broadcastWatches(ve(ve({},r),{onWatchUpdated:function(m,g){var b=c.call(this,m,g);return b!==!1&&p.delete(m),b}})),p.size&&p.forEach(function(m){return n.maybeBroadcastWatch.dirty(m)})):this.broadcastWatches(r),d},t.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},t.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},t.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,r)})},t.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},t.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},t.prototype.broadcastWatch=function(r,n){var i=r.lastDiff,o=this.diff(r);n&&(r.optimistic&&typeof n.optimistic=="string"&&(o.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,o,i)===!1)||(!i||!qr(i.result,o.result))&&r.callback(r.lastDiff=o,i)},t}(K5);globalThis.__DEV__!==!1&&(aB.prototype.getMemoryInternals=ele);var Or;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(Or||(Or={}));function rm(e){return e?e<7:!1}var m2=Object.assign,nce=Object.hasOwnProperty,PP=function(e){ga(t,e);function t(r){var n=r.queryManager,i=r.queryInfo,o=r.options,a=e.call(this,function(w){try{var _=w._subscription._observer;_&&!_.error&&(_.error=ice)}catch{}var S=!a.observers.size;a.observers.add(w);var C=a.last;return C&&C.error?w.error&&w.error(C.error):C&&C.result&&w.next&&w.next(C.result),S&&a.reobserve().catch(function(){}),function(){a.observers.delete(w)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=p_(o.fetchPolicy),a.isTornDown=!1;var l=n.defaultOptions.watchQuery,c=l===void 0?{}:l,d=c.fetchPolicy,f=d===void 0?"cache-first":d,p=o.fetchPolicy,m=p===void 0?f:p,g=o.initialFetchPolicy,b=g===void 0?m==="standby"?f:m:g;a.options=ve(ve({},o),{initialFetchPolicy:b,fetchPolicy:m}),a.queryId=i.queryId||n.generateQueryId();var y=Km(a.query);return a.queryName=y&&y.name&&y.name.value,a}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var r=this;return new Promise(function(n,i){var o={next:function(l){n(l),r.observers.delete(o),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=r.subscribe(o)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(r){r===void 0&&(r=!0);var n=this.getLastResult(!0),i=this.queryInfo.networkStatus||n&&n.networkStatus||Or.ready,o=ve(ve({},n),{loading:rm(i),networkStatus:i}),a=this.options.fetchPolicy,l=a===void 0?"cache-first":a;if(!(p_(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(o.data=c.result),qr(o.data,{})&&(o.data=void 0),c.complete?(delete o.partial,c.complete&&o.networkStatus===Or.loading&&(l==="cache-first"||l==="cache-only")&&(o.networkStatus=Or.ready,o.loading=!1)):o.partial=!0,globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&lB(c.missing)}return r&&this.updateLastResult(o),o},t.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!W5(this.query,this.last.result,r,this.variables):!qr(this.last.result,r);return i||n&&!qr(this.last.variables,n)},t.prototype.getLast=function(r,n){var i=this.last;if(i&&i[r]&&(!n||qr(i.variables,this.variables)))return i[r]},t.prototype.getLastResult=function(r){return this.getLast("result",r)},t.prototype.getLastError=function(r){return this.getLast("error",r)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(r){var n,i={pollInterval:0},o=this.options.fetchPolicy;if(o==="cache-and-network"?i.fetchPolicy=o:o==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&nce.call(r,"variables")){var a=S5(this.query),l=a.variableDefinitions;(!l||!l.some(function(c){return c.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&_t.warn(20,r,((n=a.name)===null||n===void 0?void 0:n.value)||a)}return r&&!qr(this.options.variables,r)&&(i.variables=this.options.variables=ve(ve({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,Or.refetch)},t.prototype.fetchMore=function(r){var n=this,i=ve(ve({},r.query?r:ve(ve(ve(ve({},this.options),{query:this.options.query}),r),{variables:ve(ve({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):i.query;var a=this.queryInfo,l=a.networkStatus;a.networkStatus=Or.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(o,i,Or.fetchMore).then(function(d){return n.queryManager.removeQuery(o),a.networkStatus===Or.fetchMore&&(a.networkStatus=l),n.queryManager.cache.batch({update:function(f){var p=r.updateQuery;p?f.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(m){return p(m,{fetchMoreResult:d.data,variables:i.variables})}):f.writeQuery({query:i.query,variables:i.variables,data:d.data})},onWatchUpdated:function(f){c.add(f.query)}}),d}).finally(function(){c.has(n.query)||sB(n)})},t.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(o){var a=r.updateQuery;a&&n.updateQuery(function(l,c){var d=c.variables;return a(l,{subscriptionData:o,variables:d})})},error:function(o){if(r.onError){r.onError(o);return}globalThis.__DEV__!==!1&&_t.error(21,o)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(r){return this.reobserve(r)},t.prototype.silentSetOptions=function(r){var n=gf(this.options,r||{});m2(this.options,n)},t.prototype.setVariables=function(r){return qr(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},Or.setVariables):Promise.resolve())},t.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,o=r(i,{variables:this.variables});o&&(n.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),n.broadcastQueries())},t.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,o=i===void 0?"cache-first":i,a=n.initialFetchPolicy,l=a===void 0?o:a;o==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(o,{reason:r,options:n,observable:this,initialFetchPolicy:l}):r==="variables-changed"?n.fetchPolicy=l:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},t.prototype.fetch=function(r,n,i){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,r,n,i)},t.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,o=n.options.pollInterval;if(!o||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){_t(o,22);var a=i||(this.pollingInfo={});a.interval=o;var l=function(){var d,f;r.pollingInfo&&(!rm(r.queryInfo.networkStatus)&&!(!((f=(d=r.options).skipPollAttempt)===null||f===void 0)&&f.call(d))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Or.poll).then(c,c):c())},c=function(){var d=r.pollingInfo;d&&(clearTimeout(d.timeout),d.timeout=setTimeout(l,d.interval))};c()}}},t.prototype.updateLastResult=function(r,n){n===void 0&&(n=this.variables);var i=this.getLastError();return i&&this.last&&!qr(n,this.last.variables)&&(i=void 0),this.last=ve({result:this.queryManager.assumeImmutableResults?r:B5(r),variables:n},i?{error:i}:null)},t.prototype.reobserveAsConcast=function(r,n){var i=this;this.isTornDown=!1;var o=n===Or.refetch||n===Or.fetchMore||n===Or.poll,a=this.options.variables,l=this.options.fetchPolicy,c=gf(this.options,r||{}),d=o?c:m2(this.options,c),f=this.transformDocument(d.query);this.lastQuery=f,o||(this.updatePolling(),r&&r.variables&&!qr(r.variables,a)&&d.fetchPolicy!=="standby"&&d.fetchPolicy===l&&(this.applyNextFetchPolicy("variables-changed",d),n===void 0&&(n=Or.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=p_(d.fetchPolicy));var p=function(){i.concast===b&&(i.waitForOwnResult=!1)},m=d.variables&&ve({},d.variables),g=this.fetch(d,n,f),b=g.concast,y=g.fromLink,w={next:function(_){qr(i.variables,m)&&(p(),i.reportResult(_,m))},error:function(_){qr(i.variables,m)&&(p(),i.reportError(_,m))}};return!o&&(y||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=b,this.observer=w),b.addObserver(w),b},t.prototype.reobserve=function(r,n){return this.reobserveAsConcast(r,n).promise},t.prototype.resubscribeAfterError=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=this.last;this.resetLastResults();var o=this.subscribe.apply(this,r);return this.last=i,o},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(r,n){var i=this.getLastError(),o=this.isDifferentFromLastResult(r,n);(i||!r.partial||this.options.returnPartialData)&&this.updateLastResult(r,n),(i||o)&&gp(this.observers,"next",r)},t.prototype.reportError=function(r,n){var i=ve(ve({},this.getLastResult()),{error:r,errors:r.graphQLErrors,networkStatus:Or.error,loading:!1});this.updateLastResult(i,n),gp(this.observers,"error",this.last.error=r)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(r){return this.queryManager.transform(r)},t}(Rr);V5(PP);function sB(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(i,o){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(i,o):r}}):e.reobserve()}function ice(e){globalThis.__DEV__!==!1&&_t.error(23,e.message,e.stack)}function lB(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&_t.debug(24,e)}function p_(e){return e==="network-only"||e==="no-cache"||e==="standby"}var uB=function(){function e(t){var r=t.cache,n=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var r=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(n){r.resolvers=F$(r.resolvers,n)}):this.resolvers=F$(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return Cl(this,arguments,void 0,function(r){var n=r.document,i=r.remoteResult,o=r.context,a=r.variables,l=r.onlyRunForcedResolvers,c=l===void 0?!1:l;return El(this,function(d){return n?[2,this.resolveDocument(n,i.data,o,a,this.fragmentMatcher,c).then(function(f){return ve(ve({},i),{data:f.result})})]:[2,i]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return Jp(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return M5(t)},e.prototype.prepareContext=function(t){var r=this.cache;return ve(ve({},t),{cache:r,getCacheKey:function(n){return r.identify(n)}})},e.prototype.addExportedVariables=function(t){return Cl(this,arguments,void 0,function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i={}),El(this,function(o){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,n)||{},this.prepareContext(i),n).then(function(a){return ve(ve({},n),a.exportedVariables)})]:[2,ve({},n)]})})},e.prototype.shouldForceResolvers=function(t){var r=!1;return Ls(t,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),r))return EE}}}),r},e.prototype.buildRootValueFromCache=function(t,r){return this.cache.diff({query:Ble(t),variables:r,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,r){return Cl(this,arguments,void 0,function(n,i,o,a,l,c){var d,f,p,m,g,b,y,w,_,S,C;return o===void 0&&(o={}),a===void 0&&(a={}),l===void 0&&(l=function(){return!0}),c===void 0&&(c=!1),El(this,function(k){return d=Gm(n),f=H0(n),p=z0(f),m=this.collectSelectionsToResolve(d,p),g=d.operation,b=g?g.charAt(0).toUpperCase()+g.slice(1):"Query",y=this,w=y.cache,_=y.client,S={fragmentMap:p,context:ve(ve({},o),{cache:w,client:_}),variables:a,fragmentMatcher:l,defaultOperationType:b,exportedVariables:{},selectionsToResolve:m,onlyRunForcedResolvers:c},C=!1,[2,this.resolveSelectionSet(d.selectionSet,C,i,S).then(function(E){return{result:E,exportedVariables:S.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,r,n,i){return Cl(this,void 0,void 0,function(){var o,a,l,c,d,f=this;return El(this,function(p){return o=i.fragmentMap,a=i.context,l=i.variables,c=[n],d=function(m){return Cl(f,void 0,void 0,function(){var g,b;return El(this,function(y){return!r&&!i.selectionsToResolve.has(m)?[2]:Hm(m,l)?Kl(m)?[2,this.resolveField(m,r,n,i).then(function(w){var _;typeof w<"u"&&c.push((_={},_[Wl(m)]=w,_))})]:(wle(m)?g=m:(g=o[m.name.value],_t(g,18,m.name.value)),g&&g.typeCondition&&(b=g.typeCondition.name.value,i.fragmentMatcher(n,b,a))?[2,this.resolveSelectionSet(g.selectionSet,r,n,i).then(function(w){c.push(w)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(d)).then(function(){return Q0(c)})]})})},e.prototype.resolveField=function(t,r,n,i){return Cl(this,void 0,void 0,function(){var o,a,l,c,d,f,p,m,g,b=this;return El(this,function(y){return n?(o=i.variables,a=t.name.value,l=Wl(t),c=a!==l,d=n[l]||n[a],f=Promise.resolve(d),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(p=n.__typename||i.defaultOperationType,m=this.resolvers&&this.resolvers[p],m&&(g=m[c?a:l],g&&(f=Promise.resolve(BE.withValue(this.cache,g,[n,U0(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}]))))),[2,f.then(function(w){var _,S;if(w===void 0&&(w=d),t.directives&&t.directives.forEach(function(k){k.name.value==="export"&&k.arguments&&k.arguments.forEach(function(E){E.name.value==="as"&&E.value.kind==="StringValue"&&(i.exportedVariables[E.value.value]=w)})}),!t.selectionSet||w==null)return w;var C=(S=(_=t.directives)===null||_===void 0?void 0:_.some(function(k){return k.name.value==="client"}))!==null&&S!==void 0?S:!1;if(Array.isArray(w))return b.resolveSubSelectedArray(t,r||C,w,i);if(t.selectionSet)return b.resolveSelectionSet(t.selectionSet,r||C,w,i)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,r,n,i){var o=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return o.resolveSubSelectedArray(t,r,a,i);if(t.selectionSet)return o.resolveSelectionSet(t.selectionSet,r,a,i)}))},e.prototype.collectSelectionsToResolve=function(t,r){var n=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function o(a){if(!i.has(a)){var l=new Set;i.set(a,l),Ls(a,{Directive:function(c,d,f,p,m){c.name.value==="client"&&m.forEach(function(g){n(g)&&O$(g)&&l.add(g)})},FragmentSpread:function(c,d,f,p,m){var g=r[c.name.value];_t(g,19,c.name.value);var b=o(g);b.size>0&&(m.forEach(function(y){n(y)&&O$(y)&&l.add(y)}),l.add(c),b.forEach(function(y){l.add(y)}))}})}return i.get(a)}return o(t)},e}(),Vd=new(jf?WeakMap:Map);function m_(e,t){var r=e[t];typeof r=="function"&&(e[t]=function(){return Vd.set(e,(Vd.get(e)+1)%1e15),r.apply(this,arguments)})}function v2(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var v_=function(){function e(t,r){r===void 0&&(r=t.generateQueryId()),this.queryId=r,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=t.cache;Vd.has(n)||(Vd.set(n,0),m_(n,"evict"),m_(n,"modify"),m_(n,"reset"))}return e.prototype.init=function(t){var r=t.networkStatus||Or.loading;return this.variables&&this.networkStatus!==Or.loading&&!qr(this.variables,t.variables)&&(r=Or.setVariables),qr(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){v2(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&qr(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(t,r){this.lastDiff=t?{diff:t,options:r||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var r;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},e.prototype.setDiff=function(t){var r=this,n,i=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((n=this.observableQuery)===null||n===void 0)&&n.getLastError())||(this.updateLastDiff(t),!this.dirty&&!qr(i&&i.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(t){var r=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var n=r.getDiff();n.fromOptimisticTransaction?t.observe():sB(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;v2(this),this.shouldNotify()&&this.listeners.forEach(function(r){return r(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(rm(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var r=this;t===void 0&&(t=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=ve(ve({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return r.setDiff(o)}});(!this.lastWatch||!qr(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,r){var n=this.lastWrite;return!(n&&n.dmCount===Vd.get(this.cache)&&qr(r,n.variables)&&qr(t.data,n.result.data))},e.prototype.markResult=function(t,r,n,i){var o=this,a=new Ql,l=Za(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&Za(t.incremental)){var c=z5(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var d=this.getDiff();t.data=a.merge(d.result,t.data)}this.graphQLErrors=l,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(CP(t,n.errorPolicy)?this.cache.performTransaction(function(f){if(o.shouldWrite(t,n.variables))f.writeQuery({query:r,data:t.data,variables:n.variables,overwrite:i===1}),o.lastWrite={result:t,variables:n.variables,dmCount:Vd.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){t.data=o.lastDiff.diff.result;return}var p=o.getDiffOptions(n.variables),m=f.diff(p);!o.stopped&&qr(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(m,p),m.complete&&(t.data=m.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Or.ready},e.prototype.markError=function(t){return this.networkStatus=Or.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function CP(e,t){t===void 0&&(t="none");var r=t==="ignore"||t==="all",n=!Xy(e);return!n&&r&&e.data&&(n=!0),n}var oce=Object.prototype.hasOwnProperty,g2=Object.create(null),ace=function(){function e(t){var r=t.cache,n=t.link,i=t.defaultOptions,o=t.documentTransform,a=t.queryDeduplication,l=a===void 0?!1:a,c=t.onBroadcast,d=t.ssrMode,f=d===void 0?!1:d,p=t.clientAwareness,m=p===void 0?{}:p,g=t.localState,b=t.assumeImmutableResults,y=b===void 0?!!r.assumeImmutableResults:b,w=t.defaultContext,_=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new m5(Bs["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new kf(!1);var S=new $5(function(C){return _.cache.transformDocument(C)},{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=l,this.clientAwareness=m,this.localState=g||new uB({cache:r}),this.ssrMode=f,this.assumeImmutableResults=y,this.documentTransform=o?S.concat(o).concat(S):S,this.defaultContext=w||Object.create(null),(this.onBroadcast=c)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(r,n){t.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(Ei(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(r){return r(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return Cl(this,arguments,void 0,function(r){var n,i,o,a,l,c,d,f=r.mutation,p=r.variables,m=r.optimisticResponse,g=r.updateQueries,b=r.refetchQueries,y=b===void 0?[]:b,w=r.awaitRefetchQueries,_=w===void 0?!1:w,S=r.update,C=r.onQueryUpdated,k=r.fetchPolicy,E=k===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.fetchPolicy)||"network-only":k,R=r.errorPolicy,T=R===void 0?((d=this.defaultOptions.mutate)===null||d===void 0?void 0:d.errorPolicy)||"none":R,A=r.keepRootFields,M=r.context;return El(this,function(B){switch(B.label){case 0:return _t(f,26),_t(E==="network-only"||E==="no-cache",27),n=this.generateMutationId(),f=this.cache.transformForLink(this.transform(f)),i=this.getDocumentInfo(f).hasClientExports,p=this.getVariables(f,p),i?[4,this.localState.addExportedVariables(f,p,M)]:[3,2];case 1:p=B.sent(),B.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[n]={mutation:f,variables:p,loading:!0,error:null}),a=m&&this.markMutationOptimistic(m,{mutationId:n,document:f,variables:p,fetchPolicy:E,errorPolicy:T,context:M,updateQueries:g,update:S,keepRootFields:A}),this.broadcastQueries(),l=this,[2,new Promise(function(Q,se){return l_(l.getObservableFromLink(f,ve(ve({},M),{optimisticResponse:a?m:void 0}),p,!1),function(ie){if(Xy(ie)&&T==="none")throw new fd({graphQLErrors:vP(ie)});o&&(o.loading=!1,o.error=null);var N=ve({},ie);return typeof y=="function"&&(y=y(N)),T==="ignore"&&Xy(N)&&delete N.errors,l.markMutationResult({mutationId:n,result:N,document:f,variables:p,fetchPolicy:E,errorPolicy:T,context:M,update:S,updateQueries:g,awaitRefetchQueries:_,refetchQueries:y,removeOptimistic:a?n:void 0,onQueryUpdated:C,keepRootFields:A})}).subscribe({next:function(ie){l.broadcastQueries(),(!("hasNext"in ie)||ie.hasNext===!1)&&Q(ie)},error:function(ie){o&&(o.loading=!1,o.error=ie),a&&l.cache.removeOptimistic(n),l.broadcastQueries(),se(ie instanceof fd?ie:new fd({networkError:ie}))}})})]}})})},e.prototype.markMutationResult=function(t,r){var n=this;r===void 0&&(r=this.cache);var i=t.result,o=[],a=t.fetchPolicy==="no-cache";if(!a&&CP(i,t.errorPolicy)){if(Yd(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Yd(i)&&Za(i.incremental)){var l=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;l.result&&(c=z5(l.result,i)),typeof c<"u"&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var d=t.updateQueries;d&&this.queries.forEach(function(p,m){var g=p.observableQuery,b=g&&g.queryName;if(!(!b||!oce.call(d,b))){var y=d[b],w=n.queries.get(m),_=w.document,S=w.variables,C=r.diff({query:_,variables:S,returnPartialData:!0,optimistic:!1}),k=C.result,E=C.complete;if(E&&k){var R=y(k,{mutationResult:i,queryName:_&&dP(_)||void 0,queryVariables:S});R&&o.push({result:R,dataId:"ROOT_QUERY",query:_,variables:S})}}})}if(o.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(p){a||o.forEach(function(y){return p.write(y)});var m=t.update,g=!tue(i)||Yd(i)&&!i.hasNext;if(m){if(!a){var b=p.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});b.complete&&(i=ve(ve({},i),{data:b.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}g&&m(p,i,{context:t.context,variables:t.variables})}!a&&!t.keepRootFields&&g&&p.modify({id:"ROOT_MUTATION",fields:function(y,w){var _=w.fieldName,S=w.DELETE;return _==="__typename"?y:S}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(p){return f.push(p)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,r){var n=this,i=typeof t=="function"?t(r.variables,{IGNORE:g2}):t;return i===g2?!1:(this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(ve(ve({},r),{result:{data:i}}),o)}catch(a){globalThis.__DEV__!==!1&&_t.error(a)}},r.mutationId),!0)},e.prototype.fetchQuery=function(t,r,n){return this.fetchConcastWithInfo(t,r,n).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(r,n){t[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var r=this.queries.get(t);r&&(r.networkError=void 0,r.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var r=this.transformCache;if(!r.has(t)){var n={hasClientExports:Nse(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:Jp(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:D5([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:OE(Km(t)),asQuery:ve(ve({},t),{definitions:t.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?ve(ve({},i),{operation:"query"}):i})})};r.set(t,n)}return r.get(t)},e.prototype.getVariables=function(t,r){return ve(ve({},this.getDocumentInfo(t).defaultVars),r)},e.prototype.watchQuery=function(t){var r=this.transform(t.query);t=ve(ve({},t),{variables:this.getVariables(r,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var n=new v_(this),i=new PP({queryManager:this,queryInfo:n,options:t});return i.lastQuery=r,this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,r){var n=this;return r===void 0&&(r=this.generateQueryId()),_t(t.query,28),_t(t.query.kind==="Document",29),_t(!t.returnPartialData,30),_t(!t.pollInterval,31),this.fetchQuery(r,ve(ve({},t),{query:this.transform(t.query)})).finally(function(){return n.stopQuery(r)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var r=this.queries.get(t);r&&r.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(Ei(32)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=Or.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var r=this;t===void 0&&(t="active");var n=new Map,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(a){typeof a=="string"?i.set(a,!1):lle(a)?i.set(r.transform(a),!1):fn(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,l){var c=a.observableQuery,d=a.document;if(c){if(t==="all"){n.set(l,c);return}var f=c.queryName,p=c.options.fetchPolicy;if(p==="standby"||t==="active"&&!c.hasObservers())return;(t==="active"||f&&i.has(f)||d&&i.has(d))&&(n.set(l,c),f&&i.set(f,!0),d&&i.set(d,!0))}}),o.size&&o.forEach(function(a){var l=rP("legacyOneTimeQuery"),c=r.getQuery(l).init({document:a.query,variables:a.variables}),d=new PP({queryManager:r,queryInfo:c,options:ve(ve({},a),{fetchPolicy:"network-only"})});_t(d.queryId===l),c.setObservableQuery(d),n.set(l,d)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(a,l){a||globalThis.__DEV__!==!1&&_t.warn(typeof l=="string"?33:34,l)}),n},e.prototype.reFetchObservableQueries=function(t){var r=this;t===void 0&&(t=!1);var n=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,o){var a=i.options.fetchPolicy;i.resetLastResults(),(t||a!=="standby"&&a!=="cache-only")&&n.push(i.refetch()),r.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var r=this,n=t.query,i=t.fetchPolicy,o=t.errorPolicy,a=o===void 0?"none":o,l=t.variables,c=t.context,d=c===void 0?{}:c;n=this.transform(n),l=this.getVariables(n,l);var f=function(m){return r.getObservableFromLink(n,d,m).map(function(g){i!=="no-cache"&&(CP(g,a)&&r.cache.write({query:n,result:g.data,dataId:"ROOT_SUBSCRIPTION",variables:m}),r.broadcastQueries());var b=Xy(g),y=yue(g);if(b||y){var w={};if(b&&(w.graphQLErrors=g.errors),y&&(w.protocolErrors=g.extensions[LE]),a==="none"||y)throw new fd(w)}return a==="ignore"&&delete g.errors,g})};if(this.getDocumentInfo(n).hasClientExports){var p=this.localState.addExportedVariables(n,l,d).then(f);return new Rr(function(m){var g=null;return p.then(function(b){return g=b.subscribe(m)},m.error),function(){return g&&g.unsubscribe()}})}return f(l)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,r,n,i){var o=this,a;i===void 0&&(i=(a=r==null?void 0:r.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var l,c=this.getDocumentInfo(t),d=c.serverQuery,f=c.clientQuery;if(d){var p=this,m=p.inFlightLinkObservables,g=p.link,b={query:d,variables:n,operationName:dP(d)||void 0,context:this.prepareContext(ve(ve({},r),{forceFetch:!i}))};if(r=b.context,i){var y=G0(d),w=Ml(n),_=m.lookup(y,w);if(l=_.observable,!l){var S=new Pd([gP(g,b)]);l=_.observable=S,S.beforeNext(function(){m.remove(y,w)})}}else l=new Pd([gP(g,b)])}else l=new Pd([Rr.of({data:{}})]),r=this.prepareContext(r);return f&&(l=l_(l,function(C){return o.localState.runResolvers({document:f,remoteResult:C,context:r,variables:n})})),l},e.prototype.getResultsFromLink=function(t,r,n){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return l_(this.getObservableFromLink(o,n.context,n.variables),function(a){var l=vP(a),c=l.length>0;if(i>=t.lastRequestId){if(c&&n.errorPolicy==="none")throw t.markError(new fd({graphQLErrors:l}));t.markResult(a,o,n,r),t.markReady()}var d={data:a.data,loading:!1,networkStatus:Or.ready};return c&&n.errorPolicy!=="ignore"&&(d.errors=l,d.networkStatus=Or.error),d},function(a){var l=bue(a)?a:new fd({networkError:a});throw i>=t.lastRequestId&&t.markError(l),l})},e.prototype.fetchConcastWithInfo=function(t,r,n,i){var o=this;n===void 0&&(n=Or.loading),i===void 0&&(i=r.query);var a=this.getVariables(i,r.variables),l=this.getQuery(t),c=this.defaultOptions.watchQuery,d=r.fetchPolicy,f=d===void 0?c&&c.fetchPolicy||"cache-first":d,p=r.errorPolicy,m=p===void 0?c&&c.errorPolicy||"none":p,g=r.returnPartialData,b=g===void 0?!1:g,y=r.notifyOnNetworkStatusChange,w=y===void 0?!1:y,_=r.context,S=_===void 0?{}:_,C=Object.assign({},r,{query:i,variables:a,fetchPolicy:f,errorPolicy:m,returnPartialData:b,notifyOnNetworkStatusChange:w,context:S}),k=function(M){C.variables=M;var B=o.fetchQueryByPolicy(l,C,n);return C.fetchPolicy!=="standby"&&B.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",r),B},E=function(){return o.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(M){E(),setTimeout(function(){return R.cancel(M)})});var R,T;if(this.getDocumentInfo(C.query).hasClientExports)R=new Pd(this.localState.addExportedVariables(C.query,C.variables,C.context).then(k).then(function(M){return M.sources})),T=!0;else{var A=k(C.variables);T=A.fromLink,R=new Pd(A.sources)}return R.promise.then(E,E),{concast:R,fromLink:T}},e.prototype.refetchQueries=function(t){var r=this,n=t.updateCache,i=t.include,o=t.optimistic,a=o===void 0?!1:o,l=t.removeOptimistic,c=l===void 0?a?rP("refetchQueries"):void 0:l,d=t.onQueryUpdated,f=new Map;i&&this.getObservableQueries(i).forEach(function(m,g){f.set(g,{oq:m,lastDiff:r.getQuery(g).getDiff()})});var p=new Map;return n&&this.cache.batch({update:n,optimistic:a&&c||!1,removeOptimistic:c,onWatchUpdated:function(m,g,b){var y=m.watcher instanceof v_&&m.watcher.observableQuery;if(y){if(d){f.delete(y.queryId);var w=d(y,g,b);return w===!0&&(w=y.refetch()),w!==!1&&p.set(y,w),w}d!==null&&f.set(y.queryId,{oq:y,lastDiff:b,diff:g})}}}),f.size&&f.forEach(function(m,g){var b=m.oq,y=m.lastDiff,w=m.diff,_;if(d){if(!w){var S=b.queryInfo;S.reset(),w=S.getDiff()}_=d(b,w,y)}(!d||_===!0)&&(_=b.refetch()),_!==!1&&p.set(b,_),g.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(g)}),c&&this.cache.removeOptimistic(c),p},e.prototype.fetchQueryByPolicy=function(t,r,n){var i=this,o=r.query,a=r.variables,l=r.fetchPolicy,c=r.refetchWritePolicy,d=r.errorPolicy,f=r.returnPartialData,p=r.context,m=r.notifyOnNetworkStatusChange,g=t.networkStatus;t.init({document:o,variables:a,networkStatus:n});var b=function(){return t.getDiff()},y=function(k,E){E===void 0&&(E=t.networkStatus||Or.loading);var R=k.result;globalThis.__DEV__!==!1&&!f&&!qr(R,{})&&lB(k.missing);var T=function(A){return Rr.of(ve({data:A,loading:rm(E),networkStatus:E},k.complete?null:{partial:!0}))};return R&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:R},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(A){return T(A.data||void 0)}):d==="none"&&E===Or.refetch&&Array.isArray(k.missing)?T(void 0):T(R)},w=l==="no-cache"?0:n===Or.refetch&&c!=="merge"?1:2,_=function(){return i.getResultsFromLink(t,w,{query:o,variables:a,context:p,fetchPolicy:l,errorPolicy:d})},S=m&&typeof g=="number"&&g!==n&&rm(n);switch(l){default:case"cache-first":{var C=b();return C.complete?{fromLink:!1,sources:[y(C,t.markReady())]}:f||S?{fromLink:!0,sources:[y(C),_()]}:{fromLink:!0,sources:[_()]}}case"cache-and-network":{var C=b();return C.complete||f||S?{fromLink:!0,sources:[y(C),_()]}:{fromLink:!0,sources:[_()]}}case"cache-only":return{fromLink:!1,sources:[y(b(),t.markReady())]};case"network-only":return S?{fromLink:!0,sources:[y(b()),_()]}:{fromLink:!0,sources:[_()]};case"no-cache":return S?{fromLink:!0,sources:[y(t.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new v_(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var r=this.localState.prepareContext(t);return ve(ve(ve({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},e}(),y2=!1,cB=function(){function e(t){var r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Ei(15);var n=t.uri,i=t.credentials,o=t.headers,a=t.cache,l=t.documentTransform,c=t.ssrMode,d=c===void 0?!1:c,f=t.ssrForceFetchDelay,p=f===void 0?0:f,m=t.connectToDevTools,g=m===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:m,b=t.queryDeduplication,y=b===void 0?!0:b,w=t.defaultOptions,_=t.defaultContext,S=t.assumeImmutableResults,C=S===void 0?a.assumeImmutableResults:S,k=t.resolvers,E=t.typeDefs,R=t.fragmentMatcher,T=t.name,A=t.version,M=t.link;M||(M=n?new Due({uri:n,credentials:i,headers:o}):Ws.empty()),this.link=M,this.cache=a,this.disableNetworkFetches=d||p>0,this.queryDeduplication=y,this.defaultOptions=w||Object.create(null),this.typeDefs=E,p&&setTimeout(function(){return r.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=SE,this.localState=new uB({cache:a,client:this,resolvers:k,fragmentMatcher:R}),this.queryManager=new ace({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:_,documentTransform:l,queryDeduplication:y,ssrMode:d,clientAwareness:{name:T,version:A},localState:this.localState,assumeImmutableResults:C,onBroadcast:g?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),g&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(typeof window=="object"){var t=window,r=Symbol.for("apollo.devtools");(t[r]=t[r]||[]).push(this),t.__APOLLO_CLIENT__=this}!y2&&globalThis.__DEV__!==!1&&(y2=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){var n=window.navigator,i=n&&n.userAgent,o=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&globalThis.__DEV__!==!1&&_t.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=u_(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=ve(ve({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=u_(this.defaultOptions.query,t)),_t(t.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=ve(ve({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=u_(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,r){return r===void 0&&(r=!1),this.cache.readQuery(t,r)},e.prototype.watchFragment=function(t){return this.cache.watchFragment(t)},e.prototype.readFragment=function(t,r){return r===void 0&&(r=!1),this.cache.readFragment(t,r)},e.prototype.writeQuery=function(t){var r=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),r},e.prototype.writeFragment=function(t){var r=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),r},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return gP(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(r){return r()}))})},e.prototype.onResetStore=function(t){var r=this;return this.resetStoreCallbacks.push(t),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==t})}},e.prototype.onClearStore=function(t){var r=this;return this.clearStoreCallbacks.push(t),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var r=this.queryManager.refetchQueries(t),n=[],i=[];r.forEach(function(a,l){n.push(l),i.push(a)});var o=Promise.all(i);return o.queries=n,o.results=i,o.catch(function(a){globalThis.__DEV__!==!1&&_t.debug(17,a)}),o},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(cB.prototype.getMemoryInternals=Zse);var eb=new Map,EP=new Map,dB=!0,Ab=!1;function fB(e){return e.replace(/[\s,]+/g," ").trim()}function sce(e){return fB(e.source.body.substring(e.start,e.end))}function lce(e){var t=new Set,r=[];return e.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=sce(n.loc),a=EP.get(i);a&&!a.has(o)?dB&&console.warn("Warning: fragment with name "+i+` already exists.
441
441
  graphql-tag enforces all fragment names across your application to be unique; read more about
442
- this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||EP.set(i,a=new Set),a.add(o),t.has(o)||(t.add(o),r.push(n))}else r.push(n)}),ve(ve({},e),{definitions:r})}function uce(e){var t=new Set(e.definitions);t.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var o=n[i];o&&typeof o=="object"&&t.add(o)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}function cce(e){var t=fB(e);if(!eb.has(t)){var r=u5(e,{experimentalFragmentVariables:Ab,allowLegacyFragmentVariables:Ab});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");eb.set(t,uce(lce(r)))}return eb.get(t)}function Ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];typeof e=="string"&&(e=[e]);var n=e[0];return t.forEach(function(i,o){i&&i.kind==="Document"?n+=i.loc.source.body:n+=i,n+=e[o+1]}),cce(n)}function dce(){eb.clear(),EP.clear()}function fce(){dB=!1}function hce(){Ab=!0}function pce(){Ab=!1}var Mh={gql:Ne,resetCaches:dce,disableFragmentWarnings:fce,enableExperimentalFragmentVariables:hce,disableExperimentalFragmentVariables:pce};(function(e){e.gql=Mh.gql,e.resetCaches=Mh.resetCaches,e.disableFragmentWarnings=Mh.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Mh.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Mh.disableExperimentalFragmentVariables})(Ne||(Ne={}));Ne.default=Ne;var g_={exports:{}},b2;function mce(){return b2||(b2=1,function(e){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,wm())}(g_)),g_.exports}var Nl=mce();const vce=mc(Nl),gce=o0({__proto__:null,default:vce},[Nl]);var w2=TE?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function yce(){_t("createContext"in gce,45);var e=Nl.createContext[w2];return e||(Object.defineProperty(Nl.createContext,w2,{value:e=Nl.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var bce=function(e){var t=e.client,r=e.children,n=yce(),i=Nl.useContext(n),o=Nl.useMemo(function(){return ve(ve({},i),{client:t||i.client})},[i,t]);return _t(o.client,46),Nl.createElement(n.Provider,{value:o},r)};function wce(e){return new Ws(function(t,r){var n=Ms(t,[]);return new Rr(function(i){var o,a=!1;return Promise.resolve(n).then(function(l){return e(l,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,o&&o.unsubscribe()}})})}function hB(e){return new Ws(function(t,r){return new Rr(function(n){var i,o,a;try{i=r(t).subscribe({next:function(l){if(l.errors&&(a=e({graphQLErrors:l.errors,response:l,operation:t,forward:r}),a)){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(l)},error:function(l){if(a=e({operation:t,networkError:l,graphQLErrors:l&&l.result&&l.result.errors,forward:r}),a){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(l)},complete:function(){a||n.complete.bind(n)()}})}catch(l){e({networkError:l,operation:t,forward:r}),n.error(l)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}(function(e){ga(t,e);function t(r){var n=e.call(this)||this;return n.link=hB(r),n}return t.prototype.request=function(r,n){return this.link.request(r,n)},t})(Ws);const Sce={BASE_URL:"/",DEV:!1,GIT_BRANCH_NAME:"HEAD",GIT_COMMIT_HASH:"df72e0a",MODE:"production",PACKAGE_VERSION:"0.11.0-alpha.5",PROD:!0,REACT_APP_ENDPOINT_HOST:"",REACT_APP_ENDPOINT_PORT:"",REACT_APP_ENDPOINT_SERVER_URL:"/endpoint",REACT_APP_GRAPHQL_SERVER_URL:"/graphql",REACT_APP_SWAGGER_SERVER_URL:"/api",SSR:!1},_ce=e=>{var n;const t=(n=window.__env__)==null?void 0:n[e],r=Sce[e];return t||r},UE="/",xc="login",pB="logout",Y0="signup",mB="username",vB="github",gB="google",yB="completed",xce="confirm",Fl="app",Ll=":organizationId",Bl=":projectName",Vl=":branchName",X0="-/draft",bB="-/:revisionId",wp=":tableId",wB=":rowId";var zr=(e=>(e.Organization="organization",e.Project="project",e.Branch="branch",e.DraftRevision="draftRevision",e.HeadRevision="headRevision",e.SpecificRevision="specificRevision",e.DraftTable="draftTable",e.HeadTable="headTable",e.SpecificTable="specificTable",e.DraftRow="draftRow",e.HeadRow="headRow",e.SpecificRow="specificRow",e))(zr||{});const $f=({hideSidebar:e,sidebar:t,title:r,actions:n,children:i})=>x.jsxs(je,{minHeight:"100vh",children:[!e&&x.jsxs(je,{backgroundColor:"gray.50",borderRight:"1px solid",borderRightColor:"gray.200",flexDirection:"column",justifyContent:t?"space-between":"flex-end",padding:"1rem",width:"250px",height:"100vh",top:0,position:"sticky",children:[x.jsx(wt,{children:t}),x.jsx(Cf,{color:"gray.400",alignSelf:"center",as:qo,to:`/${pB}`,children:"Logout"})]}),x.jsxs(je,{alignItems:"center",flex:1,flexDirection:"column",width:"100%",children:[(r||n)&&x.jsxs(je,{alignItems:"center",backgroundColor:"white",borderBottom:"1px solid",borderBottomColor:"gray.50",justifyContent:"space-between",maxWidth:"900px",padding:"8px",width:"100%",position:"sticky",zIndex:1,top:0,children:[r,n]}),x.jsx(je,{flex:1,flexDirection:"column",maxWidth:"900px",padding:"1rem 1rem 0rem 1rem",width:"100%",children:i})]})]});var Pce=bc({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),Cce=bc({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),Ece=bc({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),J0=bc({displayName:"DeleteIcon",path:x.jsx("g",{fill:"currentColor",children:x.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),Tce=bc({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),SB=bc({viewBox:"0 0 14 14",path:x.jsx("g",{fill:"currentColor",children:x.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),Oce=bc({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});const ks=({height:e="2.5rem",title:t,onClick:r,isDisabled:n,isSelected:i,isLoading:o,icon:a,dataTestId:l})=>x.jsx(Lo,{"data-testid":l,_hover:{color:"gray.400"},_disabled:i?{backgroundColor:"gray.50",cursor:"not-allowed"}:void 0,alignSelf:"flex-start",color:"gray.300",fontWeight:"500",height:e,isDisabled:n||i,isLoading:o,variant:"ghost",onClick:r,children:x.jsxs(je,{alignItems:"center",gap:"0.5rem",children:[a,x.jsx(bt,{children:t})]})}),Af=e=>x.jsx(ks,{...e,icon:x.jsx(Oce,{boxSize:3})}),Qm=({height:e="2.5rem",loading:t,isDisabled:r,onClick:n,title:i,dataTestId:o})=>x.jsxs(Lo,{"data-testid":o,_hover:{backgroundColor:"gray.50"},alignSelf:"flex-start",color:"gray.400",height:e,isLoading:t,isDisabled:r,variant:"ghost",onClick:n,width:"48px",children:[x.jsx(SB,{boxSize:3,mr:i?2:0}),i]}),Z0=({height:e="2.5rem",onClick:t,isDisabled:r,dataTestId:n})=>x.jsx(Lo,{"data-testid":n,isDisabled:r,_hover:{backgroundColor:"gray.50"},alignSelf:"flex-start",color:"gray.400",height:e,variant:"ghost",onClick:t,width:"48px",children:x.jsx(Cce,{boxSize:3})});var _B={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},S2=Re.createContext&&Re.createContext(_B),Rce=["attr","size","title"];function Ice(e,t){if(e==null)return{};var r=kce(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Db.apply(this,arguments)}function _2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_2(Object(r),!0).forEach(function(n){jce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jce(e,t,r){return t=$ce(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $ce(e){var t=Ace(e,"string");return typeof t=="symbol"?t:t+""}function Ace(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xB(e){return e&&e.map((t,r)=>Re.createElement(t.tag,Mb({key:r},t.attr),xB(t.child)))}function Hr(e){return t=>Re.createElement(Dce,Db({attr:Mb({},e.attr)},t),xB(e.child))}function Dce(e){var t=r=>{var{attr:n,size:i,title:o}=e,a=Ice(e,Rce),l=i||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),Re.createElement("svg",Db({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:c,style:Mb(Mb({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&Re.createElement("title",null,o),e.children)};return S2!==void 0?Re.createElement(S2.Consumer,null,r=>t(r)):t(_B)}function PB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"},child:[]}]})(e)}function HE(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M156,128a28,28,0,1,1-28-28A28,28,0,0,1,156,128Z"},child:[]}]})(e)}function CB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z"},child:[]}]})(e)}function EB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24A104,104,0,1,0,232,128,104,104,0,0,0,128,24Zm0,184A80,80,0,1,1,181.34,68.37a8,8,0,0,1-10.67,11.92A64,64,0,1,0,191.5,136H128a8,8,0,0,1,0-16h72a8,8,0,0,1,8,8A80.09,80.09,0,0,1,128,208Z"},child:[]}]})(e)}function x2(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},child:[]}]})(e)}function Mce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm34.83-86.83a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L124,158.34V88a4,4,0,0,1,8,0v70.34l25.17-25.17A4,4,0,0,1,162.83,133.17Z"},child:[]}]})(e)}function Nce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm42.83-94.83a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L158.34,132H88a4,4,0,0,1,0-8h70.34L133.17,98.83a4,4,0,0,1,5.66-5.66Z"},child:[]}]})(e)}function Fce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"},child:[]}]})(e)}function Lce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"},child:[]}]})(e)}function Bce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M35.89,128C52,136.23,52,155.64,52,172c0,24.8,1.35,40,28,40a4,4,0,0,1,0,8c-36,0-36-26.61-36-48,0-24.8-1.35-40-28-40a4,4,0,0,1,0-8c26.65,0,28-15.2,28-40,0-21.39,0-48,36-48a4,4,0,0,1,0,8C53.35,44,52,59.2,52,84,52,100.36,52,119.77,35.89,128ZM240,124c-26.65,0-28-15.2-28-40,0-21.39,0-48-36-48a4,4,0,0,0,0,8c26.65,0,28,15.2,28,40,0,16.36,0,35.77,16.11,44C204,136.23,204,155.64,204,172c0,24.8-1.35,40-28,40a4,4,0,0,0,0,8c36,0,36-26.61,36-48,0-24.8,1.35-40,28-40a4,4,0,0,0,0-8Z"},child:[]}]})(e)}function Vce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"},child:[]}]})(e)}function zce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M155.87,36.06a4,4,0,0,1-3.87,3,4.29,4.29,0,0,1-1-.13,92,92,0,0,0-46,0,4,4,0,0,1-2-7.74,100.09,100.09,0,0,1,50,0A4,4,0,0,1,155.87,36.06ZM56.65,57.94a100.18,100.18,0,0,0-25,43.29,4,4,0,0,0,7.71,2.14,92.06,92.06,0,0,1,23-39.82,4,4,0,1,0-5.7-5.61ZM39.36,152.62a4,4,0,0,0-7.71,2.14,100.08,100.08,0,0,0,25,43.31,4,4,0,1,0,5.71-5.61A91.91,91.91,0,0,1,39.36,152.62ZM151,217.09a92,92,0,0,1-46,0,4,4,0,0,0-2,7.75,100,100,0,0,0,50,0,4,4,0,1,0-2-7.74Zm70.58-67.25a4,4,0,0,0-4.92,2.79,92.12,92.12,0,0,1-23,39.82,4,4,0,1,0,5.7,5.61,100.18,100.18,0,0,0,25-43.29A4,4,0,0,0,221.58,149.84Zm-4.94-46.46a4,4,0,0,0,7.71-2.14,100.08,100.08,0,0,0-25-43.31,4,4,0,1,0-5.71,5.61A91.91,91.91,0,0,1,216.64,103.38Z"},child:[]}]})(e)}function P2(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"},child:[]}]})(e)}function qce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"},child:[]}]})(e)}function Uce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,100a28,28,0,1,0,28,28A28,28,0,0,0,128,100Zm0,48a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"},child:[]}]})(e)}function TB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"},child:[]}]})(e)}function OB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"},child:[]}]})(e)}function Hce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M234.83,21.17a4,4,0,0,0-5.66,0L173.94,76.4l-8.2-8.2a28,28,0,0,0-39.6,0L100,94.34l-9.17-9.17a4,4,0,0,0-5.66,5.66L94.34,100,68.2,126.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L82.06,179.6l8.2,8.2a28,28,0,0,0,39.6,0L156,161.66l9.17,9.17a4,4,0,0,0,5.66-5.66L161.66,156l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,55.23-55.23A4,4,0,0,0,234.83,21.17Zm-110.63,161a20,20,0,0,1-28.28,0L73.86,160.08a20,20,0,0,1,0-28.28L100,105.66,150.34,156Zm57.94-57.94L156,150.34,105.66,100,131.8,73.86a20,20,0,0,1,28.28,0l22.06,22.06A20,20,0,0,1,182.14,124.2ZM92.29,33.49a4,4,0,1,1,7.42-3l8,20a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,104,56a4,4,0,0,1-3.71-2.51Zm-64,61a4,4,0,0,1,5.2-2.22l20,8A4,4,0,0,1,52,108a3.91,3.91,0,0,1-1.49-.29l-20-8A4,4,0,0,1,28.29,94.51Zm199.42,67A4,4,0,0,1,224,164a3.91,3.91,0,0,1-1.49-.29l-20-8a4,4,0,1,1,3-7.42l20,8A4,4,0,0,1,227.71,161.49Zm-64,61a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,160,228a4,4,0,0,1-3.71-2.51l-8-20a4,4,0,0,1,7.42-3Z"},child:[]}]})(e)}function Wce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M146.83,141.17a4,4,0,0,0-5.66,0L120,162.34,93.66,136l21.17-21.17a4,4,0,0,0-5.66-5.66L88,130.34,66.83,109.17a4,4,0,0,0-5.66,5.66L70.34,124,44.2,150.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L58.06,203.6l8.2,8.2a28,28,0,0,0,39.6,0L132,185.66l9.17,9.17a4,4,0,0,0,5.66-5.66L125.66,168l21.17-21.17A4,4,0,0,0,146.83,141.17Zm-46.63,65a20,20,0,0,1-28.28,0L49.86,184.08a20,20,0,0,1,0-28.28L76,129.66,126.34,180Zm134.63-185a4,4,0,0,0-5.66,0L197.94,52.4l-8.2-8.2a28,28,0,0,0-39.6,0L124,70.34l-9.17-9.17a4,4,0,0,0-5.66,5.66l80,80a4,4,0,0,0,5.66-5.66L185.66,132l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,31.23-31.23A4,4,0,0,0,234.83,21.17ZM212,86.06a19.86,19.86,0,0,1-5.86,14.14L180,126.34,129.66,76,155.8,49.86a20,20,0,0,1,28.28,0l22.06,22.06A19.85,19.85,0,0,1,212,86.06Z"},child:[]}]})(e)}function Kce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M234.83,109.17l-80-80A4,4,0,0,0,148,32V76.09c-54,2.44-120.43,53.55-127.94,119a7.87,7.87,0,0,0,4.58,8.16,8,8,0,0,0,3.41.77,7.9,7.9,0,0,0,5.79-2.55h0c11.53-12.27,53.29-51.73,114.16-53.4V192a4,4,0,0,0,6.83,2.83l80-80A4,4,0,0,0,234.83,109.17ZM156,182.33V144a4,4,0,0,0-4-4c-27.39,0-54.08,7.17-79.34,21.3A189.91,189.91,0,0,0,28,196l2.92,2.74L28,196c3.36-29.21,19.55-57.48,45.6-79.57C97.53,96.11,126.83,84,152,84a4,4,0,0,0,4-4V41.66L226.34,112Z"},child:[]}]})(e)}function Gce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M176,148h32a12,12,0,0,0,12-12V104a12,12,0,0,0-12-12H176a12,12,0,0,0-12,12v12H84V76H96a12,12,0,0,0,12-12V32A12,12,0,0,0,96,20H64A12,12,0,0,0,52,32V64A12,12,0,0,0,64,76H76V192a20,20,0,0,0,20,20h68v12a12,12,0,0,0,12,12h32a12,12,0,0,0,12-12V192a12,12,0,0,0-12-12H176a12,12,0,0,0-12,12v12H96a12,12,0,0,1-12-12V124h80v12A12,12,0,0,0,176,148ZM60,64V32a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4V64a4,4,0,0,1-4,4H64A4,4,0,0,1,60,64ZM172,192a4,4,0,0,1,4-4h32a4,4,0,0,1,4,4v32a4,4,0,0,1-4,4H176a4,4,0,0,1-4-4Zm0-88a4,4,0,0,1,4-4h32a4,4,0,0,1,4,4v32a4,4,0,0,1-4,4H176a4,4,0,0,1-4-4Z"},child:[]}]})(e)}function Qce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"},child:[]}]})(e)}function WE(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"},child:[]}]})(e)}const js=({value:e,placeholder:t,autoFocus:r,onChange:n,onBlur:i,onEnter:o,width:a,height:l,type:c,dataTestId:d,autoComplete:f})=>{const p=RB();return x.jsx(C0,{autoComplete:f,"data-testid":d,borderColor:"gray.100",borderStyle:"solid",borderWidth:"1px",padding:"0 9px",placeholder:t,ref:r?p:void 0,value:e,variant:"unstyled",onChange:n,onBlur:i,width:a,height:l,type:c,onKeyDown:o?m=>{m.key==="Enter"&&o()}:void 0})},{ToastContainer:C2,toast:KE}=VZ(),Yce=H5({uri:_ce("REACT_APP_GRAPHQL_SERVER_URL")}),Xce=wce(async()=>({headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}})),Jce=hB(({graphQLErrors:e})=>{if(e)for(const t of e)KE({status:"error",variant:"left-accent",colorScheme:"red",duration:3e3,isClosable:!0,position:"top",description:t.message})}),xr=new cB({connectToDevTools:!0,link:sue([Xce,Jce,Yce]),cache:new aB({typePolicies:{TableModel:{keyFields:["versionId"]},RowModel:{keyFields:["versionId"]}}}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network"}}});xr.cache;const RB=()=>O.useCallback(e=>{e&&e.focus()},[]),Df=(e,...t)=>{const r=O.useRef(null),[n,i]=O.useState(t),o=O.useMemo(()=>n.length!==t.length||n.some((a,l)=>a!==t[l])?(i(t),t):n,[t,n]);return r.current||(r.current=dt.get(e)),O.useEffect(()=>{var l;const a=r.current;return(l=a==null?void 0:a.init)==null||l.call(a,...o),()=>{var c;(c=a==null?void 0:a.dispose)==null||c.call(a)}},[o]),r.current};class Zce{constructor(){Pe(this,"registrations",new Map)}register(t,r,n){this.registrations.set(t,{factory:r,scope:n.scope})}get(t){const r=this.registrations.get(t);if(!r)throw new Error(`No provider found for ${t.name}`);return r.scope==="singleton"?(r.instance||(r.instance=r.factory()),r.instance):r.factory()}}const dt=new Zce;class GE{constructor(t){Pe(this,"values");this.values=t,st(this,{},{autoBind:!0})}setValue(t,r){this.values[t]=r}get isValid(){return Object.values(this.values).every(t=>!!t)}}const QE=JSON,ede=e=>e.toUpperCase(),tde=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},rde=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},nde=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},ide=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},E2=e=>{var n,i;let t;const r=e.definitions.filter(o=>o.kind==="OperationDefinition");return r.length===1&&(t=(i=(n=r[0])==null?void 0:n.name)==null?void 0:i.value),t},y_=e=>{if(typeof e=="string"){let r;try{const n=u5(e);r=E2(n)}catch{}return{query:e,operationName:r}}const t=E2(e);return{query:d5(e),operationName:t}};class Sp extends Error{constructor(t,r){const n=`${Sp.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,Sp.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Sp)}static extractMessage(t){var r,n;return((n=(r=t.errors)==null?void 0:r[0])==null?void 0:n.message)??`GraphQL Error (Code: ${t.status})`}}var Jh={exports:{}},ode=Jh.exports,T2;function ade(){return T2||(T2=1,function(e,t){var r=typeof self<"u"?self:ode,n=function(){function o(){this.fetch=!1,this.DOMException=r.DOMException}return o.prototype=r,new o}();(function(o){(function(a){var l={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function c(N){return N&&DataView.prototype.isPrototypeOf(N)}if(l.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(N){return N&&d.indexOf(Object.prototype.toString.call(N))>-1};function p(N){if(typeof N!="string"&&(N=String(N)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(N))throw new TypeError("Invalid character in header field name");return N.toLowerCase()}function m(N){return typeof N!="string"&&(N=String(N)),N}function g(N){var X={next:function(){var ce=N.shift();return{done:ce===void 0,value:ce}}};return l.iterable&&(X[Symbol.iterator]=function(){return X}),X}function b(N){this.map={},N instanceof b?N.forEach(function(X,ce){this.append(ce,X)},this):Array.isArray(N)?N.forEach(function(X){this.append(X[0],X[1])},this):N&&Object.getOwnPropertyNames(N).forEach(function(X){this.append(X,N[X])},this)}b.prototype.append=function(N,X){N=p(N),X=m(X);var ce=this.map[N];this.map[N]=ce?ce+", "+X:X},b.prototype.delete=function(N){delete this.map[p(N)]},b.prototype.get=function(N){return N=p(N),this.has(N)?this.map[N]:null},b.prototype.has=function(N){return this.map.hasOwnProperty(p(N))},b.prototype.set=function(N,X){this.map[p(N)]=m(X)},b.prototype.forEach=function(N,X){for(var ce in this.map)this.map.hasOwnProperty(ce)&&N.call(X,this.map[ce],ce,this)},b.prototype.keys=function(){var N=[];return this.forEach(function(X,ce){N.push(ce)}),g(N)},b.prototype.values=function(){var N=[];return this.forEach(function(X){N.push(X)}),g(N)},b.prototype.entries=function(){var N=[];return this.forEach(function(X,ce){N.push([ce,X])}),g(N)},l.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function y(N){if(N.bodyUsed)return Promise.reject(new TypeError("Already read"));N.bodyUsed=!0}function w(N){return new Promise(function(X,ce){N.onload=function(){X(N.result)},N.onerror=function(){ce(N.error)}})}function _(N){var X=new FileReader,ce=w(X);return X.readAsArrayBuffer(N),ce}function S(N){var X=new FileReader,ce=w(X);return X.readAsText(N),ce}function C(N){for(var X=new Uint8Array(N),ce=new Array(X.length),ne=0;ne<X.length;ne++)ce[ne]=String.fromCharCode(X[ne]);return ce.join("")}function k(N){if(N.slice)return N.slice(0);var X=new Uint8Array(N.byteLength);return X.set(new Uint8Array(N)),X.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(N){this._bodyInit=N,N?typeof N=="string"?this._bodyText=N:l.blob&&Blob.prototype.isPrototypeOf(N)?this._bodyBlob=N:l.formData&&FormData.prototype.isPrototypeOf(N)?this._bodyFormData=N:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(N)?this._bodyText=N.toString():l.arrayBuffer&&l.blob&&c(N)?(this._bodyArrayBuffer=k(N.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(N)||f(N))?this._bodyArrayBuffer=k(N):this._bodyText=N=Object.prototype.toString.call(N):this._bodyText="",this.headers.get("content-type")||(typeof N=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(N)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var N=y(this);if(N)return N;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(_)}),this.text=function(){var N=y(this);if(N)return N;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function T(N){var X=N.toUpperCase();return R.indexOf(X)>-1?X:N}function A(N,X){X=X||{};var ce=X.body;if(N instanceof A){if(N.bodyUsed)throw new TypeError("Already read");this.url=N.url,this.credentials=N.credentials,X.headers||(this.headers=new b(N.headers)),this.method=N.method,this.mode=N.mode,this.signal=N.signal,!ce&&N._bodyInit!=null&&(ce=N._bodyInit,N.bodyUsed=!0)}else this.url=String(N);if(this.credentials=X.credentials||this.credentials||"same-origin",(X.headers||!this.headers)&&(this.headers=new b(X.headers)),this.method=T(X.method||this.method||"GET"),this.mode=X.mode||this.mode||null,this.signal=X.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ce)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ce)}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function M(N){var X=new FormData;return N.trim().split("&").forEach(function(ce){if(ce){var ne=ce.split("="),ee=ne.shift().replace(/\+/g," "),ge=ne.join("=").replace(/\+/g," ");X.append(decodeURIComponent(ee),decodeURIComponent(ge))}}),X}function B(N){var X=new b,ce=N.replace(/\r?\n[\t ]+/g," ");return ce.split(/\r?\n/).forEach(function(ne){var ee=ne.split(":"),ge=ee.shift().trim();if(ge){var Z=ee.join(":").trim();X.append(ge,Z)}}),X}E.call(A.prototype);function Q(N,X){X||(X={}),this.type="default",this.status=X.status===void 0?200:X.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in X?X.statusText:"OK",this.headers=new b(X.headers),this.url=X.url||"",this._initBody(N)}E.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},Q.error=function(){var N=new Q(null,{status:0,statusText:""});return N.type="error",N};var se=[301,302,303,307,308];Q.redirect=function(N,X){if(se.indexOf(X)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:X,headers:{location:N}})},a.DOMException=o.DOMException;try{new a.DOMException}catch{a.DOMException=function(X,ce){this.message=X,this.name=ce;var ne=Error(X);this.stack=ne.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function ie(N,X){return new Promise(function(ce,ne){var ee=new A(N,X);if(ee.signal&&ee.signal.aborted)return ne(new a.DOMException("Aborted","AbortError"));var ge=new XMLHttpRequest;function Z(){ge.abort()}ge.onload=function(){var j={status:ge.status,statusText:ge.statusText,headers:B(ge.getAllResponseHeaders()||"")};j.url="responseURL"in ge?ge.responseURL:j.headers.get("X-Request-URL");var U="response"in ge?ge.response:ge.responseText;ce(new Q(U,j))},ge.onerror=function(){ne(new TypeError("Network request failed"))},ge.ontimeout=function(){ne(new TypeError("Network request failed"))},ge.onabort=function(){ne(new a.DOMException("Aborted","AbortError"))},ge.open(ee.method,ee.url,!0),ee.credentials==="include"?ge.withCredentials=!0:ee.credentials==="omit"&&(ge.withCredentials=!1),"responseType"in ge&&l.blob&&(ge.responseType="blob"),ee.headers.forEach(function(j,U){ge.setRequestHeader(U,j)}),ee.signal&&(ee.signal.addEventListener("abort",Z),ge.onreadystatechange=function(){ge.readyState===4&&ee.signal.removeEventListener("abort",Z)}),ge.send(typeof ee._bodyInit>"u"?null:ee._bodyInit)})}return ie.polyfill=!0,o.fetch||(o.fetch=ie,o.Headers=b,o.Request=A,o.Response=Q),a.Headers=b,a.Request=A,a.Response=Q,a.fetch=ie,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Jh,Jh.exports)),Jh.exports}var Nb=ade();const tb=mc(Nb),sde=o0({__proto__:null,default:tb},[Nb]),hd=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||sde&&Nb.Headers&&e instanceof Nb.Headers?t=tde(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):t=e),t},O2=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),lde=e=>{if(!Array.isArray(e.query)){const n=e,i=[`query=${encodeURIComponent(O2(n.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`),n.operationName&&i.push(`operationName=${encodeURIComponent(n.operationName)}`),i.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce((n,i,o)=>(n.push({query:O2(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[o]):void 0}),n),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`},ude=e=>async t=>{const{url:r,query:n,variables:i,operationName:o,fetch:a,fetchOptions:l,middleware:c}=t,d={...t.headers};let f="",p;e==="POST"?(p=dde(n,i,o,l.jsonSerializer),typeof p=="string"&&(d["Content-Type"]="application/json")):f=lde({query:n,variables:i,operationName:o,jsonSerializer:l.jsonSerializer??QE});const m={method:e,headers:d,body:p,...l};let g=r,b=m;if(c){const y=await Promise.resolve(c({...m,url:r,operationName:o,variables:i})),{url:w,..._}=y;g=w,b=_}return f&&(g=`${g}?${f}`),await a(g,b)};class cde{constructor(t,r={}){this.url=t,this.requestConfig=r,this.rawRequest=async(...n)=>{const[i,o,a]=n,l=nde(i,o,a),{headers:c,fetch:d=tb,method:f="POST",requestMiddleware:p,responseMiddleware:m,...g}=this.requestConfig,{url:b}=this;l.signal!==void 0&&(g.signal=l.signal);const{operationName:y}=y_(l.query);return b_({url:b,query:l.query,variables:l.variables,headers:{...hd(w_(c)),...hd(l.requestHeaders)},operationName:y,fetch:d,method:f,fetchOptions:g,middleware:p}).then(w=>(m&&m(w),w)).catch(w=>{throw m&&m(w),w})}}async request(t,...r){const[n,i]=r,o=rde(t,n,i),{headers:a,fetch:l=tb,method:c="POST",requestMiddleware:d,responseMiddleware:f,...p}=this.requestConfig,{url:m}=this;o.signal!==void 0&&(p.signal=o.signal);const{query:g,operationName:b}=y_(o.document);return b_({url:m,query:g,variables:o.variables,headers:{...hd(w_(a)),...hd(o.requestHeaders)},operationName:b,fetch:l,method:c,fetchOptions:p,middleware:d}).then(y=>(f&&f(y),y.data)).catch(y=>{throw f&&f(y),y})}batchRequests(t,r){const n=ide(t,r),{headers:i,...o}=this.requestConfig;n.signal!==void 0&&(o.signal=n.signal);const a=n.documents.map(({document:c})=>y_(c).query),l=n.documents.map(({variables:c})=>c);return b_({url:this.url,query:a,variables:l,headers:{...hd(w_(i)),...hd(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??tb,method:this.requestConfig.method||"POST",fetchOptions:o,middleware:this.requestConfig.requestMiddleware}).then(c=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(c),c.data)).catch(c=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(c),c})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const b_=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=ude(ede(e.method??"post")),o=Array.isArray(e.query),a=await i(e),l=await fde(a,n.jsonSerializer??QE),c=Array.isArray(l)?!l.some(({data:f})=>!f):!!l.data,d=Array.isArray(l)||!l.errors||Array.isArray(l.errors)&&!l.errors.length||n.errorPolicy==="all"||n.errorPolicy==="ignore";if(a.ok&&d&&c){const{errors:f,...p}=(Array.isArray(l),l),m=n.errorPolicy==="ignore"?p:l;return{...o?{data:m}:m,headers:a.headers,status:a.status}}else{const f=typeof l=="string"?{error:l}:l;throw new Sp({...f,status:a.status,headers:a.headers},{query:t,variables:r})}},dde=(e,t,r,n)=>{const i=n??QE;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const o=e.reduce((a,l,c)=>(a.push({query:l,variables:t?t[c]:void 0}),a),[]);return i.stringify(o)},fde=async(e,t)=>{let r;return e.headers.forEach((n,i)=>{i.toLowerCase()==="content-type"&&(r=n)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},w_=e=>typeof e=="function"?e():e;Ne`
442
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||EP.set(i,a=new Set),a.add(o),t.has(o)||(t.add(o),r.push(n))}else r.push(n)}),ve(ve({},e),{definitions:r})}function uce(e){var t=new Set(e.definitions);t.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var o=n[i];o&&typeof o=="object"&&t.add(o)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}function cce(e){var t=fB(e);if(!eb.has(t)){var r=u5(e,{experimentalFragmentVariables:Ab,allowLegacyFragmentVariables:Ab});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");eb.set(t,uce(lce(r)))}return eb.get(t)}function Ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];typeof e=="string"&&(e=[e]);var n=e[0];return t.forEach(function(i,o){i&&i.kind==="Document"?n+=i.loc.source.body:n+=i,n+=e[o+1]}),cce(n)}function dce(){eb.clear(),EP.clear()}function fce(){dB=!1}function hce(){Ab=!0}function pce(){Ab=!1}var Mh={gql:Ne,resetCaches:dce,disableFragmentWarnings:fce,enableExperimentalFragmentVariables:hce,disableExperimentalFragmentVariables:pce};(function(e){e.gql=Mh.gql,e.resetCaches=Mh.resetCaches,e.disableFragmentWarnings=Mh.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Mh.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Mh.disableExperimentalFragmentVariables})(Ne||(Ne={}));Ne.default=Ne;var g_={exports:{}},b2;function mce(){return b2||(b2=1,function(e){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,wm())}(g_)),g_.exports}var Nl=mce();const vce=mc(Nl),gce=o0({__proto__:null,default:vce},[Nl]);var w2=TE?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function yce(){_t("createContext"in gce,45);var e=Nl.createContext[w2];return e||(Object.defineProperty(Nl.createContext,w2,{value:e=Nl.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var bce=function(e){var t=e.client,r=e.children,n=yce(),i=Nl.useContext(n),o=Nl.useMemo(function(){return ve(ve({},i),{client:t||i.client})},[i,t]);return _t(o.client,46),Nl.createElement(n.Provider,{value:o},r)};function wce(e){return new Ws(function(t,r){var n=Ms(t,[]);return new Rr(function(i){var o,a=!1;return Promise.resolve(n).then(function(l){return e(l,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,o&&o.unsubscribe()}})})}function hB(e){return new Ws(function(t,r){return new Rr(function(n){var i,o,a;try{i=r(t).subscribe({next:function(l){if(l.errors&&(a=e({graphQLErrors:l.errors,response:l,operation:t,forward:r}),a)){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(l)},error:function(l){if(a=e({operation:t,networkError:l,graphQLErrors:l&&l.result&&l.result.errors,forward:r}),a){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(l)},complete:function(){a||n.complete.bind(n)()}})}catch(l){e({networkError:l,operation:t,forward:r}),n.error(l)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}(function(e){ga(t,e);function t(r){var n=e.call(this)||this;return n.link=hB(r),n}return t.prototype.request=function(r,n){return this.link.request(r,n)},t})(Ws);const Sce={BASE_URL:"/",DEV:!1,GIT_BRANCH_NAME:"HEAD",GIT_COMMIT_HASH:"712ebec",MODE:"production",PACKAGE_VERSION:"1.0.1",PROD:!0,REACT_APP_ENDPOINT_HOST:"",REACT_APP_ENDPOINT_PORT:"",REACT_APP_ENDPOINT_SERVER_URL:"/endpoint",REACT_APP_GRAPHQL_SERVER_URL:"/graphql",REACT_APP_SWAGGER_SERVER_URL:"/api",SSR:!1},_ce=e=>{var n;const t=(n=window.__env__)==null?void 0:n[e],r=Sce[e];return t||r},UE="/",xc="login",pB="logout",Y0="signup",mB="username",vB="github",gB="google",yB="completed",xce="confirm",Fl="app",Ll=":organizationId",Bl=":projectName",Vl=":branchName",X0="-/draft",bB="-/:revisionId",wp=":tableId",wB=":rowId";var zr=(e=>(e.Organization="organization",e.Project="project",e.Branch="branch",e.DraftRevision="draftRevision",e.HeadRevision="headRevision",e.SpecificRevision="specificRevision",e.DraftTable="draftTable",e.HeadTable="headTable",e.SpecificTable="specificTable",e.DraftRow="draftRow",e.HeadRow="headRow",e.SpecificRow="specificRow",e))(zr||{});const $f=({hideSidebar:e,sidebar:t,title:r,actions:n,children:i})=>x.jsxs(je,{minHeight:"100vh",children:[!e&&x.jsxs(je,{backgroundColor:"gray.50",borderRight:"1px solid",borderRightColor:"gray.200",flexDirection:"column",justifyContent:t?"space-between":"flex-end",padding:"1rem",width:"250px",height:"100vh",top:0,position:"sticky",children:[x.jsx(wt,{children:t}),x.jsx(Cf,{color:"gray.400",alignSelf:"center",as:qo,to:`/${pB}`,children:"Logout"})]}),x.jsxs(je,{alignItems:"center",flex:1,flexDirection:"column",width:"100%",children:[(r||n)&&x.jsxs(je,{alignItems:"center",backgroundColor:"white",borderBottom:"1px solid",borderBottomColor:"gray.50",justifyContent:"space-between",maxWidth:"900px",padding:"8px",width:"100%",position:"sticky",zIndex:1,top:0,children:[r,n]}),x.jsx(je,{flex:1,flexDirection:"column",maxWidth:"900px",padding:"1rem 1rem 0rem 1rem",width:"100%",children:i})]})]});var Pce=bc({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),Cce=bc({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),Ece=bc({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),J0=bc({displayName:"DeleteIcon",path:x.jsx("g",{fill:"currentColor",children:x.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),Tce=bc({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),SB=bc({viewBox:"0 0 14 14",path:x.jsx("g",{fill:"currentColor",children:x.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),Oce=bc({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});const ks=({height:e="2.5rem",title:t,onClick:r,isDisabled:n,isSelected:i,isLoading:o,icon:a,dataTestId:l})=>x.jsx(Lo,{"data-testid":l,_hover:{color:"gray.400"},_disabled:i?{backgroundColor:"gray.50",cursor:"not-allowed"}:void 0,alignSelf:"flex-start",color:"gray.300",fontWeight:"500",height:e,isDisabled:n||i,isLoading:o,variant:"ghost",onClick:r,children:x.jsxs(je,{alignItems:"center",gap:"0.5rem",children:[a,x.jsx(bt,{children:t})]})}),Af=e=>x.jsx(ks,{...e,icon:x.jsx(Oce,{boxSize:3})}),Qm=({height:e="2.5rem",loading:t,isDisabled:r,onClick:n,title:i,dataTestId:o})=>x.jsxs(Lo,{"data-testid":o,_hover:{backgroundColor:"gray.50"},alignSelf:"flex-start",color:"gray.400",height:e,isLoading:t,isDisabled:r,variant:"ghost",onClick:n,width:"48px",children:[x.jsx(SB,{boxSize:3,mr:i?2:0}),i]}),Z0=({height:e="2.5rem",onClick:t,isDisabled:r,dataTestId:n})=>x.jsx(Lo,{"data-testid":n,isDisabled:r,_hover:{backgroundColor:"gray.50"},alignSelf:"flex-start",color:"gray.400",height:e,variant:"ghost",onClick:t,width:"48px",children:x.jsx(Cce,{boxSize:3})});var _B={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},S2=Re.createContext&&Re.createContext(_B),Rce=["attr","size","title"];function Ice(e,t){if(e==null)return{};var r=kce(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Db.apply(this,arguments)}function _2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_2(Object(r),!0).forEach(function(n){jce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jce(e,t,r){return t=$ce(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $ce(e){var t=Ace(e,"string");return typeof t=="symbol"?t:t+""}function Ace(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xB(e){return e&&e.map((t,r)=>Re.createElement(t.tag,Mb({key:r},t.attr),xB(t.child)))}function Hr(e){return t=>Re.createElement(Dce,Db({attr:Mb({},e.attr)},t),xB(e.child))}function Dce(e){var t=r=>{var{attr:n,size:i,title:o}=e,a=Ice(e,Rce),l=i||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),Re.createElement("svg",Db({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:c,style:Mb(Mb({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&Re.createElement("title",null,o),e.children)};return S2!==void 0?Re.createElement(S2.Consumer,null,r=>t(r)):t(_B)}function PB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"},child:[]}]})(e)}function HE(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M156,128a28,28,0,1,1-28-28A28,28,0,0,1,156,128Z"},child:[]}]})(e)}function CB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z"},child:[]}]})(e)}function EB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24A104,104,0,1,0,232,128,104,104,0,0,0,128,24Zm0,184A80,80,0,1,1,181.34,68.37a8,8,0,0,1-10.67,11.92A64,64,0,1,0,191.5,136H128a8,8,0,0,1,0-16h72a8,8,0,0,1,8,8A80.09,80.09,0,0,1,128,208Z"},child:[]}]})(e)}function x2(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},child:[]}]})(e)}function Mce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm34.83-86.83a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L124,158.34V88a4,4,0,0,1,8,0v70.34l25.17-25.17A4,4,0,0,1,162.83,133.17Z"},child:[]}]})(e)}function Nce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm42.83-94.83a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L158.34,132H88a4,4,0,0,1,0-8h70.34L133.17,98.83a4,4,0,0,1,5.66-5.66Z"},child:[]}]})(e)}function Fce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"},child:[]}]})(e)}function Lce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"},child:[]}]})(e)}function Bce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M35.89,128C52,136.23,52,155.64,52,172c0,24.8,1.35,40,28,40a4,4,0,0,1,0,8c-36,0-36-26.61-36-48,0-24.8-1.35-40-28-40a4,4,0,0,1,0-8c26.65,0,28-15.2,28-40,0-21.39,0-48,36-48a4,4,0,0,1,0,8C53.35,44,52,59.2,52,84,52,100.36,52,119.77,35.89,128ZM240,124c-26.65,0-28-15.2-28-40,0-21.39,0-48-36-48a4,4,0,0,0,0,8c26.65,0,28,15.2,28,40,0,16.36,0,35.77,16.11,44C204,136.23,204,155.64,204,172c0,24.8-1.35,40-28,40a4,4,0,0,0,0,8c36,0,36-26.61,36-48,0-24.8,1.35-40,28-40a4,4,0,0,0,0-8Z"},child:[]}]})(e)}function Vce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"},child:[]}]})(e)}function zce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M155.87,36.06a4,4,0,0,1-3.87,3,4.29,4.29,0,0,1-1-.13,92,92,0,0,0-46,0,4,4,0,0,1-2-7.74,100.09,100.09,0,0,1,50,0A4,4,0,0,1,155.87,36.06ZM56.65,57.94a100.18,100.18,0,0,0-25,43.29,4,4,0,0,0,7.71,2.14,92.06,92.06,0,0,1,23-39.82,4,4,0,1,0-5.7-5.61ZM39.36,152.62a4,4,0,0,0-7.71,2.14,100.08,100.08,0,0,0,25,43.31,4,4,0,1,0,5.71-5.61A91.91,91.91,0,0,1,39.36,152.62ZM151,217.09a92,92,0,0,1-46,0,4,4,0,0,0-2,7.75,100,100,0,0,0,50,0,4,4,0,1,0-2-7.74Zm70.58-67.25a4,4,0,0,0-4.92,2.79,92.12,92.12,0,0,1-23,39.82,4,4,0,1,0,5.7,5.61,100.18,100.18,0,0,0,25-43.29A4,4,0,0,0,221.58,149.84Zm-4.94-46.46a4,4,0,0,0,7.71-2.14,100.08,100.08,0,0,0-25-43.31,4,4,0,1,0-5.71,5.61A91.91,91.91,0,0,1,216.64,103.38Z"},child:[]}]})(e)}function P2(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"},child:[]}]})(e)}function qce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"},child:[]}]})(e)}function Uce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,100a28,28,0,1,0,28,28A28,28,0,0,0,128,100Zm0,48a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"},child:[]}]})(e)}function TB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"},child:[]}]})(e)}function OB(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"},child:[]}]})(e)}function Hce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M234.83,21.17a4,4,0,0,0-5.66,0L173.94,76.4l-8.2-8.2a28,28,0,0,0-39.6,0L100,94.34l-9.17-9.17a4,4,0,0,0-5.66,5.66L94.34,100,68.2,126.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L82.06,179.6l8.2,8.2a28,28,0,0,0,39.6,0L156,161.66l9.17,9.17a4,4,0,0,0,5.66-5.66L161.66,156l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,55.23-55.23A4,4,0,0,0,234.83,21.17Zm-110.63,161a20,20,0,0,1-28.28,0L73.86,160.08a20,20,0,0,1,0-28.28L100,105.66,150.34,156Zm57.94-57.94L156,150.34,105.66,100,131.8,73.86a20,20,0,0,1,28.28,0l22.06,22.06A20,20,0,0,1,182.14,124.2ZM92.29,33.49a4,4,0,1,1,7.42-3l8,20a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,104,56a4,4,0,0,1-3.71-2.51Zm-64,61a4,4,0,0,1,5.2-2.22l20,8A4,4,0,0,1,52,108a3.91,3.91,0,0,1-1.49-.29l-20-8A4,4,0,0,1,28.29,94.51Zm199.42,67A4,4,0,0,1,224,164a3.91,3.91,0,0,1-1.49-.29l-20-8a4,4,0,1,1,3-7.42l20,8A4,4,0,0,1,227.71,161.49Zm-64,61a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,160,228a4,4,0,0,1-3.71-2.51l-8-20a4,4,0,0,1,7.42-3Z"},child:[]}]})(e)}function Wce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M146.83,141.17a4,4,0,0,0-5.66,0L120,162.34,93.66,136l21.17-21.17a4,4,0,0,0-5.66-5.66L88,130.34,66.83,109.17a4,4,0,0,0-5.66,5.66L70.34,124,44.2,150.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L58.06,203.6l8.2,8.2a28,28,0,0,0,39.6,0L132,185.66l9.17,9.17a4,4,0,0,0,5.66-5.66L125.66,168l21.17-21.17A4,4,0,0,0,146.83,141.17Zm-46.63,65a20,20,0,0,1-28.28,0L49.86,184.08a20,20,0,0,1,0-28.28L76,129.66,126.34,180Zm134.63-185a4,4,0,0,0-5.66,0L197.94,52.4l-8.2-8.2a28,28,0,0,0-39.6,0L124,70.34l-9.17-9.17a4,4,0,0,0-5.66,5.66l80,80a4,4,0,0,0,5.66-5.66L185.66,132l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,31.23-31.23A4,4,0,0,0,234.83,21.17ZM212,86.06a19.86,19.86,0,0,1-5.86,14.14L180,126.34,129.66,76,155.8,49.86a20,20,0,0,1,28.28,0l22.06,22.06A19.85,19.85,0,0,1,212,86.06Z"},child:[]}]})(e)}function Kce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M234.83,109.17l-80-80A4,4,0,0,0,148,32V76.09c-54,2.44-120.43,53.55-127.94,119a7.87,7.87,0,0,0,4.58,8.16,8,8,0,0,0,3.41.77,7.9,7.9,0,0,0,5.79-2.55h0c11.53-12.27,53.29-51.73,114.16-53.4V192a4,4,0,0,0,6.83,2.83l80-80A4,4,0,0,0,234.83,109.17ZM156,182.33V144a4,4,0,0,0-4-4c-27.39,0-54.08,7.17-79.34,21.3A189.91,189.91,0,0,0,28,196l2.92,2.74L28,196c3.36-29.21,19.55-57.48,45.6-79.57C97.53,96.11,126.83,84,152,84a4,4,0,0,0,4-4V41.66L226.34,112Z"},child:[]}]})(e)}function Gce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M176,148h32a12,12,0,0,0,12-12V104a12,12,0,0,0-12-12H176a12,12,0,0,0-12,12v12H84V76H96a12,12,0,0,0,12-12V32A12,12,0,0,0,96,20H64A12,12,0,0,0,52,32V64A12,12,0,0,0,64,76H76V192a20,20,0,0,0,20,20h68v12a12,12,0,0,0,12,12h32a12,12,0,0,0,12-12V192a12,12,0,0,0-12-12H176a12,12,0,0,0-12,12v12H96a12,12,0,0,1-12-12V124h80v12A12,12,0,0,0,176,148ZM60,64V32a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4V64a4,4,0,0,1-4,4H64A4,4,0,0,1,60,64ZM172,192a4,4,0,0,1,4-4h32a4,4,0,0,1,4,4v32a4,4,0,0,1-4,4H176a4,4,0,0,1-4-4Zm0-88a4,4,0,0,1,4-4h32a4,4,0,0,1,4,4v32a4,4,0,0,1-4,4H176a4,4,0,0,1-4-4Z"},child:[]}]})(e)}function Qce(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"},child:[]}]})(e)}function WE(e){return Hr({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"},child:[]}]})(e)}const js=({value:e,placeholder:t,autoFocus:r,onChange:n,onBlur:i,onEnter:o,width:a,height:l,type:c,dataTestId:d,autoComplete:f})=>{const p=RB();return x.jsx(C0,{autoComplete:f,"data-testid":d,borderColor:"gray.100",borderStyle:"solid",borderWidth:"1px",padding:"0 9px",placeholder:t,ref:r?p:void 0,value:e,variant:"unstyled",onChange:n,onBlur:i,width:a,height:l,type:c,onKeyDown:o?m=>{m.key==="Enter"&&o()}:void 0})},{ToastContainer:C2,toast:KE}=VZ(),Yce=H5({uri:_ce("REACT_APP_GRAPHQL_SERVER_URL")}),Xce=wce(async()=>({headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}})),Jce=hB(({graphQLErrors:e})=>{if(e)for(const t of e)KE({status:"error",variant:"left-accent",colorScheme:"red",duration:3e3,isClosable:!0,position:"top",description:t.message})}),xr=new cB({connectToDevTools:!0,link:sue([Xce,Jce,Yce]),cache:new aB({typePolicies:{TableModel:{keyFields:["versionId"]},RowModel:{keyFields:["versionId"]}}}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network"}}});xr.cache;const RB=()=>O.useCallback(e=>{e&&e.focus()},[]),Df=(e,...t)=>{const r=O.useRef(null),[n,i]=O.useState(t),o=O.useMemo(()=>n.length!==t.length||n.some((a,l)=>a!==t[l])?(i(t),t):n,[t,n]);return r.current||(r.current=dt.get(e)),O.useEffect(()=>{var l;const a=r.current;return(l=a==null?void 0:a.init)==null||l.call(a,...o),()=>{var c;(c=a==null?void 0:a.dispose)==null||c.call(a)}},[o]),r.current};class Zce{constructor(){Pe(this,"registrations",new Map)}register(t,r,n){this.registrations.set(t,{factory:r,scope:n.scope})}get(t){const r=this.registrations.get(t);if(!r)throw new Error(`No provider found for ${t.name}`);return r.scope==="singleton"?(r.instance||(r.instance=r.factory()),r.instance):r.factory()}}const dt=new Zce;class GE{constructor(t){Pe(this,"values");this.values=t,st(this,{},{autoBind:!0})}setValue(t,r){this.values[t]=r}get isValid(){return Object.values(this.values).every(t=>!!t)}}const QE=JSON,ede=e=>e.toUpperCase(),tde=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},rde=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},nde=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},ide=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},E2=e=>{var n,i;let t;const r=e.definitions.filter(o=>o.kind==="OperationDefinition");return r.length===1&&(t=(i=(n=r[0])==null?void 0:n.name)==null?void 0:i.value),t},y_=e=>{if(typeof e=="string"){let r;try{const n=u5(e);r=E2(n)}catch{}return{query:e,operationName:r}}const t=E2(e);return{query:d5(e),operationName:t}};class Sp extends Error{constructor(t,r){const n=`${Sp.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,Sp.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Sp)}static extractMessage(t){var r,n;return((n=(r=t.errors)==null?void 0:r[0])==null?void 0:n.message)??`GraphQL Error (Code: ${t.status})`}}var Jh={exports:{}},ode=Jh.exports,T2;function ade(){return T2||(T2=1,function(e,t){var r=typeof self<"u"?self:ode,n=function(){function o(){this.fetch=!1,this.DOMException=r.DOMException}return o.prototype=r,new o}();(function(o){(function(a){var l={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function c(N){return N&&DataView.prototype.isPrototypeOf(N)}if(l.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(N){return N&&d.indexOf(Object.prototype.toString.call(N))>-1};function p(N){if(typeof N!="string"&&(N=String(N)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(N))throw new TypeError("Invalid character in header field name");return N.toLowerCase()}function m(N){return typeof N!="string"&&(N=String(N)),N}function g(N){var X={next:function(){var ce=N.shift();return{done:ce===void 0,value:ce}}};return l.iterable&&(X[Symbol.iterator]=function(){return X}),X}function b(N){this.map={},N instanceof b?N.forEach(function(X,ce){this.append(ce,X)},this):Array.isArray(N)?N.forEach(function(X){this.append(X[0],X[1])},this):N&&Object.getOwnPropertyNames(N).forEach(function(X){this.append(X,N[X])},this)}b.prototype.append=function(N,X){N=p(N),X=m(X);var ce=this.map[N];this.map[N]=ce?ce+", "+X:X},b.prototype.delete=function(N){delete this.map[p(N)]},b.prototype.get=function(N){return N=p(N),this.has(N)?this.map[N]:null},b.prototype.has=function(N){return this.map.hasOwnProperty(p(N))},b.prototype.set=function(N,X){this.map[p(N)]=m(X)},b.prototype.forEach=function(N,X){for(var ce in this.map)this.map.hasOwnProperty(ce)&&N.call(X,this.map[ce],ce,this)},b.prototype.keys=function(){var N=[];return this.forEach(function(X,ce){N.push(ce)}),g(N)},b.prototype.values=function(){var N=[];return this.forEach(function(X){N.push(X)}),g(N)},b.prototype.entries=function(){var N=[];return this.forEach(function(X,ce){N.push([ce,X])}),g(N)},l.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function y(N){if(N.bodyUsed)return Promise.reject(new TypeError("Already read"));N.bodyUsed=!0}function w(N){return new Promise(function(X,ce){N.onload=function(){X(N.result)},N.onerror=function(){ce(N.error)}})}function _(N){var X=new FileReader,ce=w(X);return X.readAsArrayBuffer(N),ce}function S(N){var X=new FileReader,ce=w(X);return X.readAsText(N),ce}function C(N){for(var X=new Uint8Array(N),ce=new Array(X.length),ne=0;ne<X.length;ne++)ce[ne]=String.fromCharCode(X[ne]);return ce.join("")}function k(N){if(N.slice)return N.slice(0);var X=new Uint8Array(N.byteLength);return X.set(new Uint8Array(N)),X.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(N){this._bodyInit=N,N?typeof N=="string"?this._bodyText=N:l.blob&&Blob.prototype.isPrototypeOf(N)?this._bodyBlob=N:l.formData&&FormData.prototype.isPrototypeOf(N)?this._bodyFormData=N:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(N)?this._bodyText=N.toString():l.arrayBuffer&&l.blob&&c(N)?(this._bodyArrayBuffer=k(N.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(N)||f(N))?this._bodyArrayBuffer=k(N):this._bodyText=N=Object.prototype.toString.call(N):this._bodyText="",this.headers.get("content-type")||(typeof N=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(N)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var N=y(this);if(N)return N;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(_)}),this.text=function(){var N=y(this);if(N)return N;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function T(N){var X=N.toUpperCase();return R.indexOf(X)>-1?X:N}function A(N,X){X=X||{};var ce=X.body;if(N instanceof A){if(N.bodyUsed)throw new TypeError("Already read");this.url=N.url,this.credentials=N.credentials,X.headers||(this.headers=new b(N.headers)),this.method=N.method,this.mode=N.mode,this.signal=N.signal,!ce&&N._bodyInit!=null&&(ce=N._bodyInit,N.bodyUsed=!0)}else this.url=String(N);if(this.credentials=X.credentials||this.credentials||"same-origin",(X.headers||!this.headers)&&(this.headers=new b(X.headers)),this.method=T(X.method||this.method||"GET"),this.mode=X.mode||this.mode||null,this.signal=X.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ce)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ce)}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function M(N){var X=new FormData;return N.trim().split("&").forEach(function(ce){if(ce){var ne=ce.split("="),ee=ne.shift().replace(/\+/g," "),ge=ne.join("=").replace(/\+/g," ");X.append(decodeURIComponent(ee),decodeURIComponent(ge))}}),X}function B(N){var X=new b,ce=N.replace(/\r?\n[\t ]+/g," ");return ce.split(/\r?\n/).forEach(function(ne){var ee=ne.split(":"),ge=ee.shift().trim();if(ge){var Z=ee.join(":").trim();X.append(ge,Z)}}),X}E.call(A.prototype);function Q(N,X){X||(X={}),this.type="default",this.status=X.status===void 0?200:X.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in X?X.statusText:"OK",this.headers=new b(X.headers),this.url=X.url||"",this._initBody(N)}E.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},Q.error=function(){var N=new Q(null,{status:0,statusText:""});return N.type="error",N};var se=[301,302,303,307,308];Q.redirect=function(N,X){if(se.indexOf(X)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:X,headers:{location:N}})},a.DOMException=o.DOMException;try{new a.DOMException}catch{a.DOMException=function(X,ce){this.message=X,this.name=ce;var ne=Error(X);this.stack=ne.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function ie(N,X){return new Promise(function(ce,ne){var ee=new A(N,X);if(ee.signal&&ee.signal.aborted)return ne(new a.DOMException("Aborted","AbortError"));var ge=new XMLHttpRequest;function Z(){ge.abort()}ge.onload=function(){var j={status:ge.status,statusText:ge.statusText,headers:B(ge.getAllResponseHeaders()||"")};j.url="responseURL"in ge?ge.responseURL:j.headers.get("X-Request-URL");var U="response"in ge?ge.response:ge.responseText;ce(new Q(U,j))},ge.onerror=function(){ne(new TypeError("Network request failed"))},ge.ontimeout=function(){ne(new TypeError("Network request failed"))},ge.onabort=function(){ne(new a.DOMException("Aborted","AbortError"))},ge.open(ee.method,ee.url,!0),ee.credentials==="include"?ge.withCredentials=!0:ee.credentials==="omit"&&(ge.withCredentials=!1),"responseType"in ge&&l.blob&&(ge.responseType="blob"),ee.headers.forEach(function(j,U){ge.setRequestHeader(U,j)}),ee.signal&&(ee.signal.addEventListener("abort",Z),ge.onreadystatechange=function(){ge.readyState===4&&ee.signal.removeEventListener("abort",Z)}),ge.send(typeof ee._bodyInit>"u"?null:ee._bodyInit)})}return ie.polyfill=!0,o.fetch||(o.fetch=ie,o.Headers=b,o.Request=A,o.Response=Q),a.Headers=b,a.Request=A,a.Response=Q,a.fetch=ie,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Jh,Jh.exports)),Jh.exports}var Nb=ade();const tb=mc(Nb),sde=o0({__proto__:null,default:tb},[Nb]),hd=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||sde&&Nb.Headers&&e instanceof Nb.Headers?t=tde(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):t=e),t},O2=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),lde=e=>{if(!Array.isArray(e.query)){const n=e,i=[`query=${encodeURIComponent(O2(n.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`),n.operationName&&i.push(`operationName=${encodeURIComponent(n.operationName)}`),i.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce((n,i,o)=>(n.push({query:O2(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[o]):void 0}),n),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`},ude=e=>async t=>{const{url:r,query:n,variables:i,operationName:o,fetch:a,fetchOptions:l,middleware:c}=t,d={...t.headers};let f="",p;e==="POST"?(p=dde(n,i,o,l.jsonSerializer),typeof p=="string"&&(d["Content-Type"]="application/json")):f=lde({query:n,variables:i,operationName:o,jsonSerializer:l.jsonSerializer??QE});const m={method:e,headers:d,body:p,...l};let g=r,b=m;if(c){const y=await Promise.resolve(c({...m,url:r,operationName:o,variables:i})),{url:w,..._}=y;g=w,b=_}return f&&(g=`${g}?${f}`),await a(g,b)};class cde{constructor(t,r={}){this.url=t,this.requestConfig=r,this.rawRequest=async(...n)=>{const[i,o,a]=n,l=nde(i,o,a),{headers:c,fetch:d=tb,method:f="POST",requestMiddleware:p,responseMiddleware:m,...g}=this.requestConfig,{url:b}=this;l.signal!==void 0&&(g.signal=l.signal);const{operationName:y}=y_(l.query);return b_({url:b,query:l.query,variables:l.variables,headers:{...hd(w_(c)),...hd(l.requestHeaders)},operationName:y,fetch:d,method:f,fetchOptions:g,middleware:p}).then(w=>(m&&m(w),w)).catch(w=>{throw m&&m(w),w})}}async request(t,...r){const[n,i]=r,o=rde(t,n,i),{headers:a,fetch:l=tb,method:c="POST",requestMiddleware:d,responseMiddleware:f,...p}=this.requestConfig,{url:m}=this;o.signal!==void 0&&(p.signal=o.signal);const{query:g,operationName:b}=y_(o.document);return b_({url:m,query:g,variables:o.variables,headers:{...hd(w_(a)),...hd(o.requestHeaders)},operationName:b,fetch:l,method:c,fetchOptions:p,middleware:d}).then(y=>(f&&f(y),y.data)).catch(y=>{throw f&&f(y),y})}batchRequests(t,r){const n=ide(t,r),{headers:i,...o}=this.requestConfig;n.signal!==void 0&&(o.signal=n.signal);const a=n.documents.map(({document:c})=>y_(c).query),l=n.documents.map(({variables:c})=>c);return b_({url:this.url,query:a,variables:l,headers:{...hd(w_(i)),...hd(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??tb,method:this.requestConfig.method||"POST",fetchOptions:o,middleware:this.requestConfig.requestMiddleware}).then(c=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(c),c.data)).catch(c=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(c),c})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const b_=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=ude(ede(e.method??"post")),o=Array.isArray(e.query),a=await i(e),l=await fde(a,n.jsonSerializer??QE),c=Array.isArray(l)?!l.some(({data:f})=>!f):!!l.data,d=Array.isArray(l)||!l.errors||Array.isArray(l.errors)&&!l.errors.length||n.errorPolicy==="all"||n.errorPolicy==="ignore";if(a.ok&&d&&c){const{errors:f,...p}=(Array.isArray(l),l),m=n.errorPolicy==="ignore"?p:l;return{...o?{data:m}:m,headers:a.headers,status:a.status}}else{const f=typeof l=="string"?{error:l}:l;throw new Sp({...f,status:a.status,headers:a.headers},{query:t,variables:r})}},dde=(e,t,r,n)=>{const i=n??QE;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const o=e.reduce((a,l,c)=>(a.push({query:l,variables:t?t[c]:void 0}),a),[]);return i.stringify(o)},fde=async(e,t)=>{let r;return e.headers.forEach((n,i)=>{i.toLowerCase()==="content-type"&&(r=n)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},w_=e=>typeof e=="function"?e():e;Ne`
443
443
  fragment PageInfo on PageInfo {
444
444
  startCursor
445
445
  hasNextPage
@@ -987,7 +987,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
987
987
  }
988
988
  ${au}
989
989
  ${ns}
990
- `,efe=(e,t,r,n)=>e();function tfe(e,t=efe){return{confirmEmailCode(r,n){return t(i=>e.request(gde,r,{...n,...i}),"confirmEmailCode","mutation",r)},loginGithub(r,n){return t(i=>e.request(yde,r,{...n,...i}),"loginGithub","mutation",r)},loginGoogle(r,n){return t(i=>e.request(bde,r,{...n,...i}),"loginGoogle","mutation",r)},login(r,n){return t(i=>e.request(wde,r,{...n,...i}),"login","mutation",r)},signUp(r,n){return t(i=>e.request(Sde,r,{...n,...i}),"signUp","mutation",r)},setUsername(r,n){return t(i=>e.request(_de,r,{...n,...i}),"setUsername","mutation",r)},configuration(r,n){return t(i=>e.request(xde,r,{...n,...i}),"configuration","query",r)},getMe(r,n){return t(i=>e.request(Pde,r,{...n,...i}),"getMe","query",r)},CreateBranchByRevisionIdMst(r,n){return t(i=>e.request(Cde,r,{...n,...i}),"CreateBranchByRevisionIdMst","mutation",r)},CreateEndpointMst(r,n){return t(i=>e.request(Ede,r,{...n,...i}),"CreateEndpointMst","mutation",r)},CreateProjectMst(r,n){return t(i=>e.request(Tde,r,{...n,...i}),"CreateProjectMst","mutation",r)},CreateRevisionMst(r,n){return t(i=>e.request(Ode,r,{...n,...i}),"CreateRevisionMst","mutation",r)},CreateRowMst(r,n){return t(i=>e.request(Rde,r,{...n,...i}),"CreateRowMst","mutation",r)},CreateTableMst(r,n){return t(i=>e.request(Ide,r,{...n,...i}),"CreateTableMst","mutation",r)},DeleteEndpointMst(r,n){return t(i=>e.request(kde,r,{...n,...i}),"DeleteEndpointMst","mutation",r)},DeleteProjectMst(r,n){return t(i=>e.request(jde,r,{...n,...i}),"DeleteProjectMst","mutation",r)},DeleteRowMst(r,n){return t(i=>e.request($de,r,{...n,...i}),"DeleteRowMst","mutation",r)},DeleteTableMst(r,n){return t(i=>e.request(Ade,r,{...n,...i}),"DeleteTableMst","mutation",r)},RenameRowMst(r,n){return t(i=>e.request(Dde,r,{...n,...i}),"RenameRowMst","mutation",r)},RenameTableMst(r,n){return t(i=>e.request(Mde,r,{...n,...i}),"RenameTableMst","mutation",r)},RevertChangesMst(r,n){return t(i=>e.request(Nde,r,{...n,...i}),"RevertChangesMst","mutation",r)},UpdateRowMst(r,n){return t(i=>e.request(Fde,r,{...n,...i}),"UpdateRowMst","mutation",r)},UpdateTableMst(r,n){return t(i=>e.request(Lde,r,{...n,...i}),"UpdateTableMst","mutation",r)},BranchMst(r,n){return t(i=>e.request(Bde,r,{...n,...i}),"BranchMst","query",r)},BranchesMst(r,n){return t(i=>e.request(Vde,r,{...n,...i}),"BranchesMst","query",r)},GetRowCountForeignKeysTo(r,n){return t(i=>e.request(zde,r,{...n,...i}),"GetRowCountForeignKeysTo","query",r)},meProjectsMst(r,n){return t(i=>e.request(qde,r,{...n,...i}),"meProjectsMst","query",r)},ProjectMst(r,n){return t(i=>e.request(Ude,r,{...n,...i}),"ProjectMst","query",r)},ProjectsMst(r,n){return t(i=>e.request(Hde,r,{...n,...i}),"ProjectsMst","query",r)},RevisionMst(r,n){return t(i=>e.request(Wde,r,{...n,...i}),"RevisionMst","query",r)},RevisionsMst(r,n){return t(i=>e.request(Kde,r,{...n,...i}),"RevisionsMst","query",r)},RowForeignKeysBy(r,n){return t(i=>e.request(Gde,r,{...n,...i}),"RowForeignKeysBy","query",r)},RowMst(r,n){return t(i=>e.request(Qde,r,{...n,...i}),"RowMst","query",r)},RowsMst(r,n){return t(i=>e.request(Yde,r,{...n,...i}),"RowsMst","query",r)},TableForeignKeysBy(r,n){return t(i=>e.request(Xde,r,{...n,...i}),"TableForeignKeysBy","query",r)},TableMst(r,n){return t(i=>e.request(Jde,r,{...n,...i}),"TableMst","query",r)},TablesMst(r,n){return t(i=>e.request(Zde,r,{...n,...i}),"TablesMst","query",r)}}}const rfe={BASE_URL:"/",DEV:!1,GIT_BRANCH_NAME:"HEAD",GIT_COMMIT_HASH:"df72e0a",MODE:"production",PACKAGE_VERSION:"0.11.0-alpha.5",PROD:!0,REACT_APP_ENDPOINT_HOST:"",REACT_APP_ENDPOINT_PORT:"",REACT_APP_ENDPOINT_SERVER_URL:"/endpoint",REACT_APP_GRAPHQL_SERVER_URL:"/graphql",REACT_APP_SWAGGER_SERVER_URL:"/api",SSR:!1};class Fb{constructor(){}get(t){var i;const r=(i=window.__env__)==null?void 0:i[t],n=rfe[t];return r||n}}dt.register(Fb,()=>new Fb,{scope:"singleton"});class es{constructor(t){Pe(this,"graphQLClient");Pe(this,"client");this.environmentService=t;const r=this.environmentService.get("REACT_APP_GRAPHQL_SERVER_URL");if(!r)throw new Error("Invalid REACT_APP_GRAPHQL_SERVER_URL");this.graphQLClient=new cde(r,{responseMiddleware:n=>{var o;const i=(o=n.response)==null?void 0:o.errors[0].message;return i&&KE({status:"error",variant:"left-accent",colorScheme:"red",duration:3e3,isClosable:!0,position:"top",description:i}),n}}),this.client=tfe(this.graphQLClient)}setToken(t){this.graphQLClient.setHeaders(t?{Authorization:`Bearer ${t}`}:{})}}dt.register(es,()=>{const e=dt.get(Fb);return new es(e)},{scope:"singleton"});const S_="token";class qi{constructor(t,r){Pe(this,"isLoaded",!1);Pe(this,"user",null);Pe(this,"token",null);this.storage=t,this.apiService=r,st(this),this.init()}async setToken(t){this.token=t,this.apiService.setToken(this.token),this.token&&await this.fetchMe()}async init(){await this.setToken(this.loadToken()),this.signToToken(),this.setIsChecked(!0)}loadToken(){return this.storage.getItem(S_)}async fetchMe(){try{const t=await this.apiService.client.getMe();this.user=t.me}catch(t){console.error(t),Hp(()=>{this.token=null})}}setIsChecked(t){this.isLoaded=t}signToToken(){Ya(()=>this.token,t=>{t?this.storage.setItem(S_,t):this.storage.removeItem(S_)})}logout(){this.token=null,this.user=null,this.apiService.setToken(null)}}dt.register(qi,()=>{const e=dt.get(es);return new qi(localStorage,e)},{scope:"singleton"});class dc{constructor(t){Pe(this,"isLoaded",!1);Pe(this,"error",null);Pe(this,"data",null);this.apiService=t,st(this),this.init()}get availableSignUp(){return this.availableEmailSignUp||this.availableGoogleOauth||this.availableGithubOauth}get availableEmailSignUp(){var t;return(t=this.data)==null?void 0:t.availableEmailSignUp}get availableGoogleOauth(){var t;return!!((t=this.data)!=null&&t.google.available)}get googleOauthClientId(){var t,r;if(!((t=this.data)!=null&&t.google.clientId))throw new Error("Invalid Google client id");return(r=this.data)==null?void 0:r.google.clientId}get availableGithubOauth(){var t;return!!((t=this.data)!=null&&t.github.available)}get githubOauthClientId(){var t,r;if(!((t=this.data)!=null&&t.github.clientId))throw new Error("Invalid Github client id");return(r=this.data)==null?void 0:r.github.clientId}async init(){await this.request()}async request(){try{const t=await this.apiService.client.configuration();this.setData(t.configuration)}catch(t){this.setError(t),console.error(t)}finally{this.setIsLoaded(!0)}}setData(t){this.data=t}setError(t){this.error=t}setIsLoaded(t){this.isLoaded=t}}dt.register(dc,()=>{const e=dt.get(es);return new dc(e)},{scope:"singleton"});class Lb{constructor(t,r){this.authService=t,this.configurationService=r,st(this)}get isLoaded(){return this.authService.isLoaded&&this.configurationService.isLoaded}}dt.register(Lb,()=>{const e=dt.get(qi),t=dt.get(dc);return new Lb(e,t)},{scope:"singleton"});var R2={},nfe="warn";function ife(){return nfe}var jn;(function(e){e.afterCreate="afterCreate",e.afterAttach="afterAttach",e.afterCreationFinalization="afterCreationFinalization",e.beforeDetach="beforeDetach",e.beforeDestroy="beforeDestroy"})(jn||(jn={}));/*! *****************************************************************************
990
+ `,efe=(e,t,r,n)=>e();function tfe(e,t=efe){return{confirmEmailCode(r,n){return t(i=>e.request(gde,r,{...n,...i}),"confirmEmailCode","mutation",r)},loginGithub(r,n){return t(i=>e.request(yde,r,{...n,...i}),"loginGithub","mutation",r)},loginGoogle(r,n){return t(i=>e.request(bde,r,{...n,...i}),"loginGoogle","mutation",r)},login(r,n){return t(i=>e.request(wde,r,{...n,...i}),"login","mutation",r)},signUp(r,n){return t(i=>e.request(Sde,r,{...n,...i}),"signUp","mutation",r)},setUsername(r,n){return t(i=>e.request(_de,r,{...n,...i}),"setUsername","mutation",r)},configuration(r,n){return t(i=>e.request(xde,r,{...n,...i}),"configuration","query",r)},getMe(r,n){return t(i=>e.request(Pde,r,{...n,...i}),"getMe","query",r)},CreateBranchByRevisionIdMst(r,n){return t(i=>e.request(Cde,r,{...n,...i}),"CreateBranchByRevisionIdMst","mutation",r)},CreateEndpointMst(r,n){return t(i=>e.request(Ede,r,{...n,...i}),"CreateEndpointMst","mutation",r)},CreateProjectMst(r,n){return t(i=>e.request(Tde,r,{...n,...i}),"CreateProjectMst","mutation",r)},CreateRevisionMst(r,n){return t(i=>e.request(Ode,r,{...n,...i}),"CreateRevisionMst","mutation",r)},CreateRowMst(r,n){return t(i=>e.request(Rde,r,{...n,...i}),"CreateRowMst","mutation",r)},CreateTableMst(r,n){return t(i=>e.request(Ide,r,{...n,...i}),"CreateTableMst","mutation",r)},DeleteEndpointMst(r,n){return t(i=>e.request(kde,r,{...n,...i}),"DeleteEndpointMst","mutation",r)},DeleteProjectMst(r,n){return t(i=>e.request(jde,r,{...n,...i}),"DeleteProjectMst","mutation",r)},DeleteRowMst(r,n){return t(i=>e.request($de,r,{...n,...i}),"DeleteRowMst","mutation",r)},DeleteTableMst(r,n){return t(i=>e.request(Ade,r,{...n,...i}),"DeleteTableMst","mutation",r)},RenameRowMst(r,n){return t(i=>e.request(Dde,r,{...n,...i}),"RenameRowMst","mutation",r)},RenameTableMst(r,n){return t(i=>e.request(Mde,r,{...n,...i}),"RenameTableMst","mutation",r)},RevertChangesMst(r,n){return t(i=>e.request(Nde,r,{...n,...i}),"RevertChangesMst","mutation",r)},UpdateRowMst(r,n){return t(i=>e.request(Fde,r,{...n,...i}),"UpdateRowMst","mutation",r)},UpdateTableMst(r,n){return t(i=>e.request(Lde,r,{...n,...i}),"UpdateTableMst","mutation",r)},BranchMst(r,n){return t(i=>e.request(Bde,r,{...n,...i}),"BranchMst","query",r)},BranchesMst(r,n){return t(i=>e.request(Vde,r,{...n,...i}),"BranchesMst","query",r)},GetRowCountForeignKeysTo(r,n){return t(i=>e.request(zde,r,{...n,...i}),"GetRowCountForeignKeysTo","query",r)},meProjectsMst(r,n){return t(i=>e.request(qde,r,{...n,...i}),"meProjectsMst","query",r)},ProjectMst(r,n){return t(i=>e.request(Ude,r,{...n,...i}),"ProjectMst","query",r)},ProjectsMst(r,n){return t(i=>e.request(Hde,r,{...n,...i}),"ProjectsMst","query",r)},RevisionMst(r,n){return t(i=>e.request(Wde,r,{...n,...i}),"RevisionMst","query",r)},RevisionsMst(r,n){return t(i=>e.request(Kde,r,{...n,...i}),"RevisionsMst","query",r)},RowForeignKeysBy(r,n){return t(i=>e.request(Gde,r,{...n,...i}),"RowForeignKeysBy","query",r)},RowMst(r,n){return t(i=>e.request(Qde,r,{...n,...i}),"RowMst","query",r)},RowsMst(r,n){return t(i=>e.request(Yde,r,{...n,...i}),"RowsMst","query",r)},TableForeignKeysBy(r,n){return t(i=>e.request(Xde,r,{...n,...i}),"TableForeignKeysBy","query",r)},TableMst(r,n){return t(i=>e.request(Jde,r,{...n,...i}),"TableMst","query",r)},TablesMst(r,n){return t(i=>e.request(Zde,r,{...n,...i}),"TablesMst","query",r)}}}const rfe={BASE_URL:"/",DEV:!1,GIT_BRANCH_NAME:"HEAD",GIT_COMMIT_HASH:"712ebec",MODE:"production",PACKAGE_VERSION:"1.0.1",PROD:!0,REACT_APP_ENDPOINT_HOST:"",REACT_APP_ENDPOINT_PORT:"",REACT_APP_ENDPOINT_SERVER_URL:"/endpoint",REACT_APP_GRAPHQL_SERVER_URL:"/graphql",REACT_APP_SWAGGER_SERVER_URL:"/api",SSR:!1};class Fb{constructor(){}get(t){var i;const r=(i=window.__env__)==null?void 0:i[t],n=rfe[t];return r||n}}dt.register(Fb,()=>new Fb,{scope:"singleton"});class es{constructor(t){Pe(this,"graphQLClient");Pe(this,"client");this.environmentService=t;const r=this.environmentService.get("REACT_APP_GRAPHQL_SERVER_URL");if(!r)throw new Error("Invalid REACT_APP_GRAPHQL_SERVER_URL");this.graphQLClient=new cde(r,{responseMiddleware:n=>{var o;const i=(o=n.response)==null?void 0:o.errors[0].message;return i&&KE({status:"error",variant:"left-accent",colorScheme:"red",duration:3e3,isClosable:!0,position:"top",description:i}),n}}),this.client=tfe(this.graphQLClient)}setToken(t){this.graphQLClient.setHeaders(t?{Authorization:`Bearer ${t}`}:{})}}dt.register(es,()=>{const e=dt.get(Fb);return new es(e)},{scope:"singleton"});const S_="token";class qi{constructor(t,r){Pe(this,"isLoaded",!1);Pe(this,"user",null);Pe(this,"token",null);this.storage=t,this.apiService=r,st(this),this.init()}async setToken(t){this.token=t,this.apiService.setToken(this.token),this.token&&await this.fetchMe()}async init(){await this.setToken(this.loadToken()),this.signToToken(),this.setIsChecked(!0)}loadToken(){return this.storage.getItem(S_)}async fetchMe(){try{const t=await this.apiService.client.getMe();this.user=t.me}catch(t){console.error(t),Hp(()=>{this.token=null})}}setIsChecked(t){this.isLoaded=t}signToToken(){Ya(()=>this.token,t=>{t?this.storage.setItem(S_,t):this.storage.removeItem(S_)})}logout(){this.token=null,this.user=null,this.apiService.setToken(null)}}dt.register(qi,()=>{const e=dt.get(es);return new qi(localStorage,e)},{scope:"singleton"});class dc{constructor(t){Pe(this,"isLoaded",!1);Pe(this,"error",null);Pe(this,"data",null);this.apiService=t,st(this),this.init()}get availableSignUp(){return this.availableEmailSignUp||this.availableGoogleOauth||this.availableGithubOauth}get availableEmailSignUp(){var t;return(t=this.data)==null?void 0:t.availableEmailSignUp}get availableGoogleOauth(){var t;return!!((t=this.data)!=null&&t.google.available)}get googleOauthClientId(){var t,r;if(!((t=this.data)!=null&&t.google.clientId))throw new Error("Invalid Google client id");return(r=this.data)==null?void 0:r.google.clientId}get availableGithubOauth(){var t;return!!((t=this.data)!=null&&t.github.available)}get githubOauthClientId(){var t,r;if(!((t=this.data)!=null&&t.github.clientId))throw new Error("Invalid Github client id");return(r=this.data)==null?void 0:r.github.clientId}async init(){await this.request()}async request(){try{const t=await this.apiService.client.configuration();this.setData(t.configuration)}catch(t){this.setError(t),console.error(t)}finally{this.setIsLoaded(!0)}}setData(t){this.data=t}setError(t){this.error=t}setIsLoaded(t){this.isLoaded=t}}dt.register(dc,()=>{const e=dt.get(es);return new dc(e)},{scope:"singleton"});class Lb{constructor(t,r){this.authService=t,this.configurationService=r,st(this)}get isLoaded(){return this.authService.isLoaded&&this.configurationService.isLoaded}}dt.register(Lb,()=>{const e=dt.get(qi),t=dt.get(dc);return new Lb(e,t)},{scope:"singleton"});var R2={},nfe="warn";function ife(){return nfe}var jn;(function(e){e.afterCreate="afterCreate",e.afterAttach="afterAttach",e.afterCreationFinalization="afterCreationFinalization",e.beforeDetach="beforeDetach",e.beforeDestroy="beforeDestroy"})(jn||(jn={}));/*! *****************************************************************************
991
991
  Copyright (c) Microsoft Corporation.
992
992
 
993
993
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1353,7 +1353,7 @@ PERFORMANCE OF THIS SOFTWARE.
1353
1353
  mutation DeleteProjectMst($data: DeleteProjectInput!) {
1354
1354
  deleteProject(data: $data)
1355
1355
  }
1356
- `,ybe=async e=>{const t=await xr.mutate({mutation:gbe,variables:e});if(!t.data)throw t.errors;return t.data};class bbe{constructor(t,r,n){this.rootStore=t,this.organizationId=r,this.projectName=n}async execute(){const t=await this.deleteProjectRequest();return await this.updateProjectsConnection(),t}async deleteProjectRequest(){const{deleteProject:t}=await ybe({data:{organizationId:this.organizationId,projectName:this.projectName}});return t}async updateProjectsConnection(){const t=this.rootStore.cache.organization.get(this.organizationId),r=t==null?void 0:t.projectsConnection.edges.find(n=>n.node.name===this.projectName);t==null||t.projectsConnection.removeEdge(r==null?void 0:r.cursor)}}class wbe{constructor(t){this.rootStore=t}async delete(t,r){try{return await new bbe(this.rootStore,t,r).execute()}catch(n){return console.error(n),!1}}init(){}dispose(){}}const Sbe=()=>{const[e]=O.useState(()=>new wbe(ct));return O.useEffect(()=>(e.init(),()=>e.dispose()),[e]),e},_be=Ot(({organizationId:e,projectName:t})=>{const r=Sbe(),[n,i]=O.useState(!1),o=O.useCallback(async()=>{i(!0),await r.delete(e,t),i(!1)},[r,e,t]);return x.jsx(Ci,{"data-testid":`remove-project-${t}-button`,_hover:{backgroundColor:"gray.100"},"aria-label":"removeTable",color:"gray.400",icon:x.jsx(J0,{}),isLoading:n,variant:"ghost",onClick:o})});class xbe{constructor(t){this.rootStore=t,st(this,{},{autoBind:!0}),this.init()}get totalCount(){return this.meProjects.edges.length}get hasNextPage(){return this.meProjects.availableNextPage}get items(){return this.meProjects.edges.map(({node:t})=>({id:t.id,name:t.name,organizationId:t.organization.id,touched:t.rootBranch.touched,link:Pbe(t)}))}get meProjects(){return this.rootStore.cache.meProjectsConnection}tryToFetchNextPage(){this.hasNextPage&&this.rootStore.backend.queryMeProjects({first:100})}init(){}dispose(){}}const Pbe=e=>ao(`/${Fl}/${Ll}/${Bl}/${Vl}${e.rootBranch.touched?`/${X0}`:""}`,{organizationId:e.organization.id,projectName:e.name,branchName:e.rootBranch.name}),Cbe=()=>{const[e]=O.useState(()=>new xbe(ct));return O.useEffect(()=>(e.init(),()=>e.dispose()),[e]),e},Ebe="_Row_1lkxi_1",Tbe="_RemoveRowButton_1lkxi_1",vA={Row:Ebe,RemoveRowButton:Tbe},Obe=Ot(()=>{const e=Cbe();return x.jsx(pw,{useWindowScroll:!0,totalCount:e.totalCount,defaultItemHeight:40,endReached:e.hasNextPage?e.tryToFetchNextPage:void 0,itemContent:t=>{const r=e.items[t];return x.jsx(wt,{height:"2.5rem",width:"100%",children:x.jsx(je,{_hover:{backgroundColor:"gray.50"},alignItems:"center",className:vA.Row,gap:"4px",paddingLeft:"1rem","data-testid":`project-${r.name}`,children:x.jsxs(je,{alignItems:"center",flex:1,justifyContent:"space-between",minHeight:"40px",children:[x.jsxs(je,{minWidth:"150px",children:[x.jsxs(je,{gap:"4px",children:[x.jsx(bt,{color:"gray.300",children:r.organizationId}),x.jsx(bt,{color:"gray.300",children:"/"}),x.jsx(bt,{_hover:{textDecoration:"underline"},children:x.jsx(qo,{to:r.link,"data-testid":`project-${r.organizationId}-${r.name}-link`,children:r.name})})]}),r.touched?"*":""]}),x.jsx(wt,{className:vA.RemoveRowButton,children:x.jsx(_be,{organizationId:r.organizationId,projectName:r.name})})]})})},r.id)}})}),Rbe=()=>{const[e,t]=PV(!1),r=O.useCallback(()=>{t()},[t]);return x.jsx($f,{title:x.jsx(wt,{height:"40px"}),children:x.jsx(je,{flexDirection:"column",gap:"0.5rem",paddingBottom:"1rem",children:e?x.jsx(Hge,{onAdd:r,onCancel:t}):x.jsxs(x.Fragment,{children:[x.jsx(Lge,{onClick:t}),x.jsx(Obe,{})]})})})};var Le=(e=>(e.String="string",e.Number="number",e.Boolean="boolean",e.Object="object",e.Array="array",e))(Le||{}),zn=(e=>(e.Tree="Tree",e.Json="Json",e.RefBy="RefBy",e))(zn||{}),hc=(e=>(e.File="urn:jsonschema:io:revisium:file-schema:1.0.0",e))(hc||{});const nv=e=>{if(e==="urn:jsonschema:io:revisium:file-schema:1.0.0")return"File"},Ibe={type:Le.Object,properties:{status:{type:Le.String,default:"",readOnly:!0},fileId:{type:Le.String,default:"",readOnly:!0},url:{type:Le.String,default:"",readOnly:!0},fileName:{type:Le.String,default:""},hash:{type:Le.String,default:"",readOnly:!0},extension:{type:Le.String,default:"",readOnly:!0},mimeType:{type:Le.String,default:"",readOnly:!0},size:{type:Le.Number,default:0,readOnly:!0},width:{type:Le.Number,default:0,readOnly:!0},height:{type:Le.Number,default:0,readOnly:!0}},required:["status","fileId","url","fileName","hash","extension","mimeType","size","width","height"],additionalProperties:!1},p3={[hc.File]:Ibe};function kbe(e){throw new Error("[mobx-utils] "+e)}function Gb(e,t){t===void 0&&(t="Illegal state"),e||kbe(t)}var m3=function(e){return e&&e!==Object.prototype&&Object.getOwnPropertyNames(e).concat(m3(Object.getPrototypeOf(e))||[])},jbe=function(e){var t=m3(e),r=t.filter(function(n,i){return t.indexOf(n)===i});return r},gA=function(e){return jbe(e).filter(function(t){return t!=="constructor"&&!~t.indexOf("__")})},BP="pending",Qb="fulfilled",gT="rejected";function $be(e){switch(this.state){case BP:return e.pending&&e.pending(this.value);case gT:return e.rejected&&e.rejected(this.value);case Qb:return e.fulfilled?e.fulfilled(this.value):this.value}}function yA(e,t){if(Gb(arguments.length<=2,"fromPromise expects up to two arguments"),Gb(typeof e=="function"||typeof e=="object"&&e&&typeof e.then=="function","Please pass a promise or function to fromPromise"),e.isPromiseBasedObservable===!0)return e;typeof e=="function"&&(e=new Promise(e));var r=e;e.then(Sr("observableFromPromise-resolve",function(i){r.value=i,r.state=Qb}),Sr("observableFromPromise-reject",function(i){r.value=i,r.state=gT})),r.isPromiseBasedObservable=!0,r.case=$be;var n=t&&(t.state===Qb||t.state===BP)?t.value:void 0;return lE(r,{value:n,state:BP},{},{deep:!1}),r}(function(e){e.reject=Sr("fromPromise.reject",function(r){var n=e(Promise.reject(r));return n.state=gT,n.value=r,n});function t(r){r===void 0&&(r=void 0);var n=e(Promise.resolve(r));return n.state=Qb,n.value=r,n}e.resolve=Sr("fromPromise.resolve",t)})(yA||(yA={}));var kg=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o};(function(){function e(t,r){var n=this;Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"subscription",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),D0(this),Hp(function(){n.current=r,n.subscription=t.subscribe(n)})}return Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.subscription&&this.subscription.unsubscribe()}}),Object.defineProperty(e.prototype,"next",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.current=t}}),Object.defineProperty(e.prototype,"complete",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.dispose()}}),Object.defineProperty(e.prototype,"error",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.current=t,this.dispose()}}),kg([er.ref],e.prototype,"current",void 0),kg([Sr.bound],e.prototype,"next",null),kg([Sr.bound],e.prototype,"complete",null),kg([Sr.bound],e.prototype,"error",null),e})();var Yb=function(){return Yb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yb.apply(this,arguments)},Lh=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Abe=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"],Dbe=function(){function e(t){var r=this;Object.defineProperty(this,"model",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"localValues",{enumerable:!0,configurable:!0,writable:!0,value:er.map({})}),Object.defineProperty(this,"localComputedValues",{enumerable:!0,configurable:!0,writable:!0,value:er.map({})}),Object.defineProperty(this,"isPropertyDirty",{enumerable:!0,configurable:!0,writable:!0,value:function(i){return r.localValues.has(i)}}),D0(this),Gb(Gi(t),"createViewModel expects an observable object");var n=gA(this);gA(t).forEach(function(i){var o;if(!n.includes(i)&&!(i===ut||i==="__mobxDidRunLazyInitializers")){if(Gb(Abe.indexOf(i)===-1,"The propertyname "+i+" is reserved and cannot be used with viewModels"),H1(t,i)){var a=ma(t,i),l=a.derivation.bind(r),c=(o=a.setter_)===null||o===void 0?void 0:o.bind(r);r.localComputedValues.set(i,dn(l,{set:c}))}var d=Object.getOwnPropertyDescriptor(t,i),f=d?{enumerable:d.enumerable}:{};Object.defineProperty(r,i,Yb(Yb({},f),{configurable:!0,get:function(){return H1(t,i)?r.localComputedValues.get(i).get():r.isPropertyDirty(i)?r.localValues.get(i):r.model[i]},set:Sr(function(p){H1(t,i)?r.localComputedValues.get(i).set(p):p!==r.model[i]?r.localValues.set(i,p):r.localValues.delete(i)})}))}})}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedValues",{get:function(){return new Map(this.localValues)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"submit",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;Kp(this.localValues).forEach(function(r){var n=t.localValues.get(r),i=t.model[r];Uo(i)?i.replace(n):Ki(i)?(i.clear(),i.merge(n)):Aie(n)||(t.model[r]=n)}),this.localValues.clear()}}),Object.defineProperty(e.prototype,"reset",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.localValues.clear()}}),Object.defineProperty(e.prototype,"resetProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.localValues.delete(t)}}),Lh([dn],e.prototype,"isDirty",null),Lh([dn],e.prototype,"changedValues",null),Lh([Sr.bound],e.prototype,"submit",null),Lh([Sr.bound],e.prototype,"reset",null),Lh([Sr.bound],e.prototype,"resetProperty",null),e}();function kc(e){return new Dbe(e)}var Mbe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();(function(e){Mbe(t,e);function t(r,n,i){var o=i===void 0?{}:i,a=o.name,l=a===void 0?"ogm"+(Math.random()*1e3|0):a,c=o.keyToName,d=c===void 0?function(m){return""+m}:c,f=e.call(this)||this;Object.defineProperty(f,"_base",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(f,"_ogmInfoKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(f,"_groupBy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(f,"_keyToName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(f,"_disposeBaseObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),f._keyToName=d,f._groupBy=n,f._ogmInfoKey=Symbol("ogmInfo"+l),f._base=r;for(var p=0;p<r.length;p++)f._addItem(r[p]);return f._disposeBaseObserver=A0(f._base,function(m){if(m.type==="splice")la(function(){for(var g=0,b=m.removed;g<b.length;g++){var y=b[g];f._removeItem(y)}for(var w=0,_=m.added;w<_.length;w++){var S=_[w];f._addItem(S)}});else if(m.type==="update")la(function(){f._removeItem(m.oldValue),f._addItem(m.newValue)});else throw new Error("illegal state")}),f}return Object.defineProperty(t.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(r){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(r,n){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._disposeBaseObserver();for(var r=0;r<this._base.length;r++){var n=this._base[r],i=n[this._ogmInfoKey];i.reaction(),delete n[this._ogmInfoKey]}}}),Object.defineProperty(t.prototype,"_getGroupArr",{enumerable:!1,configurable:!0,writable:!0,value:function(r){var n=e.prototype.get.call(this,r);return n===void 0&&(n=er([],{name:"GroupArray["+this._keyToName(r)+"]",deep:!1}),e.prototype.set.call(this,r,n)),n}}),Object.defineProperty(t.prototype,"_removeFromGroupArr",{enumerable:!1,configurable:!0,writable:!0,value:function(r,n){var i=e.prototype.get.call(this,r);i.length===1?e.prototype.delete.call(this,r):(n===i.length-1||(i[n]=i[i.length-1],i[n][this._ogmInfoKey].groupArrIndex=n),i.length--)}}),Object.defineProperty(t.prototype,"_addItem",{enumerable:!1,configurable:!0,writable:!0,value:function(r){var n=this,i=this._groupBy(r),o=this._getGroupArr(i),a={groupByValue:i,groupArrIndex:o.length,reaction:Ya(function(){return n._groupBy(r)},function(l,c){var d=r[n._ogmInfoKey];n._removeFromGroupArr(d.groupByValue,d.groupArrIndex);var f=n._getGroupArr(l),p=f.length;f.push(r),d.groupByValue=l,d.groupArrIndex=p})};Object.defineProperty(r,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:a}),o.push(r)}}),Object.defineProperty(t.prototype,"_removeItem",{enumerable:!1,configurable:!0,writable:!0,value:function(r){var n=r[this._ogmInfoKey];this._removeFromGroupArr(n.groupByValue,n.groupArrIndex),n.reaction(),delete r[this._ogmInfoKey]}}),t})(M0);var qs=(e=>(e.Object="object",e.Array="array",e.String="string",e.StringForeignKey="stringForeignKey",e.Number="number",e.Boolean="boolean",e))(qs||{});class pn{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.Object);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({id:"",properties:[],parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}get properties(){return this.state.model.properties}get draftProperties(){return this.state.properties}get addedProperties(){return this.draftProperties.filter(t=>!t.parent&&!this.properties.find(r=>r.nodeId===t.nodeId))}get removedProperties(){return this.properties.filter(t=>{const r=!this.draftProperties.find(n=>n.nodeId===t.nodeId);return!t.draftConnectedToParent&&r})}get notChangedProperties(){return this.properties.filter(t=>this.draftProperties.find(r=>r===t))}get replacedProperties(){return this.properties.filter(t=>this.draftProperties.find(r=>r.nodeId===t.nodeId&&r!==t)).map(t=>{const r=this.draftProperties.find(n=>n.nodeId===t.nodeId);if(!r)throw new Error("Invalid replacedProperties");return{previousProperty:t,currentProperty:r}})}get movedProperties(){return this.draftProperties.filter(t=>t.parent&&t.parent!==this)}get changedIdProperties(){return this.draftProperties.filter(t=>{const r=this.properties.find(n=>n.nodeId===t.nodeId);return r&&t.draftId!==r.id}).map(t=>{const r=this.properties.find(n=>n.nodeId===t.nodeId);if(!r)throw new Error("Invalid replacedProperties");return{previousProperty:r,currentProperty:t}})}getSchema(t){if(this.$ref)return{$ref:this.$ref};const r={},n=[];t!=null&&t.skipObjectProperties||this.state.properties.forEach(o=>{t!=null&&t.skipMovedBetweenParentsNodes&&o.parent!==o.draftParent||(o instanceof Jn||o instanceof pn?r[o.draftId]=o.getSchema(t):r[o.draftId]=o.getSchema(),n.push(o.draftId))});const i=n.sort((o,a)=>o.localeCompare(a));return{type:Le.Object,additionalProperties:!1,required:i,properties:r}}get isValid(){const t=new Set(this.state.properties.map(n=>n.draftId)).size===this.state.properties.length,r=this.state.properties.every(n=>n.isValid&&!!n.draftId);return t&&r}get isDirtyItself(){return this.state.isDirty}get isDirty(){return this.isDirtyItself||this.state.properties.some(t=>t.isDirty)}get showingCreateField(){return this.$ref?!1:!!this.state.id||!!this.state.parent}get isDisabledCreateField(){var n;const t=!!this.state.id||!this.state.id&&((n=this.state.parent)==null?void 0:n.type)===qs.Array,r=this.state.properties.every(i=>!!i.draftId);return!t||!r}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}removeProperty(t){const r=this.state.properties.findIndex(n=>n.nodeId===t);r!==-1&&(this.state.properties[r].onRemoveFromParent(),this.createIfNeededNextProperties(),this.state.properties.splice(r,1),this.resetIfNeededProperties())}addProperty(t,r=null){if(t.draftParent instanceof pn)t.draftParent.removeProperty(t.nodeId);else if(t.draftParent instanceof Jn)throw new Error("Invalid parent");t.setParent(this),this.createIfNeededNextProperties();const n=this.state.properties.findIndex(o=>o===(r==null?void 0:r.beforeNode)),i=this.state.properties.findIndex(o=>o===(r==null?void 0:r.afterNode));n!==-1?this.state.properties.splice(n,0,t):i!==-1?this.state.properties.splice(i+1,0,t):this.state.properties.push(t)}getProperty(t){const r=this.properties.find(n=>n.id===t);if(!r)throw new Error("Invalid id");return r}getDraftProperty(t){const r=this.draftProperties.find(n=>n.id===t);if(!r)throw new Error("Invalid id");return r}hasProperty(t){return!!this.state.properties.find(n=>n===t)}replaceProperty(t,r){const n=this.state.properties.findIndex(i=>i.nodeId===t.nodeId);n!==-1&&(t.onRemoveFromParent(),t.parent&&(r.setId(t.id),r.setParent(t.parent),r.submitChanges()),r.setId(t.draftId),r.setNodeId(t.nodeId),r.setParent(this),this.createIfNeededNextProperties(),this.state.properties.splice(n,1,r))}submitChanges(){this.state.submit();for(const t of this.state.properties)t.submitChanges()}resetChanges(){this.state.reset();for(const t of this.state.properties)t.resetChanges()}createIfNeededNextProperties(){this.state.isPropertyDirty("properties")||(this.state.properties=this.state.properties.slice())}resetIfNeededProperties(){const t=this.state.model.properties.map(n=>n.nodeId),r=this.state.properties.map(n=>n.nodeId);if(t.length===r.length){for(let n=0;n<t.length;n++)if(t[n]!==r[n])return;this.state.resetProperty("properties")}}}class Jn{constructor(t){Pe(this,"nodeId",nn());Pe(this,"type",qs.Array);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),t.setParent(this),t.submitChanges(),this.state=kc(er({id:"",items:t,parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}get items(){return this.state.model.items}get draftItems(){return this.state.items}getSchema(t){return this.$ref?{$ref:this.$ref}:{type:Le.Array,items:this.getItemsSchema(t)}}getItemsSchema(t){return this.state.items instanceof Jn?this.state.items.getSchema(t):this.state.items instanceof pn?this.state.items.getSchema(t):this.state.items.getSchema()}get isValid(){return this.state.items.isValid}get isDirtyItself(){return this.state.isDirty}get isDirty(){return this.isDirtyItself||this.state.items.isDirty}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}replaceItems(t){t.draftParent instanceof pn&&t.draftParent.removeProperty(t.nodeId),t.setNodeId(this.state.items.nodeId),t.setParent(this),this.state.items=t}submitChanges(){this.state.submit(),this.state.items.submitChanges()}resetChanges(){this.state.reset(),this.state.items.resetChanges()}}class Nbe{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.Boolean);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({id:"",parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}getSchema(){return this.$ref?{$ref:this.$ref}:{type:Le.Boolean,default:!1}}get isValid(){return!0}get isDirtyItself(){return this.state.isDirty}get isDirty(){return this.isDirtyItself}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}submitChanges(){this.state.submit()}resetChanges(){this.state.reset()}}class Fbe{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.Number);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({id:"",parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}getSchema(){return this.$ref?{$ref:this.$ref}:{type:Le.Number,default:0}}get isValid(){return!0}get isDirtyItself(){return this.state.isDirty}get isDirty(){return this.isDirtyItself}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}submitChanges(){this.state.submit()}resetChanges(){this.state.reset()}}class ec{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.String);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({id:"",foreignKey:null,parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return this.draftForeignKey?"foreign key":nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}get foreignKey(){return this.state.model.foreignKey}get draftForeignKey(){return this.state.foreignKey}getSchema(){var r,n;if(this.$ref)return{$ref:this.$ref};const t={type:Le.String,default:""};return(r=this.state.foreignKey)!=null&&r.draftForeignKey&&(t.foreignKey=(n=this.state.foreignKey)==null?void 0:n.draftForeignKey),t}get isValid(){return!(this.state.foreignKey&&!this.state.foreignKey.draftForeignKey)}get isDirtyItself(){return this.state.isDirty||!!(this.state.foreignKey&&this.state.foreignKey.isDirtyItself)}get isDirty(){return this.isDirtyItself}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}setForeignKey(t){this.state.foreignKey=t,t&&t.setParent(this)}submitChanges(){this.state.submit(),this.state.foreignKey&&this.state.foreignKey.submitChanges()}resetChanges(){this.state.reset(),this.state.foreignKey&&this.state.foreignKey.resetChanges()}}class Lbe{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.StringForeignKey);Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({foreignKey:null,parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}setNodeId(t){this.nodeId=t}get foreignKey(){return this.state.model.foreignKey}get draftForeignKey(){return this.state.foreignKey}get isDirtyItself(){return this.state.isDirty}setForeignKey(t){this.state.foreignKey=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}submitChanges(){this.state.submit()}resetChanges(){this.state.reset()}}const v3=e=>{if("$ref"in e){const t=p3[e.$ref];if(!t)throw new Error(`Schema refs must be defined ref$=${e.$ref}`);const r=v3(t);return r.$ref=e.$ref,r}switch(e.type){case Le.Object:{const t=new pn;return Object.entries(e.properties).forEach(([r,n])=>{const i=Ba(n);i.setId(r),t.addProperty(i)}),t}case Le.Array:{const t=Ba(e.items);return new Jn(t)}case Le.String:{const t=new ec;if(e.foreignKey!==void 0){const r=new Lbe;r.setForeignKey(e.foreignKey),t.setForeignKey(r)}return t}case Le.Number:return new Fbe;case Le.Boolean:return new Nbe}},Ba=e=>v3(e),Bbe=(e,t=!1)=>{let r="",n=e;for(;n.draftParent;)n.draftParent instanceof pn?r=`/properties/${n===e&&t?n.id:n.draftId}${r}`:n.draftParent instanceof Jn&&(r=`/items${r}`),n=n.draftParent;return r};function*Xb(e,t,r){if(yield*t(e),e instanceof pn)for(const n of e.draftProperties)yield*Xb(n,t);else e instanceof Jn&&(yield*Xb(e.draftItems,t))}function VP(e,t,r){let n=!0;if(r||(n=t(e)),!n)return!1;if(e instanceof pn)for(const i of e.draftProperties)VP(i,t);else e instanceof Jn&&VP(e.draftItems,t)}const Vbe=e=>[...Xb(e,function*(t){(t instanceof pn||t instanceof Jn)&&(yield t)})],g3=(e,t)=>e.draftParent?e===t?!0:g3(e.draftParent,t):!1,bA=e=>{const t=[];let r=e.draftParent;for(;r;)t.push(r),r=r.draftParent;return t},zbe=(e,t)=>{const r=bA(t),n=bA(e),i=r.find(a=>a instanceof Jn);return i?!n.find(a=>a===i):!1},Zh=(e,t)=>!(!t.draftParent||e===t||e===t.draftParent||g3(e,t)||zbe(e,t)),Tu=(e,t)=>{const r=[e];let n=e,i=Jb(e,t==null?void 0:t.preferDraftParent);for(;i;)r.push(i),n=i,i=Jb(n,t==null?void 0:t.preferDraftParent);return r},Bh=e=>{let t="",r=e[0];for(let n=1;n<e.length;n++){const i=e[n];i instanceof pn?t=`/properties/${y3(r,!1)}${t}`:i instanceof Jn&&(t=`/items${t}`),r=i}return t},wA=(e,t)=>{let r="",n=e,i=Jb(e,t==null?void 0:t.preferDraftParent);for(;i;)i instanceof pn?r=`/properties/${n===e&&t.preferStartWithNotDraftId?n.id:y3(n,t==null?void 0:t.preferDraftId)}${r}`:i instanceof Jn&&(r=`/items${r}`),n=i,i=Jb(n,t==null?void 0:t.preferDraftParent);return r},Jb=(e,t)=>t?e.draftParent||e.parent:e.parent||e.draftParent,y3=(e,t)=>t?e.draftId||e.id:e.id||e.draftId;class qbe{constructor(){Pe(this,"stack",[]);Pe(this,"setIdMap",new Set)}add(t){this.stack.push({node:t,op:"add",sequence:Tu(t,{preferDraftParent:!0})})}remove(t){const r=this.stack.findIndex(n=>n.node===t&&n.op==="add");this.deepRemovePatches(t),r===-1&&this.stack.push({node:t,op:"remove",sequence:Tu(t,{preferDraftParent:!0})})}replace(t,r){if(this.checkIfStringDuplicationInReplace(r))return;this.stack.findIndex(i=>i.node.nodeId===r.nodeId&&i.op==="add")!==-1?(this.deepRemovePatches(t,!1),this.stack.push({node:r,op:"add",sequence:Tu(r,{preferDraftParent:!0})})):(this.deepRemovePatches(t,!0),this.stack.push({node:r,op:"replace",sequence:Tu(r,{preferDraftParent:!0})}))}move(t){const r=this.stack.findIndex(i=>i.node===t&&i.op==="move");r!==-1&&this.stack.splice(r,1),t.parent===t.draftParent&&t.id===t.draftId||this.stack.push({node:t,op:"move",fromSequence:Tu(t,{preferDraftParent:!1}),toSequence:Tu(t,{preferDraftParent:!0})})}reset(){this.stack.length=0,this.setIdMap.clear()}getPatches(t){return[...this.getStackPatches(),...this.getMoveIdPatches(t)]}setId(t){this.setIdMap.add(t.nodeId)}getMoveIdPatches(t){const r=this;return[...Xb(t,function*(i){r.setIdMap.has(i.nodeId)&&i.draftParent instanceof pn&&(yield{op:"move",from:wA(i,{preferDraftParent:!0,preferDraftId:!0,preferStartWithNotDraftId:!0}),path:wA(i,{preferDraftParent:!0,preferDraftId:!0})})})]}getStackPatches(){return this.stack.map(t=>{switch(t.op){case"add":return{op:"add",path:Bh(t.sequence),value:t.node.getSchema({skipMovedBetweenParentsNodes:!0})};case"replace":return{op:"replace",path:Bh(t.sequence),value:t.node.getSchema({skipMovedBetweenParentsNodes:!0})};case"remove":return{op:"remove",path:Bh(t.sequence)};case"move":return{op:"move",from:Bh(t.fromSequence),path:Bh(t.toSequence)}}})}checkIfStringDuplicationInReplace(t){return!!(t.type===qs.String&&this.stack.find(n=>n.node===t))}deepRemovePatches(t,r){VP(t,n=>{let i=this.stack.findIndex(a=>a.node.nodeId===n.nodeId&&a.op!=="move");for(;i!==-1;)this.stack.splice(i,1),i=this.stack.findIndex(a=>a.node.nodeId===n.nodeId&&a.op!=="move");const o=this.stack.findIndex(a=>a.node.nodeId===n.nodeId&&a.op==="move");return o!==-1?(this.stack.splice(o,1,{node:n,op:"remove",sequence:Tu(n,{preferDraftParent:!1})}),this.deepRemovePatches(n,!0),!1):!0},r)}}class SA{constructor(t=new pn,r=""){Pe(this,"viewMode",zn.Tree);Pe(this,"state");Pe(this,"history",new qbe);st(this,{},{autoBind:!0}),this.state=kc(er({node:t,tableId:r}))}get node(){return this.state.node}get tableId(){return this.state.tableId}get draftTableId(){return this.state.node.draftId}get isApproveDisabled(){return!this.state.node.isValid||!this.state.node.isDirty}get isDirty(){return this.state.node.isDirty}get isDirtyItself(){return this.state.node.isDirtyItself}getPlainSchema(){return this.state.node.getSchema()}setViewMode(t){this.viewMode=t}getPatches(){return this.state.node!==this.state.model.node?[{op:"replace",path:"",value:this.state.node.getSchema()}]:[...this.history.getPatches(this.state.node)]}areThereDropTargets(t){return dn(()=>!!Vbe(this.state.node).filter(n=>Zh(n,t)).length).get()}replaceNode(t){this.state.node=t}submitChanges(){this.node.submitChanges(),this.state.tableId=this.node.id,this.state.submit(),this.history.reset()}resetChanges(){this.node.resetChanges(),this.history.reset()}setId(t,r){t.setId(r),t.parent&&this.history.setId(t)}addProperty(t,r,n=null){t.addProperty(r,n),r.parent?this.history.move(r):this.history.add(r)}removeProperty(t,r){t.removeProperty(r.nodeId),this.history.remove(r)}replaceProperty(t,r,n){t.replaceProperty(r,n),this.history.replace(r,n)}replaceItems(t,r){const n=t.draftItems;t.replaceItems(r),r.parent?this.history.move(r):this.history.replace(n,r)}setForeignKey(t,r){t.setForeignKey(r),this.history.replace(t,t)}setForeignKeyValue(t,r){t&&t.draftParent&&(t.setForeignKey(r),this.history.replace(t.draftParent,t.draftParent))}}const Ube=Ne`
1356
+ `,ybe=async e=>{const t=await xr.mutate({mutation:gbe,variables:e});if(!t.data)throw t.errors;return t.data};class bbe{constructor(t,r,n){this.rootStore=t,this.organizationId=r,this.projectName=n}async execute(){const t=await this.deleteProjectRequest();return await this.updateProjectsConnection(),await this.updateMeProjectsConnection(),t}async deleteProjectRequest(){const{deleteProject:t}=await ybe({data:{organizationId:this.organizationId,projectName:this.projectName}});return t}async updateProjectsConnection(){const t=this.rootStore.cache.organization.get(this.organizationId),r=t==null?void 0:t.projectsConnection.edges.find(n=>n.node.name===this.projectName);t==null||t.projectsConnection.removeEdge(r==null?void 0:r.cursor)}async updateMeProjectsConnection(){const t=this.rootStore.cache.meProjectsConnection.edges.find(r=>r.node.name===this.projectName);this.rootStore.cache.meProjectsConnection.removeEdge(t==null?void 0:t.cursor)}}class wbe{constructor(t){this.rootStore=t}async delete(t,r){try{return await new bbe(this.rootStore,t,r).execute()}catch(n){return console.error(n),!1}}init(){}dispose(){}}const Sbe=()=>{const[e]=O.useState(()=>new wbe(ct));return O.useEffect(()=>(e.init(),()=>e.dispose()),[e]),e},_be=Ot(({organizationId:e,projectName:t})=>{const r=Sbe(),[n,i]=O.useState(!1),o=O.useCallback(async()=>{i(!0),await r.delete(e,t),i(!1)},[r,e,t]);return x.jsx(Ci,{"data-testid":`remove-project-${t}-button`,_hover:{backgroundColor:"gray.100"},"aria-label":"removeTable",color:"gray.400",icon:x.jsx(J0,{}),isLoading:n,variant:"ghost",onClick:o})});class xbe{constructor(t){this.rootStore=t,st(this,{},{autoBind:!0}),this.init()}get totalCount(){return this.meProjects.edges.length}get hasNextPage(){return this.meProjects.availableNextPage}get items(){return this.meProjects.edges.map(({node:t})=>({id:t.id,name:t.name,organizationId:t.organization.id,touched:t.rootBranch.touched,link:Pbe(t)}))}get meProjects(){return this.rootStore.cache.meProjectsConnection}tryToFetchNextPage(){this.hasNextPage&&this.rootStore.backend.queryMeProjects({first:100})}init(){}dispose(){}}const Pbe=e=>ao(`/${Fl}/${Ll}/${Bl}/${Vl}${e.rootBranch.touched?`/${X0}`:""}`,{organizationId:e.organization.id,projectName:e.name,branchName:e.rootBranch.name}),Cbe=()=>{const[e]=O.useState(()=>new xbe(ct));return O.useEffect(()=>(e.init(),()=>e.dispose()),[e]),e},Ebe="_Row_1lkxi_1",Tbe="_RemoveRowButton_1lkxi_1",vA={Row:Ebe,RemoveRowButton:Tbe},Obe=Ot(()=>{const e=Cbe();return x.jsx(pw,{useWindowScroll:!0,totalCount:e.totalCount,defaultItemHeight:40,endReached:e.hasNextPage?e.tryToFetchNextPage:void 0,itemContent:t=>{const r=e.items[t];return x.jsx(wt,{height:"2.5rem",width:"100%",children:x.jsx(je,{_hover:{backgroundColor:"gray.50"},alignItems:"center",className:vA.Row,gap:"4px",paddingLeft:"1rem","data-testid":`project-${r.name}`,children:x.jsxs(je,{alignItems:"center",flex:1,justifyContent:"space-between",minHeight:"40px",children:[x.jsxs(je,{minWidth:"150px",children:[x.jsxs(je,{gap:"4px",children:[x.jsx(bt,{color:"gray.300",children:r.organizationId}),x.jsx(bt,{color:"gray.300",children:"/"}),x.jsx(bt,{_hover:{textDecoration:"underline"},children:x.jsx(qo,{to:r.link,"data-testid":`project-${r.organizationId}-${r.name}-link`,children:r.name})})]}),r.touched?"*":""]}),x.jsx(wt,{className:vA.RemoveRowButton,children:x.jsx(_be,{organizationId:r.organizationId,projectName:r.name})})]})})},r.id)}})}),Rbe=()=>{const[e,t]=PV(!1),r=O.useCallback(()=>{t()},[t]);return x.jsx($f,{title:x.jsx(wt,{height:"40px"}),children:x.jsx(je,{flexDirection:"column",gap:"0.5rem",paddingBottom:"1rem",children:e?x.jsx(Hge,{onAdd:r,onCancel:t}):x.jsxs(x.Fragment,{children:[x.jsx(Lge,{onClick:t}),x.jsx(Obe,{})]})})})};var Le=(e=>(e.String="string",e.Number="number",e.Boolean="boolean",e.Object="object",e.Array="array",e))(Le||{}),zn=(e=>(e.Tree="Tree",e.Json="Json",e.RefBy="RefBy",e))(zn||{}),hc=(e=>(e.File="urn:jsonschema:io:revisium:file-schema:1.0.0",e))(hc||{});const nv=e=>{if(e==="urn:jsonschema:io:revisium:file-schema:1.0.0")return"File"},Ibe={type:Le.Object,properties:{status:{type:Le.String,default:"",readOnly:!0},fileId:{type:Le.String,default:"",readOnly:!0},url:{type:Le.String,default:"",readOnly:!0},fileName:{type:Le.String,default:""},hash:{type:Le.String,default:"",readOnly:!0},extension:{type:Le.String,default:"",readOnly:!0},mimeType:{type:Le.String,default:"",readOnly:!0},size:{type:Le.Number,default:0,readOnly:!0},width:{type:Le.Number,default:0,readOnly:!0},height:{type:Le.Number,default:0,readOnly:!0}},required:["status","fileId","url","fileName","hash","extension","mimeType","size","width","height"],additionalProperties:!1},p3={[hc.File]:Ibe};function kbe(e){throw new Error("[mobx-utils] "+e)}function Gb(e,t){t===void 0&&(t="Illegal state"),e||kbe(t)}var m3=function(e){return e&&e!==Object.prototype&&Object.getOwnPropertyNames(e).concat(m3(Object.getPrototypeOf(e))||[])},jbe=function(e){var t=m3(e),r=t.filter(function(n,i){return t.indexOf(n)===i});return r},gA=function(e){return jbe(e).filter(function(t){return t!=="constructor"&&!~t.indexOf("__")})},BP="pending",Qb="fulfilled",gT="rejected";function $be(e){switch(this.state){case BP:return e.pending&&e.pending(this.value);case gT:return e.rejected&&e.rejected(this.value);case Qb:return e.fulfilled?e.fulfilled(this.value):this.value}}function yA(e,t){if(Gb(arguments.length<=2,"fromPromise expects up to two arguments"),Gb(typeof e=="function"||typeof e=="object"&&e&&typeof e.then=="function","Please pass a promise or function to fromPromise"),e.isPromiseBasedObservable===!0)return e;typeof e=="function"&&(e=new Promise(e));var r=e;e.then(Sr("observableFromPromise-resolve",function(i){r.value=i,r.state=Qb}),Sr("observableFromPromise-reject",function(i){r.value=i,r.state=gT})),r.isPromiseBasedObservable=!0,r.case=$be;var n=t&&(t.state===Qb||t.state===BP)?t.value:void 0;return lE(r,{value:n,state:BP},{},{deep:!1}),r}(function(e){e.reject=Sr("fromPromise.reject",function(r){var n=e(Promise.reject(r));return n.state=gT,n.value=r,n});function t(r){r===void 0&&(r=void 0);var n=e(Promise.resolve(r));return n.state=Qb,n.value=r,n}e.resolve=Sr("fromPromise.resolve",t)})(yA||(yA={}));var kg=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o};(function(){function e(t,r){var n=this;Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"subscription",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),D0(this),Hp(function(){n.current=r,n.subscription=t.subscribe(n)})}return Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.subscription&&this.subscription.unsubscribe()}}),Object.defineProperty(e.prototype,"next",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.current=t}}),Object.defineProperty(e.prototype,"complete",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.dispose()}}),Object.defineProperty(e.prototype,"error",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.current=t,this.dispose()}}),kg([er.ref],e.prototype,"current",void 0),kg([Sr.bound],e.prototype,"next",null),kg([Sr.bound],e.prototype,"complete",null),kg([Sr.bound],e.prototype,"error",null),e})();var Yb=function(){return Yb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yb.apply(this,arguments)},Lh=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Abe=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"],Dbe=function(){function e(t){var r=this;Object.defineProperty(this,"model",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"localValues",{enumerable:!0,configurable:!0,writable:!0,value:er.map({})}),Object.defineProperty(this,"localComputedValues",{enumerable:!0,configurable:!0,writable:!0,value:er.map({})}),Object.defineProperty(this,"isPropertyDirty",{enumerable:!0,configurable:!0,writable:!0,value:function(i){return r.localValues.has(i)}}),D0(this),Gb(Gi(t),"createViewModel expects an observable object");var n=gA(this);gA(t).forEach(function(i){var o;if(!n.includes(i)&&!(i===ut||i==="__mobxDidRunLazyInitializers")){if(Gb(Abe.indexOf(i)===-1,"The propertyname "+i+" is reserved and cannot be used with viewModels"),H1(t,i)){var a=ma(t,i),l=a.derivation.bind(r),c=(o=a.setter_)===null||o===void 0?void 0:o.bind(r);r.localComputedValues.set(i,dn(l,{set:c}))}var d=Object.getOwnPropertyDescriptor(t,i),f=d?{enumerable:d.enumerable}:{};Object.defineProperty(r,i,Yb(Yb({},f),{configurable:!0,get:function(){return H1(t,i)?r.localComputedValues.get(i).get():r.isPropertyDirty(i)?r.localValues.get(i):r.model[i]},set:Sr(function(p){H1(t,i)?r.localComputedValues.get(i).set(p):p!==r.model[i]?r.localValues.set(i,p):r.localValues.delete(i)})}))}})}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedValues",{get:function(){return new Map(this.localValues)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"submit",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;Kp(this.localValues).forEach(function(r){var n=t.localValues.get(r),i=t.model[r];Uo(i)?i.replace(n):Ki(i)?(i.clear(),i.merge(n)):Aie(n)||(t.model[r]=n)}),this.localValues.clear()}}),Object.defineProperty(e.prototype,"reset",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.localValues.clear()}}),Object.defineProperty(e.prototype,"resetProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.localValues.delete(t)}}),Lh([dn],e.prototype,"isDirty",null),Lh([dn],e.prototype,"changedValues",null),Lh([Sr.bound],e.prototype,"submit",null),Lh([Sr.bound],e.prototype,"reset",null),Lh([Sr.bound],e.prototype,"resetProperty",null),e}();function kc(e){return new Dbe(e)}var Mbe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();(function(e){Mbe(t,e);function t(r,n,i){var o=i===void 0?{}:i,a=o.name,l=a===void 0?"ogm"+(Math.random()*1e3|0):a,c=o.keyToName,d=c===void 0?function(m){return""+m}:c,f=e.call(this)||this;Object.defineProperty(f,"_base",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(f,"_ogmInfoKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(f,"_groupBy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(f,"_keyToName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(f,"_disposeBaseObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),f._keyToName=d,f._groupBy=n,f._ogmInfoKey=Symbol("ogmInfo"+l),f._base=r;for(var p=0;p<r.length;p++)f._addItem(r[p]);return f._disposeBaseObserver=A0(f._base,function(m){if(m.type==="splice")la(function(){for(var g=0,b=m.removed;g<b.length;g++){var y=b[g];f._removeItem(y)}for(var w=0,_=m.added;w<_.length;w++){var S=_[w];f._addItem(S)}});else if(m.type==="update")la(function(){f._removeItem(m.oldValue),f._addItem(m.newValue)});else throw new Error("illegal state")}),f}return Object.defineProperty(t.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(r){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(r,n){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._disposeBaseObserver();for(var r=0;r<this._base.length;r++){var n=this._base[r],i=n[this._ogmInfoKey];i.reaction(),delete n[this._ogmInfoKey]}}}),Object.defineProperty(t.prototype,"_getGroupArr",{enumerable:!1,configurable:!0,writable:!0,value:function(r){var n=e.prototype.get.call(this,r);return n===void 0&&(n=er([],{name:"GroupArray["+this._keyToName(r)+"]",deep:!1}),e.prototype.set.call(this,r,n)),n}}),Object.defineProperty(t.prototype,"_removeFromGroupArr",{enumerable:!1,configurable:!0,writable:!0,value:function(r,n){var i=e.prototype.get.call(this,r);i.length===1?e.prototype.delete.call(this,r):(n===i.length-1||(i[n]=i[i.length-1],i[n][this._ogmInfoKey].groupArrIndex=n),i.length--)}}),Object.defineProperty(t.prototype,"_addItem",{enumerable:!1,configurable:!0,writable:!0,value:function(r){var n=this,i=this._groupBy(r),o=this._getGroupArr(i),a={groupByValue:i,groupArrIndex:o.length,reaction:Ya(function(){return n._groupBy(r)},function(l,c){var d=r[n._ogmInfoKey];n._removeFromGroupArr(d.groupByValue,d.groupArrIndex);var f=n._getGroupArr(l),p=f.length;f.push(r),d.groupByValue=l,d.groupArrIndex=p})};Object.defineProperty(r,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:a}),o.push(r)}}),Object.defineProperty(t.prototype,"_removeItem",{enumerable:!1,configurable:!0,writable:!0,value:function(r){var n=r[this._ogmInfoKey];this._removeFromGroupArr(n.groupByValue,n.groupArrIndex),n.reaction(),delete r[this._ogmInfoKey]}}),t})(M0);var qs=(e=>(e.Object="object",e.Array="array",e.String="string",e.StringForeignKey="stringForeignKey",e.Number="number",e.Boolean="boolean",e))(qs||{});class pn{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.Object);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({id:"",properties:[],parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}get properties(){return this.state.model.properties}get draftProperties(){return this.state.properties}get addedProperties(){return this.draftProperties.filter(t=>!t.parent&&!this.properties.find(r=>r.nodeId===t.nodeId))}get removedProperties(){return this.properties.filter(t=>{const r=!this.draftProperties.find(n=>n.nodeId===t.nodeId);return!t.draftConnectedToParent&&r})}get notChangedProperties(){return this.properties.filter(t=>this.draftProperties.find(r=>r===t))}get replacedProperties(){return this.properties.filter(t=>this.draftProperties.find(r=>r.nodeId===t.nodeId&&r!==t)).map(t=>{const r=this.draftProperties.find(n=>n.nodeId===t.nodeId);if(!r)throw new Error("Invalid replacedProperties");return{previousProperty:t,currentProperty:r}})}get movedProperties(){return this.draftProperties.filter(t=>t.parent&&t.parent!==this)}get changedIdProperties(){return this.draftProperties.filter(t=>{const r=this.properties.find(n=>n.nodeId===t.nodeId);return r&&t.draftId!==r.id}).map(t=>{const r=this.properties.find(n=>n.nodeId===t.nodeId);if(!r)throw new Error("Invalid replacedProperties");return{previousProperty:r,currentProperty:t}})}getSchema(t){if(this.$ref)return{$ref:this.$ref};const r={},n=[];t!=null&&t.skipObjectProperties||this.state.properties.forEach(o=>{t!=null&&t.skipMovedBetweenParentsNodes&&o.parent!==o.draftParent||(o instanceof Jn||o instanceof pn?r[o.draftId]=o.getSchema(t):r[o.draftId]=o.getSchema(),n.push(o.draftId))});const i=n.sort((o,a)=>o.localeCompare(a));return{type:Le.Object,additionalProperties:!1,required:i,properties:r}}get isValid(){const t=new Set(this.state.properties.map(n=>n.draftId)).size===this.state.properties.length,r=this.state.properties.every(n=>n.isValid&&!!n.draftId);return t&&r}get isDirtyItself(){return this.state.isDirty}get isDirty(){return this.isDirtyItself||this.state.properties.some(t=>t.isDirty)}get showingCreateField(){return this.$ref?!1:!!this.state.id||!!this.state.parent}get isDisabledCreateField(){var n;const t=!!this.state.id||!this.state.id&&((n=this.state.parent)==null?void 0:n.type)===qs.Array,r=this.state.properties.every(i=>!!i.draftId);return!t||!r}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}removeProperty(t){const r=this.state.properties.findIndex(n=>n.nodeId===t);r!==-1&&(this.state.properties[r].onRemoveFromParent(),this.createIfNeededNextProperties(),this.state.properties.splice(r,1),this.resetIfNeededProperties())}addProperty(t,r=null){if(t.draftParent instanceof pn)t.draftParent.removeProperty(t.nodeId);else if(t.draftParent instanceof Jn)throw new Error("Invalid parent");t.setParent(this),this.createIfNeededNextProperties();const n=this.state.properties.findIndex(o=>o===(r==null?void 0:r.beforeNode)),i=this.state.properties.findIndex(o=>o===(r==null?void 0:r.afterNode));n!==-1?this.state.properties.splice(n,0,t):i!==-1?this.state.properties.splice(i+1,0,t):this.state.properties.push(t)}getProperty(t){const r=this.properties.find(n=>n.id===t);if(!r)throw new Error("Invalid id");return r}getDraftProperty(t){const r=this.draftProperties.find(n=>n.id===t);if(!r)throw new Error("Invalid id");return r}hasProperty(t){return!!this.state.properties.find(n=>n===t)}replaceProperty(t,r){const n=this.state.properties.findIndex(i=>i.nodeId===t.nodeId);n!==-1&&(t.onRemoveFromParent(),t.parent&&(r.setId(t.id),r.setParent(t.parent),r.submitChanges()),r.setId(t.draftId),r.setNodeId(t.nodeId),r.setParent(this),this.createIfNeededNextProperties(),this.state.properties.splice(n,1,r))}submitChanges(){this.state.submit();for(const t of this.state.properties)t.submitChanges()}resetChanges(){this.state.reset();for(const t of this.state.properties)t.resetChanges()}createIfNeededNextProperties(){this.state.isPropertyDirty("properties")||(this.state.properties=this.state.properties.slice())}resetIfNeededProperties(){const t=this.state.model.properties.map(n=>n.nodeId),r=this.state.properties.map(n=>n.nodeId);if(t.length===r.length){for(let n=0;n<t.length;n++)if(t[n]!==r[n])return;this.state.resetProperty("properties")}}}class Jn{constructor(t){Pe(this,"nodeId",nn());Pe(this,"type",qs.Array);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),t.setParent(this),t.submitChanges(),this.state=kc(er({id:"",items:t,parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}get items(){return this.state.model.items}get draftItems(){return this.state.items}getSchema(t){return this.$ref?{$ref:this.$ref}:{type:Le.Array,items:this.getItemsSchema(t)}}getItemsSchema(t){return this.state.items instanceof Jn?this.state.items.getSchema(t):this.state.items instanceof pn?this.state.items.getSchema(t):this.state.items.getSchema()}get isValid(){return this.state.items.isValid}get isDirtyItself(){return this.state.isDirty}get isDirty(){return this.isDirtyItself||this.state.items.isDirty}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}replaceItems(t){t.draftParent instanceof pn&&t.draftParent.removeProperty(t.nodeId),t.setNodeId(this.state.items.nodeId),t.setParent(this),this.state.items=t}submitChanges(){this.state.submit(),this.state.items.submitChanges()}resetChanges(){this.state.reset(),this.state.items.resetChanges()}}class Nbe{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.Boolean);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({id:"",parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}getSchema(){return this.$ref?{$ref:this.$ref}:{type:Le.Boolean,default:!1}}get isValid(){return!0}get isDirtyItself(){return this.state.isDirty}get isDirty(){return this.isDirtyItself}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}submitChanges(){this.state.submit()}resetChanges(){this.state.reset()}}class Fbe{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.Number);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({id:"",parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}getSchema(){return this.$ref?{$ref:this.$ref}:{type:Le.Number,default:0}}get isValid(){return!0}get isDirtyItself(){return this.state.isDirty}get isDirty(){return this.isDirtyItself}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}submitChanges(){this.state.submit()}resetChanges(){this.state.reset()}}class ec{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.String);Pe(this,"$ref","");Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({id:"",foreignKey:null,parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get label(){return this.draftForeignKey?"foreign key":nv(this.$ref)??this.type}setNodeId(t){this.nodeId=t}get id(){return this.state.model.id}get draftId(){return this.state.id}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}get foreignKey(){return this.state.model.foreignKey}get draftForeignKey(){return this.state.foreignKey}getSchema(){var r,n;if(this.$ref)return{$ref:this.$ref};const t={type:Le.String,default:""};return(r=this.state.foreignKey)!=null&&r.draftForeignKey&&(t.foreignKey=(n=this.state.foreignKey)==null?void 0:n.draftForeignKey),t}get isValid(){return!(this.state.foreignKey&&!this.state.foreignKey.draftForeignKey)}get isDirtyItself(){return this.state.isDirty||!!(this.state.foreignKey&&this.state.foreignKey.isDirtyItself)}get isDirty(){return this.isDirtyItself}setId(t){this.state.id=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}setForeignKey(t){this.state.foreignKey=t,t&&t.setParent(this)}submitChanges(){this.state.submit(),this.state.foreignKey&&this.state.foreignKey.submitChanges()}resetChanges(){this.state.reset(),this.state.foreignKey&&this.state.foreignKey.resetChanges()}}class Lbe{constructor(){Pe(this,"nodeId",nn());Pe(this,"type",qs.StringForeignKey);Pe(this,"state");st(this,{},{autoBind:!0}),this.state=kc(er({foreignKey:null,parent:null,connectedToParent:!1}))}get isDisabled(){var t;return!!((t=this.draftParent)!=null&&t.$ref)}get parent(){return this.state.model.parent}get draftParent(){return this.state.parent}get connectedToParent(){return this.state.model.connectedToParent}get draftConnectedToParent(){return this.state.connectedToParent}setNodeId(t){this.nodeId=t}get foreignKey(){return this.state.model.foreignKey}get draftForeignKey(){return this.state.foreignKey}get isDirtyItself(){return this.state.isDirty}setForeignKey(t){this.state.foreignKey=t}setParent(t){this.state.parent=t,this.state.connectedToParent=!0}onRemoveFromParent(){this.state.connectedToParent=!1}submitChanges(){this.state.submit()}resetChanges(){this.state.reset()}}const v3=e=>{if("$ref"in e){const t=p3[e.$ref];if(!t)throw new Error(`Schema refs must be defined ref$=${e.$ref}`);const r=v3(t);return r.$ref=e.$ref,r}switch(e.type){case Le.Object:{const t=new pn;return Object.entries(e.properties).forEach(([r,n])=>{const i=Ba(n);i.setId(r),t.addProperty(i)}),t}case Le.Array:{const t=Ba(e.items);return new Jn(t)}case Le.String:{const t=new ec;if(e.foreignKey!==void 0){const r=new Lbe;r.setForeignKey(e.foreignKey),t.setForeignKey(r)}return t}case Le.Number:return new Fbe;case Le.Boolean:return new Nbe}},Ba=e=>v3(e),Bbe=(e,t=!1)=>{let r="",n=e;for(;n.draftParent;)n.draftParent instanceof pn?r=`/properties/${n===e&&t?n.id:n.draftId}${r}`:n.draftParent instanceof Jn&&(r=`/items${r}`),n=n.draftParent;return r};function*Xb(e,t,r){if(yield*t(e),e instanceof pn)for(const n of e.draftProperties)yield*Xb(n,t);else e instanceof Jn&&(yield*Xb(e.draftItems,t))}function VP(e,t,r){let n=!0;if(r||(n=t(e)),!n)return!1;if(e instanceof pn)for(const i of e.draftProperties)VP(i,t);else e instanceof Jn&&VP(e.draftItems,t)}const Vbe=e=>[...Xb(e,function*(t){(t instanceof pn||t instanceof Jn)&&(yield t)})],g3=(e,t)=>e.draftParent?e===t?!0:g3(e.draftParent,t):!1,bA=e=>{const t=[];let r=e.draftParent;for(;r;)t.push(r),r=r.draftParent;return t},zbe=(e,t)=>{const r=bA(t),n=bA(e),i=r.find(a=>a instanceof Jn);return i?!n.find(a=>a===i):!1},Zh=(e,t)=>!(!t.draftParent||e===t||e===t.draftParent||g3(e,t)||zbe(e,t)),Tu=(e,t)=>{const r=[e];let n=e,i=Jb(e,t==null?void 0:t.preferDraftParent);for(;i;)r.push(i),n=i,i=Jb(n,t==null?void 0:t.preferDraftParent);return r},Bh=e=>{let t="",r=e[0];for(let n=1;n<e.length;n++){const i=e[n];i instanceof pn?t=`/properties/${y3(r,!1)}${t}`:i instanceof Jn&&(t=`/items${t}`),r=i}return t},wA=(e,t)=>{let r="",n=e,i=Jb(e,t==null?void 0:t.preferDraftParent);for(;i;)i instanceof pn?r=`/properties/${n===e&&t.preferStartWithNotDraftId?n.id:y3(n,t==null?void 0:t.preferDraftId)}${r}`:i instanceof Jn&&(r=`/items${r}`),n=i,i=Jb(n,t==null?void 0:t.preferDraftParent);return r},Jb=(e,t)=>t?e.draftParent||e.parent:e.parent||e.draftParent,y3=(e,t)=>t?e.draftId||e.id:e.id||e.draftId;class qbe{constructor(){Pe(this,"stack",[]);Pe(this,"setIdMap",new Set)}add(t){this.stack.push({node:t,op:"add",sequence:Tu(t,{preferDraftParent:!0})})}remove(t){const r=this.stack.findIndex(n=>n.node===t&&n.op==="add");this.deepRemovePatches(t),r===-1&&this.stack.push({node:t,op:"remove",sequence:Tu(t,{preferDraftParent:!0})})}replace(t,r){if(this.checkIfStringDuplicationInReplace(r))return;this.stack.findIndex(i=>i.node.nodeId===r.nodeId&&i.op==="add")!==-1?(this.deepRemovePatches(t,!1),this.stack.push({node:r,op:"add",sequence:Tu(r,{preferDraftParent:!0})})):(this.deepRemovePatches(t,!0),this.stack.push({node:r,op:"replace",sequence:Tu(r,{preferDraftParent:!0})}))}move(t){const r=this.stack.findIndex(i=>i.node===t&&i.op==="move");r!==-1&&this.stack.splice(r,1),t.parent===t.draftParent&&t.id===t.draftId||this.stack.push({node:t,op:"move",fromSequence:Tu(t,{preferDraftParent:!1}),toSequence:Tu(t,{preferDraftParent:!0})})}reset(){this.stack.length=0,this.setIdMap.clear()}getPatches(t){return[...this.getStackPatches(),...this.getMoveIdPatches(t)]}setId(t){this.setIdMap.add(t.nodeId)}getMoveIdPatches(t){const r=this;return[...Xb(t,function*(i){r.setIdMap.has(i.nodeId)&&i.draftParent instanceof pn&&(yield{op:"move",from:wA(i,{preferDraftParent:!0,preferDraftId:!0,preferStartWithNotDraftId:!0}),path:wA(i,{preferDraftParent:!0,preferDraftId:!0})})})]}getStackPatches(){return this.stack.map(t=>{switch(t.op){case"add":return{op:"add",path:Bh(t.sequence),value:t.node.getSchema({skipMovedBetweenParentsNodes:!0})};case"replace":return{op:"replace",path:Bh(t.sequence),value:t.node.getSchema({skipMovedBetweenParentsNodes:!0})};case"remove":return{op:"remove",path:Bh(t.sequence)};case"move":return{op:"move",from:Bh(t.fromSequence),path:Bh(t.toSequence)}}})}checkIfStringDuplicationInReplace(t){return!!(t.type===qs.String&&this.stack.find(n=>n.node===t))}deepRemovePatches(t,r){VP(t,n=>{let i=this.stack.findIndex(a=>a.node.nodeId===n.nodeId&&a.op!=="move");for(;i!==-1;)this.stack.splice(i,1),i=this.stack.findIndex(a=>a.node.nodeId===n.nodeId&&a.op!=="move");const o=this.stack.findIndex(a=>a.node.nodeId===n.nodeId&&a.op==="move");return o!==-1?(this.stack.splice(o,1,{node:n,op:"remove",sequence:Tu(n,{preferDraftParent:!1})}),this.deepRemovePatches(n,!0),!1):!0},r)}}class SA{constructor(t=new pn,r=""){Pe(this,"viewMode",zn.Tree);Pe(this,"state");Pe(this,"history",new qbe);st(this,{},{autoBind:!0}),this.state=kc(er({node:t,tableId:r}))}get node(){return this.state.node}get tableId(){return this.state.tableId}get draftTableId(){return this.state.node.draftId}get isApproveDisabled(){return!this.state.node.isValid||!this.state.node.isDirty}get isDirty(){return this.state.node.isDirty}get isDirtyItself(){return this.state.node.isDirtyItself}getPlainSchema(){return this.state.node.getSchema()}setViewMode(t){this.viewMode=t}getPatches(){return this.state.node!==this.state.model.node?[{op:"replace",path:"",value:this.state.node.getSchema()}]:[...this.history.getPatches(this.state.node)]}areThereDropTargets(t){return dn(()=>!!Vbe(this.state.node).filter(n=>Zh(n,t)).length).get()}replaceNode(t){this.state.node=t}submitChanges(){this.node.submitChanges(),this.state.tableId=this.node.id,this.state.submit(),this.history.reset()}resetChanges(){this.node.resetChanges(),this.history.reset()}setId(t,r){t.setId(r),t.parent&&this.history.setId(t)}addProperty(t,r,n=null){t.addProperty(r,n),r.parent?this.history.move(r):this.history.add(r)}removeProperty(t,r){t.removeProperty(r.nodeId),this.history.remove(r)}replaceProperty(t,r,n){t.replaceProperty(r,n),this.history.replace(r,n)}replaceItems(t,r){const n=t.draftItems;t.replaceItems(r),r.parent?this.history.move(r):this.history.replace(n,r)}setForeignKey(t,r){t.setForeignKey(r),this.history.replace(t,t)}setForeignKeyValue(t,r){t&&t.draftParent&&(t.setForeignKey(r),this.history.replace(t.draftParent,t.draftParent))}}const Ube=Ne`
1357
1357
  mutation CreateTableMst($data: CreateTableInput!) {
1358
1358
  createTable(data: $data) {
1359
1359
  branch {