@streamlayer/react 1.9.6 → 1.9.8

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,10 +37,10 @@
37
37
  `+ct+r}var se=!1;function me(r,s){if(!r||se)return"";se=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(re){var h=re}Reflect.construct(r,[],s)}else{try{s.call()}catch(re){h=re}r.call(s.prototype)}else{try{throw Error()}catch(re){h=re}r()}}catch(re){if(re&&h&&typeof re.stack=="string"){for(var v=re.stack.split(`
38
38
  `),S=h.stack.split(`
39
39
  `),R=v.length-1,F=S.length-1;1<=R&&0<=F&&v[R]!==S[F];)F--;for(;1<=R&&0<=F;R--,F--)if(v[R]!==S[F]){if(R!==1||F!==1)do if(R--,F--,0>F||v[R]!==S[F]){var $=`
40
- `+v[R].replace(" at new "," at ");return r.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",r.displayName)),$}while(1<=R&&0<=F);break}}}finally{se=!1,Error.prepareStackTrace=d}return(r=r?r.displayName||r.name:"")?z(r):""}function We(r){switch(r.tag){case 5:return z(r.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return r=me(r.type,!1),r;case 11:return r=me(r.type.render,!1),r;case 1:return r=me(r.type,!0),r;default:return""}}function gt(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case ae:return"Fragment";case ie:return"Portal";case Se:return"Profiler";case Ce:return"StrictMode";case Ne:return"Suspense";case et:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Be:return(r.displayName||"Context")+".Consumer";case Ye:return(r._context.displayName||"Context")+".Provider";case Ge:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case mt:return s=r.displayName||null,s!==null?s:gt(r.type)||"Memo";case Rt:s=r._payload,r=r._init;try{return gt(r(s))}catch{}}return null}function it(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gt(s);case 8:return s===Ce?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function tt(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function lt(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function _t(r){var s=lt(r)?"checked":"value",d=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),h=""+r[s];if(!r.hasOwnProperty(s)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,S=d.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return v.call(this)},set:function(R){h=""+R,S.call(this,R)}}),Object.defineProperty(r,s,{enumerable:d.enumerable}),{getValue:function(){return h},setValue:function(R){h=""+R},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Yt(r){r._valueTracker||(r._valueTracker=_t(r))}function In(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var d=s.getValue(),h="";return r&&(h=lt(r)?r.checked?"true":"false":r.value),r=h,r!==d?(s.setValue(r),!0):!1}function qt(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function nn(r,s){var d=s.checked;return we({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??r._wrapperState.initialChecked})}function Nt(r,s){var d=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;d=tt(s.value!=null?s.value:d),r._wrapperState={initialChecked:h,initialValue:d,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function sn(r,s){s=s.checked,s!=null&&Z(r,"checked",s,!1)}function Nn(r,s){sn(r,s);var d=tt(s.value),h=s.type;if(d!=null)h==="number"?(d===0&&r.value===""||r.value!=d)&&(r.value=""+d):r.value!==""+d&&(r.value=""+d);else if(h==="submit"||h==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?de(r,s.type,d):s.hasOwnProperty("defaultValue")&&de(r,s.type,tt(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function Wr(r,s,d){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,d||s===r.value||(r.value=s),r.defaultValue=s}d=r.name,d!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,d!==""&&(r.name=d)}function de(r,s,d){(s!=="number"||qt(r.ownerDocument)!==r)&&(d==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+d&&(r.defaultValue=""+d))}var Ao=Array.isArray;function mo(r,s,d,h){if(r=r.options,s){s={};for(var v=0;v<d.length;v++)s["$"+d[v]]=!0;for(d=0;d<r.length;d++)v=s.hasOwnProperty("$"+r[d].value),r[d].selected!==v&&(r[d].selected=v),v&&h&&(r[d].defaultSelected=!0)}else{for(d=""+tt(d),s=null,v=0;v<r.length;v++){if(r[v].value===d){r[v].selected=!0,h&&(r[v].defaultSelected=!0);return}s!==null||r[v].disabled||(s=r[v])}s!==null&&(s.selected=!0)}}function xo(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(o(91));return we({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function ds(r,s){var d=s.value;if(d==null){if(d=s.children,s=s.defaultValue,d!=null){if(s!=null)throw Error(o(92));if(Ao(d)){if(1<d.length)throw Error(o(93));d=d[0]}s=d}s==null&&(s=""),d=s}r._wrapperState={initialValue:tt(d)}}function ni(r,s){var d=tt(s.value),h=tt(s.defaultValue);d!=null&&(d=""+d,d!==r.value&&(r.value=d),s.defaultValue==null&&r.defaultValue!==d&&(r.defaultValue=d)),h!=null&&(r.defaultValue=""+h)}function Tr(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function ms(r){switch(r){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 ar(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?ms(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var fo,Iu=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,d,h,v){MSApp.execUnsafeLocalFunction(function(){return r(s,d,h,v)})}:r}(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(fo=fo||document.createElement("div"),fo.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=fo.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Re(r,s){if(s){var d=r.firstChild;if(d&&d===r.lastChild&&d.nodeType===3){d.nodeValue=s;return}}r.textContent=s}var Xe={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},vt=["Webkit","ms","Moz","O"];Object.keys(Xe).forEach(function(r){vt.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Xe[s]=Xe[r]})});function Gt(r,s,d){return s==null||typeof s=="boolean"||s===""?"":d||typeof s!="number"||s===0||Xe.hasOwnProperty(r)&&Xe[r]?(""+s).trim():s+"px"}function ln(r,s){r=r.style;for(var d in s)if(s.hasOwnProperty(d)){var h=d.indexOf("--")===0,v=Gt(d,s[d],h);d==="float"&&(d="cssFloat"),h?r.setProperty(d,v):r[d]=v}}var ja=we({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 Rn(r,s){if(s){if(ja[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(o(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(o(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(o(61))}if(s.style!=null&&typeof s.style!="object")throw Error(o(62))}}function Qr(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";switch(r){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 vn=null;function br(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Nu=null,Tn=null,un=null;function y2(r){if(r=Ju(r)){if(typeof Nu!="function")throw Error(o(280));var s=r.stateNode;s&&(s=Ze(s),Nu(r.stateNode,r.type,s))}}function rd(r){Tn?un?un.push(r):un=[r]:Tn=r}function od(){if(Tn){var r=Tn,s=un;if(un=Tn=null,y2(r),s)for(r=0;r<s.length;r++)y2(s[r])}}function v2(r,s){return r(s)}function T2(){}var sd=!1;function Om(r,s,d){if(sd)return r(s,d);sd=!0;try{return v2(r,s,d)}finally{sd=!1,(Tn!==null||un!==null)&&(T2(),od())}}function Ru(r,s){var d=r.stateNode;if(d===null)return null;var h=Ze(d);if(h===null)return null;d=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(r=r.type,h=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!h;break e;default:r=!1}if(r)return null;if(d&&typeof d!="function")throw Error(o(231,s,typeof d));return d}var id=!1;if(y)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){id=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{id=!1}function ll(r,s,d,h,v,S,R,F,$){var re=Array.prototype.slice.call(arguments,3);try{s.apply(d,re)}catch(he){this.onError(he)}}var Yr=!1,Po=null,ul=!1,Ou=null,Lm={onError:function(r){Yr=!0,Po=r}};function Am(r,s,d,h,v,S,R,F,$){Yr=!1,Po=null,ll.apply(Lm,arguments)}function cl(r,s,d,h,v,S,R,F,$){if(Am.apply(this,arguments),Yr){if(Yr){var re=Po;Yr=!1,Po=null}else throw Error(o(198));ul||(ul=!0,Ou=re)}}function po(r){var s=r,d=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,s.flags&4098&&(d=s.return),r=s.return;while(r)}return s.tag===3?d:null}function Lu(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function dl(r){if(po(r)!==r)throw Error(o(188))}function Ea(r){var s=r.alternate;if(!s){if(s=po(r),s===null)throw Error(o(188));return s!==r?null:r}for(var d=r,h=s;;){var v=d.return;if(v===null)break;var S=v.alternate;if(S===null){if(h=v.return,h!==null){d=h;continue}break}if(v.child===S.child){for(S=v.child;S;){if(S===d)return dl(v),r;if(S===h)return dl(v),s;S=S.sibling}throw Error(o(188))}if(d.return!==h.return)d=v,h=S;else{for(var R=!1,F=v.child;F;){if(F===d){R=!0,d=v,h=S;break}if(F===h){R=!0,h=v,d=S;break}F=F.sibling}if(!R){for(F=S.child;F;){if(F===d){R=!0,d=S,h=v;break}if(F===h){R=!0,h=S,d=v;break}F=F.sibling}if(!R)throw Error(o(189))}}if(d.alternate!==h)throw Error(o(190))}if(d.tag!==3)throw Error(o(188));return d.stateNode.current===d?r:s}function b2(r){return r=Ea(r),r!==null?k2(r):null}function k2(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=k2(r);if(s!==null)return s;r=r.sibling}return null}var xm=a.unstable_scheduleCallback,S2=a.unstable_cancelCallback,j6=a.unstable_shouldYield,B6=a.unstable_requestPaint,cn=a.unstable_now,$6=a.unstable_getCurrentPriorityLevel,Mo=a.unstable_ImmediatePriority,Ct=a.unstable_UserBlockingPriority,fs=a.unstable_NormalPriority,w2=a.unstable_LowPriority,Pm=a.unstable_IdlePriority,Au=null,Kr=null;function C2(r){if(Kr&&typeof Kr.onCommitFiberRoot=="function")try{Kr.onCommitFiberRoot(Au,r,void 0,(r.current.flags&128)===128)}catch{}}var kr=Math.clz32?Math.clz32:z6,E2=Math.log,_2=Math.LN2;function z6(r){return r>>>=0,r===0?32:31-(E2(r)/_2|0)|0}var ld=64,ml=4194304;function ri(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Zr(r,s){var d=r.pendingLanes;if(d===0)return 0;var h=0,v=r.suspendedLanes,S=r.pingedLanes,R=d&268435455;if(R!==0){var F=R&~v;F!==0?h=ri(F):(S&=R,S!==0&&(h=ri(S)))}else R=d&~v,R!==0?h=ri(R):S!==0&&(h=ri(S));if(h===0)return 0;if(s!==0&&s!==h&&!(s&v)&&(v=h&-h,S=s&-s,v>=S||v===16&&(S&4194240)!==0))return s;if(h&4&&(h|=d&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=h;0<s;)d=31-kr(s),v=1<<d,h|=r[d],s&=~v;return h}function Mm(r,s){switch(r){case 1:case 2:case 4:return s+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 s+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 ud(r,s){for(var d=r.suspendedLanes,h=r.pingedLanes,v=r.expirationTimes,S=r.pendingLanes;0<S;){var R=31-kr(S),F=1<<R,$=v[R];$===-1?(!(F&d)||F&h)&&(v[R]=Mm(F,s)):$<=s&&(r.expiredLanes|=F),S&=~F}}function Dm(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function cd(){var r=ld;return ld<<=1,!(ld&4194240)&&(ld=64),r}function Um(r){for(var s=[],d=0;31>d;d++)s.push(r);return s}function oi(r,s,d){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-kr(s),r[s]=d}function H6(r,s){var d=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var h=r.eventTimes;for(r=r.expirationTimes;0<d;){var v=31-kr(d),S=1<<v;s[v]=0,h[v]=-1,r[v]=-1,d&=~S}}function xu(r,s){var d=r.entangledLanes|=s;for(r=r.entanglements;d;){var h=31-kr(d),v=1<<h;v&s|r[h]&s&&(r[h]|=s),d&=~v}}var Ft=0;function Fm(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var I2,dd,Vt,N2,Vm,ft=!1,Pu=[],bn=null,Sr=null,wr=null,Mu=new Map,On=new Map,jt=[],q6="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 Xr(r,s){switch(r){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":Sr=null;break;case"mouseover":case"mouseout":wr=null;break;case"pointerover":case"pointerout":Mu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":On.delete(s.pointerId)}}function ma(r,s,d,h,v,S){return r===null||r.nativeEvent!==S?(r={blockedOn:s,domEventName:d,eventSystemFlags:h,nativeEvent:S,targetContainers:[v]},s!==null&&(s=Ju(s),s!==null&&dd(s)),r):(r.eventSystemFlags|=h,s=r.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),r)}function ps(r,s,d,h,v){switch(s){case"focusin":return bn=ma(bn,r,s,d,h,v),!0;case"dragenter":return Sr=ma(Sr,r,s,d,h,v),!0;case"mouseover":return wr=ma(wr,r,s,d,h,v),!0;case"pointerover":var S=v.pointerId;return Mu.set(S,ma(Mu.get(S)||null,r,s,d,h,v)),!0;case"gotpointercapture":return S=v.pointerId,On.set(S,ma(On.get(S)||null,r,s,d,h,v)),!0}return!1}function R2(r){var s=Er(r.target);if(s!==null){var d=po(s);if(d!==null){if(s=d.tag,s===13){if(s=Lu(d),s!==null){r.blockedOn=s,Vm(r.priority,function(){Vt(d)});return}}else if(s===3&&d.stateNode.current.memoizedState.isDehydrated){r.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}r.blockedOn=null}function fl(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var d=pd(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(d===null){d=r.nativeEvent;var h=new d.constructor(d.type,d);vn=h,d.target.dispatchEvent(h),vn=null}else return s=Ju(d),s!==null&&dd(s),r.blockedOn=d,!1;s.shift()}return!0}function jm(r,s,d){fl(r)&&d.delete(s)}function O2(){ft=!1,bn!==null&&fl(bn)&&(bn=null),Sr!==null&&fl(Sr)&&(Sr=null),wr!==null&&fl(wr)&&(wr=null),Mu.forEach(jm),On.forEach(jm)}function Du(r,s){r.blockedOn===s&&(r.blockedOn=null,ft||(ft=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,O2)))}function Uu(r){function s(v){return Du(v,r)}if(0<Pu.length){Du(Pu[0],r);for(var d=1;d<Pu.length;d++){var h=Pu[d];h.blockedOn===r&&(h.blockedOn=null)}}for(bn!==null&&Du(bn,r),Sr!==null&&Du(Sr,r),wr!==null&&Du(wr,r),Mu.forEach(s),On.forEach(s),d=0;d<jt.length;d++)h=jt[d],h.blockedOn===r&&(h.blockedOn=null);for(;0<jt.length&&(d=jt[0],d.blockedOn===null);)R2(d),d.blockedOn===null&&jt.shift()}var pl=Q.ReactCurrentBatchConfig,si=!0;function L2(r,s,d,h){var v=Ft,S=pl.transition;pl.transition=null;try{Ft=1,fd(r,s,d,h)}finally{Ft=v,pl.transition=S}}function md(r,s,d,h){var v=Ft,S=pl.transition;pl.transition=null;try{Ft=4,fd(r,s,d,h)}finally{Ft=v,pl.transition=S}}function fd(r,s,d,h){if(si){var v=pd(r,s,d,h);if(v===null)_d(r,s,h,Fu,d),Xr(r,h);else if(ps(v,r,s,d,h))h.stopPropagation();else if(Xr(r,h),s&4&&-1<q6.indexOf(r)){for(;v!==null;){var S=Ju(v);if(S!==null&&I2(S),S=pd(r,s,d,h),S===null&&_d(r,s,h,Fu,d),S===v)break;v=S}v!==null&&h.stopPropagation()}else _d(r,s,h,null,d)}}var Fu=null;function pd(r,s,d,h){if(Fu=null,r=br(h),r=Er(r),r!==null)if(s=po(r),s===null)r=null;else if(d=s.tag,d===13){if(r=Lu(s),r!==null)return r;r=null}else if(d===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return Fu=r,null}function Bm(r){switch(r){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($6()){case Mo:return 1;case Ct:return 4;case fs:case w2:return 16;case Pm:return 536870912;default:return 16}default:return 16}}var Do=null,Vu=null,ju=null;function $m(){if(ju)return ju;var r,s=Vu,d=s.length,h,v="value"in Do?Do.value:Do.textContent,S=v.length;for(r=0;r<d&&s[r]===v[r];r++);var R=d-r;for(h=1;h<=R&&s[d-h]===v[S-h];h++);return ju=v.slice(r,1<h?1-h:void 0)}function hl(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Bu(){return!0}function A2(){return!1}function rr(r){function s(d,h,v,S,R){this._reactName=d,this._targetInst=v,this.type=h,this.nativeEvent=S,this.target=R,this.currentTarget=null;for(var F in r)r.hasOwnProperty(F)&&(d=r[F],this[F]=d?d(S):S[F]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Bu:A2,this.isPropagationStopped=A2,this}return we(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Bu)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Bu)},persist:function(){},isPersistent:Bu}),s}var hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=rr(hs),gl=we({},hs,{view:0,detail:0}),x2=rr(gl),gd,zm,$u,jn=we({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wm,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==$u&&($u&&r.type==="mousemove"?(gd=r.screenX-$u.screenX,zm=r.screenY-$u.screenY):zm=gd=0,$u=r),gd)},movementY:function(r){return"movementY"in r?r.movementY:zm}}),yd=rr(jn),P2=we({},jn,{dataTransfer:0}),M2=rr(P2),G6=we({},gl,{relatedTarget:0}),gs=rr(G6),Hm=we({},hs,{animationName:0,elapsedTime:0,pseudoElement:0}),D2=rr(Hm),W6=we({},hs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Q6=rr(W6),Y6=we({},hs,{data:0}),qm=rr(Y6),Gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U2={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"},F2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function V2(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=F2[r])?!!s[r]:!1}function Wm(){return V2}var Uo=we({},gl,{key:function(r){if(r.key){var s=Gm[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=hl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?U2[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wm,charCode:function(r){return r.type==="keypress"?hl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?hl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),K6=rr(Uo),Qm=we({},jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=rr(Qm),Ym=we({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wm}),Z6=rr(Ym),Td=we({},hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),j2=rr(Td),Ba=we({},jn,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Fo=rr(Ba),kn=[9,13,27,32],Jr=y&&"CompositionEvent"in window,ii=null;y&&"documentMode"in document&&(ii=document.documentMode);var bd=y&&"TextEvent"in window&&!ii,B2=y&&(!Jr||ii&&8<ii&&11>=ii),yl=" ",$2=!1;function z2(r,s){switch(r){case"keyup":return kn.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kd(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var vl=!1;function X6(r,s){switch(r){case"compositionend":return kd(s);case"keypress":return s.which!==32?null:($2=!0,yl);case"textInput":return r=s.data,r===yl&&$2?null:r;default:return null}}function J6(r,s){if(vl)return r==="compositionend"||!Jr&&z2(r,s)?(r=$m(),ju=Vu=Do=null,vl=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return B2&&s.locale!=="ko"?null:s.data;default:return null}}var H2={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 q2(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!H2[r.type]:s==="textarea"}function G2(r,s,d,h){rd(h),s=Ku(s,"onChange"),0<s.length&&(d=new hd("onChange","change",null,d,h),r.push({event:d,listeners:s}))}var zu=null,Tl=null;function bl(r){Ed(r,0)}function kl(r){var s=wl(r);if(In(s))return r}function W2(r,s){if(r==="change")return s}var Km=!1;if(y){var Zm;if(y){var Xm="oninput"in document;if(!Xm){var Q2=document.createElement("div");Q2.setAttribute("oninput","return;"),Xm=typeof Q2.oninput=="function"}Zm=Xm}else Zm=!1;Km=Zm&&(!document.documentMode||9<document.documentMode)}function Y2(){zu&&(zu.detachEvent("onpropertychange",K2),Tl=zu=null)}function K2(r){if(r.propertyName==="value"&&kl(Tl)){var s=[];G2(s,Tl,r,br(r)),Om(bl,s)}}function e4(r,s,d){r==="focusin"?(Y2(),zu=s,Tl=d,zu.attachEvent("onpropertychange",K2)):r==="focusout"&&Y2()}function t4(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return kl(Tl)}function n4(r,s){if(r==="click")return kl(s)}function Z2(r,s){if(r==="input"||r==="change")return kl(s)}function a4(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var Cr=typeof Object.is=="function"?Object.is:a4;function Hu(r,s){if(Cr(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var d=Object.keys(r),h=Object.keys(s);if(d.length!==h.length)return!1;for(h=0;h<d.length;h++){var v=d[h];if(!b.call(s,v)||!Cr(r[v],s[v]))return!1}return!0}function X2(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function J2(r,s){var d=X2(r);r=0;for(var h;d;){if(d.nodeType===3){if(h=r+d.textContent.length,r<=s&&h>=s)return{node:d,offset:s-r};r=h}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=X2(d)}}function ep(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?ep(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Sd(){for(var r=window,s=qt();s instanceof r.HTMLIFrameElement;){try{var d=typeof s.contentWindow.location.href=="string"}catch{d=!1}if(d)r=s.contentWindow;else break;s=qt(r.document)}return s}function Vo(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function wd(r){var s=Sd(),d=r.focusedElem,h=r.selectionRange;if(s!==d&&d&&d.ownerDocument&&ep(d.ownerDocument.documentElement,d)){if(h!==null&&Vo(d)){if(s=h.start,r=h.end,r===void 0&&(r=s),"selectionStart"in d)d.selectionStart=s,d.selectionEnd=Math.min(r,d.value.length);else if(r=(s=d.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var v=d.textContent.length,S=Math.min(h.start,v);h=h.end===void 0?S:Math.min(h.end,v),!r.extend&&S>h&&(v=h,h=S,S=v),v=J2(d,S);var R=J2(d,h);v&&R&&(r.rangeCount!==1||r.anchorNode!==v.node||r.anchorOffset!==v.offset||r.focusNode!==R.node||r.focusOffset!==R.offset)&&(s=s.createRange(),s.setStart(v.node,v.offset),r.removeAllRanges(),S>h?(r.addRange(s),r.extend(R.node,R.offset)):(s.setEnd(R.node,R.offset),r.addRange(s)))}}for(s=[],r=d;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<s.length;d++)r=s[d],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var tp=y&&"documentMode"in document&&11>=document.documentMode,eo=null,Jm=null,qu=null,ef=!1;function np(r,s,d){var h=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;ef||eo==null||eo!==qt(h)||(h=eo,"selectionStart"in h&&Vo(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),qu&&Hu(qu,h)||(qu=h,h=Ku(Jm,"onSelect"),0<h.length&&(s=new hd("onSelect","select",null,s,d),r.push({event:s,listeners:h}),s.target=eo)))}function Cd(r,s){var d={};return d[r.toLowerCase()]=s.toLowerCase(),d["Webkit"+r]="webkit"+s,d["Moz"+r]="moz"+s,d}var li={animationend:Cd("Animation","AnimationEnd"),animationiteration:Cd("Animation","AnimationIteration"),animationstart:Cd("Animation","AnimationStart"),transitionend:Cd("Transition","TransitionEnd")},tf={},nf={};y&&(nf=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function Bn(r){if(tf[r])return tf[r];if(!li[r])return r;var s=li[r],d;for(d in s)if(s.hasOwnProperty(d)&&d in nf)return tf[r]=s[d];return r}var af=Bn("animationend"),ap=Bn("animationiteration"),rp=Bn("animationstart"),op=Bn("transitionend"),sp=new Map,ip="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 jo(r,s){sp.set(r,s),p(s,[r])}for(var Gu=0;Gu<ip.length;Gu++){var ui=ip[Gu],r4=ui.toLowerCase(),Wu=ui[0].toUpperCase()+ui.slice(1);jo(r4,"on"+Wu)}jo(af,"onAnimationEnd"),jo(ap,"onAnimationIteration"),jo(rp,"onAnimationStart"),jo("dblclick","onDoubleClick"),jo("focusin","onFocus"),jo("focusout","onBlur"),jo(op,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="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(" "),o4=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qu));function lp(r,s,d){var h=r.type||"unknown-event";r.currentTarget=d,cl(h,s,void 0,r),r.currentTarget=null}function Ed(r,s){s=(s&4)!==0;for(var d=0;d<r.length;d++){var h=r[d],v=h.event;h=h.listeners;e:{var S=void 0;if(s)for(var R=h.length-1;0<=R;R--){var F=h[R],$=F.instance,re=F.currentTarget;if(F=F.listener,$!==S&&v.isPropagationStopped())break e;lp(v,F,re),S=$}else for(R=0;R<h.length;R++){if(F=h[R],$=F.instance,re=F.currentTarget,F=F.listener,$!==S&&v.isPropagationStopped())break e;lp(v,F,re),S=$}}}if(ul)throw r=Ou,ul=!1,Ou=null,r}function Ht(r,s){var d=s[df];d===void 0&&(d=s[df]=new Set);var h=r+"__bubble";d.has(h)||(up(s,r,2,!1),d.add(h))}function ys(r,s,d){var h=0;s&&(h|=4),up(d,r,h,s)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function Sl(r){if(!r[Bo]){r[Bo]=!0,l.forEach(function(d){d!=="selectionchange"&&(o4.has(d)||ys(d,!1,r),ys(d,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[Bo]||(s[Bo]=!0,ys("selectionchange",!1,s))}}function up(r,s,d,h){switch(Bm(s)){case 1:var v=L2;break;case 4:v=md;break;default:v=fd}d=v.bind(null,s,d,r),v=void 0,!id||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?r.addEventListener(s,d,{capture:!0,passive:v}):r.addEventListener(s,d,!0):v!==void 0?r.addEventListener(s,d,{passive:v}):r.addEventListener(s,d,!1)}function _d(r,s,d,h,v){var S=h;if(!(s&1)&&!(s&2)&&h!==null)e:for(;;){if(h===null)return;var R=h.tag;if(R===3||R===4){var F=h.stateNode.containerInfo;if(F===v||F.nodeType===8&&F.parentNode===v)break;if(R===4)for(R=h.return;R!==null;){var $=R.tag;if(($===3||$===4)&&($=R.stateNode.containerInfo,$===v||$.nodeType===8&&$.parentNode===v))return;R=R.return}for(;F!==null;){if(R=Er(F),R===null)return;if($=R.tag,$===5||$===6){h=S=R;continue e}F=F.parentNode}}h=h.return}Om(function(){var re=S,he=br(d),ve=[];e:{var ge=sp.get(r);if(ge!==void 0){var Le=hd,De=r;switch(r){case"keypress":if(hl(d)===0)break e;case"keydown":case"keyup":Le=K6;break;case"focusin":De="focus",Le=gs;break;case"focusout":De="blur",Le=gs;break;case"beforeblur":case"afterblur":Le=gs;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=M2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Z6;break;case af:case ap:case rp:Le=D2;break;case op:Le=j2;break;case"scroll":Le=x2;break;case"wheel":Le=Fo;break;case"copy":case"cut":case"paste":Le=Q6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=vd}var Ve=(s&4)!==0,hn=!Ve&&r==="scroll",K=Ve?ge!==null?ge+"Capture":null:ge;Ve=[];for(var q=re,ee;q!==null;){ee=q;var ke=ee.stateNode;if(ee.tag===5&&ke!==null&&(ee=ke,K!==null&&(ke=Ru(q,K),ke!=null&&Ve.push(Yu(q,ke,ee)))),hn)break;q=q.return}0<Ve.length&&(ge=new Le(ge,De,null,d,he),ve.push({event:ge,listeners:Ve}))}}if(!(s&7)){e:{if(ge=r==="mouseover"||r==="pointerover",Le=r==="mouseout"||r==="pointerout",ge&&d!==vn&&(De=d.relatedTarget||d.fromElement)&&(Er(De)||De[$o]))break e;if((Le||ge)&&(ge=he.window===he?he:(ge=he.ownerDocument)?ge.defaultView||ge.parentWindow:window,Le?(De=d.relatedTarget||d.toElement,Le=re,De=De?Er(De):null,De!==null&&(hn=po(De),De!==hn||De.tag!==5&&De.tag!==6)&&(De=null)):(Le=null,De=re),Le!==De)){if(Ve=yd,ke="onMouseLeave",K="onMouseEnter",q="mouse",(r==="pointerout"||r==="pointerover")&&(Ve=vd,ke="onPointerLeave",K="onPointerEnter",q="pointer"),hn=Le==null?ge:wl(Le),ee=De==null?ge:wl(De),ge=new Ve(ke,q+"leave",Le,d,he),ge.target=hn,ge.relatedTarget=ee,ke=null,Er(he)===re&&(Ve=new Ve(K,q+"enter",De,d,he),Ve.target=ee,Ve.relatedTarget=hn,ke=Ve),hn=ke,Le&&De)t:{for(Ve=Le,K=De,q=0,ee=Ve;ee;ee=ci(ee))q++;for(ee=0,ke=K;ke;ke=ci(ke))ee++;for(;0<q-ee;)Ve=ci(Ve),q--;for(;0<ee-q;)K=ci(K),ee--;for(;q--;){if(Ve===K||K!==null&&Ve===K.alternate)break t;Ve=ci(Ve),K=ci(K)}Ve=null}else Ve=null;Le!==null&&rf(ve,ge,Le,Ve,!1),De!==null&&hn!==null&&rf(ve,hn,De,Ve,!0)}}e:{if(ge=re?wl(re):window,Le=ge.nodeName&&ge.nodeName.toLowerCase(),Le==="select"||Le==="input"&&ge.type==="file")var He=W2;else if(q2(ge))if(Km)He=Z2;else{He=t4;var Ue=e4}else(Le=ge.nodeName)&&Le.toLowerCase()==="input"&&(ge.type==="checkbox"||ge.type==="radio")&&(He=n4);if(He&&(He=He(r,re))){G2(ve,He,d,he);break e}Ue&&Ue(r,ge,re),r==="focusout"&&(Ue=ge._wrapperState)&&Ue.controlled&&ge.type==="number"&&de(ge,"number",ge.value)}switch(Ue=re?wl(re):window,r){case"focusin":(q2(Ue)||Ue.contentEditable==="true")&&(eo=Ue,Jm=re,qu=null);break;case"focusout":qu=Jm=eo=null;break;case"mousedown":ef=!0;break;case"contextmenu":case"mouseup":case"dragend":ef=!1,np(ve,d,he);break;case"selectionchange":if(tp)break;case"keydown":case"keyup":np(ve,d,he)}var Ke;if(Jr)e:{switch(r){case"compositionstart":var ot="onCompositionStart";break e;case"compositionend":ot="onCompositionEnd";break e;case"compositionupdate":ot="onCompositionUpdate";break e}ot=void 0}else vl?z2(r,d)&&(ot="onCompositionEnd"):r==="keydown"&&d.keyCode===229&&(ot="onCompositionStart");ot&&(B2&&d.locale!=="ko"&&(vl||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&vl&&(Ke=$m()):(Do=he,Vu="value"in Do?Do.value:Do.textContent,vl=!0)),Ue=Ku(re,ot),0<Ue.length&&(ot=new qm(ot,r,null,d,he),ve.push({event:ot,listeners:Ue}),Ke?ot.data=Ke:(Ke=kd(d),Ke!==null&&(ot.data=Ke)))),(Ke=bd?X6(r,d):J6(r,d))&&(re=Ku(re,"onBeforeInput"),0<re.length&&(he=new qm("onBeforeInput","beforeinput",null,d,he),ve.push({event:he,listeners:re}),he.data=Ke))}Ed(ve,s)})}function Yu(r,s,d){return{instance:r,listener:s,currentTarget:d}}function Ku(r,s){for(var d=s+"Capture",h=[];r!==null;){var v=r,S=v.stateNode;v.tag===5&&S!==null&&(v=S,S=Ru(r,d),S!=null&&h.unshift(Yu(r,S,v)),S=Ru(r,s),S!=null&&h.push(Yu(r,S,v))),r=r.return}return h}function ci(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function rf(r,s,d,h,v){for(var S=s._reactName,R=[];d!==null&&d!==h;){var F=d,$=F.alternate,re=F.stateNode;if($!==null&&$===h)break;F.tag===5&&re!==null&&(F=re,v?($=Ru(d,S),$!=null&&R.unshift(Yu(d,$,F))):v||($=Ru(d,S),$!=null&&R.push(Yu(d,$,F)))),d=d.return}R.length!==0&&r.push({event:s,listeners:R})}var of=/\r\n?/g,s4=/\u0000|\uFFFD/g;function sf(r){return(typeof r=="string"?r:""+r).replace(of,`
41
- `).replace(s4,"")}function Id(r,s,d){if(s=sf(s),sf(r)!==s&&d)throw Error(o(425))}function Nd(){}var lf=null,di=null;function Zu(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var mi=typeof setTimeout=="function"?setTimeout:void 0,cp=typeof clearTimeout=="function"?clearTimeout:void 0,uf=typeof Promise=="function"?Promise:void 0,cf=typeof queueMicrotask=="function"?queueMicrotask:typeof uf<"u"?function(r){return uf.resolve(null).then(r).catch(i4)}:mi;function i4(r){setTimeout(function(){throw r})}function vs(r,s){var d=s,h=0;do{var v=d.nextSibling;if(r.removeChild(d),v&&v.nodeType===8)if(d=v.data,d==="/$"){if(h===0){r.removeChild(v),Uu(s);return}h--}else d!=="$"&&d!=="$?"&&d!=="$!"||h++;d=v}while(d);Uu(s)}function to(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function Xu(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var d=r.data;if(d==="$"||d==="$!"||d==="$?"){if(s===0)return r;s--}else d==="/$"&&s++}r=r.previousSibling}return null}var Ts=Math.random().toString(36).slice(2),ho="__reactFiber$"+Ts,fi="__reactProps$"+Ts,$o="__reactContainer$"+Ts,df="__reactEvents$"+Ts,l4="__reactListeners$"+Ts,mf="__reactHandles$"+Ts;function Er(r){var s=r[ho];if(s)return s;for(var d=r.parentNode;d;){if(s=d[$o]||d[ho]){if(d=s.alternate,s.child!==null||d!==null&&d.child!==null)for(r=Xu(r);r!==null;){if(d=r[ho])return d;r=Xu(r)}return s}r=d,d=r.parentNode}return null}function Ju(r){return r=r[ho]||r[$o],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function wl(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(o(33))}function Ze(r){return r[fi]||null}var bs=[],Kt=-1;function ht(r){return{current:r}}function Pt(r){0>Kt||(r.current=bs[Kt],bs[Kt]=null,Kt--)}function Mt(r,s){Kt++,bs[Kt]=r.current,r.current=s}var go={},at=ht(go),dn=ht(!1),$a=go;function _r(r,s){var d=r.type.contextTypes;if(!d)return go;var h=r.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var v={},S;for(S in d)v[S]=s[S];return h&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=v),v}function Jt(r){return r=r.childContextTypes,r!=null}function Ir(){Pt(dn),Pt(at)}function ks(r,s,d){if(at.current!==go)throw Error(o(168));Mt(at,s),Mt(dn,d)}function ec(r,s,d){var h=r.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return d;h=h.getChildContext();for(var v in h)if(!(v in s))throw Error(o(108,it(r)||"Unknown",v));return we({},d,h)}function Rd(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||go,$a=at.current,Mt(at,r),Mt(dn,dn.current),!0}function dp(r,s,d){var h=r.stateNode;if(!h)throw Error(o(169));d?(r=ec(r,s,$a),h.__reactInternalMemoizedMergedChildContext=r,Pt(dn),Pt(at),Mt(at,r)):Pt(dn),Mt(dn,d)}var or=null,$n=!1,tc=!1;function ff(r){or===null?or=[r]:or.push(r)}function pf(r){$n=!0,ff(r)}function za(){if(!tc&&or!==null){tc=!0;var r=0,s=Ft;try{var d=or;for(Ft=1;r<d.length;r++){var h=d[r];do h=h(!0);while(h!==null)}or=null,$n=!1}catch(v){throw or!==null&&(or=or.slice(r+1)),xm(Mo,za),v}finally{Ft=s,tc=!1}}return null}var Ss=[],Ha=0,pi=null,Cl=0,qa=[],fa=0,Nr=null,Yn=1,zo="";function sr(r,s){Ss[Ha++]=Cl,Ss[Ha++]=pi,pi=r,Cl=s}function hf(r,s,d){qa[fa++]=Yn,qa[fa++]=zo,qa[fa++]=Nr,Nr=r;var h=Yn;r=zo;var v=32-kr(h)-1;h&=~(1<<v),d+=1;var S=32-kr(s)+v;if(30<S){var R=v-v%5;S=(h&(1<<R)-1).toString(32),h>>=R,v-=R,Yn=1<<32-kr(s)+v|d<<v|h,zo=S+r}else Yn=1<<S|d<<v|h,zo=r}function Od(r){r.return!==null&&(sr(r,1),hf(r,1,0))}function gf(r){for(;r===pi;)pi=Ss[--Ha],Ss[Ha]=null,Cl=Ss[--Ha],Ss[Ha]=null;for(;r===Nr;)Nr=qa[--fa],qa[fa]=null,zo=qa[--fa],qa[fa]=null,Yn=qa[--fa],qa[fa]=null}var ir=null,Ga=null,Zt=!1,Rr=null;function yf(r,s){var d=Dr(5,null,null,0);d.elementType="DELETED",d.stateNode=s,d.return=r,s=r.deletions,s===null?(r.deletions=[d],r.flags|=16):s.push(d)}function mp(r,s){switch(r.tag){case 5:var d=r.type;return s=s.nodeType!==1||d.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,ir=r,Ga=to(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,ir=r,Ga=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(d=Nr!==null?{id:Yn,overflow:zo}:null,r.memoizedState={dehydrated:s,treeContext:d,retryLane:1073741824},d=Dr(18,null,null,0),d.stateNode=s,d.return=r,r.child=d,ir=r,Ga=null,!0):!1;default:return!1}}function Ld(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Ad(r){if(Zt){var s=Ga;if(s){var d=s;if(!mp(r,s)){if(Ld(r))throw Error(o(418));s=to(d.nextSibling);var h=ir;s&&mp(r,s)?yf(h,d):(r.flags=r.flags&-4097|2,Zt=!1,ir=r)}}else{if(Ld(r))throw Error(o(418));r.flags=r.flags&-4097|2,Zt=!1,ir=r}}}function fp(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;ir=r}function xd(r){if(r!==ir)return!1;if(!Zt)return fp(r),Zt=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!Zu(r.type,r.memoizedProps)),s&&(s=Ga)){if(Ld(r))throw pp(),Error(o(418));for(;s;)yf(r,s),s=to(s.nextSibling)}if(fp(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var d=r.data;if(d==="/$"){if(s===0){Ga=to(r.nextSibling);break e}s--}else d!=="$"&&d!=="$!"&&d!=="$?"||s++}r=r.nextSibling}Ga=null}}else Ga=ir?to(r.stateNode.nextSibling):null;return!0}function pp(){for(var r=Ga;r;)r=to(r.nextSibling)}function an(){Ga=ir=null,Zt=!1}function vf(r){Rr===null?Rr=[r]:Rr.push(r)}var Pd=Q.ReactCurrentBatchConfig;function hi(r,s,d){if(r=d.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(o(309));var h=d.stateNode}if(!h)throw Error(o(147,r));var v=h,S=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===S?s.ref:(s=function(R){var F=v.refs;R===null?delete F[S]:F[S]=R},s._stringRef=S,s)}if(typeof r!="string")throw Error(o(284));if(!d._owner)throw Error(o(290,r))}return r}function yo(r,s){throw r=Object.prototype.toString.call(s),Error(o(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function hp(r){var s=r._init;return s(r._payload)}function Md(r){function s(K,q){if(r){var ee=K.deletions;ee===null?(K.deletions=[q],K.flags|=16):ee.push(q)}}function d(K,q){if(!r)return null;for(;q!==null;)s(K,q),q=q.sibling;return null}function h(K,q){for(K=new Map;q!==null;)q.key!==null?K.set(q.key,q):K.set(q.index,q),q=q.sibling;return K}function v(K,q){return K=Ls(K,q),K.index=0,K.sibling=null,K}function S(K,q,ee){return K.index=ee,r?(ee=K.alternate,ee!==null?(ee=ee.index,ee<q?(K.flags|=2,q):ee):(K.flags|=2,q)):(K.flags|=1048576,q)}function R(K){return r&&K.alternate===null&&(K.flags|=2),K}function F(K,q,ee,ke){return q===null||q.tag!==6?(q=kc(ee,K.mode,ke),q.return=K,q):(q=v(q,ee),q.return=K,q)}function $(K,q,ee,ke){var He=ee.type;return He===ae?he(K,q,ee.props.children,ke,ee.key):q!==null&&(q.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===Rt&&hp(He)===q.type)?(ke=v(q,ee.props),ke.ref=hi(K,q,ee),ke.return=K,ke):(ke=y1(ee.type,ee.key,ee.props,null,K.mode,ke),ke.ref=hi(K,q,ee),ke.return=K,ke)}function re(K,q,ee,ke){return q===null||q.tag!==4||q.stateNode.containerInfo!==ee.containerInfo||q.stateNode.implementation!==ee.implementation?(q=xi(ee,K.mode,ke),q.return=K,q):(q=v(q,ee.children||[]),q.return=K,q)}function he(K,q,ee,ke,He){return q===null||q.tag!==7?(q=Ai(ee,K.mode,ke,He),q.return=K,q):(q=v(q,ee),q.return=K,q)}function ve(K,q,ee){if(typeof q=="string"&&q!==""||typeof q=="number")return q=kc(""+q,K.mode,ee),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case te:return ee=y1(q.type,q.key,q.props,null,K.mode,ee),ee.ref=hi(K,null,q),ee.return=K,ee;case ie:return q=xi(q,K.mode,ee),q.return=K,q;case Rt:var ke=q._init;return ve(K,ke(q._payload),ee)}if(Ao(q)||Pe(q))return q=Ai(q,K.mode,ee,null),q.return=K,q;yo(K,q)}return null}function ge(K,q,ee,ke){var He=q!==null?q.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number")return He!==null?null:F(K,q,""+ee,ke);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case te:return ee.key===He?$(K,q,ee,ke):null;case ie:return ee.key===He?re(K,q,ee,ke):null;case Rt:return He=ee._init,ge(K,q,He(ee._payload),ke)}if(Ao(ee)||Pe(ee))return He!==null?null:he(K,q,ee,ke,null);yo(K,ee)}return null}function Le(K,q,ee,ke,He){if(typeof ke=="string"&&ke!==""||typeof ke=="number")return K=K.get(ee)||null,F(q,K,""+ke,He);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case te:return K=K.get(ke.key===null?ee:ke.key)||null,$(q,K,ke,He);case ie:return K=K.get(ke.key===null?ee:ke.key)||null,re(q,K,ke,He);case Rt:var Ue=ke._init;return Le(K,q,ee,Ue(ke._payload),He)}if(Ao(ke)||Pe(ke))return K=K.get(ee)||null,he(q,K,ke,He,null);yo(q,ke)}return null}function De(K,q,ee,ke){for(var He=null,Ue=null,Ke=q,ot=q=0,qn=null;Ke!==null&&ot<ee.length;ot++){Ke.index>ot?(qn=Ke,Ke=null):qn=Ke.sibling;var Ot=ge(K,Ke,ee[ot],ke);if(Ot===null){Ke===null&&(Ke=qn);break}r&&Ke&&Ot.alternate===null&&s(K,Ke),q=S(Ot,q,ot),Ue===null?He=Ot:Ue.sibling=Ot,Ue=Ot,Ke=qn}if(ot===ee.length)return d(K,Ke),Zt&&sr(K,ot),He;if(Ke===null){for(;ot<ee.length;ot++)Ke=ve(K,ee[ot],ke),Ke!==null&&(q=S(Ke,q,ot),Ue===null?He=Ke:Ue.sibling=Ke,Ue=Ke);return Zt&&sr(K,ot),He}for(Ke=h(K,Ke);ot<ee.length;ot++)qn=Le(Ke,K,ot,ee[ot],ke),qn!==null&&(r&&qn.alternate!==null&&Ke.delete(qn.key===null?ot:qn.key),q=S(qn,q,ot),Ue===null?He=qn:Ue.sibling=qn,Ue=qn);return r&&Ke.forEach(function(As){return s(K,As)}),Zt&&sr(K,ot),He}function Ve(K,q,ee,ke){var He=Pe(ee);if(typeof He!="function")throw Error(o(150));if(ee=He.call(ee),ee==null)throw Error(o(151));for(var Ue=He=null,Ke=q,ot=q=0,qn=null,Ot=ee.next();Ke!==null&&!Ot.done;ot++,Ot=ee.next()){Ke.index>ot?(qn=Ke,Ke=null):qn=Ke.sibling;var As=ge(K,Ke,Ot.value,ke);if(As===null){Ke===null&&(Ke=qn);break}r&&Ke&&As.alternate===null&&s(K,Ke),q=S(As,q,ot),Ue===null?He=As:Ue.sibling=As,Ue=As,Ke=qn}if(Ot.done)return d(K,Ke),Zt&&sr(K,ot),He;if(Ke===null){for(;!Ot.done;ot++,Ot=ee.next())Ot=ve(K,Ot.value,ke),Ot!==null&&(q=S(Ot,q,ot),Ue===null?He=Ot:Ue.sibling=Ot,Ue=Ot);return Zt&&sr(K,ot),He}for(Ke=h(K,Ke);!Ot.done;ot++,Ot=ee.next())Ot=Le(Ke,K,ot,Ot.value,ke),Ot!==null&&(r&&Ot.alternate!==null&&Ke.delete(Ot.key===null?ot:Ot.key),q=S(Ot,q,ot),Ue===null?He=Ot:Ue.sibling=Ot,Ue=Ot);return r&&Ke.forEach(function(E4){return s(K,E4)}),Zt&&sr(K,ot),He}function hn(K,q,ee,ke){if(typeof ee=="object"&&ee!==null&&ee.type===ae&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case te:e:{for(var He=ee.key,Ue=q;Ue!==null;){if(Ue.key===He){if(He=ee.type,He===ae){if(Ue.tag===7){d(K,Ue.sibling),q=v(Ue,ee.props.children),q.return=K,K=q;break e}}else if(Ue.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===Rt&&hp(He)===Ue.type){d(K,Ue.sibling),q=v(Ue,ee.props),q.ref=hi(K,Ue,ee),q.return=K,K=q;break e}d(K,Ue);break}else s(K,Ue);Ue=Ue.sibling}ee.type===ae?(q=Ai(ee.props.children,K.mode,ke,ee.key),q.return=K,K=q):(ke=y1(ee.type,ee.key,ee.props,null,K.mode,ke),ke.ref=hi(K,q,ee),ke.return=K,K=ke)}return R(K);case ie:e:{for(Ue=ee.key;q!==null;){if(q.key===Ue)if(q.tag===4&&q.stateNode.containerInfo===ee.containerInfo&&q.stateNode.implementation===ee.implementation){d(K,q.sibling),q=v(q,ee.children||[]),q.return=K,K=q;break e}else{d(K,q);break}else s(K,q);q=q.sibling}q=xi(ee,K.mode,ke),q.return=K,K=q}return R(K);case Rt:return Ue=ee._init,hn(K,q,Ue(ee._payload),ke)}if(Ao(ee))return De(K,q,ee,ke);if(Pe(ee))return Ve(K,q,ee,ke);yo(K,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"?(ee=""+ee,q!==null&&q.tag===6?(d(K,q.sibling),q=v(q,ee),q.return=K,K=q):(d(K,q),q=kc(ee,K.mode,ke),q.return=K,K=q),R(K)):d(K,q)}return hn}var El=Md(!0),gp=Md(!1),Ho=ht(null),Ln=null,Ee=null,Or=null;function lr(){Or=Ee=Ln=null}function Tf(r){var s=Ho.current;Pt(Ho),r._currentValue=s}function bf(r,s,d){for(;r!==null;){var h=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),r===d)break;r=r.return}}function _l(r,s){Ln=r,Or=Ee=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&s&&(Ya=!0),r.firstContext=null)}function Lr(r){var s=r._currentValue;if(Or!==r)if(r={context:r,memoizedValue:s,next:null},Ee===null){if(Ln===null)throw Error(o(308));Ee=r,Ln.dependencies={lanes:0,firstContext:r}}else Ee=Ee.next=r;return s}var gi=null;function Sn(r){gi===null?gi=[r]:gi.push(r)}function yp(r,s,d,h){var v=s.interleaved;return v===null?(d.next=d,Sn(s)):(d.next=v.next,v.next=d),s.interleaved=d,qo(r,h)}function qo(r,s){r.lanes|=s;var d=r.alternate;for(d!==null&&(d.lanes|=s),d=r,r=r.return;r!==null;)r.childLanes|=s,d=r.alternate,d!==null&&(d.childLanes|=s),d=r,r=r.return;return d.tag===3?d.stateNode:null}var ws=!1;function Dd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Il(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Wa(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function Cs(r,s,d){var h=r.updateQueue;if(h===null)return null;if(h=h.shared,Et&2){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,qo(r,d)}return v=h.interleaved,v===null?(s.next=s,Sn(h)):(s.next=v.next,v.next=s),h.interleaved=s,qo(r,d)}function Ud(r,s,d){if(s=s.updateQueue,s!==null&&(s=s.shared,(d&4194240)!==0)){var h=s.lanes;h&=r.pendingLanes,d|=h,s.lanes=d,xu(r,d)}}function vp(r,s){var d=r.updateQueue,h=r.alternate;if(h!==null&&(h=h.updateQueue,d===h)){var v=null,S=null;if(d=d.firstBaseUpdate,d!==null){do{var R={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};S===null?v=S=R:S=S.next=R,d=d.next}while(d!==null);S===null?v=S=s:S=S.next=s}else v=S=s;d={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:S,shared:h.shared,effects:h.effects},r.updateQueue=d;return}r=d.lastBaseUpdate,r===null?d.firstBaseUpdate=s:r.next=s,d.lastBaseUpdate=s}function Fd(r,s,d,h){var v=r.updateQueue;ws=!1;var S=v.firstBaseUpdate,R=v.lastBaseUpdate,F=v.shared.pending;if(F!==null){v.shared.pending=null;var $=F,re=$.next;$.next=null,R===null?S=re:R.next=re,R=$;var he=r.alternate;he!==null&&(he=he.updateQueue,F=he.lastBaseUpdate,F!==R&&(F===null?he.firstBaseUpdate=re:F.next=re,he.lastBaseUpdate=$))}if(S!==null){var ve=v.baseState;R=0,he=re=$=null,F=S;do{var ge=F.lane,Le=F.eventTime;if((h&ge)===ge){he!==null&&(he=he.next={eventTime:Le,lane:0,tag:F.tag,payload:F.payload,callback:F.callback,next:null});e:{var De=r,Ve=F;switch(ge=s,Le=d,Ve.tag){case 1:if(De=Ve.payload,typeof De=="function"){ve=De.call(Le,ve,ge);break e}ve=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Ve.payload,ge=typeof De=="function"?De.call(Le,ve,ge):De,ge==null)break e;ve=we({},ve,ge);break e;case 2:ws=!0}}F.callback!==null&&F.lane!==0&&(r.flags|=64,ge=v.effects,ge===null?v.effects=[F]:ge.push(F))}else Le={eventTime:Le,lane:ge,tag:F.tag,payload:F.payload,callback:F.callback,next:null},he===null?(re=he=Le,$=ve):he=he.next=Le,R|=ge;if(F=F.next,F===null){if(F=v.shared.pending,F===null)break;ge=F,F=ge.next,ge.next=null,v.lastBaseUpdate=ge,v.shared.pending=null}}while(!0);if(he===null&&($=ve),v.baseState=$,v.firstBaseUpdate=re,v.lastBaseUpdate=he,s=v.shared.interleaved,s!==null){v=s;do R|=v.lane,v=v.next;while(v!==s)}else S===null&&(v.shared.lanes=0);Yo|=R,r.lanes=R,r.memoizedState=ve}}function Tp(r,s,d){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var h=r[s],v=h.callback;if(v!==null){if(h.callback=null,h=d,typeof v!="function")throw Error(o(191,v));v.call(h)}}}var nc={},no=ht(nc),Nl=ht(nc),ac=ht(nc);function yi(r){if(r===nc)throw Error(o(174));return r}function kf(r,s){switch(Mt(ac,s),Mt(Nl,r),Mt(no,nc),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:ar(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=ar(s,r)}Pt(no),Mt(no,s)}function Rl(){Pt(no),Pt(Nl),Pt(ac)}function bp(r){yi(ac.current);var s=yi(no.current),d=ar(s,r.type);s!==d&&(Mt(Nl,r),Mt(no,d))}function Sf(r){Nl.current===r&&(Pt(no),Pt(Nl))}var en=ht(0);function Vd(r){for(var s=r;s!==null;){if(s.tag===13){var d=s.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var jd=[];function wf(){for(var r=0;r<jd.length;r++)jd[r]._workInProgressVersionPrimary=null;jd.length=0}var Bd=Q.ReactCurrentDispatcher,rc=Q.ReactCurrentBatchConfig,$e=0,ze=null,rt=null,bt=null,ur=!1,Ol=!1,oc=0,u4=0;function pa(){throw Error(o(321))}function sc(r,s){if(s===null)return!1;for(var d=0;d<s.length&&d<r.length;d++)if(!Cr(r[d],s[d]))return!1;return!0}function fe(r,s,d,h,v,S){if($e=S,ze=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Bd.current=r===null||r.memoizedState===null?c4:Wt,r=d(h,v),Ol){S=0;do{if(Ol=!1,oc=0,25<=S)throw Error(o(301));S+=1,bt=rt=null,s.updateQueue=null,Bd.current=n1,r=d(h,v)}while(Ol)}if(Bd.current=ha,s=rt!==null&&rt.next!==null,$e=0,bt=rt=ze=null,ur=!1,s)throw Error(o(300));return r}function wn(){var r=oc!==0;return oc=0,r}function Qe(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?ze.memoizedState=bt=r:bt=bt.next=r,bt}function Kn(){if(rt===null){var r=ze.alternate;r=r!==null?r.memoizedState:null}else r=rt.next;var s=bt===null?ze.memoizedState:bt.next;if(s!==null)bt=s,rt=r;else{if(r===null)throw Error(o(310));rt=r,r={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},bt===null?ze.memoizedState=bt=r:bt=bt.next=r}return bt}function cr(r,s){return typeof s=="function"?s(r):s}function Go(r){var s=Kn(),d=s.queue;if(d===null)throw Error(o(311));d.lastRenderedReducer=r;var h=rt,v=h.baseQueue,S=d.pending;if(S!==null){if(v!==null){var R=v.next;v.next=S.next,S.next=R}h.baseQueue=v=S,d.pending=null}if(v!==null){S=v.next,h=h.baseState;var F=R=null,$=null,re=S;do{var he=re.lane;if(($e&he)===he)$!==null&&($=$.next={lane:0,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),h=re.hasEagerState?re.eagerState:r(h,re.action);else{var ve={lane:he,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null};$===null?(F=$=ve,R=h):$=$.next=ve,ze.lanes|=he,Yo|=he}re=re.next}while(re!==null&&re!==S);$===null?R=h:$.next=F,Cr(h,s.memoizedState)||(Ya=!0),s.memoizedState=h,s.baseState=R,s.baseQueue=$,d.lastRenderedState=h}if(r=d.interleaved,r!==null){v=r;do S=v.lane,ze.lanes|=S,Yo|=S,v=v.next;while(v!==r)}else v===null&&(d.lanes=0);return[s.memoizedState,d.dispatch]}function Ar(r){var s=Kn(),d=s.queue;if(d===null)throw Error(o(311));d.lastRenderedReducer=r;var h=d.dispatch,v=d.pending,S=s.memoizedState;if(v!==null){d.pending=null;var R=v=v.next;do S=r(S,R.action),R=R.next;while(R!==v);Cr(S,s.memoizedState)||(Ya=!0),s.memoizedState=S,s.baseQueue===null&&(s.baseState=S),d.lastRenderedState=S}return[S,h]}function Ll(){}function vi(r,s){var d=ze,h=Kn(),v=s(),S=!Cr(h.memoizedState,v);if(S&&(h.memoizedState=v,Ya=!0),h=h.queue,ic(zd.bind(null,d,h,r),[r]),h.getSnapshot!==s||S||bt!==null&&bt.memoizedState.tag&1){if(d.flags|=2048,Ti(9,$d.bind(null,d,h,v,s),void 0,null),rn===null)throw Error(o(349));$e&30||Al(d,s,v)}return v}function Al(r,s,d){r.flags|=16384,r={getSnapshot:s,value:d},s=ze.updateQueue,s===null?(s={lastEffect:null,stores:null},ze.updateQueue=s,s.stores=[r]):(d=s.stores,d===null?s.stores=[r]:d.push(r))}function $d(r,s,d,h){s.value=d,s.getSnapshot=h,Hd(s)&&qd(r)}function zd(r,s,d){return d(function(){Hd(s)&&qd(r)})}function Hd(r){var s=r.getSnapshot;r=r.value;try{var d=s();return!Cr(r,d)}catch{return!0}}function qd(r){var s=qo(r,1);s!==null&&ba(s,r,1,-1)}function Gd(r){var s=Qe();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:r},s.queue=r,r=r.dispatch=lc.bind(null,ze,r),[s.memoizedState,r]}function Ti(r,s,d,h){return r={tag:r,create:s,destroy:d,deps:h,next:null},s=ze.updateQueue,s===null?(s={lastEffect:null,stores:null},ze.updateQueue=s,s.lastEffect=r.next=r):(d=s.lastEffect,d===null?s.lastEffect=r.next=r:(h=d.next,d.next=r,r.next=h,s.lastEffect=r)),r}function Wd(){return Kn().memoizedState}function xl(r,s,d,h){var v=Qe();ze.flags|=r,v.memoizedState=Ti(1|s,d,void 0,h===void 0?null:h)}function Pl(r,s,d,h){var v=Kn();h=h===void 0?null:h;var S=void 0;if(rt!==null){var R=rt.memoizedState;if(S=R.destroy,h!==null&&sc(h,R.deps)){v.memoizedState=Ti(s,d,S,h);return}}ze.flags|=r,v.memoizedState=Ti(1|s,d,S,h)}function Qd(r,s){return xl(8390656,8,r,s)}function ic(r,s){return Pl(2048,8,r,s)}function Yd(r,s){return Pl(4,2,r,s)}function Kd(r,s){return Pl(4,4,r,s)}function Zd(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function Xd(r,s,d){return d=d!=null?d.concat([r]):null,Pl(4,4,Zd.bind(null,s,r),d)}function Ml(){}function bi(r,s){var d=Kn();s=s===void 0?null:s;var h=d.memoizedState;return h!==null&&s!==null&&sc(s,h[1])?h[0]:(d.memoizedState=[r,s],r)}function Jd(r,s){var d=Kn();s=s===void 0?null:s;var h=d.memoizedState;return h!==null&&s!==null&&sc(s,h[1])?h[0]:(r=r(),d.memoizedState=[r,s],r)}function e1(r,s,d){return $e&21?(Cr(d,s)||(d=cd(),ze.lanes|=d,Yo|=d,r.baseState=!0),s):(r.baseState&&(r.baseState=!1,Ya=!0),r.memoizedState=d)}function Cf(r,s){var d=Ft;Ft=d!==0&&4>d?d:4,r(!0);var h=rc.transition;rc.transition={};try{r(!1),s()}finally{Ft=d,rc.transition=h}}function t1(){return Kn().memoizedState}function kp(r,s,d){var h=Cn(r);if(d={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null},Ef(r))Dl(s,d);else if(d=yp(r,s,d,h),d!==null){var v=Ta();ba(d,r,h,v),Es(d,s,h)}}function lc(r,s,d){var h=Cn(r),v={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(Ef(r))Dl(s,v);else{var S=r.alternate;if(r.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var R=s.lastRenderedState,F=S(R,d);if(v.hasEagerState=!0,v.eagerState=F,Cr(F,R)){var $=s.interleaved;$===null?(v.next=v,Sn(s)):(v.next=$.next,$.next=v),s.interleaved=v;return}}catch{}finally{}d=yp(r,s,v,h),d!==null&&(v=Ta(),ba(d,r,h,v),Es(d,s,h))}}function Ef(r){var s=r.alternate;return r===ze||s!==null&&s===ze}function Dl(r,s){Ol=ur=!0;var d=r.pending;d===null?s.next=s:(s.next=d.next,d.next=s),r.pending=s}function Es(r,s,d){if(d&4194240){var h=s.lanes;h&=r.pendingLanes,d|=h,s.lanes=d,xu(r,d)}}var ha={readContext:Lr,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},c4={readContext:Lr,useCallback:function(r,s){return Qe().memoizedState=[r,s===void 0?null:s],r},useContext:Lr,useEffect:Qd,useImperativeHandle:function(r,s,d){return d=d!=null?d.concat([r]):null,xl(4194308,4,Zd.bind(null,s,r),d)},useLayoutEffect:function(r,s){return xl(4194308,4,r,s)},useInsertionEffect:function(r,s){return xl(4,2,r,s)},useMemo:function(r,s){var d=Qe();return s=s===void 0?null:s,r=r(),d.memoizedState=[r,s],r},useReducer:function(r,s,d){var h=Qe();return s=d!==void 0?d(s):s,h.memoizedState=h.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},h.queue=r,r=r.dispatch=kp.bind(null,ze,r),[h.memoizedState,r]},useRef:function(r){var s=Qe();return r={current:r},s.memoizedState=r},useState:Gd,useDebugValue:Ml,useDeferredValue:function(r){return Qe().memoizedState=r},useTransition:function(){var r=Gd(!1),s=r[0];return r=Cf.bind(null,r[1]),Qe().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,d){var h=ze,v=Qe();if(Zt){if(d===void 0)throw Error(o(407));d=d()}else{if(d=s(),rn===null)throw Error(o(349));$e&30||Al(h,s,d)}v.memoizedState=d;var S={value:d,getSnapshot:s};return v.queue=S,Qd(zd.bind(null,h,S,r),[r]),h.flags|=2048,Ti(9,$d.bind(null,h,S,d,s),void 0,null),d},useId:function(){var r=Qe(),s=rn.identifierPrefix;if(Zt){var d=zo,h=Yn;d=(h&~(1<<32-kr(h)-1)).toString(32)+d,s=":"+s+"R"+d,d=oc++,0<d&&(s+="H"+d.toString(32)),s+=":"}else d=u4++,s=":"+s+"r"+d.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},Wt={readContext:Lr,useCallback:bi,useContext:Lr,useEffect:ic,useImperativeHandle:Xd,useInsertionEffect:Yd,useLayoutEffect:Kd,useMemo:Jd,useReducer:Go,useRef:Wd,useState:function(){return Go(cr)},useDebugValue:Ml,useDeferredValue:function(r){var s=Kn();return e1(s,rt.memoizedState,r)},useTransition:function(){var r=Go(cr)[0],s=Kn().memoizedState;return[r,s]},useMutableSource:Ll,useSyncExternalStore:vi,useId:t1,unstable_isNewReconciler:!1},n1={readContext:Lr,useCallback:bi,useContext:Lr,useEffect:ic,useImperativeHandle:Xd,useInsertionEffect:Yd,useLayoutEffect:Kd,useMemo:Jd,useReducer:Ar,useRef:Wd,useState:function(){return Ar(cr)},useDebugValue:Ml,useDeferredValue:function(r){var s=Kn();return rt===null?s.memoizedState=r:e1(s,rt.memoizedState,r)},useTransition:function(){var r=Ar(cr)[0],s=Kn().memoizedState;return[r,s]},useMutableSource:Ll,useSyncExternalStore:vi,useId:t1,unstable_isNewReconciler:!1};function Qa(r,s){if(r&&r.defaultProps){s=we({},s),r=r.defaultProps;for(var d in r)s[d]===void 0&&(s[d]=r[d]);return s}return s}function ki(r,s,d,h){s=r.memoizedState,d=d(h,s),d=d==null?s:we({},s,d),r.memoizedState=d,r.lanes===0&&(r.updateQueue.baseState=d)}var Si={isMounted:function(r){return(r=r._reactInternals)?po(r)===r:!1},enqueueSetState:function(r,s,d){r=r._reactInternals;var h=Ta(),v=Cn(r),S=Wa(h,v);S.payload=s,d!=null&&(S.callback=d),s=Cs(r,S,v),s!==null&&(ba(s,r,v,h),Ud(s,r,v))},enqueueReplaceState:function(r,s,d){r=r._reactInternals;var h=Ta(),v=Cn(r),S=Wa(h,v);S.tag=1,S.payload=s,d!=null&&(S.callback=d),s=Cs(r,S,v),s!==null&&(ba(s,r,v,h),Ud(s,r,v))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var d=Ta(),h=Cn(r),v=Wa(d,h);v.tag=2,s!=null&&(v.callback=s),s=Cs(r,v,h),s!==null&&(ba(s,r,h,d),Ud(s,r,h))}};function Sp(r,s,d,h,v,S,R){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(h,S,R):s.prototype&&s.prototype.isPureReactComponent?!Hu(d,h)||!Hu(v,S):!0}function wp(r,s,d){var h=!1,v=go,S=s.contextType;return typeof S=="object"&&S!==null?S=Lr(S):(v=Jt(s)?$a:at.current,h=s.contextTypes,S=(h=h!=null)?_r(r,v):go),s=new s(d,S),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Si,r.stateNode=s,s._reactInternals=r,h&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=v,r.__reactInternalMemoizedMaskedChildContext=S),s}function Cp(r,s,d,h){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(d,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(d,h),s.state!==r&&Si.enqueueReplaceState(s,s.state,null)}function _f(r,s,d,h){var v=r.stateNode;v.props=d,v.state=r.memoizedState,v.refs={},Dd(r);var S=s.contextType;typeof S=="object"&&S!==null?v.context=Lr(S):(S=Jt(s)?$a:at.current,v.context=_r(r,S)),v.state=r.memoizedState,S=s.getDerivedStateFromProps,typeof S=="function"&&(ki(r,s,S,d),v.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(s=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),s!==v.state&&Si.enqueueReplaceState(v,v.state,null),Fd(r,d,v,h),v.state=r.memoizedState),typeof v.componentDidMount=="function"&&(r.flags|=4194308)}function _s(r,s){try{var d="",h=s;do d+=We(h),h=h.return;while(h);var v=d}catch(S){v=`
40
+ `+v[R].replace(" at new "," at ");return r.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",r.displayName)),$}while(1<=R&&0<=F);break}}}finally{se=!1,Error.prepareStackTrace=d}return(r=r?r.displayName||r.name:"")?z(r):""}function We(r){switch(r.tag){case 5:return z(r.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return r=me(r.type,!1),r;case 11:return r=me(r.type.render,!1),r;case 1:return r=me(r.type,!0),r;default:return""}}function gt(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case ae:return"Fragment";case ie:return"Portal";case Se:return"Profiler";case Ce:return"StrictMode";case Ne:return"Suspense";case et:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Be:return(r.displayName||"Context")+".Consumer";case Ye:return(r._context.displayName||"Context")+".Provider";case Ge:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case mt:return s=r.displayName||null,s!==null?s:gt(r.type)||"Memo";case Rt:s=r._payload,r=r._init;try{return gt(r(s))}catch{}}return null}function it(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gt(s);case 8:return s===Ce?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function tt(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function lt(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function _t(r){var s=lt(r)?"checked":"value",d=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),h=""+r[s];if(!r.hasOwnProperty(s)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,S=d.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return v.call(this)},set:function(R){h=""+R,S.call(this,R)}}),Object.defineProperty(r,s,{enumerable:d.enumerable}),{getValue:function(){return h},setValue:function(R){h=""+R},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Yt(r){r._valueTracker||(r._valueTracker=_t(r))}function In(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var d=s.getValue(),h="";return r&&(h=lt(r)?r.checked?"true":"false":r.value),r=h,r!==d?(s.setValue(r),!0):!1}function qt(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function nn(r,s){var d=s.checked;return we({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??r._wrapperState.initialChecked})}function Nt(r,s){var d=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;d=tt(s.value!=null?s.value:d),r._wrapperState={initialChecked:h,initialValue:d,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function sn(r,s){s=s.checked,s!=null&&Z(r,"checked",s,!1)}function Nn(r,s){sn(r,s);var d=tt(s.value),h=s.type;if(d!=null)h==="number"?(d===0&&r.value===""||r.value!=d)&&(r.value=""+d):r.value!==""+d&&(r.value=""+d);else if(h==="submit"||h==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?de(r,s.type,d):s.hasOwnProperty("defaultValue")&&de(r,s.type,tt(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function Wr(r,s,d){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,d||s===r.value||(r.value=s),r.defaultValue=s}d=r.name,d!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,d!==""&&(r.name=d)}function de(r,s,d){(s!=="number"||qt(r.ownerDocument)!==r)&&(d==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+d&&(r.defaultValue=""+d))}var Ao=Array.isArray;function mo(r,s,d,h){if(r=r.options,s){s={};for(var v=0;v<d.length;v++)s["$"+d[v]]=!0;for(d=0;d<r.length;d++)v=s.hasOwnProperty("$"+r[d].value),r[d].selected!==v&&(r[d].selected=v),v&&h&&(r[d].defaultSelected=!0)}else{for(d=""+tt(d),s=null,v=0;v<r.length;v++){if(r[v].value===d){r[v].selected=!0,h&&(r[v].defaultSelected=!0);return}s!==null||r[v].disabled||(s=r[v])}s!==null&&(s.selected=!0)}}function xo(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(o(91));return we({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function ds(r,s){var d=s.value;if(d==null){if(d=s.children,s=s.defaultValue,d!=null){if(s!=null)throw Error(o(92));if(Ao(d)){if(1<d.length)throw Error(o(93));d=d[0]}s=d}s==null&&(s=""),d=s}r._wrapperState={initialValue:tt(d)}}function ni(r,s){var d=tt(s.value),h=tt(s.defaultValue);d!=null&&(d=""+d,d!==r.value&&(r.value=d),s.defaultValue==null&&r.defaultValue!==d&&(r.defaultValue=d)),h!=null&&(r.defaultValue=""+h)}function Tr(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function ms(r){switch(r){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 ar(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?ms(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var fo,Iu=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,d,h,v){MSApp.execUnsafeLocalFunction(function(){return r(s,d,h,v)})}:r}(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(fo=fo||document.createElement("div"),fo.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=fo.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function Re(r,s){if(s){var d=r.firstChild;if(d&&d===r.lastChild&&d.nodeType===3){d.nodeValue=s;return}}r.textContent=s}var Xe={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},vt=["Webkit","ms","Moz","O"];Object.keys(Xe).forEach(function(r){vt.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),Xe[s]=Xe[r]})});function Gt(r,s,d){return s==null||typeof s=="boolean"||s===""?"":d||typeof s!="number"||s===0||Xe.hasOwnProperty(r)&&Xe[r]?(""+s).trim():s+"px"}function ln(r,s){r=r.style;for(var d in s)if(s.hasOwnProperty(d)){var h=d.indexOf("--")===0,v=Gt(d,s[d],h);d==="float"&&(d="cssFloat"),h?r.setProperty(d,v):r[d]=v}}var ja=we({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 Rn(r,s){if(s){if(ja[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(o(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(o(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(o(61))}if(s.style!=null&&typeof s.style!="object")throw Error(o(62))}}function Qr(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";switch(r){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 vn=null;function br(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Nu=null,Tn=null,un=null;function y2(r){if(r=Ju(r)){if(typeof Nu!="function")throw Error(o(280));var s=r.stateNode;s&&(s=Ze(s),Nu(r.stateNode,r.type,s))}}function rd(r){Tn?un?un.push(r):un=[r]:Tn=r}function od(){if(Tn){var r=Tn,s=un;if(un=Tn=null,y2(r),s)for(r=0;r<s.length;r++)y2(s[r])}}function v2(r,s){return r(s)}function T2(){}var sd=!1;function Om(r,s,d){if(sd)return r(s,d);sd=!0;try{return v2(r,s,d)}finally{sd=!1,(Tn!==null||un!==null)&&(T2(),od())}}function Ru(r,s){var d=r.stateNode;if(d===null)return null;var h=Ze(d);if(h===null)return null;d=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(r=r.type,h=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!h;break e;default:r=!1}if(r)return null;if(d&&typeof d!="function")throw Error(o(231,s,typeof d));return d}var id=!1;if(y)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){id=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{id=!1}function ll(r,s,d,h,v,S,R,F,$){var re=Array.prototype.slice.call(arguments,3);try{s.apply(d,re)}catch(he){this.onError(he)}}var Yr=!1,Po=null,ul=!1,Ou=null,Lm={onError:function(r){Yr=!0,Po=r}};function Am(r,s,d,h,v,S,R,F,$){Yr=!1,Po=null,ll.apply(Lm,arguments)}function cl(r,s,d,h,v,S,R,F,$){if(Am.apply(this,arguments),Yr){if(Yr){var re=Po;Yr=!1,Po=null}else throw Error(o(198));ul||(ul=!0,Ou=re)}}function po(r){var s=r,d=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,s.flags&4098&&(d=s.return),r=s.return;while(r)}return s.tag===3?d:null}function Lu(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function dl(r){if(po(r)!==r)throw Error(o(188))}function Ea(r){var s=r.alternate;if(!s){if(s=po(r),s===null)throw Error(o(188));return s!==r?null:r}for(var d=r,h=s;;){var v=d.return;if(v===null)break;var S=v.alternate;if(S===null){if(h=v.return,h!==null){d=h;continue}break}if(v.child===S.child){for(S=v.child;S;){if(S===d)return dl(v),r;if(S===h)return dl(v),s;S=S.sibling}throw Error(o(188))}if(d.return!==h.return)d=v,h=S;else{for(var R=!1,F=v.child;F;){if(F===d){R=!0,d=v,h=S;break}if(F===h){R=!0,h=v,d=S;break}F=F.sibling}if(!R){for(F=S.child;F;){if(F===d){R=!0,d=S,h=v;break}if(F===h){R=!0,h=S,d=v;break}F=F.sibling}if(!R)throw Error(o(189))}}if(d.alternate!==h)throw Error(o(190))}if(d.tag!==3)throw Error(o(188));return d.stateNode.current===d?r:s}function b2(r){return r=Ea(r),r!==null?k2(r):null}function k2(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=k2(r);if(s!==null)return s;r=r.sibling}return null}var xm=a.unstable_scheduleCallback,S2=a.unstable_cancelCallback,j6=a.unstable_shouldYield,B6=a.unstable_requestPaint,cn=a.unstable_now,$6=a.unstable_getCurrentPriorityLevel,Mo=a.unstable_ImmediatePriority,Ct=a.unstable_UserBlockingPriority,fs=a.unstable_NormalPriority,w2=a.unstable_LowPriority,Pm=a.unstable_IdlePriority,Au=null,Kr=null;function C2(r){if(Kr&&typeof Kr.onCommitFiberRoot=="function")try{Kr.onCommitFiberRoot(Au,r,void 0,(r.current.flags&128)===128)}catch{}}var kr=Math.clz32?Math.clz32:z6,E2=Math.log,_2=Math.LN2;function z6(r){return r>>>=0,r===0?32:31-(E2(r)/_2|0)|0}var ld=64,ml=4194304;function ri(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Zr(r,s){var d=r.pendingLanes;if(d===0)return 0;var h=0,v=r.suspendedLanes,S=r.pingedLanes,R=d&268435455;if(R!==0){var F=R&~v;F!==0?h=ri(F):(S&=R,S!==0&&(h=ri(S)))}else R=d&~v,R!==0?h=ri(R):S!==0&&(h=ri(S));if(h===0)return 0;if(s!==0&&s!==h&&!(s&v)&&(v=h&-h,S=s&-s,v>=S||v===16&&(S&4194240)!==0))return s;if(h&4&&(h|=d&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=h;0<s;)d=31-kr(s),v=1<<d,h|=r[d],s&=~v;return h}function Mm(r,s){switch(r){case 1:case 2:case 4:return s+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 s+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 ud(r,s){for(var d=r.suspendedLanes,h=r.pingedLanes,v=r.expirationTimes,S=r.pendingLanes;0<S;){var R=31-kr(S),F=1<<R,$=v[R];$===-1?(!(F&d)||F&h)&&(v[R]=Mm(F,s)):$<=s&&(r.expiredLanes|=F),S&=~F}}function Dm(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function cd(){var r=ld;return ld<<=1,!(ld&4194240)&&(ld=64),r}function Um(r){for(var s=[],d=0;31>d;d++)s.push(r);return s}function oi(r,s,d){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-kr(s),r[s]=d}function H6(r,s){var d=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var h=r.eventTimes;for(r=r.expirationTimes;0<d;){var v=31-kr(d),S=1<<v;s[v]=0,h[v]=-1,r[v]=-1,d&=~S}}function xu(r,s){var d=r.entangledLanes|=s;for(r=r.entanglements;d;){var h=31-kr(d),v=1<<h;v&s|r[h]&s&&(r[h]|=s),d&=~v}}var Ft=0;function Fm(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var I2,dd,Vt,N2,Vm,ft=!1,Pu=[],bn=null,Sr=null,wr=null,Mu=new Map,On=new Map,jt=[],q6="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 Xr(r,s){switch(r){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":Sr=null;break;case"mouseover":case"mouseout":wr=null;break;case"pointerover":case"pointerout":Mu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":On.delete(s.pointerId)}}function ma(r,s,d,h,v,S){return r===null||r.nativeEvent!==S?(r={blockedOn:s,domEventName:d,eventSystemFlags:h,nativeEvent:S,targetContainers:[v]},s!==null&&(s=Ju(s),s!==null&&dd(s)),r):(r.eventSystemFlags|=h,s=r.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),r)}function ps(r,s,d,h,v){switch(s){case"focusin":return bn=ma(bn,r,s,d,h,v),!0;case"dragenter":return Sr=ma(Sr,r,s,d,h,v),!0;case"mouseover":return wr=ma(wr,r,s,d,h,v),!0;case"pointerover":var S=v.pointerId;return Mu.set(S,ma(Mu.get(S)||null,r,s,d,h,v)),!0;case"gotpointercapture":return S=v.pointerId,On.set(S,ma(On.get(S)||null,r,s,d,h,v)),!0}return!1}function R2(r){var s=Er(r.target);if(s!==null){var d=po(s);if(d!==null){if(s=d.tag,s===13){if(s=Lu(d),s!==null){r.blockedOn=s,Vm(r.priority,function(){Vt(d)});return}}else if(s===3&&d.stateNode.current.memoizedState.isDehydrated){r.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}r.blockedOn=null}function fl(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var d=pd(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(d===null){d=r.nativeEvent;var h=new d.constructor(d.type,d);vn=h,d.target.dispatchEvent(h),vn=null}else return s=Ju(d),s!==null&&dd(s),r.blockedOn=d,!1;s.shift()}return!0}function jm(r,s,d){fl(r)&&d.delete(s)}function O2(){ft=!1,bn!==null&&fl(bn)&&(bn=null),Sr!==null&&fl(Sr)&&(Sr=null),wr!==null&&fl(wr)&&(wr=null),Mu.forEach(jm),On.forEach(jm)}function Du(r,s){r.blockedOn===s&&(r.blockedOn=null,ft||(ft=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,O2)))}function Uu(r){function s(v){return Du(v,r)}if(0<Pu.length){Du(Pu[0],r);for(var d=1;d<Pu.length;d++){var h=Pu[d];h.blockedOn===r&&(h.blockedOn=null)}}for(bn!==null&&Du(bn,r),Sr!==null&&Du(Sr,r),wr!==null&&Du(wr,r),Mu.forEach(s),On.forEach(s),d=0;d<jt.length;d++)h=jt[d],h.blockedOn===r&&(h.blockedOn=null);for(;0<jt.length&&(d=jt[0],d.blockedOn===null);)R2(d),d.blockedOn===null&&jt.shift()}var pl=Q.ReactCurrentBatchConfig,si=!0;function L2(r,s,d,h){var v=Ft,S=pl.transition;pl.transition=null;try{Ft=1,fd(r,s,d,h)}finally{Ft=v,pl.transition=S}}function md(r,s,d,h){var v=Ft,S=pl.transition;pl.transition=null;try{Ft=4,fd(r,s,d,h)}finally{Ft=v,pl.transition=S}}function fd(r,s,d,h){if(si){var v=pd(r,s,d,h);if(v===null)_d(r,s,h,Fu,d),Xr(r,h);else if(ps(v,r,s,d,h))h.stopPropagation();else if(Xr(r,h),s&4&&-1<q6.indexOf(r)){for(;v!==null;){var S=Ju(v);if(S!==null&&I2(S),S=pd(r,s,d,h),S===null&&_d(r,s,h,Fu,d),S===v)break;v=S}v!==null&&h.stopPropagation()}else _d(r,s,h,null,d)}}var Fu=null;function pd(r,s,d,h){if(Fu=null,r=br(h),r=Er(r),r!==null)if(s=po(r),s===null)r=null;else if(d=s.tag,d===13){if(r=Lu(s),r!==null)return r;r=null}else if(d===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return Fu=r,null}function Bm(r){switch(r){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($6()){case Mo:return 1;case Ct:return 4;case fs:case w2:return 16;case Pm:return 536870912;default:return 16}default:return 16}}var Do=null,Vu=null,ju=null;function $m(){if(ju)return ju;var r,s=Vu,d=s.length,h,v="value"in Do?Do.value:Do.textContent,S=v.length;for(r=0;r<d&&s[r]===v[r];r++);var R=d-r;for(h=1;h<=R&&s[d-h]===v[S-h];h++);return ju=v.slice(r,1<h?1-h:void 0)}function hl(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Bu(){return!0}function A2(){return!1}function rr(r){function s(d,h,v,S,R){this._reactName=d,this._targetInst=v,this.type=h,this.nativeEvent=S,this.target=R,this.currentTarget=null;for(var F in r)r.hasOwnProperty(F)&&(d=r[F],this[F]=d?d(S):S[F]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Bu:A2,this.isPropagationStopped=A2,this}return we(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Bu)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Bu)},persist:function(){},isPersistent:Bu}),s}var hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=rr(hs),gl=we({},hs,{view:0,detail:0}),x2=rr(gl),gd,zm,$u,jn=we({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wm,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==$u&&($u&&r.type==="mousemove"?(gd=r.screenX-$u.screenX,zm=r.screenY-$u.screenY):zm=gd=0,$u=r),gd)},movementY:function(r){return"movementY"in r?r.movementY:zm}}),yd=rr(jn),P2=we({},jn,{dataTransfer:0}),M2=rr(P2),G6=we({},gl,{relatedTarget:0}),gs=rr(G6),Hm=we({},hs,{animationName:0,elapsedTime:0,pseudoElement:0}),D2=rr(Hm),W6=we({},hs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Q6=rr(W6),Y6=we({},hs,{data:0}),qm=rr(Y6),Gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U2={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"},F2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function V2(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=F2[r])?!!s[r]:!1}function Wm(){return V2}var Uo=we({},gl,{key:function(r){if(r.key){var s=Gm[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=hl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?U2[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wm,charCode:function(r){return r.type==="keypress"?hl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?hl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),K6=rr(Uo),Qm=we({},jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=rr(Qm),Ym=we({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wm}),Z6=rr(Ym),Td=we({},hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),j2=rr(Td),Ba=we({},jn,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Fo=rr(Ba),kn=[9,13,27,32],Jr=y&&"CompositionEvent"in window,ii=null;y&&"documentMode"in document&&(ii=document.documentMode);var bd=y&&"TextEvent"in window&&!ii,B2=y&&(!Jr||ii&&8<ii&&11>=ii),yl=" ",$2=!1;function z2(r,s){switch(r){case"keyup":return kn.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kd(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var vl=!1;function X6(r,s){switch(r){case"compositionend":return kd(s);case"keypress":return s.which!==32?null:($2=!0,yl);case"textInput":return r=s.data,r===yl&&$2?null:r;default:return null}}function J6(r,s){if(vl)return r==="compositionend"||!Jr&&z2(r,s)?(r=$m(),ju=Vu=Do=null,vl=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return B2&&s.locale!=="ko"?null:s.data;default:return null}}var H2={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 q2(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!H2[r.type]:s==="textarea"}function G2(r,s,d,h){rd(h),s=Ku(s,"onChange"),0<s.length&&(d=new hd("onChange","change",null,d,h),r.push({event:d,listeners:s}))}var zu=null,Tl=null;function bl(r){Ed(r,0)}function kl(r){var s=wl(r);if(In(s))return r}function W2(r,s){if(r==="change")return s}var Km=!1;if(y){var Zm;if(y){var Xm="oninput"in document;if(!Xm){var Q2=document.createElement("div");Q2.setAttribute("oninput","return;"),Xm=typeof Q2.oninput=="function"}Zm=Xm}else Zm=!1;Km=Zm&&(!document.documentMode||9<document.documentMode)}function Y2(){zu&&(zu.detachEvent("onpropertychange",K2),Tl=zu=null)}function K2(r){if(r.propertyName==="value"&&kl(Tl)){var s=[];G2(s,Tl,r,br(r)),Om(bl,s)}}function e4(r,s,d){r==="focusin"?(Y2(),zu=s,Tl=d,zu.attachEvent("onpropertychange",K2)):r==="focusout"&&Y2()}function t4(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return kl(Tl)}function n4(r,s){if(r==="click")return kl(s)}function Z2(r,s){if(r==="input"||r==="change")return kl(s)}function a4(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var Cr=typeof Object.is=="function"?Object.is:a4;function Hu(r,s){if(Cr(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var d=Object.keys(r),h=Object.keys(s);if(d.length!==h.length)return!1;for(h=0;h<d.length;h++){var v=d[h];if(!b.call(s,v)||!Cr(r[v],s[v]))return!1}return!0}function X2(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function J2(r,s){var d=X2(r);r=0;for(var h;d;){if(d.nodeType===3){if(h=r+d.textContent.length,r<=s&&h>=s)return{node:d,offset:s-r};r=h}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=X2(d)}}function ep(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?ep(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Sd(){for(var r=window,s=qt();s instanceof r.HTMLIFrameElement;){try{var d=typeof s.contentWindow.location.href=="string"}catch{d=!1}if(d)r=s.contentWindow;else break;s=qt(r.document)}return s}function Vo(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function wd(r){var s=Sd(),d=r.focusedElem,h=r.selectionRange;if(s!==d&&d&&d.ownerDocument&&ep(d.ownerDocument.documentElement,d)){if(h!==null&&Vo(d)){if(s=h.start,r=h.end,r===void 0&&(r=s),"selectionStart"in d)d.selectionStart=s,d.selectionEnd=Math.min(r,d.value.length);else if(r=(s=d.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var v=d.textContent.length,S=Math.min(h.start,v);h=h.end===void 0?S:Math.min(h.end,v),!r.extend&&S>h&&(v=h,h=S,S=v),v=J2(d,S);var R=J2(d,h);v&&R&&(r.rangeCount!==1||r.anchorNode!==v.node||r.anchorOffset!==v.offset||r.focusNode!==R.node||r.focusOffset!==R.offset)&&(s=s.createRange(),s.setStart(v.node,v.offset),r.removeAllRanges(),S>h?(r.addRange(s),r.extend(R.node,R.offset)):(s.setEnd(R.node,R.offset),r.addRange(s)))}}for(s=[],r=d;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<s.length;d++)r=s[d],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var tp=y&&"documentMode"in document&&11>=document.documentMode,eo=null,Jm=null,qu=null,ef=!1;function np(r,s,d){var h=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;ef||eo==null||eo!==qt(h)||(h=eo,"selectionStart"in h&&Vo(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),qu&&Hu(qu,h)||(qu=h,h=Ku(Jm,"onSelect"),0<h.length&&(s=new hd("onSelect","select",null,s,d),r.push({event:s,listeners:h}),s.target=eo)))}function Cd(r,s){var d={};return d[r.toLowerCase()]=s.toLowerCase(),d["Webkit"+r]="webkit"+s,d["Moz"+r]="moz"+s,d}var li={animationend:Cd("Animation","AnimationEnd"),animationiteration:Cd("Animation","AnimationIteration"),animationstart:Cd("Animation","AnimationStart"),transitionend:Cd("Transition","TransitionEnd")},tf={},nf={};y&&(nf=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function Bn(r){if(tf[r])return tf[r];if(!li[r])return r;var s=li[r],d;for(d in s)if(s.hasOwnProperty(d)&&d in nf)return tf[r]=s[d];return r}var af=Bn("animationend"),ap=Bn("animationiteration"),rp=Bn("animationstart"),op=Bn("transitionend"),sp=new Map,ip="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 jo(r,s){sp.set(r,s),p(s,[r])}for(var Gu=0;Gu<ip.length;Gu++){var ui=ip[Gu],r4=ui.toLowerCase(),Wu=ui[0].toUpperCase()+ui.slice(1);jo(r4,"on"+Wu)}jo(af,"onAnimationEnd"),jo(ap,"onAnimationIteration"),jo(rp,"onAnimationStart"),jo("dblclick","onDoubleClick"),jo("focusin","onFocus"),jo("focusout","onBlur"),jo(op,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="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(" "),o4=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qu));function lp(r,s,d){var h=r.type||"unknown-event";r.currentTarget=d,cl(h,s,void 0,r),r.currentTarget=null}function Ed(r,s){s=(s&4)!==0;for(var d=0;d<r.length;d++){var h=r[d],v=h.event;h=h.listeners;e:{var S=void 0;if(s)for(var R=h.length-1;0<=R;R--){var F=h[R],$=F.instance,re=F.currentTarget;if(F=F.listener,$!==S&&v.isPropagationStopped())break e;lp(v,F,re),S=$}else for(R=0;R<h.length;R++){if(F=h[R],$=F.instance,re=F.currentTarget,F=F.listener,$!==S&&v.isPropagationStopped())break e;lp(v,F,re),S=$}}}if(ul)throw r=Ou,ul=!1,Ou=null,r}function Ht(r,s){var d=s[df];d===void 0&&(d=s[df]=new Set);var h=r+"__bubble";d.has(h)||(up(s,r,2,!1),d.add(h))}function ys(r,s,d){var h=0;s&&(h|=4),up(d,r,h,s)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function Sl(r){if(!r[Bo]){r[Bo]=!0,l.forEach(function(d){d!=="selectionchange"&&(o4.has(d)||ys(d,!1,r),ys(d,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[Bo]||(s[Bo]=!0,ys("selectionchange",!1,s))}}function up(r,s,d,h){switch(Bm(s)){case 1:var v=L2;break;case 4:v=md;break;default:v=fd}d=v.bind(null,s,d,r),v=void 0,!id||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?r.addEventListener(s,d,{capture:!0,passive:v}):r.addEventListener(s,d,!0):v!==void 0?r.addEventListener(s,d,{passive:v}):r.addEventListener(s,d,!1)}function _d(r,s,d,h,v){var S=h;if(!(s&1)&&!(s&2)&&h!==null)e:for(;;){if(h===null)return;var R=h.tag;if(R===3||R===4){var F=h.stateNode.containerInfo;if(F===v||F.nodeType===8&&F.parentNode===v)break;if(R===4)for(R=h.return;R!==null;){var $=R.tag;if(($===3||$===4)&&($=R.stateNode.containerInfo,$===v||$.nodeType===8&&$.parentNode===v))return;R=R.return}for(;F!==null;){if(R=Er(F),R===null)return;if($=R.tag,$===5||$===6){h=S=R;continue e}F=F.parentNode}}h=h.return}Om(function(){var re=S,he=br(d),ve=[];e:{var ge=sp.get(r);if(ge!==void 0){var Le=hd,De=r;switch(r){case"keypress":if(hl(d)===0)break e;case"keydown":case"keyup":Le=K6;break;case"focusin":De="focus",Le=gs;break;case"focusout":De="blur",Le=gs;break;case"beforeblur":case"afterblur":Le=gs;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=M2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Z6;break;case af:case ap:case rp:Le=D2;break;case op:Le=j2;break;case"scroll":Le=x2;break;case"wheel":Le=Fo;break;case"copy":case"cut":case"paste":Le=Q6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=vd}var Ve=(s&4)!==0,hn=!Ve&&r==="scroll",K=Ve?ge!==null?ge+"Capture":null:ge;Ve=[];for(var q=re,ee;q!==null;){ee=q;var ke=ee.stateNode;if(ee.tag===5&&ke!==null&&(ee=ke,K!==null&&(ke=Ru(q,K),ke!=null&&Ve.push(Yu(q,ke,ee)))),hn)break;q=q.return}0<Ve.length&&(ge=new Le(ge,De,null,d,he),ve.push({event:ge,listeners:Ve}))}}if(!(s&7)){e:{if(ge=r==="mouseover"||r==="pointerover",Le=r==="mouseout"||r==="pointerout",ge&&d!==vn&&(De=d.relatedTarget||d.fromElement)&&(Er(De)||De[$o]))break e;if((Le||ge)&&(ge=he.window===he?he:(ge=he.ownerDocument)?ge.defaultView||ge.parentWindow:window,Le?(De=d.relatedTarget||d.toElement,Le=re,De=De?Er(De):null,De!==null&&(hn=po(De),De!==hn||De.tag!==5&&De.tag!==6)&&(De=null)):(Le=null,De=re),Le!==De)){if(Ve=yd,ke="onMouseLeave",K="onMouseEnter",q="mouse",(r==="pointerout"||r==="pointerover")&&(Ve=vd,ke="onPointerLeave",K="onPointerEnter",q="pointer"),hn=Le==null?ge:wl(Le),ee=De==null?ge:wl(De),ge=new Ve(ke,q+"leave",Le,d,he),ge.target=hn,ge.relatedTarget=ee,ke=null,Er(he)===re&&(Ve=new Ve(K,q+"enter",De,d,he),Ve.target=ee,Ve.relatedTarget=hn,ke=Ve),hn=ke,Le&&De)t:{for(Ve=Le,K=De,q=0,ee=Ve;ee;ee=ci(ee))q++;for(ee=0,ke=K;ke;ke=ci(ke))ee++;for(;0<q-ee;)Ve=ci(Ve),q--;for(;0<ee-q;)K=ci(K),ee--;for(;q--;){if(Ve===K||K!==null&&Ve===K.alternate)break t;Ve=ci(Ve),K=ci(K)}Ve=null}else Ve=null;Le!==null&&rf(ve,ge,Le,Ve,!1),De!==null&&hn!==null&&rf(ve,hn,De,Ve,!0)}}e:{if(ge=re?wl(re):window,Le=ge.nodeName&&ge.nodeName.toLowerCase(),Le==="select"||Le==="input"&&ge.type==="file")var He=W2;else if(q2(ge))if(Km)He=Z2;else{He=t4;var Ue=e4}else(Le=ge.nodeName)&&Le.toLowerCase()==="input"&&(ge.type==="checkbox"||ge.type==="radio")&&(He=n4);if(He&&(He=He(r,re))){G2(ve,He,d,he);break e}Ue&&Ue(r,ge,re),r==="focusout"&&(Ue=ge._wrapperState)&&Ue.controlled&&ge.type==="number"&&de(ge,"number",ge.value)}switch(Ue=re?wl(re):window,r){case"focusin":(q2(Ue)||Ue.contentEditable==="true")&&(eo=Ue,Jm=re,qu=null);break;case"focusout":qu=Jm=eo=null;break;case"mousedown":ef=!0;break;case"contextmenu":case"mouseup":case"dragend":ef=!1,np(ve,d,he);break;case"selectionchange":if(tp)break;case"keydown":case"keyup":np(ve,d,he)}var Ke;if(Jr)e:{switch(r){case"compositionstart":var st="onCompositionStart";break e;case"compositionend":st="onCompositionEnd";break e;case"compositionupdate":st="onCompositionUpdate";break e}st=void 0}else vl?z2(r,d)&&(st="onCompositionEnd"):r==="keydown"&&d.keyCode===229&&(st="onCompositionStart");st&&(B2&&d.locale!=="ko"&&(vl||st!=="onCompositionStart"?st==="onCompositionEnd"&&vl&&(Ke=$m()):(Do=he,Vu="value"in Do?Do.value:Do.textContent,vl=!0)),Ue=Ku(re,st),0<Ue.length&&(st=new qm(st,r,null,d,he),ve.push({event:st,listeners:Ue}),Ke?st.data=Ke:(Ke=kd(d),Ke!==null&&(st.data=Ke)))),(Ke=bd?X6(r,d):J6(r,d))&&(re=Ku(re,"onBeforeInput"),0<re.length&&(he=new qm("onBeforeInput","beforeinput",null,d,he),ve.push({event:he,listeners:re}),he.data=Ke))}Ed(ve,s)})}function Yu(r,s,d){return{instance:r,listener:s,currentTarget:d}}function Ku(r,s){for(var d=s+"Capture",h=[];r!==null;){var v=r,S=v.stateNode;v.tag===5&&S!==null&&(v=S,S=Ru(r,d),S!=null&&h.unshift(Yu(r,S,v)),S=Ru(r,s),S!=null&&h.push(Yu(r,S,v))),r=r.return}return h}function ci(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function rf(r,s,d,h,v){for(var S=s._reactName,R=[];d!==null&&d!==h;){var F=d,$=F.alternate,re=F.stateNode;if($!==null&&$===h)break;F.tag===5&&re!==null&&(F=re,v?($=Ru(d,S),$!=null&&R.unshift(Yu(d,$,F))):v||($=Ru(d,S),$!=null&&R.push(Yu(d,$,F)))),d=d.return}R.length!==0&&r.push({event:s,listeners:R})}var of=/\r\n?/g,s4=/\u0000|\uFFFD/g;function sf(r){return(typeof r=="string"?r:""+r).replace(of,`
41
+ `).replace(s4,"")}function Id(r,s,d){if(s=sf(s),sf(r)!==s&&d)throw Error(o(425))}function Nd(){}var lf=null,di=null;function Zu(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var mi=typeof setTimeout=="function"?setTimeout:void 0,cp=typeof clearTimeout=="function"?clearTimeout:void 0,uf=typeof Promise=="function"?Promise:void 0,cf=typeof queueMicrotask=="function"?queueMicrotask:typeof uf<"u"?function(r){return uf.resolve(null).then(r).catch(i4)}:mi;function i4(r){setTimeout(function(){throw r})}function vs(r,s){var d=s,h=0;do{var v=d.nextSibling;if(r.removeChild(d),v&&v.nodeType===8)if(d=v.data,d==="/$"){if(h===0){r.removeChild(v),Uu(s);return}h--}else d!=="$"&&d!=="$?"&&d!=="$!"||h++;d=v}while(d);Uu(s)}function to(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function Xu(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var d=r.data;if(d==="$"||d==="$!"||d==="$?"){if(s===0)return r;s--}else d==="/$"&&s++}r=r.previousSibling}return null}var Ts=Math.random().toString(36).slice(2),ho="__reactFiber$"+Ts,fi="__reactProps$"+Ts,$o="__reactContainer$"+Ts,df="__reactEvents$"+Ts,l4="__reactListeners$"+Ts,mf="__reactHandles$"+Ts;function Er(r){var s=r[ho];if(s)return s;for(var d=r.parentNode;d;){if(s=d[$o]||d[ho]){if(d=s.alternate,s.child!==null||d!==null&&d.child!==null)for(r=Xu(r);r!==null;){if(d=r[ho])return d;r=Xu(r)}return s}r=d,d=r.parentNode}return null}function Ju(r){return r=r[ho]||r[$o],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function wl(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(o(33))}function Ze(r){return r[fi]||null}var bs=[],Kt=-1;function ht(r){return{current:r}}function Pt(r){0>Kt||(r.current=bs[Kt],bs[Kt]=null,Kt--)}function Mt(r,s){Kt++,bs[Kt]=r.current,r.current=s}var go={},rt=ht(go),dn=ht(!1),$a=go;function _r(r,s){var d=r.type.contextTypes;if(!d)return go;var h=r.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var v={},S;for(S in d)v[S]=s[S];return h&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=v),v}function Jt(r){return r=r.childContextTypes,r!=null}function Ir(){Pt(dn),Pt(rt)}function ks(r,s,d){if(rt.current!==go)throw Error(o(168));Mt(rt,s),Mt(dn,d)}function ec(r,s,d){var h=r.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return d;h=h.getChildContext();for(var v in h)if(!(v in s))throw Error(o(108,it(r)||"Unknown",v));return we({},d,h)}function Rd(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||go,$a=rt.current,Mt(rt,r),Mt(dn,dn.current),!0}function dp(r,s,d){var h=r.stateNode;if(!h)throw Error(o(169));d?(r=ec(r,s,$a),h.__reactInternalMemoizedMergedChildContext=r,Pt(dn),Pt(rt),Mt(rt,r)):Pt(dn),Mt(dn,d)}var or=null,$n=!1,tc=!1;function ff(r){or===null?or=[r]:or.push(r)}function pf(r){$n=!0,ff(r)}function za(){if(!tc&&or!==null){tc=!0;var r=0,s=Ft;try{var d=or;for(Ft=1;r<d.length;r++){var h=d[r];do h=h(!0);while(h!==null)}or=null,$n=!1}catch(v){throw or!==null&&(or=or.slice(r+1)),xm(Mo,za),v}finally{Ft=s,tc=!1}}return null}var Ss=[],Ha=0,pi=null,Cl=0,qa=[],fa=0,Nr=null,Yn=1,zo="";function sr(r,s){Ss[Ha++]=Cl,Ss[Ha++]=pi,pi=r,Cl=s}function hf(r,s,d){qa[fa++]=Yn,qa[fa++]=zo,qa[fa++]=Nr,Nr=r;var h=Yn;r=zo;var v=32-kr(h)-1;h&=~(1<<v),d+=1;var S=32-kr(s)+v;if(30<S){var R=v-v%5;S=(h&(1<<R)-1).toString(32),h>>=R,v-=R,Yn=1<<32-kr(s)+v|d<<v|h,zo=S+r}else Yn=1<<S|d<<v|h,zo=r}function Od(r){r.return!==null&&(sr(r,1),hf(r,1,0))}function gf(r){for(;r===pi;)pi=Ss[--Ha],Ss[Ha]=null,Cl=Ss[--Ha],Ss[Ha]=null;for(;r===Nr;)Nr=qa[--fa],qa[fa]=null,zo=qa[--fa],qa[fa]=null,Yn=qa[--fa],qa[fa]=null}var ir=null,Ga=null,Zt=!1,Rr=null;function yf(r,s){var d=Dr(5,null,null,0);d.elementType="DELETED",d.stateNode=s,d.return=r,s=r.deletions,s===null?(r.deletions=[d],r.flags|=16):s.push(d)}function mp(r,s){switch(r.tag){case 5:var d=r.type;return s=s.nodeType!==1||d.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,ir=r,Ga=to(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,ir=r,Ga=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(d=Nr!==null?{id:Yn,overflow:zo}:null,r.memoizedState={dehydrated:s,treeContext:d,retryLane:1073741824},d=Dr(18,null,null,0),d.stateNode=s,d.return=r,r.child=d,ir=r,Ga=null,!0):!1;default:return!1}}function Ld(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Ad(r){if(Zt){var s=Ga;if(s){var d=s;if(!mp(r,s)){if(Ld(r))throw Error(o(418));s=to(d.nextSibling);var h=ir;s&&mp(r,s)?yf(h,d):(r.flags=r.flags&-4097|2,Zt=!1,ir=r)}}else{if(Ld(r))throw Error(o(418));r.flags=r.flags&-4097|2,Zt=!1,ir=r}}}function fp(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;ir=r}function xd(r){if(r!==ir)return!1;if(!Zt)return fp(r),Zt=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!Zu(r.type,r.memoizedProps)),s&&(s=Ga)){if(Ld(r))throw pp(),Error(o(418));for(;s;)yf(r,s),s=to(s.nextSibling)}if(fp(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var d=r.data;if(d==="/$"){if(s===0){Ga=to(r.nextSibling);break e}s--}else d!=="$"&&d!=="$!"&&d!=="$?"||s++}r=r.nextSibling}Ga=null}}else Ga=ir?to(r.stateNode.nextSibling):null;return!0}function pp(){for(var r=Ga;r;)r=to(r.nextSibling)}function an(){Ga=ir=null,Zt=!1}function vf(r){Rr===null?Rr=[r]:Rr.push(r)}var Pd=Q.ReactCurrentBatchConfig;function hi(r,s,d){if(r=d.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(o(309));var h=d.stateNode}if(!h)throw Error(o(147,r));var v=h,S=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===S?s.ref:(s=function(R){var F=v.refs;R===null?delete F[S]:F[S]=R},s._stringRef=S,s)}if(typeof r!="string")throw Error(o(284));if(!d._owner)throw Error(o(290,r))}return r}function yo(r,s){throw r=Object.prototype.toString.call(s),Error(o(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function hp(r){var s=r._init;return s(r._payload)}function Md(r){function s(K,q){if(r){var ee=K.deletions;ee===null?(K.deletions=[q],K.flags|=16):ee.push(q)}}function d(K,q){if(!r)return null;for(;q!==null;)s(K,q),q=q.sibling;return null}function h(K,q){for(K=new Map;q!==null;)q.key!==null?K.set(q.key,q):K.set(q.index,q),q=q.sibling;return K}function v(K,q){return K=Ls(K,q),K.index=0,K.sibling=null,K}function S(K,q,ee){return K.index=ee,r?(ee=K.alternate,ee!==null?(ee=ee.index,ee<q?(K.flags|=2,q):ee):(K.flags|=2,q)):(K.flags|=1048576,q)}function R(K){return r&&K.alternate===null&&(K.flags|=2),K}function F(K,q,ee,ke){return q===null||q.tag!==6?(q=kc(ee,K.mode,ke),q.return=K,q):(q=v(q,ee),q.return=K,q)}function $(K,q,ee,ke){var He=ee.type;return He===ae?he(K,q,ee.props.children,ke,ee.key):q!==null&&(q.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===Rt&&hp(He)===q.type)?(ke=v(q,ee.props),ke.ref=hi(K,q,ee),ke.return=K,ke):(ke=y1(ee.type,ee.key,ee.props,null,K.mode,ke),ke.ref=hi(K,q,ee),ke.return=K,ke)}function re(K,q,ee,ke){return q===null||q.tag!==4||q.stateNode.containerInfo!==ee.containerInfo||q.stateNode.implementation!==ee.implementation?(q=xi(ee,K.mode,ke),q.return=K,q):(q=v(q,ee.children||[]),q.return=K,q)}function he(K,q,ee,ke,He){return q===null||q.tag!==7?(q=Ai(ee,K.mode,ke,He),q.return=K,q):(q=v(q,ee),q.return=K,q)}function ve(K,q,ee){if(typeof q=="string"&&q!==""||typeof q=="number")return q=kc(""+q,K.mode,ee),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case te:return ee=y1(q.type,q.key,q.props,null,K.mode,ee),ee.ref=hi(K,null,q),ee.return=K,ee;case ie:return q=xi(q,K.mode,ee),q.return=K,q;case Rt:var ke=q._init;return ve(K,ke(q._payload),ee)}if(Ao(q)||Pe(q))return q=Ai(q,K.mode,ee,null),q.return=K,q;yo(K,q)}return null}function ge(K,q,ee,ke){var He=q!==null?q.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number")return He!==null?null:F(K,q,""+ee,ke);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case te:return ee.key===He?$(K,q,ee,ke):null;case ie:return ee.key===He?re(K,q,ee,ke):null;case Rt:return He=ee._init,ge(K,q,He(ee._payload),ke)}if(Ao(ee)||Pe(ee))return He!==null?null:he(K,q,ee,ke,null);yo(K,ee)}return null}function Le(K,q,ee,ke,He){if(typeof ke=="string"&&ke!==""||typeof ke=="number")return K=K.get(ee)||null,F(q,K,""+ke,He);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case te:return K=K.get(ke.key===null?ee:ke.key)||null,$(q,K,ke,He);case ie:return K=K.get(ke.key===null?ee:ke.key)||null,re(q,K,ke,He);case Rt:var Ue=ke._init;return Le(K,q,ee,Ue(ke._payload),He)}if(Ao(ke)||Pe(ke))return K=K.get(ee)||null,he(q,K,ke,He,null);yo(q,ke)}return null}function De(K,q,ee,ke){for(var He=null,Ue=null,Ke=q,st=q=0,qn=null;Ke!==null&&st<ee.length;st++){Ke.index>st?(qn=Ke,Ke=null):qn=Ke.sibling;var Ot=ge(K,Ke,ee[st],ke);if(Ot===null){Ke===null&&(Ke=qn);break}r&&Ke&&Ot.alternate===null&&s(K,Ke),q=S(Ot,q,st),Ue===null?He=Ot:Ue.sibling=Ot,Ue=Ot,Ke=qn}if(st===ee.length)return d(K,Ke),Zt&&sr(K,st),He;if(Ke===null){for(;st<ee.length;st++)Ke=ve(K,ee[st],ke),Ke!==null&&(q=S(Ke,q,st),Ue===null?He=Ke:Ue.sibling=Ke,Ue=Ke);return Zt&&sr(K,st),He}for(Ke=h(K,Ke);st<ee.length;st++)qn=Le(Ke,K,st,ee[st],ke),qn!==null&&(r&&qn.alternate!==null&&Ke.delete(qn.key===null?st:qn.key),q=S(qn,q,st),Ue===null?He=qn:Ue.sibling=qn,Ue=qn);return r&&Ke.forEach(function(As){return s(K,As)}),Zt&&sr(K,st),He}function Ve(K,q,ee,ke){var He=Pe(ee);if(typeof He!="function")throw Error(o(150));if(ee=He.call(ee),ee==null)throw Error(o(151));for(var Ue=He=null,Ke=q,st=q=0,qn=null,Ot=ee.next();Ke!==null&&!Ot.done;st++,Ot=ee.next()){Ke.index>st?(qn=Ke,Ke=null):qn=Ke.sibling;var As=ge(K,Ke,Ot.value,ke);if(As===null){Ke===null&&(Ke=qn);break}r&&Ke&&As.alternate===null&&s(K,Ke),q=S(As,q,st),Ue===null?He=As:Ue.sibling=As,Ue=As,Ke=qn}if(Ot.done)return d(K,Ke),Zt&&sr(K,st),He;if(Ke===null){for(;!Ot.done;st++,Ot=ee.next())Ot=ve(K,Ot.value,ke),Ot!==null&&(q=S(Ot,q,st),Ue===null?He=Ot:Ue.sibling=Ot,Ue=Ot);return Zt&&sr(K,st),He}for(Ke=h(K,Ke);!Ot.done;st++,Ot=ee.next())Ot=Le(Ke,K,st,Ot.value,ke),Ot!==null&&(r&&Ot.alternate!==null&&Ke.delete(Ot.key===null?st:Ot.key),q=S(Ot,q,st),Ue===null?He=Ot:Ue.sibling=Ot,Ue=Ot);return r&&Ke.forEach(function(E4){return s(K,E4)}),Zt&&sr(K,st),He}function hn(K,q,ee,ke){if(typeof ee=="object"&&ee!==null&&ee.type===ae&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case te:e:{for(var He=ee.key,Ue=q;Ue!==null;){if(Ue.key===He){if(He=ee.type,He===ae){if(Ue.tag===7){d(K,Ue.sibling),q=v(Ue,ee.props.children),q.return=K,K=q;break e}}else if(Ue.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===Rt&&hp(He)===Ue.type){d(K,Ue.sibling),q=v(Ue,ee.props),q.ref=hi(K,Ue,ee),q.return=K,K=q;break e}d(K,Ue);break}else s(K,Ue);Ue=Ue.sibling}ee.type===ae?(q=Ai(ee.props.children,K.mode,ke,ee.key),q.return=K,K=q):(ke=y1(ee.type,ee.key,ee.props,null,K.mode,ke),ke.ref=hi(K,q,ee),ke.return=K,K=ke)}return R(K);case ie:e:{for(Ue=ee.key;q!==null;){if(q.key===Ue)if(q.tag===4&&q.stateNode.containerInfo===ee.containerInfo&&q.stateNode.implementation===ee.implementation){d(K,q.sibling),q=v(q,ee.children||[]),q.return=K,K=q;break e}else{d(K,q);break}else s(K,q);q=q.sibling}q=xi(ee,K.mode,ke),q.return=K,K=q}return R(K);case Rt:return Ue=ee._init,hn(K,q,Ue(ee._payload),ke)}if(Ao(ee))return De(K,q,ee,ke);if(Pe(ee))return Ve(K,q,ee,ke);yo(K,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"?(ee=""+ee,q!==null&&q.tag===6?(d(K,q.sibling),q=v(q,ee),q.return=K,K=q):(d(K,q),q=kc(ee,K.mode,ke),q.return=K,K=q),R(K)):d(K,q)}return hn}var El=Md(!0),gp=Md(!1),Ho=ht(null),Ln=null,Ee=null,Or=null;function lr(){Or=Ee=Ln=null}function Tf(r){var s=Ho.current;Pt(Ho),r._currentValue=s}function bf(r,s,d){for(;r!==null;){var h=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),r===d)break;r=r.return}}function _l(r,s){Ln=r,Or=Ee=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&s&&(Ya=!0),r.firstContext=null)}function Lr(r){var s=r._currentValue;if(Or!==r)if(r={context:r,memoizedValue:s,next:null},Ee===null){if(Ln===null)throw Error(o(308));Ee=r,Ln.dependencies={lanes:0,firstContext:r}}else Ee=Ee.next=r;return s}var gi=null;function Sn(r){gi===null?gi=[r]:gi.push(r)}function yp(r,s,d,h){var v=s.interleaved;return v===null?(d.next=d,Sn(s)):(d.next=v.next,v.next=d),s.interleaved=d,qo(r,h)}function qo(r,s){r.lanes|=s;var d=r.alternate;for(d!==null&&(d.lanes|=s),d=r,r=r.return;r!==null;)r.childLanes|=s,d=r.alternate,d!==null&&(d.childLanes|=s),d=r,r=r.return;return d.tag===3?d.stateNode:null}var ws=!1;function Dd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Il(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Wa(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function Cs(r,s,d){var h=r.updateQueue;if(h===null)return null;if(h=h.shared,Et&2){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,qo(r,d)}return v=h.interleaved,v===null?(s.next=s,Sn(h)):(s.next=v.next,v.next=s),h.interleaved=s,qo(r,d)}function Ud(r,s,d){if(s=s.updateQueue,s!==null&&(s=s.shared,(d&4194240)!==0)){var h=s.lanes;h&=r.pendingLanes,d|=h,s.lanes=d,xu(r,d)}}function vp(r,s){var d=r.updateQueue,h=r.alternate;if(h!==null&&(h=h.updateQueue,d===h)){var v=null,S=null;if(d=d.firstBaseUpdate,d!==null){do{var R={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};S===null?v=S=R:S=S.next=R,d=d.next}while(d!==null);S===null?v=S=s:S=S.next=s}else v=S=s;d={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:S,shared:h.shared,effects:h.effects},r.updateQueue=d;return}r=d.lastBaseUpdate,r===null?d.firstBaseUpdate=s:r.next=s,d.lastBaseUpdate=s}function Fd(r,s,d,h){var v=r.updateQueue;ws=!1;var S=v.firstBaseUpdate,R=v.lastBaseUpdate,F=v.shared.pending;if(F!==null){v.shared.pending=null;var $=F,re=$.next;$.next=null,R===null?S=re:R.next=re,R=$;var he=r.alternate;he!==null&&(he=he.updateQueue,F=he.lastBaseUpdate,F!==R&&(F===null?he.firstBaseUpdate=re:F.next=re,he.lastBaseUpdate=$))}if(S!==null){var ve=v.baseState;R=0,he=re=$=null,F=S;do{var ge=F.lane,Le=F.eventTime;if((h&ge)===ge){he!==null&&(he=he.next={eventTime:Le,lane:0,tag:F.tag,payload:F.payload,callback:F.callback,next:null});e:{var De=r,Ve=F;switch(ge=s,Le=d,Ve.tag){case 1:if(De=Ve.payload,typeof De=="function"){ve=De.call(Le,ve,ge);break e}ve=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Ve.payload,ge=typeof De=="function"?De.call(Le,ve,ge):De,ge==null)break e;ve=we({},ve,ge);break e;case 2:ws=!0}}F.callback!==null&&F.lane!==0&&(r.flags|=64,ge=v.effects,ge===null?v.effects=[F]:ge.push(F))}else Le={eventTime:Le,lane:ge,tag:F.tag,payload:F.payload,callback:F.callback,next:null},he===null?(re=he=Le,$=ve):he=he.next=Le,R|=ge;if(F=F.next,F===null){if(F=v.shared.pending,F===null)break;ge=F,F=ge.next,ge.next=null,v.lastBaseUpdate=ge,v.shared.pending=null}}while(!0);if(he===null&&($=ve),v.baseState=$,v.firstBaseUpdate=re,v.lastBaseUpdate=he,s=v.shared.interleaved,s!==null){v=s;do R|=v.lane,v=v.next;while(v!==s)}else S===null&&(v.shared.lanes=0);Yo|=R,r.lanes=R,r.memoizedState=ve}}function Tp(r,s,d){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var h=r[s],v=h.callback;if(v!==null){if(h.callback=null,h=d,typeof v!="function")throw Error(o(191,v));v.call(h)}}}var nc={},no=ht(nc),Nl=ht(nc),ac=ht(nc);function yi(r){if(r===nc)throw Error(o(174));return r}function kf(r,s){switch(Mt(ac,s),Mt(Nl,r),Mt(no,nc),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:ar(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=ar(s,r)}Pt(no),Mt(no,s)}function Rl(){Pt(no),Pt(Nl),Pt(ac)}function bp(r){yi(ac.current);var s=yi(no.current),d=ar(s,r.type);s!==d&&(Mt(Nl,r),Mt(no,d))}function Sf(r){Nl.current===r&&(Pt(no),Pt(Nl))}var en=ht(0);function Vd(r){for(var s=r;s!==null;){if(s.tag===13){var d=s.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var jd=[];function wf(){for(var r=0;r<jd.length;r++)jd[r]._workInProgressVersionPrimary=null;jd.length=0}var Bd=Q.ReactCurrentDispatcher,rc=Q.ReactCurrentBatchConfig,$e=0,ze=null,ot=null,bt=null,ur=!1,Ol=!1,oc=0,u4=0;function pa(){throw Error(o(321))}function sc(r,s){if(s===null)return!1;for(var d=0;d<s.length&&d<r.length;d++)if(!Cr(r[d],s[d]))return!1;return!0}function fe(r,s,d,h,v,S){if($e=S,ze=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Bd.current=r===null||r.memoizedState===null?c4:Wt,r=d(h,v),Ol){S=0;do{if(Ol=!1,oc=0,25<=S)throw Error(o(301));S+=1,bt=ot=null,s.updateQueue=null,Bd.current=n1,r=d(h,v)}while(Ol)}if(Bd.current=ha,s=ot!==null&&ot.next!==null,$e=0,bt=ot=ze=null,ur=!1,s)throw Error(o(300));return r}function wn(){var r=oc!==0;return oc=0,r}function Qe(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?ze.memoizedState=bt=r:bt=bt.next=r,bt}function Kn(){if(ot===null){var r=ze.alternate;r=r!==null?r.memoizedState:null}else r=ot.next;var s=bt===null?ze.memoizedState:bt.next;if(s!==null)bt=s,ot=r;else{if(r===null)throw Error(o(310));ot=r,r={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},bt===null?ze.memoizedState=bt=r:bt=bt.next=r}return bt}function cr(r,s){return typeof s=="function"?s(r):s}function Go(r){var s=Kn(),d=s.queue;if(d===null)throw Error(o(311));d.lastRenderedReducer=r;var h=ot,v=h.baseQueue,S=d.pending;if(S!==null){if(v!==null){var R=v.next;v.next=S.next,S.next=R}h.baseQueue=v=S,d.pending=null}if(v!==null){S=v.next,h=h.baseState;var F=R=null,$=null,re=S;do{var he=re.lane;if(($e&he)===he)$!==null&&($=$.next={lane:0,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),h=re.hasEagerState?re.eagerState:r(h,re.action);else{var ve={lane:he,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null};$===null?(F=$=ve,R=h):$=$.next=ve,ze.lanes|=he,Yo|=he}re=re.next}while(re!==null&&re!==S);$===null?R=h:$.next=F,Cr(h,s.memoizedState)||(Ya=!0),s.memoizedState=h,s.baseState=R,s.baseQueue=$,d.lastRenderedState=h}if(r=d.interleaved,r!==null){v=r;do S=v.lane,ze.lanes|=S,Yo|=S,v=v.next;while(v!==r)}else v===null&&(d.lanes=0);return[s.memoizedState,d.dispatch]}function Ar(r){var s=Kn(),d=s.queue;if(d===null)throw Error(o(311));d.lastRenderedReducer=r;var h=d.dispatch,v=d.pending,S=s.memoizedState;if(v!==null){d.pending=null;var R=v=v.next;do S=r(S,R.action),R=R.next;while(R!==v);Cr(S,s.memoizedState)||(Ya=!0),s.memoizedState=S,s.baseQueue===null&&(s.baseState=S),d.lastRenderedState=S}return[S,h]}function Ll(){}function vi(r,s){var d=ze,h=Kn(),v=s(),S=!Cr(h.memoizedState,v);if(S&&(h.memoizedState=v,Ya=!0),h=h.queue,ic(zd.bind(null,d,h,r),[r]),h.getSnapshot!==s||S||bt!==null&&bt.memoizedState.tag&1){if(d.flags|=2048,Ti(9,$d.bind(null,d,h,v,s),void 0,null),rn===null)throw Error(o(349));$e&30||Al(d,s,v)}return v}function Al(r,s,d){r.flags|=16384,r={getSnapshot:s,value:d},s=ze.updateQueue,s===null?(s={lastEffect:null,stores:null},ze.updateQueue=s,s.stores=[r]):(d=s.stores,d===null?s.stores=[r]:d.push(r))}function $d(r,s,d,h){s.value=d,s.getSnapshot=h,Hd(s)&&qd(r)}function zd(r,s,d){return d(function(){Hd(s)&&qd(r)})}function Hd(r){var s=r.getSnapshot;r=r.value;try{var d=s();return!Cr(r,d)}catch{return!0}}function qd(r){var s=qo(r,1);s!==null&&ba(s,r,1,-1)}function Gd(r){var s=Qe();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:r},s.queue=r,r=r.dispatch=lc.bind(null,ze,r),[s.memoizedState,r]}function Ti(r,s,d,h){return r={tag:r,create:s,destroy:d,deps:h,next:null},s=ze.updateQueue,s===null?(s={lastEffect:null,stores:null},ze.updateQueue=s,s.lastEffect=r.next=r):(d=s.lastEffect,d===null?s.lastEffect=r.next=r:(h=d.next,d.next=r,r.next=h,s.lastEffect=r)),r}function Wd(){return Kn().memoizedState}function xl(r,s,d,h){var v=Qe();ze.flags|=r,v.memoizedState=Ti(1|s,d,void 0,h===void 0?null:h)}function Pl(r,s,d,h){var v=Kn();h=h===void 0?null:h;var S=void 0;if(ot!==null){var R=ot.memoizedState;if(S=R.destroy,h!==null&&sc(h,R.deps)){v.memoizedState=Ti(s,d,S,h);return}}ze.flags|=r,v.memoizedState=Ti(1|s,d,S,h)}function Qd(r,s){return xl(8390656,8,r,s)}function ic(r,s){return Pl(2048,8,r,s)}function Yd(r,s){return Pl(4,2,r,s)}function Kd(r,s){return Pl(4,4,r,s)}function Zd(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function Xd(r,s,d){return d=d!=null?d.concat([r]):null,Pl(4,4,Zd.bind(null,s,r),d)}function Ml(){}function bi(r,s){var d=Kn();s=s===void 0?null:s;var h=d.memoizedState;return h!==null&&s!==null&&sc(s,h[1])?h[0]:(d.memoizedState=[r,s],r)}function Jd(r,s){var d=Kn();s=s===void 0?null:s;var h=d.memoizedState;return h!==null&&s!==null&&sc(s,h[1])?h[0]:(r=r(),d.memoizedState=[r,s],r)}function e1(r,s,d){return $e&21?(Cr(d,s)||(d=cd(),ze.lanes|=d,Yo|=d,r.baseState=!0),s):(r.baseState&&(r.baseState=!1,Ya=!0),r.memoizedState=d)}function Cf(r,s){var d=Ft;Ft=d!==0&&4>d?d:4,r(!0);var h=rc.transition;rc.transition={};try{r(!1),s()}finally{Ft=d,rc.transition=h}}function t1(){return Kn().memoizedState}function kp(r,s,d){var h=Cn(r);if(d={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null},Ef(r))Dl(s,d);else if(d=yp(r,s,d,h),d!==null){var v=Ta();ba(d,r,h,v),Es(d,s,h)}}function lc(r,s,d){var h=Cn(r),v={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(Ef(r))Dl(s,v);else{var S=r.alternate;if(r.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var R=s.lastRenderedState,F=S(R,d);if(v.hasEagerState=!0,v.eagerState=F,Cr(F,R)){var $=s.interleaved;$===null?(v.next=v,Sn(s)):(v.next=$.next,$.next=v),s.interleaved=v;return}}catch{}finally{}d=yp(r,s,v,h),d!==null&&(v=Ta(),ba(d,r,h,v),Es(d,s,h))}}function Ef(r){var s=r.alternate;return r===ze||s!==null&&s===ze}function Dl(r,s){Ol=ur=!0;var d=r.pending;d===null?s.next=s:(s.next=d.next,d.next=s),r.pending=s}function Es(r,s,d){if(d&4194240){var h=s.lanes;h&=r.pendingLanes,d|=h,s.lanes=d,xu(r,d)}}var ha={readContext:Lr,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},c4={readContext:Lr,useCallback:function(r,s){return Qe().memoizedState=[r,s===void 0?null:s],r},useContext:Lr,useEffect:Qd,useImperativeHandle:function(r,s,d){return d=d!=null?d.concat([r]):null,xl(4194308,4,Zd.bind(null,s,r),d)},useLayoutEffect:function(r,s){return xl(4194308,4,r,s)},useInsertionEffect:function(r,s){return xl(4,2,r,s)},useMemo:function(r,s){var d=Qe();return s=s===void 0?null:s,r=r(),d.memoizedState=[r,s],r},useReducer:function(r,s,d){var h=Qe();return s=d!==void 0?d(s):s,h.memoizedState=h.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},h.queue=r,r=r.dispatch=kp.bind(null,ze,r),[h.memoizedState,r]},useRef:function(r){var s=Qe();return r={current:r},s.memoizedState=r},useState:Gd,useDebugValue:Ml,useDeferredValue:function(r){return Qe().memoizedState=r},useTransition:function(){var r=Gd(!1),s=r[0];return r=Cf.bind(null,r[1]),Qe().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,d){var h=ze,v=Qe();if(Zt){if(d===void 0)throw Error(o(407));d=d()}else{if(d=s(),rn===null)throw Error(o(349));$e&30||Al(h,s,d)}v.memoizedState=d;var S={value:d,getSnapshot:s};return v.queue=S,Qd(zd.bind(null,h,S,r),[r]),h.flags|=2048,Ti(9,$d.bind(null,h,S,d,s),void 0,null),d},useId:function(){var r=Qe(),s=rn.identifierPrefix;if(Zt){var d=zo,h=Yn;d=(h&~(1<<32-kr(h)-1)).toString(32)+d,s=":"+s+"R"+d,d=oc++,0<d&&(s+="H"+d.toString(32)),s+=":"}else d=u4++,s=":"+s+"r"+d.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},Wt={readContext:Lr,useCallback:bi,useContext:Lr,useEffect:ic,useImperativeHandle:Xd,useInsertionEffect:Yd,useLayoutEffect:Kd,useMemo:Jd,useReducer:Go,useRef:Wd,useState:function(){return Go(cr)},useDebugValue:Ml,useDeferredValue:function(r){var s=Kn();return e1(s,ot.memoizedState,r)},useTransition:function(){var r=Go(cr)[0],s=Kn().memoizedState;return[r,s]},useMutableSource:Ll,useSyncExternalStore:vi,useId:t1,unstable_isNewReconciler:!1},n1={readContext:Lr,useCallback:bi,useContext:Lr,useEffect:ic,useImperativeHandle:Xd,useInsertionEffect:Yd,useLayoutEffect:Kd,useMemo:Jd,useReducer:Ar,useRef:Wd,useState:function(){return Ar(cr)},useDebugValue:Ml,useDeferredValue:function(r){var s=Kn();return ot===null?s.memoizedState=r:e1(s,ot.memoizedState,r)},useTransition:function(){var r=Ar(cr)[0],s=Kn().memoizedState;return[r,s]},useMutableSource:Ll,useSyncExternalStore:vi,useId:t1,unstable_isNewReconciler:!1};function Qa(r,s){if(r&&r.defaultProps){s=we({},s),r=r.defaultProps;for(var d in r)s[d]===void 0&&(s[d]=r[d]);return s}return s}function ki(r,s,d,h){s=r.memoizedState,d=d(h,s),d=d==null?s:we({},s,d),r.memoizedState=d,r.lanes===0&&(r.updateQueue.baseState=d)}var Si={isMounted:function(r){return(r=r._reactInternals)?po(r)===r:!1},enqueueSetState:function(r,s,d){r=r._reactInternals;var h=Ta(),v=Cn(r),S=Wa(h,v);S.payload=s,d!=null&&(S.callback=d),s=Cs(r,S,v),s!==null&&(ba(s,r,v,h),Ud(s,r,v))},enqueueReplaceState:function(r,s,d){r=r._reactInternals;var h=Ta(),v=Cn(r),S=Wa(h,v);S.tag=1,S.payload=s,d!=null&&(S.callback=d),s=Cs(r,S,v),s!==null&&(ba(s,r,v,h),Ud(s,r,v))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var d=Ta(),h=Cn(r),v=Wa(d,h);v.tag=2,s!=null&&(v.callback=s),s=Cs(r,v,h),s!==null&&(ba(s,r,h,d),Ud(s,r,h))}};function Sp(r,s,d,h,v,S,R){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(h,S,R):s.prototype&&s.prototype.isPureReactComponent?!Hu(d,h)||!Hu(v,S):!0}function wp(r,s,d){var h=!1,v=go,S=s.contextType;return typeof S=="object"&&S!==null?S=Lr(S):(v=Jt(s)?$a:rt.current,h=s.contextTypes,S=(h=h!=null)?_r(r,v):go),s=new s(d,S),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Si,r.stateNode=s,s._reactInternals=r,h&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=v,r.__reactInternalMemoizedMaskedChildContext=S),s}function Cp(r,s,d,h){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(d,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(d,h),s.state!==r&&Si.enqueueReplaceState(s,s.state,null)}function _f(r,s,d,h){var v=r.stateNode;v.props=d,v.state=r.memoizedState,v.refs={},Dd(r);var S=s.contextType;typeof S=="object"&&S!==null?v.context=Lr(S):(S=Jt(s)?$a:rt.current,v.context=_r(r,S)),v.state=r.memoizedState,S=s.getDerivedStateFromProps,typeof S=="function"&&(ki(r,s,S,d),v.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(s=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),s!==v.state&&Si.enqueueReplaceState(v,v.state,null),Fd(r,d,v,h),v.state=r.memoizedState),typeof v.componentDidMount=="function"&&(r.flags|=4194308)}function _s(r,s){try{var d="",h=s;do d+=We(h),h=h.return;while(h);var v=d}catch(S){v=`
42
42
  Error generating stack: `+S.message+`
43
- `+S.stack}return{value:r,source:s,stack:v,digest:null}}function If(r,s,d){return{value:r,source:null,stack:d??null,digest:s??null}}function uc(r,s){try{console.error(s.value)}catch(d){setTimeout(function(){throw d})}}var Ep=typeof WeakMap=="function"?WeakMap:Map;function _p(r,s,d){d=Wa(-1,d),d.tag=3,d.payload={element:null};var h=s.value;return d.callback=function(){d1||(d1=!0,Ii=h),uc(r,s)},d}function Ip(r,s,d){d=Wa(-1,d),d.tag=3;var h=r.type.getDerivedStateFromError;if(typeof h=="function"){var v=s.value;d.payload=function(){return h(v)},d.callback=function(){uc(r,s)}}var S=r.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(d.callback=function(){uc(r,s),typeof h!="function"&&(bo===null?bo=new Set([this]):bo.add(this));var R=s.stack;this.componentDidCatch(s.value,{componentStack:R!==null?R:""})}),d}function cc(r,s,d){var h=r.pingCache;if(h===null){h=r.pingCache=new Ep;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(d)||(v.add(d),r=g4.bind(null,r,s,d),s.then(r,r))}function Np(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Nf(r,s,d,h,v){return r.mode&1?(r.flags|=65536,r.lanes=v,r):(r===s?r.flags|=65536:(r.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(s=Wa(-1,1),s.tag=2,Cs(d,s,1))),d.lanes|=1),r)}var Rp=Q.ReactCurrentOwner,Ya=!1;function pn(r,s,d,h){s.child=r===null?gp(s,null,d,h):El(s,r.child,d,h)}function Ul(r,s,d,h,v){d=d.render;var S=s.ref;return _l(s,v),h=fe(r,s,d,h,S,v),d=wn(),r!==null&&!Ya?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~v,Zn(r,s,v)):(Zt&&d&&Od(s),s.flags|=1,pn(r,s,h,v),s.child)}function Is(r,s,d,h,v){if(r===null){var S=d.type;return typeof S=="function"&&!Gf(S)&&S.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(s.tag=15,s.type=S,a1(r,s,S,h,v)):(r=y1(d.type,null,h,s,s.mode,v),r.ref=s.ref,r.return=s,s.child=r)}if(S=r.child,!(r.lanes&v)){var R=S.memoizedProps;if(d=d.compare,d=d!==null?d:Hu,d(R,h)&&r.ref===s.ref)return Zn(r,s,v)}return s.flags|=1,r=Ls(S,h),r.ref=s.ref,r.return=s,s.child=r}function a1(r,s,d,h,v){if(r!==null){var S=r.memoizedProps;if(Hu(S,h)&&r.ref===s.ref)if(Ya=!1,s.pendingProps=h=S,(r.lanes&v)!==0)r.flags&131072&&(Ya=!0);else return s.lanes=r.lanes,Zn(r,s,v)}return pt(r,s,d,h,v)}function Ka(r,s,d){var h=s.pendingProps,v=h.children,S=r!==null?r.memoizedState:null;if(h.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt(zl,dr),dr|=d;else{if(!(d&1073741824))return r=S!==null?S.baseLanes|d:d,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Mt(zl,dr),dr|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=S!==null?S.baseLanes:d,Mt(zl,dr),dr|=h}else S!==null?(h=S.baseLanes|d,s.memoizedState=null):h=d,Mt(zl,dr),dr|=h;return pn(r,s,v,d),s.child}function wi(r,s){var d=s.ref;(r===null&&d!==null||r!==null&&r.ref!==d)&&(s.flags|=512,s.flags|=2097152)}function pt(r,s,d,h,v){var S=Jt(d)?$a:at.current;return S=_r(s,S),_l(s,v),d=fe(r,s,d,h,S,v),h=wn(),r!==null&&!Ya?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~v,Zn(r,s,v)):(Zt&&h&&Od(s),s.flags|=1,pn(r,s,d,v),s.child)}function dc(r,s,d,h,v){if(Jt(d)){var S=!0;Rd(s)}else S=!1;if(_l(s,v),s.stateNode===null)ga(r,s),wp(s,d,h),_f(s,d,h,v),h=!0;else if(r===null){var R=s.stateNode,F=s.memoizedProps;R.props=F;var $=R.context,re=d.contextType;typeof re=="object"&&re!==null?re=Lr(re):(re=Jt(d)?$a:at.current,re=_r(s,re));var he=d.getDerivedStateFromProps,ve=typeof he=="function"||typeof R.getSnapshotBeforeUpdate=="function";ve||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(F!==h||$!==re)&&Cp(s,R,h,re),ws=!1;var ge=s.memoizedState;R.state=ge,Fd(s,h,R,v),$=s.memoizedState,F!==h||ge!==$||dn.current||ws?(typeof he=="function"&&(ki(s,d,he,h),$=s.memoizedState),(F=ws||Sp(s,d,F,h,ge,$,re))?(ve||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(s.flags|=4194308)):(typeof R.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=$),R.props=h,R.state=$,R.context=re,h=F):(typeof R.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{R=s.stateNode,Il(r,s),F=s.memoizedProps,re=s.type===s.elementType?F:Qa(s.type,F),R.props=re,ve=s.pendingProps,ge=R.context,$=d.contextType,typeof $=="object"&&$!==null?$=Lr($):($=Jt(d)?$a:at.current,$=_r(s,$));var Le=d.getDerivedStateFromProps;(he=typeof Le=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(F!==ve||ge!==$)&&Cp(s,R,h,$),ws=!1,ge=s.memoizedState,R.state=ge,Fd(s,h,R,v);var De=s.memoizedState;F!==ve||ge!==De||dn.current||ws?(typeof Le=="function"&&(ki(s,d,Le,h),De=s.memoizedState),(re=ws||Sp(s,d,re,h,ge,De,$)||!1)?(he||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(h,De,$),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(h,De,$)),typeof R.componentDidUpdate=="function"&&(s.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof R.componentDidUpdate!="function"||F===r.memoizedProps&&ge===r.memoizedState||(s.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||F===r.memoizedProps&&ge===r.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=De),R.props=h,R.state=De,R.context=$,h=re):(typeof R.componentDidUpdate!="function"||F===r.memoizedProps&&ge===r.memoizedState||(s.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||F===r.memoizedProps&&ge===r.memoizedState||(s.flags|=1024),h=!1)}return r1(r,s,d,h,S,v)}function r1(r,s,d,h,v,S){wi(r,s);var R=(s.flags&128)!==0;if(!h&&!R)return v&&dp(s,d,!1),Zn(r,s,S);h=s.stateNode,Rp.current=s;var F=R&&typeof d.getDerivedStateFromError!="function"?null:h.render();return s.flags|=1,r!==null&&R?(s.child=El(s,r.child,null,S),s.child=El(s,null,F,S)):pn(r,s,F,S),s.memoizedState=h.state,v&&dp(s,d,!0),s.child}function Op(r){var s=r.stateNode;s.pendingContext?ks(r,s.pendingContext,s.pendingContext!==s.context):s.context&&ks(r,s.context,!1),kf(r,s.containerInfo)}function o1(r,s,d,h,v){return an(),vf(v),s.flags|=256,pn(r,s,d,h),s.child}var Ci={dehydrated:null,treeContext:null,retryLane:0};function Rf(r){return{baseLanes:r,cachePool:null,transitions:null}}function Of(r,s,d){var h=s.pendingProps,v=en.current,S=!1,R=(s.flags&128)!==0,F;if((F=R)||(F=r!==null&&r.memoizedState===null?!1:(v&2)!==0),F?(S=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(v|=1),Mt(en,v&1),r===null)return Ad(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(s.mode&1?r.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(R=h.children,r=h.fallback,S?(h=s.mode,S=s.child,R={mode:"hidden",children:R},!(h&1)&&S!==null?(S.childLanes=0,S.pendingProps=R):S=bc(R,h,0,null),r=Ai(r,h,d,null),S.return=s,r.return=s,S.sibling=r,s.child=S,s.child.memoizedState=Rf(d),s.memoizedState=Ci,r):Lf(s,R));if(v=r.memoizedState,v!==null&&(F=v.dehydrated,F!==null))return d4(r,s,R,h,F,v,d);if(S){S=h.fallback,R=s.mode,v=r.child,F=v.sibling;var $={mode:"hidden",children:h.children};return!(R&1)&&s.child!==v?(h=s.child,h.childLanes=0,h.pendingProps=$,s.deletions=null):(h=Ls(v,$),h.subtreeFlags=v.subtreeFlags&14680064),F!==null?S=Ls(F,S):(S=Ai(S,R,d,null),S.flags|=2),S.return=s,h.return=s,h.sibling=S,s.child=h,h=S,S=s.child,R=r.child.memoizedState,R=R===null?Rf(d):{baseLanes:R.baseLanes|d,cachePool:null,transitions:R.transitions},S.memoizedState=R,S.childLanes=r.childLanes&~d,s.memoizedState=Ci,h}return S=r.child,r=S.sibling,h=Ls(S,{mode:"visible",children:h.children}),!(s.mode&1)&&(h.lanes=d),h.return=s,h.sibling=null,r!==null&&(d=s.deletions,d===null?(s.deletions=[r],s.flags|=16):d.push(r)),s.child=h,s.memoizedState=null,h}function Lf(r,s){return s=bc({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function Fl(r,s,d,h){return h!==null&&vf(h),El(s,r.child,null,d),r=Lf(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function d4(r,s,d,h,v,S,R){if(d)return s.flags&256?(s.flags&=-257,h=If(Error(o(422))),Fl(r,s,R,h)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(S=h.fallback,v=s.mode,h=bc({mode:"visible",children:h.children},v,0,null),S=Ai(S,v,R,null),S.flags|=2,h.return=s,S.return=s,h.sibling=S,s.child=h,s.mode&1&&El(s,r.child,null,R),s.child.memoizedState=Rf(R),s.memoizedState=Ci,S);if(!(s.mode&1))return Fl(r,s,R,null);if(v.data==="$!"){if(h=v.nextSibling&&v.nextSibling.dataset,h)var F=h.dgst;return h=F,S=Error(o(419)),h=If(S,h,void 0),Fl(r,s,R,h)}if(F=(R&r.childLanes)!==0,Ya||F){if(h=rn,h!==null){switch(R&-R){case 4:v=2;break;case 16:v=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:v=32;break;case 536870912:v=268435456;break;default:v=0}v=v&(h.suspendedLanes|R)?0:v,v!==0&&v!==S.retryLane&&(S.retryLane=v,qo(r,v),ba(h,r,v,-1))}return zf(),h=If(Error(o(421))),Fl(r,s,R,h)}return v.data==="$?"?(s.flags|=128,s.child=r.child,s=y4.bind(null,r),v._reactRetry=s,null):(r=S.treeContext,Ga=to(v.nextSibling),ir=s,Zt=!0,Rr=null,r!==null&&(qa[fa++]=Yn,qa[fa++]=zo,qa[fa++]=Nr,Yn=r.id,zo=r.overflow,Nr=s),s=Lf(s,h.children),s.flags|=4096,s)}function Af(r,s,d){r.lanes|=s;var h=r.alternate;h!==null&&(h.lanes|=s),bf(r.return,s,d)}function s1(r,s,d,h,v){var S=r.memoizedState;S===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:v}:(S.isBackwards=s,S.rendering=null,S.renderingStartTime=0,S.last=h,S.tail=d,S.tailMode=v)}function xf(r,s,d){var h=s.pendingProps,v=h.revealOrder,S=h.tail;if(pn(r,s,h.children,d),h=en.current,h&2)h=h&1|2,s.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Af(r,d,s);else if(r.tag===19)Af(r,d,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}h&=1}if(Mt(en,h),!(s.mode&1))s.memoizedState=null;else switch(v){case"forwards":for(d=s.child,v=null;d!==null;)r=d.alternate,r!==null&&Vd(r)===null&&(v=d),d=d.sibling;d=v,d===null?(v=s.child,s.child=null):(v=d.sibling,d.sibling=null),s1(s,!1,v,d,S);break;case"backwards":for(d=null,v=s.child,s.child=null;v!==null;){if(r=v.alternate,r!==null&&Vd(r)===null){s.child=v;break}r=v.sibling,v.sibling=d,d=v,v=r}s1(s,!0,d,null,S);break;case"together":s1(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ga(r,s){!(s.mode&1)&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function Zn(r,s,d){if(r!==null&&(s.dependencies=r.dependencies),Yo|=s.lanes,!(d&s.childLanes))return null;if(r!==null&&s.child!==r.child)throw Error(o(153));if(s.child!==null){for(r=s.child,d=Ls(r,r.pendingProps),s.child=d,d.return=s;r.sibling!==null;)r=r.sibling,d=d.sibling=Ls(r,r.pendingProps),d.return=s;d.sibling=null}return s.child}function Wo(r,s,d){switch(s.tag){case 3:Op(s),an();break;case 5:bp(s);break;case 1:Jt(s.type)&&Rd(s);break;case 4:kf(s,s.stateNode.containerInfo);break;case 10:var h=s.type._context,v=s.memoizedProps.value;Mt(Ho,h._currentValue),h._currentValue=v;break;case 13:if(h=s.memoizedState,h!==null)return h.dehydrated!==null?(Mt(en,en.current&1),s.flags|=128,null):d&s.child.childLanes?Of(r,s,d):(Mt(en,en.current&1),r=Zn(r,s,d),r!==null?r.sibling:null);Mt(en,en.current&1);break;case 19:if(h=(d&s.childLanes)!==0,r.flags&128){if(h)return xf(r,s,d);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Mt(en,en.current),h)break;return null;case 22:case 23:return s.lanes=0,Ka(r,s,d)}return Zn(r,s,d)}var mc,Ei,xr,An;mc=function(r,s){for(var d=s.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===s)break;for(;d.sibling===null;){if(d.return===null||d.return===s)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},Ei=function(){},xr=function(r,s,d,h){var v=r.memoizedProps;if(v!==h){r=s.stateNode,yi(no.current);var S=null;switch(d){case"input":v=nn(r,v),h=nn(r,h),S=[];break;case"select":v=we({},v,{value:void 0}),h=we({},h,{value:void 0}),S=[];break;case"textarea":v=xo(r,v),h=xo(r,h),S=[];break;default:typeof v.onClick!="function"&&typeof h.onClick=="function"&&(r.onclick=Nd)}Rn(d,h);var R;d=null;for(re in v)if(!h.hasOwnProperty(re)&&v.hasOwnProperty(re)&&v[re]!=null)if(re==="style"){var F=v[re];for(R in F)F.hasOwnProperty(R)&&(d||(d={}),d[R]="")}else re!=="dangerouslySetInnerHTML"&&re!=="children"&&re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&re!=="autoFocus"&&(c.hasOwnProperty(re)?S||(S=[]):(S=S||[]).push(re,null));for(re in h){var $=h[re];if(F=v!=null?v[re]:void 0,h.hasOwnProperty(re)&&$!==F&&($!=null||F!=null))if(re==="style")if(F){for(R in F)!F.hasOwnProperty(R)||$&&$.hasOwnProperty(R)||(d||(d={}),d[R]="");for(R in $)$.hasOwnProperty(R)&&F[R]!==$[R]&&(d||(d={}),d[R]=$[R])}else d||(S||(S=[]),S.push(re,d)),d=$;else re==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,F=F?F.__html:void 0,$!=null&&F!==$&&(S=S||[]).push(re,$)):re==="children"?typeof $!="string"&&typeof $!="number"||(S=S||[]).push(re,""+$):re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&(c.hasOwnProperty(re)?($!=null&&re==="onScroll"&&Ht("scroll",r),S||F===$||(S=[])):(S=S||[]).push(re,$))}d&&(S=S||[]).push("style",d);var re=S;(s.updateQueue=re)&&(s.flags|=4)}},An=function(r,s,d,h){d!==h&&(s.flags|=4)};function fc(r,s){if(!Zt)switch(r.tailMode){case"hidden":s=r.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?r.tail=null:d.sibling=null;break;case"collapsed":d=r.tail;for(var h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:h.sibling=null}}function ya(r){var s=r.alternate!==null&&r.alternate.child===r.child,d=0,h=0;if(s)for(var v=r.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags&14680064,h|=v.flags&14680064,v.return=r,v=v.sibling;else for(v=r.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=r,v=v.sibling;return r.subtreeFlags|=h,r.childLanes=d,s}function m4(r,s,d){var h=s.pendingProps;switch(gf(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ya(s),null;case 1:return Jt(s.type)&&Ir(),ya(s),null;case 3:return h=s.stateNode,Rl(),Pt(dn),Pt(at),wf(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(r===null||r.child===null)&&(xd(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,Rr!==null&&(Tc(Rr),Rr=null))),Ei(r,s),ya(s),null;case 5:Sf(s);var v=yi(ac.current);if(d=s.type,r!==null&&s.stateNode!=null)xr(r,s,d,h,v),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!h){if(s.stateNode===null)throw Error(o(166));return ya(s),null}if(r=yi(no.current),xd(s)){h=s.stateNode,d=s.type;var S=s.memoizedProps;switch(h[ho]=s,h[fi]=S,r=(s.mode&1)!==0,d){case"dialog":Ht("cancel",h),Ht("close",h);break;case"iframe":case"object":case"embed":Ht("load",h);break;case"video":case"audio":for(v=0;v<Qu.length;v++)Ht(Qu[v],h);break;case"source":Ht("error",h);break;case"img":case"image":case"link":Ht("error",h),Ht("load",h);break;case"details":Ht("toggle",h);break;case"input":Nt(h,S),Ht("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!S.multiple},Ht("invalid",h);break;case"textarea":ds(h,S),Ht("invalid",h)}Rn(d,S),v=null;for(var R in S)if(S.hasOwnProperty(R)){var F=S[R];R==="children"?typeof F=="string"?h.textContent!==F&&(S.suppressHydrationWarning!==!0&&Id(h.textContent,F,r),v=["children",F]):typeof F=="number"&&h.textContent!==""+F&&(S.suppressHydrationWarning!==!0&&Id(h.textContent,F,r),v=["children",""+F]):c.hasOwnProperty(R)&&F!=null&&R==="onScroll"&&Ht("scroll",h)}switch(d){case"input":Yt(h),Wr(h,S,!0);break;case"textarea":Yt(h),Tr(h);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(h.onclick=Nd)}h=v,s.updateQueue=h,h!==null&&(s.flags|=4)}else{R=v.nodeType===9?v:v.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=ms(d)),r==="http://www.w3.org/1999/xhtml"?d==="script"?(r=R.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof h.is=="string"?r=R.createElement(d,{is:h.is}):(r=R.createElement(d),d==="select"&&(R=r,h.multiple?R.multiple=!0:h.size&&(R.size=h.size))):r=R.createElementNS(r,d),r[ho]=s,r[fi]=h,mc(r,s,!1,!1),s.stateNode=r;e:{switch(R=Qr(d,h),d){case"dialog":Ht("cancel",r),Ht("close",r),v=h;break;case"iframe":case"object":case"embed":Ht("load",r),v=h;break;case"video":case"audio":for(v=0;v<Qu.length;v++)Ht(Qu[v],r);v=h;break;case"source":Ht("error",r),v=h;break;case"img":case"image":case"link":Ht("error",r),Ht("load",r),v=h;break;case"details":Ht("toggle",r),v=h;break;case"input":Nt(r,h),v=nn(r,h),Ht("invalid",r);break;case"option":v=h;break;case"select":r._wrapperState={wasMultiple:!!h.multiple},v=we({},h,{value:void 0}),Ht("invalid",r);break;case"textarea":ds(r,h),v=xo(r,h),Ht("invalid",r);break;default:v=h}Rn(d,v),F=v;for(S in F)if(F.hasOwnProperty(S)){var $=F[S];S==="style"?ln(r,$):S==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Iu(r,$)):S==="children"?typeof $=="string"?(d!=="textarea"||$!=="")&&Re(r,$):typeof $=="number"&&Re(r,""+$):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(c.hasOwnProperty(S)?$!=null&&S==="onScroll"&&Ht("scroll",r):$!=null&&Z(r,S,$,R))}switch(d){case"input":Yt(r),Wr(r,h,!1);break;case"textarea":Yt(r),Tr(r);break;case"option":h.value!=null&&r.setAttribute("value",""+tt(h.value));break;case"select":r.multiple=!!h.multiple,S=h.value,S!=null?mo(r,!!h.multiple,S,!1):h.defaultValue!=null&&mo(r,!!h.multiple,h.defaultValue,!0);break;default:typeof v.onClick=="function"&&(r.onclick=Nd)}switch(d){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return ya(s),null;case 6:if(r&&s.stateNode!=null)An(r,s,r.memoizedProps,h);else{if(typeof h!="string"&&s.stateNode===null)throw Error(o(166));if(d=yi(ac.current),yi(no.current),xd(s)){if(h=s.stateNode,d=s.memoizedProps,h[ho]=s,(S=h.nodeValue!==d)&&(r=ir,r!==null))switch(r.tag){case 3:Id(h.nodeValue,d,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Id(h.nodeValue,d,(r.mode&1)!==0)}S&&(s.flags|=4)}else h=(d.nodeType===9?d:d.ownerDocument).createTextNode(h),h[ho]=s,s.stateNode=h}return ya(s),null;case 13:if(Pt(en),h=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Zt&&Ga!==null&&s.mode&1&&!(s.flags&128))pp(),an(),s.flags|=98560,S=!1;else if(S=xd(s),h!==null&&h.dehydrated!==null){if(r===null){if(!S)throw Error(o(318));if(S=s.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(o(317));S[ho]=s}else an(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;ya(s),S=!1}else Rr!==null&&(Tc(Rr),Rr=null),S=!0;if(!S)return s.flags&65536?s:null}return s.flags&128?(s.lanes=d,s):(h=h!==null,h!==(r!==null&&r.memoizedState!==null)&&h&&(s.child.flags|=8192,s.mode&1&&(r===null||en.current&1?Pn===0&&(Pn=3):zf())),s.updateQueue!==null&&(s.flags|=4),ya(s),null);case 4:return Rl(),Ei(r,s),r===null&&Sl(s.stateNode.containerInfo),ya(s),null;case 10:return Tf(s.type._context),ya(s),null;case 17:return Jt(s.type)&&Ir(),ya(s),null;case 19:if(Pt(en),S=s.memoizedState,S===null)return ya(s),null;if(h=(s.flags&128)!==0,R=S.rendering,R===null)if(h)fc(S,!1);else{if(Pn!==0||r!==null&&r.flags&128)for(r=s.child;r!==null;){if(R=Vd(r),R!==null){for(s.flags|=128,fc(S,!1),h=R.updateQueue,h!==null&&(s.updateQueue=h,s.flags|=4),s.subtreeFlags=0,h=d,d=s.child;d!==null;)S=d,r=h,S.flags&=14680066,R=S.alternate,R===null?(S.childLanes=0,S.lanes=r,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=R.childLanes,S.lanes=R.lanes,S.child=R.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=R.memoizedProps,S.memoizedState=R.memoizedState,S.updateQueue=R.updateQueue,S.type=R.type,r=R.dependencies,S.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),d=d.sibling;return Mt(en,en.current&1|2),s.child}r=r.sibling}S.tail!==null&&cn()>ql&&(s.flags|=128,h=!0,fc(S,!1),s.lanes=4194304)}else{if(!h)if(r=Vd(R),r!==null){if(s.flags|=128,h=!0,d=r.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),fc(S,!0),S.tail===null&&S.tailMode==="hidden"&&!R.alternate&&!Zt)return ya(s),null}else 2*cn()-S.renderingStartTime>ql&&d!==1073741824&&(s.flags|=128,h=!0,fc(S,!1),s.lanes=4194304);S.isBackwards?(R.sibling=s.child,s.child=R):(d=S.last,d!==null?d.sibling=R:s.child=R,S.last=R)}return S.tail!==null?(s=S.tail,S.rendering=s,S.tail=s.sibling,S.renderingStartTime=cn(),s.sibling=null,d=en.current,Mt(en,h?d&1|2:d&1),s):(ya(s),null);case 22:case 23:return $f(),h=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==h&&(s.flags|=8192),h&&s.mode&1?dr&1073741824&&(ya(s),s.subtreeFlags&6&&(s.flags|=8192)):ya(s),null;case 24:return null;case 25:return null}throw Error(o(156,s.tag))}function Pf(r,s){switch(gf(s),s.tag){case 1:return Jt(s.type)&&Ir(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Rl(),Pt(dn),Pt(at),wf(),r=s.flags,r&65536&&!(r&128)?(s.flags=r&-65537|128,s):null;case 5:return Sf(s),null;case 13:if(Pt(en),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(o(340));an()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return Pt(en),null;case 4:return Rl(),null;case 10:return Tf(s.type._context),null;case 22:case 23:return $f(),null;case 24:return null;default:return null}}var pc=!1,xn=!1,Lp=typeof WeakSet=="function"?WeakSet:Set,Me=null;function Vl(r,s){var d=r.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(h){fn(r,s,h)}else d.current=null}function i1(r,s,d){try{d()}catch(h){fn(r,s,h)}}var Ap=!1;function xp(r,s){if(lf=si,r=Sd(),Vo(r)){if("selectionStart"in r)var d={start:r.selectionStart,end:r.selectionEnd};else e:{d=(d=r.ownerDocument)&&d.defaultView||window;var h=d.getSelection&&d.getSelection();if(h&&h.rangeCount!==0){d=h.anchorNode;var v=h.anchorOffset,S=h.focusNode;h=h.focusOffset;try{d.nodeType,S.nodeType}catch{d=null;break e}var R=0,F=-1,$=-1,re=0,he=0,ve=r,ge=null;t:for(;;){for(var Le;ve!==d||v!==0&&ve.nodeType!==3||(F=R+v),ve!==S||h!==0&&ve.nodeType!==3||($=R+h),ve.nodeType===3&&(R+=ve.nodeValue.length),(Le=ve.firstChild)!==null;)ge=ve,ve=Le;for(;;){if(ve===r)break t;if(ge===d&&++re===v&&(F=R),ge===S&&++he===h&&($=R),(Le=ve.nextSibling)!==null)break;ve=ge,ge=ve.parentNode}ve=Le}d=F===-1||$===-1?null:{start:F,end:$}}else d=null}d=d||{start:0,end:0}}else d=null;for(di={focusedElem:r,selectionRange:d},si=!1,Me=s;Me!==null;)if(s=Me,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,Me=r;else for(;Me!==null;){s=Me;try{var De=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(De!==null){var Ve=De.memoizedProps,hn=De.memoizedState,K=s.stateNode,q=K.getSnapshotBeforeUpdate(s.elementType===s.type?Ve:Qa(s.type,Ve),hn);K.__reactInternalSnapshotBeforeUpdate=q}break;case 3:var ee=s.stateNode.containerInfo;ee.nodeType===1?ee.textContent="":ee.nodeType===9&&ee.documentElement&&ee.removeChild(ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ke){fn(s,s.return,ke)}if(r=s.sibling,r!==null){r.return=s.return,Me=r;break}Me=s.return}return De=Ap,Ap=!1,De}function hc(r,s,d){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var v=h=h.next;do{if((v.tag&r)===r){var S=v.destroy;v.destroy=void 0,S!==void 0&&i1(s,d,S)}v=v.next}while(v!==h)}}function gc(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var d=s=s.next;do{if((d.tag&r)===r){var h=d.create;d.destroy=h()}d=d.next}while(d!==s)}}function Mf(r){var s=r.ref;if(s!==null){var d=r.stateNode;switch(r.tag){case 5:r=d;break;default:r=d}typeof s=="function"?s(r):s.current=r}}function Df(r){var s=r.alternate;s!==null&&(r.alternate=null,Df(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[ho],delete s[fi],delete s[df],delete s[l4],delete s[mf])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Pp(r){return r.tag===5||r.tag===3||r.tag===4}function l1(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Pp(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function jl(r,s,d){var h=r.tag;if(h===5||h===6)r=r.stateNode,s?d.nodeType===8?d.parentNode.insertBefore(r,s):d.insertBefore(r,s):(d.nodeType===8?(s=d.parentNode,s.insertBefore(r,d)):(s=d,s.appendChild(r)),d=d._reactRootContainer,d!=null||s.onclick!==null||(s.onclick=Nd));else if(h!==4&&(r=r.child,r!==null))for(jl(r,s,d),r=r.sibling;r!==null;)jl(r,s,d),r=r.sibling}function vo(r,s,d){var h=r.tag;if(h===5||h===6)r=r.stateNode,s?d.insertBefore(r,s):d.appendChild(r);else if(h!==4&&(r=r.child,r!==null))for(vo(r,s,d),r=r.sibling;r!==null;)vo(r,s,d),r=r.sibling}var tn=null,zn=!1;function Pr(r,s,d){for(d=d.child;d!==null;)Bl(r,s,d),d=d.sibling}function Bl(r,s,d){if(Kr&&typeof Kr.onCommitFiberUnmount=="function")try{Kr.onCommitFiberUnmount(Au,d)}catch{}switch(d.tag){case 5:xn||Vl(d,s);case 6:var h=tn,v=zn;tn=null,Pr(r,s,d),tn=h,zn=v,tn!==null&&(zn?(r=tn,d=d.stateNode,r.nodeType===8?r.parentNode.removeChild(d):r.removeChild(d)):tn.removeChild(d.stateNode));break;case 18:tn!==null&&(zn?(r=tn,d=d.stateNode,r.nodeType===8?vs(r.parentNode,d):r.nodeType===1&&vs(r,d),Uu(r)):vs(tn,d.stateNode));break;case 4:h=tn,v=zn,tn=d.stateNode.containerInfo,zn=!0,Pr(r,s,d),tn=h,zn=v;break;case 0:case 11:case 14:case 15:if(!xn&&(h=d.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){v=h=h.next;do{var S=v,R=S.destroy;S=S.tag,R!==void 0&&(S&2||S&4)&&i1(d,s,R),v=v.next}while(v!==h)}Pr(r,s,d);break;case 1:if(!xn&&(Vl(d,s),h=d.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=d.memoizedProps,h.state=d.memoizedState,h.componentWillUnmount()}catch(F){fn(d,s,F)}Pr(r,s,d);break;case 21:Pr(r,s,d);break;case 22:d.mode&1?(xn=(h=xn)||d.memoizedState!==null,Pr(r,s,d),xn=h):Pr(r,s,d);break;default:Pr(r,s,d)}}function Qo(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var d=r.stateNode;d===null&&(d=r.stateNode=new Lp),s.forEach(function(h){var v=v4.bind(null,r,h);d.has(h)||(d.add(h),h.then(v,v))})}}function ao(r,s){var d=s.deletions;if(d!==null)for(var h=0;h<d.length;h++){var v=d[h];try{var S=r,R=s,F=R;e:for(;F!==null;){switch(F.tag){case 5:tn=F.stateNode,zn=!1;break e;case 3:tn=F.stateNode.containerInfo,zn=!0;break e;case 4:tn=F.stateNode.containerInfo,zn=!0;break e}F=F.return}if(tn===null)throw Error(o(160));Bl(S,R,v),tn=null,zn=!1;var $=v.alternate;$!==null&&($.return=null),v.return=null}catch(re){fn(v,s,re)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Mp(s,r),s=s.sibling}function Mp(r,s){var d=r.alternate,h=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(ao(s,r),To(r),h&4){try{hc(3,r,r.return),gc(3,r)}catch(Ve){fn(r,r.return,Ve)}try{hc(5,r,r.return)}catch(Ve){fn(r,r.return,Ve)}}break;case 1:ao(s,r),To(r),h&512&&d!==null&&Vl(d,d.return);break;case 5:if(ao(s,r),To(r),h&512&&d!==null&&Vl(d,d.return),r.flags&32){var v=r.stateNode;try{Re(v,"")}catch(Ve){fn(r,r.return,Ve)}}if(h&4&&(v=r.stateNode,v!=null)){var S=r.memoizedProps,R=d!==null?d.memoizedProps:S,F=r.type,$=r.updateQueue;if(r.updateQueue=null,$!==null)try{F==="input"&&S.type==="radio"&&S.name!=null&&sn(v,S),Qr(F,R);var re=Qr(F,S);for(R=0;R<$.length;R+=2){var he=$[R],ve=$[R+1];he==="style"?ln(v,ve):he==="dangerouslySetInnerHTML"?Iu(v,ve):he==="children"?Re(v,ve):Z(v,he,ve,re)}switch(F){case"input":Nn(v,S);break;case"textarea":ni(v,S);break;case"select":var ge=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!S.multiple;var Le=S.value;Le!=null?mo(v,!!S.multiple,Le,!1):ge!==!!S.multiple&&(S.defaultValue!=null?mo(v,!!S.multiple,S.defaultValue,!0):mo(v,!!S.multiple,S.multiple?[]:"",!1))}v[fi]=S}catch(Ve){fn(r,r.return,Ve)}}break;case 6:if(ao(s,r),To(r),h&4){if(r.stateNode===null)throw Error(o(162));v=r.stateNode,S=r.memoizedProps;try{v.nodeValue=S}catch(Ve){fn(r,r.return,Ve)}}break;case 3:if(ao(s,r),To(r),h&4&&d!==null&&d.memoizedState.isDehydrated)try{Uu(s.containerInfo)}catch(Ve){fn(r,r.return,Ve)}break;case 4:ao(s,r),To(r);break;case 13:ao(s,r),To(r),v=r.child,v.flags&8192&&(S=v.memoizedState!==null,v.stateNode.isHidden=S,!S||v.alternate!==null&&v.alternate.memoizedState!==null||(Vf=cn())),h&4&&Qo(r);break;case 22:if(he=d!==null&&d.memoizedState!==null,r.mode&1?(xn=(re=xn)||he,ao(s,r),xn=re):ao(s,r),To(r),h&8192){if(re=r.memoizedState!==null,(r.stateNode.isHidden=re)&&!he&&r.mode&1)for(Me=r,he=r.child;he!==null;){for(ve=Me=he;Me!==null;){switch(ge=Me,Le=ge.child,ge.tag){case 0:case 11:case 14:case 15:hc(4,ge,ge.return);break;case 1:Vl(ge,ge.return);var De=ge.stateNode;if(typeof De.componentWillUnmount=="function"){h=ge,d=ge.return;try{s=h,De.props=s.memoizedProps,De.state=s.memoizedState,De.componentWillUnmount()}catch(Ve){fn(h,d,Ve)}}break;case 5:Vl(ge,ge.return);break;case 22:if(ge.memoizedState!==null){Uf(ve);continue}}Le!==null?(Le.return=ge,Me=Le):Uf(ve)}he=he.sibling}e:for(he=null,ve=r;;){if(ve.tag===5){if(he===null){he=ve;try{v=ve.stateNode,re?(S=v.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none"):(F=ve.stateNode,$=ve.memoizedProps.style,R=$!=null&&$.hasOwnProperty("display")?$.display:null,F.style.display=Gt("display",R))}catch(Ve){fn(r,r.return,Ve)}}}else if(ve.tag===6){if(he===null)try{ve.stateNode.nodeValue=re?"":ve.memoizedProps}catch(Ve){fn(r,r.return,Ve)}}else if((ve.tag!==22&&ve.tag!==23||ve.memoizedState===null||ve===r)&&ve.child!==null){ve.child.return=ve,ve=ve.child;continue}if(ve===r)break e;for(;ve.sibling===null;){if(ve.return===null||ve.return===r)break e;he===ve&&(he=null),ve=ve.return}he===ve&&(he=null),ve.sibling.return=ve.return,ve=ve.sibling}}break;case 19:ao(s,r),To(r),h&4&&Qo(r);break;case 21:break;default:ao(s,r),To(r)}}function To(r){var s=r.flags;if(s&2){try{e:{for(var d=r.return;d!==null;){if(Pp(d)){var h=d;break e}d=d.return}throw Error(o(160))}switch(h.tag){case 5:var v=h.stateNode;h.flags&32&&(Re(v,""),h.flags&=-33);var S=l1(r);vo(r,S,v);break;case 3:case 4:var R=h.stateNode.containerInfo,F=l1(r);jl(r,F,R);break;default:throw Error(o(161))}}catch($){fn(r,r.return,$)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function Dp(r,s,d){Me=r,$l(r)}function $l(r,s,d){for(var h=(r.mode&1)!==0;Me!==null;){var v=Me,S=v.child;if(v.tag===22&&h){var R=v.memoizedState!==null||pc;if(!R){var F=v.alternate,$=F!==null&&F.memoizedState!==null||xn;F=pc;var re=xn;if(pc=R,(xn=$)&&!re)for(Me=v;Me!==null;)R=Me,$=R.child,R.tag===22&&R.memoizedState!==null?Fp(v):$!==null?($.return=R,Me=$):Fp(v);for(;S!==null;)Me=S,$l(S),S=S.sibling;Me=v,pc=F,xn=re}Up(r)}else v.subtreeFlags&8772&&S!==null?(S.return=v,Me=S):Up(r)}}function Up(r){for(;Me!==null;){var s=Me;if(s.flags&8772){var d=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:xn||gc(5,s);break;case 1:var h=s.stateNode;if(s.flags&4&&!xn)if(d===null)h.componentDidMount();else{var v=s.elementType===s.type?d.memoizedProps:Qa(s.type,d.memoizedProps);h.componentDidUpdate(v,d.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var S=s.updateQueue;S!==null&&Tp(s,S,h);break;case 3:var R=s.updateQueue;if(R!==null){if(d=null,s.child!==null)switch(s.child.tag){case 5:d=s.child.stateNode;break;case 1:d=s.child.stateNode}Tp(s,R,d)}break;case 5:var F=s.stateNode;if(d===null&&s.flags&4){d=F;var $=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&d.focus();break;case"img":$.src&&(d.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var re=s.alternate;if(re!==null){var he=re.memoizedState;if(he!==null){var ve=he.dehydrated;ve!==null&&Uu(ve)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}xn||s.flags&512&&Mf(s)}catch(ge){fn(s,s.return,ge)}}if(s===r){Me=null;break}if(d=s.sibling,d!==null){d.return=s.return,Me=d;break}Me=s.return}}function Uf(r){for(;Me!==null;){var s=Me;if(s===r){Me=null;break}var d=s.sibling;if(d!==null){d.return=s.return,Me=d;break}Me=s.return}}function Fp(r){for(;Me!==null;){var s=Me;try{switch(s.tag){case 0:case 11:case 15:var d=s.return;try{gc(4,s)}catch($){fn(s,d,$)}break;case 1:var h=s.stateNode;if(typeof h.componentDidMount=="function"){var v=s.return;try{h.componentDidMount()}catch($){fn(s,v,$)}}var S=s.return;try{Mf(s)}catch($){fn(s,S,$)}break;case 5:var R=s.return;try{Mf(s)}catch($){fn(s,R,$)}}}catch($){fn(s,s.return,$)}if(s===r){Me=null;break}var F=s.sibling;if(F!==null){F.return=s.return,Me=F;break}Me=s.return}}var u1=Math.ceil,yc=Q.ReactCurrentDispatcher,Ff=Q.ReactCurrentOwner,va=Q.ReactCurrentBatchConfig,Et=0,rn=null,mn=null,Hn=0,dr=0,zl=ht(0),Pn=0,vc=null,Yo=0,c1=0,Hl=0,_i=null,_a=null,Vf=0,ql=1/0,Ko=null,d1=!1,Ii=null,bo=null,Ns=!1,Rs=null,m1=0,Gl=0,f1=null,Ni=-1,Ri=0;function Ta(){return Et&6?cn():Ni!==-1?Ni:Ni=cn()}function Cn(r){return r.mode&1?Et&2&&Hn!==0?Hn&-Hn:Pd.transition!==null?(Ri===0&&(Ri=cd()),Ri):(r=Ft,r!==0||(r=window.event,r=r===void 0?16:Bm(r.type)),r):1}function ba(r,s,d,h){if(50<Gl)throw Gl=0,f1=null,Error(o(185));oi(r,d,h),(!(Et&2)||r!==rn)&&(r===rn&&(!(Et&2)&&(c1|=d),Pn===4&&Mr(r,Hn)),ka(r,h),d===1&&Et===0&&!(s.mode&1)&&(ql=cn()+500,$n&&za()))}function ka(r,s){var d=r.callbackNode;ud(r,s);var h=Zr(r,r===rn?Hn:0);if(h===0)d!==null&&S2(d),r.callbackNode=null,r.callbackPriority=0;else if(s=h&-h,r.callbackPriority!==s){if(d!=null&&S2(d),s===1)r.tag===0?pf(Vp.bind(null,r)):ff(Vp.bind(null,r)),cf(function(){!(Et&6)&&za()}),d=null;else{switch(Fm(h)){case 1:d=Mo;break;case 4:d=Ct;break;case 16:d=fs;break;case 536870912:d=Pm;break;default:d=fs}d=qf(d,Wl.bind(null,r))}r.callbackPriority=s,r.callbackNode=d}}function Wl(r,s){if(Ni=-1,Ri=0,Et&6)throw Error(o(327));var d=r.callbackNode;if(Yl()&&r.callbackNode!==d)return null;var h=Zr(r,r===rn?Hn:0);if(h===0)return null;if(h&30||h&r.expiredLanes||s)s=h1(r,h);else{s=h;var v=Et;Et|=2;var S=p1();(rn!==r||Hn!==s)&&(Ko=null,ql=cn()+500,Oi(r,s));do try{p4();break}catch(F){jp(r,F)}while(!0);lr(),yc.current=S,Et=v,mn!==null?s=0:(rn=null,Hn=0,s=Pn)}if(s!==0){if(s===2&&(v=Dm(r),v!==0&&(h=v,s=jf(r,v))),s===1)throw d=vc,Oi(r,0),Mr(r,h),ka(r,cn()),d;if(s===6)Mr(r,h);else{if(v=r.current.alternate,!(h&30)&&!Bf(v)&&(s=h1(r,h),s===2&&(S=Dm(r),S!==0&&(h=S,s=jf(r,S))),s===1))throw d=vc,Oi(r,0),Mr(r,h),ka(r,cn()),d;switch(r.finishedWork=v,r.finishedLanes=h,s){case 0:case 1:throw Error(o(345));case 2:Li(r,_a,Ko);break;case 3:if(Mr(r,h),(h&130023424)===h&&(s=Vf+500-cn(),10<s)){if(Zr(r,0)!==0)break;if(v=r.suspendedLanes,(v&h)!==h){Ta(),r.pingedLanes|=r.suspendedLanes&v;break}r.timeoutHandle=mi(Li.bind(null,r,_a,Ko),s);break}Li(r,_a,Ko);break;case 4:if(Mr(r,h),(h&4194240)===h)break;for(s=r.eventTimes,v=-1;0<h;){var R=31-kr(h);S=1<<R,R=s[R],R>v&&(v=R),h&=~S}if(h=v,h=cn()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*u1(h/1960))-h,10<h){r.timeoutHandle=mi(Li.bind(null,r,_a,Ko),h);break}Li(r,_a,Ko);break;case 5:Li(r,_a,Ko);break;default:throw Error(o(329))}}}return ka(r,cn()),r.callbackNode===d?Wl.bind(null,r):null}function jf(r,s){var d=_i;return r.current.memoizedState.isDehydrated&&(Oi(r,s).flags|=256),r=h1(r,s),r!==2&&(s=_a,_a=d,s!==null&&Tc(s)),r}function Tc(r){_a===null?_a=r:_a.push.apply(_a,r)}function Bf(r){for(var s=r;;){if(s.flags&16384){var d=s.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var h=0;h<d.length;h++){var v=d[h],S=v.getSnapshot;v=v.value;try{if(!Cr(S(),v))return!1}catch{return!1}}}if(d=s.child,s.subtreeFlags&16384&&d!==null)d.return=s,s=d;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Mr(r,s){for(s&=~Hl,s&=~c1,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var d=31-kr(s),h=1<<d;r[d]=-1,s&=~h}}function Vp(r){if(Et&6)throw Error(o(327));Yl();var s=Zr(r,0);if(!(s&1))return ka(r,cn()),null;var d=h1(r,s);if(r.tag!==0&&d===2){var h=Dm(r);h!==0&&(s=h,d=jf(r,h))}if(d===1)throw d=vc,Oi(r,0),Mr(r,s),ka(r,cn()),d;if(d===6)throw Error(o(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Li(r,_a,Ko),ka(r,cn()),null}function Ql(r,s){var d=Et;Et|=1;try{return r(s)}finally{Et=d,Et===0&&(ql=cn()+500,$n&&za())}}function Os(r){Rs!==null&&Rs.tag===0&&!(Et&6)&&Yl();var s=Et;Et|=1;var d=va.transition,h=Ft;try{if(va.transition=null,Ft=1,r)return r()}finally{Ft=h,va.transition=d,Et=s,!(Et&6)&&za()}}function $f(){dr=zl.current,Pt(zl)}function Oi(r,s){r.finishedWork=null,r.finishedLanes=0;var d=r.timeoutHandle;if(d!==-1&&(r.timeoutHandle=-1,cp(d)),mn!==null)for(d=mn.return;d!==null;){var h=d;switch(gf(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&Ir();break;case 3:Rl(),Pt(dn),Pt(at),wf();break;case 5:Sf(h);break;case 4:Rl();break;case 13:Pt(en);break;case 19:Pt(en);break;case 10:Tf(h.type._context);break;case 22:case 23:$f()}d=d.return}if(rn=r,mn=r=Ls(r.current,null),Hn=dr=s,Pn=0,vc=null,Hl=c1=Yo=0,_a=_i=null,gi!==null){for(s=0;s<gi.length;s++)if(d=gi[s],h=d.interleaved,h!==null){d.interleaved=null;var v=h.next,S=d.pending;if(S!==null){var R=S.next;S.next=v,h.next=R}d.pending=h}gi=null}return r}function jp(r,s){do{var d=mn;try{if(lr(),Bd.current=ha,ur){for(var h=ze.memoizedState;h!==null;){var v=h.queue;v!==null&&(v.pending=null),h=h.next}ur=!1}if($e=0,bt=rt=ze=null,Ol=!1,oc=0,Ff.current=null,d===null||d.return===null){Pn=1,vc=s,mn=null;break}e:{var S=r,R=d.return,F=d,$=s;if(s=Hn,F.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var re=$,he=F,ve=he.tag;if(!(he.mode&1)&&(ve===0||ve===11||ve===15)){var ge=he.alternate;ge?(he.updateQueue=ge.updateQueue,he.memoizedState=ge.memoizedState,he.lanes=ge.lanes):(he.updateQueue=null,he.memoizedState=null)}var Le=Np(R);if(Le!==null){Le.flags&=-257,Nf(Le,R,F,S,s),Le.mode&1&&cc(S,re,s),s=Le,$=re;var De=s.updateQueue;if(De===null){var Ve=new Set;Ve.add($),s.updateQueue=Ve}else De.add($);break e}else{if(!(s&1)){cc(S,re,s),zf();break e}$=Error(o(426))}}else if(Zt&&F.mode&1){var hn=Np(R);if(hn!==null){!(hn.flags&65536)&&(hn.flags|=256),Nf(hn,R,F,S,s),vf(_s($,F));break e}}S=$=_s($,F),Pn!==4&&(Pn=2),_i===null?_i=[S]:_i.push(S),S=R;do{switch(S.tag){case 3:S.flags|=65536,s&=-s,S.lanes|=s;var K=_p(S,$,s);vp(S,K);break e;case 1:F=$;var q=S.type,ee=S.stateNode;if(!(S.flags&128)&&(typeof q.getDerivedStateFromError=="function"||ee!==null&&typeof ee.componentDidCatch=="function"&&(bo===null||!bo.has(ee)))){S.flags|=65536,s&=-s,S.lanes|=s;var ke=Ip(S,F,s);vp(S,ke);break e}}S=S.return}while(S!==null)}Hf(d)}catch(He){s=He,mn===d&&d!==null&&(mn=d=d.return);continue}break}while(!0)}function p1(){var r=yc.current;return yc.current=ha,r===null?ha:r}function zf(){(Pn===0||Pn===3||Pn===2)&&(Pn=4),rn===null||!(Yo&268435455)&&!(c1&268435455)||Mr(rn,Hn)}function h1(r,s){var d=Et;Et|=2;var h=p1();(rn!==r||Hn!==s)&&(Ko=null,Oi(r,s));do try{f4();break}catch(v){jp(r,v)}while(!0);if(lr(),Et=d,yc.current=h,mn!==null)throw Error(o(261));return rn=null,Hn=0,Pn}function f4(){for(;mn!==null;)Bp(mn)}function p4(){for(;mn!==null&&!j6();)Bp(mn)}function Bp(r){var s=zp(r.alternate,r,dr);r.memoizedProps=r.pendingProps,s===null?Hf(r):mn=s,Ff.current=null}function Hf(r){var s=r;do{var d=s.alternate;if(r=s.return,s.flags&32768){if(d=Pf(d,s),d!==null){d.flags&=32767,mn=d;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Pn=6,mn=null;return}}else if(d=m4(d,s,dr),d!==null){mn=d;return}if(s=s.sibling,s!==null){mn=s;return}mn=s=r}while(s!==null);Pn===0&&(Pn=5)}function Li(r,s,d){var h=Ft,v=va.transition;try{va.transition=null,Ft=1,h4(r,s,d,h)}finally{va.transition=v,Ft=h}return null}function h4(r,s,d,h){do Yl();while(Rs!==null);if(Et&6)throw Error(o(327));d=r.finishedWork;var v=r.finishedLanes;if(d===null)return null;if(r.finishedWork=null,r.finishedLanes=0,d===r.current)throw Error(o(177));r.callbackNode=null,r.callbackPriority=0;var S=d.lanes|d.childLanes;if(H6(r,S),r===rn&&(mn=rn=null,Hn=0),!(d.subtreeFlags&2064)&&!(d.flags&2064)||Ns||(Ns=!0,qf(fs,function(){return Yl(),null})),S=(d.flags&15990)!==0,d.subtreeFlags&15990||S){S=va.transition,va.transition=null;var R=Ft;Ft=1;var F=Et;Et|=4,Ff.current=null,xp(r,d),Mp(d,r),wd(di),si=!!lf,di=lf=null,r.current=d,Dp(d),B6(),Et=F,Ft=R,va.transition=S}else r.current=d;if(Ns&&(Ns=!1,Rs=r,m1=v),S=r.pendingLanes,S===0&&(bo=null),C2(d.stateNode),ka(r,cn()),s!==null)for(h=r.onRecoverableError,d=0;d<s.length;d++)v=s[d],h(v.value,{componentStack:v.stack,digest:v.digest});if(d1)throw d1=!1,r=Ii,Ii=null,r;return m1&1&&r.tag!==0&&Yl(),S=r.pendingLanes,S&1?r===f1?Gl++:(Gl=0,f1=r):Gl=0,za(),null}function Yl(){if(Rs!==null){var r=Fm(m1),s=va.transition,d=Ft;try{if(va.transition=null,Ft=16>r?16:r,Rs===null)var h=!1;else{if(r=Rs,Rs=null,m1=0,Et&6)throw Error(o(331));var v=Et;for(Et|=4,Me=r.current;Me!==null;){var S=Me,R=S.child;if(Me.flags&16){var F=S.deletions;if(F!==null){for(var $=0;$<F.length;$++){var re=F[$];for(Me=re;Me!==null;){var he=Me;switch(he.tag){case 0:case 11:case 15:hc(8,he,S)}var ve=he.child;if(ve!==null)ve.return=he,Me=ve;else for(;Me!==null;){he=Me;var ge=he.sibling,Le=he.return;if(Df(he),he===re){Me=null;break}if(ge!==null){ge.return=Le,Me=ge;break}Me=Le}}}var De=S.alternate;if(De!==null){var Ve=De.child;if(Ve!==null){De.child=null;do{var hn=Ve.sibling;Ve.sibling=null,Ve=hn}while(Ve!==null)}}Me=S}}if(S.subtreeFlags&2064&&R!==null)R.return=S,Me=R;else e:for(;Me!==null;){if(S=Me,S.flags&2048)switch(S.tag){case 0:case 11:case 15:hc(9,S,S.return)}var K=S.sibling;if(K!==null){K.return=S.return,Me=K;break e}Me=S.return}}var q=r.current;for(Me=q;Me!==null;){R=Me;var ee=R.child;if(R.subtreeFlags&2064&&ee!==null)ee.return=R,Me=ee;else e:for(R=q;Me!==null;){if(F=Me,F.flags&2048)try{switch(F.tag){case 0:case 11:case 15:gc(9,F)}}catch(He){fn(F,F.return,He)}if(F===R){Me=null;break e}var ke=F.sibling;if(ke!==null){ke.return=F.return,Me=ke;break e}Me=F.return}}if(Et=v,za(),Kr&&typeof Kr.onPostCommitFiberRoot=="function")try{Kr.onPostCommitFiberRoot(Au,r)}catch{}h=!0}return h}finally{Ft=d,va.transition=s}}return!1}function $p(r,s,d){s=_s(d,s),s=_p(r,s,1),r=Cs(r,s,1),s=Ta(),r!==null&&(oi(r,1,s),ka(r,s))}function fn(r,s,d){if(r.tag===3)$p(r,r,d);else for(;s!==null;){if(s.tag===3){$p(s,r,d);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(bo===null||!bo.has(h))){r=_s(d,r),r=Ip(s,r,1),s=Cs(s,r,1),r=Ta(),s!==null&&(oi(s,1,r),ka(s,r));break}}s=s.return}}function g4(r,s,d){var h=r.pingCache;h!==null&&h.delete(s),s=Ta(),r.pingedLanes|=r.suspendedLanes&d,rn===r&&(Hn&d)===d&&(Pn===4||Pn===3&&(Hn&130023424)===Hn&&500>cn()-Vf?Oi(r,0):Hl|=d),ka(r,s)}function g1(r,s){s===0&&(r.mode&1?(s=ml,ml<<=1,!(ml&130023424)&&(ml=4194304)):s=1);var d=Ta();r=qo(r,s),r!==null&&(oi(r,s,d),ka(r,d))}function y4(r){var s=r.memoizedState,d=0;s!==null&&(d=s.retryLane),g1(r,d)}function v4(r,s){var d=0;switch(r.tag){case 13:var h=r.stateNode,v=r.memoizedState;v!==null&&(d=v.retryLane);break;case 19:h=r.stateNode;break;default:throw Error(o(314))}h!==null&&h.delete(s),g1(r,d)}var zp;zp=function(r,s,d){if(r!==null)if(r.memoizedProps!==s.pendingProps||dn.current)Ya=!0;else{if(!(r.lanes&d)&&!(s.flags&128))return Ya=!1,Wo(r,s,d);Ya=!!(r.flags&131072)}else Ya=!1,Zt&&s.flags&1048576&&hf(s,Cl,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;ga(r,s),r=s.pendingProps;var v=_r(s,at.current);_l(s,d),v=fe(null,s,h,r,v,d);var S=wn();return s.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Jt(h)?(S=!0,Rd(s)):S=!1,s.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Dd(s),v.updater=Si,s.stateNode=v,v._reactInternals=s,_f(s,h,r,d),s=r1(null,s,h,!0,S,d)):(s.tag=0,Zt&&S&&Od(s),pn(null,s,v,d),s=s.child),s;case 16:h=s.elementType;e:{switch(ga(r,s),r=s.pendingProps,v=h._init,h=v(h._payload),s.type=h,v=s.tag=b4(h),r=Qa(h,r),v){case 0:s=pt(null,s,h,r,d);break e;case 1:s=dc(null,s,h,r,d);break e;case 11:s=Ul(null,s,h,r,d);break e;case 14:s=Is(null,s,h,Qa(h.type,r),d);break e}throw Error(o(306,h,""))}return s;case 0:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Qa(h,v),pt(r,s,h,v,d);case 1:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Qa(h,v),dc(r,s,h,v,d);case 3:e:{if(Op(s),r===null)throw Error(o(387));h=s.pendingProps,S=s.memoizedState,v=S.element,Il(r,s),Fd(s,h,null,d);var R=s.memoizedState;if(h=R.element,S.isDehydrated)if(S={element:h,isDehydrated:!1,cache:R.cache,pendingSuspenseBoundaries:R.pendingSuspenseBoundaries,transitions:R.transitions},s.updateQueue.baseState=S,s.memoizedState=S,s.flags&256){v=_s(Error(o(423)),s),s=o1(r,s,h,d,v);break e}else if(h!==v){v=_s(Error(o(424)),s),s=o1(r,s,h,d,v);break e}else for(Ga=to(s.stateNode.containerInfo.firstChild),ir=s,Zt=!0,Rr=null,d=gp(s,null,h,d),s.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(an(),h===v){s=Zn(r,s,d);break e}pn(r,s,h,d)}s=s.child}return s;case 5:return bp(s),r===null&&Ad(s),h=s.type,v=s.pendingProps,S=r!==null?r.memoizedProps:null,R=v.children,Zu(h,v)?R=null:S!==null&&Zu(h,S)&&(s.flags|=32),wi(r,s),pn(r,s,R,d),s.child;case 6:return r===null&&Ad(s),null;case 13:return Of(r,s,d);case 4:return kf(s,s.stateNode.containerInfo),h=s.pendingProps,r===null?s.child=El(s,null,h,d):pn(r,s,h,d),s.child;case 11:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Qa(h,v),Ul(r,s,h,v,d);case 7:return pn(r,s,s.pendingProps,d),s.child;case 8:return pn(r,s,s.pendingProps.children,d),s.child;case 12:return pn(r,s,s.pendingProps.children,d),s.child;case 10:e:{if(h=s.type._context,v=s.pendingProps,S=s.memoizedProps,R=v.value,Mt(Ho,h._currentValue),h._currentValue=R,S!==null)if(Cr(S.value,R)){if(S.children===v.children&&!dn.current){s=Zn(r,s,d);break e}}else for(S=s.child,S!==null&&(S.return=s);S!==null;){var F=S.dependencies;if(F!==null){R=S.child;for(var $=F.firstContext;$!==null;){if($.context===h){if(S.tag===1){$=Wa(-1,d&-d),$.tag=2;var re=S.updateQueue;if(re!==null){re=re.shared;var he=re.pending;he===null?$.next=$:($.next=he.next,he.next=$),re.pending=$}}S.lanes|=d,$=S.alternate,$!==null&&($.lanes|=d),bf(S.return,d,s),F.lanes|=d;break}$=$.next}}else if(S.tag===10)R=S.type===s.type?null:S.child;else if(S.tag===18){if(R=S.return,R===null)throw Error(o(341));R.lanes|=d,F=R.alternate,F!==null&&(F.lanes|=d),bf(R,d,s),R=S.sibling}else R=S.child;if(R!==null)R.return=S;else for(R=S;R!==null;){if(R===s){R=null;break}if(S=R.sibling,S!==null){S.return=R.return,R=S;break}R=R.return}S=R}pn(r,s,v.children,d),s=s.child}return s;case 9:return v=s.type,h=s.pendingProps.children,_l(s,d),v=Lr(v),h=h(v),s.flags|=1,pn(r,s,h,d),s.child;case 14:return h=s.type,v=Qa(h,s.pendingProps),v=Qa(h.type,v),Is(r,s,h,v,d);case 15:return a1(r,s,s.type,s.pendingProps,d);case 17:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Qa(h,v),ga(r,s),s.tag=1,Jt(h)?(r=!0,Rd(s)):r=!1,_l(s,d),wp(s,h,v),_f(s,h,v,d),r1(null,s,h,!0,r,d);case 19:return xf(r,s,d);case 22:return Ka(r,s,d)}throw Error(o(156,s.tag))};function qf(r,s){return xm(r,s)}function T4(r,s,d,h){this.tag=r,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dr(r,s,d,h){return new T4(r,s,d,h)}function Gf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function b4(r){if(typeof r=="function")return Gf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Ge)return 11;if(r===mt)return 14}return 2}function Ls(r,s){var d=r.alternate;return d===null?(d=Dr(r.tag,s,r.key,r.mode),d.elementType=r.elementType,d.type=r.type,d.stateNode=r.stateNode,d.alternate=r,r.alternate=d):(d.pendingProps=s,d.type=r.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=r.flags&14680064,d.childLanes=r.childLanes,d.lanes=r.lanes,d.child=r.child,d.memoizedProps=r.memoizedProps,d.memoizedState=r.memoizedState,d.updateQueue=r.updateQueue,s=r.dependencies,d.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},d.sibling=r.sibling,d.index=r.index,d.ref=r.ref,d}function y1(r,s,d,h,v,S){var R=2;if(h=r,typeof r=="function")Gf(r)&&(R=1);else if(typeof r=="string")R=5;else e:switch(r){case ae:return Ai(d.children,v,S,s);case Ce:R=8,v|=8;break;case Se:return r=Dr(12,d,s,v|2),r.elementType=Se,r.lanes=S,r;case Ne:return r=Dr(13,d,s,v),r.elementType=Ne,r.lanes=S,r;case et:return r=Dr(19,d,s,v),r.elementType=et,r.lanes=S,r;case Qn:return bc(d,v,S,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Ye:R=10;break e;case Be:R=9;break e;case Ge:R=11;break e;case mt:R=14;break e;case Rt:R=16,h=null;break e}throw Error(o(130,r==null?r:typeof r,""))}return s=Dr(R,d,s,v),s.elementType=r,s.type=h,s.lanes=S,s}function Ai(r,s,d,h){return r=Dr(7,r,h,s),r.lanes=d,r}function bc(r,s,d,h){return r=Dr(22,r,h,s),r.elementType=Qn,r.lanes=d,r.stateNode={isHidden:!1},r}function kc(r,s,d){return r=Dr(6,r,null,s),r.lanes=d,r}function xi(r,s,d){return s=Dr(4,r.children!==null?r.children:[],r.key,s),s.lanes=d,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function k4(r,s,d,h,v){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Um(0),this.expirationTimes=Um(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Um(0),this.identifierPrefix=h,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function v1(r,s,d,h,v,S,R,F,$){return r=new k4(r,s,d,F,$),s===1?(s=1,S===!0&&(s|=8)):s=0,S=Dr(3,null,null,s),r.current=S,S.stateNode=r,S.memoizedState={element:h,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dd(S),r}function Hp(r,s,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:h==null?null:""+h,children:r,containerInfo:s,implementation:d}}function Wf(r){if(!r)return go;r=r._reactInternals;e:{if(po(r)!==r||r.tag!==1)throw Error(o(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Jt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(o(171))}if(r.tag===1){var d=r.type;if(Jt(d))return ec(r,d,s)}return s}function qp(r,s,d,h,v,S,R,F,$){return r=v1(d,h,!0,r,v,S,R,F,$),r.context=Wf(null),d=r.current,h=Ta(),v=Cn(d),S=Wa(h,v),S.callback=s??null,Cs(d,S,v),r.current.lanes=v,oi(r,v,h),ka(r,h),r}function Sc(r,s,d,h){var v=s.current,S=Ta(),R=Cn(v);return d=Wf(d),s.context===null?s.context=d:s.pendingContext=d,s=Wa(S,R),s.payload={element:r},h=h===void 0?null:h,h!==null&&(s.callback=h),r=Cs(v,s,R),r!==null&&(ba(r,v,R,S),Ud(r,v,R)),R}function T1(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Gp(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var d=r.retryLane;r.retryLane=d!==0&&d<s?d:s}}function Qf(r,s){Gp(r,s),(r=r.alternate)&&Gp(r,s)}function Wp(){return null}var Yf=typeof reportError=="function"?reportError:function(r){console.error(r)};function b1(r){this._internalRoot=r}Zo.prototype.render=b1.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(o(409));Sc(r,s,null,null)},Zo.prototype.unmount=b1.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Os(function(){Sc(null,r,null,null)}),s[$o]=null}};function Zo(r){this._internalRoot=r}Zo.prototype.unstable_scheduleHydration=function(r){if(r){var s=N2();r={blockedOn:null,target:r,priority:s};for(var d=0;d<jt.length&&s!==0&&s<jt[d].priority;d++);jt.splice(d,0,r),d===0&&R2(r)}};function Kf(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function k1(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Qp(){}function S4(r,s,d,h,v){if(v){if(typeof h=="function"){var S=h;h=function(){var re=T1(R);S.call(re)}}var R=qp(s,h,r,0,null,!1,!1,"",Qp);return r._reactRootContainer=R,r[$o]=R.current,Sl(r.nodeType===8?r.parentNode:r),Os(),R}for(;v=r.lastChild;)r.removeChild(v);if(typeof h=="function"){var F=h;h=function(){var re=T1($);F.call(re)}}var $=v1(r,0,!1,null,null,!1,!1,"",Qp);return r._reactRootContainer=$,r[$o]=$.current,Sl(r.nodeType===8?r.parentNode:r),Os(function(){Sc(s,$,d,h)}),$}function S1(r,s,d,h,v){var S=d._reactRootContainer;if(S){var R=S;if(typeof v=="function"){var F=v;v=function(){var $=T1(R);F.call($)}}Sc(s,R,r,v)}else R=S4(d,s,r,v,h);return T1(R)}I2=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var d=ri(s.pendingLanes);d!==0&&(xu(s,d|1),ka(s,cn()),!(Et&6)&&(ql=cn()+500,za()))}break;case 13:Os(function(){var h=qo(r,1);if(h!==null){var v=Ta();ba(h,r,1,v)}}),Qf(r,1)}},dd=function(r){if(r.tag===13){var s=qo(r,134217728);if(s!==null){var d=Ta();ba(s,r,134217728,d)}Qf(r,134217728)}},Vt=function(r){if(r.tag===13){var s=Cn(r),d=qo(r,s);if(d!==null){var h=Ta();ba(d,r,s,h)}Qf(r,s)}},N2=function(){return Ft},Vm=function(r,s){var d=Ft;try{return Ft=r,s()}finally{Ft=d}},Nu=function(r,s,d){switch(s){case"input":if(Nn(r,d),s=d.name,d.type==="radio"&&s!=null){for(d=r;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<d.length;s++){var h=d[s];if(h!==r&&h.form===r.form){var v=Ze(h);if(!v)throw Error(o(90));In(h),Nn(h,v)}}}break;case"textarea":ni(r,d);break;case"select":s=d.value,s!=null&&mo(r,!!d.multiple,s,!1)}},v2=Ql,T2=Os;var w4={usingClientEntryPoint:!1,Events:[Ju,wl,Ze,rd,od,Ql]},Kl={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},C4={bundleType:Kl.bundleType,version:Kl.version,rendererPackageName:Kl.rendererPackageName,rendererConfig:Kl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=b2(r),r===null?null:r.stateNode},findFiberByHostInstance:Kl.findFiberByHostInstance||Wp,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 w1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!w1.isDisabled&&w1.supportsFiber)try{Au=w1.inject(C4),Kr=w1}catch{}}return $r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w4,$r.createPortal=function(r,s){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kf(s))throw Error(o(200));return Hp(r,s,null,d)},$r.createRoot=function(r,s){if(!Kf(r))throw Error(o(299));var d=!1,h="",v=Yf;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onRecoverableError!==void 0&&(v=s.onRecoverableError)),s=v1(r,1,!1,null,null,d,!1,h,v),r[$o]=s.current,Sl(r.nodeType===8?r.parentNode:r),new b1(s)},$r.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(o(188)):(r=Object.keys(r).join(","),Error(o(268,r)));return r=b2(s),r=r===null?null:r.stateNode,r},$r.flushSync=function(r){return Os(r)},$r.hydrate=function(r,s,d){if(!k1(s))throw Error(o(200));return S1(null,r,s,!0,d)},$r.hydrateRoot=function(r,s,d){if(!Kf(r))throw Error(o(405));var h=d!=null&&d.hydratedSources||null,v=!1,S="",R=Yf;if(d!=null&&(d.unstable_strictMode===!0&&(v=!0),d.identifierPrefix!==void 0&&(S=d.identifierPrefix),d.onRecoverableError!==void 0&&(R=d.onRecoverableError)),s=qp(s,null,r,1,d??null,v,!1,S,R),r[$o]=s.current,Sl(r),h)for(r=0;r<h.length;r++)d=h[r],v=d._getVersion,v=v(d._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[d,v]:s.mutableSourceEagerHydrationData.push(d,v);return new Zo(s)},$r.render=function(r,s,d){if(!k1(s))throw Error(o(200));return S1(null,r,s,!1,d)},$r.unmountComponentAtNode=function(r){if(!k1(r))throw Error(o(40));return r._reactRootContainer?(Os(function(){S1(null,null,r,!1,function(){r._reactRootContainer=null,r[$o]=null})}),!0):!1},$r.unstable_batchedUpdates=Ql,$r.unstable_renderSubtreeIntoContainer=function(r,s,d,h){if(!k1(d))throw Error(o(200));if(r==null||r._reactInternals===void 0)throw Error(o(38));return S1(r,s,d,!1,h)},$r.version="18.3.1-next-f1338f8080-20240426",$r}var io={},Jb;function yV(){return Jb||(Jb=1,wm.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=W,a=uC(),o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function c(e){l=e}function p(e){if(!l){for(var t=arguments.length,i=new Array(t>1?t-1:0),u=1;u<t;u++)i[u-1]=arguments[u];y("warn",e,i)}}function f(e){if(!l){for(var t=arguments.length,i=new Array(t>1?t-1:0),u=1;u<t;u++)i[u-1]=arguments[u];y("error",e,i)}}function y(e,t,i){{var u=o.ReactDebugCurrentFrame,m=u.getStackAddendum();m!==""&&(t+="%s",i=i.concat([m]));var g=i.map(function(T){return String(T)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var b=0,C=1,_=2,N=3,O=4,L=5,x=6,D=7,j=8,V=9,Y=10,Z=11,Q=12,te=13,ie=14,ae=15,Ce=16,Se=17,Ye=18,Be=19,Ge=21,Ne=22,et=23,mt=24,Rt=25,Qn=!0,be=!1,Pe=!1,we=!1,ct=!1,z=!0,se=!1,me=!0,We=!0,gt=!0,it=!0,tt=new Set,lt={},_t={};function Yt(e,t){In(e,t),In(e+"Capture",t)}function In(e,t){lt[e]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),lt[e]=t;{var i=e.toLowerCase();_t[i]=e,e==="onDoubleClick"&&(_t.ondblclick=e)}for(var u=0;u<t.length;u++)tt.add(t[u])}var qt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nn=Object.prototype.hasOwnProperty;function Nt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,i=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function sn(e){try{return Nn(e),!1}catch{return!0}}function Nn(e){return""+e}function Wr(e,t){if(sn(e))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Nt(e)),Nn(e)}function de(e){if(sn(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Nt(e)),Nn(e)}function Ao(e,t){if(sn(e))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Nt(e)),Nn(e)}function mo(e,t){if(sn(e))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Nt(e)),Nn(e)}function xo(e){if(sn(e))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Nt(e)),Nn(e)}function ds(e){if(sn(e))return f("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Nt(e)),Nn(e)}var ni=0,Tr=1,ms=2,ar=3,fo=4,Iu=5,Re=6,Xe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",vt=Xe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Gt=new RegExp("^["+Xe+"]["+vt+"]*$"),ln={},ja={};function Rn(e){return nn.call(ja,e)?!0:nn.call(ln,e)?!1:Gt.test(e)?(ja[e]=!0,!0):(ln[e]=!0,f("Invalid attribute name: `%s`",e),!1)}function Qr(e,t,i){return t!==null?t.type===ni:i?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function vn(e,t,i,u){if(i!==null&&i.type===ni)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(u)return!1;if(i!==null)return!i.acceptsBooleans;var m=e.toLowerCase().slice(0,5);return m!=="data-"&&m!=="aria-"}default:return!1}}function br(e,t,i,u){if(t===null||typeof t>"u"||vn(e,t,i,u))return!0;if(u)return!1;if(i!==null)switch(i.type){case ar:return!t;case fo:return t===!1;case Iu:return isNaN(t);case Re:return isNaN(t)||t<1}return!1}function Nu(e){return un.hasOwnProperty(e)?un[e]:null}function Tn(e,t,i,u,m,g,T){this.acceptsBooleans=t===ms||t===ar||t===fo,this.attributeName=u,this.attributeNamespace=m,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=g,this.removeEmptyString=T}var un={},y2=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];y2.forEach(function(e){un[e]=new Tn(e,ni,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],i=e[1];un[t]=new Tn(t,Tr,!1,i,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new Tn(e,ms,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new Tn(e,ms,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){un[e]=new Tn(e,ar,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){un[e]=new Tn(e,ar,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){un[e]=new Tn(e,fo,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){un[e]=new Tn(e,Re,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){un[e]=new Tn(e,Iu,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-\:]([a-z])/g,od=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(rd,od);un[t]=new Tn(t,Tr,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(rd,od);un[t]=new Tn(t,Tr,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,od);un[t]=new Tn(t,Tr,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){un[e]=new Tn(e,Tr,!1,e.toLowerCase(),null,!1,!1)});var v2="xlinkHref";un[v2]=new Tn("xlinkHref",Tr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){un[e]=new Tn(e,Tr,!1,e.toLowerCase(),null,!0,!0)});var T2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,sd=!1;function Om(e){!sd&&T2.test(e)&&(sd=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Ru(e,t,i,u){if(u.mustUseProperty){var m=u.propertyName;return e[m]}else{Wr(i,t),u.sanitizeURL&&Om(""+i);var g=u.attributeName,T=null;if(u.type===fo){if(e.hasAttribute(g)){var E=e.getAttribute(g);return E===""?!0:br(t,i,u,!1)?E:E===""+i?i:E}}else if(e.hasAttribute(g)){if(br(t,i,u,!1))return e.getAttribute(g);if(u.type===ar)return i;T=e.getAttribute(g)}return br(t,i,u,!1)?T===null?i:T:T===""+i?i:T}}function id(e,t,i,u){{if(!Rn(t))return;if(!e.hasAttribute(t))return i===void 0?void 0:null;var m=e.getAttribute(t);return Wr(i,t),m===""+i?i:m}}function ai(e,t,i,u){var m=Nu(t);if(!Qr(t,m,u)){if(br(t,i,m,u)&&(i=null),u||m===null){if(Rn(t)){var g=t;i===null?e.removeAttribute(g):(Wr(i,t),e.setAttribute(g,""+i))}return}var T=m.mustUseProperty;if(T){var E=m.propertyName;if(i===null){var I=m.type;e[E]=I===ar?!1:""}else e[E]=i;return}var A=m.attributeName,M=m.attributeNamespace;if(i===null)e.removeAttribute(A);else{var G=m.type,H;G===ar||G===fo&&i===!0?H="":(Wr(i,A),H=""+i,m.sanitizeURL&&Om(H.toString())),M?e.setAttributeNS(M,A,H):e.setAttribute(A,H)}}}var ll=Symbol.for("react.element"),Yr=Symbol.for("react.portal"),Po=Symbol.for("react.fragment"),ul=Symbol.for("react.strict_mode"),Ou=Symbol.for("react.profiler"),Lm=Symbol.for("react.provider"),Am=Symbol.for("react.context"),cl=Symbol.for("react.forward_ref"),po=Symbol.for("react.suspense"),Lu=Symbol.for("react.suspense_list"),dl=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),b2=Symbol.for("react.scope"),k2=Symbol.for("react.debug_trace_mode"),xm=Symbol.for("react.offscreen"),S2=Symbol.for("react.legacy_hidden"),j6=Symbol.for("react.cache"),B6=Symbol.for("react.tracing_marker"),cn=Symbol.iterator,$6="@@iterator";function Mo(e){if(e===null||typeof e!="object")return null;var t=cn&&e[cn]||e[$6];return typeof t=="function"?t:null}var Ct=Object.assign,fs=0,w2,Pm,Au,Kr,C2,kr,E2;function _2(){}_2.__reactDisabledLog=!0;function z6(){{if(fs===0){w2=console.log,Pm=console.info,Au=console.warn,Kr=console.error,C2=console.group,kr=console.groupCollapsed,E2=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_2,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}fs++}}function ld(){{if(fs--,fs===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ct({},e,{value:w2}),info:Ct({},e,{value:Pm}),warn:Ct({},e,{value:Au}),error:Ct({},e,{value:Kr}),group:Ct({},e,{value:C2}),groupCollapsed:Ct({},e,{value:kr}),groupEnd:Ct({},e,{value:E2})})}fs<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ml=o.ReactCurrentDispatcher,ri;function Zr(e,t,i){{if(ri===void 0)try{throw Error()}catch(m){var u=m.stack.trim().match(/\n( *(at )?)/);ri=u&&u[1]||""}return`
43
+ `+S.stack}return{value:r,source:s,stack:v,digest:null}}function If(r,s,d){return{value:r,source:null,stack:d??null,digest:s??null}}function uc(r,s){try{console.error(s.value)}catch(d){setTimeout(function(){throw d})}}var Ep=typeof WeakMap=="function"?WeakMap:Map;function _p(r,s,d){d=Wa(-1,d),d.tag=3,d.payload={element:null};var h=s.value;return d.callback=function(){d1||(d1=!0,Ii=h),uc(r,s)},d}function Ip(r,s,d){d=Wa(-1,d),d.tag=3;var h=r.type.getDerivedStateFromError;if(typeof h=="function"){var v=s.value;d.payload=function(){return h(v)},d.callback=function(){uc(r,s)}}var S=r.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(d.callback=function(){uc(r,s),typeof h!="function"&&(bo===null?bo=new Set([this]):bo.add(this));var R=s.stack;this.componentDidCatch(s.value,{componentStack:R!==null?R:""})}),d}function cc(r,s,d){var h=r.pingCache;if(h===null){h=r.pingCache=new Ep;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(d)||(v.add(d),r=g4.bind(null,r,s,d),s.then(r,r))}function Np(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Nf(r,s,d,h,v){return r.mode&1?(r.flags|=65536,r.lanes=v,r):(r===s?r.flags|=65536:(r.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(s=Wa(-1,1),s.tag=2,Cs(d,s,1))),d.lanes|=1),r)}var Rp=Q.ReactCurrentOwner,Ya=!1;function pn(r,s,d,h){s.child=r===null?gp(s,null,d,h):El(s,r.child,d,h)}function Ul(r,s,d,h,v){d=d.render;var S=s.ref;return _l(s,v),h=fe(r,s,d,h,S,v),d=wn(),r!==null&&!Ya?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~v,Zn(r,s,v)):(Zt&&d&&Od(s),s.flags|=1,pn(r,s,h,v),s.child)}function Is(r,s,d,h,v){if(r===null){var S=d.type;return typeof S=="function"&&!Gf(S)&&S.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(s.tag=15,s.type=S,a1(r,s,S,h,v)):(r=y1(d.type,null,h,s,s.mode,v),r.ref=s.ref,r.return=s,s.child=r)}if(S=r.child,!(r.lanes&v)){var R=S.memoizedProps;if(d=d.compare,d=d!==null?d:Hu,d(R,h)&&r.ref===s.ref)return Zn(r,s,v)}return s.flags|=1,r=Ls(S,h),r.ref=s.ref,r.return=s,s.child=r}function a1(r,s,d,h,v){if(r!==null){var S=r.memoizedProps;if(Hu(S,h)&&r.ref===s.ref)if(Ya=!1,s.pendingProps=h=S,(r.lanes&v)!==0)r.flags&131072&&(Ya=!0);else return s.lanes=r.lanes,Zn(r,s,v)}return pt(r,s,d,h,v)}function Ka(r,s,d){var h=s.pendingProps,v=h.children,S=r!==null?r.memoizedState:null;if(h.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt(zl,dr),dr|=d;else{if(!(d&1073741824))return r=S!==null?S.baseLanes|d:d,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,Mt(zl,dr),dr|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=S!==null?S.baseLanes:d,Mt(zl,dr),dr|=h}else S!==null?(h=S.baseLanes|d,s.memoizedState=null):h=d,Mt(zl,dr),dr|=h;return pn(r,s,v,d),s.child}function wi(r,s){var d=s.ref;(r===null&&d!==null||r!==null&&r.ref!==d)&&(s.flags|=512,s.flags|=2097152)}function pt(r,s,d,h,v){var S=Jt(d)?$a:rt.current;return S=_r(s,S),_l(s,v),d=fe(r,s,d,h,S,v),h=wn(),r!==null&&!Ya?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~v,Zn(r,s,v)):(Zt&&h&&Od(s),s.flags|=1,pn(r,s,d,v),s.child)}function dc(r,s,d,h,v){if(Jt(d)){var S=!0;Rd(s)}else S=!1;if(_l(s,v),s.stateNode===null)ga(r,s),wp(s,d,h),_f(s,d,h,v),h=!0;else if(r===null){var R=s.stateNode,F=s.memoizedProps;R.props=F;var $=R.context,re=d.contextType;typeof re=="object"&&re!==null?re=Lr(re):(re=Jt(d)?$a:rt.current,re=_r(s,re));var he=d.getDerivedStateFromProps,ve=typeof he=="function"||typeof R.getSnapshotBeforeUpdate=="function";ve||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(F!==h||$!==re)&&Cp(s,R,h,re),ws=!1;var ge=s.memoizedState;R.state=ge,Fd(s,h,R,v),$=s.memoizedState,F!==h||ge!==$||dn.current||ws?(typeof he=="function"&&(ki(s,d,he,h),$=s.memoizedState),(F=ws||Sp(s,d,F,h,ge,$,re))?(ve||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(s.flags|=4194308)):(typeof R.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=$),R.props=h,R.state=$,R.context=re,h=F):(typeof R.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{R=s.stateNode,Il(r,s),F=s.memoizedProps,re=s.type===s.elementType?F:Qa(s.type,F),R.props=re,ve=s.pendingProps,ge=R.context,$=d.contextType,typeof $=="object"&&$!==null?$=Lr($):($=Jt(d)?$a:rt.current,$=_r(s,$));var Le=d.getDerivedStateFromProps;(he=typeof Le=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(F!==ve||ge!==$)&&Cp(s,R,h,$),ws=!1,ge=s.memoizedState,R.state=ge,Fd(s,h,R,v);var De=s.memoizedState;F!==ve||ge!==De||dn.current||ws?(typeof Le=="function"&&(ki(s,d,Le,h),De=s.memoizedState),(re=ws||Sp(s,d,re,h,ge,De,$)||!1)?(he||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(h,De,$),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(h,De,$)),typeof R.componentDidUpdate=="function"&&(s.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof R.componentDidUpdate!="function"||F===r.memoizedProps&&ge===r.memoizedState||(s.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||F===r.memoizedProps&&ge===r.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=De),R.props=h,R.state=De,R.context=$,h=re):(typeof R.componentDidUpdate!="function"||F===r.memoizedProps&&ge===r.memoizedState||(s.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||F===r.memoizedProps&&ge===r.memoizedState||(s.flags|=1024),h=!1)}return r1(r,s,d,h,S,v)}function r1(r,s,d,h,v,S){wi(r,s);var R=(s.flags&128)!==0;if(!h&&!R)return v&&dp(s,d,!1),Zn(r,s,S);h=s.stateNode,Rp.current=s;var F=R&&typeof d.getDerivedStateFromError!="function"?null:h.render();return s.flags|=1,r!==null&&R?(s.child=El(s,r.child,null,S),s.child=El(s,null,F,S)):pn(r,s,F,S),s.memoizedState=h.state,v&&dp(s,d,!0),s.child}function Op(r){var s=r.stateNode;s.pendingContext?ks(r,s.pendingContext,s.pendingContext!==s.context):s.context&&ks(r,s.context,!1),kf(r,s.containerInfo)}function o1(r,s,d,h,v){return an(),vf(v),s.flags|=256,pn(r,s,d,h),s.child}var Ci={dehydrated:null,treeContext:null,retryLane:0};function Rf(r){return{baseLanes:r,cachePool:null,transitions:null}}function Of(r,s,d){var h=s.pendingProps,v=en.current,S=!1,R=(s.flags&128)!==0,F;if((F=R)||(F=r!==null&&r.memoizedState===null?!1:(v&2)!==0),F?(S=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(v|=1),Mt(en,v&1),r===null)return Ad(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(s.mode&1?r.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(R=h.children,r=h.fallback,S?(h=s.mode,S=s.child,R={mode:"hidden",children:R},!(h&1)&&S!==null?(S.childLanes=0,S.pendingProps=R):S=bc(R,h,0,null),r=Ai(r,h,d,null),S.return=s,r.return=s,S.sibling=r,s.child=S,s.child.memoizedState=Rf(d),s.memoizedState=Ci,r):Lf(s,R));if(v=r.memoizedState,v!==null&&(F=v.dehydrated,F!==null))return d4(r,s,R,h,F,v,d);if(S){S=h.fallback,R=s.mode,v=r.child,F=v.sibling;var $={mode:"hidden",children:h.children};return!(R&1)&&s.child!==v?(h=s.child,h.childLanes=0,h.pendingProps=$,s.deletions=null):(h=Ls(v,$),h.subtreeFlags=v.subtreeFlags&14680064),F!==null?S=Ls(F,S):(S=Ai(S,R,d,null),S.flags|=2),S.return=s,h.return=s,h.sibling=S,s.child=h,h=S,S=s.child,R=r.child.memoizedState,R=R===null?Rf(d):{baseLanes:R.baseLanes|d,cachePool:null,transitions:R.transitions},S.memoizedState=R,S.childLanes=r.childLanes&~d,s.memoizedState=Ci,h}return S=r.child,r=S.sibling,h=Ls(S,{mode:"visible",children:h.children}),!(s.mode&1)&&(h.lanes=d),h.return=s,h.sibling=null,r!==null&&(d=s.deletions,d===null?(s.deletions=[r],s.flags|=16):d.push(r)),s.child=h,s.memoizedState=null,h}function Lf(r,s){return s=bc({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function Fl(r,s,d,h){return h!==null&&vf(h),El(s,r.child,null,d),r=Lf(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function d4(r,s,d,h,v,S,R){if(d)return s.flags&256?(s.flags&=-257,h=If(Error(o(422))),Fl(r,s,R,h)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(S=h.fallback,v=s.mode,h=bc({mode:"visible",children:h.children},v,0,null),S=Ai(S,v,R,null),S.flags|=2,h.return=s,S.return=s,h.sibling=S,s.child=h,s.mode&1&&El(s,r.child,null,R),s.child.memoizedState=Rf(R),s.memoizedState=Ci,S);if(!(s.mode&1))return Fl(r,s,R,null);if(v.data==="$!"){if(h=v.nextSibling&&v.nextSibling.dataset,h)var F=h.dgst;return h=F,S=Error(o(419)),h=If(S,h,void 0),Fl(r,s,R,h)}if(F=(R&r.childLanes)!==0,Ya||F){if(h=rn,h!==null){switch(R&-R){case 4:v=2;break;case 16:v=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:v=32;break;case 536870912:v=268435456;break;default:v=0}v=v&(h.suspendedLanes|R)?0:v,v!==0&&v!==S.retryLane&&(S.retryLane=v,qo(r,v),ba(h,r,v,-1))}return zf(),h=If(Error(o(421))),Fl(r,s,R,h)}return v.data==="$?"?(s.flags|=128,s.child=r.child,s=y4.bind(null,r),v._reactRetry=s,null):(r=S.treeContext,Ga=to(v.nextSibling),ir=s,Zt=!0,Rr=null,r!==null&&(qa[fa++]=Yn,qa[fa++]=zo,qa[fa++]=Nr,Yn=r.id,zo=r.overflow,Nr=s),s=Lf(s,h.children),s.flags|=4096,s)}function Af(r,s,d){r.lanes|=s;var h=r.alternate;h!==null&&(h.lanes|=s),bf(r.return,s,d)}function s1(r,s,d,h,v){var S=r.memoizedState;S===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:v}:(S.isBackwards=s,S.rendering=null,S.renderingStartTime=0,S.last=h,S.tail=d,S.tailMode=v)}function xf(r,s,d){var h=s.pendingProps,v=h.revealOrder,S=h.tail;if(pn(r,s,h.children,d),h=en.current,h&2)h=h&1|2,s.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Af(r,d,s);else if(r.tag===19)Af(r,d,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}h&=1}if(Mt(en,h),!(s.mode&1))s.memoizedState=null;else switch(v){case"forwards":for(d=s.child,v=null;d!==null;)r=d.alternate,r!==null&&Vd(r)===null&&(v=d),d=d.sibling;d=v,d===null?(v=s.child,s.child=null):(v=d.sibling,d.sibling=null),s1(s,!1,v,d,S);break;case"backwards":for(d=null,v=s.child,s.child=null;v!==null;){if(r=v.alternate,r!==null&&Vd(r)===null){s.child=v;break}r=v.sibling,v.sibling=d,d=v,v=r}s1(s,!0,d,null,S);break;case"together":s1(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ga(r,s){!(s.mode&1)&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function Zn(r,s,d){if(r!==null&&(s.dependencies=r.dependencies),Yo|=s.lanes,!(d&s.childLanes))return null;if(r!==null&&s.child!==r.child)throw Error(o(153));if(s.child!==null){for(r=s.child,d=Ls(r,r.pendingProps),s.child=d,d.return=s;r.sibling!==null;)r=r.sibling,d=d.sibling=Ls(r,r.pendingProps),d.return=s;d.sibling=null}return s.child}function Wo(r,s,d){switch(s.tag){case 3:Op(s),an();break;case 5:bp(s);break;case 1:Jt(s.type)&&Rd(s);break;case 4:kf(s,s.stateNode.containerInfo);break;case 10:var h=s.type._context,v=s.memoizedProps.value;Mt(Ho,h._currentValue),h._currentValue=v;break;case 13:if(h=s.memoizedState,h!==null)return h.dehydrated!==null?(Mt(en,en.current&1),s.flags|=128,null):d&s.child.childLanes?Of(r,s,d):(Mt(en,en.current&1),r=Zn(r,s,d),r!==null?r.sibling:null);Mt(en,en.current&1);break;case 19:if(h=(d&s.childLanes)!==0,r.flags&128){if(h)return xf(r,s,d);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Mt(en,en.current),h)break;return null;case 22:case 23:return s.lanes=0,Ka(r,s,d)}return Zn(r,s,d)}var mc,Ei,xr,An;mc=function(r,s){for(var d=s.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===s)break;for(;d.sibling===null;){if(d.return===null||d.return===s)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},Ei=function(){},xr=function(r,s,d,h){var v=r.memoizedProps;if(v!==h){r=s.stateNode,yi(no.current);var S=null;switch(d){case"input":v=nn(r,v),h=nn(r,h),S=[];break;case"select":v=we({},v,{value:void 0}),h=we({},h,{value:void 0}),S=[];break;case"textarea":v=xo(r,v),h=xo(r,h),S=[];break;default:typeof v.onClick!="function"&&typeof h.onClick=="function"&&(r.onclick=Nd)}Rn(d,h);var R;d=null;for(re in v)if(!h.hasOwnProperty(re)&&v.hasOwnProperty(re)&&v[re]!=null)if(re==="style"){var F=v[re];for(R in F)F.hasOwnProperty(R)&&(d||(d={}),d[R]="")}else re!=="dangerouslySetInnerHTML"&&re!=="children"&&re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&re!=="autoFocus"&&(c.hasOwnProperty(re)?S||(S=[]):(S=S||[]).push(re,null));for(re in h){var $=h[re];if(F=v!=null?v[re]:void 0,h.hasOwnProperty(re)&&$!==F&&($!=null||F!=null))if(re==="style")if(F){for(R in F)!F.hasOwnProperty(R)||$&&$.hasOwnProperty(R)||(d||(d={}),d[R]="");for(R in $)$.hasOwnProperty(R)&&F[R]!==$[R]&&(d||(d={}),d[R]=$[R])}else d||(S||(S=[]),S.push(re,d)),d=$;else re==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,F=F?F.__html:void 0,$!=null&&F!==$&&(S=S||[]).push(re,$)):re==="children"?typeof $!="string"&&typeof $!="number"||(S=S||[]).push(re,""+$):re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&(c.hasOwnProperty(re)?($!=null&&re==="onScroll"&&Ht("scroll",r),S||F===$||(S=[])):(S=S||[]).push(re,$))}d&&(S=S||[]).push("style",d);var re=S;(s.updateQueue=re)&&(s.flags|=4)}},An=function(r,s,d,h){d!==h&&(s.flags|=4)};function fc(r,s){if(!Zt)switch(r.tailMode){case"hidden":s=r.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?r.tail=null:d.sibling=null;break;case"collapsed":d=r.tail;for(var h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:h.sibling=null}}function ya(r){var s=r.alternate!==null&&r.alternate.child===r.child,d=0,h=0;if(s)for(var v=r.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags&14680064,h|=v.flags&14680064,v.return=r,v=v.sibling;else for(v=r.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=r,v=v.sibling;return r.subtreeFlags|=h,r.childLanes=d,s}function m4(r,s,d){var h=s.pendingProps;switch(gf(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ya(s),null;case 1:return Jt(s.type)&&Ir(),ya(s),null;case 3:return h=s.stateNode,Rl(),Pt(dn),Pt(rt),wf(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(r===null||r.child===null)&&(xd(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,Rr!==null&&(Tc(Rr),Rr=null))),Ei(r,s),ya(s),null;case 5:Sf(s);var v=yi(ac.current);if(d=s.type,r!==null&&s.stateNode!=null)xr(r,s,d,h,v),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!h){if(s.stateNode===null)throw Error(o(166));return ya(s),null}if(r=yi(no.current),xd(s)){h=s.stateNode,d=s.type;var S=s.memoizedProps;switch(h[ho]=s,h[fi]=S,r=(s.mode&1)!==0,d){case"dialog":Ht("cancel",h),Ht("close",h);break;case"iframe":case"object":case"embed":Ht("load",h);break;case"video":case"audio":for(v=0;v<Qu.length;v++)Ht(Qu[v],h);break;case"source":Ht("error",h);break;case"img":case"image":case"link":Ht("error",h),Ht("load",h);break;case"details":Ht("toggle",h);break;case"input":Nt(h,S),Ht("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!S.multiple},Ht("invalid",h);break;case"textarea":ds(h,S),Ht("invalid",h)}Rn(d,S),v=null;for(var R in S)if(S.hasOwnProperty(R)){var F=S[R];R==="children"?typeof F=="string"?h.textContent!==F&&(S.suppressHydrationWarning!==!0&&Id(h.textContent,F,r),v=["children",F]):typeof F=="number"&&h.textContent!==""+F&&(S.suppressHydrationWarning!==!0&&Id(h.textContent,F,r),v=["children",""+F]):c.hasOwnProperty(R)&&F!=null&&R==="onScroll"&&Ht("scroll",h)}switch(d){case"input":Yt(h),Wr(h,S,!0);break;case"textarea":Yt(h),Tr(h);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(h.onclick=Nd)}h=v,s.updateQueue=h,h!==null&&(s.flags|=4)}else{R=v.nodeType===9?v:v.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=ms(d)),r==="http://www.w3.org/1999/xhtml"?d==="script"?(r=R.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof h.is=="string"?r=R.createElement(d,{is:h.is}):(r=R.createElement(d),d==="select"&&(R=r,h.multiple?R.multiple=!0:h.size&&(R.size=h.size))):r=R.createElementNS(r,d),r[ho]=s,r[fi]=h,mc(r,s,!1,!1),s.stateNode=r;e:{switch(R=Qr(d,h),d){case"dialog":Ht("cancel",r),Ht("close",r),v=h;break;case"iframe":case"object":case"embed":Ht("load",r),v=h;break;case"video":case"audio":for(v=0;v<Qu.length;v++)Ht(Qu[v],r);v=h;break;case"source":Ht("error",r),v=h;break;case"img":case"image":case"link":Ht("error",r),Ht("load",r),v=h;break;case"details":Ht("toggle",r),v=h;break;case"input":Nt(r,h),v=nn(r,h),Ht("invalid",r);break;case"option":v=h;break;case"select":r._wrapperState={wasMultiple:!!h.multiple},v=we({},h,{value:void 0}),Ht("invalid",r);break;case"textarea":ds(r,h),v=xo(r,h),Ht("invalid",r);break;default:v=h}Rn(d,v),F=v;for(S in F)if(F.hasOwnProperty(S)){var $=F[S];S==="style"?ln(r,$):S==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Iu(r,$)):S==="children"?typeof $=="string"?(d!=="textarea"||$!=="")&&Re(r,$):typeof $=="number"&&Re(r,""+$):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(c.hasOwnProperty(S)?$!=null&&S==="onScroll"&&Ht("scroll",r):$!=null&&Z(r,S,$,R))}switch(d){case"input":Yt(r),Wr(r,h,!1);break;case"textarea":Yt(r),Tr(r);break;case"option":h.value!=null&&r.setAttribute("value",""+tt(h.value));break;case"select":r.multiple=!!h.multiple,S=h.value,S!=null?mo(r,!!h.multiple,S,!1):h.defaultValue!=null&&mo(r,!!h.multiple,h.defaultValue,!0);break;default:typeof v.onClick=="function"&&(r.onclick=Nd)}switch(d){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return ya(s),null;case 6:if(r&&s.stateNode!=null)An(r,s,r.memoizedProps,h);else{if(typeof h!="string"&&s.stateNode===null)throw Error(o(166));if(d=yi(ac.current),yi(no.current),xd(s)){if(h=s.stateNode,d=s.memoizedProps,h[ho]=s,(S=h.nodeValue!==d)&&(r=ir,r!==null))switch(r.tag){case 3:Id(h.nodeValue,d,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Id(h.nodeValue,d,(r.mode&1)!==0)}S&&(s.flags|=4)}else h=(d.nodeType===9?d:d.ownerDocument).createTextNode(h),h[ho]=s,s.stateNode=h}return ya(s),null;case 13:if(Pt(en),h=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Zt&&Ga!==null&&s.mode&1&&!(s.flags&128))pp(),an(),s.flags|=98560,S=!1;else if(S=xd(s),h!==null&&h.dehydrated!==null){if(r===null){if(!S)throw Error(o(318));if(S=s.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(o(317));S[ho]=s}else an(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;ya(s),S=!1}else Rr!==null&&(Tc(Rr),Rr=null),S=!0;if(!S)return s.flags&65536?s:null}return s.flags&128?(s.lanes=d,s):(h=h!==null,h!==(r!==null&&r.memoizedState!==null)&&h&&(s.child.flags|=8192,s.mode&1&&(r===null||en.current&1?Pn===0&&(Pn=3):zf())),s.updateQueue!==null&&(s.flags|=4),ya(s),null);case 4:return Rl(),Ei(r,s),r===null&&Sl(s.stateNode.containerInfo),ya(s),null;case 10:return Tf(s.type._context),ya(s),null;case 17:return Jt(s.type)&&Ir(),ya(s),null;case 19:if(Pt(en),S=s.memoizedState,S===null)return ya(s),null;if(h=(s.flags&128)!==0,R=S.rendering,R===null)if(h)fc(S,!1);else{if(Pn!==0||r!==null&&r.flags&128)for(r=s.child;r!==null;){if(R=Vd(r),R!==null){for(s.flags|=128,fc(S,!1),h=R.updateQueue,h!==null&&(s.updateQueue=h,s.flags|=4),s.subtreeFlags=0,h=d,d=s.child;d!==null;)S=d,r=h,S.flags&=14680066,R=S.alternate,R===null?(S.childLanes=0,S.lanes=r,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=R.childLanes,S.lanes=R.lanes,S.child=R.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=R.memoizedProps,S.memoizedState=R.memoizedState,S.updateQueue=R.updateQueue,S.type=R.type,r=R.dependencies,S.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),d=d.sibling;return Mt(en,en.current&1|2),s.child}r=r.sibling}S.tail!==null&&cn()>ql&&(s.flags|=128,h=!0,fc(S,!1),s.lanes=4194304)}else{if(!h)if(r=Vd(R),r!==null){if(s.flags|=128,h=!0,d=r.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),fc(S,!0),S.tail===null&&S.tailMode==="hidden"&&!R.alternate&&!Zt)return ya(s),null}else 2*cn()-S.renderingStartTime>ql&&d!==1073741824&&(s.flags|=128,h=!0,fc(S,!1),s.lanes=4194304);S.isBackwards?(R.sibling=s.child,s.child=R):(d=S.last,d!==null?d.sibling=R:s.child=R,S.last=R)}return S.tail!==null?(s=S.tail,S.rendering=s,S.tail=s.sibling,S.renderingStartTime=cn(),s.sibling=null,d=en.current,Mt(en,h?d&1|2:d&1),s):(ya(s),null);case 22:case 23:return $f(),h=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==h&&(s.flags|=8192),h&&s.mode&1?dr&1073741824&&(ya(s),s.subtreeFlags&6&&(s.flags|=8192)):ya(s),null;case 24:return null;case 25:return null}throw Error(o(156,s.tag))}function Pf(r,s){switch(gf(s),s.tag){case 1:return Jt(s.type)&&Ir(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Rl(),Pt(dn),Pt(rt),wf(),r=s.flags,r&65536&&!(r&128)?(s.flags=r&-65537|128,s):null;case 5:return Sf(s),null;case 13:if(Pt(en),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(o(340));an()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return Pt(en),null;case 4:return Rl(),null;case 10:return Tf(s.type._context),null;case 22:case 23:return $f(),null;case 24:return null;default:return null}}var pc=!1,xn=!1,Lp=typeof WeakSet=="function"?WeakSet:Set,Me=null;function Vl(r,s){var d=r.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(h){fn(r,s,h)}else d.current=null}function i1(r,s,d){try{d()}catch(h){fn(r,s,h)}}var Ap=!1;function xp(r,s){if(lf=si,r=Sd(),Vo(r)){if("selectionStart"in r)var d={start:r.selectionStart,end:r.selectionEnd};else e:{d=(d=r.ownerDocument)&&d.defaultView||window;var h=d.getSelection&&d.getSelection();if(h&&h.rangeCount!==0){d=h.anchorNode;var v=h.anchorOffset,S=h.focusNode;h=h.focusOffset;try{d.nodeType,S.nodeType}catch{d=null;break e}var R=0,F=-1,$=-1,re=0,he=0,ve=r,ge=null;t:for(;;){for(var Le;ve!==d||v!==0&&ve.nodeType!==3||(F=R+v),ve!==S||h!==0&&ve.nodeType!==3||($=R+h),ve.nodeType===3&&(R+=ve.nodeValue.length),(Le=ve.firstChild)!==null;)ge=ve,ve=Le;for(;;){if(ve===r)break t;if(ge===d&&++re===v&&(F=R),ge===S&&++he===h&&($=R),(Le=ve.nextSibling)!==null)break;ve=ge,ge=ve.parentNode}ve=Le}d=F===-1||$===-1?null:{start:F,end:$}}else d=null}d=d||{start:0,end:0}}else d=null;for(di={focusedElem:r,selectionRange:d},si=!1,Me=s;Me!==null;)if(s=Me,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,Me=r;else for(;Me!==null;){s=Me;try{var De=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(De!==null){var Ve=De.memoizedProps,hn=De.memoizedState,K=s.stateNode,q=K.getSnapshotBeforeUpdate(s.elementType===s.type?Ve:Qa(s.type,Ve),hn);K.__reactInternalSnapshotBeforeUpdate=q}break;case 3:var ee=s.stateNode.containerInfo;ee.nodeType===1?ee.textContent="":ee.nodeType===9&&ee.documentElement&&ee.removeChild(ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ke){fn(s,s.return,ke)}if(r=s.sibling,r!==null){r.return=s.return,Me=r;break}Me=s.return}return De=Ap,Ap=!1,De}function hc(r,s,d){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var v=h=h.next;do{if((v.tag&r)===r){var S=v.destroy;v.destroy=void 0,S!==void 0&&i1(s,d,S)}v=v.next}while(v!==h)}}function gc(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var d=s=s.next;do{if((d.tag&r)===r){var h=d.create;d.destroy=h()}d=d.next}while(d!==s)}}function Mf(r){var s=r.ref;if(s!==null){var d=r.stateNode;switch(r.tag){case 5:r=d;break;default:r=d}typeof s=="function"?s(r):s.current=r}}function Df(r){var s=r.alternate;s!==null&&(r.alternate=null,Df(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[ho],delete s[fi],delete s[df],delete s[l4],delete s[mf])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Pp(r){return r.tag===5||r.tag===3||r.tag===4}function l1(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Pp(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function jl(r,s,d){var h=r.tag;if(h===5||h===6)r=r.stateNode,s?d.nodeType===8?d.parentNode.insertBefore(r,s):d.insertBefore(r,s):(d.nodeType===8?(s=d.parentNode,s.insertBefore(r,d)):(s=d,s.appendChild(r)),d=d._reactRootContainer,d!=null||s.onclick!==null||(s.onclick=Nd));else if(h!==4&&(r=r.child,r!==null))for(jl(r,s,d),r=r.sibling;r!==null;)jl(r,s,d),r=r.sibling}function vo(r,s,d){var h=r.tag;if(h===5||h===6)r=r.stateNode,s?d.insertBefore(r,s):d.appendChild(r);else if(h!==4&&(r=r.child,r!==null))for(vo(r,s,d),r=r.sibling;r!==null;)vo(r,s,d),r=r.sibling}var tn=null,zn=!1;function Pr(r,s,d){for(d=d.child;d!==null;)Bl(r,s,d),d=d.sibling}function Bl(r,s,d){if(Kr&&typeof Kr.onCommitFiberUnmount=="function")try{Kr.onCommitFiberUnmount(Au,d)}catch{}switch(d.tag){case 5:xn||Vl(d,s);case 6:var h=tn,v=zn;tn=null,Pr(r,s,d),tn=h,zn=v,tn!==null&&(zn?(r=tn,d=d.stateNode,r.nodeType===8?r.parentNode.removeChild(d):r.removeChild(d)):tn.removeChild(d.stateNode));break;case 18:tn!==null&&(zn?(r=tn,d=d.stateNode,r.nodeType===8?vs(r.parentNode,d):r.nodeType===1&&vs(r,d),Uu(r)):vs(tn,d.stateNode));break;case 4:h=tn,v=zn,tn=d.stateNode.containerInfo,zn=!0,Pr(r,s,d),tn=h,zn=v;break;case 0:case 11:case 14:case 15:if(!xn&&(h=d.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){v=h=h.next;do{var S=v,R=S.destroy;S=S.tag,R!==void 0&&(S&2||S&4)&&i1(d,s,R),v=v.next}while(v!==h)}Pr(r,s,d);break;case 1:if(!xn&&(Vl(d,s),h=d.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=d.memoizedProps,h.state=d.memoizedState,h.componentWillUnmount()}catch(F){fn(d,s,F)}Pr(r,s,d);break;case 21:Pr(r,s,d);break;case 22:d.mode&1?(xn=(h=xn)||d.memoizedState!==null,Pr(r,s,d),xn=h):Pr(r,s,d);break;default:Pr(r,s,d)}}function Qo(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var d=r.stateNode;d===null&&(d=r.stateNode=new Lp),s.forEach(function(h){var v=v4.bind(null,r,h);d.has(h)||(d.add(h),h.then(v,v))})}}function ao(r,s){var d=s.deletions;if(d!==null)for(var h=0;h<d.length;h++){var v=d[h];try{var S=r,R=s,F=R;e:for(;F!==null;){switch(F.tag){case 5:tn=F.stateNode,zn=!1;break e;case 3:tn=F.stateNode.containerInfo,zn=!0;break e;case 4:tn=F.stateNode.containerInfo,zn=!0;break e}F=F.return}if(tn===null)throw Error(o(160));Bl(S,R,v),tn=null,zn=!1;var $=v.alternate;$!==null&&($.return=null),v.return=null}catch(re){fn(v,s,re)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Mp(s,r),s=s.sibling}function Mp(r,s){var d=r.alternate,h=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(ao(s,r),To(r),h&4){try{hc(3,r,r.return),gc(3,r)}catch(Ve){fn(r,r.return,Ve)}try{hc(5,r,r.return)}catch(Ve){fn(r,r.return,Ve)}}break;case 1:ao(s,r),To(r),h&512&&d!==null&&Vl(d,d.return);break;case 5:if(ao(s,r),To(r),h&512&&d!==null&&Vl(d,d.return),r.flags&32){var v=r.stateNode;try{Re(v,"")}catch(Ve){fn(r,r.return,Ve)}}if(h&4&&(v=r.stateNode,v!=null)){var S=r.memoizedProps,R=d!==null?d.memoizedProps:S,F=r.type,$=r.updateQueue;if(r.updateQueue=null,$!==null)try{F==="input"&&S.type==="radio"&&S.name!=null&&sn(v,S),Qr(F,R);var re=Qr(F,S);for(R=0;R<$.length;R+=2){var he=$[R],ve=$[R+1];he==="style"?ln(v,ve):he==="dangerouslySetInnerHTML"?Iu(v,ve):he==="children"?Re(v,ve):Z(v,he,ve,re)}switch(F){case"input":Nn(v,S);break;case"textarea":ni(v,S);break;case"select":var ge=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!S.multiple;var Le=S.value;Le!=null?mo(v,!!S.multiple,Le,!1):ge!==!!S.multiple&&(S.defaultValue!=null?mo(v,!!S.multiple,S.defaultValue,!0):mo(v,!!S.multiple,S.multiple?[]:"",!1))}v[fi]=S}catch(Ve){fn(r,r.return,Ve)}}break;case 6:if(ao(s,r),To(r),h&4){if(r.stateNode===null)throw Error(o(162));v=r.stateNode,S=r.memoizedProps;try{v.nodeValue=S}catch(Ve){fn(r,r.return,Ve)}}break;case 3:if(ao(s,r),To(r),h&4&&d!==null&&d.memoizedState.isDehydrated)try{Uu(s.containerInfo)}catch(Ve){fn(r,r.return,Ve)}break;case 4:ao(s,r),To(r);break;case 13:ao(s,r),To(r),v=r.child,v.flags&8192&&(S=v.memoizedState!==null,v.stateNode.isHidden=S,!S||v.alternate!==null&&v.alternate.memoizedState!==null||(Vf=cn())),h&4&&Qo(r);break;case 22:if(he=d!==null&&d.memoizedState!==null,r.mode&1?(xn=(re=xn)||he,ao(s,r),xn=re):ao(s,r),To(r),h&8192){if(re=r.memoizedState!==null,(r.stateNode.isHidden=re)&&!he&&r.mode&1)for(Me=r,he=r.child;he!==null;){for(ve=Me=he;Me!==null;){switch(ge=Me,Le=ge.child,ge.tag){case 0:case 11:case 14:case 15:hc(4,ge,ge.return);break;case 1:Vl(ge,ge.return);var De=ge.stateNode;if(typeof De.componentWillUnmount=="function"){h=ge,d=ge.return;try{s=h,De.props=s.memoizedProps,De.state=s.memoizedState,De.componentWillUnmount()}catch(Ve){fn(h,d,Ve)}}break;case 5:Vl(ge,ge.return);break;case 22:if(ge.memoizedState!==null){Uf(ve);continue}}Le!==null?(Le.return=ge,Me=Le):Uf(ve)}he=he.sibling}e:for(he=null,ve=r;;){if(ve.tag===5){if(he===null){he=ve;try{v=ve.stateNode,re?(S=v.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none"):(F=ve.stateNode,$=ve.memoizedProps.style,R=$!=null&&$.hasOwnProperty("display")?$.display:null,F.style.display=Gt("display",R))}catch(Ve){fn(r,r.return,Ve)}}}else if(ve.tag===6){if(he===null)try{ve.stateNode.nodeValue=re?"":ve.memoizedProps}catch(Ve){fn(r,r.return,Ve)}}else if((ve.tag!==22&&ve.tag!==23||ve.memoizedState===null||ve===r)&&ve.child!==null){ve.child.return=ve,ve=ve.child;continue}if(ve===r)break e;for(;ve.sibling===null;){if(ve.return===null||ve.return===r)break e;he===ve&&(he=null),ve=ve.return}he===ve&&(he=null),ve.sibling.return=ve.return,ve=ve.sibling}}break;case 19:ao(s,r),To(r),h&4&&Qo(r);break;case 21:break;default:ao(s,r),To(r)}}function To(r){var s=r.flags;if(s&2){try{e:{for(var d=r.return;d!==null;){if(Pp(d)){var h=d;break e}d=d.return}throw Error(o(160))}switch(h.tag){case 5:var v=h.stateNode;h.flags&32&&(Re(v,""),h.flags&=-33);var S=l1(r);vo(r,S,v);break;case 3:case 4:var R=h.stateNode.containerInfo,F=l1(r);jl(r,F,R);break;default:throw Error(o(161))}}catch($){fn(r,r.return,$)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function Dp(r,s,d){Me=r,$l(r)}function $l(r,s,d){for(var h=(r.mode&1)!==0;Me!==null;){var v=Me,S=v.child;if(v.tag===22&&h){var R=v.memoizedState!==null||pc;if(!R){var F=v.alternate,$=F!==null&&F.memoizedState!==null||xn;F=pc;var re=xn;if(pc=R,(xn=$)&&!re)for(Me=v;Me!==null;)R=Me,$=R.child,R.tag===22&&R.memoizedState!==null?Fp(v):$!==null?($.return=R,Me=$):Fp(v);for(;S!==null;)Me=S,$l(S),S=S.sibling;Me=v,pc=F,xn=re}Up(r)}else v.subtreeFlags&8772&&S!==null?(S.return=v,Me=S):Up(r)}}function Up(r){for(;Me!==null;){var s=Me;if(s.flags&8772){var d=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:xn||gc(5,s);break;case 1:var h=s.stateNode;if(s.flags&4&&!xn)if(d===null)h.componentDidMount();else{var v=s.elementType===s.type?d.memoizedProps:Qa(s.type,d.memoizedProps);h.componentDidUpdate(v,d.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var S=s.updateQueue;S!==null&&Tp(s,S,h);break;case 3:var R=s.updateQueue;if(R!==null){if(d=null,s.child!==null)switch(s.child.tag){case 5:d=s.child.stateNode;break;case 1:d=s.child.stateNode}Tp(s,R,d)}break;case 5:var F=s.stateNode;if(d===null&&s.flags&4){d=F;var $=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&d.focus();break;case"img":$.src&&(d.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var re=s.alternate;if(re!==null){var he=re.memoizedState;if(he!==null){var ve=he.dehydrated;ve!==null&&Uu(ve)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}xn||s.flags&512&&Mf(s)}catch(ge){fn(s,s.return,ge)}}if(s===r){Me=null;break}if(d=s.sibling,d!==null){d.return=s.return,Me=d;break}Me=s.return}}function Uf(r){for(;Me!==null;){var s=Me;if(s===r){Me=null;break}var d=s.sibling;if(d!==null){d.return=s.return,Me=d;break}Me=s.return}}function Fp(r){for(;Me!==null;){var s=Me;try{switch(s.tag){case 0:case 11:case 15:var d=s.return;try{gc(4,s)}catch($){fn(s,d,$)}break;case 1:var h=s.stateNode;if(typeof h.componentDidMount=="function"){var v=s.return;try{h.componentDidMount()}catch($){fn(s,v,$)}}var S=s.return;try{Mf(s)}catch($){fn(s,S,$)}break;case 5:var R=s.return;try{Mf(s)}catch($){fn(s,R,$)}}}catch($){fn(s,s.return,$)}if(s===r){Me=null;break}var F=s.sibling;if(F!==null){F.return=s.return,Me=F;break}Me=s.return}}var u1=Math.ceil,yc=Q.ReactCurrentDispatcher,Ff=Q.ReactCurrentOwner,va=Q.ReactCurrentBatchConfig,Et=0,rn=null,mn=null,Hn=0,dr=0,zl=ht(0),Pn=0,vc=null,Yo=0,c1=0,Hl=0,_i=null,_a=null,Vf=0,ql=1/0,Ko=null,d1=!1,Ii=null,bo=null,Ns=!1,Rs=null,m1=0,Gl=0,f1=null,Ni=-1,Ri=0;function Ta(){return Et&6?cn():Ni!==-1?Ni:Ni=cn()}function Cn(r){return r.mode&1?Et&2&&Hn!==0?Hn&-Hn:Pd.transition!==null?(Ri===0&&(Ri=cd()),Ri):(r=Ft,r!==0||(r=window.event,r=r===void 0?16:Bm(r.type)),r):1}function ba(r,s,d,h){if(50<Gl)throw Gl=0,f1=null,Error(o(185));oi(r,d,h),(!(Et&2)||r!==rn)&&(r===rn&&(!(Et&2)&&(c1|=d),Pn===4&&Mr(r,Hn)),ka(r,h),d===1&&Et===0&&!(s.mode&1)&&(ql=cn()+500,$n&&za()))}function ka(r,s){var d=r.callbackNode;ud(r,s);var h=Zr(r,r===rn?Hn:0);if(h===0)d!==null&&S2(d),r.callbackNode=null,r.callbackPriority=0;else if(s=h&-h,r.callbackPriority!==s){if(d!=null&&S2(d),s===1)r.tag===0?pf(Vp.bind(null,r)):ff(Vp.bind(null,r)),cf(function(){!(Et&6)&&za()}),d=null;else{switch(Fm(h)){case 1:d=Mo;break;case 4:d=Ct;break;case 16:d=fs;break;case 536870912:d=Pm;break;default:d=fs}d=qf(d,Wl.bind(null,r))}r.callbackPriority=s,r.callbackNode=d}}function Wl(r,s){if(Ni=-1,Ri=0,Et&6)throw Error(o(327));var d=r.callbackNode;if(Yl()&&r.callbackNode!==d)return null;var h=Zr(r,r===rn?Hn:0);if(h===0)return null;if(h&30||h&r.expiredLanes||s)s=h1(r,h);else{s=h;var v=Et;Et|=2;var S=p1();(rn!==r||Hn!==s)&&(Ko=null,ql=cn()+500,Oi(r,s));do try{p4();break}catch(F){jp(r,F)}while(!0);lr(),yc.current=S,Et=v,mn!==null?s=0:(rn=null,Hn=0,s=Pn)}if(s!==0){if(s===2&&(v=Dm(r),v!==0&&(h=v,s=jf(r,v))),s===1)throw d=vc,Oi(r,0),Mr(r,h),ka(r,cn()),d;if(s===6)Mr(r,h);else{if(v=r.current.alternate,!(h&30)&&!Bf(v)&&(s=h1(r,h),s===2&&(S=Dm(r),S!==0&&(h=S,s=jf(r,S))),s===1))throw d=vc,Oi(r,0),Mr(r,h),ka(r,cn()),d;switch(r.finishedWork=v,r.finishedLanes=h,s){case 0:case 1:throw Error(o(345));case 2:Li(r,_a,Ko);break;case 3:if(Mr(r,h),(h&130023424)===h&&(s=Vf+500-cn(),10<s)){if(Zr(r,0)!==0)break;if(v=r.suspendedLanes,(v&h)!==h){Ta(),r.pingedLanes|=r.suspendedLanes&v;break}r.timeoutHandle=mi(Li.bind(null,r,_a,Ko),s);break}Li(r,_a,Ko);break;case 4:if(Mr(r,h),(h&4194240)===h)break;for(s=r.eventTimes,v=-1;0<h;){var R=31-kr(h);S=1<<R,R=s[R],R>v&&(v=R),h&=~S}if(h=v,h=cn()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*u1(h/1960))-h,10<h){r.timeoutHandle=mi(Li.bind(null,r,_a,Ko),h);break}Li(r,_a,Ko);break;case 5:Li(r,_a,Ko);break;default:throw Error(o(329))}}}return ka(r,cn()),r.callbackNode===d?Wl.bind(null,r):null}function jf(r,s){var d=_i;return r.current.memoizedState.isDehydrated&&(Oi(r,s).flags|=256),r=h1(r,s),r!==2&&(s=_a,_a=d,s!==null&&Tc(s)),r}function Tc(r){_a===null?_a=r:_a.push.apply(_a,r)}function Bf(r){for(var s=r;;){if(s.flags&16384){var d=s.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var h=0;h<d.length;h++){var v=d[h],S=v.getSnapshot;v=v.value;try{if(!Cr(S(),v))return!1}catch{return!1}}}if(d=s.child,s.subtreeFlags&16384&&d!==null)d.return=s,s=d;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Mr(r,s){for(s&=~Hl,s&=~c1,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var d=31-kr(s),h=1<<d;r[d]=-1,s&=~h}}function Vp(r){if(Et&6)throw Error(o(327));Yl();var s=Zr(r,0);if(!(s&1))return ka(r,cn()),null;var d=h1(r,s);if(r.tag!==0&&d===2){var h=Dm(r);h!==0&&(s=h,d=jf(r,h))}if(d===1)throw d=vc,Oi(r,0),Mr(r,s),ka(r,cn()),d;if(d===6)throw Error(o(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Li(r,_a,Ko),ka(r,cn()),null}function Ql(r,s){var d=Et;Et|=1;try{return r(s)}finally{Et=d,Et===0&&(ql=cn()+500,$n&&za())}}function Os(r){Rs!==null&&Rs.tag===0&&!(Et&6)&&Yl();var s=Et;Et|=1;var d=va.transition,h=Ft;try{if(va.transition=null,Ft=1,r)return r()}finally{Ft=h,va.transition=d,Et=s,!(Et&6)&&za()}}function $f(){dr=zl.current,Pt(zl)}function Oi(r,s){r.finishedWork=null,r.finishedLanes=0;var d=r.timeoutHandle;if(d!==-1&&(r.timeoutHandle=-1,cp(d)),mn!==null)for(d=mn.return;d!==null;){var h=d;switch(gf(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&Ir();break;case 3:Rl(),Pt(dn),Pt(rt),wf();break;case 5:Sf(h);break;case 4:Rl();break;case 13:Pt(en);break;case 19:Pt(en);break;case 10:Tf(h.type._context);break;case 22:case 23:$f()}d=d.return}if(rn=r,mn=r=Ls(r.current,null),Hn=dr=s,Pn=0,vc=null,Hl=c1=Yo=0,_a=_i=null,gi!==null){for(s=0;s<gi.length;s++)if(d=gi[s],h=d.interleaved,h!==null){d.interleaved=null;var v=h.next,S=d.pending;if(S!==null){var R=S.next;S.next=v,h.next=R}d.pending=h}gi=null}return r}function jp(r,s){do{var d=mn;try{if(lr(),Bd.current=ha,ur){for(var h=ze.memoizedState;h!==null;){var v=h.queue;v!==null&&(v.pending=null),h=h.next}ur=!1}if($e=0,bt=ot=ze=null,Ol=!1,oc=0,Ff.current=null,d===null||d.return===null){Pn=1,vc=s,mn=null;break}e:{var S=r,R=d.return,F=d,$=s;if(s=Hn,F.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var re=$,he=F,ve=he.tag;if(!(he.mode&1)&&(ve===0||ve===11||ve===15)){var ge=he.alternate;ge?(he.updateQueue=ge.updateQueue,he.memoizedState=ge.memoizedState,he.lanes=ge.lanes):(he.updateQueue=null,he.memoizedState=null)}var Le=Np(R);if(Le!==null){Le.flags&=-257,Nf(Le,R,F,S,s),Le.mode&1&&cc(S,re,s),s=Le,$=re;var De=s.updateQueue;if(De===null){var Ve=new Set;Ve.add($),s.updateQueue=Ve}else De.add($);break e}else{if(!(s&1)){cc(S,re,s),zf();break e}$=Error(o(426))}}else if(Zt&&F.mode&1){var hn=Np(R);if(hn!==null){!(hn.flags&65536)&&(hn.flags|=256),Nf(hn,R,F,S,s),vf(_s($,F));break e}}S=$=_s($,F),Pn!==4&&(Pn=2),_i===null?_i=[S]:_i.push(S),S=R;do{switch(S.tag){case 3:S.flags|=65536,s&=-s,S.lanes|=s;var K=_p(S,$,s);vp(S,K);break e;case 1:F=$;var q=S.type,ee=S.stateNode;if(!(S.flags&128)&&(typeof q.getDerivedStateFromError=="function"||ee!==null&&typeof ee.componentDidCatch=="function"&&(bo===null||!bo.has(ee)))){S.flags|=65536,s&=-s,S.lanes|=s;var ke=Ip(S,F,s);vp(S,ke);break e}}S=S.return}while(S!==null)}Hf(d)}catch(He){s=He,mn===d&&d!==null&&(mn=d=d.return);continue}break}while(!0)}function p1(){var r=yc.current;return yc.current=ha,r===null?ha:r}function zf(){(Pn===0||Pn===3||Pn===2)&&(Pn=4),rn===null||!(Yo&268435455)&&!(c1&268435455)||Mr(rn,Hn)}function h1(r,s){var d=Et;Et|=2;var h=p1();(rn!==r||Hn!==s)&&(Ko=null,Oi(r,s));do try{f4();break}catch(v){jp(r,v)}while(!0);if(lr(),Et=d,yc.current=h,mn!==null)throw Error(o(261));return rn=null,Hn=0,Pn}function f4(){for(;mn!==null;)Bp(mn)}function p4(){for(;mn!==null&&!j6();)Bp(mn)}function Bp(r){var s=zp(r.alternate,r,dr);r.memoizedProps=r.pendingProps,s===null?Hf(r):mn=s,Ff.current=null}function Hf(r){var s=r;do{var d=s.alternate;if(r=s.return,s.flags&32768){if(d=Pf(d,s),d!==null){d.flags&=32767,mn=d;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Pn=6,mn=null;return}}else if(d=m4(d,s,dr),d!==null){mn=d;return}if(s=s.sibling,s!==null){mn=s;return}mn=s=r}while(s!==null);Pn===0&&(Pn=5)}function Li(r,s,d){var h=Ft,v=va.transition;try{va.transition=null,Ft=1,h4(r,s,d,h)}finally{va.transition=v,Ft=h}return null}function h4(r,s,d,h){do Yl();while(Rs!==null);if(Et&6)throw Error(o(327));d=r.finishedWork;var v=r.finishedLanes;if(d===null)return null;if(r.finishedWork=null,r.finishedLanes=0,d===r.current)throw Error(o(177));r.callbackNode=null,r.callbackPriority=0;var S=d.lanes|d.childLanes;if(H6(r,S),r===rn&&(mn=rn=null,Hn=0),!(d.subtreeFlags&2064)&&!(d.flags&2064)||Ns||(Ns=!0,qf(fs,function(){return Yl(),null})),S=(d.flags&15990)!==0,d.subtreeFlags&15990||S){S=va.transition,va.transition=null;var R=Ft;Ft=1;var F=Et;Et|=4,Ff.current=null,xp(r,d),Mp(d,r),wd(di),si=!!lf,di=lf=null,r.current=d,Dp(d),B6(),Et=F,Ft=R,va.transition=S}else r.current=d;if(Ns&&(Ns=!1,Rs=r,m1=v),S=r.pendingLanes,S===0&&(bo=null),C2(d.stateNode),ka(r,cn()),s!==null)for(h=r.onRecoverableError,d=0;d<s.length;d++)v=s[d],h(v.value,{componentStack:v.stack,digest:v.digest});if(d1)throw d1=!1,r=Ii,Ii=null,r;return m1&1&&r.tag!==0&&Yl(),S=r.pendingLanes,S&1?r===f1?Gl++:(Gl=0,f1=r):Gl=0,za(),null}function Yl(){if(Rs!==null){var r=Fm(m1),s=va.transition,d=Ft;try{if(va.transition=null,Ft=16>r?16:r,Rs===null)var h=!1;else{if(r=Rs,Rs=null,m1=0,Et&6)throw Error(o(331));var v=Et;for(Et|=4,Me=r.current;Me!==null;){var S=Me,R=S.child;if(Me.flags&16){var F=S.deletions;if(F!==null){for(var $=0;$<F.length;$++){var re=F[$];for(Me=re;Me!==null;){var he=Me;switch(he.tag){case 0:case 11:case 15:hc(8,he,S)}var ve=he.child;if(ve!==null)ve.return=he,Me=ve;else for(;Me!==null;){he=Me;var ge=he.sibling,Le=he.return;if(Df(he),he===re){Me=null;break}if(ge!==null){ge.return=Le,Me=ge;break}Me=Le}}}var De=S.alternate;if(De!==null){var Ve=De.child;if(Ve!==null){De.child=null;do{var hn=Ve.sibling;Ve.sibling=null,Ve=hn}while(Ve!==null)}}Me=S}}if(S.subtreeFlags&2064&&R!==null)R.return=S,Me=R;else e:for(;Me!==null;){if(S=Me,S.flags&2048)switch(S.tag){case 0:case 11:case 15:hc(9,S,S.return)}var K=S.sibling;if(K!==null){K.return=S.return,Me=K;break e}Me=S.return}}var q=r.current;for(Me=q;Me!==null;){R=Me;var ee=R.child;if(R.subtreeFlags&2064&&ee!==null)ee.return=R,Me=ee;else e:for(R=q;Me!==null;){if(F=Me,F.flags&2048)try{switch(F.tag){case 0:case 11:case 15:gc(9,F)}}catch(He){fn(F,F.return,He)}if(F===R){Me=null;break e}var ke=F.sibling;if(ke!==null){ke.return=F.return,Me=ke;break e}Me=F.return}}if(Et=v,za(),Kr&&typeof Kr.onPostCommitFiberRoot=="function")try{Kr.onPostCommitFiberRoot(Au,r)}catch{}h=!0}return h}finally{Ft=d,va.transition=s}}return!1}function $p(r,s,d){s=_s(d,s),s=_p(r,s,1),r=Cs(r,s,1),s=Ta(),r!==null&&(oi(r,1,s),ka(r,s))}function fn(r,s,d){if(r.tag===3)$p(r,r,d);else for(;s!==null;){if(s.tag===3){$p(s,r,d);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(bo===null||!bo.has(h))){r=_s(d,r),r=Ip(s,r,1),s=Cs(s,r,1),r=Ta(),s!==null&&(oi(s,1,r),ka(s,r));break}}s=s.return}}function g4(r,s,d){var h=r.pingCache;h!==null&&h.delete(s),s=Ta(),r.pingedLanes|=r.suspendedLanes&d,rn===r&&(Hn&d)===d&&(Pn===4||Pn===3&&(Hn&130023424)===Hn&&500>cn()-Vf?Oi(r,0):Hl|=d),ka(r,s)}function g1(r,s){s===0&&(r.mode&1?(s=ml,ml<<=1,!(ml&130023424)&&(ml=4194304)):s=1);var d=Ta();r=qo(r,s),r!==null&&(oi(r,s,d),ka(r,d))}function y4(r){var s=r.memoizedState,d=0;s!==null&&(d=s.retryLane),g1(r,d)}function v4(r,s){var d=0;switch(r.tag){case 13:var h=r.stateNode,v=r.memoizedState;v!==null&&(d=v.retryLane);break;case 19:h=r.stateNode;break;default:throw Error(o(314))}h!==null&&h.delete(s),g1(r,d)}var zp;zp=function(r,s,d){if(r!==null)if(r.memoizedProps!==s.pendingProps||dn.current)Ya=!0;else{if(!(r.lanes&d)&&!(s.flags&128))return Ya=!1,Wo(r,s,d);Ya=!!(r.flags&131072)}else Ya=!1,Zt&&s.flags&1048576&&hf(s,Cl,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;ga(r,s),r=s.pendingProps;var v=_r(s,rt.current);_l(s,d),v=fe(null,s,h,r,v,d);var S=wn();return s.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Jt(h)?(S=!0,Rd(s)):S=!1,s.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Dd(s),v.updater=Si,s.stateNode=v,v._reactInternals=s,_f(s,h,r,d),s=r1(null,s,h,!0,S,d)):(s.tag=0,Zt&&S&&Od(s),pn(null,s,v,d),s=s.child),s;case 16:h=s.elementType;e:{switch(ga(r,s),r=s.pendingProps,v=h._init,h=v(h._payload),s.type=h,v=s.tag=b4(h),r=Qa(h,r),v){case 0:s=pt(null,s,h,r,d);break e;case 1:s=dc(null,s,h,r,d);break e;case 11:s=Ul(null,s,h,r,d);break e;case 14:s=Is(null,s,h,Qa(h.type,r),d);break e}throw Error(o(306,h,""))}return s;case 0:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Qa(h,v),pt(r,s,h,v,d);case 1:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Qa(h,v),dc(r,s,h,v,d);case 3:e:{if(Op(s),r===null)throw Error(o(387));h=s.pendingProps,S=s.memoizedState,v=S.element,Il(r,s),Fd(s,h,null,d);var R=s.memoizedState;if(h=R.element,S.isDehydrated)if(S={element:h,isDehydrated:!1,cache:R.cache,pendingSuspenseBoundaries:R.pendingSuspenseBoundaries,transitions:R.transitions},s.updateQueue.baseState=S,s.memoizedState=S,s.flags&256){v=_s(Error(o(423)),s),s=o1(r,s,h,d,v);break e}else if(h!==v){v=_s(Error(o(424)),s),s=o1(r,s,h,d,v);break e}else for(Ga=to(s.stateNode.containerInfo.firstChild),ir=s,Zt=!0,Rr=null,d=gp(s,null,h,d),s.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(an(),h===v){s=Zn(r,s,d);break e}pn(r,s,h,d)}s=s.child}return s;case 5:return bp(s),r===null&&Ad(s),h=s.type,v=s.pendingProps,S=r!==null?r.memoizedProps:null,R=v.children,Zu(h,v)?R=null:S!==null&&Zu(h,S)&&(s.flags|=32),wi(r,s),pn(r,s,R,d),s.child;case 6:return r===null&&Ad(s),null;case 13:return Of(r,s,d);case 4:return kf(s,s.stateNode.containerInfo),h=s.pendingProps,r===null?s.child=El(s,null,h,d):pn(r,s,h,d),s.child;case 11:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Qa(h,v),Ul(r,s,h,v,d);case 7:return pn(r,s,s.pendingProps,d),s.child;case 8:return pn(r,s,s.pendingProps.children,d),s.child;case 12:return pn(r,s,s.pendingProps.children,d),s.child;case 10:e:{if(h=s.type._context,v=s.pendingProps,S=s.memoizedProps,R=v.value,Mt(Ho,h._currentValue),h._currentValue=R,S!==null)if(Cr(S.value,R)){if(S.children===v.children&&!dn.current){s=Zn(r,s,d);break e}}else for(S=s.child,S!==null&&(S.return=s);S!==null;){var F=S.dependencies;if(F!==null){R=S.child;for(var $=F.firstContext;$!==null;){if($.context===h){if(S.tag===1){$=Wa(-1,d&-d),$.tag=2;var re=S.updateQueue;if(re!==null){re=re.shared;var he=re.pending;he===null?$.next=$:($.next=he.next,he.next=$),re.pending=$}}S.lanes|=d,$=S.alternate,$!==null&&($.lanes|=d),bf(S.return,d,s),F.lanes|=d;break}$=$.next}}else if(S.tag===10)R=S.type===s.type?null:S.child;else if(S.tag===18){if(R=S.return,R===null)throw Error(o(341));R.lanes|=d,F=R.alternate,F!==null&&(F.lanes|=d),bf(R,d,s),R=S.sibling}else R=S.child;if(R!==null)R.return=S;else for(R=S;R!==null;){if(R===s){R=null;break}if(S=R.sibling,S!==null){S.return=R.return,R=S;break}R=R.return}S=R}pn(r,s,v.children,d),s=s.child}return s;case 9:return v=s.type,h=s.pendingProps.children,_l(s,d),v=Lr(v),h=h(v),s.flags|=1,pn(r,s,h,d),s.child;case 14:return h=s.type,v=Qa(h,s.pendingProps),v=Qa(h.type,v),Is(r,s,h,v,d);case 15:return a1(r,s,s.type,s.pendingProps,d);case 17:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Qa(h,v),ga(r,s),s.tag=1,Jt(h)?(r=!0,Rd(s)):r=!1,_l(s,d),wp(s,h,v),_f(s,h,v,d),r1(null,s,h,!0,r,d);case 19:return xf(r,s,d);case 22:return Ka(r,s,d)}throw Error(o(156,s.tag))};function qf(r,s){return xm(r,s)}function T4(r,s,d,h){this.tag=r,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dr(r,s,d,h){return new T4(r,s,d,h)}function Gf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function b4(r){if(typeof r=="function")return Gf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Ge)return 11;if(r===mt)return 14}return 2}function Ls(r,s){var d=r.alternate;return d===null?(d=Dr(r.tag,s,r.key,r.mode),d.elementType=r.elementType,d.type=r.type,d.stateNode=r.stateNode,d.alternate=r,r.alternate=d):(d.pendingProps=s,d.type=r.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=r.flags&14680064,d.childLanes=r.childLanes,d.lanes=r.lanes,d.child=r.child,d.memoizedProps=r.memoizedProps,d.memoizedState=r.memoizedState,d.updateQueue=r.updateQueue,s=r.dependencies,d.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},d.sibling=r.sibling,d.index=r.index,d.ref=r.ref,d}function y1(r,s,d,h,v,S){var R=2;if(h=r,typeof r=="function")Gf(r)&&(R=1);else if(typeof r=="string")R=5;else e:switch(r){case ae:return Ai(d.children,v,S,s);case Ce:R=8,v|=8;break;case Se:return r=Dr(12,d,s,v|2),r.elementType=Se,r.lanes=S,r;case Ne:return r=Dr(13,d,s,v),r.elementType=Ne,r.lanes=S,r;case et:return r=Dr(19,d,s,v),r.elementType=et,r.lanes=S,r;case Qn:return bc(d,v,S,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Ye:R=10;break e;case Be:R=9;break e;case Ge:R=11;break e;case mt:R=14;break e;case Rt:R=16,h=null;break e}throw Error(o(130,r==null?r:typeof r,""))}return s=Dr(R,d,s,v),s.elementType=r,s.type=h,s.lanes=S,s}function Ai(r,s,d,h){return r=Dr(7,r,h,s),r.lanes=d,r}function bc(r,s,d,h){return r=Dr(22,r,h,s),r.elementType=Qn,r.lanes=d,r.stateNode={isHidden:!1},r}function kc(r,s,d){return r=Dr(6,r,null,s),r.lanes=d,r}function xi(r,s,d){return s=Dr(4,r.children!==null?r.children:[],r.key,s),s.lanes=d,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function k4(r,s,d,h,v){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Um(0),this.expirationTimes=Um(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Um(0),this.identifierPrefix=h,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function v1(r,s,d,h,v,S,R,F,$){return r=new k4(r,s,d,F,$),s===1?(s=1,S===!0&&(s|=8)):s=0,S=Dr(3,null,null,s),r.current=S,S.stateNode=r,S.memoizedState={element:h,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dd(S),r}function Hp(r,s,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:h==null?null:""+h,children:r,containerInfo:s,implementation:d}}function Wf(r){if(!r)return go;r=r._reactInternals;e:{if(po(r)!==r||r.tag!==1)throw Error(o(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Jt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(o(171))}if(r.tag===1){var d=r.type;if(Jt(d))return ec(r,d,s)}return s}function qp(r,s,d,h,v,S,R,F,$){return r=v1(d,h,!0,r,v,S,R,F,$),r.context=Wf(null),d=r.current,h=Ta(),v=Cn(d),S=Wa(h,v),S.callback=s??null,Cs(d,S,v),r.current.lanes=v,oi(r,v,h),ka(r,h),r}function Sc(r,s,d,h){var v=s.current,S=Ta(),R=Cn(v);return d=Wf(d),s.context===null?s.context=d:s.pendingContext=d,s=Wa(S,R),s.payload={element:r},h=h===void 0?null:h,h!==null&&(s.callback=h),r=Cs(v,s,R),r!==null&&(ba(r,v,R,S),Ud(r,v,R)),R}function T1(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Gp(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var d=r.retryLane;r.retryLane=d!==0&&d<s?d:s}}function Qf(r,s){Gp(r,s),(r=r.alternate)&&Gp(r,s)}function Wp(){return null}var Yf=typeof reportError=="function"?reportError:function(r){console.error(r)};function b1(r){this._internalRoot=r}Zo.prototype.render=b1.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(o(409));Sc(r,s,null,null)},Zo.prototype.unmount=b1.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Os(function(){Sc(null,r,null,null)}),s[$o]=null}};function Zo(r){this._internalRoot=r}Zo.prototype.unstable_scheduleHydration=function(r){if(r){var s=N2();r={blockedOn:null,target:r,priority:s};for(var d=0;d<jt.length&&s!==0&&s<jt[d].priority;d++);jt.splice(d,0,r),d===0&&R2(r)}};function Kf(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function k1(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Qp(){}function S4(r,s,d,h,v){if(v){if(typeof h=="function"){var S=h;h=function(){var re=T1(R);S.call(re)}}var R=qp(s,h,r,0,null,!1,!1,"",Qp);return r._reactRootContainer=R,r[$o]=R.current,Sl(r.nodeType===8?r.parentNode:r),Os(),R}for(;v=r.lastChild;)r.removeChild(v);if(typeof h=="function"){var F=h;h=function(){var re=T1($);F.call(re)}}var $=v1(r,0,!1,null,null,!1,!1,"",Qp);return r._reactRootContainer=$,r[$o]=$.current,Sl(r.nodeType===8?r.parentNode:r),Os(function(){Sc(s,$,d,h)}),$}function S1(r,s,d,h,v){var S=d._reactRootContainer;if(S){var R=S;if(typeof v=="function"){var F=v;v=function(){var $=T1(R);F.call($)}}Sc(s,R,r,v)}else R=S4(d,s,r,v,h);return T1(R)}I2=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var d=ri(s.pendingLanes);d!==0&&(xu(s,d|1),ka(s,cn()),!(Et&6)&&(ql=cn()+500,za()))}break;case 13:Os(function(){var h=qo(r,1);if(h!==null){var v=Ta();ba(h,r,1,v)}}),Qf(r,1)}},dd=function(r){if(r.tag===13){var s=qo(r,134217728);if(s!==null){var d=Ta();ba(s,r,134217728,d)}Qf(r,134217728)}},Vt=function(r){if(r.tag===13){var s=Cn(r),d=qo(r,s);if(d!==null){var h=Ta();ba(d,r,s,h)}Qf(r,s)}},N2=function(){return Ft},Vm=function(r,s){var d=Ft;try{return Ft=r,s()}finally{Ft=d}},Nu=function(r,s,d){switch(s){case"input":if(Nn(r,d),s=d.name,d.type==="radio"&&s!=null){for(d=r;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<d.length;s++){var h=d[s];if(h!==r&&h.form===r.form){var v=Ze(h);if(!v)throw Error(o(90));In(h),Nn(h,v)}}}break;case"textarea":ni(r,d);break;case"select":s=d.value,s!=null&&mo(r,!!d.multiple,s,!1)}},v2=Ql,T2=Os;var w4={usingClientEntryPoint:!1,Events:[Ju,wl,Ze,rd,od,Ql]},Kl={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},C4={bundleType:Kl.bundleType,version:Kl.version,rendererPackageName:Kl.rendererPackageName,rendererConfig:Kl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=b2(r),r===null?null:r.stateNode},findFiberByHostInstance:Kl.findFiberByHostInstance||Wp,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 w1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!w1.isDisabled&&w1.supportsFiber)try{Au=w1.inject(C4),Kr=w1}catch{}}return $r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w4,$r.createPortal=function(r,s){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kf(s))throw Error(o(200));return Hp(r,s,null,d)},$r.createRoot=function(r,s){if(!Kf(r))throw Error(o(299));var d=!1,h="",v=Yf;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onRecoverableError!==void 0&&(v=s.onRecoverableError)),s=v1(r,1,!1,null,null,d,!1,h,v),r[$o]=s.current,Sl(r.nodeType===8?r.parentNode:r),new b1(s)},$r.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(o(188)):(r=Object.keys(r).join(","),Error(o(268,r)));return r=b2(s),r=r===null?null:r.stateNode,r},$r.flushSync=function(r){return Os(r)},$r.hydrate=function(r,s,d){if(!k1(s))throw Error(o(200));return S1(null,r,s,!0,d)},$r.hydrateRoot=function(r,s,d){if(!Kf(r))throw Error(o(405));var h=d!=null&&d.hydratedSources||null,v=!1,S="",R=Yf;if(d!=null&&(d.unstable_strictMode===!0&&(v=!0),d.identifierPrefix!==void 0&&(S=d.identifierPrefix),d.onRecoverableError!==void 0&&(R=d.onRecoverableError)),s=qp(s,null,r,1,d??null,v,!1,S,R),r[$o]=s.current,Sl(r),h)for(r=0;r<h.length;r++)d=h[r],v=d._getVersion,v=v(d._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[d,v]:s.mutableSourceEagerHydrationData.push(d,v);return new Zo(s)},$r.render=function(r,s,d){if(!k1(s))throw Error(o(200));return S1(null,r,s,!1,d)},$r.unmountComponentAtNode=function(r){if(!k1(r))throw Error(o(40));return r._reactRootContainer?(Os(function(){S1(null,null,r,!1,function(){r._reactRootContainer=null,r[$o]=null})}),!0):!1},$r.unstable_batchedUpdates=Ql,$r.unstable_renderSubtreeIntoContainer=function(r,s,d,h){if(!k1(d))throw Error(o(200));if(r==null||r._reactInternals===void 0)throw Error(o(38));return S1(r,s,d,!1,h)},$r.version="18.3.1-next-f1338f8080-20240426",$r}var io={},Jb;function yV(){return Jb||(Jb=1,wm.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=W,a=uC(),o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function c(e){l=e}function p(e){if(!l){for(var t=arguments.length,i=new Array(t>1?t-1:0),u=1;u<t;u++)i[u-1]=arguments[u];y("warn",e,i)}}function f(e){if(!l){for(var t=arguments.length,i=new Array(t>1?t-1:0),u=1;u<t;u++)i[u-1]=arguments[u];y("error",e,i)}}function y(e,t,i){{var u=o.ReactDebugCurrentFrame,m=u.getStackAddendum();m!==""&&(t+="%s",i=i.concat([m]));var g=i.map(function(T){return String(T)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var b=0,C=1,_=2,N=3,O=4,L=5,x=6,D=7,j=8,V=9,Y=10,Z=11,Q=12,te=13,ie=14,ae=15,Ce=16,Se=17,Ye=18,Be=19,Ge=21,Ne=22,et=23,mt=24,Rt=25,Qn=!0,be=!1,Pe=!1,we=!1,ct=!1,z=!0,se=!1,me=!0,We=!0,gt=!0,it=!0,tt=new Set,lt={},_t={};function Yt(e,t){In(e,t),In(e+"Capture",t)}function In(e,t){lt[e]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),lt[e]=t;{var i=e.toLowerCase();_t[i]=e,e==="onDoubleClick"&&(_t.ondblclick=e)}for(var u=0;u<t.length;u++)tt.add(t[u])}var qt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nn=Object.prototype.hasOwnProperty;function Nt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,i=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function sn(e){try{return Nn(e),!1}catch{return!0}}function Nn(e){return""+e}function Wr(e,t){if(sn(e))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Nt(e)),Nn(e)}function de(e){if(sn(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Nt(e)),Nn(e)}function Ao(e,t){if(sn(e))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Nt(e)),Nn(e)}function mo(e,t){if(sn(e))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Nt(e)),Nn(e)}function xo(e){if(sn(e))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Nt(e)),Nn(e)}function ds(e){if(sn(e))return f("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Nt(e)),Nn(e)}var ni=0,Tr=1,ms=2,ar=3,fo=4,Iu=5,Re=6,Xe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",vt=Xe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Gt=new RegExp("^["+Xe+"]["+vt+"]*$"),ln={},ja={};function Rn(e){return nn.call(ja,e)?!0:nn.call(ln,e)?!1:Gt.test(e)?(ja[e]=!0,!0):(ln[e]=!0,f("Invalid attribute name: `%s`",e),!1)}function Qr(e,t,i){return t!==null?t.type===ni:i?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function vn(e,t,i,u){if(i!==null&&i.type===ni)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(u)return!1;if(i!==null)return!i.acceptsBooleans;var m=e.toLowerCase().slice(0,5);return m!=="data-"&&m!=="aria-"}default:return!1}}function br(e,t,i,u){if(t===null||typeof t>"u"||vn(e,t,i,u))return!0;if(u)return!1;if(i!==null)switch(i.type){case ar:return!t;case fo:return t===!1;case Iu:return isNaN(t);case Re:return isNaN(t)||t<1}return!1}function Nu(e){return un.hasOwnProperty(e)?un[e]:null}function Tn(e,t,i,u,m,g,T){this.acceptsBooleans=t===ms||t===ar||t===fo,this.attributeName=u,this.attributeNamespace=m,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=g,this.removeEmptyString=T}var un={},y2=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];y2.forEach(function(e){un[e]=new Tn(e,ni,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],i=e[1];un[t]=new Tn(t,Tr,!1,i,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new Tn(e,ms,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new Tn(e,ms,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){un[e]=new Tn(e,ar,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){un[e]=new Tn(e,ar,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){un[e]=new Tn(e,fo,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){un[e]=new Tn(e,Re,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){un[e]=new Tn(e,Iu,!1,e.toLowerCase(),null,!1,!1)});var rd=/[\-\:]([a-z])/g,od=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(rd,od);un[t]=new Tn(t,Tr,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(rd,od);un[t]=new Tn(t,Tr,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rd,od);un[t]=new Tn(t,Tr,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){un[e]=new Tn(e,Tr,!1,e.toLowerCase(),null,!1,!1)});var v2="xlinkHref";un[v2]=new Tn("xlinkHref",Tr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){un[e]=new Tn(e,Tr,!1,e.toLowerCase(),null,!0,!0)});var T2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,sd=!1;function Om(e){!sd&&T2.test(e)&&(sd=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Ru(e,t,i,u){if(u.mustUseProperty){var m=u.propertyName;return e[m]}else{Wr(i,t),u.sanitizeURL&&Om(""+i);var g=u.attributeName,T=null;if(u.type===fo){if(e.hasAttribute(g)){var E=e.getAttribute(g);return E===""?!0:br(t,i,u,!1)?E:E===""+i?i:E}}else if(e.hasAttribute(g)){if(br(t,i,u,!1))return e.getAttribute(g);if(u.type===ar)return i;T=e.getAttribute(g)}return br(t,i,u,!1)?T===null?i:T:T===""+i?i:T}}function id(e,t,i,u){{if(!Rn(t))return;if(!e.hasAttribute(t))return i===void 0?void 0:null;var m=e.getAttribute(t);return Wr(i,t),m===""+i?i:m}}function ai(e,t,i,u){var m=Nu(t);if(!Qr(t,m,u)){if(br(t,i,m,u)&&(i=null),u||m===null){if(Rn(t)){var g=t;i===null?e.removeAttribute(g):(Wr(i,t),e.setAttribute(g,""+i))}return}var T=m.mustUseProperty;if(T){var E=m.propertyName;if(i===null){var I=m.type;e[E]=I===ar?!1:""}else e[E]=i;return}var A=m.attributeName,M=m.attributeNamespace;if(i===null)e.removeAttribute(A);else{var G=m.type,H;G===ar||G===fo&&i===!0?H="":(Wr(i,A),H=""+i,m.sanitizeURL&&Om(H.toString())),M?e.setAttributeNS(M,A,H):e.setAttribute(A,H)}}}var ll=Symbol.for("react.element"),Yr=Symbol.for("react.portal"),Po=Symbol.for("react.fragment"),ul=Symbol.for("react.strict_mode"),Ou=Symbol.for("react.profiler"),Lm=Symbol.for("react.provider"),Am=Symbol.for("react.context"),cl=Symbol.for("react.forward_ref"),po=Symbol.for("react.suspense"),Lu=Symbol.for("react.suspense_list"),dl=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),b2=Symbol.for("react.scope"),k2=Symbol.for("react.debug_trace_mode"),xm=Symbol.for("react.offscreen"),S2=Symbol.for("react.legacy_hidden"),j6=Symbol.for("react.cache"),B6=Symbol.for("react.tracing_marker"),cn=Symbol.iterator,$6="@@iterator";function Mo(e){if(e===null||typeof e!="object")return null;var t=cn&&e[cn]||e[$6];return typeof t=="function"?t:null}var Ct=Object.assign,fs=0,w2,Pm,Au,Kr,C2,kr,E2;function _2(){}_2.__reactDisabledLog=!0;function z6(){{if(fs===0){w2=console.log,Pm=console.info,Au=console.warn,Kr=console.error,C2=console.group,kr=console.groupCollapsed,E2=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_2,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}fs++}}function ld(){{if(fs--,fs===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ct({},e,{value:w2}),info:Ct({},e,{value:Pm}),warn:Ct({},e,{value:Au}),error:Ct({},e,{value:Kr}),group:Ct({},e,{value:C2}),groupCollapsed:Ct({},e,{value:kr}),groupEnd:Ct({},e,{value:E2})})}fs<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ml=o.ReactCurrentDispatcher,ri;function Zr(e,t,i){{if(ri===void 0)try{throw Error()}catch(m){var u=m.stack.trim().match(/\n( *(at )?)/);ri=u&&u[1]||""}return`
44
44
  `+ri+e}}var Mm=!1,ud;{var Dm=typeof WeakMap=="function"?WeakMap:Map;ud=new Dm}function cd(e,t){if(!e||Mm)return"";{var i=ud.get(e);if(i!==void 0)return i}var u;Mm=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ml.current,ml.current=null,z6();try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(oe){u=oe}Reflect.construct(e,[],T)}else{try{T.call()}catch(oe){u=oe}e.call(T.prototype)}}else{try{throw Error()}catch(oe){u=oe}e()}}catch(oe){if(oe&&u&&typeof oe.stack=="string"){for(var E=oe.stack.split(`
45
45
  `),I=u.stack.split(`
46
46
  `),A=E.length-1,M=I.length-1;A>=1&&M>=0&&E[A]!==I[M];)M--;for(;A>=1&&M>=0;A--,M--)if(E[A]!==I[M]){if(A!==1||M!==1)do if(A--,M--,M<0||E[A]!==I[M]){var G=`
@@ -48,7 +48,7 @@ Error generating stack: `+S.message+`
48
48
  Error generating stack: `+u.message+`
49
49
  `+u.stack}}function I2(e,t,i){var u=e.displayName;if(u)return u;var m=t.displayName||t.name||"";return m!==""?i+"("+m+")":i}function dd(e){return e.displayName||"Context"}function Vt(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Po:return"Fragment";case Yr:return"Portal";case Ou:return"Profiler";case ul:return"StrictMode";case po:return"Suspense";case Lu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Am:var t=e;return dd(t)+".Consumer";case Lm:var i=e;return dd(i._context)+".Provider";case cl:return I2(e,e.render,"ForwardRef");case dl:var u=e.displayName||null;return u!==null?u:Vt(e.type)||"Memo";case Ea:{var m=e,g=m._payload,T=m._init;try{return Vt(T(g))}catch{return null}}}return null}function N2(e,t,i){var u=t.displayName||t.name||"";return e.displayName||(u!==""?i+"("+u+")":i)}function Vm(e){return e.displayName||"Context"}function ft(e){var t=e.tag,i=e.type;switch(t){case mt:return"Cache";case V:var u=i;return Vm(u)+".Consumer";case Y:var m=i;return Vm(m._context)+".Provider";case Ye:return"DehydratedFragment";case Z:return N2(i,i.render,"ForwardRef");case D:return"Fragment";case L:return i;case O:return"Portal";case N:return"Root";case x:return"Text";case Ce:return Vt(i);case j:return i===ul?"StrictMode":"Mode";case Ne:return"Offscreen";case Q:return"Profiler";case Ge:return"Scope";case te:return"Suspense";case Be:return"SuspenseList";case Rt:return"TracingMarker";case C:case b:case Se:case _:case ie:case ae:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;break}return null}var Pu=o.ReactDebugCurrentFrame,bn=null,Sr=!1;function wr(){{if(bn===null)return null;var e=bn._debugOwner;if(e!==null&&typeof e<"u")return ft(e)}return null}function Mu(){return bn===null?"":Fm(bn)}function On(){Pu.getCurrentStack=null,bn=null,Sr=!1}function jt(e){Pu.getCurrentStack=e===null?null:Mu,bn=e,Sr=!1}function q6(){return bn}function Xr(e){Sr=e}function ma(e){return""+e}function ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return ds(e),e;default:return""}}var R2={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function fl(e,t){R2[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||f("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||f("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function jm(e){var t=e.type,i=e.nodeName;return i&&i.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function O2(e){return e._valueTracker}function Du(e){e._valueTracker=null}function Uu(e){var t="";return e&&(jm(e)?t=e.checked?"true":"false":t=e.value),t}function pl(e){var t=jm(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);ds(e[t]);var u=""+e[t];if(!(e.hasOwnProperty(t)||typeof i>"u"||typeof i.get!="function"||typeof i.set!="function")){var m=i.get,g=i.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return m.call(this)},set:function(E){ds(E),u=""+E,g.call(this,E)}}),Object.defineProperty(e,t,{enumerable:i.enumerable});var T={getValue:function(){return u},setValue:function(E){ds(E),u=""+E},stopTracking:function(){Du(e),delete e[t]}};return T}}function si(e){O2(e)||(e._valueTracker=pl(e))}function L2(e){if(!e)return!1;var t=O2(e);if(!t)return!0;var i=t.getValue(),u=Uu(e);return u!==i?(t.setValue(u),!0):!1}function md(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var fd=!1,Fu=!1,pd=!1,Bm=!1;function Do(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function Vu(e,t){var i=e,u=t.checked,m=Ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??i._wrapperState.initialChecked});return m}function ju(e,t){fl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!Fu&&(f("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",wr()||"A component",t.type),Fu=!0),t.value!==void 0&&t.defaultValue!==void 0&&!fd&&(f("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",wr()||"A component",t.type),fd=!0);var i=e,u=t.defaultValue==null?"":t.defaultValue;i._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:ps(t.value!=null?t.value:u),controlled:Do(t)}}function $m(e,t){var i=e,u=t.checked;u!=null&&ai(i,"checked",u,!1)}function hl(e,t){var i=e;{var u=Do(t);!i._wrapperState.controlled&&u&&!Bm&&(f("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Bm=!0),i._wrapperState.controlled&&!u&&!pd&&(f("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),pd=!0)}$m(e,t);var m=ps(t.value),g=t.type;if(m!=null)g==="number"?(m===0&&i.value===""||i.value!=m)&&(i.value=ma(m)):i.value!==ma(m)&&(i.value=ma(m));else if(g==="submit"||g==="reset"){i.removeAttribute("value");return}t.hasOwnProperty("value")?hs(i,t.type,m):t.hasOwnProperty("defaultValue")&&hs(i,t.type,ps(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(i.defaultChecked=!!t.defaultChecked)}function Bu(e,t,i){var u=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var m=t.type,g=m==="submit"||m==="reset";if(g&&(t.value===void 0||t.value===null))return;var T=ma(u._wrapperState.initialValue);i||T!==u.value&&(u.value=T),u.defaultValue=T}var E=u.name;E!==""&&(u.name=""),u.defaultChecked=!u.defaultChecked,u.defaultChecked=!!u._wrapperState.initialChecked,E!==""&&(u.name=E)}function A2(e,t){var i=e;hl(i,t),rr(i,t)}function rr(e,t){var i=t.name;if(t.type==="radio"&&i!=null){for(var u=e;u.parentNode;)u=u.parentNode;Wr(i,"name");for(var m=u.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),g=0;g<m.length;g++){var T=m[g];if(!(T===e||T.form!==e.form)){var E=d3(T);if(!E)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");L2(T),hl(T,E)}}}}function hs(e,t,i){(t!=="number"||md(e.ownerDocument)!==e)&&(i==null?e.defaultValue=ma(e._wrapperState.initialValue):e.defaultValue!==ma(i)&&(e.defaultValue=ma(i)))}var hd=!1,gl=!1,x2=!1;function gd(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?n.Children.forEach(t.children,function(i){i!=null&&(typeof i=="string"||typeof i=="number"||gl||(gl=!0,f("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(x2||(x2=!0,f("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!hd&&(f("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),hd=!0)}function zm(e,t){t.value!=null&&e.setAttribute("value",ma(ps(t.value)))}var $u=Array.isArray;function jn(e){return $u(e)}var yd;yd=!1;function P2(){var e=wr();return e?`
50
50
 
51
- Check the render method of \``+e+"`.":""}var M2=["value","defaultValue"];function G6(e){{fl("select",e);for(var t=0;t<M2.length;t++){var i=M2[t];if(e[i]!=null){var u=jn(e[i]);e.multiple&&!u?f("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",i,P2()):!e.multiple&&u&&f("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",i,P2())}}}}function gs(e,t,i,u){var m=e.options;if(t){for(var g=i,T={},E=0;E<g.length;E++)T["$"+g[E]]=!0;for(var I=0;I<m.length;I++){var A=T.hasOwnProperty("$"+m[I].value);m[I].selected!==A&&(m[I].selected=A),A&&u&&(m[I].defaultSelected=!0)}}else{for(var M=ma(ps(i)),G=null,H=0;H<m.length;H++){if(m[H].value===M){m[H].selected=!0,u&&(m[H].defaultSelected=!0);return}G===null&&!m[H].disabled&&(G=m[H])}G!==null&&(G.selected=!0)}}function Hm(e,t){return Ct({},t,{value:void 0})}function D2(e,t){var i=e;G6(t),i._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!yd&&(f("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),yd=!0)}function W6(e,t){var i=e;i.multiple=!!t.multiple;var u=t.value;u!=null?gs(i,!!t.multiple,u,!1):t.defaultValue!=null&&gs(i,!!t.multiple,t.defaultValue,!0)}function Q6(e,t){var i=e,u=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!t.multiple;var m=t.value;m!=null?gs(i,!!t.multiple,m,!1):u!==!!t.multiple&&(t.defaultValue!=null?gs(i,!!t.multiple,t.defaultValue,!0):gs(i,!!t.multiple,t.multiple?[]:"",!1))}function Y6(e,t){var i=e,u=t.value;u!=null&&gs(i,!!t.multiple,u,!1)}var qm=!1;function Gm(e,t){var i=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var u=Ct({},t,{value:void 0,defaultValue:void 0,children:ma(i._wrapperState.initialValue)});return u}function U2(e,t){var i=e;fl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!qm&&(f("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",wr()||"A component"),qm=!0);var u=t.value;if(u==null){var m=t.children,g=t.defaultValue;if(m!=null){f("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jn(m)){if(m.length>1)throw new Error("<textarea> can only have at most one child.");m=m[0]}g=m}}g==null&&(g=""),u=g}i._wrapperState={initialValue:ps(u)}}function F2(e,t){var i=e,u=ps(t.value),m=ps(t.defaultValue);if(u!=null){var g=ma(u);g!==i.value&&(i.value=g),t.defaultValue==null&&i.defaultValue!==g&&(i.defaultValue=g)}m!=null&&(i.defaultValue=ma(m))}function V2(e,t){var i=e,u=i.textContent;u===i._wrapperState.initialValue&&u!==""&&u!==null&&(i.value=u)}function Wm(e,t){F2(e,t)}var Uo="http://www.w3.org/1999/xhtml",K6="http://www.w3.org/1998/Math/MathML",Qm="http://www.w3.org/2000/svg";function vd(e){switch(e){case"svg":return Qm;case"math":return K6;default:return Uo}}function Ym(e,t){return e==null||e===Uo?vd(t):e===Qm&&t==="foreignObject"?Uo:e}var Z6=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,u,m){MSApp.execUnsafeLocalFunction(function(){return e(t,i,u,m)})}:e},Td,j2=Z6(function(e,t){if(e.namespaceURI===Qm&&!("innerHTML"in e)){Td=Td||document.createElement("div"),Td.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var i=Td.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;i.firstChild;)e.appendChild(i.firstChild);return}e.innerHTML=t}),Ba=1,Fo=3,kn=8,Jr=9,ii=11,bd=function(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===Fo){i.nodeValue=t;return}}e.textContent=t},B2={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},yl={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};function $2(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var z2=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){z2.forEach(function(t){yl[$2(t,e)]=yl[e]})});function kd(e,t,i){var u=t==null||typeof t=="boolean"||t==="";return u?"":!i&&typeof t=="number"&&t!==0&&!(yl.hasOwnProperty(e)&&yl[e])?t+"px":(mo(t,e),(""+t).trim())}var vl=/([A-Z])/g,X6=/^ms-/;function J6(e){return e.replace(vl,"-$1").toLowerCase().replace(X6,"-ms-")}var H2=function(){};{var q2=/^(?:webkit|moz|o)[A-Z]/,G2=/^-ms-/,zu=/-(.)/g,Tl=/;\s*$/,bl={},kl={},W2=!1,Km=!1,Zm=function(e){return e.replace(zu,function(t,i){return i.toUpperCase()})},Xm=function(e){bl.hasOwnProperty(e)&&bl[e]||(bl[e]=!0,f("Unsupported style property %s. Did you mean %s?",e,Zm(e.replace(G2,"ms-"))))},Q2=function(e){bl.hasOwnProperty(e)&&bl[e]||(bl[e]=!0,f("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},Y2=function(e,t){kl.hasOwnProperty(t)&&kl[t]||(kl[t]=!0,f(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Tl,"")))},K2=function(e,t){W2||(W2=!0,f("`NaN` is an invalid value for the `%s` css style property.",e))},e4=function(e,t){Km||(Km=!0,f("`Infinity` is an invalid value for the `%s` css style property.",e))};H2=function(e,t){e.indexOf("-")>-1?Xm(e):q2.test(e)?Q2(e):Tl.test(t)&&Y2(e,t),typeof t=="number"&&(isNaN(t)?K2(e,t):isFinite(t)||e4(e,t))}}var t4=H2;function n4(e){{var t="",i="";for(var u in e)if(e.hasOwnProperty(u)){var m=e[u];if(m!=null){var g=u.indexOf("--")===0;t+=i+(g?u:J6(u))+":",t+=kd(u,m,g),i=";"}}return t||null}}function Z2(e,t){var i=e.style;for(var u in t)if(t.hasOwnProperty(u)){var m=u.indexOf("--")===0;m||t4(u,t[u]);var g=kd(u,t[u],m);u==="float"&&(u="cssFloat"),m?i.setProperty(u,g):i[u]=g}}function a4(e){return e==null||typeof e=="boolean"||e===""}function Cr(e){var t={};for(var i in e)for(var u=B2[i]||[i],m=0;m<u.length;m++)t[u[m]]=i;return t}function Hu(e,t){{if(!t)return;var i=Cr(e),u=Cr(t),m={};for(var g in i){var T=i[g],E=u[g];if(E&&T!==E){var I=T+","+E;if(m[I])continue;m[I]=!0,f("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",a4(e[T])?"Removing":"Updating",T,E)}}}}var X2={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},J2=Ct({menuitem:!0},X2),ep="__html";function Sd(e,t){if(t){if(J2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(ep in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&f("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Vo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 wd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},tp={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},eo={},Jm=new RegExp("^(aria)-["+vt+"]*$"),qu=new RegExp("^(aria)[A-Z]["+vt+"]*$");function ef(e,t){{if(nn.call(eo,t)&&eo[t])return!0;if(qu.test(t)){var i="aria-"+t.slice(4).toLowerCase(),u=tp.hasOwnProperty(i)?i:null;if(u==null)return f("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),eo[t]=!0,!0;if(t!==u)return f("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,u),eo[t]=!0,!0}if(Jm.test(t)){var m=t.toLowerCase(),g=tp.hasOwnProperty(m)?m:null;if(g==null)return eo[t]=!0,!1;if(t!==g)return f("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,g),eo[t]=!0,!0}}return!0}function np(e,t){{var i=[];for(var u in t){var m=ef(e,u);m||i.push(u)}var g=i.map(function(T){return"`"+T+"`"}).join(", ");i.length===1?f("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e):i.length>1&&f("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e)}}function Cd(e,t){Vo(e,t)||np(e,t)}var li=!1;function tf(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!li&&(li=!0,e==="select"&&t.multiple?f("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):f("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var nf=function(){};{var Bn={},af=/^on./,ap=/^on[^A-Z]/,rp=new RegExp("^(aria)-["+vt+"]*$"),op=new RegExp("^(aria)[A-Z]["+vt+"]*$");nf=function(e,t,i,u){if(nn.call(Bn,t)&&Bn[t])return!0;var m=t.toLowerCase();if(m==="onfocusin"||m==="onfocusout")return f("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Bn[t]=!0,!0;if(u!=null){var g=u.registrationNameDependencies,T=u.possibleRegistrationNames;if(g.hasOwnProperty(t))return!0;var E=T.hasOwnProperty(m)?T[m]:null;if(E!=null)return f("Invalid event handler property `%s`. Did you mean `%s`?",t,E),Bn[t]=!0,!0;if(af.test(t))return f("Unknown event handler property `%s`. It will be ignored.",t),Bn[t]=!0,!0}else if(af.test(t))return ap.test(t)&&f("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Bn[t]=!0,!0;if(rp.test(t)||op.test(t))return!0;if(m==="innerhtml")return f("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Bn[t]=!0,!0;if(m==="aria")return f("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Bn[t]=!0,!0;if(m==="is"&&i!==null&&i!==void 0&&typeof i!="string")return f("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof i),Bn[t]=!0,!0;if(typeof i=="number"&&isNaN(i))return f("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Bn[t]=!0,!0;var I=Nu(t),A=I!==null&&I.type===ni;if(wd.hasOwnProperty(m)){var M=wd[m];if(M!==t)return f("Invalid DOM property `%s`. Did you mean `%s`?",t,M),Bn[t]=!0,!0}else if(!A&&t!==m)return f("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,m),Bn[t]=!0,!0;return typeof i=="boolean"&&vn(t,i,I,!1)?(i?f('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',i,t,t,i,t):f('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',i,t,t,i,t,t,t),Bn[t]=!0,!0):A?!0:vn(t,i,I,!1)?(Bn[t]=!0,!1):((i==="false"||i==="true")&&I!==null&&I.type===ar&&(f("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",i,t,i==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,i),Bn[t]=!0),!0)}}var sp=function(e,t,i){{var u=[];for(var m in t){var g=nf(e,m,t[m],i);g||u.push(m)}var T=u.map(function(E){return"`"+E+"`"}).join(", ");u.length===1?f("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",T,e):u.length>1&&f("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",T,e)}};function ip(e,t,i){Vo(e,t)||sp(e,t,i)}var jo=1,Gu=2,ui=4,r4=jo|Gu|ui,Wu=null;function Qu(e){Wu!==null&&f("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Wu=e}function o4(){Wu===null&&f("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Wu=null}function lp(e){return e===Wu}function Ed(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Fo?t.parentNode:t}var Ht=null,ys=null,Bo=null;function Sl(e){var t=Jl(e);if(t){if(typeof Ht!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var i=t.stateNode;if(i){var u=d3(i);Ht(t.stateNode,t.type,u)}}}function up(e){Ht=e}function _d(e){ys?Bo?Bo.push(e):Bo=[e]:ys=e}function Yu(){return ys!==null||Bo!==null}function Ku(){if(ys){var e=ys,t=Bo;if(ys=null,Bo=null,Sl(e),t)for(var i=0;i<t.length;i++)Sl(t[i])}}var ci=function(e,t){return e(t)},rf=function(){},of=!1;function s4(){var e=Yu();e&&(rf(),Ku())}function sf(e,t,i){if(of)return e(t,i);of=!0;try{return ci(e,t,i)}finally{of=!1,s4()}}function Id(e,t,i){ci=e,rf=i}function Nd(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function lf(e,t,i){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(i.disabled&&Nd(t));default:return!1}}function di(e,t){var i=e.stateNode;if(i===null)return null;var u=d3(i);if(u===null)return null;var m=u[t];if(lf(t,e.type,u))return null;if(m&&typeof m!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof m+"` type.");return m}var Zu=!1;if(qt)try{var mi={};Object.defineProperty(mi,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",mi,mi),window.removeEventListener("test",mi,mi)}catch{Zu=!1}function cp(e,t,i,u,m,g,T,E,I){var A=Array.prototype.slice.call(arguments,3);try{t.apply(i,A)}catch(M){this.onError(M)}}var uf=cp;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var cf=document.createElement("react");uf=function(e,t,i,u,m,g,T,E,I){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var A=document.createEvent("Event"),M=!1,G=!0,H=window.event,ne=Object.getOwnPropertyDescriptor(window,"event");function oe(){cf.removeEventListener(X,Ie,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=H)}var ue=Array.prototype.slice.call(arguments,3);function Ie(){M=!0,oe(),t.apply(i,ue),G=!1}var qe,Je=!1,kt=!1;function Tt(le){if(qe=le.error,Je=!0,qe===null&&le.colno===0&&le.lineno===0&&(kt=!0),le.defaultPrevented&&qe!=null&&typeof qe=="object")try{qe._suppressLogging=!0}catch{}}var X="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",Tt),cf.addEventListener(X,Ie,!1),A.initEvent(X,!1,!1),cf.dispatchEvent(A),ne&&Object.defineProperty(window,"event",ne),M&&G&&(Je?kt&&(qe=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):qe=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(qe)),window.removeEventListener("error",Tt),!M)return oe(),cp.apply(this,arguments)}}var i4=uf,vs=!1,to=null,Xu=!1,Ts=null,ho={onError:function(e){vs=!0,to=e}};function fi(e,t,i,u,m,g,T,E,I){vs=!1,to=null,i4.apply(ho,arguments)}function $o(e,t,i,u,m,g,T,E,I){if(fi.apply(this,arguments),vs){var A=mf();Xu||(Xu=!0,Ts=A)}}function df(){if(Xu){var e=Ts;throw Xu=!1,Ts=null,e}}function l4(){return vs}function mf(){if(vs){var e=to;return vs=!1,to=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Er(e){return e._reactInternals}function Ju(e){return e._reactInternals!==void 0}function wl(e,t){e._reactInternals=t}var Ze=0,bs=1,Kt=2,ht=4,Pt=16,Mt=32,go=64,at=128,dn=256,$a=512,_r=1024,Jt=2048,Ir=4096,ks=8192,ec=16384,Rd=Jt|ht|go|$a|_r|ec,dp=32767,or=32768,$n=65536,tc=131072,ff=1048576,pf=2097152,za=4194304,Ss=8388608,Ha=16777216,pi=33554432,Cl=ht|_r|0,qa=Kt|ht|Pt|Mt|$a|Ir|ks,fa=ht|go|$a|ks,Nr=Jt|Pt,Yn=za|Ss|pf,zo=o.ReactCurrentOwner;function sr(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{var u=t;do t=u,(t.flags&(Kt|Ir))!==Ze&&(i=t.return),u=t.return;while(u)}return t.tag===N?i:null}function hf(e){if(e.tag===te){var t=e.memoizedState;if(t===null){var i=e.alternate;i!==null&&(t=i.memoizedState)}if(t!==null)return t.dehydrated}return null}function Od(e){return e.tag===N?e.stateNode.containerInfo:null}function gf(e){return sr(e)===e}function ir(e){{var t=zo.current;if(t!==null&&t.tag===C){var i=t,u=i.stateNode;u._warnedAboutRefsInRender||f("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ft(i)||"A component"),u._warnedAboutRefsInRender=!0}}var m=Er(e);return m?sr(m)===m:!1}function Ga(e){if(sr(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Zt(e){var t=e.alternate;if(!t){var i=sr(e);if(i===null)throw new Error("Unable to find node on an unmounted component.");return i!==e?null:e}for(var u=e,m=t;;){var g=u.return;if(g===null)break;var T=g.alternate;if(T===null){var E=g.return;if(E!==null){u=m=E;continue}break}if(g.child===T.child){for(var I=g.child;I;){if(I===u)return Ga(g),e;if(I===m)return Ga(g),t;I=I.sibling}throw new Error("Unable to find node on an unmounted component.")}if(u.return!==m.return)u=g,m=T;else{for(var A=!1,M=g.child;M;){if(M===u){A=!0,u=g,m=T;break}if(M===m){A=!0,m=g,u=T;break}M=M.sibling}if(!A){for(M=T.child;M;){if(M===u){A=!0,u=T,m=g;break}if(M===m){A=!0,m=T,u=g;break}M=M.sibling}if(!A)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(u.alternate!==m)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(u.tag!==N)throw new Error("Unable to find node on an unmounted component.");return u.stateNode.current===u?e:t}function Rr(e){var t=Zt(e);return t!==null?yf(t):null}function yf(e){if(e.tag===L||e.tag===x)return e;for(var t=e.child;t!==null;){var i=yf(t);if(i!==null)return i;t=t.sibling}return null}function mp(e){var t=Zt(e);return t!==null?Ld(t):null}function Ld(e){if(e.tag===L||e.tag===x)return e;for(var t=e.child;t!==null;){if(t.tag!==O){var i=Ld(t);if(i!==null)return i}t=t.sibling}return null}var Ad=a.unstable_scheduleCallback,fp=a.unstable_cancelCallback,xd=a.unstable_shouldYield,pp=a.unstable_requestPaint,an=a.unstable_now,vf=a.unstable_getCurrentPriorityLevel,Pd=a.unstable_ImmediatePriority,hi=a.unstable_UserBlockingPriority,yo=a.unstable_NormalPriority,hp=a.unstable_LowPriority,Md=a.unstable_IdlePriority,El=a.unstable_yieldValue,gp=a.unstable_setDisableYieldValue,Ho=null,Ln=null,Ee=null,Or=!1,lr=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Tf(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return f("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{We&&(e=Ct({},e,{getLaneLabelMap:qo,injectProfilingHooks:yp})),Ho=t.inject(e),Ln=t}catch(i){f("React instrumentation encountered an error: %s.",i)}return!!t.checkDCE}function bf(e,t){if(Ln&&typeof Ln.onScheduleFiberRoot=="function")try{Ln.onScheduleFiberRoot(Ho,e,t)}catch(i){Or||(Or=!0,f("React instrumentation encountered an error: %s",i))}}function _l(e,t){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{var i=(e.current.flags&at)===at;if(gt){var u;switch(t){case ga:u=Pd;break;case Zn:u=hi;break;case Wo:u=yo;break;case mc:u=Md;break;default:u=yo;break}Ln.onCommitFiberRoot(Ho,e,u,i)}}catch(m){Or||(Or=!0,f("React instrumentation encountered an error: %s",m))}}function Lr(e){if(Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Ho,e)}catch(t){Or||(Or=!0,f("React instrumentation encountered an error: %s",t))}}function gi(e){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Ho,e)}catch(t){Or||(Or=!0,f("React instrumentation encountered an error: %s",t))}}function Sn(e){if(typeof El=="function"&&(gp(e),c(e)),Ln&&typeof Ln.setStrictMode=="function")try{Ln.setStrictMode(Ho,e)}catch(t){Or||(Or=!0,f("React instrumentation encountered an error: %s",t))}}function yp(e){Ee=e}function qo(){{for(var e=new Map,t=1,i=0;i<sc;i++){var u=c4(t);e.set(t,u),t*=2}return e}}function ws(e){Ee!==null&&typeof Ee.markCommitStarted=="function"&&Ee.markCommitStarted(e)}function Dd(){Ee!==null&&typeof Ee.markCommitStopped=="function"&&Ee.markCommitStopped()}function Il(e){Ee!==null&&typeof Ee.markComponentRenderStarted=="function"&&Ee.markComponentRenderStarted(e)}function Wa(){Ee!==null&&typeof Ee.markComponentRenderStopped=="function"&&Ee.markComponentRenderStopped()}function Cs(e){Ee!==null&&typeof Ee.markComponentPassiveEffectMountStarted=="function"&&Ee.markComponentPassiveEffectMountStarted(e)}function Ud(){Ee!==null&&typeof Ee.markComponentPassiveEffectMountStopped=="function"&&Ee.markComponentPassiveEffectMountStopped()}function vp(e){Ee!==null&&typeof Ee.markComponentPassiveEffectUnmountStarted=="function"&&Ee.markComponentPassiveEffectUnmountStarted(e)}function Fd(){Ee!==null&&typeof Ee.markComponentPassiveEffectUnmountStopped=="function"&&Ee.markComponentPassiveEffectUnmountStopped()}function Tp(e){Ee!==null&&typeof Ee.markComponentLayoutEffectMountStarted=="function"&&Ee.markComponentLayoutEffectMountStarted(e)}function nc(){Ee!==null&&typeof Ee.markComponentLayoutEffectMountStopped=="function"&&Ee.markComponentLayoutEffectMountStopped()}function no(e){Ee!==null&&typeof Ee.markComponentLayoutEffectUnmountStarted=="function"&&Ee.markComponentLayoutEffectUnmountStarted(e)}function Nl(){Ee!==null&&typeof Ee.markComponentLayoutEffectUnmountStopped=="function"&&Ee.markComponentLayoutEffectUnmountStopped()}function ac(e,t,i){Ee!==null&&typeof Ee.markComponentErrored=="function"&&Ee.markComponentErrored(e,t,i)}function yi(e,t,i){Ee!==null&&typeof Ee.markComponentSuspended=="function"&&Ee.markComponentSuspended(e,t,i)}function kf(e){Ee!==null&&typeof Ee.markLayoutEffectsStarted=="function"&&Ee.markLayoutEffectsStarted(e)}function Rl(){Ee!==null&&typeof Ee.markLayoutEffectsStopped=="function"&&Ee.markLayoutEffectsStopped()}function bp(e){Ee!==null&&typeof Ee.markPassiveEffectsStarted=="function"&&Ee.markPassiveEffectsStarted(e)}function Sf(){Ee!==null&&typeof Ee.markPassiveEffectsStopped=="function"&&Ee.markPassiveEffectsStopped()}function en(e){Ee!==null&&typeof Ee.markRenderStarted=="function"&&Ee.markRenderStarted(e)}function Vd(){Ee!==null&&typeof Ee.markRenderYielded=="function"&&Ee.markRenderYielded()}function jd(){Ee!==null&&typeof Ee.markRenderStopped=="function"&&Ee.markRenderStopped()}function wf(e){Ee!==null&&typeof Ee.markRenderScheduled=="function"&&Ee.markRenderScheduled(e)}function Bd(e,t){Ee!==null&&typeof Ee.markForceUpdateScheduled=="function"&&Ee.markForceUpdateScheduled(e,t)}function rc(e,t){Ee!==null&&typeof Ee.markStateUpdateScheduled=="function"&&Ee.markStateUpdateScheduled(e,t)}var $e=0,ze=1,rt=2,bt=8,ur=16,Ol=Math.clz32?Math.clz32:pa,oc=Math.log,u4=Math.LN2;function pa(e){var t=e>>>0;return t===0?32:31-(oc(t)/u4|0)|0}var sc=31,fe=0,wn=0,Qe=1,Kn=2,cr=4,Go=8,Ar=16,Ll=32,vi=4194240,Al=64,$d=128,zd=256,Hd=512,qd=1024,Gd=2048,Ti=4096,Wd=8192,xl=16384,Pl=32768,Qd=65536,ic=131072,Yd=262144,Kd=524288,Zd=1048576,Xd=2097152,Ml=130023424,bi=4194304,Jd=8388608,e1=16777216,Cf=33554432,t1=67108864,kp=bi,lc=134217728,Ef=268435455,Dl=268435456,Es=536870912,ha=1073741824;function c4(e){{if(e&Qe)return"Sync";if(e&Kn)return"InputContinuousHydration";if(e&cr)return"InputContinuous";if(e&Go)return"DefaultHydration";if(e&Ar)return"Default";if(e&Ll)return"TransitionHydration";if(e&vi)return"Transition";if(e&Ml)return"Retry";if(e&lc)return"SelectiveHydration";if(e&Dl)return"IdleHydration";if(e&Es)return"Idle";if(e&ha)return"Offscreen"}}var Wt=-1,n1=Al,Qa=bi;function ki(e){switch(pn(e)){case Qe:return Qe;case Kn:return Kn;case cr:return cr;case Go:return Go;case Ar:return Ar;case Ll:return Ll;case Al:case $d:case zd:case Hd:case qd:case Gd:case Ti:case Wd:case xl:case Pl:case Qd:case ic:case Yd:case Kd:case Zd:case Xd:return e&vi;case bi:case Jd:case e1:case Cf:case t1:return e&Ml;case lc:return lc;case Dl:return Dl;case Es:return Es;case ha:return ha;default:return f("Should have found matching lanes. This is a bug in React."),e}}function Si(e,t){var i=e.pendingLanes;if(i===fe)return fe;var u=fe,m=e.suspendedLanes,g=e.pingedLanes,T=i&Ef;if(T!==fe){var E=T&~m;if(E!==fe)u=ki(E);else{var I=T&g;I!==fe&&(u=ki(I))}}else{var A=i&~m;A!==fe?u=ki(A):g!==fe&&(u=ki(g))}if(u===fe)return fe;if(t!==fe&&t!==u&&(t&m)===fe){var M=pn(u),G=pn(t);if(M>=G||M===Ar&&(G&vi)!==fe)return t}(u&cr)!==fe&&(u|=i&Ar);var H=e.entangledLanes;if(H!==fe)for(var ne=e.entanglements,oe=u&H;oe>0;){var ue=Is(oe),Ie=1<<ue;u|=ne[ue],oe&=~Ie}return u}function Sp(e,t){for(var i=e.eventTimes,u=Wt;t>0;){var m=Is(t),g=1<<m,T=i[m];T>u&&(u=T),t&=~g}return u}function wp(e,t){switch(e){case Qe:case Kn:case cr:return t+250;case Go:case Ar:case Ll:case Al:case $d:case zd:case Hd:case qd:case Gd:case Ti:case Wd:case xl:case Pl:case Qd:case ic:case Yd:case Kd:case Zd:case Xd:return t+5e3;case bi:case Jd:case e1:case Cf:case t1:return Wt;case lc:case Dl:case Es:case ha:return Wt;default:return f("Should have found matching lanes. This is a bug in React."),Wt}}function Cp(e,t){for(var i=e.pendingLanes,u=e.suspendedLanes,m=e.pingedLanes,g=e.expirationTimes,T=i;T>0;){var E=Is(T),I=1<<E,A=g[E];A===Wt?((I&u)===fe||(I&m)!==fe)&&(g[E]=wp(I,t)):A<=t&&(e.expiredLanes|=I),T&=~I}}function _f(e){return ki(e.pendingLanes)}function _s(e){var t=e.pendingLanes&~ha;return t!==fe?t:t&ha?ha:fe}function If(e){return(e&Qe)!==fe}function uc(e){return(e&Ef)!==fe}function Ep(e){return(e&Ml)===e}function _p(e){var t=Qe|cr|Ar;return(e&t)===fe}function Ip(e){return(e&vi)===e}function cc(e,t){var i=Kn|cr|Go|Ar;return(t&i)!==fe}function Np(e,t){return(t&e.expiredLanes)!==fe}function Nf(e){return(e&vi)!==fe}function Rp(){var e=n1;return n1<<=1,(n1&vi)===fe&&(n1=Al),e}function Ya(){var e=Qa;return Qa<<=1,(Qa&Ml)===fe&&(Qa=bi),e}function pn(e){return e&-e}function Ul(e){return pn(e)}function Is(e){return 31-Ol(e)}function a1(e){return Is(e)}function Ka(e,t){return(e&t)!==fe}function wi(e,t){return(e&t)===t}function pt(e,t){return e|t}function dc(e,t){return e&~t}function r1(e,t){return e&t}function Op(e,t){return e!==wn&&e<t?e:t}function o1(e){for(var t=[],i=0;i<sc;i++)t.push(e);return t}function Ci(e,t,i){e.pendingLanes|=t,t!==Es&&(e.suspendedLanes=fe,e.pingedLanes=fe);var u=e.eventTimes,m=a1(t);u[m]=i}function Rf(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var i=e.expirationTimes,u=t;u>0;){var m=Is(u),g=1<<m;i[m]=Wt,u&=~g}}function Of(e,t,i){e.pingedLanes|=e.suspendedLanes&t}function Lf(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=fe,e.pingedLanes=fe,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var u=e.entanglements,m=e.eventTimes,g=e.expirationTimes,T=i;T>0;){var E=Is(T),I=1<<E;u[E]=fe,m[E]=Wt,g[E]=Wt,T&=~I}}function Fl(e,t){for(var i=e.entangledLanes|=t,u=e.entanglements,m=i;m;){var g=Is(m),T=1<<g;T&t|u[g]&t&&(u[g]|=t),m&=~T}}function d4(e,t){var i=pn(t),u;switch(i){case cr:u=Kn;break;case Ar:u=Go;break;case Al:case $d:case zd:case Hd:case qd:case Gd:case Ti:case Wd:case xl:case Pl:case Qd:case ic:case Yd:case Kd:case Zd:case Xd:case bi:case Jd:case e1:case Cf:case t1:u=Ll;break;case Es:u=Dl;break;default:u=wn;break}return(u&(e.suspendedLanes|t))!==wn?wn:u}function Af(e,t,i){if(lr)for(var u=e.pendingUpdatersLaneMap;i>0;){var m=a1(i),g=1<<m,T=u[m];T.add(t),i&=~g}}function s1(e,t){if(lr)for(var i=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;t>0;){var m=a1(t),g=1<<m,T=i[m];T.size>0&&(T.forEach(function(E){var I=E.alternate;(I===null||!u.has(I))&&u.add(E)}),T.clear()),t&=~g}}function xf(e,t){return null}var ga=Qe,Zn=cr,Wo=Ar,mc=Es,Ei=wn;function xr(){return Ei}function An(e){Ei=e}function fc(e,t){var i=Ei;try{return Ei=e,t()}finally{Ei=i}}function ya(e,t){return e!==0&&e<t?e:t}function m4(e,t){return e>t?e:t}function Pf(e,t){return e!==0&&e<t}function pc(e){var t=pn(e);return Pf(ga,t)?Pf(Zn,t)?uc(t)?Wo:mc:Zn:ga}function xn(e){var t=e.current.memoizedState;return t.isDehydrated}var Lp;function Me(e){Lp=e}function Vl(e){Lp(e)}var i1;function Ap(e){i1=e}var xp;function hc(e){xp=e}var gc;function Mf(e){gc=e}var Df;function Pp(e){Df=e}var l1=!1,jl=[],vo=null,tn=null,zn=null,Pr=new Map,Bl=new Map,Qo=[],ao=["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"];function Mp(e){return ao.indexOf(e)>-1}function To(e,t,i,u,m){return{blockedOn:e,domEventName:t,eventSystemFlags:i,nativeEvent:m,targetContainers:[u]}}function Dp(e,t){switch(e){case"focusin":case"focusout":vo=null;break;case"dragenter":case"dragleave":tn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":{var i=t.pointerId;Pr.delete(i);break}case"gotpointercapture":case"lostpointercapture":{var u=t.pointerId;Bl.delete(u);break}}}function $l(e,t,i,u,m,g){if(e===null||e.nativeEvent!==g){var T=To(t,i,u,m,g);if(t!==null){var E=Jl(t);E!==null&&i1(E)}return T}e.eventSystemFlags|=u;var I=e.targetContainers;return m!==null&&I.indexOf(m)===-1&&I.push(m),e}function Up(e,t,i,u,m){switch(t){case"focusin":{var g=m;return vo=$l(vo,e,t,i,u,g),!0}case"dragenter":{var T=m;return tn=$l(tn,e,t,i,u,T),!0}case"mouseover":{var E=m;return zn=$l(zn,e,t,i,u,E),!0}case"pointerover":{var I=m,A=I.pointerId;return Pr.set(A,$l(Pr.get(A)||null,e,t,i,u,I)),!0}case"gotpointercapture":{var M=m,G=M.pointerId;return Bl.set(G,$l(Bl.get(G)||null,e,t,i,u,M)),!0}}return!1}function Uf(e){var t=Ec(e.target);if(t!==null){var i=sr(t);if(i!==null){var u=i.tag;if(u===te){var m=hf(i);if(m!==null){e.blockedOn=m,Df(e.priority,function(){xp(i)});return}}else if(u===N){var g=i.stateNode;if(xn(g)){e.blockedOn=Od(i);return}}}}e.blockedOn=null}function Fp(e){for(var t=gc(),i={blockedOn:null,target:e,priority:t},u=0;u<Qo.length&&Pf(t,Qo[u].priority);u++);Qo.splice(u,0,i),u===0&&Uf(i)}function u1(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var i=t[0],u=_i(e.domEventName,e.eventSystemFlags,i,e.nativeEvent);if(u===null){var m=e.nativeEvent,g=new m.constructor(m.type,m);Qu(g),m.target.dispatchEvent(g),o4()}else{var T=Jl(u);return T!==null&&i1(T),e.blockedOn=u,!1}t.shift()}return!0}function yc(e,t,i){u1(e)&&i.delete(t)}function Ff(){l1=!1,vo!==null&&u1(vo)&&(vo=null),tn!==null&&u1(tn)&&(tn=null),zn!==null&&u1(zn)&&(zn=null),Pr.forEach(yc),Bl.forEach(yc)}function va(e,t){e.blockedOn===t&&(e.blockedOn=null,l1||(l1=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ff)))}function Et(e){if(jl.length>0){va(jl[0],e);for(var t=1;t<jl.length;t++){var i=jl[t];i.blockedOn===e&&(i.blockedOn=null)}}vo!==null&&va(vo,e),tn!==null&&va(tn,e),zn!==null&&va(zn,e);var u=function(E){return va(E,e)};Pr.forEach(u),Bl.forEach(u);for(var m=0;m<Qo.length;m++){var g=Qo[m];g.blockedOn===e&&(g.blockedOn=null)}for(;Qo.length>0;){var T=Qo[0];if(T.blockedOn!==null)break;Uf(T),T.blockedOn===null&&Qo.shift()}}var rn=o.ReactCurrentBatchConfig,mn=!0;function Hn(e){mn=!!e}function dr(){return mn}function zl(e,t,i){var u=_a(t),m;switch(u){case ga:m=Pn;break;case Zn:m=vc;break;case Wo:default:m=Yo;break}return m.bind(null,t,i,e)}function Pn(e,t,i,u){var m=xr(),g=rn.transition;rn.transition=null;try{An(ga),Yo(e,t,i,u)}finally{An(m),rn.transition=g}}function vc(e,t,i,u){var m=xr(),g=rn.transition;rn.transition=null;try{An(Zn),Yo(e,t,i,u)}finally{An(m),rn.transition=g}}function Yo(e,t,i,u){mn&&c1(e,t,i,u)}function c1(e,t,i,u){var m=_i(e,t,i,u);if(m===null){A4(e,t,u,Hl,i),Dp(e,u);return}if(Up(m,e,t,i,u)){u.stopPropagation();return}if(Dp(e,u),t&ui&&Mp(e)){for(;m!==null;){var g=Jl(m);g!==null&&Vl(g);var T=_i(e,t,i,u);if(T===null&&A4(e,t,u,Hl,i),T===m)break;m=T}m!==null&&u.stopPropagation();return}A4(e,t,u,null,i)}var Hl=null;function _i(e,t,i,u){Hl=null;var m=Ed(u),g=Ec(m);if(g!==null){var T=sr(g);if(T===null)g=null;else{var E=T.tag;if(E===te){var I=hf(T);if(I!==null)return I;g=null}else if(E===N){var A=T.stateNode;if(xn(A))return Od(T);g=null}else T!==g&&(g=null)}}return Hl=g,null}function _a(e){switch(e){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 ga;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 Zn;case"message":{var t=vf();switch(t){case Pd:return ga;case hi:return Zn;case yo:case hp:return Wo;case Md:return mc;default:return Wo}}default:return Wo}}function Vf(e,t,i){return e.addEventListener(t,i,!1),i}function ql(e,t,i){return e.addEventListener(t,i,!0),i}function Ko(e,t,i,u){return e.addEventListener(t,i,{capture:!0,passive:u}),i}function d1(e,t,i,u){return e.addEventListener(t,i,{passive:u}),i}var Ii=null,bo=null,Ns=null;function Rs(e){return Ii=e,bo=f1(),!0}function m1(){Ii=null,bo=null,Ns=null}function Gl(){if(Ns)return Ns;var e,t=bo,i=t.length,u,m=f1(),g=m.length;for(e=0;e<i&&t[e]===m[e];e++);var T=i-e;for(u=1;u<=T&&t[i-u]===m[g-u];u++);var E=u>1?1-u:void 0;return Ns=m.slice(e,E),Ns}function f1(){return"value"in Ii?Ii.value:Ii.textContent}function Ni(e){var t,i=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),t>=32||t===13?t:0}function Ri(){return!0}function Ta(){return!1}function Cn(e){function t(i,u,m,g,T){this._reactName=i,this._targetInst=m,this.type=u,this.nativeEvent=g,this.target=T,this.currentTarget=null;for(var E in e)if(e.hasOwnProperty(E)){var I=e[E];I?this[E]=I(g):this[E]=g[E]}var A=g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1;return A?this.isDefaultPrevented=Ri:this.isDefaultPrevented=Ta,this.isPropagationStopped=Ta,this}return Ct(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ri)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ka=Cn(ba),Wl=Ct({},ba,{view:0,detail:0}),jf=Cn(Wl),Tc,Bf,Mr;function Vp(e){e!==Mr&&(Mr&&e.type==="mousemove"?(Tc=e.screenX-Mr.screenX,Bf=e.screenY-Mr.screenY):(Tc=0,Bf=0),Mr=e)}var Ql=Ct({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:g1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(Vp(e),Tc)},movementY:function(e){return"movementY"in e?e.movementY:Bf}}),Os=Cn(Ql),$f=Ct({},Ql,{dataTransfer:0}),Oi=Cn($f),jp=Ct({},Wl,{relatedTarget:0}),p1=Cn(jp),zf=Ct({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),h1=Cn(zf),f4=Ct({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),p4=Cn(f4),Bp=Ct({},ba,{data:0}),Hf=Cn(Bp),Li=Hf,h4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yl={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"};function $p(e){if(e.key){var t=h4[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var i=Ni(e);return i===13?"Enter":String.fromCharCode(i)}return e.type==="keydown"||e.type==="keyup"?Yl[e.keyCode]||"Unidentified":""}var fn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g4(e){var t=this,i=t.nativeEvent;if(i.getModifierState)return i.getModifierState(e);var u=fn[e];return u?!!i[u]:!1}function g1(e){return g4}var y4=Ct({},Wl,{key:$p,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:g1,charCode:function(e){return e.type==="keypress"?Ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),v4=Cn(y4),zp=Ct({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qf=Cn(zp),T4=Ct({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:g1}),Dr=Cn(T4),Gf=Ct({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),b4=Cn(Gf),Ls=Ct({},Ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),y1=Cn(Ls),Ai=[9,13,27,32],bc=229,kc=qt&&"CompositionEvent"in window,xi=null;qt&&"documentMode"in document&&(xi=document.documentMode);var k4=qt&&"TextEvent"in window&&!xi,v1=qt&&(!kc||xi&&xi>8&&xi<=11),Hp=32,Wf=String.fromCharCode(Hp);function qp(){Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Yt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Yt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Sc=!1;function T1(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function Gp(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function Qf(e,t){return e==="keydown"&&t.keyCode===bc}function Wp(e,t){switch(e){case"keyup":return Ai.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==bc;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yf(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function b1(e){return e.locale==="ko"}var Zo=!1;function Kf(e,t,i,u,m){var g,T;if(kc?g=Gp(t):Zo?Wp(t,u)&&(g="onCompositionEnd"):Qf(t,u)&&(g="onCompositionStart"),!g)return null;v1&&!b1(u)&&(!Zo&&g==="onCompositionStart"?Zo=Rs(m):g==="onCompositionEnd"&&Zo&&(T=Gl()));var E=Xp(i,g);if(E.length>0){var I=new Hf(g,t,null,u,m);if(e.push({event:I,listeners:E}),T)I.data=T;else{var A=Yf(u);A!==null&&(I.data=A)}}}function k1(e,t){switch(e){case"compositionend":return Yf(t);case"keypress":var i=t.which;return i!==Hp?null:(Sc=!0,Wf);case"textInput":var u=t.data;return u===Wf&&Sc?null:u;default:return null}}function Qp(e,t){if(Zo){if(e==="compositionend"||!kc&&Wp(e,t)){var i=Gl();return m1(),Zo=!1,i}return null}switch(e){case"paste":return null;case"keypress":if(!T1(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return v1&&!b1(t)?null:t.data;default:return null}}function S4(e,t,i,u,m){var g;if(k4?g=k1(t,u):g=Qp(t,u),!g)return null;var T=Xp(i,"onBeforeInput");if(T.length>0){var E=new Li("onBeforeInput","beforeinput",null,u,m);e.push({event:E,listeners:T}),E.data=g}}function S1(e,t,i,u,m,g,T){Kf(e,t,i,u,m),S4(e,t,i,u,m)}var w4={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 Kl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w4[e.type]:t==="textarea"}/**
51
+ Check the render method of \``+e+"`.":""}var M2=["value","defaultValue"];function G6(e){{fl("select",e);for(var t=0;t<M2.length;t++){var i=M2[t];if(e[i]!=null){var u=jn(e[i]);e.multiple&&!u?f("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",i,P2()):!e.multiple&&u&&f("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",i,P2())}}}}function gs(e,t,i,u){var m=e.options;if(t){for(var g=i,T={},E=0;E<g.length;E++)T["$"+g[E]]=!0;for(var I=0;I<m.length;I++){var A=T.hasOwnProperty("$"+m[I].value);m[I].selected!==A&&(m[I].selected=A),A&&u&&(m[I].defaultSelected=!0)}}else{for(var M=ma(ps(i)),G=null,H=0;H<m.length;H++){if(m[H].value===M){m[H].selected=!0,u&&(m[H].defaultSelected=!0);return}G===null&&!m[H].disabled&&(G=m[H])}G!==null&&(G.selected=!0)}}function Hm(e,t){return Ct({},t,{value:void 0})}function D2(e,t){var i=e;G6(t),i._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!yd&&(f("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),yd=!0)}function W6(e,t){var i=e;i.multiple=!!t.multiple;var u=t.value;u!=null?gs(i,!!t.multiple,u,!1):t.defaultValue!=null&&gs(i,!!t.multiple,t.defaultValue,!0)}function Q6(e,t){var i=e,u=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!t.multiple;var m=t.value;m!=null?gs(i,!!t.multiple,m,!1):u!==!!t.multiple&&(t.defaultValue!=null?gs(i,!!t.multiple,t.defaultValue,!0):gs(i,!!t.multiple,t.multiple?[]:"",!1))}function Y6(e,t){var i=e,u=t.value;u!=null&&gs(i,!!t.multiple,u,!1)}var qm=!1;function Gm(e,t){var i=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var u=Ct({},t,{value:void 0,defaultValue:void 0,children:ma(i._wrapperState.initialValue)});return u}function U2(e,t){var i=e;fl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!qm&&(f("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",wr()||"A component"),qm=!0);var u=t.value;if(u==null){var m=t.children,g=t.defaultValue;if(m!=null){f("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jn(m)){if(m.length>1)throw new Error("<textarea> can only have at most one child.");m=m[0]}g=m}}g==null&&(g=""),u=g}i._wrapperState={initialValue:ps(u)}}function F2(e,t){var i=e,u=ps(t.value),m=ps(t.defaultValue);if(u!=null){var g=ma(u);g!==i.value&&(i.value=g),t.defaultValue==null&&i.defaultValue!==g&&(i.defaultValue=g)}m!=null&&(i.defaultValue=ma(m))}function V2(e,t){var i=e,u=i.textContent;u===i._wrapperState.initialValue&&u!==""&&u!==null&&(i.value=u)}function Wm(e,t){F2(e,t)}var Uo="http://www.w3.org/1999/xhtml",K6="http://www.w3.org/1998/Math/MathML",Qm="http://www.w3.org/2000/svg";function vd(e){switch(e){case"svg":return Qm;case"math":return K6;default:return Uo}}function Ym(e,t){return e==null||e===Uo?vd(t):e===Qm&&t==="foreignObject"?Uo:e}var Z6=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,u,m){MSApp.execUnsafeLocalFunction(function(){return e(t,i,u,m)})}:e},Td,j2=Z6(function(e,t){if(e.namespaceURI===Qm&&!("innerHTML"in e)){Td=Td||document.createElement("div"),Td.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var i=Td.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;i.firstChild;)e.appendChild(i.firstChild);return}e.innerHTML=t}),Ba=1,Fo=3,kn=8,Jr=9,ii=11,bd=function(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===Fo){i.nodeValue=t;return}}e.textContent=t},B2={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},yl={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};function $2(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var z2=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){z2.forEach(function(t){yl[$2(t,e)]=yl[e]})});function kd(e,t,i){var u=t==null||typeof t=="boolean"||t==="";return u?"":!i&&typeof t=="number"&&t!==0&&!(yl.hasOwnProperty(e)&&yl[e])?t+"px":(mo(t,e),(""+t).trim())}var vl=/([A-Z])/g,X6=/^ms-/;function J6(e){return e.replace(vl,"-$1").toLowerCase().replace(X6,"-ms-")}var H2=function(){};{var q2=/^(?:webkit|moz|o)[A-Z]/,G2=/^-ms-/,zu=/-(.)/g,Tl=/;\s*$/,bl={},kl={},W2=!1,Km=!1,Zm=function(e){return e.replace(zu,function(t,i){return i.toUpperCase()})},Xm=function(e){bl.hasOwnProperty(e)&&bl[e]||(bl[e]=!0,f("Unsupported style property %s. Did you mean %s?",e,Zm(e.replace(G2,"ms-"))))},Q2=function(e){bl.hasOwnProperty(e)&&bl[e]||(bl[e]=!0,f("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},Y2=function(e,t){kl.hasOwnProperty(t)&&kl[t]||(kl[t]=!0,f(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Tl,"")))},K2=function(e,t){W2||(W2=!0,f("`NaN` is an invalid value for the `%s` css style property.",e))},e4=function(e,t){Km||(Km=!0,f("`Infinity` is an invalid value for the `%s` css style property.",e))};H2=function(e,t){e.indexOf("-")>-1?Xm(e):q2.test(e)?Q2(e):Tl.test(t)&&Y2(e,t),typeof t=="number"&&(isNaN(t)?K2(e,t):isFinite(t)||e4(e,t))}}var t4=H2;function n4(e){{var t="",i="";for(var u in e)if(e.hasOwnProperty(u)){var m=e[u];if(m!=null){var g=u.indexOf("--")===0;t+=i+(g?u:J6(u))+":",t+=kd(u,m,g),i=";"}}return t||null}}function Z2(e,t){var i=e.style;for(var u in t)if(t.hasOwnProperty(u)){var m=u.indexOf("--")===0;m||t4(u,t[u]);var g=kd(u,t[u],m);u==="float"&&(u="cssFloat"),m?i.setProperty(u,g):i[u]=g}}function a4(e){return e==null||typeof e=="boolean"||e===""}function Cr(e){var t={};for(var i in e)for(var u=B2[i]||[i],m=0;m<u.length;m++)t[u[m]]=i;return t}function Hu(e,t){{if(!t)return;var i=Cr(e),u=Cr(t),m={};for(var g in i){var T=i[g],E=u[g];if(E&&T!==E){var I=T+","+E;if(m[I])continue;m[I]=!0,f("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",a4(e[T])?"Removing":"Updating",T,E)}}}}var X2={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},J2=Ct({menuitem:!0},X2),ep="__html";function Sd(e,t){if(t){if(J2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(ep in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&f("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Vo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 wd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},tp={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},eo={},Jm=new RegExp("^(aria)-["+vt+"]*$"),qu=new RegExp("^(aria)[A-Z]["+vt+"]*$");function ef(e,t){{if(nn.call(eo,t)&&eo[t])return!0;if(qu.test(t)){var i="aria-"+t.slice(4).toLowerCase(),u=tp.hasOwnProperty(i)?i:null;if(u==null)return f("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),eo[t]=!0,!0;if(t!==u)return f("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,u),eo[t]=!0,!0}if(Jm.test(t)){var m=t.toLowerCase(),g=tp.hasOwnProperty(m)?m:null;if(g==null)return eo[t]=!0,!1;if(t!==g)return f("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,g),eo[t]=!0,!0}}return!0}function np(e,t){{var i=[];for(var u in t){var m=ef(e,u);m||i.push(u)}var g=i.map(function(T){return"`"+T+"`"}).join(", ");i.length===1?f("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e):i.length>1&&f("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e)}}function Cd(e,t){Vo(e,t)||np(e,t)}var li=!1;function tf(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!li&&(li=!0,e==="select"&&t.multiple?f("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):f("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var nf=function(){};{var Bn={},af=/^on./,ap=/^on[^A-Z]/,rp=new RegExp("^(aria)-["+vt+"]*$"),op=new RegExp("^(aria)[A-Z]["+vt+"]*$");nf=function(e,t,i,u){if(nn.call(Bn,t)&&Bn[t])return!0;var m=t.toLowerCase();if(m==="onfocusin"||m==="onfocusout")return f("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Bn[t]=!0,!0;if(u!=null){var g=u.registrationNameDependencies,T=u.possibleRegistrationNames;if(g.hasOwnProperty(t))return!0;var E=T.hasOwnProperty(m)?T[m]:null;if(E!=null)return f("Invalid event handler property `%s`. Did you mean `%s`?",t,E),Bn[t]=!0,!0;if(af.test(t))return f("Unknown event handler property `%s`. It will be ignored.",t),Bn[t]=!0,!0}else if(af.test(t))return ap.test(t)&&f("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Bn[t]=!0,!0;if(rp.test(t)||op.test(t))return!0;if(m==="innerhtml")return f("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Bn[t]=!0,!0;if(m==="aria")return f("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Bn[t]=!0,!0;if(m==="is"&&i!==null&&i!==void 0&&typeof i!="string")return f("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof i),Bn[t]=!0,!0;if(typeof i=="number"&&isNaN(i))return f("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Bn[t]=!0,!0;var I=Nu(t),A=I!==null&&I.type===ni;if(wd.hasOwnProperty(m)){var M=wd[m];if(M!==t)return f("Invalid DOM property `%s`. Did you mean `%s`?",t,M),Bn[t]=!0,!0}else if(!A&&t!==m)return f("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,m),Bn[t]=!0,!0;return typeof i=="boolean"&&vn(t,i,I,!1)?(i?f('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',i,t,t,i,t):f('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',i,t,t,i,t,t,t),Bn[t]=!0,!0):A?!0:vn(t,i,I,!1)?(Bn[t]=!0,!1):((i==="false"||i==="true")&&I!==null&&I.type===ar&&(f("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",i,t,i==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,i),Bn[t]=!0),!0)}}var sp=function(e,t,i){{var u=[];for(var m in t){var g=nf(e,m,t[m],i);g||u.push(m)}var T=u.map(function(E){return"`"+E+"`"}).join(", ");u.length===1?f("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",T,e):u.length>1&&f("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",T,e)}};function ip(e,t,i){Vo(e,t)||sp(e,t,i)}var jo=1,Gu=2,ui=4,r4=jo|Gu|ui,Wu=null;function Qu(e){Wu!==null&&f("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Wu=e}function o4(){Wu===null&&f("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Wu=null}function lp(e){return e===Wu}function Ed(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Fo?t.parentNode:t}var Ht=null,ys=null,Bo=null;function Sl(e){var t=Jl(e);if(t){if(typeof Ht!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var i=t.stateNode;if(i){var u=d3(i);Ht(t.stateNode,t.type,u)}}}function up(e){Ht=e}function _d(e){ys?Bo?Bo.push(e):Bo=[e]:ys=e}function Yu(){return ys!==null||Bo!==null}function Ku(){if(ys){var e=ys,t=Bo;if(ys=null,Bo=null,Sl(e),t)for(var i=0;i<t.length;i++)Sl(t[i])}}var ci=function(e,t){return e(t)},rf=function(){},of=!1;function s4(){var e=Yu();e&&(rf(),Ku())}function sf(e,t,i){if(of)return e(t,i);of=!0;try{return ci(e,t,i)}finally{of=!1,s4()}}function Id(e,t,i){ci=e,rf=i}function Nd(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function lf(e,t,i){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(i.disabled&&Nd(t));default:return!1}}function di(e,t){var i=e.stateNode;if(i===null)return null;var u=d3(i);if(u===null)return null;var m=u[t];if(lf(t,e.type,u))return null;if(m&&typeof m!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof m+"` type.");return m}var Zu=!1;if(qt)try{var mi={};Object.defineProperty(mi,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",mi,mi),window.removeEventListener("test",mi,mi)}catch{Zu=!1}function cp(e,t,i,u,m,g,T,E,I){var A=Array.prototype.slice.call(arguments,3);try{t.apply(i,A)}catch(M){this.onError(M)}}var uf=cp;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var cf=document.createElement("react");uf=function(e,t,i,u,m,g,T,E,I){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var A=document.createEvent("Event"),M=!1,G=!0,H=window.event,ne=Object.getOwnPropertyDescriptor(window,"event");function oe(){cf.removeEventListener(X,Ie,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=H)}var ue=Array.prototype.slice.call(arguments,3);function Ie(){M=!0,oe(),t.apply(i,ue),G=!1}var qe,Je=!1,kt=!1;function Tt(le){if(qe=le.error,Je=!0,qe===null&&le.colno===0&&le.lineno===0&&(kt=!0),le.defaultPrevented&&qe!=null&&typeof qe=="object")try{qe._suppressLogging=!0}catch{}}var X="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",Tt),cf.addEventListener(X,Ie,!1),A.initEvent(X,!1,!1),cf.dispatchEvent(A),ne&&Object.defineProperty(window,"event",ne),M&&G&&(Je?kt&&(qe=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):qe=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(qe)),window.removeEventListener("error",Tt),!M)return oe(),cp.apply(this,arguments)}}var i4=uf,vs=!1,to=null,Xu=!1,Ts=null,ho={onError:function(e){vs=!0,to=e}};function fi(e,t,i,u,m,g,T,E,I){vs=!1,to=null,i4.apply(ho,arguments)}function $o(e,t,i,u,m,g,T,E,I){if(fi.apply(this,arguments),vs){var A=mf();Xu||(Xu=!0,Ts=A)}}function df(){if(Xu){var e=Ts;throw Xu=!1,Ts=null,e}}function l4(){return vs}function mf(){if(vs){var e=to;return vs=!1,to=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Er(e){return e._reactInternals}function Ju(e){return e._reactInternals!==void 0}function wl(e,t){e._reactInternals=t}var Ze=0,bs=1,Kt=2,ht=4,Pt=16,Mt=32,go=64,rt=128,dn=256,$a=512,_r=1024,Jt=2048,Ir=4096,ks=8192,ec=16384,Rd=Jt|ht|go|$a|_r|ec,dp=32767,or=32768,$n=65536,tc=131072,ff=1048576,pf=2097152,za=4194304,Ss=8388608,Ha=16777216,pi=33554432,Cl=ht|_r|0,qa=Kt|ht|Pt|Mt|$a|Ir|ks,fa=ht|go|$a|ks,Nr=Jt|Pt,Yn=za|Ss|pf,zo=o.ReactCurrentOwner;function sr(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{var u=t;do t=u,(t.flags&(Kt|Ir))!==Ze&&(i=t.return),u=t.return;while(u)}return t.tag===N?i:null}function hf(e){if(e.tag===te){var t=e.memoizedState;if(t===null){var i=e.alternate;i!==null&&(t=i.memoizedState)}if(t!==null)return t.dehydrated}return null}function Od(e){return e.tag===N?e.stateNode.containerInfo:null}function gf(e){return sr(e)===e}function ir(e){{var t=zo.current;if(t!==null&&t.tag===C){var i=t,u=i.stateNode;u._warnedAboutRefsInRender||f("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ft(i)||"A component"),u._warnedAboutRefsInRender=!0}}var m=Er(e);return m?sr(m)===m:!1}function Ga(e){if(sr(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Zt(e){var t=e.alternate;if(!t){var i=sr(e);if(i===null)throw new Error("Unable to find node on an unmounted component.");return i!==e?null:e}for(var u=e,m=t;;){var g=u.return;if(g===null)break;var T=g.alternate;if(T===null){var E=g.return;if(E!==null){u=m=E;continue}break}if(g.child===T.child){for(var I=g.child;I;){if(I===u)return Ga(g),e;if(I===m)return Ga(g),t;I=I.sibling}throw new Error("Unable to find node on an unmounted component.")}if(u.return!==m.return)u=g,m=T;else{for(var A=!1,M=g.child;M;){if(M===u){A=!0,u=g,m=T;break}if(M===m){A=!0,m=g,u=T;break}M=M.sibling}if(!A){for(M=T.child;M;){if(M===u){A=!0,u=T,m=g;break}if(M===m){A=!0,m=T,u=g;break}M=M.sibling}if(!A)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(u.alternate!==m)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(u.tag!==N)throw new Error("Unable to find node on an unmounted component.");return u.stateNode.current===u?e:t}function Rr(e){var t=Zt(e);return t!==null?yf(t):null}function yf(e){if(e.tag===L||e.tag===x)return e;for(var t=e.child;t!==null;){var i=yf(t);if(i!==null)return i;t=t.sibling}return null}function mp(e){var t=Zt(e);return t!==null?Ld(t):null}function Ld(e){if(e.tag===L||e.tag===x)return e;for(var t=e.child;t!==null;){if(t.tag!==O){var i=Ld(t);if(i!==null)return i}t=t.sibling}return null}var Ad=a.unstable_scheduleCallback,fp=a.unstable_cancelCallback,xd=a.unstable_shouldYield,pp=a.unstable_requestPaint,an=a.unstable_now,vf=a.unstable_getCurrentPriorityLevel,Pd=a.unstable_ImmediatePriority,hi=a.unstable_UserBlockingPriority,yo=a.unstable_NormalPriority,hp=a.unstable_LowPriority,Md=a.unstable_IdlePriority,El=a.unstable_yieldValue,gp=a.unstable_setDisableYieldValue,Ho=null,Ln=null,Ee=null,Or=!1,lr=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Tf(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return f("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{We&&(e=Ct({},e,{getLaneLabelMap:qo,injectProfilingHooks:yp})),Ho=t.inject(e),Ln=t}catch(i){f("React instrumentation encountered an error: %s.",i)}return!!t.checkDCE}function bf(e,t){if(Ln&&typeof Ln.onScheduleFiberRoot=="function")try{Ln.onScheduleFiberRoot(Ho,e,t)}catch(i){Or||(Or=!0,f("React instrumentation encountered an error: %s",i))}}function _l(e,t){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{var i=(e.current.flags&rt)===rt;if(gt){var u;switch(t){case ga:u=Pd;break;case Zn:u=hi;break;case Wo:u=yo;break;case mc:u=Md;break;default:u=yo;break}Ln.onCommitFiberRoot(Ho,e,u,i)}}catch(m){Or||(Or=!0,f("React instrumentation encountered an error: %s",m))}}function Lr(e){if(Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Ho,e)}catch(t){Or||(Or=!0,f("React instrumentation encountered an error: %s",t))}}function gi(e){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Ho,e)}catch(t){Or||(Or=!0,f("React instrumentation encountered an error: %s",t))}}function Sn(e){if(typeof El=="function"&&(gp(e),c(e)),Ln&&typeof Ln.setStrictMode=="function")try{Ln.setStrictMode(Ho,e)}catch(t){Or||(Or=!0,f("React instrumentation encountered an error: %s",t))}}function yp(e){Ee=e}function qo(){{for(var e=new Map,t=1,i=0;i<sc;i++){var u=c4(t);e.set(t,u),t*=2}return e}}function ws(e){Ee!==null&&typeof Ee.markCommitStarted=="function"&&Ee.markCommitStarted(e)}function Dd(){Ee!==null&&typeof Ee.markCommitStopped=="function"&&Ee.markCommitStopped()}function Il(e){Ee!==null&&typeof Ee.markComponentRenderStarted=="function"&&Ee.markComponentRenderStarted(e)}function Wa(){Ee!==null&&typeof Ee.markComponentRenderStopped=="function"&&Ee.markComponentRenderStopped()}function Cs(e){Ee!==null&&typeof Ee.markComponentPassiveEffectMountStarted=="function"&&Ee.markComponentPassiveEffectMountStarted(e)}function Ud(){Ee!==null&&typeof Ee.markComponentPassiveEffectMountStopped=="function"&&Ee.markComponentPassiveEffectMountStopped()}function vp(e){Ee!==null&&typeof Ee.markComponentPassiveEffectUnmountStarted=="function"&&Ee.markComponentPassiveEffectUnmountStarted(e)}function Fd(){Ee!==null&&typeof Ee.markComponentPassiveEffectUnmountStopped=="function"&&Ee.markComponentPassiveEffectUnmountStopped()}function Tp(e){Ee!==null&&typeof Ee.markComponentLayoutEffectMountStarted=="function"&&Ee.markComponentLayoutEffectMountStarted(e)}function nc(){Ee!==null&&typeof Ee.markComponentLayoutEffectMountStopped=="function"&&Ee.markComponentLayoutEffectMountStopped()}function no(e){Ee!==null&&typeof Ee.markComponentLayoutEffectUnmountStarted=="function"&&Ee.markComponentLayoutEffectUnmountStarted(e)}function Nl(){Ee!==null&&typeof Ee.markComponentLayoutEffectUnmountStopped=="function"&&Ee.markComponentLayoutEffectUnmountStopped()}function ac(e,t,i){Ee!==null&&typeof Ee.markComponentErrored=="function"&&Ee.markComponentErrored(e,t,i)}function yi(e,t,i){Ee!==null&&typeof Ee.markComponentSuspended=="function"&&Ee.markComponentSuspended(e,t,i)}function kf(e){Ee!==null&&typeof Ee.markLayoutEffectsStarted=="function"&&Ee.markLayoutEffectsStarted(e)}function Rl(){Ee!==null&&typeof Ee.markLayoutEffectsStopped=="function"&&Ee.markLayoutEffectsStopped()}function bp(e){Ee!==null&&typeof Ee.markPassiveEffectsStarted=="function"&&Ee.markPassiveEffectsStarted(e)}function Sf(){Ee!==null&&typeof Ee.markPassiveEffectsStopped=="function"&&Ee.markPassiveEffectsStopped()}function en(e){Ee!==null&&typeof Ee.markRenderStarted=="function"&&Ee.markRenderStarted(e)}function Vd(){Ee!==null&&typeof Ee.markRenderYielded=="function"&&Ee.markRenderYielded()}function jd(){Ee!==null&&typeof Ee.markRenderStopped=="function"&&Ee.markRenderStopped()}function wf(e){Ee!==null&&typeof Ee.markRenderScheduled=="function"&&Ee.markRenderScheduled(e)}function Bd(e,t){Ee!==null&&typeof Ee.markForceUpdateScheduled=="function"&&Ee.markForceUpdateScheduled(e,t)}function rc(e,t){Ee!==null&&typeof Ee.markStateUpdateScheduled=="function"&&Ee.markStateUpdateScheduled(e,t)}var $e=0,ze=1,ot=2,bt=8,ur=16,Ol=Math.clz32?Math.clz32:pa,oc=Math.log,u4=Math.LN2;function pa(e){var t=e>>>0;return t===0?32:31-(oc(t)/u4|0)|0}var sc=31,fe=0,wn=0,Qe=1,Kn=2,cr=4,Go=8,Ar=16,Ll=32,vi=4194240,Al=64,$d=128,zd=256,Hd=512,qd=1024,Gd=2048,Ti=4096,Wd=8192,xl=16384,Pl=32768,Qd=65536,ic=131072,Yd=262144,Kd=524288,Zd=1048576,Xd=2097152,Ml=130023424,bi=4194304,Jd=8388608,e1=16777216,Cf=33554432,t1=67108864,kp=bi,lc=134217728,Ef=268435455,Dl=268435456,Es=536870912,ha=1073741824;function c4(e){{if(e&Qe)return"Sync";if(e&Kn)return"InputContinuousHydration";if(e&cr)return"InputContinuous";if(e&Go)return"DefaultHydration";if(e&Ar)return"Default";if(e&Ll)return"TransitionHydration";if(e&vi)return"Transition";if(e&Ml)return"Retry";if(e&lc)return"SelectiveHydration";if(e&Dl)return"IdleHydration";if(e&Es)return"Idle";if(e&ha)return"Offscreen"}}var Wt=-1,n1=Al,Qa=bi;function ki(e){switch(pn(e)){case Qe:return Qe;case Kn:return Kn;case cr:return cr;case Go:return Go;case Ar:return Ar;case Ll:return Ll;case Al:case $d:case zd:case Hd:case qd:case Gd:case Ti:case Wd:case xl:case Pl:case Qd:case ic:case Yd:case Kd:case Zd:case Xd:return e&vi;case bi:case Jd:case e1:case Cf:case t1:return e&Ml;case lc:return lc;case Dl:return Dl;case Es:return Es;case ha:return ha;default:return f("Should have found matching lanes. This is a bug in React."),e}}function Si(e,t){var i=e.pendingLanes;if(i===fe)return fe;var u=fe,m=e.suspendedLanes,g=e.pingedLanes,T=i&Ef;if(T!==fe){var E=T&~m;if(E!==fe)u=ki(E);else{var I=T&g;I!==fe&&(u=ki(I))}}else{var A=i&~m;A!==fe?u=ki(A):g!==fe&&(u=ki(g))}if(u===fe)return fe;if(t!==fe&&t!==u&&(t&m)===fe){var M=pn(u),G=pn(t);if(M>=G||M===Ar&&(G&vi)!==fe)return t}(u&cr)!==fe&&(u|=i&Ar);var H=e.entangledLanes;if(H!==fe)for(var ne=e.entanglements,oe=u&H;oe>0;){var ue=Is(oe),Ie=1<<ue;u|=ne[ue],oe&=~Ie}return u}function Sp(e,t){for(var i=e.eventTimes,u=Wt;t>0;){var m=Is(t),g=1<<m,T=i[m];T>u&&(u=T),t&=~g}return u}function wp(e,t){switch(e){case Qe:case Kn:case cr:return t+250;case Go:case Ar:case Ll:case Al:case $d:case zd:case Hd:case qd:case Gd:case Ti:case Wd:case xl:case Pl:case Qd:case ic:case Yd:case Kd:case Zd:case Xd:return t+5e3;case bi:case Jd:case e1:case Cf:case t1:return Wt;case lc:case Dl:case Es:case ha:return Wt;default:return f("Should have found matching lanes. This is a bug in React."),Wt}}function Cp(e,t){for(var i=e.pendingLanes,u=e.suspendedLanes,m=e.pingedLanes,g=e.expirationTimes,T=i;T>0;){var E=Is(T),I=1<<E,A=g[E];A===Wt?((I&u)===fe||(I&m)!==fe)&&(g[E]=wp(I,t)):A<=t&&(e.expiredLanes|=I),T&=~I}}function _f(e){return ki(e.pendingLanes)}function _s(e){var t=e.pendingLanes&~ha;return t!==fe?t:t&ha?ha:fe}function If(e){return(e&Qe)!==fe}function uc(e){return(e&Ef)!==fe}function Ep(e){return(e&Ml)===e}function _p(e){var t=Qe|cr|Ar;return(e&t)===fe}function Ip(e){return(e&vi)===e}function cc(e,t){var i=Kn|cr|Go|Ar;return(t&i)!==fe}function Np(e,t){return(t&e.expiredLanes)!==fe}function Nf(e){return(e&vi)!==fe}function Rp(){var e=n1;return n1<<=1,(n1&vi)===fe&&(n1=Al),e}function Ya(){var e=Qa;return Qa<<=1,(Qa&Ml)===fe&&(Qa=bi),e}function pn(e){return e&-e}function Ul(e){return pn(e)}function Is(e){return 31-Ol(e)}function a1(e){return Is(e)}function Ka(e,t){return(e&t)!==fe}function wi(e,t){return(e&t)===t}function pt(e,t){return e|t}function dc(e,t){return e&~t}function r1(e,t){return e&t}function Op(e,t){return e!==wn&&e<t?e:t}function o1(e){for(var t=[],i=0;i<sc;i++)t.push(e);return t}function Ci(e,t,i){e.pendingLanes|=t,t!==Es&&(e.suspendedLanes=fe,e.pingedLanes=fe);var u=e.eventTimes,m=a1(t);u[m]=i}function Rf(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var i=e.expirationTimes,u=t;u>0;){var m=Is(u),g=1<<m;i[m]=Wt,u&=~g}}function Of(e,t,i){e.pingedLanes|=e.suspendedLanes&t}function Lf(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=fe,e.pingedLanes=fe,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var u=e.entanglements,m=e.eventTimes,g=e.expirationTimes,T=i;T>0;){var E=Is(T),I=1<<E;u[E]=fe,m[E]=Wt,g[E]=Wt,T&=~I}}function Fl(e,t){for(var i=e.entangledLanes|=t,u=e.entanglements,m=i;m;){var g=Is(m),T=1<<g;T&t|u[g]&t&&(u[g]|=t),m&=~T}}function d4(e,t){var i=pn(t),u;switch(i){case cr:u=Kn;break;case Ar:u=Go;break;case Al:case $d:case zd:case Hd:case qd:case Gd:case Ti:case Wd:case xl:case Pl:case Qd:case ic:case Yd:case Kd:case Zd:case Xd:case bi:case Jd:case e1:case Cf:case t1:u=Ll;break;case Es:u=Dl;break;default:u=wn;break}return(u&(e.suspendedLanes|t))!==wn?wn:u}function Af(e,t,i){if(lr)for(var u=e.pendingUpdatersLaneMap;i>0;){var m=a1(i),g=1<<m,T=u[m];T.add(t),i&=~g}}function s1(e,t){if(lr)for(var i=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;t>0;){var m=a1(t),g=1<<m,T=i[m];T.size>0&&(T.forEach(function(E){var I=E.alternate;(I===null||!u.has(I))&&u.add(E)}),T.clear()),t&=~g}}function xf(e,t){return null}var ga=Qe,Zn=cr,Wo=Ar,mc=Es,Ei=wn;function xr(){return Ei}function An(e){Ei=e}function fc(e,t){var i=Ei;try{return Ei=e,t()}finally{Ei=i}}function ya(e,t){return e!==0&&e<t?e:t}function m4(e,t){return e>t?e:t}function Pf(e,t){return e!==0&&e<t}function pc(e){var t=pn(e);return Pf(ga,t)?Pf(Zn,t)?uc(t)?Wo:mc:Zn:ga}function xn(e){var t=e.current.memoizedState;return t.isDehydrated}var Lp;function Me(e){Lp=e}function Vl(e){Lp(e)}var i1;function Ap(e){i1=e}var xp;function hc(e){xp=e}var gc;function Mf(e){gc=e}var Df;function Pp(e){Df=e}var l1=!1,jl=[],vo=null,tn=null,zn=null,Pr=new Map,Bl=new Map,Qo=[],ao=["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"];function Mp(e){return ao.indexOf(e)>-1}function To(e,t,i,u,m){return{blockedOn:e,domEventName:t,eventSystemFlags:i,nativeEvent:m,targetContainers:[u]}}function Dp(e,t){switch(e){case"focusin":case"focusout":vo=null;break;case"dragenter":case"dragleave":tn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":{var i=t.pointerId;Pr.delete(i);break}case"gotpointercapture":case"lostpointercapture":{var u=t.pointerId;Bl.delete(u);break}}}function $l(e,t,i,u,m,g){if(e===null||e.nativeEvent!==g){var T=To(t,i,u,m,g);if(t!==null){var E=Jl(t);E!==null&&i1(E)}return T}e.eventSystemFlags|=u;var I=e.targetContainers;return m!==null&&I.indexOf(m)===-1&&I.push(m),e}function Up(e,t,i,u,m){switch(t){case"focusin":{var g=m;return vo=$l(vo,e,t,i,u,g),!0}case"dragenter":{var T=m;return tn=$l(tn,e,t,i,u,T),!0}case"mouseover":{var E=m;return zn=$l(zn,e,t,i,u,E),!0}case"pointerover":{var I=m,A=I.pointerId;return Pr.set(A,$l(Pr.get(A)||null,e,t,i,u,I)),!0}case"gotpointercapture":{var M=m,G=M.pointerId;return Bl.set(G,$l(Bl.get(G)||null,e,t,i,u,M)),!0}}return!1}function Uf(e){var t=Ec(e.target);if(t!==null){var i=sr(t);if(i!==null){var u=i.tag;if(u===te){var m=hf(i);if(m!==null){e.blockedOn=m,Df(e.priority,function(){xp(i)});return}}else if(u===N){var g=i.stateNode;if(xn(g)){e.blockedOn=Od(i);return}}}}e.blockedOn=null}function Fp(e){for(var t=gc(),i={blockedOn:null,target:e,priority:t},u=0;u<Qo.length&&Pf(t,Qo[u].priority);u++);Qo.splice(u,0,i),u===0&&Uf(i)}function u1(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var i=t[0],u=_i(e.domEventName,e.eventSystemFlags,i,e.nativeEvent);if(u===null){var m=e.nativeEvent,g=new m.constructor(m.type,m);Qu(g),m.target.dispatchEvent(g),o4()}else{var T=Jl(u);return T!==null&&i1(T),e.blockedOn=u,!1}t.shift()}return!0}function yc(e,t,i){u1(e)&&i.delete(t)}function Ff(){l1=!1,vo!==null&&u1(vo)&&(vo=null),tn!==null&&u1(tn)&&(tn=null),zn!==null&&u1(zn)&&(zn=null),Pr.forEach(yc),Bl.forEach(yc)}function va(e,t){e.blockedOn===t&&(e.blockedOn=null,l1||(l1=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ff)))}function Et(e){if(jl.length>0){va(jl[0],e);for(var t=1;t<jl.length;t++){var i=jl[t];i.blockedOn===e&&(i.blockedOn=null)}}vo!==null&&va(vo,e),tn!==null&&va(tn,e),zn!==null&&va(zn,e);var u=function(E){return va(E,e)};Pr.forEach(u),Bl.forEach(u);for(var m=0;m<Qo.length;m++){var g=Qo[m];g.blockedOn===e&&(g.blockedOn=null)}for(;Qo.length>0;){var T=Qo[0];if(T.blockedOn!==null)break;Uf(T),T.blockedOn===null&&Qo.shift()}}var rn=o.ReactCurrentBatchConfig,mn=!0;function Hn(e){mn=!!e}function dr(){return mn}function zl(e,t,i){var u=_a(t),m;switch(u){case ga:m=Pn;break;case Zn:m=vc;break;case Wo:default:m=Yo;break}return m.bind(null,t,i,e)}function Pn(e,t,i,u){var m=xr(),g=rn.transition;rn.transition=null;try{An(ga),Yo(e,t,i,u)}finally{An(m),rn.transition=g}}function vc(e,t,i,u){var m=xr(),g=rn.transition;rn.transition=null;try{An(Zn),Yo(e,t,i,u)}finally{An(m),rn.transition=g}}function Yo(e,t,i,u){mn&&c1(e,t,i,u)}function c1(e,t,i,u){var m=_i(e,t,i,u);if(m===null){A4(e,t,u,Hl,i),Dp(e,u);return}if(Up(m,e,t,i,u)){u.stopPropagation();return}if(Dp(e,u),t&ui&&Mp(e)){for(;m!==null;){var g=Jl(m);g!==null&&Vl(g);var T=_i(e,t,i,u);if(T===null&&A4(e,t,u,Hl,i),T===m)break;m=T}m!==null&&u.stopPropagation();return}A4(e,t,u,null,i)}var Hl=null;function _i(e,t,i,u){Hl=null;var m=Ed(u),g=Ec(m);if(g!==null){var T=sr(g);if(T===null)g=null;else{var E=T.tag;if(E===te){var I=hf(T);if(I!==null)return I;g=null}else if(E===N){var A=T.stateNode;if(xn(A))return Od(T);g=null}else T!==g&&(g=null)}}return Hl=g,null}function _a(e){switch(e){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 ga;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 Zn;case"message":{var t=vf();switch(t){case Pd:return ga;case hi:return Zn;case yo:case hp:return Wo;case Md:return mc;default:return Wo}}default:return Wo}}function Vf(e,t,i){return e.addEventListener(t,i,!1),i}function ql(e,t,i){return e.addEventListener(t,i,!0),i}function Ko(e,t,i,u){return e.addEventListener(t,i,{capture:!0,passive:u}),i}function d1(e,t,i,u){return e.addEventListener(t,i,{passive:u}),i}var Ii=null,bo=null,Ns=null;function Rs(e){return Ii=e,bo=f1(),!0}function m1(){Ii=null,bo=null,Ns=null}function Gl(){if(Ns)return Ns;var e,t=bo,i=t.length,u,m=f1(),g=m.length;for(e=0;e<i&&t[e]===m[e];e++);var T=i-e;for(u=1;u<=T&&t[i-u]===m[g-u];u++);var E=u>1?1-u:void 0;return Ns=m.slice(e,E),Ns}function f1(){return"value"in Ii?Ii.value:Ii.textContent}function Ni(e){var t,i=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),t>=32||t===13?t:0}function Ri(){return!0}function Ta(){return!1}function Cn(e){function t(i,u,m,g,T){this._reactName=i,this._targetInst=m,this.type=u,this.nativeEvent=g,this.target=T,this.currentTarget=null;for(var E in e)if(e.hasOwnProperty(E)){var I=e[E];I?this[E]=I(g):this[E]=g[E]}var A=g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1;return A?this.isDefaultPrevented=Ri:this.isDefaultPrevented=Ta,this.isPropagationStopped=Ta,this}return Ct(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ri)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ka=Cn(ba),Wl=Ct({},ba,{view:0,detail:0}),jf=Cn(Wl),Tc,Bf,Mr;function Vp(e){e!==Mr&&(Mr&&e.type==="mousemove"?(Tc=e.screenX-Mr.screenX,Bf=e.screenY-Mr.screenY):(Tc=0,Bf=0),Mr=e)}var Ql=Ct({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:g1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(Vp(e),Tc)},movementY:function(e){return"movementY"in e?e.movementY:Bf}}),Os=Cn(Ql),$f=Ct({},Ql,{dataTransfer:0}),Oi=Cn($f),jp=Ct({},Wl,{relatedTarget:0}),p1=Cn(jp),zf=Ct({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),h1=Cn(zf),f4=Ct({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),p4=Cn(f4),Bp=Ct({},ba,{data:0}),Hf=Cn(Bp),Li=Hf,h4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yl={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"};function $p(e){if(e.key){var t=h4[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var i=Ni(e);return i===13?"Enter":String.fromCharCode(i)}return e.type==="keydown"||e.type==="keyup"?Yl[e.keyCode]||"Unidentified":""}var fn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g4(e){var t=this,i=t.nativeEvent;if(i.getModifierState)return i.getModifierState(e);var u=fn[e];return u?!!i[u]:!1}function g1(e){return g4}var y4=Ct({},Wl,{key:$p,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:g1,charCode:function(e){return e.type==="keypress"?Ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),v4=Cn(y4),zp=Ct({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qf=Cn(zp),T4=Ct({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:g1}),Dr=Cn(T4),Gf=Ct({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),b4=Cn(Gf),Ls=Ct({},Ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),y1=Cn(Ls),Ai=[9,13,27,32],bc=229,kc=qt&&"CompositionEvent"in window,xi=null;qt&&"documentMode"in document&&(xi=document.documentMode);var k4=qt&&"TextEvent"in window&&!xi,v1=qt&&(!kc||xi&&xi>8&&xi<=11),Hp=32,Wf=String.fromCharCode(Hp);function qp(){Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Yt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Yt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Sc=!1;function T1(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function Gp(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function Qf(e,t){return e==="keydown"&&t.keyCode===bc}function Wp(e,t){switch(e){case"keyup":return Ai.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==bc;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yf(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function b1(e){return e.locale==="ko"}var Zo=!1;function Kf(e,t,i,u,m){var g,T;if(kc?g=Gp(t):Zo?Wp(t,u)&&(g="onCompositionEnd"):Qf(t,u)&&(g="onCompositionStart"),!g)return null;v1&&!b1(u)&&(!Zo&&g==="onCompositionStart"?Zo=Rs(m):g==="onCompositionEnd"&&Zo&&(T=Gl()));var E=Xp(i,g);if(E.length>0){var I=new Hf(g,t,null,u,m);if(e.push({event:I,listeners:E}),T)I.data=T;else{var A=Yf(u);A!==null&&(I.data=A)}}}function k1(e,t){switch(e){case"compositionend":return Yf(t);case"keypress":var i=t.which;return i!==Hp?null:(Sc=!0,Wf);case"textInput":var u=t.data;return u===Wf&&Sc?null:u;default:return null}}function Qp(e,t){if(Zo){if(e==="compositionend"||!kc&&Wp(e,t)){var i=Gl();return m1(),Zo=!1,i}return null}switch(e){case"paste":return null;case"keypress":if(!T1(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return v1&&!b1(t)?null:t.data;default:return null}}function S4(e,t,i,u,m){var g;if(k4?g=k1(t,u):g=Qp(t,u),!g)return null;var T=Xp(i,"onBeforeInput");if(T.length>0){var E=new Li("onBeforeInput","beforeinput",null,u,m);e.push({event:E,listeners:T}),E.data=g}}function S1(e,t,i,u,m,g,T){Kf(e,t,i,u,m),S4(e,t,i,u,m)}var w4={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 Kl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w4[e.type]:t==="textarea"}/**
52
52
  * Checks if an event is supported in the current execution environment.
53
53
  *
54
54
  * NOTE: This will not work correctly for non-generic events such as `change`,
@@ -60,8 +60,8 @@ Check the render method of \``+e+"`.":""}var M2=["value","defaultValue"];functio
60
60
  * @return {boolean} True if the event is supported.
61
61
  * @internal
62
62
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
63
- */function C4(e){if(!qt)return!1;var t="on"+e,i=t in document;if(!i){var u=document.createElement("div");u.setAttribute(t,"return;"),i=typeof u[t]=="function"}return i}function w1(){Yt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function r(e,t,i,u){_d(u);var m=Xp(t,"onChange");if(m.length>0){var g=new ka("onChange","change",null,i,u);e.push({event:g,listeners:m})}}var s=null,d=null;function h(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function v(e){var t=[];r(t,d,e,Ed(e)),sf(S,t)}function S(e){Wy(e,0)}function R(e){var t=R1(e);if(L2(t))return e}function F(e,t){if(e==="change")return t}var $=!1;qt&&($=C4("input")&&(!document.documentMode||document.documentMode>9));function re(e,t){s=e,d=t,s.attachEvent("onpropertychange",ve)}function he(){s&&(s.detachEvent("onpropertychange",ve),s=null,d=null)}function ve(e){e.propertyName==="value"&&R(d)&&v(e)}function ge(e,t,i){e==="focusin"?(he(),re(t,i)):e==="focusout"&&he()}function Le(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return R(d)}function De(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Ve(e,t){if(e==="click")return R(t)}function hn(e,t){if(e==="input"||e==="change")return R(t)}function K(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||hs(e,"number",e.value)}function q(e,t,i,u,m,g,T){var E=i?R1(i):window,I,A;if(h(E)?I=F:Kl(E)?$?I=hn:(I=Le,A=ge):De(E)&&(I=Ve),I){var M=I(t,i);if(M){r(e,M,u,m);return}}A&&A(t,E,i),t==="focusout"&&K(E)}function ee(){In("onMouseEnter",["mouseout","mouseover"]),In("onMouseLeave",["mouseout","mouseover"]),In("onPointerEnter",["pointerout","pointerover"]),In("onPointerLeave",["pointerout","pointerover"])}function ke(e,t,i,u,m,g,T){var E=t==="mouseover"||t==="pointerover",I=t==="mouseout"||t==="pointerout";if(E&&!lp(u)){var A=u.relatedTarget||u.fromElement;if(A&&(Ec(A)||c0(A)))return}if(!(!I&&!E)){var M;if(m.window===m)M=m;else{var G=m.ownerDocument;G?M=G.defaultView||G.parentWindow:M=window}var H,ne;if(I){var oe=u.relatedTarget||u.toElement;if(H=i,ne=oe?Ec(oe):null,ne!==null){var ue=sr(ne);(ne!==ue||ne.tag!==L&&ne.tag!==x)&&(ne=null)}}else H=null,ne=i;if(H!==ne){var Ie=Os,qe="onMouseLeave",Je="onMouseEnter",kt="mouse";(t==="pointerout"||t==="pointerover")&&(Ie=qf,qe="onPointerLeave",Je="onPointerEnter",kt="pointer");var Tt=H==null?M:R1(H),X=ne==null?M:R1(ne),le=new Ie(qe,kt+"leave",H,u,m);le.target=Tt,le.relatedTarget=X;var J=null,Te=Ec(m);if(Te===i){var xe=new Ie(Je,kt+"enter",ne,u,m);xe.target=X,xe.relatedTarget=Tt,J=xe}y_(e,le,J,H,ne)}}}function He(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ue=typeof Object.is=="function"?Object.is:He;function Ke(e,t){if(Ue(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),u=Object.keys(t);if(i.length!==u.length)return!1;for(var m=0;m<i.length;m++){var g=i[m];if(!nn.call(t,g)||!Ue(e[g],t[g]))return!1}return!0}function ot(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qn(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Ot(e,t){for(var i=ot(e),u=0,m=0;i;){if(i.nodeType===Fo){if(m=u+i.textContent.length,u<=t&&m>=t)return{node:i,offset:t-u};u=m}i=ot(qn(i))}}function As(e){var t=e.ownerDocument,i=t&&t.defaultView||window,u=i.getSelection&&i.getSelection();if(!u||u.rangeCount===0)return null;var m=u.anchorNode,g=u.anchorOffset,T=u.focusNode,E=u.focusOffset;try{m.nodeType,T.nodeType}catch{return null}return E4(e,m,g,T,E)}function E4(e,t,i,u,m){var g=0,T=-1,E=-1,I=0,A=0,M=e,G=null;e:for(;;){for(var H=null;M===t&&(i===0||M.nodeType===Fo)&&(T=g+i),M===u&&(m===0||M.nodeType===Fo)&&(E=g+m),M.nodeType===Fo&&(g+=M.nodeValue.length),(H=M.firstChild)!==null;)G=M,M=H;for(;;){if(M===e)break e;if(G===t&&++I===i&&(T=g),G===u&&++A===m&&(E=g),(H=M.nextSibling)!==null)break;M=G,G=M.parentNode}M=H}return T===-1||E===-1?null:{start:T,end:E}}function XE(e,t){var i=e.ownerDocument||document,u=i&&i.defaultView||window;if(u.getSelection){var m=u.getSelection(),g=e.textContent.length,T=Math.min(t.start,g),E=t.end===void 0?T:Math.min(t.end,g);if(!m.extend&&T>E){var I=E;E=T,T=I}var A=Ot(e,T),M=Ot(e,E);if(A&&M){if(m.rangeCount===1&&m.anchorNode===A.node&&m.anchorOffset===A.offset&&m.focusNode===M.node&&m.focusOffset===M.offset)return;var G=i.createRange();G.setStart(A.node,A.offset),m.removeAllRanges(),T>E?(m.addRange(G),m.extend(M.node,M.offset)):(G.setEnd(M.node,M.offset),m.addRange(G))}}}function My(e){return e&&e.nodeType===Fo}function Dy(e,t){return!e||!t?!1:e===t?!0:My(e)?!1:My(t)?Dy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function JE(e){return e&&e.ownerDocument&&Dy(e.ownerDocument.documentElement,e)}function e_(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function Uy(){for(var e=window,t=md();t instanceof e.HTMLIFrameElement;){if(e_(t))e=t.contentWindow;else return t;t=md(e.document)}return t}function _4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function t_(){var e=Uy();return{focusedElem:e,selectionRange:_4(e)?a_(e):null}}function n_(e){var t=Uy(),i=e.focusedElem,u=e.selectionRange;if(t!==i&&JE(i)){u!==null&&_4(i)&&r_(i,u);for(var m=[],g=i;g=g.parentNode;)g.nodeType===Ba&&m.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof i.focus=="function"&&i.focus();for(var T=0;T<m.length;T++){var E=m[T];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}}function a_(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=As(e),t||{start:0,end:0}}function r_(e,t){var i=t.start,u=t.end;u===void 0&&(u=i),"selectionStart"in e?(e.selectionStart=i,e.selectionEnd=Math.min(u,e.value.length)):XE(e,t)}var o_=qt&&"documentMode"in document&&document.documentMode<=11;function s_(){Yt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var C1=null,I4=null,Zf=null,N4=!1;function i_(e){if("selectionStart"in e&&_4(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,i=t.getSelection();return{anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}}function l_(e){return e.window===e?e.document:e.nodeType===Jr?e:e.ownerDocument}function Fy(e,t,i){var u=l_(i);if(!(N4||C1==null||C1!==md(u))){var m=i_(C1);if(!Zf||!Ke(Zf,m)){Zf=m;var g=Xp(I4,"onSelect");if(g.length>0){var T=new ka("onSelect","select",null,t,i);e.push({event:T,listeners:g}),T.target=C1}}}}function u_(e,t,i,u,m,g,T){var E=i?R1(i):window;switch(t){case"focusin":(Kl(E)||E.contentEditable==="true")&&(C1=E,I4=i,Zf=null);break;case"focusout":C1=null,I4=null,Zf=null;break;case"mousedown":N4=!0;break;case"contextmenu":case"mouseup":case"dragend":N4=!1,Fy(e,u,m);break;case"selectionchange":if(o_)break;case"keydown":case"keyup":Fy(e,u,m)}}function Yp(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var E1={animationend:Yp("Animation","AnimationEnd"),animationiteration:Yp("Animation","AnimationIteration"),animationstart:Yp("Animation","AnimationStart"),transitionend:Yp("Transition","TransitionEnd")},R4={},Vy={};qt&&(Vy=document.createElement("div").style,"AnimationEvent"in window||(delete E1.animationend.animation,delete E1.animationiteration.animation,delete E1.animationstart.animation),"TransitionEvent"in window||delete E1.transitionend.transition);function Kp(e){if(R4[e])return R4[e];if(!E1[e])return e;var t=E1[e];for(var i in t)if(t.hasOwnProperty(i)&&i in Vy)return R4[e]=t[i];return e}var jy=Kp("animationend"),By=Kp("animationiteration"),$y=Kp("animationstart"),zy=Kp("transitionend"),Hy=new Map,qy=["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"];function Zl(e,t){Hy.set(e,t),Yt(t,[e])}function c_(){for(var e=0;e<qy.length;e++){var t=qy[e],i=t.toLowerCase(),u=t[0].toUpperCase()+t.slice(1);Zl(i,"on"+u)}Zl(jy,"onAnimationEnd"),Zl(By,"onAnimationIteration"),Zl($y,"onAnimationStart"),Zl("dblclick","onDoubleClick"),Zl("focusin","onFocus"),Zl("focusout","onBlur"),Zl(zy,"onTransitionEnd")}function d_(e,t,i,u,m,g,T){var E=Hy.get(t);if(E!==void 0){var I=ka,A=t;switch(t){case"keypress":if(Ni(u)===0)return;case"keydown":case"keyup":I=v4;break;case"focusin":A="focus",I=p1;break;case"focusout":A="blur",I=p1;break;case"beforeblur":case"afterblur":I=p1;break;case"click":if(u.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=Os;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=Oi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=Dr;break;case jy:case By:case $y:I=h1;break;case zy:I=b4;break;case"scroll":I=jf;break;case"wheel":I=y1;break;case"copy":case"cut":case"paste":I=p4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=qf;break}var M=(g&ui)!==0;{var G=!M&&t==="scroll",H=h_(i,E,u.type,M,G);if(H.length>0){var ne=new I(E,A,null,u,m);e.push({event:ne,listeners:H})}}}}c_(),ee(),w1(),s_(),qp();function m_(e,t,i,u,m,g,T){d_(e,t,i,u,m,g);var E=(g&r4)===0;E&&(ke(e,t,i,u,m),q(e,t,i,u,m),u_(e,t,i,u,m),S1(e,t,i,u,m))}var Xf=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],O4=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Xf));function Gy(e,t,i){var u=e.type||"unknown-event";e.currentTarget=i,$o(u,t,void 0,e),e.currentTarget=null}function f_(e,t,i){var u;if(i)for(var m=t.length-1;m>=0;m--){var g=t[m],T=g.instance,E=g.currentTarget,I=g.listener;if(T!==u&&e.isPropagationStopped())return;Gy(e,I,E),u=T}else for(var A=0;A<t.length;A++){var M=t[A],G=M.instance,H=M.currentTarget,ne=M.listener;if(G!==u&&e.isPropagationStopped())return;Gy(e,ne,H),u=G}}function Wy(e,t){for(var i=(t&ui)!==0,u=0;u<e.length;u++){var m=e[u],g=m.event,T=m.listeners;f_(g,T,i)}df()}function p_(e,t,i,u,m){var g=Ed(i),T=[];m_(T,e,u,i,g,t),Wy(T,t)}function on(e,t){O4.has(e)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var i=!1,u=HI(t),m=v_(e);u.has(m)||(Qy(t,e,Gu,i),u.add(m))}function L4(e,t,i){O4.has(e)&&!t&&f('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=ui),Qy(i,e,u,t)}var Zp="_reactListening"+Math.random().toString(36).slice(2);function Jf(e){if(!e[Zp]){e[Zp]=!0,tt.forEach(function(i){i!=="selectionchange"&&(O4.has(i)||L4(i,!1,e),L4(i,!0,e))});var t=e.nodeType===Jr?e:e.ownerDocument;t!==null&&(t[Zp]||(t[Zp]=!0,L4("selectionchange",!1,t)))}}function Qy(e,t,i,u,m){var g=zl(e,t,i),T=void 0;Zu&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(T=!0),e=e,u?T!==void 0?Ko(e,t,g,T):ql(e,t,g):T!==void 0?d1(e,t,g,T):Vf(e,t,g)}function Yy(e,t){return e===t||e.nodeType===kn&&e.parentNode===t}function A4(e,t,i,u,m){var g=u;if(!(t&jo)&&!(t&Gu)){var T=m;if(u!==null){var E=u;e:for(;;){if(E===null)return;var I=E.tag;if(I===N||I===O){var A=E.stateNode.containerInfo;if(Yy(A,T))break;if(I===O)for(var M=E.return;M!==null;){var G=M.tag;if(G===N||G===O){var H=M.stateNode.containerInfo;if(Yy(H,T))return}M=M.return}for(;A!==null;){var ne=Ec(A);if(ne===null)return;var oe=ne.tag;if(oe===L||oe===x){E=g=ne;continue e}A=A.parentNode}}E=E.return}}}sf(function(){return p_(e,t,i,g)})}function e0(e,t,i){return{instance:e,listener:t,currentTarget:i}}function h_(e,t,i,u,m,g){for(var T=t!==null?t+"Capture":null,E=u?T:t,I=[],A=e,M=null;A!==null;){var G=A,H=G.stateNode,ne=G.tag;if(ne===L&&H!==null&&(M=H,E!==null)){var oe=di(A,E);oe!=null&&I.push(e0(A,oe,M))}if(m)break;A=A.return}return I}function Xp(e,t){for(var i=t+"Capture",u=[],m=e;m!==null;){var g=m,T=g.stateNode,E=g.tag;if(E===L&&T!==null){var I=T,A=di(m,i);A!=null&&u.unshift(e0(m,A,I));var M=di(m,t);M!=null&&u.push(e0(m,M,I))}m=m.return}return u}function _1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==L);return e||null}function g_(e,t){for(var i=e,u=t,m=0,g=i;g;g=_1(g))m++;for(var T=0,E=u;E;E=_1(E))T++;for(;m-T>0;)i=_1(i),m--;for(;T-m>0;)u=_1(u),T--;for(var I=m;I--;){if(i===u||u!==null&&i===u.alternate)return i;i=_1(i),u=_1(u)}return null}function Ky(e,t,i,u,m){for(var g=t._reactName,T=[],E=i;E!==null&&E!==u;){var I=E,A=I.alternate,M=I.stateNode,G=I.tag;if(A!==null&&A===u)break;if(G===L&&M!==null){var H=M;if(m){var ne=di(E,g);ne!=null&&T.unshift(e0(E,ne,H))}else if(!m){var oe=di(E,g);oe!=null&&T.push(e0(E,oe,H))}}E=E.return}T.length!==0&&e.push({event:t,listeners:T})}function y_(e,t,i,u,m){var g=u&&m?g_(u,m):null;u!==null&&Ky(e,t,u,g,!1),m!==null&&i!==null&&Ky(e,i,m,g,!0)}function v_(e,t){return e+"__bubble"}var Ur=!1,t0="dangerouslySetInnerHTML",Jp="suppressContentEditableWarning",Xl="suppressHydrationWarning",Zy="autoFocus",wc="children",Cc="style",e3="__html",x4,t3,n0,Xy,n3,Jy,e7;x4={dialog:!0,webview:!0},t3=function(e,t){Cd(e,t),tf(e,t),ip(e,t,{registrationNameDependencies:lt,possibleRegistrationNames:_t})},Jy=qt&&!document.documentMode,n0=function(e,t,i){if(!Ur){var u=a3(i),m=a3(t);m!==u&&(Ur=!0,f("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(m),JSON.stringify(u)))}},Xy=function(e){if(!Ur){Ur=!0;var t=[];e.forEach(function(i){t.push(i)}),f("Extra attributes from the server: %s",t)}},n3=function(e,t){t===!1?f("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},e7=function(e,t){var i=e.namespaceURI===Uo?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return i.innerHTML=t,i.innerHTML};var T_=/\r\n?/g,b_=/\u0000|\uFFFD/g;function a3(e){xo(e);var t=typeof e=="string"?e:""+e;return t.replace(T_,`
64
- `).replace(b_,"")}function r3(e,t,i,u){var m=a3(t),g=a3(e);if(g!==m&&(u&&(Ur||(Ur=!0,f('Text content did not match. Server: "%s" Client: "%s"',g,m))),i&&Qn))throw new Error("Text content does not match server-rendered HTML.")}function t7(e){return e.nodeType===Jr?e:e.ownerDocument}function k_(){}function o3(e){e.onclick=k_}function S_(e,t,i,u,m){for(var g in u)if(u.hasOwnProperty(g)){var T=u[g];if(g===Cc)T&&Object.freeze(T),Z2(t,T);else if(g===t0){var E=T?T[e3]:void 0;E!=null&&j2(t,E)}else if(g===wc)if(typeof T=="string"){var I=e!=="textarea"||T!=="";I&&bd(t,T)}else typeof T=="number"&&bd(t,""+T);else g===Jp||g===Xl||g===Zy||(lt.hasOwnProperty(g)?T!=null&&(typeof T!="function"&&n3(g,T),g==="onScroll"&&on("scroll",t)):T!=null&&ai(t,g,T,m))}}function w_(e,t,i,u){for(var m=0;m<t.length;m+=2){var g=t[m],T=t[m+1];g===Cc?Z2(e,T):g===t0?j2(e,T):g===wc?bd(e,T):ai(e,g,T,u)}}function C_(e,t,i,u){var m,g=t7(i),T,E=u;if(E===Uo&&(E=vd(e)),E===Uo){if(m=Vo(e,t),!m&&e!==e.toLowerCase()&&f("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var I=g.createElement("div");I.innerHTML="<script><\/script>";var A=I.firstChild;T=I.removeChild(A)}else if(typeof t.is=="string")T=g.createElement(e,{is:t.is});else if(T=g.createElement(e),e==="select"){var M=T;t.multiple?M.multiple=!0:t.size&&(M.size=t.size)}}else T=g.createElementNS(E,e);return E===Uo&&!m&&Object.prototype.toString.call(T)==="[object HTMLUnknownElement]"&&!nn.call(x4,e)&&(x4[e]=!0,f("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),T}function E_(e,t){return t7(t).createTextNode(e)}function __(e,t,i,u){var m=Vo(t,i);t3(t,i);var g;switch(t){case"dialog":on("cancel",e),on("close",e),g=i;break;case"iframe":case"object":case"embed":on("load",e),g=i;break;case"video":case"audio":for(var T=0;T<Xf.length;T++)on(Xf[T],e);g=i;break;case"source":on("error",e),g=i;break;case"img":case"image":case"link":on("error",e),on("load",e),g=i;break;case"details":on("toggle",e),g=i;break;case"input":ju(e,i),g=Vu(e,i),on("invalid",e);break;case"option":gd(e,i),g=i;break;case"select":D2(e,i),g=Hm(e,i),on("invalid",e);break;case"textarea":U2(e,i),g=Gm(e,i),on("invalid",e);break;default:g=i}switch(Sd(t,g),S_(t,e,u,g,m),t){case"input":si(e),Bu(e,i,!1);break;case"textarea":si(e),V2(e);break;case"option":zm(e,i);break;case"select":W6(e,i);break;default:typeof g.onClick=="function"&&o3(e);break}}function I_(e,t,i,u,m){t3(t,u);var g=null,T,E;switch(t){case"input":T=Vu(e,i),E=Vu(e,u),g=[];break;case"select":T=Hm(e,i),E=Hm(e,u),g=[];break;case"textarea":T=Gm(e,i),E=Gm(e,u),g=[];break;default:T=i,E=u,typeof T.onClick!="function"&&typeof E.onClick=="function"&&o3(e);break}Sd(t,E);var I,A,M=null;for(I in T)if(!(E.hasOwnProperty(I)||!T.hasOwnProperty(I)||T[I]==null))if(I===Cc){var G=T[I];for(A in G)G.hasOwnProperty(A)&&(M||(M={}),M[A]="")}else I===t0||I===wc||I===Jp||I===Xl||I===Zy||(lt.hasOwnProperty(I)?g||(g=[]):(g=g||[]).push(I,null));for(I in E){var H=E[I],ne=T!=null?T[I]:void 0;if(!(!E.hasOwnProperty(I)||H===ne||H==null&&ne==null))if(I===Cc)if(H&&Object.freeze(H),ne){for(A in ne)ne.hasOwnProperty(A)&&(!H||!H.hasOwnProperty(A))&&(M||(M={}),M[A]="");for(A in H)H.hasOwnProperty(A)&&ne[A]!==H[A]&&(M||(M={}),M[A]=H[A])}else M||(g||(g=[]),g.push(I,M)),M=H;else if(I===t0){var oe=H?H[e3]:void 0,ue=ne?ne[e3]:void 0;oe!=null&&ue!==oe&&(g=g||[]).push(I,oe)}else I===wc?(typeof H=="string"||typeof H=="number")&&(g=g||[]).push(I,""+H):I===Jp||I===Xl||(lt.hasOwnProperty(I)?(H!=null&&(typeof H!="function"&&n3(I,H),I==="onScroll"&&on("scroll",e)),!g&&ne!==H&&(g=[])):(g=g||[]).push(I,H))}return M&&(Hu(M,E[Cc]),(g=g||[]).push(Cc,M)),g}function N_(e,t,i,u,m){i==="input"&&m.type==="radio"&&m.name!=null&&$m(e,m);var g=Vo(i,u),T=Vo(i,m);switch(w_(e,t,g,T),i){case"input":hl(e,m);break;case"textarea":F2(e,m);break;case"select":Q6(e,m);break}}function R_(e){{var t=e.toLowerCase();return wd.hasOwnProperty(t)&&wd[t]||null}}function O_(e,t,i,u,m,g,T){var E,I;switch(E=Vo(t,i),t3(t,i),t){case"dialog":on("cancel",e),on("close",e);break;case"iframe":case"object":case"embed":on("load",e);break;case"video":case"audio":for(var A=0;A<Xf.length;A++)on(Xf[A],e);break;case"source":on("error",e);break;case"img":case"image":case"link":on("error",e),on("load",e);break;case"details":on("toggle",e);break;case"input":ju(e,i),on("invalid",e);break;case"option":gd(e,i);break;case"select":D2(e,i),on("invalid",e);break;case"textarea":U2(e,i),on("invalid",e);break}Sd(t,i);{I=new Set;for(var M=e.attributes,G=0;G<M.length;G++){var H=M[G].name.toLowerCase();switch(H){case"value":break;case"checked":break;case"selected":break;default:I.add(M[G].name)}}}var ne=null;for(var oe in i)if(i.hasOwnProperty(oe)){var ue=i[oe];if(oe===wc)typeof ue=="string"?e.textContent!==ue&&(i[Xl]!==!0&&r3(e.textContent,ue,g,T),ne=[wc,ue]):typeof ue=="number"&&e.textContent!==""+ue&&(i[Xl]!==!0&&r3(e.textContent,ue,g,T),ne=[wc,""+ue]);else if(lt.hasOwnProperty(oe))ue!=null&&(typeof ue!="function"&&n3(oe,ue),oe==="onScroll"&&on("scroll",e));else if(T&&typeof E=="boolean"){var Ie=void 0,qe=E&&se?null:Nu(oe);if(i[Xl]!==!0&&!(oe===Jp||oe===Xl||oe==="value"||oe==="checked"||oe==="selected")){if(oe===t0){var Je=e.innerHTML,kt=ue?ue[e3]:void 0;if(kt!=null){var Tt=e7(e,kt);Tt!==Je&&n0(oe,Je,Tt)}}else if(oe===Cc){if(I.delete(oe),Jy){var X=n4(ue);Ie=e.getAttribute("style"),X!==Ie&&n0(oe,Ie,X)}}else if(E&&!se)I.delete(oe.toLowerCase()),Ie=id(e,oe,ue),ue!==Ie&&n0(oe,Ie,ue);else if(!Qr(oe,qe,E)&&!br(oe,ue,qe,E)){var le=!1;if(qe!==null)I.delete(qe.attributeName),Ie=Ru(e,oe,ue,qe);else{var J=u;if(J===Uo&&(J=vd(t)),J===Uo)I.delete(oe.toLowerCase());else{var Te=R_(oe);Te!==null&&Te!==oe&&(le=!0,I.delete(Te)),I.delete(oe)}Ie=id(e,oe,ue)}var xe=se;!xe&&ue!==Ie&&!le&&n0(oe,Ie,ue)}}}}switch(T&&I.size>0&&i[Xl]!==!0&&Xy(I),t){case"input":si(e),Bu(e,i,!0);break;case"textarea":si(e),V2(e);break;case"select":case"option":break;default:typeof i.onClick=="function"&&o3(e);break}return ne}function L_(e,t,i){var u=e.nodeValue!==t;return u}function P4(e,t){{if(Ur)return;Ur=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function M4(e,t){{if(Ur)return;Ur=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function D4(e,t,i){{if(Ur)return;Ur=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function U4(e,t){{if(t===""||Ur)return;Ur=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function A_(e,t,i){switch(t){case"input":A2(e,i);return;case"textarea":Wm(e,i);return;case"select":Y6(e,i);return}}var a0=function(){},r0=function(){};{var x_=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],n7=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],P_=n7.concat(["button"]),M_=["dd","dt","li","option","optgroup","p","rp","rt"],a7={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};r0=function(e,t){var i=Ct({},e||a7),u={tag:t};return n7.indexOf(t)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),P_.indexOf(t)!==-1&&(i.pTagInButtonScope=null),x_.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(i.listItemTagAutoclosing=null,i.dlItemTagAutoclosing=null),i.current=u,t==="form"&&(i.formTag=u),t==="a"&&(i.aTagInScope=u),t==="button"&&(i.buttonTagInScope=u),t==="nobr"&&(i.nobrTagInScope=u),t==="p"&&(i.pTagInButtonScope=u),t==="li"&&(i.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(i.dlItemTagAutoclosing=u),i};var D_=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return M_.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},U_=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},r7={};a0=function(e,t,i){i=i||a7;var u=i.current,m=u&&u.tag;t!=null&&(e!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var g=D_(e,m)?null:u,T=g?null:U_(e,i),E=g||T;if(E){var I=E.tag,A=!!g+"|"+e+"|"+I;if(!r7[A]){r7[A]=!0;var M=e,G="";if(e==="#text"?/\S/.test(t)?M="Text nodes":(M="Whitespace text nodes",G=" Make sure you don't have any extra whitespace between tags on each line of your source code."):M="<"+e+">",g){var H="";I==="table"&&e==="tr"&&(H+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",M,I,G,H)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",M,I)}}}}var s3="suppressHydrationWarning",i3="$",l3="/$",o0="$?",s0="$!",F_="style",F4=null,V4=null;function V_(e){var t,i,u=e.nodeType;switch(u){case Jr:case ii:{t=u===Jr?"#document":"#fragment";var m=e.documentElement;i=m?m.namespaceURI:Ym(null,"");break}default:{var g=u===kn?e.parentNode:e,T=g.namespaceURI||null;t=g.tagName,i=Ym(T,t);break}}{var E=t.toLowerCase(),I=r0(null,E);return{namespace:i,ancestorInfo:I}}}function j_(e,t,i){{var u=e,m=Ym(u.namespace,t),g=r0(u.ancestorInfo,t);return{namespace:m,ancestorInfo:g}}}function B_(e){F4=dr(),V4=t_();var t=null;return Hn(!1),t}function $_(e){n_(V4),Hn(F4),F4=null,V4=null}function z_(e,t,i,u,m){var g;{var T=u;if(a0(e,null,T.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var E=""+t.children,I=r0(T.ancestorInfo,e);a0(null,E,I)}g=T.namespace}var A=C_(e,t,i,g);return u0(m,A),W4(A,t),A}function H_(e,t){e.appendChild(t)}function q_(e,t,i,u,m){switch(__(e,t,i,u),t){case"button":case"input":case"select":case"textarea":return!!i.autoFocus;case"img":return!0;default:return!1}}function G_(e,t,i,u,m,g){{var T=g;if(typeof u.children!=typeof i.children&&(typeof u.children=="string"||typeof u.children=="number")){var E=""+u.children,I=r0(T.ancestorInfo,t);a0(null,E,I)}}return I_(e,t,i,u)}function j4(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function W_(e,t,i,u){{var m=i;a0(null,e,m.ancestorInfo)}var g=E_(e,t);return u0(u,g),g}function Q_(){var e=window.event;return e===void 0?Wo:_a(e.type)}var B4=typeof setTimeout=="function"?setTimeout:void 0,Y_=typeof clearTimeout=="function"?clearTimeout:void 0,$4=-1,o7=typeof Promise=="function"?Promise:void 0,K_=typeof queueMicrotask=="function"?queueMicrotask:typeof o7<"u"?function(e){return o7.resolve(null).then(e).catch(Z_)}:B4;function Z_(e){setTimeout(function(){throw e})}function X_(e,t,i,u){switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&e.focus();return;case"img":{i.src&&(e.src=i.src);return}}}function J_(e,t,i,u,m,g){N_(e,t,i,u,m),W4(e,m)}function s7(e){bd(e,"")}function eI(e,t,i){e.nodeValue=i}function tI(e,t){e.appendChild(t)}function nI(e,t){var i;e.nodeType===kn?(i=e.parentNode,i.insertBefore(t,e)):(i=e,i.appendChild(t));var u=e._reactRootContainer;u==null&&i.onclick===null&&o3(i)}function aI(e,t,i){e.insertBefore(t,i)}function rI(e,t,i){e.nodeType===kn?e.parentNode.insertBefore(t,i):e.insertBefore(t,i)}function oI(e,t){e.removeChild(t)}function sI(e,t){e.nodeType===kn?e.parentNode.removeChild(t):e.removeChild(t)}function z4(e,t){var i=t,u=0;do{var m=i.nextSibling;if(e.removeChild(i),m&&m.nodeType===kn){var g=m.data;if(g===l3)if(u===0){e.removeChild(m),Et(t);return}else u--;else(g===i3||g===o0||g===s0)&&u++}i=m}while(i);Et(t)}function iI(e,t){e.nodeType===kn?z4(e.parentNode,t):e.nodeType===Ba&&z4(e,t),Et(e)}function lI(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function uI(e){e.nodeValue=""}function cI(e,t){e=e;var i=t[F_],u=i!=null&&i.hasOwnProperty("display")?i.display:null;e.style.display=kd("display",u)}function dI(e,t){e.nodeValue=t}function mI(e){e.nodeType===Ba?e.textContent="":e.nodeType===Jr&&e.documentElement&&e.removeChild(e.documentElement)}function fI(e,t,i){return e.nodeType!==Ba||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function pI(e,t){return t===""||e.nodeType!==Fo?null:e}function hI(e){return e.nodeType!==kn?null:e}function i7(e){return e.data===o0}function H4(e){return e.data===s0}function gI(e){var t=e.nextSibling&&e.nextSibling.dataset,i,u,m;return t&&(i=t.dgst,u=t.msg,m=t.stck),{message:u,digest:i,stack:m}}function yI(e,t){e._reactRetry=t}function u3(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Ba||t===Fo)break;if(t===kn){var i=e.data;if(i===i3||i===s0||i===o0)break;if(i===l3)return null}}return e}function i0(e){return u3(e.nextSibling)}function vI(e){return u3(e.firstChild)}function TI(e){return u3(e.firstChild)}function bI(e){return u3(e.nextSibling)}function kI(e,t,i,u,m,g,T){u0(g,e),W4(e,i);var E;{var I=m;E=I.namespace}var A=(g.mode&ze)!==$e;return O_(e,t,i,E,u,A,T)}function SI(e,t,i,u){return u0(i,e),i.mode&ze,L_(e,t)}function wI(e,t){u0(t,e)}function CI(e){for(var t=e.nextSibling,i=0;t;){if(t.nodeType===kn){var u=t.data;if(u===l3){if(i===0)return i0(t);i--}else(u===i3||u===s0||u===o0)&&i++}t=t.nextSibling}return null}function l7(e){for(var t=e.previousSibling,i=0;t;){if(t.nodeType===kn){var u=t.data;if(u===i3||u===s0||u===o0){if(i===0)return t;i--}else u===l3&&i++}t=t.previousSibling}return null}function EI(e){Et(e)}function _I(e){Et(e)}function II(e){return e!=="head"&&e!=="body"}function NI(e,t,i,u){var m=!0;r3(t.nodeValue,i,u,m)}function RI(e,t,i,u,m,g){if(t[s3]!==!0){var T=!0;r3(u.nodeValue,m,g,T)}}function OI(e,t){t.nodeType===Ba?P4(e,t):t.nodeType===kn||M4(e,t)}function LI(e,t){{var i=e.parentNode;i!==null&&(t.nodeType===Ba?P4(i,t):t.nodeType===kn||M4(i,t))}}function AI(e,t,i,u,m){(m||t[s3]!==!0)&&(u.nodeType===Ba?P4(i,u):u.nodeType===kn||M4(i,u))}function xI(e,t,i){D4(e,t)}function PI(e,t){U4(e,t)}function MI(e,t,i){{var u=e.parentNode;u!==null&&D4(u,t)}}function DI(e,t){{var i=e.parentNode;i!==null&&U4(i,t)}}function UI(e,t,i,u,m,g){(g||t[s3]!==!0)&&D4(i,u)}function FI(e,t,i,u,m){(m||t[s3]!==!0)&&U4(i,u)}function VI(e){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function jI(e){Jf(e)}var I1=Math.random().toString(36).slice(2),N1="__reactFiber$"+I1,q4="__reactProps$"+I1,l0="__reactContainer$"+I1,G4="__reactEvents$"+I1,BI="__reactListeners$"+I1,$I="__reactHandles$"+I1;function zI(e){delete e[N1],delete e[q4],delete e[G4],delete e[BI],delete e[$I]}function u0(e,t){t[N1]=e}function c3(e,t){t[l0]=e}function u7(e){e[l0]=null}function c0(e){return!!e[l0]}function Ec(e){var t=e[N1];if(t)return t;for(var i=e.parentNode;i;){if(t=i[l0]||i[N1],t){var u=t.alternate;if(t.child!==null||u!==null&&u.child!==null)for(var m=l7(e);m!==null;){var g=m[N1];if(g)return g;m=l7(m)}return t}e=i,i=e.parentNode}return null}function Jl(e){var t=e[N1]||e[l0];return t&&(t.tag===L||t.tag===x||t.tag===te||t.tag===N)?t:null}function R1(e){if(e.tag===L||e.tag===x)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function d3(e){return e[q4]||null}function W4(e,t){e[q4]=t}function HI(e){var t=e[G4];return t===void 0&&(t=e[G4]=new Set),t}var c7={},d7=o.ReactDebugCurrentFrame;function m3(e){if(e){var t=e._owner,i=xu(e.type,e._source,t?t.type:null);d7.setExtraStackFrame(i)}else d7.setExtraStackFrame(null)}function Xo(e,t,i,u,m){{var g=Function.call.bind(nn);for(var T in e)if(g(e,T)){var E=void 0;try{if(typeof e[T]!="function"){var I=Error((u||"React class")+": "+i+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}E=e[T](t,T,u,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A){E=A}E&&!(E instanceof Error)&&(m3(m),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",i,T,typeof E),m3(null)),E instanceof Error&&!(E.message in c7)&&(c7[E.message]=!0,m3(m),f("Failed %s type: %s",i,E.message),m3(null))}}}var Q4=[],f3;f3=[];var Pi=-1;function eu(e){return{current:e}}function Za(e,t){if(Pi<0){f("Unexpected pop.");return}t!==f3[Pi]&&f("Unexpected Fiber popped."),e.current=Q4[Pi],Q4[Pi]=null,f3[Pi]=null,Pi--}function Xa(e,t,i){Pi++,Q4[Pi]=e.current,f3[Pi]=i,e.current=t}var Y4;Y4={};var ro={};Object.freeze(ro);var Mi=eu(ro),xs=eu(!1),K4=ro;function O1(e,t,i){return i&&Ps(t)?K4:Mi.current}function m7(e,t,i){{var u=e.stateNode;u.__reactInternalMemoizedUnmaskedChildContext=t,u.__reactInternalMemoizedMaskedChildContext=i}}function L1(e,t){{var i=e.type,u=i.contextTypes;if(!u)return ro;var m=e.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===t)return m.__reactInternalMemoizedMaskedChildContext;var g={};for(var T in u)g[T]=t[T];{var E=ft(e)||"Unknown";Xo(u,g,"context",E)}return m&&m7(e,t,g),g}}function p3(){return xs.current}function Ps(e){{var t=e.childContextTypes;return t!=null}}function h3(e){Za(xs,e),Za(Mi,e)}function Z4(e){Za(xs,e),Za(Mi,e)}function f7(e,t,i){{if(Mi.current!==ro)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Xa(Mi,t,e),Xa(xs,i,e)}}function p7(e,t,i){{var u=e.stateNode,m=t.childContextTypes;if(typeof u.getChildContext!="function"){{var g=ft(e)||"Unknown";Y4[g]||(Y4[g]=!0,f("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",g,g))}return i}var T=u.getChildContext();for(var E in T)if(!(E in m))throw new Error((ft(e)||"Unknown")+'.getChildContext(): key "'+E+'" is not defined in childContextTypes.');{var I=ft(e)||"Unknown";Xo(m,T,"child context",I)}return Ct({},i,T)}}function g3(e){{var t=e.stateNode,i=t&&t.__reactInternalMemoizedMergedChildContext||ro;return K4=Mi.current,Xa(Mi,i,e),Xa(xs,xs.current,e),!0}}function h7(e,t,i){{var u=e.stateNode;if(!u)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(i){var m=p7(e,t,K4);u.__reactInternalMemoizedMergedChildContext=m,Za(xs,e),Za(Mi,e),Xa(Mi,m,e),Xa(xs,i,e)}else Za(xs,e),Xa(xs,i,e)}}function qI(e){{if(!gf(e)||e.tag!==C)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case N:return t.stateNode.context;case C:{var i=t.type;if(Ps(i))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var tu=0,y3=1,Di=null,X4=!1,J4=!1;function g7(e){Di===null?Di=[e]:Di.push(e)}function GI(e){X4=!0,g7(e)}function y7(){X4&&nu()}function nu(){if(!J4&&Di!==null){J4=!0;var e=0,t=xr();try{var i=!0,u=Di;for(An(ga);e<u.length;e++){var m=u[e];do m=m(i);while(m!==null)}Di=null,X4=!1}catch(g){throw Di!==null&&(Di=Di.slice(e+1)),Ad(Pd,nu),g}finally{An(t),J4=!1}}return null}var A1=[],x1=0,v3=null,T3=0,ko=[],So=0,_c=null,Ui=1,Fi="";function WI(e){return Nc(),(e.flags&ff)!==Ze}function QI(e){return Nc(),T3}function YI(){var e=Fi,t=Ui,i=t&~KI(t);return i.toString(32)+e}function Ic(e,t){Nc(),A1[x1++]=T3,A1[x1++]=v3,v3=e,T3=t}function v7(e,t,i){Nc(),ko[So++]=Ui,ko[So++]=Fi,ko[So++]=_c,_c=e;var u=Ui,m=Fi,g=b3(u)-1,T=u&~(1<<g),E=i+1,I=b3(t)+g;if(I>30){var A=g-g%5,M=(1<<A)-1,G=(T&M).toString(32),H=T>>A,ne=g-A,oe=b3(t)+ne,ue=E<<ne,Ie=ue|H,qe=G+m;Ui=1<<oe|Ie,Fi=qe}else{var Je=E<<g,kt=Je|T,Tt=m;Ui=1<<I|kt,Fi=Tt}}function e8(e){Nc();var t=e.return;if(t!==null){var i=1,u=0;Ic(e,i),v7(e,i,u)}}function b3(e){return 32-Ol(e)}function KI(e){return 1<<b3(e)-1}function t8(e){for(;e===v3;)v3=A1[--x1],A1[x1]=null,T3=A1[--x1],A1[x1]=null;for(;e===_c;)_c=ko[--So],ko[So]=null,Fi=ko[--So],ko[So]=null,Ui=ko[--So],ko[So]=null}function ZI(){return Nc(),_c!==null?{id:Ui,overflow:Fi}:null}function XI(e,t){Nc(),ko[So++]=Ui,ko[So++]=Fi,ko[So++]=_c,Ui=t.id,Fi=t.overflow,_c=e}function Nc(){Na()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ia=null,wo=null,Jo=!1,Rc=!1,au=null;function JI(){Jo&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function T7(){Rc=!0}function eN(){return Rc}function tN(e){var t=e.stateNode.containerInfo;return wo=TI(t),Ia=e,Jo=!0,au=null,Rc=!1,!0}function nN(e,t,i){return wo=bI(t),Ia=e,Jo=!0,au=null,Rc=!1,i!==null&&XI(e,i),!0}function b7(e,t){switch(e.tag){case N:{OI(e.stateNode.containerInfo,t);break}case L:{var i=(e.mode&ze)!==$e;AI(e.type,e.memoizedProps,e.stateNode,t,i);break}case te:{var u=e.memoizedState;u.dehydrated!==null&&LI(u.dehydrated,t);break}}}function k7(e,t){b7(e,t);var i=sL();i.stateNode=t,i.return=e;var u=e.deletions;u===null?(e.deletions=[i],e.flags|=Pt):u.push(i)}function n8(e,t){{if(Rc)return;switch(e.tag){case N:{var i=e.stateNode.containerInfo;switch(t.tag){case L:var u=t.type;t.pendingProps,xI(i,u);break;case x:var m=t.pendingProps;PI(i,m);break}break}case L:{var g=e.type,T=e.memoizedProps,E=e.stateNode;switch(t.tag){case L:{var I=t.type,A=t.pendingProps,M=(e.mode&ze)!==$e;UI(g,T,E,I,A,M);break}case x:{var G=t.pendingProps,H=(e.mode&ze)!==$e;FI(g,T,E,G,H);break}}break}case te:{var ne=e.memoizedState,oe=ne.dehydrated;if(oe!==null)switch(t.tag){case L:var ue=t.type;t.pendingProps,MI(oe,ue);break;case x:var Ie=t.pendingProps;DI(oe,Ie);break}break}default:return}}}function S7(e,t){t.flags=t.flags&~Ir|Kt,n8(e,t)}function w7(e,t){switch(e.tag){case L:{var i=e.type;e.pendingProps;var u=fI(t,i);return u!==null?(e.stateNode=u,Ia=e,wo=vI(u),!0):!1}case x:{var m=e.pendingProps,g=pI(t,m);return g!==null?(e.stateNode=g,Ia=e,wo=null,!0):!1}case te:{var T=hI(t);if(T!==null){var E={dehydrated:T,treeContext:ZI(),retryLane:ha};e.memoizedState=E;var I=iL(T);return I.return=e,e.child=I,Ia=e,wo=null,!0}return!1}default:return!1}}function a8(e){return(e.mode&ze)!==$e&&(e.flags&at)===Ze}function r8(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function o8(e){if(Jo){var t=wo;if(!t){a8(e)&&(n8(Ia,e),r8()),S7(Ia,e),Jo=!1,Ia=e;return}var i=t;if(!w7(e,t)){a8(e)&&(n8(Ia,e),r8()),t=i0(i);var u=Ia;if(!t||!w7(e,t)){S7(Ia,e),Jo=!1,Ia=e;return}k7(u,i)}}}function aN(e,t,i){var u=e.stateNode,m=!Rc,g=kI(u,e.type,e.memoizedProps,t,i,e,m);return e.updateQueue=g,g!==null}function rN(e){var t=e.stateNode,i=e.memoizedProps,u=SI(t,i,e);if(u){var m=Ia;if(m!==null)switch(m.tag){case N:{var g=m.stateNode.containerInfo,T=(m.mode&ze)!==$e;NI(g,t,i,T);break}case L:{var E=m.type,I=m.memoizedProps,A=m.stateNode,M=(m.mode&ze)!==$e;RI(E,I,A,t,i,M);break}}}return u}function oN(e){var t=e.memoizedState,i=t!==null?t.dehydrated:null;if(!i)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");wI(i,e)}function sN(e){var t=e.memoizedState,i=t!==null?t.dehydrated:null;if(!i)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return CI(i)}function C7(e){for(var t=e.return;t!==null&&t.tag!==L&&t.tag!==N&&t.tag!==te;)t=t.return;Ia=t}function k3(e){if(e!==Ia)return!1;if(!Jo)return C7(e),Jo=!0,!1;if(e.tag!==N&&(e.tag!==L||II(e.type)&&!j4(e.type,e.memoizedProps))){var t=wo;if(t)if(a8(e))E7(e),r8();else for(;t;)k7(e,t),t=i0(t)}return C7(e),e.tag===te?wo=sN(e):wo=Ia?i0(e.stateNode):null,!0}function iN(){return Jo&&wo!==null}function E7(e){for(var t=wo;t;)b7(e,t),t=i0(t)}function P1(){Ia=null,wo=null,Jo=!1,Rc=!1}function _7(){au!==null&&(TT(au),au=null)}function Na(){return Jo}function s8(e){au===null?au=[e]:au.push(e)}var lN=o.ReactCurrentBatchConfig,uN=null;function cN(){return lN.transition}var es={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var dN=function(e){for(var t=null,i=e;i!==null;)i.mode&bt&&(t=i),i=i.return;return t},Oc=function(e){var t=[];return e.forEach(function(i){t.push(i)}),t.sort().join(", ")},d0=[],m0=[],f0=[],p0=[],h0=[],g0=[],Lc=new Set;es.recordUnsafeLifecycleWarnings=function(e,t){Lc.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&d0.push(e),e.mode&bt&&typeof t.UNSAFE_componentWillMount=="function"&&m0.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&f0.push(e),e.mode&bt&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&p0.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&h0.push(e),e.mode&bt&&typeof t.UNSAFE_componentWillUpdate=="function"&&g0.push(e))},es.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;d0.length>0&&(d0.forEach(function(H){e.add(ft(H)||"Component"),Lc.add(H.type)}),d0=[]);var t=new Set;m0.length>0&&(m0.forEach(function(H){t.add(ft(H)||"Component"),Lc.add(H.type)}),m0=[]);var i=new Set;f0.length>0&&(f0.forEach(function(H){i.add(ft(H)||"Component"),Lc.add(H.type)}),f0=[]);var u=new Set;p0.length>0&&(p0.forEach(function(H){u.add(ft(H)||"Component"),Lc.add(H.type)}),p0=[]);var m=new Set;h0.length>0&&(h0.forEach(function(H){m.add(ft(H)||"Component"),Lc.add(H.type)}),h0=[]);var g=new Set;if(g0.length>0&&(g0.forEach(function(H){g.add(ft(H)||"Component"),Lc.add(H.type)}),g0=[]),t.size>0){var T=Oc(t);f(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
63
+ */function C4(e){if(!qt)return!1;var t="on"+e,i=t in document;if(!i){var u=document.createElement("div");u.setAttribute(t,"return;"),i=typeof u[t]=="function"}return i}function w1(){Yt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function r(e,t,i,u){_d(u);var m=Xp(t,"onChange");if(m.length>0){var g=new ka("onChange","change",null,i,u);e.push({event:g,listeners:m})}}var s=null,d=null;function h(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function v(e){var t=[];r(t,d,e,Ed(e)),sf(S,t)}function S(e){Wy(e,0)}function R(e){var t=R1(e);if(L2(t))return e}function F(e,t){if(e==="change")return t}var $=!1;qt&&($=C4("input")&&(!document.documentMode||document.documentMode>9));function re(e,t){s=e,d=t,s.attachEvent("onpropertychange",ve)}function he(){s&&(s.detachEvent("onpropertychange",ve),s=null,d=null)}function ve(e){e.propertyName==="value"&&R(d)&&v(e)}function ge(e,t,i){e==="focusin"?(he(),re(t,i)):e==="focusout"&&he()}function Le(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return R(d)}function De(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Ve(e,t){if(e==="click")return R(t)}function hn(e,t){if(e==="input"||e==="change")return R(t)}function K(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||hs(e,"number",e.value)}function q(e,t,i,u,m,g,T){var E=i?R1(i):window,I,A;if(h(E)?I=F:Kl(E)?$?I=hn:(I=Le,A=ge):De(E)&&(I=Ve),I){var M=I(t,i);if(M){r(e,M,u,m);return}}A&&A(t,E,i),t==="focusout"&&K(E)}function ee(){In("onMouseEnter",["mouseout","mouseover"]),In("onMouseLeave",["mouseout","mouseover"]),In("onPointerEnter",["pointerout","pointerover"]),In("onPointerLeave",["pointerout","pointerover"])}function ke(e,t,i,u,m,g,T){var E=t==="mouseover"||t==="pointerover",I=t==="mouseout"||t==="pointerout";if(E&&!lp(u)){var A=u.relatedTarget||u.fromElement;if(A&&(Ec(A)||c0(A)))return}if(!(!I&&!E)){var M;if(m.window===m)M=m;else{var G=m.ownerDocument;G?M=G.defaultView||G.parentWindow:M=window}var H,ne;if(I){var oe=u.relatedTarget||u.toElement;if(H=i,ne=oe?Ec(oe):null,ne!==null){var ue=sr(ne);(ne!==ue||ne.tag!==L&&ne.tag!==x)&&(ne=null)}}else H=null,ne=i;if(H!==ne){var Ie=Os,qe="onMouseLeave",Je="onMouseEnter",kt="mouse";(t==="pointerout"||t==="pointerover")&&(Ie=qf,qe="onPointerLeave",Je="onPointerEnter",kt="pointer");var Tt=H==null?M:R1(H),X=ne==null?M:R1(ne),le=new Ie(qe,kt+"leave",H,u,m);le.target=Tt,le.relatedTarget=X;var J=null,Te=Ec(m);if(Te===i){var xe=new Ie(Je,kt+"enter",ne,u,m);xe.target=X,xe.relatedTarget=Tt,J=xe}y_(e,le,J,H,ne)}}}function He(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ue=typeof Object.is=="function"?Object.is:He;function Ke(e,t){if(Ue(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),u=Object.keys(t);if(i.length!==u.length)return!1;for(var m=0;m<i.length;m++){var g=i[m];if(!nn.call(t,g)||!Ue(e[g],t[g]))return!1}return!0}function st(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qn(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Ot(e,t){for(var i=st(e),u=0,m=0;i;){if(i.nodeType===Fo){if(m=u+i.textContent.length,u<=t&&m>=t)return{node:i,offset:t-u};u=m}i=st(qn(i))}}function As(e){var t=e.ownerDocument,i=t&&t.defaultView||window,u=i.getSelection&&i.getSelection();if(!u||u.rangeCount===0)return null;var m=u.anchorNode,g=u.anchorOffset,T=u.focusNode,E=u.focusOffset;try{m.nodeType,T.nodeType}catch{return null}return E4(e,m,g,T,E)}function E4(e,t,i,u,m){var g=0,T=-1,E=-1,I=0,A=0,M=e,G=null;e:for(;;){for(var H=null;M===t&&(i===0||M.nodeType===Fo)&&(T=g+i),M===u&&(m===0||M.nodeType===Fo)&&(E=g+m),M.nodeType===Fo&&(g+=M.nodeValue.length),(H=M.firstChild)!==null;)G=M,M=H;for(;;){if(M===e)break e;if(G===t&&++I===i&&(T=g),G===u&&++A===m&&(E=g),(H=M.nextSibling)!==null)break;M=G,G=M.parentNode}M=H}return T===-1||E===-1?null:{start:T,end:E}}function XE(e,t){var i=e.ownerDocument||document,u=i&&i.defaultView||window;if(u.getSelection){var m=u.getSelection(),g=e.textContent.length,T=Math.min(t.start,g),E=t.end===void 0?T:Math.min(t.end,g);if(!m.extend&&T>E){var I=E;E=T,T=I}var A=Ot(e,T),M=Ot(e,E);if(A&&M){if(m.rangeCount===1&&m.anchorNode===A.node&&m.anchorOffset===A.offset&&m.focusNode===M.node&&m.focusOffset===M.offset)return;var G=i.createRange();G.setStart(A.node,A.offset),m.removeAllRanges(),T>E?(m.addRange(G),m.extend(M.node,M.offset)):(G.setEnd(M.node,M.offset),m.addRange(G))}}}function My(e){return e&&e.nodeType===Fo}function Dy(e,t){return!e||!t?!1:e===t?!0:My(e)?!1:My(t)?Dy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function JE(e){return e&&e.ownerDocument&&Dy(e.ownerDocument.documentElement,e)}function e_(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function Uy(){for(var e=window,t=md();t instanceof e.HTMLIFrameElement;){if(e_(t))e=t.contentWindow;else return t;t=md(e.document)}return t}function _4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function t_(){var e=Uy();return{focusedElem:e,selectionRange:_4(e)?a_(e):null}}function n_(e){var t=Uy(),i=e.focusedElem,u=e.selectionRange;if(t!==i&&JE(i)){u!==null&&_4(i)&&r_(i,u);for(var m=[],g=i;g=g.parentNode;)g.nodeType===Ba&&m.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof i.focus=="function"&&i.focus();for(var T=0;T<m.length;T++){var E=m[T];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}}function a_(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=As(e),t||{start:0,end:0}}function r_(e,t){var i=t.start,u=t.end;u===void 0&&(u=i),"selectionStart"in e?(e.selectionStart=i,e.selectionEnd=Math.min(u,e.value.length)):XE(e,t)}var o_=qt&&"documentMode"in document&&document.documentMode<=11;function s_(){Yt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var C1=null,I4=null,Zf=null,N4=!1;function i_(e){if("selectionStart"in e&&_4(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,i=t.getSelection();return{anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}}function l_(e){return e.window===e?e.document:e.nodeType===Jr?e:e.ownerDocument}function Fy(e,t,i){var u=l_(i);if(!(N4||C1==null||C1!==md(u))){var m=i_(C1);if(!Zf||!Ke(Zf,m)){Zf=m;var g=Xp(I4,"onSelect");if(g.length>0){var T=new ka("onSelect","select",null,t,i);e.push({event:T,listeners:g}),T.target=C1}}}}function u_(e,t,i,u,m,g,T){var E=i?R1(i):window;switch(t){case"focusin":(Kl(E)||E.contentEditable==="true")&&(C1=E,I4=i,Zf=null);break;case"focusout":C1=null,I4=null,Zf=null;break;case"mousedown":N4=!0;break;case"contextmenu":case"mouseup":case"dragend":N4=!1,Fy(e,u,m);break;case"selectionchange":if(o_)break;case"keydown":case"keyup":Fy(e,u,m)}}function Yp(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var E1={animationend:Yp("Animation","AnimationEnd"),animationiteration:Yp("Animation","AnimationIteration"),animationstart:Yp("Animation","AnimationStart"),transitionend:Yp("Transition","TransitionEnd")},R4={},Vy={};qt&&(Vy=document.createElement("div").style,"AnimationEvent"in window||(delete E1.animationend.animation,delete E1.animationiteration.animation,delete E1.animationstart.animation),"TransitionEvent"in window||delete E1.transitionend.transition);function Kp(e){if(R4[e])return R4[e];if(!E1[e])return e;var t=E1[e];for(var i in t)if(t.hasOwnProperty(i)&&i in Vy)return R4[e]=t[i];return e}var jy=Kp("animationend"),By=Kp("animationiteration"),$y=Kp("animationstart"),zy=Kp("transitionend"),Hy=new Map,qy=["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"];function Zl(e,t){Hy.set(e,t),Yt(t,[e])}function c_(){for(var e=0;e<qy.length;e++){var t=qy[e],i=t.toLowerCase(),u=t[0].toUpperCase()+t.slice(1);Zl(i,"on"+u)}Zl(jy,"onAnimationEnd"),Zl(By,"onAnimationIteration"),Zl($y,"onAnimationStart"),Zl("dblclick","onDoubleClick"),Zl("focusin","onFocus"),Zl("focusout","onBlur"),Zl(zy,"onTransitionEnd")}function d_(e,t,i,u,m,g,T){var E=Hy.get(t);if(E!==void 0){var I=ka,A=t;switch(t){case"keypress":if(Ni(u)===0)return;case"keydown":case"keyup":I=v4;break;case"focusin":A="focus",I=p1;break;case"focusout":A="blur",I=p1;break;case"beforeblur":case"afterblur":I=p1;break;case"click":if(u.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=Os;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=Oi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=Dr;break;case jy:case By:case $y:I=h1;break;case zy:I=b4;break;case"scroll":I=jf;break;case"wheel":I=y1;break;case"copy":case"cut":case"paste":I=p4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=qf;break}var M=(g&ui)!==0;{var G=!M&&t==="scroll",H=h_(i,E,u.type,M,G);if(H.length>0){var ne=new I(E,A,null,u,m);e.push({event:ne,listeners:H})}}}}c_(),ee(),w1(),s_(),qp();function m_(e,t,i,u,m,g,T){d_(e,t,i,u,m,g);var E=(g&r4)===0;E&&(ke(e,t,i,u,m),q(e,t,i,u,m),u_(e,t,i,u,m),S1(e,t,i,u,m))}var Xf=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],O4=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Xf));function Gy(e,t,i){var u=e.type||"unknown-event";e.currentTarget=i,$o(u,t,void 0,e),e.currentTarget=null}function f_(e,t,i){var u;if(i)for(var m=t.length-1;m>=0;m--){var g=t[m],T=g.instance,E=g.currentTarget,I=g.listener;if(T!==u&&e.isPropagationStopped())return;Gy(e,I,E),u=T}else for(var A=0;A<t.length;A++){var M=t[A],G=M.instance,H=M.currentTarget,ne=M.listener;if(G!==u&&e.isPropagationStopped())return;Gy(e,ne,H),u=G}}function Wy(e,t){for(var i=(t&ui)!==0,u=0;u<e.length;u++){var m=e[u],g=m.event,T=m.listeners;f_(g,T,i)}df()}function p_(e,t,i,u,m){var g=Ed(i),T=[];m_(T,e,u,i,g,t),Wy(T,t)}function on(e,t){O4.has(e)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var i=!1,u=HI(t),m=v_(e);u.has(m)||(Qy(t,e,Gu,i),u.add(m))}function L4(e,t,i){O4.has(e)&&!t&&f('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=ui),Qy(i,e,u,t)}var Zp="_reactListening"+Math.random().toString(36).slice(2);function Jf(e){if(!e[Zp]){e[Zp]=!0,tt.forEach(function(i){i!=="selectionchange"&&(O4.has(i)||L4(i,!1,e),L4(i,!0,e))});var t=e.nodeType===Jr?e:e.ownerDocument;t!==null&&(t[Zp]||(t[Zp]=!0,L4("selectionchange",!1,t)))}}function Qy(e,t,i,u,m){var g=zl(e,t,i),T=void 0;Zu&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(T=!0),e=e,u?T!==void 0?Ko(e,t,g,T):ql(e,t,g):T!==void 0?d1(e,t,g,T):Vf(e,t,g)}function Yy(e,t){return e===t||e.nodeType===kn&&e.parentNode===t}function A4(e,t,i,u,m){var g=u;if(!(t&jo)&&!(t&Gu)){var T=m;if(u!==null){var E=u;e:for(;;){if(E===null)return;var I=E.tag;if(I===N||I===O){var A=E.stateNode.containerInfo;if(Yy(A,T))break;if(I===O)for(var M=E.return;M!==null;){var G=M.tag;if(G===N||G===O){var H=M.stateNode.containerInfo;if(Yy(H,T))return}M=M.return}for(;A!==null;){var ne=Ec(A);if(ne===null)return;var oe=ne.tag;if(oe===L||oe===x){E=g=ne;continue e}A=A.parentNode}}E=E.return}}}sf(function(){return p_(e,t,i,g)})}function e0(e,t,i){return{instance:e,listener:t,currentTarget:i}}function h_(e,t,i,u,m,g){for(var T=t!==null?t+"Capture":null,E=u?T:t,I=[],A=e,M=null;A!==null;){var G=A,H=G.stateNode,ne=G.tag;if(ne===L&&H!==null&&(M=H,E!==null)){var oe=di(A,E);oe!=null&&I.push(e0(A,oe,M))}if(m)break;A=A.return}return I}function Xp(e,t){for(var i=t+"Capture",u=[],m=e;m!==null;){var g=m,T=g.stateNode,E=g.tag;if(E===L&&T!==null){var I=T,A=di(m,i);A!=null&&u.unshift(e0(m,A,I));var M=di(m,t);M!=null&&u.push(e0(m,M,I))}m=m.return}return u}function _1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==L);return e||null}function g_(e,t){for(var i=e,u=t,m=0,g=i;g;g=_1(g))m++;for(var T=0,E=u;E;E=_1(E))T++;for(;m-T>0;)i=_1(i),m--;for(;T-m>0;)u=_1(u),T--;for(var I=m;I--;){if(i===u||u!==null&&i===u.alternate)return i;i=_1(i),u=_1(u)}return null}function Ky(e,t,i,u,m){for(var g=t._reactName,T=[],E=i;E!==null&&E!==u;){var I=E,A=I.alternate,M=I.stateNode,G=I.tag;if(A!==null&&A===u)break;if(G===L&&M!==null){var H=M;if(m){var ne=di(E,g);ne!=null&&T.unshift(e0(E,ne,H))}else if(!m){var oe=di(E,g);oe!=null&&T.push(e0(E,oe,H))}}E=E.return}T.length!==0&&e.push({event:t,listeners:T})}function y_(e,t,i,u,m){var g=u&&m?g_(u,m):null;u!==null&&Ky(e,t,u,g,!1),m!==null&&i!==null&&Ky(e,i,m,g,!0)}function v_(e,t){return e+"__bubble"}var Ur=!1,t0="dangerouslySetInnerHTML",Jp="suppressContentEditableWarning",Xl="suppressHydrationWarning",Zy="autoFocus",wc="children",Cc="style",e3="__html",x4,t3,n0,Xy,n3,Jy,e7;x4={dialog:!0,webview:!0},t3=function(e,t){Cd(e,t),tf(e,t),ip(e,t,{registrationNameDependencies:lt,possibleRegistrationNames:_t})},Jy=qt&&!document.documentMode,n0=function(e,t,i){if(!Ur){var u=a3(i),m=a3(t);m!==u&&(Ur=!0,f("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(m),JSON.stringify(u)))}},Xy=function(e){if(!Ur){Ur=!0;var t=[];e.forEach(function(i){t.push(i)}),f("Extra attributes from the server: %s",t)}},n3=function(e,t){t===!1?f("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},e7=function(e,t){var i=e.namespaceURI===Uo?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return i.innerHTML=t,i.innerHTML};var T_=/\r\n?/g,b_=/\u0000|\uFFFD/g;function a3(e){xo(e);var t=typeof e=="string"?e:""+e;return t.replace(T_,`
64
+ `).replace(b_,"")}function r3(e,t,i,u){var m=a3(t),g=a3(e);if(g!==m&&(u&&(Ur||(Ur=!0,f('Text content did not match. Server: "%s" Client: "%s"',g,m))),i&&Qn))throw new Error("Text content does not match server-rendered HTML.")}function t7(e){return e.nodeType===Jr?e:e.ownerDocument}function k_(){}function o3(e){e.onclick=k_}function S_(e,t,i,u,m){for(var g in u)if(u.hasOwnProperty(g)){var T=u[g];if(g===Cc)T&&Object.freeze(T),Z2(t,T);else if(g===t0){var E=T?T[e3]:void 0;E!=null&&j2(t,E)}else if(g===wc)if(typeof T=="string"){var I=e!=="textarea"||T!=="";I&&bd(t,T)}else typeof T=="number"&&bd(t,""+T);else g===Jp||g===Xl||g===Zy||(lt.hasOwnProperty(g)?T!=null&&(typeof T!="function"&&n3(g,T),g==="onScroll"&&on("scroll",t)):T!=null&&ai(t,g,T,m))}}function w_(e,t,i,u){for(var m=0;m<t.length;m+=2){var g=t[m],T=t[m+1];g===Cc?Z2(e,T):g===t0?j2(e,T):g===wc?bd(e,T):ai(e,g,T,u)}}function C_(e,t,i,u){var m,g=t7(i),T,E=u;if(E===Uo&&(E=vd(e)),E===Uo){if(m=Vo(e,t),!m&&e!==e.toLowerCase()&&f("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var I=g.createElement("div");I.innerHTML="<script><\/script>";var A=I.firstChild;T=I.removeChild(A)}else if(typeof t.is=="string")T=g.createElement(e,{is:t.is});else if(T=g.createElement(e),e==="select"){var M=T;t.multiple?M.multiple=!0:t.size&&(M.size=t.size)}}else T=g.createElementNS(E,e);return E===Uo&&!m&&Object.prototype.toString.call(T)==="[object HTMLUnknownElement]"&&!nn.call(x4,e)&&(x4[e]=!0,f("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),T}function E_(e,t){return t7(t).createTextNode(e)}function __(e,t,i,u){var m=Vo(t,i);t3(t,i);var g;switch(t){case"dialog":on("cancel",e),on("close",e),g=i;break;case"iframe":case"object":case"embed":on("load",e),g=i;break;case"video":case"audio":for(var T=0;T<Xf.length;T++)on(Xf[T],e);g=i;break;case"source":on("error",e),g=i;break;case"img":case"image":case"link":on("error",e),on("load",e),g=i;break;case"details":on("toggle",e),g=i;break;case"input":ju(e,i),g=Vu(e,i),on("invalid",e);break;case"option":gd(e,i),g=i;break;case"select":D2(e,i),g=Hm(e,i),on("invalid",e);break;case"textarea":U2(e,i),g=Gm(e,i),on("invalid",e);break;default:g=i}switch(Sd(t,g),S_(t,e,u,g,m),t){case"input":si(e),Bu(e,i,!1);break;case"textarea":si(e),V2(e);break;case"option":zm(e,i);break;case"select":W6(e,i);break;default:typeof g.onClick=="function"&&o3(e);break}}function I_(e,t,i,u,m){t3(t,u);var g=null,T,E;switch(t){case"input":T=Vu(e,i),E=Vu(e,u),g=[];break;case"select":T=Hm(e,i),E=Hm(e,u),g=[];break;case"textarea":T=Gm(e,i),E=Gm(e,u),g=[];break;default:T=i,E=u,typeof T.onClick!="function"&&typeof E.onClick=="function"&&o3(e);break}Sd(t,E);var I,A,M=null;for(I in T)if(!(E.hasOwnProperty(I)||!T.hasOwnProperty(I)||T[I]==null))if(I===Cc){var G=T[I];for(A in G)G.hasOwnProperty(A)&&(M||(M={}),M[A]="")}else I===t0||I===wc||I===Jp||I===Xl||I===Zy||(lt.hasOwnProperty(I)?g||(g=[]):(g=g||[]).push(I,null));for(I in E){var H=E[I],ne=T!=null?T[I]:void 0;if(!(!E.hasOwnProperty(I)||H===ne||H==null&&ne==null))if(I===Cc)if(H&&Object.freeze(H),ne){for(A in ne)ne.hasOwnProperty(A)&&(!H||!H.hasOwnProperty(A))&&(M||(M={}),M[A]="");for(A in H)H.hasOwnProperty(A)&&ne[A]!==H[A]&&(M||(M={}),M[A]=H[A])}else M||(g||(g=[]),g.push(I,M)),M=H;else if(I===t0){var oe=H?H[e3]:void 0,ue=ne?ne[e3]:void 0;oe!=null&&ue!==oe&&(g=g||[]).push(I,oe)}else I===wc?(typeof H=="string"||typeof H=="number")&&(g=g||[]).push(I,""+H):I===Jp||I===Xl||(lt.hasOwnProperty(I)?(H!=null&&(typeof H!="function"&&n3(I,H),I==="onScroll"&&on("scroll",e)),!g&&ne!==H&&(g=[])):(g=g||[]).push(I,H))}return M&&(Hu(M,E[Cc]),(g=g||[]).push(Cc,M)),g}function N_(e,t,i,u,m){i==="input"&&m.type==="radio"&&m.name!=null&&$m(e,m);var g=Vo(i,u),T=Vo(i,m);switch(w_(e,t,g,T),i){case"input":hl(e,m);break;case"textarea":F2(e,m);break;case"select":Q6(e,m);break}}function R_(e){{var t=e.toLowerCase();return wd.hasOwnProperty(t)&&wd[t]||null}}function O_(e,t,i,u,m,g,T){var E,I;switch(E=Vo(t,i),t3(t,i),t){case"dialog":on("cancel",e),on("close",e);break;case"iframe":case"object":case"embed":on("load",e);break;case"video":case"audio":for(var A=0;A<Xf.length;A++)on(Xf[A],e);break;case"source":on("error",e);break;case"img":case"image":case"link":on("error",e),on("load",e);break;case"details":on("toggle",e);break;case"input":ju(e,i),on("invalid",e);break;case"option":gd(e,i);break;case"select":D2(e,i),on("invalid",e);break;case"textarea":U2(e,i),on("invalid",e);break}Sd(t,i);{I=new Set;for(var M=e.attributes,G=0;G<M.length;G++){var H=M[G].name.toLowerCase();switch(H){case"value":break;case"checked":break;case"selected":break;default:I.add(M[G].name)}}}var ne=null;for(var oe in i)if(i.hasOwnProperty(oe)){var ue=i[oe];if(oe===wc)typeof ue=="string"?e.textContent!==ue&&(i[Xl]!==!0&&r3(e.textContent,ue,g,T),ne=[wc,ue]):typeof ue=="number"&&e.textContent!==""+ue&&(i[Xl]!==!0&&r3(e.textContent,ue,g,T),ne=[wc,""+ue]);else if(lt.hasOwnProperty(oe))ue!=null&&(typeof ue!="function"&&n3(oe,ue),oe==="onScroll"&&on("scroll",e));else if(T&&typeof E=="boolean"){var Ie=void 0,qe=E&&se?null:Nu(oe);if(i[Xl]!==!0&&!(oe===Jp||oe===Xl||oe==="value"||oe==="checked"||oe==="selected")){if(oe===t0){var Je=e.innerHTML,kt=ue?ue[e3]:void 0;if(kt!=null){var Tt=e7(e,kt);Tt!==Je&&n0(oe,Je,Tt)}}else if(oe===Cc){if(I.delete(oe),Jy){var X=n4(ue);Ie=e.getAttribute("style"),X!==Ie&&n0(oe,Ie,X)}}else if(E&&!se)I.delete(oe.toLowerCase()),Ie=id(e,oe,ue),ue!==Ie&&n0(oe,Ie,ue);else if(!Qr(oe,qe,E)&&!br(oe,ue,qe,E)){var le=!1;if(qe!==null)I.delete(qe.attributeName),Ie=Ru(e,oe,ue,qe);else{var J=u;if(J===Uo&&(J=vd(t)),J===Uo)I.delete(oe.toLowerCase());else{var Te=R_(oe);Te!==null&&Te!==oe&&(le=!0,I.delete(Te)),I.delete(oe)}Ie=id(e,oe,ue)}var xe=se;!xe&&ue!==Ie&&!le&&n0(oe,Ie,ue)}}}}switch(T&&I.size>0&&i[Xl]!==!0&&Xy(I),t){case"input":si(e),Bu(e,i,!0);break;case"textarea":si(e),V2(e);break;case"select":case"option":break;default:typeof i.onClick=="function"&&o3(e);break}return ne}function L_(e,t,i){var u=e.nodeValue!==t;return u}function P4(e,t){{if(Ur)return;Ur=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function M4(e,t){{if(Ur)return;Ur=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function D4(e,t,i){{if(Ur)return;Ur=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function U4(e,t){{if(t===""||Ur)return;Ur=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function A_(e,t,i){switch(t){case"input":A2(e,i);return;case"textarea":Wm(e,i);return;case"select":Y6(e,i);return}}var a0=function(){},r0=function(){};{var x_=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],n7=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],P_=n7.concat(["button"]),M_=["dd","dt","li","option","optgroup","p","rp","rt"],a7={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};r0=function(e,t){var i=Ct({},e||a7),u={tag:t};return n7.indexOf(t)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),P_.indexOf(t)!==-1&&(i.pTagInButtonScope=null),x_.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(i.listItemTagAutoclosing=null,i.dlItemTagAutoclosing=null),i.current=u,t==="form"&&(i.formTag=u),t==="a"&&(i.aTagInScope=u),t==="button"&&(i.buttonTagInScope=u),t==="nobr"&&(i.nobrTagInScope=u),t==="p"&&(i.pTagInButtonScope=u),t==="li"&&(i.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(i.dlItemTagAutoclosing=u),i};var D_=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return M_.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},U_=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},r7={};a0=function(e,t,i){i=i||a7;var u=i.current,m=u&&u.tag;t!=null&&(e!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var g=D_(e,m)?null:u,T=g?null:U_(e,i),E=g||T;if(E){var I=E.tag,A=!!g+"|"+e+"|"+I;if(!r7[A]){r7[A]=!0;var M=e,G="";if(e==="#text"?/\S/.test(t)?M="Text nodes":(M="Whitespace text nodes",G=" Make sure you don't have any extra whitespace between tags on each line of your source code."):M="<"+e+">",g){var H="";I==="table"&&e==="tr"&&(H+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",M,I,G,H)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",M,I)}}}}var s3="suppressHydrationWarning",i3="$",l3="/$",o0="$?",s0="$!",F_="style",F4=null,V4=null;function V_(e){var t,i,u=e.nodeType;switch(u){case Jr:case ii:{t=u===Jr?"#document":"#fragment";var m=e.documentElement;i=m?m.namespaceURI:Ym(null,"");break}default:{var g=u===kn?e.parentNode:e,T=g.namespaceURI||null;t=g.tagName,i=Ym(T,t);break}}{var E=t.toLowerCase(),I=r0(null,E);return{namespace:i,ancestorInfo:I}}}function j_(e,t,i){{var u=e,m=Ym(u.namespace,t),g=r0(u.ancestorInfo,t);return{namespace:m,ancestorInfo:g}}}function B_(e){F4=dr(),V4=t_();var t=null;return Hn(!1),t}function $_(e){n_(V4),Hn(F4),F4=null,V4=null}function z_(e,t,i,u,m){var g;{var T=u;if(a0(e,null,T.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var E=""+t.children,I=r0(T.ancestorInfo,e);a0(null,E,I)}g=T.namespace}var A=C_(e,t,i,g);return u0(m,A),W4(A,t),A}function H_(e,t){e.appendChild(t)}function q_(e,t,i,u,m){switch(__(e,t,i,u),t){case"button":case"input":case"select":case"textarea":return!!i.autoFocus;case"img":return!0;default:return!1}}function G_(e,t,i,u,m,g){{var T=g;if(typeof u.children!=typeof i.children&&(typeof u.children=="string"||typeof u.children=="number")){var E=""+u.children,I=r0(T.ancestorInfo,t);a0(null,E,I)}}return I_(e,t,i,u)}function j4(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function W_(e,t,i,u){{var m=i;a0(null,e,m.ancestorInfo)}var g=E_(e,t);return u0(u,g),g}function Q_(){var e=window.event;return e===void 0?Wo:_a(e.type)}var B4=typeof setTimeout=="function"?setTimeout:void 0,Y_=typeof clearTimeout=="function"?clearTimeout:void 0,$4=-1,o7=typeof Promise=="function"?Promise:void 0,K_=typeof queueMicrotask=="function"?queueMicrotask:typeof o7<"u"?function(e){return o7.resolve(null).then(e).catch(Z_)}:B4;function Z_(e){setTimeout(function(){throw e})}function X_(e,t,i,u){switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&e.focus();return;case"img":{i.src&&(e.src=i.src);return}}}function J_(e,t,i,u,m,g){N_(e,t,i,u,m),W4(e,m)}function s7(e){bd(e,"")}function eI(e,t,i){e.nodeValue=i}function tI(e,t){e.appendChild(t)}function nI(e,t){var i;e.nodeType===kn?(i=e.parentNode,i.insertBefore(t,e)):(i=e,i.appendChild(t));var u=e._reactRootContainer;u==null&&i.onclick===null&&o3(i)}function aI(e,t,i){e.insertBefore(t,i)}function rI(e,t,i){e.nodeType===kn?e.parentNode.insertBefore(t,i):e.insertBefore(t,i)}function oI(e,t){e.removeChild(t)}function sI(e,t){e.nodeType===kn?e.parentNode.removeChild(t):e.removeChild(t)}function z4(e,t){var i=t,u=0;do{var m=i.nextSibling;if(e.removeChild(i),m&&m.nodeType===kn){var g=m.data;if(g===l3)if(u===0){e.removeChild(m),Et(t);return}else u--;else(g===i3||g===o0||g===s0)&&u++}i=m}while(i);Et(t)}function iI(e,t){e.nodeType===kn?z4(e.parentNode,t):e.nodeType===Ba&&z4(e,t),Et(e)}function lI(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function uI(e){e.nodeValue=""}function cI(e,t){e=e;var i=t[F_],u=i!=null&&i.hasOwnProperty("display")?i.display:null;e.style.display=kd("display",u)}function dI(e,t){e.nodeValue=t}function mI(e){e.nodeType===Ba?e.textContent="":e.nodeType===Jr&&e.documentElement&&e.removeChild(e.documentElement)}function fI(e,t,i){return e.nodeType!==Ba||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function pI(e,t){return t===""||e.nodeType!==Fo?null:e}function hI(e){return e.nodeType!==kn?null:e}function i7(e){return e.data===o0}function H4(e){return e.data===s0}function gI(e){var t=e.nextSibling&&e.nextSibling.dataset,i,u,m;return t&&(i=t.dgst,u=t.msg,m=t.stck),{message:u,digest:i,stack:m}}function yI(e,t){e._reactRetry=t}function u3(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Ba||t===Fo)break;if(t===kn){var i=e.data;if(i===i3||i===s0||i===o0)break;if(i===l3)return null}}return e}function i0(e){return u3(e.nextSibling)}function vI(e){return u3(e.firstChild)}function TI(e){return u3(e.firstChild)}function bI(e){return u3(e.nextSibling)}function kI(e,t,i,u,m,g,T){u0(g,e),W4(e,i);var E;{var I=m;E=I.namespace}var A=(g.mode&ze)!==$e;return O_(e,t,i,E,u,A,T)}function SI(e,t,i,u){return u0(i,e),i.mode&ze,L_(e,t)}function wI(e,t){u0(t,e)}function CI(e){for(var t=e.nextSibling,i=0;t;){if(t.nodeType===kn){var u=t.data;if(u===l3){if(i===0)return i0(t);i--}else(u===i3||u===s0||u===o0)&&i++}t=t.nextSibling}return null}function l7(e){for(var t=e.previousSibling,i=0;t;){if(t.nodeType===kn){var u=t.data;if(u===i3||u===s0||u===o0){if(i===0)return t;i--}else u===l3&&i++}t=t.previousSibling}return null}function EI(e){Et(e)}function _I(e){Et(e)}function II(e){return e!=="head"&&e!=="body"}function NI(e,t,i,u){var m=!0;r3(t.nodeValue,i,u,m)}function RI(e,t,i,u,m,g){if(t[s3]!==!0){var T=!0;r3(u.nodeValue,m,g,T)}}function OI(e,t){t.nodeType===Ba?P4(e,t):t.nodeType===kn||M4(e,t)}function LI(e,t){{var i=e.parentNode;i!==null&&(t.nodeType===Ba?P4(i,t):t.nodeType===kn||M4(i,t))}}function AI(e,t,i,u,m){(m||t[s3]!==!0)&&(u.nodeType===Ba?P4(i,u):u.nodeType===kn||M4(i,u))}function xI(e,t,i){D4(e,t)}function PI(e,t){U4(e,t)}function MI(e,t,i){{var u=e.parentNode;u!==null&&D4(u,t)}}function DI(e,t){{var i=e.parentNode;i!==null&&U4(i,t)}}function UI(e,t,i,u,m,g){(g||t[s3]!==!0)&&D4(i,u)}function FI(e,t,i,u,m){(m||t[s3]!==!0)&&U4(i,u)}function VI(e){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function jI(e){Jf(e)}var I1=Math.random().toString(36).slice(2),N1="__reactFiber$"+I1,q4="__reactProps$"+I1,l0="__reactContainer$"+I1,G4="__reactEvents$"+I1,BI="__reactListeners$"+I1,$I="__reactHandles$"+I1;function zI(e){delete e[N1],delete e[q4],delete e[G4],delete e[BI],delete e[$I]}function u0(e,t){t[N1]=e}function c3(e,t){t[l0]=e}function u7(e){e[l0]=null}function c0(e){return!!e[l0]}function Ec(e){var t=e[N1];if(t)return t;for(var i=e.parentNode;i;){if(t=i[l0]||i[N1],t){var u=t.alternate;if(t.child!==null||u!==null&&u.child!==null)for(var m=l7(e);m!==null;){var g=m[N1];if(g)return g;m=l7(m)}return t}e=i,i=e.parentNode}return null}function Jl(e){var t=e[N1]||e[l0];return t&&(t.tag===L||t.tag===x||t.tag===te||t.tag===N)?t:null}function R1(e){if(e.tag===L||e.tag===x)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function d3(e){return e[q4]||null}function W4(e,t){e[q4]=t}function HI(e){var t=e[G4];return t===void 0&&(t=e[G4]=new Set),t}var c7={},d7=o.ReactDebugCurrentFrame;function m3(e){if(e){var t=e._owner,i=xu(e.type,e._source,t?t.type:null);d7.setExtraStackFrame(i)}else d7.setExtraStackFrame(null)}function Xo(e,t,i,u,m){{var g=Function.call.bind(nn);for(var T in e)if(g(e,T)){var E=void 0;try{if(typeof e[T]!="function"){var I=Error((u||"React class")+": "+i+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}E=e[T](t,T,u,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A){E=A}E&&!(E instanceof Error)&&(m3(m),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",i,T,typeof E),m3(null)),E instanceof Error&&!(E.message in c7)&&(c7[E.message]=!0,m3(m),f("Failed %s type: %s",i,E.message),m3(null))}}}var Q4=[],f3;f3=[];var Pi=-1;function eu(e){return{current:e}}function Za(e,t){if(Pi<0){f("Unexpected pop.");return}t!==f3[Pi]&&f("Unexpected Fiber popped."),e.current=Q4[Pi],Q4[Pi]=null,f3[Pi]=null,Pi--}function Xa(e,t,i){Pi++,Q4[Pi]=e.current,f3[Pi]=i,e.current=t}var Y4;Y4={};var ro={};Object.freeze(ro);var Mi=eu(ro),xs=eu(!1),K4=ro;function O1(e,t,i){return i&&Ps(t)?K4:Mi.current}function m7(e,t,i){{var u=e.stateNode;u.__reactInternalMemoizedUnmaskedChildContext=t,u.__reactInternalMemoizedMaskedChildContext=i}}function L1(e,t){{var i=e.type,u=i.contextTypes;if(!u)return ro;var m=e.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===t)return m.__reactInternalMemoizedMaskedChildContext;var g={};for(var T in u)g[T]=t[T];{var E=ft(e)||"Unknown";Xo(u,g,"context",E)}return m&&m7(e,t,g),g}}function p3(){return xs.current}function Ps(e){{var t=e.childContextTypes;return t!=null}}function h3(e){Za(xs,e),Za(Mi,e)}function Z4(e){Za(xs,e),Za(Mi,e)}function f7(e,t,i){{if(Mi.current!==ro)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Xa(Mi,t,e),Xa(xs,i,e)}}function p7(e,t,i){{var u=e.stateNode,m=t.childContextTypes;if(typeof u.getChildContext!="function"){{var g=ft(e)||"Unknown";Y4[g]||(Y4[g]=!0,f("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",g,g))}return i}var T=u.getChildContext();for(var E in T)if(!(E in m))throw new Error((ft(e)||"Unknown")+'.getChildContext(): key "'+E+'" is not defined in childContextTypes.');{var I=ft(e)||"Unknown";Xo(m,T,"child context",I)}return Ct({},i,T)}}function g3(e){{var t=e.stateNode,i=t&&t.__reactInternalMemoizedMergedChildContext||ro;return K4=Mi.current,Xa(Mi,i,e),Xa(xs,xs.current,e),!0}}function h7(e,t,i){{var u=e.stateNode;if(!u)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(i){var m=p7(e,t,K4);u.__reactInternalMemoizedMergedChildContext=m,Za(xs,e),Za(Mi,e),Xa(Mi,m,e),Xa(xs,i,e)}else Za(xs,e),Xa(xs,i,e)}}function qI(e){{if(!gf(e)||e.tag!==C)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case N:return t.stateNode.context;case C:{var i=t.type;if(Ps(i))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var tu=0,y3=1,Di=null,X4=!1,J4=!1;function g7(e){Di===null?Di=[e]:Di.push(e)}function GI(e){X4=!0,g7(e)}function y7(){X4&&nu()}function nu(){if(!J4&&Di!==null){J4=!0;var e=0,t=xr();try{var i=!0,u=Di;for(An(ga);e<u.length;e++){var m=u[e];do m=m(i);while(m!==null)}Di=null,X4=!1}catch(g){throw Di!==null&&(Di=Di.slice(e+1)),Ad(Pd,nu),g}finally{An(t),J4=!1}}return null}var A1=[],x1=0,v3=null,T3=0,ko=[],So=0,_c=null,Ui=1,Fi="";function WI(e){return Nc(),(e.flags&ff)!==Ze}function QI(e){return Nc(),T3}function YI(){var e=Fi,t=Ui,i=t&~KI(t);return i.toString(32)+e}function Ic(e,t){Nc(),A1[x1++]=T3,A1[x1++]=v3,v3=e,T3=t}function v7(e,t,i){Nc(),ko[So++]=Ui,ko[So++]=Fi,ko[So++]=_c,_c=e;var u=Ui,m=Fi,g=b3(u)-1,T=u&~(1<<g),E=i+1,I=b3(t)+g;if(I>30){var A=g-g%5,M=(1<<A)-1,G=(T&M).toString(32),H=T>>A,ne=g-A,oe=b3(t)+ne,ue=E<<ne,Ie=ue|H,qe=G+m;Ui=1<<oe|Ie,Fi=qe}else{var Je=E<<g,kt=Je|T,Tt=m;Ui=1<<I|kt,Fi=Tt}}function e8(e){Nc();var t=e.return;if(t!==null){var i=1,u=0;Ic(e,i),v7(e,i,u)}}function b3(e){return 32-Ol(e)}function KI(e){return 1<<b3(e)-1}function t8(e){for(;e===v3;)v3=A1[--x1],A1[x1]=null,T3=A1[--x1],A1[x1]=null;for(;e===_c;)_c=ko[--So],ko[So]=null,Fi=ko[--So],ko[So]=null,Ui=ko[--So],ko[So]=null}function ZI(){return Nc(),_c!==null?{id:Ui,overflow:Fi}:null}function XI(e,t){Nc(),ko[So++]=Ui,ko[So++]=Fi,ko[So++]=_c,Ui=t.id,Fi=t.overflow,_c=e}function Nc(){Na()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ia=null,wo=null,Jo=!1,Rc=!1,au=null;function JI(){Jo&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function T7(){Rc=!0}function eN(){return Rc}function tN(e){var t=e.stateNode.containerInfo;return wo=TI(t),Ia=e,Jo=!0,au=null,Rc=!1,!0}function nN(e,t,i){return wo=bI(t),Ia=e,Jo=!0,au=null,Rc=!1,i!==null&&XI(e,i),!0}function b7(e,t){switch(e.tag){case N:{OI(e.stateNode.containerInfo,t);break}case L:{var i=(e.mode&ze)!==$e;AI(e.type,e.memoizedProps,e.stateNode,t,i);break}case te:{var u=e.memoizedState;u.dehydrated!==null&&LI(u.dehydrated,t);break}}}function k7(e,t){b7(e,t);var i=sL();i.stateNode=t,i.return=e;var u=e.deletions;u===null?(e.deletions=[i],e.flags|=Pt):u.push(i)}function n8(e,t){{if(Rc)return;switch(e.tag){case N:{var i=e.stateNode.containerInfo;switch(t.tag){case L:var u=t.type;t.pendingProps,xI(i,u);break;case x:var m=t.pendingProps;PI(i,m);break}break}case L:{var g=e.type,T=e.memoizedProps,E=e.stateNode;switch(t.tag){case L:{var I=t.type,A=t.pendingProps,M=(e.mode&ze)!==$e;UI(g,T,E,I,A,M);break}case x:{var G=t.pendingProps,H=(e.mode&ze)!==$e;FI(g,T,E,G,H);break}}break}case te:{var ne=e.memoizedState,oe=ne.dehydrated;if(oe!==null)switch(t.tag){case L:var ue=t.type;t.pendingProps,MI(oe,ue);break;case x:var Ie=t.pendingProps;DI(oe,Ie);break}break}default:return}}}function S7(e,t){t.flags=t.flags&~Ir|Kt,n8(e,t)}function w7(e,t){switch(e.tag){case L:{var i=e.type;e.pendingProps;var u=fI(t,i);return u!==null?(e.stateNode=u,Ia=e,wo=vI(u),!0):!1}case x:{var m=e.pendingProps,g=pI(t,m);return g!==null?(e.stateNode=g,Ia=e,wo=null,!0):!1}case te:{var T=hI(t);if(T!==null){var E={dehydrated:T,treeContext:ZI(),retryLane:ha};e.memoizedState=E;var I=iL(T);return I.return=e,e.child=I,Ia=e,wo=null,!0}return!1}default:return!1}}function a8(e){return(e.mode&ze)!==$e&&(e.flags&rt)===Ze}function r8(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function o8(e){if(Jo){var t=wo;if(!t){a8(e)&&(n8(Ia,e),r8()),S7(Ia,e),Jo=!1,Ia=e;return}var i=t;if(!w7(e,t)){a8(e)&&(n8(Ia,e),r8()),t=i0(i);var u=Ia;if(!t||!w7(e,t)){S7(Ia,e),Jo=!1,Ia=e;return}k7(u,i)}}}function aN(e,t,i){var u=e.stateNode,m=!Rc,g=kI(u,e.type,e.memoizedProps,t,i,e,m);return e.updateQueue=g,g!==null}function rN(e){var t=e.stateNode,i=e.memoizedProps,u=SI(t,i,e);if(u){var m=Ia;if(m!==null)switch(m.tag){case N:{var g=m.stateNode.containerInfo,T=(m.mode&ze)!==$e;NI(g,t,i,T);break}case L:{var E=m.type,I=m.memoizedProps,A=m.stateNode,M=(m.mode&ze)!==$e;RI(E,I,A,t,i,M);break}}}return u}function oN(e){var t=e.memoizedState,i=t!==null?t.dehydrated:null;if(!i)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");wI(i,e)}function sN(e){var t=e.memoizedState,i=t!==null?t.dehydrated:null;if(!i)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return CI(i)}function C7(e){for(var t=e.return;t!==null&&t.tag!==L&&t.tag!==N&&t.tag!==te;)t=t.return;Ia=t}function k3(e){if(e!==Ia)return!1;if(!Jo)return C7(e),Jo=!0,!1;if(e.tag!==N&&(e.tag!==L||II(e.type)&&!j4(e.type,e.memoizedProps))){var t=wo;if(t)if(a8(e))E7(e),r8();else for(;t;)k7(e,t),t=i0(t)}return C7(e),e.tag===te?wo=sN(e):wo=Ia?i0(e.stateNode):null,!0}function iN(){return Jo&&wo!==null}function E7(e){for(var t=wo;t;)b7(e,t),t=i0(t)}function P1(){Ia=null,wo=null,Jo=!1,Rc=!1}function _7(){au!==null&&(TT(au),au=null)}function Na(){return Jo}function s8(e){au===null?au=[e]:au.push(e)}var lN=o.ReactCurrentBatchConfig,uN=null;function cN(){return lN.transition}var es={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var dN=function(e){for(var t=null,i=e;i!==null;)i.mode&bt&&(t=i),i=i.return;return t},Oc=function(e){var t=[];return e.forEach(function(i){t.push(i)}),t.sort().join(", ")},d0=[],m0=[],f0=[],p0=[],h0=[],g0=[],Lc=new Set;es.recordUnsafeLifecycleWarnings=function(e,t){Lc.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&d0.push(e),e.mode&bt&&typeof t.UNSAFE_componentWillMount=="function"&&m0.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&f0.push(e),e.mode&bt&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&p0.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&h0.push(e),e.mode&bt&&typeof t.UNSAFE_componentWillUpdate=="function"&&g0.push(e))},es.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;d0.length>0&&(d0.forEach(function(H){e.add(ft(H)||"Component"),Lc.add(H.type)}),d0=[]);var t=new Set;m0.length>0&&(m0.forEach(function(H){t.add(ft(H)||"Component"),Lc.add(H.type)}),m0=[]);var i=new Set;f0.length>0&&(f0.forEach(function(H){i.add(ft(H)||"Component"),Lc.add(H.type)}),f0=[]);var u=new Set;p0.length>0&&(p0.forEach(function(H){u.add(ft(H)||"Component"),Lc.add(H.type)}),p0=[]);var m=new Set;h0.length>0&&(h0.forEach(function(H){m.add(ft(H)||"Component"),Lc.add(H.type)}),h0=[]);var g=new Set;if(g0.length>0&&(g0.forEach(function(H){g.add(ft(H)||"Component"),Lc.add(H.type)}),g0=[]),t.size>0){var T=Oc(t);f(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
65
65
 
66
66
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
67
67
 
@@ -100,7 +100,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`,m)}
100
100
  1. You may be adding a ref to a function component
101
101
  2. You may be adding a ref to a component that was not created inside a component's render method
102
102
  3. You have multiple copies of React loaded
103
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return u}function w3(e,t){var i=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}function C3(e){{var t=ft(e)||"Component";if(d8[t])return;d8[t]=!0,f("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function R7(e){var t=e._payload,i=e._init;return i(t)}function O7(e){function t(X,le){if(e){var J=X.deletions;J===null?(X.deletions=[le],X.flags|=Pt):J.push(le)}}function i(X,le){if(!e)return null;for(var J=le;J!==null;)t(X,J),J=J.sibling;return null}function u(X,le){for(var J=new Map,Te=le;Te!==null;)Te.key!==null?J.set(Te.key,Te):J.set(Te.index,Te),Te=Te.sibling;return J}function m(X,le){var J=jc(X,le);return J.index=0,J.sibling=null,J}function g(X,le,J){if(X.index=J,!e)return X.flags|=ff,le;var Te=X.alternate;if(Te!==null){var xe=Te.index;return xe<le?(X.flags|=Kt,le):xe}else return X.flags|=Kt,le}function T(X){return e&&X.alternate===null&&(X.flags|=Kt),X}function E(X,le,J,Te){if(le===null||le.tag!==x){var xe=s5(J,X.mode,Te);return xe.return=X,xe}else{var Oe=m(le,J);return Oe.return=X,Oe}}function I(X,le,J,Te){var xe=J.type;if(xe===Po)return M(X,le,J.props.children,Te,J.key);if(le!==null&&(le.elementType===xe||MT(le,J)||typeof xe=="object"&&xe!==null&&xe.$$typeof===Ea&&R7(xe)===le.type)){var Oe=m(le,J.props);return Oe.ref=y0(X,le,J),Oe.return=X,Oe._debugSource=J._source,Oe._debugOwner=J._owner,Oe}var nt=o5(J,X.mode,Te);return nt.ref=y0(X,le,J),nt.return=X,nt}function A(X,le,J,Te){if(le===null||le.tag!==O||le.stateNode.containerInfo!==J.containerInfo||le.stateNode.implementation!==J.implementation){var xe=i5(J,X.mode,Te);return xe.return=X,xe}else{var Oe=m(le,J.children||[]);return Oe.return=X,Oe}}function M(X,le,J,Te,xe){if(le===null||le.tag!==D){var Oe=pu(J,X.mode,Te,xe);return Oe.return=X,Oe}else{var nt=m(le,J);return nt.return=X,nt}}function G(X,le,J){if(typeof le=="string"&&le!==""||typeof le=="number"){var Te=s5(""+le,X.mode,J);return Te.return=X,Te}if(typeof le=="object"&&le!==null){switch(le.$$typeof){case ll:{var xe=o5(le,X.mode,J);return xe.ref=y0(X,null,le),xe.return=X,xe}case Yr:{var Oe=i5(le,X.mode,J);return Oe.return=X,Oe}case Ea:{var nt=le._payload,dt=le._init;return G(X,dt(nt),J)}}if(jn(le)||Mo(le)){var $t=pu(le,X.mode,J,null);return $t.return=X,$t}w3(X,le)}return typeof le=="function"&&C3(X),null}function H(X,le,J,Te){var xe=le!==null?le.key:null;if(typeof J=="string"&&J!==""||typeof J=="number")return xe!==null?null:E(X,le,""+J,Te);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case ll:return J.key===xe?I(X,le,J,Te):null;case Yr:return J.key===xe?A(X,le,J,Te):null;case Ea:{var Oe=J._payload,nt=J._init;return H(X,le,nt(Oe),Te)}}if(jn(J)||Mo(J))return xe!==null?null:M(X,le,J,Te,null);w3(X,J)}return typeof J=="function"&&C3(X),null}function ne(X,le,J,Te,xe){if(typeof Te=="string"&&Te!==""||typeof Te=="number"){var Oe=X.get(J)||null;return E(le,Oe,""+Te,xe)}if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case ll:{var nt=X.get(Te.key===null?J:Te.key)||null;return I(le,nt,Te,xe)}case Yr:{var dt=X.get(Te.key===null?J:Te.key)||null;return A(le,dt,Te,xe)}case Ea:var $t=Te._payload,At=Te._init;return ne(X,le,J,At($t),xe)}if(jn(Te)||Mo(Te)){var Mn=X.get(J)||null;return M(le,Mn,Te,xe,null)}w3(le,Te)}return typeof Te=="function"&&C3(le),null}function oe(X,le,J){{if(typeof X!="object"||X===null)return le;switch(X.$$typeof){case ll:case Yr:N7(X,J);var Te=X.key;if(typeof Te!="string")break;if(le===null){le=new Set,le.add(Te);break}if(!le.has(Te)){le.add(Te);break}f("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Te);break;case Ea:var xe=X._payload,Oe=X._init;oe(Oe(xe),le,J);break}}return le}function ue(X,le,J,Te){for(var xe=null,Oe=0;Oe<J.length;Oe++){var nt=J[Oe];xe=oe(nt,xe,X)}for(var dt=null,$t=null,At=le,Mn=0,xt=0,En=null;At!==null&&xt<J.length;xt++){At.index>xt?(En=At,At=null):En=At.sibling;var er=H(X,At,J[xt],Te);if(er===null){At===null&&(At=En);break}e&&At&&er.alternate===null&&t(X,At),Mn=g(er,Mn,xt),$t===null?dt=er:$t.sibling=er,$t=er,At=En}if(xt===J.length){if(i(X,At),Na()){var Ma=xt;Ic(X,Ma)}return dt}if(At===null){for(;xt<J.length;xt++){var so=G(X,J[xt],Te);so!==null&&(Mn=g(so,Mn,xt),$t===null?dt=so:$t.sibling=so,$t=so)}if(Na()){var hr=xt;Ic(X,hr)}return dt}for(var gr=u(X,At);xt<J.length;xt++){var tr=ne(gr,X,xt,J[xt],Te);tr!==null&&(e&&tr.alternate!==null&&gr.delete(tr.key===null?xt:tr.key),Mn=g(tr,Mn,xt),$t===null?dt=tr:$t.sibling=tr,$t=tr)}if(e&&gr.forEach(function(J1){return t(X,J1)}),Na()){var qi=xt;Ic(X,qi)}return dt}function Ie(X,le,J,Te){var xe=Mo(J);if(typeof xe!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&J[Symbol.toStringTag]==="Generator"&&(l8||f("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),l8=!0),J.entries===xe&&(i8||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),i8=!0);var Oe=xe.call(J);if(Oe)for(var nt=null,dt=Oe.next();!dt.done;dt=Oe.next()){var $t=dt.value;nt=oe($t,nt,X)}}var At=xe.call(J);if(At==null)throw new Error("An iterable object provided no iterator.");for(var Mn=null,xt=null,En=le,er=0,Ma=0,so=null,hr=At.next();En!==null&&!hr.done;Ma++,hr=At.next()){En.index>Ma?(so=En,En=null):so=En.sibling;var gr=H(X,En,hr.value,Te);if(gr===null){En===null&&(En=so);break}e&&En&&gr.alternate===null&&t(X,En),er=g(gr,er,Ma),xt===null?Mn=gr:xt.sibling=gr,xt=gr,En=so}if(hr.done){if(i(X,En),Na()){var tr=Ma;Ic(X,tr)}return Mn}if(En===null){for(;!hr.done;Ma++,hr=At.next()){var qi=G(X,hr.value,Te);qi!==null&&(er=g(qi,er,Ma),xt===null?Mn=qi:xt.sibling=qi,xt=qi)}if(Na()){var J1=Ma;Ic(X,J1)}return Mn}for(var Q0=u(X,En);!hr.done;Ma++,hr=At.next()){var $s=ne(Q0,X,Ma,hr.value,Te);$s!==null&&(e&&$s.alternate!==null&&Q0.delete($s.key===null?Ma:$s.key),er=g($s,er,Ma),xt===null?Mn=$s:xt.sibling=$s,xt=$s)}if(e&&Q0.forEach(function(FL){return t(X,FL)}),Na()){var UL=Ma;Ic(X,UL)}return Mn}function qe(X,le,J,Te){if(le!==null&&le.tag===x){i(X,le.sibling);var xe=m(le,J);return xe.return=X,xe}i(X,le);var Oe=s5(J,X.mode,Te);return Oe.return=X,Oe}function Je(X,le,J,Te){for(var xe=J.key,Oe=le;Oe!==null;){if(Oe.key===xe){var nt=J.type;if(nt===Po){if(Oe.tag===D){i(X,Oe.sibling);var dt=m(Oe,J.props.children);return dt.return=X,dt._debugSource=J._source,dt._debugOwner=J._owner,dt}}else if(Oe.elementType===nt||MT(Oe,J)||typeof nt=="object"&&nt!==null&&nt.$$typeof===Ea&&R7(nt)===Oe.type){i(X,Oe.sibling);var $t=m(Oe,J.props);return $t.ref=y0(X,Oe,J),$t.return=X,$t._debugSource=J._source,$t._debugOwner=J._owner,$t}i(X,Oe);break}else t(X,Oe);Oe=Oe.sibling}if(J.type===Po){var At=pu(J.props.children,X.mode,Te,J.key);return At.return=X,At}else{var Mn=o5(J,X.mode,Te);return Mn.ref=y0(X,le,J),Mn.return=X,Mn}}function kt(X,le,J,Te){for(var xe=J.key,Oe=le;Oe!==null;){if(Oe.key===xe)if(Oe.tag===O&&Oe.stateNode.containerInfo===J.containerInfo&&Oe.stateNode.implementation===J.implementation){i(X,Oe.sibling);var nt=m(Oe,J.children||[]);return nt.return=X,nt}else{i(X,Oe);break}else t(X,Oe);Oe=Oe.sibling}var dt=i5(J,X.mode,Te);return dt.return=X,dt}function Tt(X,le,J,Te){var xe=typeof J=="object"&&J!==null&&J.type===Po&&J.key===null;if(xe&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case ll:return T(Je(X,le,J,Te));case Yr:return T(kt(X,le,J,Te));case Ea:var Oe=J._payload,nt=J._init;return Tt(X,le,nt(Oe),Te)}if(jn(J))return ue(X,le,J,Te);if(Mo(J))return Ie(X,le,J,Te);w3(X,J)}return typeof J=="string"&&J!==""||typeof J=="number"?T(qe(X,le,""+J,Te)):(typeof J=="function"&&C3(X),i(X,le))}return Tt}var M1=O7(!0),L7=O7(!1);function fN(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var i=t.child,u=jc(i,i.pendingProps);for(t.child=u,u.return=t;i.sibling!==null;)i=i.sibling,u=u.sibling=jc(i,i.pendingProps),u.return=t;u.sibling=null}}function pN(e,t){for(var i=e.child;i!==null;)tL(i,t),i=i.sibling}var m8=eu(null),f8;f8={};var E3=null,D1=null,p8=null,_3=!1;function I3(){E3=null,D1=null,p8=null,_3=!1}function A7(){_3=!0}function x7(){_3=!1}function P7(e,t,i){Xa(m8,t._currentValue,e),t._currentValue=i,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==f8&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=f8}function h8(e,t){var i=m8.current;Za(m8,t),e._currentValue=i}function g8(e,t,i){for(var u=e;u!==null;){var m=u.alternate;if(wi(u.childLanes,t)?m!==null&&!wi(m.childLanes,t)&&(m.childLanes=pt(m.childLanes,t)):(u.childLanes=pt(u.childLanes,t),m!==null&&(m.childLanes=pt(m.childLanes,t))),u===i)break;u=u.return}u!==i&&f("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function hN(e,t,i){gN(e,t,i)}function gN(e,t,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var m=void 0,g=u.dependencies;if(g!==null){m=u.child;for(var T=g.firstContext;T!==null;){if(T.context===t){if(u.tag===C){var E=Ul(i),I=Vi(Wt,E);I.tag=R3;var A=u.updateQueue;if(A!==null){var M=A.shared,G=M.pending;G===null?I.next=I:(I.next=G.next,G.next=I),M.pending=I}}u.lanes=pt(u.lanes,i);var H=u.alternate;H!==null&&(H.lanes=pt(H.lanes,i)),g8(u.return,i,e),g.lanes=pt(g.lanes,i);break}T=T.next}}else if(u.tag===Y)m=u.type===e.type?null:u.child;else if(u.tag===Ye){var ne=u.return;if(ne===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ne.lanes=pt(ne.lanes,i);var oe=ne.alternate;oe!==null&&(oe.lanes=pt(oe.lanes,i)),g8(ne,i,e),m=u.sibling}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}var ue=m.sibling;if(ue!==null){ue.return=m.return,m=ue;break}m=m.return}u=m}}function U1(e,t){E3=e,D1=null,p8=null;var i=e.dependencies;if(i!==null){var u=i.firstContext;u!==null&&(Ka(i.lanes,t)&&A0(),i.firstContext=null)}}function Gn(e){_3&&f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(p8!==e){var i={context:e,memoizedValue:t,next:null};if(D1===null){if(E3===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");D1=i,E3.dependencies={lanes:fe,firstContext:i}}else D1=D1.next=i}return t}var Ac=null;function y8(e){Ac===null?Ac=[e]:Ac.push(e)}function yN(){if(Ac!==null){for(var e=0;e<Ac.length;e++){var t=Ac[e],i=t.interleaved;if(i!==null){t.interleaved=null;var u=i.next,m=t.pending;if(m!==null){var g=m.next;m.next=u,i.next=g}t.pending=i}}Ac=null}}function M7(e,t,i,u){var m=t.interleaved;return m===null?(i.next=i,y8(t)):(i.next=m.next,m.next=i),t.interleaved=i,N3(e,u)}function vN(e,t,i,u){var m=t.interleaved;m===null?(i.next=i,y8(t)):(i.next=m.next,m.next=i),t.interleaved=i}function TN(e,t,i,u){var m=t.interleaved;return m===null?(i.next=i,y8(t)):(i.next=m.next,m.next=i),t.interleaved=i,N3(e,u)}function Fr(e,t){return N3(e,t)}var bN=N3;function N3(e,t){e.lanes=pt(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=pt(i.lanes,t)),i===null&&(e.flags&(Kt|Ir))!==Ze&&LT(e);for(var u=e,m=e.return;m!==null;)m.childLanes=pt(m.childLanes,t),i=m.alternate,i!==null?i.childLanes=pt(i.childLanes,t):(m.flags&(Kt|Ir))!==Ze&&LT(e),u=m,m=m.return;if(u.tag===N){var g=u.stateNode;return g}else return null}var D7=0,U7=1,R3=2,v8=3,O3=!1,T8,L3;T8=!1,L3=null;function b8(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:fe},effects:null};e.updateQueue=t}function F7(e,t){var i=t.updateQueue,u=e.updateQueue;if(i===u){var m={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects};t.updateQueue=m}}function Vi(e,t){var i={eventTime:e,lane:t,tag:D7,payload:null,callback:null,next:null};return i}function ru(e,t,i){var u=e.updateQueue;if(u===null)return null;var m=u.shared;if(L3===m&&!T8&&(f("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),T8=!0),vO()){var g=m.pending;return g===null?t.next=t:(t.next=g.next,g.next=t),m.pending=t,bN(e,i)}else return TN(e,m,t,i)}function A3(e,t,i){var u=t.updateQueue;if(u!==null){var m=u.shared;if(Nf(i)){var g=m.lanes;g=r1(g,e.pendingLanes);var T=pt(g,i);m.lanes=T,Fl(e,T)}}}function k8(e,t){var i=e.updateQueue,u=e.alternate;if(u!==null){var m=u.updateQueue;if(i===m){var g=null,T=null,E=i.firstBaseUpdate;if(E!==null){var I=E;do{var A={eventTime:I.eventTime,lane:I.lane,tag:I.tag,payload:I.payload,callback:I.callback,next:null};T===null?g=T=A:(T.next=A,T=A),I=I.next}while(I!==null);T===null?g=T=t:(T.next=t,T=t)}else g=T=t;i={baseState:m.baseState,firstBaseUpdate:g,lastBaseUpdate:T,shared:m.shared,effects:m.effects},e.updateQueue=i;return}}var M=i.lastBaseUpdate;M===null?i.firstBaseUpdate=t:M.next=t,i.lastBaseUpdate=t}function kN(e,t,i,u,m,g){switch(i.tag){case U7:{var T=i.payload;if(typeof T=="function"){A7();var E=T.call(g,u,m);{if(e.mode&bt){Sn(!0);try{T.call(g,u,m)}finally{Sn(!1)}}x7()}return E}return T}case v8:e.flags=e.flags&~$n|at;case D7:{var I=i.payload,A;if(typeof I=="function"){A7(),A=I.call(g,u,m);{if(e.mode&bt){Sn(!0);try{I.call(g,u,m)}finally{Sn(!1)}}x7()}}else A=I;return A==null?u:Ct({},u,A)}case R3:return O3=!0,u}return u}function x3(e,t,i,u){var m=e.updateQueue;O3=!1,L3=m.shared;var g=m.firstBaseUpdate,T=m.lastBaseUpdate,E=m.shared.pending;if(E!==null){m.shared.pending=null;var I=E,A=I.next;I.next=null,T===null?g=A:T.next=A,T=I;var M=e.alternate;if(M!==null){var G=M.updateQueue,H=G.lastBaseUpdate;H!==T&&(H===null?G.firstBaseUpdate=A:H.next=A,G.lastBaseUpdate=I)}}if(g!==null){var ne=m.baseState,oe=fe,ue=null,Ie=null,qe=null,Je=g;do{var kt=Je.lane,Tt=Je.eventTime;if(wi(u,kt)){if(qe!==null){var X={eventTime:Tt,lane:wn,tag:Je.tag,payload:Je.payload,callback:Je.callback,next:null};qe=qe.next=X}ne=kN(e,m,Je,ne,t,i);var le=Je.callback;if(le!==null&&Je.lane!==wn){e.flags|=go;var J=m.effects;J===null?m.effects=[Je]:J.push(Je)}}else{var Te={eventTime:Tt,lane:kt,tag:Je.tag,payload:Je.payload,callback:Je.callback,next:null};qe===null?(Ie=qe=Te,ue=ne):qe=qe.next=Te,oe=pt(oe,kt)}if(Je=Je.next,Je===null){if(E=m.shared.pending,E===null)break;var xe=E,Oe=xe.next;xe.next=null,Je=Oe,m.lastBaseUpdate=xe,m.shared.pending=null}}while(!0);qe===null&&(ue=ne),m.baseState=ue,m.firstBaseUpdate=Ie,m.lastBaseUpdate=qe;var nt=m.shared.interleaved;if(nt!==null){var dt=nt;do oe=pt(oe,dt.lane),dt=dt.next;while(dt!==nt)}else g===null&&(m.shared.lanes=fe);z0(oe),e.lanes=oe,e.memoizedState=ne}L3=null}function SN(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function V7(){O3=!1}function P3(){return O3}function j7(e,t,i){var u=t.effects;if(t.effects=null,u!==null)for(var m=0;m<u.length;m++){var g=u[m],T=g.callback;T!==null&&(g.callback=null,SN(T,i))}}var v0={},ou=eu(v0),T0=eu(v0),M3=eu(v0);function D3(e){if(e===v0)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function B7(){var e=D3(M3.current);return e}function S8(e,t){Xa(M3,t,e),Xa(T0,e,e),Xa(ou,v0,e);var i=V_(t);Za(ou,e),Xa(ou,i,e)}function F1(e){Za(ou,e),Za(T0,e),Za(M3,e)}function w8(){var e=D3(ou.current);return e}function $7(e){D3(M3.current);var t=D3(ou.current),i=j_(t,e.type);t!==i&&(Xa(T0,e,e),Xa(ou,i,e))}function C8(e){T0.current===e&&(Za(ou,e),Za(T0,e))}var wN=0,z7=1,H7=1,b0=2,ts=eu(wN);function E8(e,t){return(e&t)!==0}function V1(e){return e&z7}function _8(e,t){return e&z7|t}function CN(e,t){return e|t}function su(e,t){Xa(ts,t,e)}function j1(e){Za(ts,e)}function EN(e,t){var i=e.memoizedState;return i!==null?i.dehydrated!==null:(e.memoizedProps,!0)}function U3(e){for(var t=e;t!==null;){if(t.tag===te){var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(u===null||i7(u)||H4(u))return t}}else if(t.tag===Be&&t.memoizedProps.revealOrder!==void 0){var m=(t.flags&at)!==Ze;if(m)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vr=0,Xn=1,Ms=2,Jn=4,Ra=8,I8=[];function N8(){for(var e=0;e<I8.length;e++){var t=I8[e];t._workInProgressVersionPrimary=null}I8.length=0}function _N(e,t){var i=t._getVersion,u=i(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,u]:e.mutableSourceEagerHydrationData.push(t,u)}var Ae=o.ReactCurrentDispatcher,k0=o.ReactCurrentBatchConfig,R8,B1;R8=new Set;var xc=fe,Bt=null,ea=null,ta=null,F3=!1,S0=!1,w0=0,IN=0,NN=25,ce=null,Co=null,iu=-1,O8=!1;function Dt(){{var e=ce;Co===null?Co=[e]:Co.push(e)}}function _e(){{var e=ce;Co!==null&&(iu++,Co[iu]!==e&&RN(e))}}function $1(e){e!=null&&!jn(e)&&f("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ce,typeof e)}function RN(e){{var t=ft(Bt);if(!R8.has(t)&&(R8.add(t),Co!==null)){for(var i="",u=30,m=0;m<=iu;m++){for(var g=Co[m],T=m===iu?e:g,E=m+1+". "+g;E.length<u;)E+=" ";E+=T+`
103
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return u}function w3(e,t){var i=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}function C3(e){{var t=ft(e)||"Component";if(d8[t])return;d8[t]=!0,f("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function R7(e){var t=e._payload,i=e._init;return i(t)}function O7(e){function t(X,le){if(e){var J=X.deletions;J===null?(X.deletions=[le],X.flags|=Pt):J.push(le)}}function i(X,le){if(!e)return null;for(var J=le;J!==null;)t(X,J),J=J.sibling;return null}function u(X,le){for(var J=new Map,Te=le;Te!==null;)Te.key!==null?J.set(Te.key,Te):J.set(Te.index,Te),Te=Te.sibling;return J}function m(X,le){var J=jc(X,le);return J.index=0,J.sibling=null,J}function g(X,le,J){if(X.index=J,!e)return X.flags|=ff,le;var Te=X.alternate;if(Te!==null){var xe=Te.index;return xe<le?(X.flags|=Kt,le):xe}else return X.flags|=Kt,le}function T(X){return e&&X.alternate===null&&(X.flags|=Kt),X}function E(X,le,J,Te){if(le===null||le.tag!==x){var xe=s5(J,X.mode,Te);return xe.return=X,xe}else{var Oe=m(le,J);return Oe.return=X,Oe}}function I(X,le,J,Te){var xe=J.type;if(xe===Po)return M(X,le,J.props.children,Te,J.key);if(le!==null&&(le.elementType===xe||MT(le,J)||typeof xe=="object"&&xe!==null&&xe.$$typeof===Ea&&R7(xe)===le.type)){var Oe=m(le,J.props);return Oe.ref=y0(X,le,J),Oe.return=X,Oe._debugSource=J._source,Oe._debugOwner=J._owner,Oe}var nt=o5(J,X.mode,Te);return nt.ref=y0(X,le,J),nt.return=X,nt}function A(X,le,J,Te){if(le===null||le.tag!==O||le.stateNode.containerInfo!==J.containerInfo||le.stateNode.implementation!==J.implementation){var xe=i5(J,X.mode,Te);return xe.return=X,xe}else{var Oe=m(le,J.children||[]);return Oe.return=X,Oe}}function M(X,le,J,Te,xe){if(le===null||le.tag!==D){var Oe=pu(J,X.mode,Te,xe);return Oe.return=X,Oe}else{var nt=m(le,J);return nt.return=X,nt}}function G(X,le,J){if(typeof le=="string"&&le!==""||typeof le=="number"){var Te=s5(""+le,X.mode,J);return Te.return=X,Te}if(typeof le=="object"&&le!==null){switch(le.$$typeof){case ll:{var xe=o5(le,X.mode,J);return xe.ref=y0(X,null,le),xe.return=X,xe}case Yr:{var Oe=i5(le,X.mode,J);return Oe.return=X,Oe}case Ea:{var nt=le._payload,dt=le._init;return G(X,dt(nt),J)}}if(jn(le)||Mo(le)){var $t=pu(le,X.mode,J,null);return $t.return=X,$t}w3(X,le)}return typeof le=="function"&&C3(X),null}function H(X,le,J,Te){var xe=le!==null?le.key:null;if(typeof J=="string"&&J!==""||typeof J=="number")return xe!==null?null:E(X,le,""+J,Te);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case ll:return J.key===xe?I(X,le,J,Te):null;case Yr:return J.key===xe?A(X,le,J,Te):null;case Ea:{var Oe=J._payload,nt=J._init;return H(X,le,nt(Oe),Te)}}if(jn(J)||Mo(J))return xe!==null?null:M(X,le,J,Te,null);w3(X,J)}return typeof J=="function"&&C3(X),null}function ne(X,le,J,Te,xe){if(typeof Te=="string"&&Te!==""||typeof Te=="number"){var Oe=X.get(J)||null;return E(le,Oe,""+Te,xe)}if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case ll:{var nt=X.get(Te.key===null?J:Te.key)||null;return I(le,nt,Te,xe)}case Yr:{var dt=X.get(Te.key===null?J:Te.key)||null;return A(le,dt,Te,xe)}case Ea:var $t=Te._payload,At=Te._init;return ne(X,le,J,At($t),xe)}if(jn(Te)||Mo(Te)){var Mn=X.get(J)||null;return M(le,Mn,Te,xe,null)}w3(le,Te)}return typeof Te=="function"&&C3(le),null}function oe(X,le,J){{if(typeof X!="object"||X===null)return le;switch(X.$$typeof){case ll:case Yr:N7(X,J);var Te=X.key;if(typeof Te!="string")break;if(le===null){le=new Set,le.add(Te);break}if(!le.has(Te)){le.add(Te);break}f("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Te);break;case Ea:var xe=X._payload,Oe=X._init;oe(Oe(xe),le,J);break}}return le}function ue(X,le,J,Te){for(var xe=null,Oe=0;Oe<J.length;Oe++){var nt=J[Oe];xe=oe(nt,xe,X)}for(var dt=null,$t=null,At=le,Mn=0,xt=0,En=null;At!==null&&xt<J.length;xt++){At.index>xt?(En=At,At=null):En=At.sibling;var er=H(X,At,J[xt],Te);if(er===null){At===null&&(At=En);break}e&&At&&er.alternate===null&&t(X,At),Mn=g(er,Mn,xt),$t===null?dt=er:$t.sibling=er,$t=er,At=En}if(xt===J.length){if(i(X,At),Na()){var Ma=xt;Ic(X,Ma)}return dt}if(At===null){for(;xt<J.length;xt++){var so=G(X,J[xt],Te);so!==null&&(Mn=g(so,Mn,xt),$t===null?dt=so:$t.sibling=so,$t=so)}if(Na()){var hr=xt;Ic(X,hr)}return dt}for(var gr=u(X,At);xt<J.length;xt++){var tr=ne(gr,X,xt,J[xt],Te);tr!==null&&(e&&tr.alternate!==null&&gr.delete(tr.key===null?xt:tr.key),Mn=g(tr,Mn,xt),$t===null?dt=tr:$t.sibling=tr,$t=tr)}if(e&&gr.forEach(function(J1){return t(X,J1)}),Na()){var qi=xt;Ic(X,qi)}return dt}function Ie(X,le,J,Te){var xe=Mo(J);if(typeof xe!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&J[Symbol.toStringTag]==="Generator"&&(l8||f("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),l8=!0),J.entries===xe&&(i8||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),i8=!0);var Oe=xe.call(J);if(Oe)for(var nt=null,dt=Oe.next();!dt.done;dt=Oe.next()){var $t=dt.value;nt=oe($t,nt,X)}}var At=xe.call(J);if(At==null)throw new Error("An iterable object provided no iterator.");for(var Mn=null,xt=null,En=le,er=0,Ma=0,so=null,hr=At.next();En!==null&&!hr.done;Ma++,hr=At.next()){En.index>Ma?(so=En,En=null):so=En.sibling;var gr=H(X,En,hr.value,Te);if(gr===null){En===null&&(En=so);break}e&&En&&gr.alternate===null&&t(X,En),er=g(gr,er,Ma),xt===null?Mn=gr:xt.sibling=gr,xt=gr,En=so}if(hr.done){if(i(X,En),Na()){var tr=Ma;Ic(X,tr)}return Mn}if(En===null){for(;!hr.done;Ma++,hr=At.next()){var qi=G(X,hr.value,Te);qi!==null&&(er=g(qi,er,Ma),xt===null?Mn=qi:xt.sibling=qi,xt=qi)}if(Na()){var J1=Ma;Ic(X,J1)}return Mn}for(var Q0=u(X,En);!hr.done;Ma++,hr=At.next()){var $s=ne(Q0,X,Ma,hr.value,Te);$s!==null&&(e&&$s.alternate!==null&&Q0.delete($s.key===null?Ma:$s.key),er=g($s,er,Ma),xt===null?Mn=$s:xt.sibling=$s,xt=$s)}if(e&&Q0.forEach(function(FL){return t(X,FL)}),Na()){var UL=Ma;Ic(X,UL)}return Mn}function qe(X,le,J,Te){if(le!==null&&le.tag===x){i(X,le.sibling);var xe=m(le,J);return xe.return=X,xe}i(X,le);var Oe=s5(J,X.mode,Te);return Oe.return=X,Oe}function Je(X,le,J,Te){for(var xe=J.key,Oe=le;Oe!==null;){if(Oe.key===xe){var nt=J.type;if(nt===Po){if(Oe.tag===D){i(X,Oe.sibling);var dt=m(Oe,J.props.children);return dt.return=X,dt._debugSource=J._source,dt._debugOwner=J._owner,dt}}else if(Oe.elementType===nt||MT(Oe,J)||typeof nt=="object"&&nt!==null&&nt.$$typeof===Ea&&R7(nt)===Oe.type){i(X,Oe.sibling);var $t=m(Oe,J.props);return $t.ref=y0(X,Oe,J),$t.return=X,$t._debugSource=J._source,$t._debugOwner=J._owner,$t}i(X,Oe);break}else t(X,Oe);Oe=Oe.sibling}if(J.type===Po){var At=pu(J.props.children,X.mode,Te,J.key);return At.return=X,At}else{var Mn=o5(J,X.mode,Te);return Mn.ref=y0(X,le,J),Mn.return=X,Mn}}function kt(X,le,J,Te){for(var xe=J.key,Oe=le;Oe!==null;){if(Oe.key===xe)if(Oe.tag===O&&Oe.stateNode.containerInfo===J.containerInfo&&Oe.stateNode.implementation===J.implementation){i(X,Oe.sibling);var nt=m(Oe,J.children||[]);return nt.return=X,nt}else{i(X,Oe);break}else t(X,Oe);Oe=Oe.sibling}var dt=i5(J,X.mode,Te);return dt.return=X,dt}function Tt(X,le,J,Te){var xe=typeof J=="object"&&J!==null&&J.type===Po&&J.key===null;if(xe&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case ll:return T(Je(X,le,J,Te));case Yr:return T(kt(X,le,J,Te));case Ea:var Oe=J._payload,nt=J._init;return Tt(X,le,nt(Oe),Te)}if(jn(J))return ue(X,le,J,Te);if(Mo(J))return Ie(X,le,J,Te);w3(X,J)}return typeof J=="string"&&J!==""||typeof J=="number"?T(qe(X,le,""+J,Te)):(typeof J=="function"&&C3(X),i(X,le))}return Tt}var M1=O7(!0),L7=O7(!1);function fN(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var i=t.child,u=jc(i,i.pendingProps);for(t.child=u,u.return=t;i.sibling!==null;)i=i.sibling,u=u.sibling=jc(i,i.pendingProps),u.return=t;u.sibling=null}}function pN(e,t){for(var i=e.child;i!==null;)tL(i,t),i=i.sibling}var m8=eu(null),f8;f8={};var E3=null,D1=null,p8=null,_3=!1;function I3(){E3=null,D1=null,p8=null,_3=!1}function A7(){_3=!0}function x7(){_3=!1}function P7(e,t,i){Xa(m8,t._currentValue,e),t._currentValue=i,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==f8&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=f8}function h8(e,t){var i=m8.current;Za(m8,t),e._currentValue=i}function g8(e,t,i){for(var u=e;u!==null;){var m=u.alternate;if(wi(u.childLanes,t)?m!==null&&!wi(m.childLanes,t)&&(m.childLanes=pt(m.childLanes,t)):(u.childLanes=pt(u.childLanes,t),m!==null&&(m.childLanes=pt(m.childLanes,t))),u===i)break;u=u.return}u!==i&&f("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function hN(e,t,i){gN(e,t,i)}function gN(e,t,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var m=void 0,g=u.dependencies;if(g!==null){m=u.child;for(var T=g.firstContext;T!==null;){if(T.context===t){if(u.tag===C){var E=Ul(i),I=Vi(Wt,E);I.tag=R3;var A=u.updateQueue;if(A!==null){var M=A.shared,G=M.pending;G===null?I.next=I:(I.next=G.next,G.next=I),M.pending=I}}u.lanes=pt(u.lanes,i);var H=u.alternate;H!==null&&(H.lanes=pt(H.lanes,i)),g8(u.return,i,e),g.lanes=pt(g.lanes,i);break}T=T.next}}else if(u.tag===Y)m=u.type===e.type?null:u.child;else if(u.tag===Ye){var ne=u.return;if(ne===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ne.lanes=pt(ne.lanes,i);var oe=ne.alternate;oe!==null&&(oe.lanes=pt(oe.lanes,i)),g8(ne,i,e),m=u.sibling}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}var ue=m.sibling;if(ue!==null){ue.return=m.return,m=ue;break}m=m.return}u=m}}function U1(e,t){E3=e,D1=null,p8=null;var i=e.dependencies;if(i!==null){var u=i.firstContext;u!==null&&(Ka(i.lanes,t)&&A0(),i.firstContext=null)}}function Gn(e){_3&&f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(p8!==e){var i={context:e,memoizedValue:t,next:null};if(D1===null){if(E3===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");D1=i,E3.dependencies={lanes:fe,firstContext:i}}else D1=D1.next=i}return t}var Ac=null;function y8(e){Ac===null?Ac=[e]:Ac.push(e)}function yN(){if(Ac!==null){for(var e=0;e<Ac.length;e++){var t=Ac[e],i=t.interleaved;if(i!==null){t.interleaved=null;var u=i.next,m=t.pending;if(m!==null){var g=m.next;m.next=u,i.next=g}t.pending=i}}Ac=null}}function M7(e,t,i,u){var m=t.interleaved;return m===null?(i.next=i,y8(t)):(i.next=m.next,m.next=i),t.interleaved=i,N3(e,u)}function vN(e,t,i,u){var m=t.interleaved;m===null?(i.next=i,y8(t)):(i.next=m.next,m.next=i),t.interleaved=i}function TN(e,t,i,u){var m=t.interleaved;return m===null?(i.next=i,y8(t)):(i.next=m.next,m.next=i),t.interleaved=i,N3(e,u)}function Fr(e,t){return N3(e,t)}var bN=N3;function N3(e,t){e.lanes=pt(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=pt(i.lanes,t)),i===null&&(e.flags&(Kt|Ir))!==Ze&&LT(e);for(var u=e,m=e.return;m!==null;)m.childLanes=pt(m.childLanes,t),i=m.alternate,i!==null?i.childLanes=pt(i.childLanes,t):(m.flags&(Kt|Ir))!==Ze&&LT(e),u=m,m=m.return;if(u.tag===N){var g=u.stateNode;return g}else return null}var D7=0,U7=1,R3=2,v8=3,O3=!1,T8,L3;T8=!1,L3=null;function b8(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:fe},effects:null};e.updateQueue=t}function F7(e,t){var i=t.updateQueue,u=e.updateQueue;if(i===u){var m={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects};t.updateQueue=m}}function Vi(e,t){var i={eventTime:e,lane:t,tag:D7,payload:null,callback:null,next:null};return i}function ru(e,t,i){var u=e.updateQueue;if(u===null)return null;var m=u.shared;if(L3===m&&!T8&&(f("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),T8=!0),vO()){var g=m.pending;return g===null?t.next=t:(t.next=g.next,g.next=t),m.pending=t,bN(e,i)}else return TN(e,m,t,i)}function A3(e,t,i){var u=t.updateQueue;if(u!==null){var m=u.shared;if(Nf(i)){var g=m.lanes;g=r1(g,e.pendingLanes);var T=pt(g,i);m.lanes=T,Fl(e,T)}}}function k8(e,t){var i=e.updateQueue,u=e.alternate;if(u!==null){var m=u.updateQueue;if(i===m){var g=null,T=null,E=i.firstBaseUpdate;if(E!==null){var I=E;do{var A={eventTime:I.eventTime,lane:I.lane,tag:I.tag,payload:I.payload,callback:I.callback,next:null};T===null?g=T=A:(T.next=A,T=A),I=I.next}while(I!==null);T===null?g=T=t:(T.next=t,T=t)}else g=T=t;i={baseState:m.baseState,firstBaseUpdate:g,lastBaseUpdate:T,shared:m.shared,effects:m.effects},e.updateQueue=i;return}}var M=i.lastBaseUpdate;M===null?i.firstBaseUpdate=t:M.next=t,i.lastBaseUpdate=t}function kN(e,t,i,u,m,g){switch(i.tag){case U7:{var T=i.payload;if(typeof T=="function"){A7();var E=T.call(g,u,m);{if(e.mode&bt){Sn(!0);try{T.call(g,u,m)}finally{Sn(!1)}}x7()}return E}return T}case v8:e.flags=e.flags&~$n|rt;case D7:{var I=i.payload,A;if(typeof I=="function"){A7(),A=I.call(g,u,m);{if(e.mode&bt){Sn(!0);try{I.call(g,u,m)}finally{Sn(!1)}}x7()}}else A=I;return A==null?u:Ct({},u,A)}case R3:return O3=!0,u}return u}function x3(e,t,i,u){var m=e.updateQueue;O3=!1,L3=m.shared;var g=m.firstBaseUpdate,T=m.lastBaseUpdate,E=m.shared.pending;if(E!==null){m.shared.pending=null;var I=E,A=I.next;I.next=null,T===null?g=A:T.next=A,T=I;var M=e.alternate;if(M!==null){var G=M.updateQueue,H=G.lastBaseUpdate;H!==T&&(H===null?G.firstBaseUpdate=A:H.next=A,G.lastBaseUpdate=I)}}if(g!==null){var ne=m.baseState,oe=fe,ue=null,Ie=null,qe=null,Je=g;do{var kt=Je.lane,Tt=Je.eventTime;if(wi(u,kt)){if(qe!==null){var X={eventTime:Tt,lane:wn,tag:Je.tag,payload:Je.payload,callback:Je.callback,next:null};qe=qe.next=X}ne=kN(e,m,Je,ne,t,i);var le=Je.callback;if(le!==null&&Je.lane!==wn){e.flags|=go;var J=m.effects;J===null?m.effects=[Je]:J.push(Je)}}else{var Te={eventTime:Tt,lane:kt,tag:Je.tag,payload:Je.payload,callback:Je.callback,next:null};qe===null?(Ie=qe=Te,ue=ne):qe=qe.next=Te,oe=pt(oe,kt)}if(Je=Je.next,Je===null){if(E=m.shared.pending,E===null)break;var xe=E,Oe=xe.next;xe.next=null,Je=Oe,m.lastBaseUpdate=xe,m.shared.pending=null}}while(!0);qe===null&&(ue=ne),m.baseState=ue,m.firstBaseUpdate=Ie,m.lastBaseUpdate=qe;var nt=m.shared.interleaved;if(nt!==null){var dt=nt;do oe=pt(oe,dt.lane),dt=dt.next;while(dt!==nt)}else g===null&&(m.shared.lanes=fe);z0(oe),e.lanes=oe,e.memoizedState=ne}L3=null}function SN(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function V7(){O3=!1}function P3(){return O3}function j7(e,t,i){var u=t.effects;if(t.effects=null,u!==null)for(var m=0;m<u.length;m++){var g=u[m],T=g.callback;T!==null&&(g.callback=null,SN(T,i))}}var v0={},ou=eu(v0),T0=eu(v0),M3=eu(v0);function D3(e){if(e===v0)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function B7(){var e=D3(M3.current);return e}function S8(e,t){Xa(M3,t,e),Xa(T0,e,e),Xa(ou,v0,e);var i=V_(t);Za(ou,e),Xa(ou,i,e)}function F1(e){Za(ou,e),Za(T0,e),Za(M3,e)}function w8(){var e=D3(ou.current);return e}function $7(e){D3(M3.current);var t=D3(ou.current),i=j_(t,e.type);t!==i&&(Xa(T0,e,e),Xa(ou,i,e))}function C8(e){T0.current===e&&(Za(ou,e),Za(T0,e))}var wN=0,z7=1,H7=1,b0=2,ts=eu(wN);function E8(e,t){return(e&t)!==0}function V1(e){return e&z7}function _8(e,t){return e&z7|t}function CN(e,t){return e|t}function su(e,t){Xa(ts,t,e)}function j1(e){Za(ts,e)}function EN(e,t){var i=e.memoizedState;return i!==null?i.dehydrated!==null:(e.memoizedProps,!0)}function U3(e){for(var t=e;t!==null;){if(t.tag===te){var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(u===null||i7(u)||H4(u))return t}}else if(t.tag===Be&&t.memoizedProps.revealOrder!==void 0){var m=(t.flags&rt)!==Ze;if(m)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vr=0,Xn=1,Ms=2,Jn=4,Ra=8,I8=[];function N8(){for(var e=0;e<I8.length;e++){var t=I8[e];t._workInProgressVersionPrimary=null}I8.length=0}function _N(e,t){var i=t._getVersion,u=i(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,u]:e.mutableSourceEagerHydrationData.push(t,u)}var Ae=o.ReactCurrentDispatcher,k0=o.ReactCurrentBatchConfig,R8,B1;R8=new Set;var xc=fe,Bt=null,ea=null,ta=null,F3=!1,S0=!1,w0=0,IN=0,NN=25,ce=null,Co=null,iu=-1,O8=!1;function Dt(){{var e=ce;Co===null?Co=[e]:Co.push(e)}}function _e(){{var e=ce;Co!==null&&(iu++,Co[iu]!==e&&RN(e))}}function $1(e){e!=null&&!jn(e)&&f("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ce,typeof e)}function RN(e){{var t=ft(Bt);if(!R8.has(t)&&(R8.add(t),Co!==null)){for(var i="",u=30,m=0;m<=iu;m++){for(var g=Co[m],T=m===iu?e:g,E=m+1+". "+g;E.length<u;)E+=" ";E+=T+`
104
104
  `,i+=E}f(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
105
105
 
106
106
  Previous render Next render
@@ -129,9 +129,9 @@ https://reactjs.org/link/unsafe-component-lifecycles`,Ie,qe,ne!==null?`
129
129
  Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var M=ft(e)||"Anonymous";A="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+M+".")}var G=I+`
130
130
  `+T+`
131
131
 
132
- `+(""+A);console.error(G)}catch(H){setTimeout(function(){throw H})}}var zN=typeof WeakMap=="function"?WeakMap:Map;function Ev(e,t,i){var u=Vi(Wt,i);u.tag=v8,u.payload={element:null};var m=t.value;return u.callback=function(){MO(m),fg(e,t)},u}function pg(e,t,i){var u=Vi(Wt,i);u.tag=v8;var m=e.type.getDerivedStateFromError;if(typeof m=="function"){var g=t.value;u.payload=function(){return m(g)},u.callback=function(){DT(e),fg(e,t)}}var T=e.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(u.callback=function(){DT(e),fg(e,t),typeof m!="function"&&xO(this);var E=t.value,I=t.stack;this.componentDidCatch(E,{componentStack:I!==null?I:""}),typeof m!="function"&&(Ka(e.lanes,Qe)||f("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ft(e)||"Unknown"))}),u}function _v(e,t,i){var u=e.pingCache,m;if(u===null?(u=e.pingCache=new zN,m=new Set,u.set(t,m)):(m=u.get(t),m===void 0&&(m=new Set,u.set(t,m))),!m.has(i)){m.add(i);var g=DO.bind(null,e,t,i);lr&&H0(e,i),t.then(g,g)}}function HN(e,t,i,u){var m=e.updateQueue;if(m===null){var g=new Set;g.add(i),e.updateQueue=g}else m.add(i)}function qN(e,t){var i=e.tag;if((e.mode&ze)===$e&&(i===b||i===Z||i===ae)){var u=e.alternate;u?(e.updateQueue=u.updateQueue,e.memoizedState=u.memoizedState,e.lanes=u.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Iv(e){var t=e;do{if(t.tag===te&&EN(t))return t;t=t.return}while(t!==null);return null}function Nv(e,t,i,u,m){if((e.mode&ze)===$e){if(e===t)e.flags|=$n;else{if(e.flags|=at,i.flags|=tc,i.flags&=~(Rd|or),i.tag===C){var g=i.alternate;if(g===null)i.tag=Se;else{var T=Vi(Wt,Qe);T.tag=R3,ru(i,T,Qe)}}i.lanes=pt(i.lanes,Qe)}return e}return e.flags|=$n,e.lanes=m,e}function GN(e,t,i,u,m){if(i.flags|=or,lr&&H0(e,m),u!==null&&typeof u=="object"&&typeof u.then=="function"){var g=u;qN(i),Na()&&i.mode&ze&&T7();var T=Iv(t);if(T!==null){T.flags&=~dn,Nv(T,t,i,e,m),T.mode&ze&&_v(e,g,m),HN(T,e,g);return}else{if(!If(m)){_v(e,g,m),Wg();return}var E=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");u=E}}else if(Na()&&i.mode&ze){T7();var I=Iv(t);if(I!==null){(I.flags&$n)===Ze&&(I.flags|=dn),Nv(I,t,i,e,m),s8(Pc(u,i));return}}u=Pc(u,i),EO(u);var A=t;do{switch(A.tag){case N:{var M=u;A.flags|=$n;var G=Ul(m);A.lanes=pt(A.lanes,G);var H=Ev(A,M,G);k8(A,H);return}case C:var ne=u,oe=A.type,ue=A.stateNode;if((A.flags&at)===Ze&&(typeof oe.getDerivedStateFromError=="function"||ue!==null&&typeof ue.componentDidCatch=="function"&&!IT(ue))){A.flags|=$n;var Ie=Ul(m);A.lanes=pt(A.lanes,Ie);var qe=pg(A,ne,Ie);k8(A,qe);return}break}A=A.return}while(A!==null)}function WN(){return null}var R0=o.ReactCurrentOwner,rs=!1,hg,O0,gg,yg,vg,Mc,Tg,rh,L0;hg={},O0={},gg={},yg={},vg={},Mc=!1,Tg={},rh={},L0={};function mr(e,t,i,u){e===null?t.child=L7(t,null,i,u):t.child=M1(t,e.child,i,u)}function QN(e,t,i,u){t.child=M1(t,e.child,null,u),t.child=M1(t,null,i,u)}function Rv(e,t,i,u,m){if(t.type!==t.elementType){var g=i.propTypes;g&&Xo(g,u,"prop",Vt(i))}var T=i.render,E=t.ref,I,A;U1(t,m),Il(t);{if(R0.current=t,Xr(!0),I=z1(e,t,T,u,E,m),A=H1(),t.mode&bt){Sn(!0);try{I=z1(e,t,T,u,E,m),A=H1()}finally{Sn(!1)}}Xr(!1)}return Wa(),e!==null&&!rs?(q7(e,t,m),ji(e,t,m)):(Na()&&A&&e8(t),t.flags|=bs,mr(e,t,I,m),t.child)}function Ov(e,t,i,u,m){if(e===null){var g=i.type;if(JO(g)&&i.compare===null&&i.defaultProps===void 0){var T=g;return T=X1(g),t.tag=ae,t.type=T,Sg(t,g),Lv(e,t,T,u,m)}{var E=g.propTypes;if(E&&Xo(E,u,"prop",Vt(g)),i.defaultProps!==void 0){var I=Vt(g)||"Unknown";L0[I]||(f("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",I),L0[I]=!0)}}var A=r5(i.type,null,u,t,t.mode,m);return A.ref=t.ref,A.return=t,t.child=A,A}{var M=i.type,G=M.propTypes;G&&Xo(G,u,"prop",Vt(M))}var H=e.child,ne=Ng(e,m);if(!ne){var oe=H.memoizedProps,ue=i.compare;if(ue=ue!==null?ue:Ke,ue(oe,u)&&e.ref===t.ref)return ji(e,t,m)}t.flags|=bs;var Ie=jc(H,u);return Ie.ref=t.ref,Ie.return=t,t.child=Ie,Ie}function Lv(e,t,i,u,m){if(t.type!==t.elementType){var g=t.elementType;if(g.$$typeof===Ea){var T=g,E=T._payload,I=T._init;try{g=I(E)}catch{g=null}var A=g&&g.propTypes;A&&Xo(A,u,"prop",Vt(g))}}if(e!==null){var M=e.memoizedProps;if(Ke(M,u)&&e.ref===t.ref&&t.type===e.type)if(rs=!1,t.pendingProps=u=M,Ng(e,m))(e.flags&tc)!==Ze&&(rs=!0);else return t.lanes=e.lanes,ji(e,t,m)}return bg(e,t,i,u,m)}function Av(e,t,i){var u=t.pendingProps,m=u.children,g=e!==null?e.memoizedState:null;if(u.mode==="hidden"||we)if((t.mode&ze)===$e){var T={baseLanes:fe,cachePool:null,transitions:null};t.memoizedState=T,vh(t,i)}else if(Ka(i,ha)){var E={baseLanes:fe,cachePool:null,transitions:null};t.memoizedState=E;var I=g!==null?g.baseLanes:i;vh(t,I)}else{var A=null,M;if(g!==null){var G=g.baseLanes;M=pt(G,i)}else M=i;t.lanes=t.childLanes=ha;var H={baseLanes:M,cachePool:A,transitions:null};return t.memoizedState=H,t.updateQueue=null,vh(t,M),null}else{var ne;g!==null?(ne=pt(g.baseLanes,i),t.memoizedState=null):ne=i,vh(t,ne)}return mr(e,t,m,i),t.child}function YN(e,t,i){var u=t.pendingProps;return mr(e,t,u,i),t.child}function KN(e,t,i){var u=t.pendingProps.children;return mr(e,t,u,i),t.child}function ZN(e,t,i){{t.flags|=ht;{var u=t.stateNode;u.effectDuration=0,u.passiveEffectDuration=0}}var m=t.pendingProps,g=m.children;return mr(e,t,g,i),t.child}function xv(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=$a,t.flags|=pf)}function bg(e,t,i,u,m){if(t.type!==t.elementType){var g=i.propTypes;g&&Xo(g,u,"prop",Vt(i))}var T;{var E=O1(t,i,!0);T=L1(t,E)}var I,A;U1(t,m),Il(t);{if(R0.current=t,Xr(!0),I=z1(e,t,i,u,T,m),A=H1(),t.mode&bt){Sn(!0);try{I=z1(e,t,i,u,T,m),A=H1()}finally{Sn(!1)}}Xr(!1)}return Wa(),e!==null&&!rs?(q7(e,t,m),ji(e,t,m)):(Na()&&A&&e8(t),t.flags|=bs,mr(e,t,I,m),t.child)}function Pv(e,t,i,u,m){{switch(pL(t)){case!1:{var g=t.stateNode,T=t.type,E=new T(t.memoizedProps,g.context),I=E.state;g.updater.enqueueSetState(g,I,null);break}case!0:{t.flags|=at,t.flags|=$n;var A=new Error("Simulated error coming from DevTools"),M=Ul(m);t.lanes=pt(t.lanes,M);var G=pg(t,Pc(A,t),M);k8(t,G);break}}if(t.type!==t.elementType){var H=i.propTypes;H&&Xo(H,u,"prop",Vt(i))}}var ne;Ps(i)?(ne=!0,g3(t)):ne=!1,U1(t,m);var oe=t.stateNode,ue;oe===null?(sh(e,t),wv(t,i,u),dg(t,i,u,m),ue=!0):e===null?ue=jN(t,i,u,m):ue=BN(e,t,i,u,m);var Ie=kg(e,t,i,ue,ne,m);{var qe=t.stateNode;ue&&qe.props!==u&&(Mc||f("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ft(t)||"a component"),Mc=!0)}return Ie}function kg(e,t,i,u,m,g){xv(e,t);var T=(t.flags&at)!==Ze;if(!u&&!T)return m&&h7(t,i,!1),ji(e,t,g);var E=t.stateNode;R0.current=t;var I;if(T&&typeof i.getDerivedStateFromError!="function")I=null,vv();else{Il(t);{if(Xr(!0),I=E.render(),t.mode&bt){Sn(!0);try{E.render()}finally{Sn(!1)}}Xr(!1)}Wa()}return t.flags|=bs,e!==null&&T?QN(e,t,I,g):mr(e,t,I,g),t.memoizedState=E.state,m&&h7(t,i,!0),t.child}function Mv(e){var t=e.stateNode;t.pendingContext?f7(e,t.pendingContext,t.pendingContext!==t.context):t.context&&f7(e,t.context,!1),S8(e,t.containerInfo)}function XN(e,t,i){if(Mv(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var u=t.pendingProps,m=t.memoizedState,g=m.element;F7(e,t),x3(t,u,null,i);var T=t.memoizedState;t.stateNode;var E=T.element;if(m.isDehydrated){var I={element:E,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},A=t.updateQueue;if(A.baseState=I,t.memoizedState=I,t.flags&dn){var M=Pc(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return Dv(e,t,E,i,M)}else if(E!==g){var G=Pc(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return Dv(e,t,E,i,G)}else{tN(t);var H=L7(t,null,E,i);t.child=H;for(var ne=H;ne;)ne.flags=ne.flags&~Kt|Ir,ne=ne.sibling}}else{if(P1(),E===g)return ji(e,t,i);mr(e,t,E,i)}return t.child}function Dv(e,t,i,u,m){return P1(),s8(m),t.flags|=dn,mr(e,t,i,u),t.child}function JN(e,t,i){$7(t),e===null&&o8(t);var u=t.type,m=t.pendingProps,g=e!==null?e.memoizedProps:null,T=m.children,E=j4(u,m);return E?T=null:g!==null&&j4(u,g)&&(t.flags|=Mt),xv(e,t),mr(e,t,T,i),t.child}function eR(e,t){return e===null&&o8(t),null}function tR(e,t,i,u){sh(e,t);var m=t.pendingProps,g=i,T=g._payload,E=g._init,I=E(T);t.type=I;var A=t.tag=eL(I),M=as(I,m),G;switch(A){case b:return Sg(t,I),t.type=I=X1(I),G=bg(null,t,I,M,u),G;case C:return t.type=I=Xg(I),G=Pv(null,t,I,M,u),G;case Z:return t.type=I=Jg(I),G=Rv(null,t,I,M,u),G;case ie:{if(t.type!==t.elementType){var H=I.propTypes;H&&Xo(H,M,"prop",Vt(I))}return G=Ov(null,t,I,as(I.type,M),u),G}}var ne="";throw I!==null&&typeof I=="object"&&I.$$typeof===Ea&&(ne=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+I+". "+("Lazy element type must resolve to a class or function."+ne))}function nR(e,t,i,u,m){sh(e,t),t.tag=C;var g;return Ps(i)?(g=!0,g3(t)):g=!1,U1(t,m),wv(t,i,u),dg(t,i,u,m),kg(null,t,i,!0,g,m)}function aR(e,t,i,u){sh(e,t);var m=t.pendingProps,g;{var T=O1(t,i,!1);g=L1(t,T)}U1(t,u);var E,I;Il(t);{if(i.prototype&&typeof i.prototype.render=="function"){var A=Vt(i)||"Unknown";hg[A]||(f("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",A,A),hg[A]=!0)}t.mode&bt&&es.recordLegacyContextWarning(t,null),Xr(!0),R0.current=t,E=z1(null,t,i,m,g,u),I=H1(),Xr(!1)}if(Wa(),t.flags|=bs,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0){var M=Vt(i)||"Unknown";O0[M]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",M,M,M),O0[M]=!0)}if(typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0){{var G=Vt(i)||"Unknown";O0[G]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",G,G,G),O0[G]=!0)}t.tag=C,t.memoizedState=null,t.updateQueue=null;var H=!1;return Ps(i)?(H=!0,g3(t)):H=!1,t.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,b8(t),Sv(t,E),dg(t,i,m,u),kg(null,t,i,!0,H,u)}else{if(t.tag=b,t.mode&bt){Sn(!0);try{E=z1(null,t,i,m,g,u),I=H1()}finally{Sn(!1)}}return Na()&&I&&e8(t),mr(null,t,E,u),Sg(t,i),t.child}}function Sg(e,t){{if(t&&t.childContextTypes&&f("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var i="",u=wr();u&&(i+=`
132
+ `+(""+A);console.error(G)}catch(H){setTimeout(function(){throw H})}}var zN=typeof WeakMap=="function"?WeakMap:Map;function Ev(e,t,i){var u=Vi(Wt,i);u.tag=v8,u.payload={element:null};var m=t.value;return u.callback=function(){MO(m),fg(e,t)},u}function pg(e,t,i){var u=Vi(Wt,i);u.tag=v8;var m=e.type.getDerivedStateFromError;if(typeof m=="function"){var g=t.value;u.payload=function(){return m(g)},u.callback=function(){DT(e),fg(e,t)}}var T=e.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(u.callback=function(){DT(e),fg(e,t),typeof m!="function"&&xO(this);var E=t.value,I=t.stack;this.componentDidCatch(E,{componentStack:I!==null?I:""}),typeof m!="function"&&(Ka(e.lanes,Qe)||f("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ft(e)||"Unknown"))}),u}function _v(e,t,i){var u=e.pingCache,m;if(u===null?(u=e.pingCache=new zN,m=new Set,u.set(t,m)):(m=u.get(t),m===void 0&&(m=new Set,u.set(t,m))),!m.has(i)){m.add(i);var g=DO.bind(null,e,t,i);lr&&H0(e,i),t.then(g,g)}}function HN(e,t,i,u){var m=e.updateQueue;if(m===null){var g=new Set;g.add(i),e.updateQueue=g}else m.add(i)}function qN(e,t){var i=e.tag;if((e.mode&ze)===$e&&(i===b||i===Z||i===ae)){var u=e.alternate;u?(e.updateQueue=u.updateQueue,e.memoizedState=u.memoizedState,e.lanes=u.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Iv(e){var t=e;do{if(t.tag===te&&EN(t))return t;t=t.return}while(t!==null);return null}function Nv(e,t,i,u,m){if((e.mode&ze)===$e){if(e===t)e.flags|=$n;else{if(e.flags|=rt,i.flags|=tc,i.flags&=~(Rd|or),i.tag===C){var g=i.alternate;if(g===null)i.tag=Se;else{var T=Vi(Wt,Qe);T.tag=R3,ru(i,T,Qe)}}i.lanes=pt(i.lanes,Qe)}return e}return e.flags|=$n,e.lanes=m,e}function GN(e,t,i,u,m){if(i.flags|=or,lr&&H0(e,m),u!==null&&typeof u=="object"&&typeof u.then=="function"){var g=u;qN(i),Na()&&i.mode&ze&&T7();var T=Iv(t);if(T!==null){T.flags&=~dn,Nv(T,t,i,e,m),T.mode&ze&&_v(e,g,m),HN(T,e,g);return}else{if(!If(m)){_v(e,g,m),Wg();return}var E=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");u=E}}else if(Na()&&i.mode&ze){T7();var I=Iv(t);if(I!==null){(I.flags&$n)===Ze&&(I.flags|=dn),Nv(I,t,i,e,m),s8(Pc(u,i));return}}u=Pc(u,i),EO(u);var A=t;do{switch(A.tag){case N:{var M=u;A.flags|=$n;var G=Ul(m);A.lanes=pt(A.lanes,G);var H=Ev(A,M,G);k8(A,H);return}case C:var ne=u,oe=A.type,ue=A.stateNode;if((A.flags&rt)===Ze&&(typeof oe.getDerivedStateFromError=="function"||ue!==null&&typeof ue.componentDidCatch=="function"&&!IT(ue))){A.flags|=$n;var Ie=Ul(m);A.lanes=pt(A.lanes,Ie);var qe=pg(A,ne,Ie);k8(A,qe);return}break}A=A.return}while(A!==null)}function WN(){return null}var R0=o.ReactCurrentOwner,rs=!1,hg,O0,gg,yg,vg,Mc,Tg,rh,L0;hg={},O0={},gg={},yg={},vg={},Mc=!1,Tg={},rh={},L0={};function mr(e,t,i,u){e===null?t.child=L7(t,null,i,u):t.child=M1(t,e.child,i,u)}function QN(e,t,i,u){t.child=M1(t,e.child,null,u),t.child=M1(t,null,i,u)}function Rv(e,t,i,u,m){if(t.type!==t.elementType){var g=i.propTypes;g&&Xo(g,u,"prop",Vt(i))}var T=i.render,E=t.ref,I,A;U1(t,m),Il(t);{if(R0.current=t,Xr(!0),I=z1(e,t,T,u,E,m),A=H1(),t.mode&bt){Sn(!0);try{I=z1(e,t,T,u,E,m),A=H1()}finally{Sn(!1)}}Xr(!1)}return Wa(),e!==null&&!rs?(q7(e,t,m),ji(e,t,m)):(Na()&&A&&e8(t),t.flags|=bs,mr(e,t,I,m),t.child)}function Ov(e,t,i,u,m){if(e===null){var g=i.type;if(JO(g)&&i.compare===null&&i.defaultProps===void 0){var T=g;return T=X1(g),t.tag=ae,t.type=T,Sg(t,g),Lv(e,t,T,u,m)}{var E=g.propTypes;if(E&&Xo(E,u,"prop",Vt(g)),i.defaultProps!==void 0){var I=Vt(g)||"Unknown";L0[I]||(f("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",I),L0[I]=!0)}}var A=r5(i.type,null,u,t,t.mode,m);return A.ref=t.ref,A.return=t,t.child=A,A}{var M=i.type,G=M.propTypes;G&&Xo(G,u,"prop",Vt(M))}var H=e.child,ne=Ng(e,m);if(!ne){var oe=H.memoizedProps,ue=i.compare;if(ue=ue!==null?ue:Ke,ue(oe,u)&&e.ref===t.ref)return ji(e,t,m)}t.flags|=bs;var Ie=jc(H,u);return Ie.ref=t.ref,Ie.return=t,t.child=Ie,Ie}function Lv(e,t,i,u,m){if(t.type!==t.elementType){var g=t.elementType;if(g.$$typeof===Ea){var T=g,E=T._payload,I=T._init;try{g=I(E)}catch{g=null}var A=g&&g.propTypes;A&&Xo(A,u,"prop",Vt(g))}}if(e!==null){var M=e.memoizedProps;if(Ke(M,u)&&e.ref===t.ref&&t.type===e.type)if(rs=!1,t.pendingProps=u=M,Ng(e,m))(e.flags&tc)!==Ze&&(rs=!0);else return t.lanes=e.lanes,ji(e,t,m)}return bg(e,t,i,u,m)}function Av(e,t,i){var u=t.pendingProps,m=u.children,g=e!==null?e.memoizedState:null;if(u.mode==="hidden"||we)if((t.mode&ze)===$e){var T={baseLanes:fe,cachePool:null,transitions:null};t.memoizedState=T,vh(t,i)}else if(Ka(i,ha)){var E={baseLanes:fe,cachePool:null,transitions:null};t.memoizedState=E;var I=g!==null?g.baseLanes:i;vh(t,I)}else{var A=null,M;if(g!==null){var G=g.baseLanes;M=pt(G,i)}else M=i;t.lanes=t.childLanes=ha;var H={baseLanes:M,cachePool:A,transitions:null};return t.memoizedState=H,t.updateQueue=null,vh(t,M),null}else{var ne;g!==null?(ne=pt(g.baseLanes,i),t.memoizedState=null):ne=i,vh(t,ne)}return mr(e,t,m,i),t.child}function YN(e,t,i){var u=t.pendingProps;return mr(e,t,u,i),t.child}function KN(e,t,i){var u=t.pendingProps.children;return mr(e,t,u,i),t.child}function ZN(e,t,i){{t.flags|=ht;{var u=t.stateNode;u.effectDuration=0,u.passiveEffectDuration=0}}var m=t.pendingProps,g=m.children;return mr(e,t,g,i),t.child}function xv(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=$a,t.flags|=pf)}function bg(e,t,i,u,m){if(t.type!==t.elementType){var g=i.propTypes;g&&Xo(g,u,"prop",Vt(i))}var T;{var E=O1(t,i,!0);T=L1(t,E)}var I,A;U1(t,m),Il(t);{if(R0.current=t,Xr(!0),I=z1(e,t,i,u,T,m),A=H1(),t.mode&bt){Sn(!0);try{I=z1(e,t,i,u,T,m),A=H1()}finally{Sn(!1)}}Xr(!1)}return Wa(),e!==null&&!rs?(q7(e,t,m),ji(e,t,m)):(Na()&&A&&e8(t),t.flags|=bs,mr(e,t,I,m),t.child)}function Pv(e,t,i,u,m){{switch(pL(t)){case!1:{var g=t.stateNode,T=t.type,E=new T(t.memoizedProps,g.context),I=E.state;g.updater.enqueueSetState(g,I,null);break}case!0:{t.flags|=rt,t.flags|=$n;var A=new Error("Simulated error coming from DevTools"),M=Ul(m);t.lanes=pt(t.lanes,M);var G=pg(t,Pc(A,t),M);k8(t,G);break}}if(t.type!==t.elementType){var H=i.propTypes;H&&Xo(H,u,"prop",Vt(i))}}var ne;Ps(i)?(ne=!0,g3(t)):ne=!1,U1(t,m);var oe=t.stateNode,ue;oe===null?(sh(e,t),wv(t,i,u),dg(t,i,u,m),ue=!0):e===null?ue=jN(t,i,u,m):ue=BN(e,t,i,u,m);var Ie=kg(e,t,i,ue,ne,m);{var qe=t.stateNode;ue&&qe.props!==u&&(Mc||f("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ft(t)||"a component"),Mc=!0)}return Ie}function kg(e,t,i,u,m,g){xv(e,t);var T=(t.flags&rt)!==Ze;if(!u&&!T)return m&&h7(t,i,!1),ji(e,t,g);var E=t.stateNode;R0.current=t;var I;if(T&&typeof i.getDerivedStateFromError!="function")I=null,vv();else{Il(t);{if(Xr(!0),I=E.render(),t.mode&bt){Sn(!0);try{E.render()}finally{Sn(!1)}}Xr(!1)}Wa()}return t.flags|=bs,e!==null&&T?QN(e,t,I,g):mr(e,t,I,g),t.memoizedState=E.state,m&&h7(t,i,!0),t.child}function Mv(e){var t=e.stateNode;t.pendingContext?f7(e,t.pendingContext,t.pendingContext!==t.context):t.context&&f7(e,t.context,!1),S8(e,t.containerInfo)}function XN(e,t,i){if(Mv(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var u=t.pendingProps,m=t.memoizedState,g=m.element;F7(e,t),x3(t,u,null,i);var T=t.memoizedState;t.stateNode;var E=T.element;if(m.isDehydrated){var I={element:E,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},A=t.updateQueue;if(A.baseState=I,t.memoizedState=I,t.flags&dn){var M=Pc(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return Dv(e,t,E,i,M)}else if(E!==g){var G=Pc(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return Dv(e,t,E,i,G)}else{tN(t);var H=L7(t,null,E,i);t.child=H;for(var ne=H;ne;)ne.flags=ne.flags&~Kt|Ir,ne=ne.sibling}}else{if(P1(),E===g)return ji(e,t,i);mr(e,t,E,i)}return t.child}function Dv(e,t,i,u,m){return P1(),s8(m),t.flags|=dn,mr(e,t,i,u),t.child}function JN(e,t,i){$7(t),e===null&&o8(t);var u=t.type,m=t.pendingProps,g=e!==null?e.memoizedProps:null,T=m.children,E=j4(u,m);return E?T=null:g!==null&&j4(u,g)&&(t.flags|=Mt),xv(e,t),mr(e,t,T,i),t.child}function eR(e,t){return e===null&&o8(t),null}function tR(e,t,i,u){sh(e,t);var m=t.pendingProps,g=i,T=g._payload,E=g._init,I=E(T);t.type=I;var A=t.tag=eL(I),M=as(I,m),G;switch(A){case b:return Sg(t,I),t.type=I=X1(I),G=bg(null,t,I,M,u),G;case C:return t.type=I=Xg(I),G=Pv(null,t,I,M,u),G;case Z:return t.type=I=Jg(I),G=Rv(null,t,I,M,u),G;case ie:{if(t.type!==t.elementType){var H=I.propTypes;H&&Xo(H,M,"prop",Vt(I))}return G=Ov(null,t,I,as(I.type,M),u),G}}var ne="";throw I!==null&&typeof I=="object"&&I.$$typeof===Ea&&(ne=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+I+". "+("Lazy element type must resolve to a class or function."+ne))}function nR(e,t,i,u,m){sh(e,t),t.tag=C;var g;return Ps(i)?(g=!0,g3(t)):g=!1,U1(t,m),wv(t,i,u),dg(t,i,u,m),kg(null,t,i,!0,g,m)}function aR(e,t,i,u){sh(e,t);var m=t.pendingProps,g;{var T=O1(t,i,!1);g=L1(t,T)}U1(t,u);var E,I;Il(t);{if(i.prototype&&typeof i.prototype.render=="function"){var A=Vt(i)||"Unknown";hg[A]||(f("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",A,A),hg[A]=!0)}t.mode&bt&&es.recordLegacyContextWarning(t,null),Xr(!0),R0.current=t,E=z1(null,t,i,m,g,u),I=H1(),Xr(!1)}if(Wa(),t.flags|=bs,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0){var M=Vt(i)||"Unknown";O0[M]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",M,M,M),O0[M]=!0)}if(typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0){{var G=Vt(i)||"Unknown";O0[G]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",G,G,G),O0[G]=!0)}t.tag=C,t.memoizedState=null,t.updateQueue=null;var H=!1;return Ps(i)?(H=!0,g3(t)):H=!1,t.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,b8(t),Sv(t,E),dg(t,i,m,u),kg(null,t,i,!0,H,u)}else{if(t.tag=b,t.mode&bt){Sn(!0);try{E=z1(null,t,i,m,g,u),I=H1()}finally{Sn(!1)}}return Na()&&I&&e8(t),mr(null,t,E,u),Sg(t,i),t.child}}function Sg(e,t){{if(t&&t.childContextTypes&&f("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var i="",u=wr();u&&(i+=`
133
133
 
134
- Check the render method of \``+u+"`.");var m=u||"",g=e._debugSource;g&&(m=g.fileName+":"+g.lineNumber),vg[m]||(vg[m]=!0,f("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",i))}if(t.defaultProps!==void 0){var T=Vt(t)||"Unknown";L0[T]||(f("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",T),L0[T]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var E=Vt(t)||"Unknown";yg[E]||(f("%s: Function components do not support getDerivedStateFromProps.",E),yg[E]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var I=Vt(t)||"Unknown";gg[I]||(f("%s: Function components do not support contextType.",I),gg[I]=!0)}}}var wg={dehydrated:null,treeContext:null,retryLane:wn};function Cg(e){return{baseLanes:e,cachePool:WN(),transitions:null}}function rR(e,t){var i=null;return{baseLanes:pt(e.baseLanes,t),cachePool:i,transitions:e.transitions}}function oR(e,t,i,u){if(t!==null){var m=t.memoizedState;if(m===null)return!1}return E8(e,b0)}function sR(e,t){return dc(e.childLanes,t)}function Uv(e,t,i){var u=t.pendingProps;hL(t)&&(t.flags|=at);var m=ts.current,g=!1,T=(t.flags&at)!==Ze;if(T||oR(m,e)?(g=!0,t.flags&=~at):(e===null||e.memoizedState!==null)&&(m=CN(m,H7)),m=V1(m),su(t,m),e===null){o8(t);var E=t.memoizedState;if(E!==null){var I=E.dehydrated;if(I!==null)return dR(t,I)}var A=u.children,M=u.fallback;if(g){var G=iR(t,A,M,i),H=t.child;return H.memoizedState=Cg(i),t.memoizedState=wg,G}else return Eg(t,A)}else{var ne=e.memoizedState;if(ne!==null){var oe=ne.dehydrated;if(oe!==null)return mR(e,t,T,u,oe,ne,i)}if(g){var ue=u.fallback,Ie=u.children,qe=uR(e,t,Ie,ue,i),Je=t.child,kt=e.child.memoizedState;return Je.memoizedState=kt===null?Cg(i):rR(kt,i),Je.childLanes=sR(e,i),t.memoizedState=wg,qe}else{var Tt=u.children,X=lR(e,t,Tt,i);return t.memoizedState=null,X}}}function Eg(e,t,i){var u=e.mode,m={mode:"visible",children:t},g=_g(m,u);return g.return=e,e.child=g,g}function iR(e,t,i,u){var m=e.mode,g=e.child,T={mode:"hidden",children:t},E,I;return(m&ze)===$e&&g!==null?(E=g,E.childLanes=fe,E.pendingProps=T,e.mode&rt&&(E.actualDuration=0,E.actualStartTime=-1,E.selfBaseDuration=0,E.treeBaseDuration=0),I=pu(i,m,u,null)):(E=_g(T,m),I=pu(i,m,u,null)),E.return=e,I.return=e,E.sibling=I,e.child=E,I}function _g(e,t,i){return UT(e,t,fe,null)}function Fv(e,t){return jc(e,t)}function lR(e,t,i,u){var m=e.child,g=m.sibling,T=Fv(m,{mode:"visible",children:i});if((t.mode&ze)===$e&&(T.lanes=u),T.return=t,T.sibling=null,g!==null){var E=t.deletions;E===null?(t.deletions=[g],t.flags|=Pt):E.push(g)}return t.child=T,T}function uR(e,t,i,u,m){var g=t.mode,T=e.child,E=T.sibling,I={mode:"hidden",children:i},A;if((g&ze)===$e&&t.child!==T){var M=t.child;A=M,A.childLanes=fe,A.pendingProps=I,t.mode&rt&&(A.actualDuration=0,A.actualStartTime=-1,A.selfBaseDuration=T.selfBaseDuration,A.treeBaseDuration=T.treeBaseDuration),t.deletions=null}else A=Fv(T,I),A.subtreeFlags=T.subtreeFlags&Yn;var G;return E!==null?G=jc(E,u):(G=pu(u,g,m,null),G.flags|=Kt),G.return=t,A.return=t,A.sibling=G,t.child=A,G}function oh(e,t,i,u){u!==null&&s8(u),M1(t,e.child,null,i);var m=t.pendingProps,g=m.children,T=Eg(t,g);return T.flags|=Kt,t.memoizedState=null,T}function cR(e,t,i,u,m){var g=t.mode,T={mode:"visible",children:i},E=_g(T,g),I=pu(u,g,m,null);return I.flags|=Kt,E.return=t,I.return=t,E.sibling=I,t.child=E,(t.mode&ze)!==$e&&M1(t,e.child,null,m),I}function dR(e,t,i){return(e.mode&ze)===$e?(f("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Qe):H4(t)?e.lanes=Go:e.lanes=ha,null}function mR(e,t,i,u,m,g,T){if(i)if(t.flags&dn){t.flags&=~dn;var E=mg(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return oh(e,t,T,E)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=at,null;var I=u.children,A=u.fallback,M=cR(e,t,I,A,T),G=t.child;return G.memoizedState=Cg(T),t.memoizedState=wg,M}else{if(JI(),(t.mode&ze)===$e)return oh(e,t,T,null);if(H4(m)){var H,ne,oe;{var ue=gI(m);H=ue.digest,ne=ue.message,oe=ue.stack}var Ie;ne?Ie=new Error(ne):Ie=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var qe=mg(Ie,H,oe);return oh(e,t,T,qe)}var Je=Ka(T,e.childLanes);if(rs||Je){var kt=yh();if(kt!==null){var Tt=d4(kt,T);if(Tt!==wn&&Tt!==g.retryLane){g.retryLane=Tt;var X=Wt;Fr(e,Tt),oa(kt,e,Tt,X)}}Wg();var le=mg(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return oh(e,t,T,le)}else if(i7(m)){t.flags|=at,t.child=e.child;var J=UO.bind(null,e);return yI(m,J),null}else{nN(t,m,g.treeContext);var Te=u.children,xe=Eg(t,Te);return xe.flags|=Ir,xe}}}function Vv(e,t,i){e.lanes=pt(e.lanes,t);var u=e.alternate;u!==null&&(u.lanes=pt(u.lanes,t)),g8(e.return,t,i)}function fR(e,t,i){for(var u=t;u!==null;){if(u.tag===te){var m=u.memoizedState;m!==null&&Vv(u,i,e)}else if(u.tag===Be)Vv(u,i,e);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function pR(e){for(var t=e,i=null;t!==null;){var u=t.alternate;u!==null&&U3(u)===null&&(i=t),t=t.sibling}return i}function hR(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!Tg[e])if(Tg[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function gR(e,t){e!==void 0&&!rh[e]&&(e!=="collapsed"&&e!=="hidden"?(rh[e]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(rh[e]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function jv(e,t){{var i=jn(e),u=!i&&typeof Mo(e)=="function";if(i||u){var m=i?"array":"iterable";return f("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,t,m),!1}}return!0}function yR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(jn(e)){for(var i=0;i<e.length;i++)if(!jv(e[i],i))return}else{var u=Mo(e);if(typeof u=="function"){var m=u.call(e);if(m)for(var g=m.next(),T=0;!g.done;g=m.next()){if(!jv(g.value,T))return;T++}}else f('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function Ig(e,t,i,u,m){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:m}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=i,g.tailMode=m)}function Bv(e,t,i){var u=t.pendingProps,m=u.revealOrder,g=u.tail,T=u.children;hR(m),gR(g,m),yR(T,m),mr(e,t,T,i);var E=ts.current,I=E8(E,b0);if(I)E=_8(E,b0),t.flags|=at;else{var A=e!==null&&(e.flags&at)!==Ze;A&&fR(t,t.child,i),E=V1(E)}if(su(t,E),(t.mode&ze)===$e)t.memoizedState=null;else switch(m){case"forwards":{var M=pR(t.child),G;M===null?(G=t.child,t.child=null):(G=M.sibling,M.sibling=null),Ig(t,!1,G,M,g);break}case"backwards":{var H=null,ne=t.child;for(t.child=null;ne!==null;){var oe=ne.alternate;if(oe!==null&&U3(oe)===null){t.child=ne;break}var ue=ne.sibling;ne.sibling=H,H=ne,ne=ue}Ig(t,!0,H,null,g);break}case"together":{Ig(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function vR(e,t,i){S8(t,t.stateNode.containerInfo);var u=t.pendingProps;return e===null?t.child=M1(t,null,u,i):mr(e,t,u,i),t.child}var $v=!1;function TR(e,t,i){var u=t.type,m=u._context,g=t.pendingProps,T=t.memoizedProps,E=g.value;{"value"in g||$v||($v=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var I=t.type.propTypes;I&&Xo(I,g,"prop","Context.Provider")}if(P7(t,m,E),T!==null){var A=T.value;if(Ue(A,E)){if(T.children===g.children&&!p3())return ji(e,t,i)}else hN(t,m,i)}var M=g.children;return mr(e,t,M,i),t.child}var zv=!1;function bR(e,t,i){var u=t.type;u._context===void 0?u!==u.Consumer&&(zv||(zv=!0,f("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):u=u._context;var m=t.pendingProps,g=m.children;typeof g!="function"&&f("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),U1(t,i);var T=Gn(u);Il(t);var E;return R0.current=t,Xr(!0),E=g(T),Xr(!1),Wa(),t.flags|=bs,mr(e,t,E,i),t.child}function A0(){rs=!0}function sh(e,t){(t.mode&ze)===$e&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Kt)}function ji(e,t,i){return e!==null&&(t.dependencies=e.dependencies),vv(),z0(t.lanes),Ka(i,t.childLanes)?(fN(e,t),t.child):null}function kR(e,t,i){{var u=t.return;if(u===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,i.index=t.index,i.sibling=t.sibling,i.return=t.return,i.ref=t.ref,t===u.child)u.child=i;else{var m=u.child;if(m===null)throw new Error("Expected parent to have a child.");for(;m.sibling!==t;)if(m=m.sibling,m===null)throw new Error("Expected to find the previous sibling.");m.sibling=i}var g=u.deletions;return g===null?(u.deletions=[e],u.flags|=Pt):g.push(e),i.flags|=Kt,i}}function Ng(e,t){var i=e.lanes;return!!Ka(i,t)}function SR(e,t,i){switch(t.tag){case N:Mv(t),t.stateNode,P1();break;case L:$7(t);break;case C:{var u=t.type;Ps(u)&&g3(t);break}case O:S8(t,t.stateNode.containerInfo);break;case Y:{var m=t.memoizedProps.value,g=t.type._context;P7(t,g,m);break}case Q:{var T=Ka(i,t.childLanes);T&&(t.flags|=ht);{var E=t.stateNode;E.effectDuration=0,E.passiveEffectDuration=0}}break;case te:{var I=t.memoizedState;if(I!==null){if(I.dehydrated!==null)return su(t,V1(ts.current)),t.flags|=at,null;var A=t.child,M=A.childLanes;if(Ka(i,M))return Uv(e,t,i);su(t,V1(ts.current));var G=ji(e,t,i);return G!==null?G.sibling:null}else su(t,V1(ts.current));break}case Be:{var H=(e.flags&at)!==Ze,ne=Ka(i,t.childLanes);if(H){if(ne)return Bv(e,t,i);t.flags|=at}var oe=t.memoizedState;if(oe!==null&&(oe.rendering=null,oe.tail=null,oe.lastEffect=null),su(t,ts.current),ne)break;return null}case Ne:case et:return t.lanes=fe,Av(e,t,i)}return ji(e,t,i)}function Hv(e,t,i){if(t._debugNeedsRemount&&e!==null)return kR(e,t,r5(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var u=e.memoizedProps,m=t.pendingProps;if(u!==m||p3()||t.type!==e.type)rs=!0;else{var g=Ng(e,i);if(!g&&(t.flags&at)===Ze)return rs=!1,SR(e,t,i);(e.flags&tc)!==Ze?rs=!0:rs=!1}}else if(rs=!1,Na()&&WI(t)){var T=t.index,E=QI();v7(t,E,T)}switch(t.lanes=fe,t.tag){case _:return aR(e,t,t.type,i);case Ce:{var I=t.elementType;return tR(e,t,I,i)}case b:{var A=t.type,M=t.pendingProps,G=t.elementType===A?M:as(A,M);return bg(e,t,A,G,i)}case C:{var H=t.type,ne=t.pendingProps,oe=t.elementType===H?ne:as(H,ne);return Pv(e,t,H,oe,i)}case N:return XN(e,t,i);case L:return JN(e,t,i);case x:return eR(e,t);case te:return Uv(e,t,i);case O:return vR(e,t,i);case Z:{var ue=t.type,Ie=t.pendingProps,qe=t.elementType===ue?Ie:as(ue,Ie);return Rv(e,t,ue,qe,i)}case D:return YN(e,t,i);case j:return KN(e,t,i);case Q:return ZN(e,t,i);case Y:return TR(e,t,i);case V:return bR(e,t,i);case ie:{var Je=t.type,kt=t.pendingProps,Tt=as(Je,kt);if(t.type!==t.elementType){var X=Je.propTypes;X&&Xo(X,Tt,"prop",Vt(Je))}return Tt=as(Je.type,Tt),Ov(e,t,Je,Tt,i)}case ae:return Lv(e,t,t.type,t.pendingProps,i);case Se:{var le=t.type,J=t.pendingProps,Te=t.elementType===le?J:as(le,J);return nR(e,t,le,Te,i)}case Be:return Bv(e,t,i);case Ge:break;case Ne:return Av(e,t,i)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function q1(e){e.flags|=ht}function qv(e){e.flags|=$a,e.flags|=pf}var Gv,Rg,Wv,Qv;Gv=function(e,t,i,u){for(var m=t.child;m!==null;){if(m.tag===L||m.tag===x)H_(e,m.stateNode);else if(m.tag!==O&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)return;for(;m.sibling===null;){if(m.return===null||m.return===t)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},Rg=function(e,t){},Wv=function(e,t,i,u,m){var g=e.memoizedProps;if(g!==u){var T=t.stateNode,E=w8(),I=G_(T,i,g,u,m,E);t.updateQueue=I,I&&q1(t)}},Qv=function(e,t,i,u){i!==u&&q1(t)};function x0(e,t){if(!Na())switch(e.tailMode){case"hidden":{for(var i=e.tail,u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?e.tail=null:u.sibling=null;break}case"collapsed":{for(var m=e.tail,g=null;m!==null;)m.alternate!==null&&(g=m),m=m.sibling;g===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:g.sibling=null;break}}}function Oa(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=fe,u=Ze;if(t){if((e.mode&rt)!==$e){for(var m=e.selfBaseDuration,g=e.child;g!==null;)i=pt(i,pt(g.lanes,g.childLanes)),u|=g.subtreeFlags&Yn,u|=g.flags&Yn,m+=g.treeBaseDuration,g=g.sibling;e.treeBaseDuration=m}else for(var T=e.child;T!==null;)i=pt(i,pt(T.lanes,T.childLanes)),u|=T.subtreeFlags&Yn,u|=T.flags&Yn,T.return=e,T=T.sibling;e.subtreeFlags|=u}else{if((e.mode&rt)!==$e){for(var E=e.actualDuration,I=e.selfBaseDuration,A=e.child;A!==null;)i=pt(i,pt(A.lanes,A.childLanes)),u|=A.subtreeFlags,u|=A.flags,E+=A.actualDuration,I+=A.treeBaseDuration,A=A.sibling;e.actualDuration=E,e.treeBaseDuration=I}else for(var M=e.child;M!==null;)i=pt(i,pt(M.lanes,M.childLanes)),u|=M.subtreeFlags,u|=M.flags,M.return=e,M=M.sibling;e.subtreeFlags|=u}return e.childLanes=i,t}function wR(e,t,i){if(iN()&&(t.mode&ze)!==$e&&(t.flags&at)===Ze)return E7(t),P1(),t.flags|=dn|or|$n,!1;var u=k3(t);if(i!==null&&i.dehydrated!==null)if(e===null){if(!u)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(oN(t),Oa(t),(t.mode&rt)!==$e){var m=i!==null;if(m){var g=t.child;g!==null&&(t.treeBaseDuration-=g.treeBaseDuration)}}return!1}else{if(P1(),(t.flags&at)===Ze&&(t.memoizedState=null),t.flags|=ht,Oa(t),(t.mode&rt)!==$e){var T=i!==null;if(T){var E=t.child;E!==null&&(t.treeBaseDuration-=E.treeBaseDuration)}}return!1}else return _7(),!0}function Yv(e,t,i){var u=t.pendingProps;switch(t8(t),t.tag){case _:case Ce:case ae:case b:case Z:case D:case j:case Q:case V:case ie:return Oa(t),null;case C:{var m=t.type;return Ps(m)&&h3(t),Oa(t),null}case N:{var g=t.stateNode;if(F1(t),Z4(t),N8(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),e===null||e.child===null){var T=k3(t);if(T)q1(t);else if(e!==null){var E=e.memoizedState;(!E.isDehydrated||(t.flags&dn)!==Ze)&&(t.flags|=_r,_7())}}return Rg(e,t),Oa(t),null}case L:{C8(t);var I=B7(),A=t.type;if(e!==null&&t.stateNode!=null)Wv(e,t,A,u,I),e.ref!==t.ref&&qv(t);else{if(!u){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Oa(t),null}var M=w8(),G=k3(t);if(G)aN(t,I,M)&&q1(t);else{var H=z_(A,u,I,M,t);Gv(H,t,!1,!1),t.stateNode=H,q_(H,A,u,I)&&q1(t)}t.ref!==null&&qv(t)}return Oa(t),null}case x:{var ne=u;if(e&&t.stateNode!=null){var oe=e.memoizedProps;Qv(e,t,oe,ne)}else{if(typeof ne!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var ue=B7(),Ie=w8(),qe=k3(t);qe?rN(t)&&q1(t):t.stateNode=W_(ne,ue,Ie,t)}return Oa(t),null}case te:{j1(t);var Je=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var kt=wR(e,t,Je);if(!kt)return t.flags&$n?t:null}if((t.flags&at)!==Ze)return t.lanes=i,(t.mode&rt)!==$e&&J8(t),t;var Tt=Je!==null,X=e!==null&&e.memoizedState!==null;if(Tt!==X&&Tt){var le=t.child;if(le.flags|=ks,(t.mode&ze)!==$e){var J=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!ct);J||E8(ts.current,H7)?CO():Wg()}}var Te=t.updateQueue;if(Te!==null&&(t.flags|=ht),Oa(t),(t.mode&rt)!==$e&&Tt){var xe=t.child;xe!==null&&(t.treeBaseDuration-=xe.treeBaseDuration)}return null}case O:return F1(t),Rg(e,t),e===null&&jI(t.stateNode.containerInfo),Oa(t),null;case Y:var Oe=t.type._context;return h8(Oe,t),Oa(t),null;case Se:{var nt=t.type;return Ps(nt)&&h3(t),Oa(t),null}case Be:{j1(t);var dt=t.memoizedState;if(dt===null)return Oa(t),null;var $t=(t.flags&at)!==Ze,At=dt.rendering;if(At===null)if($t)x0(dt,!1);else{var Mn=_O()&&(e===null||(e.flags&at)===Ze);if(!Mn)for(var xt=t.child;xt!==null;){var En=U3(xt);if(En!==null){$t=!0,t.flags|=at,x0(dt,!1);var er=En.updateQueue;return er!==null&&(t.updateQueue=er,t.flags|=ht),t.subtreeFlags=Ze,pN(t,i),su(t,_8(ts.current,b0)),t.child}xt=xt.sibling}dt.tail!==null&&an()>gT()&&(t.flags|=at,$t=!0,x0(dt,!1),t.lanes=kp)}else{if(!$t){var Ma=U3(At);if(Ma!==null){t.flags|=at,$t=!0;var so=Ma.updateQueue;if(so!==null&&(t.updateQueue=so,t.flags|=ht),x0(dt,!0),dt.tail===null&&dt.tailMode==="hidden"&&!At.alternate&&!Na())return Oa(t),null}else an()*2-dt.renderingStartTime>gT()&&i!==ha&&(t.flags|=at,$t=!0,x0(dt,!1),t.lanes=kp)}if(dt.isBackwards)At.sibling=t.child,t.child=At;else{var hr=dt.last;hr!==null?hr.sibling=At:t.child=At,dt.last=At}}if(dt.tail!==null){var gr=dt.tail;dt.rendering=gr,dt.tail=gr.sibling,dt.renderingStartTime=an(),gr.sibling=null;var tr=ts.current;return $t?tr=_8(tr,b0):tr=V1(tr),su(t,tr),gr}return Oa(t),null}case Ge:break;case Ne:case et:{Gg(t);var qi=t.memoizedState,J1=qi!==null;if(e!==null){var Q0=e.memoizedState,$s=Q0!==null;$s!==J1&&!we&&(t.flags|=ks)}return!J1||(t.mode&ze)===$e?Oa(t):Ka(Bs,ha)&&(Oa(t),t.subtreeFlags&(Kt|ht)&&(t.flags|=ks)),null}case mt:return null;case Rt:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function CR(e,t,i){switch(t8(t),t.tag){case C:{var u=t.type;Ps(u)&&h3(t);var m=t.flags;return m&$n?(t.flags=m&~$n|at,(t.mode&rt)!==$e&&J8(t),t):null}case N:{t.stateNode,F1(t),Z4(t),N8();var g=t.flags;return(g&$n)!==Ze&&(g&at)===Ze?(t.flags=g&~$n|at,t):null}case L:return C8(t),null;case te:{j1(t);var T=t.memoizedState;if(T!==null&&T.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");P1()}var E=t.flags;return E&$n?(t.flags=E&~$n|at,(t.mode&rt)!==$e&&J8(t),t):null}case Be:return j1(t),null;case O:return F1(t),null;case Y:var I=t.type._context;return h8(I,t),null;case Ne:case et:return Gg(t),null;case mt:return null;default:return null}}function Kv(e,t,i){switch(t8(t),t.tag){case C:{var u=t.type.childContextTypes;u!=null&&h3(t);break}case N:{t.stateNode,F1(t),Z4(t),N8();break}case L:{C8(t);break}case O:F1(t);break;case te:j1(t);break;case Be:j1(t);break;case Y:var m=t.type._context;h8(m,t);break;case Ne:case et:Gg(t);break}}var Zv=null;Zv=new Set;var ih=!1,La=!1,ER=typeof WeakSet=="function"?WeakSet:Set,Fe=null,G1=null,W1=null;function _R(e){fi(null,function(){throw e}),mf()}var IR=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&rt)try{Vs(),t.componentWillUnmount()}finally{Fs(e)}else t.componentWillUnmount()};function Xv(e,t){try{uu(Jn,e)}catch(i){Xt(e,t,i)}}function Og(e,t,i){try{IR(e,i)}catch(u){Xt(e,t,u)}}function NR(e,t,i){try{i.componentDidMount()}catch(u){Xt(e,t,u)}}function Jv(e,t){try{tT(e)}catch(i){Xt(e,t,i)}}function Q1(e,t){var i=e.ref;if(i!==null)if(typeof i=="function"){var u;try{if(gt&&it&&e.mode&rt)try{Vs(),u=i(null)}finally{Fs(e)}else u=i(null)}catch(m){Xt(e,t,m)}typeof u=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ft(e))}else i.current=null}function lh(e,t,i){try{i()}catch(u){Xt(e,t,u)}}var eT=!1;function RR(e,t){B_(e.containerInfo),Fe=t,OR();var i=eT;return eT=!1,i}function OR(){for(;Fe!==null;){var e=Fe,t=e.child;(e.subtreeFlags&Cl)!==Ze&&t!==null?(t.return=e,Fe=t):LR()}}function LR(){for(;Fe!==null;){var e=Fe;jt(e);try{AR(e)}catch(i){Xt(e,e.return,i)}On();var t=e.sibling;if(t!==null){t.return=e.return,Fe=t;return}Fe=e.return}}function AR(e){var t=e.alternate,i=e.flags;if((i&_r)!==Ze){switch(jt(e),e.tag){case b:case Z:case ae:break;case C:{if(t!==null){var u=t.memoizedProps,m=t.memoizedState,g=e.stateNode;e.type===e.elementType&&!Mc&&(g.props!==e.memoizedProps&&f("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ft(e)||"instance"),g.state!==e.memoizedState&&f("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ft(e)||"instance"));var T=g.getSnapshotBeforeUpdate(e.elementType===e.type?u:as(e.type,u),m);{var E=Zv;T===void 0&&!E.has(e.type)&&(E.add(e.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ft(e)))}g.__reactInternalSnapshotBeforeUpdate=T}break}case N:{{var I=e.stateNode;mI(I.containerInfo)}break}case L:case x:case O:case Se:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}On()}}function os(e,t,i){var u=t.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var g=m.next,T=g;do{if((T.tag&e)===e){var E=T.destroy;T.destroy=void 0,E!==void 0&&((e&Ra)!==Vr?vp(t):(e&Jn)!==Vr&&no(t),(e&Ms)!==Vr&&q0(!0),lh(t,i,E),(e&Ms)!==Vr&&q0(!1),(e&Ra)!==Vr?Fd():(e&Jn)!==Vr&&Nl())}T=T.next}while(T!==g)}}function uu(e,t){var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var m=u.next,g=m;do{if((g.tag&e)===e){(e&Ra)!==Vr?Cs(t):(e&Jn)!==Vr&&Tp(t);var T=g.create;(e&Ms)!==Vr&&q0(!0),g.destroy=T(),(e&Ms)!==Vr&&q0(!1),(e&Ra)!==Vr?Ud():(e&Jn)!==Vr&&nc();{var E=g.destroy;if(E!==void 0&&typeof E!="function"){var I=void 0;(g.tag&Jn)!==Ze?I="useLayoutEffect":(g.tag&Ms)!==Ze?I="useInsertionEffect":I="useEffect";var A=void 0;E===null?A=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof E.then=="function"?A=`
134
+ Check the render method of \``+u+"`.");var m=u||"",g=e._debugSource;g&&(m=g.fileName+":"+g.lineNumber),vg[m]||(vg[m]=!0,f("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",i))}if(t.defaultProps!==void 0){var T=Vt(t)||"Unknown";L0[T]||(f("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",T),L0[T]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var E=Vt(t)||"Unknown";yg[E]||(f("%s: Function components do not support getDerivedStateFromProps.",E),yg[E]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var I=Vt(t)||"Unknown";gg[I]||(f("%s: Function components do not support contextType.",I),gg[I]=!0)}}}var wg={dehydrated:null,treeContext:null,retryLane:wn};function Cg(e){return{baseLanes:e,cachePool:WN(),transitions:null}}function rR(e,t){var i=null;return{baseLanes:pt(e.baseLanes,t),cachePool:i,transitions:e.transitions}}function oR(e,t,i,u){if(t!==null){var m=t.memoizedState;if(m===null)return!1}return E8(e,b0)}function sR(e,t){return dc(e.childLanes,t)}function Uv(e,t,i){var u=t.pendingProps;hL(t)&&(t.flags|=rt);var m=ts.current,g=!1,T=(t.flags&rt)!==Ze;if(T||oR(m,e)?(g=!0,t.flags&=~rt):(e===null||e.memoizedState!==null)&&(m=CN(m,H7)),m=V1(m),su(t,m),e===null){o8(t);var E=t.memoizedState;if(E!==null){var I=E.dehydrated;if(I!==null)return dR(t,I)}var A=u.children,M=u.fallback;if(g){var G=iR(t,A,M,i),H=t.child;return H.memoizedState=Cg(i),t.memoizedState=wg,G}else return Eg(t,A)}else{var ne=e.memoizedState;if(ne!==null){var oe=ne.dehydrated;if(oe!==null)return mR(e,t,T,u,oe,ne,i)}if(g){var ue=u.fallback,Ie=u.children,qe=uR(e,t,Ie,ue,i),Je=t.child,kt=e.child.memoizedState;return Je.memoizedState=kt===null?Cg(i):rR(kt,i),Je.childLanes=sR(e,i),t.memoizedState=wg,qe}else{var Tt=u.children,X=lR(e,t,Tt,i);return t.memoizedState=null,X}}}function Eg(e,t,i){var u=e.mode,m={mode:"visible",children:t},g=_g(m,u);return g.return=e,e.child=g,g}function iR(e,t,i,u){var m=e.mode,g=e.child,T={mode:"hidden",children:t},E,I;return(m&ze)===$e&&g!==null?(E=g,E.childLanes=fe,E.pendingProps=T,e.mode&ot&&(E.actualDuration=0,E.actualStartTime=-1,E.selfBaseDuration=0,E.treeBaseDuration=0),I=pu(i,m,u,null)):(E=_g(T,m),I=pu(i,m,u,null)),E.return=e,I.return=e,E.sibling=I,e.child=E,I}function _g(e,t,i){return UT(e,t,fe,null)}function Fv(e,t){return jc(e,t)}function lR(e,t,i,u){var m=e.child,g=m.sibling,T=Fv(m,{mode:"visible",children:i});if((t.mode&ze)===$e&&(T.lanes=u),T.return=t,T.sibling=null,g!==null){var E=t.deletions;E===null?(t.deletions=[g],t.flags|=Pt):E.push(g)}return t.child=T,T}function uR(e,t,i,u,m){var g=t.mode,T=e.child,E=T.sibling,I={mode:"hidden",children:i},A;if((g&ze)===$e&&t.child!==T){var M=t.child;A=M,A.childLanes=fe,A.pendingProps=I,t.mode&ot&&(A.actualDuration=0,A.actualStartTime=-1,A.selfBaseDuration=T.selfBaseDuration,A.treeBaseDuration=T.treeBaseDuration),t.deletions=null}else A=Fv(T,I),A.subtreeFlags=T.subtreeFlags&Yn;var G;return E!==null?G=jc(E,u):(G=pu(u,g,m,null),G.flags|=Kt),G.return=t,A.return=t,A.sibling=G,t.child=A,G}function oh(e,t,i,u){u!==null&&s8(u),M1(t,e.child,null,i);var m=t.pendingProps,g=m.children,T=Eg(t,g);return T.flags|=Kt,t.memoizedState=null,T}function cR(e,t,i,u,m){var g=t.mode,T={mode:"visible",children:i},E=_g(T,g),I=pu(u,g,m,null);return I.flags|=Kt,E.return=t,I.return=t,E.sibling=I,t.child=E,(t.mode&ze)!==$e&&M1(t,e.child,null,m),I}function dR(e,t,i){return(e.mode&ze)===$e?(f("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Qe):H4(t)?e.lanes=Go:e.lanes=ha,null}function mR(e,t,i,u,m,g,T){if(i)if(t.flags&dn){t.flags&=~dn;var E=mg(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return oh(e,t,T,E)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=rt,null;var I=u.children,A=u.fallback,M=cR(e,t,I,A,T),G=t.child;return G.memoizedState=Cg(T),t.memoizedState=wg,M}else{if(JI(),(t.mode&ze)===$e)return oh(e,t,T,null);if(H4(m)){var H,ne,oe;{var ue=gI(m);H=ue.digest,ne=ue.message,oe=ue.stack}var Ie;ne?Ie=new Error(ne):Ie=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var qe=mg(Ie,H,oe);return oh(e,t,T,qe)}var Je=Ka(T,e.childLanes);if(rs||Je){var kt=yh();if(kt!==null){var Tt=d4(kt,T);if(Tt!==wn&&Tt!==g.retryLane){g.retryLane=Tt;var X=Wt;Fr(e,Tt),oa(kt,e,Tt,X)}}Wg();var le=mg(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return oh(e,t,T,le)}else if(i7(m)){t.flags|=rt,t.child=e.child;var J=UO.bind(null,e);return yI(m,J),null}else{nN(t,m,g.treeContext);var Te=u.children,xe=Eg(t,Te);return xe.flags|=Ir,xe}}}function Vv(e,t,i){e.lanes=pt(e.lanes,t);var u=e.alternate;u!==null&&(u.lanes=pt(u.lanes,t)),g8(e.return,t,i)}function fR(e,t,i){for(var u=t;u!==null;){if(u.tag===te){var m=u.memoizedState;m!==null&&Vv(u,i,e)}else if(u.tag===Be)Vv(u,i,e);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function pR(e){for(var t=e,i=null;t!==null;){var u=t.alternate;u!==null&&U3(u)===null&&(i=t),t=t.sibling}return i}function hR(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!Tg[e])if(Tg[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function gR(e,t){e!==void 0&&!rh[e]&&(e!=="collapsed"&&e!=="hidden"?(rh[e]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(rh[e]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function jv(e,t){{var i=jn(e),u=!i&&typeof Mo(e)=="function";if(i||u){var m=i?"array":"iterable";return f("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,t,m),!1}}return!0}function yR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(jn(e)){for(var i=0;i<e.length;i++)if(!jv(e[i],i))return}else{var u=Mo(e);if(typeof u=="function"){var m=u.call(e);if(m)for(var g=m.next(),T=0;!g.done;g=m.next()){if(!jv(g.value,T))return;T++}}else f('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function Ig(e,t,i,u,m){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:m}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=i,g.tailMode=m)}function Bv(e,t,i){var u=t.pendingProps,m=u.revealOrder,g=u.tail,T=u.children;hR(m),gR(g,m),yR(T,m),mr(e,t,T,i);var E=ts.current,I=E8(E,b0);if(I)E=_8(E,b0),t.flags|=rt;else{var A=e!==null&&(e.flags&rt)!==Ze;A&&fR(t,t.child,i),E=V1(E)}if(su(t,E),(t.mode&ze)===$e)t.memoizedState=null;else switch(m){case"forwards":{var M=pR(t.child),G;M===null?(G=t.child,t.child=null):(G=M.sibling,M.sibling=null),Ig(t,!1,G,M,g);break}case"backwards":{var H=null,ne=t.child;for(t.child=null;ne!==null;){var oe=ne.alternate;if(oe!==null&&U3(oe)===null){t.child=ne;break}var ue=ne.sibling;ne.sibling=H,H=ne,ne=ue}Ig(t,!0,H,null,g);break}case"together":{Ig(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function vR(e,t,i){S8(t,t.stateNode.containerInfo);var u=t.pendingProps;return e===null?t.child=M1(t,null,u,i):mr(e,t,u,i),t.child}var $v=!1;function TR(e,t,i){var u=t.type,m=u._context,g=t.pendingProps,T=t.memoizedProps,E=g.value;{"value"in g||$v||($v=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var I=t.type.propTypes;I&&Xo(I,g,"prop","Context.Provider")}if(P7(t,m,E),T!==null){var A=T.value;if(Ue(A,E)){if(T.children===g.children&&!p3())return ji(e,t,i)}else hN(t,m,i)}var M=g.children;return mr(e,t,M,i),t.child}var zv=!1;function bR(e,t,i){var u=t.type;u._context===void 0?u!==u.Consumer&&(zv||(zv=!0,f("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):u=u._context;var m=t.pendingProps,g=m.children;typeof g!="function"&&f("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),U1(t,i);var T=Gn(u);Il(t);var E;return R0.current=t,Xr(!0),E=g(T),Xr(!1),Wa(),t.flags|=bs,mr(e,t,E,i),t.child}function A0(){rs=!0}function sh(e,t){(t.mode&ze)===$e&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Kt)}function ji(e,t,i){return e!==null&&(t.dependencies=e.dependencies),vv(),z0(t.lanes),Ka(i,t.childLanes)?(fN(e,t),t.child):null}function kR(e,t,i){{var u=t.return;if(u===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,i.index=t.index,i.sibling=t.sibling,i.return=t.return,i.ref=t.ref,t===u.child)u.child=i;else{var m=u.child;if(m===null)throw new Error("Expected parent to have a child.");for(;m.sibling!==t;)if(m=m.sibling,m===null)throw new Error("Expected to find the previous sibling.");m.sibling=i}var g=u.deletions;return g===null?(u.deletions=[e],u.flags|=Pt):g.push(e),i.flags|=Kt,i}}function Ng(e,t){var i=e.lanes;return!!Ka(i,t)}function SR(e,t,i){switch(t.tag){case N:Mv(t),t.stateNode,P1();break;case L:$7(t);break;case C:{var u=t.type;Ps(u)&&g3(t);break}case O:S8(t,t.stateNode.containerInfo);break;case Y:{var m=t.memoizedProps.value,g=t.type._context;P7(t,g,m);break}case Q:{var T=Ka(i,t.childLanes);T&&(t.flags|=ht);{var E=t.stateNode;E.effectDuration=0,E.passiveEffectDuration=0}}break;case te:{var I=t.memoizedState;if(I!==null){if(I.dehydrated!==null)return su(t,V1(ts.current)),t.flags|=rt,null;var A=t.child,M=A.childLanes;if(Ka(i,M))return Uv(e,t,i);su(t,V1(ts.current));var G=ji(e,t,i);return G!==null?G.sibling:null}else su(t,V1(ts.current));break}case Be:{var H=(e.flags&rt)!==Ze,ne=Ka(i,t.childLanes);if(H){if(ne)return Bv(e,t,i);t.flags|=rt}var oe=t.memoizedState;if(oe!==null&&(oe.rendering=null,oe.tail=null,oe.lastEffect=null),su(t,ts.current),ne)break;return null}case Ne:case et:return t.lanes=fe,Av(e,t,i)}return ji(e,t,i)}function Hv(e,t,i){if(t._debugNeedsRemount&&e!==null)return kR(e,t,r5(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var u=e.memoizedProps,m=t.pendingProps;if(u!==m||p3()||t.type!==e.type)rs=!0;else{var g=Ng(e,i);if(!g&&(t.flags&rt)===Ze)return rs=!1,SR(e,t,i);(e.flags&tc)!==Ze?rs=!0:rs=!1}}else if(rs=!1,Na()&&WI(t)){var T=t.index,E=QI();v7(t,E,T)}switch(t.lanes=fe,t.tag){case _:return aR(e,t,t.type,i);case Ce:{var I=t.elementType;return tR(e,t,I,i)}case b:{var A=t.type,M=t.pendingProps,G=t.elementType===A?M:as(A,M);return bg(e,t,A,G,i)}case C:{var H=t.type,ne=t.pendingProps,oe=t.elementType===H?ne:as(H,ne);return Pv(e,t,H,oe,i)}case N:return XN(e,t,i);case L:return JN(e,t,i);case x:return eR(e,t);case te:return Uv(e,t,i);case O:return vR(e,t,i);case Z:{var ue=t.type,Ie=t.pendingProps,qe=t.elementType===ue?Ie:as(ue,Ie);return Rv(e,t,ue,qe,i)}case D:return YN(e,t,i);case j:return KN(e,t,i);case Q:return ZN(e,t,i);case Y:return TR(e,t,i);case V:return bR(e,t,i);case ie:{var Je=t.type,kt=t.pendingProps,Tt=as(Je,kt);if(t.type!==t.elementType){var X=Je.propTypes;X&&Xo(X,Tt,"prop",Vt(Je))}return Tt=as(Je.type,Tt),Ov(e,t,Je,Tt,i)}case ae:return Lv(e,t,t.type,t.pendingProps,i);case Se:{var le=t.type,J=t.pendingProps,Te=t.elementType===le?J:as(le,J);return nR(e,t,le,Te,i)}case Be:return Bv(e,t,i);case Ge:break;case Ne:return Av(e,t,i)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function q1(e){e.flags|=ht}function qv(e){e.flags|=$a,e.flags|=pf}var Gv,Rg,Wv,Qv;Gv=function(e,t,i,u){for(var m=t.child;m!==null;){if(m.tag===L||m.tag===x)H_(e,m.stateNode);else if(m.tag!==O&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)return;for(;m.sibling===null;){if(m.return===null||m.return===t)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},Rg=function(e,t){},Wv=function(e,t,i,u,m){var g=e.memoizedProps;if(g!==u){var T=t.stateNode,E=w8(),I=G_(T,i,g,u,m,E);t.updateQueue=I,I&&q1(t)}},Qv=function(e,t,i,u){i!==u&&q1(t)};function x0(e,t){if(!Na())switch(e.tailMode){case"hidden":{for(var i=e.tail,u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?e.tail=null:u.sibling=null;break}case"collapsed":{for(var m=e.tail,g=null;m!==null;)m.alternate!==null&&(g=m),m=m.sibling;g===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:g.sibling=null;break}}}function Oa(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=fe,u=Ze;if(t){if((e.mode&ot)!==$e){for(var m=e.selfBaseDuration,g=e.child;g!==null;)i=pt(i,pt(g.lanes,g.childLanes)),u|=g.subtreeFlags&Yn,u|=g.flags&Yn,m+=g.treeBaseDuration,g=g.sibling;e.treeBaseDuration=m}else for(var T=e.child;T!==null;)i=pt(i,pt(T.lanes,T.childLanes)),u|=T.subtreeFlags&Yn,u|=T.flags&Yn,T.return=e,T=T.sibling;e.subtreeFlags|=u}else{if((e.mode&ot)!==$e){for(var E=e.actualDuration,I=e.selfBaseDuration,A=e.child;A!==null;)i=pt(i,pt(A.lanes,A.childLanes)),u|=A.subtreeFlags,u|=A.flags,E+=A.actualDuration,I+=A.treeBaseDuration,A=A.sibling;e.actualDuration=E,e.treeBaseDuration=I}else for(var M=e.child;M!==null;)i=pt(i,pt(M.lanes,M.childLanes)),u|=M.subtreeFlags,u|=M.flags,M.return=e,M=M.sibling;e.subtreeFlags|=u}return e.childLanes=i,t}function wR(e,t,i){if(iN()&&(t.mode&ze)!==$e&&(t.flags&rt)===Ze)return E7(t),P1(),t.flags|=dn|or|$n,!1;var u=k3(t);if(i!==null&&i.dehydrated!==null)if(e===null){if(!u)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(oN(t),Oa(t),(t.mode&ot)!==$e){var m=i!==null;if(m){var g=t.child;g!==null&&(t.treeBaseDuration-=g.treeBaseDuration)}}return!1}else{if(P1(),(t.flags&rt)===Ze&&(t.memoizedState=null),t.flags|=ht,Oa(t),(t.mode&ot)!==$e){var T=i!==null;if(T){var E=t.child;E!==null&&(t.treeBaseDuration-=E.treeBaseDuration)}}return!1}else return _7(),!0}function Yv(e,t,i){var u=t.pendingProps;switch(t8(t),t.tag){case _:case Ce:case ae:case b:case Z:case D:case j:case Q:case V:case ie:return Oa(t),null;case C:{var m=t.type;return Ps(m)&&h3(t),Oa(t),null}case N:{var g=t.stateNode;if(F1(t),Z4(t),N8(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),e===null||e.child===null){var T=k3(t);if(T)q1(t);else if(e!==null){var E=e.memoizedState;(!E.isDehydrated||(t.flags&dn)!==Ze)&&(t.flags|=_r,_7())}}return Rg(e,t),Oa(t),null}case L:{C8(t);var I=B7(),A=t.type;if(e!==null&&t.stateNode!=null)Wv(e,t,A,u,I),e.ref!==t.ref&&qv(t);else{if(!u){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Oa(t),null}var M=w8(),G=k3(t);if(G)aN(t,I,M)&&q1(t);else{var H=z_(A,u,I,M,t);Gv(H,t,!1,!1),t.stateNode=H,q_(H,A,u,I)&&q1(t)}t.ref!==null&&qv(t)}return Oa(t),null}case x:{var ne=u;if(e&&t.stateNode!=null){var oe=e.memoizedProps;Qv(e,t,oe,ne)}else{if(typeof ne!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var ue=B7(),Ie=w8(),qe=k3(t);qe?rN(t)&&q1(t):t.stateNode=W_(ne,ue,Ie,t)}return Oa(t),null}case te:{j1(t);var Je=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var kt=wR(e,t,Je);if(!kt)return t.flags&$n?t:null}if((t.flags&rt)!==Ze)return t.lanes=i,(t.mode&ot)!==$e&&J8(t),t;var Tt=Je!==null,X=e!==null&&e.memoizedState!==null;if(Tt!==X&&Tt){var le=t.child;if(le.flags|=ks,(t.mode&ze)!==$e){var J=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!ct);J||E8(ts.current,H7)?CO():Wg()}}var Te=t.updateQueue;if(Te!==null&&(t.flags|=ht),Oa(t),(t.mode&ot)!==$e&&Tt){var xe=t.child;xe!==null&&(t.treeBaseDuration-=xe.treeBaseDuration)}return null}case O:return F1(t),Rg(e,t),e===null&&jI(t.stateNode.containerInfo),Oa(t),null;case Y:var Oe=t.type._context;return h8(Oe,t),Oa(t),null;case Se:{var nt=t.type;return Ps(nt)&&h3(t),Oa(t),null}case Be:{j1(t);var dt=t.memoizedState;if(dt===null)return Oa(t),null;var $t=(t.flags&rt)!==Ze,At=dt.rendering;if(At===null)if($t)x0(dt,!1);else{var Mn=_O()&&(e===null||(e.flags&rt)===Ze);if(!Mn)for(var xt=t.child;xt!==null;){var En=U3(xt);if(En!==null){$t=!0,t.flags|=rt,x0(dt,!1);var er=En.updateQueue;return er!==null&&(t.updateQueue=er,t.flags|=ht),t.subtreeFlags=Ze,pN(t,i),su(t,_8(ts.current,b0)),t.child}xt=xt.sibling}dt.tail!==null&&an()>gT()&&(t.flags|=rt,$t=!0,x0(dt,!1),t.lanes=kp)}else{if(!$t){var Ma=U3(At);if(Ma!==null){t.flags|=rt,$t=!0;var so=Ma.updateQueue;if(so!==null&&(t.updateQueue=so,t.flags|=ht),x0(dt,!0),dt.tail===null&&dt.tailMode==="hidden"&&!At.alternate&&!Na())return Oa(t),null}else an()*2-dt.renderingStartTime>gT()&&i!==ha&&(t.flags|=rt,$t=!0,x0(dt,!1),t.lanes=kp)}if(dt.isBackwards)At.sibling=t.child,t.child=At;else{var hr=dt.last;hr!==null?hr.sibling=At:t.child=At,dt.last=At}}if(dt.tail!==null){var gr=dt.tail;dt.rendering=gr,dt.tail=gr.sibling,dt.renderingStartTime=an(),gr.sibling=null;var tr=ts.current;return $t?tr=_8(tr,b0):tr=V1(tr),su(t,tr),gr}return Oa(t),null}case Ge:break;case Ne:case et:{Gg(t);var qi=t.memoizedState,J1=qi!==null;if(e!==null){var Q0=e.memoizedState,$s=Q0!==null;$s!==J1&&!we&&(t.flags|=ks)}return!J1||(t.mode&ze)===$e?Oa(t):Ka(Bs,ha)&&(Oa(t),t.subtreeFlags&(Kt|ht)&&(t.flags|=ks)),null}case mt:return null;case Rt:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function CR(e,t,i){switch(t8(t),t.tag){case C:{var u=t.type;Ps(u)&&h3(t);var m=t.flags;return m&$n?(t.flags=m&~$n|rt,(t.mode&ot)!==$e&&J8(t),t):null}case N:{t.stateNode,F1(t),Z4(t),N8();var g=t.flags;return(g&$n)!==Ze&&(g&rt)===Ze?(t.flags=g&~$n|rt,t):null}case L:return C8(t),null;case te:{j1(t);var T=t.memoizedState;if(T!==null&&T.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");P1()}var E=t.flags;return E&$n?(t.flags=E&~$n|rt,(t.mode&ot)!==$e&&J8(t),t):null}case Be:return j1(t),null;case O:return F1(t),null;case Y:var I=t.type._context;return h8(I,t),null;case Ne:case et:return Gg(t),null;case mt:return null;default:return null}}function Kv(e,t,i){switch(t8(t),t.tag){case C:{var u=t.type.childContextTypes;u!=null&&h3(t);break}case N:{t.stateNode,F1(t),Z4(t),N8();break}case L:{C8(t);break}case O:F1(t);break;case te:j1(t);break;case Be:j1(t);break;case Y:var m=t.type._context;h8(m,t);break;case Ne:case et:Gg(t);break}}var Zv=null;Zv=new Set;var ih=!1,La=!1,ER=typeof WeakSet=="function"?WeakSet:Set,Fe=null,G1=null,W1=null;function _R(e){fi(null,function(){throw e}),mf()}var IR=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&ot)try{Vs(),t.componentWillUnmount()}finally{Fs(e)}else t.componentWillUnmount()};function Xv(e,t){try{uu(Jn,e)}catch(i){Xt(e,t,i)}}function Og(e,t,i){try{IR(e,i)}catch(u){Xt(e,t,u)}}function NR(e,t,i){try{i.componentDidMount()}catch(u){Xt(e,t,u)}}function Jv(e,t){try{tT(e)}catch(i){Xt(e,t,i)}}function Q1(e,t){var i=e.ref;if(i!==null)if(typeof i=="function"){var u;try{if(gt&&it&&e.mode&ot)try{Vs(),u=i(null)}finally{Fs(e)}else u=i(null)}catch(m){Xt(e,t,m)}typeof u=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ft(e))}else i.current=null}function lh(e,t,i){try{i()}catch(u){Xt(e,t,u)}}var eT=!1;function RR(e,t){B_(e.containerInfo),Fe=t,OR();var i=eT;return eT=!1,i}function OR(){for(;Fe!==null;){var e=Fe,t=e.child;(e.subtreeFlags&Cl)!==Ze&&t!==null?(t.return=e,Fe=t):LR()}}function LR(){for(;Fe!==null;){var e=Fe;jt(e);try{AR(e)}catch(i){Xt(e,e.return,i)}On();var t=e.sibling;if(t!==null){t.return=e.return,Fe=t;return}Fe=e.return}}function AR(e){var t=e.alternate,i=e.flags;if((i&_r)!==Ze){switch(jt(e),e.tag){case b:case Z:case ae:break;case C:{if(t!==null){var u=t.memoizedProps,m=t.memoizedState,g=e.stateNode;e.type===e.elementType&&!Mc&&(g.props!==e.memoizedProps&&f("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ft(e)||"instance"),g.state!==e.memoizedState&&f("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ft(e)||"instance"));var T=g.getSnapshotBeforeUpdate(e.elementType===e.type?u:as(e.type,u),m);{var E=Zv;T===void 0&&!E.has(e.type)&&(E.add(e.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ft(e)))}g.__reactInternalSnapshotBeforeUpdate=T}break}case N:{{var I=e.stateNode;mI(I.containerInfo)}break}case L:case x:case O:case Se:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}On()}}function os(e,t,i){var u=t.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var g=m.next,T=g;do{if((T.tag&e)===e){var E=T.destroy;T.destroy=void 0,E!==void 0&&((e&Ra)!==Vr?vp(t):(e&Jn)!==Vr&&no(t),(e&Ms)!==Vr&&q0(!0),lh(t,i,E),(e&Ms)!==Vr&&q0(!1),(e&Ra)!==Vr?Fd():(e&Jn)!==Vr&&Nl())}T=T.next}while(T!==g)}}function uu(e,t){var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var m=u.next,g=m;do{if((g.tag&e)===e){(e&Ra)!==Vr?Cs(t):(e&Jn)!==Vr&&Tp(t);var T=g.create;(e&Ms)!==Vr&&q0(!0),g.destroy=T(),(e&Ms)!==Vr&&q0(!1),(e&Ra)!==Vr?Ud():(e&Jn)!==Vr&&nc();{var E=g.destroy;if(E!==void 0&&typeof E!="function"){var I=void 0;(g.tag&Jn)!==Ze?I="useLayoutEffect":(g.tag&Ms)!==Ze?I="useInsertionEffect":I="useEffect";var A=void 0;E===null?A=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof E.then=="function"?A=`
135
135
 
136
136
  It looks like you wrote `+I+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
137
137
 
@@ -144,11 +144,11 @@ It looks like you wrote `+I+`(async () => ...) or returned a Promise. Instead, w
144
144
  fetchData();
145
145
  }, [someId]); // Or [] if effect doesn't need props or state
146
146
 
147
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:A=" You returned: "+E,f("%s must not return anything besides a function, which is used for clean-up.%s",I,A)}}}g=g.next}while(g!==m)}}function xR(e,t){if((t.flags&ht)!==Ze)switch(t.tag){case Q:{var i=t.stateNode.passiveEffectDuration,u=t.memoizedProps,m=u.id,g=u.onPostCommit,T=gv(),E=t.alternate===null?"mount":"update";hv()&&(E="nested-update"),typeof g=="function"&&g(m,E,i,T);var I=t.return;e:for(;I!==null;){switch(I.tag){case N:var A=I.stateNode;A.passiveEffectDuration+=i;break e;case Q:var M=I.stateNode;M.passiveEffectDuration+=i;break e}I=I.return}break}}}function PR(e,t,i,u){if((i.flags&fa)!==Ze)switch(i.tag){case b:case Z:case ae:{if(!La)if(i.mode&rt)try{Vs(),uu(Jn|Xn,i)}finally{Fs(i)}else uu(Jn|Xn,i);break}case C:{var m=i.stateNode;if(i.flags&ht&&!La)if(t===null)if(i.type===i.elementType&&!Mc&&(m.props!==i.memoizedProps&&f("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ft(i)||"instance"),m.state!==i.memoizedState&&f("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ft(i)||"instance")),i.mode&rt)try{Vs(),m.componentDidMount()}finally{Fs(i)}else m.componentDidMount();else{var g=i.elementType===i.type?t.memoizedProps:as(i.type,t.memoizedProps),T=t.memoizedState;if(i.type===i.elementType&&!Mc&&(m.props!==i.memoizedProps&&f("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ft(i)||"instance"),m.state!==i.memoizedState&&f("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ft(i)||"instance")),i.mode&rt)try{Vs(),m.componentDidUpdate(g,T,m.__reactInternalSnapshotBeforeUpdate)}finally{Fs(i)}else m.componentDidUpdate(g,T,m.__reactInternalSnapshotBeforeUpdate)}var E=i.updateQueue;E!==null&&(i.type===i.elementType&&!Mc&&(m.props!==i.memoizedProps&&f("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ft(i)||"instance"),m.state!==i.memoizedState&&f("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ft(i)||"instance")),j7(i,E,m));break}case N:{var I=i.updateQueue;if(I!==null){var A=null;if(i.child!==null)switch(i.child.tag){case L:A=i.child.stateNode;break;case C:A=i.child.stateNode;break}j7(i,I,A)}break}case L:{var M=i.stateNode;if(t===null&&i.flags&ht){var G=i.type,H=i.memoizedProps;X_(M,G,H)}break}case x:break;case O:break;case Q:{{var ne=i.memoizedProps,oe=ne.onCommit,ue=ne.onRender,Ie=i.stateNode.effectDuration,qe=gv(),Je=t===null?"mount":"update";hv()&&(Je="nested-update"),typeof ue=="function"&&ue(i.memoizedProps.id,Je,i.actualDuration,i.treeBaseDuration,i.actualStartTime,qe);{typeof oe=="function"&&oe(i.memoizedProps.id,Je,Ie,qe),LO(i);var kt=i.return;e:for(;kt!==null;){switch(kt.tag){case N:var Tt=kt.stateNode;Tt.effectDuration+=Ie;break e;case Q:var X=kt.stateNode;X.effectDuration+=Ie;break e}kt=kt.return}}}break}case te:{$R(e,i);break}case Be:case Se:case Ge:case Ne:case et:case Rt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}La||i.flags&$a&&tT(i)}function MR(e){switch(e.tag){case b:case Z:case ae:{if(e.mode&rt)try{Vs(),Xv(e,e.return)}finally{Fs(e)}else Xv(e,e.return);break}case C:{var t=e.stateNode;typeof t.componentDidMount=="function"&&NR(e,e.return,t),Jv(e,e.return);break}case L:{Jv(e,e.return);break}}}function DR(e,t){for(var i=null,u=e;;){if(u.tag===L){if(i===null){i=u;try{var m=u.stateNode;t?lI(m):cI(u.stateNode,u.memoizedProps)}catch(T){Xt(e,e.return,T)}}}else if(u.tag===x){if(i===null)try{var g=u.stateNode;t?uI(g):dI(g,u.memoizedProps)}catch(T){Xt(e,e.return,T)}}else if(!((u.tag===Ne||u.tag===et)&&u.memoizedState!==null&&u!==e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;i===u&&(i=null),u=u.return}i===u&&(i=null),u.sibling.return=u.return,u=u.sibling}}function tT(e){var t=e.ref;if(t!==null){var i=e.stateNode,u;switch(e.tag){case L:u=i;break;default:u=i}if(typeof t=="function"){var m;if(e.mode&rt)try{Vs(),m=t(u)}finally{Fs(e)}else m=t(u);typeof m=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ft(e))}else t.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ft(e)),t.current=u}}function UR(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function nT(e){var t=e.alternate;t!==null&&(e.alternate=null,nT(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===L){var i=e.stateNode;i!==null&&zI(i)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function FR(e){for(var t=e.return;t!==null;){if(aT(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function aT(e){return e.tag===L||e.tag===N||e.tag===O}function rT(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||aT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==L&&t.tag!==x&&t.tag!==Ye;){if(t.flags&Kt||t.child===null||t.tag===O)continue e;t.child.return=t,t=t.child}if(!(t.flags&Kt))return t.stateNode}}function VR(e){var t=FR(e);switch(t.tag){case L:{var i=t.stateNode;t.flags&Mt&&(s7(i),t.flags&=~Mt);var u=rT(e);Ag(e,u,i);break}case N:case O:{var m=t.stateNode.containerInfo,g=rT(e);Lg(e,g,m);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Lg(e,t,i){var u=e.tag,m=u===L||u===x;if(m){var g=e.stateNode;t?rI(i,g,t):nI(i,g)}else if(u!==O){var T=e.child;if(T!==null){Lg(T,t,i);for(var E=T.sibling;E!==null;)Lg(E,t,i),E=E.sibling}}}function Ag(e,t,i){var u=e.tag,m=u===L||u===x;if(m){var g=e.stateNode;t?aI(i,g,t):tI(i,g)}else if(u!==O){var T=e.child;if(T!==null){Ag(T,t,i);for(var E=T.sibling;E!==null;)Ag(E,t,i),E=E.sibling}}}var Aa=null,ss=!1;function jR(e,t,i){{var u=t;e:for(;u!==null;){switch(u.tag){case L:{Aa=u.stateNode,ss=!1;break e}case N:{Aa=u.stateNode.containerInfo,ss=!0;break e}case O:{Aa=u.stateNode.containerInfo,ss=!0;break e}}u=u.return}if(Aa===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");oT(e,t,i),Aa=null,ss=!1}UR(i)}function cu(e,t,i){for(var u=i.child;u!==null;)oT(e,t,u),u=u.sibling}function oT(e,t,i){switch(gi(i),i.tag){case L:La||Q1(i,t);case x:{{var u=Aa,m=ss;Aa=null,cu(e,t,i),Aa=u,ss=m,Aa!==null&&(ss?sI(Aa,i.stateNode):oI(Aa,i.stateNode))}return}case Ye:{Aa!==null&&(ss?iI(Aa,i.stateNode):z4(Aa,i.stateNode));return}case O:{{var g=Aa,T=ss;Aa=i.stateNode.containerInfo,ss=!0,cu(e,t,i),Aa=g,ss=T}return}case b:case Z:case ie:case ae:{if(!La){var E=i.updateQueue;if(E!==null){var I=E.lastEffect;if(I!==null){var A=I.next,M=A;do{var G=M,H=G.destroy,ne=G.tag;H!==void 0&&((ne&Ms)!==Vr?lh(i,t,H):(ne&Jn)!==Vr&&(no(i),i.mode&rt?(Vs(),lh(i,t,H),Fs(i)):lh(i,t,H),Nl())),M=M.next}while(M!==A)}}}cu(e,t,i);return}case C:{if(!La){Q1(i,t);var oe=i.stateNode;typeof oe.componentWillUnmount=="function"&&Og(i,t,oe)}cu(e,t,i);return}case Ge:{cu(e,t,i);return}case Ne:{if(i.mode&ze){var ue=La;La=ue||i.memoizedState!==null,cu(e,t,i),La=ue}else cu(e,t,i);break}default:{cu(e,t,i);return}}}function BR(e){e.memoizedState}function $R(e,t){var i=t.memoizedState;if(i===null){var u=t.alternate;if(u!==null){var m=u.memoizedState;if(m!==null){var g=m.dehydrated;g!==null&&_I(g)}}}}function sT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new ER),t.forEach(function(u){var m=FO.bind(null,e,u);if(!i.has(u)){if(i.add(u),lr)if(G1!==null&&W1!==null)H0(W1,G1);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(m,m)}})}}function zR(e,t,i){G1=i,W1=e,jt(t),iT(t,e),jt(t),G1=null,W1=null}function is(e,t,i){var u=t.deletions;if(u!==null)for(var m=0;m<u.length;m++){var g=u[m];try{jR(e,t,g)}catch(I){Xt(g,t,I)}}var T=q6();if(t.subtreeFlags&qa)for(var E=t.child;E!==null;)jt(E),iT(E,e),E=E.sibling;jt(T)}function iT(e,t,i){var u=e.alternate,m=e.flags;switch(e.tag){case b:case Z:case ie:case ae:{if(is(t,e),js(e),m&ht){try{os(Ms|Xn,e,e.return),uu(Ms|Xn,e)}catch(nt){Xt(e,e.return,nt)}if(e.mode&rt){try{Vs(),os(Jn|Xn,e,e.return)}catch(nt){Xt(e,e.return,nt)}Fs(e)}else try{os(Jn|Xn,e,e.return)}catch(nt){Xt(e,e.return,nt)}}return}case C:{is(t,e),js(e),m&$a&&u!==null&&Q1(u,u.return);return}case L:{is(t,e),js(e),m&$a&&u!==null&&Q1(u,u.return);{if(e.flags&Mt){var g=e.stateNode;try{s7(g)}catch(nt){Xt(e,e.return,nt)}}if(m&ht){var T=e.stateNode;if(T!=null){var E=e.memoizedProps,I=u!==null?u.memoizedProps:E,A=e.type,M=e.updateQueue;if(e.updateQueue=null,M!==null)try{J_(T,M,A,I,E,e)}catch(nt){Xt(e,e.return,nt)}}}}return}case x:{if(is(t,e),js(e),m&ht){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var G=e.stateNode,H=e.memoizedProps,ne=u!==null?u.memoizedProps:H;try{eI(G,ne,H)}catch(nt){Xt(e,e.return,nt)}}return}case N:{if(is(t,e),js(e),m&ht&&u!==null){var oe=u.memoizedState;if(oe.isDehydrated)try{EI(t.containerInfo)}catch(nt){Xt(e,e.return,nt)}}return}case O:{is(t,e),js(e);return}case te:{is(t,e),js(e);var ue=e.child;if(ue.flags&ks){var Ie=ue.stateNode,qe=ue.memoizedState,Je=qe!==null;if(Ie.isHidden=Je,Je){var kt=ue.alternate!==null&&ue.alternate.memoizedState!==null;kt||wO()}}if(m&ht){try{BR(e)}catch(nt){Xt(e,e.return,nt)}sT(e)}return}case Ne:{var Tt=u!==null&&u.memoizedState!==null;if(e.mode&ze){var X=La;La=X||Tt,is(t,e),La=X}else is(t,e);if(js(e),m&ks){var le=e.stateNode,J=e.memoizedState,Te=J!==null,xe=e;if(le.isHidden=Te,Te&&!Tt&&(xe.mode&ze)!==$e){Fe=xe;for(var Oe=xe.child;Oe!==null;)Fe=Oe,qR(Oe),Oe=Oe.sibling}DR(xe,Te)}return}case Be:{is(t,e),js(e),m&ht&&sT(e);return}case Ge:return;default:{is(t,e),js(e);return}}}function js(e){var t=e.flags;if(t&Kt){try{VR(e)}catch(i){Xt(e,e.return,i)}e.flags&=~Kt}t&Ir&&(e.flags&=~Ir)}function HR(e,t,i){G1=i,W1=t,Fe=e,lT(e,t,i),G1=null,W1=null}function lT(e,t,i){for(var u=(e.mode&ze)!==$e;Fe!==null;){var m=Fe,g=m.child;if(m.tag===Ne&&u){var T=m.memoizedState!==null,E=T||ih;if(E){xg(e,t,i);continue}else{var I=m.alternate,A=I!==null&&I.memoizedState!==null,M=A||La,G=ih,H=La;ih=E,La=M,La&&!H&&(Fe=m,GR(m));for(var ne=g;ne!==null;)Fe=ne,lT(ne,t,i),ne=ne.sibling;Fe=m,ih=G,La=H,xg(e,t,i);continue}}(m.subtreeFlags&fa)!==Ze&&g!==null?(g.return=m,Fe=g):xg(e,t,i)}}function xg(e,t,i){for(;Fe!==null;){var u=Fe;if((u.flags&fa)!==Ze){var m=u.alternate;jt(u);try{PR(t,m,u,i)}catch(T){Xt(u,u.return,T)}On()}if(u===e){Fe=null;return}var g=u.sibling;if(g!==null){g.return=u.return,Fe=g;return}Fe=u.return}}function qR(e){for(;Fe!==null;){var t=Fe,i=t.child;switch(t.tag){case b:case Z:case ie:case ae:{if(t.mode&rt)try{Vs(),os(Jn,t,t.return)}finally{Fs(t)}else os(Jn,t,t.return);break}case C:{Q1(t,t.return);var u=t.stateNode;typeof u.componentWillUnmount=="function"&&Og(t,t.return,u);break}case L:{Q1(t,t.return);break}case Ne:{var m=t.memoizedState!==null;if(m){uT(e);continue}break}}i!==null?(i.return=t,Fe=i):uT(e)}}function uT(e){for(;Fe!==null;){var t=Fe;if(t===e){Fe=null;return}var i=t.sibling;if(i!==null){i.return=t.return,Fe=i;return}Fe=t.return}}function GR(e){for(;Fe!==null;){var t=Fe,i=t.child;if(t.tag===Ne){var u=t.memoizedState!==null;if(u){cT(e);continue}}i!==null?(i.return=t,Fe=i):cT(e)}}function cT(e){for(;Fe!==null;){var t=Fe;jt(t);try{MR(t)}catch(u){Xt(t,t.return,u)}if(On(),t===e){Fe=null;return}var i=t.sibling;if(i!==null){i.return=t.return,Fe=i;return}Fe=t.return}}function WR(e,t,i,u){Fe=t,QR(t,e,i,u)}function QR(e,t,i,u){for(;Fe!==null;){var m=Fe,g=m.child;(m.subtreeFlags&Nr)!==Ze&&g!==null?(g.return=m,Fe=g):YR(e,t,i,u)}}function YR(e,t,i,u){for(;Fe!==null;){var m=Fe;if((m.flags&Jt)!==Ze){jt(m);try{KR(t,m,i,u)}catch(T){Xt(m,m.return,T)}On()}if(m===e){Fe=null;return}var g=m.sibling;if(g!==null){g.return=m.return,Fe=g;return}Fe=m.return}}function KR(e,t,i,u){switch(t.tag){case b:case Z:case ae:{if(t.mode&rt){X8();try{uu(Ra|Xn,t)}finally{Z8(t)}}else uu(Ra|Xn,t);break}}}function ZR(e){Fe=e,XR()}function XR(){for(;Fe!==null;){var e=Fe,t=e.child;if((Fe.flags&Pt)!==Ze){var i=e.deletions;if(i!==null){for(var u=0;u<i.length;u++){var m=i[u];Fe=m,tO(m,e)}{var g=e.alternate;if(g!==null){var T=g.child;if(T!==null){g.child=null;do{var E=T.sibling;T.sibling=null,T=E}while(T!==null)}}}Fe=e}}(e.subtreeFlags&Nr)!==Ze&&t!==null?(t.return=e,Fe=t):JR()}}function JR(){for(;Fe!==null;){var e=Fe;(e.flags&Jt)!==Ze&&(jt(e),eO(e),On());var t=e.sibling;if(t!==null){t.return=e.return,Fe=t;return}Fe=e.return}}function eO(e){switch(e.tag){case b:case Z:case ae:{e.mode&rt?(X8(),os(Ra|Xn,e,e.return),Z8(e)):os(Ra|Xn,e,e.return);break}}}function tO(e,t){for(;Fe!==null;){var i=Fe;jt(i),aO(i,t),On();var u=i.child;u!==null?(u.return=i,Fe=u):nO(e)}}function nO(e){for(;Fe!==null;){var t=Fe,i=t.sibling,u=t.return;if(nT(t),t===e){Fe=null;return}if(i!==null){i.return=u,Fe=i;return}Fe=u}}function aO(e,t){switch(e.tag){case b:case Z:case ae:{e.mode&rt?(X8(),os(Ra,e,t),Z8(e)):os(Ra,e,t);break}}}function rO(e){switch(e.tag){case b:case Z:case ae:{try{uu(Jn|Xn,e)}catch(i){Xt(e,e.return,i)}break}case C:{var t=e.stateNode;try{t.componentDidMount()}catch(i){Xt(e,e.return,i)}break}}}function oO(e){switch(e.tag){case b:case Z:case ae:{try{uu(Ra|Xn,e)}catch(t){Xt(e,e.return,t)}break}}}function sO(e){switch(e.tag){case b:case Z:case ae:{try{os(Jn|Xn,e,e.return)}catch(i){Xt(e,e.return,i)}break}case C:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&Og(e,e.return,t);break}}}function iO(e){switch(e.tag){case b:case Z:case ae:try{os(Ra|Xn,e,e.return)}catch(t){Xt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var P0=Symbol.for;P0("selector.component"),P0("selector.has_pseudo_class"),P0("selector.role"),P0("selector.test_id"),P0("selector.text")}var lO=[];function uO(){lO.forEach(function(e){return e()})}var cO=o.ReactCurrentActQueue;function dO(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,i=typeof jest<"u";return i&&t!==!1}}function dT(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&cO.current!==null&&f("The current testing environment is not configured to support act(...)"),e}}var mO=Math.ceil,Pg=o.ReactCurrentDispatcher,Mg=o.ReactCurrentOwner,xa=o.ReactCurrentBatchConfig,ls=o.ReactCurrentActQueue,na=0,mT=1,Pa=2,_o=4,Bi=0,M0=1,Dc=2,uh=3,D0=4,fT=5,Dg=6,It=na,fr=null,gn=null,aa=fe,Bs=fe,Ug=eu(fe),ra=Bi,U0=null,ch=fe,F0=fe,dh=fe,V0=null,jr=null,Fg=0,pT=500,hT=1/0,fO=500,$i=null;function j0(){hT=an()+fO}function gT(){return hT}var mh=!1,Vg=null,Y1=null,Uc=!1,du=null,B0=fe,jg=[],Bg=null,pO=50,$0=0,$g=null,zg=!1,fh=!1,hO=50,K1=0,ph=null,hh=Wt,gh=fe,yT=!1;function yh(){return fr}function pr(){return(It&(Pa|_o))!==na?an():(hh!==Wt||(hh=an()),hh)}function mu(e){var t=e.mode;if((t&ze)===$e)return Qe;if((It&Pa)!==na&&aa!==fe)return Ul(aa);var i=cN()!==uN;if(i){if(xa.transition!==null){var u=xa.transition;u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(e)}return gh===wn&&(gh=Rp()),gh}var m=xr();if(m!==wn)return m;var g=Q_();return g}function gO(e){var t=e.mode;return(t&ze)===$e?Qe:Ya()}function oa(e,t,i,u){jO(),yT&&f("useInsertionEffect must not schedule updates."),zg&&(fh=!0),Ci(e,i,u),(It&Pa)!==fe&&e===fr?zO(t):(lr&&Af(e,t,i),HO(t),e===fr&&((It&Pa)===na&&(F0=pt(F0,i)),ra===D0&&fu(e,aa)),Br(e,u),i===Qe&&It===na&&(t.mode&ze)===$e&&!ls.isBatchingLegacy&&(j0(),y7()))}function yO(e,t,i){var u=e.current;u.lanes=t,Ci(e,t,i),Br(e,i)}function vO(e){return(It&Pa)!==na}function Br(e,t){var i=e.callbackNode;Cp(e,t);var u=Si(e,e===fr?aa:fe);if(u===fe){i!==null&&xT(i),e.callbackNode=null,e.callbackPriority=wn;return}var m=pn(u),g=e.callbackPriority;if(g===m&&!(ls.current!==null&&i!==Kg)){i==null&&g!==Qe&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}i!=null&&xT(i);var T;if(m===Qe)e.tag===tu?(ls.isBatchingLegacy!==null&&(ls.didScheduleLegacyUpdate=!0),GI(bT.bind(null,e))):g7(bT.bind(null,e)),ls.current!==null?ls.current.push(nu):K_(function(){(It&(Pa|_o))===na&&nu()}),T=null;else{var E;switch(pc(u)){case ga:E=Pd;break;case Zn:E=hi;break;case Wo:E=yo;break;case mc:E=Md;break;default:E=yo;break}T=Zg(E,vT.bind(null,e))}e.callbackPriority=m,e.callbackNode=T}function vT(e,t){if(DN(),hh=Wt,gh=fe,(It&(Pa|_o))!==na)throw new Error("Should not already be working.");var i=e.callbackNode,u=Hi();if(u&&e.callbackNode!==i)return null;var m=Si(e,e===fr?aa:fe);if(m===fe)return null;var g=!cc(e,m)&&!Np(e,m)&&!t,T=g?NO(e,m):Th(e,m);if(T!==Bi){if(T===Dc){var E=_s(e);E!==fe&&(m=E,T=Hg(e,E))}if(T===M0){var I=U0;throw Fc(e,fe),fu(e,m),Br(e,an()),I}if(T===Dg)fu(e,m);else{var A=!cc(e,m),M=e.current.alternate;if(A&&!bO(M)){if(T=Th(e,m),T===Dc){var G=_s(e);G!==fe&&(m=G,T=Hg(e,G))}if(T===M0){var H=U0;throw Fc(e,fe),fu(e,m),Br(e,an()),H}}e.finishedWork=M,e.finishedLanes=m,TO(e,T,m)}}return Br(e,an()),e.callbackNode===i?vT.bind(null,e):null}function Hg(e,t){var i=V0;if(xn(e)){var u=Fc(e,t);u.flags|=dn,VI(e.containerInfo)}var m=Th(e,t);if(m!==Dc){var g=jr;jr=i,g!==null&&TT(g)}return m}function TT(e){jr===null?jr=e:jr.push.apply(jr,e)}function TO(e,t,i){switch(t){case Bi:case M0:throw new Error("Root did not complete. This is a bug in React.");case Dc:{Vc(e,jr,$i);break}case uh:{if(fu(e,i),Ep(i)&&!PT()){var u=Fg+pT-an();if(u>10){var m=Si(e,fe);if(m!==fe)break;var g=e.suspendedLanes;if(!wi(g,i)){pr(),Of(e,g);break}e.timeoutHandle=B4(Vc.bind(null,e,jr,$i),u);break}}Vc(e,jr,$i);break}case D0:{if(fu(e,i),Ip(i))break;if(!PT()){var T=Sp(e,i),E=T,I=an()-E,A=VO(I)-I;if(A>10){e.timeoutHandle=B4(Vc.bind(null,e,jr,$i),A);break}}Vc(e,jr,$i);break}case fT:{Vc(e,jr,$i);break}default:throw new Error("Unknown root exit status.")}}function bO(e){for(var t=e;;){if(t.flags&ec){var i=t.updateQueue;if(i!==null){var u=i.stores;if(u!==null)for(var m=0;m<u.length;m++){var g=u[m],T=g.getSnapshot,E=g.value;try{if(!Ue(T(),E))return!1}catch{return!1}}}}var I=t.child;if(t.subtreeFlags&ec&&I!==null){I.return=t,t=I;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function fu(e,t){t=dc(t,dh),t=dc(t,F0),Rf(e,t)}function bT(e){if(UN(),(It&(Pa|_o))!==na)throw new Error("Should not already be working.");Hi();var t=Si(e,fe);if(!Ka(t,Qe))return Br(e,an()),null;var i=Th(e,t);if(e.tag!==tu&&i===Dc){var u=_s(e);u!==fe&&(t=u,i=Hg(e,u))}if(i===M0){var m=U0;throw Fc(e,fe),fu(e,t),Br(e,an()),m}if(i===Dg)throw new Error("Root did not complete. This is a bug in React.");var g=e.current.alternate;return e.finishedWork=g,e.finishedLanes=t,Vc(e,jr,$i),Br(e,an()),null}function kO(e,t){t!==fe&&(Fl(e,pt(t,Qe)),Br(e,an()),(It&(Pa|_o))===na&&(j0(),nu()))}function qg(e,t){var i=It;It|=mT;try{return e(t)}finally{It=i,It===na&&!ls.isBatchingLegacy&&(j0(),y7())}}function SO(e,t,i,u,m){var g=xr(),T=xa.transition;try{return xa.transition=null,An(ga),e(t,i,u,m)}finally{An(g),xa.transition=T,It===na&&j0()}}function zi(e){du!==null&&du.tag===tu&&(It&(Pa|_o))===na&&Hi();var t=It;It|=mT;var i=xa.transition,u=xr();try{return xa.transition=null,An(ga),e?e():void 0}finally{An(u),xa.transition=i,It=t,(It&(Pa|_o))===na&&nu()}}function kT(){return(It&(Pa|_o))!==na}function vh(e,t){Xa(Ug,Bs,e),Bs=pt(Bs,t)}function Gg(e){Bs=Ug.current,Za(Ug,e)}function Fc(e,t){e.finishedWork=null,e.finishedLanes=fe;var i=e.timeoutHandle;if(i!==$4&&(e.timeoutHandle=$4,Y_(i)),gn!==null)for(var u=gn.return;u!==null;){var m=u.alternate;Kv(m,u),u=u.return}fr=e;var g=jc(e.current,null);return gn=g,aa=Bs=t,ra=Bi,U0=null,ch=fe,F0=fe,dh=fe,V0=null,jr=null,yN(),es.discardPendingWarnings(),g}function ST(e,t){do{var i=gn;try{if(I3(),G7(),On(),Mg.current=null,i===null||i.return===null){ra=M0,U0=t,gn=null;return}if(gt&&i.mode&rt&&nh(i,!0),We)if(Wa(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var u=t;yi(i,u,aa)}else ac(i,t,aa);GN(e,i.return,i,t,aa),_T(i)}catch(m){t=m,gn===i&&i!==null?(i=i.return,gn=i):i=gn;continue}return}while(!0)}function wT(){var e=Pg.current;return Pg.current=Z3,e===null?Z3:e}function CT(e){Pg.current=e}function wO(){Fg=an()}function z0(e){ch=pt(e,ch)}function CO(){ra===Bi&&(ra=uh)}function Wg(){(ra===Bi||ra===uh||ra===Dc)&&(ra=D0),fr!==null&&(uc(ch)||uc(F0))&&fu(fr,aa)}function EO(e){ra!==D0&&(ra=Dc),V0===null?V0=[e]:V0.push(e)}function _O(){return ra===Bi}function Th(e,t){var i=It;It|=Pa;var u=wT();if(fr!==e||aa!==t){if(lr){var m=e.memoizedUpdaters;m.size>0&&(H0(e,aa),m.clear()),s1(e,t)}$i=xf(),Fc(e,t)}en(t);do try{IO();break}catch(g){ST(e,g)}while(!0);if(I3(),It=i,CT(u),gn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return jd(),fr=null,aa=fe,ra}function IO(){for(;gn!==null;)ET(gn)}function NO(e,t){var i=It;It|=Pa;var u=wT();if(fr!==e||aa!==t){if(lr){var m=e.memoizedUpdaters;m.size>0&&(H0(e,aa),m.clear()),s1(e,t)}$i=xf(),j0(),Fc(e,t)}en(t);do try{RO();break}catch(g){ST(e,g)}while(!0);return I3(),CT(u),It=i,gn!==null?(Vd(),Bi):(jd(),fr=null,aa=fe,ra)}function RO(){for(;gn!==null&&!xd();)ET(gn)}function ET(e){var t=e.alternate;jt(e);var i;(e.mode&rt)!==$e?(K8(e),i=Qg(t,e,Bs),nh(e,!0)):i=Qg(t,e,Bs),On(),e.memoizedProps=e.pendingProps,i===null?_T(e):gn=i,Mg.current=null}function _T(e){var t=e;do{var i=t.alternate,u=t.return;if((t.flags&or)===Ze){jt(t);var m=void 0;if((t.mode&rt)===$e?m=Yv(i,t,Bs):(K8(t),m=Yv(i,t,Bs),nh(t,!1)),On(),m!==null){gn=m;return}}else{var g=CR(i,t);if(g!==null){g.flags&=dp,gn=g;return}if((t.mode&rt)!==$e){nh(t,!1);for(var T=t.actualDuration,E=t.child;E!==null;)T+=E.actualDuration,E=E.sibling;t.actualDuration=T}if(u!==null)u.flags|=or,u.subtreeFlags=Ze,u.deletions=null;else{ra=Dg,gn=null;return}}var I=t.sibling;if(I!==null){gn=I;return}t=u,gn=t}while(t!==null);ra===Bi&&(ra=fT)}function Vc(e,t,i){var u=xr(),m=xa.transition;try{xa.transition=null,An(ga),OO(e,t,i,u)}finally{xa.transition=m,An(u)}return null}function OO(e,t,i,u){do Hi();while(du!==null);if(BO(),(It&(Pa|_o))!==na)throw new Error("Should not already be working.");var m=e.finishedWork,g=e.finishedLanes;if(ws(g),m===null)return Dd(),null;if(g===fe&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=fe,m===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=wn;var T=pt(m.lanes,m.childLanes);Lf(e,T),e===fr&&(fr=null,gn=null,aa=fe),((m.subtreeFlags&Nr)!==Ze||(m.flags&Nr)!==Ze)&&(Uc||(Uc=!0,Bg=i,Zg(yo,function(){return Hi(),null})));var E=(m.subtreeFlags&(Cl|qa|fa|Nr))!==Ze,I=(m.flags&(Cl|qa|fa|Nr))!==Ze;if(E||I){var A=xa.transition;xa.transition=null;var M=xr();An(ga);var G=It;It|=_o,Mg.current=null,RR(e,m),yv(),zR(e,m,g),$_(e.containerInfo),e.current=m,kf(g),HR(m,e,g),Rl(),pp(),It=G,An(M),xa.transition=A}else e.current=m,yv();var H=Uc;if(Uc?(Uc=!1,du=e,B0=g):(K1=0,ph=null),T=e.pendingLanes,T===fe&&(Y1=null),H||OT(e.current,!1),_l(m.stateNode,u),lr&&e.memoizedUpdaters.clear(),uO(),Br(e,an()),t!==null)for(var ne=e.onRecoverableError,oe=0;oe<t.length;oe++){var ue=t[oe],Ie=ue.stack,qe=ue.digest;ne(ue.value,{componentStack:Ie,digest:qe})}if(mh){mh=!1;var Je=Vg;throw Vg=null,Je}return Ka(B0,Qe)&&e.tag!==tu&&Hi(),T=e.pendingLanes,Ka(T,Qe)?(MN(),e===$g?$0++:($0=0,$g=e)):$0=0,nu(),Dd(),null}function Hi(){if(du!==null){var e=pc(B0),t=m4(Wo,e),i=xa.transition,u=xr();try{return xa.transition=null,An(t),AO()}finally{An(u),xa.transition=i}}return!1}function LO(e){jg.push(e),Uc||(Uc=!0,Zg(yo,function(){return Hi(),null}))}function AO(){if(du===null)return!1;var e=Bg;Bg=null;var t=du,i=B0;if(du=null,B0=fe,(It&(Pa|_o))!==na)throw new Error("Cannot flush passive effects while already rendering.");zg=!0,fh=!1,bp(i);var u=It;It|=_o,ZR(t.current),WR(t,t.current,i,e);{var m=jg;jg=[];for(var g=0;g<m.length;g++){var T=m[g];xR(t,T)}}Sf(),OT(t.current,!0),It=u,nu(),fh?t===ph?K1++:(K1=0,ph=t):K1=0,zg=!1,fh=!1,Lr(t);{var E=t.current.stateNode;E.effectDuration=0,E.passiveEffectDuration=0}return!0}function IT(e){return Y1!==null&&Y1.has(e)}function xO(e){Y1===null?Y1=new Set([e]):Y1.add(e)}function PO(e){mh||(mh=!0,Vg=e)}var MO=PO;function NT(e,t,i){var u=Pc(i,t),m=Ev(e,u,Qe),g=ru(e,m,Qe),T=pr();g!==null&&(Ci(g,Qe,T),Br(g,T))}function Xt(e,t,i){if(_R(i),q0(!1),e.tag===N){NT(e,e,i);return}var u=null;for(u=t;u!==null;){if(u.tag===N){NT(u,e,i);return}else if(u.tag===C){var m=u.type,g=u.stateNode;if(typeof m.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&!IT(g)){var T=Pc(i,e),E=pg(u,T,Qe),I=ru(u,E,Qe),A=pr();I!==null&&(Ci(I,Qe,A),Br(I,A));return}}u=u.return}f(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
147
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:A=" You returned: "+E,f("%s must not return anything besides a function, which is used for clean-up.%s",I,A)}}}g=g.next}while(g!==m)}}function xR(e,t){if((t.flags&ht)!==Ze)switch(t.tag){case Q:{var i=t.stateNode.passiveEffectDuration,u=t.memoizedProps,m=u.id,g=u.onPostCommit,T=gv(),E=t.alternate===null?"mount":"update";hv()&&(E="nested-update"),typeof g=="function"&&g(m,E,i,T);var I=t.return;e:for(;I!==null;){switch(I.tag){case N:var A=I.stateNode;A.passiveEffectDuration+=i;break e;case Q:var M=I.stateNode;M.passiveEffectDuration+=i;break e}I=I.return}break}}}function PR(e,t,i,u){if((i.flags&fa)!==Ze)switch(i.tag){case b:case Z:case ae:{if(!La)if(i.mode&ot)try{Vs(),uu(Jn|Xn,i)}finally{Fs(i)}else uu(Jn|Xn,i);break}case C:{var m=i.stateNode;if(i.flags&ht&&!La)if(t===null)if(i.type===i.elementType&&!Mc&&(m.props!==i.memoizedProps&&f("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ft(i)||"instance"),m.state!==i.memoizedState&&f("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ft(i)||"instance")),i.mode&ot)try{Vs(),m.componentDidMount()}finally{Fs(i)}else m.componentDidMount();else{var g=i.elementType===i.type?t.memoizedProps:as(i.type,t.memoizedProps),T=t.memoizedState;if(i.type===i.elementType&&!Mc&&(m.props!==i.memoizedProps&&f("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ft(i)||"instance"),m.state!==i.memoizedState&&f("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ft(i)||"instance")),i.mode&ot)try{Vs(),m.componentDidUpdate(g,T,m.__reactInternalSnapshotBeforeUpdate)}finally{Fs(i)}else m.componentDidUpdate(g,T,m.__reactInternalSnapshotBeforeUpdate)}var E=i.updateQueue;E!==null&&(i.type===i.elementType&&!Mc&&(m.props!==i.memoizedProps&&f("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ft(i)||"instance"),m.state!==i.memoizedState&&f("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ft(i)||"instance")),j7(i,E,m));break}case N:{var I=i.updateQueue;if(I!==null){var A=null;if(i.child!==null)switch(i.child.tag){case L:A=i.child.stateNode;break;case C:A=i.child.stateNode;break}j7(i,I,A)}break}case L:{var M=i.stateNode;if(t===null&&i.flags&ht){var G=i.type,H=i.memoizedProps;X_(M,G,H)}break}case x:break;case O:break;case Q:{{var ne=i.memoizedProps,oe=ne.onCommit,ue=ne.onRender,Ie=i.stateNode.effectDuration,qe=gv(),Je=t===null?"mount":"update";hv()&&(Je="nested-update"),typeof ue=="function"&&ue(i.memoizedProps.id,Je,i.actualDuration,i.treeBaseDuration,i.actualStartTime,qe);{typeof oe=="function"&&oe(i.memoizedProps.id,Je,Ie,qe),LO(i);var kt=i.return;e:for(;kt!==null;){switch(kt.tag){case N:var Tt=kt.stateNode;Tt.effectDuration+=Ie;break e;case Q:var X=kt.stateNode;X.effectDuration+=Ie;break e}kt=kt.return}}}break}case te:{$R(e,i);break}case Be:case Se:case Ge:case Ne:case et:case Rt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}La||i.flags&$a&&tT(i)}function MR(e){switch(e.tag){case b:case Z:case ae:{if(e.mode&ot)try{Vs(),Xv(e,e.return)}finally{Fs(e)}else Xv(e,e.return);break}case C:{var t=e.stateNode;typeof t.componentDidMount=="function"&&NR(e,e.return,t),Jv(e,e.return);break}case L:{Jv(e,e.return);break}}}function DR(e,t){for(var i=null,u=e;;){if(u.tag===L){if(i===null){i=u;try{var m=u.stateNode;t?lI(m):cI(u.stateNode,u.memoizedProps)}catch(T){Xt(e,e.return,T)}}}else if(u.tag===x){if(i===null)try{var g=u.stateNode;t?uI(g):dI(g,u.memoizedProps)}catch(T){Xt(e,e.return,T)}}else if(!((u.tag===Ne||u.tag===et)&&u.memoizedState!==null&&u!==e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;i===u&&(i=null),u=u.return}i===u&&(i=null),u.sibling.return=u.return,u=u.sibling}}function tT(e){var t=e.ref;if(t!==null){var i=e.stateNode,u;switch(e.tag){case L:u=i;break;default:u=i}if(typeof t=="function"){var m;if(e.mode&ot)try{Vs(),m=t(u)}finally{Fs(e)}else m=t(u);typeof m=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ft(e))}else t.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ft(e)),t.current=u}}function UR(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function nT(e){var t=e.alternate;t!==null&&(e.alternate=null,nT(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===L){var i=e.stateNode;i!==null&&zI(i)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function FR(e){for(var t=e.return;t!==null;){if(aT(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function aT(e){return e.tag===L||e.tag===N||e.tag===O}function rT(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||aT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==L&&t.tag!==x&&t.tag!==Ye;){if(t.flags&Kt||t.child===null||t.tag===O)continue e;t.child.return=t,t=t.child}if(!(t.flags&Kt))return t.stateNode}}function VR(e){var t=FR(e);switch(t.tag){case L:{var i=t.stateNode;t.flags&Mt&&(s7(i),t.flags&=~Mt);var u=rT(e);Ag(e,u,i);break}case N:case O:{var m=t.stateNode.containerInfo,g=rT(e);Lg(e,g,m);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Lg(e,t,i){var u=e.tag,m=u===L||u===x;if(m){var g=e.stateNode;t?rI(i,g,t):nI(i,g)}else if(u!==O){var T=e.child;if(T!==null){Lg(T,t,i);for(var E=T.sibling;E!==null;)Lg(E,t,i),E=E.sibling}}}function Ag(e,t,i){var u=e.tag,m=u===L||u===x;if(m){var g=e.stateNode;t?aI(i,g,t):tI(i,g)}else if(u!==O){var T=e.child;if(T!==null){Ag(T,t,i);for(var E=T.sibling;E!==null;)Ag(E,t,i),E=E.sibling}}}var Aa=null,ss=!1;function jR(e,t,i){{var u=t;e:for(;u!==null;){switch(u.tag){case L:{Aa=u.stateNode,ss=!1;break e}case N:{Aa=u.stateNode.containerInfo,ss=!0;break e}case O:{Aa=u.stateNode.containerInfo,ss=!0;break e}}u=u.return}if(Aa===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");oT(e,t,i),Aa=null,ss=!1}UR(i)}function cu(e,t,i){for(var u=i.child;u!==null;)oT(e,t,u),u=u.sibling}function oT(e,t,i){switch(gi(i),i.tag){case L:La||Q1(i,t);case x:{{var u=Aa,m=ss;Aa=null,cu(e,t,i),Aa=u,ss=m,Aa!==null&&(ss?sI(Aa,i.stateNode):oI(Aa,i.stateNode))}return}case Ye:{Aa!==null&&(ss?iI(Aa,i.stateNode):z4(Aa,i.stateNode));return}case O:{{var g=Aa,T=ss;Aa=i.stateNode.containerInfo,ss=!0,cu(e,t,i),Aa=g,ss=T}return}case b:case Z:case ie:case ae:{if(!La){var E=i.updateQueue;if(E!==null){var I=E.lastEffect;if(I!==null){var A=I.next,M=A;do{var G=M,H=G.destroy,ne=G.tag;H!==void 0&&((ne&Ms)!==Vr?lh(i,t,H):(ne&Jn)!==Vr&&(no(i),i.mode&ot?(Vs(),lh(i,t,H),Fs(i)):lh(i,t,H),Nl())),M=M.next}while(M!==A)}}}cu(e,t,i);return}case C:{if(!La){Q1(i,t);var oe=i.stateNode;typeof oe.componentWillUnmount=="function"&&Og(i,t,oe)}cu(e,t,i);return}case Ge:{cu(e,t,i);return}case Ne:{if(i.mode&ze){var ue=La;La=ue||i.memoizedState!==null,cu(e,t,i),La=ue}else cu(e,t,i);break}default:{cu(e,t,i);return}}}function BR(e){e.memoizedState}function $R(e,t){var i=t.memoizedState;if(i===null){var u=t.alternate;if(u!==null){var m=u.memoizedState;if(m!==null){var g=m.dehydrated;g!==null&&_I(g)}}}}function sT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new ER),t.forEach(function(u){var m=FO.bind(null,e,u);if(!i.has(u)){if(i.add(u),lr)if(G1!==null&&W1!==null)H0(W1,G1);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(m,m)}})}}function zR(e,t,i){G1=i,W1=e,jt(t),iT(t,e),jt(t),G1=null,W1=null}function is(e,t,i){var u=t.deletions;if(u!==null)for(var m=0;m<u.length;m++){var g=u[m];try{jR(e,t,g)}catch(I){Xt(g,t,I)}}var T=q6();if(t.subtreeFlags&qa)for(var E=t.child;E!==null;)jt(E),iT(E,e),E=E.sibling;jt(T)}function iT(e,t,i){var u=e.alternate,m=e.flags;switch(e.tag){case b:case Z:case ie:case ae:{if(is(t,e),js(e),m&ht){try{os(Ms|Xn,e,e.return),uu(Ms|Xn,e)}catch(nt){Xt(e,e.return,nt)}if(e.mode&ot){try{Vs(),os(Jn|Xn,e,e.return)}catch(nt){Xt(e,e.return,nt)}Fs(e)}else try{os(Jn|Xn,e,e.return)}catch(nt){Xt(e,e.return,nt)}}return}case C:{is(t,e),js(e),m&$a&&u!==null&&Q1(u,u.return);return}case L:{is(t,e),js(e),m&$a&&u!==null&&Q1(u,u.return);{if(e.flags&Mt){var g=e.stateNode;try{s7(g)}catch(nt){Xt(e,e.return,nt)}}if(m&ht){var T=e.stateNode;if(T!=null){var E=e.memoizedProps,I=u!==null?u.memoizedProps:E,A=e.type,M=e.updateQueue;if(e.updateQueue=null,M!==null)try{J_(T,M,A,I,E,e)}catch(nt){Xt(e,e.return,nt)}}}}return}case x:{if(is(t,e),js(e),m&ht){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var G=e.stateNode,H=e.memoizedProps,ne=u!==null?u.memoizedProps:H;try{eI(G,ne,H)}catch(nt){Xt(e,e.return,nt)}}return}case N:{if(is(t,e),js(e),m&ht&&u!==null){var oe=u.memoizedState;if(oe.isDehydrated)try{EI(t.containerInfo)}catch(nt){Xt(e,e.return,nt)}}return}case O:{is(t,e),js(e);return}case te:{is(t,e),js(e);var ue=e.child;if(ue.flags&ks){var Ie=ue.stateNode,qe=ue.memoizedState,Je=qe!==null;if(Ie.isHidden=Je,Je){var kt=ue.alternate!==null&&ue.alternate.memoizedState!==null;kt||wO()}}if(m&ht){try{BR(e)}catch(nt){Xt(e,e.return,nt)}sT(e)}return}case Ne:{var Tt=u!==null&&u.memoizedState!==null;if(e.mode&ze){var X=La;La=X||Tt,is(t,e),La=X}else is(t,e);if(js(e),m&ks){var le=e.stateNode,J=e.memoizedState,Te=J!==null,xe=e;if(le.isHidden=Te,Te&&!Tt&&(xe.mode&ze)!==$e){Fe=xe;for(var Oe=xe.child;Oe!==null;)Fe=Oe,qR(Oe),Oe=Oe.sibling}DR(xe,Te)}return}case Be:{is(t,e),js(e),m&ht&&sT(e);return}case Ge:return;default:{is(t,e),js(e);return}}}function js(e){var t=e.flags;if(t&Kt){try{VR(e)}catch(i){Xt(e,e.return,i)}e.flags&=~Kt}t&Ir&&(e.flags&=~Ir)}function HR(e,t,i){G1=i,W1=t,Fe=e,lT(e,t,i),G1=null,W1=null}function lT(e,t,i){for(var u=(e.mode&ze)!==$e;Fe!==null;){var m=Fe,g=m.child;if(m.tag===Ne&&u){var T=m.memoizedState!==null,E=T||ih;if(E){xg(e,t,i);continue}else{var I=m.alternate,A=I!==null&&I.memoizedState!==null,M=A||La,G=ih,H=La;ih=E,La=M,La&&!H&&(Fe=m,GR(m));for(var ne=g;ne!==null;)Fe=ne,lT(ne,t,i),ne=ne.sibling;Fe=m,ih=G,La=H,xg(e,t,i);continue}}(m.subtreeFlags&fa)!==Ze&&g!==null?(g.return=m,Fe=g):xg(e,t,i)}}function xg(e,t,i){for(;Fe!==null;){var u=Fe;if((u.flags&fa)!==Ze){var m=u.alternate;jt(u);try{PR(t,m,u,i)}catch(T){Xt(u,u.return,T)}On()}if(u===e){Fe=null;return}var g=u.sibling;if(g!==null){g.return=u.return,Fe=g;return}Fe=u.return}}function qR(e){for(;Fe!==null;){var t=Fe,i=t.child;switch(t.tag){case b:case Z:case ie:case ae:{if(t.mode&ot)try{Vs(),os(Jn,t,t.return)}finally{Fs(t)}else os(Jn,t,t.return);break}case C:{Q1(t,t.return);var u=t.stateNode;typeof u.componentWillUnmount=="function"&&Og(t,t.return,u);break}case L:{Q1(t,t.return);break}case Ne:{var m=t.memoizedState!==null;if(m){uT(e);continue}break}}i!==null?(i.return=t,Fe=i):uT(e)}}function uT(e){for(;Fe!==null;){var t=Fe;if(t===e){Fe=null;return}var i=t.sibling;if(i!==null){i.return=t.return,Fe=i;return}Fe=t.return}}function GR(e){for(;Fe!==null;){var t=Fe,i=t.child;if(t.tag===Ne){var u=t.memoizedState!==null;if(u){cT(e);continue}}i!==null?(i.return=t,Fe=i):cT(e)}}function cT(e){for(;Fe!==null;){var t=Fe;jt(t);try{MR(t)}catch(u){Xt(t,t.return,u)}if(On(),t===e){Fe=null;return}var i=t.sibling;if(i!==null){i.return=t.return,Fe=i;return}Fe=t.return}}function WR(e,t,i,u){Fe=t,QR(t,e,i,u)}function QR(e,t,i,u){for(;Fe!==null;){var m=Fe,g=m.child;(m.subtreeFlags&Nr)!==Ze&&g!==null?(g.return=m,Fe=g):YR(e,t,i,u)}}function YR(e,t,i,u){for(;Fe!==null;){var m=Fe;if((m.flags&Jt)!==Ze){jt(m);try{KR(t,m,i,u)}catch(T){Xt(m,m.return,T)}On()}if(m===e){Fe=null;return}var g=m.sibling;if(g!==null){g.return=m.return,Fe=g;return}Fe=m.return}}function KR(e,t,i,u){switch(t.tag){case b:case Z:case ae:{if(t.mode&ot){X8();try{uu(Ra|Xn,t)}finally{Z8(t)}}else uu(Ra|Xn,t);break}}}function ZR(e){Fe=e,XR()}function XR(){for(;Fe!==null;){var e=Fe,t=e.child;if((Fe.flags&Pt)!==Ze){var i=e.deletions;if(i!==null){for(var u=0;u<i.length;u++){var m=i[u];Fe=m,tO(m,e)}{var g=e.alternate;if(g!==null){var T=g.child;if(T!==null){g.child=null;do{var E=T.sibling;T.sibling=null,T=E}while(T!==null)}}}Fe=e}}(e.subtreeFlags&Nr)!==Ze&&t!==null?(t.return=e,Fe=t):JR()}}function JR(){for(;Fe!==null;){var e=Fe;(e.flags&Jt)!==Ze&&(jt(e),eO(e),On());var t=e.sibling;if(t!==null){t.return=e.return,Fe=t;return}Fe=e.return}}function eO(e){switch(e.tag){case b:case Z:case ae:{e.mode&ot?(X8(),os(Ra|Xn,e,e.return),Z8(e)):os(Ra|Xn,e,e.return);break}}}function tO(e,t){for(;Fe!==null;){var i=Fe;jt(i),aO(i,t),On();var u=i.child;u!==null?(u.return=i,Fe=u):nO(e)}}function nO(e){for(;Fe!==null;){var t=Fe,i=t.sibling,u=t.return;if(nT(t),t===e){Fe=null;return}if(i!==null){i.return=u,Fe=i;return}Fe=u}}function aO(e,t){switch(e.tag){case b:case Z:case ae:{e.mode&ot?(X8(),os(Ra,e,t),Z8(e)):os(Ra,e,t);break}}}function rO(e){switch(e.tag){case b:case Z:case ae:{try{uu(Jn|Xn,e)}catch(i){Xt(e,e.return,i)}break}case C:{var t=e.stateNode;try{t.componentDidMount()}catch(i){Xt(e,e.return,i)}break}}}function oO(e){switch(e.tag){case b:case Z:case ae:{try{uu(Ra|Xn,e)}catch(t){Xt(e,e.return,t)}break}}}function sO(e){switch(e.tag){case b:case Z:case ae:{try{os(Jn|Xn,e,e.return)}catch(i){Xt(e,e.return,i)}break}case C:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&Og(e,e.return,t);break}}}function iO(e){switch(e.tag){case b:case Z:case ae:try{os(Ra|Xn,e,e.return)}catch(t){Xt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var P0=Symbol.for;P0("selector.component"),P0("selector.has_pseudo_class"),P0("selector.role"),P0("selector.test_id"),P0("selector.text")}var lO=[];function uO(){lO.forEach(function(e){return e()})}var cO=o.ReactCurrentActQueue;function dO(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,i=typeof jest<"u";return i&&t!==!1}}function dT(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&cO.current!==null&&f("The current testing environment is not configured to support act(...)"),e}}var mO=Math.ceil,Pg=o.ReactCurrentDispatcher,Mg=o.ReactCurrentOwner,xa=o.ReactCurrentBatchConfig,ls=o.ReactCurrentActQueue,na=0,mT=1,Pa=2,_o=4,Bi=0,M0=1,Dc=2,uh=3,D0=4,fT=5,Dg=6,It=na,fr=null,gn=null,aa=fe,Bs=fe,Ug=eu(fe),ra=Bi,U0=null,ch=fe,F0=fe,dh=fe,V0=null,jr=null,Fg=0,pT=500,hT=1/0,fO=500,$i=null;function j0(){hT=an()+fO}function gT(){return hT}var mh=!1,Vg=null,Y1=null,Uc=!1,du=null,B0=fe,jg=[],Bg=null,pO=50,$0=0,$g=null,zg=!1,fh=!1,hO=50,K1=0,ph=null,hh=Wt,gh=fe,yT=!1;function yh(){return fr}function pr(){return(It&(Pa|_o))!==na?an():(hh!==Wt||(hh=an()),hh)}function mu(e){var t=e.mode;if((t&ze)===$e)return Qe;if((It&Pa)!==na&&aa!==fe)return Ul(aa);var i=cN()!==uN;if(i){if(xa.transition!==null){var u=xa.transition;u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(e)}return gh===wn&&(gh=Rp()),gh}var m=xr();if(m!==wn)return m;var g=Q_();return g}function gO(e){var t=e.mode;return(t&ze)===$e?Qe:Ya()}function oa(e,t,i,u){jO(),yT&&f("useInsertionEffect must not schedule updates."),zg&&(fh=!0),Ci(e,i,u),(It&Pa)!==fe&&e===fr?zO(t):(lr&&Af(e,t,i),HO(t),e===fr&&((It&Pa)===na&&(F0=pt(F0,i)),ra===D0&&fu(e,aa)),Br(e,u),i===Qe&&It===na&&(t.mode&ze)===$e&&!ls.isBatchingLegacy&&(j0(),y7()))}function yO(e,t,i){var u=e.current;u.lanes=t,Ci(e,t,i),Br(e,i)}function vO(e){return(It&Pa)!==na}function Br(e,t){var i=e.callbackNode;Cp(e,t);var u=Si(e,e===fr?aa:fe);if(u===fe){i!==null&&xT(i),e.callbackNode=null,e.callbackPriority=wn;return}var m=pn(u),g=e.callbackPriority;if(g===m&&!(ls.current!==null&&i!==Kg)){i==null&&g!==Qe&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}i!=null&&xT(i);var T;if(m===Qe)e.tag===tu?(ls.isBatchingLegacy!==null&&(ls.didScheduleLegacyUpdate=!0),GI(bT.bind(null,e))):g7(bT.bind(null,e)),ls.current!==null?ls.current.push(nu):K_(function(){(It&(Pa|_o))===na&&nu()}),T=null;else{var E;switch(pc(u)){case ga:E=Pd;break;case Zn:E=hi;break;case Wo:E=yo;break;case mc:E=Md;break;default:E=yo;break}T=Zg(E,vT.bind(null,e))}e.callbackPriority=m,e.callbackNode=T}function vT(e,t){if(DN(),hh=Wt,gh=fe,(It&(Pa|_o))!==na)throw new Error("Should not already be working.");var i=e.callbackNode,u=Hi();if(u&&e.callbackNode!==i)return null;var m=Si(e,e===fr?aa:fe);if(m===fe)return null;var g=!cc(e,m)&&!Np(e,m)&&!t,T=g?NO(e,m):Th(e,m);if(T!==Bi){if(T===Dc){var E=_s(e);E!==fe&&(m=E,T=Hg(e,E))}if(T===M0){var I=U0;throw Fc(e,fe),fu(e,m),Br(e,an()),I}if(T===Dg)fu(e,m);else{var A=!cc(e,m),M=e.current.alternate;if(A&&!bO(M)){if(T=Th(e,m),T===Dc){var G=_s(e);G!==fe&&(m=G,T=Hg(e,G))}if(T===M0){var H=U0;throw Fc(e,fe),fu(e,m),Br(e,an()),H}}e.finishedWork=M,e.finishedLanes=m,TO(e,T,m)}}return Br(e,an()),e.callbackNode===i?vT.bind(null,e):null}function Hg(e,t){var i=V0;if(xn(e)){var u=Fc(e,t);u.flags|=dn,VI(e.containerInfo)}var m=Th(e,t);if(m!==Dc){var g=jr;jr=i,g!==null&&TT(g)}return m}function TT(e){jr===null?jr=e:jr.push.apply(jr,e)}function TO(e,t,i){switch(t){case Bi:case M0:throw new Error("Root did not complete. This is a bug in React.");case Dc:{Vc(e,jr,$i);break}case uh:{if(fu(e,i),Ep(i)&&!PT()){var u=Fg+pT-an();if(u>10){var m=Si(e,fe);if(m!==fe)break;var g=e.suspendedLanes;if(!wi(g,i)){pr(),Of(e,g);break}e.timeoutHandle=B4(Vc.bind(null,e,jr,$i),u);break}}Vc(e,jr,$i);break}case D0:{if(fu(e,i),Ip(i))break;if(!PT()){var T=Sp(e,i),E=T,I=an()-E,A=VO(I)-I;if(A>10){e.timeoutHandle=B4(Vc.bind(null,e,jr,$i),A);break}}Vc(e,jr,$i);break}case fT:{Vc(e,jr,$i);break}default:throw new Error("Unknown root exit status.")}}function bO(e){for(var t=e;;){if(t.flags&ec){var i=t.updateQueue;if(i!==null){var u=i.stores;if(u!==null)for(var m=0;m<u.length;m++){var g=u[m],T=g.getSnapshot,E=g.value;try{if(!Ue(T(),E))return!1}catch{return!1}}}}var I=t.child;if(t.subtreeFlags&ec&&I!==null){I.return=t,t=I;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function fu(e,t){t=dc(t,dh),t=dc(t,F0),Rf(e,t)}function bT(e){if(UN(),(It&(Pa|_o))!==na)throw new Error("Should not already be working.");Hi();var t=Si(e,fe);if(!Ka(t,Qe))return Br(e,an()),null;var i=Th(e,t);if(e.tag!==tu&&i===Dc){var u=_s(e);u!==fe&&(t=u,i=Hg(e,u))}if(i===M0){var m=U0;throw Fc(e,fe),fu(e,t),Br(e,an()),m}if(i===Dg)throw new Error("Root did not complete. This is a bug in React.");var g=e.current.alternate;return e.finishedWork=g,e.finishedLanes=t,Vc(e,jr,$i),Br(e,an()),null}function kO(e,t){t!==fe&&(Fl(e,pt(t,Qe)),Br(e,an()),(It&(Pa|_o))===na&&(j0(),nu()))}function qg(e,t){var i=It;It|=mT;try{return e(t)}finally{It=i,It===na&&!ls.isBatchingLegacy&&(j0(),y7())}}function SO(e,t,i,u,m){var g=xr(),T=xa.transition;try{return xa.transition=null,An(ga),e(t,i,u,m)}finally{An(g),xa.transition=T,It===na&&j0()}}function zi(e){du!==null&&du.tag===tu&&(It&(Pa|_o))===na&&Hi();var t=It;It|=mT;var i=xa.transition,u=xr();try{return xa.transition=null,An(ga),e?e():void 0}finally{An(u),xa.transition=i,It=t,(It&(Pa|_o))===na&&nu()}}function kT(){return(It&(Pa|_o))!==na}function vh(e,t){Xa(Ug,Bs,e),Bs=pt(Bs,t)}function Gg(e){Bs=Ug.current,Za(Ug,e)}function Fc(e,t){e.finishedWork=null,e.finishedLanes=fe;var i=e.timeoutHandle;if(i!==$4&&(e.timeoutHandle=$4,Y_(i)),gn!==null)for(var u=gn.return;u!==null;){var m=u.alternate;Kv(m,u),u=u.return}fr=e;var g=jc(e.current,null);return gn=g,aa=Bs=t,ra=Bi,U0=null,ch=fe,F0=fe,dh=fe,V0=null,jr=null,yN(),es.discardPendingWarnings(),g}function ST(e,t){do{var i=gn;try{if(I3(),G7(),On(),Mg.current=null,i===null||i.return===null){ra=M0,U0=t,gn=null;return}if(gt&&i.mode&ot&&nh(i,!0),We)if(Wa(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var u=t;yi(i,u,aa)}else ac(i,t,aa);GN(e,i.return,i,t,aa),_T(i)}catch(m){t=m,gn===i&&i!==null?(i=i.return,gn=i):i=gn;continue}return}while(!0)}function wT(){var e=Pg.current;return Pg.current=Z3,e===null?Z3:e}function CT(e){Pg.current=e}function wO(){Fg=an()}function z0(e){ch=pt(e,ch)}function CO(){ra===Bi&&(ra=uh)}function Wg(){(ra===Bi||ra===uh||ra===Dc)&&(ra=D0),fr!==null&&(uc(ch)||uc(F0))&&fu(fr,aa)}function EO(e){ra!==D0&&(ra=Dc),V0===null?V0=[e]:V0.push(e)}function _O(){return ra===Bi}function Th(e,t){var i=It;It|=Pa;var u=wT();if(fr!==e||aa!==t){if(lr){var m=e.memoizedUpdaters;m.size>0&&(H0(e,aa),m.clear()),s1(e,t)}$i=xf(),Fc(e,t)}en(t);do try{IO();break}catch(g){ST(e,g)}while(!0);if(I3(),It=i,CT(u),gn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return jd(),fr=null,aa=fe,ra}function IO(){for(;gn!==null;)ET(gn)}function NO(e,t){var i=It;It|=Pa;var u=wT();if(fr!==e||aa!==t){if(lr){var m=e.memoizedUpdaters;m.size>0&&(H0(e,aa),m.clear()),s1(e,t)}$i=xf(),j0(),Fc(e,t)}en(t);do try{RO();break}catch(g){ST(e,g)}while(!0);return I3(),CT(u),It=i,gn!==null?(Vd(),Bi):(jd(),fr=null,aa=fe,ra)}function RO(){for(;gn!==null&&!xd();)ET(gn)}function ET(e){var t=e.alternate;jt(e);var i;(e.mode&ot)!==$e?(K8(e),i=Qg(t,e,Bs),nh(e,!0)):i=Qg(t,e,Bs),On(),e.memoizedProps=e.pendingProps,i===null?_T(e):gn=i,Mg.current=null}function _T(e){var t=e;do{var i=t.alternate,u=t.return;if((t.flags&or)===Ze){jt(t);var m=void 0;if((t.mode&ot)===$e?m=Yv(i,t,Bs):(K8(t),m=Yv(i,t,Bs),nh(t,!1)),On(),m!==null){gn=m;return}}else{var g=CR(i,t);if(g!==null){g.flags&=dp,gn=g;return}if((t.mode&ot)!==$e){nh(t,!1);for(var T=t.actualDuration,E=t.child;E!==null;)T+=E.actualDuration,E=E.sibling;t.actualDuration=T}if(u!==null)u.flags|=or,u.subtreeFlags=Ze,u.deletions=null;else{ra=Dg,gn=null;return}}var I=t.sibling;if(I!==null){gn=I;return}t=u,gn=t}while(t!==null);ra===Bi&&(ra=fT)}function Vc(e,t,i){var u=xr(),m=xa.transition;try{xa.transition=null,An(ga),OO(e,t,i,u)}finally{xa.transition=m,An(u)}return null}function OO(e,t,i,u){do Hi();while(du!==null);if(BO(),(It&(Pa|_o))!==na)throw new Error("Should not already be working.");var m=e.finishedWork,g=e.finishedLanes;if(ws(g),m===null)return Dd(),null;if(g===fe&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=fe,m===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=wn;var T=pt(m.lanes,m.childLanes);Lf(e,T),e===fr&&(fr=null,gn=null,aa=fe),((m.subtreeFlags&Nr)!==Ze||(m.flags&Nr)!==Ze)&&(Uc||(Uc=!0,Bg=i,Zg(yo,function(){return Hi(),null})));var E=(m.subtreeFlags&(Cl|qa|fa|Nr))!==Ze,I=(m.flags&(Cl|qa|fa|Nr))!==Ze;if(E||I){var A=xa.transition;xa.transition=null;var M=xr();An(ga);var G=It;It|=_o,Mg.current=null,RR(e,m),yv(),zR(e,m,g),$_(e.containerInfo),e.current=m,kf(g),HR(m,e,g),Rl(),pp(),It=G,An(M),xa.transition=A}else e.current=m,yv();var H=Uc;if(Uc?(Uc=!1,du=e,B0=g):(K1=0,ph=null),T=e.pendingLanes,T===fe&&(Y1=null),H||OT(e.current,!1),_l(m.stateNode,u),lr&&e.memoizedUpdaters.clear(),uO(),Br(e,an()),t!==null)for(var ne=e.onRecoverableError,oe=0;oe<t.length;oe++){var ue=t[oe],Ie=ue.stack,qe=ue.digest;ne(ue.value,{componentStack:Ie,digest:qe})}if(mh){mh=!1;var Je=Vg;throw Vg=null,Je}return Ka(B0,Qe)&&e.tag!==tu&&Hi(),T=e.pendingLanes,Ka(T,Qe)?(MN(),e===$g?$0++:($0=0,$g=e)):$0=0,nu(),Dd(),null}function Hi(){if(du!==null){var e=pc(B0),t=m4(Wo,e),i=xa.transition,u=xr();try{return xa.transition=null,An(t),AO()}finally{An(u),xa.transition=i}}return!1}function LO(e){jg.push(e),Uc||(Uc=!0,Zg(yo,function(){return Hi(),null}))}function AO(){if(du===null)return!1;var e=Bg;Bg=null;var t=du,i=B0;if(du=null,B0=fe,(It&(Pa|_o))!==na)throw new Error("Cannot flush passive effects while already rendering.");zg=!0,fh=!1,bp(i);var u=It;It|=_o,ZR(t.current),WR(t,t.current,i,e);{var m=jg;jg=[];for(var g=0;g<m.length;g++){var T=m[g];xR(t,T)}}Sf(),OT(t.current,!0),It=u,nu(),fh?t===ph?K1++:(K1=0,ph=t):K1=0,zg=!1,fh=!1,Lr(t);{var E=t.current.stateNode;E.effectDuration=0,E.passiveEffectDuration=0}return!0}function IT(e){return Y1!==null&&Y1.has(e)}function xO(e){Y1===null?Y1=new Set([e]):Y1.add(e)}function PO(e){mh||(mh=!0,Vg=e)}var MO=PO;function NT(e,t,i){var u=Pc(i,t),m=Ev(e,u,Qe),g=ru(e,m,Qe),T=pr();g!==null&&(Ci(g,Qe,T),Br(g,T))}function Xt(e,t,i){if(_R(i),q0(!1),e.tag===N){NT(e,e,i);return}var u=null;for(u=t;u!==null;){if(u.tag===N){NT(u,e,i);return}else if(u.tag===C){var m=u.type,g=u.stateNode;if(typeof m.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&!IT(g)){var T=Pc(i,e),E=pg(u,T,Qe),I=ru(u,E,Qe),A=pr();I!==null&&(Ci(I,Qe,A),Br(I,A));return}}u=u.return}f(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
148
148
 
149
149
  Error message:
150
150
 
151
- %s`,i)}function DO(e,t,i){var u=e.pingCache;u!==null&&u.delete(t);var m=pr();Of(e,i),qO(e),fr===e&&wi(aa,i)&&(ra===D0||ra===uh&&Ep(aa)&&an()-Fg<pT?Fc(e,fe):dh=pt(dh,i)),Br(e,m)}function RT(e,t){t===wn&&(t=gO(e));var i=pr(),u=Fr(e,t);u!==null&&(Ci(u,t,i),Br(u,i))}function UO(e){var t=e.memoizedState,i=wn;t!==null&&(i=t.retryLane),RT(e,i)}function FO(e,t){var i=wn,u;switch(e.tag){case te:u=e.stateNode;var m=e.memoizedState;m!==null&&(i=m.retryLane);break;case Be:u=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),RT(e,i)}function VO(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:mO(e/1960)*1960}function jO(){if($0>pO)throw $0=0,$g=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");K1>hO&&(K1=0,ph=null,f("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function BO(){es.flushLegacyContextWarning(),es.flushPendingUnsafeLifecycleWarnings()}function OT(e,t){jt(e),bh(e,Ha,sO),t&&bh(e,pi,iO),bh(e,Ha,rO),t&&bh(e,pi,oO),On()}function bh(e,t,i){for(var u=e,m=null;u!==null;){var g=u.subtreeFlags&t;u!==m&&u.child!==null&&g!==Ze?u=u.child:((u.flags&t)!==Ze&&i(u),u.sibling!==null?u=u.sibling:u=m=u.return)}}var kh=null;function LT(e){{if((It&Pa)!==na||!(e.mode&ze))return;var t=e.tag;if(t!==_&&t!==N&&t!==C&&t!==b&&t!==Z&&t!==ie&&t!==ae)return;var i=ft(e)||"ReactComponent";if(kh!==null){if(kh.has(i))return;kh.add(i)}else kh=new Set([i]);var u=bn;try{jt(e),f("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{u?jt(e):On()}}}var Qg;{var $O=null;Qg=function(e,t,i){var u=FT($O,t);try{return Hv(e,t,i)}catch(g){if(eN()||g!==null&&typeof g=="object"&&typeof g.then=="function")throw g;if(I3(),G7(),Kv(e,t),FT(t,u),t.mode&rt&&K8(t),fi(null,Hv,null,e,t,i),l4()){var m=mf();typeof m=="object"&&m!==null&&m._suppressLogging&&typeof g=="object"&&g!==null&&!g._suppressLogging&&(g._suppressLogging=!0)}throw g}}}var AT=!1,Yg;Yg=new Set;function zO(e){if(Sr&&!AN())switch(e.tag){case b:case Z:case ae:{var t=gn&&ft(gn)||"Unknown",i=t;if(!Yg.has(i)){Yg.add(i);var u=ft(e)||"Unknown";f("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",u,t,t)}break}case C:{AT||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),AT=!0);break}}}function H0(e,t){if(lr){var i=e.memoizedUpdaters;i.forEach(function(u){Af(e,u,t)})}}var Kg={};function Zg(e,t){{var i=ls.current;return i!==null?(i.push(t),Kg):Ad(e,t)}}function xT(e){if(e!==Kg)return fp(e)}function PT(){return ls.current!==null}function HO(e){{if(e.mode&ze){if(!dT())return}else if(!dO()||It!==na||e.tag!==b&&e.tag!==Z&&e.tag!==ae)return;if(ls.current===null){var t=bn;try{jt(e),f(`An update to %s inside a test was not wrapped in act(...).
151
+ %s`,i)}function DO(e,t,i){var u=e.pingCache;u!==null&&u.delete(t);var m=pr();Of(e,i),qO(e),fr===e&&wi(aa,i)&&(ra===D0||ra===uh&&Ep(aa)&&an()-Fg<pT?Fc(e,fe):dh=pt(dh,i)),Br(e,m)}function RT(e,t){t===wn&&(t=gO(e));var i=pr(),u=Fr(e,t);u!==null&&(Ci(u,t,i),Br(u,i))}function UO(e){var t=e.memoizedState,i=wn;t!==null&&(i=t.retryLane),RT(e,i)}function FO(e,t){var i=wn,u;switch(e.tag){case te:u=e.stateNode;var m=e.memoizedState;m!==null&&(i=m.retryLane);break;case Be:u=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),RT(e,i)}function VO(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:mO(e/1960)*1960}function jO(){if($0>pO)throw $0=0,$g=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");K1>hO&&(K1=0,ph=null,f("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function BO(){es.flushLegacyContextWarning(),es.flushPendingUnsafeLifecycleWarnings()}function OT(e,t){jt(e),bh(e,Ha,sO),t&&bh(e,pi,iO),bh(e,Ha,rO),t&&bh(e,pi,oO),On()}function bh(e,t,i){for(var u=e,m=null;u!==null;){var g=u.subtreeFlags&t;u!==m&&u.child!==null&&g!==Ze?u=u.child:((u.flags&t)!==Ze&&i(u),u.sibling!==null?u=u.sibling:u=m=u.return)}}var kh=null;function LT(e){{if((It&Pa)!==na||!(e.mode&ze))return;var t=e.tag;if(t!==_&&t!==N&&t!==C&&t!==b&&t!==Z&&t!==ie&&t!==ae)return;var i=ft(e)||"ReactComponent";if(kh!==null){if(kh.has(i))return;kh.add(i)}else kh=new Set([i]);var u=bn;try{jt(e),f("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{u?jt(e):On()}}}var Qg;{var $O=null;Qg=function(e,t,i){var u=FT($O,t);try{return Hv(e,t,i)}catch(g){if(eN()||g!==null&&typeof g=="object"&&typeof g.then=="function")throw g;if(I3(),G7(),Kv(e,t),FT(t,u),t.mode&ot&&K8(t),fi(null,Hv,null,e,t,i),l4()){var m=mf();typeof m=="object"&&m!==null&&m._suppressLogging&&typeof g=="object"&&g!==null&&!g._suppressLogging&&(g._suppressLogging=!0)}throw g}}}var AT=!1,Yg;Yg=new Set;function zO(e){if(Sr&&!AN())switch(e.tag){case b:case Z:case ae:{var t=gn&&ft(gn)||"Unknown",i=t;if(!Yg.has(i)){Yg.add(i);var u=ft(e)||"Unknown";f("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",u,t,t)}break}case C:{AT||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),AT=!0);break}}}function H0(e,t){if(lr){var i=e.memoizedUpdaters;i.forEach(function(u){Af(e,u,t)})}}var Kg={};function Zg(e,t){{var i=ls.current;return i!==null?(i.push(t),Kg):Ad(e,t)}}function xT(e){if(e!==Kg)return fp(e)}function PT(){return ls.current!==null}function HO(e){{if(e.mode&ze){if(!dT())return}else if(!dO()||It!==na||e.tag!==b&&e.tag!==Z&&e.tag!==ae)return;if(ls.current===null){var t=bn;try{jt(e),f(`An update to %s inside a test was not wrapped in act(...).
152
152
 
153
153
  When testing, code that causes React state updates should be wrapped into act(...):
154
154
 
@@ -166,9 +166,9 @@ act(() => {
166
166
  });
167
167
  /* assert on the output */
168
168
 
169
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function q0(e){yT=e}var Io=null,Z1=null,GO=function(e){Io=e};function X1(e){{if(Io===null)return e;var t=Io(e);return t===void 0?e:t.current}}function Xg(e){return X1(e)}function Jg(e){{if(Io===null)return e;var t=Io(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var i=X1(e.render);if(e.render!==i){var u={$$typeof:cl,render:i};return e.displayName!==void 0&&(u.displayName=e.displayName),u}}return e}return t.current}}function MT(e,t){{if(Io===null)return!1;var i=e.elementType,u=t.type,m=!1,g=typeof u=="object"&&u!==null?u.$$typeof:null;switch(e.tag){case C:{typeof u=="function"&&(m=!0);break}case b:{(typeof u=="function"||g===Ea)&&(m=!0);break}case Z:{(g===cl||g===Ea)&&(m=!0);break}case ie:case ae:{(g===dl||g===Ea)&&(m=!0);break}default:return!1}if(m){var T=Io(i);if(T!==void 0&&T===Io(u))return!0}return!1}}function DT(e){{if(Io===null||typeof WeakSet!="function")return;Z1===null&&(Z1=new WeakSet),Z1.add(e)}}var WO=function(e,t){{if(Io===null)return;var i=t.staleFamilies,u=t.updatedFamilies;Hi(),zi(function(){e5(e.current,u,i)})}},QO=function(e,t){{if(e.context!==ro)return;Hi(),zi(function(){G0(t,e,null,null)})}};function e5(e,t,i){{var u=e.alternate,m=e.child,g=e.sibling,T=e.tag,E=e.type,I=null;switch(T){case b:case ae:case C:I=E;break;case Z:I=E.render;break}if(Io===null)throw new Error("Expected resolveFamily to be set during hot reload.");var A=!1,M=!1;if(I!==null){var G=Io(I);G!==void 0&&(i.has(G)?M=!0:t.has(G)&&(T===C?M=!0:A=!0))}if(Z1!==null&&(Z1.has(e)||u!==null&&Z1.has(u))&&(M=!0),M&&(e._debugNeedsRemount=!0),M||A){var H=Fr(e,Qe);H!==null&&oa(H,e,Qe,Wt)}m!==null&&!M&&e5(m,t,i),g!==null&&e5(g,t,i)}}var YO=function(e,t){{var i=new Set,u=new Set(t.map(function(m){return m.current}));return t5(e.current,u,i),i}};function t5(e,t,i){{var u=e.child,m=e.sibling,g=e.tag,T=e.type,E=null;switch(g){case b:case ae:case C:E=T;break;case Z:E=T.render;break}var I=!1;E!==null&&t.has(E)&&(I=!0),I?KO(e,i):u!==null&&t5(u,t,i),m!==null&&t5(m,t,i)}}function KO(e,t){{var i=ZO(e,t);if(i)return;for(var u=e;;){switch(u.tag){case L:t.add(u.stateNode);return;case O:t.add(u.stateNode.containerInfo);return;case N:t.add(u.stateNode.containerInfo);return}if(u.return===null)throw new Error("Expected to reach root first.");u=u.return}}}function ZO(e,t){for(var i=e,u=!1;;){if(i.tag===L)u=!0,t.add(i.stateNode);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)return u;for(;i.sibling===null;){if(i.return===null||i.return===e)return u;i=i.return}i.sibling.return=i.return,i=i.sibling}return!1}var n5;{n5=!1;try{var une=Object.preventExtensions({})}catch{n5=!0}}function XO(e,t,i,u){this.tag=e,this.key=i,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=u,this.flags=Ze,this.subtreeFlags=Ze,this.deletions=null,this.lanes=fe,this.childLanes=fe,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!n5&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var oo=function(e,t,i,u){return new XO(e,t,i,u)};function a5(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function JO(e){return typeof e=="function"&&!a5(e)&&e.defaultProps===void 0}function eL(e){if(typeof e=="function")return a5(e)?C:b;if(e!=null){var t=e.$$typeof;if(t===cl)return Z;if(t===dl)return ie}return _}function jc(e,t){var i=e.alternate;i===null?(i=oo(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i._debugSource=e._debugSource,i._debugOwner=e._debugOwner,i._debugHookTypes=e._debugHookTypes,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=Ze,i.subtreeFlags=Ze,i.deletions=null,i.actualDuration=0,i.actualStartTime=-1),i.flags=e.flags&Yn,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue;var u=e.dependencies;switch(i.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.selfBaseDuration=e.selfBaseDuration,i.treeBaseDuration=e.treeBaseDuration,i._debugNeedsRemount=e._debugNeedsRemount,i.tag){case _:case b:case ae:i.type=X1(e.type);break;case C:i.type=Xg(e.type);break;case Z:i.type=Jg(e.type);break}return i}function tL(e,t){e.flags&=Yn|Kt;var i=e.alternate;if(i===null)e.childLanes=fe,e.lanes=t,e.child=null,e.subtreeFlags=Ze,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=Ze,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type;var u=i.dependencies;e.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},e.selfBaseDuration=i.selfBaseDuration,e.treeBaseDuration=i.treeBaseDuration}return e}function nL(e,t,i){var u;return e===y3?(u=ze,t===!0&&(u|=bt,u|=ur)):u=$e,lr&&(u|=rt),oo(N,null,null,u)}function r5(e,t,i,u,m,g){var T=_,E=e;if(typeof e=="function")a5(e)?(T=C,E=Xg(E)):E=X1(E);else if(typeof e=="string")T=L;else e:switch(e){case Po:return pu(i.children,m,g,t);case ul:T=j,m|=bt,(m&ze)!==$e&&(m|=ur);break;case Ou:return aL(i,m,g,t);case po:return rL(i,m,g,t);case Lu:return oL(i,m,g,t);case xm:return UT(i,m,g,t);case S2:case b2:case j6:case B6:case k2:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lm:T=Y;break e;case Am:T=V;break e;case cl:T=Z,E=Jg(E);break e;case dl:T=ie;break e;case Ea:T=Ce,E=null;break e}var I="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(I+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A=u?ft(u):null;A&&(I+=`
169
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function q0(e){yT=e}var Io=null,Z1=null,GO=function(e){Io=e};function X1(e){{if(Io===null)return e;var t=Io(e);return t===void 0?e:t.current}}function Xg(e){return X1(e)}function Jg(e){{if(Io===null)return e;var t=Io(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var i=X1(e.render);if(e.render!==i){var u={$$typeof:cl,render:i};return e.displayName!==void 0&&(u.displayName=e.displayName),u}}return e}return t.current}}function MT(e,t){{if(Io===null)return!1;var i=e.elementType,u=t.type,m=!1,g=typeof u=="object"&&u!==null?u.$$typeof:null;switch(e.tag){case C:{typeof u=="function"&&(m=!0);break}case b:{(typeof u=="function"||g===Ea)&&(m=!0);break}case Z:{(g===cl||g===Ea)&&(m=!0);break}case ie:case ae:{(g===dl||g===Ea)&&(m=!0);break}default:return!1}if(m){var T=Io(i);if(T!==void 0&&T===Io(u))return!0}return!1}}function DT(e){{if(Io===null||typeof WeakSet!="function")return;Z1===null&&(Z1=new WeakSet),Z1.add(e)}}var WO=function(e,t){{if(Io===null)return;var i=t.staleFamilies,u=t.updatedFamilies;Hi(),zi(function(){e5(e.current,u,i)})}},QO=function(e,t){{if(e.context!==ro)return;Hi(),zi(function(){G0(t,e,null,null)})}};function e5(e,t,i){{var u=e.alternate,m=e.child,g=e.sibling,T=e.tag,E=e.type,I=null;switch(T){case b:case ae:case C:I=E;break;case Z:I=E.render;break}if(Io===null)throw new Error("Expected resolveFamily to be set during hot reload.");var A=!1,M=!1;if(I!==null){var G=Io(I);G!==void 0&&(i.has(G)?M=!0:t.has(G)&&(T===C?M=!0:A=!0))}if(Z1!==null&&(Z1.has(e)||u!==null&&Z1.has(u))&&(M=!0),M&&(e._debugNeedsRemount=!0),M||A){var H=Fr(e,Qe);H!==null&&oa(H,e,Qe,Wt)}m!==null&&!M&&e5(m,t,i),g!==null&&e5(g,t,i)}}var YO=function(e,t){{var i=new Set,u=new Set(t.map(function(m){return m.current}));return t5(e.current,u,i),i}};function t5(e,t,i){{var u=e.child,m=e.sibling,g=e.tag,T=e.type,E=null;switch(g){case b:case ae:case C:E=T;break;case Z:E=T.render;break}var I=!1;E!==null&&t.has(E)&&(I=!0),I?KO(e,i):u!==null&&t5(u,t,i),m!==null&&t5(m,t,i)}}function KO(e,t){{var i=ZO(e,t);if(i)return;for(var u=e;;){switch(u.tag){case L:t.add(u.stateNode);return;case O:t.add(u.stateNode.containerInfo);return;case N:t.add(u.stateNode.containerInfo);return}if(u.return===null)throw new Error("Expected to reach root first.");u=u.return}}}function ZO(e,t){for(var i=e,u=!1;;){if(i.tag===L)u=!0,t.add(i.stateNode);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)return u;for(;i.sibling===null;){if(i.return===null||i.return===e)return u;i=i.return}i.sibling.return=i.return,i=i.sibling}return!1}var n5;{n5=!1;try{var une=Object.preventExtensions({})}catch{n5=!0}}function XO(e,t,i,u){this.tag=e,this.key=i,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=u,this.flags=Ze,this.subtreeFlags=Ze,this.deletions=null,this.lanes=fe,this.childLanes=fe,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!n5&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var oo=function(e,t,i,u){return new XO(e,t,i,u)};function a5(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function JO(e){return typeof e=="function"&&!a5(e)&&e.defaultProps===void 0}function eL(e){if(typeof e=="function")return a5(e)?C:b;if(e!=null){var t=e.$$typeof;if(t===cl)return Z;if(t===dl)return ie}return _}function jc(e,t){var i=e.alternate;i===null?(i=oo(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i._debugSource=e._debugSource,i._debugOwner=e._debugOwner,i._debugHookTypes=e._debugHookTypes,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=Ze,i.subtreeFlags=Ze,i.deletions=null,i.actualDuration=0,i.actualStartTime=-1),i.flags=e.flags&Yn,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue;var u=e.dependencies;switch(i.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.selfBaseDuration=e.selfBaseDuration,i.treeBaseDuration=e.treeBaseDuration,i._debugNeedsRemount=e._debugNeedsRemount,i.tag){case _:case b:case ae:i.type=X1(e.type);break;case C:i.type=Xg(e.type);break;case Z:i.type=Jg(e.type);break}return i}function tL(e,t){e.flags&=Yn|Kt;var i=e.alternate;if(i===null)e.childLanes=fe,e.lanes=t,e.child=null,e.subtreeFlags=Ze,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=Ze,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type;var u=i.dependencies;e.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},e.selfBaseDuration=i.selfBaseDuration,e.treeBaseDuration=i.treeBaseDuration}return e}function nL(e,t,i){var u;return e===y3?(u=ze,t===!0&&(u|=bt,u|=ur)):u=$e,lr&&(u|=ot),oo(N,null,null,u)}function r5(e,t,i,u,m,g){var T=_,E=e;if(typeof e=="function")a5(e)?(T=C,E=Xg(E)):E=X1(E);else if(typeof e=="string")T=L;else e:switch(e){case Po:return pu(i.children,m,g,t);case ul:T=j,m|=bt,(m&ze)!==$e&&(m|=ur);break;case Ou:return aL(i,m,g,t);case po:return rL(i,m,g,t);case Lu:return oL(i,m,g,t);case xm:return UT(i,m,g,t);case S2:case b2:case j6:case B6:case k2:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lm:T=Y;break e;case Am:T=V;break e;case cl:T=Z,E=Jg(E);break e;case dl:T=ie;break e;case Ea:T=Ce,E=null;break e}var I="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(I+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A=u?ft(u):null;A&&(I+=`
170
170
 
171
- Check the render method of \``+A+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+I))}}var M=oo(T,i,t,m);return M.elementType=e,M.type=E,M.lanes=g,M._debugOwner=u,M}function o5(e,t,i){var u=null;u=e._owner;var m=e.type,g=e.key,T=e.props,E=r5(m,g,T,u,t,i);return E._debugSource=e._source,E._debugOwner=e._owner,E}function pu(e,t,i,u){var m=oo(D,e,u,t);return m.lanes=i,m}function aL(e,t,i,u){typeof e.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var m=oo(Q,e,u,t|rt);return m.elementType=Ou,m.lanes=i,m.stateNode={effectDuration:0,passiveEffectDuration:0},m}function rL(e,t,i,u){var m=oo(te,e,u,t);return m.elementType=po,m.lanes=i,m}function oL(e,t,i,u){var m=oo(Be,e,u,t);return m.elementType=Lu,m.lanes=i,m}function UT(e,t,i,u){var m=oo(Ne,e,u,t);m.elementType=xm,m.lanes=i;var g={isHidden:!1};return m.stateNode=g,m}function s5(e,t,i){var u=oo(x,e,null,t);return u.lanes=i,u}function sL(){var e=oo(L,null,null,$e);return e.elementType="DELETED",e}function iL(e){var t=oo(Ye,null,null,$e);return t.stateNode=e,t}function i5(e,t,i){var u=e.children!==null?e.children:[],m=oo(O,u,e.key,t);return m.lanes=i,m.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},m}function FT(e,t){return e===null&&(e=oo(_,null,null,$e)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function lL(e,t,i,u,m){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=$4,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=wn,this.eventTimes=o1(fe),this.expirationTimes=o1(Wt),this.pendingLanes=fe,this.suspendedLanes=fe,this.pingedLanes=fe,this.expiredLanes=fe,this.mutableReadLanes=fe,this.finishedLanes=fe,this.entangledLanes=fe,this.entanglements=o1(fe),this.identifierPrefix=u,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var g=this.pendingUpdatersLaneMap=[],T=0;T<sc;T++)g.push(new Set)}switch(t){case y3:this._debugRootType=i?"hydrateRoot()":"createRoot()";break;case tu:this._debugRootType=i?"hydrate()":"render()";break}}function VT(e,t,i,u,m,g,T,E,I,A){var M=new lL(e,t,i,E,I),G=nL(t,g);M.current=G,G.stateNode=M;{var H={element:u,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null};G.memoizedState=H}return b8(G),M}var l5="18.3.1";function uL(e,t,i){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return de(u),{$$typeof:Yr,key:u==null?null:""+u,children:e,containerInfo:t,implementation:i}}var u5,c5;u5=!1,c5={};function jT(e){if(!e)return ro;var t=Er(e),i=qI(t);if(t.tag===C){var u=t.type;if(Ps(u))return p7(t,u,i)}return i}function cL(e,t){{var i=Er(e);if(i===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var u=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+u)}var m=Rr(i);if(m===null)return null;if(m.mode&bt){var g=ft(i)||"Component";if(!c5[g]){c5[g]=!0;var T=bn;try{jt(m),i.mode&bt?f("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,g):f("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,g)}finally{T?jt(T):On()}}}return m.stateNode}}function BT(e,t,i,u,m,g,T,E){var I=!1,A=null;return VT(e,t,I,A,i,u,m,g,T)}function $T(e,t,i,u,m,g,T,E,I,A){var M=!0,G=VT(i,u,M,e,m,g,T,E,I);G.context=jT(null);var H=G.current,ne=pr(),oe=mu(H),ue=Vi(ne,oe);return ue.callback=t??null,ru(H,ue,oe),yO(G,oe,ne),G}function G0(e,t,i,u){bf(t,e);var m=t.current,g=pr(),T=mu(m);wf(T);var E=jT(i);t.context===null?t.context=E:t.pendingContext=E,Sr&&bn!==null&&!u5&&(u5=!0,f(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
171
+ Check the render method of \``+A+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+I))}}var M=oo(T,i,t,m);return M.elementType=e,M.type=E,M.lanes=g,M._debugOwner=u,M}function o5(e,t,i){var u=null;u=e._owner;var m=e.type,g=e.key,T=e.props,E=r5(m,g,T,u,t,i);return E._debugSource=e._source,E._debugOwner=e._owner,E}function pu(e,t,i,u){var m=oo(D,e,u,t);return m.lanes=i,m}function aL(e,t,i,u){typeof e.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var m=oo(Q,e,u,t|ot);return m.elementType=Ou,m.lanes=i,m.stateNode={effectDuration:0,passiveEffectDuration:0},m}function rL(e,t,i,u){var m=oo(te,e,u,t);return m.elementType=po,m.lanes=i,m}function oL(e,t,i,u){var m=oo(Be,e,u,t);return m.elementType=Lu,m.lanes=i,m}function UT(e,t,i,u){var m=oo(Ne,e,u,t);m.elementType=xm,m.lanes=i;var g={isHidden:!1};return m.stateNode=g,m}function s5(e,t,i){var u=oo(x,e,null,t);return u.lanes=i,u}function sL(){var e=oo(L,null,null,$e);return e.elementType="DELETED",e}function iL(e){var t=oo(Ye,null,null,$e);return t.stateNode=e,t}function i5(e,t,i){var u=e.children!==null?e.children:[],m=oo(O,u,e.key,t);return m.lanes=i,m.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},m}function FT(e,t){return e===null&&(e=oo(_,null,null,$e)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function lL(e,t,i,u,m){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=$4,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=wn,this.eventTimes=o1(fe),this.expirationTimes=o1(Wt),this.pendingLanes=fe,this.suspendedLanes=fe,this.pingedLanes=fe,this.expiredLanes=fe,this.mutableReadLanes=fe,this.finishedLanes=fe,this.entangledLanes=fe,this.entanglements=o1(fe),this.identifierPrefix=u,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var g=this.pendingUpdatersLaneMap=[],T=0;T<sc;T++)g.push(new Set)}switch(t){case y3:this._debugRootType=i?"hydrateRoot()":"createRoot()";break;case tu:this._debugRootType=i?"hydrate()":"render()";break}}function VT(e,t,i,u,m,g,T,E,I,A){var M=new lL(e,t,i,E,I),G=nL(t,g);M.current=G,G.stateNode=M;{var H={element:u,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null};G.memoizedState=H}return b8(G),M}var l5="18.3.1";function uL(e,t,i){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return de(u),{$$typeof:Yr,key:u==null?null:""+u,children:e,containerInfo:t,implementation:i}}var u5,c5;u5=!1,c5={};function jT(e){if(!e)return ro;var t=Er(e),i=qI(t);if(t.tag===C){var u=t.type;if(Ps(u))return p7(t,u,i)}return i}function cL(e,t){{var i=Er(e);if(i===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var u=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+u)}var m=Rr(i);if(m===null)return null;if(m.mode&bt){var g=ft(i)||"Component";if(!c5[g]){c5[g]=!0;var T=bn;try{jt(m),i.mode&bt?f("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,g):f("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,g)}finally{T?jt(T):On()}}}return m.stateNode}}function BT(e,t,i,u,m,g,T,E){var I=!1,A=null;return VT(e,t,I,A,i,u,m,g,T)}function $T(e,t,i,u,m,g,T,E,I,A){var M=!0,G=VT(i,u,M,e,m,g,T,E,I);G.context=jT(null);var H=G.current,ne=pr(),oe=mu(H),ue=Vi(ne,oe);return ue.callback=t??null,ru(H,ue,oe),yO(G,oe,ne),G}function G0(e,t,i,u){bf(t,e);var m=t.current,g=pr(),T=mu(m);wf(T);var E=jT(i);t.context===null?t.context=E:t.pendingContext=E,Sr&&bn!==null&&!u5&&(u5=!0,f(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
172
172
 
173
173
  Check the render method of %s.`,ft(bn)||"Unknown"));var I=Vi(g,T);I.payload={element:e},u=u===void 0?null:u,u!==null&&(typeof u!="function"&&f("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",u),I.callback=u);var A=ru(m,I,T);return A!==null&&(oa(A,m,T,g),A3(A,m,T)),T}function Sh(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case L:return t.child.stateNode;default:return t.child.stateNode}}function dL(e){switch(e.tag){case N:{var t=e.stateNode;if(xn(t)){var i=_f(t);kO(t,i)}break}case te:{zi(function(){var m=Fr(e,Qe);if(m!==null){var g=pr();oa(m,e,Qe,g)}});var u=Qe;d5(e,u);break}}}function zT(e,t){var i=e.memoizedState;i!==null&&i.dehydrated!==null&&(i.retryLane=Op(i.retryLane,t))}function d5(e,t){zT(e,t);var i=e.alternate;i&&zT(i,t)}function mL(e){if(e.tag===te){var t=lc,i=Fr(e,t);if(i!==null){var u=pr();oa(i,e,t,u)}d5(e,t)}}function fL(e){if(e.tag===te){var t=mu(e),i=Fr(e,t);if(i!==null){var u=pr();oa(i,e,t,u)}d5(e,t)}}function HT(e){var t=mp(e);return t===null?null:t.stateNode}var qT=function(e){return null};function pL(e){return qT(e)}var GT=function(e){return!1};function hL(e){return GT(e)}var WT=null,QT=null,YT=null,KT=null,ZT=null,XT=null,JT=null,eb=null,tb=null;{var nb=function(e,t,i){var u=t[i],m=jn(e)?e.slice():Ct({},e);return i+1===t.length?(jn(m)?m.splice(u,1):delete m[u],m):(m[u]=nb(e[u],t,i+1),m)},ab=function(e,t){return nb(e,t,0)},rb=function(e,t,i,u){var m=t[u],g=jn(e)?e.slice():Ct({},e);if(u+1===t.length){var T=i[u];g[T]=g[m],jn(g)?g.splice(m,1):delete g[m]}else g[m]=rb(e[m],t,i,u+1);return g},ob=function(e,t,i){if(t.length!==i.length){p("copyWithRename() expects paths of the same length");return}else for(var u=0;u<i.length-1;u++)if(t[u]!==i[u]){p("copyWithRename() expects paths to be the same except for the deepest key");return}return rb(e,t,i,0)},sb=function(e,t,i,u){if(i>=t.length)return u;var m=t[i],g=jn(e)?e.slice():Ct({},e);return g[m]=sb(e[m],t,i+1,u),g},ib=function(e,t,i){return sb(e,t,0,i)},m5=function(e,t){for(var i=e.memoizedState;i!==null&&t>0;)i=i.next,t--;return i};WT=function(e,t,i,u){var m=m5(e,t);if(m!==null){var g=ib(m.memoizedState,i,u);m.memoizedState=g,m.baseState=g,e.memoizedProps=Ct({},e.memoizedProps);var T=Fr(e,Qe);T!==null&&oa(T,e,Qe,Wt)}},QT=function(e,t,i){var u=m5(e,t);if(u!==null){var m=ab(u.memoizedState,i);u.memoizedState=m,u.baseState=m,e.memoizedProps=Ct({},e.memoizedProps);var g=Fr(e,Qe);g!==null&&oa(g,e,Qe,Wt)}},YT=function(e,t,i,u){var m=m5(e,t);if(m!==null){var g=ob(m.memoizedState,i,u);m.memoizedState=g,m.baseState=g,e.memoizedProps=Ct({},e.memoizedProps);var T=Fr(e,Qe);T!==null&&oa(T,e,Qe,Wt)}},KT=function(e,t,i){e.pendingProps=ib(e.memoizedProps,t,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var u=Fr(e,Qe);u!==null&&oa(u,e,Qe,Wt)},ZT=function(e,t){e.pendingProps=ab(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=Fr(e,Qe);i!==null&&oa(i,e,Qe,Wt)},XT=function(e,t,i){e.pendingProps=ob(e.memoizedProps,t,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var u=Fr(e,Qe);u!==null&&oa(u,e,Qe,Wt)},JT=function(e){var t=Fr(e,Qe);t!==null&&oa(t,e,Qe,Wt)},eb=function(e){qT=e},tb=function(e){GT=e}}function gL(e){var t=Rr(e);return t===null?null:t.stateNode}function yL(e){return null}function vL(){return bn}function TL(e){var t=e.findFiberByHostInstance,i=o.ReactCurrentDispatcher;return Tf({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:WT,overrideHookStateDeletePath:QT,overrideHookStateRenamePath:YT,overrideProps:KT,overridePropsDeletePath:ZT,overridePropsRenamePath:XT,setErrorHandler:eb,setSuspenseHandler:tb,scheduleUpdate:JT,currentDispatcherRef:i,findHostInstanceByFiber:gL,findFiberByHostInstance:t||yL,findHostInstancesForRefresh:YO,scheduleRefresh:WO,scheduleRoot:QO,setRefreshHandler:GO,getCurrentFiber:vL,reconcilerVersion:l5})}var lb=typeof reportError=="function"?reportError:function(e){console.error(e)};function f5(e){this._internalRoot=e}wh.prototype.render=f5.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?f("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Ch(arguments[1])?f("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&f("You passed a second argument to root.render(...) but it only accepts one argument.");var i=t.containerInfo;if(i.nodeType!==kn){var u=HT(t.current);u&&u.parentNode!==i&&f("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}G0(e,t,null,null)},wh.prototype.unmount=f5.prototype.unmount=function(){typeof arguments[0]=="function"&&f("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kT()&&f("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),zi(function(){G0(null,e,null,null)}),u7(t)}};function bL(e,t){if(!Ch(e))throw new Error("createRoot(...): Target container is not a DOM element.");ub(e);var i=!1,u=!1,m="",g=lb;t!=null&&(t.hydrate?p("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===ll&&f(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
174
174
 
@@ -193,9 +193,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
193
193
  --watch-live-header: 46px;
194
194
  `}${s6.intermediate("xl","lg")`
195
195
  --header-offset: 76px;
196
- `}`;const NG="m1ojpy2l",UC=({children:n,style:a})=>w.jsx("div",{className:"StreamLayerSDKTheme",children:w.jsx("div",{className:NG,style:a,children:n})}),RG=({sdk:n,className:a,scrollStore:o,appNode:l,scrollNode:c,responsiveStore:p})=>{const[,f]=uU(n);return w.jsx(Iz,{className:a,scrollNode:c,appNode:l,scrollStore:o,feature:f,responsiveStore:p,sdk:n})},OG=({sdk:n,className:a,appNode:o,responsiveStore:l})=>{const c=Ut(n.featuresList.getStore());return c?Array.from(c,p=>{const f=n.getFeature(p);return f?w.jsx(Nz,{className:a,appNode:o,feature:f,responsiveStore:l,sdk:n},p):null}):null},LG=({sdk:n,overlays:a,children:o})=>{const l=W.useRef(null),c=W.useRef(null),[p]=EG(l),[f,y]=YA(l,p),{sdkEnabled:b,sdkReady:C,activeOverlay:_,activateAndLoadOverlay:N,activateEventWithId:O,deactivate:L,isLogged:x}=CG(n);w5(l,{enabled:b,event:"click",listener:cU}),w5(f,{enabled:b,event:"scrollend",listener:dU,useDomNode:!0}),w5(f,{enabled:b,event:"click",listener:mU,useDomNode:!0});const D=W.useMemo(()=>({sdk:n}),[n]);return W.useEffect(()=>{Promise.resolve().then(()=>require("./gamification-feature.js"))},[]),w.jsx(pC.Provider,{value:D,children:w.jsxs(oA,{ref:l,children:[b&&w.jsx(Gz,{ref:c,sdkReady:C,activeOverlay:_,className:Gh,setActiveOverlay:j=>N("",j),scrollToTop:()=>{var j;return(j=f.current)==null?void 0:j.scrollTo(0,0)},responsiveStore:p}),w.jsxs(sA,{className:"sl-hide-on-modal",ref:f,"data-nav":b.toString(),children:[C&&w.jsx(wG,{sdk:n,scrollNode:f,headerNode:c,appNode:l,scrollStore:y,responsiveStore:p}),w.jsx("div",{style:!b||_===Yi?{}:{display:"none"},children:o&&o({activateEventWithId:O,deactivate:L})}),a&&_===Bz&&a[_],C&&_===Tu&&w.jsx(RG,{scrollStore:y,responsiveStore:p,scrollNode:f,appNode:l,className:Gh,sdk:n}),C&&w.jsx(OG,{responsiveStore:p,appNode:l,className:Gh,sdk:n})]}),b&&!x&&w.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"You are not logged in."})]})})},AG=P("div")({name:"PointsContainer",class:"psiob9b",propsAsIs:!1}),xG=P("div")({name:"PointsIcon",class:"p1gqe4lh",propsAsIs:!1}),PG=()=>wt,MG=P(PG())({name:"PointsSvg",class:"p15syg2y",propsAsIs:!0}),DG=P("div")({name:"PointsBody",class:"p12n4f2h",propsAsIs:!1}),UG=P("div")({name:"PointsTitle",class:"poqmx89",propsAsIs:!1}),FG=P("div")({name:"PointsValue",class:"prj9b3v",propsAsIs:!1}),VG=({points:n,onClick:a})=>w.jsxs(AG,{className:Gh,onClick:a,children:[w.jsx(xG,{children:w.jsx(MG,{name:"icon-trophy"})}),w.jsxs(DG,{children:[w.jsx(UG,{children:"Total points"}),w.jsx(FG,{children:w.jsx(I6,{value:n})})]})]}),jG=({gamification:n})=>{const a=n.userSummary.$store,[o,l]=W.useState(0);return W.useEffect(()=>{const c=a.subscribe(p=>{var f;(f=p==null?void 0:p.summary)!=null&&f.points&&l(p.summary.points)});return()=>{c()}},[a]),w.jsx(VG,{points:o,onClick:()=>{n.status.get()===Zc.Suspended&&n.openFeature()}})},BG=({sdk:n})=>{if(!Ut(n.featuresList.getStore()))return null;const a=n.getFeature(yt.GAMES);return a?w.jsx(jG,{gamification:a}):null},$G=W.createContext({sdk:null,topNavigation:!1}),zG=()=>W.useContext($G);W.lazy(()=>Promise.resolve().then(()=>require("./gamification-feature2.js")));let S9=(n=21)=>crypto.getRandomValues(new Uint8Array(n)).reduce((a,o)=>(o&=63,o<36?a+=o.toString(36):o<62?a+=(o-26).toString(36).toUpperCase():o>62?a+="-":a+="_",a),"");var st;(function(n){n[n.Canceled=1]="Canceled",n[n.Unknown=2]="Unknown",n[n.InvalidArgument=3]="InvalidArgument",n[n.DeadlineExceeded=4]="DeadlineExceeded",n[n.NotFound=5]="NotFound",n[n.AlreadyExists=6]="AlreadyExists",n[n.PermissionDenied=7]="PermissionDenied",n[n.ResourceExhausted=8]="ResourceExhausted",n[n.FailedPrecondition=9]="FailedPrecondition",n[n.Aborted=10]="Aborted",n[n.OutOfRange=11]="OutOfRange",n[n.Unimplemented=12]="Unimplemented",n[n.Internal=13]="Internal",n[n.Unavailable=14]="Unavailable",n[n.DataLoss=15]="DataLoss",n[n.Unauthenticated=16]="Unauthenticated"})(st||(st={}));function Ak(n){const a=st[n];return typeof a!="string"?n.toString():a[0].toLowerCase()+a.substring(1).replace(/[A-Z]/g,o=>"_"+o.toLowerCase())}class zt extends Error{constructor(a,o=st.Unknown,l,c,p){super(HG(a,o)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=a,this.code=o,this.metadata=new Headers(l??{}),this.details=c??[],this.cause=p}static from(a,o=st.Unknown){return a instanceof zt?a:a instanceof Error?a.name=="AbortError"?new zt(a.message,st.Canceled):new zt(a.message,o,void 0,void 0,a):new zt(String(a),o,void 0,void 0,a)}static[Symbol.hasInstance](a){return a instanceof Error?Object.getPrototypeOf(a)===zt.prototype?!0:a.name==="ConnectError"&&"code"in a&&typeof a.code=="number"&&"metadata"in a&&"details"in a&&Array.isArray(a.details)&&"rawMessage"in a&&typeof a.rawMessage=="string"&&"cause"in a:!1}findDetails(a){const o="typeName"in a?{findMessage:c=>c===a.typeName?a:void 0}:a,l=[];for(const c of this.details){if("getType"in c){o.findMessage(c.getType().typeName)&&l.push(c);continue}const p=o.findMessage(c.type);if(p)try{l.push(p.fromBinary(c.value))}catch{}}return l}}function HG(n,a){return n.length?`[${Ak(a)}] ${n}`:`[${Ak(a)}]`}function qG(n,a,o){try{const l=W9.dec(n);return a?a.fromBinary(l,o):l}catch(l){throw zt.from(l,st.DataLoss)}}function GG(n,a){const o={};for(const[l,c]of Object.entries(n.methods)){const p=a(Object.assign(Object.assign({},c),{localName:l,service:n}));p!=null&&(o[l]=p)}return o}const xk=1;function Pk(n){let a,o=new Uint8Array(0);function l(c){const p=new Uint8Array(o.length+c.length);p.set(o),p.set(c,o.length),o=p}return new ReadableStream({start(){a=n.getReader()},async pull(c){let p;for(;;){if(p===void 0&&o.byteLength>=5){let b=0;for(let C=1;C<5;C++)b=(b<<8)+o[C];p={flags:o[0],length:b}}if(p!==void 0&&o.byteLength>=p.length+5)break;const y=await a.read();if(y.done)break;l(y.value)}if(p===void 0){if(o.byteLength==0){c.close();return}c.error(new zt("premature end of stream",st.DataLoss));return}const f=o.subarray(5,5+p.length);o=o.subarray(5+p.length),c.enqueue({flags:p.flags,data:f})}})}function Mk(n,a){const o=new Uint8Array(a.length+5);o.set(a,5);const l=new DataView(o.buffer,o.byteOffset,o.byteLength);return l.setUint8(0,n),l.setUint32(1,a.length),o}var WG=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],o;return a?a.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o);function l(p){o[p]=n[p]&&function(f){return new Promise(function(y,b){f=n[p](f),c(y,b,f.done,f.value)})}}function c(p,f,y,b){Promise.resolve(b).then(function(C){p({value:C,done:y})},f)}},d2=function(n){return this instanceof d2?(this.v=n,this):new d2(n)},QG=function(n,a,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=o.apply(n,a||[]),c,p=[];return c={},y("next"),y("throw"),y("return",f),c[Symbol.asyncIterator]=function(){return this},c;function f(L){return function(x){return Promise.resolve(x).then(L,N)}}function y(L,x){l[L]&&(c[L]=function(D){return new Promise(function(j,V){p.push([L,D,j,V])>1||b(L,D)})},x&&(c[L]=x(c[L])))}function b(L,x){try{C(l[L](x))}catch(D){O(p[0][3],D)}}function C(L){L.value instanceof d2?Promise.resolve(L.value.v).then(_,N):O(p[0][2],L)}function _(L){b("next",L)}function N(L){b("throw",L)}function O(L,x){L(x),p.shift(),p.length&&b(p[0][0],p[0][1])}},YG=function(n){var a,o;return a={},l("next"),l("throw",function(c){throw c}),l("return"),a[Symbol.iterator]=function(){return this},a;function l(c,p){a[c]=n[c]?function(f){return(o=!o)?{value:d2(n[c](f)),done:!1}:p?p(f):f}:p}};function KG(n){return QG(this,arguments,function*(){yield d2(yield*YG(WG(n)))})}var FC=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],o;return a?a.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o);function l(p){o[p]=n[p]&&function(f){return new Promise(function(y,b){f=n[p](f),c(y,b,f.done,f.value)})}}function c(p,f,y,b){Promise.resolve(b).then(function(C){p({value:C,done:y})},f)}},Tm=function(n){return this instanceof Tm?(this.v=n,this):new Tm(n)},ZG=function(n){var a,o;return a={},l("next"),l("throw",function(c){throw c}),l("return"),a[Symbol.iterator]=function(){return this},a;function l(c,p){a[c]=n[c]?function(f){return(o=!o)?{value:Tm(n[c](f)),done:!1}:p?p(f):f}:p}},XG=function(n,a,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=o.apply(n,a||[]),c,p=[];return c={},y("next"),y("throw"),y("return",f),c[Symbol.asyncIterator]=function(){return this},c;function f(L){return function(x){return Promise.resolve(x).then(L,N)}}function y(L,x){l[L]&&(c[L]=function(D){return new Promise(function(j,V){p.push([L,D,j,V])>1||b(L,D)})},x&&(c[L]=x(c[L])))}function b(L,x){try{C(l[L](x))}catch(D){O(p[0][3],D)}}function C(L){L.value instanceof Tm?Promise.resolve(L.value.v).then(_,N):O(p[0][2],L)}function _(L){b("next",L)}function N(L){b("throw",L)}function O(L,x){L(x),p.shift(),p.length&&b(p[0][0],p[0][1])}};function Dk(n,a){return GG(n,o=>{switch(o.kind){case je.Unary:return JG(a,n,o);case je.ServerStreaming:return eW(a,n,o);case je.ClientStreaming:return tW(a,n,o);case je.BiDiStreaming:return nW(a,n,o);default:return null}})}function JG(n,a,o){return async function(l,c){var p,f;const y=await n.unary(a,o,c==null?void 0:c.signal,c==null?void 0:c.timeoutMs,c==null?void 0:c.headers,l,c==null?void 0:c.contextValues);return(p=c==null?void 0:c.onHeader)===null||p===void 0||p.call(c,y.header),(f=c==null?void 0:c.onTrailer)===null||f===void 0||f.call(c,y.trailer),y.message}}function eW(n,a,o){return function(l,c){return VC(n.stream(a,o,c==null?void 0:c.signal,c==null?void 0:c.timeoutMs,c==null?void 0:c.headers,KG([l]),c==null?void 0:c.contextValues),c)}}function tW(n,a,o){return async function(l,c){var p,f,y,b,C,_;const N=await n.stream(a,o,c==null?void 0:c.signal,c==null?void 0:c.timeoutMs,c==null?void 0:c.headers,l,c==null?void 0:c.contextValues);(C=c==null?void 0:c.onHeader)===null||C===void 0||C.call(c,N.header);let O,L=0;try{for(var x=!0,D=FC(N.message),j;j=await D.next(),p=j.done,!p;x=!0)b=j.value,x=!1,O=b,L++}catch(V){f={error:V}}finally{try{!x&&!p&&(y=D.return)&&await y.call(D)}finally{if(f)throw f.error}}if(!O)throw new zt("protocol error: missing response message",st.Unimplemented);if(L>1)throw new zt("protocol error: received extra messages for client streaming method",st.Unimplemented);return(_=c==null?void 0:c.onTrailer)===null||_===void 0||_.call(c,N.trailer),O}}function nW(n,a,o){return function(l,c){return VC(n.stream(a,o,c==null?void 0:c.signal,c==null?void 0:c.timeoutMs,c==null?void 0:c.headers,l,c==null?void 0:c.contextValues),c)}}function VC(n,a){const o=function(){return XG(this,arguments,function*(){var l,c;const p=yield Tm(n);(l=a==null?void 0:a.onHeader)===null||l===void 0||l.call(a,p.header),yield Tm(yield*ZG(FC(p.message))),(c=a==null?void 0:a.onTrailer)===null||c===void 0||c.call(a,p.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>o.next()})}}function aW(...n){const a=new AbortController,o=n.filter(c=>c!==void 0).concat(a.signal);for(const c of o){if(c.aborted){l.apply(c);break}c.addEventListener("abort",l)}function l(){a.signal.aborted||a.abort(jC(this));for(const c of o)c.removeEventListener("abort",l)}return a}function rW(n){const a=new AbortController,o=()=>{a.abort(new zt("the operation timed out",st.DeadlineExceeded))};let l;return n!==void 0&&(n<=0?o():l=setTimeout(o,n)),{signal:a.signal,cleanup:()=>clearTimeout(l)}}function jC(n){if(!n.aborted)return;if(n.reason!==void 0)return n.reason;const a=new Error("This operation was aborted");return a.name="AbortError",a}function w9(){return{get(n){return n.id in this?this[n.id]:n.defaultValue},set(n,a){return this[n.id]=a,this},delete(n){return delete this[n.id],this}}}function c6(n,a){return{id:Symbol(a==null?void 0:a.description),defaultValue:n}}const x5=128;function Uk(n){const a=new Headers,o=new TextDecoder().decode(n).split(`\r
197
- `);for(const l of o){if(l==="")continue;const c=l.indexOf(":");if(c>0){const p=l.substring(0,c).trim(),f=l.substring(c+1).trim();a.append(p,f)}}return a}const oW="Content-Type",sW="Grpc-Timeout",bm="Grpc-Status",BC="Grpc-Message",iW="Grpc-Status-Details-Bin",lW="X-User-Agent",uW="X-Grpc-Web",cW="application/grpc-web+proto",dW="application/grpc-web+json";class nl extends f2{constructor(a){super(),this.code=0,this.message="",this.details=[],k.util.initPartial(a,this)}static fromBinary(a,o){return new nl().fromBinary(a,o)}static fromJson(a,o){return new nl().fromJson(a,o)}static fromJsonString(a,o){return new nl().fromJsonString(a,o)}static equals(a,o){return k.util.equals(nl,a,o)}}nl.runtime=k;nl.typeName="google.rpc.Status";nl.fields=k.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Js,repeated:!0}]);const mW="0";function $C(n){var a;const o=n.get(iW);if(o!=null){const c=qG(o,nl);if(c.code==0)return;const p=new zt(c.message,c.code,n);return p.details=c.details.map(f=>({type:f.typeUrl.substring(f.typeUrl.lastIndexOf("/")+1),value:f.value})),p}const l=n.get(bm);if(l!=null){if(l===mW)return;const c=parseInt(l,10);return c in st?new zt(decodeURIComponent((a=n.get(BC))!==null&&a!==void 0?a:""),c,n):new zt(`invalid grpc-status: ${l}`,st.Internal,n)}}function Fk(n,a,o){const l=typeof a=="string"?a:a.typeName,c=typeof o=="string"?o:o.name;return n.toString().replace(/\/?$/,`/${l}/${c}`)}function zC(n,a){return a instanceof n?a:new n(a)}function fW(n,a){function o(l){return l.done===!0?l:{done:l.done,value:zC(n,l.value)}}return{[Symbol.asyncIterator](){const l=a[Symbol.asyncIterator](),c={next:()=>l.next().then(o)};return l.throw!==void 0&&(c.throw=p=>l.throw(p).then(o)),l.return!==void 0&&(c.return=p=>l.return(p).then(o)),c}}}function HC(n,a){var o;return(o=a==null?void 0:a.concat().reverse().reduce((l,c)=>c(l),n))!==null&&o!==void 0?o:n}function pW(n){var a;const o=Object.assign({},n);return(a=o.ignoreUnknownFields)!==null&&a!==void 0||(o.ignoreUnknownFields=!0),o}function Vk(n,a,o,l){const c=a?jk(n.I,l):Bk(n.I,o);return{parse:(a?jk(n.O,l):Bk(n.O,o)).parse,serialize:c.serialize}}function jk(n,a){return{parse(o){try{return n.fromBinary(o,a)}catch(l){const c=l instanceof Error?l.message:String(l);throw new zt(`parse binary: ${c}`,st.Internal)}},serialize(o){try{return o.toBinary(a)}catch(l){const c=l instanceof Error?l.message:String(l);throw new zt(`serialize binary: ${c}`,st.Internal)}}}}function Bk(n,a){var o,l;const c=(o=a==null?void 0:a.textEncoder)!==null&&o!==void 0?o:new TextEncoder,p=(l=a==null?void 0:a.textDecoder)!==null&&l!==void 0?l:new TextDecoder,f=pW(a);return{parse(y){try{const b=p.decode(y);return n.fromJsonString(b,f)}catch(b){throw zt.from(b,st.InvalidArgument)}},serialize(y){try{const b=y.toJsonString(f);return c.encode(b)}catch(b){throw zt.from(b,st.Internal)}}}}function hW(n){const a=HC(n.next,n.interceptors),[o,l,c]=qC(n),p=Object.assign(Object.assign({},n.req),{message:zC(n.req.method.I,n.req.message),signal:o});return a(p).then(f=>(c(),f),l)}function gW(n){const a=HC(n.next,n.interceptors),[o,l,c]=qC(n),p=Object.assign(Object.assign({},n.req),{message:fW(n.req.method.I,n.req.message),signal:o});let f=!1;return o.addEventListener("abort",function(){var y,b;const C=n.req.message[Symbol.asyncIterator]();f||(y=C.throw)===null||y===void 0||y.call(C,this.reason).catch(()=>{}),(b=C.return)===null||b===void 0||b.call(C).catch(()=>{})}),a(p).then(y=>Object.assign(Object.assign({},y),{message:{[Symbol.asyncIterator](){const b=y.message[Symbol.asyncIterator]();return{next(){return b.next().then(C=>(C.done==!0&&(f=!0,c()),C),l)}}}}}),l)}function qC(n){const{signal:a,cleanup:o}=rW(n.timeoutMs),l=aW(n.signal,a);return[l.signal,function(p){const f=zt.from(a.aborted?jC(a):p);return l.abort(f),o(),Promise.reject(f)},function(){o(),l.abort()}]}function yW(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function $k(n,a){const o=$C(n);if(o)throw a.forEach((l,c)=>{o.metadata.append(c,l)}),o;if(!a.has(bm)&&!n.has(bm))throw new zt("protocol error: missing status",st.Internal)}function zk(n,a,o,l){const c=new Headers(o??{});return c.set(oW,n?cW:dW),c.set(uW,"1"),c.set(lW,"connect-es/1.6.1"),a!==void 0&&c.set(sW,`${a}m`),c}function vW(n){switch(n){case 400:return st.Internal;case 401:return st.Unauthenticated;case 403:return st.PermissionDenied;case 404:return st.Unimplemented;case 429:return st.Unavailable;case 502:return st.Unavailable;case 503:return st.Unavailable;case 504:return st.Unavailable;default:return st.Unknown}}function Hk(n,a){var o;if(n>=200&&n<300)return{foundStatus:a.has(bm),headerError:$C(a)};throw new zt(decodeURIComponent((o=a.get(BC))!==null&&o!==void 0?o:`HTTP ${n}`),vW(n),a)}var Qc=function(n){return this instanceof Qc?(this.v=n,this):new Qc(n)},TW=function(n,a,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=o.apply(n,a||[]),c,p=[];return c={},y("next"),y("throw"),y("return",f),c[Symbol.asyncIterator]=function(){return this},c;function f(L){return function(x){return Promise.resolve(x).then(L,N)}}function y(L,x){l[L]&&(c[L]=function(D){return new Promise(function(j,V){p.push([L,D,j,V])>1||b(L,D)})},x&&(c[L]=x(c[L])))}function b(L,x){try{C(l[L](x))}catch(D){O(p[0][3],D)}}function C(L){L.value instanceof Qc?Promise.resolve(L.value.v).then(_,N):O(p[0][2],L)}function _(L){b("next",L)}function N(L){b("throw",L)}function O(L,x){L(x),p.shift(),p.length&&b(p[0][0],p[0][1])}};function qk(n){var a;yW();const o=(a=n.useBinaryFormat)!==null&&a!==void 0?a:!0;return{async unary(l,c,p,f,y,b,C){var _;const{serialize:N,parse:O}=Vk(c,o,n.jsonOptions,n.binaryOptions);return f=f===void 0?n.defaultTimeoutMs:f<=0?void 0:f,await hW({interceptors:n.interceptors,signal:p,timeoutMs:f,req:{stream:!1,service:l,method:c,url:Fk(n.baseUrl,l,c),init:{method:"POST",credentials:(_=n.credentials)!==null&&_!==void 0?_:"same-origin",redirect:"error",mode:"cors"},header:zk(o,f,y),contextValues:C??w9(),message:b},next:async L=>{var x;const j=await((x=n.fetch)!==null&&x!==void 0?x:globalThis.fetch)(L.url,Object.assign(Object.assign({},L.init),{headers:L.header,signal:L.signal,body:Mk(0,N(L.message))})),{headerError:V}=Hk(j.status,j.headers);if(!j.body)throw V!==void 0?V:"missing response body";const Y=Pk(j.body).getReader();let Z,Q;for(;;){const te=await Y.read();if(te.done)break;const{flags:ie,data:ae}=te.value;if((ie&xk)===xk)throw new zt("protocol error: received unsupported compressed output",st.Internal);if(ie===x5){if(Z!==void 0)throw"extra trailer";Z=Uk(ae);continue}if(Q!==void 0)throw new zt("extra message",st.Unimplemented);Q=O(ae)}if(Z===void 0)throw V!==void 0?V:new zt("missing trailer",j.headers.has(bm)?st.Unimplemented:st.Unknown);if($k(Z,j.headers),Q===void 0)throw new zt("missing message",Z.has(bm)?st.Unimplemented:st.Unknown);return{stream:!1,service:l,method:c,header:j.headers,message:Q,trailer:Z}}})},async stream(l,c,p,f,y,b,C){var _;const{serialize:N,parse:O}=Vk(c,o,n.jsonOptions,n.binaryOptions);function L(D,j,V,Y,Z){return TW(this,arguments,function*(){const te=Pk(D).getReader();if(j){if(!(yield Qc(te.read())).done)throw"extra data for trailers-only";return yield Qc(void 0)}let ie=!1;for(;;){const ae=yield Qc(te.read());if(ae.done)break;const{flags:Ce,data:Se}=ae.value;if((Ce&x5)===x5){if(ie)throw"extra trailer";ie=!0;const Ye=Uk(Se);$k(Ye,Y),Ye.forEach((Be,Ge)=>V.set(Ge,Be));continue}if(ie)throw"extra message";yield yield Qc(O(Se))}if("throwIfAborted"in Z&&Z.throwIfAborted(),!ie)throw"missing trailer"})}async function x(D){if(c.kind!=je.ServerStreaming)throw"The fetch API does not support streaming request bodies";const j=await D[Symbol.asyncIterator]().next();if(j.done==!0)throw"missing request message";return Mk(0,N(j.value))}return f=f===void 0?n.defaultTimeoutMs:f<=0?void 0:f,gW({interceptors:n.interceptors,signal:p,timeoutMs:f,req:{stream:!0,service:l,method:c,url:Fk(n.baseUrl,l,c),init:{method:"POST",credentials:(_=n.credentials)!==null&&_!==void 0?_:"same-origin",redirect:"error",mode:"cors"},header:zk(o,f,y),contextValues:C??w9(),message:b},next:async D=>{var j;const Y=await((j=n.fetch)!==null&&j!==void 0?j:globalThis.fetch)(D.url,Object.assign(Object.assign({},D.init),{headers:D.header,signal:D.signal,body:await x(D.message)})),{foundStatus:Z,headerError:Q}=Hk(Y.status,Y.headers);if(Q!=null)throw Q;if(!Y.body)throw"missing response body";const te=new Headers;return Object.assign(Object.assign({},D),{header:Y.headers,trailer:te,message:L(Y.body,Z,te,Y.headers,D.signal)})}})}}}let bW=()=>({emit(n,...a){let o=this.events[n]||[];for(let l=0,c=o.length;l<c;l++)o[l](...a)},events:{},on(n,a){var o;return(o=this.events[n])!=null&&o.push(a)||(this.events[n]=[a]),()=>{var l;this.events[n]=(l=this.events[n])==null?void 0:l.filter(c=>a!==c)}}});const Gk=({cache:n=new Map,fetcher:a,...o}={})=>{const l=bW();let c=!0;Zk("visibilitychange",()=>{c=!document.hidden,c&&l.emit(Qk)}),Zk("online",()=>l.emit(Yk));const p=new Map,f=new Map,y=new Map;let b={};const C=async([V,Y],Z,Q,te)=>{var ie;if(!c)return;const ae=Ne=>{Z.key===V&&(Z.set(Ne),l.emit(P5,V,Ne,!0))},Ce=()=>{ae({...Z.value,...Jk,promise:y.get(V)})},{dedupeTime:Se=4e3,fetcher:Ye}={...Q,...b},Be=Xk();if(y.has(V)){Z.value.loading||Ce();return}if(!te){const Ne=n.get(V);Ne&&Z.value.data!==Ne&&ae({data:Ne,...vu});const et=f.get(V);if(et&&et+Se>Be)return}const Ge=$L();try{const Ne=Ye(...Y);f.set(V,Be),y.set(V,Ne),Ce();const et=await Ne;n.set(V,et),ae({data:et,...vu}),f.set(V,Xk())}catch(Ne){(ie=Q.onError)==null||ie.call(Q,Ne),ae({data:Z.value.data,error:Ne,...vu})}finally{Ge(),y.delete(V)}},_=(V,{fetcher:Y=a,...Z}={})=>{const Q=a9({...vu}),te={...o,...Z,fetcher:Y};Q._=GC,Q.invalidate=()=>{const{key:et}=Q;et&&L(et)},Q.mutate=et=>{const{key:mt}=Q;mt&&x(mt,et)};let ie,ae,Ce,Se,Ye,Be=[];GL(Q,()=>{const et=!ie;[Ye,ie]=kW(V),Se=Ye.subscribe(we=>{if(we){const[ct,z]=we;Q.key=ct,C([ct,z],Q,te),ae=ct,Ce=z}else Q.key=ae=Ce=void 0,Q.set({...vu})});const mt=Ye.get();mt&&([ae,Ce]=mt,et&&Ge());const{refetchInterval:Rt=0,refetchOnFocus:Qn,refetchOnReconnect:be}=te,Pe=()=>{ae&&C([ae,Ce],Q,te)};Rt>0&&p.set(V,setInterval(Pe,Rt)),Qn&&Be.push(l.on(Qk,Pe)),be&&Be.push(l.on(Yk,Pe)),Be.push(l.on(Kk,we=>{ae&&M5(ae,we)&&C([ae,Ce],Q,te,!0)}),l.on(P5,(we,ct,z)=>{ae&&M5(ae,we)&&Q.value!==ct&&Q.value.data!==ct&&Q.set(z?ct:{data:ct,...vu})}))});const Ge=()=>{ae&&Ce&&C([ae,Ce],Q,te)},Ne=Q.listen;return Q.listen=et=>{const mt=Ne(et);return et(Q.value),Ge(),mt},WL(Q,()=>{Q.value={...vu},ie==null||ie(),Be.forEach(et=>et()),Be=[],Se==null||Se(),clearInterval(p.get(V))}),Q},N=V=>{n.delete(V),f.delete(V)},O=(V,Y)=>{for(const Z of n.keys())M5(Z,V)&&Y(Z)},L=V=>{O(V,N),l.emit(Kk,V)},x=(V,Y)=>{O(V,Z=>{Y===void 0?N(Z):n.set(Z,Y)}),l.emit(P5,V,Y)};function D(V){const Y=async Q=>{var te;const ie=b.fetcher??V,ae=[];try{Z.set({error:void 0,data:void 0,mutate:Y,...Jk});const Ce=await ie({data:Q,invalidate:Se=>{ae.push(Se)},getCacheUpdater:(Se,Ye=!0)=>[Be=>{x(Se,Be),Ye&&ae.push(Se)},n.get(Se)]});return Z.setKey("data",Ce),Ce}catch(Ce){(te=o==null?void 0:o.onError)==null||te.call(o,Ce),Z.setKey("error",Ce)}finally{Z.setKey("loading",!1),ae.forEach(L)}},Z=a9({mutate:Y,...vu});return Z.mutate=Y,Z}return[_,D,{__unsafeOverruleSettings:V=>{console.warn("You should only use __unsafeOverruleSettings in test environment"),b=V},invalidateKeys:L,mutateCache:x}]};function Wk(n){return typeof n=="string"||typeof n=="number"||n===!0}const kW=n=>{if(Wk(n))return[ku([""+n,[n]]),()=>{}];let a=ku(null),o=[];const l=()=>{o.some(p=>p==null||p===!1)?a.set(null):a.set([o.join(""),o])},c=[];for(let p=0;p<n.length;p++){const f=n[p];Wk(f)?o.push(f):c.push(f.subscribe(y=>{o[p]=SW(f)?f.value&&"data"in f.value?f.key:null:y,l()}))}return l(),[a,()=>c.forEach(p=>p())]};function SW(n){return n._===GC}const Qk=1,Yk=2,Kk=3,P5=4,Zk=(n,a)=>{typeof window>"u"||addEventListener(n,a)},M5=(n,a)=>Array.isArray(a)?a.includes(n):typeof a=="function"?a(n):n===a,Xk=()=>new Date().getTime(),GC=Symbol(),Jk={loading:!0},vu={loading:!1};window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));var eS;(function(n){n.Init="init",n.Ready="ready",n.Connecting="connecting",n.Connected="connected",n.Disconnected="disconnected",n.Failed="failed",n.Reconnect="reconnect",n.Reconnecting="reconnecting"})(eS||(eS={}));Cm("grpc:stream");st.Unknown,st.Internal,st.DeadlineExceeded,st.ResourceExhausted,st.FailedPrecondition,st.Unavailable,st.DataLoss;Cm("grpc:retry");c6(10,{description:"Number of attempts to retry"}),c6(3e4,{description:"Max delay between retries in milliseconds"});const WC=k.makeEnum("streamlayer.sports.EventStatus",[{no:0,name:"EVENT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_STATUS_PREGAME",localName:"PREGAME"},{no:2,name:"EVENT_STATUS_ACTIVE",localName:"ACTIVE"},{no:3,name:"EVENT_STATUS_BREAK",localName:"BREAK"},{no:4,name:"EVENT_STATUS_OVERTIME",localName:"OVERTIME"},{no:5,name:"EVENT_STATUS_SHOOTOUTS",localName:"SHOOTOUTS"},{no:6,name:"EVENT_STATUS_POSTGAME",localName:"POSTGAME"},{no:7,name:"EVENT_STATUS_CANCELLED",localName:"CANCELLED"}]),QC=k.makeEnum("streamlayer.sports.EventEndless",[{no:0,name:"EVENT_ENDLESS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_ENDLESS_ENABLED",localName:"ENABLED"},{no:2,name:"EVENT_ENDLESS_DISABLED",localName:"DISABLED"}]),N6=k.makeMessageType("streamlayer.sports.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5}]),YC=k.makeMessageType("streamlayer.sports.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]),R6=k.makeMessageType("streamlayer.sports.Meta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}]),KC=k.makeMessageType("streamlayer.sports.Venue",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"scalar",T:9},{no:3,name:"stadium",kind:"scalar",T:9}]),O6=k.makeMessageType("streamlayer.sports.EventTime",()=>[{no:1,name:"clock",kind:"scalar",T:9},{no:2,name:"period",kind:"scalar",T:5}]),wW=k.makeMessageType("streamlayer.sports.EventPeriod",()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"score_home",kind:"scalar",T:5},{no:3,name:"score_away",kind:"scalar",T:5}]),Eu=k.makeMessageType("streamlayer.sports.TeamRecord",()=>[{no:1,name:"wins",kind:"scalar",T:5},{no:2,name:"losses",kind:"scalar",T:5}]),_u=k.makeMessageType("streamlayer.sports.EventTeam",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"is_winner",kind:"scalar",T:8}]),CW=k.makeMessageType("streamlayer.sports.EventCustomFields",()=>[{no:1,name:"preview",kind:"scalar",T:9},{no:2,name:"stream",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"event_ids",kind:"scalar",T:9,repeated:!0},{no:6,name:"subtitle",kind:"scalar",T:9},{no:7,name:"promotitle",kind:"scalar",T:9},{no:8,name:"slate",kind:"scalar",T:9},{no:9,name:"horizontal_preview",kind:"scalar",T:9},{no:10,name:"small_logo",kind:"scalar",T:9},{no:11,name:"description",kind:"scalar",T:9}]),EW=k.makeMessageType("streamlayer.sports.EventProgram",()=>[{no:1,name:"id",kind:"scalar",T:9,opt:!0},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"start_time",kind:"scalar",T:9},{no:4,name:"end_time",kind:"scalar",T:9},{no:5,name:"thumbnail_url",kind:"scalar",T:9},{no:6,name:"square_thumbnail_url",kind:"scalar",T:9}]),_W=k.makeMessageType("streamlayer.sports.EventData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"sport",kind:"scalar",T:9},{no:3,name:"league",kind:"scalar",T:9},{no:4,name:"scheduled",kind:"scalar",T:9},{no:5,name:"home",kind:"message",T:_u},{no:6,name:"away",kind:"message",T:_u},{no:7,name:"status",kind:"enum",T:k.getEnumType(WC)},{no:8,name:"custom_fields",kind:"message",T:CW},{no:9,name:"start_time",kind:"scalar",T:9},{no:10,name:"end_time",kind:"scalar",T:9},{no:11,name:"venue",kind:"message",T:KC},{no:12,name:"schedule",kind:"message",T:EW,repeated:!0},{no:13,name:"endless",kind:"enum",T:k.getEnumType(QC)},{no:14,name:"provider_id",kind:"scalar",T:9}]),nd=k.makeMessageType("streamlayer.sports.EventSummary",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"scheduled",kind:"scalar",T:9},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"venue",kind:"message",T:KC},{no:6,name:"event_time",kind:"message",T:O6},{no:7,name:"home_team",kind:"message",T:_u},{no:8,name:"away_team",kind:"message",T:_u},{no:9,name:"status",kind:"enum",T:k.getEnumType(WC)},{no:10,name:"periods",kind:"message",T:wW,repeated:!0},{no:11,name:"league",kind:"scalar",T:9},{no:12,name:"start_time",kind:"scalar",T:9},{no:13,name:"end_time",kind:"scalar",T:9},{no:14,name:"name",kind:"scalar",T:9},{no:15,name:"logo",kind:"scalar",T:9},{no:16,name:"stream",kind:"scalar",T:9}]),IW=k.makeEnum("streamlayer.sports.baseball.PitcherStatus",[{no:0,name:"PITCHER_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PITCHER_STATUS_WIN",localName:"WIN"},{no:2,name:"PITCHER_STATUS_LOSS",localName:"LOSS"}]),NW=k.makeEnum("streamlayer.sports.baseball.BaseballBase",[{no:0,name:"BASEBALL_BASE_UNSET",localName:"UNSET"},{no:1,name:"BASEBALL_BASE_FIRST",localName:"FIRST"},{no:2,name:"BASEBALL_BASE_SECOND",localName:"SECOND"},{no:3,name:"BASEBALL_BASE_THIRD",localName:"THIRD"}]),tS=k.makeMessageType("streamlayer.sports.baseball.PitcherSummary",()=>[{no:1,name:"statistics",kind:"message",T:ZC},{no:2,name:"status",kind:"enum",T:k.getEnumType(IW)},{no:3,name:"win_rate",kind:"scalar",T:5},{no:4,name:"loss_rate",kind:"scalar",T:5}]),RW=k.makeMessageType("streamlayer.sports.baseball.Runner",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"jersey_number",kind:"scalar",T:9}]),OW=k.makeMessageType("streamlayer.sports.baseball.RunnerOnBase",()=>[{no:1,name:"base_number",kind:"enum",T:k.getEnumType(NW)},{no:2,name:"player",kind:"message",T:RW}]),LW=k.makeMessageType("streamlayer.sports.baseball.Hitting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"hits_per_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"run_batted_in",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"batting_average",kind:"scalar",T:9}]),AW=k.makeMessageType("streamlayer.sports.baseball.Batting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"at_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"hits",kind:"scalar",T:9},{no:5,name:"batting_average",kind:"scalar",T:9}]),ZC=k.makeMessageType("streamlayer.sports.baseball.Pitching",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"innings_pitched",kind:"scalar",T:9},{no:3,name:"hits_by_pitch",kind:"scalar",T:9},{no:4,name:"earned_runs",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"strikeouts",kind:"scalar",T:9}]),nS=k.makeMessageType("streamlayer.sports.baseball.BaseballTeamSummary",()=>[{no:1,name:"hitting",kind:"message",T:LW,repeated:!0},{no:2,name:"batting",kind:"message",T:AW,repeated:!0},{no:3,name:"pitching",kind:"message",T:ZC,repeated:!0}]),xW=k.makeMessageType("streamlayer.sports.baseball.BaseballSummary",()=>[{no:1,name:"home_pitcher",kind:"message",T:tS},{no:2,name:"away_pitcher",kind:"message",T:tS},{no:3,name:"home_statistics",kind:"message",T:nS},{no:4,name:"away_statistics",kind:"message",T:nS}]),PW=k.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:_u},{no:2,name:"inning",kind:"scalar",T:9},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"detail",kind:"message",T:MW,repeated:!0},{no:5,name:"runs",kind:"scalar",T:5},{no:6,name:"hits",kind:"scalar",T:5},{no:7,name:"errors",kind:"scalar",T:5}]),MW=k.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics.BaseballPlayByPlayDetailStatistics",()=>[{no:1,name:"score_home",kind:"scalar",T:5},{no:2,name:"score_away",kind:"scalar",T:5},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}],{localName:"BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics"}),DW=k.makeMessageType("streamlayer.sports.baseball.EventScore",()=>[{no:1,name:"outs",kind:"scalar",T:5},{no:2,name:"inning",kind:"scalar",T:5},{no:3,name:"inning_division",kind:"scalar",T:9},{no:4,name:"is_delayed",kind:"scalar",T:8},{no:5,name:"reason_for_delay",kind:"scalar",T:9},{no:6,name:"runners_on_base",kind:"message",T:OW,repeated:!0},{no:7,name:"taken_bases",kind:"scalar",T:5},{no:8,name:"home_team_record",kind:"message",T:Eu},{no:9,name:"away_team_record",kind:"message",T:Eu}]),UW=k.makeMessageType("streamlayer.sports.baseball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:PW,repeated:!0}]),FW=k.makeMessageType("streamlayer.sports.baseball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:xW}]),VW=k.makeMessageType("streamlayer.sports.baseball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:jW},{no:11,name:"rank",kind:"message",T:BW},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),jW=k.makeMessageType("streamlayer.sports.baseball.TeamStanding.Streak",()=>[{no:1,name:"losses",kind:"scalar",T:5},{no:2,name:"wins",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),BW=k.makeMessageType("streamlayer.sports.baseball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),$W=k.makeMessageType("streamlayer.sports.baseball.Standings",()=>[{no:1,name:"standings",kind:"message",T:VW,repeated:!0}]),zW=k.makeEnum("streamlayer.sports.basketball.BasketballPerformerCategory",[{no:0,name:"BASKETBALL_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"BASKETBALL_PERFORMER_CATEGORY_POINTS",localName:"POINTS"},{no:2,name:"BASKETBALL_PERFORMER_CATEGORY_REBOUNDS",localName:"REBOUNDS"},{no:3,name:"BASKETBALL_PERFORMER_CATEGORY_ASSISTS",localName:"ASSISTS"}]),HW=k.makeMessageType("streamlayer.sports.basketball.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:Eu},{no:9,name:"away_team_record",kind:"message",T:Eu}]),aS=k.makeMessageType("streamlayer.sports.basketball.BasketballTeamSummary",()=>[{no:1,name:"field_goal_percentage",kind:"scalar",T:1},{no:2,name:"three_pts_percentage",kind:"scalar",T:1},{no:3,name:"free_throw_percentage",kind:"scalar",T:1},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5}]),rS=k.makeMessageType("streamlayer.sports.basketball.BasketballPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:9}]),qW=k.makeMessageType("streamlayer.sports.basketball.BasketballPerformers",()=>[{no:1,name:"category",kind:"enum",T:k.getEnumType(zW)},{no:2,name:"home_player",kind:"message",T:rS},{no:3,name:"away_player",kind:"message",T:rS}]),GW=k.makeMessageType("streamlayer.sports.basketball.BasketballSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:aS},{no:2,name:"away_statistics",kind:"message",T:aS}]),WW=k.makeMessageType("streamlayer.sports.basketball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:GW},{no:2,name:"top_performers",kind:"message",T:qW,repeated:!0},{no:3,name:"last_games",kind:"message",T:XC}]),QW=k.makeMessageType("streamlayer.sports.basketball.BasketballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:_u},{no:2,name:"event_time",kind:"message",T:O6},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),YW=k.makeMessageType("streamlayer.sports.basketball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:QW,repeated:!0}]),oS=k.makeMessageType("streamlayer.sports.basketball.PlayerScores",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"points",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5},{no:6,name:"minutes",kind:"scalar",T:1},{no:7,name:"starter",kind:"scalar",T:8}]),KW=k.makeMessageType("streamlayer.sports.basketball.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:oS,repeated:!0},{no:2,name:"away_players",kind:"message",T:oS,repeated:!0}]),ZW=k.makeMessageType("streamlayer.sports.basketball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:XW},{no:11,name:"rank",kind:"message",T:JW},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),XW=k.makeMessageType("streamlayer.sports.basketball.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),JW=k.makeMessageType("streamlayer.sports.basketball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),eQ=k.makeMessageType("streamlayer.sports.basketball.Standings",()=>[{no:1,name:"standings",kind:"message",T:ZW,repeated:!0}]),sS=k.makeMessageType("streamlayer.sports.basketball.BasketballMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),iS=k.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineup",()=>[{no:3,name:"start_players",kind:"message",T:sS,repeated:!0},{no:4,name:"substitutes",kind:"message",T:sS,repeated:!0}]),tQ=k.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:iS},{no:2,name:"away_team",kind:"message",T:iS}]),D5=k.makeMessageType("streamlayer.sports.basketball.BasketballLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:nQ}]),nQ=k.makeMessageType("streamlayer.sports.basketball.BasketballLastGame.BasketballLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"BasketballLastGame_BasketballLastGameAttributes"}),XC=k.makeMessageType("streamlayer.sports.basketball.BasketballLastGames",()=>[{no:1,name:"home",kind:"message",T:D5,repeated:!0},{no:2,name:"away",kind:"message",T:D5,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:D5,repeated:!0}]),aQ=k.makeEnum("streamlayer.sports.hockey.HockeyPerformerCategory",[{no:0,name:"HOCKEY_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PERFORMER_CATEGORY_GOALS",localName:"GOALS"},{no:2,name:"HOCKEY_PERFORMER_CATEGORY_SHOTS",localName:"SHOTS"},{no:3,name:"HOCKEY_PERFORMER_CATEGORY_HITS",localName:"HITS"},{no:4,name:"HOCKEY_PERFORMER_CATEGORY_SAVES",localName:"SAVES"}]),JC=k.makeEnum("streamlayer.sports.hockey.HockeyPlayerPosition",[{no:0,name:"HOCKEY_PLAYER_POSITION_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PLAYER_POSITION_CENTER",localName:"CENTER"},{no:2,name:"HOCKEY_PLAYER_POSITION_LEFT_WIND",localName:"LEFT_WIND"},{no:3,name:"HOCKEY_PLAYER_POSITION_RIGHT_WING",localName:"RIGHT_WING"},{no:4,name:"HOCKEY_PLAYER_POSITION_DEFENSE",localName:"DEFENSE"},{no:5,name:"HOCKEY_PLAYER_POSITION_GOALTENDER",localName:"GOALTENDER"}]),rQ=k.makeMessageType("streamlayer.sports.hockey.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:Eu},{no:9,name:"away_team_record",kind:"message",T:Eu}]),lS=k.makeMessageType("streamlayer.sports.hockey.HockeyPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),oQ=k.makeMessageType("streamlayer.sports.hockey.HockeyPerformers",()=>[{no:1,name:"category",kind:"enum",T:k.getEnumType(aQ)},{no:2,name:"home_player",kind:"message",T:lS,repeated:!0},{no:3,name:"away_player",kind:"message",T:lS,repeated:!0}]),uS=k.makeMessageType("streamlayer.sports.hockey.HockeyTeamSummary",()=>[{no:1,name:"shots_on_goal",kind:"scalar",T:5},{no:2,name:"faceoff",kind:"scalar",T:1},{no:3,name:"powerplay",kind:"scalar",T:5},{no:4,name:"penalty_minutes",kind:"scalar",T:5},{no:5,name:"hits",kind:"scalar",T:5},{no:6,name:"blocks",kind:"scalar",T:5},{no:7,name:"giveaways",kind:"scalar",T:5},{no:8,name:"takeaways",kind:"scalar",T:5}]),sQ=k.makeMessageType("streamlayer.sports.hockey.HockeySummary",()=>[{no:1,name:"home_statistics",kind:"message",T:uS},{no:2,name:"away_statistics",kind:"message",T:uS}]),iQ=k.makeMessageType("streamlayer.sports.hockey.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:sQ},{no:2,name:"top_performers",kind:"message",T:oQ,repeated:!0}]),lQ=k.makeMessageType("streamlayer.sports.hockey.HockeyPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:_u},{no:2,name:"event_time",kind:"message",T:O6},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),uQ=k.makeMessageType("streamlayer.sports.hockey.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:lQ,repeated:!0}]),U5=k.makeMessageType("streamlayer.sports.hockey.PlayerScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"goals",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"shots",kind:"scalar",T:5},{no:6,name:"penalty_minutes",kind:"scalar",T:1},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:k.getEnumType(JC)}]),cS=k.makeMessageType("streamlayer.sports.hockey.GoaltenderScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"shots_againts",kind:"scalar",T:5},{no:4,name:"goals_againts",kind:"scalar",T:5},{no:5,name:"saves",kind:"scalar",T:5},{no:6,name:"saves_pct",kind:"scalar",T:5},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:k.getEnumType(JC)}]),dS=k.makeMessageType("streamlayer.sports.hockey.PlayerScores",()=>[{no:1,name:"skaters",kind:"message",T:U5,repeated:!0},{no:2,name:"goaltender",kind:"message",T:cS},{no:3,name:"forwards",kind:"message",T:U5,repeated:!0},{no:4,name:"defensemen",kind:"message",T:U5,repeated:!0},{no:5,name:"goaltenders",kind:"message",T:cS,repeated:!0}]),cQ=k.makeMessageType("streamlayer.sports.hockey.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:dS},{no:2,name:"away_players",kind:"message",T:dS}]),dQ=k.makeMessageType("streamlayer.sports.hockey.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:mQ},{no:11,name:"rank",kind:"message",T:fQ},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),mQ=k.makeMessageType("streamlayer.sports.hockey.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),fQ=k.makeMessageType("streamlayer.sports.hockey.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),pQ=k.makeMessageType("streamlayer.sports.hockey.Standings",()=>[{no:1,name:"standings",kind:"message",T:dQ,repeated:!0}]),hQ=k.makeEnum("streamlayer.sports.soccer.SoccerPerformerCategory",[{no:0,name:"SOCCER_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"SOCCER_PERFORMER_CATEGORY_ATTACK",localName:"ATTACK"},{no:2,name:"SOCCER_PERFORMER_CATEGORY_MIDFIELD",localName:"MIDFIELD"},{no:3,name:"SOCCER_PERFORMER_CATEGORY_DEFENSE",localName:"DEFENSE"}]),gQ=k.makeEnum("streamlayer.sports.soccer.SoccerMatchActivityType",[{no:0,name:"SOCCER_MATCH_ACTIVITY_UNSET"},{no:1,name:"SOCCER_MATCH_ACTIVITY_GOAL"},{no:2,name:"SOCCER_MATCH_ACTIVITY_YELLOW_CARD"},{no:3,name:"SOCCER_MATCH_ACTIVITY_RED_CARD"},{no:4,name:"SOCCER_MATCH_ACTIVITY_SUBSTITUTION"},{no:5,name:"SOCCER_MATCH_ACTIVITY_HALF_TIME"},{no:6,name:"SOCCER_MATCH_ACTIVITY_FULL_TIME"}]),yQ=k.makeMessageType("streamlayer.sports.soccer.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:Eu},{no:9,name:"away_team_record",kind:"message",T:Eu}]),hy=k.makeMessageType("streamlayer.sports.soccer.SoccerPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),vQ=k.makeMessageType("streamlayer.sports.soccer.SoccerAttackPerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:hy},{no:2,name:"attack_stats",kind:"message",T:IQ}]),TQ=k.makeMessageType("streamlayer.sports.soccer.SoccerMidfieldPerformer",()=>[{no:1,name:"perfomer",kind:"message",T:hy},{no:2,name:"midfield_stats",kind:"message",T:NQ}]),bQ=k.makeMessageType("streamlayer.sports.soccer.SoccerDefensePerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:hy},{no:2,name:"defense_stats",kind:"message",T:RQ}]),kQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPerformers",()=>[{no:1,name:"category",kind:"enum",T:k.getEnumType(hQ)},{no:2,name:"attack_performer",kind:"message",T:vQ},{no:3,name:"midfield_performer",kind:"message",T:TQ},{no:4,name:"defense_performer",kind:"message",T:bQ}]),SQ=k.makeMessageType("streamlayer.sports.soccer.SoccerTeamTopMatchStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"shots",kind:"scalar",T:5},{no:3,name:"shots_on_target",kind:"scalar",T:5},{no:4,name:"passes",kind:"scalar",T:5},{no:5,name:"offsides",kind:"scalar",T:5},{no:6,name:"yellow_cards",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"free_kicks",kind:"scalar",T:5},{no:9,name:"red_cards",kind:"scalar",T:5}]),wQ=k.makeMessageType("streamlayer.sports.soccer.SoccerTeamAttackingStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"passing_accuracy",kind:"scalar",T:1},{no:3,name:"chances_created",kind:"scalar",T:5},{no:4,name:"successful_crosses",kind:"scalar",T:1}]),CQ=k.makeMessageType("streamlayer.sports.soccer.SoccerTeamDefenseStats",()=>[{no:1,name:"tackles_made",kind:"scalar",T:5},{no:2,name:"interceptions",kind:"scalar",T:5},{no:3,name:"blocked_shots",kind:"scalar",T:5},{no:4,name:"clearances",kind:"scalar",T:5},{no:5,name:"duels_won",kind:"scalar",T:5}]),mS=k.makeMessageType("streamlayer.sports.soccer.SoccerTeamSummary",()=>[{no:1,name:"top_match_stats",kind:"message",T:SQ},{no:2,name:"attacking_stats",kind:"message",T:wQ},{no:3,name:"defense_stats",kind:"message",T:CQ}]),EQ=k.makeMessageType("streamlayer.sports.soccer.SoccerSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:mS},{no:2,name:"away_statistics",kind:"message",T:mS},{no:3,name:"perfomers",kind:"message",T:kQ}]),_Q=k.makeMessageType("streamlayer.sports.soccer.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:EQ},{no:2,name:"last_games",kind:"message",T:eE}]),IQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPlayerAttackingStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"shots",kind:"scalar",T:5},{no:4,name:"shots_on_goal",kind:"scalar",T:5},{no:5,name:"penalty_kick_goals",kind:"scalar",T:5}]),NQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPlayerMidfieldStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"key_passes",kind:"scalar",T:5},{no:4,name:"crosses",kind:"scalar",T:5},{no:5,name:"corners",kind:"scalar",T:5}]),RQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPlayerDefenseStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"tackles_made",kind:"scalar",T:5},{no:4,name:"interceptions",kind:"scalar",T:5},{no:5,name:"blocked_shots",kind:"scalar",T:5}]),OQ=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrixPlayer",()=>[{no:1,name:"jersey_number",kind:"scalar",T:5},{no:2,name:"player_name",kind:"scalar",T:9},{no:3,name:"photo",kind:"scalar",T:9}]),LQ=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrix",()=>[{no:1,name:"row_players",kind:"message",T:OQ,repeated:!0}]),fS=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),pS=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineup",()=>[{no:1,name:"formation_string",kind:"scalar",T:9},{no:2,name:"formation_matrix",kind:"message",T:LQ,repeated:!0},{no:3,name:"start_players",kind:"message",T:fS,repeated:!0},{no:4,name:"substitutes",kind:"message",T:fS,repeated:!0}]),AQ=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:pS},{no:2,name:"away_team",kind:"message",T:pS}]),xQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:_u},{no:2,name:"event_time",kind:"message",T:O6},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5},{no:8,name:"type",kind:"enum",T:k.getEnumType(gQ)}]),PQ=k.makeMessageType("streamlayer.sports.soccer.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:xQ,repeated:!0}]),MQ=k.makeMessageType("streamlayer.sports.soccer.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"draws",kind:"scalar",T:5},{no:9,name:"games_behind",kind:"scalar",T:5},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"points",kind:"scalar",T:5},{no:14,name:"position",kind:"scalar",T:5},{no:15,name:"total_goals",kind:"scalar",T:5},{no:16,name:"total_goals_received",kind:"scalar",T:5}]),DQ=k.makeMessageType("streamlayer.sports.soccer.Standings",()=>[{no:1,name:"standings",kind:"message",T:MQ,repeated:!0}]),F5=k.makeMessageType("streamlayer.sports.soccer.SoccerLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:UQ}]),UQ=k.makeMessageType("streamlayer.sports.soccer.SoccerLastGame.SoccerLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"SoccerLastGame_SoccerLastGameAttributes"}),eE=k.makeMessageType("streamlayer.sports.soccer.SoccerLastGames",()=>[{no:1,name:"home",kind:"message",T:F5,repeated:!0},{no:2,name:"away",kind:"message",T:F5,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:F5,repeated:!0}]),ad=k.makeEnum("streamlayer.sports.events.EventType",[{no:0,name:"EVENT_TYPE_UNSET",localName:"UNSET"},{no:1,name:"EVENT_TYPE_BASEBALL",localName:"BASEBALL"},{no:2,name:"EVENT_TYPE_BASKETBALL",localName:"BASKETBALL"},{no:3,name:"EVENT_TYPE_HOCKEY",localName:"HOCKEY"},{no:4,name:"EVENT_TYPE_SOCCER",localName:"SOCCER"},{no:5,name:"EVENT_TYPE_GOLF",localName:"GOLF"}]),FQ=k.makeMessageType("streamlayer.sports.events.ScheduleAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"baseball",kind:"message",T:DW,oneof:"sport"},{no:3,name:"basketball",kind:"message",T:HW,oneof:"sport"},{no:4,name:"hockey",kind:"message",T:rQ,oneof:"sport"},{no:5,name:"soccer",kind:"message",T:yQ,oneof:"sport"}]),VQ=k.makeMessageType("streamlayer.sports.events.ScheduleResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:FQ}]),jQ=k.makeMessageType("streamlayer.sports.events.ListResponseAttributes",()=>[{no:1,name:"common",kind:"message",T:_W}]),tE=k.makeMessageType("streamlayer.sports.events.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:jQ}]),BQ=k.makeMessageType("streamlayer.sports.events.ListRequest",()=>[{no:1,name:"filter",kind:"message",T:$Q},{no:2,name:"pagination",kind:"message",T:N6},{no:3,name:"sort",kind:"message",T:YC},{no:4,name:"ids",kind:"scalar",T:4,repeated:!0},{no:5,name:"organization_id",kind:"scalar",T:9}]),$Q=k.makeMessageType("streamlayer.sports.events.ListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9},{no:3,name:"start_date_time",kind:"scalar",T:9},{no:4,name:"end_date_time",kind:"scalar",T:9},{no:5,name:"sport",kind:"scalar",T:9},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"endless",kind:"enum",T:k.getEnumType(QC)}],{localName:"ListRequest_Filter"}),zQ=k.makeMessageType("streamlayer.sports.events.DemoListRequest",()=>[{no:1,name:"filter",kind:"message",T:HQ},{no:2,name:"pagination",kind:"message",T:N6},{no:3,name:"sort",kind:"message",T:YC}]),HQ=k.makeMessageType("streamlayer.sports.events.DemoListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"DemoListRequest_Filter"}),qQ=k.makeMessageType("streamlayer.sports.events.DemoListResponse",()=>[{no:1,name:"meta",kind:"message",T:R6},{no:2,name:"data",kind:"message",T:tE,repeated:!0}]),GQ=k.makeMessageType("streamlayer.sports.events.ListResponse",()=>[{no:1,name:"meta",kind:"message",T:R6},{no:2,name:"data",kind:"message",T:tE,repeated:!0}]),hS=k.makeMessageType("streamlayer.sports.events.SummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),gS=k.makeMessageType("streamlayer.sports.events.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:WQ}]),WQ=k.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:QQ}],{localName:"SummaryResponse_ResponseData"}),QQ=k.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"baseball",kind:"message",T:FW,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:WW,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:iQ,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:_Q,oneof:"sports"}],{localName:"SummaryResponse_ResponseData_SummaryResponseAttributes"}),YQ=k.makeMessageType("streamlayer.sports.events.AdminSummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),KQ=k.makeMessageType("streamlayer.sports.events.AdminSummaryResponse",()=>[{no:1,name:"data",kind:"message",T:ZQ}]),ZQ=k.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:XQ}],{localName:"AdminSummaryResponse_ResponseData"}),XQ=k.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"provider_id",kind:"scalar",T:9}],{localName:"AdminSummaryResponse_ResponseData_SummaryResponseAttributes"}),JQ=k.makeMessageType("streamlayer.sports.events.PlayByPlayRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"pagination",kind:"message",T:N6},{no:3,name:"order",kind:"scalar",T:9}]),eY=k.makeMessageType("streamlayer.sports.events.PlayByPlayResponse",()=>[{no:1,name:"data",kind:"message",T:tY},{no:2,name:"meta",kind:"message",T:R6}]),tY=k.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:nY}],{localName:"PlayByPlayResponse_ResponseData"}),nY=k.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData.PlayByPlayResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"baseball",kind:"message",T:UW,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:YW,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:uQ,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:PQ,oneof:"sports"}],{localName:"PlayByPlayResponse_ResponseData_PlayByPlayResponseAttributes"}),aY=k.makeMessageType("streamlayer.sports.events.ScheduleRequest",()=>[{no:1,name:"filter",kind:"message",T:rY},{no:2,name:"pagination",kind:"message",T:N6}]),rY=k.makeMessageType("streamlayer.sports.events.ScheduleRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleRequest_Filter"}),oY=k.makeMessageType("streamlayer.sports.events.ScheduleResponse",()=>[{no:1,name:"data",kind:"message",T:VQ,repeated:!0},{no:2,name:"meta",kind:"message",T:R6}]),sY=k.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest",()=>[{no:1,name:"filter",kind:"message",T:iY}]),iY=k.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest.Filter",()=>[{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleDatesRequest_Filter"}),lY=k.makeMessageType("streamlayer.sports.events.ScheduleDatesResponse",()=>[{no:1,name:"data",kind:"scalar",T:9,repeated:!0}]),uY=k.makeMessageType("streamlayer.sports.events.BoxscoreRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),cY=k.makeMessageType("streamlayer.sports.events.BoxscoreResponse",()=>[{no:1,name:"data",kind:"message",T:dY}]),dY=k.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:mY}],{localName:"BoxscoreResponse_ResponseData"}),mY=k.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData.BoxscoreResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"basketball",kind:"message",T:KW,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:cQ,oneof:"sports"}],{localName:"BoxscoreResponse_ResponseData_BoxscoreResponseAttributes"}),fY=k.makeMessageType("streamlayer.sports.events.StandingsRequest",()=>[{no:1,name:"league",kind:"scalar",T:9}]),pY=k.makeMessageType("streamlayer.sports.events.StandingsResponse",()=>[{no:1,name:"data",kind:"message",T:hY}]),hY=k.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData",()=>[{no:1,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:2,name:"attributes",kind:"message",T:gY}],{localName:"StandingsResponse_ResponseData"}),gY=k.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData.StandingsResponseAttributes",()=>[{no:2,name:"basketball",kind:"message",T:eQ,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:pQ,oneof:"sports"},{no:4,name:"baseball",kind:"message",T:$W,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:DQ,oneof:"sports"}],{localName:"StandingsResponse_ResponseData_StandingsResponseAttributes"}),yY=k.makeMessageType("streamlayer.sports.events.LineupRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),vY=k.makeMessageType("streamlayer.sports.events.LineupResponse",()=>[{no:1,name:"data",kind:"message",T:TY}]),TY=k.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:bY}],{localName:"LineupResponse_ResponseData"}),bY=k.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData.LineupResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"soccer",kind:"message",T:AQ,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:tQ,oneof:"sports"}],{localName:"LineupResponse_ResponseData_LineupResponseAttributes"}),kY=k.makeMessageType("streamlayer.sports.events.LastGamesRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),SY=k.makeMessageType("streamlayer.sports.events.LastGamesResponse",()=>[{no:1,name:"data",kind:"message",T:wY}]),wY=k.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:CY}],{localName:"LastGamesResponse_ResponseData"}),CY=k.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData.LastGamesResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"soccer",kind:"message",T:eE,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:XC,oneof:"sports"}],{localName:"LastGamesResponse_ResponseData_LastGamesResponseAttributes"}),EY=k.makeMessageType("streamlayer.sports.events.RetrieveEventIdRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),_Y=k.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse",()=>[{no:1,name:"data",kind:"message",T:IY}]),IY=k.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse.RetrieveEventIdResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4}],{localName:"RetrieveEventIdResponse_RetrieveEventIdResponseData"}),nE={typeName:"streamlayer.sports.events.Events",methods:{list:{name:"List",I:BQ,O:GQ,kind:je.Unary},demoList:{name:"DemoList",I:zQ,O:qQ,kind:je.Unary},summary:{name:"Summary",I:hS,O:gS,kind:je.Unary},adminSummary:{name:"AdminSummary",I:YQ,O:KQ,kind:je.Unary},boxscore:{name:"Boxscore",I:uY,O:cY,kind:je.Unary},standings:{name:"Standings",I:fY,O:pY,kind:je.Unary},playByPlay:{name:"PlayByPlay",I:JQ,O:eY,kind:je.Unary},schedule:{name:"Schedule",I:aY,O:oY,kind:je.Unary},scheduleDates:{name:"ScheduleDates",I:sY,O:lY,kind:je.Unary},lineup:{name:"Lineup",I:yY,O:vY,kind:je.Unary},retrieveEventId:{name:"RetrieveEventId",I:EY,O:_Y,kind:je.Unary},lastGames:{name:"LastGames",I:kY,O:SY,kind:je.Unary},summarySubscription:{name:"SummarySubscription",I:hS,O:gS,kind:je.ServerStreaming}}},NY=k.makeEnum("streamlayer.sdkSettings.client.VisibleStatus",[{no:0,name:"VISIBLE_STATUS_UNSET",localName:"UNSET"},{no:1,name:"VISIBLE_STATUS_INCOGNITO",localName:"INCOGNITO"},{no:2,name:"VISIBLE_STATUS_VISIBLE",localName:"VISIBLE"}]),RY=k.makeEnum("streamlayer.sdkSettings.client.MessagesNotify",[{no:0,name:"MESSAGES_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_NOTIFY_ALLOW",localName:"ALLOW"}]),OY=k.makeEnum("streamlayer.sdkSettings.client.FriendsNotify",[{no:0,name:"FRIENDS_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_NOTIFY_ALLOW",localName:"ALLOW"}]),LY=k.makeEnum("streamlayer.sdkSettings.client.TwitterNotify",[{no:0,name:"TWITTER_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_NOTIFY_ALLOW",localName:"ALLOW"}]),AY=k.makeEnum("streamlayer.sdkSettings.client.CallsSound",[{no:0,name:"CALLS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"CALLS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"CALLS_SOUND_ALLOW",localName:"ALLOW"}]),xY=k.makeEnum("streamlayer.sdkSettings.client.MessagesSound",[{no:0,name:"MESSAGES_SOUND_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_SOUND_ALLOW",localName:"ALLOW"}]),PY=k.makeEnum("streamlayer.sdkSettings.client.FriendsSound",[{no:0,name:"FRIENDS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_SOUND_ALLOW",localName:"ALLOW"}]),MY=k.makeEnum("streamlayer.sdkSettings.client.TwitterSound",[{no:0,name:"TWITTER_SOUND_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_SOUND_ALLOW",localName:"ALLOW"}]),aE=k.makeEnum("streamlayer.sdkSettings.client.SettingsAllow",[{no:0,name:"SETTINGS_ALLOW_UNSET",localName:"UNSET"},{no:1,name:"SETTINGS_ALLOW_DISALLOW",localName:"DISALLOW"},{no:2,name:"SETTINGS_ALLOW_ALLOW",localName:"ALLOW"}]),DY=k.makeEnum("streamlayer.sdkSettings.client.ManagedGroupType",[{no:0,name:"MANAGED_GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"MANAGED_GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"MANAGED_GROUP_TYPE_WP",localName:"WP"}]),UY=k.makeEnum("streamlayer.sdkSettings.client.GroupType",[{no:0,name:"GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"GROUP_TYPE_WP",localName:"WP"}]),FY=k.makeMessageType("streamlayer.sdkSettings.client.NotifySettings",()=>[{no:1,name:"allow",kind:"enum",T:k.getEnumType(aE)}]),VY=k.makeMessageType("streamlayer.sdkSettings.client.SoundSettings",()=>[{no:1,name:"allow",kind:"enum",T:k.getEnumType(aE)}]),V5=k.makeMessageType("streamlayer.sdkSettings.client.ClientSettingsNotifications",()=>[{no:1,name:"notify",kind:"message",T:FY},{no:2,name:"sound",kind:"message",T:VY}]),gy=k.makeMessageType("streamlayer.sdkSettings.client.ClientSettings",()=>[{no:1,name:"visible_status",kind:"enum",T:k.getEnumType(NY)},{no:2,name:"messages_notify",kind:"enum",T:k.getEnumType(RY)},{no:3,name:"friends_notify",kind:"enum",T:k.getEnumType(OY)},{no:4,name:"calls_sound",kind:"enum",T:k.getEnumType(AY)},{no:5,name:"messages_sound",kind:"enum",T:k.getEnumType(xY)},{no:6,name:"friends_sound",kind:"enum",T:k.getEnumType(PY)},{no:7,name:"twitter_notify",kind:"enum",T:k.getEnumType(LY)},{no:8,name:"twitter_sound",kind:"enum",T:k.getEnumType(MY)},{no:9,name:"gamification",kind:"message",T:V5},{no:10,name:"watch_party_invitation",kind:"message",T:V5},{no:11,name:"twitter_question",kind:"message",T:V5}]),jY=k.makeMessageType("streamlayer.sdkSettings.client.GetRequest",[]),BY=k.makeMessageType("streamlayer.sdkSettings.client.GetResponse",()=>[{no:1,name:"data",kind:"message",T:$Y}]),$Y=k.makeMessageType("streamlayer.sdkSettings.client.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:gy}],{localName:"GetResponse_GetResponseData"}),zY=k.makeMessageType("streamlayer.sdkSettings.client.UpdateRequest",()=>[{no:2,name:"settings",kind:"message",T:gy}]),HY=k.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse",()=>[{no:1,name:"data",kind:"message",T:qY}]),qY=k.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse.UpdateResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:gy}],{localName:"UpdateResponse_UpdateResponseData"}),GY=k.makeMessageType("streamlayer.sdkSettings.client.GetStreamRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),WY=k.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse",()=>[{no:1,name:"data",kind:"message",T:QY}]),QY=k.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:eC}],{localName:"GetStreamResponse_GetResponseData"}),YY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationRequest",[]),KY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse",()=>[{no:1,name:"data",kind:"message",T:ZY}]),ZY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:tC}],{localName:"GetOrganizationResponse_GetResponseData"}),XY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9,opt:!0}]),JY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse",()=>[{no:1,name:"data",kind:"message",T:eK}]),eK=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse.GetOrganizationAdvertisingResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:lU}],{localName:"GetOrganizationAdvertisingResponse_GetOrganizationAdvertisingResponseData"}),tK=k.makeMessageType("streamlayer.sdkSettings.client.ManagedGroup",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"fantasy_group_id",kind:"scalar",T:9},{no:3,name:"group_type",kind:"enum",T:k.getEnumType(DY)}]),nK=k.makeMessageType("streamlayer.sdkSettings.client.DeepLinkData",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"gamification",kind:"scalar",T:8},{no:4,name:"managed_group",kind:"message",T:tK},{no:5,name:"external_event_id",kind:"scalar",T:9},{no:6,name:"external_group_id",kind:"scalar",T:9},{no:7,name:"group_type",kind:"enum",T:k.getEnumType(UY)}]),aK=k.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkRequest",()=>[{no:1,name:"data",kind:"message",T:nK}]),rK=k.makeMessageType("streamlayer.sdkSettings.client.DeepLink",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"link_id",kind:"scalar",T:9}]),oK=k.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:sK}]),sK=k.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse.GenerateDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:rK}],{localName:"GenerateDeepLinkResponse_GenerateDeepLinkResponseData"}),iK=k.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),lK=k.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionRequest",[]),uK=k.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:cK}]),cK=k.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:eC}],{localName:"StreamSubscriptionResponse_ResponseData"}),dK=k.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:mK}]),mK=k.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:tC}],{localName:"OrganizationSubscriptionResponse_ResponseData"}),p2={typeName:"streamlayer.sdkSettings.client.Client",methods:{get:{name:"Get",I:jY,O:BY,kind:je.Unary},update:{name:"Update",I:zY,O:HY,kind:je.Unary},getStream:{name:"GetStream",I:GY,O:WY,kind:je.Unary},getOrganization:{name:"GetOrganization",I:YY,O:KY,kind:je.Unary},getOrganizationAdvertising:{name:"GetOrganizationAdvertising",I:XY,O:JY,kind:je.Unary},generateDeepLink:{name:"GenerateDeepLink",I:aK,O:oK,kind:je.Unary},streamSubscription:{name:"StreamSubscription",I:iK,O:uK,kind:je.ServerStreaming},organizationSubscription:{name:"OrganizationSubscription",I:lK,O:dK,kind:je.ServerStreaming}}},fK=k.makeMessageType("streamlayer.users.PublicChatUser",()=>[{no:1,name:"name",kind:"scalar",T:9}]),pK=k.makeMessageType("streamlayer.users.UserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:5,name:"avatar",kind:"scalar",T:9},{no:6,name:"public_chat",kind:"message",T:fK},{no:7,name:"public_name",kind:"scalar",T:9}]),yy=k.makeMessageType("streamlayer.users.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:pK}]),hK=k.makeMessageType("streamlayer.users.LoginRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]),gK=k.makeMessageType("streamlayer.users.AuthResponse",()=>[{no:1,name:"meta",kind:"message",T:yK},{no:2,name:"data",kind:"message",T:yy}]),yK=k.makeMessageType("streamlayer.users.AuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9},{no:3,name:"getstream",kind:"scalar",T:9}],{localName:"AuthResponse_AuthResponseMetadata"}),vK=k.makeMessageType("streamlayer.users.RegisterRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),TK=k.makeMessageType("streamlayer.users.Referral",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"watching_game",kind:"scalar",T:9}]),bK=k.makeMessageType("streamlayer.users.RegisterResponse",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"requires_activation",kind:"scalar",T:8},{no:3,name:"referral",kind:"message",T:TK}]),kK=k.makeMessageType("streamlayer.users.RequestPasswordRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),SK=k.makeMessageType("streamlayer.users.RequestPasswordResponse",()=>[{no:1,name:"requested",kind:"scalar",T:8},{no:2,name:"uid",kind:"scalar",T:9}]),wK=k.makeMessageType("streamlayer.users.MeRequest",[]),CK=k.makeMessageType("streamlayer.users.MeResponse",()=>[{no:1,name:"data",kind:"message",T:yy}]),EK=k.makeMessageType("streamlayer.users.UpdateMetadataRequest",()=>[{no:1,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:2,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),_K=k.makeMessageType("streamlayer.users.UpdateAvatarRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_avatar",kind:"scalar",T:9,oneof:"avatar"},{no:3,name:"del_avatar",kind:"scalar",T:9,oneof:"avatar"}]),IK=k.makeMessageType("streamlayer.users.UpdateAvatarResponse",[]),NK=k.makeMessageType("streamlayer.users.UpdatePublicChatNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),RK=k.makeMessageType("streamlayer.users.UpdatePublicChatNameResponse",[]),OK=k.makeMessageType("streamlayer.users.UpdatePublicNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),LK=k.makeMessageType("streamlayer.users.UpdatePublicNameResponse",[]),AK=k.makeMessageType("streamlayer.users.UpdateMetadataResponse",[]),xK=k.makeMessageType("streamlayer.users.InviteRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"referral",kind:"message",T:PK}]),PK=k.makeMessageType("streamlayer.users.InviteRequest.InviteReferral",()=>[{no:1,name:"watching_game",kind:"scalar",T:9}],{localName:"InviteRequest_InviteReferral"}),MK=k.makeMessageType("streamlayer.users.InviteResponse",[]),DK=k.makeMessageType("streamlayer.users.BypassAuthRequest",()=>[{no:1,name:"user_key",kind:"scalar",T:9},{no:2,name:"schema",kind:"scalar",T:9},{no:3,name:"init",kind:"scalar",T:8},{no:4,name:"inviter_key",kind:"scalar",T:9,opt:!0}]),UK=k.makeMessageType("streamlayer.users.BypassAuthResponse",()=>[{no:1,name:"meta",kind:"message",T:FK},{no:2,name:"data",kind:"message",T:yy,opt:!0}]),FK=k.makeMessageType("streamlayer.users.BypassAuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9,opt:!0},{no:3,name:"token",kind:"scalar",T:9,opt:!0},{no:4,name:"getstream",kind:"scalar",T:9},{no:5,name:"inviter_key",kind:"scalar",T:9,opt:!0}],{localName:"BypassAuthResponse_AuthResponseMetadata"}),VK=k.makeMessageType("streamlayer.users.GetFriendsRequest",()=>[{no:1,name:"last_created_at",kind:"scalar",T:9,opt:!0},{no:2,name:"limit",kind:"scalar",T:5,opt:!0}]),jK=k.makeMessageType("streamlayer.users.GetFriendsResponse",()=>[{no:1,name:"data",kind:"message",T:$K,repeated:!0},{no:2,name:"metadata",kind:"message",T:BK}]),BK=k.makeMessageType("streamlayer.users.GetFriendsResponse.ResponseMeta",()=>[{no:1,name:"last_created_at",kind:"scalar",T:9}],{localName:"GetFriendsResponse_ResponseMeta"}),$K=k.makeMessageType("streamlayer.users.GetFriendsResponse.FriendData",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"tinode_id",kind:"scalar",T:9},{no:3,name:"sl_id",kind:"scalar",T:9}],{localName:"GetFriendsResponse_FriendData"}),vy={typeName:"streamlayer.users.Users",methods:{login:{name:"Login",I:hK,O:gK,kind:je.Unary},register:{name:"Register",I:vK,O:bK,kind:je.Unary},requestPassword:{name:"RequestPassword",I:kK,O:SK,kind:je.Unary},me:{name:"Me",I:wK,O:CK,kind:je.Unary},invite:{name:"Invite",I:xK,O:MK,kind:je.Unary},bypassAuth:{name:"BypassAuth",I:DK,O:UK,kind:je.Unary},updateMetadata:{name:"UpdateMetadata",I:EK,O:AK,kind:je.Unary},updateAvatar:{name:"UpdateAvatar",I:_K,O:IK,kind:je.Unary},updatePublicChatName:{name:"UpdatePublicChatName",I:NK,O:RK,kind:je.Unary},updatePublicName:{name:"UpdatePublicName",I:OK,O:LK,kind:je.Unary},getFriends:{name:"GetFriends",I:VK,O:jK,kind:je.Unary}}};var Gi;(function(n){n.SCHEMA="schema",n.EXTERNAL_TOKEN="eToken",n.TOKEN="token"})(Gi||(Gi={}));class zK extends Qz{constructor(){super("user");U(this,"setSchema",o=>{this.write(Gi.SCHEMA,o)});U(this,"getSchema",()=>this.read(Gi.SCHEMA));U(this,"setToken",o=>{this.write(Gi.TOKEN,o)});U(this,"getToken",()=>this.read(Gi.TOKEN));U(this,"setExternalToken",o=>{this.write(Gi.EXTERNAL_TOKEN,o)});U(this,"getExternalToken",()=>this.read(Gi.EXTERNAL_TOKEN));U(this,"removeToken",()=>{this.remove(Gi.TOKEN)})}}var yS;(function(n){n.DISABLED="disabled",n.INITIALIZATION="initialization",n.READY="ready",n.FAILED="failed",n.SUSPENDED="suspended"})(yS||(yS={}));const Lo={typeName:"streamlayer.interactive.feed.Feed",methods:{get:{name:"Get",I:uD,O:cD,kind:je.Unary},subscription:{name:"Subscription",I:pM,O:hM,kind:je.ServerStreaming},votingSubscription:{name:"VotingSubscription",I:yM,O:vM,kind:je.ServerStreaming},questionSubscription:{name:"QuestionSubscription",I:kM,O:SM,kind:je.ServerStreaming},questionByUser:{name:"QuestionByUser",I:EM,O:_M,kind:je.Unary},syncQuestion:{name:"SyncQuestion",I:NM,O:OM,kind:je.Unary},getQuestion:{name:"GetQuestion",I:AM,O:xM,kind:je.Unary},questionDetail:{name:"QuestionDetail",I:MM,O:DM,kind:je.Unary},submitAnswer:{name:"SubmitAnswer",I:FM,O:jM,kind:je.Unary},submitInplay:{name:"SubmitInplay",I:$M,O:HM,kind:je.Unary},skipQuestion:{name:"SkipQuestion",I:qM,O:WM,kind:je.Unary},pickHistory:{name:"PickHistory",I:YM,O:KM,kind:je.Unary},insightHistory:{name:"InsightHistory",I:JM,O:nD,kind:je.Unary},tweetHistory:{name:"TweetHistory",I:rD,O:oD,kind:je.Unary},promotionHistory:{name:"PromotionHistory",I:mD,O:fD,kind:je.Unary},list:{name:"List",I:gD,O:vD,kind:je.Unary},item:{name:"Item",I:bD,O:kD,kind:je.Unary},feedSubscription:{name:"FeedSubscription",I:SD,O:wD,kind:je.ServerStreaming}}},HK=k.makeEnum("streamlayer.interactive.leaderboard.LeaderboardType",[{no:0,name:"LEADERBOARD_TYPE_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_TYPE_TOURNAMENT",localName:"TOURNAMENT"},{no:2,name:"LEADERBOARD_TYPE_EVENT",localName:"EVENT"}]),rE=k.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:k.getEnumType(HK)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"event_ids",kind:"scalar",T:3,repeated:!0},{no:5,name:"leaderboards",kind:"message",T:rE,repeated:!0},{no:6,name:"created_at",kind:"scalar",T:3}]),Ty=k.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardItem",()=>[{no:1,name:"streak",kind:"scalar",T:5},{no:2,name:"correct",kind:"scalar",T:5},{no:3,name:"incorrect",kind:"scalar",T:5},{no:4,name:"points",kind:"scalar",T:5},{no:5,name:"rank",kind:"scalar",T:5},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"avatar",kind:"scalar",T:9},{no:8,name:"user_id",kind:"scalar",T:9},{no:9,name:"recent_correct",kind:"scalar",T:5},{no:10,name:"streak_loss",kind:"scalar",T:5},{no:11,name:"friends_rank",kind:"scalar",T:5},{no:12,name:"in_top",kind:"scalar",T:5}]),qK=k.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem",()=>[{no:1,name:"summary",kind:"message",T:Ty},{no:2,name:"percentage",kind:"message",T:GK}]),GK=k.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem.SummaryPercentage",()=>[{no:1,name:"correct",kind:"scalar",T:5},{no:2,name:"average",kind:"scalar",T:5}],{localName:"LeaderboardSummaryItem_SummaryPercentage"}),WK=k.makeMessageType("streamlayer.interactive.leaderboard.ListRequest",()=>[{no:1,name:"pagination",kind:"message",T:C6},{no:2,name:"users_ids",kind:"scalar",T:9,repeated:!0},{no:3,name:"event_id",kind:"scalar",T:4},{no:4,name:"leaderboard_id",kind:"scalar",T:9}]),QK=k.makeMessageType("streamlayer.interactive.leaderboard.ListResponse",()=>[{no:1,name:"data",kind:"message",T:YK,repeated:!0},{no:2,name:"meta",kind:"message",T:KK}]),YK=k.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ty}],{localName:"ListResponse_ListResponseData"}),KK=k.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"ListResponse_ListResponseMeta"}),ZK=k.makeMessageType("streamlayer.interactive.leaderboard.SummaryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"user_id",kind:"scalar",T:9},{no:3,name:"leaderboard_id",kind:"scalar",T:9},{no:4,name:"users_ids",kind:"scalar",T:9,repeated:!0}]),XK=k.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:JK}]),JK=k.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse.SummaryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:qK}],{localName:"SummaryResponse_SummaryResponseData"}),eZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9}]),tZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse",()=>[{no:2,name:"data",kind:"message",T:nZ}]),nZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse.EventLeaderboardsResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:rE}],{localName:"EventLeaderboardsResponse_EventLeaderboardsResponseData"}),aZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"organization_id",kind:"scalar",T:9},{no:3,name:"pagination",kind:"message",T:C6},{no:4,name:"sort",kind:"message",T:uM}]),rZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse",()=>[{no:1,name:"data",kind:"message",T:oZ,repeated:!0},{no:2,name:"meta",kind:"message",T:sZ}]),oZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ty}],{localName:"EventLeaderboardResponse_ListResponseData"}),sZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"EventLeaderboardResponse_ListResponseMeta"}),oE={typeName:"streamlayer.interactive.leaderboard.Leaderboard",methods:{list:{name:"List",I:WK,O:QK,kind:je.Unary},summary:{name:"Summary",I:ZK,O:XK,kind:je.Unary},eventLeaderboards:{name:"EventLeaderboards",I:eZ,O:tZ,kind:je.Unary},eventLeaderboard:{name:"EventLeaderboard",I:aZ,O:rZ,kind:je.Unary}}};var vS;(function(n){n.SHOWED="showed"})(vS||(vS={}));var TS;(function(n){n.ALLOWED="allowed",n.DISALLOWED="disallowed"})(TS||(TS={}));var bS;(function(n){n.UNKNOWN="unknown",n.ALREADY_VOTED="already_voted"})(bS||(bS={}));var kS;(function(n){n.ONBOARDING="onboarding",n.ONBOARDING_IO="onboarding_io"})(kS||(kS={}));Cm("deep_link");Cm("bypass");new zK;Cm("video_player");ye.FACTOID+"",ye.POLL+"",ye.TRIVIA+"",ye.PREDICTION+"",ye.TWEET+"";const iZ=k.makeMessageType("streamlayer.shortLinks.GenerateRequest",()=>[{no:1,name:"web",kind:"scalar",T:9},{no:2,name:"mobile",kind:"scalar",T:9}]),lZ=k.makeMessageType("streamlayer.shortLinks.GenerateResponse",()=>[{no:1,name:"data",kind:"message",T:uZ}]),uZ=k.makeMessageType("streamlayer.shortLinks.GenerateResponse.GenerateResponseData",()=>[{no:1,name:"link",kind:"scalar",T:9}],{localName:"GenerateResponse_GenerateResponseData"}),cZ={typeName:"streamlayer.shortLinks.LinksClient",methods:{generate:{name:"Generate",I:iZ,O:lZ,kind:je.Unary}}};var SS;(function(n){n.Unset="unset",n.Required="required",n.Optional="optional",n.Completed="completed",n.Disabled="disabled",n.Unavailable="unavailable"})(SS||(SS={}));ye.POLL,ye.PREDICTION,ye.TRIVIA;const dZ={[yt.GAMES]:!0},sE=P("div")({name:"Navigation",class:"n6tbwuy",propsAsIs:!1}),mZ=()=>PC,wS=P(mZ())({name:"NavigationItems",class:"n1up4z7v",propsAsIs:!0}),fZ=()=>wt,pZ=P(fZ())({name:"ButtonIcon",class:"b11wpe79",propsAsIs:!0}),hZ=P("div")({name:"Container",class:"calnblm",propsAsIs:!1}),gZ=P("div")({name:"Title",class:"t1438p52",propsAsIs:!1}),yZ=P("div")({name:"CloseIconWrap",class:"c17srj38",propsAsIs:!1}),vZ=()=>wt,TZ=P(vZ())({name:"CloseIcon",class:"clqia8k",propsAsIs:!0}),bZ=()=>wt,kZ=P(bZ())({name:"DashboardIcon",class:"df5w958",propsAsIs:!0}),SZ="h12x6aiv";W.forwardRef(({sdk:n,className:a},o)=>{const l=()=>{n.closeFeature()};return w.jsxs(sE,{className:Su(a,SZ),children:[w.jsxs(hZ,{children:[w.jsxs(gZ,{children:[w.jsx(kZ,{name:"dashboard"}),"Dashboard"]}),w.jsx(yZ,{onClick:l,children:w.jsx(TZ,{name:"icon-cross"})})]}),w.jsx("div",{ref:o})]})});W.forwardRef(({sdk:n,className:a},o)=>{const l=Ut(n.sdkStore.organizationSettings),c=Ut(n.sdkStore.streamSettings),p=Ut(n.getActiveFeature()),f=W.useMemo(()=>{const b=(c==null?void 0:c.data)||(l==null?void 0:l.data);return b!=null&&b.overlays?b.overlays:[]},[l,c]),y=W.useMemo(()=>[...f.filter(({enableSdkButton:b,type:C})=>C===yt.GAMES||b).map(b=>({id:b.type,onClick:()=>n.openFeature(b.type),disabled:!(b.type in dZ),label:b.name,icon:w.jsx("img",{src:b.icon,alt:""}),position:b.position*10}))].sort((b,C)=>b.position-C.position),[f,n]);return w.jsxs(sE,{className:a,children:[y.length!==0&&w.jsx(wS,{children:[w.jsx(im,{id:"Channels",onClick:()=>n.closeFeature(),label:"Channels",active:p===0},"Channels"),...y.map(b=>b.id===yt.GAMES?w.jsx(im,{...b,active:b.id===p,label:"StreamLayer +",id:"featuredGroups",icon:w.jsx(pZ,{name:"icon-btn-feature-groups","data-selected":b.id===p})},b.id):w.jsx(im,{...b,icon:void 0,active:b.id===p},b.id))]}),!y.length&&w.jsx(wS,{children:[w.jsx(im,{id:"empty",label:"No Features...",active:!1,disabled:!0},"empty")]}),w.jsx("div",{ref:o})]})});const C9=k.makeEnum("streamlayer.analytics.v1.interactions.InteractionActionType",[{no:0,name:"INTERACTION_ACTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"INTERACTION_ACTION_TYPE_TAP",localName:"TAP"},{no:2,name:"INTERACTION_ACTION_TYPE_CALL",localName:"CALL"},{no:3,name:"INTERACTION_ACTION_TYPE_MESSAGE",localName:"MESSAGE"},{no:4,name:"INTERACTION_ACTION_TYPE_SCROLL",localName:"SCROLL"}]),Ys=k.makeEnum("streamlayer.analytics.v1.notifications.NotificationKind",[{no:0,name:"NOTIFICATION_KIND_UNSET",localName:"UNSET"},{no:1,name:"NOTIFICATION_KIND_MESSAGE",localName:"MESSAGE"},{no:2,name:"NOTIFICATION_KIND_CALL",localName:"CALL"},{no:3,name:"NOTIFICATION_KIND_TWITTER",localName:"TWITTER"},{no:4,name:"NOTIFICATION_KIND_WAVE",localName:"WAVE"},{no:5,name:"NOTIFICATION_KIND_INPLAY",localName:"INPLAY"},{no:6,name:"NOTIFICATION_KIND_GROUP_CALL",localName:"GROUP_CALL"},{no:7,name:"NOTIFICATION_KIND_MISSED_CALL",localName:"MISSED_CALL"},{no:8,name:"NOTIFICATION_KIND_MISSED_GROUP_CALL",localName:"MISSED_GROUP_CALL"},{no:9,name:"NOTIFICATION_KIND_WATCH_PARTY",localName:"WATCH_PARTY"},{no:10,name:"NOTIFICATION_KIND_POLLS",localName:"POLLS"}]),E9=k.makeEnum("streamlayer.analytics.v1.notifications.NotificationType",[{no:0,name:"NOTIFICATION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"NOTIFICATION_TYPE_IN_APP",localName:"IN_APP"},{no:2,name:"NOTIFICATION_TYPE_PUSH",localName:"PUSH"}]),wZ=k.makeEnum("streamlayer.analytics.v1.permissions.PermissionType",[{no:0,name:"PERMISSION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"PERMISSION_TYPE_ADDRESS_BOOK",localName:"ADDRESS_BOOK"},{no:2,name:"PERMISSION_TYPE_CALLING",localName:"CALLING"},{no:3,name:"PERMISSION_TYPE_CAMERA",localName:"CAMERA"}]),CZ=k.makeEnum("streamlayer.analytics.v1.waves.WaveCategory",[{no:0,name:"WAVE_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"WAVE_CATEGORY_WATCHING",localName:"WATCHING"},{no:2,name:"WAVE_CATEGORY_MESSAGING",localName:"MESSAGING"},{no:3,name:"WAVE_CATEGORY_VOICING",localName:"VOICING"}]),CS=k.makeMessageType("streamlayer.analytics.v2.streaming.SendResponse",()=>[{no:1,name:"result",kind:"enum",T:k.getEnumType(dP)}]),EZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendExtra",[]),vr=k.makeMessageType("streamlayer.analytics.v2.streaming.CommonData",()=>[{no:1,name:"event_id",kind:"scalar",T:4,opt:!0},{no:2,name:"category",kind:"enum",T:k.getEnumType(Fa),opt:!0},{no:3,name:"kind",kind:"enum",T:k.getEnumType(la),opt:!0},{no:4,name:"screen_orientation",kind:"enum",T:k.getEnumType(d9),opt:!0},{no:5,name:"session_id",kind:"scalar",T:9,opt:!0},{no:6,name:"overlay_session_id",kind:"scalar",T:9,opt:!0},{no:7,name:"topic_id",kind:"scalar",T:9,opt:!0},{no:8,name:"topic_type",kind:"enum",T:k.getEnumType(Wn),opt:!0},{no:9,name:"parent_topic_id",kind:"scalar",T:9,opt:!0},{no:10,name:"parent_topic_type",kind:"enum",T:k.getEnumType(Wn),opt:!0},{no:11,name:"participants_count",kind:"scalar",T:13,opt:!0},{no:12,name:"route_map",kind:"scalar",T:9,opt:!0},{no:13,name:"track_timestamp",kind:"scalar",T:4,opt:!0},{no:14,name:"topic_sub_type",kind:"enum",T:k.getEnumType(Qs),opt:!0},{no:15,name:"country",kind:"scalar",T:9,opt:!0}]),_Z=k.makeMessageType("streamlayer.analytics.v2.streaming.SendAuthenticationsMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),IZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendCallsMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),NZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendConversationsMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),RZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendInteractionsMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"action_type",kind:"enum",T:k.getEnumType(C9)}]),OZ=k.makeMessageType("streamlayer.analytics.v2.streaming.EventOpenedMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),LZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendInvitationsMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"category",kind:"enum",T:k.getEnumType(f9)},{no:3,name:"from",kind:"enum",T:k.getEnumType(c2)}]),AZ=k.makeMessageType("streamlayer.analytics.v2.streaming.LaunchButtonMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),xZ=k.makeMessageType("streamlayer.analytics.v2.streaming.NotificationMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"notification_kind",kind:"enum",T:k.getEnumType(Ys)},{no:3,name:"notification_type",kind:"enum",T:k.getEnumType(E9)}]),PZ=k.makeMessageType("streamlayer.analytics.v2.streaming.PermissionMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"permission",kind:"enum",T:k.getEnumType(wZ)}]),MZ=k.makeMessageType("streamlayer.analytics.v2.streaming.ButtonInitializedMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),DZ=k.makeMessageType("streamlayer.analytics.v2.streaming.WavesMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"category",kind:"enum",T:k.getEnumType(CZ)}]),UZ=k.makeMessageType("streamlayer.analytics.v2.streaming.HeartbeatMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),FZ=k.makeMessageType("streamlayer.analytics.v2.streaming.GamesMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"poll_opened_from",kind:"enum",T:k.getEnumType(zr)}]),VZ=k.makeMessageType("streamlayer.analytics.v2.streaming.Login",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"token",kind:"scalar",T:9}]),jZ=k.makeMessageType("streamlayer.analytics.v2.streaming.Logout",()=>[{no:1,name:"common",kind:"message",T:vr}]),ES=k.makeMessageType("streamlayer.analytics.v2.streaming.SendRequest",()=>[{no:1,name:"auth",kind:"message",T:_Z,oneof:"message"},{no:2,name:"call",kind:"message",T:IZ,oneof:"message"},{no:3,name:"conversations",kind:"message",T:NZ,oneof:"message"},{no:4,name:"interactions",kind:"message",T:RZ,oneof:"message"},{no:5,name:"event_opened",kind:"message",T:OZ,oneof:"message"},{no:6,name:"invitation",kind:"message",T:LZ,oneof:"message"},{no:7,name:"launch_button",kind:"message",T:AZ,oneof:"message"},{no:8,name:"notification",kind:"message",T:xZ,oneof:"message"},{no:9,name:"permission",kind:"message",T:PZ,oneof:"message"},{no:10,name:"button_init",kind:"message",T:MZ,oneof:"message"},{no:11,name:"waves",kind:"message",T:DZ,oneof:"message"},{no:12,name:"heartbeat",kind:"message",T:UZ,oneof:"message"},{no:13,name:"games",kind:"message",T:FZ,oneof:"message"},{no:14,name:"login",kind:"message",T:VZ,oneof:"message"},{no:15,name:"logout",kind:"message",T:jZ,oneof:"message"},{no:100,name:"extra",kind:"message",T:EZ}]),iE={typeName:"streamlayer.analytics.v2.streaming.AnalyticsService",methods:{send:{name:"Send",I:ES,O:CS,kind:je.ClientStreaming},unary:{name:"Unary",I:ES,O:CS,kind:je.Unary}}};function BZ(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lE={exports:{}},Vn=lE.exports={},Ks,Zs;function _9(){throw new Error("setTimeout has not been defined")}function I9(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ks=setTimeout:Ks=_9}catch{Ks=_9}try{typeof clearTimeout=="function"?Zs=clearTimeout:Zs=I9}catch{Zs=I9}})();function uE(n){if(Ks===setTimeout)return setTimeout(n,0);if((Ks===_9||!Ks)&&setTimeout)return Ks=setTimeout,setTimeout(n,0);try{return Ks(n,0)}catch{try{return Ks.call(null,n,0)}catch{return Ks.call(this,n,0)}}}function $Z(n){if(Zs===clearTimeout)return clearTimeout(n);if((Zs===I9||!Zs)&&clearTimeout)return Zs=clearTimeout,clearTimeout(n);try{return Zs(n)}catch{try{return Zs.call(null,n)}catch{return Zs.call(this,n)}}}var al=[],hm=!1,Yc,Qh=-1;function zZ(){!hm||!Yc||(hm=!1,Yc.length?al=Yc.concat(al):Qh=-1,al.length&&cE())}function cE(){if(!hm){var n=uE(zZ);hm=!0;for(var a=al.length;a;){for(Yc=al,al=[];++Qh<a;)Yc&&Yc[Qh].run();Qh=-1,a=al.length}Yc=null,hm=!1,$Z(n)}}Vn.nextTick=function(n){var a=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)a[o-1]=arguments[o];al.push(new dE(n,a)),al.length===1&&!hm&&uE(cE)};function dE(n,a){this.fun=n,this.array=a}dE.prototype.run=function(){this.fun.apply(null,this.array)};Vn.title="browser";Vn.browser=!0;Vn.env={};Vn.argv=[];Vn.version="";Vn.versions={};function il(){}Vn.on=il;Vn.addListener=il;Vn.once=il;Vn.off=il;Vn.removeListener=il;Vn.removeAllListeners=il;Vn.emit=il;Vn.prependListener=il;Vn.prependOnceListener=il;Vn.listeners=function(n){return[]};Vn.binding=function(n){throw new Error("process.binding is not supported")};Vn.cwd=function(){return"/"};Vn.chdir=function(n){throw new Error("process.chdir is not supported")};Vn.umask=function(){return 0};var HZ=lE.exports;const St=BZ(HZ),qZ=hw({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:n=>{console.log(n)}}}),ti=(n,a)=>qZ.child({name:n},a);class GZ extends Event{constructor(o,l){super(o);U(this,"slEventBus");this.slEventBus=l}}const WZ=ti("event-bus");class QZ{constructor(a="sl-event-bus"){U(this,"name");U(this,"listeners");U(this,"emit",(a,o)=>{const l=new GZ(this.name,{...o,type:a});WZ.debug(l,"Emitting event"),window.dispatchEvent(l)});U(this,"destroy",()=>{this.listeners.forEach(a=>{window.removeEventListener(this.name,a),this.listeners.delete(a)}),this.listeners.clear()});this.name=a,this.listeners=new Set}listen(a){return window.addEventListener(this.name,a),this.listeners.add(a),()=>{this.off(a)}}off(a){window.removeEventListener(this.name,a),this.listeners.delete(a)}}class YZ{}window.slStore=Object.create(null);class L6{constructor(a,o){U(this,"store");U(this,"name");this.store=a,this.name=o}getStore(){return this.store}}const KZ=n=>{const a=Object.keys(n);return YL(a.map(o=>n[o].getStore()),(...o)=>Object.fromEntries(a.map((l,c)=>[l,o[c]])))};class Xc extends L6{constructor(){super(...arguments);U(this,"getValues",()=>this.getStore().get());U(this,"getValue",o=>this.getStore().get()[o]);U(this,"setValue",(o,l)=>this.getStore().setKey(o,l));U(this,"subscribe",(...o)=>this.getStore().subscribe(...o));U(this,"unsubscribe",()=>this.getStore().off())}}const co=n=>a9(n);var Ki;(function(n){n.ORGANIZATION="ORGANIZATION",n.STREAM="STREAM"})(Ki||(Ki={}));const ZZ={[yt.BETTING]:"betting",[yt.GAMES]:"games",[yt.PUBLIC_CHAT]:"publicChat",[yt.TWITTER]:"twitter"};var o2;(function(n){n.Ready="ready",n.Suspended="suspended"})(o2||(o2={}));class mE{constructor({settings:a,...o},l){U(this,"status");U(this,"source");U(this,"config");U(this,"settings");U(this,"listeners",new Set);U(this,"settingsKey");U(this,"enable",()=>{this.status.set(o2.Ready)});U(this,"disable",()=>{this.status.set(o2.Suspended)});U(this,"setFeatureConfig",({settings:a,...o})=>{var c;let l;for(l in o)this.config.setValue(l,o[l]);if(((c=a==null?void 0:a.overlaySettings)==null?void 0:c.case)!==void 0&&(a==null?void 0:a.overlaySettings.case)===this.settingsKey){const p=a.overlaySettings.value;if(p!==void 0){let f;for(f in p)p[f]!==0&&p[f]!==""&&this.settings.setValue(f,p[f])}}});U(this,"update",(a,o)=>{this.source===Ki.STREAM&&o===Ki.ORGANIZATION||(this.setFeatureConfig(a),this.source=o)});this.settingsKey=ZZ[o.type],this.status=ku(o2.Suspended),this.config=new Xc(co(o),`feature:config:${this.settingsKey}`),this.settingsKey!==void 0&&(a==null?void 0:a.overlaySettings.case)===this.settingsKey?this.settings=new Xc(co(a.overlaySettings.value),`feature:settings:${this.settingsKey}`):this.settings=new Xc(co({}),`feature:settings:${this.settingsKey}`),this.source=l}get featureConfig(){return this.config.getStore()}get featureSettings(){return this.settings.getStore()}registerEventListener(a){this.listeners.add(a)}fireEvent(a){for(const o of this.listeners.values())try{o.onEvent(a)}catch(l){console.error(l)}}}class Oo extends L6{constructor(){super(...arguments);U(this,"getValue",()=>this.getStore().get());U(this,"setValue",o=>this.getStore().set(o));U(this,"subscribe",o=>this.getStore().subscribe(o));U(this,"unsubscribe",()=>this.getStore().off())}getValues(){throw new Error("not implemented")}listen(o){return this.getStore().listen(o)}get(){return this.getStore().get()}}const da=n=>ku(n);class ei extends L6{constructor(o,l,c){super(o,`api:${l}`);U(this,"atomStore");U(this,"getAtomStore",()=>this.atomStore);U(this,"getValue",async()=>{const o=this.getStore();if(o.value===void 0)throw new Error("no store");return await o.value.promise,o.get().data});U(this,"getValues",()=>this.getStore().get());U(this,"setValue",o=>this.getStore().set({loading:!1,data:o==null?void 0:o.data}));U(this,"subscribe",o=>this.getStore().subscribe(o));U(this,"unsubscribe",()=>{throw new Error("not implemented")});U(this,"invalidate",()=>{this.store.invalidate()});U(this,"listen",o=>this.getStore().listen(o));U(this,"key",()=>this.getStore().key);U(this,"off",()=>this.getStore().off());this.atomStore=ku(),c&&o.subscribe(p=>{const f=this.atomStore.get(),y=c(p,f);f!==y&&this.atomStore.set(y)})}get(){throw new Error("not implemented")}}const ua=new QZ;async function*XZ(n,a){for await(const o of a){n.response.message=o,n.received_at=Date.now(),n.id=fE++;const l={type:"__GRPC_DEVTOOLS_EXTENSION__",data:n};window.postMessage(l),yield o}}let fE=0;const JZ=()=>n=>async a=>{const o={id:fE++,name:a.url,stream:a.stream,sent_at:Date.now(),request:{header:Object.fromEntries(a.header.entries()),message:a.message},response:{}};window.postMessage({type:"__GRPC_DEVTOOLS_EXTENSION__",data:o});try{const l=await n(a);if(o.received_at=Date.now(),o.response.header=Object.fromEntries(l.header.entries()),o.response.trailer=Object.fromEntries(l.trailer.entries()),a.stream){const c={type:"__GRPC_DEVTOOLS_EXTENSION__",data:{...o,stream:!1}};return window.postMessage(c),{...l,message:XZ(o,l.message)}}else{o.response.message=l.message,o.latency=o.received_at-o.sent_at;const c={type:"__GRPC_DEVTOOLS_EXTENSION__",data:o};window.postMessage(c)}return l}catch(l){o.received_at=Date.now(),o.response.trailer={"grpc-status":l.code,"grpc-message":l.rawMessage},o.response.message=l.rawMessage,o.latency=o.received_at-o.sent_at;const c={type:"__GRPC_DEVTOOLS_EXTENSION__",data:o};throw window.postMessage(c),l}};window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));function pE(n){return n instanceof DOMException&&(n.code===22||n.code===1014||n.name==="QuotaExceededError"||n.name==="NS_ERROR_DOM_QUOTA_REACHED")}class Nm{constructor(a="main",o=window.localStorage){U(this,"delimiter",":");U(this,"prefix");U(this,"storage");U(this,"clear",()=>{for(const a in window.localStorage)a.startsWith(this.prefix)&&this.storage.removeItem(a)});U(this,"generateKey",a=>`${this.prefix}${this.delimiter}${a.join(this.delimiter)}`);U(this,"write",(...a)=>{const o=a.pop()||"",l=this.generateKey(a);try{this.storage.setItem(l,o)}catch(c){pE(c)&&this.storage===window.sessionStorage&&(window.sessionStorage.removeItem("slstreamlogs"),this.storage.setItem(l,o))}});U(this,"read",(...a)=>{const o=this.storage.getItem(this.generateKey(a));return o===null?void 0:o});U(this,"remove",(...a)=>{this.storage.removeItem(this.generateKey(a))});this.prefix=`sl-sdk${this.delimiter}${a}`,this.storage=o}}var us;(function(n){n.Init="init",n.Ready="ready",n.Connecting="connecting",n.Connected="connected",n.Disconnected="disconnected",n.Failed="failed",n.Reconnect="reconnect",n.Reconnecting="reconnecting"})(us||(us={}));const _S=ti("grpc:stream");class eX{constructor(a,o,l,c){U(this,"params");U(this,"streamCancel");U(this,"method");U(this,"options");U(this,"headers");U(this,"listeners");U(this,"state");U(this,"store");U(this,"paramsListener");U(this,"reconnectTimeout");U(this,"attempt",0);U(this,"updateState",a=>{this.state.setValue("status",a),this.state.setValue("ts",new Date),this.addStateLog(`status => ${a}`)});U(this,"addStateLog",a=>{const o=this.state.getStore().get().log,l=`${this.options.name} ${new Date().toISOString()}: ${a}`;if(o.push(l),this.state.setValue("log",o),localStorage.getItem("SL_DEBUG")){a.startsWith("received data")?_S.trace({name:this.options.name,attempt:this.attempt},"received data"):_S.trace({name:this.options.name,attempt:this.attempt},a);try{window.sessionStorage.setItem("slstreamlogs",window.sessionStorage.getItem("slstreamlogs")+`
198
- `+l)}catch(c){pE(c)&&window.sessionStorage.removeItem("slstreamlogs"),window.sessionStorage.setItem("slstreamlogs",l)}}});U(this,"addListener",(a,o)=>this.listeners.has(a)?(this.addStateLog(`listener '${a}' not added, already exists`),()=>{}):(this.listeners.set(a,o),this.addStateLog(`listener '${a}' added`),()=>this.removeListener(a)));U(this,"removeListener",a=>{this.listeners.delete(a),this.addStateLog(`listener '${a}' removed`)});U(this,"connect",()=>{this.updateState(us.Connecting),this.streamCancel&&(this.addStateLog("disconnect prev connection"),this.streamCancel.abort(),this.streamCancel=void 0);const a="get"in this.params&&typeof this.params.get=="function"?this.params.get():this.params;(async()=>{this.streamCancel=new AbortController;try{const o={headers:this.headers.getValues(),signal:this.streamCancel.signal},l=this.method(a,o);for await(const c of l)this.attempt=0,this.onData(c)}catch(o){o instanceof zt&&o.code!=st.Canceled&&this.onStreamError(o)}})(),this.updateState(us.Connected)});U(this,"disconnect",()=>{var a;this.streamCancel&&this.streamCancel.abort(),this.listeners.clear(),(a=this.paramsListener)==null||a.call(this),clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.updateState(us.Disconnected)});U(this,"reconnect",()=>{if(this.reconnectTimeout)this.addStateLog("already reconnecting");else if(this.attempt<this.options.reconnectMaxAttempts){this.updateState(us.Reconnect);const a=Math.min(this.options.reconnectMaxDelay,Math.pow(2,this.attempt)*this.options.reconnectDelay),o=Math.round(a*(1+Math.random())/2);this.reconnectTimeout=setTimeout(()=>{this.attempt++,this.updateState(us.Reconnecting),this.addStateLog(`reconnect attempt ${this.attempt} after ${o}ms`),this.connect(),this.reconnectTimeout=void 0},o)}else this.addStateLog("max reconnect attempts reached"),this.disconnect()});U(this,"getStore",()=>{var a;return(a=this.store)==null?void 0:a.getStore()});U(this,"onData",a=>{try{this.addStateLog(`received data => ${JSON.stringify(a)}`),this.store&&this.store.setValue(a);for(const[,o]of this.listeners)o(a);this.addStateLog(`data routed to ${this.listeners.size} listeners`)}catch(o){this.addStateLog(`error process data => ${o}`)}});U(this,"onStreamError",a=>{if(this.addStateLog(`error => ${a?JSON.stringify(a):"undefined"}}`),a!==void 0){if(a instanceof zt&&a.code!==st.Canceled){this.updateState(us.Failed),this.state.setValue("error",a),this.reconnect();return}this.disconnect()}});const p={status:us.Init,ts:new Date,log:[]};this.state=new Xc(co(p),`subscription:${c.name}:state`),this.options={...c,reconnectDelay:c.reconnectDelay??1e3,reconnectMaxDelay:c.reconnectMaxDelay??3e4,reconnectMaxAttempts:c.reconnectMaxAttempts??10,withStore:c.withStore??!1},this.headers=a,this.listeners=new Map,this.params=l,this.method=o,c.withStore&&(this.store=new Oo(da(null),`subscription:${c.name}:store`)),"subscribe"in l&&typeof l.subscribe=="function"&&(this.paramsListener=l.subscribe(f=>{this.state.getValue("status")===us.Connected&&(this.addStateLog(`params updated, reconnect => ${JSON.stringify(f)}`),this.reconnect())})),this.updateState(us.Ready)}}const tX=new Set([st.Unknown,st.Internal,st.DeadlineExceeded,st.ResourceExhausted,st.FailedPrecondition,st.Unavailable,st.DataLoss]),IS=ti("grpc:retry"),nX=n=>async a=>{const o=a.contextValues.get(N9.retryAttempts),l=300,c=a.contextValues.get(N9.retryDelay);if(a.stream||o===0)return n(a);IS.trace({url:a.url,attempts:o,maxDelay:c},"retry options");for(let p=0;;p++)try{return await n(a)}catch(f){IS.trace({attempt:p,error:f},"retry attempt");const y=zt.from(f);if(p>=o||!(y instanceof zt)||!tX.has(y.code))throw f;const b=Math.min(c,Math.pow(2,p)*l),C=Math.round(b*(1+Math.random())/2);await new Promise(_=>setTimeout(_,C))}},N9={retryAttempts:c6(10,{description:"Number of attempts to retry"}),retryDelay:c6(3e4,{description:"Max delay between retries in milliseconds"})},aX=()=>{const n=localStorage.getItem("sl-device-id");if(n)return n;const a=S9();return localStorage.setItem("sl-device-id",a),a},rX=()=>{var n;return((n=navigator.userAgentData)==null?void 0:n.platform)||navigator.platform};class NS{constructor(a,o){U(this,"toJsonOptions",{emitDefaultValues:!1,enumAsInteger:!0,useProtoFieldName:!1});U(this,"transport");U(this,"streamTransport");U(this,"nanoquery");U(this,"host");U(this,"$headers");U(this,"interceptors",[]);U(this,"clients");U(this,"streamClients");U(this,"subscriptions");U(this,"opts");U(this,"addSubscription",(a,o,l)=>{const c=this.subscriptions.get(o);if(c)return c;const p=new eX(this.$headers,a,o,l);return this.subscriptions.set(o,p),p});U(this,"removeSubscription",a=>{a.disconnect(),this.subscriptions.delete(a.params)});U(this,"disconnect",()=>{var c,p;for(const[f,y]of this.subscriptions)y.disconnect(),this.subscriptions.delete(f);this.clients.clear(),this.streamClients.clear(),this.subscriptions.clear();const[a,o,l]=Gk({dedupeTime:(c=this.opts)==null?void 0:c.dedupeTime,refetchInterval:(p=this.opts)==null?void 0:p.refetchInterval});this.nanoquery={createFetcherStore:a,createMutatorStore:o,utils:l}});U(this,"registerInterceptor",a=>{this.interceptors.push(a)});U(this,"removeInterceptor",a=>{this.interceptors=this.interceptors.filter(o=>o!==a)});U(this,"getClient",a=>{const o=a.typeName;if(this.clients.has(o))return this.clients.get(o);const l=Dk(a,this.transport);return this.clients.set(o,l),l});U(this,"getStreamClient",a=>{const o=`stream-${a.typeName}`;if(this.clients.has(o))return this.clients.get(o);const l=Dk(a,this.streamTransport);return this.clients.set(o,l),l});U(this,"createPromiseClient",(a,{params:o=[],method:l})=>{const c=this.getClient(a),p=a.methods[l].name,f=[a.typeName,p.charAt(0).toLowerCase()+p.slice(1),...Array.isArray(o)?o:[o]],y=[a.typeName,p.charAt(0).toLowerCase()+p.slice(1)];return{client:c,createRequestOptions:b=>{const C=w9();for(const _ in b){const N=N9[_];C.set(N,b[_])}return C},queryKey:f,queryKeyStr:y.join("")}});U(this,"createStreamClient",a=>({client:this.getStreamClient(a)}));U(this,"setSdkKey",a=>{this.$headers.setValue("sdk",a)});U(this,"setAuth",(a,o)=>{this.$headers.setValue("authorization",a),this.$headers.setValue("sl-user-id",o)});U(this,"setHeader",(a,o)=>this.$headers.setValue(a,o));U(this,"getHeader",a=>this.$headers.getValue(a));U(this,"getHeaders",()=>this.$headers.getValues());U(this,"initInterceptors",()=>{var o;if(this.interceptors.length!==0)return;const a=l=>c=>{const p=this.$headers.getValues();for(const f in p)c.header.set(f,p[f]);return l(c)};this.interceptors.push(a),this.interceptors.push(JZ()),(o=this.opts)!=null&&o.retryable&&this.interceptors.push(nX)});this.host=a,this.opts=o,this.$headers=new Xc(co({"sl-device-id":aX(),"sl-device-os":rX()}),"transport:headers"),this.initInterceptors(),this.clients=new Map,this.streamClients=new Map,this.subscriptions=new Map;const[l,c,p]=Gk({dedupeTime:o==null?void 0:o.dedupeTime,refetchInterval:o==null?void 0:o.refetchInterval});this.nanoquery={createFetcherStore:l,createMutatorStore:c,utils:p},this.transport=qk({baseUrl:a,defaultTimeoutMs:1e4,interceptors:this.interceptors}),this.streamTransport=qk({baseUrl:a,interceptors:this.interceptors})}}const oX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(nE,{method:"retrieveEventId",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y;if(!f||typeof f!="string")return"";try{return((y=(await o.retrieveEventId({id:f})).data)==null?void 0:y.id)||""}catch{return""}}})},sX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(p2,{method:"getStream",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y;return f?(y=(await o.getStream({id:f})).data)==null?void 0:y.attributes:void 0}})},iX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(nE,{method:"summary",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y;return f?(y=(await o.summary({id:f})).data)==null?void 0:y.attributes:void 0}})},lX=(n,a)=>{const{queryKey:o,client:l}=a.createPromiseClient(vy,{method:"me",params:[n]});return a.nanoquery.createFetcherStore(o,{fetcher:async()=>{const{data:c}=await l.me({});return{data:c}}})},uX=n=>{const{client:a,createRequestOptions:o}=n.createPromiseClient(vy,{method:"bypassAuth"}),l=o({retryAttempts:0});return({userKey:c,schema:p,init:f,inviterKey:y})=>a.bypassAuth({userKey:c,schema:p,init:f,inviterKey:y},{contextValues:l})},cX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(p2,{method:"get",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async()=>{var c;return(c=(await o.get({})).data)==null?void 0:c.attributes}})},dX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(p2,{method:"getOrganization",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async()=>{const c=await o.getOrganization({});return c.data?{...c.data.attributes,id:c.data.id}:void 0}})},mX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(p2,{method:"getOrganizationAdvertising",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async()=>{var c;return(c=(await o.getOrganizationAdvertising({})).data)==null?void 0:c.attributes}})},fX=(n,a,o)=>{n.transport=new NS(a.host,{dedupeTime:1e3*60*5,refetchInterval:1e3*60*5,retryable:!0}),n.analyticsTransport=new NS(a.analyticsHost),n.sdk.host=n.transport.host,n.transport.setSdkKey(a.sdkKey),n.transport.setHeader("sl-sdk-version",a.version||"-"),n.transport.$headers.subscribe(l=>{n.analyticsTransport.$headers.getStore().set(l)}),n.sdk.onMount({name:"transport"},()=>()=>{n.transport.disconnect(),n.analyticsTransport.disconnect()}),o()};var Wi;(function(n){n.SCHEMA="schema",n.EXTERNAL_TOKEN="eToken",n.TOKEN="token"})(Wi||(Wi={}));class lm extends Nm{constructor(){super("user");U(this,"setSchema",o=>{this.write(Wi.SCHEMA,o)});U(this,"getSchema",()=>this.read(Wi.SCHEMA));U(this,"setToken",o=>{this.write(Wi.TOKEN,o)});U(this,"getToken",()=>this.read(Wi.TOKEN));U(this,"setExternalToken",o=>{this.write(Wi.EXTERNAL_TOKEN,o)});U(this,"getExternalToken",()=>this.read(Wi.EXTERNAL_TOKEN));U(this,"removeToken",()=>{this.remove(Wi.TOKEN)})}}var Zi;(function(n){n.DISABLED="disabled",n.INITIALIZATION="initialization",n.READY="ready",n.FAILED="failed",n.SUSPENDED="suspended"})(Zi||(Zi={}));const pX=n=>{const a=new lm,o=new Oo(da(a.getExternalToken()),"userKey"),l=new Oo(da(a.getToken()),"userToken"),c=new ei(lX(l.getStore(),n),"user",({data:f,error:y,loading:b},C)=>{var _;if(!y)return(_=f==null?void 0:f.data)!=null&&_.id?f.data.id:b===!1?void 0:C}),p=new ei(cX(l.getStore(),n),"userSettings");return{userKey:o,userToken:l,user:c,userSettings:p}},hX=n=>{const a=new Oo(da(void 0),"providerStreamId"),o=new ei(oX(a.getStore(),n),"slStreamId",p=>p==null?void 0:p.data),l=new ei(sX(o.getAtomStore(),n),"streamSettings"),c=new ei(iX(o.getAtomStore(),n),"streamSettings");return o.getAtomStore().listen(p=>{(p===""||p===void 0)&&(l.getStore().mutate(void 0),c.getStore().mutate(void 0))}),{providerStreamId:a,slStreamId:o,streamSettings:l,streamSummary:c}},gX=n=>{const a=new Oo(da(void 0),"enabled"),o=new Oo(da(Zi.DISABLED),"status"),l=new ei(dX(a.getStore(),n),"organizationSettings",y=>{var b;return(b=y==null?void 0:y.data)==null?void 0:b.id}),c=new ei(mX(l.getAtomStore(),n),"organizationAdvertising"),p=pX(n),f=hX(n);return{enabled:a,status:o,providerStreamId:f.providerStreamId,slStreamId:f.slStreamId,streamSettings:f.streamSettings,streamSummary:f.streamSummary,user:p.user,userKey:p.userKey,userToken:p.userToken,userSettings:p.userSettings,organizationSettings:l,organizationAdvertising:c}};class yX extends L6{constructor(o){const l=gX(o),c=KZ(l);super(c,"core");U(this,"stores");U(this,"subscribe",o=>{let l;for(l in this.stores){const c=o[l];l in o&&c!==void 0&&this.stores[l].subscribe(o[l])}});U(this,"unsubscribe",()=>this.getStore().off());this.stores=l}getValue(){throw new Error("Not implemented")}getValues(){return this.stores}setValue(){throw new Error("Not implemented")}}const vX=(n,a,o)=>{n.store=new yX(n.transport),n.stores=n.store.getValues(),n.sdk.enabled=n.stores.enabled.getStore(),n.sdk.status=n.stores.status.getStore(),n.sdk.sdkStore=Object.fromEntries(Object.entries(n.stores).map(([l,c])=>[l,c.getStore()])),n.sdk.organizationStore=()=>n.stores.organizationSettings.getStore(),n.sdk.streamStore=()=>n.stores.streamSettings.getStore(),n.sdk.streamSummary=()=>n.stores.streamSummary.getStore(),n.storeUnsubscribe=()=>{n.store.unsubscribe()},o()},TX=n=>{const{client:a}=n.createPromiseClient(oE,{method:"list"});return o=>a.list(o)},hE=n=>{const{client:a}=n.createPromiseClient(oE,{method:"summary"});return o=>a.summary(o)},bX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(vy,{method:"getFriends",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{if(!f)return[];try{return(await o.getFriends({})).data}catch{return[]}}})},kX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(Lo,{method:"get",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y;return(y=(await o.get({eventId:f})).data)==null?void 0:y.attributes},refetchInterval:0,dedupeTime:1e3*60*60})},SX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(Lo,{method:"syncQuestion",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var b,C,_,N;if(!f)return;const y=await o.syncQuestion({filter:{eventId:f}});if(((_=(C=(b=y.data)==null?void 0:b.attributes)==null?void 0:C.question)==null?void 0:_.type)!==ye.PROMOTION)return(N=y.data)==null?void 0:N.attributes},dedupeTime:1e3*60*10,refetchInterval:0})},wX=async(n,a)=>{const{client:o}=a.createPromiseClient(Lo,{method:"item",params:[n]});return(await o.item({id:n})).data},CX=(n,a)=>{const{client:o}=a.createStreamClient(Lo),l=ku({eventId:n.get()||"",feedId:""});return n.subscribe((c="")=>{l.set({eventId:c,feedId:""})}),a.addSubscription(o.subscription,l,{name:"feedSubscription"})},EX=(n,a)=>{const{client:o}=a.createStreamClient(Lo);return a.addSubscription(o.questionSubscription,{questionId:n},{name:"questionSubscription"})},_X=async(n,a)=>{var l,c;const{client:o}=a.createPromiseClient(Lo,{method:"questionByUser",params:[n]});return(c=(l=(await o.questionByUser({questionId:n})).data)==null?void 0:l.attributes)==null?void 0:c.question},R9=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(Lo,{method:"questionByUser",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y,b;return(b=(y=(await o.questionByUser({questionId:f})).data)==null?void 0:y.attributes)==null?void 0:b.question},dedupeTime:1e3*60*5})},gE=async(n,a)=>{var b;if(!n)return;const{client:o}=a.createPromiseClient(Lo,{method:"getQuestion",params:[n]}),l=await o.getQuestion({id:n});if(!((b=l.data)!=null&&b.attributes))return;const{options:c,notification:p,...f}=l.data.attributes,y=(c==null?void 0:c.options.case)==="promotion"?c==null?void 0:c.options.value:void 0;return{id:f.id,question:f,promotion:y,notification:p}},IX=(n,a,o)=>{const{client:l,queryKey:c}=o.createPromiseClient(Lo,{method:"list",params:[n,a]});return o.nanoquery.createFetcherStore(c,{fetcher:async(p,f,y,b)=>y?(await l.list({eventId:y,filter:{types:b===Jc.ALLOWED?[]:[ye.FACTOID,ye.PROMOTION,ye.TWEET],statuses:[yn.ACTIVE,yn.RESOLVED]}})).data:[],dedupeTime:0,refetchInterval:0})},NX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(Lo,{method:"list",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var b;if(!f)return;const y=(b=(await o.list({eventId:f,filter:{types:[ye.PROMOTION],statuses:[yn.ACTIVE]},pagination:{page:0,pageSize:1}})).data)==null?void 0:b[0];if(y.type==="promotion")return gE(y.id,a)},dedupeTime:0,refetchInterval:0})},RX=(n,a,o)=>{const l=gb([a,o],()=>{var C,_;const f=a.get();if(!f)return;const y=(C=o.get().data)==null?void 0:C.find(N=>N.id===(f==null?void 0:f.questionId)),b=(_=f==null?void 0:f.question)==null?void 0:_.openedFrom;return y?(y.openedFrom=b,y):f.question}),c=gb(l,f=>f&&f.type==="question"?f.id:void 0),p=R9(c,n);return{$store:l,$extendedStore:p,updateExtendedQuestion:f=>{const y=p.get().data,b=(C,_)=>{if(!C||!_)return C||_||[];const N=[];for(let O=0;O<C.length;O++)N.push({...C[O],..._[O],correct:C[O].correct,youVoted:C[O].youVoted,pointsEarned:C[O].pointsEarned});return N};p.mutate({...f,options:y==null?void 0:y.options,subject:y==null?void 0:y.subject,appearance:y==null?void 0:y.appearance,answers:b(y==null?void 0:y.answers,f==null?void 0:f.answers)})}}};var d6;(function(n){n.SHOWED="showed"})(d6||(d6={}));class OX extends Nm{constructor(){super("advertisement");U(this,"setShowed",o=>{this.write(d6.SHOWED,o,"true")});U(this,"isViewed",o=>this.read(d6.SHOWED,o))}}const LX=n=>{var f,y,b,C,_;const a=(y=(f=n.data)==null?void 0:f.attributes)==null?void 0:y.question;if((((_=(C=(b=n.data)==null?void 0:b.attributes)==null?void 0:C.feedItem)==null?void 0:_.type)==="promotion"?n.data.attributes.feedItem:void 0)===void 0||!a)return;const{options:o,notification:l,...c}=a,p=(o==null?void 0:o.options.case)==="promotion"?o.options.value:void 0;return{id:c.id,question:c,notification:l,promotion:p}},Dh=n=>n.startsWith("http://")||n.startsWith("https://")?new URL(n).toString():n,AX=({gamOptions:n,gamBaseUrl:a})=>{const o=`${a}?`,l=[];for(const c in n){const p=c.replace(/([a-zA-Z])(?=[A-Z])/g,"$1_").toLowerCase(),f=n[c];if(f)if(typeof f=="string")l.push(`${p}=${Dh(f)}`);else if(Array.isArray(f))l.push(`${p}=${f.map(Dh).join(",")}`);else{const y=Object.entries(f).map(([b,C])=>Array.isArray(C)?`${b}=${C.map(Dh).join(",")}`:typeof C=="string"?`${b}=${Dh(C)}`:`${b}=${C}`).join("&").replaceAll("=","%3D").replaceAll("&","%26").replaceAll(",","%2C");l.push(`${p}=${y}`)}}return o+l.join("&")},am=n=>{var a,o,l;return(((a=n==null?void 0:n.promotion)==null?void 0:a.type)===Hr.INGAME_IAB11_LBAR||((o=n==null?void 0:n.promotion)==null?void 0:o.type)===Hr.INGAME_IAB21_LBAR)&&!!((l=n.promotion.additionalBanner)!=null&&l.imageUrl)},xX=(n,a,o)=>{let l=!1;const c=o.transport,p=ti("advertisement"),f=new OX,y=co({}),b=NX(n,c),C=x=>{var D,j,V;if(x!=null&&x.fromNotification){y.setKey("hasNotification",!1);const Y=y.get(),Z=(D=Y.data)==null?void 0:D.question.id,Q=(V=(j=Y.data)==null?void 0:j.promotion)==null?void 0:V.type;Z&&(ua.emit("advertisement",{action:"opened",payload:{id:Z,type:Q,hasBanner:am(Y.data),openedFrom:"notification"}}),ua.emit("advertisement",{action:"notification-opened",payload:{id:Z,type:Q,hasBanner:am(Y.data)}}))}},_=()=>{var Y,Z,Q,te;const x=y.get(),D=(Y=x.data)==null?void 0:Y.question.id,j=(Q=(Z=x.data)==null?void 0:Z.promotion)==null?void 0:Q.type,V=(te=y.get())==null?void 0:te.isOpened;D&&!V&&(p.debug({id:D},"markAsViewed: %o"),f.setShowed(D),y.setKey("isOpened",!0),ua.emit("advertisement",{action:"viewed",payload:{id:D,type:j,hasBanner:am(x.data)}}))},N=(x,D)=>{var j;D?y.set({loading:!1,error:void 0,data:D,hasNotification:((j=D==null?void 0:D.notification)==null?void 0:j.enabled)===m9.NOTIFICATION_ENABLED,close:()=>O(D.question.id),togglePause:V=>L(D.question.id,V),isViewed:!!f.isViewed(D.question.id)}):(y.setKey("loading",!0),gE(x,c).then(V=>{var Y;return y.set({loading:!1,error:void 0,data:V,hasNotification:((Y=V==null?void 0:V.notification)==null?void 0:Y.enabled)===m9.NOTIFICATION_ENABLED,close:()=>O(V==null?void 0:V.question.id),togglePause:Z=>L(V==null?void 0:V.question.id,Z),isViewed:V&&!!f.isViewed(V.question.id)})}).catch(V=>y.set({loading:!1,error:V,data:void 0})))};y.subscribe((x,D)=>{var j,V,Y,Z,Q,te,ie,ae,Ce,Se;if(!(((j=x.data)==null?void 0:j.id)===((V=D==null?void 0:D.data)==null?void 0:V.id)&&x.isPaused!==(D==null?void 0:D.isPaused))){if(((Z=(Y=x.data)==null?void 0:Y.promotion)==null?void 0:Z.type)===Hr.EXTERNAL_AD&&!(x!=null&&x.externalAd)&&((Q=x.data.promotion.adCampaigns)!=null&&Q.gamOptions)&&((te=x.data.promotion.adCampaigns)!=null&&te.gamBaseUrl)){const Ye=AX(x.data.promotion.adCampaigns);y.setKey("externalAd",{type:"gam",url:Ye})}(ie=x.data)!=null&&ie.promotion&&!x.isOpened&&(ua.emit("advertisement",{action:"received",payload:{id:x.data.question.id,type:x.data.promotion.type,hasNotification:!!x.hasNotification,hasBanner:am(x.data),isViewed:!!f.isViewed(x.data.question.id)},skipAnalytics:x.data.question.id===((ae=D==null?void 0:D.data)==null?void 0:ae.question.id)}),x.data.question.id!==((Ce=D==null?void 0:D.data)==null?void 0:Ce.question.id)&&!f.isViewed(x.data.question.id)&&ua.emit("advertisement",{action:"notification-received",payload:{id:x.data.question.id,type:x.data.promotion.type,hasNotification:!0,hasBanner:am(x.data),isViewed:!1}})),!(x!=null&&x.data)&&(D!=null&&D.data)&&ua.emit("advertisement",{action:"closed",payload:{id:D.data.question.id,type:(Se=D.data.promotion)==null?void 0:Se.type,hasNotification:!!D.hasNotification,hasBanner:am(D.data),isViewed:!!f.isViewed(D.data.question.id)}})}});const O=x=>{var D,j;(!x||((j=(D=y.get())==null?void 0:D.data)==null?void 0:j.question.id)===x)&&y.set({})},L=(x,D)=>{var j,V;((V=(j=y.get())==null?void 0:j.data)==null?void 0:V.question.id)===x&&y.setKey("isPaused",D)};return{connect:()=>{l||(l=!0,b.subscribe((x,D)=>{x.data&&(!(D!=null&&D.data)||x.data.id!==D.data.id)&&N(x.data.question.id,x.data)}),a.addListener("promotion",x=>{const D=LX(x);if(D){if(D.question.status===yn.RESOLVED){O(D.question.id),p.debug({promotion:D},"resolved: %o");return}if(D.question.status===yn.ACTIVE){p.debug({promotion:D},"active: %o"),N(D.question.id,D);return}p.debug({promotion:D},"skip: %o")}}))},hide:O,show:N,open:C,markAsViewed:_,$store:y}};var Jc;(function(n){n.ALLOWED="allowed",n.DISALLOWED="disallowed"})(Jc||(Jc={}));class PX{constructor(a){U(this,"slStreamId");U(this,"organizationId");U(this,"userId");U(this,"interactiveAllowed");U(this,"openedQuestionId");U(this,"openedQuestion");U(this,"activeQuestionId");U(this,"feedList");U(this,"moderationId");U(this,"moderation");U(this,"feedSubscription");U(this,"questionSubscription");U(this,"advertisement");U(this,"notifications");U(this,"log");U(this,"transport");U(this,"cancels",new Set);U(this,"getCurrentSessionId",a=>{const o=a.eventId||this.slStreamId.get()||"",l=a.userId||this.userId.get()||"",c=a.organizationId||this.organizationId.get()||"",p=a.entity||"",f=a.prefix||"";return[c,o,l,f,p].join(":")});U(this,"disconnect",()=>{var a;(a=this.feedSubscription)==null||a.disconnect(),this.questionSubscription!==void 0&&(this.transport.removeSubscription(this.questionSubscription),this.questionSubscription=void 0)});U(this,"openQuestion",(a,o)=>{this.openedQuestionId.set({questionId:a,question:o}),this.notifications.markAsViewed(this.getCurrentSessionId({prefix:"notification",entity:a}))});U(this,"closeQuestion",a=>{this.openedQuestionId.set(void 0),a&&this.notifications.markAsViewed(this.getCurrentSessionId({prefix:"notification",entity:a}))});this.transport=a.transport,this.log=ti("gamification-background"),this.slStreamId=a.stores.slStreamId.getAtomStore(),this.organizationId=a.stores.organizationSettings.getAtomStore(),this.userId=a.stores.user.getAtomStore(),this.moderationId=new Oo(da(void 0),"moderationId").getStore(),this.interactiveAllowed=new Oo(da(Jc.DISALLOWED),"interactiveAllowed").getStore(),this.openedQuestionId=new Oo(da(void 0),"openedQuestionId").getStore(),this.notifications=a.notifications,this.moderation=new ei(kX(this.slStreamId,a.transport),"gamification:moderation"),this.feedList=new ei(IX(this.slStreamId,this.interactiveAllowed,a.transport),"gamification:feedList"),this.activeQuestionId=SX(this.slStreamId,a.transport),this.openedQuestion=RX(a.transport,this.openedQuestionId,this.feedList.getStore()),this.cancels.add(this.openedQuestionId.listen(o=>{this.log.debug({item:o},"received question"),o!=null&&o.questionId?(this.questionSubscription=EX(o.questionId,a.transport),this.questionSubscription.addListener("feed-subscription-opened-question",l=>{var c,p;this.openedQuestion.updateExtendedQuestion((p=(c=l.data)==null?void 0:c.attributes)==null?void 0:p.question)}),this.questionSubscription.connect()):(this.log.info("cleanup on close question"),this.questionSubscription!==void 0&&(a.transport.removeSubscription(this.questionSubscription),this.questionSubscription=void 0))})),this.feedSubscription=CX(this.slStreamId,a.transport),this.cancels.add(this.feedSubscription.addListener("feed-subscription-active-question",o=>{var p,f,y,b;const l=(f=(p=this.activeQuestionId.get().data)==null?void 0:p.question)==null?void 0:f.id,c=(b=(y=o.data)==null?void 0:y.attributes)==null?void 0:b.question;if(!(!c||c.type===ye.PROMOTION)){if(c.status===yn.RESOLVED){l===c.id&&this.activeQuestionId.mutate(void 0);return}window.requestAnimationFrame(()=>{var C;this.activeQuestionId.mutate((C=o.data)==null?void 0:C.attributes)})}})),this.cancels.add(this.feedSubscription.addListener("moderation update",o=>{window.requestAnimationFrame(()=>{var l,c,p,f;((c=(l=o.data)==null?void 0:l.attributes)==null?void 0:c.question)===void 0&&((f=(p=o.data)==null?void 0:p.attributes)!=null&&f.moderation)&&this.moderation.invalidate()})})),this.cancels.add(this.activeQuestionId.subscribe((o,l)=>{var c,p,f,y,b,C,_;(c=o.data)!=null&&c.feedItem&&((f=(p=o.data)==null?void 0:p.feedItem)==null?void 0:f.id)!==((b=(y=l==null?void 0:l.data)==null?void 0:y.feedItem)==null?void 0:b.id)&&a.onQuestionActivate({stage:"activate",id:o.data.feedItem.id,isViewed:!!this.notifications.isViewed(this.getCurrentSessionId({prefix:"notification",entity:o.data.feedItem.id})),hasNotification:!0,type:o.data.feedItem.type}),!((C=o.data)!=null&&C.feedItem)&&((_=l==null?void 0:l.data)!=null&&_.feedItem)&&a.onQuestionActivate({stage:"deactivate",id:l.data.feedItem.id,isViewed:!!this.notifications.isViewed(this.getCurrentSessionId({prefix:"notification",entity:l.data.feedItem.id})),hasNotification:!0,type:l.data.feedItem.type})})),this.feedSubscription.connect(),this.cancels.add(this.interactiveAllowed.listen(()=>{window.requestAnimationFrame(()=>{this.activeQuestionId.invalidate()})})),a.sdk.onMount({name:"gamification-background"},()=>()=>{this.activeQuestionId.off();for(const o of this.cancels)o(),this.cancels.delete(o)}),this.advertisement=xX(this.slStreamId,this.feedSubscription,a)}}class MX{constructor(a){U(this,"notificationsList");U(this,"store");U(this,"timeouts");U(this,"waitingQueue");U(this,"activeQueue");U(this,"options");U(this,"logger");U(this,"addToQueue",a=>{var c;if(this.store.has(a.id)){this.logger.debug({notification:a},"skip existed notification: %o");return}const o=a.close,l=a.action;if(this.store.set(a.id,{...a,close:(...p)=>{o&&o(...p),this.closeNotification(a.id)},action:(...p)=>{l&&l(...p),this.closeNotification(a.id,{animateHiding:!1})}}),this.waitingQueue.add(a.id),this.activeQueue.size===this.options.concurrency){const[p]=this.activeQueue;if(((c=this.store.get(p))==null?void 0:c.persistent)!==!0)this.closeNotification(p);else{const[f]=this.waitingQueue;this.waitingQueue.size>1&&this.closeNotification(f),this.tickWaitingQueue()}}else this.tickWaitingQueue()});U(this,"tickWaitingQueue",()=>{if(this.activeQueue.size<this.options.concurrency){const[a]=this.waitingQueue;if(!a)return;this.activeQueue.add(a),this.waitingQueue.delete(a),this.logger.debug({job:a},"waiting queue tick"),this.tickActiveQueue(a)}else this.logger.debug({queueSize:this.activeQueue.size,concurrency:this.options.concurrency},"waiting queue tick skipped")});U(this,"tickActiveQueue",a=>{if(!a)return;const o=this.store.get(a);if(!o){this.logger.debug({notificationId:a},"active queue tick skipped, notification not exist");return}ua.emit("notification",{action:"received",payload:{questionId:o.data.questionId,questionType:o.data.questionType}});const l=setTimeout(()=>{const c=a,p=new Map(this.notificationsList.get());p.set(o.id,o),this.notificationsList.set(p);const f=setTimeout(()=>{this.logger.debug({notificationId:c,delay:o.autoHideDuration||5e3},"notification hiding by autoHideDuration"),this.closeNotification(c)},o.autoHideDuration||5e3);this.timeouts.set(c,f),this.logger.debug({notificationId:c,queue:[...p.values()]},"notification displayed")},o.delay||0);this.timeouts.set(a,l),this.logger.debug({notificationId:a},"active queue tick completed"),this.tickWaitingQueue()});U(this,"closeNotification",(a,{animateHiding:o=!0}={})=>{const l=new Map(this.notificationsList.get()),c=l.get(a);if(c){c.hiding=!(this.waitingQueue.size>=this.options.concurrency)&&o,this.notificationsList.set(l);const p=setTimeout(()=>{const f=new Map(this.notificationsList.get());f.delete(a),this.notificationsList.set(f);const y=this.timeouts.get(a);y!==void 0&&(clearTimeout(y),this.timeouts.delete(a)),this.logger.debug({notificationId:a},"notification hidden"),c.hiding&&ua.emit("notification",{action:"closed",payload:{questionId:c.data.questionId,questionType:c.data.questionType}})},this.options.animationDelay||0);this.timeouts.set(a,p)}return this.store.delete(a),this.activeQueue.delete(a),this.waitingQueue.delete(a),this.tickWaitingQueue(),this.logger.debug({notificationId:a},"notification hiding"),c});U(this,"drain",()=>{this.store.clear(),this.timeouts.clear(),this.waitingQueue.clear(),this.activeQueue.clear(),this.notificationsList.off(),this.notificationsList.set(new Map)});this.options=a,this.logger=ti("notifications"),this.store=new Map,this.timeouts=new Map,this.waitingQueue=new Set,this.activeQueue=new Set,this.notificationsList=da(new Map)}}var m6;(function(n){n.OPENED="opened"})(m6||(m6={}));class DX extends Nm{constructor(){super("notification");U(this,"setOpened",o=>{this.write(m6.OPENED,o,"true")});U(this,"isOpened",o=>this.read(m6.OPENED,o));U(this,"clearNotification",()=>{this.clear()})}}var bu;(function(n){n[n.ONBOARDING=1]="ONBOARDING",n[n.QUESTION=2]="QUESTION",n[n.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(bu||(bu={}));class UX{constructor(a={}){U(this,"queue");U(this,"storage");U(this,"isViewed",a=>this.storage.isOpened(a));U(this,"add",a=>{if(!this.isViewed(a.id)){if(a.data&&a.emitEvent){const o=a.action;a.action=(...l)=>{o&&o(...l),ua.emit("notification",{action:"opened",payload:{questionId:a.data.questionId,questionType:a.data.questionType}})}}this.queue.addToQueue(a)}});U(this,"close",(a,{markAsViewed:o=!0,animateHiding:l}={})=>{this.queue.closeNotification(a,{animateHiding:l}),o&&this.markAsViewed(a)});U(this,"getActiveNotification",()=>{const a=this.queue.notificationsList.get();if(!(a!=null&&a.size))return null;for(const o of a.values())if(o.type===bu.ONBOARDING)return o;return a.values().next().value});U(this,"getQueueStore",()=>this.queue.notificationsList);U(this,"markAsViewed",a=>{this.storage.setOpened(a)});this.storage=new DX,this.queue=new MX({concurrency:1,animationDelay:1600,...a})}}const FX=(n,a,o)=>{n.notifications=new UX(void 0),n.addNotification=n.notifications.add,n.sdk.getNotificationsStore=()=>n.notifications.getQueueStore(),n.sdk.getActiveNotification=()=>n.notifications.getActiveNotification(),n.sdk.onMount({name:"notifications"},()=>()=>{n.notifications.queue.drain()}),o()};var m2;(function(n){n.UNKNOWN="unknown",n.ALREADY_VOTED="already_voted"})(m2||(m2={}));const VX=async(n,a)=>{var p;const{client:o,createRequestOptions:l}=n.createPromiseClient(Lo,{method:"submitAnswer"}),c=l({retryAttempts:0});try{return await o.submitAnswer({data:a},{contextValues:c})}catch(f){throw((p=zt.from(f))==null?void 0:p.code)===st.AlreadyExists?new Error(m2.ALREADY_VOTED):new Error(m2.UNKNOWN)}},jX=(n,a)=>{const{client:o,createRequestOptions:l}=n.createPromiseClient(Lo,{method:"submitInplay"}),c=l({retryAttempts:0});return o.submitInplay({data:{eventId:+a}},{contextValues:c})};var um;(function(n){n.ONBOARDING="onboarding",n.ONBOARDING_IO="onboarding_io"})(um||(um={}));class BX extends Nm{constructor(){super("gamification-session",window.sessionStorage);U(this,"writeValue",(o,l)=>{this.write(...o,l)});U(this,"readValue",o=>this.read(...o))}}class yE extends Nm{constructor(){super("gamification");U(this,"sessionStorage");U(this,"saveOnboardingStatus",({userId:o,eventId:l,organizationId:c},p)=>{this.write(um.ONBOARDING,c,o,l,p)});U(this,"getOnboardingStatus",({userId:o,eventId:l,organizationId:c})=>this.read(um.ONBOARDING,c,o,l));U(this,"setOnboardingInstantOpen",({userId:o,eventId:l,organizationId:c})=>{this.sessionStorage.writeValue([um.ONBOARDING_IO,c,o,l],"1")});U(this,"getOnboardingInstantOpen",({userId:o,eventId:l,organizationId:c})=>this.sessionStorage.readValue([um.ONBOARDING_IO,c,o,l]));this.sessionStorage=new BX}}const $X={pageSize:10},zX=(n,a,o,l,c)=>{let p=0;const f=da({pageSize:$X.pageSize,page:0}),y=co({data:[],key:Date.now(),hasMore:!0,loading:void 0,error:void 0}),b=TX(n),C=async()=>{var x;const O=a.get(),L=((x=l.getStore().get().data)==null?void 0:x.map(D=>D.slId))||[];if(O&&(L!=null&&L.length)){const D=o.get();D&&L.push(D),y.setKey("loading",!0),y.setKey("data",[]);const j=await b({eventId:O,usersIds:L});y.set({data:j.data.map((V,Y)=>({...V.attributes,friendsRank:Y+1})),hasMore:!1,key:Date.now(),loading:!1}),j.meta&&(p=Math.round(j.meta.count/j.meta.pageSize))}},_=()=>{C()},N=O=>{const L=f.get(),x=O||L.page+1;x<=p&&f.set({...L,page:x})};return b6(y,()=>{const O=a.listen(C),L=l.listen(C);return()=>{O(),L()}}),{$store:y,fetchMore:N,invalidate:_}};class HX extends Nm{constructor(){super("deep-link-context",window.sessionStorage);U(this,"get",this.read);U(this,"set",this.write);U(this,"del",this.remove)}}const RS="sldl",A6="sldl_uid",vE="sldl_eid",TE="sldl_e_eid",qX=new Set([A6,vE,TE]),OS=n=>{const a={},o={};for(const[l,c]of n)qX.has(l)?a[l]=c:o[l]=c;return{result:a,remain:o}},GX=({hash:n,search:a})=>{if(n&&n.includes(RS)){const o=new URLSearchParams(n.substr(1));return{hash:OS(o)}}if(a&&a.includes(RS)){const o=new URLSearchParams(a);return{search:OS(o)}}return null},LS=ti("deep_link"),Xs={debug:(...n)=>{LS.debug(...n),localStorage.getItem("SL_DEBUG")&&console.log(...n)},trace:(...n)=>{LS.trace(...n),localStorage.getItem("SL_DEBUG")&&console.log(...n)}},WX=(n,a)=>{const{hash:o,search:l}=window.location;if(Xs.debug({hash:o,search:l},"get deep link data from"),o||l){const c=GX({hash:o,search:l});if(Xs.debug(c,"parse deep link result"),c){const{hash:p,search:f}=c,{result:y,remain:b}=p||f;if(Object.keys(y).length!==0){n.setValue("data",y);const C=Object.keys(b).length!==0;if(p){let _="";C&&(_=`#${new URLSearchParams(b).toString()}`,Xs.debug({updatedHash:_},"update hash")),window.history.replaceState(null,"",window.location.pathname+window.location.search+_)}if(f){let _="";C&&(_=`?${new URLSearchParams(b).toString()}`,Xs.debug({updatedSearch:_},"update search")),window.history.replaceState(null,"",window.location.pathname+_+window.location.hash)}a(y)}}}n.setValue("parsed",!0)},QX=(n,a,o)=>{const l=new HX,c=l.get("sl-deep-link-store");let p={};if(c)try{p=JSON.parse(c)}catch(y){Xs.debug(y)}n.deepLink={$store:new Xc(co(p),"deep-link-context"),getDeepLinkData:()=>{const{data:y,used:b}=n.deepLink.$store.getValues();return{data:y,used:b}},deepLinkUsed:y=>{Xs.debug(`logged in with inviterId: ${y}`),n.deepLink.$store.setValue("used",!0)},onDeepLinkHandlers:new Set},n.sdk.getInviter=()=>{const{data:y,used:b}=n.deepLink.getDeepLinkData();return b?y==null?void 0:y[A6]:void 0},n.sdk.inviteDisplayed=()=>{n.deepLink.$store.getStore().set({}),n.deepLink.$store.getStore().off(),l.del("sl-deep-link-store")},n.deepLink.$store.subscribe(y=>l.set("sl-deep-link-store",JSON.stringify(y))),n.sdk.addDeepLinkHandler=y=>{localStorage.getItem("SL_DEBUG")&&Xs.trace("adding deep link handler"),n.deepLink.onDeepLinkHandlers.add(y)},a.onDeepLinkHandled&&n.sdk.addDeepLinkHandler(a.onDeepLinkHandled),n.sdk.removeDeepLinkHandler=y=>{Xs.trace("removing deep link handler"),n.deepLink.onDeepLinkHandlers.delete(y)};const f=y=>{n.deepLink.$store.setValue("handled",!0),Xs.trace({size:n.deepLink.onDeepLinkHandlers.size},"deep link handled, call callbacks");for(const b of n.deepLink.onDeepLinkHandlers)try{Xs.trace("called handler"),b(y)}catch(C){console.error(C)}};WX(n.deepLink.$store,f),o()},YX=ti("bypass");class KX extends YZ{constructor(o,l,c){super();U(this,"$coreStore");U(this,"deepLink");U(this,"transport");U(this,"bypassLogin");U(this,"me",async()=>{var o;return this.$coreStore.getValues().user.invalidate(),(o=await this.$coreStore.getValues().user.getValue())==null?void 0:o.data});U(this,"login",async(o,l)=>{var _,N,O;this.$coreStore.getValues().userKey.setValue(l);const{used:c,data:p}=this.deepLink.getDeepLinkData(),f=c?"":p==null?void 0:p[A6];YX.debug({inviterKey:f},"login with inviterKey");const y=await this.bypassLogin({schema:o,userKey:l,inviterKey:f,init:!1}),b=(_=y.meta)==null?void 0:_.jwt,C=(N=y.data)==null?void 0:N.id;if(!b||!C)throw new Error("internal: token missing");return(O=y.meta)!=null&&O.inviterKey&&this.deepLink.deepLinkUsed(y.meta.inviterKey),this.$coreStore.getValues().user.getStore().mutate({data:y.data}),this.saveUser(b,C),b});U(this,"isAuthenticated",()=>this.me());U(this,"logout",()=>{this.$coreStore.getValues().user.setValue(),this.$coreStore.getValues().userKey.setValue(),this.$coreStore.getValues().userToken.setValue(),this.transport.setAuth("",""),new lm().clear()});U(this,"softLogout",()=>{const o=new lm;this.transport.setAuth("",""),o.setToken(""),this.reLogin()});U(this,"reLogin",()=>{const o=new lm,l=o.getToken(),c=o.getExternalToken();if(this.$coreStore.getValues().userKey.setValue(c),l)return this.saveUser(l,""),this.me().then(p=>{if(p!=null&&p.id){const f=p.id;this.saveUser(l,f)}});if(c&&!l){const p=o.getSchema();p&&c&&this.login(p,c).catch(()=>{this.logout()})}});U(this,"saveUser",(o,l)=>{this.transport.setAuth(o,l),this.$coreStore.getValues().userToken.setValue(o),new lm().setToken(o)});U(this,"connect",()=>{this.transport.registerInterceptor(o=>async l=>{try{return await o(l)}catch(c){throw c.code&&(c.code===7||c.code===16)&&this.transport.getHeader("authorization")&&this.softLogout(),c}})});this.$coreStore=o,this.deepLink=c,this.transport=l,this.bypassLogin=uX(this.transport),this.connect()}}const J0=new lm,ZX=(n,a,o)=>{n.auth=new KX(n.store,n.transport,n.deepLink),n.stores.status.listen(l=>{l===Zi.READY&&n.auth.reLogin()}),n.sdk.userId=n.stores.user.getAtomStore,n.sdk.authorizationBypass=async(l,c)=>{if(!(J0.getSchema()===l&&J0.getExternalToken()===c&&n.transport.getHeader("authorization")))try{await n.auth.login(l,c),J0.setSchema(l),J0.setExternalToken(c)}catch{n.sdk.logout()}},n.sdk.logout=()=>{n.auth.logout(),J0.clear()},n.sdk.getUserStore=()=>n.stores.user.getStore(),n.sdk.isUserAuthorized=()=>n.auth.isAuthenticated(),o()},AS=ti("video_player"),Uh={debug:(...n)=>{AS.debug(...n),localStorage.getItem("SL_DEBUG")&&console.log(...n)},trace:(...n)=>{AS.trace(...n),localStorage.getItem("SL_DEBUG")&&console.log(...n)}},XX=(n,a,o)=>{n.videoPlayer={controllers:new Set},n.sdk.addVideoPlayerController=l=>{Uh.trace("adding video player controller"),n.videoPlayer.controllers.add(l)},a.videoPlayerController&&n.sdk.addVideoPlayerController(a.videoPlayerController),n.sdk.removeVideoPlayerController=l=>{Uh.trace("removing video player controller"),n.videoPlayer.controllers.delete(l)},n.sdk.controlVideoPlayer=l=>{Uh.trace("controlling video player");for(const c of n.videoPlayer.controllers){Uh.trace("calling video player controller");try{c(l)}catch(p){console.error(p)}}},o()},JX={[ye.FACTOID]:"insight",[ye.POLL]:"poll",[ye.TRIVIA]:"trivia",[ye.PREDICTION]:"prediction",[ye.TWEET]:"tweet"},eJ=(n,a,o)=>{n.sdk.uiState=co({}),n.ui={enableAppNotification:function(){n.sdk.uiState.setKey("appNotification",!0)},disableAppNotification:function(){n.sdk.uiState.get().app||n.sdk.uiState.setKey("appNotification",!1)},enableApp:function(){n.sdk.uiState.set({app:!0,appNotification:!0})},disableApp:function(){n.sdk.uiState.set({...n.sdk.uiState.get(),appNotification:!1,app:!1})}},a.onContentActivate&&(n.ui.onContentActivate=a.onContentActivate);const l=c=>{n.ui.onContentActivate&&n.ui.onContentActivate({...c,type:"advertisement"})};n.onQuestionActivate=({questionType:c,...p})=>{if(n.ui.onContentActivate){const f=p.type||c&&JX[c]||"question";n.ui.onContentActivate({...p,type:f})}},n.sdk.onMount({name:"ui"},()=>{const c=y=>{var b,C;if(((b=y.slEventBus)==null?void 0:b.type)==="notification")switch(y.slEventBus.action){case"received":n.ui.enableAppNotification();break;case"closed":n.ui.disableAppNotification();break}if(((C=y.slEventBus)==null?void 0:C.type)==="advertisement"&&a.withAd){const _=y.slEventBus,{hasNotification:N,hasBanner:O,id:L,isViewed:x,type:D}=_.payload;switch(_.action){case"notification-opened":n.sdk.uiState.set({promotionExternalAd:D===Hr.EXTERNAL_AD,promotionBanner:O,promotionNotification:!1,promotionOverlay:!0,promotionSidebar:!0});break;case"received":if(n.sdk.closeFeature(),l({stage:"activate",id:L,hasNotification:N,hasBanner:O,isViewed:x}),!a.withAdNotification){n.sdk.uiState.set({promotionBanner:O,promotionOverlay:!0,promotionSidebar:!0,promotionExternalAd:D===Hr.EXTERNAL_AD});break}N?n.sdk.uiState.set({promotionNotification:!0}):n.sdk.uiState.set({promotionBanner:O,promotionOverlay:!0,promotionSidebar:!0,promotionExternalAd:D===Hr.EXTERNAL_AD});break;case"closed":n.sdk.uiState.set({...n.sdk.uiState.get(),promotionNotification:!1,promotionBanner:!1,promotionOverlay:!1,promotionExternalAd:!1,promotionSidebar:!1}),l({stage:"deactivate",id:L,hasNotification:N,hasBanner:O,isViewed:x});break}}},p=ua.listen(c),f=n.activeFeature.subscribe(y=>{y?n.ui.enableApp():n.ui.disableApp()});return()=>{p(),f()}}),o()},tJ=(n,a,o)=>{const l={onMountedFired:!1},c=new Map,p=new Map;n.sdk=Object.create(null),n.sdk.options=co(a),n.sdk.withAuth=!1,n.sdk.onMount=({name:f,clear:y},b)=>{var C,_;if(c.has(f)){const N=p.get(f);N&&N(),c.delete(f),p.delete(f)}c.set(f,{cb:b,clear:y}),((_=(C=n==null?void 0:n.stores)==null?void 0:C.enabled)==null?void 0:_.get())==="on"&&p.set(f,b())},n.ready=()=>{n.stores.enabled.subscribe(f=>{f==="on"&&l.onMountedFired===!1&&(c.forEach(({cb:y},b)=>p.set(b,y())),l.onMountedFired=!0),f!=="on"&&l.onMountedFired===!0&&(p.forEach(y=>y()),p.clear(),c.forEach(({clear:y},b)=>y&&c.delete(b)),l.onMountedFired=!1)})},n.sdk.initializeApp=async f=>{if(n.contextConfig=f,n.stores.enabled.get()==="on")return{enabled:!0};n.storeSubscribe(),n.stores.enabled.setValue("on"),n.stores.status.setValue(Zi.INITIALIZATION);try{const y=await n.stores.organizationSettings.getValue();return y?(n.stores.status.setValue(Zi.READY),{enabled:!!y}):(n.stores.status.setValue(Zi.FAILED),{err:"failed"})}catch(y){return n.stores.enabled.setValue(),n.stores.status.setValue(Zi.FAILED),{err:`${y}`}}},n.sdk.disableApp=()=>{n.stores.enabled.get()==="on"&&(n.stores.enabled.setValue(),n.stores.status.setValue(Zi.DISABLED),n.stores.slStreamId.setValue(),n.stores.providerStreamId.setValue(),n.sdk.closeFeature(!0),n.storeUnsubscribe(),n.transport.disconnect())},n.sdk.createEventSession=f=>{n.stores.providerStreamId.setValue(f)},o()},nJ=(n,a)=>{const{client:o,queryKey:l}=n.createPromiseClient(p2,{method:"generateDeepLink",params:a});return n.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f,y)=>{var b;if(!f)return{};try{return(b=(await o.generateDeepLink({data:{gamification:!0,externalEventId:y,eventId:f}})).data)==null?void 0:b.attributes}catch{return}},dedupeTime:1e3*60*60*24,refetchInterval:0})},aJ=(n,{web:a,mobile:o})=>{const{client:l}=n.createPromiseClient(cZ,{method:"generate"});return l.generate({web:a,mobile:o})},xS=(n,a)=>{const o=new URLSearchParams(n);for(const[l,c]of Object.entries(a))o.append(l,c);return o.toString()},rJ=(n,a,o,l)=>{const c=co({});return b6(c,()=>nJ(n,[a,o]).subscribe(async({data:p,loading:f})=>{var O;const y=p===void 0&&f===!1?"https://streamlayer.io":p==null?void 0:p.url,b=l.get()||"",C=a.get()||"",_=o.get()||"",N={[A6]:b,[vE]:C,[TE]:_};if(!f&&y){c.setKey("loading",!0);let L=window.location.search,x=window.location.hash;L&&x||x?L=`?${xS(L,N)}`:x=`#${xS("",N)}`;const D=window.location.origin+window.location.pathname+L+x;try{const j=await aJ(n,{web:D,mobile:y});c.set({data:(O=j.data)==null?void 0:O.link,loading:!1})}catch{c.set({loading:!1,error:"Failed to generate short link",data:void 0})}}else c.setKey("loading",!0)})),{$store:c,fetch}};var ia;(function(n){n.Unset="unset",n.Required="required",n.Optional="optional",n.Completed="completed",n.Disabled="disabled",n.Unavailable="unavailable"})(ia||(ia={}));const oJ=(n,a,o,l)=>{const{inplayGame:c}=n.featureSettings.get(),p=a.getCurrentSessionId({prefix:"onboarding"});c&&o.add({type:bu.ONBOARDING,id:p,action:n.openFeature,close:()=>{n.onboardingProcessed.set(!0)},persistent:!0,autoHideDuration:1e6,data:{questionId:"onboarding",questionType:ye.UNSET,onboarding:{...c,instantOpen:!l.getOnboardingInstantOpen({userId:a.userId.get()||"",organizationId:a.organizationId.get()||"",eventId:a.slStreamId.get()||""})}}})},Fh=(n,a,o,l,c,p)=>{var f,y,b;try{const C=a.userId.get();if(!C)return;if(c.getOnboardingStatus({userId:C,organizationId:a.organizationId.get()||"",eventId:a.slStreamId.get()||""})===ia.Completed){n.set(ia.Completed);for(const x of p)x();return}const _=(f=a.moderation.getStore().value)==null?void 0:f.data,N=o.featureSettings.get().inplayGame;if(_===void 0||N===void 0)return;const O=(y=_==null?void 0:_.options)==null?void 0:y.onboardingEnabled,L=(b=N==null?void 0:N.titleCard)==null?void 0:b.optIn;O?L?n.set(ia.Required):n.set(ia.Optional):(L?n.set(ia.Unavailable):n.set(ia.Disabled),l.close(a.getCurrentSessionId({prefix:"onboarding"}),{markAsViewed:!1}))}catch(C){console.error(C)}},sJ=(n,a,o,l)=>{let c=!1;const p=new yE,f=da(ia.Unset);f.subscribe(b=>{b!==ia.Unset&&(b===ia.Optional||b===ia.Required?c===!1&&(oJ(n,a,l,p),c=!0):n.onboardingProcessed.set(!0),b===ia.Completed&&a.activeQuestionId.invalidate(),p.setOnboardingInstantOpen({userId:a.userId.get()||"",organizationId:a.organizationId.get()||"",eventId:a.slStreamId.get()||""}))});const y=[];return Fh(f,a,n,l,p,y),f.get()!==ia.Completed&&(y.push(a.userId.listen(b=>{b&&Fh(f,a,n,l,p,y)})),y.push(a.moderation.listen(b=>{b.data&&Fh(f,a,n,l,p,y)})),y.push(n.featureSettings.listen(b=>{b&&Fh(f,a,n,l,p,y)}))),{$store:f,submitInplay:async()=>{const b=a.slStreamId.get();if(b){await jX(o,b),f.set(ia.Completed),p.saveOnboardingStatus({organizationId:a.organizationId.get()||"",userId:a.userId.get()||"",eventId:b},ia.Completed),ua.emit("poll",{action:"onboardingPassed",payload:{}}),n.openFeature();const C=a.getCurrentSessionId({prefix:"onboarding"});l.close(C)}}}},iJ=(n,a,o,l)=>{const c=co(void 0),p=hE(l),f=async()=>{var L,x;const b=n.get(),C=a.get(),_=(L=o.getStore().get().data)==null?void 0:L.map(D=>D.slId);if(!_)return;const N={eventId:b,userId:C,usersIds:[..._,C]},O=await p(N);c.set((x=O.data)==null?void 0:x.attributes)},y=()=>{f()};return b6(c,()=>{const b=n.listen(f),C=o.listen(f),_=a.listen(f);return()=>{b(),C(),_()}}),{$store:c,invalidate:y}},lJ=async(n,a,o,l,c)=>{var _,N,O;const p=hE(c),f=n.get(),y=a.get(),b=((_=o.getStore().get().data)==null?void 0:_.map(L=>L.slId))||[],C={eventId:f,userId:l,usersIds:[...b,y]};return(O=(N=(await p(C)).data)==null?void 0:N.attributes)==null?void 0:O.summary},uJ=new Set([ye.POLL,ye.PREDICTION,ye.TRIVIA]);class cJ extends mE{constructor(o,l,c){super(o,l);U(this,"userSummary");U(this,"feedList");U(this,"friends");U(this,"leaderboardId");U(this,"leaderboardList");U(this,"deepLink");U(this,"onboardingStatus");U(this,"openedQuestion");U(this,"currentUserId");U(this,"openedUser");U(this,"closeFeature");U(this,"openFeature");U(this,"feedSubscription");U(this,"activeQuestionId");U(this,"openedQuestionId");U(this,"advertisement");U(this,"onboardingProcessed");U(this,"friendsTabEnabled");U(this,"notifications");U(this,"transport");U(this,"background");U(this,"storage");U(this,"submitAnswerTimeout");U(this,"cancels",new Set);U(this,"onQuestionActivate");U(this,"checkInteractiveFlag",()=>{var y,b,C,_,N;const o=this.onboardingStatus.$store.get(),l=(C=(b=(y=this.background.moderation.getStore().value)==null?void 0:y.data)==null?void 0:b.options)==null?void 0:C.onboardingEnabled,c=(N=(_=this.settings.getValues().inplayGame)==null?void 0:_.titleCard)==null?void 0:N.optIn,p=o===ia.Completed,f=!l||p||c!==!0;this.background.interactiveAllowed.set(f?Jc.ALLOWED:Jc.DISALLOWED)});U(this,"connect",()=>{this.onboardingProcessed.subscribe(o=>{o&&this.advertisement.connect()}),this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-prediction-close",async o=>{var C,_,N,O,L,x,D,j,V,Y,Z;if(!this.isInteractiveAllowed)return;const l=(_=(C=o.data)==null?void 0:C.attributes)==null?void 0:_.question,c=(O=(N=o.data)==null?void 0:N.attributes)==null?void 0:O.feedItem;if(!l||!(c!=null&&c.attributes))return;const{status:p,type:f,id:y,answers:b}=l;if(p===yn.RESOLVED&&f===ye.PREDICTION){const Q=this.background.getCurrentSessionId({prefix:`notification-id:${y}`}),te=[...this.feedList.getValues().data||[]],ie=te.findIndex(mt=>mt.id===y),ae=te[ie];let Ce=(D=(x=(L=ae==null?void 0:ae.attributes)==null?void 0:L.attributes)==null?void 0:x.value)==null?void 0:D.answerId;const Se=R9(y,this.transport),Ye=Se.subscribe(()=>{});await Se.get().promise;let Be=Se.get().data;Be||(Be=await _X(y,this.transport)),Ye(),window.requestAnimationFrame(()=>{Se.invalidate()}),Ce||(Ce=(j=Be==null?void 0:Be.answers.find(({youVoted:mt})=>mt))==null?void 0:j.id);const Ge=b.find(({correct:mt})=>mt),Ne=Ce?b.find(({id:mt})=>mt===Ce):void 0,et=!!(Ne!=null&&Ne.correct);if(ae&&((Y=(V=te[ie])==null?void 0:V.attributes)==null?void 0:Y.attributes.case)==="question"){try{te[ie].attributes.attributes.value.answerId=Ce,te[ie].attributes.attributes.value.openForVoting=!1,Ce&&(te[ie].attributes.attributes.value.status=et?tl.WON:tl.LOST)}catch{}this.feedList.getStore().mutate(te)}if(!Ne||!Ge)return;((Z=this.openedQuestionId.get())==null?void 0:Z.questionId)!==l.id&&this.notifications.add({type:bu.QUESTION_RESOLVED,action:()=>this.openQuestion(l.id,c),close:()=>this.closeQuestion(y),autoHideDuration:et?15e3:12e3,id:Q,emitEvent:!1,data:{questionId:y,questionType:ye.PREDICTION,question:{title:et?`Congratulations! You answered correctly! You won ${Ge.points} pts!`:`Better luck next time! Correct: ${Ge==null?void 0:Ge.text}!`,votedAnswer:{title:Ne==null?void 0:Ne.text,points:Ne==null?void 0:Ne.points},correctAnswerTitle:Ge==null?void 0:Ge.text,correct:!!et,predictionResult:p===yn.RESOLVED,questionTitle:l==null?void 0:l.subject}}}),this.userSummary.invalidate()}})),this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-questions-list",o=>{var f,y,b,C,_;const l=[...((f=this.feedList.getStore().value)==null?void 0:f.data)||[]],c=(b=(y=o.data)==null?void 0:y.attributes)==null?void 0:b.feedItem,p=l.findIndex(N=>N.id===(c==null?void 0:c.id));if(c!=null&&c.attributes&&c.attributes.attributes.case!=="promotion"&&!(c.attributes.status!==yn.ACTIVE&&c.attributes.status!==yn.RESOLVED)){if(p!==-1)if(c.attributes.attributes.case==="question"&&((C=l[p].attributes)==null?void 0:C.attributes.case)==="question"){const N=l[p];N.attributes&&(l[p]={...l[p],attributes:{...N.attributes,attributes:{...N.attributes.attributes,value:{...N.attributes.attributes.value,...c.attributes.attributes.value,answerId:N.attributes.attributes.value.answerId,status:N.attributes.attributes.value.status,openForVoting:N.attributes.attributes.value.openForVoting}}}})}else{const N=l[p];N.attributes&&c.attributes&&(l[p]={...l[p],attributes:{...N.attributes,attributes:{...N.attributes.attributes,value:{...N.attributes.attributes.value,...c.attributes.attributes.value}}}})}p===-1&&(l.unshift(c),ua.emit("poll",{action:"received",payload:{questionId:c.id,questionType:(_=c.attributes)==null?void 0:_.type}})),this.feedList.getStore().mutate(l)}}))});U(this,"disconnect",()=>{this.background.feedSubscription.removeListener("feed-subscription-prediction-close"),this.background.feedSubscription.removeListener("feed-subscription-questions-list")});U(this,"submitAnswer",async(o,l)=>{const c=R9(o,this.transport),p=c.subscribe(()=>{}),f={...c.get().data||{}},y=()=>{var O;const b=this.feedList.getValues().data;if(!b)return;const C=b.findIndex(L=>L.id===o),_=b[C],N=((O=_==null?void 0:_.attributes)==null?void 0:O.attributes.case)==="question"&&_.attributes.attributes.value;if(N){ua.emit("poll",{action:"voted",payload:{questionId:o,questionType:N.questionType}});const L=c.get().data;if(p(),L){const x=L.answers.find(Y=>Y.correct===!0),D=L.answers.findIndex(Y=>Y.id===l),j=L.answers[D],V=L.answers.every(({percentageDecimal:Y},Z)=>Y===(f==null?void 0:f.answers[Z].percentageDecimal));b[C].attributes.attributes.value.answerId=l,b[C].attributes.attributes.value.openForVoting=!1,b[C].attributes.attributes.value.text=(j==null?void 0:j.text)||"",x&&(b[C].attributes.attributes.value.status=x.id===l?tl.WON:tl.LOST),this.feedList.getStore().mutate([...b]),L.answers[D].correct=(x==null?void 0:x.id)===l,L.answers[D].youVoted=!0,V&&L.answers.forEach(Y=>{Y.percentageDecimal=0}),(x==null?void 0:x.id)===l&&(L.answers[D].pointsEarned=L.status===yn.RESOLVED?0:x.points),c.mutate({...L})}this.submitAnswerTimeout&&clearTimeout(this.submitAnswerTimeout),this.submitAnswerTimeout=setTimeout(()=>{this.userSummary.invalidate()},1e3)}};try{await VX(this.transport,{questionId:o,answerId:l}),y()}catch(b){if(b.message===m2.ALREADY_VOTED){this.userSummary.invalidate();const C=c.subscribe(()=>{});c.invalidate(),C()}throw b}});U(this,"openQuestion",(o,l)=>{var p,f,y,b;if(!o)return()=>{};this.notifications.close(this.background.getCurrentSessionId({prefix:"notification",entity:o}),{animateHiding:!1});let c=(p=l==null?void 0:l.attributes)==null?void 0:p.type;return c||(c=(b=(y=(((f=this.feedList.getStore().value)==null?void 0:f.data)||[]).find(C=>C.id===o))==null?void 0:y.attributes)==null?void 0:b.type),ua.emit("poll",{action:"opened",payload:{questionId:o,questionType:c,questionOpenedFrom:l==null?void 0:l.openedFrom}}),this.background.openQuestion(o,l)});U(this,"getFeedItem",o=>wX(o,this.transport));U(this,"isOpenedQuestion",o=>!!this.notifications.isViewed(o));U(this,"closeQuestion",o=>(o&&this.onQuestionActivate({stage:"deactivate",id:o,isViewed:!!this.notifications.isViewed(this.background.getCurrentSessionId({prefix:"notification",entity:o}))}),this.background.closeQuestion(o)));U(this,"openUser",async o=>{var p,f;const l=(p=this.leaderboardList.$store.get().data)==null?void 0:p.find(y=>y.userId===o);if(!l){this.openedUser.set(l);return}if(l.summaryLoaded){this.openedUser.set(l);return}const c={...l};try{const y=await lJ(this.background.slStreamId,this.background.userId,this.friends,o,this.transport);(y==null?void 0:y.inTop)!==void 0&&(this.leaderboardList.$store.setKey("data",(f=this.leaderboardList.$store.get().data)==null?void 0:f.map(b=>(b.userId===o&&(b.inTop=y.inTop),b))),c.inTop=y.inTop)}catch(y){console.error(y)}this.openedUser.set(c)});U(this,"closeUser",()=>{this.openedUser.set(void 0)});U(this,"showInApp",o=>{var c,p,f,y,b,C,_,N,O,L,x,D,j,V,Y,Z;const l=this.onboardingStatus.$store.get();if(o&&o.data&&l&&l!==ia.Unset&&((c=o.data.question)==null?void 0:c.id)!==void 0&&((f=(p=o.data.question)==null?void 0:p.bypassNotifications)==null?void 0:f.inAppSilence)!==Bw.ON&&o.data.question.status===yn.ACTIVE&&!o.data.question.marketClosed){if(uJ.has(o.data.question.type))this.isInteractiveAllowed&&o.data.question.notification!==void 0&&this.notifications.add({type:bu.QUESTION,action:()=>{var Q,te,ie;return this.openQuestion((te=(Q=o.data)==null?void 0:Q.question)==null?void 0:te.id,(ie=o.data)==null?void 0:ie.feedItem)},close:()=>{var Q,te;return this.closeQuestion((te=(Q=o.data)==null?void 0:Q.question)==null?void 0:te.id)},autoHideDuration:1e3*60,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),emitEvent:!0,data:{questionId:o.data.question.id,questionType:o.data.question.type,question:{title:o.data.question.notification.title}}});else if(o.data.question.type===ye.FACTOID){const Q=(y=o.data.question.options)==null?void 0:y.options.value,te=((b=o.data.question.notification)==null?void 0:b.title)||o.data.question.subject||"",ie=((C=o.data.question.notification)==null?void 0:C.body)||Q.body,ae={heading:te,body:ie,imageMode:Q==null?void 0:Q.imageMode,image:Q==null?void 0:Q.image,video:{id:((_=Q==null?void 0:Q.video)==null?void 0:_.id)||"",url:((N=Q==null?void 0:Q.video)==null?void 0:N.url)||"",thumbnailUrl:((O=Q==null?void 0:Q.video)==null?void 0:O.thumbnailUrl)||""},webLink:{label:"",url:""}};this.notifications.add({type:bu.QUESTION,action:()=>{var Ce,Se,Ye;return this.openQuestion((Se=(Ce=o==null?void 0:o.data)==null?void 0:Ce.question)==null?void 0:Se.id,(Ye=o==null?void 0:o.data)==null?void 0:Ye.feedItem)},close:()=>{var Ce,Se;return this.closeQuestion((Se=(Ce=o==null?void 0:o.data)==null?void 0:Ce.question)==null?void 0:Se.id)},autoHideDuration:1e3*120,emitEvent:!0,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),data:{questionId:o.data.question.id,questionType:o.data.question.type,insight:ae}})}else if(o.data.question.type===ye.TWEET&&o.data.question.notification!==void 0){const Q=(L=o.data.question.options)==null?void 0:L.options.value,te={title:(x=o.data.question.notification)==null?void 0:x.title,body:(D=o.data.question.notification)==null?void 0:D.body,image:(j=o.data.question.notification)==null?void 0:j.image,account:((V=Q==null?void 0:Q.tweetMeta)==null?void 0:V.account)||"",accountVerified:!!((Y=Q==null?void 0:Q.tweetMeta)!=null&&Y.accountVerified),tweet:(Z=Q==null?void 0:Q.tweetMeta)==null?void 0:Z.tweet,tweetId:o.data.question.id};this.notifications.add({type:bu.QUESTION,action:()=>{var ie,ae,Ce;return this.openQuestion((ae=(ie=o.data)==null?void 0:ie.question)==null?void 0:ae.id,(Ce=o.data)==null?void 0:Ce.feedItem)},close:()=>{var ie,ae;return this.closeQuestion((ae=(ie=o.data)==null?void 0:ie.question)==null?void 0:ae.id)},autoHideDuration:1e3*120,emitEvent:!0,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),data:{questionId:o.data.question.id,questionType:o.data.question.type,tweet:te}})}}});this.background=new PX(c),this.advertisement=this.background.advertisement,this.onQuestionActivate=c.onQuestionActivate,this.feedSubscription=this.background.feedSubscription,this.activeQuestionId=this.background.activeQuestionId,this.openedQuestionId=this.background.openedQuestionId,this.storage=new yE,this.feedList=this.background.feedList,this.friends=new ei(bX(this.background.userId,c.transport),"gamification:friends"),this.currentUserId=this.background.userId,this.openedUser=da(void 0),this.onboardingProcessed=da(!c.sdk.withAuth),this.leaderboardId=new Oo(da(this.settings.getValue("pinnedLeaderboardId")),"pinnedLeaderboardId").getStore(),this.onboardingStatus=sJ(this,this.background,c.transport,c.notifications),this.notifications=c.notifications,this.transport=c.transport,this.closeFeature=(p=!0)=>c.sdk.closeFeature(p),this.openFeature=()=>c.sdk.openFeature(yt.GAMES),this.openedQuestion=this.background.openedQuestion,this.deepLink=rJ(this.transport,this.background.slStreamId,c.stores.providerStreamId.getStore(),this.background.userId),this.userSummary=iJ(this.background.slStreamId,this.background.userId,this.friends,this.transport),this.leaderboardList=zX(this.transport,this.background.slStreamId,this.background.userId,this.friends),this.connect(),this.cancels.add(this.userSummary.$store.listen((p,f)=>{f!=null&&f.summary&&(p!=null&&p.summary)&&this.leaderboardList.invalidate()})),this.cancels.add(this.onboardingStatus.$store.listen(this.checkInteractiveFlag)),this.cancels.add(this.background.moderation.getStore().listen(this.checkInteractiveFlag)),this.cancels.add(this.settings.subscribe(this.checkInteractiveFlag)),this.cancels.add(this.onboardingStatus.$store.listen((p,f)=>{(f===void 0||p!==ia.Unset)&&this.background.activeQuestionId.invalidate()})),this.background.activeQuestionId.listen(this.showInApp),this.friendsTabEnabled=da(!1),this.cancels.add(c.sdk.options.subscribe(p=>{p.friendsTab==="disabled"?this.friendsTabEnabled.set(!1):p.friendsTab==="enabled"&&this.friendsTabEnabled.set(!0)})),this.cancels.add(this.settings.subscribe(p=>{var f,y;c.sdk.options.get().friendsTab==="activatedGame"&&this.friendsTabEnabled.set(!!((y=(f=p.inplayGame)==null?void 0:f.titleCard)!=null&&y.optIn))})),c.sdk.onMount({name:"gamification",clear:!0},()=>()=>{for(const p of this.cancels)p(),this.cancels.delete(p)})}get isInteractiveAllowed(){return this.background.interactiveAllowed.get()===Jc.ALLOWED}}const dJ={[yt.GAMES]:!0};class mJ extends mE{constructor(a,o){super(a,o)}}const fJ=(n,a,o)=>n.type===yt.GAMES?new cJ(n,a,o):new mJ(n,a),pJ=(n,a,o)=>{n.features=new Map,n.sdk.featuresList=new Oo(da(new Set),"features-list"),n.activeFeature=new Oo(da(yt.UNSET),"activeFeature"),n.sdk.getFeatures=()=>n.features,n.sdk.getFeature=l=>n.features.get(l),n.sdk.getActiveFeature=()=>n.activeFeature.getStore(),n.sdk.openFeature=l=>{n.activeFeature.setValue(l)},n.sdk.closeFeature=(l=!1)=>{const c=n.activeFeature.getValue();if(n.activeFeature.setValue(yt.UNSET),l&&c){n.features.delete(c);const p=n.sdk.featuresList.getValue();p&&p.delete(c),n.sdk.featuresList.setValue(p)}},n.initFeature=(l,c=Ki.ORGANIZATION)=>{if(l.type in dJ&&!n.features.has(l.type)){const p=fJ(l,c,n);n.features.set(l.type,p);let f=n.sdk.featuresList.getValue();f?f.add(l.type):f=new Set([l.type]),n.sdk.featuresList.setValue(new Set(f))}},n.updateFeature=(l,c)=>{var p;(p=n.features.get(l.type))==null||p.update(l,c)},n.destroyFeature=l=>{n.features.delete(l.type);const c=n.sdk.featuresList.getValue();c&&c.delete(l.type),n.sdk.featuresList.setValue(new Set(c))},n.reinitializeFeatures=async()=>{const l=await n.stores.organizationSettings.getValue();n.features.clear(),n.sdk.featuresList.setValue(new Set);for(const c of(l==null?void 0:l.overlays)||[])n.initFeature(c,Ki.ORGANIZATION)},n.stores.providerStreamId.listen(l=>{l||n.reinitializeFeatures()}),n.storeSubscribe=()=>{const l=(p,f)=>{var y;if(f!=null&&f.overlays&&!((y=n.contextConfig)!=null&&y.skipOrganizationSettings&&p===Ki.ORGANIZATION))for(const b of f.overlays)b.sdkEnable===!0&&(n.features.has(b.type)?n.updateFeature(b,p):n.initFeature(b,p))},c={organizationSettings:p=>{if(p.data)try{l(Ki.ORGANIZATION,p.data)}catch(f){console.log(f)}},streamSettings:p=>{if(p.data)try{l(Ki.STREAM,p.data)}catch(f){console.log(f)}}};n.store.subscribe(c)},o()};class hJ{constructor(a){U(this,"analytics");U(this,"accepted",()=>{this.analytics.write("invitation",{common:{...this.analytics.commonStore.getValues(),kind:la.INVITATION_ACCEPTED},category:f9.GAMES,from:c2.UNSET})});U(this,"sent",({from:a})=>{this.analytics.write("invitation",{common:{...this.analytics.commonStore.getValues(),kind:la.INVITATION_SENT},category:f9.GAMES,from:a||c2.UNSET})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c;if(((c=l.slEventBus)==null?void 0:c.type)==="invitation")switch(l.slEventBus.action){case"sent":this.sent(l.slEventBus.payload);break}};return ua.listen(o)})}}class gJ{constructor(a){U(this,"analytics");U(this,"tap",()=>{this.analytics.write("interactions",{common:{...this.analytics.commonStore.getValues(),kind:la.INTERACTIONS},actionType:C9.TAP})});U(this,"scroll",()=>{this.analytics.write("interactions",{common:{...this.analytics.commonStore.getValues(),kind:la.INTERACTIONS},actionType:C9.SCROLL})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c;if(((c=l.slEventBus)==null?void 0:c.type)==="interactions")switch(l.slEventBus.action){case"tap":this.tap();break;case"scroll":this.scroll();break}};return ua.listen(o)})}}const yJ={[Hr.UNSET]:Qs.UNSET,[Hr.INGAME_IAB21]:Qs.PROMOTION_INGAME_IAB21,[Hr.INGAME_IAB11_LBAR]:Qs.PROMOTION_INGAME_IAB11_LBAR,[Hr.INGAME_IAB11]:Qs.PROMOTION_INGAME_IAB11,[Hr.INGAME_IAB21_LBAR]:Qs.PROMOTION_INGAME_IAB21_LBAR,[Hr.INGAME_IAB61]:Qs.PROMOTION_INGAME_IAB61,[Hr.EXTERNAL_AD]:Qs.PROMOTION_GAM},O9=n=>n?yJ[n]:Qs.UNSET;class vJ{constructor(a){U(this,"analytics");U(this,"received",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_RECEIVED,topicId:a,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});U(this,"opened",({id:a,openedFrom:o},{topicSubType:l})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_OPENED,topicId:a,topicType:Wn.POLLS_PROMOTION,topicSubType:l},pollOpenedFrom:o==="notification"?zr.IN_APP:zr.UNSET})});U(this,"viewed",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_OPENED,topicId:a,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});U(this,"videoPlay",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),topicId:a,kind:la.AD_VIDEO_PLAYED,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});U(this,"buttonSelect",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),topicId:a,kind:la.AD_BUTTON_NAVIGATED,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});U(this,"bannerSelect",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),topicId:a,kind:la.AD_BANNER_NAVIGATED,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c,p;if(!((c=l.slEventBus)!=null&&c.skipAnalytics)&&((p=l.slEventBus)==null?void 0:p.type)==="advertisement"){const f=O9(l.slEventBus.payload.type);switch(l.slEventBus.action){case"videoPlay":this.videoPlay(l.slEventBus.payload,{topicSubType:f});break;case"buttonSelect":this.buttonSelect(l.slEventBus.payload,{topicSubType:f});break;case"bannerSelect":this.bannerSelect(l.slEventBus.payload,{topicSubType:f});break;case"received":this.received(l.slEventBus.payload,{topicSubType:f});break;case"opened":this.opened(l.slEventBus.payload,{topicSubType:f});break;case"viewed":this.viewed(l.slEventBus.payload,{topicSubType:f});break}}};return ua.listen(o)})}}const s2={[ye.UNSET]:Wn.UNSET,[ye.FACTOID]:Wn.POLLS_INSIGHT,[ye.POLL]:Wn.POLLS_POLL,[ye.PREDICTION]:Wn.POLLS_PREDICTION,[ye.PROMOTION]:Wn.POLLS_PROMOTION,[ye.TRIVIA]:Wn.POLLS_TRIVIA,[ye.TWEET]:Wn.POLLS_TWITTER};ye.UNSET+"",Ys.UNSET,ye.FACTOID+"",Ys.POLLS,ye.POLL+"",Ys.POLLS,ye.PREDICTION+"",Ys.POLLS,ye.PROMOTION+"",Ys.POLLS,ye.TRIVIA+"",Ys.POLLS,ye.TWEET+"",Ys.POLLS;const TJ={[yt.UNSET]:Fa.UNSET,[yt.INPLAY]:Fa.INPLAY,[yt.MESSAGING]:Fa.MESSAGING,[yt.STATISTICS]:Fa.STATS,[yt.BETTING]:Fa.BETTING,[yt.TWITTER]:Fa.TWITTER,[yt.MERCHANDISE]:Fa.MERCHANDISE,[yt.CONTESTS]:Fa.CONTESTS,[yt.VOICE_CHAT]:Fa.CALLING,[yt.TICKETS]:Fa.TICKETS,[yt.WHOIS_WATCHING]:Fa.WHOISWATCHING,[yt.PROFILE]:Fa.PROFILE,[yt.GAMES]:Fa.POLLS,[yt.GOLF_STATISTICS]:Fa.STATS,[yt.HIGHLIGHTS]:Fa.HIGHLIGHTS,[yt.PUBLIC_CHAT]:Fa.PUBLIC_CHAT};class bJ{constructor(a){U(this,"analytics");U(this,"received",({questionId:a,questionType:o,topicSubType:l})=>{this.analytics.write("notification",{common:{...this.analytics.commonStore.getValues(),kind:la.NOTIFICATION_RECEIVED,topicId:a,topicType:o?s2[o]:Wn.UNSET,topicSubType:l},notificationKind:Ys.POLLS,notificationType:E9.IN_APP})});U(this,"opened",({questionId:a,questionType:o,topicSubType:l})=>{this.analytics.write("notification",{common:{...this.analytics.commonStore.getValues(),kind:la.NOTIFICATION_OPENED,topicId:a,topicType:o?s2[o]:Wn.UNSET,topicSubType:l},notificationKind:Ys.POLLS,notificationType:E9.IN_APP})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c,p;if(((c=l.slEventBus)==null?void 0:c.type)==="notification")switch(l.slEventBus.action){case"rendered":this.received(l.slEventBus.payload);break;case"opened":this.opened(l.slEventBus.payload);break}if(((p=l.slEventBus)==null?void 0:p.type)==="advertisement")switch(l.slEventBus.action){case"notification-received":this.received({questionId:l.slEventBus.payload.id,questionType:ye.PROMOTION,topicSubType:O9(l.slEventBus.payload.type)});break;case"notification-opened":this.opened({questionId:l.slEventBus.payload.id,questionType:ye.PROMOTION,topicSubType:O9(l.slEventBus.payload.type)});break}};return ua.listen(o)})}}class kJ{constructor(a){U(this,"analytics");U(this,"received",({questionId:a,questionType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_RECEIVED,topicId:a,topicType:o?s2[o]:Wn.UNSET},pollOpenedFrom:zr.UNSET})});U(this,"opened",({questionId:a,questionType:o,questionOpenedFrom:l})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_OPENED,topicId:a,topicType:o?s2[o]:Wn.UNSET},pollOpenedFrom:l==="list"?zr.PICK_HISTORY:zr.IN_APP})});U(this,"voted",({questionId:a,questionType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_VOTE,topicId:a,topicType:o?s2[o]:Wn.UNSET},pollOpenedFrom:zr.UNSET})});U(this,"onboardingPassed",()=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.GAMES_JOINED},pollOpenedFrom:zr.UNSET})});U(this,"navigated",()=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_NAVIGATED},pollOpenedFrom:zr.UNSET})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c;if(((c=l.slEventBus)==null?void 0:c.type)==="poll")switch(l.slEventBus.action){case"voted":this.voted(l.slEventBus.payload);break;case"navigated":this.navigated();break;case"onboardingPassed":this.onboardingPassed();break;case"received":this.received(l.slEventBus.payload);break;case"opened":this.opened(l.slEventBus.payload);break}};return ua.listen(o)})}}const SJ=({transport:n,$commonStore:a})=>{let o;const l=da(!1),c=5e3,{client:p,queryKey:f}=n.createPromiseClient(iE,{method:"send",params:[l]}),y=n.nanoquery.createFetcherStore(f,{fetcher:async()=>{const N=a.getStore().get();try{await p.unary({message:{case:"heartbeat",value:{common:{...N,kind:la.SESSION_HEARTBEAT}}}})}catch(O){Xi.error(O,"send heartbeat failed")}return Date.now()},refetchInterval:c}),b=()=>{Xi.debug("mounted heartbeat"),o=y.subscribe(()=>{})},C=()=>{Xi.debug("enabled heartbeat"),l.set(!0),y.lc===0&&b()},_=()=>{Xi.debug("disabled heartbeat"),l.set(!1)};return{enable:C,disable:_,mount:b,unmount:()=>{Xi.debug("unmounted heartbeat"),y.off(),o==null||o(),o=void 0,_()}}},Xi=ti("analytics");class wJ{constructor(a){U(this,"commonStore");U(this,"notifications");U(this,"polls");U(this,"invitation");U(this,"interactions");U(this,"advertisement");U(this,"heartbeat");U(this,"analyticsClient");U(this,"listeners");U(this,"listenersCancels");U(this,"connected",!1);U(this,"connect",()=>{this.writeCommon("sessionId",S9()),this.heartbeat.enable(),this.listeners.forEach(a=>this.listenersCancels.add(a())),this.connected=!0,Xi.debug("analytics connected")});U(this,"disconnect",()=>{this.writeCommon("sessionId",""),this.writeCommon("overlaySessionId",""),this.heartbeat.unmount(),this.listenersCancels.forEach(a=>a()),this.connected=!1,Xi.debug("analytics disconnected")});U(this,"write",(a,o)=>{o&&this.analyticsClient.unary({message:{case:a,value:o}}).then(()=>{Xi.trace("send analytics success",a,o)}).catch(l=>{Xi.error(l,"send analytics failed")})});U(this,"writeCommon",(a,o)=>{this.commonStore.setValue(a,o)});U(this,"onConnect",a=>{this.listeners.add(a),this.connected&&this.listenersCancels.add(a())});U(this,"connectToSDK",a=>{this.onConnect(()=>a.stores.slStreamId.getAtomStore().subscribe(o=>{this.writeCommon("eventId",o)})),this.onConnect(()=>a.sdk.getActiveFeature().subscribe(o=>{o&&this.writeCommon("category",TJ[o]),o!==yt.UNSET?this.writeCommon("overlaySessionId",S9()):this.writeCommon("overlaySessionId","")})),this.onConnect(()=>{const o=window.matchMedia("(orientation: portrait)"),l=c=>{this.writeCommon("screenOrientation",c.matches?d9.PORTRAIT:d9.LANDSCAPE)};return o.addEventListener("change",l),()=>{o.removeEventListener("change",l)}}),this.onConnect(()=>a.deepLink.$store.subscribe(o=>{o!=null&&o.handled&&this.invitation.accepted()}))});this.listeners=new Set,this.listenersCancels=new Set,this.commonStore=new Xc(co({}),"common-analytics"),this.connectToSDK(a),this.heartbeat=SJ({transport:a.analyticsTransport,$commonStore:this.commonStore}),this.notifications=new bJ(this),this.polls=new kJ(this),this.invitation=new hJ(this),this.interactions=new gJ(this),this.advertisement=new vJ(this);const{client:o}=a.analyticsTransport.createPromiseClient(iE,{method:"send"});this.analyticsClient=o}}const CJ=(n,a,o)=>{n.analytics=new wJ(n),n.sdk.onMount({name:"analytics"},()=>(n.analytics.connect(),()=>{n.analytics.disconnect()})),o()};var by=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof y9<"u"?y9:typeof self<"u"?self:{};function EJ(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ky={exports:{}},Sy={exports:{}};function _J(n){var a=new n,o=a;function l(){var p=a;return p.next?a=p.next:(a=new n,o=a),p.next=null,p}function c(p){o.next=p,o=p}return{get:l,release:c}}var IJ=_J,NJ=IJ;function bE(n,a,o){if(typeof n=="function"&&(o=a,a=n,n=null),!(o>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var l=NJ(RJ),c=null,p=null,f=0,y=null,b={push:D,drain:No,saturated:No,pause:_,paused:!1,get concurrency(){return o},set concurrency(te){if(!(te>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(o=te,!b.paused)for(;c&&f<o;)f++,V()},running:C,resume:L,idle:x,length:N,getQueue:O,unshift:j,empty:No,kill:Y,killAndDrain:Z,error:Q};return b;function C(){return f}function _(){b.paused=!0}function N(){for(var te=c,ie=0;te;)te=te.next,ie++;return ie}function O(){for(var te=c,ie=[];te;)ie.push(te.value),te=te.next;return ie}function L(){if(b.paused){if(b.paused=!1,c===null){f++,V();return}for(;c&&f<o;)f++,V()}}function x(){return f===0&&b.length()===0}function D(te,ie){var ae=l.get();ae.context=n,ae.release=V,ae.value=te,ae.callback=ie||No,ae.errorHandler=y,f>=o||b.paused?p?(p.next=ae,p=ae):(c=ae,p=ae,b.saturated()):(f++,a.call(n,ae.value,ae.worked))}function j(te,ie){var ae=l.get();ae.context=n,ae.release=V,ae.value=te,ae.callback=ie||No,ae.errorHandler=y,f>=o||b.paused?c?(ae.next=c,c=ae):(c=ae,p=ae,b.saturated()):(f++,a.call(n,ae.value,ae.worked))}function V(te){te&&l.release(te);var ie=c;ie&&f<=o?b.paused?f--:(p===c&&(p=null),c=ie.next,ie.next=null,a.call(n,ie.value,ie.worked),p===null&&b.empty()):--f===0&&b.drain()}function Y(){c=null,p=null,b.drain=No}function Z(){c=null,p=null,b.drain(),b.drain=No}function Q(te){y=te}}function No(){}function RJ(){this.value=null,this.callback=No,this.next=null,this.release=No,this.context=null,this.errorHandler=null;var n=this;this.worked=function(a,o){var l=n.callback,c=n.errorHandler,p=n.value;n.value=null,n.callback=No,n.errorHandler&&c(a,p),l.call(n.context,a,o),n.release(n)}}function OJ(n,a,o){typeof n=="function"&&(o=a,a=n,n=null);function l(_,N){a.call(this,_).then(function(O){N(null,O)},N)}var c=bE(n,l,o),p=c.push,f=c.unshift;return c.push=y,c.unshift=b,c.drained=C,c;function y(_){var N=new Promise(function(O,L){p(_,function(x,D){if(x){L(x);return}O(D)})});return N.catch(No),N}function b(_){var N=new Promise(function(O,L){f(_,function(x,D){if(x){L(x);return}O(D)})});return N.catch(No),N}function C(){if(c.idle())return new Promise(function(O){O()});var _=c.drain,N=new Promise(function(O){c.drain=function(){_(),O()}});return N}}Sy.exports=bE;Sy.exports.promise=OJ;var kE=Sy.exports,wy={exports:{}},gm=typeof Reflect=="object"?Reflect:null,PS=gm&&typeof gm.apply=="function"?gm.apply:function(n,a,o){return Function.prototype.apply.call(n,a,o)},Yh;gm&&typeof gm.ownKeys=="function"?Yh=gm.ownKeys:Object.getOwnPropertySymbols?Yh=function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Yh=function(n){return Object.getOwnPropertyNames(n)};function LJ(n){console&&console.warn&&console.warn(n)}var SE=Number.isNaN||function(n){return n!==n};function Qt(){Qt.init.call(this)}wy.exports=Qt;wy.exports.once=MJ;Qt.EventEmitter=Qt;Qt.prototype._events=void 0;Qt.prototype._eventsCount=0;Qt.prototype._maxListeners=void 0;var MS=10;function x6(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(Qt,"defaultMaxListeners",{enumerable:!0,get:function(){return MS},set:function(n){if(typeof n!="number"||n<0||SE(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");MS=n}});Qt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Qt.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||SE(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function wE(n){return n._maxListeners===void 0?Qt.defaultMaxListeners:n._maxListeners}Qt.prototype.getMaxListeners=function(){return wE(this)};Qt.prototype.emit=function(n){for(var a=[],o=1;o<arguments.length;o++)a.push(arguments[o]);var l=n==="error",c=this._events;if(c!==void 0)l=l&&c.error===void 0;else if(!l)return!1;if(l){var p;if(a.length>0&&(p=a[0]),p instanceof Error)throw p;var f=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw f.context=p,f}var y=c[n];if(y===void 0)return!1;if(typeof y=="function")PS(y,this,a);else for(var b=y.length,C=NE(y,b),o=0;o<b;++o)PS(C[o],this,a);return!0};function CE(n,a,o,l){var c,p,f;if(x6(o),p=n._events,p===void 0?(p=n._events=Object.create(null),n._eventsCount=0):(p.newListener!==void 0&&(n.emit("newListener",a,o.listener?o.listener:o),p=n._events),f=p[a]),f===void 0)f=p[a]=o,++n._eventsCount;else if(typeof f=="function"?f=p[a]=l?[o,f]:[f,o]:l?f.unshift(o):f.push(o),c=wE(n),c>0&&f.length>c&&!f.warned){f.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(a)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=n,y.type=a,y.count=f.length,LJ(y)}return n}Qt.prototype.addListener=function(n,a){return CE(this,n,a,!1)};Qt.prototype.on=Qt.prototype.addListener;Qt.prototype.prependListener=function(n,a){return CE(this,n,a,!0)};function AJ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function EE(n,a,o){var l={fired:!1,wrapFn:void 0,target:n,type:a,listener:o},c=AJ.bind(l);return c.listener=o,l.wrapFn=c,c}Qt.prototype.once=function(n,a){return x6(a),this.on(n,EE(this,n,a)),this};Qt.prototype.prependOnceListener=function(n,a){return x6(a),this.prependListener(n,EE(this,n,a)),this};Qt.prototype.removeListener=function(n,a){var o,l,c,p,f;if(x6(a),l=this._events,l===void 0)return this;if(o=l[n],o===void 0)return this;if(o===a||o.listener===a)--this._eventsCount===0?this._events=Object.create(null):(delete l[n],l.removeListener&&this.emit("removeListener",n,o.listener||a));else if(typeof o!="function"){for(c=-1,p=o.length-1;p>=0;p--)if(o[p]===a||o[p].listener===a){f=o[p].listener,c=p;break}if(c<0)return this;c===0?o.shift():xJ(o,c),o.length===1&&(l[n]=o[0]),l.removeListener!==void 0&&this.emit("removeListener",n,f||a)}return this};Qt.prototype.off=Qt.prototype.removeListener;Qt.prototype.removeAllListeners=function(n){var a,o,l;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[n]),this;if(arguments.length===0){var c=Object.keys(o),p;for(l=0;l<c.length;++l)p=c[l],p!=="removeListener"&&this.removeAllListeners(p);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(a=o[n],typeof a=="function")this.removeListener(n,a);else if(a!==void 0)for(l=a.length-1;l>=0;l--)this.removeListener(n,a[l]);return this};function _E(n,a,o){var l=n._events;if(l===void 0)return[];var c=l[a];return c===void 0?[]:typeof c=="function"?o?[c.listener||c]:[c]:o?PJ(c):NE(c,c.length)}Qt.prototype.listeners=function(n){return _E(this,n,!0)};Qt.prototype.rawListeners=function(n){return _E(this,n,!1)};Qt.listenerCount=function(n,a){return typeof n.listenerCount=="function"?n.listenerCount(a):IE.call(n,a)};Qt.prototype.listenerCount=IE;function IE(n){var a=this._events;if(a!==void 0){var o=a[n];if(typeof o=="function")return 1;if(o!==void 0)return o.length}return 0}Qt.prototype.eventNames=function(){return this._eventsCount>0?Yh(this._events):[]};function NE(n,a){for(var o=new Array(a),l=0;l<a;++l)o[l]=n[l];return o}function xJ(n,a){for(;a+1<n.length;a++)n[a]=n[a+1];n.pop()}function PJ(n){for(var a=new Array(n.length),o=0;o<a.length;++o)a[o]=n[o].listener||n[o];return a}function MJ(n,a){return new Promise(function(o,l){function c(f){n.removeListener(a,p),l(f)}function p(){typeof n.removeListener=="function"&&n.removeListener("error",c),o([].slice.call(arguments))}RE(n,a,p,{once:!0}),a!=="error"&&DJ(n,c,{once:!0})})}function DJ(n,a,o){typeof n.on=="function"&&RE(n,"error",a,o)}function RE(n,a,o,l){if(typeof n.on=="function")l.once?n.once(a,o):n.on(a,o);else if(typeof n.addEventListener=="function")n.addEventListener(a,function c(p){l.once&&n.removeEventListener(a,c),o(p)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n)}var OE=wy.exports,P6={},LE={},AE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),o=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var l=42;n[a]=l;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var c=Object.getOwnPropertySymbols(n);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(n,a);if(p.value!==l||p.enumerable!==!0)return!1}return!0},UJ=AE,M6=function(){return UJ()&&!!Symbol.toStringTag},FJ=Error,VJ=EvalError,jJ=RangeError,BJ=ReferenceError,xE=SyntaxError,D6=TypeError,$J=URIError,DS=typeof Symbol<"u"&&Symbol,zJ=AE,HJ=function(){return typeof DS!="function"||typeof Symbol!="function"||typeof DS("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:zJ()},j5={__proto__:null,foo:{}},qJ=Object,GJ=function(){return{__proto__:j5}.foo===j5.foo&&!(j5 instanceof qJ)},WJ="Function.prototype.bind called on incompatible ",QJ=Object.prototype.toString,YJ=Math.max,KJ="[object Function]",US=function(n,a){for(var o=[],l=0;l<n.length;l+=1)o[l]=n[l];for(var c=0;c<a.length;c+=1)o[c+n.length]=a[c];return o},ZJ=function(n,a){for(var o=[],l=a,c=0;l<n.length;l+=1,c+=1)o[c]=n[l];return o},XJ=function(n,a){for(var o="",l=0;l<n.length;l+=1)o+=n[l],l+1<n.length&&(o+=a);return o},JJ=function(n){var a=this;if(typeof a!="function"||QJ.apply(a)!==KJ)throw new TypeError(WJ+a);for(var o=ZJ(arguments,1),l,c=function(){if(this instanceof l){var C=a.apply(this,US(o,arguments));return Object(C)===C?C:this}return a.apply(n,US(o,arguments))},p=YJ(0,a.length-o.length),f=[],y=0;y<p;y++)f[y]="$"+y;if(l=Function("binder","return function ("+XJ(f,",")+"){ return binder.apply(this,arguments); }")(c),a.prototype){var b=function(){};b.prototype=a.prototype,l.prototype=new b,b.prototype=null}return l},eee=JJ,Cy=Function.prototype.bind||eee,tee=Function.prototype.call,nee=Object.prototype.hasOwnProperty,aee=Cy,ree=aee.call(tee,nee),Lt,oee=FJ,see=VJ,iee=jJ,lee=BJ,km=xE,ym=D6,uee=$J,PE=Function,B5=function(n){try{return PE('"use strict"; return ('+n+").constructor;")()}catch{}},ed=Object.getOwnPropertyDescriptor;if(ed)try{ed({},"")}catch{ed=null}var $5=function(){throw new ym},cee=ed?function(){try{return arguments.callee,$5}catch{try{return ed(arguments,"callee").get}catch{return $5}}}():$5,rm=HJ(),dee=GJ(),Sa=Object.getPrototypeOf||(dee?function(n){return n.__proto__}:null),sm={},mee=typeof Uint8Array>"u"||!Sa?Lt:Sa(Uint8Array),td={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Lt:ArrayBuffer,"%ArrayIteratorPrototype%":rm&&Sa?Sa([][Symbol.iterator]()):Lt,"%AsyncFromSyncIteratorPrototype%":Lt,"%AsyncFunction%":sm,"%AsyncGenerator%":sm,"%AsyncGeneratorFunction%":sm,"%AsyncIteratorPrototype%":sm,"%Atomics%":typeof Atomics>"u"?Lt:Atomics,"%BigInt%":typeof BigInt>"u"?Lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oee,"%eval%":eval,"%EvalError%":see,"%Float32Array%":typeof Float32Array>"u"?Lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Lt:FinalizationRegistry,"%Function%":PE,"%GeneratorFunction%":sm,"%Int8Array%":typeof Int8Array>"u"?Lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rm&&Sa?Sa(Sa([][Symbol.iterator]())):Lt,"%JSON%":typeof JSON=="object"?JSON:Lt,"%Map%":typeof Map>"u"?Lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!rm||!Sa?Lt:Sa(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Lt:Promise,"%Proxy%":typeof Proxy>"u"?Lt:Proxy,"%RangeError%":iee,"%ReferenceError%":lee,"%Reflect%":typeof Reflect>"u"?Lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!rm||!Sa?Lt:Sa(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rm&&Sa?Sa(""[Symbol.iterator]()):Lt,"%Symbol%":rm?Symbol:Lt,"%SyntaxError%":km,"%ThrowTypeError%":cee,"%TypedArray%":mee,"%TypeError%":ym,"%Uint8Array%":typeof Uint8Array>"u"?Lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Lt:Uint32Array,"%URIError%":uee,"%WeakMap%":typeof WeakMap>"u"?Lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Lt:WeakSet};if(Sa)try{null.error}catch(n){var fee=Sa(Sa(n));td["%Error.prototype%"]=fee}var pee=function n(a){var o;if(a==="%AsyncFunction%")o=B5("async function () {}");else if(a==="%GeneratorFunction%")o=B5("function* () {}");else if(a==="%AsyncGeneratorFunction%")o=B5("async function* () {}");else if(a==="%AsyncGenerator%"){var l=n("%AsyncGeneratorFunction%");l&&(o=l.prototype)}else if(a==="%AsyncIteratorPrototype%"){var c=n("%AsyncGenerator%");c&&Sa&&(o=Sa(c.prototype))}return td[a]=o,o},FS={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},h2=Cy,f6=ree,hee=h2.call(Function.call,Array.prototype.concat),gee=h2.call(Function.apply,Array.prototype.splice),VS=h2.call(Function.call,String.prototype.replace),p6=h2.call(Function.call,String.prototype.slice),yee=h2.call(Function.call,RegExp.prototype.exec),vee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Tee=/\\(\\)?/g,bee=function(n){var a=p6(n,0,1),o=p6(n,-1);if(a==="%"&&o!=="%")throw new km("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&a!=="%")throw new km("invalid intrinsic syntax, expected opening `%`");var l=[];return VS(n,vee,function(c,p,f,y){l[l.length]=f?VS(y,Tee,"$1"):p||c}),l},kee=function(n,a){var o=n,l;if(f6(FS,o)&&(l=FS[o],o="%"+l[0]+"%"),f6(td,o)){var c=td[o];if(c===sm&&(c=pee(o)),typeof c>"u"&&!a)throw new ym("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:l,name:o,value:c}}throw new km("intrinsic "+n+" does not exist!")},g2=function(n,a){if(typeof n!="string"||n.length===0)throw new ym("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new ym('"allowMissing" argument must be a boolean');if(yee(/^%?[^%]*%?$/,n)===null)throw new km("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=bee(n),l=o.length>0?o[0]:"",c=kee("%"+l+"%",a),p=c.name,f=c.value,y=!1,b=c.alias;b&&(l=b[0],gee(o,hee([0,1],b)));for(var C=1,_=!0;C<o.length;C+=1){var N=o[C],O=p6(N,0,1),L=p6(N,-1);if((O==='"'||O==="'"||O==="`"||L==='"'||L==="'"||L==="`")&&O!==L)throw new km("property names with quotes must have matching quotes");if((N==="constructor"||!_)&&(y=!0),l+="."+N,p="%"+l+"%",f6(td,p))f=td[p];else if(f!=null){if(!(N in f)){if(!a)throw new ym("base intrinsic for "+n+" exists, but the property is not available.");return}if(ed&&C+1>=o.length){var x=ed(f,N);_=!!x,_&&"get"in x&&!("originalValue"in x.get)?f=x.get:f=f[N]}else _=f6(f,N),f=f[N];_&&!y&&(td[p]=f)}}return f},ME={exports:{}},z5,jS;function Ey(){if(jS)return z5;jS=1;var n=g2,a=n("%Object.defineProperty%",!0)||!1;if(a)try{a({},"a",{value:1})}catch{a=!1}return z5=a,z5}var See=g2,Kh=See("%Object.getOwnPropertyDescriptor%",!0);if(Kh)try{Kh([],"length")}catch{Kh=null}var U6=Kh,BS=Ey(),wee=xE,om=D6,$S=U6,Cee=function(n,a,o){if(!n||typeof n!="object"&&typeof n!="function")throw new om("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new om("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new om("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new om("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new om("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new om("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,y=!!$S&&$S(n,a);if(BS)BS(n,a,{configurable:p===null&&y?y.configurable:!p,enumerable:l===null&&y?y.enumerable:!l,value:o,writable:c===null&&y?y.writable:!c});else if(f||!l&&!c&&!p)n[a]=o;else throw new wee("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},L9=Ey(),DE=function(){return!!L9};DE.hasArrayLengthDefineBug=function(){if(!L9)return null;try{return L9([],"length",{value:1}).length!==1}catch{return!0}};var Eee=DE,_ee=g2,zS=Cee,Iee=Eee(),HS=U6,qS=D6,Nee=_ee("%Math.floor%"),Ree=function(n,a){if(typeof n!="function")throw new qS("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||Nee(a)!==a)throw new qS("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],l=!0,c=!0;if("length"in n&&HS){var p=HS(n,"length");p&&!p.configurable&&(l=!1),p&&!p.writable&&(c=!1)}return(l||c||!o)&&(Iee?zS(n,"length",a,!0,!0):zS(n,"length",a)),n};(function(n){var a=Cy,o=g2,l=Ree,c=D6,p=o("%Function.prototype.apply%"),f=o("%Function.prototype.call%"),y=o("%Reflect.apply%",!0)||a.call(f,p),b=Ey(),C=o("%Math.max%");n.exports=function(N){if(typeof N!="function")throw new c("a function is required");var O=y(a,f,arguments);return l(O,1+C(0,N.length-(arguments.length-1)),!0)};var _=function(){return y(a,p,arguments)};b?b(n.exports,"apply",{value:_}):n.exports.apply=_})(ME);var _y=ME.exports,UE=g2,FE=_y,Oee=FE(UE("String.prototype.indexOf")),Iy=function(n,a){var o=UE(n,!!a);return typeof o=="function"&&Oee(n,".prototype.")>-1?FE(o):o},Lee=M6(),Aee=Iy,A9=Aee("Object.prototype.toString"),F6=function(n){return Lee&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:A9(n)==="[object Arguments]"},VE=function(n){return F6(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&A9(n)!=="[object Array]"&&A9(n.callee)==="[object Function]"},xee=function(){return F6(arguments)}();F6.isLegacyArguments=VE;var Pee=xee?F6:VE,Mee=Object.prototype.toString,Dee=Function.prototype.toString,Uee=/^\s*(?:function)?\*/,jE=M6(),H5=Object.getPrototypeOf,Fee=function(){if(!jE)return!1;try{return Function("return function*() {}")()}catch{}},q5,Vee=function(n){if(typeof n!="function")return!1;if(Uee.test(Dee.call(n)))return!0;if(!jE){var a=Mee.call(n);return a==="[object GeneratorFunction]"}if(!H5)return!1;if(typeof q5>"u"){var o=Fee();q5=o?H5(o):!1}return H5(n)===q5},BE=Function.prototype.toString,cm=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,x9,Zh;if(typeof cm=="function"&&typeof Object.defineProperty=="function")try{x9=Object.defineProperty({},"length",{get:function(){throw Zh}}),Zh={},cm(function(){throw 42},null,x9)}catch(n){n!==Zh&&(cm=null)}else cm=null;var jee=/^\s*class\b/,P9=function(n){try{var a=BE.call(n);return jee.test(a)}catch{return!1}},G5=function(n){try{return P9(n)?!1:(BE.call(n),!0)}catch{return!1}},Xh=Object.prototype.toString,Bee="[object Object]",$ee="[object Function]",zee="[object GeneratorFunction]",Hee="[object HTMLAllCollection]",qee="[object HTML document.all class]",Gee="[object HTMLCollection]",Wee=typeof Symbol=="function"&&!!Symbol.toStringTag,Qee=!(0 in[,]),M9=function(){return!1};if(typeof document=="object"){var Yee=document.all;Xh.call(Yee)===Xh.call(document.all)&&(M9=function(n){if((Qee||!n)&&(typeof n>"u"||typeof n=="object"))try{var a=Xh.call(n);return(a===Hee||a===qee||a===Gee||a===Bee)&&n("")==null}catch{}return!1})}var Kee=cm?function(n){if(M9(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;try{cm(n,null,x9)}catch(a){if(a!==Zh)return!1}return!P9(n)&&G5(n)}:function(n){if(M9(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(Wee)return G5(n);if(P9(n))return!1;var a=Xh.call(n);return a!==$ee&&a!==zee&&!/^\[object HTML/.test(a)?!1:G5(n)},Zee=Kee,Xee=Object.prototype.toString,$E=Object.prototype.hasOwnProperty,Jee=function(n,a,o){for(var l=0,c=n.length;l<c;l++)$E.call(n,l)&&(o==null?a(n[l],l,n):a.call(o,n[l],l,n))},ete=function(n,a,o){for(var l=0,c=n.length;l<c;l++)o==null?a(n.charAt(l),l,n):a.call(o,n.charAt(l),l,n)},tte=function(n,a,o){for(var l in n)$E.call(n,l)&&(o==null?a(n[l],l,n):a.call(o,n[l],l,n))},nte=function(n,a,o){if(!Zee(a))throw new TypeError("iterator must be a function");var l;arguments.length>=3&&(l=o),Xee.call(n)==="[object Array]"?Jee(n,a,l):typeof n=="string"?ete(n,a,l):tte(n,a,l)},zE=nte,ate=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],W5=ate,rte=typeof globalThis>"u"?by:globalThis,HE=function(){for(var n=[],a=0;a<W5.length;a++)typeof rte[W5[a]]=="function"&&(n[n.length]=W5[a]);return n},h6=zE,ote=HE,GS=_y,Ny=Iy,Jh=U6,ste=Ny("Object.prototype.toString"),qE=M6(),WS=typeof globalThis>"u"?by:globalThis,D9=ote(),Ry=Ny("String.prototype.slice"),Q5=Object.getPrototypeOf,ite=Ny("Array.prototype.indexOf",!0)||function(n,a){for(var o=0;o<n.length;o+=1)if(n[o]===a)return o;return-1},g6={__proto__:null};qE&&Jh&&Q5?h6(D9,function(n){var a=new WS[n];if(Symbol.toStringTag in a){var o=Q5(a),l=Jh(o,Symbol.toStringTag);if(!l){var c=Q5(o);l=Jh(c,Symbol.toStringTag)}g6["$"+n]=GS(l.get)}}):h6(D9,function(n){var a=new WS[n],o=a.slice||a.set;o&&(g6["$"+n]=GS(o))});var lte=function(n){var a=!1;return h6(g6,function(o,l){if(!a)try{"$"+o(n)===l&&(a=Ry(l,1))}catch{}}),a},ute=function(n){var a=!1;return h6(g6,function(o,l){if(!a)try{o(n),a=Ry(l,1)}catch{}}),a},cte=function(n){if(!n||typeof n!="object")return!1;if(!qE){var a=Ry(ste(n),8,-1);return ite(D9,a)>-1?a:a!=="Object"?!1:ute(n)}return Jh?lte(n):null},y6=zE,dte=HE,QS=_y,Oy=Iy,e6=U6,mte=Oy("Object.prototype.toString"),GE=M6(),YS=typeof globalThis>"u"?by:globalThis,U9=dte(),Ly=Oy("String.prototype.slice"),Y5=Object.getPrototypeOf,fte=Oy("Array.prototype.indexOf",!0)||function(n,a){for(var o=0;o<n.length;o+=1)if(n[o]===a)return o;return-1},v6={__proto__:null};GE&&e6&&Y5?y6(U9,function(n){var a=new YS[n];if(Symbol.toStringTag in a){var o=Y5(a),l=e6(o,Symbol.toStringTag);if(!l){var c=Y5(o);l=e6(c,Symbol.toStringTag)}v6["$"+n]=QS(l.get)}}):y6(U9,function(n){var a=new YS[n],o=a.slice||a.set;o&&(v6["$"+n]=QS(o))});var pte=function(n){var a=!1;return y6(v6,function(o,l){if(!a)try{"$"+o(n)===l&&(a=Ly(l,1))}catch{}}),a},hte=function(n){var a=!1;return y6(v6,function(o,l){if(!a)try{o(n),a=Ly(l,1)}catch{}}),a},gte=function(n){if(!n||typeof n!="object")return!1;if(!GE){var a=Ly(mte(n),8,-1);return fte(U9,a)>-1?a:a!=="Object"?!1:hte(n)}return e6?pte(n):null},yte=gte,vte=function(n){return!!yte(n)};(function(n){var a=Pee,o=Vee,l=cte,c=vte;function p(de){return de.call.bind(de)}var f=typeof BigInt<"u",y=typeof Symbol<"u",b=p(Object.prototype.toString),C=p(Number.prototype.valueOf),_=p(String.prototype.valueOf),N=p(Boolean.prototype.valueOf);if(f)var O=p(BigInt.prototype.valueOf);if(y)var L=p(Symbol.prototype.valueOf);function x(de,Ao){if(typeof de!="object")return!1;try{return Ao(de),!0}catch{return!1}}n.isArgumentsObject=a,n.isGeneratorFunction=o,n.isTypedArray=c;function D(de){return typeof Promise<"u"&&de instanceof Promise||de!==null&&typeof de=="object"&&typeof de.then=="function"&&typeof de.catch=="function"}n.isPromise=D;function j(de){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(de):c(de)||se(de)}n.isArrayBufferView=j;function V(de){return l(de)==="Uint8Array"}n.isUint8Array=V;function Y(de){return l(de)==="Uint8ClampedArray"}n.isUint8ClampedArray=Y;function Z(de){return l(de)==="Uint16Array"}n.isUint16Array=Z;function Q(de){return l(de)==="Uint32Array"}n.isUint32Array=Q;function te(de){return l(de)==="Int8Array"}n.isInt8Array=te;function ie(de){return l(de)==="Int16Array"}n.isInt16Array=ie;function ae(de){return l(de)==="Int32Array"}n.isInt32Array=ae;function Ce(de){return l(de)==="Float32Array"}n.isFloat32Array=Ce;function Se(de){return l(de)==="Float64Array"}n.isFloat64Array=Se;function Ye(de){return l(de)==="BigInt64Array"}n.isBigInt64Array=Ye;function Be(de){return l(de)==="BigUint64Array"}n.isBigUint64Array=Be;function Ge(de){return b(de)==="[object Map]"}Ge.working=typeof Map<"u"&&Ge(new Map);function Ne(de){return typeof Map>"u"?!1:Ge.working?Ge(de):de instanceof Map}n.isMap=Ne;function et(de){return b(de)==="[object Set]"}et.working=typeof Set<"u"&&et(new Set);function mt(de){return typeof Set>"u"?!1:et.working?et(de):de instanceof Set}n.isSet=mt;function Rt(de){return b(de)==="[object WeakMap]"}Rt.working=typeof WeakMap<"u"&&Rt(new WeakMap);function Qn(de){return typeof WeakMap>"u"?!1:Rt.working?Rt(de):de instanceof WeakMap}n.isWeakMap=Qn;function be(de){return b(de)==="[object WeakSet]"}be.working=typeof WeakSet<"u"&&be(new WeakSet);function Pe(de){return be(de)}n.isWeakSet=Pe;function we(de){return b(de)==="[object ArrayBuffer]"}we.working=typeof ArrayBuffer<"u"&&we(new ArrayBuffer);function ct(de){return typeof ArrayBuffer>"u"?!1:we.working?we(de):de instanceof ArrayBuffer}n.isArrayBuffer=ct;function z(de){return b(de)==="[object DataView]"}z.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&z(new DataView(new ArrayBuffer(1),0,1));function se(de){return typeof DataView>"u"?!1:z.working?z(de):de instanceof DataView}n.isDataView=se;var me=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function We(de){return b(de)==="[object SharedArrayBuffer]"}function gt(de){return typeof me>"u"?!1:(typeof We.working>"u"&&(We.working=We(new me)),We.working?We(de):de instanceof me)}n.isSharedArrayBuffer=gt;function it(de){return b(de)==="[object AsyncFunction]"}n.isAsyncFunction=it;function tt(de){return b(de)==="[object Map Iterator]"}n.isMapIterator=tt;function lt(de){return b(de)==="[object Set Iterator]"}n.isSetIterator=lt;function _t(de){return b(de)==="[object Generator]"}n.isGeneratorObject=_t;function Yt(de){return b(de)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=Yt;function In(de){return x(de,C)}n.isNumberObject=In;function qt(de){return x(de,_)}n.isStringObject=qt;function nn(de){return x(de,N)}n.isBooleanObject=nn;function Nt(de){return f&&x(de,O)}n.isBigIntObject=Nt;function sn(de){return y&&x(de,L)}n.isSymbolObject=sn;function Nn(de){return In(de)||qt(de)||nn(de)||Nt(de)||sn(de)}n.isBoxedPrimitive=Nn;function Wr(de){return typeof Uint8Array<"u"&&(ct(de)||gt(de))}n.isAnyArrayBuffer=Wr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(de){Object.defineProperty(n,de,{enumerable:!1,value:function(){throw new Error(de+" is not supported in userland")}})})})(LE);var Tte=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},F9={exports:{}};typeof Object.create=="function"?F9.exports=function(n,a){a&&(n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:F9.exports=function(n,a){if(a){n.super_=a;var o=function(){};o.prototype=a.prototype,n.prototype=new o,n.prototype.constructor=n}};var bte=F9.exports;(function(n){var a=Object.getOwnPropertyDescriptors||function(z){for(var se=Object.keys(z),me={},We=0;We<se.length;We++)me[se[We]]=Object.getOwnPropertyDescriptor(z,se[We]);return me},o=/%[sdj%]/g;n.format=function(z){if(!te(z)){for(var se=[],me=0;me<arguments.length;me++)se.push(f(arguments[me]));return se.join(" ")}for(var me=1,We=arguments,gt=We.length,it=String(z).replace(o,function(_t){if(_t==="%%")return"%";if(me>=gt)return _t;switch(_t){case"%s":return String(We[me++]);case"%d":return Number(We[me++]);case"%j":try{return JSON.stringify(We[me++])}catch{return"[Circular]"}default:return _t}}),tt=We[me];me<gt;tt=We[++me])Y(tt)||!Se(tt)?it+=" "+tt:it+=" "+f(tt);return it},n.deprecate=function(z,se){if(typeof St<"u"&&St.noDeprecation===!0)return z;if(typeof St>"u")return function(){return n.deprecate(z,se).apply(this,arguments)};var me=!1;function We(){if(!me){if(St.throwDeprecation)throw new Error(se);St.traceDeprecation?console.trace(se):console.error(se),me=!0}return z.apply(this,arguments)}return We};var l={},c=/^$/;if(St.env.NODE_DEBUG){var p=St.env.NODE_DEBUG;p=p.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+p+"$","i")}n.debuglog=function(z){if(z=z.toUpperCase(),!l[z])if(c.test(z)){var se=St.pid;l[z]=function(){var me=n.format.apply(n,arguments);console.error("%s %d: %s",z,se,me)}}else l[z]=function(){};return l[z]};function f(z,se){var me={seen:[],stylize:b};return arguments.length>=3&&(me.depth=arguments[2]),arguments.length>=4&&(me.colors=arguments[3]),V(se)?me.showHidden=se:se&&n._extend(me,se),ae(me.showHidden)&&(me.showHidden=!1),ae(me.depth)&&(me.depth=2),ae(me.colors)&&(me.colors=!1),ae(me.customInspect)&&(me.customInspect=!0),me.colors&&(me.stylize=y),_(me,z,me.depth)}n.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function y(z,se){var me=f.styles[se];return me?"\x1B["+f.colors[me][0]+"m"+z+"\x1B["+f.colors[me][1]+"m":z}function b(z,se){return z}function C(z){var se={};return z.forEach(function(me,We){se[me]=!0}),se}function _(z,se,me){if(z.customInspect&&se&&Ge(se.inspect)&&se.inspect!==n.inspect&&!(se.constructor&&se.constructor.prototype===se)){var We=se.inspect(me,z);return te(We)||(We=_(z,We,me)),We}var gt=N(z,se);if(gt)return gt;var it=Object.keys(se),tt=C(it);if(z.showHidden&&(it=Object.getOwnPropertyNames(se)),Be(se)&&(it.indexOf("message")>=0||it.indexOf("description")>=0))return O(se);if(it.length===0){if(Ge(se)){var lt=se.name?": "+se.name:"";return z.stylize("[Function"+lt+"]","special")}if(Ce(se))return z.stylize(RegExp.prototype.toString.call(se),"regexp");if(Ye(se))return z.stylize(Date.prototype.toString.call(se),"date");if(Be(se))return O(se)}var _t="",Yt=!1,In=["{","}"];if(j(se)&&(Yt=!0,In=["[","]"]),Ge(se)){var qt=se.name?": "+se.name:"";_t=" [Function"+qt+"]"}if(Ce(se)&&(_t=" "+RegExp.prototype.toString.call(se)),Ye(se)&&(_t=" "+Date.prototype.toUTCString.call(se)),Be(se)&&(_t=" "+O(se)),it.length===0&&(!Yt||se.length==0))return In[0]+_t+In[1];if(me<0)return Ce(se)?z.stylize(RegExp.prototype.toString.call(se),"regexp"):z.stylize("[Object]","special");z.seen.push(se);var nn;return Yt?nn=L(z,se,me,tt,it):nn=it.map(function(Nt){return x(z,se,me,tt,Nt,Yt)}),z.seen.pop(),D(nn,_t,In)}function N(z,se){if(ae(se))return z.stylize("undefined","undefined");if(te(se)){var me="'"+JSON.stringify(se).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return z.stylize(me,"string")}if(Q(se))return z.stylize(""+se,"number");if(V(se))return z.stylize(""+se,"boolean");if(Y(se))return z.stylize("null","null")}function O(z){return"["+Error.prototype.toString.call(z)+"]"}function L(z,se,me,We,gt){for(var it=[],tt=0,lt=se.length;tt<lt;++tt)be(se,String(tt))?it.push(x(z,se,me,We,String(tt),!0)):it.push("");return gt.forEach(function(_t){_t.match(/^\d+$/)||it.push(x(z,se,me,We,_t,!0))}),it}function x(z,se,me,We,gt,it){var tt,lt,_t;if(_t=Object.getOwnPropertyDescriptor(se,gt)||{value:se[gt]},_t.get?_t.set?lt=z.stylize("[Getter/Setter]","special"):lt=z.stylize("[Getter]","special"):_t.set&&(lt=z.stylize("[Setter]","special")),be(We,gt)||(tt="["+gt+"]"),lt||(z.seen.indexOf(_t.value)<0?(Y(me)?lt=_(z,_t.value,null):lt=_(z,_t.value,me-1),lt.indexOf(`
196
+ `}`;const NG="m1ojpy2l",UC=({children:n,style:a})=>w.jsx("div",{className:"StreamLayerSDKTheme",children:w.jsx("div",{className:NG,style:a,children:n})}),RG=({sdk:n,className:a,scrollStore:o,appNode:l,scrollNode:c,responsiveStore:p})=>{const[,f]=uU(n);return w.jsx(Iz,{className:a,scrollNode:c,appNode:l,scrollStore:o,feature:f,responsiveStore:p,sdk:n})},OG=({sdk:n,className:a,appNode:o,responsiveStore:l})=>{const c=Ut(n.featuresList.getStore());return c?Array.from(c,p=>{const f=n.getFeature(p);return f?w.jsx(Nz,{className:a,appNode:o,feature:f,responsiveStore:l,sdk:n},p):null}):null},LG=({sdk:n,overlays:a,children:o})=>{const l=W.useRef(null),c=W.useRef(null),[p]=EG(l),[f,y]=YA(l,p),{sdkEnabled:b,sdkReady:C,activeOverlay:_,activateAndLoadOverlay:N,activateEventWithId:O,deactivate:L,isLogged:x}=CG(n);w5(l,{enabled:b,event:"click",listener:cU}),w5(f,{enabled:b,event:"scrollend",listener:dU,useDomNode:!0}),w5(f,{enabled:b,event:"click",listener:mU,useDomNode:!0});const D=W.useMemo(()=>({sdk:n}),[n]);return W.useEffect(()=>{Promise.resolve().then(()=>require("./gamification-feature.js"))},[]),w.jsx(pC.Provider,{value:D,children:w.jsxs(oA,{ref:l,children:[b&&w.jsx(Gz,{ref:c,sdkReady:C,activeOverlay:_,className:Gh,setActiveOverlay:j=>N("",j),scrollToTop:()=>{var j;return(j=f.current)==null?void 0:j.scrollTo(0,0)},responsiveStore:p}),w.jsxs(sA,{className:"sl-hide-on-modal",ref:f,"data-nav":b.toString(),children:[C&&w.jsx(wG,{sdk:n,scrollNode:f,headerNode:c,appNode:l,scrollStore:y,responsiveStore:p}),w.jsx("div",{style:!b||_===Yi?{}:{display:"none"},children:o&&o({activateEventWithId:O,deactivate:L})}),a&&_===Bz&&a[_],C&&_===Tu&&w.jsx(RG,{scrollStore:y,responsiveStore:p,scrollNode:f,appNode:l,className:Gh,sdk:n}),C&&w.jsx(OG,{responsiveStore:p,appNode:l,className:Gh,sdk:n})]}),b&&!x&&w.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"You are not logged in."})]})})},AG=P("div")({name:"PointsContainer",class:"psiob9b",propsAsIs:!1}),xG=P("div")({name:"PointsIcon",class:"p1gqe4lh",propsAsIs:!1}),PG=()=>wt,MG=P(PG())({name:"PointsSvg",class:"p15syg2y",propsAsIs:!0}),DG=P("div")({name:"PointsBody",class:"p12n4f2h",propsAsIs:!1}),UG=P("div")({name:"PointsTitle",class:"poqmx89",propsAsIs:!1}),FG=P("div")({name:"PointsValue",class:"prj9b3v",propsAsIs:!1}),VG=({points:n,onClick:a})=>w.jsxs(AG,{className:Gh,onClick:a,children:[w.jsx(xG,{children:w.jsx(MG,{name:"icon-trophy"})}),w.jsxs(DG,{children:[w.jsx(UG,{children:"Total points"}),w.jsx(FG,{children:w.jsx(I6,{value:n})})]})]}),jG=({gamification:n})=>{const a=n.userSummary.$store,[o,l]=W.useState(0);return W.useEffect(()=>{const c=a.subscribe(p=>{var f;(f=p==null?void 0:p.summary)!=null&&f.points&&l(p.summary.points)});return()=>{c()}},[a]),w.jsx(VG,{points:o,onClick:()=>{n.status.get()===Zc.Suspended&&n.openFeature()}})},BG=({sdk:n})=>{if(!Ut(n.featuresList.getStore()))return null;const a=n.getFeature(yt.GAMES);return a?w.jsx(jG,{gamification:a}):null},$G=W.createContext({sdk:null,topNavigation:!1}),zG=()=>W.useContext($G);W.lazy(()=>Promise.resolve().then(()=>require("./gamification-feature2.js")));let S9=(n=21)=>crypto.getRandomValues(new Uint8Array(n)).reduce((a,o)=>(o&=63,o<36?a+=o.toString(36):o<62?a+=(o-26).toString(36).toUpperCase():o>62?a+="-":a+="_",a),"");var at;(function(n){n[n.Canceled=1]="Canceled",n[n.Unknown=2]="Unknown",n[n.InvalidArgument=3]="InvalidArgument",n[n.DeadlineExceeded=4]="DeadlineExceeded",n[n.NotFound=5]="NotFound",n[n.AlreadyExists=6]="AlreadyExists",n[n.PermissionDenied=7]="PermissionDenied",n[n.ResourceExhausted=8]="ResourceExhausted",n[n.FailedPrecondition=9]="FailedPrecondition",n[n.Aborted=10]="Aborted",n[n.OutOfRange=11]="OutOfRange",n[n.Unimplemented=12]="Unimplemented",n[n.Internal=13]="Internal",n[n.Unavailable=14]="Unavailable",n[n.DataLoss=15]="DataLoss",n[n.Unauthenticated=16]="Unauthenticated"})(at||(at={}));function Ak(n){const a=at[n];return typeof a!="string"?n.toString():a[0].toLowerCase()+a.substring(1).replace(/[A-Z]/g,o=>"_"+o.toLowerCase())}class zt extends Error{constructor(a,o=at.Unknown,l,c,p){super(HG(a,o)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=a,this.code=o,this.metadata=new Headers(l??{}),this.details=c??[],this.cause=p}static from(a,o=at.Unknown){return a instanceof zt?a:a instanceof Error?a.name=="AbortError"?new zt(a.message,at.Canceled):new zt(a.message,o,void 0,void 0,a):new zt(String(a),o,void 0,void 0,a)}static[Symbol.hasInstance](a){return a instanceof Error?Object.getPrototypeOf(a)===zt.prototype?!0:a.name==="ConnectError"&&"code"in a&&typeof a.code=="number"&&"metadata"in a&&"details"in a&&Array.isArray(a.details)&&"rawMessage"in a&&typeof a.rawMessage=="string"&&"cause"in a:!1}findDetails(a){const o="typeName"in a?{findMessage:c=>c===a.typeName?a:void 0}:a,l=[];for(const c of this.details){if("getType"in c){o.findMessage(c.getType().typeName)&&l.push(c);continue}const p=o.findMessage(c.type);if(p)try{l.push(p.fromBinary(c.value))}catch{}}return l}}function HG(n,a){return n.length?`[${Ak(a)}] ${n}`:`[${Ak(a)}]`}function qG(n,a,o){try{const l=W9.dec(n);return a?a.fromBinary(l,o):l}catch(l){throw zt.from(l,at.DataLoss)}}function GG(n,a){const o={};for(const[l,c]of Object.entries(n.methods)){const p=a(Object.assign(Object.assign({},c),{localName:l,service:n}));p!=null&&(o[l]=p)}return o}const xk=1;function Pk(n){let a,o=new Uint8Array(0);function l(c){const p=new Uint8Array(o.length+c.length);p.set(o),p.set(c,o.length),o=p}return new ReadableStream({start(){a=n.getReader()},async pull(c){let p;for(;;){if(p===void 0&&o.byteLength>=5){let b=0;for(let C=1;C<5;C++)b=(b<<8)+o[C];p={flags:o[0],length:b}}if(p!==void 0&&o.byteLength>=p.length+5)break;const y=await a.read();if(y.done)break;l(y.value)}if(p===void 0){if(o.byteLength==0){c.close();return}c.error(new zt("premature end of stream",at.DataLoss));return}const f=o.subarray(5,5+p.length);o=o.subarray(5+p.length),c.enqueue({flags:p.flags,data:f})}})}function Mk(n,a){const o=new Uint8Array(a.length+5);o.set(a,5);const l=new DataView(o.buffer,o.byteOffset,o.byteLength);return l.setUint8(0,n),l.setUint32(1,a.length),o}var WG=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],o;return a?a.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o);function l(p){o[p]=n[p]&&function(f){return new Promise(function(y,b){f=n[p](f),c(y,b,f.done,f.value)})}}function c(p,f,y,b){Promise.resolve(b).then(function(C){p({value:C,done:y})},f)}},d2=function(n){return this instanceof d2?(this.v=n,this):new d2(n)},QG=function(n,a,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=o.apply(n,a||[]),c,p=[];return c={},y("next"),y("throw"),y("return",f),c[Symbol.asyncIterator]=function(){return this},c;function f(L){return function(x){return Promise.resolve(x).then(L,N)}}function y(L,x){l[L]&&(c[L]=function(D){return new Promise(function(j,V){p.push([L,D,j,V])>1||b(L,D)})},x&&(c[L]=x(c[L])))}function b(L,x){try{C(l[L](x))}catch(D){O(p[0][3],D)}}function C(L){L.value instanceof d2?Promise.resolve(L.value.v).then(_,N):O(p[0][2],L)}function _(L){b("next",L)}function N(L){b("throw",L)}function O(L,x){L(x),p.shift(),p.length&&b(p[0][0],p[0][1])}},YG=function(n){var a,o;return a={},l("next"),l("throw",function(c){throw c}),l("return"),a[Symbol.iterator]=function(){return this},a;function l(c,p){a[c]=n[c]?function(f){return(o=!o)?{value:d2(n[c](f)),done:!1}:p?p(f):f}:p}};function KG(n){return QG(this,arguments,function*(){yield d2(yield*YG(WG(n)))})}var FC=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],o;return a?a.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o);function l(p){o[p]=n[p]&&function(f){return new Promise(function(y,b){f=n[p](f),c(y,b,f.done,f.value)})}}function c(p,f,y,b){Promise.resolve(b).then(function(C){p({value:C,done:y})},f)}},Tm=function(n){return this instanceof Tm?(this.v=n,this):new Tm(n)},ZG=function(n){var a,o;return a={},l("next"),l("throw",function(c){throw c}),l("return"),a[Symbol.iterator]=function(){return this},a;function l(c,p){a[c]=n[c]?function(f){return(o=!o)?{value:Tm(n[c](f)),done:!1}:p?p(f):f}:p}},XG=function(n,a,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=o.apply(n,a||[]),c,p=[];return c={},y("next"),y("throw"),y("return",f),c[Symbol.asyncIterator]=function(){return this},c;function f(L){return function(x){return Promise.resolve(x).then(L,N)}}function y(L,x){l[L]&&(c[L]=function(D){return new Promise(function(j,V){p.push([L,D,j,V])>1||b(L,D)})},x&&(c[L]=x(c[L])))}function b(L,x){try{C(l[L](x))}catch(D){O(p[0][3],D)}}function C(L){L.value instanceof Tm?Promise.resolve(L.value.v).then(_,N):O(p[0][2],L)}function _(L){b("next",L)}function N(L){b("throw",L)}function O(L,x){L(x),p.shift(),p.length&&b(p[0][0],p[0][1])}};function Dk(n,a){return GG(n,o=>{switch(o.kind){case je.Unary:return JG(a,n,o);case je.ServerStreaming:return eW(a,n,o);case je.ClientStreaming:return tW(a,n,o);case je.BiDiStreaming:return nW(a,n,o);default:return null}})}function JG(n,a,o){return async function(l,c){var p,f;const y=await n.unary(a,o,c==null?void 0:c.signal,c==null?void 0:c.timeoutMs,c==null?void 0:c.headers,l,c==null?void 0:c.contextValues);return(p=c==null?void 0:c.onHeader)===null||p===void 0||p.call(c,y.header),(f=c==null?void 0:c.onTrailer)===null||f===void 0||f.call(c,y.trailer),y.message}}function eW(n,a,o){return function(l,c){return VC(n.stream(a,o,c==null?void 0:c.signal,c==null?void 0:c.timeoutMs,c==null?void 0:c.headers,KG([l]),c==null?void 0:c.contextValues),c)}}function tW(n,a,o){return async function(l,c){var p,f,y,b,C,_;const N=await n.stream(a,o,c==null?void 0:c.signal,c==null?void 0:c.timeoutMs,c==null?void 0:c.headers,l,c==null?void 0:c.contextValues);(C=c==null?void 0:c.onHeader)===null||C===void 0||C.call(c,N.header);let O,L=0;try{for(var x=!0,D=FC(N.message),j;j=await D.next(),p=j.done,!p;x=!0)b=j.value,x=!1,O=b,L++}catch(V){f={error:V}}finally{try{!x&&!p&&(y=D.return)&&await y.call(D)}finally{if(f)throw f.error}}if(!O)throw new zt("protocol error: missing response message",at.Unimplemented);if(L>1)throw new zt("protocol error: received extra messages for client streaming method",at.Unimplemented);return(_=c==null?void 0:c.onTrailer)===null||_===void 0||_.call(c,N.trailer),O}}function nW(n,a,o){return function(l,c){return VC(n.stream(a,o,c==null?void 0:c.signal,c==null?void 0:c.timeoutMs,c==null?void 0:c.headers,l,c==null?void 0:c.contextValues),c)}}function VC(n,a){const o=function(){return XG(this,arguments,function*(){var l,c;const p=yield Tm(n);(l=a==null?void 0:a.onHeader)===null||l===void 0||l.call(a,p.header),yield Tm(yield*ZG(FC(p.message))),(c=a==null?void 0:a.onTrailer)===null||c===void 0||c.call(a,p.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>o.next()})}}function aW(...n){const a=new AbortController,o=n.filter(c=>c!==void 0).concat(a.signal);for(const c of o){if(c.aborted){l.apply(c);break}c.addEventListener("abort",l)}function l(){a.signal.aborted||a.abort(jC(this));for(const c of o)c.removeEventListener("abort",l)}return a}function rW(n){const a=new AbortController,o=()=>{a.abort(new zt("the operation timed out",at.DeadlineExceeded))};let l;return n!==void 0&&(n<=0?o():l=setTimeout(o,n)),{signal:a.signal,cleanup:()=>clearTimeout(l)}}function jC(n){if(!n.aborted)return;if(n.reason!==void 0)return n.reason;const a=new Error("This operation was aborted");return a.name="AbortError",a}function w9(){return{get(n){return n.id in this?this[n.id]:n.defaultValue},set(n,a){return this[n.id]=a,this},delete(n){return delete this[n.id],this}}}function c6(n,a){return{id:Symbol(a==null?void 0:a.description),defaultValue:n}}const x5=128;function Uk(n){const a=new Headers,o=new TextDecoder().decode(n).split(`\r
197
+ `);for(const l of o){if(l==="")continue;const c=l.indexOf(":");if(c>0){const p=l.substring(0,c).trim(),f=l.substring(c+1).trim();a.append(p,f)}}return a}const oW="Content-Type",sW="Grpc-Timeout",bm="Grpc-Status",BC="Grpc-Message",iW="Grpc-Status-Details-Bin",lW="X-User-Agent",uW="X-Grpc-Web",cW="application/grpc-web+proto",dW="application/grpc-web+json";class nl extends f2{constructor(a){super(),this.code=0,this.message="",this.details=[],k.util.initPartial(a,this)}static fromBinary(a,o){return new nl().fromBinary(a,o)}static fromJson(a,o){return new nl().fromJson(a,o)}static fromJsonString(a,o){return new nl().fromJsonString(a,o)}static equals(a,o){return k.util.equals(nl,a,o)}}nl.runtime=k;nl.typeName="google.rpc.Status";nl.fields=k.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Js,repeated:!0}]);const mW="0";function $C(n){var a;const o=n.get(iW);if(o!=null){const c=qG(o,nl);if(c.code==0)return;const p=new zt(c.message,c.code,n);return p.details=c.details.map(f=>({type:f.typeUrl.substring(f.typeUrl.lastIndexOf("/")+1),value:f.value})),p}const l=n.get(bm);if(l!=null){if(l===mW)return;const c=parseInt(l,10);return c in at?new zt(decodeURIComponent((a=n.get(BC))!==null&&a!==void 0?a:""),c,n):new zt(`invalid grpc-status: ${l}`,at.Internal,n)}}function Fk(n,a,o){const l=typeof a=="string"?a:a.typeName,c=typeof o=="string"?o:o.name;return n.toString().replace(/\/?$/,`/${l}/${c}`)}function zC(n,a){return a instanceof n?a:new n(a)}function fW(n,a){function o(l){return l.done===!0?l:{done:l.done,value:zC(n,l.value)}}return{[Symbol.asyncIterator](){const l=a[Symbol.asyncIterator](),c={next:()=>l.next().then(o)};return l.throw!==void 0&&(c.throw=p=>l.throw(p).then(o)),l.return!==void 0&&(c.return=p=>l.return(p).then(o)),c}}}function HC(n,a){var o;return(o=a==null?void 0:a.concat().reverse().reduce((l,c)=>c(l),n))!==null&&o!==void 0?o:n}function pW(n){var a;const o=Object.assign({},n);return(a=o.ignoreUnknownFields)!==null&&a!==void 0||(o.ignoreUnknownFields=!0),o}function Vk(n,a,o,l){const c=a?jk(n.I,l):Bk(n.I,o);return{parse:(a?jk(n.O,l):Bk(n.O,o)).parse,serialize:c.serialize}}function jk(n,a){return{parse(o){try{return n.fromBinary(o,a)}catch(l){const c=l instanceof Error?l.message:String(l);throw new zt(`parse binary: ${c}`,at.Internal)}},serialize(o){try{return o.toBinary(a)}catch(l){const c=l instanceof Error?l.message:String(l);throw new zt(`serialize binary: ${c}`,at.Internal)}}}}function Bk(n,a){var o,l;const c=(o=a==null?void 0:a.textEncoder)!==null&&o!==void 0?o:new TextEncoder,p=(l=a==null?void 0:a.textDecoder)!==null&&l!==void 0?l:new TextDecoder,f=pW(a);return{parse(y){try{const b=p.decode(y);return n.fromJsonString(b,f)}catch(b){throw zt.from(b,at.InvalidArgument)}},serialize(y){try{const b=y.toJsonString(f);return c.encode(b)}catch(b){throw zt.from(b,at.Internal)}}}}function hW(n){const a=HC(n.next,n.interceptors),[o,l,c]=qC(n),p=Object.assign(Object.assign({},n.req),{message:zC(n.req.method.I,n.req.message),signal:o});return a(p).then(f=>(c(),f),l)}function gW(n){const a=HC(n.next,n.interceptors),[o,l,c]=qC(n),p=Object.assign(Object.assign({},n.req),{message:fW(n.req.method.I,n.req.message),signal:o});let f=!1;return o.addEventListener("abort",function(){var y,b;const C=n.req.message[Symbol.asyncIterator]();f||(y=C.throw)===null||y===void 0||y.call(C,this.reason).catch(()=>{}),(b=C.return)===null||b===void 0||b.call(C).catch(()=>{})}),a(p).then(y=>Object.assign(Object.assign({},y),{message:{[Symbol.asyncIterator](){const b=y.message[Symbol.asyncIterator]();return{next(){return b.next().then(C=>(C.done==!0&&(f=!0,c()),C),l)}}}}}),l)}function qC(n){const{signal:a,cleanup:o}=rW(n.timeoutMs),l=aW(n.signal,a);return[l.signal,function(p){const f=zt.from(a.aborted?jC(a):p);return l.abort(f),o(),Promise.reject(f)},function(){o(),l.abort()}]}function yW(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function $k(n,a){const o=$C(n);if(o)throw a.forEach((l,c)=>{o.metadata.append(c,l)}),o;if(!a.has(bm)&&!n.has(bm))throw new zt("protocol error: missing status",at.Internal)}function zk(n,a,o,l){const c=new Headers(o??{});return c.set(oW,n?cW:dW),c.set(uW,"1"),c.set(lW,"connect-es/1.6.1"),a!==void 0&&c.set(sW,`${a}m`),c}function vW(n){switch(n){case 400:return at.Internal;case 401:return at.Unauthenticated;case 403:return at.PermissionDenied;case 404:return at.Unimplemented;case 429:return at.Unavailable;case 502:return at.Unavailable;case 503:return at.Unavailable;case 504:return at.Unavailable;default:return at.Unknown}}function Hk(n,a){var o;if(n>=200&&n<300)return{foundStatus:a.has(bm),headerError:$C(a)};throw new zt(decodeURIComponent((o=a.get(BC))!==null&&o!==void 0?o:`HTTP ${n}`),vW(n),a)}var Qc=function(n){return this instanceof Qc?(this.v=n,this):new Qc(n)},TW=function(n,a,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=o.apply(n,a||[]),c,p=[];return c={},y("next"),y("throw"),y("return",f),c[Symbol.asyncIterator]=function(){return this},c;function f(L){return function(x){return Promise.resolve(x).then(L,N)}}function y(L,x){l[L]&&(c[L]=function(D){return new Promise(function(j,V){p.push([L,D,j,V])>1||b(L,D)})},x&&(c[L]=x(c[L])))}function b(L,x){try{C(l[L](x))}catch(D){O(p[0][3],D)}}function C(L){L.value instanceof Qc?Promise.resolve(L.value.v).then(_,N):O(p[0][2],L)}function _(L){b("next",L)}function N(L){b("throw",L)}function O(L,x){L(x),p.shift(),p.length&&b(p[0][0],p[0][1])}};function qk(n){var a;yW();const o=(a=n.useBinaryFormat)!==null&&a!==void 0?a:!0;return{async unary(l,c,p,f,y,b,C){var _;const{serialize:N,parse:O}=Vk(c,o,n.jsonOptions,n.binaryOptions);return f=f===void 0?n.defaultTimeoutMs:f<=0?void 0:f,await hW({interceptors:n.interceptors,signal:p,timeoutMs:f,req:{stream:!1,service:l,method:c,url:Fk(n.baseUrl,l,c),init:{method:"POST",credentials:(_=n.credentials)!==null&&_!==void 0?_:"same-origin",redirect:"error",mode:"cors"},header:zk(o,f,y),contextValues:C??w9(),message:b},next:async L=>{var x;const j=await((x=n.fetch)!==null&&x!==void 0?x:globalThis.fetch)(L.url,Object.assign(Object.assign({},L.init),{headers:L.header,signal:L.signal,body:Mk(0,N(L.message))})),{headerError:V}=Hk(j.status,j.headers);if(!j.body)throw V!==void 0?V:"missing response body";const Y=Pk(j.body).getReader();let Z,Q;for(;;){const te=await Y.read();if(te.done)break;const{flags:ie,data:ae}=te.value;if((ie&xk)===xk)throw new zt("protocol error: received unsupported compressed output",at.Internal);if(ie===x5){if(Z!==void 0)throw"extra trailer";Z=Uk(ae);continue}if(Q!==void 0)throw new zt("extra message",at.Unimplemented);Q=O(ae)}if(Z===void 0)throw V!==void 0?V:new zt("missing trailer",j.headers.has(bm)?at.Unimplemented:at.Unknown);if($k(Z,j.headers),Q===void 0)throw new zt("missing message",Z.has(bm)?at.Unimplemented:at.Unknown);return{stream:!1,service:l,method:c,header:j.headers,message:Q,trailer:Z}}})},async stream(l,c,p,f,y,b,C){var _;const{serialize:N,parse:O}=Vk(c,o,n.jsonOptions,n.binaryOptions);function L(D,j,V,Y,Z){return TW(this,arguments,function*(){const te=Pk(D).getReader();if(j){if(!(yield Qc(te.read())).done)throw"extra data for trailers-only";return yield Qc(void 0)}let ie=!1;for(;;){const ae=yield Qc(te.read());if(ae.done)break;const{flags:Ce,data:Se}=ae.value;if((Ce&x5)===x5){if(ie)throw"extra trailer";ie=!0;const Ye=Uk(Se);$k(Ye,Y),Ye.forEach((Be,Ge)=>V.set(Ge,Be));continue}if(ie)throw"extra message";yield yield Qc(O(Se))}if("throwIfAborted"in Z&&Z.throwIfAborted(),!ie)throw"missing trailer"})}async function x(D){if(c.kind!=je.ServerStreaming)throw"The fetch API does not support streaming request bodies";const j=await D[Symbol.asyncIterator]().next();if(j.done==!0)throw"missing request message";return Mk(0,N(j.value))}return f=f===void 0?n.defaultTimeoutMs:f<=0?void 0:f,gW({interceptors:n.interceptors,signal:p,timeoutMs:f,req:{stream:!0,service:l,method:c,url:Fk(n.baseUrl,l,c),init:{method:"POST",credentials:(_=n.credentials)!==null&&_!==void 0?_:"same-origin",redirect:"error",mode:"cors"},header:zk(o,f,y),contextValues:C??w9(),message:b},next:async D=>{var j;const Y=await((j=n.fetch)!==null&&j!==void 0?j:globalThis.fetch)(D.url,Object.assign(Object.assign({},D.init),{headers:D.header,signal:D.signal,body:await x(D.message)})),{foundStatus:Z,headerError:Q}=Hk(Y.status,Y.headers);if(Q!=null)throw Q;if(!Y.body)throw"missing response body";const te=new Headers;return Object.assign(Object.assign({},D),{header:Y.headers,trailer:te,message:L(Y.body,Z,te,Y.headers,D.signal)})}})}}}let bW=()=>({emit(n,...a){let o=this.events[n]||[];for(let l=0,c=o.length;l<c;l++)o[l](...a)},events:{},on(n,a){var o;return(o=this.events[n])!=null&&o.push(a)||(this.events[n]=[a]),()=>{var l;this.events[n]=(l=this.events[n])==null?void 0:l.filter(c=>a!==c)}}});const Gk=({cache:n=new Map,fetcher:a,...o}={})=>{const l=bW();let c=!0;Zk("visibilitychange",()=>{c=!document.hidden,c&&l.emit(Qk)}),Zk("online",()=>l.emit(Yk));const p=new Map,f=new Map,y=new Map;let b={};const C=async([V,Y],Z,Q,te)=>{var ie;if(!c)return;const ae=Ne=>{Z.key===V&&(Z.set(Ne),l.emit(P5,V,Ne,!0))},Ce=()=>{ae({...Z.value,...Jk,promise:y.get(V)})},{dedupeTime:Se=4e3,fetcher:Ye}={...Q,...b},Be=Xk();if(y.has(V)){Z.value.loading||Ce();return}if(!te){const Ne=n.get(V);Ne&&Z.value.data!==Ne&&ae({data:Ne,...vu});const et=f.get(V);if(et&&et+Se>Be)return}const Ge=$L();try{const Ne=Ye(...Y);f.set(V,Be),y.set(V,Ne),Ce();const et=await Ne;n.set(V,et),ae({data:et,...vu}),f.set(V,Xk())}catch(Ne){(ie=Q.onError)==null||ie.call(Q,Ne),ae({data:Z.value.data,error:Ne,...vu})}finally{Ge(),y.delete(V)}},_=(V,{fetcher:Y=a,...Z}={})=>{const Q=a9({...vu}),te={...o,...Z,fetcher:Y};Q._=GC,Q.invalidate=()=>{const{key:et}=Q;et&&L(et)},Q.mutate=et=>{const{key:mt}=Q;mt&&x(mt,et)};let ie,ae,Ce,Se,Ye,Be=[];GL(Q,()=>{const et=!ie;[Ye,ie]=kW(V),Se=Ye.subscribe(we=>{if(we){const[ct,z]=we;Q.key=ct,C([ct,z],Q,te),ae=ct,Ce=z}else Q.key=ae=Ce=void 0,Q.set({...vu})});const mt=Ye.get();mt&&([ae,Ce]=mt,et&&Ge());const{refetchInterval:Rt=0,refetchOnFocus:Qn,refetchOnReconnect:be}=te,Pe=()=>{ae&&C([ae,Ce],Q,te)};Rt>0&&p.set(V,setInterval(Pe,Rt)),Qn&&Be.push(l.on(Qk,Pe)),be&&Be.push(l.on(Yk,Pe)),Be.push(l.on(Kk,we=>{ae&&M5(ae,we)&&C([ae,Ce],Q,te,!0)}),l.on(P5,(we,ct,z)=>{ae&&M5(ae,we)&&Q.value!==ct&&Q.value.data!==ct&&Q.set(z?ct:{data:ct,...vu})}))});const Ge=()=>{ae&&Ce&&C([ae,Ce],Q,te)},Ne=Q.listen;return Q.listen=et=>{const mt=Ne(et);return et(Q.value),Ge(),mt},WL(Q,()=>{Q.value={...vu},ie==null||ie(),Be.forEach(et=>et()),Be=[],Se==null||Se(),clearInterval(p.get(V))}),Q},N=V=>{n.delete(V),f.delete(V)},O=(V,Y)=>{for(const Z of n.keys())M5(Z,V)&&Y(Z)},L=V=>{O(V,N),l.emit(Kk,V)},x=(V,Y)=>{O(V,Z=>{Y===void 0?N(Z):n.set(Z,Y)}),l.emit(P5,V,Y)};function D(V){const Y=async Q=>{var te;const ie=b.fetcher??V,ae=[];try{Z.set({error:void 0,data:void 0,mutate:Y,...Jk});const Ce=await ie({data:Q,invalidate:Se=>{ae.push(Se)},getCacheUpdater:(Se,Ye=!0)=>[Be=>{x(Se,Be),Ye&&ae.push(Se)},n.get(Se)]});return Z.setKey("data",Ce),Ce}catch(Ce){(te=o==null?void 0:o.onError)==null||te.call(o,Ce),Z.setKey("error",Ce)}finally{Z.setKey("loading",!1),ae.forEach(L)}},Z=a9({mutate:Y,...vu});return Z.mutate=Y,Z}return[_,D,{__unsafeOverruleSettings:V=>{console.warn("You should only use __unsafeOverruleSettings in test environment"),b=V},invalidateKeys:L,mutateCache:x}]};function Wk(n){return typeof n=="string"||typeof n=="number"||n===!0}const kW=n=>{if(Wk(n))return[ku([""+n,[n]]),()=>{}];let a=ku(null),o=[];const l=()=>{o.some(p=>p==null||p===!1)?a.set(null):a.set([o.join(""),o])},c=[];for(let p=0;p<n.length;p++){const f=n[p];Wk(f)?o.push(f):c.push(f.subscribe(y=>{o[p]=SW(f)?f.value&&"data"in f.value?f.key:null:y,l()}))}return l(),[a,()=>c.forEach(p=>p())]};function SW(n){return n._===GC}const Qk=1,Yk=2,Kk=3,P5=4,Zk=(n,a)=>{typeof window>"u"||addEventListener(n,a)},M5=(n,a)=>Array.isArray(a)?a.includes(n):typeof a=="function"?a(n):n===a,Xk=()=>new Date().getTime(),GC=Symbol(),Jk={loading:!0},vu={loading:!1};window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));var eS;(function(n){n.Init="init",n.Ready="ready",n.Connecting="connecting",n.Connected="connected",n.Disconnected="disconnected",n.Failed="failed",n.Reconnect="reconnect",n.Reconnecting="reconnecting"})(eS||(eS={}));Cm("grpc:stream");at.Unknown,at.Internal,at.DeadlineExceeded,at.ResourceExhausted,at.FailedPrecondition,at.Unavailable,at.DataLoss;Cm("grpc:retry");c6(10,{description:"Number of attempts to retry"}),c6(3e4,{description:"Max delay between retries in milliseconds"});const WC=k.makeEnum("streamlayer.sports.EventStatus",[{no:0,name:"EVENT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_STATUS_PREGAME",localName:"PREGAME"},{no:2,name:"EVENT_STATUS_ACTIVE",localName:"ACTIVE"},{no:3,name:"EVENT_STATUS_BREAK",localName:"BREAK"},{no:4,name:"EVENT_STATUS_OVERTIME",localName:"OVERTIME"},{no:5,name:"EVENT_STATUS_SHOOTOUTS",localName:"SHOOTOUTS"},{no:6,name:"EVENT_STATUS_POSTGAME",localName:"POSTGAME"},{no:7,name:"EVENT_STATUS_CANCELLED",localName:"CANCELLED"}]),QC=k.makeEnum("streamlayer.sports.EventEndless",[{no:0,name:"EVENT_ENDLESS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_ENDLESS_ENABLED",localName:"ENABLED"},{no:2,name:"EVENT_ENDLESS_DISABLED",localName:"DISABLED"}]),N6=k.makeMessageType("streamlayer.sports.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5}]),YC=k.makeMessageType("streamlayer.sports.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]),R6=k.makeMessageType("streamlayer.sports.Meta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}]),KC=k.makeMessageType("streamlayer.sports.Venue",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"scalar",T:9},{no:3,name:"stadium",kind:"scalar",T:9}]),O6=k.makeMessageType("streamlayer.sports.EventTime",()=>[{no:1,name:"clock",kind:"scalar",T:9},{no:2,name:"period",kind:"scalar",T:5}]),wW=k.makeMessageType("streamlayer.sports.EventPeriod",()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"score_home",kind:"scalar",T:5},{no:3,name:"score_away",kind:"scalar",T:5}]),Eu=k.makeMessageType("streamlayer.sports.TeamRecord",()=>[{no:1,name:"wins",kind:"scalar",T:5},{no:2,name:"losses",kind:"scalar",T:5}]),_u=k.makeMessageType("streamlayer.sports.EventTeam",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"is_winner",kind:"scalar",T:8}]),CW=k.makeMessageType("streamlayer.sports.EventCustomFields",()=>[{no:1,name:"preview",kind:"scalar",T:9},{no:2,name:"stream",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"event_ids",kind:"scalar",T:9,repeated:!0},{no:6,name:"subtitle",kind:"scalar",T:9},{no:7,name:"promotitle",kind:"scalar",T:9},{no:8,name:"slate",kind:"scalar",T:9},{no:9,name:"horizontal_preview",kind:"scalar",T:9},{no:10,name:"small_logo",kind:"scalar",T:9},{no:11,name:"description",kind:"scalar",T:9}]),EW=k.makeMessageType("streamlayer.sports.EventProgram",()=>[{no:1,name:"id",kind:"scalar",T:9,opt:!0},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"start_time",kind:"scalar",T:9},{no:4,name:"end_time",kind:"scalar",T:9},{no:5,name:"thumbnail_url",kind:"scalar",T:9},{no:6,name:"square_thumbnail_url",kind:"scalar",T:9}]),_W=k.makeMessageType("streamlayer.sports.EventData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"sport",kind:"scalar",T:9},{no:3,name:"league",kind:"scalar",T:9},{no:4,name:"scheduled",kind:"scalar",T:9},{no:5,name:"home",kind:"message",T:_u},{no:6,name:"away",kind:"message",T:_u},{no:7,name:"status",kind:"enum",T:k.getEnumType(WC)},{no:8,name:"custom_fields",kind:"message",T:CW},{no:9,name:"start_time",kind:"scalar",T:9},{no:10,name:"end_time",kind:"scalar",T:9},{no:11,name:"venue",kind:"message",T:KC},{no:12,name:"schedule",kind:"message",T:EW,repeated:!0},{no:13,name:"endless",kind:"enum",T:k.getEnumType(QC)},{no:14,name:"provider_id",kind:"scalar",T:9}]),nd=k.makeMessageType("streamlayer.sports.EventSummary",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"scheduled",kind:"scalar",T:9},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"venue",kind:"message",T:KC},{no:6,name:"event_time",kind:"message",T:O6},{no:7,name:"home_team",kind:"message",T:_u},{no:8,name:"away_team",kind:"message",T:_u},{no:9,name:"status",kind:"enum",T:k.getEnumType(WC)},{no:10,name:"periods",kind:"message",T:wW,repeated:!0},{no:11,name:"league",kind:"scalar",T:9},{no:12,name:"start_time",kind:"scalar",T:9},{no:13,name:"end_time",kind:"scalar",T:9},{no:14,name:"name",kind:"scalar",T:9},{no:15,name:"logo",kind:"scalar",T:9},{no:16,name:"stream",kind:"scalar",T:9}]),IW=k.makeEnum("streamlayer.sports.baseball.PitcherStatus",[{no:0,name:"PITCHER_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PITCHER_STATUS_WIN",localName:"WIN"},{no:2,name:"PITCHER_STATUS_LOSS",localName:"LOSS"}]),NW=k.makeEnum("streamlayer.sports.baseball.BaseballBase",[{no:0,name:"BASEBALL_BASE_UNSET",localName:"UNSET"},{no:1,name:"BASEBALL_BASE_FIRST",localName:"FIRST"},{no:2,name:"BASEBALL_BASE_SECOND",localName:"SECOND"},{no:3,name:"BASEBALL_BASE_THIRD",localName:"THIRD"}]),tS=k.makeMessageType("streamlayer.sports.baseball.PitcherSummary",()=>[{no:1,name:"statistics",kind:"message",T:ZC},{no:2,name:"status",kind:"enum",T:k.getEnumType(IW)},{no:3,name:"win_rate",kind:"scalar",T:5},{no:4,name:"loss_rate",kind:"scalar",T:5}]),RW=k.makeMessageType("streamlayer.sports.baseball.Runner",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"jersey_number",kind:"scalar",T:9}]),OW=k.makeMessageType("streamlayer.sports.baseball.RunnerOnBase",()=>[{no:1,name:"base_number",kind:"enum",T:k.getEnumType(NW)},{no:2,name:"player",kind:"message",T:RW}]),LW=k.makeMessageType("streamlayer.sports.baseball.Hitting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"hits_per_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"run_batted_in",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"batting_average",kind:"scalar",T:9}]),AW=k.makeMessageType("streamlayer.sports.baseball.Batting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"at_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"hits",kind:"scalar",T:9},{no:5,name:"batting_average",kind:"scalar",T:9}]),ZC=k.makeMessageType("streamlayer.sports.baseball.Pitching",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"innings_pitched",kind:"scalar",T:9},{no:3,name:"hits_by_pitch",kind:"scalar",T:9},{no:4,name:"earned_runs",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"strikeouts",kind:"scalar",T:9}]),nS=k.makeMessageType("streamlayer.sports.baseball.BaseballTeamSummary",()=>[{no:1,name:"hitting",kind:"message",T:LW,repeated:!0},{no:2,name:"batting",kind:"message",T:AW,repeated:!0},{no:3,name:"pitching",kind:"message",T:ZC,repeated:!0}]),xW=k.makeMessageType("streamlayer.sports.baseball.BaseballSummary",()=>[{no:1,name:"home_pitcher",kind:"message",T:tS},{no:2,name:"away_pitcher",kind:"message",T:tS},{no:3,name:"home_statistics",kind:"message",T:nS},{no:4,name:"away_statistics",kind:"message",T:nS}]),PW=k.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:_u},{no:2,name:"inning",kind:"scalar",T:9},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"detail",kind:"message",T:MW,repeated:!0},{no:5,name:"runs",kind:"scalar",T:5},{no:6,name:"hits",kind:"scalar",T:5},{no:7,name:"errors",kind:"scalar",T:5}]),MW=k.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics.BaseballPlayByPlayDetailStatistics",()=>[{no:1,name:"score_home",kind:"scalar",T:5},{no:2,name:"score_away",kind:"scalar",T:5},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}],{localName:"BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics"}),DW=k.makeMessageType("streamlayer.sports.baseball.EventScore",()=>[{no:1,name:"outs",kind:"scalar",T:5},{no:2,name:"inning",kind:"scalar",T:5},{no:3,name:"inning_division",kind:"scalar",T:9},{no:4,name:"is_delayed",kind:"scalar",T:8},{no:5,name:"reason_for_delay",kind:"scalar",T:9},{no:6,name:"runners_on_base",kind:"message",T:OW,repeated:!0},{no:7,name:"taken_bases",kind:"scalar",T:5},{no:8,name:"home_team_record",kind:"message",T:Eu},{no:9,name:"away_team_record",kind:"message",T:Eu}]),UW=k.makeMessageType("streamlayer.sports.baseball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:PW,repeated:!0}]),FW=k.makeMessageType("streamlayer.sports.baseball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:xW}]),VW=k.makeMessageType("streamlayer.sports.baseball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:jW},{no:11,name:"rank",kind:"message",T:BW},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),jW=k.makeMessageType("streamlayer.sports.baseball.TeamStanding.Streak",()=>[{no:1,name:"losses",kind:"scalar",T:5},{no:2,name:"wins",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),BW=k.makeMessageType("streamlayer.sports.baseball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),$W=k.makeMessageType("streamlayer.sports.baseball.Standings",()=>[{no:1,name:"standings",kind:"message",T:VW,repeated:!0}]),zW=k.makeEnum("streamlayer.sports.basketball.BasketballPerformerCategory",[{no:0,name:"BASKETBALL_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"BASKETBALL_PERFORMER_CATEGORY_POINTS",localName:"POINTS"},{no:2,name:"BASKETBALL_PERFORMER_CATEGORY_REBOUNDS",localName:"REBOUNDS"},{no:3,name:"BASKETBALL_PERFORMER_CATEGORY_ASSISTS",localName:"ASSISTS"}]),HW=k.makeMessageType("streamlayer.sports.basketball.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:Eu},{no:9,name:"away_team_record",kind:"message",T:Eu}]),aS=k.makeMessageType("streamlayer.sports.basketball.BasketballTeamSummary",()=>[{no:1,name:"field_goal_percentage",kind:"scalar",T:1},{no:2,name:"three_pts_percentage",kind:"scalar",T:1},{no:3,name:"free_throw_percentage",kind:"scalar",T:1},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5}]),rS=k.makeMessageType("streamlayer.sports.basketball.BasketballPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:9}]),qW=k.makeMessageType("streamlayer.sports.basketball.BasketballPerformers",()=>[{no:1,name:"category",kind:"enum",T:k.getEnumType(zW)},{no:2,name:"home_player",kind:"message",T:rS},{no:3,name:"away_player",kind:"message",T:rS}]),GW=k.makeMessageType("streamlayer.sports.basketball.BasketballSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:aS},{no:2,name:"away_statistics",kind:"message",T:aS}]),WW=k.makeMessageType("streamlayer.sports.basketball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:GW},{no:2,name:"top_performers",kind:"message",T:qW,repeated:!0},{no:3,name:"last_games",kind:"message",T:XC}]),QW=k.makeMessageType("streamlayer.sports.basketball.BasketballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:_u},{no:2,name:"event_time",kind:"message",T:O6},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),YW=k.makeMessageType("streamlayer.sports.basketball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:QW,repeated:!0}]),oS=k.makeMessageType("streamlayer.sports.basketball.PlayerScores",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"points",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5},{no:6,name:"minutes",kind:"scalar",T:1},{no:7,name:"starter",kind:"scalar",T:8}]),KW=k.makeMessageType("streamlayer.sports.basketball.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:oS,repeated:!0},{no:2,name:"away_players",kind:"message",T:oS,repeated:!0}]),ZW=k.makeMessageType("streamlayer.sports.basketball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:XW},{no:11,name:"rank",kind:"message",T:JW},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),XW=k.makeMessageType("streamlayer.sports.basketball.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),JW=k.makeMessageType("streamlayer.sports.basketball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),eQ=k.makeMessageType("streamlayer.sports.basketball.Standings",()=>[{no:1,name:"standings",kind:"message",T:ZW,repeated:!0}]),sS=k.makeMessageType("streamlayer.sports.basketball.BasketballMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),iS=k.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineup",()=>[{no:3,name:"start_players",kind:"message",T:sS,repeated:!0},{no:4,name:"substitutes",kind:"message",T:sS,repeated:!0}]),tQ=k.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:iS},{no:2,name:"away_team",kind:"message",T:iS}]),D5=k.makeMessageType("streamlayer.sports.basketball.BasketballLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:nQ}]),nQ=k.makeMessageType("streamlayer.sports.basketball.BasketballLastGame.BasketballLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"BasketballLastGame_BasketballLastGameAttributes"}),XC=k.makeMessageType("streamlayer.sports.basketball.BasketballLastGames",()=>[{no:1,name:"home",kind:"message",T:D5,repeated:!0},{no:2,name:"away",kind:"message",T:D5,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:D5,repeated:!0}]),aQ=k.makeEnum("streamlayer.sports.hockey.HockeyPerformerCategory",[{no:0,name:"HOCKEY_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PERFORMER_CATEGORY_GOALS",localName:"GOALS"},{no:2,name:"HOCKEY_PERFORMER_CATEGORY_SHOTS",localName:"SHOTS"},{no:3,name:"HOCKEY_PERFORMER_CATEGORY_HITS",localName:"HITS"},{no:4,name:"HOCKEY_PERFORMER_CATEGORY_SAVES",localName:"SAVES"}]),JC=k.makeEnum("streamlayer.sports.hockey.HockeyPlayerPosition",[{no:0,name:"HOCKEY_PLAYER_POSITION_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PLAYER_POSITION_CENTER",localName:"CENTER"},{no:2,name:"HOCKEY_PLAYER_POSITION_LEFT_WIND",localName:"LEFT_WIND"},{no:3,name:"HOCKEY_PLAYER_POSITION_RIGHT_WING",localName:"RIGHT_WING"},{no:4,name:"HOCKEY_PLAYER_POSITION_DEFENSE",localName:"DEFENSE"},{no:5,name:"HOCKEY_PLAYER_POSITION_GOALTENDER",localName:"GOALTENDER"}]),rQ=k.makeMessageType("streamlayer.sports.hockey.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:Eu},{no:9,name:"away_team_record",kind:"message",T:Eu}]),lS=k.makeMessageType("streamlayer.sports.hockey.HockeyPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),oQ=k.makeMessageType("streamlayer.sports.hockey.HockeyPerformers",()=>[{no:1,name:"category",kind:"enum",T:k.getEnumType(aQ)},{no:2,name:"home_player",kind:"message",T:lS,repeated:!0},{no:3,name:"away_player",kind:"message",T:lS,repeated:!0}]),uS=k.makeMessageType("streamlayer.sports.hockey.HockeyTeamSummary",()=>[{no:1,name:"shots_on_goal",kind:"scalar",T:5},{no:2,name:"faceoff",kind:"scalar",T:1},{no:3,name:"powerplay",kind:"scalar",T:5},{no:4,name:"penalty_minutes",kind:"scalar",T:5},{no:5,name:"hits",kind:"scalar",T:5},{no:6,name:"blocks",kind:"scalar",T:5},{no:7,name:"giveaways",kind:"scalar",T:5},{no:8,name:"takeaways",kind:"scalar",T:5}]),sQ=k.makeMessageType("streamlayer.sports.hockey.HockeySummary",()=>[{no:1,name:"home_statistics",kind:"message",T:uS},{no:2,name:"away_statistics",kind:"message",T:uS}]),iQ=k.makeMessageType("streamlayer.sports.hockey.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:sQ},{no:2,name:"top_performers",kind:"message",T:oQ,repeated:!0}]),lQ=k.makeMessageType("streamlayer.sports.hockey.HockeyPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:_u},{no:2,name:"event_time",kind:"message",T:O6},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),uQ=k.makeMessageType("streamlayer.sports.hockey.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:lQ,repeated:!0}]),U5=k.makeMessageType("streamlayer.sports.hockey.PlayerScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"goals",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"shots",kind:"scalar",T:5},{no:6,name:"penalty_minutes",kind:"scalar",T:1},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:k.getEnumType(JC)}]),cS=k.makeMessageType("streamlayer.sports.hockey.GoaltenderScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"shots_againts",kind:"scalar",T:5},{no:4,name:"goals_againts",kind:"scalar",T:5},{no:5,name:"saves",kind:"scalar",T:5},{no:6,name:"saves_pct",kind:"scalar",T:5},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:k.getEnumType(JC)}]),dS=k.makeMessageType("streamlayer.sports.hockey.PlayerScores",()=>[{no:1,name:"skaters",kind:"message",T:U5,repeated:!0},{no:2,name:"goaltender",kind:"message",T:cS},{no:3,name:"forwards",kind:"message",T:U5,repeated:!0},{no:4,name:"defensemen",kind:"message",T:U5,repeated:!0},{no:5,name:"goaltenders",kind:"message",T:cS,repeated:!0}]),cQ=k.makeMessageType("streamlayer.sports.hockey.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:dS},{no:2,name:"away_players",kind:"message",T:dS}]),dQ=k.makeMessageType("streamlayer.sports.hockey.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:mQ},{no:11,name:"rank",kind:"message",T:fQ},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),mQ=k.makeMessageType("streamlayer.sports.hockey.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),fQ=k.makeMessageType("streamlayer.sports.hockey.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),pQ=k.makeMessageType("streamlayer.sports.hockey.Standings",()=>[{no:1,name:"standings",kind:"message",T:dQ,repeated:!0}]),hQ=k.makeEnum("streamlayer.sports.soccer.SoccerPerformerCategory",[{no:0,name:"SOCCER_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"SOCCER_PERFORMER_CATEGORY_ATTACK",localName:"ATTACK"},{no:2,name:"SOCCER_PERFORMER_CATEGORY_MIDFIELD",localName:"MIDFIELD"},{no:3,name:"SOCCER_PERFORMER_CATEGORY_DEFENSE",localName:"DEFENSE"}]),gQ=k.makeEnum("streamlayer.sports.soccer.SoccerMatchActivityType",[{no:0,name:"SOCCER_MATCH_ACTIVITY_UNSET"},{no:1,name:"SOCCER_MATCH_ACTIVITY_GOAL"},{no:2,name:"SOCCER_MATCH_ACTIVITY_YELLOW_CARD"},{no:3,name:"SOCCER_MATCH_ACTIVITY_RED_CARD"},{no:4,name:"SOCCER_MATCH_ACTIVITY_SUBSTITUTION"},{no:5,name:"SOCCER_MATCH_ACTIVITY_HALF_TIME"},{no:6,name:"SOCCER_MATCH_ACTIVITY_FULL_TIME"}]),yQ=k.makeMessageType("streamlayer.sports.soccer.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:Eu},{no:9,name:"away_team_record",kind:"message",T:Eu}]),hy=k.makeMessageType("streamlayer.sports.soccer.SoccerPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),vQ=k.makeMessageType("streamlayer.sports.soccer.SoccerAttackPerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:hy},{no:2,name:"attack_stats",kind:"message",T:IQ}]),TQ=k.makeMessageType("streamlayer.sports.soccer.SoccerMidfieldPerformer",()=>[{no:1,name:"perfomer",kind:"message",T:hy},{no:2,name:"midfield_stats",kind:"message",T:NQ}]),bQ=k.makeMessageType("streamlayer.sports.soccer.SoccerDefensePerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:hy},{no:2,name:"defense_stats",kind:"message",T:RQ}]),kQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPerformers",()=>[{no:1,name:"category",kind:"enum",T:k.getEnumType(hQ)},{no:2,name:"attack_performer",kind:"message",T:vQ},{no:3,name:"midfield_performer",kind:"message",T:TQ},{no:4,name:"defense_performer",kind:"message",T:bQ}]),SQ=k.makeMessageType("streamlayer.sports.soccer.SoccerTeamTopMatchStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"shots",kind:"scalar",T:5},{no:3,name:"shots_on_target",kind:"scalar",T:5},{no:4,name:"passes",kind:"scalar",T:5},{no:5,name:"offsides",kind:"scalar",T:5},{no:6,name:"yellow_cards",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"free_kicks",kind:"scalar",T:5},{no:9,name:"red_cards",kind:"scalar",T:5}]),wQ=k.makeMessageType("streamlayer.sports.soccer.SoccerTeamAttackingStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"passing_accuracy",kind:"scalar",T:1},{no:3,name:"chances_created",kind:"scalar",T:5},{no:4,name:"successful_crosses",kind:"scalar",T:1}]),CQ=k.makeMessageType("streamlayer.sports.soccer.SoccerTeamDefenseStats",()=>[{no:1,name:"tackles_made",kind:"scalar",T:5},{no:2,name:"interceptions",kind:"scalar",T:5},{no:3,name:"blocked_shots",kind:"scalar",T:5},{no:4,name:"clearances",kind:"scalar",T:5},{no:5,name:"duels_won",kind:"scalar",T:5}]),mS=k.makeMessageType("streamlayer.sports.soccer.SoccerTeamSummary",()=>[{no:1,name:"top_match_stats",kind:"message",T:SQ},{no:2,name:"attacking_stats",kind:"message",T:wQ},{no:3,name:"defense_stats",kind:"message",T:CQ}]),EQ=k.makeMessageType("streamlayer.sports.soccer.SoccerSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:mS},{no:2,name:"away_statistics",kind:"message",T:mS},{no:3,name:"perfomers",kind:"message",T:kQ}]),_Q=k.makeMessageType("streamlayer.sports.soccer.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:EQ},{no:2,name:"last_games",kind:"message",T:eE}]),IQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPlayerAttackingStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"shots",kind:"scalar",T:5},{no:4,name:"shots_on_goal",kind:"scalar",T:5},{no:5,name:"penalty_kick_goals",kind:"scalar",T:5}]),NQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPlayerMidfieldStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"key_passes",kind:"scalar",T:5},{no:4,name:"crosses",kind:"scalar",T:5},{no:5,name:"corners",kind:"scalar",T:5}]),RQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPlayerDefenseStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"tackles_made",kind:"scalar",T:5},{no:4,name:"interceptions",kind:"scalar",T:5},{no:5,name:"blocked_shots",kind:"scalar",T:5}]),OQ=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrixPlayer",()=>[{no:1,name:"jersey_number",kind:"scalar",T:5},{no:2,name:"player_name",kind:"scalar",T:9},{no:3,name:"photo",kind:"scalar",T:9}]),LQ=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrix",()=>[{no:1,name:"row_players",kind:"message",T:OQ,repeated:!0}]),fS=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),pS=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineup",()=>[{no:1,name:"formation_string",kind:"scalar",T:9},{no:2,name:"formation_matrix",kind:"message",T:LQ,repeated:!0},{no:3,name:"start_players",kind:"message",T:fS,repeated:!0},{no:4,name:"substitutes",kind:"message",T:fS,repeated:!0}]),AQ=k.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:pS},{no:2,name:"away_team",kind:"message",T:pS}]),xQ=k.makeMessageType("streamlayer.sports.soccer.SoccerPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:_u},{no:2,name:"event_time",kind:"message",T:O6},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5},{no:8,name:"type",kind:"enum",T:k.getEnumType(gQ)}]),PQ=k.makeMessageType("streamlayer.sports.soccer.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:xQ,repeated:!0}]),MQ=k.makeMessageType("streamlayer.sports.soccer.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"draws",kind:"scalar",T:5},{no:9,name:"games_behind",kind:"scalar",T:5},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"points",kind:"scalar",T:5},{no:14,name:"position",kind:"scalar",T:5},{no:15,name:"total_goals",kind:"scalar",T:5},{no:16,name:"total_goals_received",kind:"scalar",T:5}]),DQ=k.makeMessageType("streamlayer.sports.soccer.Standings",()=>[{no:1,name:"standings",kind:"message",T:MQ,repeated:!0}]),F5=k.makeMessageType("streamlayer.sports.soccer.SoccerLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:UQ}]),UQ=k.makeMessageType("streamlayer.sports.soccer.SoccerLastGame.SoccerLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"SoccerLastGame_SoccerLastGameAttributes"}),eE=k.makeMessageType("streamlayer.sports.soccer.SoccerLastGames",()=>[{no:1,name:"home",kind:"message",T:F5,repeated:!0},{no:2,name:"away",kind:"message",T:F5,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:F5,repeated:!0}]),ad=k.makeEnum("streamlayer.sports.events.EventType",[{no:0,name:"EVENT_TYPE_UNSET",localName:"UNSET"},{no:1,name:"EVENT_TYPE_BASEBALL",localName:"BASEBALL"},{no:2,name:"EVENT_TYPE_BASKETBALL",localName:"BASKETBALL"},{no:3,name:"EVENT_TYPE_HOCKEY",localName:"HOCKEY"},{no:4,name:"EVENT_TYPE_SOCCER",localName:"SOCCER"},{no:5,name:"EVENT_TYPE_GOLF",localName:"GOLF"}]),FQ=k.makeMessageType("streamlayer.sports.events.ScheduleAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"baseball",kind:"message",T:DW,oneof:"sport"},{no:3,name:"basketball",kind:"message",T:HW,oneof:"sport"},{no:4,name:"hockey",kind:"message",T:rQ,oneof:"sport"},{no:5,name:"soccer",kind:"message",T:yQ,oneof:"sport"}]),VQ=k.makeMessageType("streamlayer.sports.events.ScheduleResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:FQ}]),jQ=k.makeMessageType("streamlayer.sports.events.ListResponseAttributes",()=>[{no:1,name:"common",kind:"message",T:_W}]),tE=k.makeMessageType("streamlayer.sports.events.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:jQ}]),BQ=k.makeMessageType("streamlayer.sports.events.ListRequest",()=>[{no:1,name:"filter",kind:"message",T:$Q},{no:2,name:"pagination",kind:"message",T:N6},{no:3,name:"sort",kind:"message",T:YC},{no:4,name:"ids",kind:"scalar",T:4,repeated:!0},{no:5,name:"organization_id",kind:"scalar",T:9}]),$Q=k.makeMessageType("streamlayer.sports.events.ListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9},{no:3,name:"start_date_time",kind:"scalar",T:9},{no:4,name:"end_date_time",kind:"scalar",T:9},{no:5,name:"sport",kind:"scalar",T:9},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"endless",kind:"enum",T:k.getEnumType(QC)}],{localName:"ListRequest_Filter"}),zQ=k.makeMessageType("streamlayer.sports.events.DemoListRequest",()=>[{no:1,name:"filter",kind:"message",T:HQ},{no:2,name:"pagination",kind:"message",T:N6},{no:3,name:"sort",kind:"message",T:YC}]),HQ=k.makeMessageType("streamlayer.sports.events.DemoListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"DemoListRequest_Filter"}),qQ=k.makeMessageType("streamlayer.sports.events.DemoListResponse",()=>[{no:1,name:"meta",kind:"message",T:R6},{no:2,name:"data",kind:"message",T:tE,repeated:!0}]),GQ=k.makeMessageType("streamlayer.sports.events.ListResponse",()=>[{no:1,name:"meta",kind:"message",T:R6},{no:2,name:"data",kind:"message",T:tE,repeated:!0}]),hS=k.makeMessageType("streamlayer.sports.events.SummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),gS=k.makeMessageType("streamlayer.sports.events.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:WQ}]),WQ=k.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:QQ}],{localName:"SummaryResponse_ResponseData"}),QQ=k.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"baseball",kind:"message",T:FW,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:WW,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:iQ,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:_Q,oneof:"sports"}],{localName:"SummaryResponse_ResponseData_SummaryResponseAttributes"}),YQ=k.makeMessageType("streamlayer.sports.events.AdminSummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),KQ=k.makeMessageType("streamlayer.sports.events.AdminSummaryResponse",()=>[{no:1,name:"data",kind:"message",T:ZQ}]),ZQ=k.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:XQ}],{localName:"AdminSummaryResponse_ResponseData"}),XQ=k.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"provider_id",kind:"scalar",T:9}],{localName:"AdminSummaryResponse_ResponseData_SummaryResponseAttributes"}),JQ=k.makeMessageType("streamlayer.sports.events.PlayByPlayRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"pagination",kind:"message",T:N6},{no:3,name:"order",kind:"scalar",T:9}]),eY=k.makeMessageType("streamlayer.sports.events.PlayByPlayResponse",()=>[{no:1,name:"data",kind:"message",T:tY},{no:2,name:"meta",kind:"message",T:R6}]),tY=k.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:nY}],{localName:"PlayByPlayResponse_ResponseData"}),nY=k.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData.PlayByPlayResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"baseball",kind:"message",T:UW,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:YW,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:uQ,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:PQ,oneof:"sports"}],{localName:"PlayByPlayResponse_ResponseData_PlayByPlayResponseAttributes"}),aY=k.makeMessageType("streamlayer.sports.events.ScheduleRequest",()=>[{no:1,name:"filter",kind:"message",T:rY},{no:2,name:"pagination",kind:"message",T:N6}]),rY=k.makeMessageType("streamlayer.sports.events.ScheduleRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleRequest_Filter"}),oY=k.makeMessageType("streamlayer.sports.events.ScheduleResponse",()=>[{no:1,name:"data",kind:"message",T:VQ,repeated:!0},{no:2,name:"meta",kind:"message",T:R6}]),sY=k.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest",()=>[{no:1,name:"filter",kind:"message",T:iY}]),iY=k.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest.Filter",()=>[{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleDatesRequest_Filter"}),lY=k.makeMessageType("streamlayer.sports.events.ScheduleDatesResponse",()=>[{no:1,name:"data",kind:"scalar",T:9,repeated:!0}]),uY=k.makeMessageType("streamlayer.sports.events.BoxscoreRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),cY=k.makeMessageType("streamlayer.sports.events.BoxscoreResponse",()=>[{no:1,name:"data",kind:"message",T:dY}]),dY=k.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:mY}],{localName:"BoxscoreResponse_ResponseData"}),mY=k.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData.BoxscoreResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"basketball",kind:"message",T:KW,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:cQ,oneof:"sports"}],{localName:"BoxscoreResponse_ResponseData_BoxscoreResponseAttributes"}),fY=k.makeMessageType("streamlayer.sports.events.StandingsRequest",()=>[{no:1,name:"league",kind:"scalar",T:9}]),pY=k.makeMessageType("streamlayer.sports.events.StandingsResponse",()=>[{no:1,name:"data",kind:"message",T:hY}]),hY=k.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData",()=>[{no:1,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:2,name:"attributes",kind:"message",T:gY}],{localName:"StandingsResponse_ResponseData"}),gY=k.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData.StandingsResponseAttributes",()=>[{no:2,name:"basketball",kind:"message",T:eQ,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:pQ,oneof:"sports"},{no:4,name:"baseball",kind:"message",T:$W,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:DQ,oneof:"sports"}],{localName:"StandingsResponse_ResponseData_StandingsResponseAttributes"}),yY=k.makeMessageType("streamlayer.sports.events.LineupRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),vY=k.makeMessageType("streamlayer.sports.events.LineupResponse",()=>[{no:1,name:"data",kind:"message",T:TY}]),TY=k.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:bY}],{localName:"LineupResponse_ResponseData"}),bY=k.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData.LineupResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"soccer",kind:"message",T:AQ,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:tQ,oneof:"sports"}],{localName:"LineupResponse_ResponseData_LineupResponseAttributes"}),kY=k.makeMessageType("streamlayer.sports.events.LastGamesRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),SY=k.makeMessageType("streamlayer.sports.events.LastGamesResponse",()=>[{no:1,name:"data",kind:"message",T:wY}]),wY=k.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:k.getEnumType(ad)},{no:3,name:"attributes",kind:"message",T:CY}],{localName:"LastGamesResponse_ResponseData"}),CY=k.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData.LastGamesResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:nd},{no:2,name:"soccer",kind:"message",T:eE,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:XC,oneof:"sports"}],{localName:"LastGamesResponse_ResponseData_LastGamesResponseAttributes"}),EY=k.makeMessageType("streamlayer.sports.events.RetrieveEventIdRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),_Y=k.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse",()=>[{no:1,name:"data",kind:"message",T:IY}]),IY=k.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse.RetrieveEventIdResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4}],{localName:"RetrieveEventIdResponse_RetrieveEventIdResponseData"}),nE={typeName:"streamlayer.sports.events.Events",methods:{list:{name:"List",I:BQ,O:GQ,kind:je.Unary},demoList:{name:"DemoList",I:zQ,O:qQ,kind:je.Unary},summary:{name:"Summary",I:hS,O:gS,kind:je.Unary},adminSummary:{name:"AdminSummary",I:YQ,O:KQ,kind:je.Unary},boxscore:{name:"Boxscore",I:uY,O:cY,kind:je.Unary},standings:{name:"Standings",I:fY,O:pY,kind:je.Unary},playByPlay:{name:"PlayByPlay",I:JQ,O:eY,kind:je.Unary},schedule:{name:"Schedule",I:aY,O:oY,kind:je.Unary},scheduleDates:{name:"ScheduleDates",I:sY,O:lY,kind:je.Unary},lineup:{name:"Lineup",I:yY,O:vY,kind:je.Unary},retrieveEventId:{name:"RetrieveEventId",I:EY,O:_Y,kind:je.Unary},lastGames:{name:"LastGames",I:kY,O:SY,kind:je.Unary},summarySubscription:{name:"SummarySubscription",I:hS,O:gS,kind:je.ServerStreaming}}},NY=k.makeEnum("streamlayer.sdkSettings.client.VisibleStatus",[{no:0,name:"VISIBLE_STATUS_UNSET",localName:"UNSET"},{no:1,name:"VISIBLE_STATUS_INCOGNITO",localName:"INCOGNITO"},{no:2,name:"VISIBLE_STATUS_VISIBLE",localName:"VISIBLE"}]),RY=k.makeEnum("streamlayer.sdkSettings.client.MessagesNotify",[{no:0,name:"MESSAGES_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_NOTIFY_ALLOW",localName:"ALLOW"}]),OY=k.makeEnum("streamlayer.sdkSettings.client.FriendsNotify",[{no:0,name:"FRIENDS_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_NOTIFY_ALLOW",localName:"ALLOW"}]),LY=k.makeEnum("streamlayer.sdkSettings.client.TwitterNotify",[{no:0,name:"TWITTER_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_NOTIFY_ALLOW",localName:"ALLOW"}]),AY=k.makeEnum("streamlayer.sdkSettings.client.CallsSound",[{no:0,name:"CALLS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"CALLS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"CALLS_SOUND_ALLOW",localName:"ALLOW"}]),xY=k.makeEnum("streamlayer.sdkSettings.client.MessagesSound",[{no:0,name:"MESSAGES_SOUND_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_SOUND_ALLOW",localName:"ALLOW"}]),PY=k.makeEnum("streamlayer.sdkSettings.client.FriendsSound",[{no:0,name:"FRIENDS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_SOUND_ALLOW",localName:"ALLOW"}]),MY=k.makeEnum("streamlayer.sdkSettings.client.TwitterSound",[{no:0,name:"TWITTER_SOUND_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_SOUND_ALLOW",localName:"ALLOW"}]),aE=k.makeEnum("streamlayer.sdkSettings.client.SettingsAllow",[{no:0,name:"SETTINGS_ALLOW_UNSET",localName:"UNSET"},{no:1,name:"SETTINGS_ALLOW_DISALLOW",localName:"DISALLOW"},{no:2,name:"SETTINGS_ALLOW_ALLOW",localName:"ALLOW"}]),DY=k.makeEnum("streamlayer.sdkSettings.client.ManagedGroupType",[{no:0,name:"MANAGED_GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"MANAGED_GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"MANAGED_GROUP_TYPE_WP",localName:"WP"}]),UY=k.makeEnum("streamlayer.sdkSettings.client.GroupType",[{no:0,name:"GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"GROUP_TYPE_WP",localName:"WP"}]),FY=k.makeMessageType("streamlayer.sdkSettings.client.NotifySettings",()=>[{no:1,name:"allow",kind:"enum",T:k.getEnumType(aE)}]),VY=k.makeMessageType("streamlayer.sdkSettings.client.SoundSettings",()=>[{no:1,name:"allow",kind:"enum",T:k.getEnumType(aE)}]),V5=k.makeMessageType("streamlayer.sdkSettings.client.ClientSettingsNotifications",()=>[{no:1,name:"notify",kind:"message",T:FY},{no:2,name:"sound",kind:"message",T:VY}]),gy=k.makeMessageType("streamlayer.sdkSettings.client.ClientSettings",()=>[{no:1,name:"visible_status",kind:"enum",T:k.getEnumType(NY)},{no:2,name:"messages_notify",kind:"enum",T:k.getEnumType(RY)},{no:3,name:"friends_notify",kind:"enum",T:k.getEnumType(OY)},{no:4,name:"calls_sound",kind:"enum",T:k.getEnumType(AY)},{no:5,name:"messages_sound",kind:"enum",T:k.getEnumType(xY)},{no:6,name:"friends_sound",kind:"enum",T:k.getEnumType(PY)},{no:7,name:"twitter_notify",kind:"enum",T:k.getEnumType(LY)},{no:8,name:"twitter_sound",kind:"enum",T:k.getEnumType(MY)},{no:9,name:"gamification",kind:"message",T:V5},{no:10,name:"watch_party_invitation",kind:"message",T:V5},{no:11,name:"twitter_question",kind:"message",T:V5}]),jY=k.makeMessageType("streamlayer.sdkSettings.client.GetRequest",[]),BY=k.makeMessageType("streamlayer.sdkSettings.client.GetResponse",()=>[{no:1,name:"data",kind:"message",T:$Y}]),$Y=k.makeMessageType("streamlayer.sdkSettings.client.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:gy}],{localName:"GetResponse_GetResponseData"}),zY=k.makeMessageType("streamlayer.sdkSettings.client.UpdateRequest",()=>[{no:2,name:"settings",kind:"message",T:gy}]),HY=k.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse",()=>[{no:1,name:"data",kind:"message",T:qY}]),qY=k.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse.UpdateResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:gy}],{localName:"UpdateResponse_UpdateResponseData"}),GY=k.makeMessageType("streamlayer.sdkSettings.client.GetStreamRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),WY=k.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse",()=>[{no:1,name:"data",kind:"message",T:QY}]),QY=k.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:eC}],{localName:"GetStreamResponse_GetResponseData"}),YY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationRequest",[]),KY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse",()=>[{no:1,name:"data",kind:"message",T:ZY}]),ZY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:tC}],{localName:"GetOrganizationResponse_GetResponseData"}),XY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9,opt:!0}]),JY=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse",()=>[{no:1,name:"data",kind:"message",T:eK}]),eK=k.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse.GetOrganizationAdvertisingResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:lU}],{localName:"GetOrganizationAdvertisingResponse_GetOrganizationAdvertisingResponseData"}),tK=k.makeMessageType("streamlayer.sdkSettings.client.ManagedGroup",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"fantasy_group_id",kind:"scalar",T:9},{no:3,name:"group_type",kind:"enum",T:k.getEnumType(DY)}]),nK=k.makeMessageType("streamlayer.sdkSettings.client.DeepLinkData",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"gamification",kind:"scalar",T:8},{no:4,name:"managed_group",kind:"message",T:tK},{no:5,name:"external_event_id",kind:"scalar",T:9},{no:6,name:"external_group_id",kind:"scalar",T:9},{no:7,name:"group_type",kind:"enum",T:k.getEnumType(UY)}]),aK=k.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkRequest",()=>[{no:1,name:"data",kind:"message",T:nK}]),rK=k.makeMessageType("streamlayer.sdkSettings.client.DeepLink",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"link_id",kind:"scalar",T:9}]),oK=k.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:sK}]),sK=k.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse.GenerateDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:rK}],{localName:"GenerateDeepLinkResponse_GenerateDeepLinkResponseData"}),iK=k.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),lK=k.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionRequest",[]),uK=k.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:cK}]),cK=k.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:eC}],{localName:"StreamSubscriptionResponse_ResponseData"}),dK=k.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:mK}]),mK=k.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:tC}],{localName:"OrganizationSubscriptionResponse_ResponseData"}),p2={typeName:"streamlayer.sdkSettings.client.Client",methods:{get:{name:"Get",I:jY,O:BY,kind:je.Unary},update:{name:"Update",I:zY,O:HY,kind:je.Unary},getStream:{name:"GetStream",I:GY,O:WY,kind:je.Unary},getOrganization:{name:"GetOrganization",I:YY,O:KY,kind:je.Unary},getOrganizationAdvertising:{name:"GetOrganizationAdvertising",I:XY,O:JY,kind:je.Unary},generateDeepLink:{name:"GenerateDeepLink",I:aK,O:oK,kind:je.Unary},streamSubscription:{name:"StreamSubscription",I:iK,O:uK,kind:je.ServerStreaming},organizationSubscription:{name:"OrganizationSubscription",I:lK,O:dK,kind:je.ServerStreaming}}},fK=k.makeMessageType("streamlayer.users.PublicChatUser",()=>[{no:1,name:"name",kind:"scalar",T:9}]),pK=k.makeMessageType("streamlayer.users.UserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:5,name:"avatar",kind:"scalar",T:9},{no:6,name:"public_chat",kind:"message",T:fK},{no:7,name:"public_name",kind:"scalar",T:9}]),yy=k.makeMessageType("streamlayer.users.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:pK}]),hK=k.makeMessageType("streamlayer.users.LoginRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]),gK=k.makeMessageType("streamlayer.users.AuthResponse",()=>[{no:1,name:"meta",kind:"message",T:yK},{no:2,name:"data",kind:"message",T:yy}]),yK=k.makeMessageType("streamlayer.users.AuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9},{no:3,name:"getstream",kind:"scalar",T:9}],{localName:"AuthResponse_AuthResponseMetadata"}),vK=k.makeMessageType("streamlayer.users.RegisterRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),TK=k.makeMessageType("streamlayer.users.Referral",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"watching_game",kind:"scalar",T:9}]),bK=k.makeMessageType("streamlayer.users.RegisterResponse",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"requires_activation",kind:"scalar",T:8},{no:3,name:"referral",kind:"message",T:TK}]),kK=k.makeMessageType("streamlayer.users.RequestPasswordRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),SK=k.makeMessageType("streamlayer.users.RequestPasswordResponse",()=>[{no:1,name:"requested",kind:"scalar",T:8},{no:2,name:"uid",kind:"scalar",T:9}]),wK=k.makeMessageType("streamlayer.users.MeRequest",[]),CK=k.makeMessageType("streamlayer.users.MeResponse",()=>[{no:1,name:"data",kind:"message",T:yy}]),EK=k.makeMessageType("streamlayer.users.UpdateMetadataRequest",()=>[{no:1,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:2,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),_K=k.makeMessageType("streamlayer.users.UpdateAvatarRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_avatar",kind:"scalar",T:9,oneof:"avatar"},{no:3,name:"del_avatar",kind:"scalar",T:9,oneof:"avatar"}]),IK=k.makeMessageType("streamlayer.users.UpdateAvatarResponse",[]),NK=k.makeMessageType("streamlayer.users.UpdatePublicChatNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),RK=k.makeMessageType("streamlayer.users.UpdatePublicChatNameResponse",[]),OK=k.makeMessageType("streamlayer.users.UpdatePublicNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),LK=k.makeMessageType("streamlayer.users.UpdatePublicNameResponse",[]),AK=k.makeMessageType("streamlayer.users.UpdateMetadataResponse",[]),xK=k.makeMessageType("streamlayer.users.InviteRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"referral",kind:"message",T:PK}]),PK=k.makeMessageType("streamlayer.users.InviteRequest.InviteReferral",()=>[{no:1,name:"watching_game",kind:"scalar",T:9}],{localName:"InviteRequest_InviteReferral"}),MK=k.makeMessageType("streamlayer.users.InviteResponse",[]),DK=k.makeMessageType("streamlayer.users.BypassAuthRequest",()=>[{no:1,name:"user_key",kind:"scalar",T:9},{no:2,name:"schema",kind:"scalar",T:9},{no:3,name:"init",kind:"scalar",T:8},{no:4,name:"inviter_key",kind:"scalar",T:9,opt:!0}]),UK=k.makeMessageType("streamlayer.users.BypassAuthResponse",()=>[{no:1,name:"meta",kind:"message",T:FK},{no:2,name:"data",kind:"message",T:yy,opt:!0}]),FK=k.makeMessageType("streamlayer.users.BypassAuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9,opt:!0},{no:3,name:"token",kind:"scalar",T:9,opt:!0},{no:4,name:"getstream",kind:"scalar",T:9},{no:5,name:"inviter_key",kind:"scalar",T:9,opt:!0}],{localName:"BypassAuthResponse_AuthResponseMetadata"}),VK=k.makeMessageType("streamlayer.users.GetFriendsRequest",()=>[{no:1,name:"last_created_at",kind:"scalar",T:9,opt:!0},{no:2,name:"limit",kind:"scalar",T:5,opt:!0}]),jK=k.makeMessageType("streamlayer.users.GetFriendsResponse",()=>[{no:1,name:"data",kind:"message",T:$K,repeated:!0},{no:2,name:"metadata",kind:"message",T:BK}]),BK=k.makeMessageType("streamlayer.users.GetFriendsResponse.ResponseMeta",()=>[{no:1,name:"last_created_at",kind:"scalar",T:9}],{localName:"GetFriendsResponse_ResponseMeta"}),$K=k.makeMessageType("streamlayer.users.GetFriendsResponse.FriendData",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"tinode_id",kind:"scalar",T:9},{no:3,name:"sl_id",kind:"scalar",T:9}],{localName:"GetFriendsResponse_FriendData"}),vy={typeName:"streamlayer.users.Users",methods:{login:{name:"Login",I:hK,O:gK,kind:je.Unary},register:{name:"Register",I:vK,O:bK,kind:je.Unary},requestPassword:{name:"RequestPassword",I:kK,O:SK,kind:je.Unary},me:{name:"Me",I:wK,O:CK,kind:je.Unary},invite:{name:"Invite",I:xK,O:MK,kind:je.Unary},bypassAuth:{name:"BypassAuth",I:DK,O:UK,kind:je.Unary},updateMetadata:{name:"UpdateMetadata",I:EK,O:AK,kind:je.Unary},updateAvatar:{name:"UpdateAvatar",I:_K,O:IK,kind:je.Unary},updatePublicChatName:{name:"UpdatePublicChatName",I:NK,O:RK,kind:je.Unary},updatePublicName:{name:"UpdatePublicName",I:OK,O:LK,kind:je.Unary},getFriends:{name:"GetFriends",I:VK,O:jK,kind:je.Unary}}};var Gi;(function(n){n.SCHEMA="schema",n.EXTERNAL_TOKEN="eToken",n.TOKEN="token"})(Gi||(Gi={}));class zK extends Qz{constructor(){super("user");U(this,"setSchema",o=>{this.write(Gi.SCHEMA,o)});U(this,"getSchema",()=>this.read(Gi.SCHEMA));U(this,"setToken",o=>{this.write(Gi.TOKEN,o)});U(this,"getToken",()=>this.read(Gi.TOKEN));U(this,"setExternalToken",o=>{this.write(Gi.EXTERNAL_TOKEN,o)});U(this,"getExternalToken",()=>this.read(Gi.EXTERNAL_TOKEN));U(this,"removeToken",()=>{this.remove(Gi.TOKEN)})}}var yS;(function(n){n.DISABLED="disabled",n.INITIALIZATION="initialization",n.READY="ready",n.FAILED="failed",n.SUSPENDED="suspended"})(yS||(yS={}));const Lo={typeName:"streamlayer.interactive.feed.Feed",methods:{get:{name:"Get",I:uD,O:cD,kind:je.Unary},subscription:{name:"Subscription",I:pM,O:hM,kind:je.ServerStreaming},votingSubscription:{name:"VotingSubscription",I:yM,O:vM,kind:je.ServerStreaming},questionSubscription:{name:"QuestionSubscription",I:kM,O:SM,kind:je.ServerStreaming},questionByUser:{name:"QuestionByUser",I:EM,O:_M,kind:je.Unary},syncQuestion:{name:"SyncQuestion",I:NM,O:OM,kind:je.Unary},getQuestion:{name:"GetQuestion",I:AM,O:xM,kind:je.Unary},questionDetail:{name:"QuestionDetail",I:MM,O:DM,kind:je.Unary},submitAnswer:{name:"SubmitAnswer",I:FM,O:jM,kind:je.Unary},submitInplay:{name:"SubmitInplay",I:$M,O:HM,kind:je.Unary},skipQuestion:{name:"SkipQuestion",I:qM,O:WM,kind:je.Unary},pickHistory:{name:"PickHistory",I:YM,O:KM,kind:je.Unary},insightHistory:{name:"InsightHistory",I:JM,O:nD,kind:je.Unary},tweetHistory:{name:"TweetHistory",I:rD,O:oD,kind:je.Unary},promotionHistory:{name:"PromotionHistory",I:mD,O:fD,kind:je.Unary},list:{name:"List",I:gD,O:vD,kind:je.Unary},item:{name:"Item",I:bD,O:kD,kind:je.Unary},feedSubscription:{name:"FeedSubscription",I:SD,O:wD,kind:je.ServerStreaming}}},HK=k.makeEnum("streamlayer.interactive.leaderboard.LeaderboardType",[{no:0,name:"LEADERBOARD_TYPE_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_TYPE_TOURNAMENT",localName:"TOURNAMENT"},{no:2,name:"LEADERBOARD_TYPE_EVENT",localName:"EVENT"}]),rE=k.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:k.getEnumType(HK)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"event_ids",kind:"scalar",T:3,repeated:!0},{no:5,name:"leaderboards",kind:"message",T:rE,repeated:!0},{no:6,name:"created_at",kind:"scalar",T:3}]),Ty=k.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardItem",()=>[{no:1,name:"streak",kind:"scalar",T:5},{no:2,name:"correct",kind:"scalar",T:5},{no:3,name:"incorrect",kind:"scalar",T:5},{no:4,name:"points",kind:"scalar",T:5},{no:5,name:"rank",kind:"scalar",T:5},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"avatar",kind:"scalar",T:9},{no:8,name:"user_id",kind:"scalar",T:9},{no:9,name:"recent_correct",kind:"scalar",T:5},{no:10,name:"streak_loss",kind:"scalar",T:5},{no:11,name:"friends_rank",kind:"scalar",T:5},{no:12,name:"in_top",kind:"scalar",T:5}]),qK=k.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem",()=>[{no:1,name:"summary",kind:"message",T:Ty},{no:2,name:"percentage",kind:"message",T:GK}]),GK=k.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem.SummaryPercentage",()=>[{no:1,name:"correct",kind:"scalar",T:5},{no:2,name:"average",kind:"scalar",T:5}],{localName:"LeaderboardSummaryItem_SummaryPercentage"}),WK=k.makeMessageType("streamlayer.interactive.leaderboard.ListRequest",()=>[{no:1,name:"pagination",kind:"message",T:C6},{no:2,name:"users_ids",kind:"scalar",T:9,repeated:!0},{no:3,name:"event_id",kind:"scalar",T:4},{no:4,name:"leaderboard_id",kind:"scalar",T:9}]),QK=k.makeMessageType("streamlayer.interactive.leaderboard.ListResponse",()=>[{no:1,name:"data",kind:"message",T:YK,repeated:!0},{no:2,name:"meta",kind:"message",T:KK}]),YK=k.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ty}],{localName:"ListResponse_ListResponseData"}),KK=k.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"ListResponse_ListResponseMeta"}),ZK=k.makeMessageType("streamlayer.interactive.leaderboard.SummaryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"user_id",kind:"scalar",T:9},{no:3,name:"leaderboard_id",kind:"scalar",T:9},{no:4,name:"users_ids",kind:"scalar",T:9,repeated:!0}]),XK=k.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:JK}]),JK=k.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse.SummaryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:qK}],{localName:"SummaryResponse_SummaryResponseData"}),eZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9}]),tZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse",()=>[{no:2,name:"data",kind:"message",T:nZ}]),nZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse.EventLeaderboardsResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:rE}],{localName:"EventLeaderboardsResponse_EventLeaderboardsResponseData"}),aZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"organization_id",kind:"scalar",T:9},{no:3,name:"pagination",kind:"message",T:C6},{no:4,name:"sort",kind:"message",T:uM}]),rZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse",()=>[{no:1,name:"data",kind:"message",T:oZ,repeated:!0},{no:2,name:"meta",kind:"message",T:sZ}]),oZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ty}],{localName:"EventLeaderboardResponse_ListResponseData"}),sZ=k.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"EventLeaderboardResponse_ListResponseMeta"}),oE={typeName:"streamlayer.interactive.leaderboard.Leaderboard",methods:{list:{name:"List",I:WK,O:QK,kind:je.Unary},summary:{name:"Summary",I:ZK,O:XK,kind:je.Unary},eventLeaderboards:{name:"EventLeaderboards",I:eZ,O:tZ,kind:je.Unary},eventLeaderboard:{name:"EventLeaderboard",I:aZ,O:rZ,kind:je.Unary}}};var vS;(function(n){n.SHOWED="showed"})(vS||(vS={}));var TS;(function(n){n.ALLOWED="allowed",n.DISALLOWED="disallowed"})(TS||(TS={}));var bS;(function(n){n.UNKNOWN="unknown",n.ALREADY_VOTED="already_voted"})(bS||(bS={}));var kS;(function(n){n.ONBOARDING="onboarding",n.ONBOARDING_IO="onboarding_io"})(kS||(kS={}));Cm("deep_link");Cm("bypass");new zK;Cm("video_player");ye.FACTOID+"",ye.POLL+"",ye.TRIVIA+"",ye.PREDICTION+"",ye.TWEET+"";const iZ=k.makeMessageType("streamlayer.shortLinks.GenerateRequest",()=>[{no:1,name:"web",kind:"scalar",T:9},{no:2,name:"mobile",kind:"scalar",T:9}]),lZ=k.makeMessageType("streamlayer.shortLinks.GenerateResponse",()=>[{no:1,name:"data",kind:"message",T:uZ}]),uZ=k.makeMessageType("streamlayer.shortLinks.GenerateResponse.GenerateResponseData",()=>[{no:1,name:"link",kind:"scalar",T:9}],{localName:"GenerateResponse_GenerateResponseData"}),cZ={typeName:"streamlayer.shortLinks.LinksClient",methods:{generate:{name:"Generate",I:iZ,O:lZ,kind:je.Unary}}};var SS;(function(n){n.Unset="unset",n.Required="required",n.Optional="optional",n.Completed="completed",n.Disabled="disabled",n.Unavailable="unavailable"})(SS||(SS={}));ye.POLL,ye.PREDICTION,ye.TRIVIA;const dZ={[yt.GAMES]:!0},sE=P("div")({name:"Navigation",class:"n6tbwuy",propsAsIs:!1}),mZ=()=>PC,wS=P(mZ())({name:"NavigationItems",class:"n1up4z7v",propsAsIs:!0}),fZ=()=>wt,pZ=P(fZ())({name:"ButtonIcon",class:"b11wpe79",propsAsIs:!0}),hZ=P("div")({name:"Container",class:"calnblm",propsAsIs:!1}),gZ=P("div")({name:"Title",class:"t1438p52",propsAsIs:!1}),yZ=P("div")({name:"CloseIconWrap",class:"c17srj38",propsAsIs:!1}),vZ=()=>wt,TZ=P(vZ())({name:"CloseIcon",class:"clqia8k",propsAsIs:!0}),bZ=()=>wt,kZ=P(bZ())({name:"DashboardIcon",class:"df5w958",propsAsIs:!0}),SZ="h12x6aiv";W.forwardRef(({sdk:n,className:a},o)=>{const l=()=>{n.closeFeature()};return w.jsxs(sE,{className:Su(a,SZ),children:[w.jsxs(hZ,{children:[w.jsxs(gZ,{children:[w.jsx(kZ,{name:"dashboard"}),"Dashboard"]}),w.jsx(yZ,{onClick:l,children:w.jsx(TZ,{name:"icon-cross"})})]}),w.jsx("div",{ref:o})]})});W.forwardRef(({sdk:n,className:a},o)=>{const l=Ut(n.sdkStore.organizationSettings),c=Ut(n.sdkStore.streamSettings),p=Ut(n.getActiveFeature()),f=W.useMemo(()=>{const b=(c==null?void 0:c.data)||(l==null?void 0:l.data);return b!=null&&b.overlays?b.overlays:[]},[l,c]),y=W.useMemo(()=>[...f.filter(({enableSdkButton:b,type:C})=>C===yt.GAMES||b).map(b=>({id:b.type,onClick:()=>n.openFeature(b.type),disabled:!(b.type in dZ),label:b.name,icon:w.jsx("img",{src:b.icon,alt:""}),position:b.position*10}))].sort((b,C)=>b.position-C.position),[f,n]);return w.jsxs(sE,{className:a,children:[y.length!==0&&w.jsx(wS,{children:[w.jsx(im,{id:"Channels",onClick:()=>n.closeFeature(),label:"Channels",active:p===0},"Channels"),...y.map(b=>b.id===yt.GAMES?w.jsx(im,{...b,active:b.id===p,label:"StreamLayer +",id:"featuredGroups",icon:w.jsx(pZ,{name:"icon-btn-feature-groups","data-selected":b.id===p})},b.id):w.jsx(im,{...b,icon:void 0,active:b.id===p},b.id))]}),!y.length&&w.jsx(wS,{children:[w.jsx(im,{id:"empty",label:"No Features...",active:!1,disabled:!0},"empty")]}),w.jsx("div",{ref:o})]})});const C9=k.makeEnum("streamlayer.analytics.v1.interactions.InteractionActionType",[{no:0,name:"INTERACTION_ACTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"INTERACTION_ACTION_TYPE_TAP",localName:"TAP"},{no:2,name:"INTERACTION_ACTION_TYPE_CALL",localName:"CALL"},{no:3,name:"INTERACTION_ACTION_TYPE_MESSAGE",localName:"MESSAGE"},{no:4,name:"INTERACTION_ACTION_TYPE_SCROLL",localName:"SCROLL"}]),Ys=k.makeEnum("streamlayer.analytics.v1.notifications.NotificationKind",[{no:0,name:"NOTIFICATION_KIND_UNSET",localName:"UNSET"},{no:1,name:"NOTIFICATION_KIND_MESSAGE",localName:"MESSAGE"},{no:2,name:"NOTIFICATION_KIND_CALL",localName:"CALL"},{no:3,name:"NOTIFICATION_KIND_TWITTER",localName:"TWITTER"},{no:4,name:"NOTIFICATION_KIND_WAVE",localName:"WAVE"},{no:5,name:"NOTIFICATION_KIND_INPLAY",localName:"INPLAY"},{no:6,name:"NOTIFICATION_KIND_GROUP_CALL",localName:"GROUP_CALL"},{no:7,name:"NOTIFICATION_KIND_MISSED_CALL",localName:"MISSED_CALL"},{no:8,name:"NOTIFICATION_KIND_MISSED_GROUP_CALL",localName:"MISSED_GROUP_CALL"},{no:9,name:"NOTIFICATION_KIND_WATCH_PARTY",localName:"WATCH_PARTY"},{no:10,name:"NOTIFICATION_KIND_POLLS",localName:"POLLS"}]),E9=k.makeEnum("streamlayer.analytics.v1.notifications.NotificationType",[{no:0,name:"NOTIFICATION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"NOTIFICATION_TYPE_IN_APP",localName:"IN_APP"},{no:2,name:"NOTIFICATION_TYPE_PUSH",localName:"PUSH"}]),wZ=k.makeEnum("streamlayer.analytics.v1.permissions.PermissionType",[{no:0,name:"PERMISSION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"PERMISSION_TYPE_ADDRESS_BOOK",localName:"ADDRESS_BOOK"},{no:2,name:"PERMISSION_TYPE_CALLING",localName:"CALLING"},{no:3,name:"PERMISSION_TYPE_CAMERA",localName:"CAMERA"}]),CZ=k.makeEnum("streamlayer.analytics.v1.waves.WaveCategory",[{no:0,name:"WAVE_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"WAVE_CATEGORY_WATCHING",localName:"WATCHING"},{no:2,name:"WAVE_CATEGORY_MESSAGING",localName:"MESSAGING"},{no:3,name:"WAVE_CATEGORY_VOICING",localName:"VOICING"}]),CS=k.makeMessageType("streamlayer.analytics.v2.streaming.SendResponse",()=>[{no:1,name:"result",kind:"enum",T:k.getEnumType(dP)}]),EZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendExtra",[]),vr=k.makeMessageType("streamlayer.analytics.v2.streaming.CommonData",()=>[{no:1,name:"event_id",kind:"scalar",T:4,opt:!0},{no:2,name:"category",kind:"enum",T:k.getEnumType(Fa),opt:!0},{no:3,name:"kind",kind:"enum",T:k.getEnumType(la),opt:!0},{no:4,name:"screen_orientation",kind:"enum",T:k.getEnumType(d9),opt:!0},{no:5,name:"session_id",kind:"scalar",T:9,opt:!0},{no:6,name:"overlay_session_id",kind:"scalar",T:9,opt:!0},{no:7,name:"topic_id",kind:"scalar",T:9,opt:!0},{no:8,name:"topic_type",kind:"enum",T:k.getEnumType(Wn),opt:!0},{no:9,name:"parent_topic_id",kind:"scalar",T:9,opt:!0},{no:10,name:"parent_topic_type",kind:"enum",T:k.getEnumType(Wn),opt:!0},{no:11,name:"participants_count",kind:"scalar",T:13,opt:!0},{no:12,name:"route_map",kind:"scalar",T:9,opt:!0},{no:13,name:"track_timestamp",kind:"scalar",T:4,opt:!0},{no:14,name:"topic_sub_type",kind:"enum",T:k.getEnumType(Qs),opt:!0},{no:15,name:"country",kind:"scalar",T:9,opt:!0}]),_Z=k.makeMessageType("streamlayer.analytics.v2.streaming.SendAuthenticationsMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),IZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendCallsMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),NZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendConversationsMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),RZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendInteractionsMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"action_type",kind:"enum",T:k.getEnumType(C9)}]),OZ=k.makeMessageType("streamlayer.analytics.v2.streaming.EventOpenedMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),LZ=k.makeMessageType("streamlayer.analytics.v2.streaming.SendInvitationsMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"category",kind:"enum",T:k.getEnumType(f9)},{no:3,name:"from",kind:"enum",T:k.getEnumType(c2)}]),AZ=k.makeMessageType("streamlayer.analytics.v2.streaming.LaunchButtonMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),xZ=k.makeMessageType("streamlayer.analytics.v2.streaming.NotificationMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"notification_kind",kind:"enum",T:k.getEnumType(Ys)},{no:3,name:"notification_type",kind:"enum",T:k.getEnumType(E9)}]),PZ=k.makeMessageType("streamlayer.analytics.v2.streaming.PermissionMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"permission",kind:"enum",T:k.getEnumType(wZ)}]),MZ=k.makeMessageType("streamlayer.analytics.v2.streaming.ButtonInitializedMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),DZ=k.makeMessageType("streamlayer.analytics.v2.streaming.WavesMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"category",kind:"enum",T:k.getEnumType(CZ)}]),UZ=k.makeMessageType("streamlayer.analytics.v2.streaming.HeartbeatMessage",()=>[{no:1,name:"common",kind:"message",T:vr}]),FZ=k.makeMessageType("streamlayer.analytics.v2.streaming.GamesMessage",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"poll_opened_from",kind:"enum",T:k.getEnumType(zr)}]),VZ=k.makeMessageType("streamlayer.analytics.v2.streaming.Login",()=>[{no:1,name:"common",kind:"message",T:vr},{no:2,name:"token",kind:"scalar",T:9}]),jZ=k.makeMessageType("streamlayer.analytics.v2.streaming.Logout",()=>[{no:1,name:"common",kind:"message",T:vr}]),ES=k.makeMessageType("streamlayer.analytics.v2.streaming.SendRequest",()=>[{no:1,name:"auth",kind:"message",T:_Z,oneof:"message"},{no:2,name:"call",kind:"message",T:IZ,oneof:"message"},{no:3,name:"conversations",kind:"message",T:NZ,oneof:"message"},{no:4,name:"interactions",kind:"message",T:RZ,oneof:"message"},{no:5,name:"event_opened",kind:"message",T:OZ,oneof:"message"},{no:6,name:"invitation",kind:"message",T:LZ,oneof:"message"},{no:7,name:"launch_button",kind:"message",T:AZ,oneof:"message"},{no:8,name:"notification",kind:"message",T:xZ,oneof:"message"},{no:9,name:"permission",kind:"message",T:PZ,oneof:"message"},{no:10,name:"button_init",kind:"message",T:MZ,oneof:"message"},{no:11,name:"waves",kind:"message",T:DZ,oneof:"message"},{no:12,name:"heartbeat",kind:"message",T:UZ,oneof:"message"},{no:13,name:"games",kind:"message",T:FZ,oneof:"message"},{no:14,name:"login",kind:"message",T:VZ,oneof:"message"},{no:15,name:"logout",kind:"message",T:jZ,oneof:"message"},{no:100,name:"extra",kind:"message",T:EZ}]),iE={typeName:"streamlayer.analytics.v2.streaming.AnalyticsService",methods:{send:{name:"Send",I:ES,O:CS,kind:je.ClientStreaming},unary:{name:"Unary",I:ES,O:CS,kind:je.Unary}}};function BZ(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lE={exports:{}},Vn=lE.exports={},Ks,Zs;function _9(){throw new Error("setTimeout has not been defined")}function I9(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ks=setTimeout:Ks=_9}catch{Ks=_9}try{typeof clearTimeout=="function"?Zs=clearTimeout:Zs=I9}catch{Zs=I9}})();function uE(n){if(Ks===setTimeout)return setTimeout(n,0);if((Ks===_9||!Ks)&&setTimeout)return Ks=setTimeout,setTimeout(n,0);try{return Ks(n,0)}catch{try{return Ks.call(null,n,0)}catch{return Ks.call(this,n,0)}}}function $Z(n){if(Zs===clearTimeout)return clearTimeout(n);if((Zs===I9||!Zs)&&clearTimeout)return Zs=clearTimeout,clearTimeout(n);try{return Zs(n)}catch{try{return Zs.call(null,n)}catch{return Zs.call(this,n)}}}var al=[],hm=!1,Yc,Qh=-1;function zZ(){!hm||!Yc||(hm=!1,Yc.length?al=Yc.concat(al):Qh=-1,al.length&&cE())}function cE(){if(!hm){var n=uE(zZ);hm=!0;for(var a=al.length;a;){for(Yc=al,al=[];++Qh<a;)Yc&&Yc[Qh].run();Qh=-1,a=al.length}Yc=null,hm=!1,$Z(n)}}Vn.nextTick=function(n){var a=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)a[o-1]=arguments[o];al.push(new dE(n,a)),al.length===1&&!hm&&uE(cE)};function dE(n,a){this.fun=n,this.array=a}dE.prototype.run=function(){this.fun.apply(null,this.array)};Vn.title="browser";Vn.browser=!0;Vn.env={};Vn.argv=[];Vn.version="";Vn.versions={};function il(){}Vn.on=il;Vn.addListener=il;Vn.once=il;Vn.off=il;Vn.removeListener=il;Vn.removeAllListeners=il;Vn.emit=il;Vn.prependListener=il;Vn.prependOnceListener=il;Vn.listeners=function(n){return[]};Vn.binding=function(n){throw new Error("process.binding is not supported")};Vn.cwd=function(){return"/"};Vn.chdir=function(n){throw new Error("process.chdir is not supported")};Vn.umask=function(){return 0};var HZ=lE.exports;const St=BZ(HZ),qZ=hw({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:n=>{console.log(n)}}}),ti=(n,a)=>qZ.child({name:n},a);class GZ extends Event{constructor(o,l){super(o);U(this,"slEventBus");this.slEventBus=l}}const WZ=ti("event-bus");class QZ{constructor(a="sl-event-bus"){U(this,"name");U(this,"listeners");U(this,"emit",(a,o)=>{const l=new GZ(this.name,{...o,type:a});WZ.debug(l,"Emitting event"),window.dispatchEvent(l)});U(this,"destroy",()=>{this.listeners.forEach(a=>{window.removeEventListener(this.name,a),this.listeners.delete(a)}),this.listeners.clear()});this.name=a,this.listeners=new Set}listen(a){return window.addEventListener(this.name,a),this.listeners.add(a),()=>{this.off(a)}}off(a){window.removeEventListener(this.name,a),this.listeners.delete(a)}}class YZ{}window.slStore=Object.create(null);class L6{constructor(a,o){U(this,"store");U(this,"name");this.store=a,this.name=o}getStore(){return this.store}}const KZ=n=>{const a=Object.keys(n);return YL(a.map(o=>n[o].getStore()),(...o)=>Object.fromEntries(a.map((l,c)=>[l,o[c]])))};class Xc extends L6{constructor(){super(...arguments);U(this,"getValues",()=>this.getStore().get());U(this,"getValue",o=>this.getStore().get()[o]);U(this,"setValue",(o,l)=>this.getStore().setKey(o,l));U(this,"subscribe",(...o)=>this.getStore().subscribe(...o));U(this,"unsubscribe",()=>this.getStore().off())}}const co=n=>a9(n);var Ki;(function(n){n.ORGANIZATION="ORGANIZATION",n.STREAM="STREAM"})(Ki||(Ki={}));const ZZ={[yt.BETTING]:"betting",[yt.GAMES]:"games",[yt.PUBLIC_CHAT]:"publicChat",[yt.TWITTER]:"twitter"};var o2;(function(n){n.Ready="ready",n.Suspended="suspended"})(o2||(o2={}));class mE{constructor({settings:a,...o},l){U(this,"status");U(this,"source");U(this,"config");U(this,"settings");U(this,"listeners",new Set);U(this,"settingsKey");U(this,"enable",()=>{this.status.set(o2.Ready)});U(this,"disable",()=>{this.status.set(o2.Suspended)});U(this,"setFeatureConfig",({settings:a,...o})=>{var c;let l;for(l in o)this.config.setValue(l,o[l]);if(((c=a==null?void 0:a.overlaySettings)==null?void 0:c.case)!==void 0&&(a==null?void 0:a.overlaySettings.case)===this.settingsKey){const p=a.overlaySettings.value;if(p!==void 0){let f;for(f in p)p[f]!==0&&p[f]!==""&&this.settings.setValue(f,p[f])}}});U(this,"update",(a,o)=>{this.source===Ki.STREAM&&o===Ki.ORGANIZATION||(this.setFeatureConfig(a),this.source=o)});this.settingsKey=ZZ[o.type],this.status=ku(o2.Suspended),this.config=new Xc(co(o),`feature:config:${this.settingsKey}`),this.settingsKey!==void 0&&(a==null?void 0:a.overlaySettings.case)===this.settingsKey?this.settings=new Xc(co(a.overlaySettings.value),`feature:settings:${this.settingsKey}`):this.settings=new Xc(co({}),`feature:settings:${this.settingsKey}`),this.source=l}get featureConfig(){return this.config.getStore()}get featureSettings(){return this.settings.getStore()}registerEventListener(a){this.listeners.add(a)}fireEvent(a){for(const o of this.listeners.values())try{o.onEvent(a)}catch(l){console.error(l)}}}class Oo extends L6{constructor(){super(...arguments);U(this,"getValue",()=>this.getStore().get());U(this,"setValue",o=>this.getStore().set(o));U(this,"subscribe",o=>this.getStore().subscribe(o));U(this,"unsubscribe",()=>this.getStore().off())}getValues(){throw new Error("not implemented")}listen(o){return this.getStore().listen(o)}get(){return this.getStore().get()}}const da=n=>ku(n);class ei extends L6{constructor(o,l,c){super(o,`api:${l}`);U(this,"atomStore");U(this,"getAtomStore",()=>this.atomStore);U(this,"getValue",async()=>{const o=this.getStore();if(o.value===void 0)throw new Error("no store");return await o.value.promise,o.get().data});U(this,"getValues",()=>this.getStore().get());U(this,"setValue",o=>this.getStore().set({loading:!1,data:o==null?void 0:o.data}));U(this,"subscribe",o=>this.getStore().subscribe(o));U(this,"unsubscribe",()=>{throw new Error("not implemented")});U(this,"invalidate",()=>{this.store.invalidate()});U(this,"listen",o=>this.getStore().listen(o));U(this,"key",()=>this.getStore().key);U(this,"off",()=>this.getStore().off());this.atomStore=ku(),c&&o.subscribe(p=>{const f=this.atomStore.get(),y=c(p,f);f!==y&&this.atomStore.set(y)})}get(){throw new Error("not implemented")}}const ua=new QZ;async function*XZ(n,a){for await(const o of a){n.response.message=o,n.received_at=Date.now(),n.id=fE++;const l={type:"__GRPC_DEVTOOLS_EXTENSION__",data:n};window.postMessage(l),yield o}}let fE=0;const JZ=()=>n=>async a=>{const o={id:fE++,name:a.url,stream:a.stream,sent_at:Date.now(),request:{header:Object.fromEntries(a.header.entries()),message:a.message},response:{}};window.postMessage({type:"__GRPC_DEVTOOLS_EXTENSION__",data:o});try{const l=await n(a);if(o.received_at=Date.now(),o.response.header=Object.fromEntries(l.header.entries()),o.response.trailer=Object.fromEntries(l.trailer.entries()),a.stream){const c={type:"__GRPC_DEVTOOLS_EXTENSION__",data:{...o,stream:!1}};return window.postMessage(c),{...l,message:XZ(o,l.message)}}else{o.response.message=l.message,o.latency=o.received_at-o.sent_at;const c={type:"__GRPC_DEVTOOLS_EXTENSION__",data:o};window.postMessage(c)}return l}catch(l){o.received_at=Date.now(),o.response.trailer={"grpc-status":l.code,"grpc-message":l.rawMessage},o.response.message=l.rawMessage,o.latency=o.received_at-o.sent_at;const c={type:"__GRPC_DEVTOOLS_EXTENSION__",data:o};throw window.postMessage(c),l}};window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));function pE(n){return n instanceof DOMException&&(n.code===22||n.code===1014||n.name==="QuotaExceededError"||n.name==="NS_ERROR_DOM_QUOTA_REACHED")}class Nm{constructor(a="main",o=window.localStorage){U(this,"delimiter",":");U(this,"prefix");U(this,"storage");U(this,"clear",()=>{for(const a in window.localStorage)a.startsWith(this.prefix)&&this.storage.removeItem(a)});U(this,"generateKey",a=>`${this.prefix}${this.delimiter}${a.join(this.delimiter)}`);U(this,"write",(...a)=>{const o=a.pop()||"",l=this.generateKey(a);try{this.storage.setItem(l,o)}catch(c){pE(c)&&this.storage===window.sessionStorage&&(window.sessionStorage.removeItem("slstreamlogs"),this.storage.setItem(l,o))}});U(this,"read",(...a)=>{const o=this.storage.getItem(this.generateKey(a));return o===null?void 0:o});U(this,"remove",(...a)=>{this.storage.removeItem(this.generateKey(a))});this.prefix=`sl-sdk${this.delimiter}${a}`,this.storage=o}}var us;(function(n){n.Init="init",n.Ready="ready",n.Connecting="connecting",n.Connected="connected",n.Disconnected="disconnected",n.Failed="failed",n.Reconnect="reconnect",n.Reconnecting="reconnecting"})(us||(us={}));const _S=ti("grpc:stream");class eX{constructor(a,o,l,c){U(this,"params");U(this,"streamCancel");U(this,"method");U(this,"options");U(this,"headers");U(this,"listeners");U(this,"state");U(this,"store");U(this,"paramsListener");U(this,"reconnectTimeout");U(this,"attempt",0);U(this,"updateState",a=>{this.state.setValue("status",a),this.state.setValue("ts",new Date),this.addStateLog(`status => ${a}`)});U(this,"addStateLog",a=>{const o=this.state.getStore().get().log,l=`${this.options.name} ${new Date().toISOString()}: ${a}`;if(o.push(l),this.state.setValue("log",o),localStorage.getItem("SL_DEBUG")){a.startsWith("received data")?_S.trace({name:this.options.name,attempt:this.attempt},"received data"):_S.trace({name:this.options.name,attempt:this.attempt},a);try{window.sessionStorage.setItem("slstreamlogs",window.sessionStorage.getItem("slstreamlogs")+`
198
+ `+l)}catch(c){pE(c)&&window.sessionStorage.removeItem("slstreamlogs"),window.sessionStorage.setItem("slstreamlogs",l)}}});U(this,"addListener",(a,o)=>this.listeners.has(a)?(this.addStateLog(`listener '${a}' not added, already exists`),()=>{}):(this.listeners.set(a,o),this.addStateLog(`listener '${a}' added`),()=>this.removeListener(a)));U(this,"removeListener",a=>{this.listeners.delete(a),this.addStateLog(`listener '${a}' removed`)});U(this,"connect",()=>{this.updateState(us.Connecting),this.streamCancel&&(this.addStateLog("disconnect prev connection"),this.streamCancel.abort(),this.streamCancel=void 0);const a="get"in this.params&&typeof this.params.get=="function"?this.params.get():this.params;(async()=>{this.streamCancel=new AbortController;try{const o={headers:this.headers.getValues(),signal:this.streamCancel.signal},l=this.method(a,o);for await(const c of l)this.attempt=0,this.onData(c)}catch(o){o instanceof zt&&o.code!=at.Canceled&&this.onStreamError(o)}})(),this.updateState(us.Connected)});U(this,"disconnect",()=>{var a;this.streamCancel&&this.streamCancel.abort(),this.listeners.clear(),(a=this.paramsListener)==null||a.call(this),clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.updateState(us.Disconnected)});U(this,"reconnect",()=>{if(this.reconnectTimeout)this.addStateLog("already reconnecting");else if(this.attempt<this.options.reconnectMaxAttempts){this.updateState(us.Reconnect);const a=Math.min(this.options.reconnectMaxDelay,Math.pow(2,this.attempt)*this.options.reconnectDelay),o=Math.round(a*(1+Math.random())/2);this.reconnectTimeout=setTimeout(()=>{this.attempt++,this.updateState(us.Reconnecting),this.addStateLog(`reconnect attempt ${this.attempt} after ${o}ms`),this.connect(),this.reconnectTimeout=void 0},o)}else this.addStateLog("max reconnect attempts reached"),this.disconnect()});U(this,"getStore",()=>{var a;return(a=this.store)==null?void 0:a.getStore()});U(this,"onData",a=>{try{this.addStateLog(`received data => ${JSON.stringify(a)}`),this.store&&this.store.setValue(a);for(const[,o]of this.listeners)o(a);this.addStateLog(`data routed to ${this.listeners.size} listeners`)}catch(o){this.addStateLog(`error process data => ${o}`)}});U(this,"onStreamError",a=>{if(this.addStateLog(`error => ${a?JSON.stringify(a):"undefined"}}`),a!==void 0){if(a instanceof zt&&a.code!==at.Canceled){this.updateState(us.Failed),this.state.setValue("error",a),a.code===at.Unknown&&a.cause==="missing trailer"&&(this.attempt=0),this.reconnect();return}this.disconnect()}});const p={status:us.Init,ts:new Date,log:[]};this.state=new Xc(co(p),`subscription:${c.name}:state`),this.options={...c,reconnectDelay:c.reconnectDelay??1e3,reconnectMaxDelay:c.reconnectMaxDelay??3e4,reconnectMaxAttempts:c.reconnectMaxAttempts??10,withStore:c.withStore??!1},this.headers=a,this.listeners=new Map,this.params=l,this.method=o,c.withStore&&(this.store=new Oo(da(null),`subscription:${c.name}:store`)),"subscribe"in l&&typeof l.subscribe=="function"&&(this.paramsListener=l.subscribe(f=>{this.state.getValue("status")===us.Connected&&(this.addStateLog(`params updated, reconnect => ${JSON.stringify(f)}`),this.reconnect())})),this.updateState(us.Ready)}}const tX=new Set([at.Unknown,at.Internal,at.DeadlineExceeded,at.ResourceExhausted,at.FailedPrecondition,at.Unavailable,at.DataLoss]),IS=ti("grpc:retry"),nX=n=>async a=>{const o=a.contextValues.get(N9.retryAttempts),l=300,c=a.contextValues.get(N9.retryDelay);if(a.stream||o===0)return n(a);IS.trace({url:a.url,attempts:o,maxDelay:c},"retry options");for(let p=0;;p++)try{return await n(a)}catch(f){IS.trace({attempt:p,error:f},"retry attempt");const y=zt.from(f);if(p>=o||!(y instanceof zt)||!tX.has(y.code))throw f;const b=Math.min(c,Math.pow(2,p)*l),C=Math.round(b*(1+Math.random())/2);await new Promise(_=>setTimeout(_,C))}},N9={retryAttempts:c6(10,{description:"Number of attempts to retry"}),retryDelay:c6(3e4,{description:"Max delay between retries in milliseconds"})},aX=()=>{const n=localStorage.getItem("sl-device-id");if(n)return n;const a=S9();return localStorage.setItem("sl-device-id",a),a},rX=()=>{var n;return((n=navigator.userAgentData)==null?void 0:n.platform)||navigator.platform};class NS{constructor(a,o){U(this,"toJsonOptions",{emitDefaultValues:!1,enumAsInteger:!0,useProtoFieldName:!1});U(this,"transport");U(this,"streamTransport");U(this,"nanoquery");U(this,"host");U(this,"$headers");U(this,"interceptors",[]);U(this,"clients");U(this,"streamClients");U(this,"subscriptions");U(this,"opts");U(this,"addSubscription",(a,o,l)=>{const c=this.subscriptions.get(o);if(c)return c;const p=new eX(this.$headers,a,o,l);return this.subscriptions.set(o,p),p});U(this,"removeSubscription",a=>{a.disconnect(),this.subscriptions.delete(a.params)});U(this,"disconnect",()=>{var c,p;for(const[f,y]of this.subscriptions)y.disconnect(),this.subscriptions.delete(f);this.clients.clear(),this.streamClients.clear(),this.subscriptions.clear();const[a,o,l]=Gk({dedupeTime:(c=this.opts)==null?void 0:c.dedupeTime,refetchInterval:(p=this.opts)==null?void 0:p.refetchInterval});this.nanoquery={createFetcherStore:a,createMutatorStore:o,utils:l}});U(this,"registerInterceptor",a=>{this.interceptors.push(a)});U(this,"removeInterceptor",a=>{this.interceptors=this.interceptors.filter(o=>o!==a)});U(this,"getClient",a=>{const o=a.typeName;if(this.clients.has(o))return this.clients.get(o);const l=Dk(a,this.transport);return this.clients.set(o,l),l});U(this,"getStreamClient",a=>{const o=`stream-${a.typeName}`;if(this.clients.has(o))return this.clients.get(o);const l=Dk(a,this.streamTransport);return this.clients.set(o,l),l});U(this,"createPromiseClient",(a,{params:o=[],method:l})=>{const c=this.getClient(a),p=a.methods[l].name,f=[a.typeName,p.charAt(0).toLowerCase()+p.slice(1),...Array.isArray(o)?o:[o]],y=[a.typeName,p.charAt(0).toLowerCase()+p.slice(1)];return{client:c,createRequestOptions:b=>{const C=w9();for(const _ in b){const N=N9[_];C.set(N,b[_])}return C},queryKey:f,queryKeyStr:y.join("")}});U(this,"createStreamClient",a=>({client:this.getStreamClient(a)}));U(this,"setSdkKey",a=>{this.$headers.setValue("sdk",a)});U(this,"setAuth",(a,o)=>{this.$headers.setValue("authorization",a),this.$headers.setValue("sl-user-id",o)});U(this,"setHeader",(a,o)=>this.$headers.setValue(a,o));U(this,"getHeader",a=>this.$headers.getValue(a));U(this,"getHeaders",()=>this.$headers.getValues());U(this,"initInterceptors",()=>{var o;if(this.interceptors.length!==0)return;const a=l=>c=>{const p=this.$headers.getValues();for(const f in p)c.header.set(f,p[f]);return l(c)};this.interceptors.push(a),this.interceptors.push(JZ()),(o=this.opts)!=null&&o.retryable&&this.interceptors.push(nX)});this.host=a,this.opts=o,this.$headers=new Xc(co({"sl-device-id":aX(),"sl-device-os":rX()}),"transport:headers"),this.initInterceptors(),this.clients=new Map,this.streamClients=new Map,this.subscriptions=new Map;const[l,c,p]=Gk({dedupeTime:o==null?void 0:o.dedupeTime,refetchInterval:o==null?void 0:o.refetchInterval});this.nanoquery={createFetcherStore:l,createMutatorStore:c,utils:p},this.transport=qk({baseUrl:a,defaultTimeoutMs:1e4,interceptors:this.interceptors}),this.streamTransport=qk({baseUrl:a,interceptors:this.interceptors})}}const oX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(nE,{method:"retrieveEventId",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y;if(!f||typeof f!="string")return"";try{return((y=(await o.retrieveEventId({id:f})).data)==null?void 0:y.id)||""}catch{return""}}})},sX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(p2,{method:"getStream",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y;return f?(y=(await o.getStream({id:f})).data)==null?void 0:y.attributes:void 0}})},iX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(nE,{method:"summary",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y;return f?(y=(await o.summary({id:f})).data)==null?void 0:y.attributes:void 0}})},lX=(n,a)=>{const{queryKey:o,client:l}=a.createPromiseClient(vy,{method:"me",params:[n]});return a.nanoquery.createFetcherStore(o,{fetcher:async()=>{const{data:c}=await l.me({});return{data:c}}})},uX=n=>{const{client:a,createRequestOptions:o}=n.createPromiseClient(vy,{method:"bypassAuth"}),l=o({retryAttempts:0});return({userKey:c,schema:p,init:f,inviterKey:y})=>a.bypassAuth({userKey:c,schema:p,init:f,inviterKey:y},{contextValues:l})},cX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(p2,{method:"get",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async()=>{var c;return(c=(await o.get({})).data)==null?void 0:c.attributes}})},dX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(p2,{method:"getOrganization",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async()=>{const c=await o.getOrganization({});return c.data?{...c.data.attributes,id:c.data.id}:void 0}})},mX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(p2,{method:"getOrganizationAdvertising",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async()=>{var c;return(c=(await o.getOrganizationAdvertising({})).data)==null?void 0:c.attributes}})},fX=(n,a,o)=>{n.transport=new NS(a.host,{dedupeTime:1e3*60*5,refetchInterval:1e3*60*5,retryable:!0}),n.analyticsTransport=new NS(a.analyticsHost),n.sdk.host=n.transport.host,n.transport.setSdkKey(a.sdkKey),n.transport.setHeader("sl-sdk-version",a.version||"-"),n.transport.$headers.subscribe(l=>{n.analyticsTransport.$headers.getStore().set(l)}),n.sdk.onMount({name:"transport"},()=>()=>{n.transport.disconnect(),n.analyticsTransport.disconnect()}),o()};var Wi;(function(n){n.SCHEMA="schema",n.EXTERNAL_TOKEN="eToken",n.TOKEN="token"})(Wi||(Wi={}));class lm extends Nm{constructor(){super("user");U(this,"setSchema",o=>{this.write(Wi.SCHEMA,o)});U(this,"getSchema",()=>this.read(Wi.SCHEMA));U(this,"setToken",o=>{this.write(Wi.TOKEN,o)});U(this,"getToken",()=>this.read(Wi.TOKEN));U(this,"setExternalToken",o=>{this.write(Wi.EXTERNAL_TOKEN,o)});U(this,"getExternalToken",()=>this.read(Wi.EXTERNAL_TOKEN));U(this,"removeToken",()=>{this.remove(Wi.TOKEN)})}}var Zi;(function(n){n.DISABLED="disabled",n.INITIALIZATION="initialization",n.READY="ready",n.FAILED="failed",n.SUSPENDED="suspended"})(Zi||(Zi={}));const pX=n=>{const a=new lm,o=new Oo(da(a.getExternalToken()),"userKey"),l=new Oo(da(a.getToken()),"userToken"),c=new ei(lX(l.getStore(),n),"user",({data:f,error:y,loading:b},C)=>{var _;if(!y)return(_=f==null?void 0:f.data)!=null&&_.id?f.data.id:b===!1?void 0:C}),p=new ei(cX(l.getStore(),n),"userSettings");return{userKey:o,userToken:l,user:c,userSettings:p}},hX=n=>{const a=new Oo(da(void 0),"providerStreamId"),o=new ei(oX(a.getStore(),n),"slStreamId",p=>p==null?void 0:p.data),l=new ei(sX(o.getAtomStore(),n),"streamSettings"),c=new ei(iX(o.getAtomStore(),n),"streamSettings");return o.getAtomStore().listen(p=>{(p===""||p===void 0)&&(l.getStore().mutate(void 0),c.getStore().mutate(void 0))}),{providerStreamId:a,slStreamId:o,streamSettings:l,streamSummary:c}},gX=n=>{const a=new Oo(da(void 0),"enabled"),o=new Oo(da(Zi.DISABLED),"status"),l=new ei(dX(a.getStore(),n),"organizationSettings",y=>{var b;return(b=y==null?void 0:y.data)==null?void 0:b.id}),c=new ei(mX(l.getAtomStore(),n),"organizationAdvertising"),p=pX(n),f=hX(n);return{enabled:a,status:o,providerStreamId:f.providerStreamId,slStreamId:f.slStreamId,streamSettings:f.streamSettings,streamSummary:f.streamSummary,user:p.user,userKey:p.userKey,userToken:p.userToken,userSettings:p.userSettings,organizationSettings:l,organizationAdvertising:c}};class yX extends L6{constructor(o){const l=gX(o),c=KZ(l);super(c,"core");U(this,"stores");U(this,"subscribe",o=>{let l;for(l in this.stores){const c=o[l];l in o&&c!==void 0&&this.stores[l].subscribe(o[l])}});U(this,"unsubscribe",()=>this.getStore().off());this.stores=l}getValue(){throw new Error("Not implemented")}getValues(){return this.stores}setValue(){throw new Error("Not implemented")}}const vX=(n,a,o)=>{n.store=new yX(n.transport),n.stores=n.store.getValues(),n.sdk.enabled=n.stores.enabled.getStore(),n.sdk.status=n.stores.status.getStore(),n.sdk.sdkStore=Object.fromEntries(Object.entries(n.stores).map(([l,c])=>[l,c.getStore()])),n.sdk.organizationStore=()=>n.stores.organizationSettings.getStore(),n.sdk.streamStore=()=>n.stores.streamSettings.getStore(),n.sdk.streamSummary=()=>n.stores.streamSummary.getStore(),n.storeUnsubscribe=()=>{n.store.unsubscribe()},o()},TX=n=>{const{client:a}=n.createPromiseClient(oE,{method:"list"});return o=>a.list(o)},hE=n=>{const{client:a}=n.createPromiseClient(oE,{method:"summary"});return o=>a.summary(o)},bX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(vy,{method:"getFriends",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{if(!f)return[];try{return(await o.getFriends({})).data}catch{return[]}}})},kX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(Lo,{method:"get",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y;return(y=(await o.get({eventId:f})).data)==null?void 0:y.attributes},refetchInterval:0,dedupeTime:1e3*60*60})},SX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(Lo,{method:"syncQuestion",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var b,C,_,N;if(!f)return;const y=await o.syncQuestion({filter:{eventId:f}});if(((_=(C=(b=y.data)==null?void 0:b.attributes)==null?void 0:C.question)==null?void 0:_.type)!==ye.PROMOTION)return(N=y.data)==null?void 0:N.attributes},dedupeTime:1e3*60*10,refetchInterval:0})},wX=async(n,a)=>{const{client:o}=a.createPromiseClient(Lo,{method:"item",params:[n]});return(await o.item({id:n})).data},CX=(n,a)=>{const{client:o}=a.createStreamClient(Lo),l=ku({eventId:n.get()||"",feedId:""});return n.subscribe((c="")=>{l.set({eventId:c,feedId:""})}),a.addSubscription(o.subscription,l,{name:"feedSubscription"})},EX=(n,a)=>{const{client:o}=a.createStreamClient(Lo);return a.addSubscription(o.questionSubscription,{questionId:n},{name:"questionSubscription"})},_X=async(n,a)=>{var l,c;const{client:o}=a.createPromiseClient(Lo,{method:"questionByUser",params:[n]});return(c=(l=(await o.questionByUser({questionId:n})).data)==null?void 0:l.attributes)==null?void 0:c.question},R9=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(Lo,{method:"questionByUser",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var y,b;return(b=(y=(await o.questionByUser({questionId:f})).data)==null?void 0:y.attributes)==null?void 0:b.question},dedupeTime:1e3*60*5})},gE=async(n,a)=>{var b;if(!n)return;const{client:o}=a.createPromiseClient(Lo,{method:"getQuestion",params:[n]}),l=await o.getQuestion({id:n});if(!((b=l.data)!=null&&b.attributes))return;const{options:c,notification:p,...f}=l.data.attributes,y=(c==null?void 0:c.options.case)==="promotion"?c==null?void 0:c.options.value:void 0;return{id:f.id,question:f,promotion:y,notification:p}},IX=(n,a,o)=>{const{client:l,queryKey:c}=o.createPromiseClient(Lo,{method:"list",params:[n,a]});return o.nanoquery.createFetcherStore(c,{fetcher:async(p,f,y,b)=>y?(await l.list({eventId:y,filter:{types:b===Jc.ALLOWED?[]:[ye.FACTOID,ye.PROMOTION,ye.TWEET],statuses:[yn.ACTIVE,yn.RESOLVED]}})).data:[],dedupeTime:0,refetchInterval:0})},NX=(n,a)=>{const{client:o,queryKey:l}=a.createPromiseClient(Lo,{method:"list",params:[n]});return a.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f)=>{var b;if(!f)return;const y=(b=(await o.list({eventId:f,filter:{types:[ye.PROMOTION],statuses:[yn.ACTIVE]},pagination:{page:0,pageSize:1}})).data)==null?void 0:b[0];if(y.type==="promotion")return gE(y.id,a)},dedupeTime:0,refetchInterval:0})},RX=(n,a,o)=>{const l=gb([a,o],()=>{var C,_;const f=a.get();if(!f)return;const y=(C=o.get().data)==null?void 0:C.find(N=>N.id===(f==null?void 0:f.questionId)),b=(_=f==null?void 0:f.question)==null?void 0:_.openedFrom;return y?(y.openedFrom=b,y):f.question}),c=gb(l,f=>f&&f.type==="question"?f.id:void 0),p=R9(c,n);return{$store:l,$extendedStore:p,updateExtendedQuestion:f=>{const y=p.get().data,b=(C,_)=>{if(!C||!_)return C||_||[];const N=[];for(let O=0;O<C.length;O++)N.push({...C[O],..._[O],correct:C[O].correct,youVoted:C[O].youVoted,pointsEarned:C[O].pointsEarned});return N};p.mutate({...f,options:y==null?void 0:y.options,subject:y==null?void 0:y.subject,appearance:y==null?void 0:y.appearance,answers:b(y==null?void 0:y.answers,f==null?void 0:f.answers)})}}};var d6;(function(n){n.SHOWED="showed"})(d6||(d6={}));class OX extends Nm{constructor(){super("advertisement");U(this,"setShowed",o=>{this.write(d6.SHOWED,o,"true")});U(this,"isViewed",o=>this.read(d6.SHOWED,o))}}const LX=n=>{var f,y,b,C,_;const a=(y=(f=n.data)==null?void 0:f.attributes)==null?void 0:y.question;if((((_=(C=(b=n.data)==null?void 0:b.attributes)==null?void 0:C.feedItem)==null?void 0:_.type)==="promotion"?n.data.attributes.feedItem:void 0)===void 0||!a)return;const{options:o,notification:l,...c}=a,p=(o==null?void 0:o.options.case)==="promotion"?o.options.value:void 0;return{id:c.id,question:c,notification:l,promotion:p}},Dh=n=>n.startsWith("http://")||n.startsWith("https://")?new URL(n).toString():n,AX=({gamOptions:n,gamBaseUrl:a})=>{const o=`${a}?`,l=[];for(const c in n){const p=c.replace(/([a-zA-Z])(?=[A-Z])/g,"$1_").toLowerCase(),f=n[c];if(f)if(typeof f=="string")l.push(`${p}=${Dh(f)}`);else if(Array.isArray(f))l.push(`${p}=${f.map(Dh).join(",")}`);else{const y=Object.entries(f).map(([b,C])=>Array.isArray(C)?`${b}=${C.map(Dh).join(",")}`:typeof C=="string"?`${b}=${Dh(C)}`:`${b}=${C}`).join("&").replaceAll("=","%3D").replaceAll("&","%26").replaceAll(",","%2C");l.push(`${p}=${y}`)}}return o+l.join("&")},am=n=>{var a,o,l;return(((a=n==null?void 0:n.promotion)==null?void 0:a.type)===Hr.INGAME_IAB11_LBAR||((o=n==null?void 0:n.promotion)==null?void 0:o.type)===Hr.INGAME_IAB21_LBAR)&&!!((l=n.promotion.additionalBanner)!=null&&l.imageUrl)},xX=(n,a,o)=>{let l=!1;const c=o.transport,p=ti("advertisement"),f=new OX,y=co({}),b=NX(n,c),C=x=>{var D,j,V;if(x!=null&&x.fromNotification){y.setKey("hasNotification",!1);const Y=y.get(),Z=(D=Y.data)==null?void 0:D.question.id,Q=(V=(j=Y.data)==null?void 0:j.promotion)==null?void 0:V.type;Z&&(ua.emit("advertisement",{action:"opened",payload:{id:Z,type:Q,hasBanner:am(Y.data),openedFrom:"notification"}}),ua.emit("advertisement",{action:"notification-opened",payload:{id:Z,type:Q,hasBanner:am(Y.data)}}))}},_=()=>{var Y,Z,Q,te;const x=y.get(),D=(Y=x.data)==null?void 0:Y.question.id,j=(Q=(Z=x.data)==null?void 0:Z.promotion)==null?void 0:Q.type,V=(te=y.get())==null?void 0:te.isOpened;D&&!V&&(p.debug({id:D},"markAsViewed: %o"),f.setShowed(D),y.setKey("isOpened",!0),ua.emit("advertisement",{action:"viewed",payload:{id:D,type:j,hasBanner:am(x.data)}}))},N=(x,D)=>{var j;D?y.set({loading:!1,error:void 0,data:D,hasNotification:((j=D==null?void 0:D.notification)==null?void 0:j.enabled)===m9.NOTIFICATION_ENABLED,close:()=>O(D.question.id),togglePause:V=>L(D.question.id,V),isViewed:!!f.isViewed(D.question.id)}):(y.setKey("loading",!0),gE(x,c).then(V=>{var Y;return y.set({loading:!1,error:void 0,data:V,hasNotification:((Y=V==null?void 0:V.notification)==null?void 0:Y.enabled)===m9.NOTIFICATION_ENABLED,close:()=>O(V==null?void 0:V.question.id),togglePause:Z=>L(V==null?void 0:V.question.id,Z),isViewed:V&&!!f.isViewed(V.question.id)})}).catch(V=>y.set({loading:!1,error:V,data:void 0})))};y.subscribe((x,D)=>{var j,V,Y,Z,Q,te,ie,ae,Ce,Se;if(!(((j=x.data)==null?void 0:j.id)===((V=D==null?void 0:D.data)==null?void 0:V.id)&&x.isPaused!==(D==null?void 0:D.isPaused))){if(((Z=(Y=x.data)==null?void 0:Y.promotion)==null?void 0:Z.type)===Hr.EXTERNAL_AD&&!(x!=null&&x.externalAd)&&((Q=x.data.promotion.adCampaigns)!=null&&Q.gamOptions)&&((te=x.data.promotion.adCampaigns)!=null&&te.gamBaseUrl)){const Ye=AX(x.data.promotion.adCampaigns);y.setKey("externalAd",{type:"gam",url:Ye})}(ie=x.data)!=null&&ie.promotion&&!x.isOpened&&(ua.emit("advertisement",{action:"received",payload:{id:x.data.question.id,type:x.data.promotion.type,hasNotification:!!x.hasNotification,hasBanner:am(x.data),isViewed:!!f.isViewed(x.data.question.id)},skipAnalytics:x.data.question.id===((ae=D==null?void 0:D.data)==null?void 0:ae.question.id)}),x.data.question.id!==((Ce=D==null?void 0:D.data)==null?void 0:Ce.question.id)&&!f.isViewed(x.data.question.id)&&ua.emit("advertisement",{action:"notification-received",payload:{id:x.data.question.id,type:x.data.promotion.type,hasNotification:!0,hasBanner:am(x.data),isViewed:!1}})),!(x!=null&&x.data)&&(D!=null&&D.data)&&ua.emit("advertisement",{action:"closed",payload:{id:D.data.question.id,type:(Se=D.data.promotion)==null?void 0:Se.type,hasNotification:!!D.hasNotification,hasBanner:am(D.data),isViewed:!!f.isViewed(D.data.question.id)}})}});const O=x=>{var D,j;(!x||((j=(D=y.get())==null?void 0:D.data)==null?void 0:j.question.id)===x)&&y.set({})},L=(x,D)=>{var j,V;((V=(j=y.get())==null?void 0:j.data)==null?void 0:V.question.id)===x&&y.setKey("isPaused",D)};return{connect:()=>{l||(l=!0,b.subscribe((x,D)=>{x.data&&(!(D!=null&&D.data)||x.data.id!==D.data.id)&&N(x.data.question.id,x.data)}),a.addListener("promotion",x=>{const D=LX(x);if(D){if(D.question.status===yn.RESOLVED){O(D.question.id),p.debug({promotion:D},"resolved: %o");return}if(D.question.status===yn.ACTIVE){p.debug({promotion:D},"active: %o"),N(D.question.id,D);return}p.debug({promotion:D},"skip: %o")}}))},hide:O,show:N,open:C,markAsViewed:_,$store:y}};var Jc;(function(n){n.ALLOWED="allowed",n.DISALLOWED="disallowed"})(Jc||(Jc={}));class PX{constructor(a){U(this,"slStreamId");U(this,"organizationId");U(this,"userId");U(this,"interactiveAllowed");U(this,"openedQuestionId");U(this,"openedQuestion");U(this,"activeQuestionId");U(this,"feedList");U(this,"moderationId");U(this,"moderation");U(this,"feedSubscription");U(this,"questionSubscription");U(this,"advertisement");U(this,"notifications");U(this,"log");U(this,"transport");U(this,"cancels",new Set);U(this,"getCurrentSessionId",a=>{const o=a.eventId||this.slStreamId.get()||"",l=a.userId||this.userId.get()||"",c=a.organizationId||this.organizationId.get()||"",p=a.entity||"",f=a.prefix||"";return[c,o,l,f,p].join(":")});U(this,"disconnect",()=>{var a;(a=this.feedSubscription)==null||a.disconnect(),this.questionSubscription!==void 0&&(this.transport.removeSubscription(this.questionSubscription),this.questionSubscription=void 0)});U(this,"openQuestion",(a,o)=>{this.openedQuestionId.set({questionId:a,question:o}),this.notifications.markAsViewed(this.getCurrentSessionId({prefix:"notification",entity:a}))});U(this,"closeQuestion",a=>{this.openedQuestionId.set(void 0),a&&this.notifications.markAsViewed(this.getCurrentSessionId({prefix:"notification",entity:a}))});this.transport=a.transport,this.log=ti("gamification-background"),this.slStreamId=a.stores.slStreamId.getAtomStore(),this.organizationId=a.stores.organizationSettings.getAtomStore(),this.userId=a.stores.user.getAtomStore(),this.moderationId=new Oo(da(void 0),"moderationId").getStore(),this.interactiveAllowed=new Oo(da(Jc.DISALLOWED),"interactiveAllowed").getStore(),this.openedQuestionId=new Oo(da(void 0),"openedQuestionId").getStore(),this.notifications=a.notifications,this.moderation=new ei(kX(this.slStreamId,a.transport),"gamification:moderation"),this.feedList=new ei(IX(this.slStreamId,this.interactiveAllowed,a.transport),"gamification:feedList"),this.activeQuestionId=SX(this.slStreamId,a.transport),this.openedQuestion=RX(a.transport,this.openedQuestionId,this.feedList.getStore()),this.cancels.add(this.openedQuestionId.listen(o=>{this.log.debug({item:o},"received question"),o!=null&&o.questionId?(this.questionSubscription=EX(o.questionId,a.transport),this.questionSubscription.addListener("feed-subscription-opened-question",l=>{var c,p;this.openedQuestion.updateExtendedQuestion((p=(c=l.data)==null?void 0:c.attributes)==null?void 0:p.question)}),this.questionSubscription.connect()):(this.log.info("cleanup on close question"),this.questionSubscription!==void 0&&(a.transport.removeSubscription(this.questionSubscription),this.questionSubscription=void 0))})),this.feedSubscription=CX(this.slStreamId,a.transport),this.cancels.add(this.feedSubscription.addListener("feed-subscription-active-question",o=>{var p,f,y,b;const l=(f=(p=this.activeQuestionId.get().data)==null?void 0:p.question)==null?void 0:f.id,c=(b=(y=o.data)==null?void 0:y.attributes)==null?void 0:b.question;if(!(!c||c.type===ye.PROMOTION)){if(c.status===yn.RESOLVED){l===c.id&&this.activeQuestionId.mutate(void 0);return}window.requestAnimationFrame(()=>{var C;this.activeQuestionId.mutate((C=o.data)==null?void 0:C.attributes)})}})),this.cancels.add(this.feedSubscription.addListener("moderation update",o=>{window.requestAnimationFrame(()=>{var l,c,p,f;((c=(l=o.data)==null?void 0:l.attributes)==null?void 0:c.question)===void 0&&((f=(p=o.data)==null?void 0:p.attributes)!=null&&f.moderation)&&this.moderation.invalidate()})})),this.cancels.add(this.activeQuestionId.subscribe((o,l)=>{var c,p,f,y,b,C,_;(c=o.data)!=null&&c.feedItem&&((f=(p=o.data)==null?void 0:p.feedItem)==null?void 0:f.id)!==((b=(y=l==null?void 0:l.data)==null?void 0:y.feedItem)==null?void 0:b.id)&&a.onQuestionActivate({stage:"activate",id:o.data.feedItem.id,isViewed:!!this.notifications.isViewed(this.getCurrentSessionId({prefix:"notification",entity:o.data.feedItem.id})),hasNotification:!0,type:o.data.feedItem.type}),!((C=o.data)!=null&&C.feedItem)&&((_=l==null?void 0:l.data)!=null&&_.feedItem)&&a.onQuestionActivate({stage:"deactivate",id:l.data.feedItem.id,isViewed:!!this.notifications.isViewed(this.getCurrentSessionId({prefix:"notification",entity:l.data.feedItem.id})),hasNotification:!0,type:l.data.feedItem.type})})),this.feedSubscription.connect(),this.cancels.add(this.interactiveAllowed.listen(()=>{window.requestAnimationFrame(()=>{this.activeQuestionId.invalidate()})})),a.sdk.onMount({name:"gamification-background"},()=>()=>{this.activeQuestionId.off();for(const o of this.cancels)o(),this.cancels.delete(o)}),this.advertisement=xX(this.slStreamId,this.feedSubscription,a)}}class MX{constructor(a){U(this,"notificationsList");U(this,"store");U(this,"timeouts");U(this,"waitingQueue");U(this,"activeQueue");U(this,"options");U(this,"logger");U(this,"addToQueue",a=>{var c;if(this.store.has(a.id)){this.logger.debug({notification:a},"skip existed notification: %o");return}const o=a.close,l=a.action;if(this.store.set(a.id,{...a,close:(...p)=>{o&&o(...p),this.closeNotification(a.id)},action:(...p)=>{l&&l(...p),this.closeNotification(a.id,{animateHiding:!1})}}),this.waitingQueue.add(a.id),this.activeQueue.size===this.options.concurrency){const[p]=this.activeQueue;if(((c=this.store.get(p))==null?void 0:c.persistent)!==!0)this.closeNotification(p);else{const[f]=this.waitingQueue;this.waitingQueue.size>1&&this.closeNotification(f),this.tickWaitingQueue()}}else this.tickWaitingQueue()});U(this,"tickWaitingQueue",()=>{if(this.activeQueue.size<this.options.concurrency){const[a]=this.waitingQueue;if(!a)return;this.activeQueue.add(a),this.waitingQueue.delete(a),this.logger.debug({job:a},"waiting queue tick"),this.tickActiveQueue(a)}else this.logger.debug({queueSize:this.activeQueue.size,concurrency:this.options.concurrency},"waiting queue tick skipped")});U(this,"tickActiveQueue",a=>{if(!a)return;const o=this.store.get(a);if(!o){this.logger.debug({notificationId:a},"active queue tick skipped, notification not exist");return}ua.emit("notification",{action:"received",payload:{questionId:o.data.questionId,questionType:o.data.questionType}});const l=setTimeout(()=>{const c=a,p=new Map(this.notificationsList.get());p.set(o.id,o),this.notificationsList.set(p);const f=setTimeout(()=>{this.logger.debug({notificationId:c,delay:o.autoHideDuration||5e3},"notification hiding by autoHideDuration"),this.closeNotification(c)},o.autoHideDuration||5e3);this.timeouts.set(c,f),this.logger.debug({notificationId:c,queue:[...p.values()]},"notification displayed")},o.delay||0);this.timeouts.set(a,l),this.logger.debug({notificationId:a},"active queue tick completed"),this.tickWaitingQueue()});U(this,"closeNotification",(a,{animateHiding:o=!0}={})=>{const l=new Map(this.notificationsList.get()),c=l.get(a);if(c){c.hiding=!(this.waitingQueue.size>=this.options.concurrency)&&o,this.notificationsList.set(l);const p=setTimeout(()=>{const f=new Map(this.notificationsList.get());f.delete(a),this.notificationsList.set(f);const y=this.timeouts.get(a);y!==void 0&&(clearTimeout(y),this.timeouts.delete(a)),this.logger.debug({notificationId:a},"notification hidden"),c.hiding&&ua.emit("notification",{action:"closed",payload:{questionId:c.data.questionId,questionType:c.data.questionType}})},this.options.animationDelay||0);this.timeouts.set(a,p)}return this.store.delete(a),this.activeQueue.delete(a),this.waitingQueue.delete(a),this.tickWaitingQueue(),this.logger.debug({notificationId:a},"notification hiding"),c});U(this,"drain",()=>{this.store.clear(),this.timeouts.clear(),this.waitingQueue.clear(),this.activeQueue.clear(),this.notificationsList.off(),this.notificationsList.set(new Map)});this.options=a,this.logger=ti("notifications"),this.store=new Map,this.timeouts=new Map,this.waitingQueue=new Set,this.activeQueue=new Set,this.notificationsList=da(new Map)}}var m6;(function(n){n.OPENED="opened"})(m6||(m6={}));class DX extends Nm{constructor(){super("notification");U(this,"setOpened",o=>{this.write(m6.OPENED,o,"true")});U(this,"isOpened",o=>this.read(m6.OPENED,o));U(this,"clearNotification",()=>{this.clear()})}}var bu;(function(n){n[n.ONBOARDING=1]="ONBOARDING",n[n.QUESTION=2]="QUESTION",n[n.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(bu||(bu={}));class UX{constructor(a={}){U(this,"queue");U(this,"storage");U(this,"isViewed",a=>this.storage.isOpened(a));U(this,"add",a=>{if(!this.isViewed(a.id)){if(a.data&&a.emitEvent){const o=a.action;a.action=(...l)=>{o&&o(...l),ua.emit("notification",{action:"opened",payload:{questionId:a.data.questionId,questionType:a.data.questionType}})}}this.queue.addToQueue(a)}});U(this,"close",(a,{markAsViewed:o=!0,animateHiding:l}={})=>{this.queue.closeNotification(a,{animateHiding:l}),o&&this.markAsViewed(a)});U(this,"getActiveNotification",()=>{const a=this.queue.notificationsList.get();if(!(a!=null&&a.size))return null;for(const o of a.values())if(o.type===bu.ONBOARDING)return o;return a.values().next().value});U(this,"getQueueStore",()=>this.queue.notificationsList);U(this,"markAsViewed",a=>{this.storage.setOpened(a)});this.storage=new DX,this.queue=new MX({concurrency:1,animationDelay:1600,...a})}}const FX=(n,a,o)=>{n.notifications=new UX(void 0),n.addNotification=n.notifications.add,n.sdk.getNotificationsStore=()=>n.notifications.getQueueStore(),n.sdk.getActiveNotification=()=>n.notifications.getActiveNotification(),n.sdk.onMount({name:"notifications"},()=>()=>{n.notifications.queue.drain()}),o()};var m2;(function(n){n.UNKNOWN="unknown",n.ALREADY_VOTED="already_voted"})(m2||(m2={}));const VX=async(n,a)=>{var p;const{client:o,createRequestOptions:l}=n.createPromiseClient(Lo,{method:"submitAnswer"}),c=l({retryAttempts:0});try{return await o.submitAnswer({data:a},{contextValues:c})}catch(f){throw((p=zt.from(f))==null?void 0:p.code)===at.AlreadyExists?new Error(m2.ALREADY_VOTED):new Error(m2.UNKNOWN)}},jX=(n,a)=>{const{client:o,createRequestOptions:l}=n.createPromiseClient(Lo,{method:"submitInplay"}),c=l({retryAttempts:0});return o.submitInplay({data:{eventId:+a}},{contextValues:c})};var um;(function(n){n.ONBOARDING="onboarding",n.ONBOARDING_IO="onboarding_io"})(um||(um={}));class BX extends Nm{constructor(){super("gamification-session",window.sessionStorage);U(this,"writeValue",(o,l)=>{this.write(...o,l)});U(this,"readValue",o=>this.read(...o))}}class yE extends Nm{constructor(){super("gamification");U(this,"sessionStorage");U(this,"saveOnboardingStatus",({userId:o,eventId:l,organizationId:c},p)=>{this.write(um.ONBOARDING,c,o,l,p)});U(this,"getOnboardingStatus",({userId:o,eventId:l,organizationId:c})=>this.read(um.ONBOARDING,c,o,l));U(this,"setOnboardingInstantOpen",({userId:o,eventId:l,organizationId:c})=>{this.sessionStorage.writeValue([um.ONBOARDING_IO,c,o,l],"1")});U(this,"getOnboardingInstantOpen",({userId:o,eventId:l,organizationId:c})=>this.sessionStorage.readValue([um.ONBOARDING_IO,c,o,l]));this.sessionStorage=new BX}}const $X={pageSize:10},zX=(n,a,o,l,c)=>{let p=0;const f=da({pageSize:$X.pageSize,page:0}),y=co({data:[],key:Date.now(),hasMore:!0,loading:void 0,error:void 0}),b=TX(n),C=async()=>{var x;const O=a.get(),L=((x=l.getStore().get().data)==null?void 0:x.map(D=>D.slId))||[];if(O&&(L!=null&&L.length)){const D=o.get();D&&L.push(D),y.setKey("loading",!0),y.setKey("data",[]);const j=await b({eventId:O,usersIds:L});y.set({data:j.data.map((V,Y)=>({...V.attributes,friendsRank:Y+1})),hasMore:!1,key:Date.now(),loading:!1}),j.meta&&(p=Math.round(j.meta.count/j.meta.pageSize))}},_=()=>{C()},N=O=>{const L=f.get(),x=O||L.page+1;x<=p&&f.set({...L,page:x})};return b6(y,()=>{const O=a.listen(C),L=l.listen(C);return()=>{O(),L()}}),{$store:y,fetchMore:N,invalidate:_}};class HX extends Nm{constructor(){super("deep-link-context",window.sessionStorage);U(this,"get",this.read);U(this,"set",this.write);U(this,"del",this.remove)}}const RS="sldl",A6="sldl_uid",vE="sldl_eid",TE="sldl_e_eid",qX=new Set([A6,vE,TE]),OS=n=>{const a={},o={};for(const[l,c]of n)qX.has(l)?a[l]=c:o[l]=c;return{result:a,remain:o}},GX=({hash:n,search:a})=>{if(n&&n.includes(RS)){const o=new URLSearchParams(n.substr(1));return{hash:OS(o)}}if(a&&a.includes(RS)){const o=new URLSearchParams(a);return{search:OS(o)}}return null},LS=ti("deep_link"),Xs={debug:(...n)=>{LS.debug(...n),localStorage.getItem("SL_DEBUG")&&console.log(...n)},trace:(...n)=>{LS.trace(...n),localStorage.getItem("SL_DEBUG")&&console.log(...n)}},WX=(n,a)=>{const{hash:o,search:l}=window.location;if(Xs.debug({hash:o,search:l},"get deep link data from"),o||l){const c=GX({hash:o,search:l});if(Xs.debug(c,"parse deep link result"),c){const{hash:p,search:f}=c,{result:y,remain:b}=p||f;if(Object.keys(y).length!==0){n.setValue("data",y);const C=Object.keys(b).length!==0;if(p){let _="";C&&(_=`#${new URLSearchParams(b).toString()}`,Xs.debug({updatedHash:_},"update hash")),window.history.replaceState(null,"",window.location.pathname+window.location.search+_)}if(f){let _="";C&&(_=`?${new URLSearchParams(b).toString()}`,Xs.debug({updatedSearch:_},"update search")),window.history.replaceState(null,"",window.location.pathname+_+window.location.hash)}a(y)}}}n.setValue("parsed",!0)},QX=(n,a,o)=>{const l=new HX,c=l.get("sl-deep-link-store");let p={};if(c)try{p=JSON.parse(c)}catch(y){Xs.debug(y)}n.deepLink={$store:new Xc(co(p),"deep-link-context"),getDeepLinkData:()=>{const{data:y,used:b}=n.deepLink.$store.getValues();return{data:y,used:b}},deepLinkUsed:y=>{Xs.debug(`logged in with inviterId: ${y}`),n.deepLink.$store.setValue("used",!0)},onDeepLinkHandlers:new Set},n.sdk.getInviter=()=>{const{data:y,used:b}=n.deepLink.getDeepLinkData();return b?y==null?void 0:y[A6]:void 0},n.sdk.inviteDisplayed=()=>{n.deepLink.$store.getStore().set({}),n.deepLink.$store.getStore().off(),l.del("sl-deep-link-store")},n.deepLink.$store.subscribe(y=>l.set("sl-deep-link-store",JSON.stringify(y))),n.sdk.addDeepLinkHandler=y=>{localStorage.getItem("SL_DEBUG")&&Xs.trace("adding deep link handler"),n.deepLink.onDeepLinkHandlers.add(y)},a.onDeepLinkHandled&&n.sdk.addDeepLinkHandler(a.onDeepLinkHandled),n.sdk.removeDeepLinkHandler=y=>{Xs.trace("removing deep link handler"),n.deepLink.onDeepLinkHandlers.delete(y)};const f=y=>{n.deepLink.$store.setValue("handled",!0),Xs.trace({size:n.deepLink.onDeepLinkHandlers.size},"deep link handled, call callbacks");for(const b of n.deepLink.onDeepLinkHandlers)try{Xs.trace("called handler"),b(y)}catch(C){console.error(C)}};WX(n.deepLink.$store,f),o()},YX=ti("bypass");class KX extends YZ{constructor(o,l,c){super();U(this,"$coreStore");U(this,"deepLink");U(this,"transport");U(this,"bypassLogin");U(this,"me",async()=>{var o;return this.$coreStore.getValues().user.invalidate(),(o=await this.$coreStore.getValues().user.getValue())==null?void 0:o.data});U(this,"login",async(o,l)=>{var _,N,O;this.$coreStore.getValues().userKey.setValue(l);const{used:c,data:p}=this.deepLink.getDeepLinkData(),f=c?"":p==null?void 0:p[A6];YX.debug({inviterKey:f},"login with inviterKey");const y=await this.bypassLogin({schema:o,userKey:l,inviterKey:f,init:!1}),b=(_=y.meta)==null?void 0:_.jwt,C=(N=y.data)==null?void 0:N.id;if(!b||!C)throw new Error("internal: token missing");return(O=y.meta)!=null&&O.inviterKey&&this.deepLink.deepLinkUsed(y.meta.inviterKey),this.$coreStore.getValues().user.getStore().mutate({data:y.data}),this.saveUser(b,C),b});U(this,"isAuthenticated",()=>this.me());U(this,"logout",()=>{this.$coreStore.getValues().user.setValue(),this.$coreStore.getValues().userKey.setValue(),this.$coreStore.getValues().userToken.setValue(),this.transport.setAuth("",""),new lm().clear()});U(this,"softLogout",()=>{const o=new lm;this.transport.setAuth("",""),o.setToken(""),this.reLogin()});U(this,"reLogin",()=>{const o=new lm,l=o.getToken(),c=o.getExternalToken();if(this.$coreStore.getValues().userKey.setValue(c),l)return this.saveUser(l,""),this.me().then(p=>{if(p!=null&&p.id){const f=p.id;this.saveUser(l,f)}});if(c&&!l){const p=o.getSchema();p&&c&&this.login(p,c).catch(()=>{this.logout()})}});U(this,"saveUser",(o,l)=>{this.transport.setAuth(o,l),this.$coreStore.getValues().userToken.setValue(o),new lm().setToken(o)});U(this,"connect",()=>{this.transport.registerInterceptor(o=>async l=>{try{return await o(l)}catch(c){throw c.code&&(c.code===7||c.code===16)&&this.transport.getHeader("authorization")&&this.softLogout(),c}})});this.$coreStore=o,this.deepLink=c,this.transport=l,this.bypassLogin=uX(this.transport),this.connect()}}const J0=new lm,ZX=(n,a,o)=>{n.auth=new KX(n.store,n.transport,n.deepLink),n.stores.status.listen(l=>{l===Zi.READY&&n.auth.reLogin()}),n.sdk.userId=n.stores.user.getAtomStore,n.sdk.authorizationBypass=async(l,c)=>{if(!(J0.getSchema()===l&&J0.getExternalToken()===c&&n.transport.getHeader("authorization")))try{await n.auth.login(l,c),J0.setSchema(l),J0.setExternalToken(c)}catch{n.sdk.logout()}},n.sdk.logout=()=>{n.auth.logout(),J0.clear()},n.sdk.getUserStore=()=>n.stores.user.getStore(),n.sdk.isUserAuthorized=()=>n.auth.isAuthenticated(),o()},AS=ti("video_player"),Uh={debug:(...n)=>{AS.debug(...n),localStorage.getItem("SL_DEBUG")&&console.log(...n)},trace:(...n)=>{AS.trace(...n),localStorage.getItem("SL_DEBUG")&&console.log(...n)}},XX=(n,a,o)=>{n.videoPlayer={controllers:new Set},n.sdk.addVideoPlayerController=l=>{Uh.trace("adding video player controller"),n.videoPlayer.controllers.add(l)},a.videoPlayerController&&n.sdk.addVideoPlayerController(a.videoPlayerController),n.sdk.removeVideoPlayerController=l=>{Uh.trace("removing video player controller"),n.videoPlayer.controllers.delete(l)},n.sdk.controlVideoPlayer=l=>{Uh.trace("controlling video player");for(const c of n.videoPlayer.controllers){Uh.trace("calling video player controller");try{c(l)}catch(p){console.error(p)}}},o()},JX={[ye.FACTOID]:"insight",[ye.POLL]:"poll",[ye.TRIVIA]:"trivia",[ye.PREDICTION]:"prediction",[ye.TWEET]:"tweet"},eJ=(n,a,o)=>{n.sdk.uiState=co({}),n.ui={enableAppNotification:function(){n.sdk.uiState.setKey("appNotification",!0)},disableAppNotification:function(){n.sdk.uiState.get().app||n.sdk.uiState.setKey("appNotification",!1)},enableApp:function(){n.sdk.uiState.set({app:!0,appNotification:!0})},disableApp:function(){n.sdk.uiState.set({...n.sdk.uiState.get(),appNotification:!1,app:!1})}},a.onContentActivate&&(n.ui.onContentActivate=a.onContentActivate);const l=c=>{n.ui.onContentActivate&&n.ui.onContentActivate({...c,type:"advertisement"})};n.onQuestionActivate=({questionType:c,...p})=>{if(n.ui.onContentActivate){const f=p.type||c&&JX[c]||"question";n.ui.onContentActivate({...p,type:f})}},n.sdk.onMount({name:"ui"},()=>{const c=y=>{var b,C;if(((b=y.slEventBus)==null?void 0:b.type)==="notification")switch(y.slEventBus.action){case"received":n.ui.enableAppNotification();break;case"closed":n.ui.disableAppNotification();break}if(((C=y.slEventBus)==null?void 0:C.type)==="advertisement"&&a.withAd){const _=y.slEventBus,{hasNotification:N,hasBanner:O,id:L,isViewed:x,type:D}=_.payload;switch(_.action){case"notification-opened":n.sdk.uiState.set({promotionExternalAd:D===Hr.EXTERNAL_AD,promotionBanner:O,promotionNotification:!1,promotionOverlay:!0,promotionSidebar:!0});break;case"received":if(n.sdk.closeFeature(),l({stage:"activate",id:L,hasNotification:N,hasBanner:O,isViewed:x}),!a.withAdNotification){n.sdk.uiState.set({promotionBanner:O,promotionOverlay:!0,promotionSidebar:!0,promotionExternalAd:D===Hr.EXTERNAL_AD});break}N?n.sdk.uiState.set({promotionNotification:!0}):n.sdk.uiState.set({promotionBanner:O,promotionOverlay:!0,promotionSidebar:!0,promotionExternalAd:D===Hr.EXTERNAL_AD});break;case"closed":n.sdk.uiState.set({...n.sdk.uiState.get(),promotionNotification:!1,promotionBanner:!1,promotionOverlay:!1,promotionExternalAd:!1,promotionSidebar:!1}),l({stage:"deactivate",id:L,hasNotification:N,hasBanner:O,isViewed:x});break}}},p=ua.listen(c),f=n.activeFeature.subscribe(y=>{y?n.ui.enableApp():n.ui.disableApp()});return()=>{p(),f()}}),o()},tJ=(n,a,o)=>{const l={onMountedFired:!1},c=new Map,p=new Map;n.sdk=Object.create(null),n.sdk.options=co(a),n.sdk.withAuth=!1,n.sdk.onMount=({name:f,clear:y},b)=>{var C,_;if(c.has(f)){const N=p.get(f);N&&N(),c.delete(f),p.delete(f)}c.set(f,{cb:b,clear:y}),((_=(C=n==null?void 0:n.stores)==null?void 0:C.enabled)==null?void 0:_.get())==="on"&&p.set(f,b())},n.ready=()=>{n.stores.enabled.subscribe(f=>{f==="on"&&l.onMountedFired===!1&&(c.forEach(({cb:y},b)=>p.set(b,y())),l.onMountedFired=!0),f!=="on"&&l.onMountedFired===!0&&(p.forEach(y=>y()),p.clear(),c.forEach(({clear:y},b)=>y&&c.delete(b)),l.onMountedFired=!1)})},n.sdk.initializeApp=async f=>{if(n.contextConfig=f,n.stores.enabled.get()==="on")return{enabled:!0};n.storeSubscribe(),n.stores.enabled.setValue("on"),n.stores.status.setValue(Zi.INITIALIZATION);try{const y=await n.stores.organizationSettings.getValue();return y?(n.stores.status.setValue(Zi.READY),{enabled:!!y}):(n.stores.status.setValue(Zi.FAILED),{err:"failed"})}catch(y){return n.stores.enabled.setValue(),n.stores.status.setValue(Zi.FAILED),{err:`${y}`}}},n.sdk.disableApp=()=>{n.stores.enabled.get()==="on"&&(n.stores.enabled.setValue(),n.stores.status.setValue(Zi.DISABLED),n.stores.slStreamId.setValue(),n.stores.providerStreamId.setValue(),n.sdk.closeFeature(!0),n.storeUnsubscribe(),n.transport.disconnect())},n.sdk.createEventSession=f=>{n.stores.providerStreamId.setValue(f)},o()},nJ=(n,a)=>{const{client:o,queryKey:l}=n.createPromiseClient(p2,{method:"generateDeepLink",params:a});return n.nanoquery.createFetcherStore(l,{fetcher:async(c,p,f,y)=>{var b;if(!f)return{};try{return(b=(await o.generateDeepLink({data:{gamification:!0,externalEventId:y,eventId:f}})).data)==null?void 0:b.attributes}catch{return}},dedupeTime:1e3*60*60*24,refetchInterval:0})},aJ=(n,{web:a,mobile:o})=>{const{client:l}=n.createPromiseClient(cZ,{method:"generate"});return l.generate({web:a,mobile:o})},xS=(n,a)=>{const o=new URLSearchParams(n);for(const[l,c]of Object.entries(a))o.append(l,c);return o.toString()},rJ=(n,a,o,l)=>{const c=co({});return b6(c,()=>nJ(n,[a,o]).subscribe(async({data:p,loading:f})=>{var O;const y=p===void 0&&f===!1?"https://streamlayer.io":p==null?void 0:p.url,b=l.get()||"",C=a.get()||"",_=o.get()||"",N={[A6]:b,[vE]:C,[TE]:_};if(!f&&y){c.setKey("loading",!0);let L=window.location.search,x=window.location.hash;L&&x||x?L=`?${xS(L,N)}`:x=`#${xS("",N)}`;const D=window.location.origin+window.location.pathname+L+x;try{const j=await aJ(n,{web:D,mobile:y});c.set({data:(O=j.data)==null?void 0:O.link,loading:!1})}catch{c.set({loading:!1,error:"Failed to generate short link",data:void 0})}}else c.setKey("loading",!0)})),{$store:c,fetch}};var ia;(function(n){n.Unset="unset",n.Required="required",n.Optional="optional",n.Completed="completed",n.Disabled="disabled",n.Unavailable="unavailable"})(ia||(ia={}));const oJ=(n,a,o,l)=>{const{inplayGame:c}=n.featureSettings.get(),p=a.getCurrentSessionId({prefix:"onboarding"});c&&o.add({type:bu.ONBOARDING,id:p,action:n.openFeature,close:()=>{n.onboardingProcessed.set(!0)},persistent:!0,autoHideDuration:1e6,data:{questionId:"onboarding",questionType:ye.UNSET,onboarding:{...c,instantOpen:!l.getOnboardingInstantOpen({userId:a.userId.get()||"",organizationId:a.organizationId.get()||"",eventId:a.slStreamId.get()||""})}}})},Fh=(n,a,o,l,c,p)=>{var f,y,b;try{const C=a.userId.get();if(!C)return;if(c.getOnboardingStatus({userId:C,organizationId:a.organizationId.get()||"",eventId:a.slStreamId.get()||""})===ia.Completed){n.set(ia.Completed);for(const x of p)x();return}const _=(f=a.moderation.getStore().value)==null?void 0:f.data,N=o.featureSettings.get().inplayGame;if(_===void 0||N===void 0)return;const O=(y=_==null?void 0:_.options)==null?void 0:y.onboardingEnabled,L=(b=N==null?void 0:N.titleCard)==null?void 0:b.optIn;O?L?n.set(ia.Required):n.set(ia.Optional):(L?n.set(ia.Unavailable):n.set(ia.Disabled),l.close(a.getCurrentSessionId({prefix:"onboarding"}),{markAsViewed:!1}))}catch(C){console.error(C)}},sJ=(n,a,o,l)=>{let c=!1;const p=new yE,f=da(ia.Unset);f.subscribe(b=>{b!==ia.Unset&&(b===ia.Optional||b===ia.Required?c===!1&&(oJ(n,a,l,p),c=!0):n.onboardingProcessed.set(!0),b===ia.Completed&&a.activeQuestionId.invalidate(),p.setOnboardingInstantOpen({userId:a.userId.get()||"",organizationId:a.organizationId.get()||"",eventId:a.slStreamId.get()||""}))});const y=[];return Fh(f,a,n,l,p,y),f.get()!==ia.Completed&&(y.push(a.userId.listen(b=>{b&&Fh(f,a,n,l,p,y)})),y.push(a.moderation.listen(b=>{b.data&&Fh(f,a,n,l,p,y)})),y.push(n.featureSettings.listen(b=>{b&&Fh(f,a,n,l,p,y)}))),{$store:f,submitInplay:async()=>{const b=a.slStreamId.get();if(b){await jX(o,b),f.set(ia.Completed),p.saveOnboardingStatus({organizationId:a.organizationId.get()||"",userId:a.userId.get()||"",eventId:b},ia.Completed),ua.emit("poll",{action:"onboardingPassed",payload:{}}),n.openFeature();const C=a.getCurrentSessionId({prefix:"onboarding"});l.close(C)}}}},iJ=(n,a,o,l)=>{const c=co(void 0),p=hE(l),f=async()=>{var L,x;const b=n.get(),C=a.get(),_=(L=o.getStore().get().data)==null?void 0:L.map(D=>D.slId);if(!_)return;const N={eventId:b,userId:C,usersIds:[..._,C]},O=await p(N);c.set((x=O.data)==null?void 0:x.attributes)},y=()=>{f()};return b6(c,()=>{const b=n.listen(f),C=o.listen(f),_=a.listen(f);return()=>{b(),C(),_()}}),{$store:c,invalidate:y}},lJ=async(n,a,o,l,c)=>{var _,N,O;const p=hE(c),f=n.get(),y=a.get(),b=((_=o.getStore().get().data)==null?void 0:_.map(L=>L.slId))||[],C={eventId:f,userId:l,usersIds:[...b,y]};return(O=(N=(await p(C)).data)==null?void 0:N.attributes)==null?void 0:O.summary},uJ=new Set([ye.POLL,ye.PREDICTION,ye.TRIVIA]);class cJ extends mE{constructor(o,l,c){super(o,l);U(this,"userSummary");U(this,"feedList");U(this,"friends");U(this,"leaderboardId");U(this,"leaderboardList");U(this,"deepLink");U(this,"onboardingStatus");U(this,"openedQuestion");U(this,"currentUserId");U(this,"openedUser");U(this,"closeFeature");U(this,"openFeature");U(this,"feedSubscription");U(this,"activeQuestionId");U(this,"openedQuestionId");U(this,"advertisement");U(this,"onboardingProcessed");U(this,"friendsTabEnabled");U(this,"notifications");U(this,"transport");U(this,"background");U(this,"storage");U(this,"submitAnswerTimeout");U(this,"cancels",new Set);U(this,"onQuestionActivate");U(this,"checkInteractiveFlag",()=>{var y,b,C,_,N;const o=this.onboardingStatus.$store.get(),l=(C=(b=(y=this.background.moderation.getStore().value)==null?void 0:y.data)==null?void 0:b.options)==null?void 0:C.onboardingEnabled,c=(N=(_=this.settings.getValues().inplayGame)==null?void 0:_.titleCard)==null?void 0:N.optIn,p=o===ia.Completed,f=!l||p||c!==!0;this.background.interactiveAllowed.set(f?Jc.ALLOWED:Jc.DISALLOWED)});U(this,"connect",()=>{this.onboardingProcessed.subscribe(o=>{o&&this.advertisement.connect()}),this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-prediction-close",async o=>{var C,_,N,O,L,x,D,j,V,Y,Z;if(!this.isInteractiveAllowed)return;const l=(_=(C=o.data)==null?void 0:C.attributes)==null?void 0:_.question,c=(O=(N=o.data)==null?void 0:N.attributes)==null?void 0:O.feedItem;if(!l||!(c!=null&&c.attributes))return;const{status:p,type:f,id:y,answers:b}=l;if(p===yn.RESOLVED&&f===ye.PREDICTION){const Q=this.background.getCurrentSessionId({prefix:`notification-id:${y}`}),te=[...this.feedList.getValues().data||[]],ie=te.findIndex(mt=>mt.id===y),ae=te[ie];let Ce=(D=(x=(L=ae==null?void 0:ae.attributes)==null?void 0:L.attributes)==null?void 0:x.value)==null?void 0:D.answerId;const Se=R9(y,this.transport),Ye=Se.subscribe(()=>{});await Se.get().promise;let Be=Se.get().data;Be||(Be=await _X(y,this.transport)),Ye(),window.requestAnimationFrame(()=>{Se.invalidate()}),Ce||(Ce=(j=Be==null?void 0:Be.answers.find(({youVoted:mt})=>mt))==null?void 0:j.id);const Ge=b.find(({correct:mt})=>mt),Ne=Ce?b.find(({id:mt})=>mt===Ce):void 0,et=!!(Ne!=null&&Ne.correct);if(ae&&((Y=(V=te[ie])==null?void 0:V.attributes)==null?void 0:Y.attributes.case)==="question"){try{te[ie].attributes.attributes.value.answerId=Ce,te[ie].attributes.attributes.value.openForVoting=!1,Ce&&(te[ie].attributes.attributes.value.status=et?tl.WON:tl.LOST)}catch{}this.feedList.getStore().mutate(te)}if(!Ne||!Ge)return;((Z=this.openedQuestionId.get())==null?void 0:Z.questionId)!==l.id&&this.notifications.add({type:bu.QUESTION_RESOLVED,action:()=>this.openQuestion(l.id,c),close:()=>this.closeQuestion(y),autoHideDuration:et?15e3:12e3,id:Q,emitEvent:!1,data:{questionId:y,questionType:ye.PREDICTION,question:{title:et?`Congratulations! You answered correctly! You won ${Ge.points} pts!`:`Better luck next time! Correct: ${Ge==null?void 0:Ge.text}!`,votedAnswer:{title:Ne==null?void 0:Ne.text,points:Ne==null?void 0:Ne.points},correctAnswerTitle:Ge==null?void 0:Ge.text,correct:!!et,predictionResult:p===yn.RESOLVED,questionTitle:l==null?void 0:l.subject}}}),this.userSummary.invalidate()}})),this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-questions-list",o=>{var f,y,b,C,_;const l=[...((f=this.feedList.getStore().value)==null?void 0:f.data)||[]],c=(b=(y=o.data)==null?void 0:y.attributes)==null?void 0:b.feedItem,p=l.findIndex(N=>N.id===(c==null?void 0:c.id));if(c!=null&&c.attributes&&c.attributes.attributes.case!=="promotion"&&!(c.attributes.status!==yn.ACTIVE&&c.attributes.status!==yn.RESOLVED)){if(p!==-1)if(c.attributes.attributes.case==="question"&&((C=l[p].attributes)==null?void 0:C.attributes.case)==="question"){const N=l[p];N.attributes&&(l[p]={...l[p],attributes:{...N.attributes,attributes:{...N.attributes.attributes,value:{...N.attributes.attributes.value,...c.attributes.attributes.value,answerId:N.attributes.attributes.value.answerId,status:N.attributes.attributes.value.status,openForVoting:N.attributes.attributes.value.openForVoting}}}})}else{const N=l[p];N.attributes&&c.attributes&&(l[p]={...l[p],attributes:{...N.attributes,attributes:{...N.attributes.attributes,value:{...N.attributes.attributes.value,...c.attributes.attributes.value}}}})}p===-1&&(l.unshift(c),ua.emit("poll",{action:"received",payload:{questionId:c.id,questionType:(_=c.attributes)==null?void 0:_.type}})),this.feedList.getStore().mutate(l)}}))});U(this,"disconnect",()=>{this.background.feedSubscription.removeListener("feed-subscription-prediction-close"),this.background.feedSubscription.removeListener("feed-subscription-questions-list")});U(this,"submitAnswer",async(o,l)=>{const c=R9(o,this.transport),p=c.subscribe(()=>{}),f={...c.get().data||{}},y=()=>{var O;const b=this.feedList.getValues().data;if(!b)return;const C=b.findIndex(L=>L.id===o),_=b[C],N=((O=_==null?void 0:_.attributes)==null?void 0:O.attributes.case)==="question"&&_.attributes.attributes.value;if(N){ua.emit("poll",{action:"voted",payload:{questionId:o,questionType:N.questionType}});const L=c.get().data;if(p(),L){const x=L.answers.find(Y=>Y.correct===!0),D=L.answers.findIndex(Y=>Y.id===l),j=L.answers[D],V=L.answers.every(({percentageDecimal:Y},Z)=>Y===(f==null?void 0:f.answers[Z].percentageDecimal));b[C].attributes.attributes.value.answerId=l,b[C].attributes.attributes.value.openForVoting=!1,b[C].attributes.attributes.value.text=(j==null?void 0:j.text)||"",x&&(b[C].attributes.attributes.value.status=x.id===l?tl.WON:tl.LOST),this.feedList.getStore().mutate([...b]),L.answers[D].correct=(x==null?void 0:x.id)===l,L.answers[D].youVoted=!0,V&&L.answers.forEach(Y=>{Y.percentageDecimal=0}),(x==null?void 0:x.id)===l&&(L.answers[D].pointsEarned=L.status===yn.RESOLVED?0:x.points),c.mutate({...L})}this.submitAnswerTimeout&&clearTimeout(this.submitAnswerTimeout),this.submitAnswerTimeout=setTimeout(()=>{this.userSummary.invalidate()},1e3)}};try{await VX(this.transport,{questionId:o,answerId:l}),y()}catch(b){if(b.message===m2.ALREADY_VOTED){this.userSummary.invalidate();const C=c.subscribe(()=>{});c.invalidate(),C()}throw b}});U(this,"openQuestion",(o,l)=>{var p,f,y,b;if(!o)return()=>{};this.notifications.close(this.background.getCurrentSessionId({prefix:"notification",entity:o}),{animateHiding:!1});let c=(p=l==null?void 0:l.attributes)==null?void 0:p.type;return c||(c=(b=(y=(((f=this.feedList.getStore().value)==null?void 0:f.data)||[]).find(C=>C.id===o))==null?void 0:y.attributes)==null?void 0:b.type),ua.emit("poll",{action:"opened",payload:{questionId:o,questionType:c,questionOpenedFrom:l==null?void 0:l.openedFrom}}),this.background.openQuestion(o,l)});U(this,"getFeedItem",o=>wX(o,this.transport));U(this,"isOpenedQuestion",o=>!!this.notifications.isViewed(o));U(this,"closeQuestion",o=>(o&&this.onQuestionActivate({stage:"deactivate",id:o,isViewed:!!this.notifications.isViewed(this.background.getCurrentSessionId({prefix:"notification",entity:o}))}),this.background.closeQuestion(o)));U(this,"openUser",async o=>{var p,f;const l=(p=this.leaderboardList.$store.get().data)==null?void 0:p.find(y=>y.userId===o);if(!l){this.openedUser.set(l);return}if(l.summaryLoaded){this.openedUser.set(l);return}const c={...l};try{const y=await lJ(this.background.slStreamId,this.background.userId,this.friends,o,this.transport);(y==null?void 0:y.inTop)!==void 0&&(this.leaderboardList.$store.setKey("data",(f=this.leaderboardList.$store.get().data)==null?void 0:f.map(b=>(b.userId===o&&(b.inTop=y.inTop),b))),c.inTop=y.inTop)}catch(y){console.error(y)}this.openedUser.set(c)});U(this,"closeUser",()=>{this.openedUser.set(void 0)});U(this,"showInApp",o=>{var c,p,f,y,b,C,_,N,O,L,x,D,j,V,Y,Z;const l=this.onboardingStatus.$store.get();if(o&&o.data&&l&&l!==ia.Unset&&((c=o.data.question)==null?void 0:c.id)!==void 0&&((f=(p=o.data.question)==null?void 0:p.bypassNotifications)==null?void 0:f.inAppSilence)!==Bw.ON&&o.data.question.status===yn.ACTIVE&&!o.data.question.marketClosed){if(uJ.has(o.data.question.type))this.isInteractiveAllowed&&o.data.question.notification!==void 0&&this.notifications.add({type:bu.QUESTION,action:()=>{var Q,te,ie;return this.openQuestion((te=(Q=o.data)==null?void 0:Q.question)==null?void 0:te.id,(ie=o.data)==null?void 0:ie.feedItem)},close:()=>{var Q,te;return this.closeQuestion((te=(Q=o.data)==null?void 0:Q.question)==null?void 0:te.id)},autoHideDuration:1e3*60,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),emitEvent:!0,data:{questionId:o.data.question.id,questionType:o.data.question.type,question:{title:o.data.question.notification.title}}});else if(o.data.question.type===ye.FACTOID){const Q=(y=o.data.question.options)==null?void 0:y.options.value,te=((b=o.data.question.notification)==null?void 0:b.title)||o.data.question.subject||"",ie=((C=o.data.question.notification)==null?void 0:C.body)||Q.body,ae={heading:te,body:ie,imageMode:Q==null?void 0:Q.imageMode,image:Q==null?void 0:Q.image,video:{id:((_=Q==null?void 0:Q.video)==null?void 0:_.id)||"",url:((N=Q==null?void 0:Q.video)==null?void 0:N.url)||"",thumbnailUrl:((O=Q==null?void 0:Q.video)==null?void 0:O.thumbnailUrl)||""},webLink:{label:"",url:""}};this.notifications.add({type:bu.QUESTION,action:()=>{var Ce,Se,Ye;return this.openQuestion((Se=(Ce=o==null?void 0:o.data)==null?void 0:Ce.question)==null?void 0:Se.id,(Ye=o==null?void 0:o.data)==null?void 0:Ye.feedItem)},close:()=>{var Ce,Se;return this.closeQuestion((Se=(Ce=o==null?void 0:o.data)==null?void 0:Ce.question)==null?void 0:Se.id)},autoHideDuration:1e3*120,emitEvent:!0,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),data:{questionId:o.data.question.id,questionType:o.data.question.type,insight:ae}})}else if(o.data.question.type===ye.TWEET&&o.data.question.notification!==void 0){const Q=(L=o.data.question.options)==null?void 0:L.options.value,te={title:(x=o.data.question.notification)==null?void 0:x.title,body:(D=o.data.question.notification)==null?void 0:D.body,image:(j=o.data.question.notification)==null?void 0:j.image,account:((V=Q==null?void 0:Q.tweetMeta)==null?void 0:V.account)||"",accountVerified:!!((Y=Q==null?void 0:Q.tweetMeta)!=null&&Y.accountVerified),tweet:(Z=Q==null?void 0:Q.tweetMeta)==null?void 0:Z.tweet,tweetId:o.data.question.id};this.notifications.add({type:bu.QUESTION,action:()=>{var ie,ae,Ce;return this.openQuestion((ae=(ie=o.data)==null?void 0:ie.question)==null?void 0:ae.id,(Ce=o.data)==null?void 0:Ce.feedItem)},close:()=>{var ie,ae;return this.closeQuestion((ae=(ie=o.data)==null?void 0:ie.question)==null?void 0:ae.id)},autoHideDuration:1e3*120,emitEvent:!0,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),data:{questionId:o.data.question.id,questionType:o.data.question.type,tweet:te}})}}});this.background=new PX(c),this.advertisement=this.background.advertisement,this.onQuestionActivate=c.onQuestionActivate,this.feedSubscription=this.background.feedSubscription,this.activeQuestionId=this.background.activeQuestionId,this.openedQuestionId=this.background.openedQuestionId,this.storage=new yE,this.feedList=this.background.feedList,this.friends=new ei(bX(this.background.userId,c.transport),"gamification:friends"),this.currentUserId=this.background.userId,this.openedUser=da(void 0),this.onboardingProcessed=da(!c.sdk.withAuth),this.leaderboardId=new Oo(da(this.settings.getValue("pinnedLeaderboardId")),"pinnedLeaderboardId").getStore(),this.onboardingStatus=sJ(this,this.background,c.transport,c.notifications),this.notifications=c.notifications,this.transport=c.transport,this.closeFeature=(p=!0)=>c.sdk.closeFeature(p),this.openFeature=()=>c.sdk.openFeature(yt.GAMES),this.openedQuestion=this.background.openedQuestion,this.deepLink=rJ(this.transport,this.background.slStreamId,c.stores.providerStreamId.getStore(),this.background.userId),this.userSummary=iJ(this.background.slStreamId,this.background.userId,this.friends,this.transport),this.leaderboardList=zX(this.transport,this.background.slStreamId,this.background.userId,this.friends),this.connect(),this.cancels.add(this.userSummary.$store.listen((p,f)=>{f!=null&&f.summary&&(p!=null&&p.summary)&&this.leaderboardList.invalidate()})),this.cancels.add(this.onboardingStatus.$store.listen(this.checkInteractiveFlag)),this.cancels.add(this.background.moderation.getStore().listen(this.checkInteractiveFlag)),this.cancels.add(this.settings.subscribe(this.checkInteractiveFlag)),this.cancels.add(this.onboardingStatus.$store.listen((p,f)=>{(f===void 0||p!==ia.Unset)&&this.background.activeQuestionId.invalidate()})),this.background.activeQuestionId.listen(this.showInApp),this.friendsTabEnabled=da(!1),this.cancels.add(c.sdk.options.subscribe(p=>{p.friendsTab==="disabled"?this.friendsTabEnabled.set(!1):p.friendsTab==="enabled"&&this.friendsTabEnabled.set(!0)})),this.cancels.add(this.settings.subscribe(p=>{var f,y;c.sdk.options.get().friendsTab==="activatedGame"&&this.friendsTabEnabled.set(!!((y=(f=p.inplayGame)==null?void 0:f.titleCard)!=null&&y.optIn))})),c.sdk.onMount({name:"gamification",clear:!0},()=>()=>{for(const p of this.cancels)p(),this.cancels.delete(p)})}get isInteractiveAllowed(){return this.background.interactiveAllowed.get()===Jc.ALLOWED}}const dJ={[yt.GAMES]:!0};class mJ extends mE{constructor(a,o){super(a,o)}}const fJ=(n,a,o)=>n.type===yt.GAMES?new cJ(n,a,o):new mJ(n,a),pJ=(n,a,o)=>{n.features=new Map,n.sdk.featuresList=new Oo(da(new Set),"features-list"),n.activeFeature=new Oo(da(yt.UNSET),"activeFeature"),n.sdk.getFeatures=()=>n.features,n.sdk.getFeature=l=>n.features.get(l),n.sdk.getActiveFeature=()=>n.activeFeature.getStore(),n.sdk.openFeature=l=>{n.activeFeature.setValue(l)},n.sdk.closeFeature=(l=!1)=>{const c=n.activeFeature.getValue();if(n.activeFeature.setValue(yt.UNSET),l&&c){n.features.delete(c);const p=n.sdk.featuresList.getValue();p&&p.delete(c),n.sdk.featuresList.setValue(p)}},n.initFeature=(l,c=Ki.ORGANIZATION)=>{if(l.type in dJ&&!n.features.has(l.type)){const p=fJ(l,c,n);n.features.set(l.type,p);let f=n.sdk.featuresList.getValue();f?f.add(l.type):f=new Set([l.type]),n.sdk.featuresList.setValue(new Set(f))}},n.updateFeature=(l,c)=>{var p;(p=n.features.get(l.type))==null||p.update(l,c)},n.destroyFeature=l=>{n.features.delete(l.type);const c=n.sdk.featuresList.getValue();c&&c.delete(l.type),n.sdk.featuresList.setValue(new Set(c))},n.reinitializeFeatures=async()=>{const l=await n.stores.organizationSettings.getValue();n.features.clear(),n.sdk.featuresList.setValue(new Set);for(const c of(l==null?void 0:l.overlays)||[])n.initFeature(c,Ki.ORGANIZATION)},n.stores.providerStreamId.listen(l=>{l||n.reinitializeFeatures()}),n.storeSubscribe=()=>{const l=(p,f)=>{var y;if(f!=null&&f.overlays&&!((y=n.contextConfig)!=null&&y.skipOrganizationSettings&&p===Ki.ORGANIZATION))for(const b of f.overlays)b.sdkEnable===!0&&(n.features.has(b.type)?n.updateFeature(b,p):n.initFeature(b,p))},c={organizationSettings:p=>{if(p.data)try{l(Ki.ORGANIZATION,p.data)}catch(f){console.log(f)}},streamSettings:p=>{if(p.data)try{l(Ki.STREAM,p.data)}catch(f){console.log(f)}}};n.store.subscribe(c)},o()};class hJ{constructor(a){U(this,"analytics");U(this,"accepted",()=>{this.analytics.write("invitation",{common:{...this.analytics.commonStore.getValues(),kind:la.INVITATION_ACCEPTED},category:f9.GAMES,from:c2.UNSET})});U(this,"sent",({from:a})=>{this.analytics.write("invitation",{common:{...this.analytics.commonStore.getValues(),kind:la.INVITATION_SENT},category:f9.GAMES,from:a||c2.UNSET})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c;if(((c=l.slEventBus)==null?void 0:c.type)==="invitation")switch(l.slEventBus.action){case"sent":this.sent(l.slEventBus.payload);break}};return ua.listen(o)})}}class gJ{constructor(a){U(this,"analytics");U(this,"tap",()=>{this.analytics.write("interactions",{common:{...this.analytics.commonStore.getValues(),kind:la.INTERACTIONS},actionType:C9.TAP})});U(this,"scroll",()=>{this.analytics.write("interactions",{common:{...this.analytics.commonStore.getValues(),kind:la.INTERACTIONS},actionType:C9.SCROLL})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c;if(((c=l.slEventBus)==null?void 0:c.type)==="interactions")switch(l.slEventBus.action){case"tap":this.tap();break;case"scroll":this.scroll();break}};return ua.listen(o)})}}const yJ={[Hr.UNSET]:Qs.UNSET,[Hr.INGAME_IAB21]:Qs.PROMOTION_INGAME_IAB21,[Hr.INGAME_IAB11_LBAR]:Qs.PROMOTION_INGAME_IAB11_LBAR,[Hr.INGAME_IAB11]:Qs.PROMOTION_INGAME_IAB11,[Hr.INGAME_IAB21_LBAR]:Qs.PROMOTION_INGAME_IAB21_LBAR,[Hr.INGAME_IAB61]:Qs.PROMOTION_INGAME_IAB61,[Hr.EXTERNAL_AD]:Qs.PROMOTION_GAM},O9=n=>n?yJ[n]:Qs.UNSET;class vJ{constructor(a){U(this,"analytics");U(this,"received",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_RECEIVED,topicId:a,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});U(this,"opened",({id:a,openedFrom:o},{topicSubType:l})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_OPENED,topicId:a,topicType:Wn.POLLS_PROMOTION,topicSubType:l},pollOpenedFrom:o==="notification"?zr.IN_APP:zr.UNSET})});U(this,"viewed",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_OPENED,topicId:a,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});U(this,"videoPlay",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),topicId:a,kind:la.AD_VIDEO_PLAYED,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});U(this,"buttonSelect",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),topicId:a,kind:la.AD_BUTTON_NAVIGATED,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});U(this,"bannerSelect",({id:a},{topicSubType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),topicId:a,kind:la.AD_BANNER_NAVIGATED,topicType:Wn.POLLS_PROMOTION,topicSubType:o},pollOpenedFrom:zr.UNSET})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c,p;if(!((c=l.slEventBus)!=null&&c.skipAnalytics)&&((p=l.slEventBus)==null?void 0:p.type)==="advertisement"){const f=O9(l.slEventBus.payload.type);switch(l.slEventBus.action){case"videoPlay":this.videoPlay(l.slEventBus.payload,{topicSubType:f});break;case"buttonSelect":this.buttonSelect(l.slEventBus.payload,{topicSubType:f});break;case"bannerSelect":this.bannerSelect(l.slEventBus.payload,{topicSubType:f});break;case"received":this.received(l.slEventBus.payload,{topicSubType:f});break;case"opened":this.opened(l.slEventBus.payload,{topicSubType:f});break;case"viewed":this.viewed(l.slEventBus.payload,{topicSubType:f});break}}};return ua.listen(o)})}}const s2={[ye.UNSET]:Wn.UNSET,[ye.FACTOID]:Wn.POLLS_INSIGHT,[ye.POLL]:Wn.POLLS_POLL,[ye.PREDICTION]:Wn.POLLS_PREDICTION,[ye.PROMOTION]:Wn.POLLS_PROMOTION,[ye.TRIVIA]:Wn.POLLS_TRIVIA,[ye.TWEET]:Wn.POLLS_TWITTER};ye.UNSET+"",Ys.UNSET,ye.FACTOID+"",Ys.POLLS,ye.POLL+"",Ys.POLLS,ye.PREDICTION+"",Ys.POLLS,ye.PROMOTION+"",Ys.POLLS,ye.TRIVIA+"",Ys.POLLS,ye.TWEET+"",Ys.POLLS;const TJ={[yt.UNSET]:Fa.UNSET,[yt.INPLAY]:Fa.INPLAY,[yt.MESSAGING]:Fa.MESSAGING,[yt.STATISTICS]:Fa.STATS,[yt.BETTING]:Fa.BETTING,[yt.TWITTER]:Fa.TWITTER,[yt.MERCHANDISE]:Fa.MERCHANDISE,[yt.CONTESTS]:Fa.CONTESTS,[yt.VOICE_CHAT]:Fa.CALLING,[yt.TICKETS]:Fa.TICKETS,[yt.WHOIS_WATCHING]:Fa.WHOISWATCHING,[yt.PROFILE]:Fa.PROFILE,[yt.GAMES]:Fa.POLLS,[yt.GOLF_STATISTICS]:Fa.STATS,[yt.HIGHLIGHTS]:Fa.HIGHLIGHTS,[yt.PUBLIC_CHAT]:Fa.PUBLIC_CHAT};class bJ{constructor(a){U(this,"analytics");U(this,"received",({questionId:a,questionType:o,topicSubType:l})=>{this.analytics.write("notification",{common:{...this.analytics.commonStore.getValues(),kind:la.NOTIFICATION_RECEIVED,topicId:a,topicType:o?s2[o]:Wn.UNSET,topicSubType:l},notificationKind:Ys.POLLS,notificationType:E9.IN_APP})});U(this,"opened",({questionId:a,questionType:o,topicSubType:l})=>{this.analytics.write("notification",{common:{...this.analytics.commonStore.getValues(),kind:la.NOTIFICATION_OPENED,topicId:a,topicType:o?s2[o]:Wn.UNSET,topicSubType:l},notificationKind:Ys.POLLS,notificationType:E9.IN_APP})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c,p;if(((c=l.slEventBus)==null?void 0:c.type)==="notification")switch(l.slEventBus.action){case"rendered":this.received(l.slEventBus.payload);break;case"opened":this.opened(l.slEventBus.payload);break}if(((p=l.slEventBus)==null?void 0:p.type)==="advertisement")switch(l.slEventBus.action){case"notification-received":this.received({questionId:l.slEventBus.payload.id,questionType:ye.PROMOTION,topicSubType:O9(l.slEventBus.payload.type)});break;case"notification-opened":this.opened({questionId:l.slEventBus.payload.id,questionType:ye.PROMOTION,topicSubType:O9(l.slEventBus.payload.type)});break}};return ua.listen(o)})}}class kJ{constructor(a){U(this,"analytics");U(this,"received",({questionId:a,questionType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_RECEIVED,topicId:a,topicType:o?s2[o]:Wn.UNSET},pollOpenedFrom:zr.UNSET})});U(this,"opened",({questionId:a,questionType:o,questionOpenedFrom:l})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_OPENED,topicId:a,topicType:o?s2[o]:Wn.UNSET},pollOpenedFrom:l==="list"?zr.PICK_HISTORY:zr.IN_APP})});U(this,"voted",({questionId:a,questionType:o})=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_VOTE,topicId:a,topicType:o?s2[o]:Wn.UNSET},pollOpenedFrom:zr.UNSET})});U(this,"onboardingPassed",()=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.GAMES_JOINED},pollOpenedFrom:zr.UNSET})});U(this,"navigated",()=>{this.analytics.write("games",{common:{...this.analytics.commonStore.getValues(),kind:la.POLLS_NAVIGATED},pollOpenedFrom:zr.UNSET})});this.analytics=a,this.analytics.onConnect(()=>{const o=l=>{var c;if(((c=l.slEventBus)==null?void 0:c.type)==="poll")switch(l.slEventBus.action){case"voted":this.voted(l.slEventBus.payload);break;case"navigated":this.navigated();break;case"onboardingPassed":this.onboardingPassed();break;case"received":this.received(l.slEventBus.payload);break;case"opened":this.opened(l.slEventBus.payload);break}};return ua.listen(o)})}}const SJ=({transport:n,$commonStore:a})=>{let o;const l=da(!1),c=5e3,{client:p,queryKey:f}=n.createPromiseClient(iE,{method:"send",params:[l]}),y=n.nanoquery.createFetcherStore(f,{fetcher:async()=>{const N=a.getStore().get();try{await p.unary({message:{case:"heartbeat",value:{common:{...N,kind:la.SESSION_HEARTBEAT}}}})}catch(O){Xi.error(O,"send heartbeat failed")}return Date.now()},refetchInterval:c}),b=()=>{Xi.debug("mounted heartbeat"),o=y.subscribe(()=>{})},C=()=>{Xi.debug("enabled heartbeat"),l.set(!0),y.lc===0&&b()},_=()=>{Xi.debug("disabled heartbeat"),l.set(!1)};return{enable:C,disable:_,mount:b,unmount:()=>{Xi.debug("unmounted heartbeat"),y.off(),o==null||o(),o=void 0,_()}}},Xi=ti("analytics");class wJ{constructor(a){U(this,"commonStore");U(this,"notifications");U(this,"polls");U(this,"invitation");U(this,"interactions");U(this,"advertisement");U(this,"heartbeat");U(this,"analyticsClient");U(this,"listeners");U(this,"listenersCancels");U(this,"connected",!1);U(this,"connect",()=>{this.writeCommon("sessionId",S9()),this.heartbeat.enable(),this.listeners.forEach(a=>this.listenersCancels.add(a())),this.connected=!0,Xi.debug("analytics connected")});U(this,"disconnect",()=>{this.writeCommon("sessionId",""),this.writeCommon("overlaySessionId",""),this.heartbeat.unmount(),this.listenersCancels.forEach(a=>a()),this.connected=!1,Xi.debug("analytics disconnected")});U(this,"write",(a,o)=>{o&&this.analyticsClient.unary({message:{case:a,value:o}}).then(()=>{Xi.trace("send analytics success",a,o)}).catch(l=>{Xi.error(l,"send analytics failed")})});U(this,"writeCommon",(a,o)=>{this.commonStore.setValue(a,o)});U(this,"onConnect",a=>{this.listeners.add(a),this.connected&&this.listenersCancels.add(a())});U(this,"connectToSDK",a=>{this.onConnect(()=>a.stores.slStreamId.getAtomStore().subscribe(o=>{this.writeCommon("eventId",o)})),this.onConnect(()=>a.sdk.getActiveFeature().subscribe(o=>{o&&this.writeCommon("category",TJ[o]),o!==yt.UNSET?this.writeCommon("overlaySessionId",S9()):this.writeCommon("overlaySessionId","")})),this.onConnect(()=>{const o=window.matchMedia("(orientation: portrait)"),l=c=>{this.writeCommon("screenOrientation",c.matches?d9.PORTRAIT:d9.LANDSCAPE)};return o.addEventListener("change",l),()=>{o.removeEventListener("change",l)}}),this.onConnect(()=>a.deepLink.$store.subscribe(o=>{o!=null&&o.handled&&this.invitation.accepted()}))});this.listeners=new Set,this.listenersCancels=new Set,this.commonStore=new Xc(co({}),"common-analytics"),this.connectToSDK(a),this.heartbeat=SJ({transport:a.analyticsTransport,$commonStore:this.commonStore}),this.notifications=new bJ(this),this.polls=new kJ(this),this.invitation=new hJ(this),this.interactions=new gJ(this),this.advertisement=new vJ(this);const{client:o}=a.analyticsTransport.createPromiseClient(iE,{method:"send"});this.analyticsClient=o}}const CJ=(n,a,o)=>{n.analytics=new wJ(n),n.sdk.onMount({name:"analytics"},()=>(n.analytics.connect(),()=>{n.analytics.disconnect()})),o()};var by=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof y9<"u"?y9:typeof self<"u"?self:{};function EJ(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ky={exports:{}},Sy={exports:{}};function _J(n){var a=new n,o=a;function l(){var p=a;return p.next?a=p.next:(a=new n,o=a),p.next=null,p}function c(p){o.next=p,o=p}return{get:l,release:c}}var IJ=_J,NJ=IJ;function bE(n,a,o){if(typeof n=="function"&&(o=a,a=n,n=null),!(o>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var l=NJ(RJ),c=null,p=null,f=0,y=null,b={push:D,drain:No,saturated:No,pause:_,paused:!1,get concurrency(){return o},set concurrency(te){if(!(te>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(o=te,!b.paused)for(;c&&f<o;)f++,V()},running:C,resume:L,idle:x,length:N,getQueue:O,unshift:j,empty:No,kill:Y,killAndDrain:Z,error:Q};return b;function C(){return f}function _(){b.paused=!0}function N(){for(var te=c,ie=0;te;)te=te.next,ie++;return ie}function O(){for(var te=c,ie=[];te;)ie.push(te.value),te=te.next;return ie}function L(){if(b.paused){if(b.paused=!1,c===null){f++,V();return}for(;c&&f<o;)f++,V()}}function x(){return f===0&&b.length()===0}function D(te,ie){var ae=l.get();ae.context=n,ae.release=V,ae.value=te,ae.callback=ie||No,ae.errorHandler=y,f>=o||b.paused?p?(p.next=ae,p=ae):(c=ae,p=ae,b.saturated()):(f++,a.call(n,ae.value,ae.worked))}function j(te,ie){var ae=l.get();ae.context=n,ae.release=V,ae.value=te,ae.callback=ie||No,ae.errorHandler=y,f>=o||b.paused?c?(ae.next=c,c=ae):(c=ae,p=ae,b.saturated()):(f++,a.call(n,ae.value,ae.worked))}function V(te){te&&l.release(te);var ie=c;ie&&f<=o?b.paused?f--:(p===c&&(p=null),c=ie.next,ie.next=null,a.call(n,ie.value,ie.worked),p===null&&b.empty()):--f===0&&b.drain()}function Y(){c=null,p=null,b.drain=No}function Z(){c=null,p=null,b.drain(),b.drain=No}function Q(te){y=te}}function No(){}function RJ(){this.value=null,this.callback=No,this.next=null,this.release=No,this.context=null,this.errorHandler=null;var n=this;this.worked=function(a,o){var l=n.callback,c=n.errorHandler,p=n.value;n.value=null,n.callback=No,n.errorHandler&&c(a,p),l.call(n.context,a,o),n.release(n)}}function OJ(n,a,o){typeof n=="function"&&(o=a,a=n,n=null);function l(_,N){a.call(this,_).then(function(O){N(null,O)},N)}var c=bE(n,l,o),p=c.push,f=c.unshift;return c.push=y,c.unshift=b,c.drained=C,c;function y(_){var N=new Promise(function(O,L){p(_,function(x,D){if(x){L(x);return}O(D)})});return N.catch(No),N}function b(_){var N=new Promise(function(O,L){f(_,function(x,D){if(x){L(x);return}O(D)})});return N.catch(No),N}function C(){if(c.idle())return new Promise(function(O){O()});var _=c.drain,N=new Promise(function(O){c.drain=function(){_(),O()}});return N}}Sy.exports=bE;Sy.exports.promise=OJ;var kE=Sy.exports,wy={exports:{}},gm=typeof Reflect=="object"?Reflect:null,PS=gm&&typeof gm.apply=="function"?gm.apply:function(n,a,o){return Function.prototype.apply.call(n,a,o)},Yh;gm&&typeof gm.ownKeys=="function"?Yh=gm.ownKeys:Object.getOwnPropertySymbols?Yh=function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Yh=function(n){return Object.getOwnPropertyNames(n)};function LJ(n){console&&console.warn&&console.warn(n)}var SE=Number.isNaN||function(n){return n!==n};function Qt(){Qt.init.call(this)}wy.exports=Qt;wy.exports.once=MJ;Qt.EventEmitter=Qt;Qt.prototype._events=void 0;Qt.prototype._eventsCount=0;Qt.prototype._maxListeners=void 0;var MS=10;function x6(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(Qt,"defaultMaxListeners",{enumerable:!0,get:function(){return MS},set:function(n){if(typeof n!="number"||n<0||SE(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");MS=n}});Qt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Qt.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||SE(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function wE(n){return n._maxListeners===void 0?Qt.defaultMaxListeners:n._maxListeners}Qt.prototype.getMaxListeners=function(){return wE(this)};Qt.prototype.emit=function(n){for(var a=[],o=1;o<arguments.length;o++)a.push(arguments[o]);var l=n==="error",c=this._events;if(c!==void 0)l=l&&c.error===void 0;else if(!l)return!1;if(l){var p;if(a.length>0&&(p=a[0]),p instanceof Error)throw p;var f=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw f.context=p,f}var y=c[n];if(y===void 0)return!1;if(typeof y=="function")PS(y,this,a);else for(var b=y.length,C=NE(y,b),o=0;o<b;++o)PS(C[o],this,a);return!0};function CE(n,a,o,l){var c,p,f;if(x6(o),p=n._events,p===void 0?(p=n._events=Object.create(null),n._eventsCount=0):(p.newListener!==void 0&&(n.emit("newListener",a,o.listener?o.listener:o),p=n._events),f=p[a]),f===void 0)f=p[a]=o,++n._eventsCount;else if(typeof f=="function"?f=p[a]=l?[o,f]:[f,o]:l?f.unshift(o):f.push(o),c=wE(n),c>0&&f.length>c&&!f.warned){f.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(a)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=n,y.type=a,y.count=f.length,LJ(y)}return n}Qt.prototype.addListener=function(n,a){return CE(this,n,a,!1)};Qt.prototype.on=Qt.prototype.addListener;Qt.prototype.prependListener=function(n,a){return CE(this,n,a,!0)};function AJ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function EE(n,a,o){var l={fired:!1,wrapFn:void 0,target:n,type:a,listener:o},c=AJ.bind(l);return c.listener=o,l.wrapFn=c,c}Qt.prototype.once=function(n,a){return x6(a),this.on(n,EE(this,n,a)),this};Qt.prototype.prependOnceListener=function(n,a){return x6(a),this.prependListener(n,EE(this,n,a)),this};Qt.prototype.removeListener=function(n,a){var o,l,c,p,f;if(x6(a),l=this._events,l===void 0)return this;if(o=l[n],o===void 0)return this;if(o===a||o.listener===a)--this._eventsCount===0?this._events=Object.create(null):(delete l[n],l.removeListener&&this.emit("removeListener",n,o.listener||a));else if(typeof o!="function"){for(c=-1,p=o.length-1;p>=0;p--)if(o[p]===a||o[p].listener===a){f=o[p].listener,c=p;break}if(c<0)return this;c===0?o.shift():xJ(o,c),o.length===1&&(l[n]=o[0]),l.removeListener!==void 0&&this.emit("removeListener",n,f||a)}return this};Qt.prototype.off=Qt.prototype.removeListener;Qt.prototype.removeAllListeners=function(n){var a,o,l;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[n]),this;if(arguments.length===0){var c=Object.keys(o),p;for(l=0;l<c.length;++l)p=c[l],p!=="removeListener"&&this.removeAllListeners(p);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(a=o[n],typeof a=="function")this.removeListener(n,a);else if(a!==void 0)for(l=a.length-1;l>=0;l--)this.removeListener(n,a[l]);return this};function _E(n,a,o){var l=n._events;if(l===void 0)return[];var c=l[a];return c===void 0?[]:typeof c=="function"?o?[c.listener||c]:[c]:o?PJ(c):NE(c,c.length)}Qt.prototype.listeners=function(n){return _E(this,n,!0)};Qt.prototype.rawListeners=function(n){return _E(this,n,!1)};Qt.listenerCount=function(n,a){return typeof n.listenerCount=="function"?n.listenerCount(a):IE.call(n,a)};Qt.prototype.listenerCount=IE;function IE(n){var a=this._events;if(a!==void 0){var o=a[n];if(typeof o=="function")return 1;if(o!==void 0)return o.length}return 0}Qt.prototype.eventNames=function(){return this._eventsCount>0?Yh(this._events):[]};function NE(n,a){for(var o=new Array(a),l=0;l<a;++l)o[l]=n[l];return o}function xJ(n,a){for(;a+1<n.length;a++)n[a]=n[a+1];n.pop()}function PJ(n){for(var a=new Array(n.length),o=0;o<a.length;++o)a[o]=n[o].listener||n[o];return a}function MJ(n,a){return new Promise(function(o,l){function c(f){n.removeListener(a,p),l(f)}function p(){typeof n.removeListener=="function"&&n.removeListener("error",c),o([].slice.call(arguments))}RE(n,a,p,{once:!0}),a!=="error"&&DJ(n,c,{once:!0})})}function DJ(n,a,o){typeof n.on=="function"&&RE(n,"error",a,o)}function RE(n,a,o,l){if(typeof n.on=="function")l.once?n.once(a,o):n.on(a,o);else if(typeof n.addEventListener=="function")n.addEventListener(a,function c(p){l.once&&n.removeEventListener(a,c),o(p)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n)}var OE=wy.exports,P6={},LE={},AE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),o=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var l=42;n[a]=l;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var c=Object.getOwnPropertySymbols(n);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(n,a);if(p.value!==l||p.enumerable!==!0)return!1}return!0},UJ=AE,M6=function(){return UJ()&&!!Symbol.toStringTag},FJ=Error,VJ=EvalError,jJ=RangeError,BJ=ReferenceError,xE=SyntaxError,D6=TypeError,$J=URIError,DS=typeof Symbol<"u"&&Symbol,zJ=AE,HJ=function(){return typeof DS!="function"||typeof Symbol!="function"||typeof DS("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:zJ()},j5={__proto__:null,foo:{}},qJ=Object,GJ=function(){return{__proto__:j5}.foo===j5.foo&&!(j5 instanceof qJ)},WJ="Function.prototype.bind called on incompatible ",QJ=Object.prototype.toString,YJ=Math.max,KJ="[object Function]",US=function(n,a){for(var o=[],l=0;l<n.length;l+=1)o[l]=n[l];for(var c=0;c<a.length;c+=1)o[c+n.length]=a[c];return o},ZJ=function(n,a){for(var o=[],l=a,c=0;l<n.length;l+=1,c+=1)o[c]=n[l];return o},XJ=function(n,a){for(var o="",l=0;l<n.length;l+=1)o+=n[l],l+1<n.length&&(o+=a);return o},JJ=function(n){var a=this;if(typeof a!="function"||QJ.apply(a)!==KJ)throw new TypeError(WJ+a);for(var o=ZJ(arguments,1),l,c=function(){if(this instanceof l){var C=a.apply(this,US(o,arguments));return Object(C)===C?C:this}return a.apply(n,US(o,arguments))},p=YJ(0,a.length-o.length),f=[],y=0;y<p;y++)f[y]="$"+y;if(l=Function("binder","return function ("+XJ(f,",")+"){ return binder.apply(this,arguments); }")(c),a.prototype){var b=function(){};b.prototype=a.prototype,l.prototype=new b,b.prototype=null}return l},eee=JJ,Cy=Function.prototype.bind||eee,tee=Function.prototype.call,nee=Object.prototype.hasOwnProperty,aee=Cy,ree=aee.call(tee,nee),Lt,oee=FJ,see=VJ,iee=jJ,lee=BJ,km=xE,ym=D6,uee=$J,PE=Function,B5=function(n){try{return PE('"use strict"; return ('+n+").constructor;")()}catch{}},ed=Object.getOwnPropertyDescriptor;if(ed)try{ed({},"")}catch{ed=null}var $5=function(){throw new ym},cee=ed?function(){try{return arguments.callee,$5}catch{try{return ed(arguments,"callee").get}catch{return $5}}}():$5,rm=HJ(),dee=GJ(),Sa=Object.getPrototypeOf||(dee?function(n){return n.__proto__}:null),sm={},mee=typeof Uint8Array>"u"||!Sa?Lt:Sa(Uint8Array),td={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Lt:ArrayBuffer,"%ArrayIteratorPrototype%":rm&&Sa?Sa([][Symbol.iterator]()):Lt,"%AsyncFromSyncIteratorPrototype%":Lt,"%AsyncFunction%":sm,"%AsyncGenerator%":sm,"%AsyncGeneratorFunction%":sm,"%AsyncIteratorPrototype%":sm,"%Atomics%":typeof Atomics>"u"?Lt:Atomics,"%BigInt%":typeof BigInt>"u"?Lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oee,"%eval%":eval,"%EvalError%":see,"%Float32Array%":typeof Float32Array>"u"?Lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Lt:FinalizationRegistry,"%Function%":PE,"%GeneratorFunction%":sm,"%Int8Array%":typeof Int8Array>"u"?Lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rm&&Sa?Sa(Sa([][Symbol.iterator]())):Lt,"%JSON%":typeof JSON=="object"?JSON:Lt,"%Map%":typeof Map>"u"?Lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!rm||!Sa?Lt:Sa(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Lt:Promise,"%Proxy%":typeof Proxy>"u"?Lt:Proxy,"%RangeError%":iee,"%ReferenceError%":lee,"%Reflect%":typeof Reflect>"u"?Lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!rm||!Sa?Lt:Sa(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rm&&Sa?Sa(""[Symbol.iterator]()):Lt,"%Symbol%":rm?Symbol:Lt,"%SyntaxError%":km,"%ThrowTypeError%":cee,"%TypedArray%":mee,"%TypeError%":ym,"%Uint8Array%":typeof Uint8Array>"u"?Lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Lt:Uint32Array,"%URIError%":uee,"%WeakMap%":typeof WeakMap>"u"?Lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Lt:WeakSet};if(Sa)try{null.error}catch(n){var fee=Sa(Sa(n));td["%Error.prototype%"]=fee}var pee=function n(a){var o;if(a==="%AsyncFunction%")o=B5("async function () {}");else if(a==="%GeneratorFunction%")o=B5("function* () {}");else if(a==="%AsyncGeneratorFunction%")o=B5("async function* () {}");else if(a==="%AsyncGenerator%"){var l=n("%AsyncGeneratorFunction%");l&&(o=l.prototype)}else if(a==="%AsyncIteratorPrototype%"){var c=n("%AsyncGenerator%");c&&Sa&&(o=Sa(c.prototype))}return td[a]=o,o},FS={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},h2=Cy,f6=ree,hee=h2.call(Function.call,Array.prototype.concat),gee=h2.call(Function.apply,Array.prototype.splice),VS=h2.call(Function.call,String.prototype.replace),p6=h2.call(Function.call,String.prototype.slice),yee=h2.call(Function.call,RegExp.prototype.exec),vee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Tee=/\\(\\)?/g,bee=function(n){var a=p6(n,0,1),o=p6(n,-1);if(a==="%"&&o!=="%")throw new km("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&a!=="%")throw new km("invalid intrinsic syntax, expected opening `%`");var l=[];return VS(n,vee,function(c,p,f,y){l[l.length]=f?VS(y,Tee,"$1"):p||c}),l},kee=function(n,a){var o=n,l;if(f6(FS,o)&&(l=FS[o],o="%"+l[0]+"%"),f6(td,o)){var c=td[o];if(c===sm&&(c=pee(o)),typeof c>"u"&&!a)throw new ym("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:l,name:o,value:c}}throw new km("intrinsic "+n+" does not exist!")},g2=function(n,a){if(typeof n!="string"||n.length===0)throw new ym("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new ym('"allowMissing" argument must be a boolean');if(yee(/^%?[^%]*%?$/,n)===null)throw new km("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=bee(n),l=o.length>0?o[0]:"",c=kee("%"+l+"%",a),p=c.name,f=c.value,y=!1,b=c.alias;b&&(l=b[0],gee(o,hee([0,1],b)));for(var C=1,_=!0;C<o.length;C+=1){var N=o[C],O=p6(N,0,1),L=p6(N,-1);if((O==='"'||O==="'"||O==="`"||L==='"'||L==="'"||L==="`")&&O!==L)throw new km("property names with quotes must have matching quotes");if((N==="constructor"||!_)&&(y=!0),l+="."+N,p="%"+l+"%",f6(td,p))f=td[p];else if(f!=null){if(!(N in f)){if(!a)throw new ym("base intrinsic for "+n+" exists, but the property is not available.");return}if(ed&&C+1>=o.length){var x=ed(f,N);_=!!x,_&&"get"in x&&!("originalValue"in x.get)?f=x.get:f=f[N]}else _=f6(f,N),f=f[N];_&&!y&&(td[p]=f)}}return f},ME={exports:{}},z5,jS;function Ey(){if(jS)return z5;jS=1;var n=g2,a=n("%Object.defineProperty%",!0)||!1;if(a)try{a({},"a",{value:1})}catch{a=!1}return z5=a,z5}var See=g2,Kh=See("%Object.getOwnPropertyDescriptor%",!0);if(Kh)try{Kh([],"length")}catch{Kh=null}var U6=Kh,BS=Ey(),wee=xE,om=D6,$S=U6,Cee=function(n,a,o){if(!n||typeof n!="object"&&typeof n!="function")throw new om("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new om("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new om("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new om("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new om("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new om("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,y=!!$S&&$S(n,a);if(BS)BS(n,a,{configurable:p===null&&y?y.configurable:!p,enumerable:l===null&&y?y.enumerable:!l,value:o,writable:c===null&&y?y.writable:!c});else if(f||!l&&!c&&!p)n[a]=o;else throw new wee("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},L9=Ey(),DE=function(){return!!L9};DE.hasArrayLengthDefineBug=function(){if(!L9)return null;try{return L9([],"length",{value:1}).length!==1}catch{return!0}};var Eee=DE,_ee=g2,zS=Cee,Iee=Eee(),HS=U6,qS=D6,Nee=_ee("%Math.floor%"),Ree=function(n,a){if(typeof n!="function")throw new qS("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||Nee(a)!==a)throw new qS("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],l=!0,c=!0;if("length"in n&&HS){var p=HS(n,"length");p&&!p.configurable&&(l=!1),p&&!p.writable&&(c=!1)}return(l||c||!o)&&(Iee?zS(n,"length",a,!0,!0):zS(n,"length",a)),n};(function(n){var a=Cy,o=g2,l=Ree,c=D6,p=o("%Function.prototype.apply%"),f=o("%Function.prototype.call%"),y=o("%Reflect.apply%",!0)||a.call(f,p),b=Ey(),C=o("%Math.max%");n.exports=function(N){if(typeof N!="function")throw new c("a function is required");var O=y(a,f,arguments);return l(O,1+C(0,N.length-(arguments.length-1)),!0)};var _=function(){return y(a,p,arguments)};b?b(n.exports,"apply",{value:_}):n.exports.apply=_})(ME);var _y=ME.exports,UE=g2,FE=_y,Oee=FE(UE("String.prototype.indexOf")),Iy=function(n,a){var o=UE(n,!!a);return typeof o=="function"&&Oee(n,".prototype.")>-1?FE(o):o},Lee=M6(),Aee=Iy,A9=Aee("Object.prototype.toString"),F6=function(n){return Lee&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:A9(n)==="[object Arguments]"},VE=function(n){return F6(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&A9(n)!=="[object Array]"&&A9(n.callee)==="[object Function]"},xee=function(){return F6(arguments)}();F6.isLegacyArguments=VE;var Pee=xee?F6:VE,Mee=Object.prototype.toString,Dee=Function.prototype.toString,Uee=/^\s*(?:function)?\*/,jE=M6(),H5=Object.getPrototypeOf,Fee=function(){if(!jE)return!1;try{return Function("return function*() {}")()}catch{}},q5,Vee=function(n){if(typeof n!="function")return!1;if(Uee.test(Dee.call(n)))return!0;if(!jE){var a=Mee.call(n);return a==="[object GeneratorFunction]"}if(!H5)return!1;if(typeof q5>"u"){var o=Fee();q5=o?H5(o):!1}return H5(n)===q5},BE=Function.prototype.toString,cm=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,x9,Zh;if(typeof cm=="function"&&typeof Object.defineProperty=="function")try{x9=Object.defineProperty({},"length",{get:function(){throw Zh}}),Zh={},cm(function(){throw 42},null,x9)}catch(n){n!==Zh&&(cm=null)}else cm=null;var jee=/^\s*class\b/,P9=function(n){try{var a=BE.call(n);return jee.test(a)}catch{return!1}},G5=function(n){try{return P9(n)?!1:(BE.call(n),!0)}catch{return!1}},Xh=Object.prototype.toString,Bee="[object Object]",$ee="[object Function]",zee="[object GeneratorFunction]",Hee="[object HTMLAllCollection]",qee="[object HTML document.all class]",Gee="[object HTMLCollection]",Wee=typeof Symbol=="function"&&!!Symbol.toStringTag,Qee=!(0 in[,]),M9=function(){return!1};if(typeof document=="object"){var Yee=document.all;Xh.call(Yee)===Xh.call(document.all)&&(M9=function(n){if((Qee||!n)&&(typeof n>"u"||typeof n=="object"))try{var a=Xh.call(n);return(a===Hee||a===qee||a===Gee||a===Bee)&&n("")==null}catch{}return!1})}var Kee=cm?function(n){if(M9(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;try{cm(n,null,x9)}catch(a){if(a!==Zh)return!1}return!P9(n)&&G5(n)}:function(n){if(M9(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(Wee)return G5(n);if(P9(n))return!1;var a=Xh.call(n);return a!==$ee&&a!==zee&&!/^\[object HTML/.test(a)?!1:G5(n)},Zee=Kee,Xee=Object.prototype.toString,$E=Object.prototype.hasOwnProperty,Jee=function(n,a,o){for(var l=0,c=n.length;l<c;l++)$E.call(n,l)&&(o==null?a(n[l],l,n):a.call(o,n[l],l,n))},ete=function(n,a,o){for(var l=0,c=n.length;l<c;l++)o==null?a(n.charAt(l),l,n):a.call(o,n.charAt(l),l,n)},tte=function(n,a,o){for(var l in n)$E.call(n,l)&&(o==null?a(n[l],l,n):a.call(o,n[l],l,n))},nte=function(n,a,o){if(!Zee(a))throw new TypeError("iterator must be a function");var l;arguments.length>=3&&(l=o),Xee.call(n)==="[object Array]"?Jee(n,a,l):typeof n=="string"?ete(n,a,l):tte(n,a,l)},zE=nte,ate=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],W5=ate,rte=typeof globalThis>"u"?by:globalThis,HE=function(){for(var n=[],a=0;a<W5.length;a++)typeof rte[W5[a]]=="function"&&(n[n.length]=W5[a]);return n},h6=zE,ote=HE,GS=_y,Ny=Iy,Jh=U6,ste=Ny("Object.prototype.toString"),qE=M6(),WS=typeof globalThis>"u"?by:globalThis,D9=ote(),Ry=Ny("String.prototype.slice"),Q5=Object.getPrototypeOf,ite=Ny("Array.prototype.indexOf",!0)||function(n,a){for(var o=0;o<n.length;o+=1)if(n[o]===a)return o;return-1},g6={__proto__:null};qE&&Jh&&Q5?h6(D9,function(n){var a=new WS[n];if(Symbol.toStringTag in a){var o=Q5(a),l=Jh(o,Symbol.toStringTag);if(!l){var c=Q5(o);l=Jh(c,Symbol.toStringTag)}g6["$"+n]=GS(l.get)}}):h6(D9,function(n){var a=new WS[n],o=a.slice||a.set;o&&(g6["$"+n]=GS(o))});var lte=function(n){var a=!1;return h6(g6,function(o,l){if(!a)try{"$"+o(n)===l&&(a=Ry(l,1))}catch{}}),a},ute=function(n){var a=!1;return h6(g6,function(o,l){if(!a)try{o(n),a=Ry(l,1)}catch{}}),a},cte=function(n){if(!n||typeof n!="object")return!1;if(!qE){var a=Ry(ste(n),8,-1);return ite(D9,a)>-1?a:a!=="Object"?!1:ute(n)}return Jh?lte(n):null},y6=zE,dte=HE,QS=_y,Oy=Iy,e6=U6,mte=Oy("Object.prototype.toString"),GE=M6(),YS=typeof globalThis>"u"?by:globalThis,U9=dte(),Ly=Oy("String.prototype.slice"),Y5=Object.getPrototypeOf,fte=Oy("Array.prototype.indexOf",!0)||function(n,a){for(var o=0;o<n.length;o+=1)if(n[o]===a)return o;return-1},v6={__proto__:null};GE&&e6&&Y5?y6(U9,function(n){var a=new YS[n];if(Symbol.toStringTag in a){var o=Y5(a),l=e6(o,Symbol.toStringTag);if(!l){var c=Y5(o);l=e6(c,Symbol.toStringTag)}v6["$"+n]=QS(l.get)}}):y6(U9,function(n){var a=new YS[n],o=a.slice||a.set;o&&(v6["$"+n]=QS(o))});var pte=function(n){var a=!1;return y6(v6,function(o,l){if(!a)try{"$"+o(n)===l&&(a=Ly(l,1))}catch{}}),a},hte=function(n){var a=!1;return y6(v6,function(o,l){if(!a)try{o(n),a=Ly(l,1)}catch{}}),a},gte=function(n){if(!n||typeof n!="object")return!1;if(!GE){var a=Ly(mte(n),8,-1);return fte(U9,a)>-1?a:a!=="Object"?!1:hte(n)}return e6?pte(n):null},yte=gte,vte=function(n){return!!yte(n)};(function(n){var a=Pee,o=Vee,l=cte,c=vte;function p(de){return de.call.bind(de)}var f=typeof BigInt<"u",y=typeof Symbol<"u",b=p(Object.prototype.toString),C=p(Number.prototype.valueOf),_=p(String.prototype.valueOf),N=p(Boolean.prototype.valueOf);if(f)var O=p(BigInt.prototype.valueOf);if(y)var L=p(Symbol.prototype.valueOf);function x(de,Ao){if(typeof de!="object")return!1;try{return Ao(de),!0}catch{return!1}}n.isArgumentsObject=a,n.isGeneratorFunction=o,n.isTypedArray=c;function D(de){return typeof Promise<"u"&&de instanceof Promise||de!==null&&typeof de=="object"&&typeof de.then=="function"&&typeof de.catch=="function"}n.isPromise=D;function j(de){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(de):c(de)||se(de)}n.isArrayBufferView=j;function V(de){return l(de)==="Uint8Array"}n.isUint8Array=V;function Y(de){return l(de)==="Uint8ClampedArray"}n.isUint8ClampedArray=Y;function Z(de){return l(de)==="Uint16Array"}n.isUint16Array=Z;function Q(de){return l(de)==="Uint32Array"}n.isUint32Array=Q;function te(de){return l(de)==="Int8Array"}n.isInt8Array=te;function ie(de){return l(de)==="Int16Array"}n.isInt16Array=ie;function ae(de){return l(de)==="Int32Array"}n.isInt32Array=ae;function Ce(de){return l(de)==="Float32Array"}n.isFloat32Array=Ce;function Se(de){return l(de)==="Float64Array"}n.isFloat64Array=Se;function Ye(de){return l(de)==="BigInt64Array"}n.isBigInt64Array=Ye;function Be(de){return l(de)==="BigUint64Array"}n.isBigUint64Array=Be;function Ge(de){return b(de)==="[object Map]"}Ge.working=typeof Map<"u"&&Ge(new Map);function Ne(de){return typeof Map>"u"?!1:Ge.working?Ge(de):de instanceof Map}n.isMap=Ne;function et(de){return b(de)==="[object Set]"}et.working=typeof Set<"u"&&et(new Set);function mt(de){return typeof Set>"u"?!1:et.working?et(de):de instanceof Set}n.isSet=mt;function Rt(de){return b(de)==="[object WeakMap]"}Rt.working=typeof WeakMap<"u"&&Rt(new WeakMap);function Qn(de){return typeof WeakMap>"u"?!1:Rt.working?Rt(de):de instanceof WeakMap}n.isWeakMap=Qn;function be(de){return b(de)==="[object WeakSet]"}be.working=typeof WeakSet<"u"&&be(new WeakSet);function Pe(de){return be(de)}n.isWeakSet=Pe;function we(de){return b(de)==="[object ArrayBuffer]"}we.working=typeof ArrayBuffer<"u"&&we(new ArrayBuffer);function ct(de){return typeof ArrayBuffer>"u"?!1:we.working?we(de):de instanceof ArrayBuffer}n.isArrayBuffer=ct;function z(de){return b(de)==="[object DataView]"}z.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&z(new DataView(new ArrayBuffer(1),0,1));function se(de){return typeof DataView>"u"?!1:z.working?z(de):de instanceof DataView}n.isDataView=se;var me=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function We(de){return b(de)==="[object SharedArrayBuffer]"}function gt(de){return typeof me>"u"?!1:(typeof We.working>"u"&&(We.working=We(new me)),We.working?We(de):de instanceof me)}n.isSharedArrayBuffer=gt;function it(de){return b(de)==="[object AsyncFunction]"}n.isAsyncFunction=it;function tt(de){return b(de)==="[object Map Iterator]"}n.isMapIterator=tt;function lt(de){return b(de)==="[object Set Iterator]"}n.isSetIterator=lt;function _t(de){return b(de)==="[object Generator]"}n.isGeneratorObject=_t;function Yt(de){return b(de)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=Yt;function In(de){return x(de,C)}n.isNumberObject=In;function qt(de){return x(de,_)}n.isStringObject=qt;function nn(de){return x(de,N)}n.isBooleanObject=nn;function Nt(de){return f&&x(de,O)}n.isBigIntObject=Nt;function sn(de){return y&&x(de,L)}n.isSymbolObject=sn;function Nn(de){return In(de)||qt(de)||nn(de)||Nt(de)||sn(de)}n.isBoxedPrimitive=Nn;function Wr(de){return typeof Uint8Array<"u"&&(ct(de)||gt(de))}n.isAnyArrayBuffer=Wr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(de){Object.defineProperty(n,de,{enumerable:!1,value:function(){throw new Error(de+" is not supported in userland")}})})})(LE);var Tte=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},F9={exports:{}};typeof Object.create=="function"?F9.exports=function(n,a){a&&(n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:F9.exports=function(n,a){if(a){n.super_=a;var o=function(){};o.prototype=a.prototype,n.prototype=new o,n.prototype.constructor=n}};var bte=F9.exports;(function(n){var a=Object.getOwnPropertyDescriptors||function(z){for(var se=Object.keys(z),me={},We=0;We<se.length;We++)me[se[We]]=Object.getOwnPropertyDescriptor(z,se[We]);return me},o=/%[sdj%]/g;n.format=function(z){if(!te(z)){for(var se=[],me=0;me<arguments.length;me++)se.push(f(arguments[me]));return se.join(" ")}for(var me=1,We=arguments,gt=We.length,it=String(z).replace(o,function(_t){if(_t==="%%")return"%";if(me>=gt)return _t;switch(_t){case"%s":return String(We[me++]);case"%d":return Number(We[me++]);case"%j":try{return JSON.stringify(We[me++])}catch{return"[Circular]"}default:return _t}}),tt=We[me];me<gt;tt=We[++me])Y(tt)||!Se(tt)?it+=" "+tt:it+=" "+f(tt);return it},n.deprecate=function(z,se){if(typeof St<"u"&&St.noDeprecation===!0)return z;if(typeof St>"u")return function(){return n.deprecate(z,se).apply(this,arguments)};var me=!1;function We(){if(!me){if(St.throwDeprecation)throw new Error(se);St.traceDeprecation?console.trace(se):console.error(se),me=!0}return z.apply(this,arguments)}return We};var l={},c=/^$/;if(St.env.NODE_DEBUG){var p=St.env.NODE_DEBUG;p=p.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+p+"$","i")}n.debuglog=function(z){if(z=z.toUpperCase(),!l[z])if(c.test(z)){var se=St.pid;l[z]=function(){var me=n.format.apply(n,arguments);console.error("%s %d: %s",z,se,me)}}else l[z]=function(){};return l[z]};function f(z,se){var me={seen:[],stylize:b};return arguments.length>=3&&(me.depth=arguments[2]),arguments.length>=4&&(me.colors=arguments[3]),V(se)?me.showHidden=se:se&&n._extend(me,se),ae(me.showHidden)&&(me.showHidden=!1),ae(me.depth)&&(me.depth=2),ae(me.colors)&&(me.colors=!1),ae(me.customInspect)&&(me.customInspect=!0),me.colors&&(me.stylize=y),_(me,z,me.depth)}n.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function y(z,se){var me=f.styles[se];return me?"\x1B["+f.colors[me][0]+"m"+z+"\x1B["+f.colors[me][1]+"m":z}function b(z,se){return z}function C(z){var se={};return z.forEach(function(me,We){se[me]=!0}),se}function _(z,se,me){if(z.customInspect&&se&&Ge(se.inspect)&&se.inspect!==n.inspect&&!(se.constructor&&se.constructor.prototype===se)){var We=se.inspect(me,z);return te(We)||(We=_(z,We,me)),We}var gt=N(z,se);if(gt)return gt;var it=Object.keys(se),tt=C(it);if(z.showHidden&&(it=Object.getOwnPropertyNames(se)),Be(se)&&(it.indexOf("message")>=0||it.indexOf("description")>=0))return O(se);if(it.length===0){if(Ge(se)){var lt=se.name?": "+se.name:"";return z.stylize("[Function"+lt+"]","special")}if(Ce(se))return z.stylize(RegExp.prototype.toString.call(se),"regexp");if(Ye(se))return z.stylize(Date.prototype.toString.call(se),"date");if(Be(se))return O(se)}var _t="",Yt=!1,In=["{","}"];if(j(se)&&(Yt=!0,In=["[","]"]),Ge(se)){var qt=se.name?": "+se.name:"";_t=" [Function"+qt+"]"}if(Ce(se)&&(_t=" "+RegExp.prototype.toString.call(se)),Ye(se)&&(_t=" "+Date.prototype.toUTCString.call(se)),Be(se)&&(_t=" "+O(se)),it.length===0&&(!Yt||se.length==0))return In[0]+_t+In[1];if(me<0)return Ce(se)?z.stylize(RegExp.prototype.toString.call(se),"regexp"):z.stylize("[Object]","special");z.seen.push(se);var nn;return Yt?nn=L(z,se,me,tt,it):nn=it.map(function(Nt){return x(z,se,me,tt,Nt,Yt)}),z.seen.pop(),D(nn,_t,In)}function N(z,se){if(ae(se))return z.stylize("undefined","undefined");if(te(se)){var me="'"+JSON.stringify(se).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return z.stylize(me,"string")}if(Q(se))return z.stylize(""+se,"number");if(V(se))return z.stylize(""+se,"boolean");if(Y(se))return z.stylize("null","null")}function O(z){return"["+Error.prototype.toString.call(z)+"]"}function L(z,se,me,We,gt){for(var it=[],tt=0,lt=se.length;tt<lt;++tt)be(se,String(tt))?it.push(x(z,se,me,We,String(tt),!0)):it.push("");return gt.forEach(function(_t){_t.match(/^\d+$/)||it.push(x(z,se,me,We,_t,!0))}),it}function x(z,se,me,We,gt,it){var tt,lt,_t;if(_t=Object.getOwnPropertyDescriptor(se,gt)||{value:se[gt]},_t.get?_t.set?lt=z.stylize("[Getter/Setter]","special"):lt=z.stylize("[Getter]","special"):_t.set&&(lt=z.stylize("[Setter]","special")),be(We,gt)||(tt="["+gt+"]"),lt||(z.seen.indexOf(_t.value)<0?(Y(me)?lt=_(z,_t.value,null):lt=_(z,_t.value,me-1),lt.indexOf(`
199
199
  `)>-1&&(it?lt=lt.split(`
200
200
  `).map(function(Yt){return" "+Yt}).join(`
201
201
  `).slice(2):lt=`
@@ -208,4 +208,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
208
208
  `),y=`
209
209
  `+o+(p.length?c("│"):" ")+" ";return o+f.join(y)+`
210
210
  `+p.map(function(b,C){var _=C===p.length-1,N=b.nodes&&b.nodes.length,O=o+(_?" ":c("│"))+" ";return o+c(_?"└":"├")+c("─")+c(N?"┬":"─")+" "+n(b,O,l).slice(o.length+2)}).join("")};const wte=Ste,KS=Symbol("avvio.TimeTree.untrackNode"),Z5=Symbol("avvio.TimeTree.trackNode"),ZS=Symbol("avvio.TimeTree.getParent"),XS=Symbol("avvio.TimeTree.getNode"),JS=Symbol("avvio.TimeTree.addNode");let Cte=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Z5](n){this.tableId.set(n.id,n),this.tableLabel.has(n.label)?this.tableLabel.get(n.label).push(n):this.tableLabel.set(n.label,[n])}[KS](n){this.tableId.delete(n.id);const a=this.tableLabel.get(n.label);if(a.id){this.tableLabel.delete(n.label);return}a.pop(),a.length===0&&this.tableLabel.delete(n.label)}[ZS](n){if(n===null)return this.root;const a=this.tableLabel.get(n);return a.id?a:a[a.length-1]}[XS](n){return this.tableId.get(n)}[JS](n,a,o){if(n===null)return this.root={id:"root",label:a,start:o,nodes:[]},this[Z5](this.root),this.root.id;const l=this[ZS](n),c=`${a}-${Math.random()}`,p={id:c,parent:n,start:o,label:a,nodes:[]};return l.nodes.push(p),this[Z5](p),c}start(n,a,o=Date.now()){return this[JS](n,a,o)}stop(n,a=Date.now()){const o=this[XS](n);o&&(o.stop=a,o.diff=o.stop-o.start||0,this[KS](o))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const n=o=>(o.label=`${o.label} ${o.diff} ms`,o.nodes.length>0&&(o.nodes=o.nodes.map(l=>n(l))),o),a=n(this.toJSON());return wte(a)}};var Ete=Cte,Ay={exports:{}},V9={exports:{}},X5,ew;function _te(){if(ew)return X5;ew=1;var n=1e3,a=n*60,o=a*60,l=o*24,c=l*7,p=l*365.25;X5=function(_,N){N=N||{};var O=typeof _;if(O==="string"&&_.length>0)return f(_);if(O==="number"&&isFinite(_))return N.long?b(_):y(_);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function f(_){if(_=String(_),!(_.length>100)){var N=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(N){var O=parseFloat(N[1]),L=(N[2]||"ms").toLowerCase();switch(L){case"years":case"year":case"yrs":case"yr":case"y":return O*p;case"weeks":case"week":case"w":return O*c;case"days":case"day":case"d":return O*l;case"hours":case"hour":case"hrs":case"hr":case"h":return O*o;case"minutes":case"minute":case"mins":case"min":case"m":return O*a;case"seconds":case"second":case"secs":case"sec":case"s":return O*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return O;default:return}}}}function y(_){var N=Math.abs(_);return N>=l?Math.round(_/l)+"d":N>=o?Math.round(_/o)+"h":N>=a?Math.round(_/a)+"m":N>=n?Math.round(_/n)+"s":_+"ms"}function b(_){var N=Math.abs(_);return N>=l?C(_,N,l,"day"):N>=o?C(_,N,o,"hour"):N>=a?C(_,N,a,"minute"):N>=n?C(_,N,n,"second"):_+" ms"}function C(_,N,O,L){var x=N>=O*1.5;return Math.round(_/O)+" "+L+(x?"s":"")}return X5}function Ite(n){o.debug=o,o.default=o,o.coerce=b,o.disable=p,o.enable=c,o.enabled=f,o.humanize=_te(),o.destroy=C,Object.keys(n).forEach(_=>{o[_]=n[_]}),o.names=[],o.skips=[],o.formatters={};function a(_){let N=0;for(let O=0;O<_.length;O++)N=(N<<5)-N+_.charCodeAt(O),N|=0;return o.colors[Math.abs(N)%o.colors.length]}o.selectColor=a;function o(_){let N,O=null,L,x;function D(...j){if(!D.enabled)return;const V=D,Y=Number(new Date),Z=Y-(N||Y);V.diff=Z,V.prev=N,V.curr=Y,N=Y,j[0]=o.coerce(j[0]),typeof j[0]!="string"&&j.unshift("%O");let Q=0;j[0]=j[0].replace(/%([a-zA-Z%])/g,(te,ie)=>{if(te==="%%")return"%";Q++;const ae=o.formatters[ie];if(typeof ae=="function"){const Ce=j[Q];te=ae.call(V,Ce),j.splice(Q,1),Q--}return te}),o.formatArgs.call(V,j),(V.log||o.log).apply(V,j)}return D.namespace=_,D.useColors=o.useColors(),D.color=o.selectColor(_),D.extend=l,D.destroy=o.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>O!==null?O:(L!==o.namespaces&&(L=o.namespaces,x=o.enabled(_)),x),set:j=>{O=j}}),typeof o.init=="function"&&o.init(D),D}function l(_,N){const O=o(this.namespace+(typeof N>"u"?":":N)+_);return O.log=this.log,O}function c(_){o.save(_),o.namespaces=_,o.names=[],o.skips=[];let N;const O=(typeof _=="string"?_:"").split(/[\s,]+/),L=O.length;for(N=0;N<L;N++)O[N]&&(_=O[N].replace(/\*/g,".*?"),_[0]==="-"?o.skips.push(new RegExp("^"+_.slice(1)+"$")):o.names.push(new RegExp("^"+_+"$")))}function p(){const _=[...o.names.map(y),...o.skips.map(y).map(N=>"-"+N)].join(",");return o.enable(""),_}function f(_){if(_[_.length-1]==="*")return!0;let N,O;for(N=0,O=o.skips.length;N<O;N++)if(o.skips[N].test(_))return!1;for(N=0,O=o.names.length;N<O;N++)if(o.names[N].test(_))return!0;return!1}function y(_){return _.toString().substring(2,_.toString().length-2).replace(/\.\*\?$/,"*")}function b(_){return _ instanceof Error?_.stack||_.message:_}function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}var Nte=Ite;(function(n,a){a.formatArgs=l,a.save=c,a.load=p,a.useColors=o,a.storage=f(),a.destroy=(()=>{let b=!1;return()=>{b||(b=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function l(b){if(b[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+b[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const C="color: "+this.color;b.splice(1,0,C,"color: inherit");let _=0,N=0;b[0].replace(/%[a-zA-Z%]/g,O=>{O!=="%%"&&(_++,O==="%c"&&(N=_))}),b.splice(N,0,C)}a.log=console.debug||console.log||(()=>{});function c(b){try{b?a.storage.setItem("debug",b):a.storage.removeItem("debug")}catch{}}function p(){let b;try{b=a.storage.getItem("debug")}catch{}return!b&&typeof St<"u"&&"env"in St&&(b=St.env.DEBUG),b}function f(){try{return localStorage}catch{}}n.exports=Nte(a);const{formatters:y}=n.exports;y.j=function(b){try{return JSON.stringify(b)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}})(V9,V9.exports);var QE=V9.exports;const Rte=kE,Ote=OE.EventEmitter,Lte=P6.inherits,Va=QE("avvio"),{AVV_ERR_READY_TIMEOUT:Ate}=WE,J5=Symbol.for("plugin-meta");function xte(n,a){return n[J5]&&n[J5].name?n[J5].name:typeof a<"u"&&typeof a!="function"&&a.name?a.name:n.name?n.name:n.toString().split(`
211
- `).slice(0,2).map(o=>o.trim()).join(" -- ")}function Pte(){const n={};return n.promise=new Promise((a,o)=>{n.resolve=a,n.reject=o}),n}function Rm(n,a,o,l,c){this.started=!1,this.func=a,this.opts=o,this.onFinish=null,this.parent=n,this.timeout=c===void 0?n._timeout:c,this.name=xte(a,o),this.isAfter=l,this.q=Rte(n,Mte,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}Lte(Rm,Ote);Rm.prototype.exec=function(n,a){const o=this.func;let l=!1;const c=this.name;if(this.parent._error&&!this.isAfter){Va("skipping loading of plugin as parent errored and it is not an after",c),St.nextTick(a);return}if(this.isAfter)this.server=n;else try{this.server=this.parent.override(n,o,this.opts)}catch(b){return Va("override errored",c),a(b)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Va("exec",c);let p;const f=b=>{if(l){Va("loading complete",c);return}this._error=b,Va(b?"exec errored":"exec completed",c),l=!0,p&&clearTimeout(p),a(b)};this.timeout>0&&(Va("setting up timeout",c,this.timeout),p=setTimeout(function(){Va("timed out",c),p=null;const b=new Ate(c);b.fn=o,f(b)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const y=o(this.server,this.opts,f);y&&typeof y.then=="function"&&(Va("exec: resolving promise",c),y.then(()=>St.nextTick(f),b=>St.nextTick(f,b)))};Rm.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const n=()=>{this.server.after((o,l)=>{this._error=o,this.q.pause(),o?(Va("rejecting promise",this.name,o),this._promise.reject(o)):(Va("resolving promise",this.name),this._promise.resolve()),this._promise=null,St.nextTick(l,o)}),this.q.resume()};let a;return this._promise?a=Promise.resolve():(this._promise=Pte(),a=this._promise.promise,this.server?n():this.on("start",n)),a};Rm.prototype.enqueue=function(n,a){Va("enqueue",this.name,n.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(n,a)};Rm.prototype.finish=function(n,a){Va("finish",this.name,n);const o=()=>{this.loaded||(Va("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,a(n))};if(n){this._promise&&(this._promise.reject(n),this._promise=null),o();return}const l=()=>{if(Va("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const c=()=>{Va("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(c,c),this._promise=null}else o();else Va("delayed",this.name),this.q.drain=()=>{Va("drain",this.name),this.q.drain=Dte,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function Mte(n,a){const o=this;St.nextTick(xy.bind(o),n,a)}function xy(n,a){if(typeof n.func.then=="function"){n.func.then(l=>{typeof l.default=="function"&&(l=l.default),n.func=l,xy.call(this,n,a)},a);return}const o=this._current[0];this._current.unshift(n),n.exec(o&&o.server||this._server,l=>{n.finish(l,c=>{this._current.shift(),a(c)})})}function Dte(){}Ay.exports=Rm;Ay.exports.loadPlugin=xy;var Ute=Ay.exports;const tw=kE,Fte=OE.EventEmitter,Vte=P6.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:e9,AVV_ERR_CALLBACK_NOT_FN:i2,AVV_ERR_PLUGIN_NOT_VALID:jte,AVV_ERR_ROOT_PLG_BOOTED:Bte,AVV_ERR_READY_TIMEOUT:$te}=WE,zte=Ete,j9=Ute,Sm=QE("avvio"),T6=Symbol("kAvvio"),t9=Symbol("kThenifyDoNotWrap");function Hte(n,a,o){const l=a.expose||{},c=l.use||"use",p=l.after||"after",f=l.ready||"ready",y=l.onClose||"onClose",b=l.close||"close";if(n[c])throw new e9(c);if(n[p])throw new e9(p);if(n[f])throw new e9(f);n[c]=function(C,_){return o.use(C,_),this},Object.defineProperty(n,"then",{get:YE.bind(o)}),n[T6]=!0,n[p]=function(C){return typeof C!="function"?o._loadRegistered():(o.after(n9(C,this)),this)},n[f]=function(C){if(C&&typeof C!="function")throw new i2(f,typeof C);return o.ready(C?n9(C,this):void 0)},n[y]=function(C){if(typeof C!="function")throw new i2(y,typeof C);return o.onClose(Yte(C,this)),this},n[b]=function(C){if(C&&typeof C!="function")throw new i2(b,typeof C);return C?(o.close(n9(C,this)),this):o.close()}}function Ca(n,a,o){if(typeof n=="function"&&arguments.length===1&&(o=n,a={},n=null),typeof a=="function"&&(o=a,a={}),a=a||{},!(this instanceof Ca)){const l=new Ca(n,a,o);return n&&Hte(n,a,l),l}a.autostart!==!1&&(a.autostart=!0),n=n||this,this._timeout=Number(a.timeout)||0,this._server=n,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),o&&this.once("start",o),this.started=!1,this.booted=!1,this.pluginTree=new zte,this._readyQ=tw(this,KE,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=nw},this._closeQ=tw(this,Qte,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=nw},this._doStart=null,this._root=new j9(this,qte.bind(this),a,!1,0),this._root.once("start",(l,c,p)=>{const f=this.pluginTree.start(null,c,p);this._root.once("loaded",(y,b,C)=>{this.pluginTree.stop(f,C)})}),j9.loadPlugin.call(this,this._root,l=>{Sm("root plugin ready");try{this.emit("preReady"),this._root=null}catch(c){l=l||this._error||c}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function qte(n,a,o){this._doStart=o,a.autostart&&this.start()}Vte(Ca,Fte);Ca.prototype.start=function(){return this.started=!0,St.nextTick(this._doStart),this};Ca.prototype.override=function(n,a,o){return n};function Gte(n){if(n&&typeof n=="object"&&typeof n.default=="function"&&(n=n.default),!(n&&(typeof n=="function"||typeof n.then=="function")))throw new jte(typeof n);return n}Ca.prototype[T6]=!0;Ca.prototype.use=function(n,a){return this._lastUsed=this._addPlugin(n,a,!1),this};Ca.prototype._loadRegistered=function(){const n=this._current[0];return!this.started&&!this.booted&&St.nextTick(()=>this._root.q.resume()),n?n.loadedSoFar():Promise.resolve()};Object.defineProperty(Ca.prototype,"then",{get:YE});Ca.prototype._addPlugin=function(n,a,o){if(n=Gte(n),a=a||{},this.booted)throw new Bte;const l=this._current[0],c=new j9(this,n,a,o);if(c.once("start",(p,f,y)=>{const b=this.pluginTree.start(l.name,f,y);c.once("loaded",(C,_,N)=>{this.pluginTree.stop(b,N)})}),l.loaded)throw new Error(c.name,l.name);return l.enqueue(c,p=>{p&&(this._error=p)}),c};Ca.prototype.after=function(n){if(!n)return this._loadRegistered();this._addPlugin(a.bind(this),{},!0);function a(o,l,c){KE.call(this,n,c)}return this};Ca.prototype.onClose=function(n){if(typeof n!="function")throw new Error("not a function");n[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(n,a.bind(this));function a(o){o&&(this._error=o)}return this};Ca.prototype.close=function(n){let a;if(n){if(typeof n!="function")throw new i2("close",typeof n)}else a=new Promise(function(o,l){n=function(c){if(c)return l(c);o()}});return this.ready(()=>{this._error=null,this._closeQ.push(n),St.nextTick(this._closeQ.resume.bind(this._closeQ))}),a};Ca.prototype.ready=function(n){if(n){if(typeof n!="function")throw new i2("ready",typeof n);this._readyQ.push(n),queueMicrotask(this.start.bind(this));return}return new Promise((a,o)=>{this._readyQ.push(c),this.start();const l=this._current[0].server;function c(p,f,y){p?o(p):a(l),St.nextTick(y)}})};Ca.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Ca.prototype.toJSON=function(){return this.pluginTree.toJSON()};function nw(){}function YE(){if(this.booted){Sm("thenify returning null because we are already booted");return}if(this[t9]){this[t9]=!1;return}return Sm("thenify"),(n,a)=>this._loadRegistered().then(()=>(this[t9]=!0,n(this._server)),a)}function KE(n,a){const o=this._server,l=this._error;let c;if(this._error=null,n.length===0)this._error=l,c=n(),c&&!c[T6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(n.length===1)c=n(l),c&&!c[T6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(this._timeout===0){const p=f=>{this._error=f,a(this._error)};n.length===2?n(l,p):n(l,o,p)}else Wte.call(this,n,l,o,a)}function Wte(n,a,o,l){const c=n.name;Sm("setting up ready timeout",c,this._timeout);let p=setTimeout(()=>{Sm("timed out",c),p=null;const y=new $te(c);y.fn=n,this._error=y,l(y)},this._timeout);n.length===2?n(a,f.bind(this)):n(a,o,f.bind(this));function f(y){p&&(clearTimeout(p),this._error=y,l(this._error))}}function Qte(n,a){const o=this._server,l=n[this._isOnCloseHandlerKey];if(n.length===0||n.length===1){let c;l?c=n(o):c=n(this._error),c&&typeof c.then=="function"?(Sm("resolving close/onClose promise"),c.then(()=>St.nextTick(a),p=>St.nextTick(a,p))):St.nextTick(a)}else n.length===2?n(l?o:this._error,a):l?n(o,a):n(this._error,o,a)}function Yte(n,a){return o.bind(a);function o(l,c){let p;n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===1?(p=n(this),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n(this,c)}}function n9(n,a){return o.bind(a);function o(l,c){let p;n?n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c,l)},c):St.nextTick(c,l)):n.length===1?(p=n(l),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===2?n(l,c):n(l,this,c):St.nextTick(c)}}ky.exports=Ca;ky.exports.express=function(n){return Ca(n,{expose:{use:"load"}})};var Kte=ky.exports;const Zte=EJ(Kte);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const n=["webkit","moz","ms","o"];for(const a of n)window.requestAnimationFrame=window.requestAnimationFrame||window[`${a}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${a}CancelAnimationFrame`]||window[`${a}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let a=0;const o=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const c=o?window.performance.now():new Date().getTime(),p=Math.max(0,16-(c-a)),f=window.setTimeout(function(){l(c+p)},p);return a=c+p,f},window.cancelAnimationFrame=clearTimeout}})();function Xte(n,a=!0,o=!0,l={friendsTab:"enabled"}){const c=a?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",p=a?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",f=Zte(Object.create({}),{autostart:!1});return f.use(tJ,{friendsTab:l.friendsTab}),f.use(QX,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),f.use(XX,{videoPlayerController:l==null?void 0:l.videoPlayerController}),f.use(eJ,{onContentActivate:l==null?void 0:l.onContentActivate,withAd:l==null?void 0:l.withAd,withAdNotification:l==null?void 0:l.withAdNotification}),f.use(fX,{sdkKey:n,host:c,analyticsHost:p,version:l==null?void 0:l.version}),f.use(vX),f.use(ZX),f.use(pJ),f.use(FX),f.use(CJ),f.after((y,b,C)=>{if(y)throw y;b.ready(),C()}),o&&f.after(async(y,b,C)=>{if(y)throw y;await b.sdk.initializeApp(),C()}),f.onClose(()=>{console.log("close")}),f}const Jte=({sdkKey:n,plugins:a,production:o,autoEnable:l,onDeepLinkHandled:c,videoPlayerController:p,onContentActivate:f,withAdNotification:y,withAd:b,friendsTab:C})=>{const[_,N]=W.useState(null);return W.useEffect(()=>{let O=!1;if(!n)return console.error("streamlayer sdk key should be provided"),N(x=>(x!==null&&typeof x.disableApp=="function"&&x.disableApp(),null)),()=>{O=!0};const L=Xte(n,o,l,{version:"1.9.6",onDeepLinkHandled:c,videoPlayerController:p,onContentActivate:f,withAdNotification:y,withAd:b,friendsTab:C});if(a)for(const x of a)L.use(x);return L.ready().then(x=>{O||(N(x.sdk),typeof window<"u")}).catch(x=>console.log(x)),()=>{O=!0,L.close(function(x){if(x)throw x})}},[n,o]),_},ene=({event:n})=>{const a=Py(),o=ane();return W.useEffect(()=>(a&&(n&&(a.createEventSession(n),o&&(o.current=n)),!n&&(o!=null&&o.current)&&(a.createEventSession(""),o.current="")),()=>{a&&a.disableApp()}),[n,o,a]),null};var ZE=(n=>(n[n.UNSET=0]="UNSET",n[n.CONNECTED=1]="CONNECTED",n[n.READY=2]="READY",n))(ZE||{});const tne={status:0,sdk:null},V6=W.createContext(tne),nne=({sdkKey:n,theme:a,plugins:o,children:l,event:c,production:p=!0,autoEnable:f=!0,withAdNotification:y,withAd:b=!0,friendsTab:C="enabled",onDeepLinkHandled:_,videoPlayerController:N,onContentActivate:O})=>{const L=Jte({sdkKey:n,plugins:o,production:p,autoEnable:f,onDeepLinkHandled:_,videoPlayerController:N,onContentActivate:O,withAdNotification:y,withAd:b,friendsTab:C}),x=W.useRef(""),D=W.useMemo(()=>L?{sdk:L,status:2,event:x,theme:a}:{status:1,sdk:null,event:x,theme:a},[L]);return W.useEffect(()=>{L&&L.options.setKey("friendsTab",C)},[L,C]),W.useEffect(()=>()=>{_&&(L==null||L.removeDeepLinkHandler(_)),N&&(L==null||L.removeVideoPlayerController(N))},[L]),W.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!n,onDeepLinkHandled:!!_,videoPlayerController:!!N})},[n,_,N]),w.jsxs(V6.Provider,{value:D,children:[c!==void 0&&w.jsx(ene,{event:c}),l]})},Py=()=>{const{sdk:n}=W.useContext(V6);return n},ane=()=>{const{event:n}=W.useContext(V6);return n},rne=({sdkKey:n,plugins:a,children:o,onDeepLinkHandled:l,videoPlayerController:c,production:p=!0})=>w.jsx(nne,{sdkKey:n,plugins:a,production:p,autoEnable:!1,onDeepLinkHandled:l,videoPlayerController:c,children:o}),one=({children:n,overlays:a})=>{const{sdk:o,status:l}=W.useContext(V6);return l===ZE.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),n({})):o?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(UC,{style:{height:"100%"},children:w.jsx(LG,{sdk:o,overlays:a,children:n})})}):n({})};class sne extends W.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,o){console.error(a,o.componentStack)}render(){return this.state.hasError?this.props.children({}):w.jsx(one,{...this.props})}}const ine=({token:n,schema:a})=>{const o=Py();return W.useEffect(()=>{n&&a&&o&&o.authorizationBypass(a,n),o&&(o.withAuth=!0)},[n,a,o]),null},lne=()=>{const n=Py();return n?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(UC,{children:w.jsx(BG,{sdk:n})})}):null};exports.C=IC;exports.C$1=WV;exports.M=fy;exports.MastersStreamLayerProvider=rne;exports.MastersStreamLayerSDKReact=sne;exports.N=ca;exports.O=oy;exports.S=LC;exports.S$1=YV;exports.StreamLayerLogin=ine;exports.StreamLayerSDKPoints=lne;exports.T=my;exports.b=_C;exports.cx_default=Su;exports.d=KV;exports.k=xC;exports.l=qV;exports.m=r2;exports.m$1=HV;exports.n=iy;exports.p=zG;exports.styled_default=P;exports.useStore=Ut;exports.z=Cz;
211
+ `).slice(0,2).map(o=>o.trim()).join(" -- ")}function Pte(){const n={};return n.promise=new Promise((a,o)=>{n.resolve=a,n.reject=o}),n}function Rm(n,a,o,l,c){this.started=!1,this.func=a,this.opts=o,this.onFinish=null,this.parent=n,this.timeout=c===void 0?n._timeout:c,this.name=xte(a,o),this.isAfter=l,this.q=Rte(n,Mte,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}Lte(Rm,Ote);Rm.prototype.exec=function(n,a){const o=this.func;let l=!1;const c=this.name;if(this.parent._error&&!this.isAfter){Va("skipping loading of plugin as parent errored and it is not an after",c),St.nextTick(a);return}if(this.isAfter)this.server=n;else try{this.server=this.parent.override(n,o,this.opts)}catch(b){return Va("override errored",c),a(b)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Va("exec",c);let p;const f=b=>{if(l){Va("loading complete",c);return}this._error=b,Va(b?"exec errored":"exec completed",c),l=!0,p&&clearTimeout(p),a(b)};this.timeout>0&&(Va("setting up timeout",c,this.timeout),p=setTimeout(function(){Va("timed out",c),p=null;const b=new Ate(c);b.fn=o,f(b)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const y=o(this.server,this.opts,f);y&&typeof y.then=="function"&&(Va("exec: resolving promise",c),y.then(()=>St.nextTick(f),b=>St.nextTick(f,b)))};Rm.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const n=()=>{this.server.after((o,l)=>{this._error=o,this.q.pause(),o?(Va("rejecting promise",this.name,o),this._promise.reject(o)):(Va("resolving promise",this.name),this._promise.resolve()),this._promise=null,St.nextTick(l,o)}),this.q.resume()};let a;return this._promise?a=Promise.resolve():(this._promise=Pte(),a=this._promise.promise,this.server?n():this.on("start",n)),a};Rm.prototype.enqueue=function(n,a){Va("enqueue",this.name,n.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(n,a)};Rm.prototype.finish=function(n,a){Va("finish",this.name,n);const o=()=>{this.loaded||(Va("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,a(n))};if(n){this._promise&&(this._promise.reject(n),this._promise=null),o();return}const l=()=>{if(Va("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const c=()=>{Va("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(c,c),this._promise=null}else o();else Va("delayed",this.name),this.q.drain=()=>{Va("drain",this.name),this.q.drain=Dte,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function Mte(n,a){const o=this;St.nextTick(xy.bind(o),n,a)}function xy(n,a){if(typeof n.func.then=="function"){n.func.then(l=>{typeof l.default=="function"&&(l=l.default),n.func=l,xy.call(this,n,a)},a);return}const o=this._current[0];this._current.unshift(n),n.exec(o&&o.server||this._server,l=>{n.finish(l,c=>{this._current.shift(),a(c)})})}function Dte(){}Ay.exports=Rm;Ay.exports.loadPlugin=xy;var Ute=Ay.exports;const tw=kE,Fte=OE.EventEmitter,Vte=P6.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:e9,AVV_ERR_CALLBACK_NOT_FN:i2,AVV_ERR_PLUGIN_NOT_VALID:jte,AVV_ERR_ROOT_PLG_BOOTED:Bte,AVV_ERR_READY_TIMEOUT:$te}=WE,zte=Ete,j9=Ute,Sm=QE("avvio"),T6=Symbol("kAvvio"),t9=Symbol("kThenifyDoNotWrap");function Hte(n,a,o){const l=a.expose||{},c=l.use||"use",p=l.after||"after",f=l.ready||"ready",y=l.onClose||"onClose",b=l.close||"close";if(n[c])throw new e9(c);if(n[p])throw new e9(p);if(n[f])throw new e9(f);n[c]=function(C,_){return o.use(C,_),this},Object.defineProperty(n,"then",{get:YE.bind(o)}),n[T6]=!0,n[p]=function(C){return typeof C!="function"?o._loadRegistered():(o.after(n9(C,this)),this)},n[f]=function(C){if(C&&typeof C!="function")throw new i2(f,typeof C);return o.ready(C?n9(C,this):void 0)},n[y]=function(C){if(typeof C!="function")throw new i2(y,typeof C);return o.onClose(Yte(C,this)),this},n[b]=function(C){if(C&&typeof C!="function")throw new i2(b,typeof C);return C?(o.close(n9(C,this)),this):o.close()}}function Ca(n,a,o){if(typeof n=="function"&&arguments.length===1&&(o=n,a={},n=null),typeof a=="function"&&(o=a,a={}),a=a||{},!(this instanceof Ca)){const l=new Ca(n,a,o);return n&&Hte(n,a,l),l}a.autostart!==!1&&(a.autostart=!0),n=n||this,this._timeout=Number(a.timeout)||0,this._server=n,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),o&&this.once("start",o),this.started=!1,this.booted=!1,this.pluginTree=new zte,this._readyQ=tw(this,KE,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=nw},this._closeQ=tw(this,Qte,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=nw},this._doStart=null,this._root=new j9(this,qte.bind(this),a,!1,0),this._root.once("start",(l,c,p)=>{const f=this.pluginTree.start(null,c,p);this._root.once("loaded",(y,b,C)=>{this.pluginTree.stop(f,C)})}),j9.loadPlugin.call(this,this._root,l=>{Sm("root plugin ready");try{this.emit("preReady"),this._root=null}catch(c){l=l||this._error||c}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function qte(n,a,o){this._doStart=o,a.autostart&&this.start()}Vte(Ca,Fte);Ca.prototype.start=function(){return this.started=!0,St.nextTick(this._doStart),this};Ca.prototype.override=function(n,a,o){return n};function Gte(n){if(n&&typeof n=="object"&&typeof n.default=="function"&&(n=n.default),!(n&&(typeof n=="function"||typeof n.then=="function")))throw new jte(typeof n);return n}Ca.prototype[T6]=!0;Ca.prototype.use=function(n,a){return this._lastUsed=this._addPlugin(n,a,!1),this};Ca.prototype._loadRegistered=function(){const n=this._current[0];return!this.started&&!this.booted&&St.nextTick(()=>this._root.q.resume()),n?n.loadedSoFar():Promise.resolve()};Object.defineProperty(Ca.prototype,"then",{get:YE});Ca.prototype._addPlugin=function(n,a,o){if(n=Gte(n),a=a||{},this.booted)throw new Bte;const l=this._current[0],c=new j9(this,n,a,o);if(c.once("start",(p,f,y)=>{const b=this.pluginTree.start(l.name,f,y);c.once("loaded",(C,_,N)=>{this.pluginTree.stop(b,N)})}),l.loaded)throw new Error(c.name,l.name);return l.enqueue(c,p=>{p&&(this._error=p)}),c};Ca.prototype.after=function(n){if(!n)return this._loadRegistered();this._addPlugin(a.bind(this),{},!0);function a(o,l,c){KE.call(this,n,c)}return this};Ca.prototype.onClose=function(n){if(typeof n!="function")throw new Error("not a function");n[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(n,a.bind(this));function a(o){o&&(this._error=o)}return this};Ca.prototype.close=function(n){let a;if(n){if(typeof n!="function")throw new i2("close",typeof n)}else a=new Promise(function(o,l){n=function(c){if(c)return l(c);o()}});return this.ready(()=>{this._error=null,this._closeQ.push(n),St.nextTick(this._closeQ.resume.bind(this._closeQ))}),a};Ca.prototype.ready=function(n){if(n){if(typeof n!="function")throw new i2("ready",typeof n);this._readyQ.push(n),queueMicrotask(this.start.bind(this));return}return new Promise((a,o)=>{this._readyQ.push(c),this.start();const l=this._current[0].server;function c(p,f,y){p?o(p):a(l),St.nextTick(y)}})};Ca.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Ca.prototype.toJSON=function(){return this.pluginTree.toJSON()};function nw(){}function YE(){if(this.booted){Sm("thenify returning null because we are already booted");return}if(this[t9]){this[t9]=!1;return}return Sm("thenify"),(n,a)=>this._loadRegistered().then(()=>(this[t9]=!0,n(this._server)),a)}function KE(n,a){const o=this._server,l=this._error;let c;if(this._error=null,n.length===0)this._error=l,c=n(),c&&!c[T6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(n.length===1)c=n(l),c&&!c[T6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(this._timeout===0){const p=f=>{this._error=f,a(this._error)};n.length===2?n(l,p):n(l,o,p)}else Wte.call(this,n,l,o,a)}function Wte(n,a,o,l){const c=n.name;Sm("setting up ready timeout",c,this._timeout);let p=setTimeout(()=>{Sm("timed out",c),p=null;const y=new $te(c);y.fn=n,this._error=y,l(y)},this._timeout);n.length===2?n(a,f.bind(this)):n(a,o,f.bind(this));function f(y){p&&(clearTimeout(p),this._error=y,l(this._error))}}function Qte(n,a){const o=this._server,l=n[this._isOnCloseHandlerKey];if(n.length===0||n.length===1){let c;l?c=n(o):c=n(this._error),c&&typeof c.then=="function"?(Sm("resolving close/onClose promise"),c.then(()=>St.nextTick(a),p=>St.nextTick(a,p))):St.nextTick(a)}else n.length===2?n(l?o:this._error,a):l?n(o,a):n(this._error,o,a)}function Yte(n,a){return o.bind(a);function o(l,c){let p;n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===1?(p=n(this),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n(this,c)}}function n9(n,a){return o.bind(a);function o(l,c){let p;n?n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c,l)},c):St.nextTick(c,l)):n.length===1?(p=n(l),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===2?n(l,c):n(l,this,c):St.nextTick(c)}}ky.exports=Ca;ky.exports.express=function(n){return Ca(n,{expose:{use:"load"}})};var Kte=ky.exports;const Zte=EJ(Kte);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const n=["webkit","moz","ms","o"];for(const a of n)window.requestAnimationFrame=window.requestAnimationFrame||window[`${a}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${a}CancelAnimationFrame`]||window[`${a}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let a=0;const o=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const c=o?window.performance.now():new Date().getTime(),p=Math.max(0,16-(c-a)),f=window.setTimeout(function(){l(c+p)},p);return a=c+p,f},window.cancelAnimationFrame=clearTimeout}})();function Xte(n,a=!0,o=!0,l={friendsTab:"enabled"}){const c=a?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",p=a?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",f=Zte(Object.create({}),{autostart:!1});return f.use(tJ,{friendsTab:l.friendsTab}),f.use(QX,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),f.use(XX,{videoPlayerController:l==null?void 0:l.videoPlayerController}),f.use(eJ,{onContentActivate:l==null?void 0:l.onContentActivate,withAd:l==null?void 0:l.withAd,withAdNotification:l==null?void 0:l.withAdNotification}),f.use(fX,{sdkKey:n,host:c,analyticsHost:p,version:l==null?void 0:l.version}),f.use(vX),f.use(ZX),f.use(pJ),f.use(FX),f.use(CJ),f.after((y,b,C)=>{if(y)throw y;b.ready(),C()}),o&&f.after(async(y,b,C)=>{if(y)throw y;await b.sdk.initializeApp(),C()}),f.onClose(()=>{console.log("close")}),f}const Jte=({sdkKey:n,plugins:a,production:o,autoEnable:l,onDeepLinkHandled:c,videoPlayerController:p,onContentActivate:f,withAdNotification:y,withAd:b,friendsTab:C})=>{const[_,N]=W.useState(null);return W.useEffect(()=>{let O=!1;if(!n)return console.error("streamlayer sdk key should be provided"),N(x=>(x!==null&&typeof x.disableApp=="function"&&x.disableApp(),null)),()=>{O=!0};const L=Xte(n,o,l,{version:"1.9.8",onDeepLinkHandled:c,videoPlayerController:p,onContentActivate:f,withAdNotification:y,withAd:b,friendsTab:C});if(a)for(const x of a)L.use(x);return L.ready().then(x=>{O||(N(x.sdk),typeof window<"u")}).catch(x=>console.log(x)),()=>{O=!0,L.close(function(x){if(x)throw x})}},[n,o]),_},ene=({event:n})=>{const a=Py(),o=ane();return W.useEffect(()=>(a&&(n&&(a.createEventSession(n),o&&(o.current=n)),!n&&(o!=null&&o.current)&&(a.createEventSession(""),o.current="")),()=>{a&&a.disableApp()}),[n,o,a]),null};var ZE=(n=>(n[n.UNSET=0]="UNSET",n[n.CONNECTED=1]="CONNECTED",n[n.READY=2]="READY",n))(ZE||{});const tne={status:0,sdk:null},V6=W.createContext(tne),nne=({sdkKey:n,theme:a,plugins:o,children:l,event:c,production:p=!0,autoEnable:f=!0,withAdNotification:y,withAd:b=!0,friendsTab:C="enabled",onDeepLinkHandled:_,videoPlayerController:N,onContentActivate:O})=>{const L=Jte({sdkKey:n,plugins:o,production:p,autoEnable:f,onDeepLinkHandled:_,videoPlayerController:N,onContentActivate:O,withAdNotification:y,withAd:b,friendsTab:C}),x=W.useRef(""),D=W.useMemo(()=>L?{sdk:L,status:2,event:x,theme:a}:{status:1,sdk:null,event:x,theme:a},[L]);return W.useEffect(()=>{L&&L.options.setKey("friendsTab",C)},[L,C]),W.useEffect(()=>()=>{_&&(L==null||L.removeDeepLinkHandler(_)),N&&(L==null||L.removeVideoPlayerController(N))},[L]),W.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!n,onDeepLinkHandled:!!_,videoPlayerController:!!N})},[n,_,N]),w.jsxs(V6.Provider,{value:D,children:[c!==void 0&&w.jsx(ene,{event:c}),l]})},Py=()=>{const{sdk:n}=W.useContext(V6);return n},ane=()=>{const{event:n}=W.useContext(V6);return n},rne=({sdkKey:n,plugins:a,children:o,onDeepLinkHandled:l,videoPlayerController:c,production:p=!0})=>w.jsx(nne,{sdkKey:n,plugins:a,production:p,autoEnable:!1,onDeepLinkHandled:l,videoPlayerController:c,children:o}),one=({children:n,overlays:a})=>{const{sdk:o,status:l}=W.useContext(V6);return l===ZE.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),n({})):o?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(UC,{style:{height:"100%"},children:w.jsx(LG,{sdk:o,overlays:a,children:n})})}):n({})};class sne extends W.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,o){console.error(a,o.componentStack)}render(){return this.state.hasError?this.props.children({}):w.jsx(one,{...this.props})}}const ine=({token:n,schema:a})=>{const o=Py();return W.useEffect(()=>{n&&a&&o&&o.authorizationBypass(a,n),o&&(o.withAuth=!0)},[n,a,o]),null},lne=()=>{const n=Py();return n?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(UC,{children:w.jsx(BG,{sdk:n})})}):null};exports.C=IC;exports.C$1=WV;exports.M=fy;exports.MastersStreamLayerProvider=rne;exports.MastersStreamLayerSDKReact=sne;exports.N=ca;exports.O=oy;exports.S=LC;exports.S$1=YV;exports.StreamLayerLogin=ine;exports.StreamLayerSDKPoints=lne;exports.T=my;exports.b=_C;exports.cx_default=Su;exports.d=KV;exports.k=xC;exports.l=qV;exports.m=r2;exports.m$1=HV;exports.n=iy;exports.p=zG;exports.styled_default=P;exports.useStore=Ut;exports.z=Cz;