@apollosproject/web-embeds 0.1.632 → 0.1.634
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/widget/embed.js +1 -1
package/package.json
CHANGED
package/widget/embed.js
CHANGED
|
@@ -6,7 +6,7 @@ this.ApollosEmbed=(function(){"use strict";function qa(v){return v&&v.__esModule
|
|
|
6
6
|
`+l[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=u);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?w(e):""}function Y(e){switch(e.tag){case 5:return w(e.type);case 16:return w("Lazy");case 13:return w("Suspense");case 19:return w("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1),e;case 11:return e=W(e.type.render,!1),e;case 1:return e=W(e.type,!0),e;default:return""}}function X(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _e:return"Fragment";case Ee:return"Portal";case Me:return"Profiler";case te:return"StrictMode";case le:return"Suspense";case pe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xt:return(e.displayName||"Context")+".Consumer";case ut:return(e._context.displayName||"Context")+".Provider";case tt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Le:return t=e.displayName||null,t!==null?t:X(e.type)||"Memo";case Qe:t=e._payload,e=e._init;try{return X(e(t))}catch{}}return null}function ne(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return X(t);case 8:return t===te?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=ue(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ir(e){e._valueTracker||(e._valueTracker=Ze(e))}function ls(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ue(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nr(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}}function Gl(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function is(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=q(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function os(e,t){t=t.checked,t!=null&&Oe(e,"checked",t,!1)}function Yl(e,t){os(e,t);var n=q(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xl(e,t.type,q(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ss(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xl(e,t,n){(t!=="number"||Nr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hn=Array.isArray;function dn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Zl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function us(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(s(92));if(Hn(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function as(e,t){var n=q(t.value),r=q(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function cs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fs(e){switch(e){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 Jl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fs(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Or,ds=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Or=Or||document.createElement("div"),Or.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={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},Ic=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){Ic.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function ps(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function hs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ps(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Nc=I({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 ql(e,t){if(t){if(Nc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function bl(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 ei=null;function ti(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ni=null,pn=null,hn=null;function ms(e){if(e=fr(e)){if(typeof ni!="function")throw Error(s(280));var t=e.stateNode;t&&(t=el(t),ni(e.stateNode,e.type,t))}}function gs(e){pn?hn?hn.push(e):hn=[e]:pn=e}function vs(){if(pn){var e=pn,t=hn;if(hn=pn=null,ms(e),t)for(e=0;e<t.length;e++)ms(t[e])}}function ys(e,t){return e(t)}function ws(){}var ri=!1;function Ss(e,t,n){if(ri)return e(t,n);ri=!0;try{return ys(e,t,n)}finally{ri=!1,(pn!==null||hn!==null)&&(ws(),vs())}}function Qn(e,t){var n=e.stateNode;if(n===null)return null;var r=el(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var li=!1;if(D)try{var $n={};Object.defineProperty($n,"passive",{get:function(){li=!0}}),window.addEventListener("test",$n,$n),window.removeEventListener("test",$n,$n)}catch{li=!1}function Oc(e,t,n,r,l,i,o,u,c){var m=Array.prototype.slice.call(arguments,3);try{t.apply(n,m)}catch(S){this.onError(S)}}var Kn=!1,Rr=null,zr=!1,ii=null,Rc={onError:function(e){Kn=!0,Rr=e}};function zc(e,t,n,r,l,i,o,u,c){Kn=!1,Rr=null,Oc.apply(Rc,arguments)}function Mc(e,t,n,r,l,i,o,u,c){if(zc.apply(this,arguments),Kn){if(Kn){var m=Rr;Kn=!1,Rr=null}else throw Error(s(198));zr||(zr=!0,ii=m)}}function Jt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ks(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Es(e){if(Jt(e)!==e)throw Error(s(188))}function Ac(e){var t=e.alternate;if(!t){if(t=Jt(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Es(l),e;if(i===r)return Es(l),t;i=i.sibling}throw Error(s(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,u=l.child;u;){if(u===n){o=!0,n=l,r=i;break}if(u===r){o=!0,r=l,n=i;break}u=u.sibling}if(!o){for(u=i.child;u;){if(u===n){o=!0,n=i,r=l;break}if(u===r){o=!0,r=i,n=l;break}u=u.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function xs(e){return e=Ac(e),e!==null?Cs(e):null}function Cs(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Cs(e);if(t!==null)return t;e=e.sibling}return null}var Ts=a.unstable_scheduleCallback,_s=a.unstable_cancelCallback,Fc=a.unstable_shouldYield,Dc=a.unstable_requestPaint,ge=a.unstable_now,Uc=a.unstable_getCurrentPriorityLevel,oi=a.unstable_ImmediatePriority,Ls=a.unstable_UserBlockingPriority,Mr=a.unstable_NormalPriority,jc=a.unstable_LowPriority,Ps=a.unstable_IdlePriority,Ar=null,vt=null;function Bc(e){if(vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(Ar,e,void 0,(e.current.flags&128)===128)}catch{}}var at=Math.clz32?Math.clz32:Vc,Hc=Math.log,Wc=Math.LN2;function Vc(e){return e>>>=0,e===0?32:31-(Hc(e)/Wc|0)|0}var Fr=64,Dr=4194304;function Gn(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ur(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Gn(u):(i&=o,i!==0&&(r=Gn(i)))}else o=n&~l,o!==0?r=Gn(o):i!==0&&(r=Gn(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-at(t),l=1<<n,r|=e[n],t&=~l;return r}function Qc(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 $c(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-at(i),u=1<<o,c=l[o];c===-1?((u&n)===0||(u&r)!==0)&&(l[o]=Qc(u,t)):c<=t&&(e.expiredLanes|=u),i&=~u}}function si(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Is(){var e=Fr;return Fr<<=1,(Fr&4194240)===0&&(Fr=64),e}function ui(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Yn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-at(t),e[t]=n}function Kc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-at(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function ai(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var b=0;function Ns(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Os,ci,Rs,zs,Ms,fi=!1,jr=[],Rt=null,zt=null,Mt=null,Xn=new Map,Zn=new Map,At=[],Gc="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 As(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":Xn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zn.delete(t.pointerId)}}function Jn(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=fr(t),t!==null&&ci(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Yc(e,t,n,r,l){switch(t){case"focusin":return Rt=Jn(Rt,e,t,n,r,l),!0;case"dragenter":return zt=Jn(zt,e,t,n,r,l),!0;case"mouseover":return Mt=Jn(Mt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Xn.set(i,Jn(Xn.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Zn.set(i,Jn(Zn.get(i)||null,e,t,n,r,l)),!0}return!1}function Fs(e){var t=qt(e.target);if(t!==null){var n=Jt(t);if(n!==null){if(t=n.tag,t===13){if(t=ks(n),t!==null){e.blockedOn=t,Ms(e.priority,function(){Rs(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Br(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ei=r,n.target.dispatchEvent(r),ei=null}else return t=fr(n),t!==null&&ci(t),e.blockedOn=n,!1;t.shift()}return!0}function Ds(e,t,n){Br(e)&&n.delete(t)}function Xc(){fi=!1,Rt!==null&&Br(Rt)&&(Rt=null),zt!==null&&Br(zt)&&(zt=null),Mt!==null&&Br(Mt)&&(Mt=null),Xn.forEach(Ds),Zn.forEach(Ds)}function qn(e,t){e.blockedOn===t&&(e.blockedOn=null,fi||(fi=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Xc)))}function bn(e){function t(l){return qn(l,e)}if(0<jr.length){qn(jr[0],e);for(var n=1;n<jr.length;n++){var r=jr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Rt!==null&&qn(Rt,e),zt!==null&&qn(zt,e),Mt!==null&&qn(Mt,e),Xn.forEach(t),Zn.forEach(t),n=0;n<At.length;n++)r=At[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&(n=At[0],n.blockedOn===null);)Fs(n),n.blockedOn===null&&At.shift()}var mn=we.ReactCurrentBatchConfig,Hr=!0;function Zc(e,t,n,r){var l=b,i=mn.transition;mn.transition=null;try{b=1,di(e,t,n,r)}finally{b=l,mn.transition=i}}function Jc(e,t,n,r){var l=b,i=mn.transition;mn.transition=null;try{b=4,di(e,t,n,r)}finally{b=l,mn.transition=i}}function di(e,t,n,r){if(Hr){var l=pi(e,t,n,r);if(l===null)Ni(e,t,r,Wr,n),As(e,r);else if(Yc(l,e,t,n,r))r.stopPropagation();else if(As(e,r),t&4&&-1<Gc.indexOf(e)){for(;l!==null;){var i=fr(l);if(i!==null&&Os(i),i=pi(e,t,n,r),i===null&&Ni(e,t,r,Wr,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Ni(e,t,r,null,n)}}var Wr=null;function pi(e,t,n,r){if(Wr=null,e=ti(r),e=qt(e),e!==null)if(t=Jt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ks(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wr=e,null}function Us(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 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(Uc()){case oi:return 1;case Ls:return 4;case Mr:case jc:return 16;case Ps:return 536870912;default:return 16}default:return 16}}var Ft=null,hi=null,Vr=null;function js(){if(Vr)return Vr;var e,t=hi,n=t.length,r,l="value"in Ft?Ft.value:Ft.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[i-r];r++);return Vr=l.slice(e,1<r?1-r:void 0)}function Qr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $r(){return!0}function Bs(){return!1}function Je(e){function t(n,r,l,i,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?$r:Bs,this.isPropagationStopped=Bs,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$r)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$r)},persist:function(){},isPersistent:$r}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mi=Je(gn),er=I({},gn,{view:0,detail:0}),qc=Je(er),gi,vi,tr,Kr=I({},er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wi,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:(e!==tr&&(tr&&e.type==="mousemove"?(gi=e.screenX-tr.screenX,vi=e.screenY-tr.screenY):vi=gi=0,tr=e),gi)},movementY:function(e){return"movementY"in e?e.movementY:vi}}),Hs=Je(Kr),bc=I({},Kr,{dataTransfer:0}),ef=Je(bc),tf=I({},er,{relatedTarget:0}),yi=Je(tf),nf=I({},gn,{animationName:0,elapsedTime:0,pseudoElement:0}),rf=Je(nf),lf=I({},gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),of=Je(lf),sf=I({},gn,{data:0}),Ws=Je(sf),uf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},af={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"},cf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ff(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cf[e])?!!t[e]:!1}function wi(){return ff}var df=I({},er,{key:function(e){if(e.key){var t=uf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?af[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wi,charCode:function(e){return e.type==="keypress"?Qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pf=Je(df),hf=I({},Kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vs=Je(hf),mf=I({},er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wi}),gf=Je(mf),vf=I({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),yf=Je(vf),wf=I({},Kr,{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}),Sf=Je(wf),kf=[9,13,27,32],Si=D&&"CompositionEvent"in window,nr=null;D&&"documentMode"in document&&(nr=document.documentMode);var Ef=D&&"TextEvent"in window&&!nr,Qs=D&&(!Si||nr&&8<nr&&11>=nr),$s=" ",Ks=!1;function Gs(e,t){switch(e){case"keyup":return kf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ys(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vn=!1;function xf(e,t){switch(e){case"compositionend":return Ys(t);case"keypress":return t.which!==32?null:(Ks=!0,$s);case"textInput":return e=t.data,e===$s&&Ks?null:e;default:return null}}function Cf(e,t){if(vn)return e==="compositionend"||!Si&&Gs(e,t)?(e=js(),Vr=hi=Ft=null,vn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qs&&t.locale!=="ko"?null:t.data;default:return null}}var Tf={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 Xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Tf[e.type]:t==="textarea"}function Zs(e,t,n,r){gs(r),t=Jr(t,"onChange"),0<t.length&&(n=new mi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var rr=null,lr=null;function _f(e){hu(e,0)}function Gr(e){var t=En(e);if(ls(t))return e}function Lf(e,t){if(e==="change")return t}var Js=!1;if(D){var ki;if(D){var Ei="oninput"in document;if(!Ei){var qs=document.createElement("div");qs.setAttribute("oninput","return;"),Ei=typeof qs.oninput=="function"}ki=Ei}else ki=!1;Js=ki&&(!document.documentMode||9<document.documentMode)}function bs(){rr&&(rr.detachEvent("onpropertychange",eu),lr=rr=null)}function eu(e){if(e.propertyName==="value"&&Gr(lr)){var t=[];Zs(t,lr,e,ti(e)),Ss(_f,t)}}function Pf(e,t,n){e==="focusin"?(bs(),rr=t,lr=n,rr.attachEvent("onpropertychange",eu)):e==="focusout"&&bs()}function If(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gr(lr)}function Nf(e,t){if(e==="click")return Gr(t)}function Of(e,t){if(e==="input"||e==="change")return Gr(t)}function Rf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:Rf;function ir(e,t){if(ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!P.call(t,l)||!ct(e[l],t[l]))return!1}return!0}function tu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nu(e,t){var n=tu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tu(n)}}function ru(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ru(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lu(){for(var e=window,t=Nr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nr(e.document)}return t}function xi(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 zf(e){var t=lu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ru(n.ownerDocument.documentElement,n)){if(r!==null&&xi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=nu(n,i);var o=nu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Mf=D&&"documentMode"in document&&11>=document.documentMode,yn=null,Ci=null,or=null,Ti=!1;function iu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ti||yn==null||yn!==Nr(r)||(r=yn,"selectionStart"in r&&xi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),or&&ir(or,r)||(or=r,r=Jr(Ci,"onSelect"),0<r.length&&(t=new mi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yn)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wn={animationend:Yr("Animation","AnimationEnd"),animationiteration:Yr("Animation","AnimationIteration"),animationstart:Yr("Animation","AnimationStart"),transitionend:Yr("Transition","TransitionEnd")},_i={},ou={};D&&(ou=document.createElement("div").style,"AnimationEvent"in window||(delete wn.animationend.animation,delete wn.animationiteration.animation,delete wn.animationstart.animation),"TransitionEvent"in window||delete wn.transitionend.transition);function Xr(e){if(_i[e])return _i[e];if(!wn[e])return e;var t=wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ou)return _i[e]=t[n];return e}var su=Xr("animationend"),uu=Xr("animationiteration"),au=Xr("animationstart"),cu=Xr("transitionend"),fu=new Map,du="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 Dt(e,t){fu.set(e,t),C(t,[e])}for(var Li=0;Li<du.length;Li++){var Pi=du[Li],Af=Pi.toLowerCase(),Ff=Pi[0].toUpperCase()+Pi.slice(1);Dt(Af,"on"+Ff)}Dt(su,"onAnimationEnd"),Dt(uu,"onAnimationIteration"),Dt(au,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(cu,"onTransitionEnd"),z("onMouseEnter",["mouseout","mouseover"]),z("onMouseLeave",["mouseout","mouseover"]),z("onPointerEnter",["pointerout","pointerover"]),z("onPointerLeave",["pointerout","pointerover"]),C("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),C("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),C("onBeforeInput",["compositionend","keypress","textInput","paste"]),C("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),C("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),C("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Df=new Set("cancel close invalid load scroll toggle".split(" ").concat(sr));function pu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Mc(r,t,void 0,e),e.currentTarget=null}function hu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var u=r[o],c=u.instance,m=u.currentTarget;if(u=u.listener,c!==i&&l.isPropagationStopped())break e;pu(l,u,m),i=c}else for(o=0;o<r.length;o++){if(u=r[o],c=u.instance,m=u.currentTarget,u=u.listener,c!==i&&l.isPropagationStopped())break e;pu(l,u,m),i=c}}}if(zr)throw e=ii,zr=!1,ii=null,e}function ie(e,t){var n=t[Fi];n===void 0&&(n=t[Fi]=new Set);var r=e+"__bubble";n.has(r)||(mu(t,e,2,!1),n.add(r))}function Ii(e,t,n){var r=0;t&&(r|=4),mu(n,e,r,t)}var Zr="_reactListening"+Math.random().toString(36).slice(2);function ur(e){if(!e[Zr]){e[Zr]=!0,g.forEach(function(n){n!=="selectionchange"&&(Df.has(n)||Ii(n,!1,e),Ii(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zr]||(t[Zr]=!0,Ii("selectionchange",!1,t))}}function mu(e,t,n,r){switch(Us(t)){case 1:var l=Zc;break;case 4:l=Jc;break;default:l=di}n=l.bind(null,t,n,e),l=void 0,!li||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ni(e,t,n,r,l){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===l||c.nodeType===8&&c.parentNode===l))return;o=o.return}for(;u!==null;){if(o=qt(u),o===null)return;if(c=o.tag,c===5||c===6){r=i=o;continue e}u=u.parentNode}}r=r.return}Ss(function(){var m=i,S=ti(n),k=[];e:{var y=fu.get(e);if(y!==void 0){var _=mi,N=e;switch(e){case"keypress":if(Qr(n)===0)break e;case"keydown":case"keyup":_=pf;break;case"focusin":N="focus",_=yi;break;case"focusout":N="blur",_=yi;break;case"beforeblur":case"afterblur":_=yi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Hs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=ef;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=gf;break;case su:case uu:case au:_=rf;break;case cu:_=yf;break;case"scroll":_=qc;break;case"wheel":_=Sf;break;case"copy":case"cut":case"paste":_=of;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Vs}var O=(t&4)!==0,ve=!O&&e==="scroll",p=O?y!==null?y+"Capture":null:y;O=[];for(var f=m,h;f!==null;){h=f;var x=h.stateNode;if(h.tag===5&&x!==null&&(h=x,p!==null&&(x=Qn(f,p),x!=null&&O.push(ar(f,x,h)))),ve)break;f=f.return}0<O.length&&(y=new _(y,N,null,n,S),k.push({event:y,listeners:O}))}}if((t&7)===0){e:{if(y=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",y&&n!==ei&&(N=n.relatedTarget||n.fromElement)&&(qt(N)||N[Ct]))break e;if((_||y)&&(y=S.window===S?S:(y=S.ownerDocument)?y.defaultView||y.parentWindow:window,_?(N=n.relatedTarget||n.toElement,_=m,N=N?qt(N):null,N!==null&&(ve=Jt(N),N!==ve||N.tag!==5&&N.tag!==6)&&(N=null)):(_=null,N=m),_!==N)){if(O=Hs,x="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(O=Vs,x="onPointerLeave",p="onPointerEnter",f="pointer"),ve=_==null?y:En(_),h=N==null?y:En(N),y=new O(x,f+"leave",_,n,S),y.target=ve,y.relatedTarget=h,x=null,qt(S)===m&&(O=new O(p,f+"enter",N,n,S),O.target=h,O.relatedTarget=ve,x=O),ve=x,_&&N)t:{for(O=_,p=N,f=0,h=O;h;h=Sn(h))f++;for(h=0,x=p;x;x=Sn(x))h++;for(;0<f-h;)O=Sn(O),f--;for(;0<h-f;)p=Sn(p),h--;for(;f--;){if(O===p||p!==null&&O===p.alternate)break t;O=Sn(O),p=Sn(p)}O=null}else O=null;_!==null&&gu(k,y,_,O,!1),N!==null&&ve!==null&&gu(k,ve,N,O,!0)}}e:{if(y=m?En(m):window,_=y.nodeName&&y.nodeName.toLowerCase(),_==="select"||_==="input"&&y.type==="file")var R=Lf;else if(Xs(y))if(Js)R=Of;else{R=If;var M=Pf}else(_=y.nodeName)&&_.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(R=Nf);if(R&&(R=R(e,m))){Zs(k,R,n,S);break e}M&&M(e,y,m),e==="focusout"&&(M=y._wrapperState)&&M.controlled&&y.type==="number"&&Xl(y,"number",y.value)}switch(M=m?En(m):window,e){case"focusin":(Xs(M)||M.contentEditable==="true")&&(yn=M,Ci=m,or=null);break;case"focusout":or=Ci=yn=null;break;case"mousedown":Ti=!0;break;case"contextmenu":case"mouseup":case"dragend":Ti=!1,iu(k,n,S);break;case"selectionchange":if(Mf)break;case"keydown":case"keyup":iu(k,n,S)}var A;if(Si)e:{switch(e){case"compositionstart":var U="onCompositionStart";break e;case"compositionend":U="onCompositionEnd";break e;case"compositionupdate":U="onCompositionUpdate";break e}U=void 0}else vn?Gs(e,n)&&(U="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(U="onCompositionStart");U&&(Qs&&n.locale!=="ko"&&(vn||U!=="onCompositionStart"?U==="onCompositionEnd"&&vn&&(A=js()):(Ft=S,hi="value"in Ft?Ft.value:Ft.textContent,vn=!0)),M=Jr(m,U),0<M.length&&(U=new Ws(U,e,null,n,S),k.push({event:U,listeners:M}),A?U.data=A:(A=Ys(n),A!==null&&(U.data=A)))),(A=Ef?xf(e,n):Cf(e,n))&&(m=Jr(m,"onBeforeInput"),0<m.length&&(S=new Ws("onBeforeInput","beforeinput",null,n,S),k.push({event:S,listeners:m}),S.data=A))}hu(k,t)})}function ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Qn(e,n),i!=null&&r.unshift(ar(e,i,l)),i=Qn(e,t),i!=null&&r.push(ar(e,i,l))),e=e.return}return r}function Sn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gu(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var u=n,c=u.alternate,m=u.stateNode;if(c!==null&&c===r)break;u.tag===5&&m!==null&&(u=m,l?(c=Qn(n,i),c!=null&&o.unshift(ar(n,c,u))):l||(c=Qn(n,i),c!=null&&o.push(ar(n,c,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Uf=/\r\n?/g,jf=/\u0000|\uFFFD/g;function vu(e){return(typeof e=="string"?e:""+e).replace(Uf,`
|
|
7
7
|
`).replace(jf,"")}function qr(e,t,n){if(t=vu(t),vu(e)!==t&&n)throw Error(s(425))}function br(){}var Oi=null,Ri=null;function zi(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}var Mi=typeof setTimeout=="function"?setTimeout:void 0,Bf=typeof clearTimeout=="function"?clearTimeout:void 0,yu=typeof Promise=="function"?Promise:void 0,Hf=typeof queueMicrotask=="function"?queueMicrotask:typeof yu<"u"?function(e){return yu.resolve(null).then(e).catch(Wf)}:Mi;function Wf(e){setTimeout(function(){throw e})}function Ai(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),bn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);bn(t)}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function wu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var kn=Math.random().toString(36).slice(2),yt="__reactFiber$"+kn,cr="__reactProps$"+kn,Ct="__reactContainer$"+kn,Fi="__reactEvents$"+kn,Vf="__reactListeners$"+kn,Qf="__reactHandles$"+kn;function qt(e){var t=e[yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wu(e);e!==null;){if(n=e[yt])return n;e=wu(e)}return t}e=n,n=e.parentNode}return null}function fr(e){return e=e[yt]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function el(e){return e[cr]||null}var Di=[],xn=-1;function jt(e){return{current:e}}function oe(e){0>xn||(e.current=Di[xn],Di[xn]=null,xn--)}function re(e,t){xn++,Di[xn]=e.current,e.current=t}var Bt={},Ae=jt(Bt),$e=jt(!1),bt=Bt;function Cn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ke(e){return e=e.childContextTypes,e!=null}function tl(){oe($e),oe(Ae)}function Su(e,t,n){if(Ae.current!==Bt)throw Error(s(168));re(Ae,t),re($e,n)}function ku(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(s(108,ne(e)||"Unknown",l));return I({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,bt=Ae.current,re(Ae,e),re($e,$e.current),!0}function Eu(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=ku(e,t,bt),r.__reactInternalMemoizedMergedChildContext=e,oe($e),oe(Ae),re(Ae,e)):oe($e),re($e,n)}var Tt=null,rl=!1,Ui=!1;function xu(e){Tt===null?Tt=[e]:Tt.push(e)}function $f(e){rl=!0,xu(e)}function Ht(){if(!Ui&&Tt!==null){Ui=!0;var e=0,t=b;try{var n=Tt;for(b=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tt=null,rl=!1}catch(l){throw Tt!==null&&(Tt=Tt.slice(e+1)),Ts(oi,Ht),l}finally{b=t,Ui=!1}}return null}var Tn=[],_n=0,ll=null,il=0,nt=[],rt=0,en=null,_t=1,Lt="";function tn(e,t){Tn[_n++]=il,Tn[_n++]=ll,ll=e,il=t}function Cu(e,t,n){nt[rt++]=_t,nt[rt++]=Lt,nt[rt++]=en,en=e;var r=_t;e=Lt;var l=32-at(r)-1;r&=~(1<<l),n+=1;var i=32-at(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,_t=1<<32-at(t)+l|n<<l|r,Lt=i+e}else _t=1<<i|n<<l|r,Lt=e}function ji(e){e.return!==null&&(tn(e,1),Cu(e,1,0))}function Bi(e){for(;e===ll;)ll=Tn[--_n],Tn[_n]=null,il=Tn[--_n],Tn[_n]=null;for(;e===en;)en=nt[--rt],nt[rt]=null,Lt=nt[--rt],nt[rt]=null,_t=nt[--rt],nt[rt]=null}var qe=null,be=null,ae=!1,ft=null;function Tu(e,t){var n=st(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function _u(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,qe=e,be=Ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qe=e,be=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=en!==null?{id:_t,overflow:Lt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=st(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qe=e,be=null,!0):!1;default:return!1}}function Hi(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Wi(e){if(ae){var t=be;if(t){var n=t;if(!_u(e,t)){if(Hi(e))throw Error(s(418));t=Ut(n.nextSibling);var r=qe;t&&_u(e,t)?Tu(r,n):(e.flags=e.flags&-4097|2,ae=!1,qe=e)}}else{if(Hi(e))throw Error(s(418));e.flags=e.flags&-4097|2,ae=!1,qe=e}}}function Lu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qe=e}function ol(e){if(e!==qe)return!1;if(!ae)return Lu(e),ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zi(e.type,e.memoizedProps)),t&&(t=be)){if(Hi(e))throw Pu(),Error(s(418));for(;t;)Tu(e,t),t=Ut(t.nextSibling)}if(Lu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){be=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}be=null}}else be=qe?Ut(e.stateNode.nextSibling):null;return!0}function Pu(){for(var e=be;e;)e=Ut(e.nextSibling)}function Ln(){be=qe=null,ae=!1}function Vi(e){ft===null?ft=[e]:ft.push(e)}var Kf=we.ReactCurrentBatchConfig;function dr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var u=l.refs;o===null?delete u[i]:u[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function sl(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Iu(e){var t=e._init;return t(e._payload)}function Nu(e){function t(p,f){if(e){var h=p.deletions;h===null?(p.deletions=[f],p.flags|=16):h.push(f)}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function l(p,f){return p=Xt(p,f),p.index=0,p.sibling=null,p}function i(p,f,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<f?(p.flags|=2,f):h):(p.flags|=2,f)):(p.flags|=1048576,f)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function u(p,f,h,x){return f===null||f.tag!==6?(f=Ao(h,p.mode,x),f.return=p,f):(f=l(f,h),f.return=p,f)}function c(p,f,h,x){var R=h.type;return R===_e?S(p,f,h.props.children,x,h.key):f!==null&&(f.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Qe&&Iu(R)===f.type)?(x=l(f,h.props),x.ref=dr(p,f,h),x.return=p,x):(x=Ol(h.type,h.key,h.props,null,p.mode,x),x.ref=dr(p,f,h),x.return=p,x)}function m(p,f,h,x){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=Fo(h,p.mode,x),f.return=p,f):(f=l(f,h.children||[]),f.return=p,f)}function S(p,f,h,x,R){return f===null||f.tag!==7?(f=cn(h,p.mode,x,R),f.return=p,f):(f=l(f,h),f.return=p,f)}function k(p,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Ao(""+f,p.mode,h),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case ke:return h=Ol(f.type,f.key,f.props,null,p.mode,h),h.ref=dr(p,null,f),h.return=p,h;case Ee:return f=Fo(f,p.mode,h),f.return=p,f;case Qe:var x=f._init;return k(p,x(f._payload),h)}if(Hn(f)||F(f))return f=cn(f,p.mode,h,null),f.return=p,f;sl(p,f)}return null}function y(p,f,h,x){var R=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return R!==null?null:u(p,f,""+h,x);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ke:return h.key===R?c(p,f,h,x):null;case Ee:return h.key===R?m(p,f,h,x):null;case Qe:return R=h._init,y(p,f,R(h._payload),x)}if(Hn(h)||F(h))return R!==null?null:S(p,f,h,x,null);sl(p,h)}return null}function _(p,f,h,x,R){if(typeof x=="string"&&x!==""||typeof x=="number")return p=p.get(h)||null,u(f,p,""+x,R);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ke:return p=p.get(x.key===null?h:x.key)||null,c(f,p,x,R);case Ee:return p=p.get(x.key===null?h:x.key)||null,m(f,p,x,R);case Qe:var M=x._init;return _(p,f,h,M(x._payload),R)}if(Hn(x)||F(x))return p=p.get(h)||null,S(f,p,x,R,null);sl(f,x)}return null}function N(p,f,h,x){for(var R=null,M=null,A=f,U=f=0,Ne=null;A!==null&&U<h.length;U++){A.index>U?(Ne=A,A=null):Ne=A.sibling;var Z=y(p,A,h[U],x);if(Z===null){A===null&&(A=Ne);break}e&&A&&Z.alternate===null&&t(p,A),f=i(Z,f,U),M===null?R=Z:M.sibling=Z,M=Z,A=Ne}if(U===h.length)return n(p,A),ae&&tn(p,U),R;if(A===null){for(;U<h.length;U++)A=k(p,h[U],x),A!==null&&(f=i(A,f,U),M===null?R=A:M.sibling=A,M=A);return ae&&tn(p,U),R}for(A=r(p,A);U<h.length;U++)Ne=_(A,p,U,h[U],x),Ne!==null&&(e&&Ne.alternate!==null&&A.delete(Ne.key===null?U:Ne.key),f=i(Ne,f,U),M===null?R=Ne:M.sibling=Ne,M=Ne);return e&&A.forEach(function(Zt){return t(p,Zt)}),ae&&tn(p,U),R}function O(p,f,h,x){var R=F(h);if(typeof R!="function")throw Error(s(150));if(h=R.call(h),h==null)throw Error(s(151));for(var M=R=null,A=f,U=f=0,Ne=null,Z=h.next();A!==null&&!Z.done;U++,Z=h.next()){A.index>U?(Ne=A,A=null):Ne=A.sibling;var Zt=y(p,A,Z.value,x);if(Zt===null){A===null&&(A=Ne);break}e&&A&&Zt.alternate===null&&t(p,A),f=i(Zt,f,U),M===null?R=Zt:M.sibling=Zt,M=Zt,A=Ne}if(Z.done)return n(p,A),ae&&tn(p,U),R;if(A===null){for(;!Z.done;U++,Z=h.next())Z=k(p,Z.value,x),Z!==null&&(f=i(Z,f,U),M===null?R=Z:M.sibling=Z,M=Z);return ae&&tn(p,U),R}for(A=r(p,A);!Z.done;U++,Z=h.next())Z=_(A,p,U,Z.value,x),Z!==null&&(e&&Z.alternate!==null&&A.delete(Z.key===null?U:Z.key),f=i(Z,f,U),M===null?R=Z:M.sibling=Z,M=Z);return e&&A.forEach(function(Td){return t(p,Td)}),ae&&tn(p,U),R}function ve(p,f,h,x){if(typeof h=="object"&&h!==null&&h.type===_e&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case ke:e:{for(var R=h.key,M=f;M!==null;){if(M.key===R){if(R=h.type,R===_e){if(M.tag===7){n(p,M.sibling),f=l(M,h.props.children),f.return=p,p=f;break e}}else if(M.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Qe&&Iu(R)===M.type){n(p,M.sibling),f=l(M,h.props),f.ref=dr(p,M,h),f.return=p,p=f;break e}n(p,M);break}else t(p,M);M=M.sibling}h.type===_e?(f=cn(h.props.children,p.mode,x,h.key),f.return=p,p=f):(x=Ol(h.type,h.key,h.props,null,p.mode,x),x.ref=dr(p,f,h),x.return=p,p=x)}return o(p);case Ee:e:{for(M=h.key;f!==null;){if(f.key===M)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(p,f.sibling),f=l(f,h.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=Fo(h,p.mode,x),f.return=p,p=f}return o(p);case Qe:return M=h._init,ve(p,f,M(h._payload),x)}if(Hn(h))return N(p,f,h,x);if(F(h))return O(p,f,h,x);sl(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(p,f.sibling),f=l(f,h),f.return=p,p=f):(n(p,f),f=Ao(h,p.mode,x),f.return=p,p=f),o(p)):n(p,f)}return ve}var Pn=Nu(!0),Ou=Nu(!1),ul=jt(null),al=null,In=null,Qi=null;function $i(){Qi=In=al=null}function Ki(e){var t=ul.current;oe(ul),e._currentValue=t}function Gi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Nn(e,t){al=e,Qi=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ge=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Qi!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if(al===null)throw Error(s(308));In=e,al.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var nn=null;function Yi(e){nn===null?nn=[e]:nn.push(e)}function Ru(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Yi(t)):(n.next=l.next,l.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Wt=!1;function Xi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function It(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(K&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Pt(e,n)}return l=r.interleaved,l===null?(t.next=t,Yi(r)):(t.next=l.next,l.next=t),r.interleaved=t,Pt(e,n)}function cl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ai(e,n)}}function Mu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fl(e,t,n,r){var l=e.updateQueue;Wt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var c=u,m=c.next;c.next=null,o===null?i=m:o.next=m,o=c;var S=e.alternate;S!==null&&(S=S.updateQueue,u=S.lastBaseUpdate,u!==o&&(u===null?S.firstBaseUpdate=m:u.next=m,S.lastBaseUpdate=c))}if(i!==null){var k=l.baseState;o=0,S=m=c=null,u=i;do{var y=u.lane,_=u.eventTime;if((r&y)===y){S!==null&&(S=S.next={eventTime:_,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var N=e,O=u;switch(y=t,_=n,O.tag){case 1:if(N=O.payload,typeof N=="function"){k=N.call(_,k,y);break e}k=N;break e;case 3:N.flags=N.flags&-65537|128;case 0:if(N=O.payload,y=typeof N=="function"?N.call(_,k,y):N,y==null)break e;k=I({},k,y);break e;case 2:Wt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,y=l.effects,y===null?l.effects=[u]:y.push(u))}else _={eventTime:_,lane:y,tag:u.tag,payload:u.payload,callback:u.callback,next:null},S===null?(m=S=_,c=k):S=S.next=_,o|=y;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;y=u,u=y.next,y.next=null,l.lastBaseUpdate=y,l.shared.pending=null}}while(!0);if(S===null&&(c=k),l.baseState=c,l.firstBaseUpdate=m,l.lastBaseUpdate=S,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);on|=o,e.lanes=o,e.memoizedState=k}}function Au(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(s(191,l));l.call(r)}}}var pr={},wt=jt(pr),hr=jt(pr),mr=jt(pr);function rn(e){if(e===pr)throw Error(s(174));return e}function Zi(e,t){switch(re(mr,t),re(hr,e),re(wt,pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jl(t,e)}oe(wt),re(wt,t)}function On(){oe(wt),oe(hr),oe(mr)}function Fu(e){rn(mr.current);var t=rn(wt.current),n=Jl(t,e.type);t!==n&&(re(hr,e),re(wt,n))}function Ji(e){hr.current===e&&(oe(wt),oe(hr))}var fe=jt(0);function dl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;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 qi=[];function bi(){for(var e=0;e<qi.length;e++)qi[e]._workInProgressVersionPrimary=null;qi.length=0}var pl=we.ReactCurrentDispatcher,eo=we.ReactCurrentBatchConfig,ln=0,de=null,xe=null,Pe=null,hl=!1,gr=!1,vr=0,Gf=0;function Fe(){throw Error(s(321))}function to(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ct(e[n],t[n]))return!1;return!0}function no(e,t,n,r,l,i){if(ln=i,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pl.current=e===null||e.memoizedState===null?Jf:qf,e=n(r,l),gr){i=0;do{if(gr=!1,vr=0,25<=i)throw Error(s(301));i+=1,Pe=xe=null,t.updateQueue=null,pl.current=bf,e=n(r,l)}while(gr)}if(pl.current=vl,t=xe!==null&&xe.next!==null,ln=0,Pe=xe=de=null,hl=!1,t)throw Error(s(300));return e}function ro(){var e=vr!==0;return vr=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?de.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function it(){if(xe===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Pe===null?de.memoizedState:Pe.next;if(t!==null)Pe=t,xe=e;else{if(e===null)throw Error(s(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Pe===null?de.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function yr(e,t){return typeof t=="function"?t(e):t}function lo(e){var t=it(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=xe,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var u=o=null,c=null,m=i;do{var S=m.lane;if((ln&S)===S)c!==null&&(c=c.next={lane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),r=m.hasEagerState?m.eagerState:e(r,m.action);else{var k={lane:S,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};c===null?(u=c=k,o=r):c=c.next=k,de.lanes|=S,on|=S}m=m.next}while(m!==null&&m!==i);c===null?o=r:c.next=u,ct(r,t.memoizedState)||(Ge=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,de.lanes|=i,on|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function io(e){var t=it(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);ct(i,t.memoizedState)||(Ge=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Du(){}function Uu(e,t){var n=de,r=it(),l=t(),i=!ct(r.memoizedState,l);if(i&&(r.memoizedState=l,Ge=!0),r=r.queue,oo(Hu.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,wr(9,Bu.bind(null,n,r,l,t),void 0,null),Ie===null)throw Error(s(349));(ln&30)!==0||ju(n,t,l)}return l}function ju(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bu(e,t,n,r){t.value=n,t.getSnapshot=r,Wu(t)&&Vu(e)}function Hu(e,t,n){return n(function(){Wu(t)&&Vu(e)})}function Wu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ct(e,n)}catch{return!0}}function Vu(e){var t=Pt(e,1);t!==null&&mt(t,e,1,-1)}function Qu(e){var t=St();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yr,lastRenderedState:e},t.queue=e,e=e.dispatch=Zf.bind(null,de,e),[t.memoizedState,e]}function wr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function $u(){return it().memoizedState}function ml(e,t,n,r){var l=St();de.flags|=e,l.memoizedState=wr(1|t,n,void 0,r===void 0?null:r)}function gl(e,t,n,r){var l=it();r=r===void 0?null:r;var i=void 0;if(xe!==null){var o=xe.memoizedState;if(i=o.destroy,r!==null&&to(r,o.deps)){l.memoizedState=wr(t,n,i,r);return}}de.flags|=e,l.memoizedState=wr(1|t,n,i,r)}function Ku(e,t){return ml(8390656,8,e,t)}function oo(e,t){return gl(2048,8,e,t)}function Gu(e,t){return gl(4,2,e,t)}function Yu(e,t){return gl(4,4,e,t)}function Xu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zu(e,t,n){return n=n!=null?n.concat([e]):null,gl(4,4,Xu.bind(null,t,e),n)}function so(){}function Ju(e,t){var n=it();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&to(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qu(e,t){var n=it();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&to(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bu(e,t,n){return(ln&21)===0?(e.baseState&&(e.baseState=!1,Ge=!0),e.memoizedState=n):(ct(n,t)||(n=Is(),de.lanes|=n,on|=n,e.baseState=!0),t)}function Yf(e,t){var n=b;b=n!==0&&4>n?n:4,e(!0);var r=eo.transition;eo.transition={};try{e(!1),t()}finally{b=n,eo.transition=r}}function ea(){return it().memoizedState}function Xf(e,t,n){var r=Gt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ta(e))na(t,n);else if(n=Ru(e,t,n,r),n!==null){var l=We();mt(n,e,r,l),ra(n,t,r)}}function Zf(e,t,n){var r=Gt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ta(e))na(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,ct(u,o)){var c=t.interleaved;c===null?(l.next=l,Yi(t)):(l.next=c.next,c.next=l),t.interleaved=l;return}}catch{}n=Ru(e,t,l,r),n!==null&&(l=We(),mt(n,e,r,l),ra(n,t,r))}}function ta(e){var t=e.alternate;return e===de||t!==null&&t===de}function na(e,t){gr=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ra(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ai(e,n)}}var vl={readContext:lt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Jf={readContext:lt,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Ku,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ml(4194308,4,Xu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return ml(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Xf.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:Qu,useDebugValue:so,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=Qu(!1),t=e[0];return e=Yf.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,l=St();if(ae){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Ie===null)throw Error(s(349));(ln&30)!==0||ju(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Ku(Hu.bind(null,r,i,e),[e]),r.flags|=2048,wr(9,Bu.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=St(),t=Ie.identifierPrefix;if(ae){var n=Lt,r=_t;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Gf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qf={readContext:lt,useCallback:Ju,useContext:lt,useEffect:oo,useImperativeHandle:Zu,useInsertionEffect:Gu,useLayoutEffect:Yu,useMemo:qu,useReducer:lo,useRef:$u,useState:function(){return lo(yr)},useDebugValue:so,useDeferredValue:function(e){var t=it();return bu(t,xe.memoizedState,e)},useTransition:function(){var e=lo(yr)[0],t=it().memoizedState;return[e,t]},useMutableSource:Du,useSyncExternalStore:Uu,useId:ea,unstable_isNewReconciler:!1},bf={readContext:lt,useCallback:Ju,useContext:lt,useEffect:oo,useImperativeHandle:Zu,useInsertionEffect:Gu,useLayoutEffect:Yu,useMemo:qu,useReducer:io,useRef:$u,useState:function(){return io(yr)},useDebugValue:so,useDeferredValue:function(e){var t=it();return xe===null?t.memoizedState=e:bu(t,xe.memoizedState,e)},useTransition:function(){var e=io(yr)[0],t=it().memoizedState;return[e,t]},useMutableSource:Du,useSyncExternalStore:Uu,useId:ea,unstable_isNewReconciler:!1};function dt(e,t){if(e&&e.defaultProps){t=I({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function uo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:I({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yl={isMounted:function(e){return(e=e._reactInternals)?Jt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),l=Gt(e),i=It(r,l);i.payload=t,n!=null&&(i.callback=n),t=Vt(e,i,l),t!==null&&(mt(t,e,l,r),cl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),l=Gt(e),i=It(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Vt(e,i,l),t!==null&&(mt(t,e,l,r),cl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=Gt(e),l=It(n,r);l.tag=2,t!=null&&(l.callback=t),t=Vt(e,l,r),t!==null&&(mt(t,e,r,n),cl(t,e,r))}};function la(e,t,n,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!ir(n,r)||!ir(l,i):!0}function ia(e,t,n){var r=!1,l=Bt,i=t.contextType;return typeof i=="object"&&i!==null?i=lt(i):(l=Ke(t)?bt:Ae.current,r=t.contextTypes,i=(r=r!=null)?Cn(e,l):Bt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function oa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yl.enqueueReplaceState(t,t.state,null)}function ao(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Xi(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=lt(i):(i=Ke(t)?bt:Ae.current,l.context=Cn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(uo(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&yl.enqueueReplaceState(l,l.state,null),fl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Rn(e,t){try{var n="",r=t;do n+=Y(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
8
8
|
Error generating stack: `+i.message+`
|
|
9
|
-
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function co(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function fo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ed=typeof WeakMap=="function"?WeakMap:Map;function sa(e,t,n){n=It(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tl||(Tl=!0,Lo=r),fo(e,t)},n}function ua(e,t,n){n=It(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){fo(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){fo(e,t),typeof r!="function"&&($t===null?$t=new Set([this]):$t.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=hd.bind(null,e,t,n),t.then(e,e))}function ca(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fa(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=It(-1,1),t.tag=2,Vt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var td=we.ReactCurrentOwner,Ge=!1;function He(e,t,n,r){t.child=e===null?Ou(t,null,n,r):Pn(t,e.child,n,r)}function da(e,t,n,r,l){n=n.render;var i=t.ref;return Nn(t,l),r=no(e,t,n,r,i,l),n=ro(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Nt(e,t,l)):(ae&&n&&ji(t),t.flags|=1,He(e,t,r,l),t.child)}function pa(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Mo(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ha(e,t,i,r,l)):(e=Ol(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ir,n(o,r)&&e.ref===t.ref)return Nt(e,t,l)}return t.flags|=1,e=Xt(i,r),e.ref=t.ref,e.return=t,t.child=e}function ha(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(ir(i,r)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=r=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,Nt(e,t,l)}return po(e,t,n,r,l)}function ma(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(Mn,et),et|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(Mn,et),et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,re(Mn,et),et|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,re(Mn,et),et|=r;return He(e,t,l,n),t.child}function ga(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function po(e,t,n,r,l){var i=Ke(n)?bt:Ae.current;return i=Cn(t,i),Nn(t,l),n=no(e,t,n,r,i,l),r=ro(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Nt(e,t,l)):(ae&&r&&ji(t),t.flags|=1,He(e,t,n,l),t.child)}function va(e,t,n,r,l){if(Ke(n)){var i=!0;nl(t)}else i=!1;if(Nn(t,l),t.stateNode===null)Sl(e,t),ia(t,n,r),ao(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var c=o.context,m=n.contextType;typeof m=="object"&&m!==null?m=lt(m):(m=Ke(n)?bt:Ae.current,m=Cn(t,m));var S=n.getDerivedStateFromProps,k=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function";k||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||c!==m)&&oa(t,o,r,m),Wt=!1;var y=t.memoizedState;o.state=y,fl(t,r,o,l),c=t.memoizedState,u!==r||y!==c||$e.current||Wt?(typeof S=="function"&&(uo(t,n,S,r),c=t.memoizedState),(u=Wt||la(t,n,u,r,y,c,m))?(k||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=m,r=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,zu(e,t),u=t.memoizedProps,m=t.type===t.elementType?u:dt(t.type,u),o.props=m,k=t.pendingProps,y=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=lt(c):(c=Ke(n)?bt:Ae.current,c=Cn(t,c));var _=n.getDerivedStateFromProps;(S=typeof _=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==k||y!==c)&&oa(t,o,r,c),Wt=!1,y=t.memoizedState,o.state=y,fl(t,r,o,l);var N=t.memoizedState;u!==k||y!==N||$e.current||Wt?(typeof _=="function"&&(uo(t,n,_,r),N=t.memoizedState),(m=Wt||la(t,n,m,r,y,N,c)||!1)?(S||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,N,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,N,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=N),o.props=r,o.state=N,o.context=c,r=m):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return ho(e,t,n,r,i,l)}function ho(e,t,n,r,l,i){ga(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Eu(t,n,!1),Nt(e,t,i);r=t.stateNode,td.current=t;var u=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Pn(t,e.child,null,i),t.child=Pn(t,null,u,i)):He(e,t,u,i),t.memoizedState=r.state,l&&Eu(t,n,!0),t.child}function ya(e){var t=e.stateNode;t.pendingContext?Su(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Su(e,t.context,!1),Zi(e,t.containerInfo)}function wa(e,t,n,r,l){return Ln(),Vi(l),t.flags|=256,He(e,t,n,r),t.child}var mo={dehydrated:null,treeContext:null,retryLane:0};function go(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sa(e,t,n){var r=t.pendingProps,l=fe.current,i=!1,o=(t.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),re(fe,l&1),e===null)return Wi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Rl(o,r,0,null),e=cn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=go(n),t.memoizedState=mo,e):vo(t,o));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return nd(e,t,o,r,u,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,u=l.sibling;var c={mode:"hidden",children:r.children};return(o&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Xt(l,c),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?i=Xt(u,i):(i=cn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?go(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=mo,r}return i=e.child,e=i.sibling,r=Xt(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vo(e,t){return t=Rl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wl(e,t,n,r){return r!==null&&Vi(r),Pn(t,e.child,null,n),e=vo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nd(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=co(Error(s(422))),wl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Rl({mode:"visible",children:r.children},l,0,null),i=cn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Pn(t,e.child,null,o),t.child.memoizedState=go(o),t.memoizedState=mo,i);if((t.mode&1)===0)return wl(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(s(419)),r=co(i,r,void 0),wl(e,t,o,r)}if(u=(o&e.childLanes)!==0,Ge||u){if(r=Ie,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|o))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Pt(e,l),mt(r,e,l,-1))}return zo(),r=co(Error(s(421))),wl(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=md.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,be=Ut(l.nextSibling),qe=t,ae=!0,ft=null,e!==null&&(nt[rt++]=_t,nt[rt++]=Lt,nt[rt++]=en,_t=e.id,Lt=e.overflow,en=t),t=vo(t,r.children),t.flags|=4096,t)}function ka(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gi(e.return,t,n)}function yo(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Ea(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(He(e,t,r.children,n),r=fe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ka(e,n,t);else if(e.tag===19)ka(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(re(fe,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&dl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),yo(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&dl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}yo(t,!0,n,null,i);break;case"together":yo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),on|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Xt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rd(e,t,n){switch(t.tag){case 3:ya(t),Ln();break;case 5:Fu(t);break;case 1:Ke(t.type)&&nl(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;re(ul,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(fe,fe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Sa(e,t,n):(re(fe,fe.current&1),e=Nt(e,t,n),e!==null?e.sibling:null);re(fe,fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Ea(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),re(fe,fe.current),r)break;return null;case 22:case 23:return t.lanes=0,ma(e,t,n)}return Nt(e,t,n)}var xa,wo,Ca,Ta;xa=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},wo=function(){},Ca=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,rn(wt.current);var i=null;switch(n){case"input":l=Gl(e,l),r=Gl(e,r),i=[];break;case"select":l=I({},l,{value:void 0}),r=I({},r,{value:void 0}),i=[];break;case"textarea":l=Zl(e,l),r=Zl(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=br)}ql(n,r);var o;n=null;for(m in l)if(!r.hasOwnProperty(m)&&l.hasOwnProperty(m)&&l[m]!=null)if(m==="style"){var u=l[m];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else m!=="dangerouslySetInnerHTML"&&m!=="children"&&m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(E.hasOwnProperty(m)?i||(i=[]):(i=i||[]).push(m,null));for(m in r){var c=r[m];if(u=l?.[m],r.hasOwnProperty(m)&&c!==u&&(c!=null||u!=null))if(m==="style")if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(m,n)),n=c;else m==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(i=i||[]).push(m,c)):m==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(m,""+c):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&(E.hasOwnProperty(m)?(c!=null&&m==="onScroll"&&ie("scroll",e),i||u===c||(i=[])):(i=i||[]).push(m,c))}n&&(i=i||[]).push("style",n);var m=i;(t.updateQueue=m)&&(t.flags|=4)}},Ta=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sr(e,t){if(!ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ld(e,t,n){var r=t.pendingProps;switch(Bi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return Ke(t.type)&&tl(),De(t),null;case 3:return r=t.stateNode,On(),oe($e),oe(Ae),bi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ol(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ft!==null&&(No(ft),ft=null))),wo(e,t),De(t),null;case 5:Ji(t);var l=rn(mr.current);if(n=t.type,e!==null&&t.stateNode!=null)Ca(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(s(166));return De(t),null}if(e=rn(wt.current),ol(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[yt]=t,r[cr]=i,e=(t.mode&1)!==0,n){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(l=0;l<sr.length;l++)ie(sr[l],r);break;case"source":ie("error",r);break;case"img":case"image":case"link":ie("error",r),ie("load",r);break;case"details":ie("toggle",r);break;case"input":is(r,i),ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ie("invalid",r);break;case"textarea":us(r,i),ie("invalid",r)}ql(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var u=i[o];o==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&qr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&qr(r.textContent,u,e),l=["children",""+u]):E.hasOwnProperty(o)&&u!=null&&o==="onScroll"&&ie("scroll",r)}switch(n){case"input":Ir(r),ss(r,i,!0);break;case"textarea":Ir(r),cs(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=br)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fs(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[yt]=t,e[cr]=r,xa(e,t,!1,!1),t.stateNode=e;e:{switch(o=bl(n,r),n){case"dialog":ie("cancel",e),ie("close",e),l=r;break;case"iframe":case"object":case"embed":ie("load",e),l=r;break;case"video":case"audio":for(l=0;l<sr.length;l++)ie(sr[l],e);l=r;break;case"source":ie("error",e),l=r;break;case"img":case"image":case"link":ie("error",e),ie("load",e),l=r;break;case"details":ie("toggle",e),l=r;break;case"input":is(e,r),l=Gl(e,r),ie("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=I({},r,{value:void 0}),ie("invalid",e);break;case"textarea":us(e,r),l=Zl(e,r),ie("invalid",e);break;default:l=r}ql(n,l),u=l;for(i in u)if(u.hasOwnProperty(i)){var c=u[i];i==="style"?hs(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&ds(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Wn(e,c):typeof c=="number"&&Wn(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(E.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ie("scroll",e):c!=null&&Oe(e,i,c,o))}switch(n){case"input":Ir(e),ss(e,r,!1);break;case"textarea":Ir(e),cs(e);break;case"option":r.value!=null&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?dn(e,!!r.multiple,i,!1):r.defaultValue!=null&&dn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=br)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return De(t),null;case 6:if(e&&t.stateNode!=null)Ta(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(n=rn(mr.current),rn(wt.current),ol(t)){if(r=t.stateNode,n=t.memoizedProps,r[yt]=t,(i=r.nodeValue!==n)&&(e=qe,e!==null))switch(e.tag){case 3:qr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qr(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yt]=t,t.stateNode=r}return De(t),null;case 13:if(oe(fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&be!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Pu(),Ln(),t.flags|=98560,i=!1;else if(i=ol(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[yt]=t}else Ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),i=!1}else ft!==null&&(No(ft),ft=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(fe.current&1)!==0?Ce===0&&(Ce=3):zo())),t.updateQueue!==null&&(t.flags|=4),De(t),null);case 4:return On(),wo(e,t),e===null&&ur(t.stateNode.containerInfo),De(t),null;case 10:return Ki(t.type._context),De(t),null;case 17:return Ke(t.type)&&tl(),De(t),null;case 19:if(oe(fe),i=t.memoizedState,i===null)return De(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Sr(i,!1);else{if(Ce!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=dl(e),o!==null){for(t.flags|=128,Sr(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(fe,fe.current&1|2),t.child}e=e.sibling}i.tail!==null&&ge()>An&&(t.flags|=128,r=!0,Sr(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ae)return De(t),null}else 2*ge()-i.renderingStartTime>An&&n!==1073741824&&(t.flags|=128,r=!0,Sr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ge(),t.sibling=null,n=fe.current,re(fe,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ro(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(et&1073741824)!==0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function id(e,t){switch(Bi(t),t.tag){case 1:return Ke(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),oe($e),oe(Ae),bi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ji(t),null;case 13:if(oe(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(fe),null;case 4:return On(),null;case 10:return Ki(t.type._context),null;case 22:case 23:return Ro(),null;case 24:return null;default:return null}}var kl=!1,Ue=!1,od=typeof WeakSet=="function"?WeakSet:Set,L=null;function zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function So(e,t,n){try{n()}catch(r){me(e,t,r)}}var _a=!1;function sd(e,t){if(Oi=Hr,e=lu(),xi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,c=-1,m=0,S=0,k=e,y=null;t:for(;;){for(var _;k!==n||l!==0&&k.nodeType!==3||(u=o+l),k!==i||r!==0&&k.nodeType!==3||(c=o+r),k.nodeType===3&&(o+=k.nodeValue.length),(_=k.firstChild)!==null;)y=k,k=_;for(;;){if(k===e)break t;if(y===n&&++m===l&&(u=o),y===i&&++S===r&&(c=o),(_=k.nextSibling)!==null)break;k=y,y=k.parentNode}k=_}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ri={focusedElem:e,selectionRange:n},Hr=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var N=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(N!==null){var O=N.memoizedProps,ve=N.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?O:dt(t.type,O),ve);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(x){me(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return N=_a,_a=!1,N}function kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&So(t,n,i)}l=l.next}while(l!==r)}}function El(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ko(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t=="function"?t(e):t.current=e}}function La(e){var t=e.alternate;t!==null&&(e.alternate=null,La(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[cr],delete t[Fi],delete t[Vf],delete t[Qf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pa(e){return e.tag===5||e.tag===3||e.tag===4}function Ia(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Eo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=br));else if(r!==4&&(e=e.child,e!==null))for(Eo(e,t,n),e=e.sibling;e!==null;)Eo(e,t,n),e=e.sibling}function xo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xo(e,t,n),e=e.sibling;e!==null;)xo(e,t,n),e=e.sibling}var Re=null,pt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Na(e,t,n),n=n.sibling}function Na(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Ar,n)}catch{}switch(n.tag){case 5:Ue||zn(n,t);case 6:var r=Re,l=pt;Re=null,Qt(e,t,n),Re=r,pt=l,Re!==null&&(pt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(pt?(e=Re,n=n.stateNode,e.nodeType===8?Ai(e.parentNode,n):e.nodeType===1&&Ai(e,n),bn(e)):Ai(Re,n.stateNode));break;case 4:r=Re,l=pt,Re=n.stateNode.containerInfo,pt=!0,Qt(e,t,n),Re=r,pt=l;break;case 0:case 11:case 14:case 15:if(!Ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&((i&2)!==0||(i&4)!==0)&&So(n,t,o),l=l.next}while(l!==r)}Qt(e,t,n);break;case 1:if(!Ue&&(zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){me(n,t,u)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,Qt(e,t,n),Ue=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function Oa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new od),t.forEach(function(r){var l=gd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,o=t,u=o;e:for(;u!==null;){switch(u.tag){case 5:Re=u.stateNode,pt=!1;break e;case 3:Re=u.stateNode.containerInfo,pt=!0;break e;case 4:Re=u.stateNode.containerInfo,pt=!0;break e}u=u.return}if(Re===null)throw Error(s(160));Na(i,o,l),Re=null,pt=!1;var c=l.alternate;c!==null&&(c.return=null),l.return=null}catch(m){me(l,t,m)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ra(t,e),t=t.sibling}function Ra(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ht(t,e),kt(e),r&4){try{kr(3,e,e.return),El(3,e)}catch(O){me(e,e.return,O)}try{kr(5,e,e.return)}catch(O){me(e,e.return,O)}}break;case 1:ht(t,e),kt(e),r&512&&n!==null&&zn(n,n.return);break;case 5:if(ht(t,e),kt(e),r&512&&n!==null&&zn(n,n.return),e.flags&32){var l=e.stateNode;try{Wn(l,"")}catch(O){me(e,e.return,O)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,u=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&os(l,i),bl(u,o);var m=bl(u,i);for(o=0;o<c.length;o+=2){var S=c[o],k=c[o+1];S==="style"?hs(l,k):S==="dangerouslySetInnerHTML"?ds(l,k):S==="children"?Wn(l,k):Oe(l,S,k,m)}switch(u){case"input":Yl(l,i);break;case"textarea":as(l,i);break;case"select":var y=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var _=i.value;_!=null?dn(l,!!i.multiple,_,!1):y!==!!i.multiple&&(i.defaultValue!=null?dn(l,!!i.multiple,i.defaultValue,!0):dn(l,!!i.multiple,i.multiple?[]:"",!1))}l[cr]=i}catch(O){me(e,e.return,O)}}break;case 6:if(ht(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(s(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(O){me(e,e.return,O)}}break;case 3:if(ht(t,e),kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{bn(t.containerInfo)}catch(O){me(e,e.return,O)}break;case 4:ht(t,e),kt(e);break;case 13:ht(t,e),kt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(_o=ge())),r&4&&Oa(e);break;case 22:if(S=n!==null&&n.memoizedState!==null,e.mode&1?(Ue=(m=Ue)||S,ht(t,e),Ue=m):ht(t,e),kt(e),r&8192){if(m=e.memoizedState!==null,(e.stateNode.isHidden=m)&&!S&&(e.mode&1)!==0)for(L=e,S=e.child;S!==null;){for(k=L=S;L!==null;){switch(y=L,_=y.child,y.tag){case 0:case 11:case 14:case 15:kr(4,y,y.return);break;case 1:zn(y,y.return);var N=y.stateNode;if(typeof N.componentWillUnmount=="function"){r=y,n=y.return;try{t=r,N.props=t.memoizedProps,N.state=t.memoizedState,N.componentWillUnmount()}catch(O){me(r,n,O)}}break;case 5:zn(y,y.return);break;case 22:if(y.memoizedState!==null){Aa(k);continue}}_!==null?(_.return=y,L=_):Aa(k)}S=S.sibling}e:for(S=null,k=e;;){if(k.tag===5){if(S===null){S=k;try{l=k.stateNode,m?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=k.stateNode,c=k.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,u.style.display=ps("display",o))}catch(O){me(e,e.return,O)}}}else if(k.tag===6){if(S===null)try{k.stateNode.nodeValue=m?"":k.memoizedProps}catch(O){me(e,e.return,O)}}else if((k.tag!==22&&k.tag!==23||k.memoizedState===null||k===e)&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===e)break e;for(;k.sibling===null;){if(k.return===null||k.return===e)break e;S===k&&(S=null),k=k.return}S===k&&(S=null),k.sibling.return=k.return,k=k.sibling}}break;case 19:ht(t,e),kt(e),r&4&&Oa(e);break;case 21:break;default:ht(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pa(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Wn(l,""),r.flags&=-33);var i=Ia(e);xo(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,u=Ia(e);Eo(e,u,o);break;default:throw Error(s(161))}}catch(c){me(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ud(e,t,n){L=e,za(e)}function za(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var l=L,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||kl;if(!o){var u=l.alternate,c=u!==null&&u.memoizedState!==null||Ue;u=kl;var m=Ue;if(kl=o,(Ue=c)&&!m)for(L=l;L!==null;)o=L,c=o.child,o.tag===22&&o.memoizedState!==null?Fa(l):c!==null?(c.return=o,L=c):Fa(l);for(;i!==null;)L=i,za(i),i=i.sibling;L=l,kl=u,Ue=m}Ma(e)}else(l.subtreeFlags&8772)!==0&&i!==null?(i.return=l,L=i):Ma(e)}}function Ma(e){for(;L!==null;){var t=L;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ue||El(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:dt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Au(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Au(t,o,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var m=t.alternate;if(m!==null){var S=m.memoizedState;if(S!==null){var k=S.dehydrated;k!==null&&bn(k)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}Ue||t.flags&512&&ko(t)}catch(y){me(t,t.return,y)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function Aa(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function Fa(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{El(4,t)}catch(c){me(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(c){me(t,l,c)}}var i=t.return;try{ko(t)}catch(c){me(t,i,c)}break;case 5:var o=t.return;try{ko(t)}catch(c){me(t,o,c)}}}catch(c){me(t,t.return,c)}if(t===e){L=null;break}var u=t.sibling;if(u!==null){u.return=t.return,L=u;break}L=t.return}}var ad=Math.ceil,xl=we.ReactCurrentDispatcher,Co=we.ReactCurrentOwner,ot=we.ReactCurrentBatchConfig,K=0,Ie=null,Se=null,ze=0,et=0,Mn=jt(0),Ce=0,Er=null,on=0,Cl=0,To=0,xr=null,Ye=null,_o=0,An=1/0,Ot=null,Tl=!1,Lo=null,$t=null,_l=!1,Kt=null,Ll=0,Cr=0,Po=null,Pl=-1,Il=0;function We(){return(K&6)!==0?ge():Pl!==-1?Pl:Pl=ge()}function Gt(e){return(e.mode&1)===0?1:(K&2)!==0&&ze!==0?ze&-ze:Kf.transition!==null?(Il===0&&(Il=Is()),Il):(e=b,e!==0||(e=window.event,e=e===void 0?16:Us(e.type)),e)}function mt(e,t,n,r){if(50<Cr)throw Cr=0,Po=null,Error(s(185));Yn(e,n,r),((K&2)===0||e!==Ie)&&(e===Ie&&((K&2)===0&&(Cl|=n),Ce===4&&Yt(e,ze)),Xe(e,r),n===1&&K===0&&(t.mode&1)===0&&(An=ge()+500,rl&&Ht()))}function Xe(e,t){var n=e.callbackNode;$c(e,t);var r=Ur(e,e===Ie?ze:0);if(r===0)n!==null&&_s(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_s(n),t===1)e.tag===0?$f(Ua.bind(null,e)):xu(Ua.bind(null,e)),Hf(function(){(K&6)===0&&Ht()}),n=null;else{switch(Ns(r)){case 1:n=oi;break;case 4:n=Ls;break;case 16:n=Mr;break;case 536870912:n=Ps;break;default:n=Mr}n=Ka(n,Da.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Da(e,t){if(Pl=-1,Il=0,(K&6)!==0)throw Error(s(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=Ur(e,e===Ie?ze:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Nl(e,r);else{t=r;var l=K;K|=2;var i=Ba();(Ie!==e||ze!==t)&&(Ot=null,An=ge()+500,un(e,t));do try{dd();break}catch(u){ja(e,u)}while(!0);$i(),xl.current=i,K=l,Se!==null?t=0:(Ie=null,ze=0,t=Ce)}if(t!==0){if(t===2&&(l=si(e),l!==0&&(r=l,t=Io(e,l))),t===1)throw n=Er,un(e,0),Yt(e,r),Xe(e,ge()),n;if(t===6)Yt(e,r);else{if(l=e.current.alternate,(r&30)===0&&!cd(l)&&(t=Nl(e,r),t===2&&(i=si(e),i!==0&&(r=i,t=Io(e,i))),t===1))throw n=Er,un(e,0),Yt(e,r),Xe(e,ge()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:an(e,Ye,Ot);break;case 3:if(Yt(e,r),(r&130023424)===r&&(t=_o+500-ge(),10<t)){if(Ur(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Mi(an.bind(null,e,Ye,Ot),t);break}an(e,Ye,Ot);break;case 4:if(Yt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-at(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ad(r/1960))-r,10<r){e.timeoutHandle=Mi(an.bind(null,e,Ye,Ot),r);break}an(e,Ye,Ot);break;case 5:an(e,Ye,Ot);break;default:throw Error(s(329))}}}return Xe(e,ge()),e.callbackNode===n?Da.bind(null,e):null}function Io(e,t){var n=xr;return e.current.memoizedState.isDehydrated&&(un(e,t).flags|=256),e=Nl(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&No(t)),e}function No(e){Ye===null?Ye=e:Ye.push.apply(Ye,e)}function cd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!ct(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;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 Yt(e,t){for(t&=~To,t&=~Cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function Ua(e){if((K&6)!==0)throw Error(s(327));Fn();var t=Ur(e,0);if((t&1)===0)return Xe(e,ge()),null;var n=Nl(e,t);if(e.tag!==0&&n===2){var r=si(e);r!==0&&(t=r,n=Io(e,r))}if(n===1)throw n=Er,un(e,0),Yt(e,t),Xe(e,ge()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,an(e,Ye,Ot),Xe(e,ge()),null}function Oo(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(An=ge()+500,rl&&Ht())}}function sn(e){Kt!==null&&Kt.tag===0&&(K&6)===0&&Fn();var t=K;K|=1;var n=ot.transition,r=b;try{if(ot.transition=null,b=1,e)return e()}finally{b=r,ot.transition=n,K=t,(K&6)===0&&Ht()}}function Ro(){et=Mn.current,oe(Mn)}function un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Bf(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(Bi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tl();break;case 3:On(),oe($e),oe(Ae),bi();break;case 5:Ji(r);break;case 4:On();break;case 13:oe(fe);break;case 19:oe(fe);break;case 10:Ki(r.type._context);break;case 22:case 23:Ro()}n=n.return}if(Ie=e,Se=e=Xt(e.current,null),ze=et=t,Ce=0,Er=null,To=Cl=on=0,Ye=xr=null,nn!==null){for(t=0;t<nn.length;t++)if(n=nn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}nn=null}return e}function ja(e,t){do{var n=Se;try{if($i(),pl.current=vl,hl){for(var r=de.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}hl=!1}if(ln=0,Pe=xe=de=null,gr=!1,vr=0,Co.current=null,n===null||n.return===null){Ce=1,Er=t,Se=null;break}e:{var i=e,o=n.return,u=n,c=t;if(t=ze,u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var m=c,S=u,k=S.tag;if((S.mode&1)===0&&(k===0||k===11||k===15)){var y=S.alternate;y?(S.updateQueue=y.updateQueue,S.memoizedState=y.memoizedState,S.lanes=y.lanes):(S.updateQueue=null,S.memoizedState=null)}var _=ca(o);if(_!==null){_.flags&=-257,fa(_,o,u,i,t),_.mode&1&&aa(i,m,t),t=_,c=m;var N=t.updateQueue;if(N===null){var O=new Set;O.add(c),t.updateQueue=O}else N.add(c);break e}else{if((t&1)===0){aa(i,m,t),zo();break e}c=Error(s(426))}}else if(ae&&u.mode&1){var ve=ca(o);if(ve!==null){(ve.flags&65536)===0&&(ve.flags|=256),fa(ve,o,u,i,t),Vi(Rn(c,u));break e}}i=c=Rn(c,u),Ce!==4&&(Ce=2),xr===null?xr=[i]:xr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=sa(i,c,t);Mu(i,p);break e;case 1:u=c;var f=i.type,h=i.stateNode;if((i.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&($t===null||!$t.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=ua(i,u,t);Mu(i,x);break e}}i=i.return}while(i!==null)}Wa(n)}catch(R){t=R,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function Ba(){var e=xl.current;return xl.current=vl,e===null?vl:e}function zo(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Ie===null||(on&268435455)===0&&(Cl&268435455)===0||Yt(Ie,ze)}function Nl(e,t){var n=K;K|=2;var r=Ba();(Ie!==e||ze!==t)&&(Ot=null,un(e,t));do try{fd();break}catch(l){ja(e,l)}while(!0);if($i(),K=n,xl.current=r,Se!==null)throw Error(s(261));return Ie=null,ze=0,Ce}function fd(){for(;Se!==null;)Ha(Se)}function dd(){for(;Se!==null&&!Fc();)Ha(Se)}function Ha(e){var t=$a(e.alternate,e,et);e.memoizedProps=e.pendingProps,t===null?Wa(e):Se=t,Co.current=null}function Wa(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=ld(n,t,et),n!==null){Se=n;return}}else{if(n=id(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,Se=null;return}}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ce===0&&(Ce=5)}function an(e,t,n){var r=b,l=ot.transition;try{ot.transition=null,b=1,pd(e,t,n,r)}finally{ot.transition=l,b=r}return null}function pd(e,t,n,r){do Fn();while(Kt!==null);if((K&6)!==0)throw Error(s(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Kc(e,i),e===Ie&&(Se=Ie=null,ze=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||_l||(_l=!0,Ka(Mr,function(){return Fn(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=ot.transition,ot.transition=null;var o=b;b=1;var u=K;K|=4,Co.current=null,sd(e,n),Ra(n,e),zf(Ri),Hr=!!Oi,Ri=Oi=null,e.current=n,ud(n),Dc(),K=u,b=o,ot.transition=i}else e.current=n;if(_l&&(_l=!1,Kt=e,Ll=l),i=e.pendingLanes,i===0&&($t=null),Bc(n.stateNode),Xe(e,ge()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Tl)throw Tl=!1,e=Lo,Lo=null,e;return(Ll&1)!==0&&e.tag!==0&&Fn(),i=e.pendingLanes,(i&1)!==0?e===Po?Cr++:(Cr=0,Po=e):Cr=0,Ht(),null}function Fn(){if(Kt!==null){var e=Ns(Ll),t=ot.transition,n=b;try{if(ot.transition=null,b=16>e?16:e,Kt===null)var r=!1;else{if(e=Kt,Kt=null,Ll=0,(K&6)!==0)throw Error(s(331));var l=K;for(K|=4,L=e.current;L!==null;){var i=L,o=i.child;if((L.flags&16)!==0){var u=i.deletions;if(u!==null){for(var c=0;c<u.length;c++){var m=u[c];for(L=m;L!==null;){var S=L;switch(S.tag){case 0:case 11:case 15:kr(8,S,i)}var k=S.child;if(k!==null)k.return=S,L=k;else for(;L!==null;){S=L;var y=S.sibling,_=S.return;if(La(S),S===m){L=null;break}if(y!==null){y.return=_,L=y;break}L=_}}}var N=i.alternate;if(N!==null){var O=N.child;if(O!==null){N.child=null;do{var ve=O.sibling;O.sibling=null,O=ve}while(O!==null)}}L=i}}if((i.subtreeFlags&2064)!==0&&o!==null)o.return=i,L=o;else e:for(;L!==null;){if(i=L,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:kr(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,L=p;break e}L=i.return}}var f=e.current;for(L=f;L!==null;){o=L;var h=o.child;if((o.subtreeFlags&2064)!==0&&h!==null)h.return=o,L=h;else e:for(o=f;L!==null;){if(u=L,(u.flags&2048)!==0)try{switch(u.tag){case 0:case 11:case 15:El(9,u)}}catch(R){me(u,u.return,R)}if(u===o){L=null;break e}var x=u.sibling;if(x!==null){x.return=u.return,L=x;break e}L=u.return}}if(K=l,Ht(),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Ar,e)}catch{}r=!0}return r}finally{b=n,ot.transition=t}}return!1}function Va(e,t,n){t=Rn(n,t),t=sa(e,t,1),e=Vt(e,t,1),t=We(),e!==null&&(Yn(e,1,t),Xe(e,t))}function me(e,t,n){if(e.tag===3)Va(e,e,n);else for(;t!==null;){if(t.tag===3){Va(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($t===null||!$t.has(r))){e=Rn(n,e),e=ua(t,e,1),t=Vt(t,e,1),e=We(),t!==null&&(Yn(t,1,e),Xe(t,e));break}}t=t.return}}function hd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Ie===e&&(ze&n)===n&&(Ce===4||Ce===3&&(ze&130023424)===ze&&500>ge()-_o?un(e,0):To|=n),Xe(e,t)}function Qa(e,t){t===0&&((e.mode&1)===0?t=1:(t=Dr,Dr<<=1,(Dr&130023424)===0&&(Dr=4194304)));var n=We();e=Pt(e,t),e!==null&&(Yn(e,t,n),Xe(e,n))}function md(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qa(e,n)}function gd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),Qa(e,n)}var $a;$a=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Ge=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ge=!1,rd(e,t,n);Ge=(e.flags&131072)!==0}else Ge=!1,ae&&(t.flags&1048576)!==0&&Cu(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sl(e,t),e=t.pendingProps;var l=Cn(t,Ae.current);Nn(t,n),l=no(null,t,r,e,l,n);var i=ro();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,nl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Xi(t),l.updater=yl,t.stateNode=l,l._reactInternals=t,ao(t,r,e,n),t=ho(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&ji(t),He(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=yd(r),e=dt(r,e),l){case 0:t=po(null,t,r,e,n);break e;case 1:t=va(null,t,r,e,n);break e;case 11:t=da(null,t,r,e,n);break e;case 14:t=pa(null,t,r,dt(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),po(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),va(e,t,r,l,n);case 3:e:{if(ya(t),e===null)throw Error(s(387));r=t.pendingProps,i=t.memoizedState,l=i.element,zu(e,t),fl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Rn(Error(s(423)),t),t=wa(e,t,r,n,l);break e}else if(r!==l){l=Rn(Error(s(424)),t),t=wa(e,t,r,n,l);break e}else for(be=Ut(t.stateNode.containerInfo.firstChild),qe=t,ae=!0,ft=null,n=Ou(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ln(),r===l){t=Nt(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return Fu(t),e===null&&Wi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,zi(r,l)?o=null:i!==null&&zi(r,i)&&(t.flags|=32),ga(e,t),He(e,t,o,n),t.child;case 6:return e===null&&Wi(t),null;case 13:return Sa(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pn(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),da(e,t,r,l,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,re(ul,r._currentValue),r._currentValue=o,i!==null)if(ct(i.value,o)){if(i.children===l.children&&!$e.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=It(-1,n&-n),c.tag=2;var m=i.updateQueue;if(m!==null){m=m.shared;var S=m.pending;S===null?c.next=c:(c.next=S.next,S.next=c),m.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Gi(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Gi(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}He(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Nn(t,n),l=lt(l),r=r(l),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,l=dt(r,t.pendingProps),l=dt(r.type,l),pa(e,t,r,l,n);case 15:return ha(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),Sl(e,t),t.tag=1,Ke(r)?(e=!0,nl(t)):e=!1,Nn(t,n),ia(t,r,l),ao(t,r,l,n),ho(null,t,r,!0,e,n);case 19:return Ea(e,t,n);case 22:return ma(e,t,n)}throw Error(s(156,t.tag))};function Ka(e,t){return Ts(e,t)}function vd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new vd(e,t,n,r)}function Mo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yd(e){if(typeof e=="function")return Mo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tt)return 11;if(e===Le)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ol(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Mo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _e:return cn(n.children,l,i,t);case te:o=8,l|=8;break;case Me:return e=st(12,n,t,l|2),e.elementType=Me,e.lanes=i,e;case le:return e=st(13,n,t,l),e.elementType=le,e.lanes=i,e;case pe:return e=st(19,n,t,l),e.elementType=pe,e.lanes=i,e;case he:return Rl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ut:o=10;break e;case xt:o=9;break e;case tt:o=11;break e;case Le:o=14;break e;case Qe:o=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=st(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function cn(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=st(22,e,r,t),e.elementType=he,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Fo(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ui(0),this.expirationTimes=ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Do(e,t,n,r,l,i,o,u,c){return e=new wd(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=st(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xi(i),e}function Sd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ee,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ga(e){if(!e)return Bt;e=e._reactInternals;e:{if(Jt(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var n=e.type;if(Ke(n))return ku(e,n,t)}return t}function Ya(e,t,n,r,l,i,o,u,c){return e=Do(n,r,!0,e,l,i,o,u,c),e.context=Ga(null),n=e.current,r=We(),l=Gt(n),i=It(r,l),i.callback=t??null,Vt(n,i,l),e.current.lanes=l,Yn(e,l,r),Xe(e,r),e}function zl(e,t,n,r){var l=t.current,i=We(),o=Gt(l);return n=Ga(n),t.context===null?t.context=n:t.pendingContext=n,t=It(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vt(l,t,o),e!==null&&(mt(e,l,o,i),cl(e,l,o)),o}function Ml(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Xa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uo(e,t){Xa(e,t),(e=e.alternate)&&Xa(e,t)}function kd(){return null}var Za=typeof reportError=="function"?reportError:function(e){console.error(e)};function jo(e){this._internalRoot=e}Al.prototype.render=jo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));zl(e,t,null,null)},Al.prototype.unmount=jo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sn(function(){zl(null,e,null,null)}),t[Ct]=null}};function Al(e){this._internalRoot=e}Al.prototype.unstable_scheduleHydration=function(e){if(e){var t=zs();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&t!==0&&t<At[n].priority;n++);At.splice(n,0,e),n===0&&Fs(e)}};function Bo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ja(){}function Ed(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var m=Ml(o);i.call(m)}}var o=Ya(t,r,e,0,null,!1,!1,"",Ja);return e._reactRootContainer=o,e[Ct]=o.current,ur(e.nodeType===8?e.parentNode:e),sn(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var m=Ml(c);u.call(m)}}var c=Do(e,0,!1,null,null,!1,!1,"",Ja);return e._reactRootContainer=c,e[Ct]=c.current,ur(e.nodeType===8?e.parentNode:e),sn(function(){zl(t,c,n,r)}),c}function Dl(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var u=l;l=function(){var c=Ml(o);u.call(c)}}zl(t,o,e,l)}else o=Ed(n,t,e,l,r);return Ml(o)}Os=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Gn(t.pendingLanes);n!==0&&(ai(t,n|1),Xe(t,ge()),(K&6)===0&&(An=ge()+500,Ht()))}break;case 13:sn(function(){var r=Pt(e,1);if(r!==null){var l=We();mt(r,e,1,l)}}),Uo(e,1)}},ci=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=We();mt(t,e,134217728,n)}Uo(e,134217728)}},Rs=function(e){if(e.tag===13){var t=Gt(e),n=Pt(e,t);if(n!==null){var r=We();mt(n,e,t,r)}Uo(e,t)}},zs=function(){return b},Ms=function(e,t){var n=b;try{return b=e,t()}finally{b=n}},ni=function(e,t,n){switch(t){case"input":if(Yl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=el(r);if(!l)throw Error(s(90));ls(r),Yl(r,l)}}}break;case"textarea":as(e,n);break;case"select":t=n.value,t!=null&&dn(e,!!n.multiple,t,!1)}},ys=Oo,ws=sn;var xd={usingClientEntryPoint:!1,Events:[fr,En,el,gs,vs,Oo]},Tr={findFiberByHostInstance:qt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cd={bundleType:Tr.bundleType,version:Tr.version,rendererPackageName:Tr.rendererPackageName,rendererConfig:Tr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:we.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xs(e),e===null?null:e.stateNode},findFiberByHostInstance:Tr.findFiberByHostInstance||kd,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 Ul=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ul.isDisabled&&Ul.supportsFiber)try{Ar=Ul.inject(Cd),vt=Ul}catch{}}return Ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xd,Ve.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bo(t))throw Error(s(200));return Sd(e,t,null,n)},Ve.createRoot=function(e,t){if(!Bo(e))throw Error(s(299));var n=!1,r="",l=Za;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Do(e,1,!1,null,null,n,!1,r,l),e[Ct]=t.current,ur(e.nodeType===8?e.parentNode:e),new jo(t)},Ve.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=xs(t),e=e===null?null:e.stateNode,e},Ve.flushSync=function(e){return sn(e)},Ve.hydrate=function(e,t,n){if(!Fl(t))throw Error(s(200));return Dl(null,e,t,!0,n)},Ve.hydrateRoot=function(e,t,n){if(!Bo(e))throw Error(s(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=Za;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ya(t,null,e,1,n??null,l,!1,i,o),e[Ct]=t.current,ur(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Al(t)},Ve.render=function(e,t,n){if(!Fl(t))throw Error(s(200));return Dl(null,e,t,!1,n)},Ve.unmountComponentAtNode=function(e){if(!Fl(e))throw Error(s(40));return e._reactRootContainer?(sn(function(){Dl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1},Ve.unstable_batchedUpdates=Oo,Ve.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fl(n))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Dl(e,t,n,!1,r)},Ve.version="18.3.1-next-f1338f8080-20240426",Ve}var Ko;function rc(){if(Ko)return Hl.exports;Ko=1;function v(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v)}catch(a){console.error(a)}}return v(),Hl.exports=nc(),Hl.exports}var Go;function lc(){if(Go)return _r;Go=1;var v=rc();return _r.createRoot=v.createRoot,_r.hydrateRoot=v.hydrateRoot,_r}var Yo=lc(),Ql={exports:{}},Un={};var Xo;function ic(){if(Xo)return Un;Xo=1;var v=Bl(),a=Symbol.for("react.element"),s=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,E=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C={key:!0,ref:!0,__self:!0,__source:!0};function z(D,P,V){var Q,H={},G=null,ee=null;V!==void 0&&(G=""+V),P.key!==void 0&&(G=""+P.key),P.ref!==void 0&&(ee=P.ref);for(Q in P)g.call(P,Q)&&!C.hasOwnProperty(Q)&&(H[Q]=P[Q]);if(D&&D.defaultProps)for(Q in P=D.defaultProps,P)H[Q]===void 0&&(H[Q]=P[Q]);return{$$typeof:a,type:D,key:G,ref:ee,props:H,_owner:E.current}}return Un.Fragment=s,Un.jsx=z,Un.jsxs=z,Un}var Zo;function oc(){return Zo||(Zo=1,Ql.exports=ic()),Ql.exports}var Te=oc();const sc='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',uc="--color-brand-secondary",Jo="255 130 0",ac=/^\d{1,3}\s+\d{1,3}\s+\d{1,3}$/,$l=v=>{const a=v.trim(),s=a.split(/\s+/).map(Number);if(ac.test(a)&&s.every(z=>z<=255))return[s[0],s[1],s[2]];const[g,E,C]=Jo.split(" ").map(Number);return[g,E,C]},qo=([v,a,s])=>{const[g,E,C]=[v,a,s].map(z=>{const D=z/255;return D<=.03928?D/12.92:((D+.055)/1.055)**2.4});return .2126*g+.7152*E+.0722*C},cc=qo([26,26,26]),fc=v=>{const a=qo(v),s=(1+.05)/(a+.05);return(a+.05)/(cc+.05)>=s?"#1a1a1a":"#ffffff"},dc={light:{card:"var(--color-system-chrome, #ffffff)",border:"var(--color-system-regular, rgba(120, 120, 128, 0.16))",title:"var(--color-fg-primary, #000000)",sub:"var(--color-fg-secondary, rgba(39, 39, 46, 0.7))",dismiss:"var(--color-fg-secondary, rgba(39, 39, 46, 0.7))"},dark:{card:"var(--color-system-chrome-dark, #2c2c2e)",border:"var(--color-system-regular-dark, rgba(120, 120, 128, 0.32))",title:"var(--color-fg-primary-dark, #ffffff)",sub:"var(--color-fg-secondary-dark, rgba(235, 235, 245, 0.6))",dismiss:"var(--color-fg-secondary-dark, rgba(235, 235, 245, 0.6))"}},pc="(max-width: 720px)",bo=()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(pc):null;function hc(){return Te.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[Te.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),Te.jsx("line",{x1:"2",y1:"10",x2:"22",y2:"10"})]})}function mc({zIndex:v,theme:a,brandColor:s,onUpdate:g,onDismiss:E}){const[C,z]=se.useState(!1),[D,P]=se.useState(()=>bo()?.matches??!1),V=se.useRef(null),[Q,H]=se.useState(()=>$l(Jo));se.useEffect(()=>{const te=requestAnimationFrame(()=>z(!0));return()=>cancelAnimationFrame(te)},[]),se.useEffect(()=>{if(s!=null){H($l(s));return}if(!V.current)return;const te=getComputedStyle(V.current).getPropertyValue(uc);H($l(te))},[s]);const G=se.useRef(!1);se.useEffect(()=>{if(!C)return;const te=Me=>{Me.key!=="Escape"||Me.defaultPrevented||G.current||(G.current=!0,E())};return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[C,E]),se.useEffect(()=>{const te=bo();if(!te)return;const Me=()=>P(te.matches);return te.addEventListener("change",Me),()=>te.removeEventListener("change",Me)},[]);const ee=dc[a],[ce,J,$]=Q,je=`rgb(${ce}, ${J}, ${$})`,Be=fc(Q),Oe={position:"fixed",top:"16px",left:"50%",width:D?"calc(100% - 32px)":"calc(100% - 48px)",maxWidth:"520px",zIndex:v,opacity:C?1:0,visibility:C?"visible":"hidden",pointerEvents:C?"auto":"none",transform:C?"translateX(-50%) translateY(0)":"translateX(-50%) translateY(-12px)",transition:"opacity 0.3s ease, transform 0.3s ease"},we={display:"flex",alignItems:"center",gap:D?"10px":"14px",padding:D?"12px":"14px 14px 14px 16px",background:ee.card,color:ee.title,borderRadius:"14px",border:`1px solid ${ee.border}`,boxShadow:"0 1px 2px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.18)",fontFamily:sc},ke={display:"flex",alignItems:"center",justifyContent:"center",width:"44px",height:"44px",background:`rgba(${ce}, ${J}, ${$}, 0.12)`,color:je,borderRadius:"10px",flexShrink:0},Ee={flexShrink:0,padding:D?"8px 12px":"12px 18px",background:je,color:Be,border:"none",borderRadius:"16px",fontWeight:700,fontSize:D?"12px":"13px",lineHeight:1,cursor:"pointer",fontFamily:"inherit"},_e={flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",background:"transparent",color:ee.dismiss,border:"none",borderRadius:"50%",fontSize:"16px",lineHeight:1,cursor:"pointer"};return Te.jsx("div",{ref:V,role:"status","aria-live":"polite",style:Oe,children:Te.jsxs("div",{style:we,children:[Te.jsx("div",{style:ke,children:Te.jsx(hc,{})}),Te.jsxs("div",{style:{flex:1,minWidth:0},children:[Te.jsx("div",{style:{fontSize:"14px",fontWeight:700,lineHeight:1.3,marginBottom:"3px"},children:"Reminder to update your gift!"}),Te.jsx("div",{style:{fontSize:"12.5px",color:ee.sub,lineHeight:1.4},children:"Please take a minute to update the gifts on your account for our new giving platform."})]}),Te.jsx("button",{type:"button",style:Ee,onClick:g,children:"Update"}),Te.jsx("button",{type:"button","aria-label":"Dismiss",style:_e,onClick:E,children:"✕"})]})})}const gc="/search",es="https://apollos.com";function ts(v){return new URL(v||"/","http://embed.invalid").pathname}function vc(v){return new URL(v.baseUrl||es).origin}function yc(v,a){const s=v.baseUrl||es,g=a==="/"?"":a,E=new URL(`${s}/${v.slug}${g}`);E.searchParams.set("embedMode","modal");const C=ts(v.searchPath??gc);return v.feedId&&ts(a)===C&&E.searchParams.set("feedId",v.feedId),E.toString()}const wc=360,Sc=24;function kc(v,a,s){return v&&!a&&s!=null&&s>0}function Ec(v){return Math.max(wc,v+Sc)}const jn={EMBED_INIT:"APOLLOS_EMBED_INIT",FULLSCREEN_CHANGED:"APOLLOS_FULLSCREEN_CHANGED",THEME_CHANGED:"APOLLOS_THEME_CHANGED"},Et={EMBED_READY:"APOLLOS_EMBED_READY",EMBED_UPDATE:"APOLLOS_EMBED_UPDATE",NAVIGATION:"APOLLOS_NAVIGATION",REQUEST_CLOSE:"APOLLOS_REQUEST_CLOSE",REQUEST_FULLSCREEN:"APOLLOS_REQUEST_FULLSCREEN",OPEN_EXTERNAL:"APOLLOS_OPEN_EXTERNAL",REQUEST_NAVIGATION:"APOLLOS_REQUEST_NAVIGATION",HEIGHT_CHANGE:"APOLLOS_HEIGHT_CHANGE",MODAL_OPTIONS:"APOLLOS_MODAL_OPTIONS"},Lr={SHOW_MIGRATION_TOAST:"apollos:showMigrationToast",MIGRATION_TOAST_SHOWN:"apollos:migrationToastShown",MIGRATION_TOAST_TAPPED:"apollos:migrationToastTapped",MIGRATION_TOAST_DISMISSED:"apollos:migrationToastDismissed"};function Bn(v,a,s){v.contentWindow&&v.contentWindow.postMessage(a,s)}function xc(v,a){if(v.origin!==a)return!1;const s=v.data;return!s||typeof s!="object"||typeof s.type!="string"?!1:Object.values(Et).includes(s.type)}const ns=768;function Cc(v){if(!v||typeof v!="object"||Array.isArray(v))return!1;const a=v;return(a.size===void 0||a.size==="default"||a.size==="medium"||a.size==="large"||a.size==="small")&&(a.defaultFullscreen===void 0||typeof a.defaultFullscreen=="boolean")&&(a.fitContent===void 0||typeof a.fitContent=="boolean")}const Tc=({config:v,state:a,onClose:s,onToggleFullscreen:g,onApplyModalOptions:E})=>{const[C,z]=Dn.useState(!0),[D,P]=Dn.useState(null),[V,Q]=Dn.useState(()=>typeof window<"u"&&window.innerWidth>=ns),H=se.useRef(null),G=se.useRef(a);se.useEffect(()=>{G.current=a},[a]);const ee=yc(v,a.currentPath),ce=vc(v),J=a.modalSize==="medium",$=a.modalSize==="large",je=a.modalSize==="small",Be=kc(a.modalFitContent,a.isFullscreen,D),Oe=se.useCallback(le=>{le.key==="Escape"&&a.isOpen&&(le.preventDefault(),s())},[a.isOpen,s]);se.useEffect(()=>(document.addEventListener("keydown",Oe),()=>document.removeEventListener("keydown",Oe)),[Oe]),se.useEffect(()=>(a.isOpen?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[a.isOpen]),se.useEffect(()=>{function le(){Q(window.innerWidth>=ns)}return window.addEventListener("resize",le),()=>window.removeEventListener("resize",le)},[]);const we=le=>{le.target===le.currentTarget&&s()},ke=se.useRef(!1);se.useEffect(()=>{function le(pe){if(xc(pe,ce)&&pe.source===H.current?.contentWindow){if(pe.data.type===Et.EMBED_READY&&(z(!1),H.current)){const Le=G.current;Bn(H.current,{type:jn.EMBED_INIT,payload:{theme:Le.resolvedTheme,showExpandButton:V,isFullscreen:Le.isFullscreen,mode:"modal"}},ce),ke.current=!0}if(pe.data.type===Et.REQUEST_CLOSE&&s(),pe.data.type===Et.REQUEST_FULLSCREEN&&g(),pe.data.type===Et.MODAL_OPTIONS&&Cc(pe.data.payload)&&E(pe.data.payload),pe.data.type===Et.HEIGHT_CHANGE){const Le=pe.data.payload;Le&&typeof Le.height=="number"&&Le.height>0&&P(Le.height)}}}return window.addEventListener("message",le),()=>window.removeEventListener("message",le)},[ce,V,s,g,E]),se.useEffect(()=>{ke.current&&H.current&&Bn(H.current,{type:jn.THEME_CHANGED,payload:{theme:a.resolvedTheme}},ce)},[a.resolvedTheme,ce]),se.useEffect(()=>{ke.current&&H.current&&Bn(H.current,{type:jn.FULLSCREEN_CHANGED,payload:{isFullscreen:a.isFullscreen,showExpandButton:V}},ce)},[a.isFullscreen,V,ce]),se.useEffect(()=>{z(!0),P(null),ke.current=!1},[a.currentPath]),se.useEffect(()=>{a.modalFitContent||P(null)},[a.modalFitContent]),se.useEffect(()=>{z(!0),a.isOpen||(P(null),ke.current=!1)},[a.isOpen]);const Ee=["apls-fixed","apls-inset-0","apls-w-screen","apls-h-screen","supports-[width:100dvw]:apls-w-[100dvw]","supports-[height:100dvh]:apls-h-[100dvh]","apls-flex","apls-items-center","apls-justify-center","apls-bg-black/50",a.isOpen?"apls-opacity-100":"apls-opacity-0 apls-pointer-events-none","apls-transition-opacity","apls-duration-300","apls-ease-out"].join(" "),_e=["apls-relative","apls-flex","apls-flex-col","apls-overflow-hidden","apls-shadow-2xl","apls-backdrop-blur-md","apls-bg-system-screen dark:apls-bg-system-screen-dark","apls-transition-all","apls-duration-300","apls-ease-out",a.isOpen?"apls-scale-100 apls-opacity-100":"apls-scale-95 apls-opacity-0","apls-w-screen","apls-h-screen","apls-max-h-screen","supports-[width:100dvw]:apls-w-[100dvw]","supports-[height:100dvh]:apls-h-[100dvh]","supports-[max-height:100dvh]:apls-max-h-[100dvh]","apls-rounded-none",...a.isFullscreen?["md:apls-w-screen","md:apls-h-screen","md:apls-max-h-screen","md:supports-[width:100dvw]:apls-w-[100dvw]","md:supports-[height:100dvh]:apls-h-[100dvh]","md:supports-[max-height:100dvh]:apls-max-h-[100dvh]"]:Be?["md:apls-w-[calc(100dvw-64px)]",$?"md:apls-max-w-[1120px]":je?"md:apls-max-w-[544px]":J?"md:apls-max-w-[640px]":"md:apls-max-w-[600px]","md:apls-h-auto","md:apls-min-h-[min(360px,calc(100dvh-64px))]","md:apls-max-h-[min(960px,calc(100dvh-64px))]","md:apls-rounded-3xl"]:$?["md:apls-w-[calc(100dvw-64px)]","md:apls-h-[calc(100dvh-64px)]","md:apls-max-w-[1120px]","md:apls-max-h-[960px]","md:apls-rounded-3xl"]:J?["md:apls-w-[calc(100dvw-64px)]","md:apls-h-[calc(100dvh-64px)]","md:apls-max-w-[640px]","md:apls-max-h-[960px]","md:apls-rounded-3xl"]:je?["md:apls-w-[calc(100dvw-64px)]","md:apls-h-[calc(100dvh-64px)]","md:apls-max-w-[544px]","md:apls-max-h-[960px]","md:apls-rounded-3xl"]:["md:apls-w-[600px]","md:apls-h-[900px]","md:apls-max-h-[95vh]","md:apls-rounded-3xl"]].join(" "),te=["apls-flex-1","apls-flex","apls-flex-col","apls-relative","apls-overflow-hidden"].join(" "),Me=["apls-w-full","apls-h-full","apls-flex-grow","apls-border-none","apls-bg-transparent",...C?["apls-hidden"]:[]].join(" "),ut=["apls-absolute","apls-inset-0","apls-flex","apls-items-center","apls-justify-center"].join(" "),xt=["apls-w-8","apls-h-8","apls-border-[3px]","apls-border-solid","apls-border-system-regular dark:apls-border-system-regular-dark","apls-border-t-fg-tertiary dark:apls-border-t-fg-tertiary-dark","apls-rounded-full","apls-animate-spin"].join(" "),tt=Be&&V&&D!=null?{height:`${Ec(D)}px`}:void 0;return Te.jsx("div",{className:Ee,onClick:we,style:{zIndex:v.zIndex},role:"dialog","aria-modal":"true","aria-label":"Apollos Embed",children:Te.jsx("div",{className:_e,style:tt,children:Te.jsxs("div",{className:te,children:[C?Te.jsx("div",{className:ut,children:Te.jsx("div",{className:xt})}):null,a.isOpen?Te.jsx("iframe",{ref:H,className:Me,src:ee,title:"Apollos",allow:"payment *",allowTransparency:!0}):null]})})})};class Pr{iframe=null;static PROBE_ATTRIBUTE="data-apollos-migration-probe";inject(a,s,g){if(this.iframe)return;const E=new URL(`${s.replace(/\/+$/,"")}/${a}/_embed`);g&&E.searchParams.set("personOriginId",g);const C=document.createElement("iframe");C.src=E.toString(),C.width="1",C.height="1",C.style.cssText="position:absolute;top:-9999px;left:-9999px;border:0;",C.setAttribute("sandbox","allow-scripts allow-same-origin"),C.setAttribute("aria-hidden","true"),C.setAttribute("tabindex","-1"),C.title="Apollos migration probe",C.setAttribute(Pr.PROBE_ATTRIBUTE,"true"),document.body.appendChild(C),this.iframe=C}getContentWindow(){return this.iframe?.contentWindow??null}postToProbe(a){const s=this.iframe?.contentWindow;!s||!this.iframe||s.postMessage({type:a},new URL(this.iframe.src).origin)}notifyShown(){this.postToProbe(Lr.MIGRATION_TOAST_SHOWN)}notifyTapped(){this.postToProbe(Lr.MIGRATION_TOAST_TAPPED)}notifyDismissed(){this.postToProbe(Lr.MIGRATION_TOAST_DISMISSED)}destroy(){this.iframe?.remove(),this.iframe=null}}function _c(v){return v.includes("ContentItem")?"/c":v==="Event"?"/e":v==="FeatureFeed"?"/f":v==="Livestream"?"/live":"/c"}function Lc(v){if(/^[A-Z]\w+-/.test(v)){const[s,...g]=v.split(/-(.*)/s);if(s&&g[0])return{type:s,randomId:g[0]}}else{const s=v.split("-").at(-1);if(!s)return null;try{const g=atob(s),[E,...C]=g.split(/-(.*)/s);if(E&&C[0])return{type:E,randomId:C[0]}}catch{return null}}return null}const rs="Ask anything",Kl="/search",Pc={showAskBar:!1,askBarLabel:rs,searchPath:Kl,interceptLinks:!0,position:"bottom-center",offsetX:0,offsetY:48,autoOpen:!1,defaultPath:"/",baseUrl:"https://apollos.com",zIndex:999999,themeMode:"light"};class gt{config;state;container=null;root=null;askBar=null;askBarKeyListener=null;mediaQueryListener=null;mediaQuery=null;messageListener=null;embedIframe=new Pr;personOriginIdObserver=null;migrationToastContainer=null;migrationToastRoot=null;migrationToastPayload=null;pendingMigrationToastPayload=null;domContentLoadedListener=null;destroyed=!1;hasExplicitFullscreenSelection=!1;inlineIframes=new Map;inlineSkeletons=new Map;inlineSkeletonParentRestore=new Map;inlineSkeletonFallbackTimeouts=new Map;heightChangeTimeouts=new Map;static HEIGHT_TRANSITION_MS=120;static HEIGHT_DEBOUNCE_MS=120;static INLINE_SKELETON_FALLBACK_MS=2500;static INLINE_READY_FALLBACK_MS=400;static hasInjectedSkeletonStyles=!1;constructor(a){if(this.config={...Pc,...a},this.state={isOpen:!1,isFullscreen:!1,modalSize:"default",modalFitContent:!1,currentPath:this.config.defaultPath||"/",canGoBack:!1,resolvedTheme:this.resolveTheme()},!this.config.slug)throw new Error("ApollosEmbed: slug is required in config");this.init()}resolveTheme(){const{themeMode:a}=this.config;return a==="light"?"light":a==="dark"?"dark":this.resolveSystemTheme()}resolveSystemTheme(){return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}readIframeThemeAttribute(a){const s=a.getAttribute("data-apollos-theme");return s==="light"||s==="dark"||s==="auto"?s:null}getIframeTheme(a){const s=this.readIframeThemeAttribute(a);return s==="light"||s==="dark"?s:s==="auto"?this.resolveSystemTheme():this.state.resolvedTheme}setupThemeListener(){this.cleanupThemeListener(),!(typeof window>"u"||!window.matchMedia)&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQueryListener=a=>{this.config.themeMode==="auto"&&(this.state.resolvedTheme=a.matches?"dark":"light",this.applyThemeClass(),this.render(),this.renderMigrationToastContent(),this.askBar&&(this.removeAskBar(),this.createAskBar())),this.sendThemeToInlineIframes()},this.mediaQuery.addEventListener("change",this.mediaQueryListener))}cleanupThemeListener(){this.mediaQuery&&this.mediaQueryListener&&this.mediaQuery.removeEventListener("change",this.mediaQueryListener),this.mediaQuery=null,this.mediaQueryListener=null}readPersonOriginId(){if(this.config.personOriginId)return this.config.personOriginId;for(const a of this.inlineIframes.keys()){const s=a.getAttribute("personoriginid")?.trim();if(s)return s}}watchForPersonOriginId(a){if(!(typeof MutationObserver>"u"||this.inlineIframes.size===0)){this.personOriginIdObserver=new MutationObserver(s=>{for(const g of s){const E=g.target.getAttribute("personoriginid")?.trim();if(E){if(this.cleanupPersonOriginIdObserver(),this.migrationToastContainer)return;this.embedIframe.destroy(),this.embedIframe.inject(this.config.slug,a,E);return}}});for(const s of this.inlineIframes.keys())this.personOriginIdObserver.observe(s,{attributes:!0,attributeFilter:["personoriginid"]})}}cleanupPersonOriginIdObserver(){this.personOriginIdObserver?.disconnect(),this.personOriginIdObserver=null}applyThemeClass(){this.container&&(this.state.resolvedTheme==="dark"?this.container.classList.add("apls-dark"):this.container.classList.remove("apls-dark"))}init(){document.readyState==="loading"?(this.domContentLoadedListener=()=>{this.domContentLoadedListener=null,this.setup()},document.addEventListener("DOMContentLoaded",this.domContentLoadedListener)):this.setup()}setup(){if(!this.destroyed){if(this.config.interceptLinks&&this.setupLinkInterception(),this.setupThemeListener(),this.setupMessageListener(),this.initializeInlineIframes(),this.createContainer(),!this.wasMigrationToastDismissedThisVisit()){const a=this.config.baseUrl||"https://apollos.com",s=this.readPersonOriginId();this.embedIframe.inject(this.config.slug,a,s),s||this.watchForPersonOriginId(a)}this.config.showAskBar&&this.createAskBar(),this.config.autoOpen&&this.open(),this.checkDeepLinkParams()}}createContainer(){this.container=document.createElement("div"),this.container.id="apollos-embed-root",this.container.classList.add("apollos-embed"),document.body.appendChild(this.container),this.applyThemeClass(),this.root=Yo.createRoot(this.container),this.render()}createAskBar(){const a=this.state.resolvedTheme==="dark",s=this.config.askBarLabel??rs,g=document.createElement("button");g.type="button",g.setAttribute("aria-label",s),g.className="apollos-ask-bar";const E=document.createElement("span");Object.assign(E.style,{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",flex:"0 0 auto"}),E.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>';const C=document.createElement("span");Object.assign(C.style,{flex:"1 1 auto",textAlign:"left",whiteSpace:"nowrap"}),C.textContent=s;const z=document.createElement("kbd");Object.assign(z.style,{font:"inherit",fontSize:"11px",lineHeight:"1",padding:"3px 6px",borderRadius:"6px",border:`1px solid ${a?"rgba(255,255,255,0.18)":"rgba(0,0,0,0.12)"}`,color:a?"rgba(255,255,255,0.6)":"rgba(0,0,0,0.45)",background:"transparent"}),z.textContent="⌘K",g.appendChild(E),g.appendChild(C),g.appendChild(z),Object.assign(g.style,{all:"unset",boxSizing:"border-box",display:"inline-flex",alignItems:"center",gap:"10px",cursor:"pointer",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',fontSize:"15px",fontWeight:"500",minWidth:"240px",padding:"11px 14px",borderRadius:"9999px",border:a?"1px solid rgba(255,255,255,0.14)":"1px solid rgba(0,0,0,0.08)",background:a?"#1c1c1e":"#ffffff",color:a?"#f2f2f7":"#1c1c1e",boxShadow:a?"0 6px 24px rgba(0,0,0,0.5)":"0 6px 24px rgba(0,0,0,0.14)"}),g.addEventListener("click",()=>{this.open(this.config.searchPath??Kl)});const D=this.config.askBarTarget?document.querySelector(this.config.askBarTarget):null;if(D)D.appendChild(g),this.askBar=g;else{const P=document.createElement("div");Object.assign(P.style,{position:"fixed",zIndex:String((this.config.zIndex??999999)-1),...this.askBarPlacementStyles()}),P.appendChild(g),document.body.appendChild(P),this.askBar=P}this.askBarKeyListener=P=>{if((P.metaKey||P.ctrlKey)&&P.key.toLowerCase()==="k"){if(gt.isEditableEventTarget(P))return;P.preventDefault(),this.open(this.config.searchPath??Kl)}},document.addEventListener("keydown",this.askBarKeyListener)}askBarPlacementStyles(){const a=`${this.config.offsetX??0}px`,s=`${this.config.offsetY??48}px`,g=`${Math.max(this.config.offsetX??0,16)}px`;switch(this.config.position){case"bottom-right":return{bottom:s,right:g};case"bottom-left":return{bottom:s,left:g};case"top-right":return{top:s,right:g};case"top-left":return{top:s,left:g};case"top-center":return{top:s,left:"50%",transform:"translateX(-50%)"};default:return{bottom:s,left:`calc(50% + ${a})`,transform:"translateX(-50%)"}}}static isEditableEventTarget(a){const s=E=>{if(!(E instanceof HTMLElement))return!1;const C=E.tagName;return C==="INPUT"||C==="TEXTAREA"||C==="SELECT"||E.isContentEditable},g=typeof a.composedPath=="function"?a.composedPath():[];return g.length?g.some(s):s(a.target)}removeAskBar(){this.askBarKeyListener&&(document.removeEventListener("keydown",this.askBarKeyListener),this.askBarKeyListener=null),this.askBar&&(this.askBar.remove(),this.askBar=null)}render(){this.root&&this.root.render(Dn.createElement(Tc,{config:this.config,state:{...this.state},onClose:()=>this.close(),onToggleFullscreen:()=>this.toggleFullscreen(),onApplyModalOptions:a=>this.applyModalOptions(a)}))}toggleFullscreen(){this.hasExplicitFullscreenSelection=!0,this.state.isFullscreen=!this.state.isFullscreen,this.render()}applyModalOptions(a){this.state.modalSize=a.size??"default",this.state.modalFitContent=a.fitContent??!1,typeof a.defaultFullscreen=="boolean"&&!this.hasExplicitFullscreenSelection&&(this.state.isFullscreen=a.defaultFullscreen),this.render()}setupLinkInterception(){document.addEventListener("click",a=>{const g=a.target.closest("a");if(g&&this.shouldInterceptLink(g)){a.preventDefault();const C=new URL(g.href).pathname.replace(`/${this.config.slug}`,"")||"/",z=this.getLinkFullscreenOption(g);this.open(C,z!==void 0?{fullscreen:z}:void 0)}})}shouldInterceptLink(a){if(a.hasAttribute("data-apollos-external"))return!1;const s=a.href,g=this.config.baseUrl||"https://apollos.com";return new RegExp(`(apollos\\.com|${g.replace(/https?:\/\//,"")})/${this.config.slug}`).test(s)}getLinkFullscreenOption(a){if(!a.hasAttribute("data-apollos-fullscreen"))return;const s=a.getAttribute("data-apollos-fullscreen");return!(s==="false"||s==="0")}setupMessageListener(){const a=this.config.baseUrl||"https://apollos.com",s=new URL(a).origin;this.messageListener=g=>{if(g.origin!==s||!g.data||typeof g.data!="object")return;const{type:E,payload:C}=g.data;if(E===Et.EMBED_READY){const z=g.source;this.inlineIframes.forEach((D,P)=>{P.contentWindow===z&&(this.sendInlineIframeInit(P),this.inlineIframes.set(P,!0),this.scheduleInlineSkeletonFallback(P,gt.INLINE_READY_FALLBACK_MS))})}if(E===Et.REQUEST_NAVIGATION){const z=C;if(z?.path){if(/^https?:\/\//i.test(z.path)){window.location.assign(z.path);return}const D=this.config.navigationModalFullscreen===!0;this.open(z.path,{fullscreen:D})}}if(E===Et.HEIGHT_CHANGE){const z=C;if(z&&typeof z.height=="number"&&z.height>0){const D=g.source;let P=null;if(this.inlineIframes.forEach((V,Q)=>{Q.contentWindow===D&&(P=Q)}),!P){const V=document.querySelectorAll("iframe");for(const Q of V)if(!this.container?.contains(Q)&&Q.contentWindow===D){P=Q;break}}P&&(this.scheduleHeightChange(P,z.height),this.inlineSkeletons.has(P)&&this.removeInlineSkeleton(P))}}if(E===Lr.SHOW_MIGRATION_TOAST){const z=C,D=this.embedIframe.getContentWindow();z&&typeof z.migratePath=="string"&&D!==null&&g.source===D&&this.renderMigrationToast(z)}},window.addEventListener("message",this.messageListener)}migrationToastDismissalKey(){return`apollos:migrationToastDismissed:${this.config.slug}`}wasMigrationToastDismissedThisVisit(){try{return window.sessionStorage.getItem(this.migrationToastDismissalKey())==="1"}catch{return!1}}markMigrationToastDismissedForVisit(){try{window.sessionStorage.setItem(this.migrationToastDismissalKey(),"1")}catch{}}renderMigrationToast(a){if(this.migrationToastContainer||this.wasMigrationToastDismissedThisVisit())return;if(this.state.isOpen){this.pendingMigrationToastPayload=a;return}const s=document.createElement("div");s.classList.add("apollos-embed"),document.body.appendChild(s),this.migrationToastContainer=s,this.migrationToastRoot=Yo.createRoot(s),this.migrationToastPayload=a,this.renderMigrationToastContent(),this.embedIframe.notifyShown()}renderPendingMigrationToast(){const a=this.pendingMigrationToastPayload;a&&(this.pendingMigrationToastPayload=null,this.renderMigrationToast(a))}renderMigrationToastContent(){const a=this.migrationToastPayload;!this.migrationToastRoot||!a||this.migrationToastRoot.render(Dn.createElement(mc,{zIndex:(this.config.zIndex??999999)+1,theme:this.state.resolvedTheme,brandColor:typeof a.brandColor=="string"?a.brandColor:null,onUpdate:()=>{this.embedIframe.notifyTapped(),this.markMigrationToastDismissedForVisit(),this.removeMigrationToast(),this.open(a.migratePath.replace(/^\/[^/?]+/,""))},onDismiss:()=>{this.embedIframe.notifyDismissed(),this.markMigrationToastDismissedForVisit(),this.removeMigrationToast()}}))}removeMigrationToast(){const a=this.migrationToastRoot,s=this.migrationToastContainer;this.migrationToastRoot=null,this.migrationToastContainer=null,this.migrationToastPayload=null,!(!a||!s)&&setTimeout(()=>{a.unmount(),s.remove()},0)}scheduleHeightChange(a,s){const g=this.heightChangeTimeouts.get(a);g&&clearTimeout(g.timeoutId);const E=setTimeout(()=>{this.heightChangeTimeouts.delete(a),this.applyHeightWithTransition(a,s)},gt.HEIGHT_DEBOUNCE_MS);this.heightChangeTimeouts.set(a,{timeoutId:E,height:s})}applyHeightWithTransition(a,s){(a.style.height?parseFloat(a.style.height):NaN)!==s&&(a.style.transition=`height ${gt.HEIGHT_TRANSITION_MS}ms ease-out`,a.style.height=`${s}px`)}scheduleInlineSkeletonFallback(a,s){if(!this.inlineSkeletons.has(a))return;const g=this.inlineSkeletonFallbackTimeouts.get(a);g&&clearTimeout(g);const E=setTimeout(()=>{this.inlineSkeletonFallbackTimeouts.delete(a),this.inlineSkeletons.has(a)&&this.removeInlineSkeleton(a)},s);this.inlineSkeletonFallbackTimeouts.set(a,E)}cleanupMessageListener(){this.messageListener&&(window.removeEventListener("message",this.messageListener),this.messageListener=null)}initializeInlineIframes(){const a=this.config.baseUrl||"https://apollos.com",s=new URL(a).origin;document.querySelectorAll("iframe").forEach(E=>{if(this.isInlineEmbed(E,s)){const C=this.applyInlineIframeUrlParams(E);this.inlineIframes.set(E,!1),this.createInlineSkeleton(E),C||this.sendInlineIframeInit(E)}})}isInlineEmbed(a,s){const g=a.src;if(!g||a.hasAttribute(Pr.PROBE_ATTRIBUTE))return!1;try{const E=new URL(g);return!(E.origin!==s||!E.pathname.startsWith(`/${this.config.slug}`))}catch{return!1}}applyInlineIframeUrlParams(a){const s=a.src;if(!s)return!1;try{const g=new URL(s);let E=!1;g.searchParams.get("embedMode")!=="inline"&&(g.searchParams.set("embedMode","inline"),E=!0);const C=this.getIframeTheme(a);return g.searchParams.get("theme")!==C&&(g.searchParams.set("theme",C),E=!0),E&&(a.src=g.toString()),E}catch{return!1}}sendInlineIframeInit(a){const s=this.config.baseUrl||"https://apollos.com",g=new URL(s).origin;Bn(a,{type:jn.EMBED_INIT,payload:{theme:this.getIframeTheme(a),showExpandButton:!1,isFullscreen:!1,mode:"inline"}},g)}sendThemeToInlineIframes(){const a=this.config.baseUrl||"https://apollos.com",s=new URL(a).origin;this.inlineIframes.forEach((g,E)=>{if(!g)return;const C=this.readIframeThemeAttribute(E);C==="light"||C==="dark"||C!=="auto"&&this.config.themeMode!=="auto"||Bn(E,{type:jn.THEME_CHANGED,payload:{theme:this.getIframeTheme(E)}},s)})}checkDeepLinkParams(){const a=new URLSearchParams(window.location.search),s=this.getDeepLinkModalOptions(a),g=a.get("a");if(g){this.openWithFullscreenDefault(g,s),this.stripConsumedDeepLinkParams(["a","apollosModalSize","apollosFullscreen"]);return}const E=a.get("apollosId")?"apollosId":a.get("id")?"id":null,C=E?a.get(E):null;if(C&&E){const z=Lc(C);if(z){const D=_c(z.type);this.openWithFullscreenDefault(`${D}/${C}`,{fullscreen:!0})}else this.openWithFullscreenDefault(`/c/${C}`,{fullscreen:!0});this.stripConsumedDeepLinkParams([E]);return}}stripConsumedDeepLinkParams(a){if(typeof window>"u"||!window.history?.replaceState)return;const s=new URL(window.location.href);let g=!1;for(const E of a)s.searchParams.has(E)&&(s.searchParams.delete(E),g=!0);g&&window.history.replaceState(window.history.state,"",s.pathname+s.search+s.hash)}open(a,s){this.openInternal(a,s,s?.fullscreen!==void 0)}openWithFullscreenDefault(a,s){const g=s?.fullscreen!==void 0;this.openInternal(a,{fullscreen:s?.fullscreen??!0,modalSize:s?.modalSize},g)}openInternal(a,s,g=!1){this.removeMigrationToast(),this.hasExplicitFullscreenSelection=g,a&&(this.state.currentPath=a),this.state.isOpen=!0,this.state.modalSize=s?.modalSize??"default",this.state.modalFitContent=!1,s?.fullscreen===!0?this.state.isFullscreen=!0:s?.fullscreen===!1?this.state.isFullscreen=!1:this.config.defaultFullscreen===!0&&(this.state.isFullscreen=!0),this.render(),this.config.onOpen?.()}getDeepLinkModalOptions(a){const s=this.parseModalSize(a.get("apollosModalSize")),g=this.parseBoolean(a.get("apollosFullscreen"));if(!(s===void 0&&g===void 0))return{modalSize:s,fullscreen:g}}parseModalSize(a){if(a==="default"||a==="medium"||a==="large"||a==="small")return a}parseBoolean(a){if(a==="true")return!0;if(a==="false")return!1}close(){this.hasExplicitFullscreenSelection=!1,this.state.isOpen=!1,this.state.isFullscreen=!1,this.state.modalSize="default",this.state.modalFitContent=!1,this.render(),this.config.onClose?.(),this.renderPendingMigrationToast()}toggle(){this.state.isOpen?this.close():this.open()}navigate(a){this.state.currentPath=a,this.render(),this.config.onNavigate?.(a)}isOpen(){return this.state.isOpen}destroy(){this.destroyed=!0,this.domContentLoadedListener&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedListener),this.domContentLoadedListener=null),this.removeAskBar(),this.cleanupThemeListener(),this.cleanupMessageListener(),this.cleanupPersonOriginIdObserver(),this.embedIframe.destroy(),this.pendingMigrationToastPayload=null,this.removeMigrationToast(),this.heightChangeTimeouts.forEach(({timeoutId:a})=>clearTimeout(a)),this.heightChangeTimeouts.clear(),this.inlineSkeletonFallbackTimeouts.forEach(a=>clearTimeout(a)),this.inlineSkeletonFallbackTimeouts.clear(),this.inlineIframes.clear(),Array.from(this.inlineSkeletons.keys()).forEach(a=>{this.removeInlineSkeleton(a)}),this.root&&(this.root.unmount(),this.root=null),this.container&&(this.container.remove(),this.container=null)}getState(){return{...this.state}}getConfig(){return{...this.config}}createInlineSkeleton(a){if(this.inlineSkeletons.has(a))return;gt.ensureSkeletonStyles();const s=document.createElement("div");s.setAttribute("aria-busy","true"),s.style.position="absolute",s.style.inset="0",s.style.display="flex",s.style.alignItems="stretch",s.style.justifyContent="flex-start",s.style.pointerEvents="none";const g=document.createElement("div");g.style.borderRadius="12px",g.style.padding="74px 24px 20px 24px",g.style.boxShadow="0 10px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.12)",g.style.minHeight="360px",g.style.display="flex",g.style.flexDirection="column",g.style.justifyContent="flex-start",g.style.gap="0",g.style.width="100%",g.style.maxWidth="100%";const E=this.state.resolvedTheme==="dark";g.style.backgroundColor=E?"#111827":"#f3f4f6";const C=(Q,H,G)=>{const ee=document.createElement("div");return ee.style.height=`${Q}px`,ee.style.borderRadius=`${H}px`,ee.style.backgroundColor=E?"#374151":"#ffffff",ee.style.width="100%",ee.style.marginBottom=`${G}px`,ee.style.animation="apls-inline-skeleton-pulse 1.4s ease-in-out infinite",ee},z=C(68,8,12),D=C(56,8,24),P=document.createElement("div");P.style.height="50px",P.style.width="100%",P.style.borderRadius="12px",P.style.backgroundColor=E?"#374151":"#ffffff",P.style.animation="apls-inline-skeleton-pulse 1.4s ease-in-out infinite",g.appendChild(z),g.appendChild(D),g.appendChild(P),s.appendChild(g);const V=a.parentElement;if(V){const Q=window.getComputedStyle(V);Q.position==="static"&&(this.inlineSkeletonParentRestore.set(a,{parent:V,originalPosition:Q.position}),V.style.position="relative"),V.appendChild(s),this.inlineSkeletons.set(a,s),a.style.visibility="hidden",this.scheduleInlineSkeletonFallback(a,gt.INLINE_SKELETON_FALLBACK_MS)}}removeInlineSkeleton(a){const s=this.inlineSkeletons.get(a);s&&s.parentElement&&s.parentElement.removeChild(s),this.inlineSkeletons.delete(a);const g=this.inlineSkeletonFallbackTimeouts.get(a);g&&(clearTimeout(g),this.inlineSkeletonFallbackTimeouts.delete(a)),a.style.visibility="";const E=this.inlineSkeletonParentRestore.get(a);E&&(E.parent.style.position=E.originalPosition,this.inlineSkeletonParentRestore.delete(a))}static ensureSkeletonStyles(){if(gt.hasInjectedSkeletonStyles||typeof document>"u")return;const a=document.createElement("style");a.textContent=`
|
|
9
|
+
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function co(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function fo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ed=typeof WeakMap=="function"?WeakMap:Map;function sa(e,t,n){n=It(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tl||(Tl=!0,Lo=r),fo(e,t)},n}function ua(e,t,n){n=It(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){fo(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){fo(e,t),typeof r!="function"&&($t===null?$t=new Set([this]):$t.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=hd.bind(null,e,t,n),t.then(e,e))}function ca(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fa(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=It(-1,1),t.tag=2,Vt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var td=we.ReactCurrentOwner,Ge=!1;function He(e,t,n,r){t.child=e===null?Ou(t,null,n,r):Pn(t,e.child,n,r)}function da(e,t,n,r,l){n=n.render;var i=t.ref;return Nn(t,l),r=no(e,t,n,r,i,l),n=ro(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Nt(e,t,l)):(ae&&n&&ji(t),t.flags|=1,He(e,t,r,l),t.child)}function pa(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Mo(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ha(e,t,i,r,l)):(e=Ol(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ir,n(o,r)&&e.ref===t.ref)return Nt(e,t,l)}return t.flags|=1,e=Xt(i,r),e.ref=t.ref,e.return=t,t.child=e}function ha(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(ir(i,r)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=r=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,Nt(e,t,l)}return po(e,t,n,r,l)}function ma(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(Mn,et),et|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(Mn,et),et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,re(Mn,et),et|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,re(Mn,et),et|=r;return He(e,t,l,n),t.child}function ga(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function po(e,t,n,r,l){var i=Ke(n)?bt:Ae.current;return i=Cn(t,i),Nn(t,l),n=no(e,t,n,r,i,l),r=ro(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Nt(e,t,l)):(ae&&r&&ji(t),t.flags|=1,He(e,t,n,l),t.child)}function va(e,t,n,r,l){if(Ke(n)){var i=!0;nl(t)}else i=!1;if(Nn(t,l),t.stateNode===null)Sl(e,t),ia(t,n,r),ao(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var c=o.context,m=n.contextType;typeof m=="object"&&m!==null?m=lt(m):(m=Ke(n)?bt:Ae.current,m=Cn(t,m));var S=n.getDerivedStateFromProps,k=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function";k||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||c!==m)&&oa(t,o,r,m),Wt=!1;var y=t.memoizedState;o.state=y,fl(t,r,o,l),c=t.memoizedState,u!==r||y!==c||$e.current||Wt?(typeof S=="function"&&(uo(t,n,S,r),c=t.memoizedState),(u=Wt||la(t,n,u,r,y,c,m))?(k||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=m,r=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,zu(e,t),u=t.memoizedProps,m=t.type===t.elementType?u:dt(t.type,u),o.props=m,k=t.pendingProps,y=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=lt(c):(c=Ke(n)?bt:Ae.current,c=Cn(t,c));var _=n.getDerivedStateFromProps;(S=typeof _=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==k||y!==c)&&oa(t,o,r,c),Wt=!1,y=t.memoizedState,o.state=y,fl(t,r,o,l);var N=t.memoizedState;u!==k||y!==N||$e.current||Wt?(typeof _=="function"&&(uo(t,n,_,r),N=t.memoizedState),(m=Wt||la(t,n,m,r,y,N,c)||!1)?(S||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,N,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,N,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=N),o.props=r,o.state=N,o.context=c,r=m):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return ho(e,t,n,r,i,l)}function ho(e,t,n,r,l,i){ga(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Eu(t,n,!1),Nt(e,t,i);r=t.stateNode,td.current=t;var u=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Pn(t,e.child,null,i),t.child=Pn(t,null,u,i)):He(e,t,u,i),t.memoizedState=r.state,l&&Eu(t,n,!0),t.child}function ya(e){var t=e.stateNode;t.pendingContext?Su(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Su(e,t.context,!1),Zi(e,t.containerInfo)}function wa(e,t,n,r,l){return Ln(),Vi(l),t.flags|=256,He(e,t,n,r),t.child}var mo={dehydrated:null,treeContext:null,retryLane:0};function go(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sa(e,t,n){var r=t.pendingProps,l=fe.current,i=!1,o=(t.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),re(fe,l&1),e===null)return Wi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Rl(o,r,0,null),e=cn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=go(n),t.memoizedState=mo,e):vo(t,o));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return nd(e,t,o,r,u,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,u=l.sibling;var c={mode:"hidden",children:r.children};return(o&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Xt(l,c),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?i=Xt(u,i):(i=cn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?go(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=mo,r}return i=e.child,e=i.sibling,r=Xt(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vo(e,t){return t=Rl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wl(e,t,n,r){return r!==null&&Vi(r),Pn(t,e.child,null,n),e=vo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nd(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=co(Error(s(422))),wl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Rl({mode:"visible",children:r.children},l,0,null),i=cn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Pn(t,e.child,null,o),t.child.memoizedState=go(o),t.memoizedState=mo,i);if((t.mode&1)===0)return wl(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(s(419)),r=co(i,r,void 0),wl(e,t,o,r)}if(u=(o&e.childLanes)!==0,Ge||u){if(r=Ie,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|o))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Pt(e,l),mt(r,e,l,-1))}return zo(),r=co(Error(s(421))),wl(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=md.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,be=Ut(l.nextSibling),qe=t,ae=!0,ft=null,e!==null&&(nt[rt++]=_t,nt[rt++]=Lt,nt[rt++]=en,_t=e.id,Lt=e.overflow,en=t),t=vo(t,r.children),t.flags|=4096,t)}function ka(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gi(e.return,t,n)}function yo(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Ea(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(He(e,t,r.children,n),r=fe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ka(e,n,t);else if(e.tag===19)ka(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(re(fe,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&dl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),yo(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&dl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}yo(t,!0,n,null,i);break;case"together":yo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),on|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Xt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rd(e,t,n){switch(t.tag){case 3:ya(t),Ln();break;case 5:Fu(t);break;case 1:Ke(t.type)&&nl(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;re(ul,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(fe,fe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Sa(e,t,n):(re(fe,fe.current&1),e=Nt(e,t,n),e!==null?e.sibling:null);re(fe,fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Ea(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),re(fe,fe.current),r)break;return null;case 22:case 23:return t.lanes=0,ma(e,t,n)}return Nt(e,t,n)}var xa,wo,Ca,Ta;xa=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},wo=function(){},Ca=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,rn(wt.current);var i=null;switch(n){case"input":l=Gl(e,l),r=Gl(e,r),i=[];break;case"select":l=I({},l,{value:void 0}),r=I({},r,{value:void 0}),i=[];break;case"textarea":l=Zl(e,l),r=Zl(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=br)}ql(n,r);var o;n=null;for(m in l)if(!r.hasOwnProperty(m)&&l.hasOwnProperty(m)&&l[m]!=null)if(m==="style"){var u=l[m];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else m!=="dangerouslySetInnerHTML"&&m!=="children"&&m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(E.hasOwnProperty(m)?i||(i=[]):(i=i||[]).push(m,null));for(m in r){var c=r[m];if(u=l?.[m],r.hasOwnProperty(m)&&c!==u&&(c!=null||u!=null))if(m==="style")if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(m,n)),n=c;else m==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(i=i||[]).push(m,c)):m==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(m,""+c):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&(E.hasOwnProperty(m)?(c!=null&&m==="onScroll"&&ie("scroll",e),i||u===c||(i=[])):(i=i||[]).push(m,c))}n&&(i=i||[]).push("style",n);var m=i;(t.updateQueue=m)&&(t.flags|=4)}},Ta=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sr(e,t){if(!ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ld(e,t,n){var r=t.pendingProps;switch(Bi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return Ke(t.type)&&tl(),De(t),null;case 3:return r=t.stateNode,On(),oe($e),oe(Ae),bi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ol(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ft!==null&&(No(ft),ft=null))),wo(e,t),De(t),null;case 5:Ji(t);var l=rn(mr.current);if(n=t.type,e!==null&&t.stateNode!=null)Ca(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(s(166));return De(t),null}if(e=rn(wt.current),ol(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[yt]=t,r[cr]=i,e=(t.mode&1)!==0,n){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(l=0;l<sr.length;l++)ie(sr[l],r);break;case"source":ie("error",r);break;case"img":case"image":case"link":ie("error",r),ie("load",r);break;case"details":ie("toggle",r);break;case"input":is(r,i),ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ie("invalid",r);break;case"textarea":us(r,i),ie("invalid",r)}ql(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var u=i[o];o==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&qr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&qr(r.textContent,u,e),l=["children",""+u]):E.hasOwnProperty(o)&&u!=null&&o==="onScroll"&&ie("scroll",r)}switch(n){case"input":Ir(r),ss(r,i,!0);break;case"textarea":Ir(r),cs(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=br)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fs(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[yt]=t,e[cr]=r,xa(e,t,!1,!1),t.stateNode=e;e:{switch(o=bl(n,r),n){case"dialog":ie("cancel",e),ie("close",e),l=r;break;case"iframe":case"object":case"embed":ie("load",e),l=r;break;case"video":case"audio":for(l=0;l<sr.length;l++)ie(sr[l],e);l=r;break;case"source":ie("error",e),l=r;break;case"img":case"image":case"link":ie("error",e),ie("load",e),l=r;break;case"details":ie("toggle",e),l=r;break;case"input":is(e,r),l=Gl(e,r),ie("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=I({},r,{value:void 0}),ie("invalid",e);break;case"textarea":us(e,r),l=Zl(e,r),ie("invalid",e);break;default:l=r}ql(n,l),u=l;for(i in u)if(u.hasOwnProperty(i)){var c=u[i];i==="style"?hs(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&ds(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Wn(e,c):typeof c=="number"&&Wn(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(E.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ie("scroll",e):c!=null&&Oe(e,i,c,o))}switch(n){case"input":Ir(e),ss(e,r,!1);break;case"textarea":Ir(e),cs(e);break;case"option":r.value!=null&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?dn(e,!!r.multiple,i,!1):r.defaultValue!=null&&dn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=br)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return De(t),null;case 6:if(e&&t.stateNode!=null)Ta(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(n=rn(mr.current),rn(wt.current),ol(t)){if(r=t.stateNode,n=t.memoizedProps,r[yt]=t,(i=r.nodeValue!==n)&&(e=qe,e!==null))switch(e.tag){case 3:qr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qr(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yt]=t,t.stateNode=r}return De(t),null;case 13:if(oe(fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&be!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Pu(),Ln(),t.flags|=98560,i=!1;else if(i=ol(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[yt]=t}else Ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),i=!1}else ft!==null&&(No(ft),ft=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(fe.current&1)!==0?Ce===0&&(Ce=3):zo())),t.updateQueue!==null&&(t.flags|=4),De(t),null);case 4:return On(),wo(e,t),e===null&&ur(t.stateNode.containerInfo),De(t),null;case 10:return Ki(t.type._context),De(t),null;case 17:return Ke(t.type)&&tl(),De(t),null;case 19:if(oe(fe),i=t.memoizedState,i===null)return De(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Sr(i,!1);else{if(Ce!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=dl(e),o!==null){for(t.flags|=128,Sr(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(fe,fe.current&1|2),t.child}e=e.sibling}i.tail!==null&&ge()>An&&(t.flags|=128,r=!0,Sr(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ae)return De(t),null}else 2*ge()-i.renderingStartTime>An&&n!==1073741824&&(t.flags|=128,r=!0,Sr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ge(),t.sibling=null,n=fe.current,re(fe,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ro(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(et&1073741824)!==0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function id(e,t){switch(Bi(t),t.tag){case 1:return Ke(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),oe($e),oe(Ae),bi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ji(t),null;case 13:if(oe(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(fe),null;case 4:return On(),null;case 10:return Ki(t.type._context),null;case 22:case 23:return Ro(),null;case 24:return null;default:return null}}var kl=!1,Ue=!1,od=typeof WeakSet=="function"?WeakSet:Set,L=null;function zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function So(e,t,n){try{n()}catch(r){me(e,t,r)}}var _a=!1;function sd(e,t){if(Oi=Hr,e=lu(),xi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,c=-1,m=0,S=0,k=e,y=null;t:for(;;){for(var _;k!==n||l!==0&&k.nodeType!==3||(u=o+l),k!==i||r!==0&&k.nodeType!==3||(c=o+r),k.nodeType===3&&(o+=k.nodeValue.length),(_=k.firstChild)!==null;)y=k,k=_;for(;;){if(k===e)break t;if(y===n&&++m===l&&(u=o),y===i&&++S===r&&(c=o),(_=k.nextSibling)!==null)break;k=y,y=k.parentNode}k=_}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ri={focusedElem:e,selectionRange:n},Hr=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var N=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(N!==null){var O=N.memoizedProps,ve=N.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?O:dt(t.type,O),ve);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(x){me(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return N=_a,_a=!1,N}function kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&So(t,n,i)}l=l.next}while(l!==r)}}function El(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ko(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t=="function"?t(e):t.current=e}}function La(e){var t=e.alternate;t!==null&&(e.alternate=null,La(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[cr],delete t[Fi],delete t[Vf],delete t[Qf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pa(e){return e.tag===5||e.tag===3||e.tag===4}function Ia(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Eo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=br));else if(r!==4&&(e=e.child,e!==null))for(Eo(e,t,n),e=e.sibling;e!==null;)Eo(e,t,n),e=e.sibling}function xo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xo(e,t,n),e=e.sibling;e!==null;)xo(e,t,n),e=e.sibling}var Re=null,pt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Na(e,t,n),n=n.sibling}function Na(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Ar,n)}catch{}switch(n.tag){case 5:Ue||zn(n,t);case 6:var r=Re,l=pt;Re=null,Qt(e,t,n),Re=r,pt=l,Re!==null&&(pt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(pt?(e=Re,n=n.stateNode,e.nodeType===8?Ai(e.parentNode,n):e.nodeType===1&&Ai(e,n),bn(e)):Ai(Re,n.stateNode));break;case 4:r=Re,l=pt,Re=n.stateNode.containerInfo,pt=!0,Qt(e,t,n),Re=r,pt=l;break;case 0:case 11:case 14:case 15:if(!Ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&((i&2)!==0||(i&4)!==0)&&So(n,t,o),l=l.next}while(l!==r)}Qt(e,t,n);break;case 1:if(!Ue&&(zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){me(n,t,u)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,Qt(e,t,n),Ue=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function Oa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new od),t.forEach(function(r){var l=gd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,o=t,u=o;e:for(;u!==null;){switch(u.tag){case 5:Re=u.stateNode,pt=!1;break e;case 3:Re=u.stateNode.containerInfo,pt=!0;break e;case 4:Re=u.stateNode.containerInfo,pt=!0;break e}u=u.return}if(Re===null)throw Error(s(160));Na(i,o,l),Re=null,pt=!1;var c=l.alternate;c!==null&&(c.return=null),l.return=null}catch(m){me(l,t,m)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ra(t,e),t=t.sibling}function Ra(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ht(t,e),kt(e),r&4){try{kr(3,e,e.return),El(3,e)}catch(O){me(e,e.return,O)}try{kr(5,e,e.return)}catch(O){me(e,e.return,O)}}break;case 1:ht(t,e),kt(e),r&512&&n!==null&&zn(n,n.return);break;case 5:if(ht(t,e),kt(e),r&512&&n!==null&&zn(n,n.return),e.flags&32){var l=e.stateNode;try{Wn(l,"")}catch(O){me(e,e.return,O)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,u=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&os(l,i),bl(u,o);var m=bl(u,i);for(o=0;o<c.length;o+=2){var S=c[o],k=c[o+1];S==="style"?hs(l,k):S==="dangerouslySetInnerHTML"?ds(l,k):S==="children"?Wn(l,k):Oe(l,S,k,m)}switch(u){case"input":Yl(l,i);break;case"textarea":as(l,i);break;case"select":var y=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var _=i.value;_!=null?dn(l,!!i.multiple,_,!1):y!==!!i.multiple&&(i.defaultValue!=null?dn(l,!!i.multiple,i.defaultValue,!0):dn(l,!!i.multiple,i.multiple?[]:"",!1))}l[cr]=i}catch(O){me(e,e.return,O)}}break;case 6:if(ht(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(s(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(O){me(e,e.return,O)}}break;case 3:if(ht(t,e),kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{bn(t.containerInfo)}catch(O){me(e,e.return,O)}break;case 4:ht(t,e),kt(e);break;case 13:ht(t,e),kt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(_o=ge())),r&4&&Oa(e);break;case 22:if(S=n!==null&&n.memoizedState!==null,e.mode&1?(Ue=(m=Ue)||S,ht(t,e),Ue=m):ht(t,e),kt(e),r&8192){if(m=e.memoizedState!==null,(e.stateNode.isHidden=m)&&!S&&(e.mode&1)!==0)for(L=e,S=e.child;S!==null;){for(k=L=S;L!==null;){switch(y=L,_=y.child,y.tag){case 0:case 11:case 14:case 15:kr(4,y,y.return);break;case 1:zn(y,y.return);var N=y.stateNode;if(typeof N.componentWillUnmount=="function"){r=y,n=y.return;try{t=r,N.props=t.memoizedProps,N.state=t.memoizedState,N.componentWillUnmount()}catch(O){me(r,n,O)}}break;case 5:zn(y,y.return);break;case 22:if(y.memoizedState!==null){Aa(k);continue}}_!==null?(_.return=y,L=_):Aa(k)}S=S.sibling}e:for(S=null,k=e;;){if(k.tag===5){if(S===null){S=k;try{l=k.stateNode,m?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=k.stateNode,c=k.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,u.style.display=ps("display",o))}catch(O){me(e,e.return,O)}}}else if(k.tag===6){if(S===null)try{k.stateNode.nodeValue=m?"":k.memoizedProps}catch(O){me(e,e.return,O)}}else if((k.tag!==22&&k.tag!==23||k.memoizedState===null||k===e)&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===e)break e;for(;k.sibling===null;){if(k.return===null||k.return===e)break e;S===k&&(S=null),k=k.return}S===k&&(S=null),k.sibling.return=k.return,k=k.sibling}}break;case 19:ht(t,e),kt(e),r&4&&Oa(e);break;case 21:break;default:ht(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pa(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Wn(l,""),r.flags&=-33);var i=Ia(e);xo(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,u=Ia(e);Eo(e,u,o);break;default:throw Error(s(161))}}catch(c){me(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ud(e,t,n){L=e,za(e)}function za(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var l=L,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||kl;if(!o){var u=l.alternate,c=u!==null&&u.memoizedState!==null||Ue;u=kl;var m=Ue;if(kl=o,(Ue=c)&&!m)for(L=l;L!==null;)o=L,c=o.child,o.tag===22&&o.memoizedState!==null?Fa(l):c!==null?(c.return=o,L=c):Fa(l);for(;i!==null;)L=i,za(i),i=i.sibling;L=l,kl=u,Ue=m}Ma(e)}else(l.subtreeFlags&8772)!==0&&i!==null?(i.return=l,L=i):Ma(e)}}function Ma(e){for(;L!==null;){var t=L;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ue||El(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:dt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Au(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Au(t,o,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var m=t.alternate;if(m!==null){var S=m.memoizedState;if(S!==null){var k=S.dehydrated;k!==null&&bn(k)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}Ue||t.flags&512&&ko(t)}catch(y){me(t,t.return,y)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function Aa(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function Fa(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{El(4,t)}catch(c){me(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(c){me(t,l,c)}}var i=t.return;try{ko(t)}catch(c){me(t,i,c)}break;case 5:var o=t.return;try{ko(t)}catch(c){me(t,o,c)}}}catch(c){me(t,t.return,c)}if(t===e){L=null;break}var u=t.sibling;if(u!==null){u.return=t.return,L=u;break}L=t.return}}var ad=Math.ceil,xl=we.ReactCurrentDispatcher,Co=we.ReactCurrentOwner,ot=we.ReactCurrentBatchConfig,K=0,Ie=null,Se=null,ze=0,et=0,Mn=jt(0),Ce=0,Er=null,on=0,Cl=0,To=0,xr=null,Ye=null,_o=0,An=1/0,Ot=null,Tl=!1,Lo=null,$t=null,_l=!1,Kt=null,Ll=0,Cr=0,Po=null,Pl=-1,Il=0;function We(){return(K&6)!==0?ge():Pl!==-1?Pl:Pl=ge()}function Gt(e){return(e.mode&1)===0?1:(K&2)!==0&&ze!==0?ze&-ze:Kf.transition!==null?(Il===0&&(Il=Is()),Il):(e=b,e!==0||(e=window.event,e=e===void 0?16:Us(e.type)),e)}function mt(e,t,n,r){if(50<Cr)throw Cr=0,Po=null,Error(s(185));Yn(e,n,r),((K&2)===0||e!==Ie)&&(e===Ie&&((K&2)===0&&(Cl|=n),Ce===4&&Yt(e,ze)),Xe(e,r),n===1&&K===0&&(t.mode&1)===0&&(An=ge()+500,rl&&Ht()))}function Xe(e,t){var n=e.callbackNode;$c(e,t);var r=Ur(e,e===Ie?ze:0);if(r===0)n!==null&&_s(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_s(n),t===1)e.tag===0?$f(Ua.bind(null,e)):xu(Ua.bind(null,e)),Hf(function(){(K&6)===0&&Ht()}),n=null;else{switch(Ns(r)){case 1:n=oi;break;case 4:n=Ls;break;case 16:n=Mr;break;case 536870912:n=Ps;break;default:n=Mr}n=Ka(n,Da.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Da(e,t){if(Pl=-1,Il=0,(K&6)!==0)throw Error(s(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=Ur(e,e===Ie?ze:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Nl(e,r);else{t=r;var l=K;K|=2;var i=Ba();(Ie!==e||ze!==t)&&(Ot=null,An=ge()+500,un(e,t));do try{dd();break}catch(u){ja(e,u)}while(!0);$i(),xl.current=i,K=l,Se!==null?t=0:(Ie=null,ze=0,t=Ce)}if(t!==0){if(t===2&&(l=si(e),l!==0&&(r=l,t=Io(e,l))),t===1)throw n=Er,un(e,0),Yt(e,r),Xe(e,ge()),n;if(t===6)Yt(e,r);else{if(l=e.current.alternate,(r&30)===0&&!cd(l)&&(t=Nl(e,r),t===2&&(i=si(e),i!==0&&(r=i,t=Io(e,i))),t===1))throw n=Er,un(e,0),Yt(e,r),Xe(e,ge()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:an(e,Ye,Ot);break;case 3:if(Yt(e,r),(r&130023424)===r&&(t=_o+500-ge(),10<t)){if(Ur(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Mi(an.bind(null,e,Ye,Ot),t);break}an(e,Ye,Ot);break;case 4:if(Yt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-at(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ad(r/1960))-r,10<r){e.timeoutHandle=Mi(an.bind(null,e,Ye,Ot),r);break}an(e,Ye,Ot);break;case 5:an(e,Ye,Ot);break;default:throw Error(s(329))}}}return Xe(e,ge()),e.callbackNode===n?Da.bind(null,e):null}function Io(e,t){var n=xr;return e.current.memoizedState.isDehydrated&&(un(e,t).flags|=256),e=Nl(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&No(t)),e}function No(e){Ye===null?Ye=e:Ye.push.apply(Ye,e)}function cd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!ct(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;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 Yt(e,t){for(t&=~To,t&=~Cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function Ua(e){if((K&6)!==0)throw Error(s(327));Fn();var t=Ur(e,0);if((t&1)===0)return Xe(e,ge()),null;var n=Nl(e,t);if(e.tag!==0&&n===2){var r=si(e);r!==0&&(t=r,n=Io(e,r))}if(n===1)throw n=Er,un(e,0),Yt(e,t),Xe(e,ge()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,an(e,Ye,Ot),Xe(e,ge()),null}function Oo(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(An=ge()+500,rl&&Ht())}}function sn(e){Kt!==null&&Kt.tag===0&&(K&6)===0&&Fn();var t=K;K|=1;var n=ot.transition,r=b;try{if(ot.transition=null,b=1,e)return e()}finally{b=r,ot.transition=n,K=t,(K&6)===0&&Ht()}}function Ro(){et=Mn.current,oe(Mn)}function un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Bf(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(Bi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tl();break;case 3:On(),oe($e),oe(Ae),bi();break;case 5:Ji(r);break;case 4:On();break;case 13:oe(fe);break;case 19:oe(fe);break;case 10:Ki(r.type._context);break;case 22:case 23:Ro()}n=n.return}if(Ie=e,Se=e=Xt(e.current,null),ze=et=t,Ce=0,Er=null,To=Cl=on=0,Ye=xr=null,nn!==null){for(t=0;t<nn.length;t++)if(n=nn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}nn=null}return e}function ja(e,t){do{var n=Se;try{if($i(),pl.current=vl,hl){for(var r=de.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}hl=!1}if(ln=0,Pe=xe=de=null,gr=!1,vr=0,Co.current=null,n===null||n.return===null){Ce=1,Er=t,Se=null;break}e:{var i=e,o=n.return,u=n,c=t;if(t=ze,u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var m=c,S=u,k=S.tag;if((S.mode&1)===0&&(k===0||k===11||k===15)){var y=S.alternate;y?(S.updateQueue=y.updateQueue,S.memoizedState=y.memoizedState,S.lanes=y.lanes):(S.updateQueue=null,S.memoizedState=null)}var _=ca(o);if(_!==null){_.flags&=-257,fa(_,o,u,i,t),_.mode&1&&aa(i,m,t),t=_,c=m;var N=t.updateQueue;if(N===null){var O=new Set;O.add(c),t.updateQueue=O}else N.add(c);break e}else{if((t&1)===0){aa(i,m,t),zo();break e}c=Error(s(426))}}else if(ae&&u.mode&1){var ve=ca(o);if(ve!==null){(ve.flags&65536)===0&&(ve.flags|=256),fa(ve,o,u,i,t),Vi(Rn(c,u));break e}}i=c=Rn(c,u),Ce!==4&&(Ce=2),xr===null?xr=[i]:xr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=sa(i,c,t);Mu(i,p);break e;case 1:u=c;var f=i.type,h=i.stateNode;if((i.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&($t===null||!$t.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=ua(i,u,t);Mu(i,x);break e}}i=i.return}while(i!==null)}Wa(n)}catch(R){t=R,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function Ba(){var e=xl.current;return xl.current=vl,e===null?vl:e}function zo(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Ie===null||(on&268435455)===0&&(Cl&268435455)===0||Yt(Ie,ze)}function Nl(e,t){var n=K;K|=2;var r=Ba();(Ie!==e||ze!==t)&&(Ot=null,un(e,t));do try{fd();break}catch(l){ja(e,l)}while(!0);if($i(),K=n,xl.current=r,Se!==null)throw Error(s(261));return Ie=null,ze=0,Ce}function fd(){for(;Se!==null;)Ha(Se)}function dd(){for(;Se!==null&&!Fc();)Ha(Se)}function Ha(e){var t=$a(e.alternate,e,et);e.memoizedProps=e.pendingProps,t===null?Wa(e):Se=t,Co.current=null}function Wa(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=ld(n,t,et),n!==null){Se=n;return}}else{if(n=id(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,Se=null;return}}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ce===0&&(Ce=5)}function an(e,t,n){var r=b,l=ot.transition;try{ot.transition=null,b=1,pd(e,t,n,r)}finally{ot.transition=l,b=r}return null}function pd(e,t,n,r){do Fn();while(Kt!==null);if((K&6)!==0)throw Error(s(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Kc(e,i),e===Ie&&(Se=Ie=null,ze=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||_l||(_l=!0,Ka(Mr,function(){return Fn(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=ot.transition,ot.transition=null;var o=b;b=1;var u=K;K|=4,Co.current=null,sd(e,n),Ra(n,e),zf(Ri),Hr=!!Oi,Ri=Oi=null,e.current=n,ud(n),Dc(),K=u,b=o,ot.transition=i}else e.current=n;if(_l&&(_l=!1,Kt=e,Ll=l),i=e.pendingLanes,i===0&&($t=null),Bc(n.stateNode),Xe(e,ge()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Tl)throw Tl=!1,e=Lo,Lo=null,e;return(Ll&1)!==0&&e.tag!==0&&Fn(),i=e.pendingLanes,(i&1)!==0?e===Po?Cr++:(Cr=0,Po=e):Cr=0,Ht(),null}function Fn(){if(Kt!==null){var e=Ns(Ll),t=ot.transition,n=b;try{if(ot.transition=null,b=16>e?16:e,Kt===null)var r=!1;else{if(e=Kt,Kt=null,Ll=0,(K&6)!==0)throw Error(s(331));var l=K;for(K|=4,L=e.current;L!==null;){var i=L,o=i.child;if((L.flags&16)!==0){var u=i.deletions;if(u!==null){for(var c=0;c<u.length;c++){var m=u[c];for(L=m;L!==null;){var S=L;switch(S.tag){case 0:case 11:case 15:kr(8,S,i)}var k=S.child;if(k!==null)k.return=S,L=k;else for(;L!==null;){S=L;var y=S.sibling,_=S.return;if(La(S),S===m){L=null;break}if(y!==null){y.return=_,L=y;break}L=_}}}var N=i.alternate;if(N!==null){var O=N.child;if(O!==null){N.child=null;do{var ve=O.sibling;O.sibling=null,O=ve}while(O!==null)}}L=i}}if((i.subtreeFlags&2064)!==0&&o!==null)o.return=i,L=o;else e:for(;L!==null;){if(i=L,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:kr(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,L=p;break e}L=i.return}}var f=e.current;for(L=f;L!==null;){o=L;var h=o.child;if((o.subtreeFlags&2064)!==0&&h!==null)h.return=o,L=h;else e:for(o=f;L!==null;){if(u=L,(u.flags&2048)!==0)try{switch(u.tag){case 0:case 11:case 15:El(9,u)}}catch(R){me(u,u.return,R)}if(u===o){L=null;break e}var x=u.sibling;if(x!==null){x.return=u.return,L=x;break e}L=u.return}}if(K=l,Ht(),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Ar,e)}catch{}r=!0}return r}finally{b=n,ot.transition=t}}return!1}function Va(e,t,n){t=Rn(n,t),t=sa(e,t,1),e=Vt(e,t,1),t=We(),e!==null&&(Yn(e,1,t),Xe(e,t))}function me(e,t,n){if(e.tag===3)Va(e,e,n);else for(;t!==null;){if(t.tag===3){Va(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($t===null||!$t.has(r))){e=Rn(n,e),e=ua(t,e,1),t=Vt(t,e,1),e=We(),t!==null&&(Yn(t,1,e),Xe(t,e));break}}t=t.return}}function hd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Ie===e&&(ze&n)===n&&(Ce===4||Ce===3&&(ze&130023424)===ze&&500>ge()-_o?un(e,0):To|=n),Xe(e,t)}function Qa(e,t){t===0&&((e.mode&1)===0?t=1:(t=Dr,Dr<<=1,(Dr&130023424)===0&&(Dr=4194304)));var n=We();e=Pt(e,t),e!==null&&(Yn(e,t,n),Xe(e,n))}function md(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qa(e,n)}function gd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),Qa(e,n)}var $a;$a=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Ge=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ge=!1,rd(e,t,n);Ge=(e.flags&131072)!==0}else Ge=!1,ae&&(t.flags&1048576)!==0&&Cu(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sl(e,t),e=t.pendingProps;var l=Cn(t,Ae.current);Nn(t,n),l=no(null,t,r,e,l,n);var i=ro();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,nl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Xi(t),l.updater=yl,t.stateNode=l,l._reactInternals=t,ao(t,r,e,n),t=ho(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&ji(t),He(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=yd(r),e=dt(r,e),l){case 0:t=po(null,t,r,e,n);break e;case 1:t=va(null,t,r,e,n);break e;case 11:t=da(null,t,r,e,n);break e;case 14:t=pa(null,t,r,dt(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),po(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),va(e,t,r,l,n);case 3:e:{if(ya(t),e===null)throw Error(s(387));r=t.pendingProps,i=t.memoizedState,l=i.element,zu(e,t),fl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Rn(Error(s(423)),t),t=wa(e,t,r,n,l);break e}else if(r!==l){l=Rn(Error(s(424)),t),t=wa(e,t,r,n,l);break e}else for(be=Ut(t.stateNode.containerInfo.firstChild),qe=t,ae=!0,ft=null,n=Ou(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ln(),r===l){t=Nt(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return Fu(t),e===null&&Wi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,zi(r,l)?o=null:i!==null&&zi(r,i)&&(t.flags|=32),ga(e,t),He(e,t,o,n),t.child;case 6:return e===null&&Wi(t),null;case 13:return Sa(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pn(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),da(e,t,r,l,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,re(ul,r._currentValue),r._currentValue=o,i!==null)if(ct(i.value,o)){if(i.children===l.children&&!$e.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=It(-1,n&-n),c.tag=2;var m=i.updateQueue;if(m!==null){m=m.shared;var S=m.pending;S===null?c.next=c:(c.next=S.next,S.next=c),m.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Gi(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Gi(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}He(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Nn(t,n),l=lt(l),r=r(l),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,l=dt(r,t.pendingProps),l=dt(r.type,l),pa(e,t,r,l,n);case 15:return ha(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),Sl(e,t),t.tag=1,Ke(r)?(e=!0,nl(t)):e=!1,Nn(t,n),ia(t,r,l),ao(t,r,l,n),ho(null,t,r,!0,e,n);case 19:return Ea(e,t,n);case 22:return ma(e,t,n)}throw Error(s(156,t.tag))};function Ka(e,t){return Ts(e,t)}function vd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new vd(e,t,n,r)}function Mo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yd(e){if(typeof e=="function")return Mo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tt)return 11;if(e===Le)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ol(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Mo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _e:return cn(n.children,l,i,t);case te:o=8,l|=8;break;case Me:return e=st(12,n,t,l|2),e.elementType=Me,e.lanes=i,e;case le:return e=st(13,n,t,l),e.elementType=le,e.lanes=i,e;case pe:return e=st(19,n,t,l),e.elementType=pe,e.lanes=i,e;case he:return Rl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ut:o=10;break e;case xt:o=9;break e;case tt:o=11;break e;case Le:o=14;break e;case Qe:o=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=st(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function cn(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=st(22,e,r,t),e.elementType=he,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Fo(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ui(0),this.expirationTimes=ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Do(e,t,n,r,l,i,o,u,c){return e=new wd(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=st(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xi(i),e}function Sd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ee,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ga(e){if(!e)return Bt;e=e._reactInternals;e:{if(Jt(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var n=e.type;if(Ke(n))return ku(e,n,t)}return t}function Ya(e,t,n,r,l,i,o,u,c){return e=Do(n,r,!0,e,l,i,o,u,c),e.context=Ga(null),n=e.current,r=We(),l=Gt(n),i=It(r,l),i.callback=t??null,Vt(n,i,l),e.current.lanes=l,Yn(e,l,r),Xe(e,r),e}function zl(e,t,n,r){var l=t.current,i=We(),o=Gt(l);return n=Ga(n),t.context===null?t.context=n:t.pendingContext=n,t=It(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vt(l,t,o),e!==null&&(mt(e,l,o,i),cl(e,l,o)),o}function Ml(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Xa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uo(e,t){Xa(e,t),(e=e.alternate)&&Xa(e,t)}function kd(){return null}var Za=typeof reportError=="function"?reportError:function(e){console.error(e)};function jo(e){this._internalRoot=e}Al.prototype.render=jo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));zl(e,t,null,null)},Al.prototype.unmount=jo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sn(function(){zl(null,e,null,null)}),t[Ct]=null}};function Al(e){this._internalRoot=e}Al.prototype.unstable_scheduleHydration=function(e){if(e){var t=zs();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&t!==0&&t<At[n].priority;n++);At.splice(n,0,e),n===0&&Fs(e)}};function Bo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ja(){}function Ed(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var m=Ml(o);i.call(m)}}var o=Ya(t,r,e,0,null,!1,!1,"",Ja);return e._reactRootContainer=o,e[Ct]=o.current,ur(e.nodeType===8?e.parentNode:e),sn(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var m=Ml(c);u.call(m)}}var c=Do(e,0,!1,null,null,!1,!1,"",Ja);return e._reactRootContainer=c,e[Ct]=c.current,ur(e.nodeType===8?e.parentNode:e),sn(function(){zl(t,c,n,r)}),c}function Dl(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var u=l;l=function(){var c=Ml(o);u.call(c)}}zl(t,o,e,l)}else o=Ed(n,t,e,l,r);return Ml(o)}Os=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Gn(t.pendingLanes);n!==0&&(ai(t,n|1),Xe(t,ge()),(K&6)===0&&(An=ge()+500,Ht()))}break;case 13:sn(function(){var r=Pt(e,1);if(r!==null){var l=We();mt(r,e,1,l)}}),Uo(e,1)}},ci=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=We();mt(t,e,134217728,n)}Uo(e,134217728)}},Rs=function(e){if(e.tag===13){var t=Gt(e),n=Pt(e,t);if(n!==null){var r=We();mt(n,e,t,r)}Uo(e,t)}},zs=function(){return b},Ms=function(e,t){var n=b;try{return b=e,t()}finally{b=n}},ni=function(e,t,n){switch(t){case"input":if(Yl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=el(r);if(!l)throw Error(s(90));ls(r),Yl(r,l)}}}break;case"textarea":as(e,n);break;case"select":t=n.value,t!=null&&dn(e,!!n.multiple,t,!1)}},ys=Oo,ws=sn;var xd={usingClientEntryPoint:!1,Events:[fr,En,el,gs,vs,Oo]},Tr={findFiberByHostInstance:qt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cd={bundleType:Tr.bundleType,version:Tr.version,rendererPackageName:Tr.rendererPackageName,rendererConfig:Tr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:we.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xs(e),e===null?null:e.stateNode},findFiberByHostInstance:Tr.findFiberByHostInstance||kd,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 Ul=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ul.isDisabled&&Ul.supportsFiber)try{Ar=Ul.inject(Cd),vt=Ul}catch{}}return Ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xd,Ve.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bo(t))throw Error(s(200));return Sd(e,t,null,n)},Ve.createRoot=function(e,t){if(!Bo(e))throw Error(s(299));var n=!1,r="",l=Za;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Do(e,1,!1,null,null,n,!1,r,l),e[Ct]=t.current,ur(e.nodeType===8?e.parentNode:e),new jo(t)},Ve.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=xs(t),e=e===null?null:e.stateNode,e},Ve.flushSync=function(e){return sn(e)},Ve.hydrate=function(e,t,n){if(!Fl(t))throw Error(s(200));return Dl(null,e,t,!0,n)},Ve.hydrateRoot=function(e,t,n){if(!Bo(e))throw Error(s(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=Za;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ya(t,null,e,1,n??null,l,!1,i,o),e[Ct]=t.current,ur(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Al(t)},Ve.render=function(e,t,n){if(!Fl(t))throw Error(s(200));return Dl(null,e,t,!1,n)},Ve.unmountComponentAtNode=function(e){if(!Fl(e))throw Error(s(40));return e._reactRootContainer?(sn(function(){Dl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1},Ve.unstable_batchedUpdates=Oo,Ve.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fl(n))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Dl(e,t,n,!1,r)},Ve.version="18.3.1-next-f1338f8080-20240426",Ve}var Ko;function rc(){if(Ko)return Hl.exports;Ko=1;function v(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v)}catch(a){console.error(a)}}return v(),Hl.exports=nc(),Hl.exports}var Go;function lc(){if(Go)return _r;Go=1;var v=rc();return _r.createRoot=v.createRoot,_r.hydrateRoot=v.hydrateRoot,_r}var Yo=lc(),Ql={exports:{}},Un={};var Xo;function ic(){if(Xo)return Un;Xo=1;var v=Bl(),a=Symbol.for("react.element"),s=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,E=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C={key:!0,ref:!0,__self:!0,__source:!0};function z(D,P,V){var Q,H={},G=null,ee=null;V!==void 0&&(G=""+V),P.key!==void 0&&(G=""+P.key),P.ref!==void 0&&(ee=P.ref);for(Q in P)g.call(P,Q)&&!C.hasOwnProperty(Q)&&(H[Q]=P[Q]);if(D&&D.defaultProps)for(Q in P=D.defaultProps,P)H[Q]===void 0&&(H[Q]=P[Q]);return{$$typeof:a,type:D,key:G,ref:ee,props:H,_owner:E.current}}return Un.Fragment=s,Un.jsx=z,Un.jsxs=z,Un}var Zo;function oc(){return Zo||(Zo=1,Ql.exports=ic()),Ql.exports}var Te=oc();const sc='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',uc="--color-brand-secondary",Jo="255 130 0",ac=/^\d{1,3}\s+\d{1,3}\s+\d{1,3}$/,$l=v=>{const a=v.trim(),s=a.split(/\s+/).map(Number);if(ac.test(a)&&s.every(z=>z<=255))return[s[0],s[1],s[2]];const[g,E,C]=Jo.split(" ").map(Number);return[g,E,C]},qo=([v,a,s])=>{const[g,E,C]=[v,a,s].map(z=>{const D=z/255;return D<=.03928?D/12.92:((D+.055)/1.055)**2.4});return .2126*g+.7152*E+.0722*C},cc=qo([26,26,26]),fc=v=>{const a=qo(v),s=(1+.05)/(a+.05);return(a+.05)/(cc+.05)>=s?"#1a1a1a":"#ffffff"},dc={light:{card:"var(--color-system-chrome, #ffffff)",border:"var(--color-system-regular, rgba(120, 120, 128, 0.16))",title:"var(--color-fg-primary, #000000)",sub:"var(--color-fg-secondary, rgba(39, 39, 46, 0.7))",dismiss:"var(--color-fg-secondary, rgba(39, 39, 46, 0.7))"},dark:{card:"var(--color-system-chrome-dark, #2c2c2e)",border:"var(--color-system-regular-dark, rgba(120, 120, 128, 0.32))",title:"var(--color-fg-primary-dark, #ffffff)",sub:"var(--color-fg-secondary-dark, rgba(235, 235, 245, 0.6))",dismiss:"var(--color-fg-secondary-dark, rgba(235, 235, 245, 0.6))"}},pc="(max-width: 720px)",bo=()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(pc):null;function hc(){return Te.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[Te.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),Te.jsx("line",{x1:"2",y1:"10",x2:"22",y2:"10"})]})}function mc({zIndex:v,theme:a,brandColor:s,onUpdate:g,onDismiss:E}){const[C,z]=se.useState(!1),[D,P]=se.useState(()=>bo()?.matches??!1),V=se.useRef(null),[Q,H]=se.useState(()=>$l(Jo));se.useEffect(()=>{const te=requestAnimationFrame(()=>z(!0));return()=>cancelAnimationFrame(te)},[]),se.useEffect(()=>{if(s!=null){H($l(s));return}if(!V.current)return;const te=getComputedStyle(V.current).getPropertyValue(uc);H($l(te))},[s]);const G=se.useRef(!1);se.useEffect(()=>{if(!C)return;const te=Me=>{Me.key!=="Escape"||Me.defaultPrevented||G.current||(G.current=!0,E())};return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[C,E]),se.useEffect(()=>{const te=bo();if(!te)return;const Me=()=>P(te.matches);return te.addEventListener("change",Me),()=>te.removeEventListener("change",Me)},[]);const ee=dc[a],[ce,J,$]=Q,je=`rgb(${ce}, ${J}, ${$})`,Be=fc(Q),Oe={position:"fixed",top:"16px",left:"50%",width:D?"calc(100% - 32px)":"calc(100% - 48px)",maxWidth:"520px",zIndex:v,opacity:C?1:0,visibility:C?"visible":"hidden",pointerEvents:C?"auto":"none",transform:C?"translateX(-50%) translateY(0)":"translateX(-50%) translateY(-12px)",transition:"opacity 0.3s ease, transform 0.3s ease"},we={display:"flex",alignItems:"center",gap:D?"10px":"14px",padding:D?"12px":"14px 14px 14px 16px",background:ee.card,color:ee.title,borderRadius:"14px",border:`1px solid ${ee.border}`,boxShadow:"0 1px 2px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.18)",fontFamily:sc},ke={display:"flex",alignItems:"center",justifyContent:"center",width:"44px",height:"44px",background:`rgba(${ce}, ${J}, ${$}, 0.12)`,color:je,borderRadius:"10px",flexShrink:0},Ee={flexShrink:0,padding:D?"8px 12px":"12px 18px",background:je,color:Be,border:"none",borderRadius:"16px",fontWeight:700,fontSize:D?"12px":"13px",lineHeight:1,cursor:"pointer",fontFamily:"inherit"},_e={flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",background:"transparent",color:ee.dismiss,border:"none",borderRadius:"50%",fontSize:"16px",lineHeight:1,cursor:"pointer"};return Te.jsx("div",{ref:V,role:"status","aria-live":"polite",style:Oe,children:Te.jsxs("div",{style:we,children:[Te.jsx("div",{style:ke,children:Te.jsx(hc,{})}),Te.jsxs("div",{style:{flex:1,minWidth:0},children:[Te.jsx("div",{style:{fontSize:"14px",fontWeight:700,lineHeight:1.3,marginBottom:"3px"},children:"Reminder to update your gift!"}),Te.jsx("div",{style:{fontSize:"12.5px",color:ee.sub,lineHeight:1.4},children:"Please take a minute to update the gifts on your account for our new giving platform."})]}),Te.jsx("button",{type:"button",style:Ee,onClick:g,children:"Update"}),Te.jsx("button",{type:"button","aria-label":"Dismiss",style:_e,onClick:E,children:"✕"})]})})}const gc="/search",es="https://apollos.com";function ts(v){return new URL(v||"/","http://embed.invalid").pathname}function vc(v){return new URL(v.baseUrl||es).origin}function yc(v,a){const s=v.baseUrl||es,g=a==="/"?"":a,E=new URL(`${s}/${v.slug}${g}`);E.searchParams.set("embedMode","modal");const C=ts(v.searchPath??gc);return v.feedId&&ts(a)===C&&E.searchParams.set("feedId",v.feedId),E.toString()}const wc=360,Sc=24;function kc(v,a,s){return v&&!a&&s!=null&&s>0}function Ec(v){return Math.max(wc,v+Sc)}const jn={EMBED_INIT:"APOLLOS_EMBED_INIT",FULLSCREEN_CHANGED:"APOLLOS_FULLSCREEN_CHANGED",THEME_CHANGED:"APOLLOS_THEME_CHANGED"},Et={EMBED_READY:"APOLLOS_EMBED_READY",EMBED_UPDATE:"APOLLOS_EMBED_UPDATE",NAVIGATION:"APOLLOS_NAVIGATION",REQUEST_CLOSE:"APOLLOS_REQUEST_CLOSE",REQUEST_FULLSCREEN:"APOLLOS_REQUEST_FULLSCREEN",OPEN_EXTERNAL:"APOLLOS_OPEN_EXTERNAL",REQUEST_NAVIGATION:"APOLLOS_REQUEST_NAVIGATION",HEIGHT_CHANGE:"APOLLOS_HEIGHT_CHANGE",MODAL_OPTIONS:"APOLLOS_MODAL_OPTIONS"},Lr={SHOW_MIGRATION_TOAST:"apollos:showMigrationToast",MIGRATION_TOAST_SHOWN:"apollos:migrationToastShown",MIGRATION_TOAST_TAPPED:"apollos:migrationToastTapped",MIGRATION_TOAST_DISMISSED:"apollos:migrationToastDismissed"};function Bn(v,a,s){v.contentWindow&&v.contentWindow.postMessage(a,s)}function xc(v,a){if(v.origin!==a)return!1;const s=v.data;return!s||typeof s!="object"||typeof s.type!="string"?!1:Object.values(Et).includes(s.type)}const ns=768;function Cc(v){if(!v||typeof v!="object"||Array.isArray(v))return!1;const a=v;return(a.size===void 0||a.size==="default"||a.size==="medium"||a.size==="large"||a.size==="small")&&(a.defaultFullscreen===void 0||typeof a.defaultFullscreen=="boolean")&&(a.fitContent===void 0||typeof a.fitContent=="boolean")}const Tc=({config:v,state:a,onClose:s,onToggleFullscreen:g,onApplyModalOptions:E})=>{const[C,z]=Dn.useState(!0),[D,P]=Dn.useState(null),[V,Q]=Dn.useState(()=>typeof window<"u"&&window.innerWidth>=ns),H=se.useRef(null),G=se.useRef(a);se.useEffect(()=>{G.current=a},[a]);const ee=yc(v,a.currentPath),ce=vc(v),J=a.modalSize==="medium",$=a.modalSize==="large",je=a.modalSize==="small",Be=kc(a.modalFitContent,a.isFullscreen,D),Oe=se.useCallback(le=>{le.key==="Escape"&&a.isOpen&&(le.preventDefault(),s())},[a.isOpen,s]);se.useEffect(()=>(document.addEventListener("keydown",Oe),()=>document.removeEventListener("keydown",Oe)),[Oe]),se.useEffect(()=>(a.isOpen?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[a.isOpen]),se.useEffect(()=>{function le(){Q(window.innerWidth>=ns)}return window.addEventListener("resize",le),()=>window.removeEventListener("resize",le)},[]);const we=le=>{le.target===le.currentTarget&&s()},ke=se.useRef(!1);se.useEffect(()=>{function le(pe){if(xc(pe,ce)&&pe.source===H.current?.contentWindow){if(pe.data.type===Et.EMBED_READY&&(z(!1),H.current)){const Le=G.current;Bn(H.current,{type:jn.EMBED_INIT,payload:{theme:Le.resolvedTheme,showExpandButton:V,isFullscreen:Le.isFullscreen,mode:"modal"}},ce),ke.current=!0}if(pe.data.type===Et.REQUEST_CLOSE&&s(),pe.data.type===Et.REQUEST_FULLSCREEN&&g(),pe.data.type===Et.MODAL_OPTIONS&&Cc(pe.data.payload)&&E(pe.data.payload),pe.data.type===Et.HEIGHT_CHANGE){const Le=pe.data.payload;Le&&typeof Le.height=="number"&&Le.height>0&&P(Le.height)}}}return window.addEventListener("message",le),()=>window.removeEventListener("message",le)},[ce,V,s,g,E]),se.useEffect(()=>{ke.current&&H.current&&Bn(H.current,{type:jn.THEME_CHANGED,payload:{theme:a.resolvedTheme}},ce)},[a.resolvedTheme,ce]),se.useEffect(()=>{ke.current&&H.current&&Bn(H.current,{type:jn.FULLSCREEN_CHANGED,payload:{isFullscreen:a.isFullscreen,showExpandButton:V}},ce)},[a.isFullscreen,V,ce]),se.useEffect(()=>{z(!0),P(null),ke.current=!1},[a.currentPath]),se.useEffect(()=>{a.modalFitContent||P(null)},[a.modalFitContent]),se.useEffect(()=>{z(!0),a.isOpen||(P(null),ke.current=!1)},[a.isOpen]);const Ee=["apls-fixed","apls-inset-0","apls-w-screen","apls-h-screen","supports-[width:100dvw]:apls-w-[100dvw]","supports-[height:100dvh]:apls-h-[100dvh]","apls-flex","apls-items-center","apls-justify-center","apls-bg-black/50",a.isOpen?"apls-opacity-100":"apls-opacity-0 apls-pointer-events-none","apls-transition-opacity","apls-duration-300","apls-ease-out"].join(" "),_e=["apls-relative","apls-flex","apls-flex-col","apls-overflow-hidden","apls-shadow-2xl","apls-backdrop-blur-md","apls-bg-system-screen dark:apls-bg-system-screen-dark","apls-transition-all","apls-duration-300","apls-ease-out",a.isOpen?"apls-scale-100 apls-opacity-100":"apls-scale-95 apls-opacity-0","apls-w-screen","apls-h-screen","apls-max-h-screen","supports-[width:100dvw]:apls-w-[100dvw]","supports-[height:100dvh]:apls-h-[100dvh]","supports-[max-height:100dvh]:apls-max-h-[100dvh]","apls-rounded-none",...a.isFullscreen?["md:apls-w-screen","md:apls-h-screen","md:apls-max-h-screen","md:supports-[width:100dvw]:apls-w-[100dvw]","md:supports-[height:100dvh]:apls-h-[100dvh]","md:supports-[max-height:100dvh]:apls-max-h-[100dvh]"]:Be?["md:apls-w-[calc(100dvw-64px)]",$?"md:apls-max-w-[1120px]":je?"md:apls-max-w-[544px]":J?"md:apls-max-w-[640px]":"md:apls-max-w-[600px]","md:apls-h-auto","md:apls-min-h-[min(360px,calc(100dvh-64px))]","md:apls-max-h-[min(960px,calc(100dvh-64px))]","md:apls-rounded-3xl"]:$?["md:apls-w-[calc(100dvw-64px)]","md:apls-h-[calc(100dvh-64px)]","md:apls-max-w-[1120px]","md:apls-max-h-[960px]","md:apls-rounded-3xl"]:J?["md:apls-w-[calc(100dvw-64px)]","md:apls-h-[calc(100dvh-64px)]","md:apls-max-w-[640px]","md:apls-max-h-[960px]","md:apls-rounded-3xl"]:je?["md:apls-w-[calc(100dvw-64px)]","md:apls-h-[calc(100dvh-64px)]","md:apls-max-w-[544px]","md:apls-max-h-[960px]","md:apls-rounded-3xl"]:["md:apls-w-[600px]","md:apls-h-[900px]","md:apls-max-h-[95vh]","md:apls-rounded-3xl"]].join(" "),te=["apls-flex-1","apls-flex","apls-flex-col","apls-relative","apls-overflow-hidden"].join(" "),Me=["apls-w-full","apls-h-full","apls-flex-grow","apls-border-none","apls-bg-transparent",...C?["apls-hidden"]:[]].join(" "),ut=["apls-absolute","apls-inset-0","apls-flex","apls-items-center","apls-justify-center"].join(" "),xt=["apls-w-8","apls-h-8","apls-border-[3px]","apls-border-solid","apls-border-system-regular dark:apls-border-system-regular-dark","apls-border-t-fg-tertiary dark:apls-border-t-fg-tertiary-dark","apls-rounded-full","apls-animate-spin"].join(" "),tt=Be&&V&&D!=null?{height:`${Ec(D)}px`}:void 0;return Te.jsx("div",{className:Ee,onClick:we,style:{zIndex:v.zIndex},role:"dialog","aria-modal":"true","aria-label":"Apollos Embed",children:Te.jsx("div",{className:_e,style:tt,children:Te.jsxs("div",{className:te,children:[C?Te.jsx("div",{className:ut,children:Te.jsx("div",{className:xt})}):null,a.isOpen?Te.jsx("iframe",{ref:H,className:Me,src:ee,title:"Apollos",allow:"payment *; fullscreen 'src'; autoplay 'src'",allowFullScreen:!0,allowTransparency:!0}):null]})})})};class Pr{iframe=null;static PROBE_ATTRIBUTE="data-apollos-migration-probe";inject(a,s,g){if(this.iframe)return;const E=new URL(`${s.replace(/\/+$/,"")}/${a}/_embed`);g&&E.searchParams.set("personOriginId",g);const C=document.createElement("iframe");C.src=E.toString(),C.width="1",C.height="1",C.style.cssText="position:absolute;top:-9999px;left:-9999px;border:0;",C.setAttribute("sandbox","allow-scripts allow-same-origin"),C.setAttribute("aria-hidden","true"),C.setAttribute("tabindex","-1"),C.title="Apollos migration probe",C.setAttribute(Pr.PROBE_ATTRIBUTE,"true"),document.body.appendChild(C),this.iframe=C}getContentWindow(){return this.iframe?.contentWindow??null}postToProbe(a){const s=this.iframe?.contentWindow;!s||!this.iframe||s.postMessage({type:a},new URL(this.iframe.src).origin)}notifyShown(){this.postToProbe(Lr.MIGRATION_TOAST_SHOWN)}notifyTapped(){this.postToProbe(Lr.MIGRATION_TOAST_TAPPED)}notifyDismissed(){this.postToProbe(Lr.MIGRATION_TOAST_DISMISSED)}destroy(){this.iframe?.remove(),this.iframe=null}}function _c(v){return v.includes("ContentItem")?"/c":v==="Event"?"/e":v==="FeatureFeed"?"/f":v==="Livestream"?"/live":"/c"}function Lc(v){if(/^[A-Z]\w+-/.test(v)){const[s,...g]=v.split(/-(.*)/s);if(s&&g[0])return{type:s,randomId:g[0]}}else{const s=v.split("-").at(-1);if(!s)return null;try{const g=atob(s),[E,...C]=g.split(/-(.*)/s);if(E&&C[0])return{type:E,randomId:C[0]}}catch{return null}}return null}const rs="Ask anything",Kl="/search",Pc={showAskBar:!1,askBarLabel:rs,searchPath:Kl,interceptLinks:!0,position:"bottom-center",offsetX:0,offsetY:48,autoOpen:!1,defaultPath:"/",baseUrl:"https://apollos.com",zIndex:999999,themeMode:"light"};class gt{config;state;container=null;root=null;askBar=null;askBarKeyListener=null;mediaQueryListener=null;mediaQuery=null;messageListener=null;embedIframe=new Pr;personOriginIdObserver=null;migrationToastContainer=null;migrationToastRoot=null;migrationToastPayload=null;pendingMigrationToastPayload=null;domContentLoadedListener=null;destroyed=!1;hasExplicitFullscreenSelection=!1;inlineIframes=new Map;inlineSkeletons=new Map;inlineSkeletonParentRestore=new Map;inlineSkeletonFallbackTimeouts=new Map;heightChangeTimeouts=new Map;static HEIGHT_TRANSITION_MS=120;static HEIGHT_DEBOUNCE_MS=120;static INLINE_SKELETON_FALLBACK_MS=2500;static INLINE_READY_FALLBACK_MS=400;static hasInjectedSkeletonStyles=!1;constructor(a){if(this.config={...Pc,...a},this.state={isOpen:!1,isFullscreen:!1,modalSize:"default",modalFitContent:!1,currentPath:this.config.defaultPath||"/",canGoBack:!1,resolvedTheme:this.resolveTheme()},!this.config.slug)throw new Error("ApollosEmbed: slug is required in config");this.init()}resolveTheme(){const{themeMode:a}=this.config;return a==="light"?"light":a==="dark"?"dark":this.resolveSystemTheme()}resolveSystemTheme(){return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}readIframeThemeAttribute(a){const s=a.getAttribute("data-apollos-theme");return s==="light"||s==="dark"||s==="auto"?s:null}getIframeTheme(a){const s=this.readIframeThemeAttribute(a);return s==="light"||s==="dark"?s:s==="auto"?this.resolveSystemTheme():this.state.resolvedTheme}setupThemeListener(){this.cleanupThemeListener(),!(typeof window>"u"||!window.matchMedia)&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQueryListener=a=>{this.config.themeMode==="auto"&&(this.state.resolvedTheme=a.matches?"dark":"light",this.applyThemeClass(),this.render(),this.renderMigrationToastContent(),this.askBar&&(this.removeAskBar(),this.createAskBar())),this.sendThemeToInlineIframes()},this.mediaQuery.addEventListener("change",this.mediaQueryListener))}cleanupThemeListener(){this.mediaQuery&&this.mediaQueryListener&&this.mediaQuery.removeEventListener("change",this.mediaQueryListener),this.mediaQuery=null,this.mediaQueryListener=null}readPersonOriginId(){if(this.config.personOriginId)return this.config.personOriginId;for(const a of this.inlineIframes.keys()){const s=a.getAttribute("personoriginid")?.trim();if(s)return s}}watchForPersonOriginId(a){if(!(typeof MutationObserver>"u"||this.inlineIframes.size===0)){this.personOriginIdObserver=new MutationObserver(s=>{for(const g of s){const E=g.target.getAttribute("personoriginid")?.trim();if(E){if(this.cleanupPersonOriginIdObserver(),this.migrationToastContainer)return;this.embedIframe.destroy(),this.embedIframe.inject(this.config.slug,a,E);return}}});for(const s of this.inlineIframes.keys())this.personOriginIdObserver.observe(s,{attributes:!0,attributeFilter:["personoriginid"]})}}cleanupPersonOriginIdObserver(){this.personOriginIdObserver?.disconnect(),this.personOriginIdObserver=null}applyThemeClass(){this.container&&(this.state.resolvedTheme==="dark"?this.container.classList.add("apls-dark"):this.container.classList.remove("apls-dark"))}init(){document.readyState==="loading"?(this.domContentLoadedListener=()=>{this.domContentLoadedListener=null,this.setup()},document.addEventListener("DOMContentLoaded",this.domContentLoadedListener)):this.setup()}setup(){if(!this.destroyed){if(this.config.interceptLinks&&this.setupLinkInterception(),this.setupThemeListener(),this.setupMessageListener(),this.initializeInlineIframes(),this.createContainer(),!this.wasMigrationToastDismissedThisVisit()){const a=this.config.baseUrl||"https://apollos.com",s=this.readPersonOriginId();this.embedIframe.inject(this.config.slug,a,s),s||this.watchForPersonOriginId(a)}this.config.showAskBar&&this.createAskBar(),this.config.autoOpen&&this.open(),this.checkDeepLinkParams()}}createContainer(){this.container=document.createElement("div"),this.container.id="apollos-embed-root",this.container.classList.add("apollos-embed"),document.body.appendChild(this.container),this.applyThemeClass(),this.root=Yo.createRoot(this.container),this.render()}createAskBar(){const a=this.state.resolvedTheme==="dark",s=this.config.askBarLabel??rs,g=document.createElement("button");g.type="button",g.setAttribute("aria-label",s),g.className="apollos-ask-bar";const E=document.createElement("span");Object.assign(E.style,{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",flex:"0 0 auto"}),E.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>';const C=document.createElement("span");Object.assign(C.style,{flex:"1 1 auto",textAlign:"left",whiteSpace:"nowrap"}),C.textContent=s;const z=document.createElement("kbd");Object.assign(z.style,{font:"inherit",fontSize:"11px",lineHeight:"1",padding:"3px 6px",borderRadius:"6px",border:`1px solid ${a?"rgba(255,255,255,0.18)":"rgba(0,0,0,0.12)"}`,color:a?"rgba(255,255,255,0.6)":"rgba(0,0,0,0.45)",background:"transparent"}),z.textContent="⌘K",g.appendChild(E),g.appendChild(C),g.appendChild(z),Object.assign(g.style,{all:"unset",boxSizing:"border-box",display:"inline-flex",alignItems:"center",gap:"10px",cursor:"pointer",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',fontSize:"15px",fontWeight:"500",minWidth:"240px",padding:"11px 14px",borderRadius:"9999px",border:a?"1px solid rgba(255,255,255,0.14)":"1px solid rgba(0,0,0,0.08)",background:a?"#1c1c1e":"#ffffff",color:a?"#f2f2f7":"#1c1c1e",boxShadow:a?"0 6px 24px rgba(0,0,0,0.5)":"0 6px 24px rgba(0,0,0,0.14)"}),g.addEventListener("click",()=>{this.open(this.config.searchPath??Kl)});const D=this.config.askBarTarget?document.querySelector(this.config.askBarTarget):null;if(D)D.appendChild(g),this.askBar=g;else{const P=document.createElement("div");Object.assign(P.style,{position:"fixed",zIndex:String((this.config.zIndex??999999)-1),...this.askBarPlacementStyles()}),P.appendChild(g),document.body.appendChild(P),this.askBar=P}this.askBarKeyListener=P=>{if((P.metaKey||P.ctrlKey)&&P.key.toLowerCase()==="k"){if(gt.isEditableEventTarget(P))return;P.preventDefault(),this.open(this.config.searchPath??Kl)}},document.addEventListener("keydown",this.askBarKeyListener)}askBarPlacementStyles(){const a=`${this.config.offsetX??0}px`,s=`${this.config.offsetY??48}px`,g=`${Math.max(this.config.offsetX??0,16)}px`;switch(this.config.position){case"bottom-right":return{bottom:s,right:g};case"bottom-left":return{bottom:s,left:g};case"top-right":return{top:s,right:g};case"top-left":return{top:s,left:g};case"top-center":return{top:s,left:"50%",transform:"translateX(-50%)"};default:return{bottom:s,left:`calc(50% + ${a})`,transform:"translateX(-50%)"}}}static isEditableEventTarget(a){const s=E=>{if(!(E instanceof HTMLElement))return!1;const C=E.tagName;return C==="INPUT"||C==="TEXTAREA"||C==="SELECT"||E.isContentEditable},g=typeof a.composedPath=="function"?a.composedPath():[];return g.length?g.some(s):s(a.target)}removeAskBar(){this.askBarKeyListener&&(document.removeEventListener("keydown",this.askBarKeyListener),this.askBarKeyListener=null),this.askBar&&(this.askBar.remove(),this.askBar=null)}render(){this.root&&this.root.render(Dn.createElement(Tc,{config:this.config,state:{...this.state},onClose:()=>this.close(),onToggleFullscreen:()=>this.toggleFullscreen(),onApplyModalOptions:a=>this.applyModalOptions(a)}))}toggleFullscreen(){this.hasExplicitFullscreenSelection=!0,this.state.isFullscreen=!this.state.isFullscreen,this.render()}applyModalOptions(a){this.state.modalSize=a.size??"default",this.state.modalFitContent=a.fitContent??!1,typeof a.defaultFullscreen=="boolean"&&!this.hasExplicitFullscreenSelection&&(this.state.isFullscreen=a.defaultFullscreen),this.render()}setupLinkInterception(){document.addEventListener("click",a=>{const g=a.target.closest("a");if(g&&this.shouldInterceptLink(g)){a.preventDefault();const C=new URL(g.href).pathname.replace(`/${this.config.slug}`,"")||"/",z=this.getLinkFullscreenOption(g);this.open(C,z!==void 0?{fullscreen:z}:void 0)}})}shouldInterceptLink(a){if(a.hasAttribute("data-apollos-external"))return!1;const s=a.href,g=this.config.baseUrl||"https://apollos.com";return new RegExp(`(apollos\\.com|${g.replace(/https?:\/\//,"")})/${this.config.slug}`).test(s)}getLinkFullscreenOption(a){if(!a.hasAttribute("data-apollos-fullscreen"))return;const s=a.getAttribute("data-apollos-fullscreen");return!(s==="false"||s==="0")}setupMessageListener(){const a=this.config.baseUrl||"https://apollos.com",s=new URL(a).origin;this.messageListener=g=>{if(g.origin!==s||!g.data||typeof g.data!="object")return;const{type:E,payload:C}=g.data;if(E===Et.EMBED_READY){const z=g.source;this.inlineIframes.forEach((D,P)=>{P.contentWindow===z&&(this.sendInlineIframeInit(P),this.inlineIframes.set(P,!0),this.scheduleInlineSkeletonFallback(P,gt.INLINE_READY_FALLBACK_MS))})}if(E===Et.REQUEST_NAVIGATION){const z=C;if(z?.path){if(/^https?:\/\//i.test(z.path)){window.location.assign(z.path);return}const D=this.config.navigationModalFullscreen===!0;this.open(z.path,{fullscreen:D})}}if(E===Et.HEIGHT_CHANGE){const z=C;if(z&&typeof z.height=="number"&&z.height>0){const D=g.source;let P=null;if(this.inlineIframes.forEach((V,Q)=>{Q.contentWindow===D&&(P=Q)}),!P){const V=document.querySelectorAll("iframe");for(const Q of V)if(!this.container?.contains(Q)&&Q.contentWindow===D){P=Q;break}}P&&(this.scheduleHeightChange(P,z.height),this.inlineSkeletons.has(P)&&this.removeInlineSkeleton(P))}}if(E===Lr.SHOW_MIGRATION_TOAST){const z=C,D=this.embedIframe.getContentWindow();z&&typeof z.migratePath=="string"&&D!==null&&g.source===D&&this.renderMigrationToast(z)}},window.addEventListener("message",this.messageListener)}migrationToastDismissalKey(){return`apollos:migrationToastDismissed:${this.config.slug}`}wasMigrationToastDismissedThisVisit(){try{return window.sessionStorage.getItem(this.migrationToastDismissalKey())==="1"}catch{return!1}}markMigrationToastDismissedForVisit(){try{window.sessionStorage.setItem(this.migrationToastDismissalKey(),"1")}catch{}}renderMigrationToast(a){if(this.migrationToastContainer||this.wasMigrationToastDismissedThisVisit())return;if(this.state.isOpen){this.pendingMigrationToastPayload=a;return}const s=document.createElement("div");s.classList.add("apollos-embed"),document.body.appendChild(s),this.migrationToastContainer=s,this.migrationToastRoot=Yo.createRoot(s),this.migrationToastPayload=a,this.renderMigrationToastContent(),this.embedIframe.notifyShown()}renderPendingMigrationToast(){const a=this.pendingMigrationToastPayload;a&&(this.pendingMigrationToastPayload=null,this.renderMigrationToast(a))}renderMigrationToastContent(){const a=this.migrationToastPayload;!this.migrationToastRoot||!a||this.migrationToastRoot.render(Dn.createElement(mc,{zIndex:(this.config.zIndex??999999)+1,theme:this.state.resolvedTheme,brandColor:typeof a.brandColor=="string"?a.brandColor:null,onUpdate:()=>{this.embedIframe.notifyTapped(),this.markMigrationToastDismissedForVisit(),this.removeMigrationToast(),this.open(a.migratePath.replace(/^\/[^/?]+/,""))},onDismiss:()=>{this.embedIframe.notifyDismissed(),this.markMigrationToastDismissedForVisit(),this.removeMigrationToast()}}))}removeMigrationToast(){const a=this.migrationToastRoot,s=this.migrationToastContainer;this.migrationToastRoot=null,this.migrationToastContainer=null,this.migrationToastPayload=null,!(!a||!s)&&setTimeout(()=>{a.unmount(),s.remove()},0)}scheduleHeightChange(a,s){const g=this.heightChangeTimeouts.get(a);g&&clearTimeout(g.timeoutId);const E=setTimeout(()=>{this.heightChangeTimeouts.delete(a),this.applyHeightWithTransition(a,s)},gt.HEIGHT_DEBOUNCE_MS);this.heightChangeTimeouts.set(a,{timeoutId:E,height:s})}applyHeightWithTransition(a,s){(a.style.height?parseFloat(a.style.height):NaN)!==s&&(a.style.transition=`height ${gt.HEIGHT_TRANSITION_MS}ms ease-out`,a.style.height=`${s}px`)}scheduleInlineSkeletonFallback(a,s){if(!this.inlineSkeletons.has(a))return;const g=this.inlineSkeletonFallbackTimeouts.get(a);g&&clearTimeout(g);const E=setTimeout(()=>{this.inlineSkeletonFallbackTimeouts.delete(a),this.inlineSkeletons.has(a)&&this.removeInlineSkeleton(a)},s);this.inlineSkeletonFallbackTimeouts.set(a,E)}cleanupMessageListener(){this.messageListener&&(window.removeEventListener("message",this.messageListener),this.messageListener=null)}initializeInlineIframes(){const a=this.config.baseUrl||"https://apollos.com",s=new URL(a).origin;document.querySelectorAll("iframe").forEach(E=>{if(this.isInlineEmbed(E,s)){const C=this.applyInlineIframeUrlParams(E);this.inlineIframes.set(E,!1),this.createInlineSkeleton(E),C||this.sendInlineIframeInit(E)}})}isInlineEmbed(a,s){const g=a.src;if(!g||a.hasAttribute(Pr.PROBE_ATTRIBUTE))return!1;try{const E=new URL(g);return!(E.origin!==s||!E.pathname.startsWith(`/${this.config.slug}`))}catch{return!1}}applyInlineIframeUrlParams(a){const s=a.src;if(!s)return!1;try{const g=new URL(s);let E=!1;g.searchParams.get("embedMode")!=="inline"&&(g.searchParams.set("embedMode","inline"),E=!0);const C=this.getIframeTheme(a);return g.searchParams.get("theme")!==C&&(g.searchParams.set("theme",C),E=!0),E&&(a.src=g.toString()),E}catch{return!1}}sendInlineIframeInit(a){const s=this.config.baseUrl||"https://apollos.com",g=new URL(s).origin;Bn(a,{type:jn.EMBED_INIT,payload:{theme:this.getIframeTheme(a),showExpandButton:!1,isFullscreen:!1,mode:"inline"}},g)}sendThemeToInlineIframes(){const a=this.config.baseUrl||"https://apollos.com",s=new URL(a).origin;this.inlineIframes.forEach((g,E)=>{if(!g)return;const C=this.readIframeThemeAttribute(E);C==="light"||C==="dark"||C!=="auto"&&this.config.themeMode!=="auto"||Bn(E,{type:jn.THEME_CHANGED,payload:{theme:this.getIframeTheme(E)}},s)})}checkDeepLinkParams(){const a=new URLSearchParams(window.location.search),s=this.getDeepLinkModalOptions(a),g=a.get("a");if(g){this.openWithFullscreenDefault(g,s),this.stripConsumedDeepLinkParams(["a","apollosModalSize","apollosFullscreen"]);return}const E=a.get("apollosId")?"apollosId":a.get("id")?"id":null,C=E?a.get(E):null;if(C&&E){const z=Lc(C);if(z){const D=_c(z.type);this.openWithFullscreenDefault(`${D}/${C}`,{fullscreen:!0})}else this.openWithFullscreenDefault(`/c/${C}`,{fullscreen:!0});this.stripConsumedDeepLinkParams([E]);return}}stripConsumedDeepLinkParams(a){if(typeof window>"u"||!window.history?.replaceState)return;const s=new URL(window.location.href);let g=!1;for(const E of a)s.searchParams.has(E)&&(s.searchParams.delete(E),g=!0);g&&window.history.replaceState(window.history.state,"",s.pathname+s.search+s.hash)}open(a,s){this.openInternal(a,s,s?.fullscreen!==void 0)}openWithFullscreenDefault(a,s){const g=s?.fullscreen!==void 0;this.openInternal(a,{fullscreen:s?.fullscreen??!0,modalSize:s?.modalSize},g)}openInternal(a,s,g=!1){this.removeMigrationToast(),this.hasExplicitFullscreenSelection=g,a&&(this.state.currentPath=a),this.state.isOpen=!0,this.state.modalSize=s?.modalSize??"default",this.state.modalFitContent=!1,s?.fullscreen===!0?this.state.isFullscreen=!0:s?.fullscreen===!1?this.state.isFullscreen=!1:this.config.defaultFullscreen===!0&&(this.state.isFullscreen=!0),this.render(),this.config.onOpen?.()}getDeepLinkModalOptions(a){const s=this.parseModalSize(a.get("apollosModalSize")),g=this.parseBoolean(a.get("apollosFullscreen"));if(!(s===void 0&&g===void 0))return{modalSize:s,fullscreen:g}}parseModalSize(a){if(a==="default"||a==="medium"||a==="large"||a==="small")return a}parseBoolean(a){if(a==="true")return!0;if(a==="false")return!1}close(){this.hasExplicitFullscreenSelection=!1,this.state.isOpen=!1,this.state.isFullscreen=!1,this.state.modalSize="default",this.state.modalFitContent=!1,this.render(),this.config.onClose?.(),this.renderPendingMigrationToast()}toggle(){this.state.isOpen?this.close():this.open()}navigate(a){this.state.currentPath=a,this.render(),this.config.onNavigate?.(a)}isOpen(){return this.state.isOpen}destroy(){this.destroyed=!0,this.domContentLoadedListener&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedListener),this.domContentLoadedListener=null),this.removeAskBar(),this.cleanupThemeListener(),this.cleanupMessageListener(),this.cleanupPersonOriginIdObserver(),this.embedIframe.destroy(),this.pendingMigrationToastPayload=null,this.removeMigrationToast(),this.heightChangeTimeouts.forEach(({timeoutId:a})=>clearTimeout(a)),this.heightChangeTimeouts.clear(),this.inlineSkeletonFallbackTimeouts.forEach(a=>clearTimeout(a)),this.inlineSkeletonFallbackTimeouts.clear(),this.inlineIframes.clear(),Array.from(this.inlineSkeletons.keys()).forEach(a=>{this.removeInlineSkeleton(a)}),this.root&&(this.root.unmount(),this.root=null),this.container&&(this.container.remove(),this.container=null)}getState(){return{...this.state}}getConfig(){return{...this.config}}createInlineSkeleton(a){if(this.inlineSkeletons.has(a))return;gt.ensureSkeletonStyles();const s=document.createElement("div");s.setAttribute("aria-busy","true"),s.style.position="absolute",s.style.inset="0",s.style.display="flex",s.style.alignItems="stretch",s.style.justifyContent="flex-start",s.style.pointerEvents="none";const g=document.createElement("div");g.style.borderRadius="12px",g.style.padding="74px 24px 20px 24px",g.style.boxShadow="0 10px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.12)",g.style.minHeight="360px",g.style.display="flex",g.style.flexDirection="column",g.style.justifyContent="flex-start",g.style.gap="0",g.style.width="100%",g.style.maxWidth="100%";const E=this.state.resolvedTheme==="dark";g.style.backgroundColor=E?"#111827":"#f3f4f6";const C=(Q,H,G)=>{const ee=document.createElement("div");return ee.style.height=`${Q}px`,ee.style.borderRadius=`${H}px`,ee.style.backgroundColor=E?"#374151":"#ffffff",ee.style.width="100%",ee.style.marginBottom=`${G}px`,ee.style.animation="apls-inline-skeleton-pulse 1.4s ease-in-out infinite",ee},z=C(68,8,12),D=C(56,8,24),P=document.createElement("div");P.style.height="50px",P.style.width="100%",P.style.borderRadius="12px",P.style.backgroundColor=E?"#374151":"#ffffff",P.style.animation="apls-inline-skeleton-pulse 1.4s ease-in-out infinite",g.appendChild(z),g.appendChild(D),g.appendChild(P),s.appendChild(g);const V=a.parentElement;if(V){const Q=window.getComputedStyle(V);Q.position==="static"&&(this.inlineSkeletonParentRestore.set(a,{parent:V,originalPosition:Q.position}),V.style.position="relative"),V.appendChild(s),this.inlineSkeletons.set(a,s),a.style.visibility="hidden",this.scheduleInlineSkeletonFallback(a,gt.INLINE_SKELETON_FALLBACK_MS)}}removeInlineSkeleton(a){const s=this.inlineSkeletons.get(a);s&&s.parentElement&&s.parentElement.removeChild(s),this.inlineSkeletons.delete(a);const g=this.inlineSkeletonFallbackTimeouts.get(a);g&&(clearTimeout(g),this.inlineSkeletonFallbackTimeouts.delete(a)),a.style.visibility="";const E=this.inlineSkeletonParentRestore.get(a);E&&(E.parent.style.position=E.originalPosition,this.inlineSkeletonParentRestore.delete(a))}static ensureSkeletonStyles(){if(gt.hasInjectedSkeletonStyles||typeof document>"u")return;const a=document.createElement("style");a.textContent=`
|
|
10
10
|
@keyframes apls-inline-skeleton-pulse {
|
|
11
11
|
0%, 100% { opacity: 0.55; }
|
|
12
12
|
50% { opacity: 1; }
|