@usereq/widget 0.1.5 → 0.1.6
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/dist/widget.js +10 -10
- package/package.json +1 -1
- package/src/runtime/analytics.ts +7 -1
package/dist/widget.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
`);for(q=N=0;N<Ke.length&&!Ke[N].includes("DetermineComponentFrameRoot");)N++;for(;q<vt.length&&!vt[q].includes("DetermineComponentFrameRoot");)q++;if(N===Ke.length||q===vt.length)for(N=Ke.length-1,q=vt.length-1;1<=N&&0<=q&&Ke[N]!==vt[q];)q--;for(;1<=N&&0<=q;N--,q--)if(Ke[N]!==vt[q]){if(N!==1||q!==1)do if(N--,q--,0>q||Ke[N]!==vt[q]){var Lt=`
|
|
7
7
|
`+Ke[N].replace(" at new "," at ");return m.displayName&&Lt.includes("<anonymous>")&&(Lt=Lt.replace("<anonymous>",m.displayName)),Lt}while(1<=N&&0<=q);break}}}finally{Ue=!1,Error.prepareStackTrace=E}return(E=m?m.displayName||m.name:"")?_e(E):""}function Ce(m,v){switch(m.tag){case 26:case 27:case 5:return _e(m.type);case 16:return _e("Lazy");case 13:return m.child!==v&&v!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return Fe(m.type,!1);case 11:return Fe(m.type.render,!1);case 1:return Fe(m.type,!0);case 31:return _e("Activity");default:return""}}function Qe(m){try{var v="",E=null;do v+=Ce(m,E),E=m,m=m.return;while(m);return v}catch(N){return`
|
|
8
8
|
Error generating stack: `+N.message+`
|
|
9
|
-
`+N.stack}}var Me=Object.prototype.hasOwnProperty,dt=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,ut=t.unstable_shouldYield,it=t.unstable_requestPaint,Ze=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,$e=t.unstable_ImmediatePriority,he=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,oe=t.unstable_LowPriority,ke=t.unstable_IdlePriority,ne=t.log,ae=t.unstable_setDisableYieldValue,fe=null,Te=null;function Ae(m){if(typeof ne=="function"&&ae(m),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(fe,m)}catch{}}var Ie=Math.clz32?Math.clz32:ct,Xe=Math.log,Be=Math.LN2;function ct(m){return m>>>=0,m===0?32:31-(Xe(m)/Be|0)|0}var ot=256,et=262144,ht=4194304;function ve(m){var v=m&42;if(v!==0)return v;switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return m&261888;case 262144:case 524288:case 1048576:case 2097152:return m&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return m&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return m}}function _t(m,v,E){var N=m.pendingLanes;if(N===0)return 0;var q=0,Y=m.suspendedLanes,ie=m.pingedLanes;m=m.warmLanes;var be=N&134217727;return be!==0?(N=be&~Y,N!==0?q=ve(N):(ie&=be,ie!==0?q=ve(ie):E||(E=be&~m,E!==0&&(q=ve(E))))):(be=N&~Y,be!==0?q=ve(be):ie!==0?q=ve(ie):E||(E=N&~m,E!==0&&(q=ve(E)))),q===0?0:v!==0&&v!==q&&(v&Y)===0&&(Y=q&-q,E=v&-v,Y>=E||Y===32&&(E&4194048)!==0)?v:q}function ye(m,v){return(m.pendingLanes&~(m.suspendedLanes&~m.pingedLanes)&v)===0}function wt(m,v){switch(m){case 1:case 2:case 4:case 8:case 64:return v+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wt(){var m=ht;return ht<<=1,(ht&62914560)===0&&(ht=4194304),m}function Mt(m){for(var v=[],E=0;31>E;E++)v.push(m);return v}function rr(m,v){m.pendingLanes|=v,v!==268435456&&(m.suspendedLanes=0,m.pingedLanes=0,m.warmLanes=0)}function Ht(m,v,E,N,q,Y){var ie=m.pendingLanes;m.pendingLanes=E,m.suspendedLanes=0,m.pingedLanes=0,m.warmLanes=0,m.expiredLanes&=E,m.entangledLanes&=E,m.errorRecoveryDisabledLanes&=E,m.shellSuspendCounter=0;var be=m.entanglements,Ke=m.expirationTimes,vt=m.hiddenUpdates;for(E=ie&~E;0<E;){var Lt=31-Ie(E),Bt=1<<Lt;be[Lt]=0,Ke[Lt]=-1;var xt=vt[Lt];if(xt!==null)for(vt[Lt]=null,Lt=0;Lt<xt.length;Lt++){var Ct=xt[Lt];Ct!==null&&(Ct.lane&=-536870913)}E&=~Bt}N!==0&&ir(m,N,0),Y!==0&&q===0&&m.tag!==0&&(m.suspendedLanes|=Y&~(ie&~v))}function ir(m,v,E){m.pendingLanes|=v,m.suspendedLanes&=~v;var N=31-Ie(v);m.entangledLanes|=v,m.entanglements[N]=m.entanglements[N]|1073741824|E&261930}function bt(m,v){var E=m.entangledLanes|=v;for(m=m.entanglements;E;){var N=31-Ie(E),q=1<<N;q&v|m[N]&v&&(m[N]|=v),E&=~q}}function me(m,v){var E=v&-v;return E=(E&42)!==0?1:Ft(E),(E&(m.suspendedLanes|v))!==0?0:E}function Ft(m){switch(m){case 2:m=1;break;case 8:m=4;break;case 32:m=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:m=128;break;case 268435456:m=134217728;break;default:m=0}return m}function Ot(m){return m&=-m,2<m?8<m?(m&134217727)!==0?32:268435456:8:2}function St(){var m=$.p;return m!==0?m:(m=window.event,m===void 0?32:$nt(m.type))}function Le(m,v){var E=$.p;try{return $.p=m,v()}finally{$.p=E}}var ft=Math.random().toString(36).slice(2),at="__reactFiber$"+ft,Rt="__reactProps$"+ft,pr="__reactContainer$"+ft,nr="__reactEvents$"+ft,Cr="__reactListeners$"+ft,Fr="__reactHandles$"+ft,Pt="__reactResources$"+ft,Ve="__reactMarker$"+ft;function Et(m){delete m[at],delete m[Rt],delete m[nr],delete m[Cr],delete m[Fr]}function zt(m){var v=m[at];if(v)return v;for(var E=m.parentNode;E;){if(v=E[pr]||E[at]){if(E=v.alternate,v.child!==null||E!==null&&E.child!==null)for(m=Cnt(m);m!==null;){if(E=m[at])return E;m=Cnt(m)}return v}m=E,E=m.parentNode}return null}function br(m){if(m=m[at]||m[pr]){var v=m.tag;if(v===5||v===6||v===13||v===31||v===26||v===27||v===3)return m}return null}function mr(m){var v=m.tag;if(v===5||v===26||v===27||v===6)return m.stateNode;throw Error(n(33))}function Si(m){var v=m[Pt];return v||(v=m[Pt]={hoistableStyles:new Map,hoistableScripts:new Map}),v}function Yr(m){m[Ve]=!0}var Ri=new Set,Sa={};function tr(m,v){cr(m,v),cr(m+"Capture",v)}function cr(m,v){for(Sa[m]=v,m=0;m<v.length;m++)Ri.add(v[m])}var Jt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),or={},Xt={};function ti(m){return Me.call(Xt,m)?!0:Me.call(or,m)?!1:Jt.test(m)?Xt[m]=!0:(or[m]=!0,!1)}function Oe(m,v,E){if(ti(v))if(E===null)m.removeAttribute(v);else{switch(typeof E){case"undefined":case"function":case"symbol":m.removeAttribute(v);return;case"boolean":var N=v.toLowerCase().slice(0,5);if(N!=="data-"&&N!=="aria-"){m.removeAttribute(v);return}}m.setAttribute(v,""+E)}}function Ru(m,v,E){if(E===null)m.removeAttribute(v);else{switch(typeof E){case"undefined":case"function":case"symbol":case"boolean":m.removeAttribute(v);return}m.setAttribute(v,""+E)}}function He(m,v,E,N){if(N===null)m.removeAttribute(E);else{switch(typeof N){case"undefined":case"function":case"symbol":case"boolean":m.removeAttribute(E);return}m.setAttributeNS(v,E,""+N)}}function Ni(m){switch(typeof m){case"bigint":case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function y5(m){var v=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function JI(m,v,E){var N=Object.getOwnPropertyDescriptor(m.constructor.prototype,v);if(!m.hasOwnProperty(v)&&typeof N<"u"&&typeof N.get=="function"&&typeof N.set=="function"){var q=N.get,Y=N.set;return Object.defineProperty(m,v,{configurable:!0,get:function(){return q.call(this)},set:function(ie){E=""+ie,Y.call(this,ie)}}),Object.defineProperty(m,v,{enumerable:N.enumerable}),{getValue:function(){return E},setValue:function(ie){E=""+ie},stopTracking:function(){m._valueTracker=null,delete m[v]}}}}function v5(m){if(!m._valueTracker){var v=y5(m)?"checked":"value";m._valueTracker=JI(m,v,""+m[v])}}function b5(m){if(!m)return!1;var v=m._valueTracker;if(!v)return!0;var E=v.getValue(),N="";return m&&(N=y5(m)?m.checked?"true":"false":m.value),m=N,m!==E?(v.setValue(m),!0):!1}function Wx(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}var _a=/[\n"\\]/g;function Aa(m){return m.replace(_a,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "})}function Ry(m,v,E,N,q,Y,ie,be){m.name="",ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?m.type=ie:m.removeAttribute("type"),v!=null?ie==="number"?(v===0&&m.value===""||m.value!=v)&&(m.value=""+Ni(v)):m.value!==""+Ni(v)&&(m.value=""+Ni(v)):ie!=="submit"&&ie!=="reset"||m.removeAttribute("value"),v!=null?x5(m,ie,Ni(v)):E!=null?x5(m,ie,Ni(E)):N!=null&&m.removeAttribute("value"),q==null&&Y!=null&&(m.defaultChecked=!!Y),q!=null&&(m.checked=q&&typeof q!="function"&&typeof q!="symbol"),be!=null&&typeof be!="function"&&typeof be!="symbol"&&typeof be!="boolean"?m.name=""+Ni(be):m.removeAttribute("name")}function Yx(m,v,E,N,q,Y,ie,be){if(Y!=null&&typeof Y!="function"&&typeof Y!="symbol"&&typeof Y!="boolean"&&(m.type=Y),v!=null||E!=null){if(!(Y!=="submit"&&Y!=="reset"||v!=null)){v5(m);return}E=E!=null?""+Ni(E):"",v=v!=null?""+Ni(v):E,be||v===m.value||(m.value=v),m.defaultValue=v}N=N??q,N=typeof N!="function"&&typeof N!="symbol"&&!!N,m.checked=be?m.checked:!!N,m.defaultChecked=!!N,ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"&&(m.name=ie),v5(m)}function x5(m,v,E){v==="number"&&Wx(m.ownerDocument)===m||m.defaultValue===""+E||(m.defaultValue=""+E)}function d0(m,v,E,N){if(m=m.options,v){v={};for(var q=0;q<E.length;q++)v["$"+E[q]]=!0;for(E=0;E<m.length;E++)q=v.hasOwnProperty("$"+m[E].value),m[E].selected!==q&&(m[E].selected=q),q&&N&&(m[E].defaultSelected=!0)}else{for(E=""+Ni(E),v=null,q=0;q<m.length;q++){if(m[q].value===E){m[q].selected=!0,N&&(m[q].defaultSelected=!0);return}v!==null||m[q].disabled||(v=m[q])}v!==null&&(v.selected=!0)}}function T5(m,v,E){if(v!=null&&(v=""+Ni(v),v!==m.value&&(m.value=v),E==null)){m.defaultValue!==v&&(m.defaultValue=v);return}m.defaultValue=E!=null?""+Ni(E):""}function ss(m,v,E,N){if(v==null){if(N!=null){if(E!=null)throw Error(n(92));if(B(N)){if(1<N.length)throw Error(n(93));N=N[0]}E=N}E??="",v=E}E=Ni(v),m.defaultValue=E,N=m.textContent,N===E&&N!==""&&N!==null&&(m.value=N),v5(m)}function ld(m,v){if(v){var E=m.firstChild;if(E&&E===m.lastChild&&E.nodeType===3){E.nodeValue=v;return}}m.textContent=v}var Vf=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function No(m,v,E){var N=v.indexOf("--")===0;E==null||typeof E=="boolean"||E===""?N?m.setProperty(v,""):v==="float"?m.cssFloat="":m[v]="":N?m.setProperty(v,E):typeof E!="number"||E===0||Vf.has(v)?v==="float"?m.cssFloat=E:m[v]=(""+E).trim():m[v]=E+"px"}function jx(m,v,E){if(v!=null&&typeof v!="object")throw Error(n(62));if(m=m.style,E!=null){for(var N in E)!E.hasOwnProperty(N)||v!=null&&v.hasOwnProperty(N)||(N.indexOf("--")===0?m.setProperty(N,""):N==="float"?m.cssFloat="":m[N]="");for(var q in v)N=v[q],v.hasOwnProperty(q)&&E[q]!==N&&No(m,q,N)}else for(var Y in v)v.hasOwnProperty(Y)&&No(m,Y,v[Y])}function cd(m){if(m.indexOf("-")===-1)return!1;switch(m){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 Xx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Nu=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ny(m){return Nu.test(""+m)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":m}function il(){}var Dy=null;function io(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var Kx=null,Qx=null;function vtt(m){var v=br(m);if(v&&(m=v.stateNode)){var E=m[Rt]||null;e:switch(m=v.stateNode,v.type){case"input":if(Ry(m,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name),v=E.name,E.type==="radio"&&v!=null){for(E=m;E.parentNode;)E=E.parentNode;for(E=E.querySelectorAll('input[name="'+Aa(""+v)+'"][type="radio"]'),v=0;v<E.length;v++){var N=E[v];if(N!==m&&N.form===m.form){var q=N[Rt]||null;if(!q)throw Error(n(90));Ry(N,q.value,q.defaultValue,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name)}}for(v=0;v<E.length;v++)N=E[v],N.form===m.form&&b5(N)}break e;case"textarea":T5(m,E.value,E.defaultValue);break e;case"select":v=E.value,v!=null&&d0(m,!!E.multiple,v,!1)}}}var mae=!1;function btt(m,v,E){if(mae)return m(v,E);mae=!0;try{return m(v)}finally{if(mae=!1,(Kx!==null||Qx!==null)&&(zM(),Kx&&(v=Kx,m=Qx,Qx=Kx=null,vtt(v),m)))for(v=0;v<m.length;v++)vtt(m[v])}}function w5(m,v){var E=m.stateNode;if(E===null)return null;var N=E[Rt]||null;if(N===null)return null;E=N[v];e:switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(N=!N.disabled)||(m=m.type,N=!(m==="button"||m==="input"||m==="select"||m==="textarea")),m=!N;break e;default:m=!1}if(m)return null;if(E&&typeof E!="function")throw Error(n(231,v,typeof E));return E}var qf=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yae=!1;if(qf)try{var E5={};Object.defineProperty(E5,"passive",{get:function(){yae=!0}}),window.addEventListener("test",E5,E5),window.removeEventListener("test",E5,E5)}catch{yae=!1}var f0=null,vae=null,eM=null;function xtt(){if(eM)return eM;var m,v=vae,E=v.length,N,q="value"in f0?f0.value:f0.textContent,Y=q.length;for(m=0;m<E&&v[m]===q[m];m++);var ie=E-m;for(N=1;N<=ie&&v[E-N]===q[Y-N];N++);return eM=q.slice(m,1<N?1-N:void 0)}function tM(m){var v=m.keyCode;return"charCode"in m?(m=m.charCode,m===0&&v===13&&(m=13)):m=v,m===10&&(m=13),32<=m||m===13?m:0}function rM(){return!0}function Ttt(){return!1}function nl(m){function v(E,N,q,Y,ie){this._reactName=E,this._targetInst=q,this.type=N,this.nativeEvent=Y,this.target=ie,this.currentTarget=null;for(var be in m)m.hasOwnProperty(be)&&(E=m[be],this[be]=E?E(Y):Y[be]);return this.isDefaultPrevented=(Y.defaultPrevented!=null?Y.defaultPrevented:Y.returnValue===!1)?rM:Ttt,this.isPropagationStopped=Ttt,this}return f(v.prototype,{preventDefault:function(){this.defaultPrevented=!0;var E=this.nativeEvent;E&&(E.preventDefault?E.preventDefault():typeof E.returnValue!="unknown"&&(E.returnValue=!1),this.isDefaultPrevented=rM)},stopPropagation:function(){var E=this.nativeEvent;E&&(E.stopPropagation?E.stopPropagation():typeof E.cancelBubble!="unknown"&&(E.cancelBubble=!0),this.isPropagationStopped=rM)},persist:function(){},isPersistent:rM}),v}var Iy={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(m){return m.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iM=nl(Iy),k5=f({},Iy,{view:0,detail:0}),ZVt=nl(k5),bae,xae,C5,nM=f({},k5,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wae,button:0,buttons:0,relatedTarget:function(m){return m.relatedTarget===void 0?m.fromElement===m.srcElement?m.toElement:m.fromElement:m.relatedTarget},movementX:function(m){return"movementX"in m?m.movementX:(m!==C5&&(C5&&m.type==="mousemove"?(bae=m.screenX-C5.screenX,xae=m.screenY-C5.screenY):xae=bae=0,C5=m),bae)},movementY:function(m){return"movementY"in m?m.movementY:xae}}),wtt=nl(nM),JVt=nl(f({},nM,{dataTransfer:0})),Tae=nl(f({},k5,{relatedTarget:0})),eqt=nl(f({},Iy,{animationName:0,elapsedTime:0,pseudoElement:0})),tqt=nl(f({},Iy,{clipboardData:function(m){return"clipboardData"in m?m.clipboardData:window.clipboardData}})),Ett=nl(f({},Iy,{data:0})),rqt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iqt={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"},nqt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aqt(m){var v=this.nativeEvent;return v.getModifierState?v.getModifierState(m):(m=nqt[m])?!!v[m]:!1}function wae(){return aqt}var sqt=nl(f({},k5,{key:function(m){if(m.key){var v=rqt[m.key]||m.key;if(v!=="Unidentified")return v}return m.type==="keypress"?(m=tM(m),m===13?"Enter":String.fromCharCode(m)):m.type==="keydown"||m.type==="keyup"?iqt[m.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wae,charCode:function(m){return m.type==="keypress"?tM(m):0},keyCode:function(m){return m.type==="keydown"||m.type==="keyup"?m.keyCode:0},which:function(m){return m.type==="keypress"?tM(m):m.type==="keydown"||m.type==="keyup"?m.keyCode:0}})),ktt=nl(f({},nM,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),oqt=nl(f({},k5,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wae})),lqt=nl(f({},Iy,{propertyName:0,elapsedTime:0,pseudoElement:0})),cqt=nl(f({},nM,{deltaX:function(m){return"deltaX"in m?m.deltaX:"wheelDeltaX"in m?-m.wheelDeltaX:0},deltaY:function(m){return"deltaY"in m?m.deltaY:"wheelDeltaY"in m?-m.wheelDeltaY:"wheelDelta"in m?-m.wheelDelta:0},deltaZ:0,deltaMode:0})),uqt=nl(f({},Iy,{newState:0,oldState:0})),hqt=[9,13,27,32],Eae=qf&&"CompositionEvent"in window,S5=null;qf&&"documentMode"in document&&(S5=document.documentMode);var dqt=qf&&"TextEvent"in window&&!S5,Ctt=qf&&(!Eae||S5&&8<S5&&11>=S5),Stt=" ",_tt=!1;function Att(m,v){switch(m){case"keyup":return hqt.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ltt(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var Zx=!1;function fqt(m,v){switch(m){case"compositionend":return Ltt(v);case"keypress":return v.which!==32?null:(_tt=!0,Stt);case"textInput":return m=v.data,m===Stt&&_tt?null:m;default:return null}}function pqt(m,v){if(Zx)return m==="compositionend"||!Eae&&Att(m,v)?(m=xtt(),eM=vae=f0=null,Zx=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1<v.char.length)return v.char;if(v.which)return String.fromCharCode(v.which)}return null;case"compositionend":return Ctt&&v.locale!=="ko"?null:v.data;default:return null}}var gqt={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 Rtt(m){var v=m&&m.nodeName&&m.nodeName.toLowerCase();return v==="input"?!!gqt[m.type]:v==="textarea"}function Ntt(m,v,E,N){Kx?Qx?Qx.push(N):Qx=[N]:Kx=N,v=YM(v,"onChange"),0<v.length&&(E=new iM("onChange","change",null,E,N),m.push({event:E,listeners:v}))}var _5=null,A5=null;function mqt(m){unt(m,0)}function aM(m){if(b5(mr(m)))return m}function Dtt(m,v){if(m==="change")return v}var Itt=!1;if(qf){var kae;if(qf){var Cae="oninput"in document;if(!Cae){var Mtt=document.createElement("div");Mtt.setAttribute("oninput","return;"),Cae=typeof Mtt.oninput=="function"}kae=Cae}else kae=!1;Itt=kae&&(!document.documentMode||9<document.documentMode)}function Ott(){_5&&(_5.detachEvent("onpropertychange",Ptt),A5=_5=null)}function Ptt(m){if(m.propertyName==="value"&&aM(A5)){var v=[];Ntt(v,A5,m,io(m)),btt(mqt,v)}}function yqt(m,v,E){m==="focusin"?(Ott(),_5=v,A5=E,_5.attachEvent("onpropertychange",Ptt)):m==="focusout"&&Ott()}function vqt(m){if(m==="selectionchange"||m==="keyup"||m==="keydown")return aM(A5)}function bqt(m,v){if(m==="click")return aM(v)}function xqt(m,v){if(m==="input"||m==="change")return aM(v)}function Tqt(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var Ml=typeof Object.is=="function"?Object.is:Tqt;function L5(m,v){if(Ml(m,v))return!0;if(typeof m!="object"||m===null||typeof v!="object"||v===null)return!1;var E=Object.keys(m),N=Object.keys(v);if(E.length!==N.length)return!1;for(N=0;N<E.length;N++){var q=E[N];if(!Me.call(v,q)||!Ml(m[q],v[q]))return!1}return!0}function Btt(m){for(;m&&m.firstChild;)m=m.firstChild;return m}function Ftt(m,v){var E=Btt(m);m=0;for(var N;E;){if(E.nodeType===3){if(N=m+E.textContent.length,m<=v&&N>=v)return{node:E,offset:v-m};m=N}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=Btt(E)}}function $tt(m,v){return m&&v?m===v?!0:m&&m.nodeType===3?!1:v&&v.nodeType===3?$tt(m,v.parentNode):"contains"in m?m.contains(v):m.compareDocumentPosition?!!(m.compareDocumentPosition(v)&16):!1:!1}function ztt(m){m=m!=null&&m.ownerDocument!=null&&m.ownerDocument.defaultView!=null?m.ownerDocument.defaultView:window;for(var v=Wx(m.document);v instanceof m.HTMLIFrameElement;){try{var E=typeof v.contentWindow.location.href=="string"}catch{E=!1}if(E)m=v.contentWindow;else break;v=Wx(m.document)}return v}function Sae(m){var v=m&&m.nodeName&&m.nodeName.toLowerCase();return v&&(v==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||v==="textarea"||m.contentEditable==="true")}var wqt=qf&&"documentMode"in document&&11>=document.documentMode,Jx=null,_ae=null,R5=null,Aae=!1;function Utt(m,v,E){var N=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Aae||Jx==null||Jx!==Wx(N)||(N=Jx,"selectionStart"in N&&Sae(N)?N={start:N.selectionStart,end:N.selectionEnd}:(N=(N.ownerDocument&&N.ownerDocument.defaultView||window).getSelection(),N={anchorNode:N.anchorNode,anchorOffset:N.anchorOffset,focusNode:N.focusNode,focusOffset:N.focusOffset}),R5&&L5(R5,N)||(R5=N,N=YM(_ae,"onSelect"),0<N.length&&(v=new iM("onSelect","select",null,v,E),m.push({event:v,listeners:N}),v.target=Jx)))}function My(m,v){var E={};return E[m.toLowerCase()]=v.toLowerCase(),E["Webkit"+m]="webkit"+v,E["Moz"+m]="moz"+v,E}var eT={animationend:My("Animation","AnimationEnd"),animationiteration:My("Animation","AnimationIteration"),animationstart:My("Animation","AnimationStart"),transitionrun:My("Transition","TransitionRun"),transitionstart:My("Transition","TransitionStart"),transitioncancel:My("Transition","TransitionCancel"),transitionend:My("Transition","TransitionEnd")},Lae={},Htt={};qf&&(Htt=document.createElement("div").style,"AnimationEvent"in window||(delete eT.animationend.animation,delete eT.animationiteration.animation,delete eT.animationstart.animation),"TransitionEvent"in window||delete eT.transitionend.transition);function Oy(m){if(Lae[m])return Lae[m];if(!eT[m])return m;var v=eT[m],E;for(E in v)if(v.hasOwnProperty(E)&&E in Htt)return Lae[m]=v[E];return m}var Vtt=Oy("animationend"),qtt=Oy("animationiteration"),Gtt=Oy("animationstart"),Eqt=Oy("transitionrun"),kqt=Oy("transitionstart"),Cqt=Oy("transitioncancel"),Wtt=Oy("transitionend"),Ytt=new Map,Rae="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Rae.push("scrollEnd");function Du(m,v){Ytt.set(m,v),tr(v,[m])}var sM=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)},mc=[],tT=0,Nae=0;function oM(){for(var m=tT,v=Nae=tT=0;v<m;){var E=mc[v];mc[v++]=null;var N=mc[v];mc[v++]=null;var q=mc[v];mc[v++]=null;var Y=mc[v];if(mc[v++]=null,N!==null&&q!==null){var ie=N.pending;ie===null?q.next=q:(q.next=ie.next,ie.next=q),N.pending=q}Y!==0&&jtt(E,q,Y)}}function lM(m,v,E,N){mc[tT++]=m,mc[tT++]=v,mc[tT++]=E,mc[tT++]=N,Nae|=N,m.lanes|=N,m=m.alternate,m!==null&&(m.lanes|=N)}function Dae(m,v,E,N){return lM(m,v,E,N),cM(m)}function Py(m,v){return lM(m,null,null,v),cM(m)}function jtt(m,v,E){m.lanes|=E;var N=m.alternate;N!==null&&(N.lanes|=E);for(var q=!1,Y=m.return;Y!==null;)Y.childLanes|=E,N=Y.alternate,N!==null&&(N.childLanes|=E),Y.tag===22&&(m=Y.stateNode,m===null||m._visibility&1||(q=!0)),m=Y,Y=Y.return;return m.tag===3?(Y=m.stateNode,q&&v!==null&&(q=31-Ie(E),m=Y.hiddenUpdates,N=m[q],N===null?m[q]=[v]:N.push(v),v.lane=E|536870912),Y):null}function cM(m){if(50<Z5)throw Z5=0,Use=null,Error(n(185));for(var v=m.return;v!==null;)m=v,v=m.return;return m.tag===3?m.stateNode:null}var rT={};function Sqt(m,v,E,N){this.tag=m,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=v,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ol(m,v,E,N){return new Sqt(m,v,E,N)}function Iae(m){return m=m.prototype,!(!m||!m.isReactComponent)}function Gf(m,v){var E=m.alternate;return E===null?(E=Ol(m.tag,v,m.key,m.mode),E.elementType=m.elementType,E.type=m.type,E.stateNode=m.stateNode,E.alternate=m,m.alternate=E):(E.pendingProps=v,E.type=m.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=m.flags&65011712,E.childLanes=m.childLanes,E.lanes=m.lanes,E.child=m.child,E.memoizedProps=m.memoizedProps,E.memoizedState=m.memoizedState,E.updateQueue=m.updateQueue,v=m.dependencies,E.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},E.sibling=m.sibling,E.index=m.index,E.ref=m.ref,E.refCleanup=m.refCleanup,E}function Xtt(m,v){m.flags&=65011714;var E=m.alternate;return E===null?(m.childLanes=0,m.lanes=v,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=E.childLanes,m.lanes=E.lanes,m.child=E.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=E.memoizedProps,m.memoizedState=E.memoizedState,m.updateQueue=E.updateQueue,m.type=E.type,v=E.dependencies,m.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext}),m}function uM(m,v,E,N,q,Y){var ie=0;if(N=m,typeof m=="function")Iae(m)&&(ie=1);else if(typeof m=="string")ie=DGt(m,E,Z.current)?26:m==="html"||m==="head"||m==="body"?27:5;else e:switch(m){case O:return m=Ol(31,E,v,q),m.elementType=O,m.lanes=Y,m;case b:return By(E.children,q,Y,v);case T:ie=8,q|=24;break;case w:return m=Ol(12,E,v,q|2),m.elementType=w,m.lanes=Y,m;case _:return m=Ol(13,E,v,q),m.elementType=_,m.lanes=Y,m;case S:return m=Ol(19,E,v,q),m.elementType=S,m.lanes=Y,m;default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case C:ie=10;break e;case x:ie=9;break e;case L:ie=11;break e;case A:ie=14;break e;case P:ie=16,N=null;break e}ie=29,E=Error(n(130,m===null?"null":typeof m,"")),N=null}return v=Ol(ie,E,v,q),v.elementType=m,v.type=N,v.lanes=Y,v}function By(m,v,E,N){return m=Ol(7,m,N,v),m.lanes=E,m}function Mae(m,v,E){return m=Ol(6,m,null,v),m.lanes=E,m}function Ktt(m){var v=Ol(18,null,null,0);return v.stateNode=m,v}function Oae(m,v,E){return v=Ol(4,m.children!==null?m.children:[],m.key,v),v.lanes=E,v.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},v}var Qtt=new WeakMap;function yc(m,v){if(typeof m=="object"&&m!==null){var E=Qtt.get(m);return E!==void 0?E:(v={value:m,source:v,stack:Qe(v)},Qtt.set(m,v),v)}return{value:m,source:v,stack:Qe(v)}}var iT=[],nT=0,hM=null,N5=0,vc=[],bc=0,p0=null,ud=1,hd="";function Wf(m,v){iT[nT++]=N5,iT[nT++]=hM,hM=m,N5=v}function Ztt(m,v,E){vc[bc++]=ud,vc[bc++]=hd,vc[bc++]=p0,p0=m;var N=ud;m=hd;var q=32-Ie(N)-1;N&=~(1<<q),E+=1;var Y=32-Ie(v)+q;if(30<Y){var ie=q-q%5;Y=(N&(1<<ie)-1).toString(32),N>>=ie,q-=ie,ud=1<<32-Ie(v)+q|E<<q|N,hd=Y+m}else ud=1<<Y|E<<q|N,hd=m}function Pae(m){m.return!==null&&(Wf(m,1),Ztt(m,1,0))}function Bae(m){for(;m===hM;)hM=iT[--nT],iT[nT]=null,N5=iT[--nT],iT[nT]=null;for(;m===p0;)p0=vc[--bc],vc[bc]=null,hd=vc[--bc],vc[bc]=null,ud=vc[--bc],vc[bc]=null}function Jtt(m,v){vc[bc++]=ud,vc[bc++]=hd,vc[bc++]=p0,ud=v.id,hd=v.overflow,p0=m}var Cs=null,_n=null,Ti=!1,g0=null,xc=!1,Fae=Error(n(519));function m0(m){throw D5(yc(Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML","")),m)),Fae}function ert(m){var v=m.stateNode,E=m.type,N=m.memoizedProps;switch(v[at]=m,v[Rt]=N,E){case"dialog":gi("cancel",v),gi("close",v);break;case"iframe":case"object":case"embed":gi("load",v);break;case"video":case"audio":for(E=0;E<e3.length;E++)gi(e3[E],v);break;case"source":gi("error",v);break;case"img":case"image":case"link":gi("error",v),gi("load",v);break;case"details":gi("toggle",v);break;case"input":gi("invalid",v),Yx(v,N.value,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name,!0);break;case"select":gi("invalid",v);break;case"textarea":gi("invalid",v),ss(v,N.value,N.defaultValue,N.children)}E=N.children,typeof E!="string"&&typeof E!="number"&&typeof E!="bigint"||v.textContent===""+E||N.suppressHydrationWarning===!0||gnt(v.textContent,E)?(N.popover!=null&&(gi("beforetoggle",v),gi("toggle",v)),N.onScroll!=null&&gi("scroll",v),N.onScrollEnd!=null&&gi("scrollend",v),N.onClick!=null&&(v.onclick=il),v=!0):v=!1,v||m0(m,!0)}function trt(m){for(Cs=m.return;Cs;)switch(Cs.tag){case 5:case 31:case 13:xc=!1;return;case 27:case 3:xc=!0;return;default:Cs=Cs.return}}function aT(m){if(m!==Cs)return!1;if(!Ti)return trt(m),Ti=!0,!1;var v=m.tag,E;if((E=v!==3&&v!==27)&&((E=v===5)&&(E=m.type,E=!(E!=="form"&&E!=="button")||toe(m.type,m.memoizedProps)),E=!E),E&&_n&&m0(m),trt(m),v===13){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));_n=knt(m)}else if(v===31){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));_n=knt(m)}else v===27?(v=_n,A0(m.type)?(m=soe,soe=null,_n=m):_n=v):_n=Cs?Ec(m.stateNode.nextSibling):null;return!0}function Fy(){_n=Cs=null,Ti=!1}function $ae(){var m=g0;return m!==null&&(ll===null?ll=m:ll.push.apply(ll,m),g0=null),m}function D5(m){g0===null?g0=[m]:g0.push(m)}var zae=W(null),$y=null,Yf=null;function y0(m,v,E){K(zae,v._currentValue),v._currentValue=E}function jf(m){m._currentValue=zae.current,G(zae)}function Uae(m,v,E){for(;m!==null;){var N=m.alternate;if((m.childLanes&v)!==v?(m.childLanes|=v,N!==null&&(N.childLanes|=v)):N!==null&&(N.childLanes&v)!==v&&(N.childLanes|=v),m===E)break;m=m.return}}function Hae(m,v,E,N){var q=m.child;for(q!==null&&(q.return=m);q!==null;){var Y=q.dependencies;if(Y!==null){var ie=q.child;Y=Y.firstContext;e:for(;Y!==null;){var be=Y;Y=q;for(var Ke=0;Ke<v.length;Ke++)if(be.context===v[Ke]){Y.lanes|=E,be=Y.alternate,be!==null&&(be.lanes|=E),Uae(Y.return,E,m),N||(ie=null);break e}Y=be.next}}else if(q.tag===18){if(ie=q.return,ie===null)throw Error(n(341));ie.lanes|=E,Y=ie.alternate,Y!==null&&(Y.lanes|=E),Uae(ie,E,m),ie=null}else ie=q.child;if(ie!==null)ie.return=q;else for(ie=q;ie!==null;){if(ie===m){ie=null;break}if(q=ie.sibling,q!==null){q.return=ie.return,ie=q;break}ie=ie.return}q=ie}}function sT(m,v,E,N){m=null;for(var q=v,Y=!1;q!==null;){if(!Y){if((q.flags&524288)!==0)Y=!0;else if((q.flags&262144)!==0)break}if(q.tag===10){var ie=q.alternate;if(ie===null)throw Error(n(387));if(ie=ie.memoizedProps,ie!==null){var be=q.type;Ml(q.pendingProps.value,ie.value)||(m!==null?m.push(be):m=[be])}}else if(q===se.current){if(ie=q.alternate,ie===null)throw Error(n(387));ie.memoizedState.memoizedState!==q.memoizedState.memoizedState&&(m!==null?m.push(a3):m=[a3])}q=q.return}m!==null&&Hae(v,m,E,N),v.flags|=262144}function dM(m){for(m=m.firstContext;m!==null;){if(!Ml(m.context._currentValue,m.memoizedValue))return!0;m=m.next}return!1}function zy(m){$y=m,Yf=null,m=m.dependencies,m!==null&&(m.firstContext=null)}function Ss(m){return rrt($y,m)}function fM(m,v){return $y===null&&zy(m),rrt(m,v)}function rrt(m,v){var E=v._currentValue;if(v={context:v,memoizedValue:E,next:null},Yf===null){if(m===null)throw Error(n(308));Yf=v,m.dependencies={lanes:0,firstContext:v},m.flags|=524288}else Yf=Yf.next=v;return E}var _qt=typeof AbortController<"u"?AbortController:function(){var m=[],v=this.signal={aborted:!1,addEventListener:function(E,N){m.push(N)}};this.abort=function(){v.aborted=!0,m.forEach(function(E){return E()})}},Aqt=t.unstable_scheduleCallback,Lqt=t.unstable_NormalPriority,La={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vae(){return{controller:new _qt,data:new Map,refCount:0}}function I5(m){m.refCount--,m.refCount===0&&Aqt(Lqt,function(){m.controller.abort()})}var M5=null,qae=0,oT=0,lT=null;function Rqt(m,v){if(M5===null){var E=M5=[];qae=0,oT=Yse(),lT={status:"pending",value:void 0,then:function(N){E.push(N)}}}return qae++,v.then(irt,irt),v}function irt(){if(--qae===0&&M5!==null){lT!==null&&(lT.status="fulfilled");var m=M5;M5=null,oT=0,lT=null;for(var v=0;v<m.length;v++)(0,m[v])()}}function Nqt(m,v){var E=[],N={status:"pending",value:null,reason:null,then:function(q){E.push(q)}};return m.then(function(){N.status="fulfilled",N.value=v;for(var q=0;q<E.length;q++)(0,E[q])(v)},function(q){for(N.status="rejected",N.reason=q,q=0;q<E.length;q++)(0,E[q])(void 0)}),N}var nrt=D.S;D.S=function(m,v){Fit=Ze(),typeof v=="object"&&v!==null&&typeof v.then=="function"&&Rqt(m,v),nrt!==null&&nrt(m,v)};var Uy=W(null);function Gae(){var m=Uy.current;return m!==null?m:fn.pooledCache}function pM(m,v){v===null?K(Uy,Uy.current):K(Uy,v.pool)}function art(){var m=Gae();return m===null?null:{parent:La._currentValue,pool:m}}var cT=Error(n(460)),Wae=Error(n(474)),gM=Error(n(542)),mM={then:function(){}};function srt(m){return m=m.status,m==="fulfilled"||m==="rejected"}function ort(m,v,E){switch(E=m[E],E===void 0?m.push(v):E!==v&&(v.then(il,il),v=E),v.status){case"fulfilled":return v.value;case"rejected":throw m=v.reason,crt(m),m;default:if(typeof v.status=="string")v.then(il,il);else{if(m=fn,m!==null&&100<m.shellSuspendCounter)throw Error(n(482));m=v,m.status="pending",m.then(function(N){if(v.status==="pending"){var q=v;q.status="fulfilled",q.value=N}},function(N){if(v.status==="pending"){var q=v;q.status="rejected",q.reason=N}})}switch(v.status){case"fulfilled":return v.value;case"rejected":throw m=v.reason,crt(m),m}throw Vy=v,cT}}function Hy(m){try{var v=m._init;return v(m._payload)}catch(E){throw E!==null&&typeof E=="object"&&typeof E.then=="function"?(Vy=E,cT):E}}var Vy=null;function lrt(){if(Vy===null)throw Error(n(459));var m=Vy;return Vy=null,m}function crt(m){if(m===cT||m===gM)throw Error(n(483))}var uT=null,O5=0;function yM(m){var v=O5;return O5+=1,uT===null&&(uT=[]),ort(uT,m,v)}function P5(m,v){v=v.props.ref,m.ref=v!==void 0?v:null}function vM(m,v){throw v.$$typeof===p?Error(n(525)):(m=Object.prototype.toString.call(v),Error(n(31,m==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":m)))}function urt(m){function v(lt,tt){if(m){var mt=lt.deletions;mt===null?(lt.deletions=[tt],lt.flags|=16):mt.push(tt)}}function E(lt,tt){if(!m)return null;for(;tt!==null;)v(lt,tt),tt=tt.sibling;return null}function N(lt){for(var tt=new Map;lt!==null;)lt.key!==null?tt.set(lt.key,lt):tt.set(lt.index,lt),lt=lt.sibling;return tt}function q(lt,tt){return lt=Gf(lt,tt),lt.index=0,lt.sibling=null,lt}function Y(lt,tt,mt){return lt.index=mt,m?(mt=lt.alternate,mt!==null?(mt=mt.index,mt<tt?(lt.flags|=67108866,tt):mt):(lt.flags|=67108866,tt)):(lt.flags|=1048576,tt)}function ie(lt){return m&<.alternate===null&&(lt.flags|=67108866),lt}function be(lt,tt,mt,Dt){return tt===null||tt.tag!==6?(tt=Mae(mt,lt.mode,Dt),tt.return=lt,tt):(tt=q(tt,mt),tt.return=lt,tt)}function Ke(lt,tt,mt,Dt){var Nr=mt.type;return Nr===b?Lt(lt,tt,mt.props.children,Dt,mt.key):tt!==null&&(tt.elementType===Nr||typeof Nr=="object"&&Nr!==null&&Nr.$$typeof===P&&Hy(Nr)===tt.type)?(tt=q(tt,mt.props),P5(tt,mt),tt.return=lt,tt):(tt=uM(mt.type,mt.key,mt.props,null,lt.mode,Dt),P5(tt,mt),tt.return=lt,tt)}function vt(lt,tt,mt,Dt){return tt===null||tt.tag!==4||tt.stateNode.containerInfo!==mt.containerInfo||tt.stateNode.implementation!==mt.implementation?(tt=Oae(mt,lt.mode,Dt),tt.return=lt,tt):(tt=q(tt,mt.children||[]),tt.return=lt,tt)}function Lt(lt,tt,mt,Dt,Nr){return tt===null||tt.tag!==7?(tt=By(mt,lt.mode,Dt,Nr),tt.return=lt,tt):(tt=q(tt,mt),tt.return=lt,tt)}function Bt(lt,tt,mt){if(typeof tt=="string"&&tt!==""||typeof tt=="number"||typeof tt=="bigint")return tt=Mae(""+tt,lt.mode,mt),tt.return=lt,tt;if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case g:return mt=uM(tt.type,tt.key,tt.props,null,lt.mode,mt),P5(mt,tt),mt.return=lt,mt;case y:return tt=Oae(tt,lt.mode,mt),tt.return=lt,tt;case P:return tt=Hy(tt),Bt(lt,tt,mt)}if(B(tt)||R(tt))return tt=By(tt,lt.mode,mt,null),tt.return=lt,tt;if(typeof tt.then=="function")return Bt(lt,yM(tt),mt);if(tt.$$typeof===C)return Bt(lt,fM(lt,tt),mt);vM(lt,tt)}return null}function xt(lt,tt,mt,Dt){var Nr=tt!==null?tt.key:null;if(typeof mt=="string"&&mt!==""||typeof mt=="number"||typeof mt=="bigint")return Nr!==null?null:be(lt,tt,""+mt,Dt);if(typeof mt=="object"&&mt!==null){switch(mt.$$typeof){case g:return mt.key===Nr?Ke(lt,tt,mt,Dt):null;case y:return mt.key===Nr?vt(lt,tt,mt,Dt):null;case P:return mt=Hy(mt),xt(lt,tt,mt,Dt)}if(B(mt)||R(mt))return Nr!==null?null:Lt(lt,tt,mt,Dt,null);if(typeof mt.then=="function")return xt(lt,tt,yM(mt),Dt);if(mt.$$typeof===C)return xt(lt,tt,fM(lt,mt),Dt);vM(lt,mt)}return null}function Ct(lt,tt,mt,Dt,Nr){if(typeof Dt=="string"&&Dt!==""||typeof Dt=="number"||typeof Dt=="bigint")return lt=lt.get(mt)||null,be(tt,lt,""+Dt,Nr);if(typeof Dt=="object"&&Dt!==null){switch(Dt.$$typeof){case g:return lt=lt.get(Dt.key===null?mt:Dt.key)||null,Ke(tt,lt,Dt,Nr);case y:return lt=lt.get(Dt.key===null?mt:Dt.key)||null,vt(tt,lt,Dt,Nr);case P:return Dt=Hy(Dt),Ct(lt,tt,mt,Dt,Nr)}if(B(Dt)||R(Dt))return lt=lt.get(mt)||null,Lt(tt,lt,Dt,Nr,null);if(typeof Dt.then=="function")return Ct(lt,tt,mt,yM(Dt),Nr);if(Dt.$$typeof===C)return Ct(lt,tt,mt,fM(tt,Dt),Nr);vM(tt,Dt)}return null}function xr(lt,tt,mt,Dt){for(var Nr=null,Pi=null,_r=tt,ri=tt=0,yi=null;_r!==null&&ri<mt.length;ri++){_r.index>ri?(yi=_r,_r=null):yi=_r.sibling;var Bi=xt(lt,_r,mt[ri],Dt);if(Bi===null){_r===null&&(_r=yi);break}m&&_r&&Bi.alternate===null&&v(lt,_r),tt=Y(Bi,tt,ri),Pi===null?Nr=Bi:Pi.sibling=Bi,Pi=Bi,_r=yi}if(ri===mt.length)return E(lt,_r),Ti&&Wf(lt,ri),Nr;if(_r===null){for(;ri<mt.length;ri++)_r=Bt(lt,mt[ri],Dt),_r!==null&&(tt=Y(_r,tt,ri),Pi===null?Nr=_r:Pi.sibling=_r,Pi=_r);return Ti&&Wf(lt,ri),Nr}for(_r=N(_r);ri<mt.length;ri++)yi=Ct(_r,lt,ri,mt[ri],Dt),yi!==null&&(m&&yi.alternate!==null&&_r.delete(yi.key===null?ri:yi.key),tt=Y(yi,tt,ri),Pi===null?Nr=yi:Pi.sibling=yi,Pi=yi);return m&&_r.forEach(function(I0){return v(lt,I0)}),Ti&&Wf(lt,ri),Nr}function Hr(lt,tt,mt,Dt){if(mt==null)throw Error(n(151));for(var Nr=null,Pi=null,_r=tt,ri=tt=0,yi=null,Bi=mt.next();_r!==null&&!Bi.done;ri++,Bi=mt.next()){_r.index>ri?(yi=_r,_r=null):yi=_r.sibling;var I0=xt(lt,_r,Bi.value,Dt);if(I0===null){_r===null&&(_r=yi);break}m&&_r&&I0.alternate===null&&v(lt,_r),tt=Y(I0,tt,ri),Pi===null?Nr=I0:Pi.sibling=I0,Pi=I0,_r=yi}if(Bi.done)return E(lt,_r),Ti&&Wf(lt,ri),Nr;if(_r===null){for(;!Bi.done;ri++,Bi=mt.next())Bi=Bt(lt,Bi.value,Dt),Bi!==null&&(tt=Y(Bi,tt,ri),Pi===null?Nr=Bi:Pi.sibling=Bi,Pi=Bi);return Ti&&Wf(lt,ri),Nr}for(_r=N(_r);!Bi.done;ri++,Bi=mt.next())Bi=Ct(_r,lt,ri,Bi.value,Dt),Bi!==null&&(m&&Bi.alternate!==null&&_r.delete(Bi.key===null?ri:Bi.key),tt=Y(Bi,tt,ri),Pi===null?Nr=Bi:Pi.sibling=Bi,Pi=Bi);return m&&_r.forEach(function(WGt){return v(lt,WGt)}),Ti&&Wf(lt,ri),Nr}function nn(lt,tt,mt,Dt){if(typeof mt=="object"&&mt!==null&&mt.type===b&&mt.key===null&&(mt=mt.props.children),typeof mt=="object"&&mt!==null){switch(mt.$$typeof){case g:e:{for(var Nr=mt.key;tt!==null;){if(tt.key===Nr){if(Nr=mt.type,Nr===b){if(tt.tag===7){E(lt,tt.sibling),Dt=q(tt,mt.props.children),Dt.return=lt,lt=Dt;break e}}else if(tt.elementType===Nr||typeof Nr=="object"&&Nr!==null&&Nr.$$typeof===P&&Hy(Nr)===tt.type){E(lt,tt.sibling),Dt=q(tt,mt.props),P5(Dt,mt),Dt.return=lt,lt=Dt;break e}E(lt,tt);break}else v(lt,tt);tt=tt.sibling}mt.type===b?(Dt=By(mt.props.children,lt.mode,Dt,mt.key),Dt.return=lt,lt=Dt):(Dt=uM(mt.type,mt.key,mt.props,null,lt.mode,Dt),P5(Dt,mt),Dt.return=lt,lt=Dt)}return ie(lt);case y:e:{for(Nr=mt.key;tt!==null;){if(tt.key===Nr)if(tt.tag===4&&tt.stateNode.containerInfo===mt.containerInfo&&tt.stateNode.implementation===mt.implementation){E(lt,tt.sibling),Dt=q(tt,mt.children||[]),Dt.return=lt,lt=Dt;break e}else{E(lt,tt);break}else v(lt,tt);tt=tt.sibling}Dt=Oae(mt,lt.mode,Dt),Dt.return=lt,lt=Dt}return ie(lt);case P:return mt=Hy(mt),nn(lt,tt,mt,Dt)}if(B(mt))return xr(lt,tt,mt,Dt);if(R(mt)){if(Nr=R(mt),typeof Nr!="function")throw Error(n(150));return mt=Nr.call(mt),Hr(lt,tt,mt,Dt)}if(typeof mt.then=="function")return nn(lt,tt,yM(mt),Dt);if(mt.$$typeof===C)return nn(lt,tt,fM(lt,mt),Dt);vM(lt,mt)}return typeof mt=="string"&&mt!==""||typeof mt=="number"||typeof mt=="bigint"?(mt=""+mt,tt!==null&&tt.tag===6?(E(lt,tt.sibling),Dt=q(tt,mt),Dt.return=lt,lt=Dt):(E(lt,tt),Dt=Mae(mt,lt.mode,Dt),Dt.return=lt,lt=Dt),ie(lt)):E(lt,tt)}return function(lt,tt,mt,Dt){try{O5=0;var Nr=nn(lt,tt,mt,Dt);return uT=null,Nr}catch(_r){if(_r===cT||_r===gM)throw _r;var Pi=Ol(29,_r,null,lt.mode);return Pi.lanes=Dt,Pi.return=lt,Pi}}}var qy=urt(!0),hrt=urt(!1),v0=!1;function Yae(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jae(m,v){m=m.updateQueue,v.updateQueue===m&&(v.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,callbacks:null})}function Gy(m){return{lane:m,tag:0,payload:null,callback:null,next:null}}function Wy(m,v,E){var N=m.updateQueue;if(N===null)return null;if(N=N.shared,(qi&2)!==0){var q=N.pending;return q===null?v.next=v:(v.next=q.next,q.next=v),N.pending=v,v=cM(m),jtt(m,null,E),v}return lM(m,N,v,E),cM(m)}function B5(m,v,E){if(v=v.updateQueue,v!==null&&(v=v.shared,(E&4194048)!==0)){var N=v.lanes;N&=m.pendingLanes,E|=N,v.lanes=E,bt(m,E)}}function Xae(m,v){var E=m.updateQueue,N=m.alternate;if(N!==null&&(N=N.updateQueue,E===N)){var q=null,Y=null;if(E=E.firstBaseUpdate,E!==null){do{var ie={lane:E.lane,tag:E.tag,payload:E.payload,callback:null,next:null};Y===null?q=Y=ie:Y=Y.next=ie,E=E.next}while(E!==null);Y===null?q=Y=v:Y=Y.next=v}else q=Y=v;E={baseState:N.baseState,firstBaseUpdate:q,lastBaseUpdate:Y,shared:N.shared,callbacks:N.callbacks},m.updateQueue=E;return}m=E.lastBaseUpdate,m===null?E.firstBaseUpdate=v:m.next=v,E.lastBaseUpdate=v}var Kae=!1;function F5(){if(Kae){var m=lT;if(m!==null)throw m}}function $5(m,v,E,N){Kae=!1;var q=m.updateQueue;v0=!1;var Y=q.firstBaseUpdate,ie=q.lastBaseUpdate,be=q.shared.pending;if(be!==null){q.shared.pending=null;var Ke=be,vt=Ke.next;Ke.next=null,ie===null?Y=vt:ie.next=vt,ie=Ke;var Lt=m.alternate;Lt!==null&&(Lt=Lt.updateQueue,be=Lt.lastBaseUpdate,be!==ie&&(be===null?Lt.firstBaseUpdate=vt:be.next=vt,Lt.lastBaseUpdate=Ke))}if(Y!==null){var Bt=q.baseState;ie=0,Lt=vt=Ke=null,be=Y;do{var xt=be.lane&-536870913,Ct=xt!==be.lane;if(Ct?(mi&xt)===xt:(N&xt)===xt){xt!==0&&xt===oT&&(Kae=!0),Lt!==null&&(Lt=Lt.next={lane:0,tag:be.tag,payload:be.payload,callback:null,next:null});e:{var xr=m,Hr=be;xt=v;var nn=E;switch(Hr.tag){case 1:if(xr=Hr.payload,typeof xr=="function"){Bt=xr.call(nn,Bt,xt);break e}Bt=xr;break e;case 3:xr.flags=xr.flags&-65537|128;case 0:if(xr=Hr.payload,xt=typeof xr=="function"?xr.call(nn,Bt,xt):xr,xt==null)break e;Bt=f({},Bt,xt);break e;case 2:v0=!0}}xt=be.callback,xt!==null&&(m.flags|=64,Ct&&(m.flags|=8192),Ct=q.callbacks,Ct===null?q.callbacks=[xt]:Ct.push(xt))}else Ct={lane:xt,tag:be.tag,payload:be.payload,callback:be.callback,next:null},Lt===null?(vt=Lt=Ct,Ke=Bt):Lt=Lt.next=Ct,ie|=xt;if(be=be.next,be===null){if(be=q.shared.pending,be===null)break;Ct=be,be=Ct.next,Ct.next=null,q.lastBaseUpdate=Ct,q.shared.pending=null}}while(!0);Lt===null&&(Ke=Bt),q.baseState=Ke,q.firstBaseUpdate=vt,q.lastBaseUpdate=Lt,Y===null&&(q.shared.lanes=0),E0|=ie,m.lanes=ie,m.memoizedState=Bt}}function drt(m,v){if(typeof m!="function")throw Error(n(191,m));m.call(v)}function frt(m,v){var E=m.callbacks;if(E!==null)for(m.callbacks=null,m=0;m<E.length;m++)drt(E[m],v)}var hT=W(null),bM=W(0);function prt(m,v){m=ip,K(bM,m),K(hT,v),ip=m|v.baseLanes}function Qae(){K(bM,ip),K(hT,hT.current)}function Zae(){ip=bM.current,G(hT),G(bM)}var Pl=W(null),Tc=null;function b0(m){var v=m.alternate;K(ua,ua.current&1),K(Pl,m),Tc===null&&(v===null||hT.current!==null||v.memoizedState!==null)&&(Tc=m)}function Jae(m){K(ua,ua.current),K(Pl,m),Tc===null&&(Tc=m)}function grt(m){m.tag===22?(K(ua,ua.current),K(Pl,m),Tc===null&&(Tc=m)):x0(m)}function x0(){K(ua,ua.current),K(Pl,Pl.current)}function Bl(m){G(Pl),Tc===m&&(Tc=null),G(ua)}var ua=W(0);function xM(m){for(var v=m;v!==null;){if(v.tag===13){var E=v.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||noe(E)||aoe(E)))return v}else if(v.tag===19&&(v.memoizedProps.revealOrder==="forwards"||v.memoizedProps.revealOrder==="backwards"||v.memoizedProps.revealOrder==="unstable_legacy-backwards"||v.memoizedProps.revealOrder==="together")){if((v.flags&128)!==0)return v}else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return null;v=v.return}v.sibling.return=v.return,v=v.sibling}return null}var Xf=0,Jr=null,tn=null,Ra=null,TM=!1,dT=!1,Yy=!1,wM=0,z5=0,fT=null,Dqt=0;function Zn(){throw Error(n(321))}function ese(m,v){if(v===null)return!1;for(var E=0;E<v.length&&E<m.length;E++)if(!Ml(m[E],v[E]))return!1;return!0}function tse(m,v,E,N,q,Y){return Xf=Y,Jr=v,v.memoizedState=null,v.updateQueue=null,v.lanes=0,D.H=m===null||m.memoizedState===null?Zrt:mse,Yy=!1,Y=E(N,q),Yy=!1,dT&&(Y=yrt(v,E,N,q)),mrt(m),Y}function mrt(m){D.H=V5;var v=tn!==null&&tn.next!==null;if(Xf=0,Ra=tn=Jr=null,TM=!1,z5=0,fT=null,v)throw Error(n(300));m===null||Na||(m=m.dependencies,m!==null&&dM(m)&&(Na=!0))}function yrt(m,v,E,N){Jr=m;var q=0;do{if(dT&&(fT=null),z5=0,dT=!1,25<=q)throw Error(n(301));if(q+=1,Ra=tn=null,m.updateQueue!=null){var Y=m.updateQueue;Y.lastEffect=null,Y.events=null,Y.stores=null,Y.memoCache!=null&&(Y.memoCache.index=0)}D.H=Jrt,Y=v(E,N)}while(dT);return Y}function Iqt(){var m=D.H,v=m.useState()[0];return v=typeof v.then=="function"?U5(v):v,m=m.useState()[0],(tn!==null?tn.memoizedState:null)!==m&&(Jr.flags|=1024),v}function rse(){var m=wM!==0;return wM=0,m}function ise(m,v,E){v.updateQueue=m.updateQueue,v.flags&=-2053,m.lanes&=~E}function nse(m){if(TM){for(m=m.memoizedState;m!==null;){var v=m.queue;v!==null&&(v.pending=null),m=m.next}TM=!1}Xf=0,Ra=tn=Jr=null,dT=!1,z5=wM=0,fT=null}function Do(){var m={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ra===null?Jr.memoizedState=Ra=m:Ra=Ra.next=m,Ra}function ha(){if(tn===null){var m=Jr.alternate;m=m!==null?m.memoizedState:null}else m=tn.next;var v=Ra===null?Jr.memoizedState:Ra.next;if(v!==null)Ra=v,tn=m;else{if(m===null)throw Jr.alternate===null?Error(n(467)):Error(n(310));tn=m,m={memoizedState:tn.memoizedState,baseState:tn.baseState,baseQueue:tn.baseQueue,queue:tn.queue,next:null},Ra===null?Jr.memoizedState=Ra=m:Ra=Ra.next=m}return Ra}function EM(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function U5(m){var v=z5;return z5+=1,fT===null&&(fT=[]),m=ort(fT,m,v),v=Jr,(Ra===null?v.memoizedState:Ra.next)===null&&(v=v.alternate,D.H=v===null||v.memoizedState===null?Zrt:mse),m}function kM(m){if(m!==null&&typeof m=="object"){if(typeof m.then=="function")return U5(m);if(m.$$typeof===C)return Ss(m)}throw Error(n(438,String(m)))}function ase(m){var v=null,E=Jr.updateQueue;if(E!==null&&(v=E.memoCache),v==null){var N=Jr.alternate;N!==null&&(N=N.updateQueue,N!==null&&(N=N.memoCache,N!=null&&(v={data:N.data.map(function(q){return q.slice()}),index:0})))}if(v??={data:[],index:0},E===null&&(E=EM(),Jr.updateQueue=E),E.memoCache=v,E=v.data[v.index],E===void 0)for(E=v.data[v.index]=Array(m),N=0;N<m;N++)E[N]=M;return v.index++,E}function Kf(m,v){return typeof v=="function"?v(m):v}function CM(m){return sse(ha(),tn,m)}function sse(m,v,E){var N=m.queue;if(N===null)throw Error(n(311));N.lastRenderedReducer=E;var q=m.baseQueue,Y=N.pending;if(Y!==null){if(q!==null){var ie=q.next;q.next=Y.next,Y.next=ie}v.baseQueue=q=Y,N.pending=null}if(Y=m.baseState,q===null)m.memoizedState=Y;else{v=q.next;var be=ie=null,Ke=null,vt=v,Lt=!1;do{var Bt=vt.lane&-536870913;if(Bt!==vt.lane?(mi&Bt)===Bt:(Xf&Bt)===Bt){var xt=vt.revertLane;if(xt===0)Ke!==null&&(Ke=Ke.next={lane:0,revertLane:0,gesture:null,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null}),Bt===oT&&(Lt=!0);else if((Xf&xt)===xt){vt=vt.next,xt===oT&&(Lt=!0);continue}else Bt={lane:0,revertLane:vt.revertLane,gesture:null,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null},Ke===null?(be=Ke=Bt,ie=Y):Ke=Ke.next=Bt,Jr.lanes|=xt,E0|=xt;Bt=vt.action,Yy&&E(Y,Bt),Y=vt.hasEagerState?vt.eagerState:E(Y,Bt)}else xt={lane:Bt,revertLane:vt.revertLane,gesture:vt.gesture,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null},Ke===null?(be=Ke=xt,ie=Y):Ke=Ke.next=xt,Jr.lanes|=Bt,E0|=Bt;vt=vt.next}while(vt!==null&&vt!==v);if(Ke===null?ie=Y:Ke.next=be,!Ml(Y,m.memoizedState)&&(Na=!0,Lt&&(E=lT,E!==null)))throw E;m.memoizedState=Y,m.baseState=ie,m.baseQueue=Ke,N.lastRenderedState=Y}return q===null&&(N.lanes=0),[m.memoizedState,N.dispatch]}function ose(m){var v=ha(),E=v.queue;if(E===null)throw Error(n(311));E.lastRenderedReducer=m;var N=E.dispatch,q=E.pending,Y=v.memoizedState;if(q!==null){E.pending=null;var ie=q=q.next;do Y=m(Y,ie.action),ie=ie.next;while(ie!==q);Ml(Y,v.memoizedState)||(Na=!0),v.memoizedState=Y,v.baseQueue===null&&(v.baseState=Y),E.lastRenderedState=Y}return[Y,N]}function vrt(m,v,E){var N=Jr,q=ha(),Y=Ti;if(Y){if(E===void 0)throw Error(n(407));E=E()}else E=v();var ie=!Ml((tn||q).memoizedState,E);if(ie&&(q.memoizedState=E,Na=!0),q=q.queue,use(Trt.bind(null,N,q,m),[m]),q.getSnapshot!==v||ie||Ra!==null&&Ra.memoizedState.tag&1){if(N.flags|=2048,pT(9,{destroy:void 0},xrt.bind(null,N,q,E,v),null),fn===null)throw Error(n(349));Y||(Xf&127)!==0||brt(N,v,E)}return E}function brt(m,v,E){m.flags|=16384,m={getSnapshot:v,value:E},v=Jr.updateQueue,v===null?(v=EM(),Jr.updateQueue=v,v.stores=[m]):(E=v.stores,E===null?v.stores=[m]:E.push(m))}function xrt(m,v,E,N){v.value=E,v.getSnapshot=N,wrt(v)&&Ert(m)}function Trt(m,v,E){return E(function(){wrt(v)&&Ert(m)})}function wrt(m){var v=m.getSnapshot;m=m.value;try{var E=v();return!Ml(m,E)}catch{return!0}}function Ert(m){var v=Py(m,2);v!==null&&cl(v,m,2)}function lse(m){var v=Do();if(typeof m=="function"){var E=m;if(m=E(),Yy){Ae(!0);try{E()}finally{Ae(!1)}}}return v.memoizedState=v.baseState=m,v.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kf,lastRenderedState:m},v}function krt(m,v,E,N){return m.baseState=E,sse(m,tn,typeof N=="function"?N:Kf)}function Mqt(m,v,E,N,q){if(AM(m))throw Error(n(485));if(m=v.action,m!==null){var Y={payload:q,action:m,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(ie){Y.listeners.push(ie)}};D.T!==null?E(!0):Y.isTransition=!1,N(Y),E=v.pending,E===null?(Y.next=v.pending=Y,Crt(v,Y)):(Y.next=E.next,v.pending=E.next=Y)}}function Crt(m,v){var E=v.action,N=v.payload,q=m.state;if(v.isTransition){var Y=D.T,ie={};D.T=ie;try{var be=E(q,N),Ke=D.S;Ke!==null&&Ke(ie,be),Srt(m,v,be)}catch(vt){cse(m,v,vt)}finally{Y!==null&&ie.types!==null&&(Y.types=ie.types),D.T=Y}}else try{Y=E(q,N),Srt(m,v,Y)}catch(vt){cse(m,v,vt)}}function Srt(m,v,E){E!==null&&typeof E=="object"&&typeof E.then=="function"?E.then(function(N){_rt(m,v,N)},function(N){return cse(m,v,N)}):_rt(m,v,E)}function _rt(m,v,E){v.status="fulfilled",v.value=E,Art(v),m.state=E,v=m.pending,v!==null&&(E=v.next,E===v?m.pending=null:(E=E.next,v.next=E,Crt(m,E)))}function cse(m,v,E){var N=m.pending;if(m.pending=null,N!==null){N=N.next;do v.status="rejected",v.reason=E,Art(v),v=v.next;while(v!==N)}m.action=null}function Art(m){m=m.listeners;for(var v=0;v<m.length;v++)(0,m[v])()}function Lrt(m,v){return v}function Rrt(m,v){if(Ti){var E=fn.formState;if(E!==null){e:{var N=Jr;if(Ti){if(_n){t:{for(var q=_n,Y=xc;q.nodeType!==8;){if(!Y){q=null;break t}if(q=Ec(q.nextSibling),q===null){q=null;break t}}Y=q.data,q=Y==="F!"||Y==="F"?q:null}if(q){_n=Ec(q.nextSibling),N=q.data==="F!";break e}}m0(N)}N=!1}N&&(v=E[0])}}return E=Do(),E.memoizedState=E.baseState=v,N={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lrt,lastRenderedState:v},E.queue=N,E=Xrt.bind(null,Jr,N),N.dispatch=E,N=lse(!1),Y=gse.bind(null,Jr,!1,N.queue),N=Do(),q={state:v,dispatch:null,action:m,pending:null},N.queue=q,E=Mqt.bind(null,Jr,q,Y,E),q.dispatch=E,N.memoizedState=m,[v,E,!1]}function Nrt(m){return Drt(ha(),tn,m)}function Drt(m,v,E){if(v=sse(m,v,Lrt)[0],m=CM(Kf)[0],typeof v=="object"&&v!==null&&typeof v.then=="function")try{var N=U5(v)}catch(ie){throw ie===cT?gM:ie}else N=v;v=ha();var q=v.queue,Y=q.dispatch;return E!==v.memoizedState&&(Jr.flags|=2048,pT(9,{destroy:void 0},Oqt.bind(null,q,E),null)),[N,Y,m]}function Oqt(m,v){m.action=v}function Irt(m){var v=ha(),E=tn;if(E!==null)return Drt(v,E,m);ha(),v=v.memoizedState,E=ha();var N=E.queue.dispatch;return E.memoizedState=m,[v,N,!1]}function pT(m,v,E,N){return m={tag:m,create:E,deps:N,inst:v,next:null},v=Jr.updateQueue,v===null&&(v=EM(),Jr.updateQueue=v),E=v.lastEffect,E===null?v.lastEffect=m.next=m:(N=E.next,E.next=m,m.next=N,v.lastEffect=m),m}function Mrt(){return ha().memoizedState}function SM(m,v,E,N){var q=Do();Jr.flags|=m,q.memoizedState=pT(1|v,{destroy:void 0},E,N===void 0?null:N)}function _M(m,v,E,N){var q=ha();N=N===void 0?null:N;var Y=q.memoizedState.inst;tn!==null&&N!==null&&ese(N,tn.memoizedState.deps)?q.memoizedState=pT(v,Y,E,N):(Jr.flags|=m,q.memoizedState=pT(1|v,Y,E,N))}function Ort(m,v){SM(8390656,8,m,v)}function use(m,v){_M(2048,8,m,v)}function Pqt(m){Jr.flags|=4;var v=Jr.updateQueue;if(v===null)v=EM(),Jr.updateQueue=v,v.events=[m];else{var E=v.events;E===null?v.events=[m]:E.push(m)}}function Prt(m){var v=ha().memoizedState;return Pqt({ref:v,nextImpl:m}),function(){if((qi&2)!==0)throw Error(n(440));return v.impl.apply(void 0,arguments)}}function Brt(m,v){return _M(4,2,m,v)}function Frt(m,v){return _M(4,4,m,v)}function $rt(m,v){if(typeof v=="function"){m=m();var E=v(m);return function(){typeof E=="function"?E():v(null)}}if(v!=null)return m=m(),v.current=m,function(){v.current=null}}function zrt(m,v,E){E=E!=null?E.concat([m]):null,_M(4,4,$rt.bind(null,v,m),E)}function hse(){}function Urt(m,v){var E=ha();v=v===void 0?null:v;var N=E.memoizedState;return v!==null&&ese(v,N[1])?N[0]:(E.memoizedState=[m,v],m)}function Hrt(m,v){var E=ha();v=v===void 0?null:v;var N=E.memoizedState;if(v!==null&&ese(v,N[1]))return N[0];if(N=m(),Yy){Ae(!0);try{m()}finally{Ae(!1)}}return E.memoizedState=[N,v],N}function dse(m,v,E){return E===void 0||(Xf&1073741824)!==0&&(mi&261930)===0?m.memoizedState=v:(m.memoizedState=E,m=zit(),Jr.lanes|=m,E0|=m,E)}function Vrt(m,v,E,N){return Ml(E,v)?E:hT.current!==null?(m=dse(m,E,N),Ml(m,v)||(Na=!0),m):(Xf&42)===0||(Xf&1073741824)!==0&&(mi&261930)===0?(Na=!0,m.memoizedState=E):(m=zit(),Jr.lanes|=m,E0|=m,v)}function qrt(m,v,E,N,q){var Y=$.p;$.p=Y!==0&&8>Y?Y:8;var ie=D.T,be={};D.T=be,gse(m,!1,v,E);try{var Ke=q(),vt=D.S;vt!==null&&vt(be,Ke),Ke!==null&&typeof Ke=="object"&&typeof Ke.then=="function"?H5(m,v,Nqt(Ke,N),wc(m)):H5(m,v,N,wc(m))}catch(Lt){H5(m,v,{then:function(){},status:"rejected",reason:Lt},wc())}finally{$.p=Y,ie!==null&&be.types!==null&&(ie.types=be.types),D.T=ie}}function Bqt(){}function fse(m,v,E,N){if(m.tag!==5)throw Error(n(476));var q=Grt(m).queue;qrt(m,q,v,H,E===null?Bqt:function(){return Wrt(m),E(N)})}function Grt(m){var v=m.memoizedState;if(v!==null)return v;v={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kf,lastRenderedState:H},next:null};var E={};return v.next={memoizedState:E,baseState:E,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kf,lastRenderedState:E},next:null},m.memoizedState=v,m=m.alternate,m!==null&&(m.memoizedState=v),v}function Wrt(m){var v=Grt(m);v.next===null&&(v=m.alternate.memoizedState),H5(m,v.next.queue,{},wc())}function pse(){return Ss(a3)}function Yrt(){return ha().memoizedState}function jrt(){return ha().memoizedState}function Fqt(m){for(var v=m.return;v!==null;){switch(v.tag){case 24:case 3:var E=wc();m=Gy(E);var N=Wy(v,m,E);N!==null&&(cl(N,v,E),B5(N,v,E)),v={cache:Vae()},m.payload=v;return}v=v.return}}function $qt(m,v,E){var N=wc();E={lane:N,revertLane:0,gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null},AM(m)?Krt(v,E):(E=Dae(m,v,E,N),E!==null&&(cl(E,m,N),Qrt(E,v,N)))}function Xrt(m,v,E){H5(m,v,E,wc())}function H5(m,v,E,N){var q={lane:N,revertLane:0,gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null};if(AM(m))Krt(v,q);else{var Y=m.alternate;if(m.lanes===0&&(Y===null||Y.lanes===0)&&(Y=v.lastRenderedReducer,Y!==null))try{var ie=v.lastRenderedState,be=Y(ie,E);if(q.hasEagerState=!0,q.eagerState=be,Ml(be,ie))return lM(m,v,q,0),fn===null&&oM(),!1}catch{}if(E=Dae(m,v,q,N),E!==null)return cl(E,m,N),Qrt(E,v,N),!0}return!1}function gse(m,v,E,N){if(N={lane:2,revertLane:Yse(),gesture:null,action:N,hasEagerState:!1,eagerState:null,next:null},AM(m)){if(v)throw Error(n(479))}else v=Dae(m,E,N,2),v!==null&&cl(v,m,2)}function AM(m){var v=m.alternate;return m===Jr||v!==null&&v===Jr}function Krt(m,v){dT=TM=!0;var E=m.pending;E===null?v.next=v:(v.next=E.next,E.next=v),m.pending=v}function Qrt(m,v,E){if((E&4194048)!==0){var N=v.lanes;N&=m.pendingLanes,E|=N,v.lanes=E,bt(m,E)}}var V5={readContext:Ss,use:kM,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useLayoutEffect:Zn,useInsertionEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useSyncExternalStore:Zn,useId:Zn,useHostTransitionStatus:Zn,useFormState:Zn,useActionState:Zn,useOptimistic:Zn,useMemoCache:Zn,useCacheRefresh:Zn};V5.useEffectEvent=Zn;var Zrt={readContext:Ss,use:kM,useCallback:function(m,v){return Do().memoizedState=[m,v===void 0?null:v],m},useContext:Ss,useEffect:Ort,useImperativeHandle:function(m,v,E){E=E!=null?E.concat([m]):null,SM(4194308,4,$rt.bind(null,v,m),E)},useLayoutEffect:function(m,v){return SM(4194308,4,m,v)},useInsertionEffect:function(m,v){SM(4,2,m,v)},useMemo:function(m,v){var E=Do();v=v===void 0?null:v;var N=m();if(Yy){Ae(!0);try{m()}finally{Ae(!1)}}return E.memoizedState=[N,v],N},useReducer:function(m,v,E){var N=Do();if(E!==void 0){var q=E(v);if(Yy){Ae(!0);try{E(v)}finally{Ae(!1)}}}else q=v;return N.memoizedState=N.baseState=q,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:q},N.queue=m,m=m.dispatch=$qt.bind(null,Jr,m),[N.memoizedState,m]},useRef:function(m){var v=Do();return m={current:m},v.memoizedState=m},useState:function(m){m=lse(m);var v=m.queue,E=Xrt.bind(null,Jr,v);return v.dispatch=E,[m.memoizedState,E]},useDebugValue:hse,useDeferredValue:function(m,v){return dse(Do(),m,v)},useTransition:function(){var m=lse(!1);return m=qrt.bind(null,Jr,m.queue,!0,!1),Do().memoizedState=m,[!1,m]},useSyncExternalStore:function(m,v,E){var N=Jr,q=Do();if(Ti){if(E===void 0)throw Error(n(407));E=E()}else{if(E=v(),fn===null)throw Error(n(349));(mi&127)!==0||brt(N,v,E)}q.memoizedState=E;var Y={value:E,getSnapshot:v};return q.queue=Y,Ort(Trt.bind(null,N,Y,m),[m]),N.flags|=2048,pT(9,{destroy:void 0},xrt.bind(null,N,Y,E,v),null),E},useId:function(){var m=Do(),v=fn.identifierPrefix;if(Ti){var E=hd,N=ud;E=(N&~(1<<32-Ie(N)-1)).toString(32)+E,v="_"+v+"R_"+E,E=wM++,0<E&&(v+="H"+E.toString(32)),v+="_"}else E=Dqt++,v="_"+v+"r_"+E.toString(32)+"_";return m.memoizedState=v},useHostTransitionStatus:pse,useFormState:Rrt,useActionState:Rrt,useOptimistic:function(m){var v=Do();v.memoizedState=v.baseState=m;var E={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return v.queue=E,v=gse.bind(null,Jr,!0,E),E.dispatch=v,[m,v]},useMemoCache:ase,useCacheRefresh:function(){return Do().memoizedState=Fqt.bind(null,Jr)},useEffectEvent:function(m){var v=Do(),E={impl:m};return v.memoizedState=E,function(){if((qi&2)!==0)throw Error(n(440));return E.impl.apply(void 0,arguments)}}},mse={readContext:Ss,use:kM,useCallback:Urt,useContext:Ss,useEffect:use,useImperativeHandle:zrt,useInsertionEffect:Brt,useLayoutEffect:Frt,useMemo:Hrt,useReducer:CM,useRef:Mrt,useState:function(){return CM(Kf)},useDebugValue:hse,useDeferredValue:function(m,v){return Vrt(ha(),tn.memoizedState,m,v)},useTransition:function(){var m=CM(Kf)[0],v=ha().memoizedState;return[typeof m=="boolean"?m:U5(m),v]},useSyncExternalStore:vrt,useId:Yrt,useHostTransitionStatus:pse,useFormState:Nrt,useActionState:Nrt,useOptimistic:function(m,v){return krt(ha(),tn,m,v)},useMemoCache:ase,useCacheRefresh:jrt};mse.useEffectEvent=Prt;var Jrt={readContext:Ss,use:kM,useCallback:Urt,useContext:Ss,useEffect:use,useImperativeHandle:zrt,useInsertionEffect:Brt,useLayoutEffect:Frt,useMemo:Hrt,useReducer:ose,useRef:Mrt,useState:function(){return ose(Kf)},useDebugValue:hse,useDeferredValue:function(m,v){var E=ha();return tn===null?dse(E,m,v):Vrt(E,tn.memoizedState,m,v)},useTransition:function(){var m=ose(Kf)[0],v=ha().memoizedState;return[typeof m=="boolean"?m:U5(m),v]},useSyncExternalStore:vrt,useId:Yrt,useHostTransitionStatus:pse,useFormState:Irt,useActionState:Irt,useOptimistic:function(m,v){var E=ha();return tn!==null?krt(E,tn,m,v):(E.baseState=m,[m,E.queue.dispatch])},useMemoCache:ase,useCacheRefresh:jrt};Jrt.useEffectEvent=Prt;function yse(m,v,E,N){v=m.memoizedState,E=E(N,v),E=E==null?v:f({},v,E),m.memoizedState=E,m.lanes===0&&(m.updateQueue.baseState=E)}var vse={enqueueSetState:function(m,v,E){m=m._reactInternals;var N=wc(),q=Gy(N);q.payload=v,E!=null&&(q.callback=E),v=Wy(m,q,N),v!==null&&(cl(v,m,N),B5(v,m,N))},enqueueReplaceState:function(m,v,E){m=m._reactInternals;var N=wc(),q=Gy(N);q.tag=1,q.payload=v,E!=null&&(q.callback=E),v=Wy(m,q,N),v!==null&&(cl(v,m,N),B5(v,m,N))},enqueueForceUpdate:function(m,v){m=m._reactInternals;var E=wc(),N=Gy(E);N.tag=2,v!=null&&(N.callback=v),v=Wy(m,N,E),v!==null&&(cl(v,m,E),B5(v,m,E))}};function eit(m,v,E,N,q,Y,ie){return m=m.stateNode,typeof m.shouldComponentUpdate=="function"?m.shouldComponentUpdate(N,Y,ie):v.prototype&&v.prototype.isPureReactComponent?!L5(E,N)||!L5(q,Y):!0}function tit(m,v,E,N){m=v.state,typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps(E,N),typeof v.UNSAFE_componentWillReceiveProps=="function"&&v.UNSAFE_componentWillReceiveProps(E,N),v.state!==m&&vse.enqueueReplaceState(v,v.state,null)}function jy(m,v){var E=v;if("ref"in v){E={};for(var N in v)N!=="ref"&&(E[N]=v[N])}if(m=m.defaultProps){E===v&&(E=f({},E));for(var q in m)E[q]===void 0&&(E[q]=m[q])}return E}function zqt(m){sM(m)}function Uqt(m){console.error(m)}function Hqt(m){sM(m)}function LM(m,v){try{var E=m.onUncaughtError;E(v.value,{componentStack:v.stack})}catch(N){setTimeout(function(){throw N})}}function rit(m,v,E){try{var N=m.onCaughtError;N(E.value,{componentStack:E.stack,errorBoundary:v.tag===1?v.stateNode:null})}catch(q){setTimeout(function(){throw q})}}function bse(m,v,E){return E=Gy(E),E.tag=3,E.payload={element:null},E.callback=function(){LM(m,v)},E}function iit(m){return m=Gy(m),m.tag=3,m}function nit(m,v,E,N){var q=E.type.getDerivedStateFromError;if(typeof q=="function"){var Y=N.value;m.payload=function(){return q(Y)},m.callback=function(){rit(v,E,N)}}var ie=E.stateNode;ie!==null&&typeof ie.componentDidCatch=="function"&&(m.callback=function(){rit(v,E,N),typeof q!="function"&&(k0===null?k0=new Set([this]):k0.add(this));var be=N.stack;this.componentDidCatch(N.value,{componentStack:be!==null?be:""})})}function Vqt(m,v,E,N,q){if(E.flags|=32768,N!==null&&typeof N=="object"&&typeof N.then=="function"){if(v=E.alternate,v!==null&&sT(v,E,q,!0),E=Pl.current,E!==null){switch(E.tag){case 31:case 13:return Tc===null?UM():E.alternate===null&&Jn===0&&(Jn=3),E.flags&=-257,E.flags|=65536,E.lanes=q,N===mM?E.flags|=16384:(v=E.updateQueue,v===null?E.updateQueue=new Set([N]):v.add(N),qse(m,N,q)),!1;case 22:return E.flags|=65536,N===mM?E.flags|=16384:(v=E.updateQueue,v===null?(v={transitions:null,markerInstances:null,retryQueue:new Set([N])},E.updateQueue=v):(E=v.retryQueue,E===null?v.retryQueue=new Set([N]):E.add(N)),qse(m,N,q)),!1}throw Error(n(435,E.tag))}return qse(m,N,q),UM(),!1}if(Ti)return v=Pl.current,v!==null?((v.flags&65536)===0&&(v.flags|=256),v.flags|=65536,v.lanes=q,N!==Fae&&(m=Error(n(422),{cause:N}),D5(yc(m,E)))):(N!==Fae&&(v=Error(n(423),{cause:N}),D5(yc(v,E))),m=m.current.alternate,m.flags|=65536,q&=-q,m.lanes|=q,N=yc(N,E),q=bse(m.stateNode,N,q),Xae(m,q),Jn!==4&&(Jn=2)),!1;var Y=Error(n(520),{cause:N});if(Y=yc(Y,E),Q5===null?Q5=[Y]:Q5.push(Y),Jn!==4&&(Jn=2),v===null)return!0;N=yc(N,E),E=v;do{switch(E.tag){case 3:return E.flags|=65536,m=q&-q,E.lanes|=m,m=bse(E.stateNode,N,m),Xae(E,m),!1;case 1:if(v=E.type,Y=E.stateNode,(E.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||Y!==null&&typeof Y.componentDidCatch=="function"&&(k0===null||!k0.has(Y))))return E.flags|=65536,q&=-q,E.lanes|=q,q=iit(q),nit(q,m,E,N),Xae(E,q),!1}E=E.return}while(E!==null);return!1}var xse=Error(n(461)),Na=!1;function _s(m,v,E,N){v.child=m===null?hrt(v,null,E,N):qy(v,m.child,E,N)}function ait(m,v,E,N,q){E=E.render;var Y=v.ref;if("ref"in N){var ie={};for(var be in N)be!=="ref"&&(ie[be]=N[be])}else ie=N;return zy(v),N=tse(m,v,E,ie,Y,q),be=rse(),m!==null&&!Na?(ise(m,v,q),Qf(m,v,q)):(Ti&&be&&Pae(v),v.flags|=1,_s(m,v,N,q),v.child)}function sit(m,v,E,N,q){if(m===null){var Y=E.type;return typeof Y=="function"&&!Iae(Y)&&Y.defaultProps===void 0&&E.compare===null?(v.tag=15,v.type=Y,oit(m,v,Y,N,q)):(m=uM(E.type,null,N,v,v.mode,q),m.ref=v.ref,m.return=v,v.child=m)}if(Y=m.child,!Ase(m,q)){var ie=Y.memoizedProps;if(E=E.compare,E=E!==null?E:L5,E(ie,N)&&m.ref===v.ref)return Qf(m,v,q)}return v.flags|=1,m=Gf(Y,N),m.ref=v.ref,m.return=v,v.child=m}function oit(m,v,E,N,q){if(m!==null){var Y=m.memoizedProps;if(L5(Y,N)&&m.ref===v.ref)if(Na=!1,v.pendingProps=N=Y,Ase(m,q))(m.flags&131072)!==0&&(Na=!0);else return v.lanes=m.lanes,Qf(m,v,q)}return Tse(m,v,E,N,q)}function lit(m,v,E,N){var q=N.children,Y=m!==null?m.memoizedState:null;if(m===null&&v.stateNode===null&&(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),N.mode==="hidden"){if((v.flags&128)!==0){if(Y=Y!==null?Y.baseLanes|E:E,m!==null){for(N=v.child=m.child,q=0;N!==null;)q=q|N.lanes|N.childLanes,N=N.sibling;N=q&~Y}else N=0,v.child=null;return cit(m,v,Y,E,N)}if((E&536870912)!==0)v.memoizedState={baseLanes:0,cachePool:null},m!==null&&pM(v,Y!==null?Y.cachePool:null),Y!==null?prt(v,Y):Qae(),grt(v);else return N=v.lanes=536870912,cit(m,v,Y!==null?Y.baseLanes|E:E,E,N)}else Y!==null?(pM(v,Y.cachePool),prt(v,Y),x0(v),v.memoizedState=null):(m!==null&&pM(v,null),Qae(),x0(v));return _s(m,v,q,E),v.child}function q5(m,v){return m!==null&&m.tag===22||v.stateNode!==null||(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.sibling}function cit(m,v,E,N,q){var Y=Gae();return Y=Y===null?null:{parent:La._currentValue,pool:Y},v.memoizedState={baseLanes:E,cachePool:Y},m!==null&&pM(v,null),Qae(),grt(v),m!==null&&sT(m,v,N,!0),v.childLanes=q,null}function RM(m,v){return v=DM({mode:v.mode,children:v.children},m.mode),v.ref=m.ref,m.child=v,v.return=m,v}function uit(m,v,E){return qy(v,m.child,null,E),m=RM(v,v.pendingProps),m.flags|=2,Bl(v),v.memoizedState=null,m}function qqt(m,v,E){var N=v.pendingProps,q=(v.flags&128)!==0;if(v.flags&=-129,m===null){if(Ti){if(N.mode==="hidden")return m=RM(v,N),v.lanes=536870912,q5(null,m);if(Jae(v),(m=_n)?(m=Ent(m,xc),m=m!==null&&m.data==="&"?m:null,m!==null&&(v.memoizedState={dehydrated:m,treeContext:p0!==null?{id:ud,overflow:hd}:null,retryLane:536870912,hydrationErrors:null},E=Ktt(m),E.return=v,v.child=E,Cs=v,_n=null)):m=null,m===null)throw m0(v);return v.lanes=536870912,null}return RM(v,N)}var Y=m.memoizedState;if(Y!==null){var ie=Y.dehydrated;if(Jae(v),q)if(v.flags&256)v.flags&=-257,v=uit(m,v,E);else if(v.memoizedState!==null)v.child=m.child,v.flags|=128,v=null;else throw Error(n(558));else if(Na||sT(m,v,E,!1),q=(E&m.childLanes)!==0,Na||q){if(N=fn,N!==null&&(ie=me(N,E),ie!==0&&ie!==Y.retryLane))throw Y.retryLane=ie,Py(m,ie),cl(N,m,ie),xse;UM(),v=uit(m,v,E)}else m=Y.treeContext,_n=Ec(ie.nextSibling),Cs=v,Ti=!0,g0=null,xc=!1,m!==null&&Jtt(v,m),v=RM(v,N),v.flags|=4096;return v}return m=Gf(m.child,{mode:N.mode,children:N.children}),m.ref=v.ref,v.child=m,m.return=v,m}function NM(m,v){var E=v.ref;if(E===null)m!==null&&m.ref!==null&&(v.flags|=4194816);else{if(typeof E!="function"&&typeof E!="object")throw Error(n(284));(m===null||m.ref!==E)&&(v.flags|=4194816)}}function Tse(m,v,E,N,q){return zy(v),E=tse(m,v,E,N,void 0,q),N=rse(),m!==null&&!Na?(ise(m,v,q),Qf(m,v,q)):(Ti&&N&&Pae(v),v.flags|=1,_s(m,v,E,q),v.child)}function hit(m,v,E,N,q,Y){return zy(v),v.updateQueue=null,E=yrt(v,N,E,q),mrt(m),N=rse(),m!==null&&!Na?(ise(m,v,Y),Qf(m,v,Y)):(Ti&&N&&Pae(v),v.flags|=1,_s(m,v,E,Y),v.child)}function dit(m,v,E,N,q){if(zy(v),v.stateNode===null){var Y=rT,ie=E.contextType;typeof ie=="object"&&ie!==null&&(Y=Ss(ie)),Y=new E(N,Y),v.memoizedState=Y.state!==null&&Y.state!==void 0?Y.state:null,Y.updater=vse,v.stateNode=Y,Y._reactInternals=v,Y=v.stateNode,Y.props=N,Y.state=v.memoizedState,Y.refs={},Yae(v),ie=E.contextType,Y.context=typeof ie=="object"&&ie!==null?Ss(ie):rT,Y.state=v.memoizedState,ie=E.getDerivedStateFromProps,typeof ie=="function"&&(yse(v,E,ie,N),Y.state=v.memoizedState),typeof E.getDerivedStateFromProps=="function"||typeof Y.getSnapshotBeforeUpdate=="function"||typeof Y.UNSAFE_componentWillMount!="function"&&typeof Y.componentWillMount!="function"||(ie=Y.state,typeof Y.componentWillMount=="function"&&Y.componentWillMount(),typeof Y.UNSAFE_componentWillMount=="function"&&Y.UNSAFE_componentWillMount(),ie!==Y.state&&vse.enqueueReplaceState(Y,Y.state,null),$5(v,N,Y,q),F5(),Y.state=v.memoizedState),typeof Y.componentDidMount=="function"&&(v.flags|=4194308),N=!0}else if(m===null){Y=v.stateNode;var be=v.memoizedProps,Ke=jy(E,be);Y.props=Ke;var vt=Y.context,Lt=E.contextType;ie=rT,typeof Lt=="object"&&Lt!==null&&(ie=Ss(Lt));var Bt=E.getDerivedStateFromProps;Lt=typeof Bt=="function"||typeof Y.getSnapshotBeforeUpdate=="function",be=v.pendingProps!==be,Lt||typeof Y.UNSAFE_componentWillReceiveProps!="function"&&typeof Y.componentWillReceiveProps!="function"||(be||vt!==ie)&&tit(v,Y,N,ie),v0=!1;var xt=v.memoizedState;Y.state=xt,$5(v,N,Y,q),F5(),vt=v.memoizedState,be||xt!==vt||v0?(typeof Bt=="function"&&(yse(v,E,Bt,N),vt=v.memoizedState),(Ke=v0||eit(v,E,Ke,N,xt,vt,ie))?(Lt||typeof Y.UNSAFE_componentWillMount!="function"&&typeof Y.componentWillMount!="function"||(typeof Y.componentWillMount=="function"&&Y.componentWillMount(),typeof Y.UNSAFE_componentWillMount=="function"&&Y.UNSAFE_componentWillMount()),typeof Y.componentDidMount=="function"&&(v.flags|=4194308)):(typeof Y.componentDidMount=="function"&&(v.flags|=4194308),v.memoizedProps=N,v.memoizedState=vt),Y.props=N,Y.state=vt,Y.context=ie,N=Ke):(typeof Y.componentDidMount=="function"&&(v.flags|=4194308),N=!1)}else{Y=v.stateNode,jae(m,v),ie=v.memoizedProps,Lt=jy(E,ie),Y.props=Lt,Bt=v.pendingProps,xt=Y.context,vt=E.contextType,Ke=rT,typeof vt=="object"&&vt!==null&&(Ke=Ss(vt)),be=E.getDerivedStateFromProps,(vt=typeof be=="function"||typeof Y.getSnapshotBeforeUpdate=="function")||typeof Y.UNSAFE_componentWillReceiveProps!="function"&&typeof Y.componentWillReceiveProps!="function"||(ie!==Bt||xt!==Ke)&&tit(v,Y,N,Ke),v0=!1,xt=v.memoizedState,Y.state=xt,$5(v,N,Y,q),F5();var Ct=v.memoizedState;ie!==Bt||xt!==Ct||v0||m!==null&&m.dependencies!==null&&dM(m.dependencies)?(typeof be=="function"&&(yse(v,E,be,N),Ct=v.memoizedState),(Lt=v0||eit(v,E,Lt,N,xt,Ct,Ke)||m!==null&&m.dependencies!==null&&dM(m.dependencies))?(vt||typeof Y.UNSAFE_componentWillUpdate!="function"&&typeof Y.componentWillUpdate!="function"||(typeof Y.componentWillUpdate=="function"&&Y.componentWillUpdate(N,Ct,Ke),typeof Y.UNSAFE_componentWillUpdate=="function"&&Y.UNSAFE_componentWillUpdate(N,Ct,Ke)),typeof Y.componentDidUpdate=="function"&&(v.flags|=4),typeof Y.getSnapshotBeforeUpdate=="function"&&(v.flags|=1024)):(typeof Y.componentDidUpdate!="function"||ie===m.memoizedProps&&xt===m.memoizedState||(v.flags|=4),typeof Y.getSnapshotBeforeUpdate!="function"||ie===m.memoizedProps&&xt===m.memoizedState||(v.flags|=1024),v.memoizedProps=N,v.memoizedState=Ct),Y.props=N,Y.state=Ct,Y.context=Ke,N=Lt):(typeof Y.componentDidUpdate!="function"||ie===m.memoizedProps&&xt===m.memoizedState||(v.flags|=4),typeof Y.getSnapshotBeforeUpdate!="function"||ie===m.memoizedProps&&xt===m.memoizedState||(v.flags|=1024),N=!1)}return Y=N,NM(m,v),N=(v.flags&128)!==0,Y||N?(Y=v.stateNode,E=N&&typeof E.getDerivedStateFromError!="function"?null:Y.render(),v.flags|=1,m!==null&&N?(v.child=qy(v,m.child,null,q),v.child=qy(v,null,E,q)):_s(m,v,E,q),v.memoizedState=Y.state,m=v.child):m=Qf(m,v,q),m}function fit(m,v,E,N){return Fy(),v.flags|=256,_s(m,v,E,N),v.child}var wse={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ese(m){return{baseLanes:m,cachePool:art()}}function kse(m,v,E){return m=m!==null?m.childLanes&~E:0,v&&(m|=$l),m}function pit(m,v,E){var N=v.pendingProps,q=!1,Y=(v.flags&128)!==0,ie;if((ie=Y)||(ie=m!==null&&m.memoizedState===null?!1:(ua.current&2)!==0),ie&&(q=!0,v.flags&=-129),ie=(v.flags&32)!==0,v.flags&=-33,m===null){if(Ti){if(q?b0(v):x0(v),(m=_n)?(m=Ent(m,xc),m=m!==null&&m.data!=="&"?m:null,m!==null&&(v.memoizedState={dehydrated:m,treeContext:p0!==null?{id:ud,overflow:hd}:null,retryLane:536870912,hydrationErrors:null},E=Ktt(m),E.return=v,v.child=E,Cs=v,_n=null)):m=null,m===null)throw m0(v);return aoe(m)?v.lanes=32:v.lanes=536870912,null}var be=N.children;return N=N.fallback,q?(x0(v),q=v.mode,be=DM({mode:"hidden",children:be},q),N=By(N,q,E,null),be.return=v,N.return=v,be.sibling=N,v.child=be,N=v.child,N.memoizedState=Ese(E),N.childLanes=kse(m,ie,E),v.memoizedState=wse,q5(null,N)):(b0(v),Cse(v,be))}var Ke=m.memoizedState;if(Ke!==null&&(be=Ke.dehydrated,be!==null)){if(Y)v.flags&256?(b0(v),v.flags&=-257,v=Sse(m,v,E)):v.memoizedState!==null?(x0(v),v.child=m.child,v.flags|=128,v=null):(x0(v),be=N.fallback,q=v.mode,N=DM({mode:"visible",children:N.children},q),be=By(be,q,E,null),be.flags|=2,N.return=v,be.return=v,N.sibling=be,v.child=N,qy(v,m.child,null,E),N=v.child,N.memoizedState=Ese(E),N.childLanes=kse(m,ie,E),v.memoizedState=wse,v=q5(null,N));else if(b0(v),aoe(be)){if(ie=be.nextSibling&&be.nextSibling.dataset,ie)var vt=ie.dgst;ie=vt,N=Error(n(419)),N.stack="",N.digest=ie,D5({value:N,source:null,stack:null}),v=Sse(m,v,E)}else if(Na||sT(m,v,E,!1),ie=(E&m.childLanes)!==0,Na||ie){if(ie=fn,ie!==null&&(N=me(ie,E),N!==0&&N!==Ke.retryLane))throw Ke.retryLane=N,Py(m,N),cl(ie,m,N),xse;noe(be)||UM(),v=Sse(m,v,E)}else noe(be)?(v.flags|=192,v.child=m.child,v=null):(m=Ke.treeContext,_n=Ec(be.nextSibling),Cs=v,Ti=!0,g0=null,xc=!1,m!==null&&Jtt(v,m),v=Cse(v,N.children),v.flags|=4096);return v}return q?(x0(v),be=N.fallback,q=v.mode,Ke=m.child,vt=Ke.sibling,N=Gf(Ke,{mode:"hidden",children:N.children}),N.subtreeFlags=Ke.subtreeFlags&65011712,vt!==null?be=Gf(vt,be):(be=By(be,q,E,null),be.flags|=2),be.return=v,N.return=v,N.sibling=be,v.child=N,q5(null,N),N=v.child,be=m.child.memoizedState,be===null?be=Ese(E):(q=be.cachePool,q!==null?(Ke=La._currentValue,q=q.parent!==Ke?{parent:Ke,pool:Ke}:q):q=art(),be={baseLanes:be.baseLanes|E,cachePool:q}),N.memoizedState=be,N.childLanes=kse(m,ie,E),v.memoizedState=wse,q5(m.child,N)):(b0(v),E=m.child,m=E.sibling,E=Gf(E,{mode:"visible",children:N.children}),E.return=v,E.sibling=null,m!==null&&(ie=v.deletions,ie===null?(v.deletions=[m],v.flags|=16):ie.push(m)),v.child=E,v.memoizedState=null,E)}function Cse(m,v){return v=DM({mode:"visible",children:v},m.mode),v.return=m,m.child=v}function DM(m,v){return m=Ol(22,m,null,v),m.lanes=0,m}function Sse(m,v,E){return qy(v,m.child,null,E),m=Cse(v,v.pendingProps.children),m.flags|=2,v.memoizedState=null,m}function git(m,v,E){m.lanes|=v;var N=m.alternate;N!==null&&(N.lanes|=v),Uae(m.return,v,E)}function _se(m,v,E,N,q,Y){var ie=m.memoizedState;ie===null?m.memoizedState={isBackwards:v,rendering:null,renderingStartTime:0,last:N,tail:E,tailMode:q,treeForkCount:Y}:(ie.isBackwards=v,ie.rendering=null,ie.renderingStartTime=0,ie.last=N,ie.tail=E,ie.tailMode=q,ie.treeForkCount=Y)}function mit(m,v,E){var N=v.pendingProps,q=N.revealOrder,Y=N.tail;N=N.children;var ie=ua.current,be=(ie&2)!==0;if(be?(ie=ie&1|2,v.flags|=128):ie&=1,K(ua,ie),_s(m,v,N,E),N=Ti?N5:0,!be&&m!==null&&(m.flags&128)!==0)e:for(m=v.child;m!==null;){if(m.tag===13)m.memoizedState!==null&&git(m,E,v);else if(m.tag===19)git(m,E,v);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===v)break e;for(;m.sibling===null;){if(m.return===null||m.return===v)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}switch(q){case"forwards":for(E=v.child,q=null;E!==null;)m=E.alternate,m!==null&&xM(m)===null&&(q=E),E=E.sibling;E=q,E===null?(q=v.child,v.child=null):(q=E.sibling,E.sibling=null),_se(v,!1,q,E,Y,N);break;case"backwards":case"unstable_legacy-backwards":for(E=null,q=v.child,v.child=null;q!==null;){if(m=q.alternate,m!==null&&xM(m)===null){v.child=q;break}m=q.sibling,q.sibling=E,E=q,q=m}_se(v,!0,E,null,Y,N);break;case"together":_se(v,!1,null,null,void 0,N);break;default:v.memoizedState=null}return v.child}function Qf(m,v,E){if(m!==null&&(v.dependencies=m.dependencies),E0|=v.lanes,(E&v.childLanes)===0)if(m!==null){if(sT(m,v,E,!1),(E&v.childLanes)===0)return null}else return null;if(m!==null&&v.child!==m.child)throw Error(n(153));if(v.child!==null){for(m=v.child,E=Gf(m,m.pendingProps),v.child=E,E.return=v;m.sibling!==null;)m=m.sibling,E=E.sibling=Gf(m,m.pendingProps),E.return=v;E.sibling=null}return v.child}function Ase(m,v){return(m.lanes&v)!==0?!0:(m=m.dependencies,!!(m!==null&&dM(m)))}function Gqt(m,v,E){switch(v.tag){case 3:J(v,v.stateNode.containerInfo),y0(v,La,m.memoizedState.cache),Fy();break;case 27:case 5:ce(v);break;case 4:J(v,v.stateNode.containerInfo);break;case 10:y0(v,v.type,v.memoizedProps.value);break;case 31:if(v.memoizedState!==null)return v.flags|=128,Jae(v),null;break;case 13:var N=v.memoizedState;if(N!==null)return N.dehydrated!==null?(b0(v),v.flags|=128,null):(E&v.child.childLanes)!==0?pit(m,v,E):(b0(v),m=Qf(m,v,E),m!==null?m.sibling:null);b0(v);break;case 19:var q=(m.flags&128)!==0;if(N=(E&v.childLanes)!==0,N||(sT(m,v,E,!1),N=(E&v.childLanes)!==0),q){if(N)return mit(m,v,E);v.flags|=128}if(q=v.memoizedState,q!==null&&(q.rendering=null,q.tail=null,q.lastEffect=null),K(ua,ua.current),N)break;return null;case 22:return v.lanes=0,lit(m,v,E,v.pendingProps);case 24:y0(v,La,m.memoizedState.cache)}return Qf(m,v,E)}function yit(m,v,E){if(m!==null)if(m.memoizedProps!==v.pendingProps)Na=!0;else{if(!Ase(m,E)&&(v.flags&128)===0)return Na=!1,Gqt(m,v,E);Na=(m.flags&131072)!==0}else Na=!1,Ti&&(v.flags&1048576)!==0&&Ztt(v,N5,v.index);switch(v.lanes=0,v.tag){case 16:e:{var N=v.pendingProps;if(m=Hy(v.elementType),v.type=m,typeof m=="function")Iae(m)?(N=jy(m,N),v.tag=1,v=dit(null,v,m,N,E)):(v.tag=0,v=Tse(null,v,m,N,E));else{if(m!=null){var q=m.$$typeof;if(q===L){v.tag=11,v=ait(null,v,m,N,E);break e}else if(q===A){v.tag=14,v=sit(null,v,m,N,E);break e}}throw v=I(m)||m,Error(n(306,v,""))}}return v;case 0:return Tse(m,v,v.type,v.pendingProps,E);case 1:return N=v.type,q=jy(N,v.pendingProps),dit(m,v,N,q,E);case 3:e:{if(J(v,v.stateNode.containerInfo),m===null)throw Error(n(387));N=v.pendingProps;var Y=v.memoizedState;q=Y.element,jae(m,v),$5(v,N,null,E);var ie=v.memoizedState;if(N=ie.cache,y0(v,La,N),N!==Y.cache&&Hae(v,[La],E,!0),F5(),N=ie.element,Y.isDehydrated)if(Y={element:N,isDehydrated:!1,cache:ie.cache},v.updateQueue.baseState=Y,v.memoizedState=Y,v.flags&256){v=fit(m,v,N,E);break e}else if(N!==q){q=yc(Error(n(424)),v),D5(q),v=fit(m,v,N,E);break e}else for(m=v.stateNode.containerInfo,m.nodeType===9?m=m.body:m=m.nodeName==="HTML"?m.ownerDocument.body:m,_n=Ec(m.firstChild),Cs=v,Ti=!0,g0=null,xc=!0,E=hrt(v,null,N,E),v.child=E;E;)E.flags=E.flags&-3|4096,E=E.sibling;else{if(Fy(),N===q){v=Qf(m,v,E);break e}_s(m,v,N,E)}v=v.child}return v;case 26:return NM(m,v),m===null?(E=Lnt(v.type,null,v.pendingProps,null))?v.memoizedState=E:Ti||(E=v.type,m=v.pendingProps,N=jM(ee.current).createElement(E),N[at]=v,N[Rt]=m,As(N,E,m),Yr(N),v.stateNode=N):v.memoizedState=Lnt(v.type,m.memoizedProps,v.pendingProps,m.memoizedState),null;case 27:return ce(v),m===null&&Ti&&(N=v.stateNode=Snt(v.type,v.pendingProps,ee.current),Cs=v,xc=!0,q=_n,A0(v.type)?(soe=q,_n=Ec(N.firstChild)):_n=q),_s(m,v,v.pendingProps.children,E),NM(m,v),m===null&&(v.flags|=4194304),v.child;case 5:return m===null&&Ti&&((q=N=_n)&&(N=bGt(N,v.type,v.pendingProps,xc),N!==null?(v.stateNode=N,Cs=v,_n=Ec(N.firstChild),xc=!1,q=!0):q=!1),q||m0(v)),ce(v),q=v.type,Y=v.pendingProps,ie=m!==null?m.memoizedProps:null,N=Y.children,toe(q,Y)?N=null:ie!==null&&toe(q,ie)&&(v.flags|=32),v.memoizedState!==null&&(q=tse(m,v,Iqt,null,null,E),a3._currentValue=q),NM(m,v),_s(m,v,N,E),v.child;case 6:return m===null&&Ti&&((m=E=_n)&&(E=xGt(E,v.pendingProps,xc),E!==null?(v.stateNode=E,Cs=v,_n=null,m=!0):m=!1),m||m0(v)),null;case 13:return pit(m,v,E);case 4:return J(v,v.stateNode.containerInfo),N=v.pendingProps,m===null?v.child=qy(v,null,N,E):_s(m,v,N,E),v.child;case 11:return ait(m,v,v.type,v.pendingProps,E);case 7:return _s(m,v,v.pendingProps,E),v.child;case 8:return _s(m,v,v.pendingProps.children,E),v.child;case 12:return _s(m,v,v.pendingProps.children,E),v.child;case 10:return N=v.pendingProps,y0(v,v.type,N.value),_s(m,v,N.children,E),v.child;case 9:return q=v.type._context,N=v.pendingProps.children,zy(v),q=Ss(q),N=N(q),v.flags|=1,_s(m,v,N,E),v.child;case 14:return sit(m,v,v.type,v.pendingProps,E);case 15:return oit(m,v,v.type,v.pendingProps,E);case 19:return mit(m,v,E);case 31:return qqt(m,v,E);case 22:return lit(m,v,E,v.pendingProps);case 24:return zy(v),N=Ss(La),m===null?(q=Gae(),q===null&&(q=fn,Y=Vae(),q.pooledCache=Y,Y.refCount++,Y!==null&&(q.pooledCacheLanes|=E),q=Y),v.memoizedState={parent:N,cache:q},Yae(v),y0(v,La,q)):((m.lanes&E)!==0&&(jae(m,v),$5(v,null,null,E),F5()),q=m.memoizedState,Y=v.memoizedState,q.parent!==N?(q={parent:N,cache:N},v.memoizedState=q,v.lanes===0&&(v.memoizedState=v.updateQueue.baseState=q),y0(v,La,N)):(N=Y.cache,y0(v,La,N),N!==q.cache&&Hae(v,[La],E,!0))),_s(m,v,v.pendingProps.children,E),v.child;case 29:throw v.pendingProps}throw Error(n(156,v.tag))}function Zf(m){m.flags|=4}function Lse(m,v,E,N,q){if((v=(m.mode&32)!==0)&&(v=!1),v){if(m.flags|=16777216,(q&335544128)===q)if(m.stateNode.complete)m.flags|=8192;else if(qit())m.flags|=8192;else throw Vy=mM,Wae}else m.flags&=-16777217}function vit(m,v){if(v.type!=="stylesheet"||(v.state.loading&4)!==0)m.flags&=-16777217;else if(m.flags|=16777216,!Mnt(v))if(qit())m.flags|=8192;else throw Vy=mM,Wae}function IM(m,v){v!==null&&(m.flags|=4),m.flags&16384&&(v=m.tag!==22?Wt():536870912,m.lanes|=v,vT|=v)}function G5(m,v){if(!Ti)switch(m.tailMode){case"hidden":v=m.tail;for(var E=null;v!==null;)v.alternate!==null&&(E=v),v=v.sibling;E===null?m.tail=null:E.sibling=null;break;case"collapsed":E=m.tail;for(var N=null;E!==null;)E.alternate!==null&&(N=E),E=E.sibling;N===null?v||m.tail===null?m.tail=null:m.tail.sibling=null:N.sibling=null}}function An(m){var v=m.alternate!==null&&m.alternate.child===m.child,E=0,N=0;if(v)for(var q=m.child;q!==null;)E|=q.lanes|q.childLanes,N|=q.subtreeFlags&65011712,N|=q.flags&65011712,q.return=m,q=q.sibling;else for(q=m.child;q!==null;)E|=q.lanes|q.childLanes,N|=q.subtreeFlags,N|=q.flags,q.return=m,q=q.sibling;return m.subtreeFlags|=N,m.childLanes=E,v}function Wqt(m,v,E){var N=v.pendingProps;switch(Bae(v),v.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return An(v),null;case 1:return An(v),null;case 3:return E=v.stateNode,N=null,m!==null&&(N=m.memoizedState.cache),v.memoizedState.cache!==N&&(v.flags|=2048),jf(La),le(),E.pendingContext&&(E.context=E.pendingContext,E.pendingContext=null),(m===null||m.child===null)&&(aT(v)?Zf(v):m===null||m.memoizedState.isDehydrated&&(v.flags&256)===0||(v.flags|=1024,$ae())),An(v),null;case 26:var q=v.type,Y=v.memoizedState;return m===null?(Zf(v),Y!==null?(An(v),vit(v,Y)):(An(v),Lse(v,q,null,N,E))):Y?Y!==m.memoizedState?(Zf(v),An(v),vit(v,Y)):(An(v),v.flags&=-16777217):(m=m.memoizedProps,m!==N&&Zf(v),An(v),Lse(v,q,m,N,E)),null;case 27:if(ue(v),E=ee.current,q=v.type,m!==null&&v.stateNode!=null)m.memoizedProps!==N&&Zf(v);else{if(!N){if(v.stateNode===null)throw Error(n(166));return An(v),null}m=Z.current,aT(v)?ert(v,m):(m=Snt(q,N,E),v.stateNode=m,Zf(v))}return An(v),null;case 5:if(ue(v),q=v.type,m!==null&&v.stateNode!=null)m.memoizedProps!==N&&Zf(v);else{if(!N){if(v.stateNode===null)throw Error(n(166));return An(v),null}if(Y=Z.current,aT(v))ert(v,Y);else{var ie=jM(ee.current);switch(Y){case 1:Y=ie.createElementNS("http://www.w3.org/2000/svg",q);break;case 2:Y=ie.createElementNS("http://www.w3.org/1998/Math/MathML",q);break;default:switch(q){case"svg":Y=ie.createElementNS("http://www.w3.org/2000/svg",q);break;case"math":Y=ie.createElementNS("http://www.w3.org/1998/Math/MathML",q);break;case"script":Y=ie.createElement("div"),Y.innerHTML="<script><\/script>",Y=Y.removeChild(Y.firstChild);break;case"select":Y=typeof N.is=="string"?ie.createElement("select",{is:N.is}):ie.createElement("select"),N.multiple?Y.multiple=!0:N.size&&(Y.size=N.size);break;default:Y=typeof N.is=="string"?ie.createElement(q,{is:N.is}):ie.createElement(q)}}Y[at]=v,Y[Rt]=N;e:for(ie=v.child;ie!==null;){if(ie.tag===5||ie.tag===6)Y.appendChild(ie.stateNode);else if(ie.tag!==4&&ie.tag!==27&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===v)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===v)break e;ie=ie.return}ie.sibling.return=ie.return,ie=ie.sibling}v.stateNode=Y;e:switch(As(Y,q,N),q){case"button":case"input":case"select":case"textarea":N=!!N.autoFocus;break e;case"img":N=!0;break e;default:N=!1}N&&Zf(v)}}return An(v),Lse(v,v.type,m===null?null:m.memoizedProps,v.pendingProps,E),null;case 6:if(m&&v.stateNode!=null)m.memoizedProps!==N&&Zf(v);else{if(typeof N!="string"&&v.stateNode===null)throw Error(n(166));if(m=ee.current,aT(v)){if(m=v.stateNode,E=v.memoizedProps,N=null,q=Cs,q!==null)switch(q.tag){case 27:case 5:N=q.memoizedProps}m[at]=v,m=!!(m.nodeValue===E||N!==null&&N.suppressHydrationWarning===!0||gnt(m.nodeValue,E)),m||m0(v,!0)}else m=jM(m).createTextNode(N),m[at]=v,v.stateNode=m}return An(v),null;case 31:if(E=v.memoizedState,m===null||m.memoizedState!==null){if(N=aT(v),E!==null){if(m===null){if(!N)throw Error(n(318));if(m=v.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(557));m[at]=v}else Fy(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;An(v),m=!1}else E=$ae(),m!==null&&m.memoizedState!==null&&(m.memoizedState.hydrationErrors=E),m=!0;if(!m)return v.flags&256?(Bl(v),v):(Bl(v),null);if((v.flags&128)!==0)throw Error(n(558))}return An(v),null;case 13:if(N=v.memoizedState,m===null||m.memoizedState!==null&&m.memoizedState.dehydrated!==null){if(q=aT(v),N!==null&&N.dehydrated!==null){if(m===null){if(!q)throw Error(n(318));if(q=v.memoizedState,q=q!==null?q.dehydrated:null,!q)throw Error(n(317));q[at]=v}else Fy(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;An(v),q=!1}else q=$ae(),m!==null&&m.memoizedState!==null&&(m.memoizedState.hydrationErrors=q),q=!0;if(!q)return v.flags&256?(Bl(v),v):(Bl(v),null)}return Bl(v),(v.flags&128)!==0?(v.lanes=E,v):(E=N!==null,m=m!==null&&m.memoizedState!==null,E&&(N=v.child,q=null,N.alternate!==null&&N.alternate.memoizedState!==null&&N.alternate.memoizedState.cachePool!==null&&(q=N.alternate.memoizedState.cachePool.pool),Y=null,N.memoizedState!==null&&N.memoizedState.cachePool!==null&&(Y=N.memoizedState.cachePool.pool),Y!==q&&(N.flags|=2048)),E!==m&&E&&(v.child.flags|=8192),IM(v,v.updateQueue),An(v),null);case 4:return le(),m===null&&hnt(v.stateNode.containerInfo),An(v),null;case 10:return jf(v.type),An(v),null;case 19:if(G(ua),N=v.memoizedState,N===null)return An(v),null;if(q=(v.flags&128)!==0,Y=N.rendering,Y===null)if(q)G5(N,!1);else{if(Jn!==0||m!==null&&(m.flags&128)!==0)for(m=v.child;m!==null;){if(Y=xM(m),Y!==null){for(v.flags|=128,G5(N,!1),m=Y.updateQueue,v.updateQueue=m,IM(v,m),v.subtreeFlags=0,m=E,E=v.child;E!==null;)Xtt(E,m),E=E.sibling;return K(ua,ua.current&1|2),Ti&&Wf(v,N.treeForkCount),v.child}m=m.sibling}N.tail!==null&&Ze()>FM&&(v.flags|=128,q=!0,G5(N,!1),v.lanes=4194304)}else{if(!q)if(m=xM(Y),m!==null){if(v.flags|=128,q=!0,m=m.updateQueue,v.updateQueue=m,IM(v,m),G5(N,!0),N.tail===null&&N.tailMode==="hidden"&&!Y.alternate&&!Ti)return An(v),null}else 2*Ze()-N.renderingStartTime>FM&&E!==536870912&&(v.flags|=128,q=!0,G5(N,!1),v.lanes=4194304);N.isBackwards?(Y.sibling=v.child,v.child=Y):(m=N.last,m!==null?m.sibling=Y:v.child=Y,N.last=Y)}return N.tail!==null?(m=N.tail,N.rendering=m,N.tail=m.sibling,N.renderingStartTime=Ze(),m.sibling=null,E=ua.current,K(ua,q?E&1|2:E&1),Ti&&Wf(v,N.treeForkCount),m):(An(v),null);case 22:case 23:return Bl(v),Zae(),N=v.memoizedState!==null,m!==null?m.memoizedState!==null!==N&&(v.flags|=8192):N&&(v.flags|=8192),N?(E&536870912)!==0&&(v.flags&128)===0&&(An(v),v.subtreeFlags&6&&(v.flags|=8192)):An(v),E=v.updateQueue,E!==null&&IM(v,E.retryQueue),E=null,m!==null&&m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),N=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(N=v.memoizedState.cachePool.pool),N!==E&&(v.flags|=2048),m!==null&&G(Uy),null;case 24:return E=null,m!==null&&(E=m.memoizedState.cache),v.memoizedState.cache!==E&&(v.flags|=2048),jf(La),An(v),null;case 25:return null;case 30:return null}throw Error(n(156,v.tag))}function Yqt(m,v){switch(Bae(v),v.tag){case 1:return m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 3:return jf(La),le(),m=v.flags,(m&65536)!==0&&(m&128)===0?(v.flags=m&-65537|128,v):null;case 26:case 27:case 5:return ue(v),null;case 31:if(v.memoizedState!==null){if(Bl(v),v.alternate===null)throw Error(n(340));Fy()}return m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 13:if(Bl(v),m=v.memoizedState,m!==null&&m.dehydrated!==null){if(v.alternate===null)throw Error(n(340));Fy()}return m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 19:return G(ua),null;case 4:return le(),null;case 10:return jf(v.type),null;case 22:case 23:return Bl(v),Zae(),m!==null&&G(Uy),m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 24:return jf(La),null;case 25:return null;default:return null}}function bit(m,v){switch(Bae(v),v.tag){case 3:jf(La),le();break;case 26:case 27:case 5:ue(v);break;case 4:le();break;case 31:v.memoizedState!==null&&Bl(v);break;case 13:Bl(v);break;case 19:G(ua);break;case 10:jf(v.type);break;case 22:case 23:Bl(v),Zae(),m!==null&&G(Uy);break;case 24:jf(La)}}function W5(m,v){try{var E=v.updateQueue,N=E!==null?E.lastEffect:null;if(N!==null){var q=N.next;E=q;do{if((E.tag&m)===m){N=void 0;var Y=E.create,ie=E.inst;N=Y(),ie.destroy=N}E=E.next}while(E!==q)}}catch(be){Qi(v,v.return,be)}}function T0(m,v,E){try{var N=v.updateQueue,q=N!==null?N.lastEffect:null;if(q!==null){var Y=q.next;N=Y;do{if((N.tag&m)===m){var ie=N.inst,be=ie.destroy;if(be!==void 0){ie.destroy=void 0,q=v;var Ke=E,vt=be;try{vt()}catch(Lt){Qi(q,Ke,Lt)}}}N=N.next}while(N!==Y)}}catch(Lt){Qi(v,v.return,Lt)}}function xit(m){var v=m.updateQueue;if(v!==null){var E=m.stateNode;try{frt(v,E)}catch(N){Qi(m,m.return,N)}}}function Tit(m,v,E){E.props=jy(m.type,m.memoizedProps),E.state=m.memoizedState;try{E.componentWillUnmount()}catch(N){Qi(m,v,N)}}function Y5(m,v){try{var E=m.ref;if(E!==null){switch(m.tag){case 26:case 27:case 5:var N=m.stateNode;break;case 30:N=m.stateNode;break;default:N=m.stateNode}typeof E=="function"?m.refCleanup=E(N):E.current=N}}catch(q){Qi(m,v,q)}}function dd(m,v){var E=m.ref,N=m.refCleanup;if(E!==null)if(typeof N=="function")try{N()}catch(q){Qi(m,v,q)}finally{m.refCleanup=null,m=m.alternate,m!=null&&(m.refCleanup=null)}else if(typeof E=="function")try{E(null)}catch(q){Qi(m,v,q)}else E.current=null}function wit(m){var v=m.type,E=m.memoizedProps,N=m.stateNode;try{e:switch(v){case"button":case"input":case"select":case"textarea":E.autoFocus&&N.focus();break e;case"img":E.src?N.src=E.src:E.srcSet&&(N.srcset=E.srcSet)}}catch(q){Qi(m,m.return,q)}}function Rse(m,v,E){try{var N=m.stateNode;fGt(N,m.type,E,v),N[Rt]=v}catch(q){Qi(m,m.return,q)}}function Eit(m){return m.tag===5||m.tag===3||m.tag===26||m.tag===27&&A0(m.type)||m.tag===4}function Nse(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||Eit(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.tag===27&&A0(m.type)||m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function Dse(m,v,E){var N=m.tag;if(N===5||N===6)m=m.stateNode,v?(E.nodeType===9?E.body:E.nodeName==="HTML"?E.ownerDocument.body:E).insertBefore(m,v):(v=E.nodeType===9?E.body:E.nodeName==="HTML"?E.ownerDocument.body:E,v.appendChild(m),E=E._reactRootContainer,E!=null||v.onclick!==null||(v.onclick=il));else if(N!==4&&(N===27&&A0(m.type)&&(E=m.stateNode,v=null),m=m.child,m!==null))for(Dse(m,v,E),m=m.sibling;m!==null;)Dse(m,v,E),m=m.sibling}function MM(m,v,E){var N=m.tag;if(N===5||N===6)m=m.stateNode,v?E.insertBefore(m,v):E.appendChild(m);else if(N!==4&&(N===27&&A0(m.type)&&(E=m.stateNode),m=m.child,m!==null))for(MM(m,v,E),m=m.sibling;m!==null;)MM(m,v,E),m=m.sibling}function kit(m){var v=m.stateNode,E=m.memoizedProps;try{for(var N=m.type,q=v.attributes;q.length;)v.removeAttributeNode(q[0]);As(v,N,E),v[at]=m,v[Rt]=E}catch(Y){Qi(m,m.return,Y)}}var Jf=!1,Da=!1,Ise=!1,Cit=typeof WeakSet=="function"?WeakSet:Set,os=null;function jqt(m,v){if(m=m.containerInfo,Jse=tO,m=ztt(m),Sae(m)){if("selectionStart"in m)var E={start:m.selectionStart,end:m.selectionEnd};else e:{E=(E=m.ownerDocument)&&E.defaultView||window;var N=E.getSelection&&E.getSelection();if(N&&N.rangeCount!==0){E=N.anchorNode;var q=N.anchorOffset,Y=N.focusNode;N=N.focusOffset;try{E.nodeType,Y.nodeType}catch{E=null;break e}var ie=0,be=-1,Ke=-1,vt=0,Lt=0,Bt=m,xt=null;t:for(;;){for(var Ct;Bt!==E||q!==0&&Bt.nodeType!==3||(be=ie+q),Bt!==Y||N!==0&&Bt.nodeType!==3||(Ke=ie+N),Bt.nodeType===3&&(ie+=Bt.nodeValue.length),(Ct=Bt.firstChild)!==null;)xt=Bt,Bt=Ct;for(;;){if(Bt===m)break t;if(xt===E&&++vt===q&&(be=ie),xt===Y&&++Lt===N&&(Ke=ie),(Ct=Bt.nextSibling)!==null)break;Bt=xt,xt=Bt.parentNode}Bt=Ct}E=be===-1||Ke===-1?null:{start:be,end:Ke}}else E=null}E=E||{start:0,end:0}}else E=null;for(eoe={focusedElem:m,selectionRange:E},tO=!1,os=v;os!==null;)if(v=os,m=v.child,(v.subtreeFlags&1028)!==0&&m!==null)m.return=v,os=m;else for(;os!==null;){switch(v=os,Y=v.alternate,m=v.flags,v.tag){case 0:if((m&4)!==0&&(m=v.updateQueue,m=m!==null?m.events:null,m!==null))for(E=0;E<m.length;E++)q=m[E],q.ref.impl=q.nextImpl;break;case 11:case 15:break;case 1:if((m&1024)!==0&&Y!==null){m=void 0,E=v,q=Y.memoizedProps,Y=Y.memoizedState,N=E.stateNode;try{var xr=jy(E.type,q);m=N.getSnapshotBeforeUpdate(xr,Y),N.__reactInternalSnapshotBeforeUpdate=m}catch(Hr){Qi(E,E.return,Hr)}}break;case 3:if((m&1024)!==0){if(m=v.stateNode.containerInfo,E=m.nodeType,E===9)ioe(m);else if(E===1)switch(m.nodeName){case"HEAD":case"HTML":case"BODY":ioe(m);break;default:m.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((m&1024)!==0)throw Error(n(163))}if(m=v.sibling,m!==null){m.return=v.return,os=m;break}os=v.return}}function Sit(m,v,E){var N=E.flags;switch(E.tag){case 0:case 11:case 15:tp(m,E),N&4&&W5(5,E);break;case 1:if(tp(m,E),N&4)if(m=E.stateNode,v===null)try{m.componentDidMount()}catch(ie){Qi(E,E.return,ie)}else{var q=jy(E.type,v.memoizedProps);v=v.memoizedState;try{m.componentDidUpdate(q,v,m.__reactInternalSnapshotBeforeUpdate)}catch(ie){Qi(E,E.return,ie)}}N&64&&xit(E),N&512&&Y5(E,E.return);break;case 3:if(tp(m,E),N&64&&(m=E.updateQueue,m!==null)){if(v=null,E.child!==null)switch(E.child.tag){case 27:case 5:v=E.child.stateNode;break;case 1:v=E.child.stateNode}try{frt(m,v)}catch(ie){Qi(E,E.return,ie)}}break;case 27:v===null&&N&4&&kit(E);case 26:case 5:tp(m,E),v===null&&N&4&&wit(E),N&512&&Y5(E,E.return);break;case 12:tp(m,E);break;case 31:tp(m,E),N&4&&Lit(m,E);break;case 13:tp(m,E),N&4&&Rit(m,E),N&64&&(m=E.memoizedState,m!==null&&(m=m.dehydrated,m!==null&&(E=iGt.bind(null,E),TGt(m,E))));break;case 22:if(N=E.memoizedState!==null||Jf,!N){v=v!==null&&v.memoizedState!==null||Da,q=Jf;var Y=Da;Jf=N,(Da=v)&&!Y?rp(m,E,(E.subtreeFlags&8772)!==0):tp(m,E),Jf=q,Da=Y}break;case 30:break;default:tp(m,E)}}function _it(m){var v=m.alternate;v!==null&&(m.alternate=null,_it(v)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(v=m.stateNode,v!==null&&Et(v)),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}var Pn=null,al=!1;function ep(m,v,E){for(E=E.child;E!==null;)Ait(m,v,E),E=E.sibling}function Ait(m,v,E){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(fe,E)}catch{}switch(E.tag){case 26:Da||dd(E,v),ep(m,v,E),E.memoizedState?E.memoizedState.count--:E.stateNode&&(E=E.stateNode,E.parentNode.removeChild(E));break;case 27:Da||dd(E,v);var N=Pn,q=al;A0(E.type)&&(Pn=E.stateNode,al=!1),ep(m,v,E),r3(E.stateNode),Pn=N,al=q;break;case 5:Da||dd(E,v);case 6:if(N=Pn,q=al,Pn=null,ep(m,v,E),Pn=N,al=q,Pn!==null)if(al)try{(Pn.nodeType===9?Pn.body:Pn.nodeName==="HTML"?Pn.ownerDocument.body:Pn).removeChild(E.stateNode)}catch(Y){Qi(E,v,Y)}else try{Pn.removeChild(E.stateNode)}catch(Y){Qi(E,v,Y)}break;case 18:Pn!==null&&(al?(m=Pn,Tnt(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,E.stateNode),ST(m)):Tnt(Pn,E.stateNode));break;case 4:N=Pn,q=al,Pn=E.stateNode.containerInfo,al=!0,ep(m,v,E),Pn=N,al=q;break;case 0:case 11:case 14:case 15:T0(2,E,v),Da||T0(4,E,v),ep(m,v,E);break;case 1:Da||(dd(E,v),N=E.stateNode,typeof N.componentWillUnmount=="function"&&Tit(E,v,N)),ep(m,v,E);break;case 21:ep(m,v,E);break;case 22:Da=(N=Da)||E.memoizedState!==null,ep(m,v,E),Da=N;break;default:ep(m,v,E)}}function Lit(m,v){if(v.memoizedState===null&&(m=v.alternate,m!==null&&(m=m.memoizedState,m!==null))){m=m.dehydrated;try{ST(m)}catch(E){Qi(v,v.return,E)}}}function Rit(m,v){if(v.memoizedState===null&&(m=v.alternate,m!==null&&(m=m.memoizedState,m!==null&&(m=m.dehydrated,m!==null))))try{ST(m)}catch(E){Qi(v,v.return,E)}}function Xqt(m){switch(m.tag){case 31:case 13:case 19:var v=m.stateNode;return v===null&&(v=m.stateNode=new Cit),v;case 22:return m=m.stateNode,v=m._retryCache,v===null&&(v=m._retryCache=new Cit),v;default:throw Error(n(435,m.tag))}}function OM(m,v){var E=Xqt(m);v.forEach(function(N){if(!E.has(N)){E.add(N);var q=nGt.bind(null,m,N);N.then(q,q)}})}function sl(m,v){var E=v.deletions;if(E!==null)for(var N=0;N<E.length;N++){var q=E[N],Y=m,ie=v,be=ie;e:for(;be!==null;){switch(be.tag){case 27:if(A0(be.type)){Pn=be.stateNode,al=!1;break e}break;case 5:Pn=be.stateNode,al=!1;break e;case 3:case 4:Pn=be.stateNode.containerInfo,al=!0;break e}be=be.return}if(Pn===null)throw Error(n(160));Ait(Y,ie,q),Pn=null,al=!1,Y=q.alternate,Y!==null&&(Y.return=null),q.return=null}if(v.subtreeFlags&13886)for(v=v.child;v!==null;)Nit(v,m),v=v.sibling}var Iu=null;function Nit(m,v){var E=m.alternate,N=m.flags;switch(m.tag){case 0:case 11:case 14:case 15:sl(v,m),ol(m),N&4&&(T0(3,m,m.return),W5(3,m),T0(5,m,m.return));break;case 1:sl(v,m),ol(m),N&512&&(Da||E===null||dd(E,E.return)),N&64&&Jf&&(m=m.updateQueue,m!==null&&(N=m.callbacks,N!==null&&(E=m.shared.hiddenCallbacks,m.shared.hiddenCallbacks=E===null?N:E.concat(N))));break;case 26:var q=Iu;if(sl(v,m),ol(m),N&512&&(Da||E===null||dd(E,E.return)),N&4){var Y=E!==null?E.memoizedState:null;if(N=m.memoizedState,E===null)if(N===null)if(m.stateNode===null){e:{N=m.type,E=m.memoizedProps,q=q.ownerDocument||q;t:switch(N){case"title":Y=q.getElementsByTagName("title")[0],(!Y||Y[Ve]||Y[at]||Y.namespaceURI==="http://www.w3.org/2000/svg"||Y.hasAttribute("itemprop"))&&(Y=q.createElement(N),q.head.insertBefore(Y,q.querySelector("head > title"))),As(Y,N,E),Y[at]=m,Yr(Y),N=Y;break e;case"link":var ie=Dnt("link","href",q).get(N+(E.href||""));if(ie){for(var be=0;be<ie.length;be++)if(Y=ie[be],Y.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&Y.getAttribute("rel")===(E.rel==null?null:E.rel)&&Y.getAttribute("title")===(E.title==null?null:E.title)&&Y.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){ie.splice(be,1);break t}}Y=q.createElement(N),As(Y,N,E),q.head.appendChild(Y);break;case"meta":if(ie=Dnt("meta","content",q).get(N+(E.content||""))){for(be=0;be<ie.length;be++)if(Y=ie[be],Y.getAttribute("content")===(E.content==null?null:""+E.content)&&Y.getAttribute("name")===(E.name==null?null:E.name)&&Y.getAttribute("property")===(E.property==null?null:E.property)&&Y.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&Y.getAttribute("charset")===(E.charSet==null?null:E.charSet)){ie.splice(be,1);break t}}Y=q.createElement(N),As(Y,N,E),q.head.appendChild(Y);break;default:throw Error(n(468,N))}Y[at]=m,Yr(Y),N=Y}m.stateNode=N}else Int(q,m.type,m.stateNode);else m.stateNode=Nnt(q,N,m.memoizedProps);else Y!==N?(Y===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):Y.count--,N===null?Int(q,m.type,m.stateNode):Nnt(q,N,m.memoizedProps)):N===null&&m.stateNode!==null&&Rse(m,m.memoizedProps,E.memoizedProps)}break;case 27:sl(v,m),ol(m),N&512&&(Da||E===null||dd(E,E.return)),E!==null&&N&4&&Rse(m,m.memoizedProps,E.memoizedProps);break;case 5:if(sl(v,m),ol(m),N&512&&(Da||E===null||dd(E,E.return)),m.flags&32){q=m.stateNode;try{ld(q,"")}catch(xr){Qi(m,m.return,xr)}}N&4&&m.stateNode!=null&&(q=m.memoizedProps,Rse(m,q,E!==null?E.memoizedProps:q)),N&1024&&(Ise=!0);break;case 6:if(sl(v,m),ol(m),N&4){if(m.stateNode===null)throw Error(n(162));N=m.memoizedProps,E=m.stateNode;try{E.nodeValue=N}catch(xr){Qi(m,m.return,xr)}}break;case 3:if(QM=null,q=Iu,Iu=XM(v.containerInfo),sl(v,m),Iu=q,ol(m),N&4&&E!==null&&E.memoizedState.isDehydrated)try{ST(v.containerInfo)}catch(xr){Qi(m,m.return,xr)}Ise&&(Ise=!1,Dit(m));break;case 4:N=Iu,Iu=XM(m.stateNode.containerInfo),sl(v,m),ol(m),Iu=N;break;case 12:sl(v,m),ol(m);break;case 31:sl(v,m),ol(m),N&4&&(N=m.updateQueue,N!==null&&(m.updateQueue=null,OM(m,N)));break;case 13:sl(v,m),ol(m),m.child.flags&8192&&m.memoizedState!==null!=(E!==null&&E.memoizedState!==null)&&(BM=Ze()),N&4&&(N=m.updateQueue,N!==null&&(m.updateQueue=null,OM(m,N)));break;case 22:q=m.memoizedState!==null;var Ke=E!==null&&E.memoizedState!==null,vt=Jf,Lt=Da;if(Jf=vt||q,Da=Lt||Ke,sl(v,m),Da=Lt,Jf=vt,ol(m),N&8192)e:for(v=m.stateNode,v._visibility=q?v._visibility&-2:v._visibility|1,q&&(E===null||Ke||Jf||Da||Xy(m)),E=null,v=m;;){if(v.tag===5||v.tag===26){if(E===null){Ke=E=v;try{if(Y=Ke.stateNode,q)ie=Y.style,typeof ie.setProperty=="function"?ie.setProperty("display","none","important"):ie.display="none";else{be=Ke.stateNode;var Bt=Ke.memoizedProps.style,xt=Bt!=null&&Bt.hasOwnProperty("display")?Bt.display:null;be.style.display=xt==null||typeof xt=="boolean"?"":(""+xt).trim()}}catch(xr){Qi(Ke,Ke.return,xr)}}}else if(v.tag===6){if(E===null){Ke=v;try{Ke.stateNode.nodeValue=q?"":Ke.memoizedProps}catch(xr){Qi(Ke,Ke.return,xr)}}}else if(v.tag===18){if(E===null){Ke=v;try{var Ct=Ke.stateNode;q?wnt(Ct,!0):wnt(Ke.stateNode,!1)}catch(xr){Qi(Ke,Ke.return,xr)}}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===m)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===m)break e;for(;v.sibling===null;){if(v.return===null||v.return===m)break e;E===v&&(E=null),v=v.return}E===v&&(E=null),v.sibling.return=v.return,v=v.sibling}N&4&&(N=m.updateQueue,N!==null&&(E=N.retryQueue,E!==null&&(N.retryQueue=null,OM(m,E))));break;case 19:sl(v,m),ol(m),N&4&&(N=m.updateQueue,N!==null&&(m.updateQueue=null,OM(m,N)));break;case 30:break;case 21:break;default:sl(v,m),ol(m)}}function ol(m){var v=m.flags;if(v&2){try{for(var E,N=m.return;N!==null;){if(Eit(N)){E=N;break}N=N.return}if(E==null)throw Error(n(160));switch(E.tag){case 27:var q=E.stateNode;MM(m,Nse(m),q);break;case 5:var Y=E.stateNode;E.flags&32&&(ld(Y,""),E.flags&=-33),MM(m,Nse(m),Y);break;case 3:case 4:var ie=E.stateNode.containerInfo;Dse(m,Nse(m),ie);break;default:throw Error(n(161))}}catch(be){Qi(m,m.return,be)}m.flags&=-3}v&4096&&(m.flags&=-4097)}function Dit(m){if(m.subtreeFlags&1024)for(m=m.child;m!==null;){var v=m;Dit(v),v.tag===5&&v.flags&1024&&v.stateNode.reset(),m=m.sibling}}function tp(m,v){if(v.subtreeFlags&8772)for(v=v.child;v!==null;)Sit(m,v.alternate,v),v=v.sibling}function Xy(m){for(m=m.child;m!==null;){var v=m;switch(v.tag){case 0:case 11:case 14:case 15:T0(4,v,v.return),Xy(v);break;case 1:dd(v,v.return);var E=v.stateNode;typeof E.componentWillUnmount=="function"&&Tit(v,v.return,E),Xy(v);break;case 27:r3(v.stateNode);case 26:case 5:dd(v,v.return),Xy(v);break;case 22:v.memoizedState===null&&Xy(v);break;case 30:Xy(v);break;default:Xy(v)}m=m.sibling}}function rp(m,v,E){for(E=E&&(v.subtreeFlags&8772)!==0,v=v.child;v!==null;){var N=v.alternate,q=m,Y=v,ie=Y.flags;switch(Y.tag){case 0:case 11:case 15:rp(q,Y,E),W5(4,Y);break;case 1:if(rp(q,Y,E),N=Y,q=N.stateNode,typeof q.componentDidMount=="function")try{q.componentDidMount()}catch(vt){Qi(N,N.return,vt)}if(N=Y,q=N.updateQueue,q!==null){var be=N.stateNode;try{var Ke=q.shared.hiddenCallbacks;if(Ke!==null)for(q.shared.hiddenCallbacks=null,q=0;q<Ke.length;q++)drt(Ke[q],be)}catch(vt){Qi(N,N.return,vt)}}E&&ie&64&&xit(Y),Y5(Y,Y.return);break;case 27:kit(Y);case 26:case 5:rp(q,Y,E),E&&N===null&&ie&4&&wit(Y),Y5(Y,Y.return);break;case 12:rp(q,Y,E);break;case 31:rp(q,Y,E),E&&ie&4&&Lit(q,Y);break;case 13:rp(q,Y,E),E&&ie&4&&Rit(q,Y);break;case 22:Y.memoizedState===null&&rp(q,Y,E),Y5(Y,Y.return);break;case 30:break;default:rp(q,Y,E)}v=v.sibling}}function Mse(m,v){var E=null;m!==null&&m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),m=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(m=v.memoizedState.cachePool.pool),m!==E&&(m!=null&&m.refCount++,E!=null&&I5(E))}function Ose(m,v){m=null,v.alternate!==null&&(m=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==m&&(v.refCount++,m!=null&&I5(m))}function Mu(m,v,E,N){if(v.subtreeFlags&10256)for(v=v.child;v!==null;)Iit(m,v,E,N),v=v.sibling}function Iit(m,v,E,N){var q=v.flags;switch(v.tag){case 0:case 11:case 15:Mu(m,v,E,N),q&2048&&W5(9,v);break;case 1:Mu(m,v,E,N);break;case 3:Mu(m,v,E,N),q&2048&&(m=null,v.alternate!==null&&(m=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==m&&(v.refCount++,m!=null&&I5(m)));break;case 12:if(q&2048){Mu(m,v,E,N),m=v.stateNode;try{var Y=v.memoizedProps,ie=Y.id,be=Y.onPostCommit;typeof be=="function"&&be(ie,v.alternate===null?"mount":"update",m.passiveEffectDuration,-0)}catch(Ke){Qi(v,v.return,Ke)}}else Mu(m,v,E,N);break;case 31:Mu(m,v,E,N);break;case 13:Mu(m,v,E,N);break;case 23:break;case 22:Y=v.stateNode,ie=v.alternate,v.memoizedState!==null?Y._visibility&2?Mu(m,v,E,N):j5(m,v):Y._visibility&2?Mu(m,v,E,N):(Y._visibility|=2,gT(m,v,E,N,(v.subtreeFlags&10256)!==0||!1)),q&2048&&Mse(ie,v);break;case 24:Mu(m,v,E,N),q&2048&&Ose(v.alternate,v);break;default:Mu(m,v,E,N)}}function gT(m,v,E,N,q){for(q=q&&((v.subtreeFlags&10256)!==0||!1),v=v.child;v!==null;){var Y=m,ie=v,be=E,Ke=N,vt=ie.flags;switch(ie.tag){case 0:case 11:case 15:gT(Y,ie,be,Ke,q),W5(8,ie);break;case 23:break;case 22:var Lt=ie.stateNode;ie.memoizedState!==null?Lt._visibility&2?gT(Y,ie,be,Ke,q):j5(Y,ie):(Lt._visibility|=2,gT(Y,ie,be,Ke,q)),q&&vt&2048&&Mse(ie.alternate,ie);break;case 24:gT(Y,ie,be,Ke,q),q&&vt&2048&&Ose(ie.alternate,ie);break;default:gT(Y,ie,be,Ke,q)}v=v.sibling}}function j5(m,v){if(v.subtreeFlags&10256)for(v=v.child;v!==null;){var E=m,N=v,q=N.flags;switch(N.tag){case 22:j5(E,N),q&2048&&Mse(N.alternate,N);break;case 24:j5(E,N),q&2048&&Ose(N.alternate,N);break;default:j5(E,N)}v=v.sibling}}var X5=8192;function mT(m,v,E){if(m.subtreeFlags&X5)for(m=m.child;m!==null;)Mit(m,v,E),m=m.sibling}function Mit(m,v,E){switch(m.tag){case 26:mT(m,v,E),m.flags&X5&&m.memoizedState!==null&&IGt(E,Iu,m.memoizedState,m.memoizedProps);break;case 5:mT(m,v,E);break;case 3:case 4:var N=Iu;Iu=XM(m.stateNode.containerInfo),mT(m,v,E),Iu=N;break;case 22:m.memoizedState===null&&(N=m.alternate,N!==null&&N.memoizedState!==null?(N=X5,X5=16777216,mT(m,v,E),X5=N):mT(m,v,E));break;default:mT(m,v,E)}}function Oit(m){var v=m.alternate;if(v!==null&&(m=v.child,m!==null)){v.child=null;do v=m.sibling,m.sibling=null,m=v;while(m!==null)}}function K5(m){var v=m.deletions;if((m.flags&16)!==0){if(v!==null)for(var E=0;E<v.length;E++){var N=v[E];os=N,Bit(N,m)}Oit(m)}if(m.subtreeFlags&10256)for(m=m.child;m!==null;)Pit(m),m=m.sibling}function Pit(m){switch(m.tag){case 0:case 11:case 15:K5(m),m.flags&2048&&T0(9,m,m.return);break;case 3:K5(m);break;case 12:K5(m);break;case 22:var v=m.stateNode;m.memoizedState!==null&&v._visibility&2&&(m.return===null||m.return.tag!==13)?(v._visibility&=-3,PM(m)):K5(m);break;default:K5(m)}}function PM(m){var v=m.deletions;if((m.flags&16)!==0){if(v!==null)for(var E=0;E<v.length;E++){var N=v[E];os=N,Bit(N,m)}Oit(m)}for(m=m.child;m!==null;){switch(v=m,v.tag){case 0:case 11:case 15:T0(8,v,v.return),PM(v);break;case 22:E=v.stateNode,E._visibility&2&&(E._visibility&=-3,PM(v));break;default:PM(v)}m=m.sibling}}function Bit(m,v){for(;os!==null;){var E=os;switch(E.tag){case 0:case 11:case 15:T0(8,E,v);break;case 23:case 22:if(E.memoizedState!==null&&E.memoizedState.cachePool!==null){var N=E.memoizedState.cachePool.pool;N!=null&&N.refCount++}break;case 24:I5(E.memoizedState.cache)}if(N=E.child,N!==null)N.return=E,os=N;else e:for(E=m;os!==null;){N=os;var q=N.sibling,Y=N.return;if(_it(N),N===E){os=null;break e}if(q!==null){q.return=Y,os=q;break e}os=Y}}}var Kqt={getCacheForType:function(m){var v=Ss(La),E=v.data.get(m);return E===void 0&&(E=m(),v.data.set(m,E)),E},cacheSignal:function(){return Ss(La).controller.signal}},Qqt=typeof WeakMap=="function"?WeakMap:Map,qi=0,fn=null,pi=null,mi=0,Ki=0,Fl=null,w0=!1,yT=!1,Pse=!1,ip=0,Jn=0,E0=0,Ky=0,Bse=0,$l=0,vT=0,Q5=null,ll=null,Fse=!1,BM=0,Fit=0,FM=1/0,$M=null,k0=null,Ga=0,C0=null,bT=null,np=0,$se=0,zse=null,$it=null,Z5=0,Use=null;function wc(){return(qi&2)!==0&&mi!==0?mi&-mi:D.T!==null?Yse():St()}function zit(){if($l===0)if((mi&536870912)===0||Ti){var m=et;et<<=1,(et&3932160)===0&&(et=262144),$l=m}else $l=536870912;return m=Pl.current,m!==null&&(m.flags|=32),$l}function cl(m,v,E){(m===fn&&(Ki===2||Ki===9)||m.cancelPendingCommit!==null)&&(xT(m,0),S0(m,mi,$l,!1)),rr(m,E),((qi&2)===0||m!==fn)&&(m===fn&&((qi&2)===0&&(Ky|=E),Jn===4&&S0(m,mi,$l,!1)),ap(m))}function Uit(m,v,E){if((qi&6)!==0)throw Error(n(327));var N=!E&&(v&127)===0&&(v&m.expiredLanes)===0||ye(m,v),q=N?eGt(m,v):Vse(m,v,!0),Y=N;do{if(q===0){yT&&!N&&S0(m,v,0,!1);break}else{if(E=m.current.alternate,Y&&!Zqt(E)){q=Vse(m,v,!1),Y=!1;continue}if(q===2){if(Y=v,m.errorRecoveryDisabledLanes&Y)var ie=0;else ie=m.pendingLanes&-536870913,ie=ie!==0?ie:ie&536870912?536870912:0;if(ie!==0){v=ie;e:{var be=m;q=Q5;var Ke=be.current.memoizedState.isDehydrated;if(Ke&&(xT(be,ie).flags|=256),ie=Vse(be,ie,!1),ie!==2){if(Pse&&!Ke){be.errorRecoveryDisabledLanes|=Y,Ky|=Y,q=4;break e}Y=ll,ll=q,Y!==null&&(ll===null?ll=Y:ll.push.apply(ll,Y))}q=ie}if(Y=!1,q!==2)continue}}if(q===1){xT(m,0),S0(m,v,0,!0);break}e:{switch(N=m,Y=q,Y){case 0:case 1:throw Error(n(345));case 4:if((v&4194048)!==v)break;case 6:S0(N,v,$l,!w0);break e;case 2:ll=null;break;case 3:case 5:break;default:throw Error(n(329))}if((v&62914560)===v&&(q=BM+300-Ze(),10<q)){if(S0(N,v,$l,!w0),_t(N,0,!0)!==0)break e;np=v,N.timeoutHandle=bnt(Hit.bind(null,N,E,ll,$M,Fse,v,$l,Ky,vT,w0,Y,"Throttled",-0,0),q);break e}Hit(N,E,ll,$M,Fse,v,$l,Ky,vT,w0,Y,null,-0,0)}}break}while(!0);ap(m)}function Hit(m,v,E,N,q,Y,ie,be,Ke,vt,Lt,Bt,xt,Ct){if(m.timeoutHandle=-1,Bt=v.subtreeFlags,Bt&8192||(Bt&16785408)===16785408){Bt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:il},Mit(v,Y,Bt);var xr=(Y&62914560)===Y?BM-Ze():(Y&4194048)===Y?Fit-Ze():0;if(xr=MGt(Bt,xr),xr!==null){np=Y,m.cancelPendingCommit=xr(Kit.bind(null,m,v,Y,E,N,q,ie,be,Ke,Lt,Bt,null,xt,Ct)),S0(m,Y,ie,!vt);return}}Kit(m,v,Y,E,N,q,ie,be,Ke)}function Zqt(m){for(var v=m;;){var E=v.tag;if((E===0||E===11||E===15)&&v.flags&16384&&(E=v.updateQueue,E!==null&&(E=E.stores,E!==null)))for(var N=0;N<E.length;N++){var q=E[N],Y=q.getSnapshot;q=q.value;try{if(!Ml(Y(),q))return!1}catch{return!1}}if(E=v.child,v.subtreeFlags&16384&&E!==null)E.return=v,v=E;else{if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return!0;v=v.return}v.sibling.return=v.return,v=v.sibling}}return!0}function S0(m,v,E,N){v&=~Bse,v&=~Ky,m.suspendedLanes|=v,m.pingedLanes&=~v,N&&(m.warmLanes|=v),N=m.expirationTimes;for(var q=v;0<q;){var Y=31-Ie(q),ie=1<<Y;N[Y]=-1,q&=~ie}E!==0&&ir(m,E,v)}function zM(){return(qi&6)===0?(J5(0,!1),!1):!0}function Hse(){if(pi!==null){if(Ki===0)var m=pi.return;else m=pi,Yf=$y=null,nse(m),uT=null,O5=0,m=pi;for(;m!==null;)bit(m.alternate,m),m=m.return;pi=null}}function xT(m,v){var E=m.timeoutHandle;E!==-1&&(m.timeoutHandle=-1,mGt(E)),E=m.cancelPendingCommit,E!==null&&(m.cancelPendingCommit=null,E()),np=0,Hse(),fn=m,pi=E=Gf(m.current,null),mi=v,Ki=0,Fl=null,w0=!1,yT=ye(m,v),Pse=!1,vT=$l=Bse=Ky=E0=Jn=0,ll=Q5=null,Fse=!1,(v&8)!==0&&(v|=v&32);var N=m.entangledLanes;if(N!==0)for(m=m.entanglements,N&=v;0<N;){var q=31-Ie(N),Y=1<<q;v|=m[q],N&=~Y}return ip=v,oM(),E}function Vit(m,v){Jr=null,D.H=V5,v===cT||v===gM?(v=lrt(),Ki=3):v===Wae?(v=lrt(),Ki=4):Ki=v===xse?8:v!==null&&typeof v=="object"&&typeof v.then=="function"?6:1,Fl=v,pi===null&&(Jn=1,LM(m,yc(v,m.current)))}function qit(){var m=Pl.current;return m===null?!0:(mi&4194048)===mi?Tc===null:(mi&62914560)===mi||(mi&536870912)!==0?m===Tc:!1}function Git(){var m=D.H;return D.H=V5,m===null?V5:m}function Wit(){var m=D.A;return D.A=Kqt,m}function UM(){Jn=4,w0||(mi&4194048)!==mi&&Pl.current!==null||(yT=!0),(E0&134217727)===0&&(Ky&134217727)===0||fn===null||S0(fn,mi,$l,!1)}function Vse(m,v,E){var N=qi;qi|=2;var q=Git(),Y=Wit();(fn!==m||mi!==v)&&($M=null,xT(m,v)),v=!1;var ie=Jn;e:do try{if(Ki!==0&&pi!==null){var be=pi,Ke=Fl;switch(Ki){case 8:Hse(),ie=6;break e;case 3:case 2:case 9:case 6:Pl.current===null&&(v=!0);var vt=Ki;if(Ki=0,Fl=null,TT(m,be,Ke,vt),E&&yT){ie=0;break e}break;default:vt=Ki,Ki=0,Fl=null,TT(m,be,Ke,vt)}}Jqt(),ie=Jn;break}catch(Lt){Vit(m,Lt)}while(!0);return v&&m.shellSuspendCounter++,Yf=$y=null,qi=N,D.H=q,D.A=Y,pi===null&&(fn=null,mi=0,oM()),ie}function Jqt(){for(;pi!==null;)Yit(pi)}function eGt(m,v){var E=qi;qi|=2;var N=Git(),q=Wit();fn!==m||mi!==v?($M=null,FM=Ze()+500,xT(m,v)):yT=ye(m,v);e:do try{if(Ki!==0&&pi!==null){v=pi;var Y=Fl;t:switch(Ki){case 1:Ki=0,Fl=null,TT(m,v,Y,1);break;case 2:case 9:if(srt(Y)){Ki=0,Fl=null,jit(v);break}v=function(){Ki!==2&&Ki!==9||fn!==m||(Ki=7),ap(m)},Y.then(v,v);break e;case 3:Ki=7;break e;case 4:Ki=5;break e;case 7:srt(Y)?(Ki=0,Fl=null,jit(v)):(Ki=0,Fl=null,TT(m,v,Y,7));break;case 5:var ie=null;switch(pi.tag){case 26:ie=pi.memoizedState;case 5:case 27:var be=pi;if(ie?Mnt(ie):be.stateNode.complete){Ki=0,Fl=null;var Ke=be.sibling;if(Ke!==null)pi=Ke;else{var vt=be.return;vt!==null?(pi=vt,HM(vt)):pi=null}break t}}Ki=0,Fl=null,TT(m,v,Y,5);break;case 6:Ki=0,Fl=null,TT(m,v,Y,6);break;case 8:Hse(),Jn=6;break e;default:throw Error(n(462))}}tGt();break}catch(Lt){Vit(m,Lt)}while(!0);return Yf=$y=null,D.H=N,D.A=q,qi=E,pi!==null?0:(fn=null,mi=0,oM(),Jn)}function tGt(){for(;pi!==null&&!ut();)Yit(pi)}function Yit(m){var v=yit(m.alternate,m,ip);m.memoizedProps=m.pendingProps,v===null?HM(m):pi=v}function jit(m){var v=m,E=v.alternate;switch(v.tag){case 15:case 0:v=hit(E,v,v.pendingProps,v.type,void 0,mi);break;case 11:v=hit(E,v,v.pendingProps,v.type.render,v.ref,mi);break;case 5:nse(v);default:bit(E,v),v=pi=Xtt(v,ip),v=yit(E,v,ip)}m.memoizedProps=m.pendingProps,v===null?HM(m):pi=v}function TT(m,v,E,N){Yf=$y=null,nse(v),uT=null,O5=0;var q=v.return;try{if(Vqt(m,q,v,E,mi)){Jn=1,LM(m,yc(E,m.current)),pi=null;return}}catch(Y){if(q!==null)throw pi=q,Y;Jn=1,LM(m,yc(E,m.current)),pi=null;return}v.flags&32768?(Ti||N===1?m=!0:yT||(mi&536870912)!==0?m=!1:(w0=m=!0,(N===2||N===9||N===3||N===6)&&(N=Pl.current,N!==null&&N.tag===13&&(N.flags|=16384))),Xit(v,m)):HM(v)}function HM(m){var v=m;do{if((v.flags&32768)!==0){Xit(v,w0);return}m=v.return;var E=Wqt(v.alternate,v,ip);if(E!==null){pi=E;return}if(v=v.sibling,v!==null){pi=v;return}pi=v=m}while(v!==null);Jn===0&&(Jn=5)}function Xit(m,v){do{var E=Yqt(m.alternate,m);if(E!==null){E.flags&=32767,pi=E;return}if(E=m.return,E!==null&&(E.flags|=32768,E.subtreeFlags=0,E.deletions=null),!v&&(m=m.sibling,m!==null)){pi=m;return}pi=m=E}while(m!==null);Jn=6,pi=null}function Kit(m,v,E,N,q,Y,ie,be,Ke){m.cancelPendingCommit=null;do VM();while(Ga!==0);if((qi&6)!==0)throw Error(n(327));if(v!==null){if(v===m.current)throw Error(n(177));if(Y=v.lanes|v.childLanes,Y|=Nae,Ht(m,E,Y,ie,be,Ke),m===fn&&(pi=fn=null,mi=0),bT=v,C0=m,np=E,$se=Y,zse=q,$it=N,(v.subtreeFlags&10256)!==0||(v.flags&10256)!==0?(m.callbackNode=null,m.callbackPriority=0,aGt(Je,function(){return tnt(),null})):(m.callbackNode=null,m.callbackPriority=0),N=(v.flags&13878)!==0,(v.subtreeFlags&13878)!==0||N){N=D.T,D.T=null,q=$.p,$.p=2,ie=qi,qi|=4;try{jqt(m,v,E)}finally{qi=ie,$.p=q,D.T=N}}Ga=1,Qit(),Zit(),Jit()}}function Qit(){if(Ga===1){Ga=0;var m=C0,v=bT,E=(v.flags&13878)!==0;if((v.subtreeFlags&13878)!==0||E){E=D.T,D.T=null;var N=$.p;$.p=2;var q=qi;qi|=4;try{Nit(v,m);var Y=eoe,ie=ztt(m.containerInfo),be=Y.focusedElem,Ke=Y.selectionRange;if(ie!==be&&be&&be.ownerDocument&&$tt(be.ownerDocument.documentElement,be)){if(Ke!==null&&Sae(be)){var vt=Ke.start,Lt=Ke.end;if(Lt===void 0&&(Lt=vt),"selectionStart"in be)be.selectionStart=vt,be.selectionEnd=Math.min(Lt,be.value.length);else{var Bt=be.ownerDocument||document,xt=Bt&&Bt.defaultView||window;if(xt.getSelection){var Ct=xt.getSelection(),xr=be.textContent.length,Hr=Math.min(Ke.start,xr),nn=Ke.end===void 0?Hr:Math.min(Ke.end,xr);!Ct.extend&&Hr>nn&&(ie=nn,nn=Hr,Hr=ie);var lt=Ftt(be,Hr),tt=Ftt(be,nn);if(lt&&tt&&(Ct.rangeCount!==1||Ct.anchorNode!==lt.node||Ct.anchorOffset!==lt.offset||Ct.focusNode!==tt.node||Ct.focusOffset!==tt.offset)){var mt=Bt.createRange();mt.setStart(lt.node,lt.offset),Ct.removeAllRanges(),Hr>nn?(Ct.addRange(mt),Ct.extend(tt.node,tt.offset)):(mt.setEnd(tt.node,tt.offset),Ct.addRange(mt))}}}}for(Bt=[],Ct=be;Ct=Ct.parentNode;)Ct.nodeType===1&&Bt.push({element:Ct,left:Ct.scrollLeft,top:Ct.scrollTop});for(typeof be.focus=="function"&&be.focus(),be=0;be<Bt.length;be++){var Dt=Bt[be];Dt.element.scrollLeft=Dt.left,Dt.element.scrollTop=Dt.top}}tO=!!Jse,eoe=Jse=null}finally{qi=q,$.p=N,D.T=E}}m.current=v,Ga=2}}function Zit(){if(Ga===2){Ga=0;var m=C0,v=bT,E=(v.flags&8772)!==0;if((v.subtreeFlags&8772)!==0||E){E=D.T,D.T=null;var N=$.p;$.p=2;var q=qi;qi|=4;try{Sit(m,v.alternate,v)}finally{qi=q,$.p=N,D.T=E}}Ga=3}}function Jit(){if(Ga===4||Ga===3){Ga=0,it();var m=C0,v=bT,E=np,N=$it;(v.subtreeFlags&10256)!==0||(v.flags&10256)!==0?Ga=5:(Ga=0,bT=C0=null,ent(m,m.pendingLanes));var q=m.pendingLanes;if(q===0&&(k0=null),Ot(E),v=v.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(fe,v,void 0,(v.current.flags&128)===128)}catch{}if(N!==null){v=D.T,q=$.p,$.p=2,D.T=null;try{for(var Y=m.onRecoverableError,ie=0;ie<N.length;ie++){var be=N[ie];Y(be.value,{componentStack:be.stack})}}finally{D.T=v,$.p=q}}(np&3)!==0&&VM(),ap(m),q=m.pendingLanes,(E&261930)!==0&&(q&42)!==0?m===Use?Z5++:(Z5=0,Use=m):Z5=0,J5(0,!1)}}function ent(m,v){(m.pooledCacheLanes&=v)===0&&(v=m.pooledCache,v!=null&&(m.pooledCache=null,I5(v)))}function VM(){return Qit(),Zit(),Jit(),tnt()}function tnt(){if(Ga!==5)return!1;var m=C0,v=$se;$se=0;var E=Ot(np),N=D.T,q=$.p;try{$.p=32>E?32:E,D.T=null,E=zse,zse=null;var Y=C0,ie=np;if(Ga=0,bT=C0=null,np=0,(qi&6)!==0)throw Error(n(331));var be=qi;if(qi|=4,Pit(Y.current),Iit(Y,Y.current,ie,E),qi=be,J5(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(fe,Y)}catch{}return!0}finally{$.p=q,D.T=N,ent(m,v)}}function rnt(m,v,E){v=yc(E,v),v=bse(m.stateNode,v,2),m=Wy(m,v,2),m!==null&&(rr(m,2),ap(m))}function Qi(m,v,E){if(m.tag===3)rnt(m,m,E);else for(;v!==null;){if(v.tag===3){rnt(v,m,E);break}else if(v.tag===1){var N=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof N.componentDidCatch=="function"&&(k0===null||!k0.has(N))){m=yc(E,m),E=iit(2),N=Wy(v,E,2),N!==null&&(nit(E,N,v,m),rr(N,2),ap(N));break}}v=v.return}}function qse(m,v,E){var N=m.pingCache;if(N===null){N=m.pingCache=new Qqt;var q=new Set;N.set(v,q)}else q=N.get(v),q===void 0&&(q=new Set,N.set(v,q));q.has(E)||(Pse=!0,q.add(E),m=rGt.bind(null,m,v,E),v.then(m,m))}function rGt(m,v,E){var N=m.pingCache;N!==null&&N.delete(v),m.pingedLanes|=m.suspendedLanes&E,m.warmLanes&=~E,fn===m&&(mi&E)===E&&(Jn===4||Jn===3&&(mi&62914560)===mi&&300>Ze()-BM?(qi&2)===0&&xT(m,0):Bse|=E,vT===mi&&(vT=0)),ap(m)}function int(m,v){v===0&&(v=Wt()),m=Py(m,v),m!==null&&(rr(m,v),ap(m))}function iGt(m){var v=m.memoizedState,E=0;v!==null&&(E=v.retryLane),int(m,E)}function nGt(m,v){var E=0;switch(m.tag){case 31:case 13:var N=m.stateNode,q=m.memoizedState;q!==null&&(E=q.retryLane);break;case 19:N=m.stateNode;break;case 22:N=m.stateNode._retryCache;break;default:throw Error(n(314))}N!==null&&N.delete(v),int(m,E)}function aGt(m,v){return dt(m,v)}var qM=null,wT=null,Gse=!1,GM=!1,Wse=!1,_0=0;function ap(m){m!==wT&&m.next===null&&(wT===null?qM=wT=m:wT=wT.next=m),GM=!0,Gse||(Gse=!0,oGt())}function J5(m,v){if(!Wse&&GM){Wse=!0;do for(var E=!1,N=qM;N!==null;){if(!v)if(m!==0){var q=N.pendingLanes;if(q===0)var Y=0;else{var ie=N.suspendedLanes,be=N.pingedLanes;Y=(1<<31-Ie(42|m)+1)-1,Y&=q&~(ie&~be),Y=Y&201326741?Y&201326741|1:Y?Y|2:0}Y!==0&&(E=!0,ont(N,Y))}else Y=mi,Y=_t(N,N===fn?Y:0,N.cancelPendingCommit!==null||N.timeoutHandle!==-1),(Y&3)===0||ye(N,Y)||(E=!0,ont(N,Y));N=N.next}while(E);Wse=!1}}function sGt(){nnt()}function nnt(){GM=Gse=!1;var m=0;_0!==0&&gGt()&&(m=_0);for(var v=Ze(),E=null,N=qM;N!==null;){var q=N.next,Y=ant(N,v);Y===0?(N.next=null,E===null?qM=q:E.next=q,q===null&&(wT=E)):(E=N,(m!==0||(Y&3)!==0)&&(GM=!0)),N=q}Ga!==0&&Ga!==5||J5(m,!1),_0!==0&&(_0=0)}function ant(m,v){for(var E=m.suspendedLanes,N=m.pingedLanes,q=m.expirationTimes,Y=m.pendingLanes&-62914561;0<Y;){var ie=31-Ie(Y),be=1<<ie,Ke=q[ie];Ke===-1?((be&E)===0||(be&N)!==0)&&(q[ie]=wt(be,v)):Ke<=v&&(m.expiredLanes|=be),Y&=~be}if(v=fn,E=mi,E=_t(m,m===v?E:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),N=m.callbackNode,E===0||m===v&&(Ki===2||Ki===9)||m.cancelPendingCommit!==null)return N!==null&&N!==null&&Se(N),m.callbackNode=null,m.callbackPriority=0;if((E&3)===0||ye(m,E)){if(v=E&-E,v===m.callbackPriority)return v;switch(N!==null&&Se(N),Ot(E)){case 2:case 8:E=he;break;case 32:E=Je;break;case 268435456:E=ke;break;default:E=Je}return N=snt.bind(null,m),E=dt(E,N),m.callbackPriority=v,m.callbackNode=E,v}return N!==null&&N!==null&&Se(N),m.callbackPriority=2,m.callbackNode=null,2}function snt(m,v){if(Ga!==0&&Ga!==5)return m.callbackNode=null,m.callbackPriority=0,null;var E=m.callbackNode;if(VM()&&m.callbackNode!==E)return null;var N=mi;return N=_t(m,m===fn?N:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),N===0?null:(Uit(m,N,v),ant(m,Ze()),m.callbackNode!=null&&m.callbackNode===E?snt.bind(null,m):null)}function ont(m,v){if(VM())return null;Uit(m,v,!0)}function oGt(){yGt(function(){(qi&6)!==0?dt($e,sGt):nnt()})}function Yse(){if(_0===0){var m=oT;m===0&&(m=ot,ot<<=1,(ot&261888)===0&&(ot=256)),_0=m}return _0}function lnt(m){return m==null||typeof m=="symbol"||typeof m=="boolean"?null:typeof m=="function"?m:Ny(""+m)}function cnt(m,v){var E=v.ownerDocument.createElement("input");return E.name=v.name,E.value=v.value,m.id&&E.setAttribute("form",m.id),v.parentNode.insertBefore(E,v),m=new FormData(m),E.parentNode.removeChild(E),m}function lGt(m,v,E,N,q){if(v==="submit"&&E&&E.stateNode===q){var Y=lnt((q[Rt]||null).action),ie=N.submitter;ie&&(v=(v=ie[Rt]||null)?lnt(v.formAction):ie.getAttribute("formAction"),v!==null&&(Y=v,ie=null));var be=new iM("action","action",null,N,q);m.push({event:be,listeners:[{instance:null,listener:function(){if(N.defaultPrevented){if(_0!==0){var Ke=ie?cnt(q,ie):new FormData(q);fse(E,{pending:!0,data:Ke,method:q.method,action:Y},null,Ke)}}else typeof Y=="function"&&(be.preventDefault(),Ke=ie?cnt(q,ie):new FormData(q),fse(E,{pending:!0,data:Ke,method:q.method,action:Y},Y,Ke))},currentTarget:q}]})}}for(var jse=0;jse<Rae.length;jse++){var Xse=Rae[jse];Du(Xse.toLowerCase(),"on"+(Xse[0].toUpperCase()+Xse.slice(1)))}Du(Vtt,"onAnimationEnd"),Du(qtt,"onAnimationIteration"),Du(Gtt,"onAnimationStart"),Du("dblclick","onDoubleClick"),Du("focusin","onFocus"),Du("focusout","onBlur"),Du(Eqt,"onTransitionRun"),Du(kqt,"onTransitionStart"),Du(Cqt,"onTransitionCancel"),Du(Wtt,"onTransitionEnd"),cr("onMouseEnter",["mouseout","mouseover"]),cr("onMouseLeave",["mouseout","mouseover"]),cr("onPointerEnter",["pointerout","pointerover"]),cr("onPointerLeave",["pointerout","pointerover"]),tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tr("onBeforeInput",["compositionend","keypress","textInput","paste"]),tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var e3="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(" "),cGt=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(e3));function unt(m,v){v=(v&4)!==0;for(var E=0;E<m.length;E++){var N=m[E],q=N.event;N=N.listeners;e:{var Y=void 0;if(v)for(var ie=N.length-1;0<=ie;ie--){var be=N[ie],Ke=be.instance,vt=be.currentTarget;if(be=be.listener,Ke!==Y&&q.isPropagationStopped())break e;Y=be,q.currentTarget=vt;try{Y(q)}catch(Lt){sM(Lt)}q.currentTarget=null,Y=Ke}else for(ie=0;ie<N.length;ie++){if(be=N[ie],Ke=be.instance,vt=be.currentTarget,be=be.listener,Ke!==Y&&q.isPropagationStopped())break e;Y=be,q.currentTarget=vt;try{Y(q)}catch(Lt){sM(Lt)}q.currentTarget=null,Y=Ke}}}}function gi(m,v){var E=v[nr];E===void 0&&(E=v[nr]=new Set);var N=m+"__bubble";E.has(N)||(dnt(v,m,2,!1),E.add(N))}function Kse(m,v,E){var N=0;v&&(N|=4),dnt(E,m,N,v)}var WM="_reactListening"+Math.random().toString(36).slice(2);function hnt(m){if(!m[WM]){m[WM]=!0,Ri.forEach(function(E){E!=="selectionchange"&&(cGt.has(E)||Kse(E,!1,m),Kse(E,!0,m))});var v=m.nodeType===9?m:m.ownerDocument;v===null||v[WM]||(v[WM]=!0,Kse("selectionchange",!1,v))}}function dnt(m,v,E,N){switch($nt(v)){case 2:var q=$Gt;break;case 8:q=zGt;break;default:q=hoe}E=q.bind(null,v,E,m),q=void 0,!yae||v!=="touchstart"&&v!=="touchmove"&&v!=="wheel"||(q=!0),N?q!==void 0?m.addEventListener(v,E,{capture:!0,passive:q}):m.addEventListener(v,E,!0):q!==void 0?m.addEventListener(v,E,{passive:q}):m.addEventListener(v,E,!1)}function Qse(m,v,E,N,q){var Y=N;if((v&1)===0&&(v&2)===0&&N!==null)e:for(;;){if(N===null)return;var ie=N.tag;if(ie===3||ie===4){var be=N.stateNode.containerInfo;if(be===q)break;if(ie===4)for(ie=N.return;ie!==null;){var Ke=ie.tag;if((Ke===3||Ke===4)&&ie.stateNode.containerInfo===q)return;ie=ie.return}for(;be!==null;){if(ie=zt(be),ie===null)return;if(Ke=ie.tag,Ke===5||Ke===6||Ke===26||Ke===27){N=Y=ie;continue e}be=be.parentNode}}N=N.return}btt(function(){var vt=Y,Lt=io(E),Bt=[];e:{var xt=Ytt.get(m);if(xt!==void 0){var Ct=iM,xr=m;switch(m){case"keypress":if(tM(E)===0)break e;case"keydown":case"keyup":Ct=sqt;break;case"focusin":xr="focus",Ct=Tae;break;case"focusout":xr="blur",Ct=Tae;break;case"beforeblur":case"afterblur":Ct=Tae;break;case"click":if(E.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ct=wtt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ct=JVt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ct=oqt;break;case Vtt:case qtt:case Gtt:Ct=eqt;break;case Wtt:Ct=lqt;break;case"scroll":case"scrollend":Ct=ZVt;break;case"wheel":Ct=cqt;break;case"copy":case"cut":case"paste":Ct=tqt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ct=ktt;break;case"toggle":case"beforetoggle":Ct=uqt}var Hr=(v&4)!==0,nn=!Hr&&(m==="scroll"||m==="scrollend"),lt=Hr?xt!==null?xt+"Capture":null:xt;Hr=[];for(var tt=vt,mt;tt!==null;){var Dt=tt;if(mt=Dt.stateNode,Dt=Dt.tag,Dt!==5&&Dt!==26&&Dt!==27||mt===null||lt===null||(Dt=w5(tt,lt),Dt!=null&&Hr.push(t3(tt,Dt,mt))),nn)break;tt=tt.return}0<Hr.length&&(xt=new Ct(xt,xr,null,E,Lt),Bt.push({event:xt,listeners:Hr}))}}if((v&7)===0){e:{if(xt=m==="mouseover"||m==="pointerover",Ct=m==="mouseout"||m==="pointerout",xt&&E!==Dy&&(xr=E.relatedTarget||E.fromElement)&&(zt(xr)||xr[pr]))break e;if((Ct||xt)&&(xt=Lt.window===Lt?Lt:(xt=Lt.ownerDocument)?xt.defaultView||xt.parentWindow:window,Ct?(xr=E.relatedTarget||E.toElement,Ct=vt,xr=xr?zt(xr):null,xr!==null&&(nn=s(xr),Hr=xr.tag,xr!==nn||Hr!==5&&Hr!==27&&Hr!==6)&&(xr=null)):(Ct=null,xr=vt),Ct!==xr)){if(Hr=wtt,Dt="onMouseLeave",lt="onMouseEnter",tt="mouse",(m==="pointerout"||m==="pointerover")&&(Hr=ktt,Dt="onPointerLeave",lt="onPointerEnter",tt="pointer"),nn=Ct==null?xt:mr(Ct),mt=xr==null?xt:mr(xr),xt=new Hr(Dt,tt+"leave",Ct,E,Lt),xt.target=nn,xt.relatedTarget=mt,Dt=null,zt(Lt)===vt&&(Hr=new Hr(lt,tt+"enter",xr,E,Lt),Hr.target=mt,Hr.relatedTarget=nn,Dt=Hr),nn=Dt,Ct&&xr)t:{for(Hr=uGt,lt=Ct,tt=xr,mt=0,Dt=lt;Dt;Dt=Hr(Dt))mt++;Dt=0;for(var Nr=tt;Nr;Nr=Hr(Nr))Dt++;for(;0<mt-Dt;)lt=Hr(lt),mt--;for(;0<Dt-mt;)tt=Hr(tt),Dt--;for(;mt--;){if(lt===tt||tt!==null&<===tt.alternate){Hr=lt;break t}lt=Hr(lt),tt=Hr(tt)}Hr=null}else Hr=null;Ct!==null&&fnt(Bt,xt,Ct,Hr,!1),xr!==null&&nn!==null&&fnt(Bt,nn,xr,Hr,!0)}}e:{if(xt=vt?mr(vt):window,Ct=xt.nodeName&&xt.nodeName.toLowerCase(),Ct==="select"||Ct==="input"&&xt.type==="file")var Pi=Dtt;else if(Rtt(xt))if(Itt)Pi=xqt;else{Pi=vqt;var _r=yqt}else Ct=xt.nodeName,!Ct||Ct.toLowerCase()!=="input"||xt.type!=="checkbox"&&xt.type!=="radio"?vt&&cd(vt.elementType)&&(Pi=Dtt):Pi=bqt;if(Pi&&(Pi=Pi(m,vt))){Ntt(Bt,Pi,E,Lt);break e}_r&&_r(m,xt,vt),m==="focusout"&&vt&&xt.type==="number"&&vt.memoizedProps.value!=null&&x5(xt,"number",xt.value)}switch(_r=vt?mr(vt):window,m){case"focusin":(Rtt(_r)||_r.contentEditable==="true")&&(Jx=_r,_ae=vt,R5=null);break;case"focusout":R5=_ae=Jx=null;break;case"mousedown":Aae=!0;break;case"contextmenu":case"mouseup":case"dragend":Aae=!1,Utt(Bt,E,Lt);break;case"selectionchange":if(wqt)break;case"keydown":case"keyup":Utt(Bt,E,Lt)}var ri;if(Eae)e:{switch(m){case"compositionstart":var yi="onCompositionStart";break e;case"compositionend":yi="onCompositionEnd";break e;case"compositionupdate":yi="onCompositionUpdate";break e}yi=void 0}else Zx?Att(m,E)&&(yi="onCompositionEnd"):m==="keydown"&&E.keyCode===229&&(yi="onCompositionStart");yi&&(Ctt&&E.locale!=="ko"&&(Zx||yi!=="onCompositionStart"?yi==="onCompositionEnd"&&Zx&&(ri=xtt()):(f0=Lt,vae="value"in f0?f0.value:f0.textContent,Zx=!0)),_r=YM(vt,yi),0<_r.length&&(yi=new Ett(yi,m,null,E,Lt),Bt.push({event:yi,listeners:_r}),ri?yi.data=ri:(ri=Ltt(E),ri!==null&&(yi.data=ri)))),(ri=dqt?fqt(m,E):pqt(m,E))&&(yi=YM(vt,"onBeforeInput"),0<yi.length&&(_r=new Ett("onBeforeInput","beforeinput",null,E,Lt),Bt.push({event:_r,listeners:yi}),_r.data=ri)),lGt(Bt,m,vt,E,Lt)}unt(Bt,v)})}function t3(m,v,E){return{instance:m,listener:v,currentTarget:E}}function YM(m,v){for(var E=v+"Capture",N=[];m!==null;){var q=m,Y=q.stateNode;if(q=q.tag,q!==5&&q!==26&&q!==27||Y===null||(q=w5(m,E),q!=null&&N.unshift(t3(m,q,Y)),q=w5(m,v),q!=null&&N.push(t3(m,q,Y))),m.tag===3)return N;m=m.return}return[]}function uGt(m){if(m===null)return null;do m=m.return;while(m&&m.tag!==5&&m.tag!==27);return m||null}function fnt(m,v,E,N,q){for(var Y=v._reactName,ie=[];E!==null&&E!==N;){var be=E,Ke=be.alternate,vt=be.stateNode;if(be=be.tag,Ke!==null&&Ke===N)break;be!==5&&be!==26&&be!==27||vt===null||(Ke=vt,q?(vt=w5(E,Y),vt!=null&&ie.unshift(t3(E,vt,Ke))):q||(vt=w5(E,Y),vt!=null&&ie.push(t3(E,vt,Ke)))),E=E.return}ie.length!==0&&m.push({event:v,listeners:ie})}var hGt=/\r\n?/g,dGt=/\u0000|\uFFFD/g;function pnt(m){return(typeof m=="string"?m:""+m).replace(hGt,`
|
|
10
|
-
`).replace(dGt,"")}function gnt(m,v){return v=pnt(v),pnt(m)===v}function rn(m,v,E,N,q,Y){switch(E){case"children":typeof N=="string"?v==="body"||v==="textarea"&&N===""||ld(m,N):(typeof N=="number"||typeof N=="bigint")&&v!=="body"&&ld(m,""+N);break;case"className":Ru(m,"class",N);break;case"tabIndex":Ru(m,"tabindex",N);break;case"dir":case"role":case"viewBox":case"width":case"height":Ru(m,E,N);break;case"style":jx(m,N,Y);break;case"data":if(v!=="object"){Ru(m,"data",N);break}case"src":case"href":if(N===""&&(v!=="a"||E!=="href")){m.removeAttribute(E);break}if(N==null||typeof N=="function"||typeof N=="symbol"||typeof N=="boolean"){m.removeAttribute(E);break}N=Ny(""+N),m.setAttribute(E,N);break;case"action":case"formAction":if(typeof N=="function"){m.setAttribute(E,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof Y=="function"&&(E==="formAction"?(v!=="input"&&rn(m,v,"name",q.name,q,null),rn(m,v,"formEncType",q.formEncType,q,null),rn(m,v,"formMethod",q.formMethod,q,null),rn(m,v,"formTarget",q.formTarget,q,null)):(rn(m,v,"encType",q.encType,q,null),rn(m,v,"method",q.method,q,null),rn(m,v,"target",q.target,q,null)));if(N==null||typeof N=="symbol"||typeof N=="boolean"){m.removeAttribute(E);break}N=Ny(""+N),m.setAttribute(E,N);break;case"onClick":N!=null&&(m.onclick=il);break;case"onScroll":N!=null&&gi("scroll",m);break;case"onScrollEnd":N!=null&&gi("scrollend",m);break;case"dangerouslySetInnerHTML":if(N!=null){if(typeof N!="object"||!("__html"in N))throw Error(n(61));if(E=N.__html,E!=null){if(q.children!=null)throw Error(n(60));m.innerHTML=E}}break;case"multiple":m.multiple=N&&typeof N!="function"&&typeof N!="symbol";break;case"muted":m.muted=N&&typeof N!="function"&&typeof N!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(N==null||typeof N=="function"||typeof N=="boolean"||typeof N=="symbol"){m.removeAttribute("xlink:href");break}E=Ny(""+N),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",E);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":N!=null&&typeof N!="function"&&typeof N!="symbol"?m.setAttribute(E,""+N):m.removeAttribute(E);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":N&&typeof N!="function"&&typeof N!="symbol"?m.setAttribute(E,""):m.removeAttribute(E);break;case"capture":case"download":N===!0?m.setAttribute(E,""):N!==!1&&N!=null&&typeof N!="function"&&typeof N!="symbol"?m.setAttribute(E,N):m.removeAttribute(E);break;case"cols":case"rows":case"size":case"span":N!=null&&typeof N!="function"&&typeof N!="symbol"&&!isNaN(N)&&1<=N?m.setAttribute(E,N):m.removeAttribute(E);break;case"rowSpan":case"start":N==null||typeof N=="function"||typeof N=="symbol"||isNaN(N)?m.removeAttribute(E):m.setAttribute(E,N);break;case"popover":gi("beforetoggle",m),gi("toggle",m),Oe(m,"popover",N);break;case"xlinkActuate":He(m,"http://www.w3.org/1999/xlink","xlink:actuate",N);break;case"xlinkArcrole":He(m,"http://www.w3.org/1999/xlink","xlink:arcrole",N);break;case"xlinkRole":He(m,"http://www.w3.org/1999/xlink","xlink:role",N);break;case"xlinkShow":He(m,"http://www.w3.org/1999/xlink","xlink:show",N);break;case"xlinkTitle":He(m,"http://www.w3.org/1999/xlink","xlink:title",N);break;case"xlinkType":He(m,"http://www.w3.org/1999/xlink","xlink:type",N);break;case"xmlBase":He(m,"http://www.w3.org/XML/1998/namespace","xml:base",N);break;case"xmlLang":He(m,"http://www.w3.org/XML/1998/namespace","xml:lang",N);break;case"xmlSpace":He(m,"http://www.w3.org/XML/1998/namespace","xml:space",N);break;case"is":Oe(m,"is",N);break;case"innerText":case"textContent":break;default:(!(2<E.length)||E[0]!=="o"&&E[0]!=="O"||E[1]!=="n"&&E[1]!=="N")&&(E=Xx.get(E)||E,Oe(m,E,N))}}function Zse(m,v,E,N,q,Y){switch(E){case"style":jx(m,N,Y);break;case"dangerouslySetInnerHTML":if(N!=null){if(typeof N!="object"||!("__html"in N))throw Error(n(61));if(E=N.__html,E!=null){if(q.children!=null)throw Error(n(60));m.innerHTML=E}}break;case"children":typeof N=="string"?ld(m,N):(typeof N=="number"||typeof N=="bigint")&&ld(m,""+N);break;case"onScroll":N!=null&&gi("scroll",m);break;case"onScrollEnd":N!=null&&gi("scrollend",m);break;case"onClick":N!=null&&(m.onclick=il);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sa.hasOwnProperty(E))e:{if(E[0]==="o"&&E[1]==="n"&&(q=E.endsWith("Capture"),v=E.slice(2,q?E.length-7:void 0),Y=m[Rt]||null,Y=Y!=null?Y[E]:null,typeof Y=="function"&&m.removeEventListener(v,Y,q),typeof N=="function")){typeof Y!="function"&&Y!==null&&(E in m?m[E]=null:m.hasAttribute(E)&&m.removeAttribute(E)),m.addEventListener(v,N,q);break e}E in m?m[E]=N:N===!0?m.setAttribute(E,""):Oe(m,E,N)}}}function As(m,v,E){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gi("error",m),gi("load",m);var N=!1,q=!1,Y;for(Y in E)if(E.hasOwnProperty(Y)){var ie=E[Y];if(ie!=null)switch(Y){case"src":N=!0;break;case"srcSet":q=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,v));default:rn(m,v,Y,ie,E,null)}}q&&rn(m,v,"srcSet",E.srcSet,E,null),N&&rn(m,v,"src",E.src,E,null);return;case"input":gi("invalid",m);var be=Y=ie=q=null,Ke=null,vt=null;for(N in E)if(E.hasOwnProperty(N)){var Lt=E[N];if(Lt!=null)switch(N){case"name":q=Lt;break;case"type":ie=Lt;break;case"checked":Ke=Lt;break;case"defaultChecked":vt=Lt;break;case"value":Y=Lt;break;case"defaultValue":be=Lt;break;case"children":case"dangerouslySetInnerHTML":if(Lt!=null)throw Error(n(137,v));break;default:rn(m,v,N,Lt,E,null)}}Yx(m,Y,be,Ke,vt,ie,q,!1);return;case"select":gi("invalid",m),N=ie=Y=null;for(q in E)if(E.hasOwnProperty(q)&&(be=E[q],be!=null))switch(q){case"value":Y=be;break;case"defaultValue":ie=be;break;case"multiple":N=be;default:rn(m,v,q,be,E,null)}v=Y,E=ie,m.multiple=!!N,v!=null?d0(m,!!N,v,!1):E!=null&&d0(m,!!N,E,!0);return;case"textarea":gi("invalid",m),Y=q=N=null;for(ie in E)if(E.hasOwnProperty(ie)&&(be=E[ie],be!=null))switch(ie){case"value":N=be;break;case"defaultValue":q=be;break;case"children":Y=be;break;case"dangerouslySetInnerHTML":if(be!=null)throw Error(n(91));break;default:rn(m,v,ie,be,E,null)}ss(m,N,q,Y);return;case"option":for(Ke in E)E.hasOwnProperty(Ke)&&(N=E[Ke],N!=null)&&(Ke==="selected"?m.selected=N&&typeof N!="function"&&typeof N!="symbol":rn(m,v,Ke,N,E,null));return;case"dialog":gi("beforetoggle",m),gi("toggle",m),gi("cancel",m),gi("close",m);break;case"iframe":case"object":gi("load",m);break;case"video":case"audio":for(N=0;N<e3.length;N++)gi(e3[N],m);break;case"image":gi("error",m),gi("load",m);break;case"details":gi("toggle",m);break;case"embed":case"source":case"link":gi("error",m),gi("load",m);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(vt in E)if(E.hasOwnProperty(vt)&&(N=E[vt],N!=null))switch(vt){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,v));default:rn(m,v,vt,N,E,null)}return;default:if(cd(v)){for(Lt in E)E.hasOwnProperty(Lt)&&(N=E[Lt],N!==void 0&&Zse(m,v,Lt,N,E,void 0));return}}for(be in E)E.hasOwnProperty(be)&&(N=E[be],N!=null&&rn(m,v,be,N,E,null))}function fGt(m,v,E,N){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var q=null,Y=null,ie=null,be=null,Ke=null,vt=null,Lt=null;for(Ct in E){var Bt=E[Ct];if(E.hasOwnProperty(Ct)&&Bt!=null)switch(Ct){case"checked":break;case"value":break;case"defaultValue":Ke=Bt;default:N.hasOwnProperty(Ct)||rn(m,v,Ct,null,N,Bt)}}for(var xt in N){var Ct=N[xt];if(Bt=E[xt],N.hasOwnProperty(xt)&&(Ct!=null||Bt!=null))switch(xt){case"type":Y=Ct;break;case"name":q=Ct;break;case"checked":vt=Ct;break;case"defaultChecked":Lt=Ct;break;case"value":ie=Ct;break;case"defaultValue":be=Ct;break;case"children":case"dangerouslySetInnerHTML":if(Ct!=null)throw Error(n(137,v));break;default:Ct!==Bt&&rn(m,v,xt,Ct,N,Bt)}}Ry(m,ie,be,Ke,vt,Lt,Y,q);return;case"select":Ct=ie=be=xt=null;for(Y in E)if(Ke=E[Y],E.hasOwnProperty(Y)&&Ke!=null)switch(Y){case"value":break;case"multiple":Ct=Ke;default:N.hasOwnProperty(Y)||rn(m,v,Y,null,N,Ke)}for(q in N)if(Y=N[q],Ke=E[q],N.hasOwnProperty(q)&&(Y!=null||Ke!=null))switch(q){case"value":xt=Y;break;case"defaultValue":be=Y;break;case"multiple":ie=Y;default:Y!==Ke&&rn(m,v,q,Y,N,Ke)}v=be,E=ie,N=Ct,xt!=null?d0(m,!!E,xt,!1):!!N!=!!E&&(v!=null?d0(m,!!E,v,!0):d0(m,!!E,E?[]:"",!1));return;case"textarea":Ct=xt=null;for(be in E)if(q=E[be],E.hasOwnProperty(be)&&q!=null&&!N.hasOwnProperty(be))switch(be){case"value":break;case"children":break;default:rn(m,v,be,null,N,q)}for(ie in N)if(q=N[ie],Y=E[ie],N.hasOwnProperty(ie)&&(q!=null||Y!=null))switch(ie){case"value":xt=q;break;case"defaultValue":Ct=q;break;case"children":break;case"dangerouslySetInnerHTML":if(q!=null)throw Error(n(91));break;default:q!==Y&&rn(m,v,ie,q,N,Y)}T5(m,xt,Ct);return;case"option":for(var xr in E)xt=E[xr],E.hasOwnProperty(xr)&&xt!=null&&!N.hasOwnProperty(xr)&&(xr==="selected"?m.selected=!1:rn(m,v,xr,null,N,xt));for(Ke in N)xt=N[Ke],Ct=E[Ke],N.hasOwnProperty(Ke)&&xt!==Ct&&(xt!=null||Ct!=null)&&(Ke==="selected"?m.selected=xt&&typeof xt!="function"&&typeof xt!="symbol":rn(m,v,Ke,xt,N,Ct));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Hr in E)xt=E[Hr],E.hasOwnProperty(Hr)&&xt!=null&&!N.hasOwnProperty(Hr)&&rn(m,v,Hr,null,N,xt);for(vt in N)if(xt=N[vt],Ct=E[vt],N.hasOwnProperty(vt)&&xt!==Ct&&(xt!=null||Ct!=null))switch(vt){case"children":case"dangerouslySetInnerHTML":if(xt!=null)throw Error(n(137,v));break;default:rn(m,v,vt,xt,N,Ct)}return;default:if(cd(v)){for(var nn in E)xt=E[nn],E.hasOwnProperty(nn)&&xt!==void 0&&!N.hasOwnProperty(nn)&&Zse(m,v,nn,void 0,N,xt);for(Lt in N)xt=N[Lt],Ct=E[Lt],!N.hasOwnProperty(Lt)||xt===Ct||xt===void 0&&Ct===void 0||Zse(m,v,Lt,xt,N,Ct);return}}for(var lt in E)xt=E[lt],E.hasOwnProperty(lt)&&xt!=null&&!N.hasOwnProperty(lt)&&rn(m,v,lt,null,N,xt);for(Bt in N)xt=N[Bt],Ct=E[Bt],!N.hasOwnProperty(Bt)||xt===Ct||xt==null&&Ct==null||rn(m,v,Bt,xt,N,Ct)}function mnt(m){switch(m){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pGt(){if(typeof performance.getEntriesByType=="function"){for(var m=0,v=0,E=performance.getEntriesByType("resource"),N=0;N<E.length;N++){var q=E[N],Y=q.transferSize,ie=q.initiatorType,be=q.duration;if(Y&&be&&mnt(ie)){for(ie=0,be=q.responseEnd,N+=1;N<E.length;N++){var Ke=E[N],vt=Ke.startTime;if(vt>be)break;var Lt=Ke.transferSize,Bt=Ke.initiatorType;Lt&&mnt(Bt)&&(Ke=Ke.responseEnd,ie+=Lt*(Ke<be?1:(be-vt)/(Ke-vt)))}if(--N,v+=8*(Y+ie)/(q.duration/1e3),m++,10<m)break}}if(0<m)return v/m/1e6}return navigator.connection&&(m=navigator.connection.downlink,typeof m=="number")?m:5}var Jse=null,eoe=null;function jM(m){return m.nodeType===9?m:m.ownerDocument}function ynt(m){switch(m){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vnt(m,v){if(m===0)switch(v){case"svg":return 1;case"math":return 2;default:return 0}return m===1&&v==="foreignObject"?0:m}function toe(m,v){return m==="textarea"||m==="noscript"||typeof v.children=="string"||typeof v.children=="number"||typeof v.children=="bigint"||typeof v.dangerouslySetInnerHTML=="object"&&v.dangerouslySetInnerHTML!==null&&v.dangerouslySetInnerHTML.__html!=null}var roe=null;function gGt(){var m=window.event;return m&&m.type==="popstate"?m===roe?!1:(roe=m,!0):(roe=null,!1)}var bnt=typeof setTimeout=="function"?setTimeout:void 0,mGt=typeof clearTimeout=="function"?clearTimeout:void 0,xnt=typeof Promise=="function"?Promise:void 0,yGt=typeof queueMicrotask=="function"?queueMicrotask:typeof xnt<"u"?function(m){return xnt.resolve(null).then(m).catch(vGt)}:bnt;function vGt(m){setTimeout(function(){throw m})}function A0(m){return m==="head"}function Tnt(m,v){var E=v,N=0;do{var q=E.nextSibling;if(m.removeChild(E),q&&q.nodeType===8)if(E=q.data,E==="/$"||E==="/&"){if(N===0){m.removeChild(q),ST(v);return}N--}else if(E==="$"||E==="$?"||E==="$~"||E==="$!"||E==="&")N++;else if(E==="html")r3(m.ownerDocument.documentElement);else if(E==="head"){E=m.ownerDocument.head,r3(E);for(var Y=E.firstChild;Y;){var ie=Y.nextSibling,be=Y.nodeName;Y[Ve]||be==="SCRIPT"||be==="STYLE"||be==="LINK"&&Y.rel.toLowerCase()==="stylesheet"||E.removeChild(Y),Y=ie}}else E==="body"&&r3(m.ownerDocument.body);E=q}while(E);ST(v)}function wnt(m,v){var E=m;m=0;do{var N=E.nextSibling;if(E.nodeType===1?v?(E._stashedDisplay=E.style.display,E.style.display="none"):(E.style.display=E._stashedDisplay||"",E.getAttribute("style")===""&&E.removeAttribute("style")):E.nodeType===3&&(v?(E._stashedText=E.nodeValue,E.nodeValue=""):E.nodeValue=E._stashedText||""),N&&N.nodeType===8)if(E=N.data,E==="/$"){if(m===0)break;m--}else E!=="$"&&E!=="$?"&&E!=="$~"&&E!=="$!"||m++;E=N}while(E)}function ioe(m){var v=m.firstChild;for(v&&v.nodeType===10&&(v=v.nextSibling);v;){var E=v;switch(v=v.nextSibling,E.nodeName){case"HTML":case"HEAD":case"BODY":ioe(E),Et(E);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(E.rel.toLowerCase()==="stylesheet")continue}m.removeChild(E)}}function bGt(m,v,E,N){for(;m.nodeType===1;){var q=E;if(m.nodeName.toLowerCase()!==v.toLowerCase()){if(!N&&(m.nodeName!=="INPUT"||m.type!=="hidden"))break}else if(N){if(!m[Ve])switch(v){case"meta":if(!m.hasAttribute("itemprop"))break;return m;case"link":if(Y=m.getAttribute("rel"),Y==="stylesheet"&&m.hasAttribute("data-precedence"))break;if(Y!==q.rel||m.getAttribute("href")!==(q.href==null||q.href===""?null:q.href)||m.getAttribute("crossorigin")!==(q.crossOrigin==null?null:q.crossOrigin)||m.getAttribute("title")!==(q.title==null?null:q.title))break;return m;case"style":if(m.hasAttribute("data-precedence"))break;return m;case"script":if(Y=m.getAttribute("src"),(Y!==(q.src==null?null:q.src)||m.getAttribute("type")!==(q.type==null?null:q.type)||m.getAttribute("crossorigin")!==(q.crossOrigin==null?null:q.crossOrigin))&&Y&&m.hasAttribute("async")&&!m.hasAttribute("itemprop"))break;return m;default:return m}}else if(v==="input"&&m.type==="hidden"){var Y=q.name==null?null:""+q.name;if(q.type==="hidden"&&m.getAttribute("name")===Y)return m}else return m;if(m=Ec(m.nextSibling),m===null)break}return null}function xGt(m,v,E){if(v==="")return null;for(;m.nodeType!==3;)if((m.nodeType!==1||m.nodeName!=="INPUT"||m.type!=="hidden")&&!E||(m=Ec(m.nextSibling),m===null))return null;return m}function Ent(m,v){for(;m.nodeType!==8;)if((m.nodeType!==1||m.nodeName!=="INPUT"||m.type!=="hidden")&&!v||(m=Ec(m.nextSibling),m===null))return null;return m}function noe(m){return m.data==="$?"||m.data==="$~"}function aoe(m){return m.data==="$!"||m.data==="$?"&&m.ownerDocument.readyState!=="loading"}function TGt(m,v){var E=m.ownerDocument;if(m.data==="$~")m._reactRetry=v;else if(m.data!=="$?"||E.readyState!=="loading")v();else{var N=function(){v(),E.removeEventListener("DOMContentLoaded",N)};E.addEventListener("DOMContentLoaded",N),m._reactRetry=N}}function Ec(m){for(;m!=null;m=m.nextSibling){var v=m.nodeType;if(v===1||v===3)break;if(v===8){if(v=m.data,v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"||v==="F!"||v==="F")break;if(v==="/$"||v==="/&")return null}}return m}var soe=null;function knt(m){m=m.nextSibling;for(var v=0;m;){if(m.nodeType===8){var E=m.data;if(E==="/$"||E==="/&"){if(v===0)return Ec(m.nextSibling);v--}else E!=="$"&&E!=="$!"&&E!=="$?"&&E!=="$~"&&E!=="&"||v++}m=m.nextSibling}return null}function Cnt(m){m=m.previousSibling;for(var v=0;m;){if(m.nodeType===8){var E=m.data;if(E==="$"||E==="$!"||E==="$?"||E==="$~"||E==="&"){if(v===0)return m;v--}else E!=="/$"&&E!=="/&"||v++}m=m.previousSibling}return null}function Snt(m,v,E){switch(v=jM(E),m){case"html":if(m=v.documentElement,!m)throw Error(n(452));return m;case"head":if(m=v.head,!m)throw Error(n(453));return m;case"body":if(m=v.body,!m)throw Error(n(454));return m;default:throw Error(n(451))}}function r3(m){for(var v=m.attributes;v.length;)m.removeAttributeNode(v[0]);Et(m)}var kc=new Map,_nt=new Set;function XM(m){return typeof m.getRootNode=="function"?m.getRootNode():m.nodeType===9?m:m.ownerDocument}var sp=$.d;$.d={f:wGt,r:EGt,D:kGt,C:CGt,L:SGt,m:_Gt,X:LGt,S:AGt,M:RGt};function wGt(){var m=sp.f(),v=zM();return m||v}function EGt(m){var v=br(m);v!==null&&v.tag===5&&v.type==="form"?Wrt(v):sp.r(m)}var ET=typeof document>"u"?null:document;function Ant(m,v,E){var N=ET;if(N&&typeof v=="string"&&v){var q=Aa(v);q='link[rel="'+m+'"][href="'+q+'"]',typeof E=="string"&&(q+='[crossorigin="'+E+'"]'),_nt.has(q)||(_nt.add(q),m={rel:m,crossOrigin:E,href:v},N.querySelector(q)===null&&(v=N.createElement("link"),As(v,"link",m),Yr(v),N.head.appendChild(v)))}}function kGt(m){sp.D(m),Ant("dns-prefetch",m,null)}function CGt(m,v){sp.C(m,v),Ant("preconnect",m,v)}function SGt(m,v,E){sp.L(m,v,E);var N=ET;if(N&&m&&v){var q='link[rel="preload"][as="'+Aa(v)+'"]';v==="image"&&E&&E.imageSrcSet?(q+='[imagesrcset="'+Aa(E.imageSrcSet)+'"]',typeof E.imageSizes=="string"&&(q+='[imagesizes="'+Aa(E.imageSizes)+'"]')):q+='[href="'+Aa(m)+'"]';var Y=q;switch(v){case"style":Y=kT(m);break;case"script":Y=CT(m)}kc.has(Y)||(m=f({rel:"preload",href:v==="image"&&E&&E.imageSrcSet?void 0:m,as:v},E),kc.set(Y,m),N.querySelector(q)!==null||v==="style"&&N.querySelector(i3(Y))||v==="script"&&N.querySelector(n3(Y))||(v=N.createElement("link"),As(v,"link",m),Yr(v),N.head.appendChild(v)))}}function _Gt(m,v){sp.m(m,v);var E=ET;if(E&&m){var N=v&&typeof v.as=="string"?v.as:"script",q='link[rel="modulepreload"][as="'+Aa(N)+'"][href="'+Aa(m)+'"]',Y=q;switch(N){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":Y=CT(m)}if(!kc.has(Y)&&(m=f({rel:"modulepreload",href:m},v),kc.set(Y,m),E.querySelector(q)===null)){switch(N){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(E.querySelector(n3(Y)))return}N=E.createElement("link"),As(N,"link",m),Yr(N),E.head.appendChild(N)}}}function AGt(m,v,E){sp.S(m,v,E);var N=ET;if(N&&m){var q=Si(N).hoistableStyles,Y=kT(m);v=v||"default";var ie=q.get(Y);if(!ie){var be={loading:0,preload:null};if(ie=N.querySelector(i3(Y)))be.loading=5;else{m=f({rel:"stylesheet",href:m,"data-precedence":v},E),(E=kc.get(Y))&&ooe(m,E);var Ke=ie=N.createElement("link");Yr(Ke),As(Ke,"link",m),Ke._p=new Promise(function(vt,Lt){Ke.onload=vt,Ke.onerror=Lt}),Ke.addEventListener("load",function(){be.loading|=1}),Ke.addEventListener("error",function(){be.loading|=2}),be.loading|=4,KM(ie,v,N)}ie={type:"stylesheet",instance:ie,count:1,state:be},q.set(Y,ie)}}}function LGt(m,v){sp.X(m,v);var E=ET;if(E&&m){var N=Si(E).hoistableScripts,q=CT(m),Y=N.get(q);Y||(Y=E.querySelector(n3(q)),Y||(m=f({src:m,async:!0},v),(v=kc.get(q))&&loe(m,v),Y=E.createElement("script"),Yr(Y),As(Y,"link",m),E.head.appendChild(Y)),Y={type:"script",instance:Y,count:1,state:null},N.set(q,Y))}}function RGt(m,v){sp.M(m,v);var E=ET;if(E&&m){var N=Si(E).hoistableScripts,q=CT(m),Y=N.get(q);Y||(Y=E.querySelector(n3(q)),Y||(m=f({src:m,async:!0,type:"module"},v),(v=kc.get(q))&&loe(m,v),Y=E.createElement("script"),Yr(Y),As(Y,"link",m),E.head.appendChild(Y)),Y={type:"script",instance:Y,count:1,state:null},N.set(q,Y))}}function Lnt(m,v,E,N){var q=(q=ee.current)?XM(q):null;if(!q)throw Error(n(446));switch(m){case"meta":case"title":return null;case"style":return typeof E.precedence=="string"&&typeof E.href=="string"?(v=kT(E.href),E=Si(q).hoistableStyles,N=E.get(v),N||(N={type:"style",instance:null,count:0,state:null},E.set(v,N)),N):{type:"void",instance:null,count:0,state:null};case"link":if(E.rel==="stylesheet"&&typeof E.href=="string"&&typeof E.precedence=="string"){m=kT(E.href);var Y=Si(q).hoistableStyles,ie=Y.get(m);if(ie||(q=q.ownerDocument||q,ie={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},Y.set(m,ie),(Y=q.querySelector(i3(m)))&&!Y._p&&(ie.instance=Y,ie.state.loading=5),kc.has(m)||(E={rel:"preload",as:"style",href:E.href,crossOrigin:E.crossOrigin,integrity:E.integrity,media:E.media,hrefLang:E.hrefLang,referrerPolicy:E.referrerPolicy},kc.set(m,E),Y||NGt(q,m,E,ie.state))),v&&N===null)throw Error(n(528,""));return ie}if(v&&N!==null)throw Error(n(529,""));return null;case"script":return v=E.async,E=E.src,typeof E=="string"&&v&&typeof v!="function"&&typeof v!="symbol"?(v=CT(E),E=Si(q).hoistableScripts,N=E.get(v),N||(N={type:"script",instance:null,count:0,state:null},E.set(v,N)),N):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,m))}}function kT(m){return'href="'+Aa(m)+'"'}function i3(m){return'link[rel="stylesheet"]['+m+"]"}function Rnt(m){return f({},m,{"data-precedence":m.precedence,precedence:null})}function NGt(m,v,E,N){m.querySelector('link[rel="preload"][as="style"]['+v+"]")?N.loading=1:(v=m.createElement("link"),N.preload=v,v.addEventListener("load",function(){return N.loading|=1}),v.addEventListener("error",function(){return N.loading|=2}),As(v,"link",E),Yr(v),m.head.appendChild(v))}function CT(m){return'[src="'+Aa(m)+'"]'}function n3(m){return"script[async]"+m}function Nnt(m,v,E){if(v.count++,v.instance===null)switch(v.type){case"style":var N=m.querySelector('style[data-href~="'+Aa(E.href)+'"]');if(N)return v.instance=N,Yr(N),N;var q=f({},E,{"data-href":E.href,"data-precedence":E.precedence,href:null,precedence:null});return N=(m.ownerDocument||m).createElement("style"),Yr(N),As(N,"style",q),KM(N,E.precedence,m),v.instance=N;case"stylesheet":q=kT(E.href);var Y=m.querySelector(i3(q));if(Y)return v.state.loading|=4,v.instance=Y,Yr(Y),Y;N=Rnt(E),(q=kc.get(q))&&ooe(N,q),Y=(m.ownerDocument||m).createElement("link"),Yr(Y);var ie=Y;return ie._p=new Promise(function(be,Ke){ie.onload=be,ie.onerror=Ke}),As(Y,"link",N),v.state.loading|=4,KM(Y,E.precedence,m),v.instance=Y;case"script":return Y=CT(E.src),(q=m.querySelector(n3(Y)))?(v.instance=q,Yr(q),q):(N=E,(q=kc.get(Y))&&(N=f({},E),loe(N,q)),m=m.ownerDocument||m,q=m.createElement("script"),Yr(q),As(q,"link",N),m.head.appendChild(q),v.instance=q);case"void":return null;default:throw Error(n(443,v.type))}else v.type==="stylesheet"&&(v.state.loading&4)===0&&(N=v.instance,v.state.loading|=4,KM(N,E.precedence,m));return v.instance}function KM(m,v,E){for(var N=E.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),q=N.length?N[N.length-1]:null,Y=q,ie=0;ie<N.length;ie++){var be=N[ie];if(be.dataset.precedence===v)Y=be;else if(Y!==q)break}Y?Y.parentNode.insertBefore(m,Y.nextSibling):(v=E.nodeType===9?E.head:E,v.insertBefore(m,v.firstChild))}function ooe(m,v){m.crossOrigin??=v.crossOrigin,m.referrerPolicy??=v.referrerPolicy,m.title??=v.title}function loe(m,v){m.crossOrigin??=v.crossOrigin,m.referrerPolicy??=v.referrerPolicy,m.integrity??=v.integrity}var QM=null;function Dnt(m,v,E){if(QM===null){var N=new Map,q=QM=new Map;q.set(E,N)}else q=QM,N=q.get(E),N||(N=new Map,q.set(E,N));if(N.has(m))return N;for(N.set(m,null),E=E.getElementsByTagName(m),q=0;q<E.length;q++){var Y=E[q];if(!(Y[Ve]||Y[at]||m==="link"&&Y.getAttribute("rel")==="stylesheet")&&Y.namespaceURI!=="http://www.w3.org/2000/svg"){var ie=Y.getAttribute(v)||"";ie=m+ie;var be=N.get(ie);be?be.push(Y):N.set(ie,[Y])}}return N}function Int(m,v,E){m=m.ownerDocument||m,m.head.insertBefore(E,v==="title"?m.querySelector("head > title"):null)}function DGt(m,v,E){if(E===1||v.itemProp!=null)return!1;switch(m){case"meta":case"title":return!0;case"style":if(typeof v.precedence!="string"||typeof v.href!="string"||v.href==="")break;return!0;case"link":if(typeof v.rel!="string"||typeof v.href!="string"||v.href===""||v.onLoad||v.onError)break;return v.rel==="stylesheet"?(m=v.disabled,typeof v.precedence=="string"&&m==null):!0;case"script":if(v.async&&typeof v.async!="function"&&typeof v.async!="symbol"&&!v.onLoad&&!v.onError&&v.src&&typeof v.src=="string")return!0}return!1}function Mnt(m){return!(m.type==="stylesheet"&&(m.state.loading&3)===0)}function IGt(m,v,E,N){if(E.type==="stylesheet"&&(typeof N.media!="string"||matchMedia(N.media).matches!==!1)&&(E.state.loading&4)===0){if(E.instance===null){var q=kT(N.href),Y=v.querySelector(i3(q));if(Y){v=Y._p,v!==null&&typeof v=="object"&&typeof v.then=="function"&&(m.count++,m=ZM.bind(m),v.then(m,m)),E.state.loading|=4,E.instance=Y,Yr(Y);return}Y=v.ownerDocument||v,N=Rnt(N),(q=kc.get(q))&&ooe(N,q),Y=Y.createElement("link"),Yr(Y);var ie=Y;ie._p=new Promise(function(be,Ke){ie.onload=be,ie.onerror=Ke}),As(Y,"link",N),E.instance=Y}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(E,v),(v=E.state.preload)&&(E.state.loading&3)===0&&(m.count++,E=ZM.bind(m),v.addEventListener("load",E),v.addEventListener("error",E))}}var coe=0;function MGt(m,v){return m.stylesheets&&m.count===0&&eO(m,m.stylesheets),0<m.count||0<m.imgCount?function(E){var N=setTimeout(function(){if(m.stylesheets&&eO(m,m.stylesheets),m.unsuspend){var Y=m.unsuspend;m.unsuspend=null,Y()}},6e4+v);0<m.imgBytes&&coe===0&&(coe=62500*pGt());var q=setTimeout(function(){if(m.waitingForImages=!1,m.count===0&&(m.stylesheets&&eO(m,m.stylesheets),m.unsuspend)){var Y=m.unsuspend;m.unsuspend=null,Y()}},(m.imgBytes>coe?50:800)+v);return m.unsuspend=E,function(){m.unsuspend=null,clearTimeout(N),clearTimeout(q)}}:null}function ZM(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eO(this,this.stylesheets);else if(this.unsuspend){var m=this.unsuspend;this.unsuspend=null,m()}}}var JM=null;function eO(m,v){m.stylesheets=null,m.unsuspend!==null&&(m.count++,JM=new Map,v.forEach(OGt,m),JM=null,ZM.call(m))}function OGt(m,v){if(!(v.state.loading&4)){var E=JM.get(m);if(E)var N=E.get(null);else{E=new Map,JM.set(m,E);for(var q=m.querySelectorAll("link[data-precedence],style[data-precedence]"),Y=0;Y<q.length;Y++){var ie=q[Y];(ie.nodeName==="LINK"||ie.getAttribute("media")!=="not all")&&(E.set(ie.dataset.precedence,ie),N=ie)}N&&E.set(null,N)}q=v.instance,ie=q.getAttribute("data-precedence"),Y=E.get(ie)||N,Y===N&&E.set(null,q),E.set(ie,q),this.count++,N=ZM.bind(this),q.addEventListener("load",N),q.addEventListener("error",N),Y?Y.parentNode.insertBefore(q,Y.nextSibling):(m=m.nodeType===9?m.head:m,m.insertBefore(q,m.firstChild)),v.state.loading|=4}}var a3={$$typeof:C,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function PGt(m,v,E,N,q,Y,ie,be,Ke){this.tag=1,this.containerInfo=m,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mt(0),this.hiddenUpdates=Mt(null),this.identifierPrefix=N,this.onUncaughtError=q,this.onCaughtError=Y,this.onRecoverableError=ie,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ke,this.incompleteTransitions=new Map}function BGt(m,v,E,N,q,Y,ie,be,Ke,vt,Lt,Bt){return m=new PGt(m,v,E,ie,Ke,vt,Lt,Bt,be),v=1,Y===!0&&(v|=24),Y=Ol(3,null,null,v),m.current=Y,Y.stateNode=m,v=Vae(),v.refCount++,m.pooledCache=v,v.refCount++,Y.memoizedState={element:N,isDehydrated:E,cache:v},Yae(Y),m}function FGt(m){return m?(m=rT,m):rT}function Ont(m,v,E,N,q,Y){q=FGt(q),N.context===null?N.context=q:N.pendingContext=q,N=Gy(v),N.payload={element:E},Y=Y===void 0?null:Y,Y!==null&&(N.callback=Y),E=Wy(m,N,v),E!==null&&(cl(E,m,v),B5(E,m,v))}function Pnt(m,v){if(m=m.memoizedState,m!==null&&m.dehydrated!==null){var E=m.retryLane;m.retryLane=E!==0&&E<v?E:v}}function uoe(m,v){Pnt(m,v),(m=m.alternate)&&Pnt(m,v)}function Bnt(m){if(m.tag===13||m.tag===31){var v=Py(m,67108864);v!==null&&cl(v,m,67108864),uoe(m,67108864)}}function Fnt(m){if(m.tag===13||m.tag===31){var v=wc();v=Ft(v);var E=Py(m,v);E!==null&&cl(E,m,v),uoe(m,v)}}var tO=!0;function $Gt(m,v,E,N){var q=D.T;D.T=null;var Y=$.p;try{$.p=2,hoe(m,v,E,N)}finally{$.p=Y,D.T=q}}function zGt(m,v,E,N){var q=D.T;D.T=null;var Y=$.p;try{$.p=8,hoe(m,v,E,N)}finally{$.p=Y,D.T=q}}function hoe(m,v,E,N){if(tO){var q=doe(N);if(q===null)Qse(m,v,N,rO,E),znt(m,N);else if(HGt(q,m,v,E,N))N.stopPropagation();else if(znt(m,N),v&4&&-1<UGt.indexOf(m)){for(;q!==null;){var Y=br(q);if(Y!==null)switch(Y.tag){case 3:if(Y=Y.stateNode,Y.current.memoizedState.isDehydrated){var ie=ve(Y.pendingLanes);if(ie!==0){var be=Y;for(be.pendingLanes|=2,be.entangledLanes|=2;ie;){var Ke=1<<31-Ie(ie);be.entanglements[1]|=Ke,ie&=~Ke}ap(Y),(qi&6)===0&&(FM=Ze()+500,J5(0,!1))}}break;case 31:case 13:be=Py(Y,2),be!==null&&cl(be,Y,2),zM(),uoe(Y,2)}if(Y=doe(N),Y===null&&Qse(m,v,N,rO,E),Y===q)break;q=Y}q!==null&&N.stopPropagation()}else Qse(m,v,N,null,E)}}function doe(m){return m=io(m),foe(m)}var rO=null;function foe(m){if(rO=null,m=zt(m),m!==null){var v=s(m);if(v===null)m=null;else{var E=v.tag;if(E===13){if(m=o(v),m!==null)return m;m=null}else if(E===31){if(m=l(v),m!==null)return m;m=null}else if(E===3){if(v.stateNode.current.memoizedState.isDehydrated)return v.tag===3?v.stateNode.containerInfo:null;m=null}else v!==m&&(m=null)}}return rO=m,null}function $nt(m){switch(m){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Re()){case $e:return 2;case he:return 8;case Je:case oe:return 32;case ke:return 268435456;default:return 32}default:return 32}}var poe=!1,L0=null,R0=null,N0=null,s3=new Map,o3=new Map,D0=[],UGt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function znt(m,v){switch(m){case"focusin":case"focusout":L0=null;break;case"dragenter":case"dragleave":R0=null;break;case"mouseover":case"mouseout":N0=null;break;case"pointerover":case"pointerout":s3.delete(v.pointerId);break;case"gotpointercapture":case"lostpointercapture":o3.delete(v.pointerId)}}function l3(m,v,E,N,q,Y){return m===null||m.nativeEvent!==Y?(m={blockedOn:v,domEventName:E,eventSystemFlags:N,nativeEvent:Y,targetContainers:[q]},v!==null&&(v=br(v),v!==null&&Bnt(v)),m):(m.eventSystemFlags|=N,v=m.targetContainers,q!==null&&v.indexOf(q)===-1&&v.push(q),m)}function HGt(m,v,E,N,q){switch(v){case"focusin":return L0=l3(L0,m,v,E,N,q),!0;case"dragenter":return R0=l3(R0,m,v,E,N,q),!0;case"mouseover":return N0=l3(N0,m,v,E,N,q),!0;case"pointerover":var Y=q.pointerId;return s3.set(Y,l3(s3.get(Y)||null,m,v,E,N,q)),!0;case"gotpointercapture":return Y=q.pointerId,o3.set(Y,l3(o3.get(Y)||null,m,v,E,N,q)),!0}return!1}function Unt(m){var v=zt(m.target);if(v!==null){var E=s(v);if(E!==null){if(v=E.tag,v===13){if(v=o(E),v!==null){m.blockedOn=v,Le(m.priority,function(){Fnt(E)});return}}else if(v===31){if(v=l(E),v!==null){m.blockedOn=v,Le(m.priority,function(){Fnt(E)});return}}else if(v===3&&E.stateNode.current.memoizedState.isDehydrated){m.blockedOn=E.tag===3?E.stateNode.containerInfo:null;return}}}m.blockedOn=null}function iO(m){if(m.blockedOn!==null)return!1;for(var v=m.targetContainers;0<v.length;){var E=doe(m.nativeEvent);if(E===null){E=m.nativeEvent;var N=new E.constructor(E.type,E);Dy=N,E.target.dispatchEvent(N),Dy=null}else return v=br(E),v!==null&&Bnt(v),m.blockedOn=E,!1;v.shift()}return!0}function Hnt(m,v,E){iO(m)&&E.delete(v)}function VGt(){poe=!1,L0!==null&&iO(L0)&&(L0=null),R0!==null&&iO(R0)&&(R0=null),N0!==null&&iO(N0)&&(N0=null),s3.forEach(Hnt),o3.forEach(Hnt)}function nO(m,v){m.blockedOn===v&&(m.blockedOn=null,poe||(poe=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,VGt)))}var aO=null;function Vnt(m){aO!==m&&(aO=m,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){aO===m&&(aO=null);for(var v=0;v<m.length;v+=3){var E=m[v],N=m[v+1],q=m[v+2];if(typeof N!="function"){if(foe(N||E)===null)continue;break}var Y=br(E);Y!==null&&(m.splice(v,3),v-=3,fse(Y,{pending:!0,data:q,method:E.method,action:N},N,q))}}))}function ST(m){function v(Ke){return nO(Ke,m)}L0!==null&&nO(L0,m),R0!==null&&nO(R0,m),N0!==null&&nO(N0,m),s3.forEach(v),o3.forEach(v);for(var E=0;E<D0.length;E++){var N=D0[E];N.blockedOn===m&&(N.blockedOn=null)}for(;0<D0.length&&(E=D0[0],E.blockedOn===null);)Unt(E),E.blockedOn===null&&D0.shift();if(E=(m.ownerDocument||m).$$reactFormReplay,E!=null)for(N=0;N<E.length;N+=3){var q=E[N],Y=E[N+1],ie=q[Rt]||null;if(typeof Y=="function")ie||Vnt(E);else if(ie){var be=null;if(Y&&Y.hasAttribute("formAction")){if(q=Y,ie=Y[Rt]||null)be=ie.formAction;else if(foe(q)!==null)continue}else be=ie.action;typeof be=="function"?E[N+1]=be:(E.splice(N,3),N-=3),Vnt(E)}}}function qGt(){function m(Y){Y.canIntercept&&Y.info==="react-transition"&&Y.intercept({handler:function(){return new Promise(function(ie){return q=ie})},focusReset:"manual",scroll:"manual"})}function v(){q!==null&&(q(),q=null),N||setTimeout(E,20)}function E(){if(!N&&!navigation.transition){var Y=navigation.currentEntry;Y&&Y.url!=null&&navigation.navigate(Y.url,{state:Y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var N=!1,q=null;return navigation.addEventListener("navigate",m),navigation.addEventListener("navigatesuccess",v),navigation.addEventListener("navigateerror",v),setTimeout(E,100),function(){N=!0,navigation.removeEventListener("navigate",m),navigation.removeEventListener("navigatesuccess",v),navigation.removeEventListener("navigateerror",v),q!==null&&(q(),q=null)}}}function goe(m){this._internalRoot=m}moe.prototype.render=goe.prototype.render=function(m){var v=this._internalRoot;if(v===null)throw Error(n(409));var E=v.current;Ont(E,wc(),m,v,null,null)},moe.prototype.unmount=goe.prototype.unmount=function(){var m=this._internalRoot;if(m!==null){this._internalRoot=null;var v=m.containerInfo;Ont(m.current,2,null,m,null,null),zM(),v[pr]=null}};function moe(m){this._internalRoot=m}moe.prototype.unstable_scheduleHydration=function(m){if(m){var v=St();m={blockedOn:null,target:m,priority:v};for(var E=0;E<D0.length&&v!==0&&v<D0[E].priority;E++);D0.splice(E,0,m),E===0&&Unt(m)}};var qnt=r.version;if(qnt!=="19.2.5")throw Error(n(527,qnt,"19.2.5"));$.findDOMNode=function(m){var v=m._reactInternals;if(v===void 0)throw typeof m.render=="function"?Error(n(188)):(m=Object.keys(m).join(","),Error(n(268,m)));return m=h(v),m=m!==null?d(m):null,m=m===null?null:m.stateNode,m};var GGt={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sO=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sO.isDisabled&&sO.supportsFiber)try{fe=sO.inject(GGt),Te=sO}catch{}}e.createRoot=function(m,v){if(!a(m))throw Error(n(299));var E=!1,N="",q=zqt,Y=Uqt,ie=Hqt;return v!=null&&(v.unstable_strictMode===!0&&(E=!0),v.identifierPrefix!==void 0&&(N=v.identifierPrefix),v.onUncaughtError!==void 0&&(q=v.onUncaughtError),v.onCaughtError!==void 0&&(Y=v.onCaughtError),v.onRecoverableError!==void 0&&(ie=v.onRecoverableError)),v=BGt(m,1,!1,null,null,E,N,null,q,Y,ie,qGt),m[pr]=v.current,hnt(m),new goe(v)}})),mat=lr(((e,t)=>{function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}r(),t.exports=gat()})),Ne=Wa(Zy(),1),yat=mat(),Jy=["Ask me anything…","How can I help you today?","Try: What can you do?"],vat="Need help?",koe="Assistant",bat="Mana",xat="Start chat",Tat="Start a new conversation",wat="Ask anything…",d3="Powered by UserEQ",Eat="No conversation started",kat="Start a new conversation to get started.",f3={avatarOrbColor1:"#2563eb",avatarOrbColor2:"#60a5fa",actionText:"Need help?"};function Coe(e){return{avatarOrbColor1:uO(e?.avatarOrbColor1)??f3.avatarOrbColor1,avatarOrbColor2:uO(e?.avatarOrbColor2)??f3.avatarOrbColor2,actionText:uO(e?.actionText)??f3.actionText}}function ev(e){const t=Coe(e);return{background:`linear-gradient(135deg, ${t.avatarOrbColor1}, ${t.avatarOrbColor2})`}}function cO(e){const t=Coe(e);return{background:`linear-gradient(135deg, ${t.avatarOrbColor1}, ${t.avatarOrbColor2})`,boxShadow:`0 10px 24px color-mix(in srgb, ${t.avatarOrbColor1} 22%, transparent)`}}function uO(e){const t=e?.trim();return t||null}var Cat="default",Sat=f3;function _at(e){if(!e)return"none";switch(e.triggerRuleType){case"time_delay":return`time_delay:${e.timeDelay}`;case"scroll_to_bottom":return`scroll_to_bottom:${String(e.scrollToBottom)}`;case"element_clicked":return`element_clicked:${e.elementClicked}`;case"element_displayed":return`element_displayed:${e.elementDisplayed}`;default:return"unknown"}}function Aat(e){switch(e){case"facebook_messenger":case"facebook-messenger":return"facebook_messenger";case"default":return"default";default:return Cat}}function Lat(e){switch(e){case"chatbar":case"box":case"default":return e;default:return"chatbar"}}function Rat(e){switch(e){case"top-left":case"top-center":case"top-right":case"bottom-left":case"bottom-center":case"bottom-right":return e;default:return"bottom-right"}}function Soe(e){const[t,r]=e.split("-");return{horizontal:r,vertical:t}}function _oe(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=_oe(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function p3(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=_oe(e))&&(i&&(i+=" "),i+=t);return i}var hO=V((()=>{})),Aoe,Loe,dO,AT,fO,Roe,Noe,pO,Doe,Ioe,Moe,g3,Ooe,Poe,Boe,Foe,gO,$oe,zoe,m3,mO,Uoe,yO,Hoe,Voe,qoe,Goe,Woe,Yoe,vO,joe,Xoe,da,bO,xO,Koe,Qoe,Zoe,Joe,ele,tle,fd,ii,pd,y3,Ou,TO,rle,v3,ile,nle,ale,sle,vr,lp,wO,ole,lle,EO,cle,LT,Tr,tv,ule,kO,hle,dle,RT,fle,gd,cp,CO,SO,_O,AO,ple,LO,RO,NO,gle,b3,mle=V((()=>{Aoe=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},Loe=(e,t)=>({classGroupId:e,validator:t}),dO=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),AT="-",fO=[],Roe="arbitrary..",Noe=e=>{const t=Ioe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Doe(s);const o=s.split(AT);return pO(o,o[0]===""&&o.length>1?1:0,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const l=i[s],u=r[s];return l?u?Aoe(u,l):l:u||fO}return r[s]||fO}}},pO=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],n=r.nextPart.get(i);if(n){const l=pO(e,t+1,n);if(l)return l}const a=r.validators;if(a===null)return;const s=t===0?e.join(AT):e.slice(t).join(AT),o=a.length;for(let l=0;l<o;l++){const u=a[l];if(u.validator(s))return u.classGroupId}},Doe=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?Roe+i:void 0})(),Ioe=e=>{const{theme:t,classGroups:r}=e;return Moe(r,t)},Moe=(e,t)=>{const r=dO();for(const i in e){const n=e[i];g3(n,r,i,t)}return r},g3=(e,t,r,i)=>{const n=e.length;for(let a=0;a<n;a++){const s=e[a];Ooe(s,t,r,i)}},Ooe=(e,t,r,i)=>{if(typeof e=="string"){Poe(e,t,r);return}if(typeof e=="function"){Boe(e,t,r,i);return}Foe(e,t,r,i)},Poe=(e,t,r)=>{const i=e===""?t:gO(t,e);i.classGroupId=r},Boe=(e,t,r,i)=>{if($oe(e)){g3(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Loe(r,e))},Foe=(e,t,r,i)=>{const n=Object.entries(e),a=n.length;for(let s=0;s<a;s++){const[o,l]=n[s];g3(l,gO(t,o),r,i)}},gO=(e,t)=>{let r=e;const i=t.split(AT),n=i.length;for(let a=0;a<n;a++){const s=i[a];let o=r.nextPart.get(s);o||(o=dO(),r.nextPart.set(s,o)),r=o}return r},$oe=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,zoe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const n=(a,s)=>{r[a]=s,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(a){let s=r[a];if(s!==void 0)return s;if((s=i[a])!==void 0)return n(a,s),s},set(a,s){a in r?r[a]=s:n(a,s)}}},m3="!",mO=":",Uoe=[],yO=(e,t,r,i,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:n}),Hoe=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=n=>{const a=[];let s=0,o=0,l=0,u;const h=n.length;for(let y=0;y<h;y++){const b=n[y];if(s===0&&o===0){if(b===mO){a.push(n.slice(l,y)),l=y+1;continue}if(b==="/"){u=y;continue}}b==="["?s++:b==="]"?s--:b==="("?o++:b===")"&&o--}const d=a.length===0?n:n.slice(l);let f=d,p=!1;d.endsWith(m3)?(f=d.slice(0,-1),p=!0):d.startsWith(m3)&&(f=d.slice(1),p=!0);const g=u&&u>l?u-l:void 0;return yO(a,p,f,g)};if(t){const n=t+mO,a=i;i=s=>s.startsWith(n)?a(s.slice(n.length)):yO(Uoe,!1,s,void 0,!0)}if(r){const n=i;i=a=>r({className:a,parseClassName:n})}return i},Voe=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let n=[];for(let a=0;a<r.length;a++){const s=r[a],o=s[0]==="[",l=t.has(s);o||l?(n.length>0&&(n.sort(),i.push(...n),n=[]),i.push(s)):n.push(s)}return n.length>0&&(n.sort(),i.push(...n)),i}},qoe=e=>({cache:zoe(e.cacheSize),parseClassName:Hoe(e),sortModifiers:Voe(e),...Noe(e)}),Goe=/\s+/,Woe=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:n,sortModifiers:a}=t,s=[],o=e.trim().split(Goe);let l="";for(let u=o.length-1;u>=0;u-=1){const h=o[u],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=r(h);if(d){l=h+(l.length>0?" "+l:l);continue}let b=!!y,T=i(b?g.substring(0,y):g);if(!T){if(!b){l=h+(l.length>0?" "+l:l);continue}if(T=i(g),!T){l=h+(l.length>0?" "+l:l);continue}b=!1}const w=f.length===0?"":f.length===1?f[0]:a(f).join(":"),x=p?w+m3:w,C=x+T;if(s.indexOf(C)>-1)continue;s.push(C);const L=n(T,b);for(let _=0;_<L.length;++_){const S=L[_];s.push(x+S)}l=h+(l.length>0?" "+l:l)}return l},Yoe=(...e)=>{let t=0,r,i,n="";for(;t<e.length;)(r=e[t++])&&(i=vO(r))&&(n&&(n+=" "),n+=i);return n},vO=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=vO(e[i]))&&(r&&(r+=" "),r+=t);return r},joe=(e,...t)=>{let r,i,n,a;const s=l=>(r=qoe(t.reduce((u,h)=>h(u),e())),i=r.cache.get,n=r.cache.set,a=o,o(l)),o=l=>{const u=i(l);if(u)return u;const h=Woe(l,r);return n(l,h),h};return a=s,(...l)=>a(Yoe(...l))},Xoe=[],da=e=>{const t=r=>r[e]||Xoe;return t.isThemeGetter=!0,t},bO=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xO=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Koe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qoe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zoe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Joe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ele=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tle=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fd=e=>Koe.test(e),ii=e=>!!e&&!Number.isNaN(Number(e)),pd=e=>!!e&&Number.isInteger(Number(e)),y3=e=>e.endsWith("%")&&ii(e.slice(0,-1)),Ou=e=>Qoe.test(e),TO=()=>!0,rle=e=>Zoe.test(e)&&!Joe.test(e),v3=()=>!1,ile=e=>ele.test(e),nle=e=>tle.test(e),ale=e=>!vr(e)&&!Tr(e),sle=e=>gd(e,_O,v3),vr=e=>bO.test(e),lp=e=>gd(e,AO,rle),wO=e=>gd(e,ple,ii),ole=e=>gd(e,RO,TO),lle=e=>gd(e,LO,v3),EO=e=>gd(e,CO,v3),cle=e=>gd(e,SO,nle),LT=e=>gd(e,NO,ile),Tr=e=>xO.test(e),tv=e=>cp(e,AO),ule=e=>cp(e,LO),kO=e=>cp(e,CO),hle=e=>cp(e,_O),dle=e=>cp(e,SO),RT=e=>cp(e,NO,!0),fle=e=>cp(e,RO,!0),gd=(e,t,r)=>{const i=bO.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},cp=(e,t,r=!1)=>{const i=xO.exec(e);return i?i[1]?t(i[1]):r:!1},CO=e=>e==="position"||e==="percentage",SO=e=>e==="image"||e==="url",_O=e=>e==="length"||e==="size"||e==="bg-size",AO=e=>e==="length",ple=e=>e==="number",LO=e=>e==="family-name",RO=e=>e==="number"||e==="weight",NO=e=>e==="shadow",gle=()=>{const e=da("color"),t=da("font"),r=da("text"),i=da("font-weight"),n=da("tracking"),a=da("leading"),s=da("breakpoint"),o=da("container"),l=da("spacing"),u=da("radius"),h=da("shadow"),d=da("inset-shadow"),f=da("text-shadow"),p=da("drop-shadow"),g=da("blur"),y=da("perspective"),b=da("aspect"),T=da("ease"),w=da("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...C(),Tr,vr],_=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],A=()=>[Tr,vr,l],P=()=>[fd,"full","auto",...A()],O=()=>[pd,"none","subgrid",Tr,vr],M=()=>["auto",{span:["full",pd,Tr,vr]},pd,Tr,vr],U=()=>[pd,"auto",Tr,vr],R=()=>["auto","min","max","fr",Tr,vr],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...A()],D=()=>[fd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],$=()=>[fd,"screen","full","dvw","lvw","svw","min","max","fit",...A()],H=()=>[fd,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],z=()=>[e,Tr,vr],j=()=>[...C(),kO,EO,{position:[Tr,vr]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",hle,sle,{size:[Tr,vr]}],K=()=>[y3,tv,lp],Z=()=>["","none","full",u,Tr,vr],re=()=>["",ii,tv,lp],ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[ii,y3,kO,EO],le=()=>["","none",g,Tr,vr],ce=()=>["none",ii,Tr,vr],ue=()=>["none",ii,Tr,vr],we=()=>[ii,Tr,vr],Ee=()=>[fd,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ou],breakpoint:[Ou],color:[TO],container:[Ou],"drop-shadow":[Ou],ease:["in","out","in-out"],font:[ale],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ou],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ou],shadow:[Ou],spacing:["px",ii],text:[Ou],"text-shadow":[Ou],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fd,vr,Tr,b]}],container:["container"],columns:[{columns:[ii,vr,Tr,o]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[pd,"auto",Tr,vr]}],basis:[{basis:[fd,"full","auto",o,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ii,fd,"auto","initial","none",vr]}],grow:[{grow:["",ii,Tr,vr]}],shrink:[{shrink:["",ii,Tr,vr]}],order:[{order:[pd,"first","last","none",Tr,vr]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[o,"screen",...D()]}],"min-w":[{"min-w":[o,"screen","none",...D()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,tv,lp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,fle,ole]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",y3,vr]}],"font-family":[{font:[ule,lle,t]}],"font-features":[{"font-features":[vr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Tr,vr]}],"line-clamp":[{"line-clamp":[ii,"none",Tr,wO]}],leading:[{leading:[a,...A()]}],"list-image":[{"list-image":["none",Tr,vr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Tr,vr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[ii,"from-font","auto",Tr,lp]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[ii,"auto",Tr,vr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Tr,vr]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Tr,vr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pd,Tr,vr],radial:["",Tr,vr],conic:[pd,Tr,vr]},dle,cle]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ii,Tr,vr]}],"outline-w":[{outline:["",ii,tv,lp]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",h,RT,LT]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",d,RT,LT]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[ii,lp]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",f,RT,LT]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[ii,Tr,vr]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ii]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[Tr,vr]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ii]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Tr,vr]}],filter:[{filter:["","none",Tr,vr]}],blur:[{blur:le()}],brightness:[{brightness:[ii,Tr,vr]}],contrast:[{contrast:[ii,Tr,vr]}],"drop-shadow":[{"drop-shadow":["","none",p,RT,LT]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",ii,Tr,vr]}],"hue-rotate":[{"hue-rotate":[ii,Tr,vr]}],invert:[{invert:["",ii,Tr,vr]}],saturate:[{saturate:[ii,Tr,vr]}],sepia:[{sepia:["",ii,Tr,vr]}],"backdrop-filter":[{"backdrop-filter":["","none",Tr,vr]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[ii,Tr,vr]}],"backdrop-contrast":[{"backdrop-contrast":[ii,Tr,vr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ii,Tr,vr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ii,Tr,vr]}],"backdrop-invert":[{"backdrop-invert":["",ii,Tr,vr]}],"backdrop-opacity":[{"backdrop-opacity":[ii,Tr,vr]}],"backdrop-saturate":[{"backdrop-saturate":[ii,Tr,vr]}],"backdrop-sepia":[{"backdrop-sepia":["",ii,Tr,vr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Tr,vr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ii,"initial",Tr,vr]}],ease:[{ease:["linear","initial",T,Tr,vr]}],delay:[{delay:[ii,Tr,vr]}],animate:[{animate:["none",w,Tr,vr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Tr,vr]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Tr,vr,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Tr,vr]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Tr,vr]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[ii,tv,lp,wO]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},b3=joe(gle)}));hO(),mle();function qr(...e){return b3(p3(e))}var Nat=lr((e=>{var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(n,a,s){var o=null;if(s!==void 0&&(o=""+s),a.key!==void 0&&(o=""+a.key),"key"in a){s={};for(var l in a)l!=="key"&&(s[l]=a[l])}else s=a;return a=s.ref,{$$typeof:t,type:n,key:o,ref:a!==void 0?a:null,props:s}}e.Fragment=r,e.jsx=i,e.jsxs=i})),DO=lr(((e,t)=>{t.exports=Nat()})),Pe=DO(),IO=(0,Ne.createContext)({});function MO(e){const t=(0,Ne.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Dat=typeof window<"u",yle=Dat?Ne.useLayoutEffect:Ne.useEffect,x3=(0,Ne.createContext)(null);function OO(e,t){e.indexOf(t)===-1&&e.push(t)}function T3(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}var Pu=(e,t,r)=>r>t?t:r<e?e:r,w3=()=>{},rv=()=>{},up={},vle=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ble(e){return typeof e=="object"&&e!==null}var xle=e=>/^0[^.\s]+$/u.test(e);function Tle(e){let t;return()=>(t===void 0&&(t=e()),t)}var zl=e=>e,Iat=(e,t)=>r=>t(e(r)),NT=(...e)=>e.reduce(Iat),DT=(e,t,r)=>{const i=t-e;return i===0?1:(r-e)/i},PO=class{constructor(){this.subscriptions=[]}add(e){return OO(this.subscriptions,e),()=>T3(this.subscriptions,e)}notify(e,t,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,r);else for(let n=0;n<i;n++){const a=this.subscriptions[n];a&&a(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Io=e=>e*1e3,Ul=e=>e/1e3;function wle(e,t){return t?e*(1e3/t):0}var Ele=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Mat=1e-7,Oat=12;function Pat(e,t,r,i,n){let a,s,o=0;do s=t+(r-t)/2,a=Ele(s,i,n)-e,a>0?r=s:t=s;while(Math.abs(a)>Mat&&++o<Oat);return s}function IT(e,t,r,i){if(e===t&&r===i)return zl;const n=a=>Pat(a,0,1,e,r);return a=>a===0||a===1?a:Ele(n(a),t,i)}var kle=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cle=e=>t=>1-e(1-t),Sle=IT(.33,1.53,.69,.99),BO=Cle(Sle),_le=kle(BO),Ale=e=>e>=1?1:(e*=2)<1?.5*BO(e):.5*(2-Math.pow(2,-10*(e-1))),FO=e=>1-Math.sin(Math.acos(e)),Lle=Cle(FO),Rle=kle(FO),Bat=IT(.42,0,1,1),Fat=IT(0,0,.58,1),Nle=IT(.42,0,.58,1),$at=e=>Array.isArray(e)&&typeof e[0]!="number",Dle=e=>Array.isArray(e)&&typeof e[0]=="number",Ile={linear:zl,easeIn:Bat,easeInOut:Nle,easeOut:Fat,circIn:FO,circInOut:Rle,circOut:Lle,backIn:BO,backInOut:_le,backOut:Sle,anticipate:Ale},zat=e=>typeof e=="string",Mle=e=>{if(Dle(e)){rv(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,i,n]=e;return IT(t,r,i,n)}else if(zat(e))return rv(Ile[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ile[e];return e},E3=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Bu={value:null,addProjectionMetrics:null};function Uat(e,t){let r=new Set,i=new Set,n=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){s.has(d)&&(h.schedule(d),e()),l++,d(o)}const h={schedule:(d,f=!1,p=!1)=>{const g=p&&n?r:i;return f&&s.add(d),g.add(d),d},cancel:d=>{i.delete(d),s.delete(d)},process:d=>{if(o=d,n){a=!0;return}n=!0;const f=r;r=i,i=f,r.forEach(u),t&&Bu.value&&Bu.value.frameloop[t].push(l),l=0,r.clear(),n=!1,a&&(a=!1,h.process(d))}};return h}var Hat=40;function Ole(e,t){let r=!1,i=!0;const n={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,s=E3.reduce((x,C)=>(x[C]=Uat(a,t?C:void 0),x),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:f,render:p,postRender:g}=s,y=()=>{const x=up.useManualTiming,C=x?n.timestamp:performance.now();r=!1,x||(n.delta=i?1e3/60:Math.max(Math.min(C-n.timestamp,Hat),1)),n.timestamp=C,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),h.process(n),d.process(n),f.process(n),p.process(n),g.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(y))},b=()=>{r=!0,i=!0,n.isProcessing||e(y)};return{schedule:E3.reduce((x,C)=>{const L=s[C];return x[C]=(_,S=!1,A=!1)=>(r||b(),L.schedule(_,S,A)),x},{}),cancel:x=>{for(let C=0;C<E3.length;C++)s[E3[C]].cancel(x)},state:n,steps:s}}var{schedule:an,cancel:hp,state:ls,steps:$O}=Ole(typeof requestAnimationFrame<"u"?requestAnimationFrame:zl,!0),k3;function Vat(){k3=void 0}var no={now:()=>(k3===void 0&&no.set(ls.isProcessing||up.useManualTiming?ls.timestamp:performance.now()),k3),set:e=>{k3=e,queueMicrotask(Vat)}},M0={layout:0,mainThread:0,waapi:0},Ple=e=>t=>typeof t=="string"&&t.startsWith(e),Ble=Ple("--"),qat=Ple("var(--"),zO=e=>qat(e)?Gat.test(e.split("/*")[0].trim()):!1,Gat=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fle(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var iv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},MT={...iv,transform:e=>Pu(0,1,e)},C3={...iv,default:1},OT=e=>Math.round(e*1e5)/1e5,UO=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Wat(e){return e==null}var Yat=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,HO=(e,t)=>r=>!!(typeof r=="string"&&Yat.test(r)&&r.startsWith(e)||t&&!Wat(r)&&Object.prototype.hasOwnProperty.call(r,t)),$le=(e,t,r)=>i=>{if(typeof i!="string")return i;const[n,a,s,o]=i.match(UO);return{[e]:parseFloat(n),[t]:parseFloat(a),[r]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},jat=e=>Pu(0,255,e),VO={...iv,transform:e=>Math.round(jat(e))},O0={test:HO("rgb","red"),parse:$le("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+VO.transform(e)+", "+VO.transform(t)+", "+VO.transform(r)+", "+OT(MT.transform(i))+")"};function Xat(e){let t="",r="",i="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}var qO={test:HO("#"),parse:Xat,transform:O0.transform},PT=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),dp=PT("deg"),Fu=PT("%"),wr=PT("px"),Kat=PT("vh"),Qat=PT("vw"),zle={...Fu,parse:e=>Fu.parse(e)/100,transform:e=>Fu.transform(e*100)},nv={test:HO("hsl","hue"),parse:$le("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+Fu.transform(OT(t))+", "+Fu.transform(OT(r))+", "+OT(MT.transform(i))+")"},fa={test:e=>O0.test(e)||qO.test(e)||nv.test(e),parse:e=>O0.test(e)?O0.parse(e):nv.test(e)?nv.parse(e):qO.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?O0.transform(e):nv.transform(e),getAnimatableNone:e=>{const t=fa.parse(e);return t.alpha=0,fa.transform(t)}},Zat=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jat(e){return isNaN(e)&&typeof e=="string"&&(e.match(UO)?.length||0)+(e.match(Zat)?.length||0)>0}var Ule="number",Hle="color",est="var",tst="var(",Vle="${}",rst=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function av(e){const t=e.toString(),r=[],i={color:[],number:[],var:[]},n=[];let a=0;return{values:r,split:t.replace(rst,s=>(fa.test(s)?(i.color.push(a),n.push(Hle),r.push(fa.parse(s))):s.startsWith(tst)?(i.var.push(a),n.push(est),r.push(s)):(i.number.push(a),n.push(Ule),r.push(parseFloat(s))),++a,Vle)).split(Vle),indexes:i,types:n}}function ist(e){return av(e).values}function qle({split:e,types:t}){const r=e.length;return i=>{let n="";for(let a=0;a<r;a++)if(n+=e[a],i[a]!==void 0){const s=t[a];s===Ule?n+=OT(i[a]):s===Hle?n+=fa.transform(i[a]):n+=i[a]}return n}}function nst(e){return qle(av(e))}var ast=e=>typeof e=="number"?0:fa.test(e)?fa.getAnimatableNone(e):e,sst=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:ast(e);function ost(e){const t=av(e);return qle(t)(t.values.map((r,i)=>sst(r,t.split[i])))}var Cc={test:Jat,parse:ist,createTransformer:nst,getAnimatableNone:ost};function GO(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function lst({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,t/=100,r/=100;let n=0,a=0,s=0;if(!t)n=a=s=r;else{const o=r<.5?r*(1+t):r+t-r*t,l=2*r-o;n=GO(l,o,e+1/3),a=GO(l,o,e),s=GO(l,o,e-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:i}}function S3(e,t){return r=>r>0?t:e}var vn=(e,t,r)=>e+(t-e)*r,WO=(e,t,r)=>{const i=e*e,n=r*(t*t-i)+i;return n<0?0:Math.sqrt(n)},cst=[qO,O0,nv],ust=e=>cst.find(t=>t.test(e));function Gle(e){const t=ust(e);if(w3(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===nv&&(r=lst(r)),r}var Wle=(e,t)=>{const r=Gle(e),i=Gle(t);if(!r||!i)return S3(e,t);const n={...r};return a=>(n.red=WO(r.red,i.red,a),n.green=WO(r.green,i.green,a),n.blue=WO(r.blue,i.blue,a),n.alpha=vn(r.alpha,i.alpha,a),O0.transform(n))},YO=new Set(["none","hidden"]);function hst(e,t){return YO.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function dst(e,t){return r=>vn(e,t,r)}function jO(e){return typeof e=="number"?dst:typeof e=="string"?zO(e)?S3:fa.test(e)?Wle:gst:Array.isArray(e)?Yle:typeof e=="object"?fa.test(e)?Wle:fst:S3}function Yle(e,t){const r=[...e],i=r.length,n=e.map((a,s)=>jO(a)(a,t[s]));return a=>{for(let s=0;s<i;s++)r[s]=n[s](a);return r}}function fst(e,t){const r={...e,...t},i={};for(const n in r)e[n]!==void 0&&t[n]!==void 0&&(i[n]=jO(e[n])(e[n],t[n]));return n=>{for(const a in i)r[a]=i[a](n);return r}}function pst(e,t){const r=[],i={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){const a=t.types[n],s=e.indexes[a][i[a]];r[n]=e.values[s]??0,i[a]++}return r}var gst=(e,t)=>{const r=Cc.createTransformer(t),i=av(e),n=av(t);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?YO.has(e)&&!n.values.length||YO.has(t)&&!i.values.length?hst(e,t):NT(Yle(pst(i,n),n.values),r):(w3(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),S3(e,t))};function jle(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?vn(e,t,r):jO(e)(e,t)}var mst=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>an.update(t,r),stop:()=>hp(t),now:()=>ls.isProcessing?ls.timestamp:no.now()}},Xle=(e,t,r=10)=>{let i="";const n=Math.max(Math.round(t/r),2);for(let a=0;a<n;a++)i+=Math.round(e(a/(n-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Kle=2e4;function XO(e){let t=0;const r=50;let i=e.next(t);for(;!i.done&&t<2e4;)t+=r,i=e.next(t);return t>=2e4?1/0:t}function yst(e,t=100,r){const i=r({...e,keyframes:[0,t]}),n=Math.min(XO(i),Kle);return{type:"keyframes",ease:a=>i.next(n*a).value/t,duration:Ul(n)}}var Bn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function KO(e,t){return e*Math.sqrt(1-t*t)}var vst=12;function bst(e,t,r){let i=r;for(let n=1;n<vst;n++)i=i-e(i)/t(i);return i}var QO=.001;function xst({duration:e=Bn.duration,bounce:t=Bn.bounce,velocity:r=Bn.velocity,mass:i=Bn.mass}){let n,a;w3(e<=Io(Bn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Pu(Bn.minDamping,Bn.maxDamping,s),e=Pu(Bn.minDuration,Bn.maxDuration,Ul(e)),s<1?(n=u=>{const h=u*s,d=h*e,f=h-r,p=KO(u,s),g=Math.exp(-d);return QO-f/p*g},a=u=>{const h=u*s*e,d=h*r+r,f=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-h),g=KO(Math.pow(u,2),s);return(-n(u)+QO>0?-1:1)*((d-f)*p)/g}):(n=u=>{const h=Math.exp(-u*e),d=(u-r)*e+1;return-QO+h*d},a=u=>Math.exp(-u*e)*((r-u)*(e*e)));const o=5/e,l=bst(n,a,o);if(e=Io(e),isNaN(l))return{stiffness:Bn.stiffness,damping:Bn.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}var Tst=["duration","bounce"],wst=["stiffness","damping","mass"];function Qle(e,t){return t.some(r=>e[r]!==void 0)}function Est(e){let t={velocity:Bn.velocity,stiffness:Bn.stiffness,damping:Bn.damping,mass:Bn.mass,isResolvedFromDuration:!1,...e};if(!Qle(e,wst)&&Qle(e,Tst))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,i=2*Math.PI/(r*1.2),n=i*i,a=2*Pu(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:Bn.mass,stiffness:n,damping:a}}else{const r=xst({...e,velocity:0});t={...t,...r,mass:Bn.mass},t.isResolvedFromDuration=!0}return t}function _3(e=Bn.visualDuration,t=Bn.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:n}=r;const a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:u,mass:h,duration:d,velocity:f,isResolvedFromDuration:p}=Est({...r,velocity:-Ul(r.velocity||0)}),g=f||0,y=u/(2*Math.sqrt(l*h)),b=s-a,T=Ul(Math.sqrt(l/h)),w=Math.abs(b)<5;i||(i=w?Bn.restSpeed.granular:Bn.restSpeed.default),n||(n=w?Bn.restDelta.granular:Bn.restDelta.default);let x,C,L,_,S,A;if(y<1)L=KO(T,y),_=(g+y*T*b)/L,x=O=>s-Math.exp(-y*T*O)*(_*Math.sin(L*O)+b*Math.cos(L*O)),S=y*T*_+b*L,A=y*T*b-_*L,C=O=>Math.exp(-y*T*O)*(S*Math.sin(L*O)+A*Math.cos(L*O));else if(y===1){x=M=>s-Math.exp(-T*M)*(b+(g+T*b)*M);const O=g+T*b;C=M=>Math.exp(-T*M)*(T*O*M-g)}else{const O=T*Math.sqrt(y*y-1);x=F=>{const I=Math.exp(-y*T*F),B=Math.min(O*F,300);return s-I*((g+y*T*b)*Math.sinh(B)+O*b*Math.cosh(B))/O};const M=(g+y*T*b)/O,U=y*T*M-b*O,R=y*T*b-M*O;C=F=>{const I=Math.exp(-y*T*F),B=Math.min(O*F,300);return I*(U*Math.sinh(B)+R*Math.cosh(B))}}const P={calculatedDuration:p&&d||null,velocity:O=>Io(C(O)),next:O=>{if(!p&&y<1){const U=Math.exp(-y*T*O),R=Math.sin(L*O),F=Math.cos(L*O),I=s-U*(_*R+b*F),B=Io(U*(S*R+A*F));return o.done=Math.abs(B)<=i&&Math.abs(s-I)<=n,o.value=o.done?s:I,o}const M=x(O);if(p)o.done=O>=d;else{const U=Io(C(O));o.done=Math.abs(U)<=i&&Math.abs(s-M)<=n}return o.value=o.done?s:M,o},toString:()=>{const O=Math.min(XO(P),Kle),M=Xle(U=>P.next(O*U).value,O,30);return O+"ms "+M},toTransition:()=>{}};return P}_3.applyToOptions=e=>{const t=yst(e,100,_3);return e.ease=t.ease,e.duration=Io(t.duration),e.type="keyframes",e};var kst=5;function Zle(e,t,r){const i=Math.max(t-kst,0);return wle(r-e(i),t-i)}function ZO({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:h}){const d=e[0],f={done:!1,value:d},p=A=>o!==void 0&&A<o||l!==void 0&&A>l,g=A=>o===void 0?l:l===void 0||Math.abs(o-A)<Math.abs(l-A)?o:l;let y=r*t;const b=d+y,T=s===void 0?b:s(b);T!==b&&(y=T-d);const w=A=>-y*Math.exp(-A/i),x=A=>T+w(A),C=A=>{const P=w(A),O=x(A);f.done=Math.abs(P)<=u,f.value=f.done?T:O};let L,_;const S=A=>{p(f.value)&&(L=A,_=_3({keyframes:[f.value,g(f.value)],velocity:Zle(x,A,f.value),damping:n,stiffness:a,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:A=>{let P=!1;return!_&&L===void 0&&(P=!0,C(A),S(A)),L!==void 0&&A>=L?_.next(A-L):(!P&&C(A),f)}}}function Cst(e,t,r){const i=[],n=r||up.mix||jle,a=e.length-1;for(let s=0;s<a;s++){let o=n(e[s],e[s+1]);t&&(o=NT(Array.isArray(t)?t[s]||zl:t,o)),i.push(o)}return i}function Sst(e,t,{clamp:r=!0,ease:i,mixer:n}={}){const a=e.length;if(rv(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Cst(t,i,n),l=o.length,u=h=>{if(s&&h<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(h<e[d+1]);d++);const f=DT(e[d],e[d+1],h);return o[d](f)};return r?h=>u(Pu(e[0],e[a-1],h)):u}function _st(e,t){const r=e[e.length-1];for(let i=1;i<=t;i++){const n=DT(0,t,i);e.push(vn(r,1,n))}}function Ast(e){const t=[0];return _st(t,e.length-1),t}function Lst(e,t){return e.map(r=>r*t)}function Rst(e,t){return e.map(()=>t||Nle).splice(0,e.length-1)}function BT({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){const n=$at(i)?i.map(Mle):Mle(i),a={done:!1,value:t[0]},s=Sst(Lst(r&&r.length===t.length?r:Ast(t),e),t,{ease:Array.isArray(n)?n:Rst(t,n)});return{calculatedDuration:e,next:o=>(a.value=s(o),a.done=o>=e,a)}}var Nst=e=>e!==null;function A3(e,{repeat:t,repeatType:r="loop"},i,n=1){const a=e.filter(Nst),s=n<0||t&&r!=="loop"&&t%2===1?0:a.length-1;return!s||i===void 0?a[s]:i}var Dst={decay:ZO,inertia:ZO,tween:BT,keyframes:BT,spring:_3};function Jle(e){typeof e.type=="string"&&(e.type=Dst[e.type])}var JO=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Ist=e=>e/100,L3=class extends JO{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==no.now()&&this.tick(no.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},M0.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Jle(e);const{type:t=BT,repeat:r=0,repeatDelay:i=0,repeatType:n,velocity:a=0}=e;let{keyframes:s}=e;const o=t||BT;o!==BT&&typeof s[0]!="number"&&(this.mixKeyframes=NT(Ist,jle(s[0],s[1])),s=[0,100]);const l=o({...e,keyframes:s});n==="mirror"&&(this.mirroredGenerator=o({...e,keyframes:[...s].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=XO(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:r,totalDuration:i,mixKeyframes:n,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:o}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,x=r;if(h){const S=Math.min(this.currentTime,i)/s;let A=Math.floor(S),P=S%1;!P&&S>=1&&(P=1),P===1&&A--,A=Math.min(A,h+1),A%2&&(d==="reverse"?(P=1-P,f&&(P-=f/s)):d==="mirror"&&(x=a)),w=Pu(0,1,P)*s}let C;T?(this.delayState.value=u[0],C=this.delayState):C=x.next(w),n&&!T&&(C.value=n(C.value));let{done:L}=C;!T&&o!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return _&&p!==ZO&&(C.value=A3(u,this.options,y,this.speed)),g&&g(C.value),_&&this.finish(),C}then(e,t){return this.finished.then(e,t)}get duration(){return Ul(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ul(e)}get time(){return Ul(this.currentTime)}set time(e){e=Io(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const t=this.generator.next(e).value;return Zle(r=>this.generator.next(r).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(no.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Ul(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=mst,startTime:t}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(no.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,M0.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Mst(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var P0=e=>e*180/Math.PI,e9=e=>t9(P0(Math.atan2(e[1],e[0]))),Ost={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:e9,rotateZ:e9,skewX:e=>P0(Math.atan(e[1])),skewY:e=>P0(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},t9=e=>(e=e%360,e<0&&(e+=360),e),ece=e9,tce=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),rce=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Pst={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tce,scaleY:rce,scale:e=>(tce(e)+rce(e))/2,rotateX:e=>t9(P0(Math.atan2(e[6],e[5]))),rotateY:e=>t9(P0(Math.atan2(-e[2],e[0]))),rotateZ:ece,rotate:ece,skewX:e=>P0(Math.atan(e[4])),skewY:e=>P0(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function r9(e){return e.includes("scale")?1:0}function i9(e,t){if(!e||e==="none")return r9(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,n;if(r)i=Pst,n=r;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Ost,n=o}if(!n)return r9(t);const a=i[t],s=n[1].split(",").map(Fst);return typeof a=="function"?a(s):s[a]}var Bst=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return i9(r,t)};function Fst(e){return parseFloat(e.trim())}var sv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ov=new Set(sv),ice=e=>e===iv||e===wr,$st=new Set(["x","y","z"]),zst=sv.filter(e=>!$st.has(e));function Ust(e){const t=[];return zst.forEach(r=>{const i=e.getValue(r);i!==void 0&&(t.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),t}var fp={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:i})=>{const n=e.max-e.min;return i==="border-box"?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:i})=>{const n=e.max-e.min;return i==="border-box"?n:n-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>i9(t,"x"),y:(e,{transform:t})=>i9(t,"y")};fp.translateX=fp.x,fp.translateY=fp.y;var B0=new Set,n9=!1,a9=!1,s9=!1;function nce(){if(a9){const e=Array.from(B0).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),r=new Map;t.forEach(i=>{const n=Ust(i);n.length&&(r.set(i,n),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const n=r.get(i);n&&n.forEach(([a,s])=>{i.getValue(a)?.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}a9=!1,n9=!1,B0.forEach(e=>e.complete(s9)),B0.clear()}function ace(){B0.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(a9=!0)})}function Hst(){s9=!0,ace(),nce(),s9=!1}var o9=class{constructor(e,t,r,i,n,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=i,this.element=n,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(B0.add(this),n9||(n9=!0,an.read(ace),an.resolveKeyframes(nce))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:i}=this;if(e[0]===null){const n=i?.get(),a=e[e.length-1];if(n!==void 0)e[0]=n;else if(r&&t){const s=r.readValue(t,a);s!=null&&(e[0]=s)}e[0]===void 0&&(e[0]=a),i&&n===void 0&&i.set(e[0])}Mst(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),B0.delete(this)}cancel(){this.state==="scheduled"&&(B0.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}},Vst=e=>e.startsWith("--");function sce(e,t,r){Vst(t)?e.style.setProperty(t,r):e.style[t]=r}var qst={};function oce(e,t){const r=Tle(e);return()=>qst[t]??r()}var Gst=oce(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),lce=oce(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),FT=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,cce={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:FT([0,.65,.55,1]),circOut:FT([.55,0,1,.45]),backIn:FT([.31,.01,.66,-.59]),backOut:FT([.33,1.53,.69,.99])};function uce(e,t){if(e)return typeof e=="function"?lce()?Xle(e,t):"ease-out":Dle(e)?FT(e):Array.isArray(e)?e.map(r=>uce(r,t)||cce.easeOut):cce[e]}function Wst(e,t,r,{delay:i=0,duration:n=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},u=void 0){const h={[t]:r};l&&(h.offset=l);const d=uce(o,n);Array.isArray(d)&&(h.easing=d),Bu.value&&M0.waapi++;const f={delay:i,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};u&&(f.pseudoElement=u);const p=e.animate(h,f);return Bu.value&&p.finished.finally(()=>{M0.waapi--}),p}function hce(e){return typeof e=="function"&&"applyToOptions"in e}function Yst({type:e,...t}){return hce(e)&&lce()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var dce=class extends JO{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:i,pseudoElement:n,allowFlatten:a=!1,finalKeyframe:s,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=a,this.options=e,rv(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Yst(e);this.animation=Wst(t,r,i,l,n),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){const u=A3(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(u),sce(t,r,u),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Ul(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ul(e)}get time(){return Ul(Number(this.animation.currentTime)||0)}set time(e){const t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Io(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Gst()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),zl):i(this)}},fce={anticipate:Ale,backInOut:_le,circInOut:Rle};function jst(e){return e in fce}function Xst(e){typeof e.ease=="string"&&jst(e.ease)&&(e.ease=fce[e.ease])}var l9=10,Kst=class extends dce{constructor(e){Xst(e),Jle(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:r,onComplete:i,element:n,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const s=new L3({...a,autoplay:!1}),o=Math.max(l9,no.now()-this.startTime),l=Pu(0,l9,o-l9),u=s.sample(o).value,{name:h}=this.options;n&&h&&sce(n,h,u),t.setWithVelocity(s.sample(Math.max(0,o-l)).value,u,l),s.stop()}},pce=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Cc.test(e)||e==="0")&&!e.startsWith("url("));function Qst(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Zst(e,t,r,i){const n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=pce(n,t),o=pce(a,t);return w3(s===o,`You are trying to animate ${t} from "${n}" to "${a}". "${s?a:n}" is not an animatable value.`,"value-not-animatable"),!s||!o?!1:Qst(e)||(r==="spring"||hce(r))&&i}function c9(e){e.duration=0,e.type="keyframes"}var gce=new Set(["opacity","clipPath","filter","transform"]),Jst=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function eot(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Jst.test(e[t]))return!0;return!1}var tot=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rot=Tle(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function iot(e){const{motionValue:t,name:r,repeatDelay:i,repeatType:n,damping:a,type:s,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return rot()&&r&&(gce.has(r)||tot.has(r)&&eot(o))&&(r!=="transform"||!u)&&!l&&!i&&n!=="mirror"&&a!==0&&s!=="inertia"}var not=40,aot=class extends JO{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:a="loop",keyframes:s,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=no.now();const d={autoplay:e,delay:t,type:r,repeat:i,repeatDelay:n,repeatType:a,name:o,motionValue:l,element:u,...h},f=u?.KeyframeResolver||o9;this.keyframeResolver=new f(s,(p,g,y)=>this.onKeyframesResolved(p,g,d,!y),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,i){this.keyframeResolver=void 0;const{name:n,type:a,velocity:s,delay:o,isHandoff:l,onUpdate:u}=r;this.resolvedAt=no.now();let h=!0;Zst(e,n,a,s)||(h=!1,(up.instantAnimations||!o)&&u?.(A3(e,r,t)),e[0]=e[e.length-1],c9(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>not?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},f=h&&!l&&iot(d),p=d.motionValue?.owner?.current;let g;if(f)try{g=new Kst({...d,element:p})}catch{g=new L3(d)}else g=new L3(d);g.finished.then(()=>{this.notifyFinished()}).catch(zl),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hst()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function mce(e,t,r,i=0,n=1){const a=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),s=e.size,o=(s-1)*i;return typeof r=="function"?r(a,s):n===1?a*i:o-a*i}var sot=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oot(e){const t=sot.exec(e);if(!t)return[,];const[,r,i,n]=t;return[`--${r??i}`,n]}var lot=4;function yce(e,t,r=1){rv(r<=lot,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,n]=oot(e);if(!i)return;const a=window.getComputedStyle(t).getPropertyValue(i);if(a){const s=a.trim();return vle(s)?parseFloat(s):s}return zO(n)?yce(n,t,r+1):n}var cot={type:"spring",stiffness:500,damping:25,restSpeed:10},uot=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hot={type:"keyframes",duration:.8},dot={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fot=(e,{keyframes:t})=>t.length>2?hot:ov.has(e)?e.startsWith("scale")?uot(t[1]):cot:dot;function vce(e,t){if(e?.inherit&&t){const{inherit:r,...i}=e;return{...t,...i}}return e}function u9(e,t){const r=e?.[t]??e?.default??e;return r!==e?vce(r,e):r}var pot=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function got(e){for(const t in e)if(!pot.has(t))return!0;return!1}var h9=(e,t,r,i={},n,a)=>s=>{const o=u9(i,e)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Io(l);const h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:n};got(o)||Object.assign(h,fot(e,h)),h.duration&&(h.duration=Io(h.duration)),h.repeatDelay&&(h.repeatDelay=Io(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let d=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(c9(h),h.delay===0&&(d=!0)),(up.instantAnimations||up.skipAnimations||n?.shouldSkipAnimations)&&(d=!0,c9(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const f=A3(h.keyframes,o);if(f!==void 0){an.update(()=>{h.onUpdate(f),h.onComplete()});return}}return o.isSync?new L3(h):new aot(h)};function bce(e){const t=[{},{}];return e?.values.forEach((r,i)=>{t[0][i]=r.get(),t[1][i]=r.getVelocity()}),t}function d9(e,t,r,i){if(typeof t=="function"){const[n,a]=bce(i);t=t(r!==void 0?r:e.custom,n,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[n,a]=bce(i);t=t(r!==void 0?r:e.custom,n,a)}return t}function F0(e,t,r){const i=e.getProps();return d9(i,t,r!==void 0?r:i.custom,e)}var xce=new Set(["width","height","top","left","right","bottom",...sv]),Tce=30,mot=e=>!isNaN(parseFloat(e)),wce={current:void 0},yot=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=no.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=no.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=mot(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new PO);const r=this.events[e].add(t);return e==="change"?()=>{r(),an.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wce.current&&wce.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=no.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Tce)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,Tce);return wle(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function lv(e,t){return new yot(e,t)}var f9=e=>Array.isArray(e);function vot(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,lv(r))}function bot(e){return f9(e)?e[e.length-1]||0:e}function xot(e,t){let{transitionEnd:r={},transition:i={},...n}=F0(e,t)||{};n={...n,...r};for(const a in n)vot(e,a,bot(n[a]))}var cs=e=>!!(e&&e.getVelocity);function Tot(e){return!!(cs(e)&&e.add)}function p9(e,t){const r=e.getValue("willChange");if(Tot(r))return r.add(t);if(!r&&up.WillChange){const i=new up.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function g9(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var wot="framerAppearId",Ece="data-"+g9(wot);function kce(e){return e.props[Ece]}function Eot({protectedKeys:e,needsAnimating:t},r){const i=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,i}function Cce(e,t,{delay:r=0,transitionOverride:i,type:n}={}){let{transition:a,transitionEnd:s,...o}=t;const l=e.getDefaultTransition();a=a?vce(a,l):l;const u=a?.reduceMotion;i&&(a=i);const h=[],d=n&&e.animationState&&e.animationState.getState()[n];for(const f in o){const p=e.getValue(f,e.latestValues[f]??null),g=o[f];if(g===void 0||d&&Eot(d,f))continue;const y={delay:r,...u9(a||{},f)},b=p.get();if(b!==void 0&&!p.isAnimating()&&!Array.isArray(g)&&g===b&&!y.velocity){an.update(()=>p.set(g));continue}let T=!1;if(window.MotionHandoffAnimation){const C=kce(e);if(C){const L=window.MotionHandoffAnimation(C,f,an);L!==null&&(y.startTime=L,T=!0)}}p9(e,f);const w=u??e.shouldReduceMotion;p.start(h9(f,p,g,w&&xce.has(f)?{type:!1}:y,e,T));const x=p.animation;x&&h.push(x)}if(s){const f=()=>an.update(()=>{s&&xot(e,s)});h.length?Promise.all(h).then(f):f()}return h}function m9(e,t,r={}){const i=F0(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:n=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(n=r.transitionOverride);const a=i?()=>Promise.all(Cce(e,i,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:d}=n;return kot(e,t,l,u,h,d,r)}:()=>Promise.resolve(),{when:o}=n;if(o){const[l,u]=o==="beforeChildren"?[a,s]:[s,a];return l().then(()=>u())}else return Promise.all([a(),s(r.delay)])}function kot(e,t,r=0,i=0,n=0,a=1,s){const o=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),o.push(m9(l,t,{...s,delay:r+(typeof i=="function"?0:i)+mce(e.variantChildren,l,i,n,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}function Cot(e,t,r={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const n=t.map(a=>m9(e,a,r));i=Promise.all(n)}else if(typeof t=="string")i=m9(e,t,r);else{const n=typeof t=="function"?F0(e,t,r.custom):t;i=Promise.all(Cce(e,n,r))}return i.then(()=>{e.notify("AnimationComplete",t)})}var Sot={test:e=>e==="auto",parse:e=>e},Sce=e=>t=>t.test(e),_ce=[iv,wr,Fu,dp,Qat,Kat,Sot],Ace=e=>_ce.find(Sce(e));function _ot(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||xle(e):!0}var Aot=new Set(["brightness","contrast","saturate","opacity"]);function Lot(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=r.match(UO)||[];if(!i)return e;const n=r.replace(i,"");let a=Aot.has(t)?1:0;return i!==r&&(a*=100),t+"("+a+n+")"}var Rot=/\b([a-z-]*)\(.*?\)/gu,y9={...Cc,getAnimatableNone:e=>{const t=e.match(Rot);return t?t.map(Lot).join(" "):e}},v9={...Cc,getAnimatableNone:e=>{const t=Cc.parse(e);return Cc.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Lce={...iv,transform:Math.round},Not={rotate:dp,rotateX:dp,rotateY:dp,rotateZ:dp,scale:C3,scaleX:C3,scaleY:C3,scaleZ:C3,skew:dp,skewX:dp,skewY:dp,distance:wr,translateX:wr,translateY:wr,translateZ:wr,x:wr,y:wr,z:wr,perspective:wr,transformPerspective:wr,opacity:MT,originX:zle,originY:zle,originZ:wr},b9={borderWidth:wr,borderTopWidth:wr,borderRightWidth:wr,borderBottomWidth:wr,borderLeftWidth:wr,borderRadius:wr,borderTopLeftRadius:wr,borderTopRightRadius:wr,borderBottomRightRadius:wr,borderBottomLeftRadius:wr,width:wr,maxWidth:wr,height:wr,maxHeight:wr,top:wr,right:wr,bottom:wr,left:wr,inset:wr,insetBlock:wr,insetBlockStart:wr,insetBlockEnd:wr,insetInline:wr,insetInlineStart:wr,insetInlineEnd:wr,padding:wr,paddingTop:wr,paddingRight:wr,paddingBottom:wr,paddingLeft:wr,paddingBlock:wr,paddingBlockStart:wr,paddingBlockEnd:wr,paddingInline:wr,paddingInlineStart:wr,paddingInlineEnd:wr,margin:wr,marginTop:wr,marginRight:wr,marginBottom:wr,marginLeft:wr,marginBlock:wr,marginBlockStart:wr,marginBlockEnd:wr,marginInline:wr,marginInlineStart:wr,marginInlineEnd:wr,fontSize:wr,backgroundPositionX:wr,backgroundPositionY:wr,...Not,zIndex:Lce,fillOpacity:MT,strokeOpacity:MT,numOctaves:Lce},Dot={...b9,color:fa,backgroundColor:fa,outlineColor:fa,fill:fa,stroke:fa,borderColor:fa,borderTopColor:fa,borderRightColor:fa,borderBottomColor:fa,borderLeftColor:fa,filter:y9,WebkitFilter:y9,mask:v9,WebkitMask:v9},Rce=e=>Dot[e],Iot=new Set([y9,v9]);function Nce(e,t){let r=Rce(e);return Iot.has(r)||(r=Cc),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var Mot=new Set(["auto","none","0"]);function Oot(e,t,r){let i=0,n;for(;i<e.length&&!n;){const a=e[i];typeof a=="string"&&!Mot.has(a)&&av(a).values.length&&(n=e[i]),i++}if(n&&r)for(const a of t)e[a]=Nce(r,n)}var Pot=class extends o9{constructor(e,t,r,i,n){super(e,t,r,i,n,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let o=0;o<e.length;o++){let l=e[o];if(typeof l=="string"&&(l=l.trim(),zO(l))){const u=yce(l,t.current);u!==void 0&&(e[o]=u),o===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!xce.has(r)||e.length!==2)return;const[i,n]=e,a=Ace(i),s=Ace(n);if(Fle(i)!==Fle(n)&&fp[r]){this.needsMeasurement=!0;return}if(a!==s)if(ice(a)&&ice(s))for(let o=0;o<e.length;o++){const l=e[o];typeof l=="string"&&(e[o]=parseFloat(l))}else fp[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||_ot(e[i]))&&r.push(i);r.length&&Oot(e,r,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fp[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const i=t[t.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);const n=r.length-1,a=r[n];r[n]=fp[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,o])=>{e.getValue(s).set(o)}),this.resolveNoneKeyframes()}};function Dce(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;t&&(i=t.current);const n=r?.[e]??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(i=>i!=null)}var Ice=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function R3(e){return ble(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:x9,cancel:YGt}=Ole(queueMicrotask,!1),Sc={x:!1,y:!1};function Mce(){return Sc.x||Sc.y}function Bot(e){return e==="x"||e==="y"?Sc[e]?null:(Sc[e]=!0,()=>{Sc[e]=!1}):Sc.x||Sc.y?null:(Sc.x=Sc.y=!0,()=>{Sc.x=Sc.y=!1})}function Oce(e,t){const r=Dce(e),i=new AbortController,n={passive:!0,...t,signal:i.signal};return[r,n,()=>i.abort()]}function Fot(e){return!(e.pointerType==="touch"||Mce())}function $ot(e,t,r={}){const[i,n,a]=Oce(e,r);return i.forEach(s=>{let o=!1,l=!1,u;const h=()=>{s.removeEventListener("pointerleave",g)},d=b=>{u&&(u(b),u=void 0),h()},f=b=>{o=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(b))},p=()=>{o=!0,window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",f,n)},g=b=>{if(b.pointerType!=="touch"){if(o){l=!0;return}d(b)}},y=b=>{if(!Fot(b))return;l=!1;const T=t(s,b);typeof T=="function"&&(u=T,s.addEventListener("pointerleave",g,n))};s.addEventListener("pointerenter",y,n),s.addEventListener("pointerdown",p,n)}),a}var Pce=(e,t)=>t?e===t?!0:Pce(e,t.parentElement):!1,T9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zot=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Uot(e){return zot.has(e.tagName)||e.isContentEditable===!0}var Hot=new Set(["INPUT","SELECT","TEXTAREA"]);function Vot(e){return Hot.has(e.tagName)||e.isContentEditable===!0}var N3=new WeakSet;function Bce(e){return t=>{t.key==="Enter"&&e(t)}}function w9(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var qot=(e,t)=>{const r=e.currentTarget;if(!r)return;const i=Bce(()=>{if(N3.has(r))return;w9(r,"down");const n=Bce(()=>{w9(r,"up")}),a=()=>w9(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",a,t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)};function Fce(e){return T9(e)&&!Mce()}var $ce=new WeakSet;function Got(e,t,r={}){const[i,n,a]=Oce(e,r),s=o=>{const l=o.currentTarget;if(!Fce(o)||$ce.has(o))return;N3.add(l),r.stopPropagation&&$ce.add(o);const u=t(l,o),h=(p,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),N3.has(l)&&N3.delete(l),Fce(p)&&typeof u=="function"&&u(p,{success:g})},d=p=>{h(p,l===window||l===document||r.useGlobalTarget||Pce(l,p.target))},f=p=>{h(p,!1)};window.addEventListener("pointerup",d,n),window.addEventListener("pointercancel",f,n)};return i.forEach(o=>{(r.useGlobalTarget?window:o).addEventListener("pointerdown",s,n),R3(o)&&(o.addEventListener("focus",l=>qot(l,n)),!Uot(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function E9(e){return ble(e)&&"ownerSVGElement"in e}var D3=new WeakMap,I3,zce=(e,t,r)=>(i,n)=>n&&n[0]?n[0][e+"Size"]:E9(i)&&"getBBox"in i?i.getBBox()[t]:i[r],Wot=zce("inline","width","offsetWidth"),Yot=zce("block","height","offsetHeight");function jot({target:e,borderBoxSize:t}){D3.get(e)?.forEach(r=>{r(e,{get width(){return Wot(e,t)},get height(){return Yot(e,t)}})})}function Xot(e){e.forEach(jot)}function Kot(){typeof ResizeObserver>"u"||(I3=new ResizeObserver(Xot))}function Qot(e,t){I3||Kot();const r=Dce(e);return r.forEach(i=>{let n=D3.get(i);n||(n=new Set,D3.set(i,n)),n.add(t),I3?.observe(i)}),()=>{r.forEach(i=>{const n=D3.get(i);n?.delete(t),n?.size||I3?.unobserve(i)})}}var M3=new Set,cv;function Zot(){cv=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};M3.forEach(t=>t(e))},window.addEventListener("resize",cv)}function Jot(e){return M3.add(e),cv||Zot(),()=>{M3.delete(e),!M3.size&&typeof cv=="function"&&(window.removeEventListener("resize",cv),cv=void 0)}}function Uce(e,t){return typeof e=="function"?Jot(e):Qot(e,t)}function elt(e){return E9(e)&&e.tagName==="svg"}var tlt=[..._ce,fa,Cc],rlt=e=>tlt.find(Sce(e)),Hce=()=>({translate:0,scale:1,origin:0,originPoint:0}),uv=()=>({x:Hce(),y:Hce()}),Vce=()=>({min:0,max:0}),Ia=()=>({x:Vce(),y:Vce()}),ilt=new WeakMap;function O3(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $T(e){return typeof e=="string"||Array.isArray(e)}var k9=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],C9=["initial",...k9];function P3(e){return O3(e.animate)||C9.some(t=>$T(e[t]))}function qce(e){return!!(P3(e)||e.variants)}function nlt(e,t,r){for(const i in t){const n=t[i],a=r[i];if(cs(n))e.addValue(i,n);else if(cs(a))e.addValue(i,lv(n,{owner:e}));else if(a!==n)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(n):s.hasAnimated||s.set(n)}else{const s=e.getStaticValue(i);e.addValue(i,lv(s!==void 0?s:n,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}var S9={current:null},Gce={current:!1},alt=typeof window<"u";function slt(){if(Gce.current=!0,!!alt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>S9.current=e.matches;e.addEventListener("change",t),t()}else S9.current=!1}var Wce=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],B3={};function Yce(e){B3=e}function olt(){return B3}var llt=class{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:i,skipAnimations:n,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=o9,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=no.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,an.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=P3(t),this.isVariantNode=qce(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&cs(p)&&p.set(l[f])}}mount(e){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=e,ilt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,r)=>this.bindToMotionValue(r,t)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Gce.current||slt(),this.shouldReduceMotion=S9.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),hp(this.notifyUpdate),hp(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&gce.has(e)&&this.current instanceof HTMLElement){const{factory:a,keyframes:s,times:o,ease:l,duration:u}=t.accelerate,h=new dce({element:this.current,name:e,keyframes:s,times:o,ease:l,duration:Io(u)}),d=a(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const r=ov.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=t.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&an.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in B3){const t=B3[e];if(!t)continue;const{isEnabled:r,Feature:i}=t;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ia()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;r<Wce.length;r++){const i=Wce[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=nlt(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&t!==void 0&&(r=lv(t===null?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(vle(r)||xle(r))?r=parseFloat(r):!rlt(r)&&Cc.test(t)&&(r=Nce(e,t)),this.setBaseTarget(e,cs(r)?r.get():r)),cs(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let r;if(typeof t=="string"||typeof t=="object"){const n=d9(this.props,t,this.presenceContext?.custom);n&&(r=n[e])}if(t&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!cs(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new PO),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){x9.render(this.render)}},jce=class extends llt{constructor(){super(...arguments),this.KeyframeResolver=Pot}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){const r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;cs(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},pp=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Xce({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function clt({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ult(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function _9(e){return e===void 0||e===1}function A9({scale:e,scaleX:t,scaleY:r}){return!_9(e)||!_9(t)||!_9(r)}function $0(e){return A9(e)||Kce(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Kce(e){return Qce(e.x)||Qce(e.y)}function Qce(e){return e&&e!=="0%"}function F3(e,t,r){return r+t*(e-r)}function Zce(e,t,r,i,n){return n!==void 0&&(e=F3(e,n,i)),F3(e,r,i)+t}function L9(e,t=0,r=1,i,n){e.min=Zce(e.min,t,r,i,n),e.max=Zce(e.max,t,r,i,n)}function Jce(e,{x:t,y:r}){L9(e.x,t.translate,t.scale,t.originPoint),L9(e.y,r.translate,r.scale,r.originPoint)}var eue=.999999999999,tue=1.0000000000001;function hlt(e,t,r,i=!1){const n=r.length;if(!n)return;t.x=t.y=1;let a,s;for(let o=0;o<n;o++){a=r[o],s=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&($u(e.x,-a.scroll.offset.x),$u(e.y,-a.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Jce(e,s)),i&&$0(a.latestValues)&&$3(e,a.latestValues,a.layout?.layoutBox))}t.x<tue&&t.x>eue&&(t.x=1),t.y<tue&&t.y>eue&&(t.y=1)}function $u(e,t){e.min+=t,e.max+=t}function rue(e,t,r,i,n=.5){L9(e,t,r,vn(e.min,e.max,n),i)}function iue(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function $3(e,t,r){const i=r??e;rue(e.x,iue(t.x,i.x),t.scaleX,t.scale,t.originX),rue(e.y,iue(t.y,i.y),t.scaleY,t.scale,t.originY)}function nue(e,t){return Xce(ult(e.getBoundingClientRect(),t))}function dlt(e,t,r){const i=nue(e,r),{scroll:n}=t;return n&&($u(i.x,n.offset.x),$u(i.y,n.offset.y)),i}var flt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},plt=sv.length;function glt(e,t,r){let i="",n=!0;for(let a=0;a<plt;a++){const s=sv[a],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number")l=o===(s.startsWith("scale")?1:0);else{const u=parseFloat(o);l=s.startsWith("scale")?u===1:u===0}if(!l||r){const u=Ice(o,b9[s]);if(!l){n=!1;const h=flt[s]||s;i+=`${h}(${u}) `}r&&(t[s]=u)}}return i=i.trim(),r?i=r(t,n?"":i):n&&(i="none"),i}function R9(e,t,r){const{style:i,vars:n,transformOrigin:a}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(ov.has(l)){s=!0;continue}else if(Ble(l)){n[l]=u;continue}else{const h=Ice(u,b9[l]);l.startsWith("origin")?(o=!0,a[l]=h):i[l]=h}}if(t.transform||(s||r?i.transform=glt(t,e.transform,r):i.transform&&(i.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:h=0}=a;i.transformOrigin=`${l} ${u} ${h}`}}function aue(e,{style:t,vars:r},i,n){const a=e.style;let s;for(s in t)a[s]=t[s];n?.applyProjectionStyles(a,i);for(s in r)a.setProperty(s,r[s])}function sue(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var zT={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(wr.test(e))e=parseFloat(e);else return e;return`${sue(e,t.target.x)}% ${sue(e,t.target.y)}%`}},mlt={correct:(e,{treeScale:t,projectionDelta:r})=>{const i=e,n=Cc.parse(e);if(n.length>5)return i;const a=Cc.createTransformer(e),s=typeof n[0]!="number"?1:0,o=r.x.scale*t.x,l=r.y.scale*t.y;n[0+s]/=o,n[1+s]/=l;const u=vn(o,l,.5);return typeof n[2+s]=="number"&&(n[2+s]/=u),typeof n[3+s]=="number"&&(n[3+s]/=u),a(n)}},N9={borderRadius:{...zT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zT,borderTopRightRadius:zT,borderBottomLeftRadius:zT,borderBottomRightRadius:zT,boxShadow:mlt};function oue(e,{layout:t,layoutId:r}){return ov.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!N9[e]||e==="opacity")}function D9(e,t,r){const i=e.style,n=t?.style,a={};if(!i)return a;for(const s in i)(cs(i[s])||n&&cs(n[s])||oue(s,e)||r?.getValue(s)?.liveStyle!==void 0)&&(a[s]=i[s]);return a}function ylt(e){return window.getComputedStyle(e)}var vlt=class extends jce{constructor(){super(...arguments),this.type="html",this.renderInstance=aue}readValueFromInstance(e,t){if(ov.has(t))return this.projection?.isProjecting?r9(t):Bst(e,t);{const r=ylt(e),i=(Ble(t)?r.getPropertyValue(t):r[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nue(e,t)}build(e,t,r){R9(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return D9(e,t,r)}},blt={offset:"stroke-dashoffset",array:"stroke-dasharray"},xlt={offset:"strokeDashoffset",array:"strokeDasharray"};function Tlt(e,t,r=1,i=0,n=!0){e.pathLength=1;const a=n?blt:xlt;e[a.offset]=`${-i}`,e[a.array]=`${t} ${r}`}var wlt=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function lue(e,{attrX:t,attrY:r,attrScale:i,pathLength:n,pathSpacing:a=1,pathOffset:s=0,...o},l,u,h){if(R9(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=h?.transformBox??"fill-box",delete d.transformBox);for(const p of wlt)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),i!==void 0&&(d.scale=i),n!==void 0&&Tlt(d,n,a,s,!1)}var cue=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),uue=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Elt(e,t,r,i){aue(e,t,void 0,i);for(const n in t.attrs)e.setAttribute(cue.has(n)?n:g9(n),t.attrs[n])}function hue(e,t,r){const i=D9(e,t,r);for(const n in e)if(cs(e[n])||cs(t[n])){const a=sv.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[a]=e[n]}return i}var klt=class extends jce{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ia}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ov.has(t)){const r=Rce(t);return r&&r.default||0}return t=cue.has(t)?t:g9(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return hue(e,t,r)}build(e,t,r){lue(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,i){Elt(e,t,r,i)}mount(e){this.isSVGTag=uue(e.tagName),super.mount(e)}},Clt=C9.length;function due(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?due(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<Clt;r++){const i=C9[r],n=e.props[i];($T(n)||n===!1)&&(t[i]=n)}return t}function fue(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}var Slt=[...k9].reverse(),_lt=k9.length;function Alt(e){return t=>Promise.all(t.map(({animation:r,options:i})=>Cot(e,r,i)))}function Llt(e){let t=Alt(e),r=pue(),i=!0,n=!1;const a=u=>(h,d)=>{const f=F0(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:p,transitionEnd:g,...y}=f;h={...h,...y,...g}}return h};function s(u){t=u(e)}function o(u){const{props:h}=e,d=due(e.parent)||{},f=[],p=new Set;let g={},y=1/0;for(let T=0;T<_lt;T++){const w=Slt[T],x=r[w],C=h[w]!==void 0?h[w]:d[w],L=$T(C),_=w===u?x.isActive:null;_===!1&&(y=T);let S=C===d[w]&&C!==h[w]&&L;if(S&&(i||n)&&e.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...g},!x.isActive&&_===null||!C&&!x.prevProp||O3(C)||typeof C=="boolean")continue;if(w==="exit"&&x.isActive&&_!==!0){x.prevResolvedValues&&(g={...g,...x.prevResolvedValues});continue}const A=Rlt(x.prevProp,C);let P=A||w===u&&x.isActive&&!S&&L||T>y&&L,O=!1;const M=Array.isArray(C)?C:[C];let U=M.reduce(a(w),{});_===!1&&(U={});const{prevResolvedValues:R={}}=x,F={...R,...U},I=D=>{P=!0,p.has(D)&&(O=!0,p.delete(D)),x.needsAnimating[D]=!0;const $=e.getValue(D);$&&($.liveStyle=!1)};for(const D in F){const $=U[D],H=R[D];if(g.hasOwnProperty(D))continue;let z=!1;f9($)&&f9(H)?z=!fue($,H):z=$!==H,z?$!=null?I(D):p.add(D):$!==void 0&&p.has(D)?I(D):x.protectedKeys[D]=!0}x.prevProp=C,x.prevResolvedValues=U,x.isActive&&(g={...g,...U}),(i||n)&&e.blockInitialAnimation&&(P=!1);const B=S&&A;P&&(!B||O)&&f.push(...M.map(D=>{const $={type:w};if(typeof D=="string"&&(i||n)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:H}=e,z=F0(H,D);if(H.enteringChildren&&z){const{delayChildren:j}=z.transition||{};$.delay=mce(H.enteringChildren,e,j)}}return{animation:D,options:$}}))}if(p.size){const T={};if(typeof h.initial!="boolean"){const w=F0(e,Array.isArray(h.initial)?h.initial[0]:h.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const x=e.getBaseTarget(w),C=e.getValue(w);C&&(C.liveStyle=!0),T[w]=x??null}),f.push({animation:T})}let b=!!f.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,n=!1,b?t(f):Promise.resolve()}function l(u,h){if(r[u].isActive===h)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,h)),r[u].isActive=h;const d=o(u);for(const f in r)r[f].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>r,reset:()=>{r=pue(),n=!0}}}function Rlt(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fue(t,e):!1}function z0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pue(){return{animate:z0(!0),whileInView:z0(),whileHover:z0(),whileTap:z0(),whileDrag:z0(),whileFocus:z0(),exit:z0()}}function I9(e,t){e.min=t.min,e.max=t.max}function _c(e,t){I9(e.x,t.x),I9(e.y,t.y)}function gue(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var mue=1e-4,Nlt=1-mue,Dlt=1+mue,yue=.01,Ilt=0-yue,Mlt=0+yue;function ao(e){return e.max-e.min}function Olt(e,t,r){return Math.abs(e-t)<=r}function vue(e,t,r,i=.5){e.origin=i,e.originPoint=vn(t.min,t.max,e.origin),e.scale=ao(r)/ao(t),e.translate=vn(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Nlt&&e.scale<=Dlt||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ilt&&e.translate<=Mlt||isNaN(e.translate))&&(e.translate=0)}function UT(e,t,r,i){vue(e.x,t.x,r.x,i?i.originX:void 0),vue(e.y,t.y,r.y,i?i.originY:void 0)}function bue(e,t,r,i=0){e.min=(i?vn(r.min,r.max,i):r.min)+t.min,e.max=e.min+ao(t)}function Plt(e,t,r,i){bue(e.x,t.x,r.x,i?.x),bue(e.y,t.y,r.y,i?.y)}function xue(e,t,r,i=0){const n=i?vn(r.min,r.max,i):r.min;e.min=t.min-n,e.max=e.min+ao(t)}function z3(e,t,r,i){xue(e.x,t.x,r.x,i?.x),xue(e.y,t.y,r.y,i?.y)}function Tue(e,t,r,i,n){return e-=t,e=F3(e,1/r,i),n!==void 0&&(e=F3(e,1/n,i)),e}function Blt(e,t=0,r=1,i=.5,n,a=e,s=e){if(Fu.test(t)&&(t=parseFloat(t),t=vn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=vn(a.min,a.max,i);e===a&&(o-=t),e.min=Tue(e.min,t,r,o,n),e.max=Tue(e.max,t,r,o,n)}function wue(e,t,[r,i,n],a,s){Blt(e,t[r],t[i],t[n],t.scale,a,s)}var Flt=["x","scaleX","originX"],$lt=["y","scaleY","originY"];function Eue(e,t,r,i){wue(e.x,t,Flt,r?r.x:void 0,i?i.x:void 0),wue(e.y,t,$lt,r?r.y:void 0,i?i.y:void 0)}function kue(e){return e.translate===0&&e.scale===1}function Cue(e){return kue(e.x)&&kue(e.y)}function Sue(e,t){return e.min===t.min&&e.max===t.max}function zlt(e,t){return Sue(e.x,t.x)&&Sue(e.y,t.y)}function _ue(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Aue(e,t){return _ue(e.x,t.x)&&_ue(e.y,t.y)}function Lue(e){return ao(e.x)/ao(e.y)}function Rue(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function zu(e){return[e("x"),e("y")]}function Ult(e,t,r){let i="";const n=e.x.translate/t.x,a=e.y.translate/t.y,s=r?.z||0;if((n||a||s)&&(i=`translate3d(${n}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:u,rotate:h,rotateX:d,rotateY:f,skewX:p,skewY:g}=r;u&&(i=`perspective(${u}px) ${i}`),h&&(i+=`rotate(${h}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),p&&(i+=`skewX(${p}deg) `),g&&(i+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(i+=`scale(${o}, ${l})`),i||"none"}var Nue=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Hlt=Nue.length,Due=e=>typeof e=="string"?parseFloat(e):e,Iue=e=>typeof e=="number"||wr.test(e);function Vlt(e,t,r,i,n,a){n?(e.opacity=vn(0,r.opacity??1,qlt(i)),e.opacityExit=vn(t.opacity??1,0,Glt(i))):a&&(e.opacity=vn(t.opacity??1,r.opacity??1,i));for(let s=0;s<Hlt;s++){const o=Nue[s];let l=Mue(t,o),u=Mue(r,o);l===void 0&&u===void 0||(l||(l=0),u||(u=0),l===0||u===0||Iue(l)===Iue(u)?(e[o]=Math.max(vn(Due(l),Due(u),i),0),(Fu.test(u)||Fu.test(l))&&(e[o]+="%")):e[o]=u)}(t.rotate||r.rotate)&&(e.rotate=vn(t.rotate||0,r.rotate||0,i))}function Mue(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var qlt=Oue(0,.5,Lle),Glt=Oue(.5,.95,zl);function Oue(e,t,r){return i=>i<e?0:i>t?1:r(DT(e,t,i))}function Wlt(e,t,r){const i=cs(e)?e:lv(e);return i.start(h9("",i,t,r)),i.animation}function HT(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}var Ylt=(e,t)=>e.depth-t.depth,jlt=class{constructor(){this.children=[],this.isDirty=!1}add(e){OO(this.children,e),this.isDirty=!0}remove(e){T3(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ylt),this.isDirty=!1,this.children.forEach(e)}};function Xlt(e,t){const r=no.now(),i=({timestamp:n})=>{const a=n-r;a>=t&&(hp(i),e(a-t))};return an.setup(i,!0),()=>hp(i)}function U3(e){return cs(e)?e.get():e}var Klt=class{constructor(){this.members=[]}add(e){OO(this.members,e);for(let t=this.members.length-1;t>=0;t--){const r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(T3(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(T3(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){const r=this.members[t];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:n}=e.options;(i===void 0||i!==n)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},H3={hasAnimatedSinceResize:!0,hasEverUpdated:!1},U0={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},M9=["","X","Y","Z"],Qlt=1e3,Zlt=0;function O9(e,t,r,i){const{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Pue(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=kce(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:n,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",an,!(n||a))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Pue(i)}function Bue({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(s={},o=t?.()){this.id=Zlt++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bu.value&&(U0.nodes=U0.calculatedTargetDeltas=U0.calculatedProjections=0),this.nodes.forEach(tct),this.nodes.forEach(oct),this.nodes.forEach(lct),this.nodes.forEach(rct),Bu.addProjectionMetrics&&Bu.addProjectionMetrics(U0)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new jlt)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new PO),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=E9(s)&&!elt(s),this.instance=s;const{layoutId:o,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let h,d=0;const f=()=>this.root.updateBlockedByResize=!1;an.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,h&&h(),h=Xlt(f,250),H3.hasAnimatedSinceResize&&(H3.hasAnimatedSinceResize=!1,this.nodes.forEach(zue)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||fct,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),T=!this.targetLayout||!Aue(this.targetLayout,p),w=!d&&f;if(this.options.layoutRoot||this.resumeFrom||w||d&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...u9(g,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(h,w)}else d||zue(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hp(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(cct),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pue(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const d=this.path[h];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const o=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),o&&this.nodes.forEach(nct),this.nodes.forEach(Fue);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach($ue);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(act),this.nodes.forEach(sct),this.nodes.forEach(Jlt),this.nodes.forEach(ect)):this.nodes.forEach($ue),this.clearAllSnapshots();const s=no.now();ls.delta=Pu(0,1e3/60,s-ls.timestamp),ls.timestamp=s,ls.isProcessing=!0,$O.update.process(ls),$O.preRender.process(ls),$O.render.process(ls),ls.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,x9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ict),this.sharedNodes.forEach(uct)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,an.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){an.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ao(this.snapshot.measuredBox.x)&&!ao(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ia()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Cue(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,h=u!==this.prevTransformTemplateValue;s&&this.instance&&(o||$0(this.latestValues)||h)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),pct(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ia();const o=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(gct))){const{scroll:l}=this.root;l&&($u(o.x,l.offset.x),$u(o.y,l.offset.y))}return o}removeElementScroll(s){const o=Ia();if(_c(o,s),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&_c(o,s),$u(o.x,h.offset.x),$u(o.y,h.offset.y))}return o}applyTransform(s,o=!1,l){const u=l||Ia();_c(u,s);for(let h=0;h<this.path.length;h++){const d=this.path[h];!o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&($u(u.x,-d.scroll.offset.x),$u(u.y,-d.scroll.offset.y)),$0(d.latestValues)&&$3(u,d.latestValues,d.layout?.layoutBox)}return $0(this.latestValues)&&$3(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(s){const o=Ia();_c(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!$0(u.latestValues))continue;let h;u.instance&&(A9(u.latestValues)&&u.updateSnapshot(),h=Ia(),_c(h,u.measurePageBox())),Eue(o,u.latestValues,u.snapshot?.layoutBox,h)}return $0(this.latestValues)&&Eue(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ls.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=ls.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ia(),this.targetWithTransforms=Ia()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Plt(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):_c(this.target,this.layout.layoutBox),Jce(this.target,this.targetDelta)):_c(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0),Bu.value&&U0.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||A9(this.parent.latestValues)||Kce(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,o,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ia(),this.relativeTargetOrigin=Ia(),z3(this.relativeTargetOrigin,o,l,this.options.layoutAnchor||void 0),_c(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),o=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ls.timestamp&&(l=!1),l)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;_c(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;hlt(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ia());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gue(this.prevProjectionDelta.x,this.projectionDelta.x),gue(this.prevProjectionDelta.y,this.projectionDelta.y)),UT(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Rue(this.projectionDelta.x,this.prevProjectionDelta.x)||!Rue(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Bu.value&&U0.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=uv(),this.projectionDelta=uv(),this.projectionDeltaWithTransform=uv()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},h={...this.latestValues},d=uv();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=Ia(),p=(l?l.source:void 0)!==(this.layout?this.layout.source:void 0),g=this.getStack(),y=!g||g.members.length<=1,b=!!(p&&!y&&this.options.crossfade===!0&&!this.path.some(dct));this.animationProgress=0;let T;this.mixTargetDelta=w=>{const x=w/1e3;Uue(d.x,s.x,x),Uue(d.y,s.y,x),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(z3(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hct(this.relativeTarget,this.relativeTargetOrigin,f,x),T&&zlt(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Ia()),_c(T,this.relativeTarget)),p&&(this.animationValues=h,Vlt(h,u,this.latestValues,x,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(hp(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=an.update(()=>{H3.hasAnimatedSinceResize=!0,M0.layout++,this.motionValue||(this.motionValue=lv(0)),this.motionValue.jump(0,!1),this.currentAnimation=Wlt(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{M0.layout--},onComplete:()=>{M0.layout--,s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qlt),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:h}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&Wue(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ia();const d=ao(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=ao(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}_c(o,l),$3(o,h),UT(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Klt),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&O9("z",s,u,this.animationValues);for(let h=0;h<M9.length;h++)O9(`rotate${M9[h]}`,s,u,this.animationValues),O9(`skew${M9[h]}`,s,u,this.animationValues);s.render();for(const h in u)s.setStaticValue(h,u[h]),this.animationValues&&(this.animationValues[h]=u[h]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=U3(o?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=U3(o?.pointerEvents)||""),this.hasProjected&&!$0(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=Ult(this.projectionDeltaWithTransform,this.treeScale,h);l&&(d=l(h,d)),s.transform=d;const{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?s.opacity=u===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in N9){if(h[g]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:T}=N9[g],w=d==="none"?h[g]:y(h[g],u);if(b){const x=b.length;for(let C=0;C<x;C++)s[b[C]]=w}else T?this.options.visualElement.renderState.vars[g]=w:s[g]=w}this.options.layoutId&&(s.pointerEvents=u===this?U3(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Fue),this.root.sharedNodes.clear()}}}function Jlt(e){e.updateLayout()}function ect(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:n}=e.options,a=t.source!==e.layout.source;if(n==="size")zu(h=>{const d=a?t.measuredBox[h]:t.layoutBox[h],f=ao(d);d.min=r[h].min,d.max=d.min+f});else if(n==="x"||n==="y"){const h=n==="x"?"y":"x";I9(a?t.measuredBox[h]:t.layoutBox[h],r[h])}else Wue(n,t.layoutBox,r)&&zu(h=>{const d=a?t.measuredBox[h]:t.layoutBox[h],f=ao(r[h]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+f)});const s=uv();UT(s,r,t.layoutBox);const o=uv();a?UT(o,e.applyTransform(i,!0),t.measuredBox):UT(o,r,t.layoutBox);const l=!Cue(s);let u=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=e.options.layoutAnchor||void 0,g=Ia();z3(g,t.layoutBox,d.layoutBox,p);const y=Ia();z3(y,r,f.layoutBox,p),Aue(g,y)||(u=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function tct(e){Bu.value&&U0.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rct(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ict(e){e.clearSnapshot()}function Fue(e){e.clearMeasurements()}function nct(e){e.isLayoutDirty=!0,e.updateLayout()}function $ue(e){e.isLayoutDirty=!1}function act(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sct(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zue(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oct(e){e.resolveTargetDelta()}function lct(e){e.calcProjection()}function cct(e){e.resetSkewAndRotation()}function uct(e){e.removeLeadSnapshot()}function Uue(e,t,r){e.translate=vn(t.translate,0,r),e.scale=vn(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Hue(e,t,r,i){e.min=vn(t.min,r.min,i),e.max=vn(t.max,r.max,i)}function hct(e,t,r,i){Hue(e.x,t.x,r.x,i),Hue(e.y,t.y,r.y,i)}function dct(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var fct={duration:.45,ease:[.4,0,.1,1]},Vue=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),que=Vue("applewebkit/")&&!Vue("chrome/")?Math.round:zl;function Gue(e){e.min=que(e.min),e.max=que(e.max)}function pct(e){Gue(e.x),Gue(e.y)}function Wue(e,t,r){return e==="position"||e==="preserve-aspect"&&!Olt(Lue(t),Lue(r),.2)}function gct(e){return e!==e.root&&e.scroll?.wasRoot}var mct=Bue({attachResizeListener:(e,t)=>HT(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),P9={current:void 0},Yue=Bue({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!P9.current){const e=new mct({});e.mount(window),e.setOptions({layoutScroll:!0}),P9.current=e}return P9.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),B9=(0,Ne.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jue(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yct(...e){return t=>{let r=!1;const i=e.map(n=>{const a=jue(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<i.length;n++){const a=i[n];typeof a=="function"?a():jue(e[n],null)}}}}function vct(...e){return Ne.useCallback(yct(...e),e)}var bct=class extends Ne.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(R3(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=t.offsetParent,i=R3(r)&&r.offsetWidth||0,n=R3(r)&&r.offsetHeight||0,a=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}};function xct({children:e,isPresent:t,anchorX:r,anchorY:i,root:n,pop:a}){const s=(0,Ne.useId)(),o=(0,Ne.useRef)(null),l=(0,Ne.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,Ne.useContext)(B9),h=vct(o,e.props?.ref??e?.ref);return(0,Ne.useInsertionEffect)(()=>{const{width:d,height:f,top:p,left:g,right:y,bottom:b}=l.current;if(t||a===!1||!o.current||!d||!f)return;const T=r==="left"?`left: ${g}`:`right: ${y}`,w=i==="bottom"?`bottom: ${b}`:`top: ${p}`;o.current.dataset.motionPopId=s;const x=document.createElement("style");u&&(x.nonce=u);const C=n??document.head;return C.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
9
|
+
`+N.stack}}var Me=Object.prototype.hasOwnProperty,dt=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,ut=t.unstable_shouldYield,it=t.unstable_requestPaint,Ze=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,$e=t.unstable_ImmediatePriority,he=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,oe=t.unstable_LowPriority,ke=t.unstable_IdlePriority,ne=t.log,ae=t.unstable_setDisableYieldValue,fe=null,Te=null;function Ae(m){if(typeof ne=="function"&&ae(m),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(fe,m)}catch{}}var Ie=Math.clz32?Math.clz32:ct,Xe=Math.log,Be=Math.LN2;function ct(m){return m>>>=0,m===0?32:31-(Xe(m)/Be|0)|0}var ot=256,et=262144,ht=4194304;function ve(m){var v=m&42;if(v!==0)return v;switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return m&261888;case 262144:case 524288:case 1048576:case 2097152:return m&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return m&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return m}}function _t(m,v,E){var N=m.pendingLanes;if(N===0)return 0;var q=0,Y=m.suspendedLanes,ie=m.pingedLanes;m=m.warmLanes;var be=N&134217727;return be!==0?(N=be&~Y,N!==0?q=ve(N):(ie&=be,ie!==0?q=ve(ie):E||(E=be&~m,E!==0&&(q=ve(E))))):(be=N&~Y,be!==0?q=ve(be):ie!==0?q=ve(ie):E||(E=N&~m,E!==0&&(q=ve(E)))),q===0?0:v!==0&&v!==q&&(v&Y)===0&&(Y=q&-q,E=v&-v,Y>=E||Y===32&&(E&4194048)!==0)?v:q}function ye(m,v){return(m.pendingLanes&~(m.suspendedLanes&~m.pingedLanes)&v)===0}function wt(m,v){switch(m){case 1:case 2:case 4:case 8:case 64:return v+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wt(){var m=ht;return ht<<=1,(ht&62914560)===0&&(ht=4194304),m}function Mt(m){for(var v=[],E=0;31>E;E++)v.push(m);return v}function rr(m,v){m.pendingLanes|=v,v!==268435456&&(m.suspendedLanes=0,m.pingedLanes=0,m.warmLanes=0)}function Ht(m,v,E,N,q,Y){var ie=m.pendingLanes;m.pendingLanes=E,m.suspendedLanes=0,m.pingedLanes=0,m.warmLanes=0,m.expiredLanes&=E,m.entangledLanes&=E,m.errorRecoveryDisabledLanes&=E,m.shellSuspendCounter=0;var be=m.entanglements,Ke=m.expirationTimes,vt=m.hiddenUpdates;for(E=ie&~E;0<E;){var Lt=31-Ie(E),Bt=1<<Lt;be[Lt]=0,Ke[Lt]=-1;var xt=vt[Lt];if(xt!==null)for(vt[Lt]=null,Lt=0;Lt<xt.length;Lt++){var Ct=xt[Lt];Ct!==null&&(Ct.lane&=-536870913)}E&=~Bt}N!==0&&ir(m,N,0),Y!==0&&q===0&&m.tag!==0&&(m.suspendedLanes|=Y&~(ie&~v))}function ir(m,v,E){m.pendingLanes|=v,m.suspendedLanes&=~v;var N=31-Ie(v);m.entangledLanes|=v,m.entanglements[N]=m.entanglements[N]|1073741824|E&261930}function bt(m,v){var E=m.entangledLanes|=v;for(m=m.entanglements;E;){var N=31-Ie(E),q=1<<N;q&v|m[N]&v&&(m[N]|=v),E&=~q}}function me(m,v){var E=v&-v;return E=(E&42)!==0?1:Ft(E),(E&(m.suspendedLanes|v))!==0?0:E}function Ft(m){switch(m){case 2:m=1;break;case 8:m=4;break;case 32:m=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:m=128;break;case 268435456:m=134217728;break;default:m=0}return m}function Ot(m){return m&=-m,2<m?8<m?(m&134217727)!==0?32:268435456:8:2}function St(){var m=$.p;return m!==0?m:(m=window.event,m===void 0?32:$nt(m.type))}function Le(m,v){var E=$.p;try{return $.p=m,v()}finally{$.p=E}}var ft=Math.random().toString(36).slice(2),at="__reactFiber$"+ft,Rt="__reactProps$"+ft,pr="__reactContainer$"+ft,nr="__reactEvents$"+ft,Cr="__reactListeners$"+ft,Fr="__reactHandles$"+ft,Pt="__reactResources$"+ft,Ve="__reactMarker$"+ft;function Et(m){delete m[at],delete m[Rt],delete m[nr],delete m[Cr],delete m[Fr]}function zt(m){var v=m[at];if(v)return v;for(var E=m.parentNode;E;){if(v=E[pr]||E[at]){if(E=v.alternate,v.child!==null||E!==null&&E.child!==null)for(m=Cnt(m);m!==null;){if(E=m[at])return E;m=Cnt(m)}return v}m=E,E=m.parentNode}return null}function br(m){if(m=m[at]||m[pr]){var v=m.tag;if(v===5||v===6||v===13||v===31||v===26||v===27||v===3)return m}return null}function mr(m){var v=m.tag;if(v===5||v===26||v===27||v===6)return m.stateNode;throw Error(n(33))}function Si(m){var v=m[Pt];return v||(v=m[Pt]={hoistableStyles:new Map,hoistableScripts:new Map}),v}function Yr(m){m[Ve]=!0}var Ri=new Set,Sa={};function tr(m,v){cr(m,v),cr(m+"Capture",v)}function cr(m,v){for(Sa[m]=v,m=0;m<v.length;m++)Ri.add(v[m])}var Jt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),or={},Xt={};function ti(m){return Me.call(Xt,m)?!0:Me.call(or,m)?!1:Jt.test(m)?Xt[m]=!0:(or[m]=!0,!1)}function Oe(m,v,E){if(ti(v))if(E===null)m.removeAttribute(v);else{switch(typeof E){case"undefined":case"function":case"symbol":m.removeAttribute(v);return;case"boolean":var N=v.toLowerCase().slice(0,5);if(N!=="data-"&&N!=="aria-"){m.removeAttribute(v);return}}m.setAttribute(v,""+E)}}function Ru(m,v,E){if(E===null)m.removeAttribute(v);else{switch(typeof E){case"undefined":case"function":case"symbol":case"boolean":m.removeAttribute(v);return}m.setAttribute(v,""+E)}}function He(m,v,E,N){if(N===null)m.removeAttribute(E);else{switch(typeof N){case"undefined":case"function":case"symbol":case"boolean":m.removeAttribute(E);return}m.setAttributeNS(v,E,""+N)}}function Ni(m){switch(typeof m){case"bigint":case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function y5(m){var v=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function JI(m,v,E){var N=Object.getOwnPropertyDescriptor(m.constructor.prototype,v);if(!m.hasOwnProperty(v)&&typeof N<"u"&&typeof N.get=="function"&&typeof N.set=="function"){var q=N.get,Y=N.set;return Object.defineProperty(m,v,{configurable:!0,get:function(){return q.call(this)},set:function(ie){E=""+ie,Y.call(this,ie)}}),Object.defineProperty(m,v,{enumerable:N.enumerable}),{getValue:function(){return E},setValue:function(ie){E=""+ie},stopTracking:function(){m._valueTracker=null,delete m[v]}}}}function v5(m){if(!m._valueTracker){var v=y5(m)?"checked":"value";m._valueTracker=JI(m,v,""+m[v])}}function b5(m){if(!m)return!1;var v=m._valueTracker;if(!v)return!0;var E=v.getValue(),N="";return m&&(N=y5(m)?m.checked?"true":"false":m.value),m=N,m!==E?(v.setValue(m),!0):!1}function Wx(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}var _a=/[\n"\\]/g;function Aa(m){return m.replace(_a,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "})}function Ry(m,v,E,N,q,Y,ie,be){m.name="",ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?m.type=ie:m.removeAttribute("type"),v!=null?ie==="number"?(v===0&&m.value===""||m.value!=v)&&(m.value=""+Ni(v)):m.value!==""+Ni(v)&&(m.value=""+Ni(v)):ie!=="submit"&&ie!=="reset"||m.removeAttribute("value"),v!=null?x5(m,ie,Ni(v)):E!=null?x5(m,ie,Ni(E)):N!=null&&m.removeAttribute("value"),q==null&&Y!=null&&(m.defaultChecked=!!Y),q!=null&&(m.checked=q&&typeof q!="function"&&typeof q!="symbol"),be!=null&&typeof be!="function"&&typeof be!="symbol"&&typeof be!="boolean"?m.name=""+Ni(be):m.removeAttribute("name")}function Yx(m,v,E,N,q,Y,ie,be){if(Y!=null&&typeof Y!="function"&&typeof Y!="symbol"&&typeof Y!="boolean"&&(m.type=Y),v!=null||E!=null){if(!(Y!=="submit"&&Y!=="reset"||v!=null)){v5(m);return}E=E!=null?""+Ni(E):"",v=v!=null?""+Ni(v):E,be||v===m.value||(m.value=v),m.defaultValue=v}N=N??q,N=typeof N!="function"&&typeof N!="symbol"&&!!N,m.checked=be?m.checked:!!N,m.defaultChecked=!!N,ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"&&(m.name=ie),v5(m)}function x5(m,v,E){v==="number"&&Wx(m.ownerDocument)===m||m.defaultValue===""+E||(m.defaultValue=""+E)}function d0(m,v,E,N){if(m=m.options,v){v={};for(var q=0;q<E.length;q++)v["$"+E[q]]=!0;for(E=0;E<m.length;E++)q=v.hasOwnProperty("$"+m[E].value),m[E].selected!==q&&(m[E].selected=q),q&&N&&(m[E].defaultSelected=!0)}else{for(E=""+Ni(E),v=null,q=0;q<m.length;q++){if(m[q].value===E){m[q].selected=!0,N&&(m[q].defaultSelected=!0);return}v!==null||m[q].disabled||(v=m[q])}v!==null&&(v.selected=!0)}}function T5(m,v,E){if(v!=null&&(v=""+Ni(v),v!==m.value&&(m.value=v),E==null)){m.defaultValue!==v&&(m.defaultValue=v);return}m.defaultValue=E!=null?""+Ni(E):""}function ss(m,v,E,N){if(v==null){if(N!=null){if(E!=null)throw Error(n(92));if(B(N)){if(1<N.length)throw Error(n(93));N=N[0]}E=N}E??="",v=E}E=Ni(v),m.defaultValue=E,N=m.textContent,N===E&&N!==""&&N!==null&&(m.value=N),v5(m)}function ld(m,v){if(v){var E=m.firstChild;if(E&&E===m.lastChild&&E.nodeType===3){E.nodeValue=v;return}}m.textContent=v}var Vf=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function No(m,v,E){var N=v.indexOf("--")===0;E==null||typeof E=="boolean"||E===""?N?m.setProperty(v,""):v==="float"?m.cssFloat="":m[v]="":N?m.setProperty(v,E):typeof E!="number"||E===0||Vf.has(v)?v==="float"?m.cssFloat=E:m[v]=(""+E).trim():m[v]=E+"px"}function jx(m,v,E){if(v!=null&&typeof v!="object")throw Error(n(62));if(m=m.style,E!=null){for(var N in E)!E.hasOwnProperty(N)||v!=null&&v.hasOwnProperty(N)||(N.indexOf("--")===0?m.setProperty(N,""):N==="float"?m.cssFloat="":m[N]="");for(var q in v)N=v[q],v.hasOwnProperty(q)&&E[q]!==N&&No(m,q,N)}else for(var Y in v)v.hasOwnProperty(Y)&&No(m,Y,v[Y])}function cd(m){if(m.indexOf("-")===-1)return!1;switch(m){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 Xx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Nu=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ny(m){return Nu.test(""+m)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":m}function il(){}var Dy=null;function io(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var Kx=null,Qx=null;function vtt(m){var v=br(m);if(v&&(m=v.stateNode)){var E=m[Rt]||null;e:switch(m=v.stateNode,v.type){case"input":if(Ry(m,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name),v=E.name,E.type==="radio"&&v!=null){for(E=m;E.parentNode;)E=E.parentNode;for(E=E.querySelectorAll('input[name="'+Aa(""+v)+'"][type="radio"]'),v=0;v<E.length;v++){var N=E[v];if(N!==m&&N.form===m.form){var q=N[Rt]||null;if(!q)throw Error(n(90));Ry(N,q.value,q.defaultValue,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name)}}for(v=0;v<E.length;v++)N=E[v],N.form===m.form&&b5(N)}break e;case"textarea":T5(m,E.value,E.defaultValue);break e;case"select":v=E.value,v!=null&&d0(m,!!E.multiple,v,!1)}}}var mae=!1;function btt(m,v,E){if(mae)return m(v,E);mae=!0;try{return m(v)}finally{if(mae=!1,(Kx!==null||Qx!==null)&&(zM(),Kx&&(v=Kx,m=Qx,Qx=Kx=null,vtt(v),m)))for(v=0;v<m.length;v++)vtt(m[v])}}function w5(m,v){var E=m.stateNode;if(E===null)return null;var N=E[Rt]||null;if(N===null)return null;E=N[v];e:switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(N=!N.disabled)||(m=m.type,N=!(m==="button"||m==="input"||m==="select"||m==="textarea")),m=!N;break e;default:m=!1}if(m)return null;if(E&&typeof E!="function")throw Error(n(231,v,typeof E));return E}var qf=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yae=!1;if(qf)try{var E5={};Object.defineProperty(E5,"passive",{get:function(){yae=!0}}),window.addEventListener("test",E5,E5),window.removeEventListener("test",E5,E5)}catch{yae=!1}var f0=null,vae=null,eM=null;function xtt(){if(eM)return eM;var m,v=vae,E=v.length,N,q="value"in f0?f0.value:f0.textContent,Y=q.length;for(m=0;m<E&&v[m]===q[m];m++);var ie=E-m;for(N=1;N<=ie&&v[E-N]===q[Y-N];N++);return eM=q.slice(m,1<N?1-N:void 0)}function tM(m){var v=m.keyCode;return"charCode"in m?(m=m.charCode,m===0&&v===13&&(m=13)):m=v,m===10&&(m=13),32<=m||m===13?m:0}function rM(){return!0}function Ttt(){return!1}function nl(m){function v(E,N,q,Y,ie){this._reactName=E,this._targetInst=q,this.type=N,this.nativeEvent=Y,this.target=ie,this.currentTarget=null;for(var be in m)m.hasOwnProperty(be)&&(E=m[be],this[be]=E?E(Y):Y[be]);return this.isDefaultPrevented=(Y.defaultPrevented!=null?Y.defaultPrevented:Y.returnValue===!1)?rM:Ttt,this.isPropagationStopped=Ttt,this}return f(v.prototype,{preventDefault:function(){this.defaultPrevented=!0;var E=this.nativeEvent;E&&(E.preventDefault?E.preventDefault():typeof E.returnValue!="unknown"&&(E.returnValue=!1),this.isDefaultPrevented=rM)},stopPropagation:function(){var E=this.nativeEvent;E&&(E.stopPropagation?E.stopPropagation():typeof E.cancelBubble!="unknown"&&(E.cancelBubble=!0),this.isPropagationStopped=rM)},persist:function(){},isPersistent:rM}),v}var Iy={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(m){return m.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iM=nl(Iy),k5=f({},Iy,{view:0,detail:0}),QVt=nl(k5),bae,xae,C5,nM=f({},k5,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wae,button:0,buttons:0,relatedTarget:function(m){return m.relatedTarget===void 0?m.fromElement===m.srcElement?m.toElement:m.fromElement:m.relatedTarget},movementX:function(m){return"movementX"in m?m.movementX:(m!==C5&&(C5&&m.type==="mousemove"?(bae=m.screenX-C5.screenX,xae=m.screenY-C5.screenY):xae=bae=0,C5=m),bae)},movementY:function(m){return"movementY"in m?m.movementY:xae}}),wtt=nl(nM),ZVt=nl(f({},nM,{dataTransfer:0})),Tae=nl(f({},k5,{relatedTarget:0})),JVt=nl(f({},Iy,{animationName:0,elapsedTime:0,pseudoElement:0})),eqt=nl(f({},Iy,{clipboardData:function(m){return"clipboardData"in m?m.clipboardData:window.clipboardData}})),Ett=nl(f({},Iy,{data:0})),tqt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rqt={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"},iqt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nqt(m){var v=this.nativeEvent;return v.getModifierState?v.getModifierState(m):(m=iqt[m])?!!v[m]:!1}function wae(){return nqt}var aqt=nl(f({},k5,{key:function(m){if(m.key){var v=tqt[m.key]||m.key;if(v!=="Unidentified")return v}return m.type==="keypress"?(m=tM(m),m===13?"Enter":String.fromCharCode(m)):m.type==="keydown"||m.type==="keyup"?rqt[m.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wae,charCode:function(m){return m.type==="keypress"?tM(m):0},keyCode:function(m){return m.type==="keydown"||m.type==="keyup"?m.keyCode:0},which:function(m){return m.type==="keypress"?tM(m):m.type==="keydown"||m.type==="keyup"?m.keyCode:0}})),ktt=nl(f({},nM,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),sqt=nl(f({},k5,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wae})),oqt=nl(f({},Iy,{propertyName:0,elapsedTime:0,pseudoElement:0})),lqt=nl(f({},nM,{deltaX:function(m){return"deltaX"in m?m.deltaX:"wheelDeltaX"in m?-m.wheelDeltaX:0},deltaY:function(m){return"deltaY"in m?m.deltaY:"wheelDeltaY"in m?-m.wheelDeltaY:"wheelDelta"in m?-m.wheelDelta:0},deltaZ:0,deltaMode:0})),cqt=nl(f({},Iy,{newState:0,oldState:0})),uqt=[9,13,27,32],Eae=qf&&"CompositionEvent"in window,S5=null;qf&&"documentMode"in document&&(S5=document.documentMode);var hqt=qf&&"TextEvent"in window&&!S5,Ctt=qf&&(!Eae||S5&&8<S5&&11>=S5),Stt=" ",_tt=!1;function Att(m,v){switch(m){case"keyup":return uqt.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ltt(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var Zx=!1;function dqt(m,v){switch(m){case"compositionend":return Ltt(v);case"keypress":return v.which!==32?null:(_tt=!0,Stt);case"textInput":return m=v.data,m===Stt&&_tt?null:m;default:return null}}function fqt(m,v){if(Zx)return m==="compositionend"||!Eae&&Att(m,v)?(m=xtt(),eM=vae=f0=null,Zx=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1<v.char.length)return v.char;if(v.which)return String.fromCharCode(v.which)}return null;case"compositionend":return Ctt&&v.locale!=="ko"?null:v.data;default:return null}}var pqt={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 Rtt(m){var v=m&&m.nodeName&&m.nodeName.toLowerCase();return v==="input"?!!pqt[m.type]:v==="textarea"}function Ntt(m,v,E,N){Kx?Qx?Qx.push(N):Qx=[N]:Kx=N,v=YM(v,"onChange"),0<v.length&&(E=new iM("onChange","change",null,E,N),m.push({event:E,listeners:v}))}var _5=null,A5=null;function gqt(m){unt(m,0)}function aM(m){if(b5(mr(m)))return m}function Dtt(m,v){if(m==="change")return v}var Itt=!1;if(qf){var kae;if(qf){var Cae="oninput"in document;if(!Cae){var Mtt=document.createElement("div");Mtt.setAttribute("oninput","return;"),Cae=typeof Mtt.oninput=="function"}kae=Cae}else kae=!1;Itt=kae&&(!document.documentMode||9<document.documentMode)}function Ott(){_5&&(_5.detachEvent("onpropertychange",Ptt),A5=_5=null)}function Ptt(m){if(m.propertyName==="value"&&aM(A5)){var v=[];Ntt(v,A5,m,io(m)),btt(gqt,v)}}function mqt(m,v,E){m==="focusin"?(Ott(),_5=v,A5=E,_5.attachEvent("onpropertychange",Ptt)):m==="focusout"&&Ott()}function yqt(m){if(m==="selectionchange"||m==="keyup"||m==="keydown")return aM(A5)}function vqt(m,v){if(m==="click")return aM(v)}function bqt(m,v){if(m==="input"||m==="change")return aM(v)}function xqt(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var Ml=typeof Object.is=="function"?Object.is:xqt;function L5(m,v){if(Ml(m,v))return!0;if(typeof m!="object"||m===null||typeof v!="object"||v===null)return!1;var E=Object.keys(m),N=Object.keys(v);if(E.length!==N.length)return!1;for(N=0;N<E.length;N++){var q=E[N];if(!Me.call(v,q)||!Ml(m[q],v[q]))return!1}return!0}function Btt(m){for(;m&&m.firstChild;)m=m.firstChild;return m}function Ftt(m,v){var E=Btt(m);m=0;for(var N;E;){if(E.nodeType===3){if(N=m+E.textContent.length,m<=v&&N>=v)return{node:E,offset:v-m};m=N}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=Btt(E)}}function $tt(m,v){return m&&v?m===v?!0:m&&m.nodeType===3?!1:v&&v.nodeType===3?$tt(m,v.parentNode):"contains"in m?m.contains(v):m.compareDocumentPosition?!!(m.compareDocumentPosition(v)&16):!1:!1}function ztt(m){m=m!=null&&m.ownerDocument!=null&&m.ownerDocument.defaultView!=null?m.ownerDocument.defaultView:window;for(var v=Wx(m.document);v instanceof m.HTMLIFrameElement;){try{var E=typeof v.contentWindow.location.href=="string"}catch{E=!1}if(E)m=v.contentWindow;else break;v=Wx(m.document)}return v}function Sae(m){var v=m&&m.nodeName&&m.nodeName.toLowerCase();return v&&(v==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||v==="textarea"||m.contentEditable==="true")}var Tqt=qf&&"documentMode"in document&&11>=document.documentMode,Jx=null,_ae=null,R5=null,Aae=!1;function Utt(m,v,E){var N=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Aae||Jx==null||Jx!==Wx(N)||(N=Jx,"selectionStart"in N&&Sae(N)?N={start:N.selectionStart,end:N.selectionEnd}:(N=(N.ownerDocument&&N.ownerDocument.defaultView||window).getSelection(),N={anchorNode:N.anchorNode,anchorOffset:N.anchorOffset,focusNode:N.focusNode,focusOffset:N.focusOffset}),R5&&L5(R5,N)||(R5=N,N=YM(_ae,"onSelect"),0<N.length&&(v=new iM("onSelect","select",null,v,E),m.push({event:v,listeners:N}),v.target=Jx)))}function My(m,v){var E={};return E[m.toLowerCase()]=v.toLowerCase(),E["Webkit"+m]="webkit"+v,E["Moz"+m]="moz"+v,E}var eT={animationend:My("Animation","AnimationEnd"),animationiteration:My("Animation","AnimationIteration"),animationstart:My("Animation","AnimationStart"),transitionrun:My("Transition","TransitionRun"),transitionstart:My("Transition","TransitionStart"),transitioncancel:My("Transition","TransitionCancel"),transitionend:My("Transition","TransitionEnd")},Lae={},Htt={};qf&&(Htt=document.createElement("div").style,"AnimationEvent"in window||(delete eT.animationend.animation,delete eT.animationiteration.animation,delete eT.animationstart.animation),"TransitionEvent"in window||delete eT.transitionend.transition);function Oy(m){if(Lae[m])return Lae[m];if(!eT[m])return m;var v=eT[m],E;for(E in v)if(v.hasOwnProperty(E)&&E in Htt)return Lae[m]=v[E];return m}var Vtt=Oy("animationend"),qtt=Oy("animationiteration"),Gtt=Oy("animationstart"),wqt=Oy("transitionrun"),Eqt=Oy("transitionstart"),kqt=Oy("transitioncancel"),Wtt=Oy("transitionend"),Ytt=new Map,Rae="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Rae.push("scrollEnd");function Du(m,v){Ytt.set(m,v),tr(v,[m])}var sM=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)},mc=[],tT=0,Nae=0;function oM(){for(var m=tT,v=Nae=tT=0;v<m;){var E=mc[v];mc[v++]=null;var N=mc[v];mc[v++]=null;var q=mc[v];mc[v++]=null;var Y=mc[v];if(mc[v++]=null,N!==null&&q!==null){var ie=N.pending;ie===null?q.next=q:(q.next=ie.next,ie.next=q),N.pending=q}Y!==0&&jtt(E,q,Y)}}function lM(m,v,E,N){mc[tT++]=m,mc[tT++]=v,mc[tT++]=E,mc[tT++]=N,Nae|=N,m.lanes|=N,m=m.alternate,m!==null&&(m.lanes|=N)}function Dae(m,v,E,N){return lM(m,v,E,N),cM(m)}function Py(m,v){return lM(m,null,null,v),cM(m)}function jtt(m,v,E){m.lanes|=E;var N=m.alternate;N!==null&&(N.lanes|=E);for(var q=!1,Y=m.return;Y!==null;)Y.childLanes|=E,N=Y.alternate,N!==null&&(N.childLanes|=E),Y.tag===22&&(m=Y.stateNode,m===null||m._visibility&1||(q=!0)),m=Y,Y=Y.return;return m.tag===3?(Y=m.stateNode,q&&v!==null&&(q=31-Ie(E),m=Y.hiddenUpdates,N=m[q],N===null?m[q]=[v]:N.push(v),v.lane=E|536870912),Y):null}function cM(m){if(50<Z5)throw Z5=0,Use=null,Error(n(185));for(var v=m.return;v!==null;)m=v,v=m.return;return m.tag===3?m.stateNode:null}var rT={};function Cqt(m,v,E,N){this.tag=m,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=v,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ol(m,v,E,N){return new Cqt(m,v,E,N)}function Iae(m){return m=m.prototype,!(!m||!m.isReactComponent)}function Gf(m,v){var E=m.alternate;return E===null?(E=Ol(m.tag,v,m.key,m.mode),E.elementType=m.elementType,E.type=m.type,E.stateNode=m.stateNode,E.alternate=m,m.alternate=E):(E.pendingProps=v,E.type=m.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=m.flags&65011712,E.childLanes=m.childLanes,E.lanes=m.lanes,E.child=m.child,E.memoizedProps=m.memoizedProps,E.memoizedState=m.memoizedState,E.updateQueue=m.updateQueue,v=m.dependencies,E.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},E.sibling=m.sibling,E.index=m.index,E.ref=m.ref,E.refCleanup=m.refCleanup,E}function Xtt(m,v){m.flags&=65011714;var E=m.alternate;return E===null?(m.childLanes=0,m.lanes=v,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=E.childLanes,m.lanes=E.lanes,m.child=E.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=E.memoizedProps,m.memoizedState=E.memoizedState,m.updateQueue=E.updateQueue,m.type=E.type,v=E.dependencies,m.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext}),m}function uM(m,v,E,N,q,Y){var ie=0;if(N=m,typeof m=="function")Iae(m)&&(ie=1);else if(typeof m=="string")ie=NGt(m,E,Z.current)?26:m==="html"||m==="head"||m==="body"?27:5;else e:switch(m){case O:return m=Ol(31,E,v,q),m.elementType=O,m.lanes=Y,m;case b:return By(E.children,q,Y,v);case T:ie=8,q|=24;break;case w:return m=Ol(12,E,v,q|2),m.elementType=w,m.lanes=Y,m;case _:return m=Ol(13,E,v,q),m.elementType=_,m.lanes=Y,m;case S:return m=Ol(19,E,v,q),m.elementType=S,m.lanes=Y,m;default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case C:ie=10;break e;case x:ie=9;break e;case L:ie=11;break e;case A:ie=14;break e;case P:ie=16,N=null;break e}ie=29,E=Error(n(130,m===null?"null":typeof m,"")),N=null}return v=Ol(ie,E,v,q),v.elementType=m,v.type=N,v.lanes=Y,v}function By(m,v,E,N){return m=Ol(7,m,N,v),m.lanes=E,m}function Mae(m,v,E){return m=Ol(6,m,null,v),m.lanes=E,m}function Ktt(m){var v=Ol(18,null,null,0);return v.stateNode=m,v}function Oae(m,v,E){return v=Ol(4,m.children!==null?m.children:[],m.key,v),v.lanes=E,v.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},v}var Qtt=new WeakMap;function yc(m,v){if(typeof m=="object"&&m!==null){var E=Qtt.get(m);return E!==void 0?E:(v={value:m,source:v,stack:Qe(v)},Qtt.set(m,v),v)}return{value:m,source:v,stack:Qe(v)}}var iT=[],nT=0,hM=null,N5=0,vc=[],bc=0,p0=null,ud=1,hd="";function Wf(m,v){iT[nT++]=N5,iT[nT++]=hM,hM=m,N5=v}function Ztt(m,v,E){vc[bc++]=ud,vc[bc++]=hd,vc[bc++]=p0,p0=m;var N=ud;m=hd;var q=32-Ie(N)-1;N&=~(1<<q),E+=1;var Y=32-Ie(v)+q;if(30<Y){var ie=q-q%5;Y=(N&(1<<ie)-1).toString(32),N>>=ie,q-=ie,ud=1<<32-Ie(v)+q|E<<q|N,hd=Y+m}else ud=1<<Y|E<<q|N,hd=m}function Pae(m){m.return!==null&&(Wf(m,1),Ztt(m,1,0))}function Bae(m){for(;m===hM;)hM=iT[--nT],iT[nT]=null,N5=iT[--nT],iT[nT]=null;for(;m===p0;)p0=vc[--bc],vc[bc]=null,hd=vc[--bc],vc[bc]=null,ud=vc[--bc],vc[bc]=null}function Jtt(m,v){vc[bc++]=ud,vc[bc++]=hd,vc[bc++]=p0,ud=v.id,hd=v.overflow,p0=m}var Cs=null,_n=null,Ti=!1,g0=null,xc=!1,Fae=Error(n(519));function m0(m){throw D5(yc(Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML","")),m)),Fae}function ert(m){var v=m.stateNode,E=m.type,N=m.memoizedProps;switch(v[at]=m,v[Rt]=N,E){case"dialog":gi("cancel",v),gi("close",v);break;case"iframe":case"object":case"embed":gi("load",v);break;case"video":case"audio":for(E=0;E<e3.length;E++)gi(e3[E],v);break;case"source":gi("error",v);break;case"img":case"image":case"link":gi("error",v),gi("load",v);break;case"details":gi("toggle",v);break;case"input":gi("invalid",v),Yx(v,N.value,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name,!0);break;case"select":gi("invalid",v);break;case"textarea":gi("invalid",v),ss(v,N.value,N.defaultValue,N.children)}E=N.children,typeof E!="string"&&typeof E!="number"&&typeof E!="bigint"||v.textContent===""+E||N.suppressHydrationWarning===!0||gnt(v.textContent,E)?(N.popover!=null&&(gi("beforetoggle",v),gi("toggle",v)),N.onScroll!=null&&gi("scroll",v),N.onScrollEnd!=null&&gi("scrollend",v),N.onClick!=null&&(v.onclick=il),v=!0):v=!1,v||m0(m,!0)}function trt(m){for(Cs=m.return;Cs;)switch(Cs.tag){case 5:case 31:case 13:xc=!1;return;case 27:case 3:xc=!0;return;default:Cs=Cs.return}}function aT(m){if(m!==Cs)return!1;if(!Ti)return trt(m),Ti=!0,!1;var v=m.tag,E;if((E=v!==3&&v!==27)&&((E=v===5)&&(E=m.type,E=!(E!=="form"&&E!=="button")||toe(m.type,m.memoizedProps)),E=!E),E&&_n&&m0(m),trt(m),v===13){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));_n=knt(m)}else if(v===31){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));_n=knt(m)}else v===27?(v=_n,A0(m.type)?(m=soe,soe=null,_n=m):_n=v):_n=Cs?Ec(m.stateNode.nextSibling):null;return!0}function Fy(){_n=Cs=null,Ti=!1}function $ae(){var m=g0;return m!==null&&(ll===null?ll=m:ll.push.apply(ll,m),g0=null),m}function D5(m){g0===null?g0=[m]:g0.push(m)}var zae=W(null),$y=null,Yf=null;function y0(m,v,E){K(zae,v._currentValue),v._currentValue=E}function jf(m){m._currentValue=zae.current,G(zae)}function Uae(m,v,E){for(;m!==null;){var N=m.alternate;if((m.childLanes&v)!==v?(m.childLanes|=v,N!==null&&(N.childLanes|=v)):N!==null&&(N.childLanes&v)!==v&&(N.childLanes|=v),m===E)break;m=m.return}}function Hae(m,v,E,N){var q=m.child;for(q!==null&&(q.return=m);q!==null;){var Y=q.dependencies;if(Y!==null){var ie=q.child;Y=Y.firstContext;e:for(;Y!==null;){var be=Y;Y=q;for(var Ke=0;Ke<v.length;Ke++)if(be.context===v[Ke]){Y.lanes|=E,be=Y.alternate,be!==null&&(be.lanes|=E),Uae(Y.return,E,m),N||(ie=null);break e}Y=be.next}}else if(q.tag===18){if(ie=q.return,ie===null)throw Error(n(341));ie.lanes|=E,Y=ie.alternate,Y!==null&&(Y.lanes|=E),Uae(ie,E,m),ie=null}else ie=q.child;if(ie!==null)ie.return=q;else for(ie=q;ie!==null;){if(ie===m){ie=null;break}if(q=ie.sibling,q!==null){q.return=ie.return,ie=q;break}ie=ie.return}q=ie}}function sT(m,v,E,N){m=null;for(var q=v,Y=!1;q!==null;){if(!Y){if((q.flags&524288)!==0)Y=!0;else if((q.flags&262144)!==0)break}if(q.tag===10){var ie=q.alternate;if(ie===null)throw Error(n(387));if(ie=ie.memoizedProps,ie!==null){var be=q.type;Ml(q.pendingProps.value,ie.value)||(m!==null?m.push(be):m=[be])}}else if(q===se.current){if(ie=q.alternate,ie===null)throw Error(n(387));ie.memoizedState.memoizedState!==q.memoizedState.memoizedState&&(m!==null?m.push(a3):m=[a3])}q=q.return}m!==null&&Hae(v,m,E,N),v.flags|=262144}function dM(m){for(m=m.firstContext;m!==null;){if(!Ml(m.context._currentValue,m.memoizedValue))return!0;m=m.next}return!1}function zy(m){$y=m,Yf=null,m=m.dependencies,m!==null&&(m.firstContext=null)}function Ss(m){return rrt($y,m)}function fM(m,v){return $y===null&&zy(m),rrt(m,v)}function rrt(m,v){var E=v._currentValue;if(v={context:v,memoizedValue:E,next:null},Yf===null){if(m===null)throw Error(n(308));Yf=v,m.dependencies={lanes:0,firstContext:v},m.flags|=524288}else Yf=Yf.next=v;return E}var Sqt=typeof AbortController<"u"?AbortController:function(){var m=[],v=this.signal={aborted:!1,addEventListener:function(E,N){m.push(N)}};this.abort=function(){v.aborted=!0,m.forEach(function(E){return E()})}},_qt=t.unstable_scheduleCallback,Aqt=t.unstable_NormalPriority,La={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vae(){return{controller:new Sqt,data:new Map,refCount:0}}function I5(m){m.refCount--,m.refCount===0&&_qt(Aqt,function(){m.controller.abort()})}var M5=null,qae=0,oT=0,lT=null;function Lqt(m,v){if(M5===null){var E=M5=[];qae=0,oT=Yse(),lT={status:"pending",value:void 0,then:function(N){E.push(N)}}}return qae++,v.then(irt,irt),v}function irt(){if(--qae===0&&M5!==null){lT!==null&&(lT.status="fulfilled");var m=M5;M5=null,oT=0,lT=null;for(var v=0;v<m.length;v++)(0,m[v])()}}function Rqt(m,v){var E=[],N={status:"pending",value:null,reason:null,then:function(q){E.push(q)}};return m.then(function(){N.status="fulfilled",N.value=v;for(var q=0;q<E.length;q++)(0,E[q])(v)},function(q){for(N.status="rejected",N.reason=q,q=0;q<E.length;q++)(0,E[q])(void 0)}),N}var nrt=D.S;D.S=function(m,v){Fit=Ze(),typeof v=="object"&&v!==null&&typeof v.then=="function"&&Lqt(m,v),nrt!==null&&nrt(m,v)};var Uy=W(null);function Gae(){var m=Uy.current;return m!==null?m:fn.pooledCache}function pM(m,v){v===null?K(Uy,Uy.current):K(Uy,v.pool)}function art(){var m=Gae();return m===null?null:{parent:La._currentValue,pool:m}}var cT=Error(n(460)),Wae=Error(n(474)),gM=Error(n(542)),mM={then:function(){}};function srt(m){return m=m.status,m==="fulfilled"||m==="rejected"}function ort(m,v,E){switch(E=m[E],E===void 0?m.push(v):E!==v&&(v.then(il,il),v=E),v.status){case"fulfilled":return v.value;case"rejected":throw m=v.reason,crt(m),m;default:if(typeof v.status=="string")v.then(il,il);else{if(m=fn,m!==null&&100<m.shellSuspendCounter)throw Error(n(482));m=v,m.status="pending",m.then(function(N){if(v.status==="pending"){var q=v;q.status="fulfilled",q.value=N}},function(N){if(v.status==="pending"){var q=v;q.status="rejected",q.reason=N}})}switch(v.status){case"fulfilled":return v.value;case"rejected":throw m=v.reason,crt(m),m}throw Vy=v,cT}}function Hy(m){try{var v=m._init;return v(m._payload)}catch(E){throw E!==null&&typeof E=="object"&&typeof E.then=="function"?(Vy=E,cT):E}}var Vy=null;function lrt(){if(Vy===null)throw Error(n(459));var m=Vy;return Vy=null,m}function crt(m){if(m===cT||m===gM)throw Error(n(483))}var uT=null,O5=0;function yM(m){var v=O5;return O5+=1,uT===null&&(uT=[]),ort(uT,m,v)}function P5(m,v){v=v.props.ref,m.ref=v!==void 0?v:null}function vM(m,v){throw v.$$typeof===p?Error(n(525)):(m=Object.prototype.toString.call(v),Error(n(31,m==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":m)))}function urt(m){function v(lt,tt){if(m){var mt=lt.deletions;mt===null?(lt.deletions=[tt],lt.flags|=16):mt.push(tt)}}function E(lt,tt){if(!m)return null;for(;tt!==null;)v(lt,tt),tt=tt.sibling;return null}function N(lt){for(var tt=new Map;lt!==null;)lt.key!==null?tt.set(lt.key,lt):tt.set(lt.index,lt),lt=lt.sibling;return tt}function q(lt,tt){return lt=Gf(lt,tt),lt.index=0,lt.sibling=null,lt}function Y(lt,tt,mt){return lt.index=mt,m?(mt=lt.alternate,mt!==null?(mt=mt.index,mt<tt?(lt.flags|=67108866,tt):mt):(lt.flags|=67108866,tt)):(lt.flags|=1048576,tt)}function ie(lt){return m&<.alternate===null&&(lt.flags|=67108866),lt}function be(lt,tt,mt,Dt){return tt===null||tt.tag!==6?(tt=Mae(mt,lt.mode,Dt),tt.return=lt,tt):(tt=q(tt,mt),tt.return=lt,tt)}function Ke(lt,tt,mt,Dt){var Nr=mt.type;return Nr===b?Lt(lt,tt,mt.props.children,Dt,mt.key):tt!==null&&(tt.elementType===Nr||typeof Nr=="object"&&Nr!==null&&Nr.$$typeof===P&&Hy(Nr)===tt.type)?(tt=q(tt,mt.props),P5(tt,mt),tt.return=lt,tt):(tt=uM(mt.type,mt.key,mt.props,null,lt.mode,Dt),P5(tt,mt),tt.return=lt,tt)}function vt(lt,tt,mt,Dt){return tt===null||tt.tag!==4||tt.stateNode.containerInfo!==mt.containerInfo||tt.stateNode.implementation!==mt.implementation?(tt=Oae(mt,lt.mode,Dt),tt.return=lt,tt):(tt=q(tt,mt.children||[]),tt.return=lt,tt)}function Lt(lt,tt,mt,Dt,Nr){return tt===null||tt.tag!==7?(tt=By(mt,lt.mode,Dt,Nr),tt.return=lt,tt):(tt=q(tt,mt),tt.return=lt,tt)}function Bt(lt,tt,mt){if(typeof tt=="string"&&tt!==""||typeof tt=="number"||typeof tt=="bigint")return tt=Mae(""+tt,lt.mode,mt),tt.return=lt,tt;if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case g:return mt=uM(tt.type,tt.key,tt.props,null,lt.mode,mt),P5(mt,tt),mt.return=lt,mt;case y:return tt=Oae(tt,lt.mode,mt),tt.return=lt,tt;case P:return tt=Hy(tt),Bt(lt,tt,mt)}if(B(tt)||R(tt))return tt=By(tt,lt.mode,mt,null),tt.return=lt,tt;if(typeof tt.then=="function")return Bt(lt,yM(tt),mt);if(tt.$$typeof===C)return Bt(lt,fM(lt,tt),mt);vM(lt,tt)}return null}function xt(lt,tt,mt,Dt){var Nr=tt!==null?tt.key:null;if(typeof mt=="string"&&mt!==""||typeof mt=="number"||typeof mt=="bigint")return Nr!==null?null:be(lt,tt,""+mt,Dt);if(typeof mt=="object"&&mt!==null){switch(mt.$$typeof){case g:return mt.key===Nr?Ke(lt,tt,mt,Dt):null;case y:return mt.key===Nr?vt(lt,tt,mt,Dt):null;case P:return mt=Hy(mt),xt(lt,tt,mt,Dt)}if(B(mt)||R(mt))return Nr!==null?null:Lt(lt,tt,mt,Dt,null);if(typeof mt.then=="function")return xt(lt,tt,yM(mt),Dt);if(mt.$$typeof===C)return xt(lt,tt,fM(lt,mt),Dt);vM(lt,mt)}return null}function Ct(lt,tt,mt,Dt,Nr){if(typeof Dt=="string"&&Dt!==""||typeof Dt=="number"||typeof Dt=="bigint")return lt=lt.get(mt)||null,be(tt,lt,""+Dt,Nr);if(typeof Dt=="object"&&Dt!==null){switch(Dt.$$typeof){case g:return lt=lt.get(Dt.key===null?mt:Dt.key)||null,Ke(tt,lt,Dt,Nr);case y:return lt=lt.get(Dt.key===null?mt:Dt.key)||null,vt(tt,lt,Dt,Nr);case P:return Dt=Hy(Dt),Ct(lt,tt,mt,Dt,Nr)}if(B(Dt)||R(Dt))return lt=lt.get(mt)||null,Lt(tt,lt,Dt,Nr,null);if(typeof Dt.then=="function")return Ct(lt,tt,mt,yM(Dt),Nr);if(Dt.$$typeof===C)return Ct(lt,tt,mt,fM(tt,Dt),Nr);vM(tt,Dt)}return null}function xr(lt,tt,mt,Dt){for(var Nr=null,Pi=null,_r=tt,ri=tt=0,yi=null;_r!==null&&ri<mt.length;ri++){_r.index>ri?(yi=_r,_r=null):yi=_r.sibling;var Bi=xt(lt,_r,mt[ri],Dt);if(Bi===null){_r===null&&(_r=yi);break}m&&_r&&Bi.alternate===null&&v(lt,_r),tt=Y(Bi,tt,ri),Pi===null?Nr=Bi:Pi.sibling=Bi,Pi=Bi,_r=yi}if(ri===mt.length)return E(lt,_r),Ti&&Wf(lt,ri),Nr;if(_r===null){for(;ri<mt.length;ri++)_r=Bt(lt,mt[ri],Dt),_r!==null&&(tt=Y(_r,tt,ri),Pi===null?Nr=_r:Pi.sibling=_r,Pi=_r);return Ti&&Wf(lt,ri),Nr}for(_r=N(_r);ri<mt.length;ri++)yi=Ct(_r,lt,ri,mt[ri],Dt),yi!==null&&(m&&yi.alternate!==null&&_r.delete(yi.key===null?ri:yi.key),tt=Y(yi,tt,ri),Pi===null?Nr=yi:Pi.sibling=yi,Pi=yi);return m&&_r.forEach(function(I0){return v(lt,I0)}),Ti&&Wf(lt,ri),Nr}function Hr(lt,tt,mt,Dt){if(mt==null)throw Error(n(151));for(var Nr=null,Pi=null,_r=tt,ri=tt=0,yi=null,Bi=mt.next();_r!==null&&!Bi.done;ri++,Bi=mt.next()){_r.index>ri?(yi=_r,_r=null):yi=_r.sibling;var I0=xt(lt,_r,Bi.value,Dt);if(I0===null){_r===null&&(_r=yi);break}m&&_r&&I0.alternate===null&&v(lt,_r),tt=Y(I0,tt,ri),Pi===null?Nr=I0:Pi.sibling=I0,Pi=I0,_r=yi}if(Bi.done)return E(lt,_r),Ti&&Wf(lt,ri),Nr;if(_r===null){for(;!Bi.done;ri++,Bi=mt.next())Bi=Bt(lt,Bi.value,Dt),Bi!==null&&(tt=Y(Bi,tt,ri),Pi===null?Nr=Bi:Pi.sibling=Bi,Pi=Bi);return Ti&&Wf(lt,ri),Nr}for(_r=N(_r);!Bi.done;ri++,Bi=mt.next())Bi=Ct(_r,lt,ri,Bi.value,Dt),Bi!==null&&(m&&Bi.alternate!==null&&_r.delete(Bi.key===null?ri:Bi.key),tt=Y(Bi,tt,ri),Pi===null?Nr=Bi:Pi.sibling=Bi,Pi=Bi);return m&&_r.forEach(function(GGt){return v(lt,GGt)}),Ti&&Wf(lt,ri),Nr}function nn(lt,tt,mt,Dt){if(typeof mt=="object"&&mt!==null&&mt.type===b&&mt.key===null&&(mt=mt.props.children),typeof mt=="object"&&mt!==null){switch(mt.$$typeof){case g:e:{for(var Nr=mt.key;tt!==null;){if(tt.key===Nr){if(Nr=mt.type,Nr===b){if(tt.tag===7){E(lt,tt.sibling),Dt=q(tt,mt.props.children),Dt.return=lt,lt=Dt;break e}}else if(tt.elementType===Nr||typeof Nr=="object"&&Nr!==null&&Nr.$$typeof===P&&Hy(Nr)===tt.type){E(lt,tt.sibling),Dt=q(tt,mt.props),P5(Dt,mt),Dt.return=lt,lt=Dt;break e}E(lt,tt);break}else v(lt,tt);tt=tt.sibling}mt.type===b?(Dt=By(mt.props.children,lt.mode,Dt,mt.key),Dt.return=lt,lt=Dt):(Dt=uM(mt.type,mt.key,mt.props,null,lt.mode,Dt),P5(Dt,mt),Dt.return=lt,lt=Dt)}return ie(lt);case y:e:{for(Nr=mt.key;tt!==null;){if(tt.key===Nr)if(tt.tag===4&&tt.stateNode.containerInfo===mt.containerInfo&&tt.stateNode.implementation===mt.implementation){E(lt,tt.sibling),Dt=q(tt,mt.children||[]),Dt.return=lt,lt=Dt;break e}else{E(lt,tt);break}else v(lt,tt);tt=tt.sibling}Dt=Oae(mt,lt.mode,Dt),Dt.return=lt,lt=Dt}return ie(lt);case P:return mt=Hy(mt),nn(lt,tt,mt,Dt)}if(B(mt))return xr(lt,tt,mt,Dt);if(R(mt)){if(Nr=R(mt),typeof Nr!="function")throw Error(n(150));return mt=Nr.call(mt),Hr(lt,tt,mt,Dt)}if(typeof mt.then=="function")return nn(lt,tt,yM(mt),Dt);if(mt.$$typeof===C)return nn(lt,tt,fM(lt,mt),Dt);vM(lt,mt)}return typeof mt=="string"&&mt!==""||typeof mt=="number"||typeof mt=="bigint"?(mt=""+mt,tt!==null&&tt.tag===6?(E(lt,tt.sibling),Dt=q(tt,mt),Dt.return=lt,lt=Dt):(E(lt,tt),Dt=Mae(mt,lt.mode,Dt),Dt.return=lt,lt=Dt),ie(lt)):E(lt,tt)}return function(lt,tt,mt,Dt){try{O5=0;var Nr=nn(lt,tt,mt,Dt);return uT=null,Nr}catch(_r){if(_r===cT||_r===gM)throw _r;var Pi=Ol(29,_r,null,lt.mode);return Pi.lanes=Dt,Pi.return=lt,Pi}}}var qy=urt(!0),hrt=urt(!1),v0=!1;function Yae(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jae(m,v){m=m.updateQueue,v.updateQueue===m&&(v.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,callbacks:null})}function Gy(m){return{lane:m,tag:0,payload:null,callback:null,next:null}}function Wy(m,v,E){var N=m.updateQueue;if(N===null)return null;if(N=N.shared,(qi&2)!==0){var q=N.pending;return q===null?v.next=v:(v.next=q.next,q.next=v),N.pending=v,v=cM(m),jtt(m,null,E),v}return lM(m,N,v,E),cM(m)}function B5(m,v,E){if(v=v.updateQueue,v!==null&&(v=v.shared,(E&4194048)!==0)){var N=v.lanes;N&=m.pendingLanes,E|=N,v.lanes=E,bt(m,E)}}function Xae(m,v){var E=m.updateQueue,N=m.alternate;if(N!==null&&(N=N.updateQueue,E===N)){var q=null,Y=null;if(E=E.firstBaseUpdate,E!==null){do{var ie={lane:E.lane,tag:E.tag,payload:E.payload,callback:null,next:null};Y===null?q=Y=ie:Y=Y.next=ie,E=E.next}while(E!==null);Y===null?q=Y=v:Y=Y.next=v}else q=Y=v;E={baseState:N.baseState,firstBaseUpdate:q,lastBaseUpdate:Y,shared:N.shared,callbacks:N.callbacks},m.updateQueue=E;return}m=E.lastBaseUpdate,m===null?E.firstBaseUpdate=v:m.next=v,E.lastBaseUpdate=v}var Kae=!1;function F5(){if(Kae){var m=lT;if(m!==null)throw m}}function $5(m,v,E,N){Kae=!1;var q=m.updateQueue;v0=!1;var Y=q.firstBaseUpdate,ie=q.lastBaseUpdate,be=q.shared.pending;if(be!==null){q.shared.pending=null;var Ke=be,vt=Ke.next;Ke.next=null,ie===null?Y=vt:ie.next=vt,ie=Ke;var Lt=m.alternate;Lt!==null&&(Lt=Lt.updateQueue,be=Lt.lastBaseUpdate,be!==ie&&(be===null?Lt.firstBaseUpdate=vt:be.next=vt,Lt.lastBaseUpdate=Ke))}if(Y!==null){var Bt=q.baseState;ie=0,Lt=vt=Ke=null,be=Y;do{var xt=be.lane&-536870913,Ct=xt!==be.lane;if(Ct?(mi&xt)===xt:(N&xt)===xt){xt!==0&&xt===oT&&(Kae=!0),Lt!==null&&(Lt=Lt.next={lane:0,tag:be.tag,payload:be.payload,callback:null,next:null});e:{var xr=m,Hr=be;xt=v;var nn=E;switch(Hr.tag){case 1:if(xr=Hr.payload,typeof xr=="function"){Bt=xr.call(nn,Bt,xt);break e}Bt=xr;break e;case 3:xr.flags=xr.flags&-65537|128;case 0:if(xr=Hr.payload,xt=typeof xr=="function"?xr.call(nn,Bt,xt):xr,xt==null)break e;Bt=f({},Bt,xt);break e;case 2:v0=!0}}xt=be.callback,xt!==null&&(m.flags|=64,Ct&&(m.flags|=8192),Ct=q.callbacks,Ct===null?q.callbacks=[xt]:Ct.push(xt))}else Ct={lane:xt,tag:be.tag,payload:be.payload,callback:be.callback,next:null},Lt===null?(vt=Lt=Ct,Ke=Bt):Lt=Lt.next=Ct,ie|=xt;if(be=be.next,be===null){if(be=q.shared.pending,be===null)break;Ct=be,be=Ct.next,Ct.next=null,q.lastBaseUpdate=Ct,q.shared.pending=null}}while(!0);Lt===null&&(Ke=Bt),q.baseState=Ke,q.firstBaseUpdate=vt,q.lastBaseUpdate=Lt,Y===null&&(q.shared.lanes=0),E0|=ie,m.lanes=ie,m.memoizedState=Bt}}function drt(m,v){if(typeof m!="function")throw Error(n(191,m));m.call(v)}function frt(m,v){var E=m.callbacks;if(E!==null)for(m.callbacks=null,m=0;m<E.length;m++)drt(E[m],v)}var hT=W(null),bM=W(0);function prt(m,v){m=ip,K(bM,m),K(hT,v),ip=m|v.baseLanes}function Qae(){K(bM,ip),K(hT,hT.current)}function Zae(){ip=bM.current,G(hT),G(bM)}var Pl=W(null),Tc=null;function b0(m){var v=m.alternate;K(ua,ua.current&1),K(Pl,m),Tc===null&&(v===null||hT.current!==null||v.memoizedState!==null)&&(Tc=m)}function Jae(m){K(ua,ua.current),K(Pl,m),Tc===null&&(Tc=m)}function grt(m){m.tag===22?(K(ua,ua.current),K(Pl,m),Tc===null&&(Tc=m)):x0(m)}function x0(){K(ua,ua.current),K(Pl,Pl.current)}function Bl(m){G(Pl),Tc===m&&(Tc=null),G(ua)}var ua=W(0);function xM(m){for(var v=m;v!==null;){if(v.tag===13){var E=v.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||noe(E)||aoe(E)))return v}else if(v.tag===19&&(v.memoizedProps.revealOrder==="forwards"||v.memoizedProps.revealOrder==="backwards"||v.memoizedProps.revealOrder==="unstable_legacy-backwards"||v.memoizedProps.revealOrder==="together")){if((v.flags&128)!==0)return v}else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return null;v=v.return}v.sibling.return=v.return,v=v.sibling}return null}var Xf=0,Jr=null,tn=null,Ra=null,TM=!1,dT=!1,Yy=!1,wM=0,z5=0,fT=null,Nqt=0;function Zn(){throw Error(n(321))}function ese(m,v){if(v===null)return!1;for(var E=0;E<v.length&&E<m.length;E++)if(!Ml(m[E],v[E]))return!1;return!0}function tse(m,v,E,N,q,Y){return Xf=Y,Jr=v,v.memoizedState=null,v.updateQueue=null,v.lanes=0,D.H=m===null||m.memoizedState===null?Zrt:mse,Yy=!1,Y=E(N,q),Yy=!1,dT&&(Y=yrt(v,E,N,q)),mrt(m),Y}function mrt(m){D.H=V5;var v=tn!==null&&tn.next!==null;if(Xf=0,Ra=tn=Jr=null,TM=!1,z5=0,fT=null,v)throw Error(n(300));m===null||Na||(m=m.dependencies,m!==null&&dM(m)&&(Na=!0))}function yrt(m,v,E,N){Jr=m;var q=0;do{if(dT&&(fT=null),z5=0,dT=!1,25<=q)throw Error(n(301));if(q+=1,Ra=tn=null,m.updateQueue!=null){var Y=m.updateQueue;Y.lastEffect=null,Y.events=null,Y.stores=null,Y.memoCache!=null&&(Y.memoCache.index=0)}D.H=Jrt,Y=v(E,N)}while(dT);return Y}function Dqt(){var m=D.H,v=m.useState()[0];return v=typeof v.then=="function"?U5(v):v,m=m.useState()[0],(tn!==null?tn.memoizedState:null)!==m&&(Jr.flags|=1024),v}function rse(){var m=wM!==0;return wM=0,m}function ise(m,v,E){v.updateQueue=m.updateQueue,v.flags&=-2053,m.lanes&=~E}function nse(m){if(TM){for(m=m.memoizedState;m!==null;){var v=m.queue;v!==null&&(v.pending=null),m=m.next}TM=!1}Xf=0,Ra=tn=Jr=null,dT=!1,z5=wM=0,fT=null}function Do(){var m={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ra===null?Jr.memoizedState=Ra=m:Ra=Ra.next=m,Ra}function ha(){if(tn===null){var m=Jr.alternate;m=m!==null?m.memoizedState:null}else m=tn.next;var v=Ra===null?Jr.memoizedState:Ra.next;if(v!==null)Ra=v,tn=m;else{if(m===null)throw Jr.alternate===null?Error(n(467)):Error(n(310));tn=m,m={memoizedState:tn.memoizedState,baseState:tn.baseState,baseQueue:tn.baseQueue,queue:tn.queue,next:null},Ra===null?Jr.memoizedState=Ra=m:Ra=Ra.next=m}return Ra}function EM(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function U5(m){var v=z5;return z5+=1,fT===null&&(fT=[]),m=ort(fT,m,v),v=Jr,(Ra===null?v.memoizedState:Ra.next)===null&&(v=v.alternate,D.H=v===null||v.memoizedState===null?Zrt:mse),m}function kM(m){if(m!==null&&typeof m=="object"){if(typeof m.then=="function")return U5(m);if(m.$$typeof===C)return Ss(m)}throw Error(n(438,String(m)))}function ase(m){var v=null,E=Jr.updateQueue;if(E!==null&&(v=E.memoCache),v==null){var N=Jr.alternate;N!==null&&(N=N.updateQueue,N!==null&&(N=N.memoCache,N!=null&&(v={data:N.data.map(function(q){return q.slice()}),index:0})))}if(v??={data:[],index:0},E===null&&(E=EM(),Jr.updateQueue=E),E.memoCache=v,E=v.data[v.index],E===void 0)for(E=v.data[v.index]=Array(m),N=0;N<m;N++)E[N]=M;return v.index++,E}function Kf(m,v){return typeof v=="function"?v(m):v}function CM(m){return sse(ha(),tn,m)}function sse(m,v,E){var N=m.queue;if(N===null)throw Error(n(311));N.lastRenderedReducer=E;var q=m.baseQueue,Y=N.pending;if(Y!==null){if(q!==null){var ie=q.next;q.next=Y.next,Y.next=ie}v.baseQueue=q=Y,N.pending=null}if(Y=m.baseState,q===null)m.memoizedState=Y;else{v=q.next;var be=ie=null,Ke=null,vt=v,Lt=!1;do{var Bt=vt.lane&-536870913;if(Bt!==vt.lane?(mi&Bt)===Bt:(Xf&Bt)===Bt){var xt=vt.revertLane;if(xt===0)Ke!==null&&(Ke=Ke.next={lane:0,revertLane:0,gesture:null,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null}),Bt===oT&&(Lt=!0);else if((Xf&xt)===xt){vt=vt.next,xt===oT&&(Lt=!0);continue}else Bt={lane:0,revertLane:vt.revertLane,gesture:null,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null},Ke===null?(be=Ke=Bt,ie=Y):Ke=Ke.next=Bt,Jr.lanes|=xt,E0|=xt;Bt=vt.action,Yy&&E(Y,Bt),Y=vt.hasEagerState?vt.eagerState:E(Y,Bt)}else xt={lane:Bt,revertLane:vt.revertLane,gesture:vt.gesture,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null},Ke===null?(be=Ke=xt,ie=Y):Ke=Ke.next=xt,Jr.lanes|=Bt,E0|=Bt;vt=vt.next}while(vt!==null&&vt!==v);if(Ke===null?ie=Y:Ke.next=be,!Ml(Y,m.memoizedState)&&(Na=!0,Lt&&(E=lT,E!==null)))throw E;m.memoizedState=Y,m.baseState=ie,m.baseQueue=Ke,N.lastRenderedState=Y}return q===null&&(N.lanes=0),[m.memoizedState,N.dispatch]}function ose(m){var v=ha(),E=v.queue;if(E===null)throw Error(n(311));E.lastRenderedReducer=m;var N=E.dispatch,q=E.pending,Y=v.memoizedState;if(q!==null){E.pending=null;var ie=q=q.next;do Y=m(Y,ie.action),ie=ie.next;while(ie!==q);Ml(Y,v.memoizedState)||(Na=!0),v.memoizedState=Y,v.baseQueue===null&&(v.baseState=Y),E.lastRenderedState=Y}return[Y,N]}function vrt(m,v,E){var N=Jr,q=ha(),Y=Ti;if(Y){if(E===void 0)throw Error(n(407));E=E()}else E=v();var ie=!Ml((tn||q).memoizedState,E);if(ie&&(q.memoizedState=E,Na=!0),q=q.queue,use(Trt.bind(null,N,q,m),[m]),q.getSnapshot!==v||ie||Ra!==null&&Ra.memoizedState.tag&1){if(N.flags|=2048,pT(9,{destroy:void 0},xrt.bind(null,N,q,E,v),null),fn===null)throw Error(n(349));Y||(Xf&127)!==0||brt(N,v,E)}return E}function brt(m,v,E){m.flags|=16384,m={getSnapshot:v,value:E},v=Jr.updateQueue,v===null?(v=EM(),Jr.updateQueue=v,v.stores=[m]):(E=v.stores,E===null?v.stores=[m]:E.push(m))}function xrt(m,v,E,N){v.value=E,v.getSnapshot=N,wrt(v)&&Ert(m)}function Trt(m,v,E){return E(function(){wrt(v)&&Ert(m)})}function wrt(m){var v=m.getSnapshot;m=m.value;try{var E=v();return!Ml(m,E)}catch{return!0}}function Ert(m){var v=Py(m,2);v!==null&&cl(v,m,2)}function lse(m){var v=Do();if(typeof m=="function"){var E=m;if(m=E(),Yy){Ae(!0);try{E()}finally{Ae(!1)}}}return v.memoizedState=v.baseState=m,v.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kf,lastRenderedState:m},v}function krt(m,v,E,N){return m.baseState=E,sse(m,tn,typeof N=="function"?N:Kf)}function Iqt(m,v,E,N,q){if(AM(m))throw Error(n(485));if(m=v.action,m!==null){var Y={payload:q,action:m,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(ie){Y.listeners.push(ie)}};D.T!==null?E(!0):Y.isTransition=!1,N(Y),E=v.pending,E===null?(Y.next=v.pending=Y,Crt(v,Y)):(Y.next=E.next,v.pending=E.next=Y)}}function Crt(m,v){var E=v.action,N=v.payload,q=m.state;if(v.isTransition){var Y=D.T,ie={};D.T=ie;try{var be=E(q,N),Ke=D.S;Ke!==null&&Ke(ie,be),Srt(m,v,be)}catch(vt){cse(m,v,vt)}finally{Y!==null&&ie.types!==null&&(Y.types=ie.types),D.T=Y}}else try{Y=E(q,N),Srt(m,v,Y)}catch(vt){cse(m,v,vt)}}function Srt(m,v,E){E!==null&&typeof E=="object"&&typeof E.then=="function"?E.then(function(N){_rt(m,v,N)},function(N){return cse(m,v,N)}):_rt(m,v,E)}function _rt(m,v,E){v.status="fulfilled",v.value=E,Art(v),m.state=E,v=m.pending,v!==null&&(E=v.next,E===v?m.pending=null:(E=E.next,v.next=E,Crt(m,E)))}function cse(m,v,E){var N=m.pending;if(m.pending=null,N!==null){N=N.next;do v.status="rejected",v.reason=E,Art(v),v=v.next;while(v!==N)}m.action=null}function Art(m){m=m.listeners;for(var v=0;v<m.length;v++)(0,m[v])()}function Lrt(m,v){return v}function Rrt(m,v){if(Ti){var E=fn.formState;if(E!==null){e:{var N=Jr;if(Ti){if(_n){t:{for(var q=_n,Y=xc;q.nodeType!==8;){if(!Y){q=null;break t}if(q=Ec(q.nextSibling),q===null){q=null;break t}}Y=q.data,q=Y==="F!"||Y==="F"?q:null}if(q){_n=Ec(q.nextSibling),N=q.data==="F!";break e}}m0(N)}N=!1}N&&(v=E[0])}}return E=Do(),E.memoizedState=E.baseState=v,N={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lrt,lastRenderedState:v},E.queue=N,E=Xrt.bind(null,Jr,N),N.dispatch=E,N=lse(!1),Y=gse.bind(null,Jr,!1,N.queue),N=Do(),q={state:v,dispatch:null,action:m,pending:null},N.queue=q,E=Iqt.bind(null,Jr,q,Y,E),q.dispatch=E,N.memoizedState=m,[v,E,!1]}function Nrt(m){return Drt(ha(),tn,m)}function Drt(m,v,E){if(v=sse(m,v,Lrt)[0],m=CM(Kf)[0],typeof v=="object"&&v!==null&&typeof v.then=="function")try{var N=U5(v)}catch(ie){throw ie===cT?gM:ie}else N=v;v=ha();var q=v.queue,Y=q.dispatch;return E!==v.memoizedState&&(Jr.flags|=2048,pT(9,{destroy:void 0},Mqt.bind(null,q,E),null)),[N,Y,m]}function Mqt(m,v){m.action=v}function Irt(m){var v=ha(),E=tn;if(E!==null)return Drt(v,E,m);ha(),v=v.memoizedState,E=ha();var N=E.queue.dispatch;return E.memoizedState=m,[v,N,!1]}function pT(m,v,E,N){return m={tag:m,create:E,deps:N,inst:v,next:null},v=Jr.updateQueue,v===null&&(v=EM(),Jr.updateQueue=v),E=v.lastEffect,E===null?v.lastEffect=m.next=m:(N=E.next,E.next=m,m.next=N,v.lastEffect=m),m}function Mrt(){return ha().memoizedState}function SM(m,v,E,N){var q=Do();Jr.flags|=m,q.memoizedState=pT(1|v,{destroy:void 0},E,N===void 0?null:N)}function _M(m,v,E,N){var q=ha();N=N===void 0?null:N;var Y=q.memoizedState.inst;tn!==null&&N!==null&&ese(N,tn.memoizedState.deps)?q.memoizedState=pT(v,Y,E,N):(Jr.flags|=m,q.memoizedState=pT(1|v,Y,E,N))}function Ort(m,v){SM(8390656,8,m,v)}function use(m,v){_M(2048,8,m,v)}function Oqt(m){Jr.flags|=4;var v=Jr.updateQueue;if(v===null)v=EM(),Jr.updateQueue=v,v.events=[m];else{var E=v.events;E===null?v.events=[m]:E.push(m)}}function Prt(m){var v=ha().memoizedState;return Oqt({ref:v,nextImpl:m}),function(){if((qi&2)!==0)throw Error(n(440));return v.impl.apply(void 0,arguments)}}function Brt(m,v){return _M(4,2,m,v)}function Frt(m,v){return _M(4,4,m,v)}function $rt(m,v){if(typeof v=="function"){m=m();var E=v(m);return function(){typeof E=="function"?E():v(null)}}if(v!=null)return m=m(),v.current=m,function(){v.current=null}}function zrt(m,v,E){E=E!=null?E.concat([m]):null,_M(4,4,$rt.bind(null,v,m),E)}function hse(){}function Urt(m,v){var E=ha();v=v===void 0?null:v;var N=E.memoizedState;return v!==null&&ese(v,N[1])?N[0]:(E.memoizedState=[m,v],m)}function Hrt(m,v){var E=ha();v=v===void 0?null:v;var N=E.memoizedState;if(v!==null&&ese(v,N[1]))return N[0];if(N=m(),Yy){Ae(!0);try{m()}finally{Ae(!1)}}return E.memoizedState=[N,v],N}function dse(m,v,E){return E===void 0||(Xf&1073741824)!==0&&(mi&261930)===0?m.memoizedState=v:(m.memoizedState=E,m=zit(),Jr.lanes|=m,E0|=m,E)}function Vrt(m,v,E,N){return Ml(E,v)?E:hT.current!==null?(m=dse(m,E,N),Ml(m,v)||(Na=!0),m):(Xf&42)===0||(Xf&1073741824)!==0&&(mi&261930)===0?(Na=!0,m.memoizedState=E):(m=zit(),Jr.lanes|=m,E0|=m,v)}function qrt(m,v,E,N,q){var Y=$.p;$.p=Y!==0&&8>Y?Y:8;var ie=D.T,be={};D.T=be,gse(m,!1,v,E);try{var Ke=q(),vt=D.S;vt!==null&&vt(be,Ke),Ke!==null&&typeof Ke=="object"&&typeof Ke.then=="function"?H5(m,v,Rqt(Ke,N),wc(m)):H5(m,v,N,wc(m))}catch(Lt){H5(m,v,{then:function(){},status:"rejected",reason:Lt},wc())}finally{$.p=Y,ie!==null&&be.types!==null&&(ie.types=be.types),D.T=ie}}function Pqt(){}function fse(m,v,E,N){if(m.tag!==5)throw Error(n(476));var q=Grt(m).queue;qrt(m,q,v,H,E===null?Pqt:function(){return Wrt(m),E(N)})}function Grt(m){var v=m.memoizedState;if(v!==null)return v;v={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kf,lastRenderedState:H},next:null};var E={};return v.next={memoizedState:E,baseState:E,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kf,lastRenderedState:E},next:null},m.memoizedState=v,m=m.alternate,m!==null&&(m.memoizedState=v),v}function Wrt(m){var v=Grt(m);v.next===null&&(v=m.alternate.memoizedState),H5(m,v.next.queue,{},wc())}function pse(){return Ss(a3)}function Yrt(){return ha().memoizedState}function jrt(){return ha().memoizedState}function Bqt(m){for(var v=m.return;v!==null;){switch(v.tag){case 24:case 3:var E=wc();m=Gy(E);var N=Wy(v,m,E);N!==null&&(cl(N,v,E),B5(N,v,E)),v={cache:Vae()},m.payload=v;return}v=v.return}}function Fqt(m,v,E){var N=wc();E={lane:N,revertLane:0,gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null},AM(m)?Krt(v,E):(E=Dae(m,v,E,N),E!==null&&(cl(E,m,N),Qrt(E,v,N)))}function Xrt(m,v,E){H5(m,v,E,wc())}function H5(m,v,E,N){var q={lane:N,revertLane:0,gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null};if(AM(m))Krt(v,q);else{var Y=m.alternate;if(m.lanes===0&&(Y===null||Y.lanes===0)&&(Y=v.lastRenderedReducer,Y!==null))try{var ie=v.lastRenderedState,be=Y(ie,E);if(q.hasEagerState=!0,q.eagerState=be,Ml(be,ie))return lM(m,v,q,0),fn===null&&oM(),!1}catch{}if(E=Dae(m,v,q,N),E!==null)return cl(E,m,N),Qrt(E,v,N),!0}return!1}function gse(m,v,E,N){if(N={lane:2,revertLane:Yse(),gesture:null,action:N,hasEagerState:!1,eagerState:null,next:null},AM(m)){if(v)throw Error(n(479))}else v=Dae(m,E,N,2),v!==null&&cl(v,m,2)}function AM(m){var v=m.alternate;return m===Jr||v!==null&&v===Jr}function Krt(m,v){dT=TM=!0;var E=m.pending;E===null?v.next=v:(v.next=E.next,E.next=v),m.pending=v}function Qrt(m,v,E){if((E&4194048)!==0){var N=v.lanes;N&=m.pendingLanes,E|=N,v.lanes=E,bt(m,E)}}var V5={readContext:Ss,use:kM,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useLayoutEffect:Zn,useInsertionEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useSyncExternalStore:Zn,useId:Zn,useHostTransitionStatus:Zn,useFormState:Zn,useActionState:Zn,useOptimistic:Zn,useMemoCache:Zn,useCacheRefresh:Zn};V5.useEffectEvent=Zn;var Zrt={readContext:Ss,use:kM,useCallback:function(m,v){return Do().memoizedState=[m,v===void 0?null:v],m},useContext:Ss,useEffect:Ort,useImperativeHandle:function(m,v,E){E=E!=null?E.concat([m]):null,SM(4194308,4,$rt.bind(null,v,m),E)},useLayoutEffect:function(m,v){return SM(4194308,4,m,v)},useInsertionEffect:function(m,v){SM(4,2,m,v)},useMemo:function(m,v){var E=Do();v=v===void 0?null:v;var N=m();if(Yy){Ae(!0);try{m()}finally{Ae(!1)}}return E.memoizedState=[N,v],N},useReducer:function(m,v,E){var N=Do();if(E!==void 0){var q=E(v);if(Yy){Ae(!0);try{E(v)}finally{Ae(!1)}}}else q=v;return N.memoizedState=N.baseState=q,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:q},N.queue=m,m=m.dispatch=Fqt.bind(null,Jr,m),[N.memoizedState,m]},useRef:function(m){var v=Do();return m={current:m},v.memoizedState=m},useState:function(m){m=lse(m);var v=m.queue,E=Xrt.bind(null,Jr,v);return v.dispatch=E,[m.memoizedState,E]},useDebugValue:hse,useDeferredValue:function(m,v){return dse(Do(),m,v)},useTransition:function(){var m=lse(!1);return m=qrt.bind(null,Jr,m.queue,!0,!1),Do().memoizedState=m,[!1,m]},useSyncExternalStore:function(m,v,E){var N=Jr,q=Do();if(Ti){if(E===void 0)throw Error(n(407));E=E()}else{if(E=v(),fn===null)throw Error(n(349));(mi&127)!==0||brt(N,v,E)}q.memoizedState=E;var Y={value:E,getSnapshot:v};return q.queue=Y,Ort(Trt.bind(null,N,Y,m),[m]),N.flags|=2048,pT(9,{destroy:void 0},xrt.bind(null,N,Y,E,v),null),E},useId:function(){var m=Do(),v=fn.identifierPrefix;if(Ti){var E=hd,N=ud;E=(N&~(1<<32-Ie(N)-1)).toString(32)+E,v="_"+v+"R_"+E,E=wM++,0<E&&(v+="H"+E.toString(32)),v+="_"}else E=Nqt++,v="_"+v+"r_"+E.toString(32)+"_";return m.memoizedState=v},useHostTransitionStatus:pse,useFormState:Rrt,useActionState:Rrt,useOptimistic:function(m){var v=Do();v.memoizedState=v.baseState=m;var E={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return v.queue=E,v=gse.bind(null,Jr,!0,E),E.dispatch=v,[m,v]},useMemoCache:ase,useCacheRefresh:function(){return Do().memoizedState=Bqt.bind(null,Jr)},useEffectEvent:function(m){var v=Do(),E={impl:m};return v.memoizedState=E,function(){if((qi&2)!==0)throw Error(n(440));return E.impl.apply(void 0,arguments)}}},mse={readContext:Ss,use:kM,useCallback:Urt,useContext:Ss,useEffect:use,useImperativeHandle:zrt,useInsertionEffect:Brt,useLayoutEffect:Frt,useMemo:Hrt,useReducer:CM,useRef:Mrt,useState:function(){return CM(Kf)},useDebugValue:hse,useDeferredValue:function(m,v){return Vrt(ha(),tn.memoizedState,m,v)},useTransition:function(){var m=CM(Kf)[0],v=ha().memoizedState;return[typeof m=="boolean"?m:U5(m),v]},useSyncExternalStore:vrt,useId:Yrt,useHostTransitionStatus:pse,useFormState:Nrt,useActionState:Nrt,useOptimistic:function(m,v){return krt(ha(),tn,m,v)},useMemoCache:ase,useCacheRefresh:jrt};mse.useEffectEvent=Prt;var Jrt={readContext:Ss,use:kM,useCallback:Urt,useContext:Ss,useEffect:use,useImperativeHandle:zrt,useInsertionEffect:Brt,useLayoutEffect:Frt,useMemo:Hrt,useReducer:ose,useRef:Mrt,useState:function(){return ose(Kf)},useDebugValue:hse,useDeferredValue:function(m,v){var E=ha();return tn===null?dse(E,m,v):Vrt(E,tn.memoizedState,m,v)},useTransition:function(){var m=ose(Kf)[0],v=ha().memoizedState;return[typeof m=="boolean"?m:U5(m),v]},useSyncExternalStore:vrt,useId:Yrt,useHostTransitionStatus:pse,useFormState:Irt,useActionState:Irt,useOptimistic:function(m,v){var E=ha();return tn!==null?krt(E,tn,m,v):(E.baseState=m,[m,E.queue.dispatch])},useMemoCache:ase,useCacheRefresh:jrt};Jrt.useEffectEvent=Prt;function yse(m,v,E,N){v=m.memoizedState,E=E(N,v),E=E==null?v:f({},v,E),m.memoizedState=E,m.lanes===0&&(m.updateQueue.baseState=E)}var vse={enqueueSetState:function(m,v,E){m=m._reactInternals;var N=wc(),q=Gy(N);q.payload=v,E!=null&&(q.callback=E),v=Wy(m,q,N),v!==null&&(cl(v,m,N),B5(v,m,N))},enqueueReplaceState:function(m,v,E){m=m._reactInternals;var N=wc(),q=Gy(N);q.tag=1,q.payload=v,E!=null&&(q.callback=E),v=Wy(m,q,N),v!==null&&(cl(v,m,N),B5(v,m,N))},enqueueForceUpdate:function(m,v){m=m._reactInternals;var E=wc(),N=Gy(E);N.tag=2,v!=null&&(N.callback=v),v=Wy(m,N,E),v!==null&&(cl(v,m,E),B5(v,m,E))}};function eit(m,v,E,N,q,Y,ie){return m=m.stateNode,typeof m.shouldComponentUpdate=="function"?m.shouldComponentUpdate(N,Y,ie):v.prototype&&v.prototype.isPureReactComponent?!L5(E,N)||!L5(q,Y):!0}function tit(m,v,E,N){m=v.state,typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps(E,N),typeof v.UNSAFE_componentWillReceiveProps=="function"&&v.UNSAFE_componentWillReceiveProps(E,N),v.state!==m&&vse.enqueueReplaceState(v,v.state,null)}function jy(m,v){var E=v;if("ref"in v){E={};for(var N in v)N!=="ref"&&(E[N]=v[N])}if(m=m.defaultProps){E===v&&(E=f({},E));for(var q in m)E[q]===void 0&&(E[q]=m[q])}return E}function $qt(m){sM(m)}function zqt(m){console.error(m)}function Uqt(m){sM(m)}function LM(m,v){try{var E=m.onUncaughtError;E(v.value,{componentStack:v.stack})}catch(N){setTimeout(function(){throw N})}}function rit(m,v,E){try{var N=m.onCaughtError;N(E.value,{componentStack:E.stack,errorBoundary:v.tag===1?v.stateNode:null})}catch(q){setTimeout(function(){throw q})}}function bse(m,v,E){return E=Gy(E),E.tag=3,E.payload={element:null},E.callback=function(){LM(m,v)},E}function iit(m){return m=Gy(m),m.tag=3,m}function nit(m,v,E,N){var q=E.type.getDerivedStateFromError;if(typeof q=="function"){var Y=N.value;m.payload=function(){return q(Y)},m.callback=function(){rit(v,E,N)}}var ie=E.stateNode;ie!==null&&typeof ie.componentDidCatch=="function"&&(m.callback=function(){rit(v,E,N),typeof q!="function"&&(k0===null?k0=new Set([this]):k0.add(this));var be=N.stack;this.componentDidCatch(N.value,{componentStack:be!==null?be:""})})}function Hqt(m,v,E,N,q){if(E.flags|=32768,N!==null&&typeof N=="object"&&typeof N.then=="function"){if(v=E.alternate,v!==null&&sT(v,E,q,!0),E=Pl.current,E!==null){switch(E.tag){case 31:case 13:return Tc===null?UM():E.alternate===null&&Jn===0&&(Jn=3),E.flags&=-257,E.flags|=65536,E.lanes=q,N===mM?E.flags|=16384:(v=E.updateQueue,v===null?E.updateQueue=new Set([N]):v.add(N),qse(m,N,q)),!1;case 22:return E.flags|=65536,N===mM?E.flags|=16384:(v=E.updateQueue,v===null?(v={transitions:null,markerInstances:null,retryQueue:new Set([N])},E.updateQueue=v):(E=v.retryQueue,E===null?v.retryQueue=new Set([N]):E.add(N)),qse(m,N,q)),!1}throw Error(n(435,E.tag))}return qse(m,N,q),UM(),!1}if(Ti)return v=Pl.current,v!==null?((v.flags&65536)===0&&(v.flags|=256),v.flags|=65536,v.lanes=q,N!==Fae&&(m=Error(n(422),{cause:N}),D5(yc(m,E)))):(N!==Fae&&(v=Error(n(423),{cause:N}),D5(yc(v,E))),m=m.current.alternate,m.flags|=65536,q&=-q,m.lanes|=q,N=yc(N,E),q=bse(m.stateNode,N,q),Xae(m,q),Jn!==4&&(Jn=2)),!1;var Y=Error(n(520),{cause:N});if(Y=yc(Y,E),Q5===null?Q5=[Y]:Q5.push(Y),Jn!==4&&(Jn=2),v===null)return!0;N=yc(N,E),E=v;do{switch(E.tag){case 3:return E.flags|=65536,m=q&-q,E.lanes|=m,m=bse(E.stateNode,N,m),Xae(E,m),!1;case 1:if(v=E.type,Y=E.stateNode,(E.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||Y!==null&&typeof Y.componentDidCatch=="function"&&(k0===null||!k0.has(Y))))return E.flags|=65536,q&=-q,E.lanes|=q,q=iit(q),nit(q,m,E,N),Xae(E,q),!1}E=E.return}while(E!==null);return!1}var xse=Error(n(461)),Na=!1;function _s(m,v,E,N){v.child=m===null?hrt(v,null,E,N):qy(v,m.child,E,N)}function ait(m,v,E,N,q){E=E.render;var Y=v.ref;if("ref"in N){var ie={};for(var be in N)be!=="ref"&&(ie[be]=N[be])}else ie=N;return zy(v),N=tse(m,v,E,ie,Y,q),be=rse(),m!==null&&!Na?(ise(m,v,q),Qf(m,v,q)):(Ti&&be&&Pae(v),v.flags|=1,_s(m,v,N,q),v.child)}function sit(m,v,E,N,q){if(m===null){var Y=E.type;return typeof Y=="function"&&!Iae(Y)&&Y.defaultProps===void 0&&E.compare===null?(v.tag=15,v.type=Y,oit(m,v,Y,N,q)):(m=uM(E.type,null,N,v,v.mode,q),m.ref=v.ref,m.return=v,v.child=m)}if(Y=m.child,!Ase(m,q)){var ie=Y.memoizedProps;if(E=E.compare,E=E!==null?E:L5,E(ie,N)&&m.ref===v.ref)return Qf(m,v,q)}return v.flags|=1,m=Gf(Y,N),m.ref=v.ref,m.return=v,v.child=m}function oit(m,v,E,N,q){if(m!==null){var Y=m.memoizedProps;if(L5(Y,N)&&m.ref===v.ref)if(Na=!1,v.pendingProps=N=Y,Ase(m,q))(m.flags&131072)!==0&&(Na=!0);else return v.lanes=m.lanes,Qf(m,v,q)}return Tse(m,v,E,N,q)}function lit(m,v,E,N){var q=N.children,Y=m!==null?m.memoizedState:null;if(m===null&&v.stateNode===null&&(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),N.mode==="hidden"){if((v.flags&128)!==0){if(Y=Y!==null?Y.baseLanes|E:E,m!==null){for(N=v.child=m.child,q=0;N!==null;)q=q|N.lanes|N.childLanes,N=N.sibling;N=q&~Y}else N=0,v.child=null;return cit(m,v,Y,E,N)}if((E&536870912)!==0)v.memoizedState={baseLanes:0,cachePool:null},m!==null&&pM(v,Y!==null?Y.cachePool:null),Y!==null?prt(v,Y):Qae(),grt(v);else return N=v.lanes=536870912,cit(m,v,Y!==null?Y.baseLanes|E:E,E,N)}else Y!==null?(pM(v,Y.cachePool),prt(v,Y),x0(v),v.memoizedState=null):(m!==null&&pM(v,null),Qae(),x0(v));return _s(m,v,q,E),v.child}function q5(m,v){return m!==null&&m.tag===22||v.stateNode!==null||(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.sibling}function cit(m,v,E,N,q){var Y=Gae();return Y=Y===null?null:{parent:La._currentValue,pool:Y},v.memoizedState={baseLanes:E,cachePool:Y},m!==null&&pM(v,null),Qae(),grt(v),m!==null&&sT(m,v,N,!0),v.childLanes=q,null}function RM(m,v){return v=DM({mode:v.mode,children:v.children},m.mode),v.ref=m.ref,m.child=v,v.return=m,v}function uit(m,v,E){return qy(v,m.child,null,E),m=RM(v,v.pendingProps),m.flags|=2,Bl(v),v.memoizedState=null,m}function Vqt(m,v,E){var N=v.pendingProps,q=(v.flags&128)!==0;if(v.flags&=-129,m===null){if(Ti){if(N.mode==="hidden")return m=RM(v,N),v.lanes=536870912,q5(null,m);if(Jae(v),(m=_n)?(m=Ent(m,xc),m=m!==null&&m.data==="&"?m:null,m!==null&&(v.memoizedState={dehydrated:m,treeContext:p0!==null?{id:ud,overflow:hd}:null,retryLane:536870912,hydrationErrors:null},E=Ktt(m),E.return=v,v.child=E,Cs=v,_n=null)):m=null,m===null)throw m0(v);return v.lanes=536870912,null}return RM(v,N)}var Y=m.memoizedState;if(Y!==null){var ie=Y.dehydrated;if(Jae(v),q)if(v.flags&256)v.flags&=-257,v=uit(m,v,E);else if(v.memoizedState!==null)v.child=m.child,v.flags|=128,v=null;else throw Error(n(558));else if(Na||sT(m,v,E,!1),q=(E&m.childLanes)!==0,Na||q){if(N=fn,N!==null&&(ie=me(N,E),ie!==0&&ie!==Y.retryLane))throw Y.retryLane=ie,Py(m,ie),cl(N,m,ie),xse;UM(),v=uit(m,v,E)}else m=Y.treeContext,_n=Ec(ie.nextSibling),Cs=v,Ti=!0,g0=null,xc=!1,m!==null&&Jtt(v,m),v=RM(v,N),v.flags|=4096;return v}return m=Gf(m.child,{mode:N.mode,children:N.children}),m.ref=v.ref,v.child=m,m.return=v,m}function NM(m,v){var E=v.ref;if(E===null)m!==null&&m.ref!==null&&(v.flags|=4194816);else{if(typeof E!="function"&&typeof E!="object")throw Error(n(284));(m===null||m.ref!==E)&&(v.flags|=4194816)}}function Tse(m,v,E,N,q){return zy(v),E=tse(m,v,E,N,void 0,q),N=rse(),m!==null&&!Na?(ise(m,v,q),Qf(m,v,q)):(Ti&&N&&Pae(v),v.flags|=1,_s(m,v,E,q),v.child)}function hit(m,v,E,N,q,Y){return zy(v),v.updateQueue=null,E=yrt(v,N,E,q),mrt(m),N=rse(),m!==null&&!Na?(ise(m,v,Y),Qf(m,v,Y)):(Ti&&N&&Pae(v),v.flags|=1,_s(m,v,E,Y),v.child)}function dit(m,v,E,N,q){if(zy(v),v.stateNode===null){var Y=rT,ie=E.contextType;typeof ie=="object"&&ie!==null&&(Y=Ss(ie)),Y=new E(N,Y),v.memoizedState=Y.state!==null&&Y.state!==void 0?Y.state:null,Y.updater=vse,v.stateNode=Y,Y._reactInternals=v,Y=v.stateNode,Y.props=N,Y.state=v.memoizedState,Y.refs={},Yae(v),ie=E.contextType,Y.context=typeof ie=="object"&&ie!==null?Ss(ie):rT,Y.state=v.memoizedState,ie=E.getDerivedStateFromProps,typeof ie=="function"&&(yse(v,E,ie,N),Y.state=v.memoizedState),typeof E.getDerivedStateFromProps=="function"||typeof Y.getSnapshotBeforeUpdate=="function"||typeof Y.UNSAFE_componentWillMount!="function"&&typeof Y.componentWillMount!="function"||(ie=Y.state,typeof Y.componentWillMount=="function"&&Y.componentWillMount(),typeof Y.UNSAFE_componentWillMount=="function"&&Y.UNSAFE_componentWillMount(),ie!==Y.state&&vse.enqueueReplaceState(Y,Y.state,null),$5(v,N,Y,q),F5(),Y.state=v.memoizedState),typeof Y.componentDidMount=="function"&&(v.flags|=4194308),N=!0}else if(m===null){Y=v.stateNode;var be=v.memoizedProps,Ke=jy(E,be);Y.props=Ke;var vt=Y.context,Lt=E.contextType;ie=rT,typeof Lt=="object"&&Lt!==null&&(ie=Ss(Lt));var Bt=E.getDerivedStateFromProps;Lt=typeof Bt=="function"||typeof Y.getSnapshotBeforeUpdate=="function",be=v.pendingProps!==be,Lt||typeof Y.UNSAFE_componentWillReceiveProps!="function"&&typeof Y.componentWillReceiveProps!="function"||(be||vt!==ie)&&tit(v,Y,N,ie),v0=!1;var xt=v.memoizedState;Y.state=xt,$5(v,N,Y,q),F5(),vt=v.memoizedState,be||xt!==vt||v0?(typeof Bt=="function"&&(yse(v,E,Bt,N),vt=v.memoizedState),(Ke=v0||eit(v,E,Ke,N,xt,vt,ie))?(Lt||typeof Y.UNSAFE_componentWillMount!="function"&&typeof Y.componentWillMount!="function"||(typeof Y.componentWillMount=="function"&&Y.componentWillMount(),typeof Y.UNSAFE_componentWillMount=="function"&&Y.UNSAFE_componentWillMount()),typeof Y.componentDidMount=="function"&&(v.flags|=4194308)):(typeof Y.componentDidMount=="function"&&(v.flags|=4194308),v.memoizedProps=N,v.memoizedState=vt),Y.props=N,Y.state=vt,Y.context=ie,N=Ke):(typeof Y.componentDidMount=="function"&&(v.flags|=4194308),N=!1)}else{Y=v.stateNode,jae(m,v),ie=v.memoizedProps,Lt=jy(E,ie),Y.props=Lt,Bt=v.pendingProps,xt=Y.context,vt=E.contextType,Ke=rT,typeof vt=="object"&&vt!==null&&(Ke=Ss(vt)),be=E.getDerivedStateFromProps,(vt=typeof be=="function"||typeof Y.getSnapshotBeforeUpdate=="function")||typeof Y.UNSAFE_componentWillReceiveProps!="function"&&typeof Y.componentWillReceiveProps!="function"||(ie!==Bt||xt!==Ke)&&tit(v,Y,N,Ke),v0=!1,xt=v.memoizedState,Y.state=xt,$5(v,N,Y,q),F5();var Ct=v.memoizedState;ie!==Bt||xt!==Ct||v0||m!==null&&m.dependencies!==null&&dM(m.dependencies)?(typeof be=="function"&&(yse(v,E,be,N),Ct=v.memoizedState),(Lt=v0||eit(v,E,Lt,N,xt,Ct,Ke)||m!==null&&m.dependencies!==null&&dM(m.dependencies))?(vt||typeof Y.UNSAFE_componentWillUpdate!="function"&&typeof Y.componentWillUpdate!="function"||(typeof Y.componentWillUpdate=="function"&&Y.componentWillUpdate(N,Ct,Ke),typeof Y.UNSAFE_componentWillUpdate=="function"&&Y.UNSAFE_componentWillUpdate(N,Ct,Ke)),typeof Y.componentDidUpdate=="function"&&(v.flags|=4),typeof Y.getSnapshotBeforeUpdate=="function"&&(v.flags|=1024)):(typeof Y.componentDidUpdate!="function"||ie===m.memoizedProps&&xt===m.memoizedState||(v.flags|=4),typeof Y.getSnapshotBeforeUpdate!="function"||ie===m.memoizedProps&&xt===m.memoizedState||(v.flags|=1024),v.memoizedProps=N,v.memoizedState=Ct),Y.props=N,Y.state=Ct,Y.context=Ke,N=Lt):(typeof Y.componentDidUpdate!="function"||ie===m.memoizedProps&&xt===m.memoizedState||(v.flags|=4),typeof Y.getSnapshotBeforeUpdate!="function"||ie===m.memoizedProps&&xt===m.memoizedState||(v.flags|=1024),N=!1)}return Y=N,NM(m,v),N=(v.flags&128)!==0,Y||N?(Y=v.stateNode,E=N&&typeof E.getDerivedStateFromError!="function"?null:Y.render(),v.flags|=1,m!==null&&N?(v.child=qy(v,m.child,null,q),v.child=qy(v,null,E,q)):_s(m,v,E,q),v.memoizedState=Y.state,m=v.child):m=Qf(m,v,q),m}function fit(m,v,E,N){return Fy(),v.flags|=256,_s(m,v,E,N),v.child}var wse={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ese(m){return{baseLanes:m,cachePool:art()}}function kse(m,v,E){return m=m!==null?m.childLanes&~E:0,v&&(m|=$l),m}function pit(m,v,E){var N=v.pendingProps,q=!1,Y=(v.flags&128)!==0,ie;if((ie=Y)||(ie=m!==null&&m.memoizedState===null?!1:(ua.current&2)!==0),ie&&(q=!0,v.flags&=-129),ie=(v.flags&32)!==0,v.flags&=-33,m===null){if(Ti){if(q?b0(v):x0(v),(m=_n)?(m=Ent(m,xc),m=m!==null&&m.data!=="&"?m:null,m!==null&&(v.memoizedState={dehydrated:m,treeContext:p0!==null?{id:ud,overflow:hd}:null,retryLane:536870912,hydrationErrors:null},E=Ktt(m),E.return=v,v.child=E,Cs=v,_n=null)):m=null,m===null)throw m0(v);return aoe(m)?v.lanes=32:v.lanes=536870912,null}var be=N.children;return N=N.fallback,q?(x0(v),q=v.mode,be=DM({mode:"hidden",children:be},q),N=By(N,q,E,null),be.return=v,N.return=v,be.sibling=N,v.child=be,N=v.child,N.memoizedState=Ese(E),N.childLanes=kse(m,ie,E),v.memoizedState=wse,q5(null,N)):(b0(v),Cse(v,be))}var Ke=m.memoizedState;if(Ke!==null&&(be=Ke.dehydrated,be!==null)){if(Y)v.flags&256?(b0(v),v.flags&=-257,v=Sse(m,v,E)):v.memoizedState!==null?(x0(v),v.child=m.child,v.flags|=128,v=null):(x0(v),be=N.fallback,q=v.mode,N=DM({mode:"visible",children:N.children},q),be=By(be,q,E,null),be.flags|=2,N.return=v,be.return=v,N.sibling=be,v.child=N,qy(v,m.child,null,E),N=v.child,N.memoizedState=Ese(E),N.childLanes=kse(m,ie,E),v.memoizedState=wse,v=q5(null,N));else if(b0(v),aoe(be)){if(ie=be.nextSibling&&be.nextSibling.dataset,ie)var vt=ie.dgst;ie=vt,N=Error(n(419)),N.stack="",N.digest=ie,D5({value:N,source:null,stack:null}),v=Sse(m,v,E)}else if(Na||sT(m,v,E,!1),ie=(E&m.childLanes)!==0,Na||ie){if(ie=fn,ie!==null&&(N=me(ie,E),N!==0&&N!==Ke.retryLane))throw Ke.retryLane=N,Py(m,N),cl(ie,m,N),xse;noe(be)||UM(),v=Sse(m,v,E)}else noe(be)?(v.flags|=192,v.child=m.child,v=null):(m=Ke.treeContext,_n=Ec(be.nextSibling),Cs=v,Ti=!0,g0=null,xc=!1,m!==null&&Jtt(v,m),v=Cse(v,N.children),v.flags|=4096);return v}return q?(x0(v),be=N.fallback,q=v.mode,Ke=m.child,vt=Ke.sibling,N=Gf(Ke,{mode:"hidden",children:N.children}),N.subtreeFlags=Ke.subtreeFlags&65011712,vt!==null?be=Gf(vt,be):(be=By(be,q,E,null),be.flags|=2),be.return=v,N.return=v,N.sibling=be,v.child=N,q5(null,N),N=v.child,be=m.child.memoizedState,be===null?be=Ese(E):(q=be.cachePool,q!==null?(Ke=La._currentValue,q=q.parent!==Ke?{parent:Ke,pool:Ke}:q):q=art(),be={baseLanes:be.baseLanes|E,cachePool:q}),N.memoizedState=be,N.childLanes=kse(m,ie,E),v.memoizedState=wse,q5(m.child,N)):(b0(v),E=m.child,m=E.sibling,E=Gf(E,{mode:"visible",children:N.children}),E.return=v,E.sibling=null,m!==null&&(ie=v.deletions,ie===null?(v.deletions=[m],v.flags|=16):ie.push(m)),v.child=E,v.memoizedState=null,E)}function Cse(m,v){return v=DM({mode:"visible",children:v},m.mode),v.return=m,m.child=v}function DM(m,v){return m=Ol(22,m,null,v),m.lanes=0,m}function Sse(m,v,E){return qy(v,m.child,null,E),m=Cse(v,v.pendingProps.children),m.flags|=2,v.memoizedState=null,m}function git(m,v,E){m.lanes|=v;var N=m.alternate;N!==null&&(N.lanes|=v),Uae(m.return,v,E)}function _se(m,v,E,N,q,Y){var ie=m.memoizedState;ie===null?m.memoizedState={isBackwards:v,rendering:null,renderingStartTime:0,last:N,tail:E,tailMode:q,treeForkCount:Y}:(ie.isBackwards=v,ie.rendering=null,ie.renderingStartTime=0,ie.last=N,ie.tail=E,ie.tailMode=q,ie.treeForkCount=Y)}function mit(m,v,E){var N=v.pendingProps,q=N.revealOrder,Y=N.tail;N=N.children;var ie=ua.current,be=(ie&2)!==0;if(be?(ie=ie&1|2,v.flags|=128):ie&=1,K(ua,ie),_s(m,v,N,E),N=Ti?N5:0,!be&&m!==null&&(m.flags&128)!==0)e:for(m=v.child;m!==null;){if(m.tag===13)m.memoizedState!==null&&git(m,E,v);else if(m.tag===19)git(m,E,v);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===v)break e;for(;m.sibling===null;){if(m.return===null||m.return===v)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}switch(q){case"forwards":for(E=v.child,q=null;E!==null;)m=E.alternate,m!==null&&xM(m)===null&&(q=E),E=E.sibling;E=q,E===null?(q=v.child,v.child=null):(q=E.sibling,E.sibling=null),_se(v,!1,q,E,Y,N);break;case"backwards":case"unstable_legacy-backwards":for(E=null,q=v.child,v.child=null;q!==null;){if(m=q.alternate,m!==null&&xM(m)===null){v.child=q;break}m=q.sibling,q.sibling=E,E=q,q=m}_se(v,!0,E,null,Y,N);break;case"together":_se(v,!1,null,null,void 0,N);break;default:v.memoizedState=null}return v.child}function Qf(m,v,E){if(m!==null&&(v.dependencies=m.dependencies),E0|=v.lanes,(E&v.childLanes)===0)if(m!==null){if(sT(m,v,E,!1),(E&v.childLanes)===0)return null}else return null;if(m!==null&&v.child!==m.child)throw Error(n(153));if(v.child!==null){for(m=v.child,E=Gf(m,m.pendingProps),v.child=E,E.return=v;m.sibling!==null;)m=m.sibling,E=E.sibling=Gf(m,m.pendingProps),E.return=v;E.sibling=null}return v.child}function Ase(m,v){return(m.lanes&v)!==0?!0:(m=m.dependencies,!!(m!==null&&dM(m)))}function qqt(m,v,E){switch(v.tag){case 3:J(v,v.stateNode.containerInfo),y0(v,La,m.memoizedState.cache),Fy();break;case 27:case 5:ce(v);break;case 4:J(v,v.stateNode.containerInfo);break;case 10:y0(v,v.type,v.memoizedProps.value);break;case 31:if(v.memoizedState!==null)return v.flags|=128,Jae(v),null;break;case 13:var N=v.memoizedState;if(N!==null)return N.dehydrated!==null?(b0(v),v.flags|=128,null):(E&v.child.childLanes)!==0?pit(m,v,E):(b0(v),m=Qf(m,v,E),m!==null?m.sibling:null);b0(v);break;case 19:var q=(m.flags&128)!==0;if(N=(E&v.childLanes)!==0,N||(sT(m,v,E,!1),N=(E&v.childLanes)!==0),q){if(N)return mit(m,v,E);v.flags|=128}if(q=v.memoizedState,q!==null&&(q.rendering=null,q.tail=null,q.lastEffect=null),K(ua,ua.current),N)break;return null;case 22:return v.lanes=0,lit(m,v,E,v.pendingProps);case 24:y0(v,La,m.memoizedState.cache)}return Qf(m,v,E)}function yit(m,v,E){if(m!==null)if(m.memoizedProps!==v.pendingProps)Na=!0;else{if(!Ase(m,E)&&(v.flags&128)===0)return Na=!1,qqt(m,v,E);Na=(m.flags&131072)!==0}else Na=!1,Ti&&(v.flags&1048576)!==0&&Ztt(v,N5,v.index);switch(v.lanes=0,v.tag){case 16:e:{var N=v.pendingProps;if(m=Hy(v.elementType),v.type=m,typeof m=="function")Iae(m)?(N=jy(m,N),v.tag=1,v=dit(null,v,m,N,E)):(v.tag=0,v=Tse(null,v,m,N,E));else{if(m!=null){var q=m.$$typeof;if(q===L){v.tag=11,v=ait(null,v,m,N,E);break e}else if(q===A){v.tag=14,v=sit(null,v,m,N,E);break e}}throw v=I(m)||m,Error(n(306,v,""))}}return v;case 0:return Tse(m,v,v.type,v.pendingProps,E);case 1:return N=v.type,q=jy(N,v.pendingProps),dit(m,v,N,q,E);case 3:e:{if(J(v,v.stateNode.containerInfo),m===null)throw Error(n(387));N=v.pendingProps;var Y=v.memoizedState;q=Y.element,jae(m,v),$5(v,N,null,E);var ie=v.memoizedState;if(N=ie.cache,y0(v,La,N),N!==Y.cache&&Hae(v,[La],E,!0),F5(),N=ie.element,Y.isDehydrated)if(Y={element:N,isDehydrated:!1,cache:ie.cache},v.updateQueue.baseState=Y,v.memoizedState=Y,v.flags&256){v=fit(m,v,N,E);break e}else if(N!==q){q=yc(Error(n(424)),v),D5(q),v=fit(m,v,N,E);break e}else for(m=v.stateNode.containerInfo,m.nodeType===9?m=m.body:m=m.nodeName==="HTML"?m.ownerDocument.body:m,_n=Ec(m.firstChild),Cs=v,Ti=!0,g0=null,xc=!0,E=hrt(v,null,N,E),v.child=E;E;)E.flags=E.flags&-3|4096,E=E.sibling;else{if(Fy(),N===q){v=Qf(m,v,E);break e}_s(m,v,N,E)}v=v.child}return v;case 26:return NM(m,v),m===null?(E=Lnt(v.type,null,v.pendingProps,null))?v.memoizedState=E:Ti||(E=v.type,m=v.pendingProps,N=jM(ee.current).createElement(E),N[at]=v,N[Rt]=m,As(N,E,m),Yr(N),v.stateNode=N):v.memoizedState=Lnt(v.type,m.memoizedProps,v.pendingProps,m.memoizedState),null;case 27:return ce(v),m===null&&Ti&&(N=v.stateNode=Snt(v.type,v.pendingProps,ee.current),Cs=v,xc=!0,q=_n,A0(v.type)?(soe=q,_n=Ec(N.firstChild)):_n=q),_s(m,v,v.pendingProps.children,E),NM(m,v),m===null&&(v.flags|=4194304),v.child;case 5:return m===null&&Ti&&((q=N=_n)&&(N=vGt(N,v.type,v.pendingProps,xc),N!==null?(v.stateNode=N,Cs=v,_n=Ec(N.firstChild),xc=!1,q=!0):q=!1),q||m0(v)),ce(v),q=v.type,Y=v.pendingProps,ie=m!==null?m.memoizedProps:null,N=Y.children,toe(q,Y)?N=null:ie!==null&&toe(q,ie)&&(v.flags|=32),v.memoizedState!==null&&(q=tse(m,v,Dqt,null,null,E),a3._currentValue=q),NM(m,v),_s(m,v,N,E),v.child;case 6:return m===null&&Ti&&((m=E=_n)&&(E=bGt(E,v.pendingProps,xc),E!==null?(v.stateNode=E,Cs=v,_n=null,m=!0):m=!1),m||m0(v)),null;case 13:return pit(m,v,E);case 4:return J(v,v.stateNode.containerInfo),N=v.pendingProps,m===null?v.child=qy(v,null,N,E):_s(m,v,N,E),v.child;case 11:return ait(m,v,v.type,v.pendingProps,E);case 7:return _s(m,v,v.pendingProps,E),v.child;case 8:return _s(m,v,v.pendingProps.children,E),v.child;case 12:return _s(m,v,v.pendingProps.children,E),v.child;case 10:return N=v.pendingProps,y0(v,v.type,N.value),_s(m,v,N.children,E),v.child;case 9:return q=v.type._context,N=v.pendingProps.children,zy(v),q=Ss(q),N=N(q),v.flags|=1,_s(m,v,N,E),v.child;case 14:return sit(m,v,v.type,v.pendingProps,E);case 15:return oit(m,v,v.type,v.pendingProps,E);case 19:return mit(m,v,E);case 31:return Vqt(m,v,E);case 22:return lit(m,v,E,v.pendingProps);case 24:return zy(v),N=Ss(La),m===null?(q=Gae(),q===null&&(q=fn,Y=Vae(),q.pooledCache=Y,Y.refCount++,Y!==null&&(q.pooledCacheLanes|=E),q=Y),v.memoizedState={parent:N,cache:q},Yae(v),y0(v,La,q)):((m.lanes&E)!==0&&(jae(m,v),$5(v,null,null,E),F5()),q=m.memoizedState,Y=v.memoizedState,q.parent!==N?(q={parent:N,cache:N},v.memoizedState=q,v.lanes===0&&(v.memoizedState=v.updateQueue.baseState=q),y0(v,La,N)):(N=Y.cache,y0(v,La,N),N!==q.cache&&Hae(v,[La],E,!0))),_s(m,v,v.pendingProps.children,E),v.child;case 29:throw v.pendingProps}throw Error(n(156,v.tag))}function Zf(m){m.flags|=4}function Lse(m,v,E,N,q){if((v=(m.mode&32)!==0)&&(v=!1),v){if(m.flags|=16777216,(q&335544128)===q)if(m.stateNode.complete)m.flags|=8192;else if(qit())m.flags|=8192;else throw Vy=mM,Wae}else m.flags&=-16777217}function vit(m,v){if(v.type!=="stylesheet"||(v.state.loading&4)!==0)m.flags&=-16777217;else if(m.flags|=16777216,!Mnt(v))if(qit())m.flags|=8192;else throw Vy=mM,Wae}function IM(m,v){v!==null&&(m.flags|=4),m.flags&16384&&(v=m.tag!==22?Wt():536870912,m.lanes|=v,vT|=v)}function G5(m,v){if(!Ti)switch(m.tailMode){case"hidden":v=m.tail;for(var E=null;v!==null;)v.alternate!==null&&(E=v),v=v.sibling;E===null?m.tail=null:E.sibling=null;break;case"collapsed":E=m.tail;for(var N=null;E!==null;)E.alternate!==null&&(N=E),E=E.sibling;N===null?v||m.tail===null?m.tail=null:m.tail.sibling=null:N.sibling=null}}function An(m){var v=m.alternate!==null&&m.alternate.child===m.child,E=0,N=0;if(v)for(var q=m.child;q!==null;)E|=q.lanes|q.childLanes,N|=q.subtreeFlags&65011712,N|=q.flags&65011712,q.return=m,q=q.sibling;else for(q=m.child;q!==null;)E|=q.lanes|q.childLanes,N|=q.subtreeFlags,N|=q.flags,q.return=m,q=q.sibling;return m.subtreeFlags|=N,m.childLanes=E,v}function Gqt(m,v,E){var N=v.pendingProps;switch(Bae(v),v.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return An(v),null;case 1:return An(v),null;case 3:return E=v.stateNode,N=null,m!==null&&(N=m.memoizedState.cache),v.memoizedState.cache!==N&&(v.flags|=2048),jf(La),le(),E.pendingContext&&(E.context=E.pendingContext,E.pendingContext=null),(m===null||m.child===null)&&(aT(v)?Zf(v):m===null||m.memoizedState.isDehydrated&&(v.flags&256)===0||(v.flags|=1024,$ae())),An(v),null;case 26:var q=v.type,Y=v.memoizedState;return m===null?(Zf(v),Y!==null?(An(v),vit(v,Y)):(An(v),Lse(v,q,null,N,E))):Y?Y!==m.memoizedState?(Zf(v),An(v),vit(v,Y)):(An(v),v.flags&=-16777217):(m=m.memoizedProps,m!==N&&Zf(v),An(v),Lse(v,q,m,N,E)),null;case 27:if(ue(v),E=ee.current,q=v.type,m!==null&&v.stateNode!=null)m.memoizedProps!==N&&Zf(v);else{if(!N){if(v.stateNode===null)throw Error(n(166));return An(v),null}m=Z.current,aT(v)?ert(v,m):(m=Snt(q,N,E),v.stateNode=m,Zf(v))}return An(v),null;case 5:if(ue(v),q=v.type,m!==null&&v.stateNode!=null)m.memoizedProps!==N&&Zf(v);else{if(!N){if(v.stateNode===null)throw Error(n(166));return An(v),null}if(Y=Z.current,aT(v))ert(v,Y);else{var ie=jM(ee.current);switch(Y){case 1:Y=ie.createElementNS("http://www.w3.org/2000/svg",q);break;case 2:Y=ie.createElementNS("http://www.w3.org/1998/Math/MathML",q);break;default:switch(q){case"svg":Y=ie.createElementNS("http://www.w3.org/2000/svg",q);break;case"math":Y=ie.createElementNS("http://www.w3.org/1998/Math/MathML",q);break;case"script":Y=ie.createElement("div"),Y.innerHTML="<script><\/script>",Y=Y.removeChild(Y.firstChild);break;case"select":Y=typeof N.is=="string"?ie.createElement("select",{is:N.is}):ie.createElement("select"),N.multiple?Y.multiple=!0:N.size&&(Y.size=N.size);break;default:Y=typeof N.is=="string"?ie.createElement(q,{is:N.is}):ie.createElement(q)}}Y[at]=v,Y[Rt]=N;e:for(ie=v.child;ie!==null;){if(ie.tag===5||ie.tag===6)Y.appendChild(ie.stateNode);else if(ie.tag!==4&&ie.tag!==27&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===v)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===v)break e;ie=ie.return}ie.sibling.return=ie.return,ie=ie.sibling}v.stateNode=Y;e:switch(As(Y,q,N),q){case"button":case"input":case"select":case"textarea":N=!!N.autoFocus;break e;case"img":N=!0;break e;default:N=!1}N&&Zf(v)}}return An(v),Lse(v,v.type,m===null?null:m.memoizedProps,v.pendingProps,E),null;case 6:if(m&&v.stateNode!=null)m.memoizedProps!==N&&Zf(v);else{if(typeof N!="string"&&v.stateNode===null)throw Error(n(166));if(m=ee.current,aT(v)){if(m=v.stateNode,E=v.memoizedProps,N=null,q=Cs,q!==null)switch(q.tag){case 27:case 5:N=q.memoizedProps}m[at]=v,m=!!(m.nodeValue===E||N!==null&&N.suppressHydrationWarning===!0||gnt(m.nodeValue,E)),m||m0(v,!0)}else m=jM(m).createTextNode(N),m[at]=v,v.stateNode=m}return An(v),null;case 31:if(E=v.memoizedState,m===null||m.memoizedState!==null){if(N=aT(v),E!==null){if(m===null){if(!N)throw Error(n(318));if(m=v.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(557));m[at]=v}else Fy(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;An(v),m=!1}else E=$ae(),m!==null&&m.memoizedState!==null&&(m.memoizedState.hydrationErrors=E),m=!0;if(!m)return v.flags&256?(Bl(v),v):(Bl(v),null);if((v.flags&128)!==0)throw Error(n(558))}return An(v),null;case 13:if(N=v.memoizedState,m===null||m.memoizedState!==null&&m.memoizedState.dehydrated!==null){if(q=aT(v),N!==null&&N.dehydrated!==null){if(m===null){if(!q)throw Error(n(318));if(q=v.memoizedState,q=q!==null?q.dehydrated:null,!q)throw Error(n(317));q[at]=v}else Fy(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;An(v),q=!1}else q=$ae(),m!==null&&m.memoizedState!==null&&(m.memoizedState.hydrationErrors=q),q=!0;if(!q)return v.flags&256?(Bl(v),v):(Bl(v),null)}return Bl(v),(v.flags&128)!==0?(v.lanes=E,v):(E=N!==null,m=m!==null&&m.memoizedState!==null,E&&(N=v.child,q=null,N.alternate!==null&&N.alternate.memoizedState!==null&&N.alternate.memoizedState.cachePool!==null&&(q=N.alternate.memoizedState.cachePool.pool),Y=null,N.memoizedState!==null&&N.memoizedState.cachePool!==null&&(Y=N.memoizedState.cachePool.pool),Y!==q&&(N.flags|=2048)),E!==m&&E&&(v.child.flags|=8192),IM(v,v.updateQueue),An(v),null);case 4:return le(),m===null&&hnt(v.stateNode.containerInfo),An(v),null;case 10:return jf(v.type),An(v),null;case 19:if(G(ua),N=v.memoizedState,N===null)return An(v),null;if(q=(v.flags&128)!==0,Y=N.rendering,Y===null)if(q)G5(N,!1);else{if(Jn!==0||m!==null&&(m.flags&128)!==0)for(m=v.child;m!==null;){if(Y=xM(m),Y!==null){for(v.flags|=128,G5(N,!1),m=Y.updateQueue,v.updateQueue=m,IM(v,m),v.subtreeFlags=0,m=E,E=v.child;E!==null;)Xtt(E,m),E=E.sibling;return K(ua,ua.current&1|2),Ti&&Wf(v,N.treeForkCount),v.child}m=m.sibling}N.tail!==null&&Ze()>FM&&(v.flags|=128,q=!0,G5(N,!1),v.lanes=4194304)}else{if(!q)if(m=xM(Y),m!==null){if(v.flags|=128,q=!0,m=m.updateQueue,v.updateQueue=m,IM(v,m),G5(N,!0),N.tail===null&&N.tailMode==="hidden"&&!Y.alternate&&!Ti)return An(v),null}else 2*Ze()-N.renderingStartTime>FM&&E!==536870912&&(v.flags|=128,q=!0,G5(N,!1),v.lanes=4194304);N.isBackwards?(Y.sibling=v.child,v.child=Y):(m=N.last,m!==null?m.sibling=Y:v.child=Y,N.last=Y)}return N.tail!==null?(m=N.tail,N.rendering=m,N.tail=m.sibling,N.renderingStartTime=Ze(),m.sibling=null,E=ua.current,K(ua,q?E&1|2:E&1),Ti&&Wf(v,N.treeForkCount),m):(An(v),null);case 22:case 23:return Bl(v),Zae(),N=v.memoizedState!==null,m!==null?m.memoizedState!==null!==N&&(v.flags|=8192):N&&(v.flags|=8192),N?(E&536870912)!==0&&(v.flags&128)===0&&(An(v),v.subtreeFlags&6&&(v.flags|=8192)):An(v),E=v.updateQueue,E!==null&&IM(v,E.retryQueue),E=null,m!==null&&m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),N=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(N=v.memoizedState.cachePool.pool),N!==E&&(v.flags|=2048),m!==null&&G(Uy),null;case 24:return E=null,m!==null&&(E=m.memoizedState.cache),v.memoizedState.cache!==E&&(v.flags|=2048),jf(La),An(v),null;case 25:return null;case 30:return null}throw Error(n(156,v.tag))}function Wqt(m,v){switch(Bae(v),v.tag){case 1:return m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 3:return jf(La),le(),m=v.flags,(m&65536)!==0&&(m&128)===0?(v.flags=m&-65537|128,v):null;case 26:case 27:case 5:return ue(v),null;case 31:if(v.memoizedState!==null){if(Bl(v),v.alternate===null)throw Error(n(340));Fy()}return m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 13:if(Bl(v),m=v.memoizedState,m!==null&&m.dehydrated!==null){if(v.alternate===null)throw Error(n(340));Fy()}return m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 19:return G(ua),null;case 4:return le(),null;case 10:return jf(v.type),null;case 22:case 23:return Bl(v),Zae(),m!==null&&G(Uy),m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 24:return jf(La),null;case 25:return null;default:return null}}function bit(m,v){switch(Bae(v),v.tag){case 3:jf(La),le();break;case 26:case 27:case 5:ue(v);break;case 4:le();break;case 31:v.memoizedState!==null&&Bl(v);break;case 13:Bl(v);break;case 19:G(ua);break;case 10:jf(v.type);break;case 22:case 23:Bl(v),Zae(),m!==null&&G(Uy);break;case 24:jf(La)}}function W5(m,v){try{var E=v.updateQueue,N=E!==null?E.lastEffect:null;if(N!==null){var q=N.next;E=q;do{if((E.tag&m)===m){N=void 0;var Y=E.create,ie=E.inst;N=Y(),ie.destroy=N}E=E.next}while(E!==q)}}catch(be){Qi(v,v.return,be)}}function T0(m,v,E){try{var N=v.updateQueue,q=N!==null?N.lastEffect:null;if(q!==null){var Y=q.next;N=Y;do{if((N.tag&m)===m){var ie=N.inst,be=ie.destroy;if(be!==void 0){ie.destroy=void 0,q=v;var Ke=E,vt=be;try{vt()}catch(Lt){Qi(q,Ke,Lt)}}}N=N.next}while(N!==Y)}}catch(Lt){Qi(v,v.return,Lt)}}function xit(m){var v=m.updateQueue;if(v!==null){var E=m.stateNode;try{frt(v,E)}catch(N){Qi(m,m.return,N)}}}function Tit(m,v,E){E.props=jy(m.type,m.memoizedProps),E.state=m.memoizedState;try{E.componentWillUnmount()}catch(N){Qi(m,v,N)}}function Y5(m,v){try{var E=m.ref;if(E!==null){switch(m.tag){case 26:case 27:case 5:var N=m.stateNode;break;case 30:N=m.stateNode;break;default:N=m.stateNode}typeof E=="function"?m.refCleanup=E(N):E.current=N}}catch(q){Qi(m,v,q)}}function dd(m,v){var E=m.ref,N=m.refCleanup;if(E!==null)if(typeof N=="function")try{N()}catch(q){Qi(m,v,q)}finally{m.refCleanup=null,m=m.alternate,m!=null&&(m.refCleanup=null)}else if(typeof E=="function")try{E(null)}catch(q){Qi(m,v,q)}else E.current=null}function wit(m){var v=m.type,E=m.memoizedProps,N=m.stateNode;try{e:switch(v){case"button":case"input":case"select":case"textarea":E.autoFocus&&N.focus();break e;case"img":E.src?N.src=E.src:E.srcSet&&(N.srcset=E.srcSet)}}catch(q){Qi(m,m.return,q)}}function Rse(m,v,E){try{var N=m.stateNode;dGt(N,m.type,E,v),N[Rt]=v}catch(q){Qi(m,m.return,q)}}function Eit(m){return m.tag===5||m.tag===3||m.tag===26||m.tag===27&&A0(m.type)||m.tag===4}function Nse(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||Eit(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.tag===27&&A0(m.type)||m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function Dse(m,v,E){var N=m.tag;if(N===5||N===6)m=m.stateNode,v?(E.nodeType===9?E.body:E.nodeName==="HTML"?E.ownerDocument.body:E).insertBefore(m,v):(v=E.nodeType===9?E.body:E.nodeName==="HTML"?E.ownerDocument.body:E,v.appendChild(m),E=E._reactRootContainer,E!=null||v.onclick!==null||(v.onclick=il));else if(N!==4&&(N===27&&A0(m.type)&&(E=m.stateNode,v=null),m=m.child,m!==null))for(Dse(m,v,E),m=m.sibling;m!==null;)Dse(m,v,E),m=m.sibling}function MM(m,v,E){var N=m.tag;if(N===5||N===6)m=m.stateNode,v?E.insertBefore(m,v):E.appendChild(m);else if(N!==4&&(N===27&&A0(m.type)&&(E=m.stateNode),m=m.child,m!==null))for(MM(m,v,E),m=m.sibling;m!==null;)MM(m,v,E),m=m.sibling}function kit(m){var v=m.stateNode,E=m.memoizedProps;try{for(var N=m.type,q=v.attributes;q.length;)v.removeAttributeNode(q[0]);As(v,N,E),v[at]=m,v[Rt]=E}catch(Y){Qi(m,m.return,Y)}}var Jf=!1,Da=!1,Ise=!1,Cit=typeof WeakSet=="function"?WeakSet:Set,os=null;function Yqt(m,v){if(m=m.containerInfo,Jse=tO,m=ztt(m),Sae(m)){if("selectionStart"in m)var E={start:m.selectionStart,end:m.selectionEnd};else e:{E=(E=m.ownerDocument)&&E.defaultView||window;var N=E.getSelection&&E.getSelection();if(N&&N.rangeCount!==0){E=N.anchorNode;var q=N.anchorOffset,Y=N.focusNode;N=N.focusOffset;try{E.nodeType,Y.nodeType}catch{E=null;break e}var ie=0,be=-1,Ke=-1,vt=0,Lt=0,Bt=m,xt=null;t:for(;;){for(var Ct;Bt!==E||q!==0&&Bt.nodeType!==3||(be=ie+q),Bt!==Y||N!==0&&Bt.nodeType!==3||(Ke=ie+N),Bt.nodeType===3&&(ie+=Bt.nodeValue.length),(Ct=Bt.firstChild)!==null;)xt=Bt,Bt=Ct;for(;;){if(Bt===m)break t;if(xt===E&&++vt===q&&(be=ie),xt===Y&&++Lt===N&&(Ke=ie),(Ct=Bt.nextSibling)!==null)break;Bt=xt,xt=Bt.parentNode}Bt=Ct}E=be===-1||Ke===-1?null:{start:be,end:Ke}}else E=null}E=E||{start:0,end:0}}else E=null;for(eoe={focusedElem:m,selectionRange:E},tO=!1,os=v;os!==null;)if(v=os,m=v.child,(v.subtreeFlags&1028)!==0&&m!==null)m.return=v,os=m;else for(;os!==null;){switch(v=os,Y=v.alternate,m=v.flags,v.tag){case 0:if((m&4)!==0&&(m=v.updateQueue,m=m!==null?m.events:null,m!==null))for(E=0;E<m.length;E++)q=m[E],q.ref.impl=q.nextImpl;break;case 11:case 15:break;case 1:if((m&1024)!==0&&Y!==null){m=void 0,E=v,q=Y.memoizedProps,Y=Y.memoizedState,N=E.stateNode;try{var xr=jy(E.type,q);m=N.getSnapshotBeforeUpdate(xr,Y),N.__reactInternalSnapshotBeforeUpdate=m}catch(Hr){Qi(E,E.return,Hr)}}break;case 3:if((m&1024)!==0){if(m=v.stateNode.containerInfo,E=m.nodeType,E===9)ioe(m);else if(E===1)switch(m.nodeName){case"HEAD":case"HTML":case"BODY":ioe(m);break;default:m.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((m&1024)!==0)throw Error(n(163))}if(m=v.sibling,m!==null){m.return=v.return,os=m;break}os=v.return}}function Sit(m,v,E){var N=E.flags;switch(E.tag){case 0:case 11:case 15:tp(m,E),N&4&&W5(5,E);break;case 1:if(tp(m,E),N&4)if(m=E.stateNode,v===null)try{m.componentDidMount()}catch(ie){Qi(E,E.return,ie)}else{var q=jy(E.type,v.memoizedProps);v=v.memoizedState;try{m.componentDidUpdate(q,v,m.__reactInternalSnapshotBeforeUpdate)}catch(ie){Qi(E,E.return,ie)}}N&64&&xit(E),N&512&&Y5(E,E.return);break;case 3:if(tp(m,E),N&64&&(m=E.updateQueue,m!==null)){if(v=null,E.child!==null)switch(E.child.tag){case 27:case 5:v=E.child.stateNode;break;case 1:v=E.child.stateNode}try{frt(m,v)}catch(ie){Qi(E,E.return,ie)}}break;case 27:v===null&&N&4&&kit(E);case 26:case 5:tp(m,E),v===null&&N&4&&wit(E),N&512&&Y5(E,E.return);break;case 12:tp(m,E);break;case 31:tp(m,E),N&4&&Lit(m,E);break;case 13:tp(m,E),N&4&&Rit(m,E),N&64&&(m=E.memoizedState,m!==null&&(m=m.dehydrated,m!==null&&(E=rGt.bind(null,E),xGt(m,E))));break;case 22:if(N=E.memoizedState!==null||Jf,!N){v=v!==null&&v.memoizedState!==null||Da,q=Jf;var Y=Da;Jf=N,(Da=v)&&!Y?rp(m,E,(E.subtreeFlags&8772)!==0):tp(m,E),Jf=q,Da=Y}break;case 30:break;default:tp(m,E)}}function _it(m){var v=m.alternate;v!==null&&(m.alternate=null,_it(v)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(v=m.stateNode,v!==null&&Et(v)),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}var Pn=null,al=!1;function ep(m,v,E){for(E=E.child;E!==null;)Ait(m,v,E),E=E.sibling}function Ait(m,v,E){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(fe,E)}catch{}switch(E.tag){case 26:Da||dd(E,v),ep(m,v,E),E.memoizedState?E.memoizedState.count--:E.stateNode&&(E=E.stateNode,E.parentNode.removeChild(E));break;case 27:Da||dd(E,v);var N=Pn,q=al;A0(E.type)&&(Pn=E.stateNode,al=!1),ep(m,v,E),r3(E.stateNode),Pn=N,al=q;break;case 5:Da||dd(E,v);case 6:if(N=Pn,q=al,Pn=null,ep(m,v,E),Pn=N,al=q,Pn!==null)if(al)try{(Pn.nodeType===9?Pn.body:Pn.nodeName==="HTML"?Pn.ownerDocument.body:Pn).removeChild(E.stateNode)}catch(Y){Qi(E,v,Y)}else try{Pn.removeChild(E.stateNode)}catch(Y){Qi(E,v,Y)}break;case 18:Pn!==null&&(al?(m=Pn,Tnt(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,E.stateNode),ST(m)):Tnt(Pn,E.stateNode));break;case 4:N=Pn,q=al,Pn=E.stateNode.containerInfo,al=!0,ep(m,v,E),Pn=N,al=q;break;case 0:case 11:case 14:case 15:T0(2,E,v),Da||T0(4,E,v),ep(m,v,E);break;case 1:Da||(dd(E,v),N=E.stateNode,typeof N.componentWillUnmount=="function"&&Tit(E,v,N)),ep(m,v,E);break;case 21:ep(m,v,E);break;case 22:Da=(N=Da)||E.memoizedState!==null,ep(m,v,E),Da=N;break;default:ep(m,v,E)}}function Lit(m,v){if(v.memoizedState===null&&(m=v.alternate,m!==null&&(m=m.memoizedState,m!==null))){m=m.dehydrated;try{ST(m)}catch(E){Qi(v,v.return,E)}}}function Rit(m,v){if(v.memoizedState===null&&(m=v.alternate,m!==null&&(m=m.memoizedState,m!==null&&(m=m.dehydrated,m!==null))))try{ST(m)}catch(E){Qi(v,v.return,E)}}function jqt(m){switch(m.tag){case 31:case 13:case 19:var v=m.stateNode;return v===null&&(v=m.stateNode=new Cit),v;case 22:return m=m.stateNode,v=m._retryCache,v===null&&(v=m._retryCache=new Cit),v;default:throw Error(n(435,m.tag))}}function OM(m,v){var E=jqt(m);v.forEach(function(N){if(!E.has(N)){E.add(N);var q=iGt.bind(null,m,N);N.then(q,q)}})}function sl(m,v){var E=v.deletions;if(E!==null)for(var N=0;N<E.length;N++){var q=E[N],Y=m,ie=v,be=ie;e:for(;be!==null;){switch(be.tag){case 27:if(A0(be.type)){Pn=be.stateNode,al=!1;break e}break;case 5:Pn=be.stateNode,al=!1;break e;case 3:case 4:Pn=be.stateNode.containerInfo,al=!0;break e}be=be.return}if(Pn===null)throw Error(n(160));Ait(Y,ie,q),Pn=null,al=!1,Y=q.alternate,Y!==null&&(Y.return=null),q.return=null}if(v.subtreeFlags&13886)for(v=v.child;v!==null;)Nit(v,m),v=v.sibling}var Iu=null;function Nit(m,v){var E=m.alternate,N=m.flags;switch(m.tag){case 0:case 11:case 14:case 15:sl(v,m),ol(m),N&4&&(T0(3,m,m.return),W5(3,m),T0(5,m,m.return));break;case 1:sl(v,m),ol(m),N&512&&(Da||E===null||dd(E,E.return)),N&64&&Jf&&(m=m.updateQueue,m!==null&&(N=m.callbacks,N!==null&&(E=m.shared.hiddenCallbacks,m.shared.hiddenCallbacks=E===null?N:E.concat(N))));break;case 26:var q=Iu;if(sl(v,m),ol(m),N&512&&(Da||E===null||dd(E,E.return)),N&4){var Y=E!==null?E.memoizedState:null;if(N=m.memoizedState,E===null)if(N===null)if(m.stateNode===null){e:{N=m.type,E=m.memoizedProps,q=q.ownerDocument||q;t:switch(N){case"title":Y=q.getElementsByTagName("title")[0],(!Y||Y[Ve]||Y[at]||Y.namespaceURI==="http://www.w3.org/2000/svg"||Y.hasAttribute("itemprop"))&&(Y=q.createElement(N),q.head.insertBefore(Y,q.querySelector("head > title"))),As(Y,N,E),Y[at]=m,Yr(Y),N=Y;break e;case"link":var ie=Dnt("link","href",q).get(N+(E.href||""));if(ie){for(var be=0;be<ie.length;be++)if(Y=ie[be],Y.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&Y.getAttribute("rel")===(E.rel==null?null:E.rel)&&Y.getAttribute("title")===(E.title==null?null:E.title)&&Y.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){ie.splice(be,1);break t}}Y=q.createElement(N),As(Y,N,E),q.head.appendChild(Y);break;case"meta":if(ie=Dnt("meta","content",q).get(N+(E.content||""))){for(be=0;be<ie.length;be++)if(Y=ie[be],Y.getAttribute("content")===(E.content==null?null:""+E.content)&&Y.getAttribute("name")===(E.name==null?null:E.name)&&Y.getAttribute("property")===(E.property==null?null:E.property)&&Y.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&Y.getAttribute("charset")===(E.charSet==null?null:E.charSet)){ie.splice(be,1);break t}}Y=q.createElement(N),As(Y,N,E),q.head.appendChild(Y);break;default:throw Error(n(468,N))}Y[at]=m,Yr(Y),N=Y}m.stateNode=N}else Int(q,m.type,m.stateNode);else m.stateNode=Nnt(q,N,m.memoizedProps);else Y!==N?(Y===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):Y.count--,N===null?Int(q,m.type,m.stateNode):Nnt(q,N,m.memoizedProps)):N===null&&m.stateNode!==null&&Rse(m,m.memoizedProps,E.memoizedProps)}break;case 27:sl(v,m),ol(m),N&512&&(Da||E===null||dd(E,E.return)),E!==null&&N&4&&Rse(m,m.memoizedProps,E.memoizedProps);break;case 5:if(sl(v,m),ol(m),N&512&&(Da||E===null||dd(E,E.return)),m.flags&32){q=m.stateNode;try{ld(q,"")}catch(xr){Qi(m,m.return,xr)}}N&4&&m.stateNode!=null&&(q=m.memoizedProps,Rse(m,q,E!==null?E.memoizedProps:q)),N&1024&&(Ise=!0);break;case 6:if(sl(v,m),ol(m),N&4){if(m.stateNode===null)throw Error(n(162));N=m.memoizedProps,E=m.stateNode;try{E.nodeValue=N}catch(xr){Qi(m,m.return,xr)}}break;case 3:if(QM=null,q=Iu,Iu=XM(v.containerInfo),sl(v,m),Iu=q,ol(m),N&4&&E!==null&&E.memoizedState.isDehydrated)try{ST(v.containerInfo)}catch(xr){Qi(m,m.return,xr)}Ise&&(Ise=!1,Dit(m));break;case 4:N=Iu,Iu=XM(m.stateNode.containerInfo),sl(v,m),ol(m),Iu=N;break;case 12:sl(v,m),ol(m);break;case 31:sl(v,m),ol(m),N&4&&(N=m.updateQueue,N!==null&&(m.updateQueue=null,OM(m,N)));break;case 13:sl(v,m),ol(m),m.child.flags&8192&&m.memoizedState!==null!=(E!==null&&E.memoizedState!==null)&&(BM=Ze()),N&4&&(N=m.updateQueue,N!==null&&(m.updateQueue=null,OM(m,N)));break;case 22:q=m.memoizedState!==null;var Ke=E!==null&&E.memoizedState!==null,vt=Jf,Lt=Da;if(Jf=vt||q,Da=Lt||Ke,sl(v,m),Da=Lt,Jf=vt,ol(m),N&8192)e:for(v=m.stateNode,v._visibility=q?v._visibility&-2:v._visibility|1,q&&(E===null||Ke||Jf||Da||Xy(m)),E=null,v=m;;){if(v.tag===5||v.tag===26){if(E===null){Ke=E=v;try{if(Y=Ke.stateNode,q)ie=Y.style,typeof ie.setProperty=="function"?ie.setProperty("display","none","important"):ie.display="none";else{be=Ke.stateNode;var Bt=Ke.memoizedProps.style,xt=Bt!=null&&Bt.hasOwnProperty("display")?Bt.display:null;be.style.display=xt==null||typeof xt=="boolean"?"":(""+xt).trim()}}catch(xr){Qi(Ke,Ke.return,xr)}}}else if(v.tag===6){if(E===null){Ke=v;try{Ke.stateNode.nodeValue=q?"":Ke.memoizedProps}catch(xr){Qi(Ke,Ke.return,xr)}}}else if(v.tag===18){if(E===null){Ke=v;try{var Ct=Ke.stateNode;q?wnt(Ct,!0):wnt(Ke.stateNode,!1)}catch(xr){Qi(Ke,Ke.return,xr)}}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===m)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===m)break e;for(;v.sibling===null;){if(v.return===null||v.return===m)break e;E===v&&(E=null),v=v.return}E===v&&(E=null),v.sibling.return=v.return,v=v.sibling}N&4&&(N=m.updateQueue,N!==null&&(E=N.retryQueue,E!==null&&(N.retryQueue=null,OM(m,E))));break;case 19:sl(v,m),ol(m),N&4&&(N=m.updateQueue,N!==null&&(m.updateQueue=null,OM(m,N)));break;case 30:break;case 21:break;default:sl(v,m),ol(m)}}function ol(m){var v=m.flags;if(v&2){try{for(var E,N=m.return;N!==null;){if(Eit(N)){E=N;break}N=N.return}if(E==null)throw Error(n(160));switch(E.tag){case 27:var q=E.stateNode;MM(m,Nse(m),q);break;case 5:var Y=E.stateNode;E.flags&32&&(ld(Y,""),E.flags&=-33),MM(m,Nse(m),Y);break;case 3:case 4:var ie=E.stateNode.containerInfo;Dse(m,Nse(m),ie);break;default:throw Error(n(161))}}catch(be){Qi(m,m.return,be)}m.flags&=-3}v&4096&&(m.flags&=-4097)}function Dit(m){if(m.subtreeFlags&1024)for(m=m.child;m!==null;){var v=m;Dit(v),v.tag===5&&v.flags&1024&&v.stateNode.reset(),m=m.sibling}}function tp(m,v){if(v.subtreeFlags&8772)for(v=v.child;v!==null;)Sit(m,v.alternate,v),v=v.sibling}function Xy(m){for(m=m.child;m!==null;){var v=m;switch(v.tag){case 0:case 11:case 14:case 15:T0(4,v,v.return),Xy(v);break;case 1:dd(v,v.return);var E=v.stateNode;typeof E.componentWillUnmount=="function"&&Tit(v,v.return,E),Xy(v);break;case 27:r3(v.stateNode);case 26:case 5:dd(v,v.return),Xy(v);break;case 22:v.memoizedState===null&&Xy(v);break;case 30:Xy(v);break;default:Xy(v)}m=m.sibling}}function rp(m,v,E){for(E=E&&(v.subtreeFlags&8772)!==0,v=v.child;v!==null;){var N=v.alternate,q=m,Y=v,ie=Y.flags;switch(Y.tag){case 0:case 11:case 15:rp(q,Y,E),W5(4,Y);break;case 1:if(rp(q,Y,E),N=Y,q=N.stateNode,typeof q.componentDidMount=="function")try{q.componentDidMount()}catch(vt){Qi(N,N.return,vt)}if(N=Y,q=N.updateQueue,q!==null){var be=N.stateNode;try{var Ke=q.shared.hiddenCallbacks;if(Ke!==null)for(q.shared.hiddenCallbacks=null,q=0;q<Ke.length;q++)drt(Ke[q],be)}catch(vt){Qi(N,N.return,vt)}}E&&ie&64&&xit(Y),Y5(Y,Y.return);break;case 27:kit(Y);case 26:case 5:rp(q,Y,E),E&&N===null&&ie&4&&wit(Y),Y5(Y,Y.return);break;case 12:rp(q,Y,E);break;case 31:rp(q,Y,E),E&&ie&4&&Lit(q,Y);break;case 13:rp(q,Y,E),E&&ie&4&&Rit(q,Y);break;case 22:Y.memoizedState===null&&rp(q,Y,E),Y5(Y,Y.return);break;case 30:break;default:rp(q,Y,E)}v=v.sibling}}function Mse(m,v){var E=null;m!==null&&m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),m=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(m=v.memoizedState.cachePool.pool),m!==E&&(m!=null&&m.refCount++,E!=null&&I5(E))}function Ose(m,v){m=null,v.alternate!==null&&(m=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==m&&(v.refCount++,m!=null&&I5(m))}function Mu(m,v,E,N){if(v.subtreeFlags&10256)for(v=v.child;v!==null;)Iit(m,v,E,N),v=v.sibling}function Iit(m,v,E,N){var q=v.flags;switch(v.tag){case 0:case 11:case 15:Mu(m,v,E,N),q&2048&&W5(9,v);break;case 1:Mu(m,v,E,N);break;case 3:Mu(m,v,E,N),q&2048&&(m=null,v.alternate!==null&&(m=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==m&&(v.refCount++,m!=null&&I5(m)));break;case 12:if(q&2048){Mu(m,v,E,N),m=v.stateNode;try{var Y=v.memoizedProps,ie=Y.id,be=Y.onPostCommit;typeof be=="function"&&be(ie,v.alternate===null?"mount":"update",m.passiveEffectDuration,-0)}catch(Ke){Qi(v,v.return,Ke)}}else Mu(m,v,E,N);break;case 31:Mu(m,v,E,N);break;case 13:Mu(m,v,E,N);break;case 23:break;case 22:Y=v.stateNode,ie=v.alternate,v.memoizedState!==null?Y._visibility&2?Mu(m,v,E,N):j5(m,v):Y._visibility&2?Mu(m,v,E,N):(Y._visibility|=2,gT(m,v,E,N,(v.subtreeFlags&10256)!==0||!1)),q&2048&&Mse(ie,v);break;case 24:Mu(m,v,E,N),q&2048&&Ose(v.alternate,v);break;default:Mu(m,v,E,N)}}function gT(m,v,E,N,q){for(q=q&&((v.subtreeFlags&10256)!==0||!1),v=v.child;v!==null;){var Y=m,ie=v,be=E,Ke=N,vt=ie.flags;switch(ie.tag){case 0:case 11:case 15:gT(Y,ie,be,Ke,q),W5(8,ie);break;case 23:break;case 22:var Lt=ie.stateNode;ie.memoizedState!==null?Lt._visibility&2?gT(Y,ie,be,Ke,q):j5(Y,ie):(Lt._visibility|=2,gT(Y,ie,be,Ke,q)),q&&vt&2048&&Mse(ie.alternate,ie);break;case 24:gT(Y,ie,be,Ke,q),q&&vt&2048&&Ose(ie.alternate,ie);break;default:gT(Y,ie,be,Ke,q)}v=v.sibling}}function j5(m,v){if(v.subtreeFlags&10256)for(v=v.child;v!==null;){var E=m,N=v,q=N.flags;switch(N.tag){case 22:j5(E,N),q&2048&&Mse(N.alternate,N);break;case 24:j5(E,N),q&2048&&Ose(N.alternate,N);break;default:j5(E,N)}v=v.sibling}}var X5=8192;function mT(m,v,E){if(m.subtreeFlags&X5)for(m=m.child;m!==null;)Mit(m,v,E),m=m.sibling}function Mit(m,v,E){switch(m.tag){case 26:mT(m,v,E),m.flags&X5&&m.memoizedState!==null&&DGt(E,Iu,m.memoizedState,m.memoizedProps);break;case 5:mT(m,v,E);break;case 3:case 4:var N=Iu;Iu=XM(m.stateNode.containerInfo),mT(m,v,E),Iu=N;break;case 22:m.memoizedState===null&&(N=m.alternate,N!==null&&N.memoizedState!==null?(N=X5,X5=16777216,mT(m,v,E),X5=N):mT(m,v,E));break;default:mT(m,v,E)}}function Oit(m){var v=m.alternate;if(v!==null&&(m=v.child,m!==null)){v.child=null;do v=m.sibling,m.sibling=null,m=v;while(m!==null)}}function K5(m){var v=m.deletions;if((m.flags&16)!==0){if(v!==null)for(var E=0;E<v.length;E++){var N=v[E];os=N,Bit(N,m)}Oit(m)}if(m.subtreeFlags&10256)for(m=m.child;m!==null;)Pit(m),m=m.sibling}function Pit(m){switch(m.tag){case 0:case 11:case 15:K5(m),m.flags&2048&&T0(9,m,m.return);break;case 3:K5(m);break;case 12:K5(m);break;case 22:var v=m.stateNode;m.memoizedState!==null&&v._visibility&2&&(m.return===null||m.return.tag!==13)?(v._visibility&=-3,PM(m)):K5(m);break;default:K5(m)}}function PM(m){var v=m.deletions;if((m.flags&16)!==0){if(v!==null)for(var E=0;E<v.length;E++){var N=v[E];os=N,Bit(N,m)}Oit(m)}for(m=m.child;m!==null;){switch(v=m,v.tag){case 0:case 11:case 15:T0(8,v,v.return),PM(v);break;case 22:E=v.stateNode,E._visibility&2&&(E._visibility&=-3,PM(v));break;default:PM(v)}m=m.sibling}}function Bit(m,v){for(;os!==null;){var E=os;switch(E.tag){case 0:case 11:case 15:T0(8,E,v);break;case 23:case 22:if(E.memoizedState!==null&&E.memoizedState.cachePool!==null){var N=E.memoizedState.cachePool.pool;N!=null&&N.refCount++}break;case 24:I5(E.memoizedState.cache)}if(N=E.child,N!==null)N.return=E,os=N;else e:for(E=m;os!==null;){N=os;var q=N.sibling,Y=N.return;if(_it(N),N===E){os=null;break e}if(q!==null){q.return=Y,os=q;break e}os=Y}}}var Xqt={getCacheForType:function(m){var v=Ss(La),E=v.data.get(m);return E===void 0&&(E=m(),v.data.set(m,E)),E},cacheSignal:function(){return Ss(La).controller.signal}},Kqt=typeof WeakMap=="function"?WeakMap:Map,qi=0,fn=null,pi=null,mi=0,Ki=0,Fl=null,w0=!1,yT=!1,Pse=!1,ip=0,Jn=0,E0=0,Ky=0,Bse=0,$l=0,vT=0,Q5=null,ll=null,Fse=!1,BM=0,Fit=0,FM=1/0,$M=null,k0=null,Ga=0,C0=null,bT=null,np=0,$se=0,zse=null,$it=null,Z5=0,Use=null;function wc(){return(qi&2)!==0&&mi!==0?mi&-mi:D.T!==null?Yse():St()}function zit(){if($l===0)if((mi&536870912)===0||Ti){var m=et;et<<=1,(et&3932160)===0&&(et=262144),$l=m}else $l=536870912;return m=Pl.current,m!==null&&(m.flags|=32),$l}function cl(m,v,E){(m===fn&&(Ki===2||Ki===9)||m.cancelPendingCommit!==null)&&(xT(m,0),S0(m,mi,$l,!1)),rr(m,E),((qi&2)===0||m!==fn)&&(m===fn&&((qi&2)===0&&(Ky|=E),Jn===4&&S0(m,mi,$l,!1)),ap(m))}function Uit(m,v,E){if((qi&6)!==0)throw Error(n(327));var N=!E&&(v&127)===0&&(v&m.expiredLanes)===0||ye(m,v),q=N?Jqt(m,v):Vse(m,v,!0),Y=N;do{if(q===0){yT&&!N&&S0(m,v,0,!1);break}else{if(E=m.current.alternate,Y&&!Qqt(E)){q=Vse(m,v,!1),Y=!1;continue}if(q===2){if(Y=v,m.errorRecoveryDisabledLanes&Y)var ie=0;else ie=m.pendingLanes&-536870913,ie=ie!==0?ie:ie&536870912?536870912:0;if(ie!==0){v=ie;e:{var be=m;q=Q5;var Ke=be.current.memoizedState.isDehydrated;if(Ke&&(xT(be,ie).flags|=256),ie=Vse(be,ie,!1),ie!==2){if(Pse&&!Ke){be.errorRecoveryDisabledLanes|=Y,Ky|=Y,q=4;break e}Y=ll,ll=q,Y!==null&&(ll===null?ll=Y:ll.push.apply(ll,Y))}q=ie}if(Y=!1,q!==2)continue}}if(q===1){xT(m,0),S0(m,v,0,!0);break}e:{switch(N=m,Y=q,Y){case 0:case 1:throw Error(n(345));case 4:if((v&4194048)!==v)break;case 6:S0(N,v,$l,!w0);break e;case 2:ll=null;break;case 3:case 5:break;default:throw Error(n(329))}if((v&62914560)===v&&(q=BM+300-Ze(),10<q)){if(S0(N,v,$l,!w0),_t(N,0,!0)!==0)break e;np=v,N.timeoutHandle=bnt(Hit.bind(null,N,E,ll,$M,Fse,v,$l,Ky,vT,w0,Y,"Throttled",-0,0),q);break e}Hit(N,E,ll,$M,Fse,v,$l,Ky,vT,w0,Y,null,-0,0)}}break}while(!0);ap(m)}function Hit(m,v,E,N,q,Y,ie,be,Ke,vt,Lt,Bt,xt,Ct){if(m.timeoutHandle=-1,Bt=v.subtreeFlags,Bt&8192||(Bt&16785408)===16785408){Bt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:il},Mit(v,Y,Bt);var xr=(Y&62914560)===Y?BM-Ze():(Y&4194048)===Y?Fit-Ze():0;if(xr=IGt(Bt,xr),xr!==null){np=Y,m.cancelPendingCommit=xr(Kit.bind(null,m,v,Y,E,N,q,ie,be,Ke,Lt,Bt,null,xt,Ct)),S0(m,Y,ie,!vt);return}}Kit(m,v,Y,E,N,q,ie,be,Ke)}function Qqt(m){for(var v=m;;){var E=v.tag;if((E===0||E===11||E===15)&&v.flags&16384&&(E=v.updateQueue,E!==null&&(E=E.stores,E!==null)))for(var N=0;N<E.length;N++){var q=E[N],Y=q.getSnapshot;q=q.value;try{if(!Ml(Y(),q))return!1}catch{return!1}}if(E=v.child,v.subtreeFlags&16384&&E!==null)E.return=v,v=E;else{if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return!0;v=v.return}v.sibling.return=v.return,v=v.sibling}}return!0}function S0(m,v,E,N){v&=~Bse,v&=~Ky,m.suspendedLanes|=v,m.pingedLanes&=~v,N&&(m.warmLanes|=v),N=m.expirationTimes;for(var q=v;0<q;){var Y=31-Ie(q),ie=1<<Y;N[Y]=-1,q&=~ie}E!==0&&ir(m,E,v)}function zM(){return(qi&6)===0?(J5(0,!1),!1):!0}function Hse(){if(pi!==null){if(Ki===0)var m=pi.return;else m=pi,Yf=$y=null,nse(m),uT=null,O5=0,m=pi;for(;m!==null;)bit(m.alternate,m),m=m.return;pi=null}}function xT(m,v){var E=m.timeoutHandle;E!==-1&&(m.timeoutHandle=-1,gGt(E)),E=m.cancelPendingCommit,E!==null&&(m.cancelPendingCommit=null,E()),np=0,Hse(),fn=m,pi=E=Gf(m.current,null),mi=v,Ki=0,Fl=null,w0=!1,yT=ye(m,v),Pse=!1,vT=$l=Bse=Ky=E0=Jn=0,ll=Q5=null,Fse=!1,(v&8)!==0&&(v|=v&32);var N=m.entangledLanes;if(N!==0)for(m=m.entanglements,N&=v;0<N;){var q=31-Ie(N),Y=1<<q;v|=m[q],N&=~Y}return ip=v,oM(),E}function Vit(m,v){Jr=null,D.H=V5,v===cT||v===gM?(v=lrt(),Ki=3):v===Wae?(v=lrt(),Ki=4):Ki=v===xse?8:v!==null&&typeof v=="object"&&typeof v.then=="function"?6:1,Fl=v,pi===null&&(Jn=1,LM(m,yc(v,m.current)))}function qit(){var m=Pl.current;return m===null?!0:(mi&4194048)===mi?Tc===null:(mi&62914560)===mi||(mi&536870912)!==0?m===Tc:!1}function Git(){var m=D.H;return D.H=V5,m===null?V5:m}function Wit(){var m=D.A;return D.A=Xqt,m}function UM(){Jn=4,w0||(mi&4194048)!==mi&&Pl.current!==null||(yT=!0),(E0&134217727)===0&&(Ky&134217727)===0||fn===null||S0(fn,mi,$l,!1)}function Vse(m,v,E){var N=qi;qi|=2;var q=Git(),Y=Wit();(fn!==m||mi!==v)&&($M=null,xT(m,v)),v=!1;var ie=Jn;e:do try{if(Ki!==0&&pi!==null){var be=pi,Ke=Fl;switch(Ki){case 8:Hse(),ie=6;break e;case 3:case 2:case 9:case 6:Pl.current===null&&(v=!0);var vt=Ki;if(Ki=0,Fl=null,TT(m,be,Ke,vt),E&&yT){ie=0;break e}break;default:vt=Ki,Ki=0,Fl=null,TT(m,be,Ke,vt)}}Zqt(),ie=Jn;break}catch(Lt){Vit(m,Lt)}while(!0);return v&&m.shellSuspendCounter++,Yf=$y=null,qi=N,D.H=q,D.A=Y,pi===null&&(fn=null,mi=0,oM()),ie}function Zqt(){for(;pi!==null;)Yit(pi)}function Jqt(m,v){var E=qi;qi|=2;var N=Git(),q=Wit();fn!==m||mi!==v?($M=null,FM=Ze()+500,xT(m,v)):yT=ye(m,v);e:do try{if(Ki!==0&&pi!==null){v=pi;var Y=Fl;t:switch(Ki){case 1:Ki=0,Fl=null,TT(m,v,Y,1);break;case 2:case 9:if(srt(Y)){Ki=0,Fl=null,jit(v);break}v=function(){Ki!==2&&Ki!==9||fn!==m||(Ki=7),ap(m)},Y.then(v,v);break e;case 3:Ki=7;break e;case 4:Ki=5;break e;case 7:srt(Y)?(Ki=0,Fl=null,jit(v)):(Ki=0,Fl=null,TT(m,v,Y,7));break;case 5:var ie=null;switch(pi.tag){case 26:ie=pi.memoizedState;case 5:case 27:var be=pi;if(ie?Mnt(ie):be.stateNode.complete){Ki=0,Fl=null;var Ke=be.sibling;if(Ke!==null)pi=Ke;else{var vt=be.return;vt!==null?(pi=vt,HM(vt)):pi=null}break t}}Ki=0,Fl=null,TT(m,v,Y,5);break;case 6:Ki=0,Fl=null,TT(m,v,Y,6);break;case 8:Hse(),Jn=6;break e;default:throw Error(n(462))}}eGt();break}catch(Lt){Vit(m,Lt)}while(!0);return Yf=$y=null,D.H=N,D.A=q,qi=E,pi!==null?0:(fn=null,mi=0,oM(),Jn)}function eGt(){for(;pi!==null&&!ut();)Yit(pi)}function Yit(m){var v=yit(m.alternate,m,ip);m.memoizedProps=m.pendingProps,v===null?HM(m):pi=v}function jit(m){var v=m,E=v.alternate;switch(v.tag){case 15:case 0:v=hit(E,v,v.pendingProps,v.type,void 0,mi);break;case 11:v=hit(E,v,v.pendingProps,v.type.render,v.ref,mi);break;case 5:nse(v);default:bit(E,v),v=pi=Xtt(v,ip),v=yit(E,v,ip)}m.memoizedProps=m.pendingProps,v===null?HM(m):pi=v}function TT(m,v,E,N){Yf=$y=null,nse(v),uT=null,O5=0;var q=v.return;try{if(Hqt(m,q,v,E,mi)){Jn=1,LM(m,yc(E,m.current)),pi=null;return}}catch(Y){if(q!==null)throw pi=q,Y;Jn=1,LM(m,yc(E,m.current)),pi=null;return}v.flags&32768?(Ti||N===1?m=!0:yT||(mi&536870912)!==0?m=!1:(w0=m=!0,(N===2||N===9||N===3||N===6)&&(N=Pl.current,N!==null&&N.tag===13&&(N.flags|=16384))),Xit(v,m)):HM(v)}function HM(m){var v=m;do{if((v.flags&32768)!==0){Xit(v,w0);return}m=v.return;var E=Gqt(v.alternate,v,ip);if(E!==null){pi=E;return}if(v=v.sibling,v!==null){pi=v;return}pi=v=m}while(v!==null);Jn===0&&(Jn=5)}function Xit(m,v){do{var E=Wqt(m.alternate,m);if(E!==null){E.flags&=32767,pi=E;return}if(E=m.return,E!==null&&(E.flags|=32768,E.subtreeFlags=0,E.deletions=null),!v&&(m=m.sibling,m!==null)){pi=m;return}pi=m=E}while(m!==null);Jn=6,pi=null}function Kit(m,v,E,N,q,Y,ie,be,Ke){m.cancelPendingCommit=null;do VM();while(Ga!==0);if((qi&6)!==0)throw Error(n(327));if(v!==null){if(v===m.current)throw Error(n(177));if(Y=v.lanes|v.childLanes,Y|=Nae,Ht(m,E,Y,ie,be,Ke),m===fn&&(pi=fn=null,mi=0),bT=v,C0=m,np=E,$se=Y,zse=q,$it=N,(v.subtreeFlags&10256)!==0||(v.flags&10256)!==0?(m.callbackNode=null,m.callbackPriority=0,nGt(Je,function(){return tnt(),null})):(m.callbackNode=null,m.callbackPriority=0),N=(v.flags&13878)!==0,(v.subtreeFlags&13878)!==0||N){N=D.T,D.T=null,q=$.p,$.p=2,ie=qi,qi|=4;try{Yqt(m,v,E)}finally{qi=ie,$.p=q,D.T=N}}Ga=1,Qit(),Zit(),Jit()}}function Qit(){if(Ga===1){Ga=0;var m=C0,v=bT,E=(v.flags&13878)!==0;if((v.subtreeFlags&13878)!==0||E){E=D.T,D.T=null;var N=$.p;$.p=2;var q=qi;qi|=4;try{Nit(v,m);var Y=eoe,ie=ztt(m.containerInfo),be=Y.focusedElem,Ke=Y.selectionRange;if(ie!==be&&be&&be.ownerDocument&&$tt(be.ownerDocument.documentElement,be)){if(Ke!==null&&Sae(be)){var vt=Ke.start,Lt=Ke.end;if(Lt===void 0&&(Lt=vt),"selectionStart"in be)be.selectionStart=vt,be.selectionEnd=Math.min(Lt,be.value.length);else{var Bt=be.ownerDocument||document,xt=Bt&&Bt.defaultView||window;if(xt.getSelection){var Ct=xt.getSelection(),xr=be.textContent.length,Hr=Math.min(Ke.start,xr),nn=Ke.end===void 0?Hr:Math.min(Ke.end,xr);!Ct.extend&&Hr>nn&&(ie=nn,nn=Hr,Hr=ie);var lt=Ftt(be,Hr),tt=Ftt(be,nn);if(lt&&tt&&(Ct.rangeCount!==1||Ct.anchorNode!==lt.node||Ct.anchorOffset!==lt.offset||Ct.focusNode!==tt.node||Ct.focusOffset!==tt.offset)){var mt=Bt.createRange();mt.setStart(lt.node,lt.offset),Ct.removeAllRanges(),Hr>nn?(Ct.addRange(mt),Ct.extend(tt.node,tt.offset)):(mt.setEnd(tt.node,tt.offset),Ct.addRange(mt))}}}}for(Bt=[],Ct=be;Ct=Ct.parentNode;)Ct.nodeType===1&&Bt.push({element:Ct,left:Ct.scrollLeft,top:Ct.scrollTop});for(typeof be.focus=="function"&&be.focus(),be=0;be<Bt.length;be++){var Dt=Bt[be];Dt.element.scrollLeft=Dt.left,Dt.element.scrollTop=Dt.top}}tO=!!Jse,eoe=Jse=null}finally{qi=q,$.p=N,D.T=E}}m.current=v,Ga=2}}function Zit(){if(Ga===2){Ga=0;var m=C0,v=bT,E=(v.flags&8772)!==0;if((v.subtreeFlags&8772)!==0||E){E=D.T,D.T=null;var N=$.p;$.p=2;var q=qi;qi|=4;try{Sit(m,v.alternate,v)}finally{qi=q,$.p=N,D.T=E}}Ga=3}}function Jit(){if(Ga===4||Ga===3){Ga=0,it();var m=C0,v=bT,E=np,N=$it;(v.subtreeFlags&10256)!==0||(v.flags&10256)!==0?Ga=5:(Ga=0,bT=C0=null,ent(m,m.pendingLanes));var q=m.pendingLanes;if(q===0&&(k0=null),Ot(E),v=v.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(fe,v,void 0,(v.current.flags&128)===128)}catch{}if(N!==null){v=D.T,q=$.p,$.p=2,D.T=null;try{for(var Y=m.onRecoverableError,ie=0;ie<N.length;ie++){var be=N[ie];Y(be.value,{componentStack:be.stack})}}finally{D.T=v,$.p=q}}(np&3)!==0&&VM(),ap(m),q=m.pendingLanes,(E&261930)!==0&&(q&42)!==0?m===Use?Z5++:(Z5=0,Use=m):Z5=0,J5(0,!1)}}function ent(m,v){(m.pooledCacheLanes&=v)===0&&(v=m.pooledCache,v!=null&&(m.pooledCache=null,I5(v)))}function VM(){return Qit(),Zit(),Jit(),tnt()}function tnt(){if(Ga!==5)return!1;var m=C0,v=$se;$se=0;var E=Ot(np),N=D.T,q=$.p;try{$.p=32>E?32:E,D.T=null,E=zse,zse=null;var Y=C0,ie=np;if(Ga=0,bT=C0=null,np=0,(qi&6)!==0)throw Error(n(331));var be=qi;if(qi|=4,Pit(Y.current),Iit(Y,Y.current,ie,E),qi=be,J5(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(fe,Y)}catch{}return!0}finally{$.p=q,D.T=N,ent(m,v)}}function rnt(m,v,E){v=yc(E,v),v=bse(m.stateNode,v,2),m=Wy(m,v,2),m!==null&&(rr(m,2),ap(m))}function Qi(m,v,E){if(m.tag===3)rnt(m,m,E);else for(;v!==null;){if(v.tag===3){rnt(v,m,E);break}else if(v.tag===1){var N=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof N.componentDidCatch=="function"&&(k0===null||!k0.has(N))){m=yc(E,m),E=iit(2),N=Wy(v,E,2),N!==null&&(nit(E,N,v,m),rr(N,2),ap(N));break}}v=v.return}}function qse(m,v,E){var N=m.pingCache;if(N===null){N=m.pingCache=new Kqt;var q=new Set;N.set(v,q)}else q=N.get(v),q===void 0&&(q=new Set,N.set(v,q));q.has(E)||(Pse=!0,q.add(E),m=tGt.bind(null,m,v,E),v.then(m,m))}function tGt(m,v,E){var N=m.pingCache;N!==null&&N.delete(v),m.pingedLanes|=m.suspendedLanes&E,m.warmLanes&=~E,fn===m&&(mi&E)===E&&(Jn===4||Jn===3&&(mi&62914560)===mi&&300>Ze()-BM?(qi&2)===0&&xT(m,0):Bse|=E,vT===mi&&(vT=0)),ap(m)}function int(m,v){v===0&&(v=Wt()),m=Py(m,v),m!==null&&(rr(m,v),ap(m))}function rGt(m){var v=m.memoizedState,E=0;v!==null&&(E=v.retryLane),int(m,E)}function iGt(m,v){var E=0;switch(m.tag){case 31:case 13:var N=m.stateNode,q=m.memoizedState;q!==null&&(E=q.retryLane);break;case 19:N=m.stateNode;break;case 22:N=m.stateNode._retryCache;break;default:throw Error(n(314))}N!==null&&N.delete(v),int(m,E)}function nGt(m,v){return dt(m,v)}var qM=null,wT=null,Gse=!1,GM=!1,Wse=!1,_0=0;function ap(m){m!==wT&&m.next===null&&(wT===null?qM=wT=m:wT=wT.next=m),GM=!0,Gse||(Gse=!0,sGt())}function J5(m,v){if(!Wse&&GM){Wse=!0;do for(var E=!1,N=qM;N!==null;){if(!v)if(m!==0){var q=N.pendingLanes;if(q===0)var Y=0;else{var ie=N.suspendedLanes,be=N.pingedLanes;Y=(1<<31-Ie(42|m)+1)-1,Y&=q&~(ie&~be),Y=Y&201326741?Y&201326741|1:Y?Y|2:0}Y!==0&&(E=!0,ont(N,Y))}else Y=mi,Y=_t(N,N===fn?Y:0,N.cancelPendingCommit!==null||N.timeoutHandle!==-1),(Y&3)===0||ye(N,Y)||(E=!0,ont(N,Y));N=N.next}while(E);Wse=!1}}function aGt(){nnt()}function nnt(){GM=Gse=!1;var m=0;_0!==0&&pGt()&&(m=_0);for(var v=Ze(),E=null,N=qM;N!==null;){var q=N.next,Y=ant(N,v);Y===0?(N.next=null,E===null?qM=q:E.next=q,q===null&&(wT=E)):(E=N,(m!==0||(Y&3)!==0)&&(GM=!0)),N=q}Ga!==0&&Ga!==5||J5(m,!1),_0!==0&&(_0=0)}function ant(m,v){for(var E=m.suspendedLanes,N=m.pingedLanes,q=m.expirationTimes,Y=m.pendingLanes&-62914561;0<Y;){var ie=31-Ie(Y),be=1<<ie,Ke=q[ie];Ke===-1?((be&E)===0||(be&N)!==0)&&(q[ie]=wt(be,v)):Ke<=v&&(m.expiredLanes|=be),Y&=~be}if(v=fn,E=mi,E=_t(m,m===v?E:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),N=m.callbackNode,E===0||m===v&&(Ki===2||Ki===9)||m.cancelPendingCommit!==null)return N!==null&&N!==null&&Se(N),m.callbackNode=null,m.callbackPriority=0;if((E&3)===0||ye(m,E)){if(v=E&-E,v===m.callbackPriority)return v;switch(N!==null&&Se(N),Ot(E)){case 2:case 8:E=he;break;case 32:E=Je;break;case 268435456:E=ke;break;default:E=Je}return N=snt.bind(null,m),E=dt(E,N),m.callbackPriority=v,m.callbackNode=E,v}return N!==null&&N!==null&&Se(N),m.callbackPriority=2,m.callbackNode=null,2}function snt(m,v){if(Ga!==0&&Ga!==5)return m.callbackNode=null,m.callbackPriority=0,null;var E=m.callbackNode;if(VM()&&m.callbackNode!==E)return null;var N=mi;return N=_t(m,m===fn?N:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),N===0?null:(Uit(m,N,v),ant(m,Ze()),m.callbackNode!=null&&m.callbackNode===E?snt.bind(null,m):null)}function ont(m,v){if(VM())return null;Uit(m,v,!0)}function sGt(){mGt(function(){(qi&6)!==0?dt($e,aGt):nnt()})}function Yse(){if(_0===0){var m=oT;m===0&&(m=ot,ot<<=1,(ot&261888)===0&&(ot=256)),_0=m}return _0}function lnt(m){return m==null||typeof m=="symbol"||typeof m=="boolean"?null:typeof m=="function"?m:Ny(""+m)}function cnt(m,v){var E=v.ownerDocument.createElement("input");return E.name=v.name,E.value=v.value,m.id&&E.setAttribute("form",m.id),v.parentNode.insertBefore(E,v),m=new FormData(m),E.parentNode.removeChild(E),m}function oGt(m,v,E,N,q){if(v==="submit"&&E&&E.stateNode===q){var Y=lnt((q[Rt]||null).action),ie=N.submitter;ie&&(v=(v=ie[Rt]||null)?lnt(v.formAction):ie.getAttribute("formAction"),v!==null&&(Y=v,ie=null));var be=new iM("action","action",null,N,q);m.push({event:be,listeners:[{instance:null,listener:function(){if(N.defaultPrevented){if(_0!==0){var Ke=ie?cnt(q,ie):new FormData(q);fse(E,{pending:!0,data:Ke,method:q.method,action:Y},null,Ke)}}else typeof Y=="function"&&(be.preventDefault(),Ke=ie?cnt(q,ie):new FormData(q),fse(E,{pending:!0,data:Ke,method:q.method,action:Y},Y,Ke))},currentTarget:q}]})}}for(var jse=0;jse<Rae.length;jse++){var Xse=Rae[jse];Du(Xse.toLowerCase(),"on"+(Xse[0].toUpperCase()+Xse.slice(1)))}Du(Vtt,"onAnimationEnd"),Du(qtt,"onAnimationIteration"),Du(Gtt,"onAnimationStart"),Du("dblclick","onDoubleClick"),Du("focusin","onFocus"),Du("focusout","onBlur"),Du(wqt,"onTransitionRun"),Du(Eqt,"onTransitionStart"),Du(kqt,"onTransitionCancel"),Du(Wtt,"onTransitionEnd"),cr("onMouseEnter",["mouseout","mouseover"]),cr("onMouseLeave",["mouseout","mouseover"]),cr("onPointerEnter",["pointerout","pointerover"]),cr("onPointerLeave",["pointerout","pointerover"]),tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tr("onBeforeInput",["compositionend","keypress","textInput","paste"]),tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var e3="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(" "),lGt=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(e3));function unt(m,v){v=(v&4)!==0;for(var E=0;E<m.length;E++){var N=m[E],q=N.event;N=N.listeners;e:{var Y=void 0;if(v)for(var ie=N.length-1;0<=ie;ie--){var be=N[ie],Ke=be.instance,vt=be.currentTarget;if(be=be.listener,Ke!==Y&&q.isPropagationStopped())break e;Y=be,q.currentTarget=vt;try{Y(q)}catch(Lt){sM(Lt)}q.currentTarget=null,Y=Ke}else for(ie=0;ie<N.length;ie++){if(be=N[ie],Ke=be.instance,vt=be.currentTarget,be=be.listener,Ke!==Y&&q.isPropagationStopped())break e;Y=be,q.currentTarget=vt;try{Y(q)}catch(Lt){sM(Lt)}q.currentTarget=null,Y=Ke}}}}function gi(m,v){var E=v[nr];E===void 0&&(E=v[nr]=new Set);var N=m+"__bubble";E.has(N)||(dnt(v,m,2,!1),E.add(N))}function Kse(m,v,E){var N=0;v&&(N|=4),dnt(E,m,N,v)}var WM="_reactListening"+Math.random().toString(36).slice(2);function hnt(m){if(!m[WM]){m[WM]=!0,Ri.forEach(function(E){E!=="selectionchange"&&(lGt.has(E)||Kse(E,!1,m),Kse(E,!0,m))});var v=m.nodeType===9?m:m.ownerDocument;v===null||v[WM]||(v[WM]=!0,Kse("selectionchange",!1,v))}}function dnt(m,v,E,N){switch($nt(v)){case 2:var q=FGt;break;case 8:q=$Gt;break;default:q=hoe}E=q.bind(null,v,E,m),q=void 0,!yae||v!=="touchstart"&&v!=="touchmove"&&v!=="wheel"||(q=!0),N?q!==void 0?m.addEventListener(v,E,{capture:!0,passive:q}):m.addEventListener(v,E,!0):q!==void 0?m.addEventListener(v,E,{passive:q}):m.addEventListener(v,E,!1)}function Qse(m,v,E,N,q){var Y=N;if((v&1)===0&&(v&2)===0&&N!==null)e:for(;;){if(N===null)return;var ie=N.tag;if(ie===3||ie===4){var be=N.stateNode.containerInfo;if(be===q)break;if(ie===4)for(ie=N.return;ie!==null;){var Ke=ie.tag;if((Ke===3||Ke===4)&&ie.stateNode.containerInfo===q)return;ie=ie.return}for(;be!==null;){if(ie=zt(be),ie===null)return;if(Ke=ie.tag,Ke===5||Ke===6||Ke===26||Ke===27){N=Y=ie;continue e}be=be.parentNode}}N=N.return}btt(function(){var vt=Y,Lt=io(E),Bt=[];e:{var xt=Ytt.get(m);if(xt!==void 0){var Ct=iM,xr=m;switch(m){case"keypress":if(tM(E)===0)break e;case"keydown":case"keyup":Ct=aqt;break;case"focusin":xr="focus",Ct=Tae;break;case"focusout":xr="blur",Ct=Tae;break;case"beforeblur":case"afterblur":Ct=Tae;break;case"click":if(E.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ct=wtt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ct=ZVt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ct=sqt;break;case Vtt:case qtt:case Gtt:Ct=JVt;break;case Wtt:Ct=oqt;break;case"scroll":case"scrollend":Ct=QVt;break;case"wheel":Ct=lqt;break;case"copy":case"cut":case"paste":Ct=eqt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ct=ktt;break;case"toggle":case"beforetoggle":Ct=cqt}var Hr=(v&4)!==0,nn=!Hr&&(m==="scroll"||m==="scrollend"),lt=Hr?xt!==null?xt+"Capture":null:xt;Hr=[];for(var tt=vt,mt;tt!==null;){var Dt=tt;if(mt=Dt.stateNode,Dt=Dt.tag,Dt!==5&&Dt!==26&&Dt!==27||mt===null||lt===null||(Dt=w5(tt,lt),Dt!=null&&Hr.push(t3(tt,Dt,mt))),nn)break;tt=tt.return}0<Hr.length&&(xt=new Ct(xt,xr,null,E,Lt),Bt.push({event:xt,listeners:Hr}))}}if((v&7)===0){e:{if(xt=m==="mouseover"||m==="pointerover",Ct=m==="mouseout"||m==="pointerout",xt&&E!==Dy&&(xr=E.relatedTarget||E.fromElement)&&(zt(xr)||xr[pr]))break e;if((Ct||xt)&&(xt=Lt.window===Lt?Lt:(xt=Lt.ownerDocument)?xt.defaultView||xt.parentWindow:window,Ct?(xr=E.relatedTarget||E.toElement,Ct=vt,xr=xr?zt(xr):null,xr!==null&&(nn=s(xr),Hr=xr.tag,xr!==nn||Hr!==5&&Hr!==27&&Hr!==6)&&(xr=null)):(Ct=null,xr=vt),Ct!==xr)){if(Hr=wtt,Dt="onMouseLeave",lt="onMouseEnter",tt="mouse",(m==="pointerout"||m==="pointerover")&&(Hr=ktt,Dt="onPointerLeave",lt="onPointerEnter",tt="pointer"),nn=Ct==null?xt:mr(Ct),mt=xr==null?xt:mr(xr),xt=new Hr(Dt,tt+"leave",Ct,E,Lt),xt.target=nn,xt.relatedTarget=mt,Dt=null,zt(Lt)===vt&&(Hr=new Hr(lt,tt+"enter",xr,E,Lt),Hr.target=mt,Hr.relatedTarget=nn,Dt=Hr),nn=Dt,Ct&&xr)t:{for(Hr=cGt,lt=Ct,tt=xr,mt=0,Dt=lt;Dt;Dt=Hr(Dt))mt++;Dt=0;for(var Nr=tt;Nr;Nr=Hr(Nr))Dt++;for(;0<mt-Dt;)lt=Hr(lt),mt--;for(;0<Dt-mt;)tt=Hr(tt),Dt--;for(;mt--;){if(lt===tt||tt!==null&<===tt.alternate){Hr=lt;break t}lt=Hr(lt),tt=Hr(tt)}Hr=null}else Hr=null;Ct!==null&&fnt(Bt,xt,Ct,Hr,!1),xr!==null&&nn!==null&&fnt(Bt,nn,xr,Hr,!0)}}e:{if(xt=vt?mr(vt):window,Ct=xt.nodeName&&xt.nodeName.toLowerCase(),Ct==="select"||Ct==="input"&&xt.type==="file")var Pi=Dtt;else if(Rtt(xt))if(Itt)Pi=bqt;else{Pi=yqt;var _r=mqt}else Ct=xt.nodeName,!Ct||Ct.toLowerCase()!=="input"||xt.type!=="checkbox"&&xt.type!=="radio"?vt&&cd(vt.elementType)&&(Pi=Dtt):Pi=vqt;if(Pi&&(Pi=Pi(m,vt))){Ntt(Bt,Pi,E,Lt);break e}_r&&_r(m,xt,vt),m==="focusout"&&vt&&xt.type==="number"&&vt.memoizedProps.value!=null&&x5(xt,"number",xt.value)}switch(_r=vt?mr(vt):window,m){case"focusin":(Rtt(_r)||_r.contentEditable==="true")&&(Jx=_r,_ae=vt,R5=null);break;case"focusout":R5=_ae=Jx=null;break;case"mousedown":Aae=!0;break;case"contextmenu":case"mouseup":case"dragend":Aae=!1,Utt(Bt,E,Lt);break;case"selectionchange":if(Tqt)break;case"keydown":case"keyup":Utt(Bt,E,Lt)}var ri;if(Eae)e:{switch(m){case"compositionstart":var yi="onCompositionStart";break e;case"compositionend":yi="onCompositionEnd";break e;case"compositionupdate":yi="onCompositionUpdate";break e}yi=void 0}else Zx?Att(m,E)&&(yi="onCompositionEnd"):m==="keydown"&&E.keyCode===229&&(yi="onCompositionStart");yi&&(Ctt&&E.locale!=="ko"&&(Zx||yi!=="onCompositionStart"?yi==="onCompositionEnd"&&Zx&&(ri=xtt()):(f0=Lt,vae="value"in f0?f0.value:f0.textContent,Zx=!0)),_r=YM(vt,yi),0<_r.length&&(yi=new Ett(yi,m,null,E,Lt),Bt.push({event:yi,listeners:_r}),ri?yi.data=ri:(ri=Ltt(E),ri!==null&&(yi.data=ri)))),(ri=hqt?dqt(m,E):fqt(m,E))&&(yi=YM(vt,"onBeforeInput"),0<yi.length&&(_r=new Ett("onBeforeInput","beforeinput",null,E,Lt),Bt.push({event:_r,listeners:yi}),_r.data=ri)),oGt(Bt,m,vt,E,Lt)}unt(Bt,v)})}function t3(m,v,E){return{instance:m,listener:v,currentTarget:E}}function YM(m,v){for(var E=v+"Capture",N=[];m!==null;){var q=m,Y=q.stateNode;if(q=q.tag,q!==5&&q!==26&&q!==27||Y===null||(q=w5(m,E),q!=null&&N.unshift(t3(m,q,Y)),q=w5(m,v),q!=null&&N.push(t3(m,q,Y))),m.tag===3)return N;m=m.return}return[]}function cGt(m){if(m===null)return null;do m=m.return;while(m&&m.tag!==5&&m.tag!==27);return m||null}function fnt(m,v,E,N,q){for(var Y=v._reactName,ie=[];E!==null&&E!==N;){var be=E,Ke=be.alternate,vt=be.stateNode;if(be=be.tag,Ke!==null&&Ke===N)break;be!==5&&be!==26&&be!==27||vt===null||(Ke=vt,q?(vt=w5(E,Y),vt!=null&&ie.unshift(t3(E,vt,Ke))):q||(vt=w5(E,Y),vt!=null&&ie.push(t3(E,vt,Ke)))),E=E.return}ie.length!==0&&m.push({event:v,listeners:ie})}var uGt=/\r\n?/g,hGt=/\u0000|\uFFFD/g;function pnt(m){return(typeof m=="string"?m:""+m).replace(uGt,`
|
|
10
|
+
`).replace(hGt,"")}function gnt(m,v){return v=pnt(v),pnt(m)===v}function rn(m,v,E,N,q,Y){switch(E){case"children":typeof N=="string"?v==="body"||v==="textarea"&&N===""||ld(m,N):(typeof N=="number"||typeof N=="bigint")&&v!=="body"&&ld(m,""+N);break;case"className":Ru(m,"class",N);break;case"tabIndex":Ru(m,"tabindex",N);break;case"dir":case"role":case"viewBox":case"width":case"height":Ru(m,E,N);break;case"style":jx(m,N,Y);break;case"data":if(v!=="object"){Ru(m,"data",N);break}case"src":case"href":if(N===""&&(v!=="a"||E!=="href")){m.removeAttribute(E);break}if(N==null||typeof N=="function"||typeof N=="symbol"||typeof N=="boolean"){m.removeAttribute(E);break}N=Ny(""+N),m.setAttribute(E,N);break;case"action":case"formAction":if(typeof N=="function"){m.setAttribute(E,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof Y=="function"&&(E==="formAction"?(v!=="input"&&rn(m,v,"name",q.name,q,null),rn(m,v,"formEncType",q.formEncType,q,null),rn(m,v,"formMethod",q.formMethod,q,null),rn(m,v,"formTarget",q.formTarget,q,null)):(rn(m,v,"encType",q.encType,q,null),rn(m,v,"method",q.method,q,null),rn(m,v,"target",q.target,q,null)));if(N==null||typeof N=="symbol"||typeof N=="boolean"){m.removeAttribute(E);break}N=Ny(""+N),m.setAttribute(E,N);break;case"onClick":N!=null&&(m.onclick=il);break;case"onScroll":N!=null&&gi("scroll",m);break;case"onScrollEnd":N!=null&&gi("scrollend",m);break;case"dangerouslySetInnerHTML":if(N!=null){if(typeof N!="object"||!("__html"in N))throw Error(n(61));if(E=N.__html,E!=null){if(q.children!=null)throw Error(n(60));m.innerHTML=E}}break;case"multiple":m.multiple=N&&typeof N!="function"&&typeof N!="symbol";break;case"muted":m.muted=N&&typeof N!="function"&&typeof N!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(N==null||typeof N=="function"||typeof N=="boolean"||typeof N=="symbol"){m.removeAttribute("xlink:href");break}E=Ny(""+N),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",E);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":N!=null&&typeof N!="function"&&typeof N!="symbol"?m.setAttribute(E,""+N):m.removeAttribute(E);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":N&&typeof N!="function"&&typeof N!="symbol"?m.setAttribute(E,""):m.removeAttribute(E);break;case"capture":case"download":N===!0?m.setAttribute(E,""):N!==!1&&N!=null&&typeof N!="function"&&typeof N!="symbol"?m.setAttribute(E,N):m.removeAttribute(E);break;case"cols":case"rows":case"size":case"span":N!=null&&typeof N!="function"&&typeof N!="symbol"&&!isNaN(N)&&1<=N?m.setAttribute(E,N):m.removeAttribute(E);break;case"rowSpan":case"start":N==null||typeof N=="function"||typeof N=="symbol"||isNaN(N)?m.removeAttribute(E):m.setAttribute(E,N);break;case"popover":gi("beforetoggle",m),gi("toggle",m),Oe(m,"popover",N);break;case"xlinkActuate":He(m,"http://www.w3.org/1999/xlink","xlink:actuate",N);break;case"xlinkArcrole":He(m,"http://www.w3.org/1999/xlink","xlink:arcrole",N);break;case"xlinkRole":He(m,"http://www.w3.org/1999/xlink","xlink:role",N);break;case"xlinkShow":He(m,"http://www.w3.org/1999/xlink","xlink:show",N);break;case"xlinkTitle":He(m,"http://www.w3.org/1999/xlink","xlink:title",N);break;case"xlinkType":He(m,"http://www.w3.org/1999/xlink","xlink:type",N);break;case"xmlBase":He(m,"http://www.w3.org/XML/1998/namespace","xml:base",N);break;case"xmlLang":He(m,"http://www.w3.org/XML/1998/namespace","xml:lang",N);break;case"xmlSpace":He(m,"http://www.w3.org/XML/1998/namespace","xml:space",N);break;case"is":Oe(m,"is",N);break;case"innerText":case"textContent":break;default:(!(2<E.length)||E[0]!=="o"&&E[0]!=="O"||E[1]!=="n"&&E[1]!=="N")&&(E=Xx.get(E)||E,Oe(m,E,N))}}function Zse(m,v,E,N,q,Y){switch(E){case"style":jx(m,N,Y);break;case"dangerouslySetInnerHTML":if(N!=null){if(typeof N!="object"||!("__html"in N))throw Error(n(61));if(E=N.__html,E!=null){if(q.children!=null)throw Error(n(60));m.innerHTML=E}}break;case"children":typeof N=="string"?ld(m,N):(typeof N=="number"||typeof N=="bigint")&&ld(m,""+N);break;case"onScroll":N!=null&&gi("scroll",m);break;case"onScrollEnd":N!=null&&gi("scrollend",m);break;case"onClick":N!=null&&(m.onclick=il);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sa.hasOwnProperty(E))e:{if(E[0]==="o"&&E[1]==="n"&&(q=E.endsWith("Capture"),v=E.slice(2,q?E.length-7:void 0),Y=m[Rt]||null,Y=Y!=null?Y[E]:null,typeof Y=="function"&&m.removeEventListener(v,Y,q),typeof N=="function")){typeof Y!="function"&&Y!==null&&(E in m?m[E]=null:m.hasAttribute(E)&&m.removeAttribute(E)),m.addEventListener(v,N,q);break e}E in m?m[E]=N:N===!0?m.setAttribute(E,""):Oe(m,E,N)}}}function As(m,v,E){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gi("error",m),gi("load",m);var N=!1,q=!1,Y;for(Y in E)if(E.hasOwnProperty(Y)){var ie=E[Y];if(ie!=null)switch(Y){case"src":N=!0;break;case"srcSet":q=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,v));default:rn(m,v,Y,ie,E,null)}}q&&rn(m,v,"srcSet",E.srcSet,E,null),N&&rn(m,v,"src",E.src,E,null);return;case"input":gi("invalid",m);var be=Y=ie=q=null,Ke=null,vt=null;for(N in E)if(E.hasOwnProperty(N)){var Lt=E[N];if(Lt!=null)switch(N){case"name":q=Lt;break;case"type":ie=Lt;break;case"checked":Ke=Lt;break;case"defaultChecked":vt=Lt;break;case"value":Y=Lt;break;case"defaultValue":be=Lt;break;case"children":case"dangerouslySetInnerHTML":if(Lt!=null)throw Error(n(137,v));break;default:rn(m,v,N,Lt,E,null)}}Yx(m,Y,be,Ke,vt,ie,q,!1);return;case"select":gi("invalid",m),N=ie=Y=null;for(q in E)if(E.hasOwnProperty(q)&&(be=E[q],be!=null))switch(q){case"value":Y=be;break;case"defaultValue":ie=be;break;case"multiple":N=be;default:rn(m,v,q,be,E,null)}v=Y,E=ie,m.multiple=!!N,v!=null?d0(m,!!N,v,!1):E!=null&&d0(m,!!N,E,!0);return;case"textarea":gi("invalid",m),Y=q=N=null;for(ie in E)if(E.hasOwnProperty(ie)&&(be=E[ie],be!=null))switch(ie){case"value":N=be;break;case"defaultValue":q=be;break;case"children":Y=be;break;case"dangerouslySetInnerHTML":if(be!=null)throw Error(n(91));break;default:rn(m,v,ie,be,E,null)}ss(m,N,q,Y);return;case"option":for(Ke in E)E.hasOwnProperty(Ke)&&(N=E[Ke],N!=null)&&(Ke==="selected"?m.selected=N&&typeof N!="function"&&typeof N!="symbol":rn(m,v,Ke,N,E,null));return;case"dialog":gi("beforetoggle",m),gi("toggle",m),gi("cancel",m),gi("close",m);break;case"iframe":case"object":gi("load",m);break;case"video":case"audio":for(N=0;N<e3.length;N++)gi(e3[N],m);break;case"image":gi("error",m),gi("load",m);break;case"details":gi("toggle",m);break;case"embed":case"source":case"link":gi("error",m),gi("load",m);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(vt in E)if(E.hasOwnProperty(vt)&&(N=E[vt],N!=null))switch(vt){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,v));default:rn(m,v,vt,N,E,null)}return;default:if(cd(v)){for(Lt in E)E.hasOwnProperty(Lt)&&(N=E[Lt],N!==void 0&&Zse(m,v,Lt,N,E,void 0));return}}for(be in E)E.hasOwnProperty(be)&&(N=E[be],N!=null&&rn(m,v,be,N,E,null))}function dGt(m,v,E,N){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var q=null,Y=null,ie=null,be=null,Ke=null,vt=null,Lt=null;for(Ct in E){var Bt=E[Ct];if(E.hasOwnProperty(Ct)&&Bt!=null)switch(Ct){case"checked":break;case"value":break;case"defaultValue":Ke=Bt;default:N.hasOwnProperty(Ct)||rn(m,v,Ct,null,N,Bt)}}for(var xt in N){var Ct=N[xt];if(Bt=E[xt],N.hasOwnProperty(xt)&&(Ct!=null||Bt!=null))switch(xt){case"type":Y=Ct;break;case"name":q=Ct;break;case"checked":vt=Ct;break;case"defaultChecked":Lt=Ct;break;case"value":ie=Ct;break;case"defaultValue":be=Ct;break;case"children":case"dangerouslySetInnerHTML":if(Ct!=null)throw Error(n(137,v));break;default:Ct!==Bt&&rn(m,v,xt,Ct,N,Bt)}}Ry(m,ie,be,Ke,vt,Lt,Y,q);return;case"select":Ct=ie=be=xt=null;for(Y in E)if(Ke=E[Y],E.hasOwnProperty(Y)&&Ke!=null)switch(Y){case"value":break;case"multiple":Ct=Ke;default:N.hasOwnProperty(Y)||rn(m,v,Y,null,N,Ke)}for(q in N)if(Y=N[q],Ke=E[q],N.hasOwnProperty(q)&&(Y!=null||Ke!=null))switch(q){case"value":xt=Y;break;case"defaultValue":be=Y;break;case"multiple":ie=Y;default:Y!==Ke&&rn(m,v,q,Y,N,Ke)}v=be,E=ie,N=Ct,xt!=null?d0(m,!!E,xt,!1):!!N!=!!E&&(v!=null?d0(m,!!E,v,!0):d0(m,!!E,E?[]:"",!1));return;case"textarea":Ct=xt=null;for(be in E)if(q=E[be],E.hasOwnProperty(be)&&q!=null&&!N.hasOwnProperty(be))switch(be){case"value":break;case"children":break;default:rn(m,v,be,null,N,q)}for(ie in N)if(q=N[ie],Y=E[ie],N.hasOwnProperty(ie)&&(q!=null||Y!=null))switch(ie){case"value":xt=q;break;case"defaultValue":Ct=q;break;case"children":break;case"dangerouslySetInnerHTML":if(q!=null)throw Error(n(91));break;default:q!==Y&&rn(m,v,ie,q,N,Y)}T5(m,xt,Ct);return;case"option":for(var xr in E)xt=E[xr],E.hasOwnProperty(xr)&&xt!=null&&!N.hasOwnProperty(xr)&&(xr==="selected"?m.selected=!1:rn(m,v,xr,null,N,xt));for(Ke in N)xt=N[Ke],Ct=E[Ke],N.hasOwnProperty(Ke)&&xt!==Ct&&(xt!=null||Ct!=null)&&(Ke==="selected"?m.selected=xt&&typeof xt!="function"&&typeof xt!="symbol":rn(m,v,Ke,xt,N,Ct));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Hr in E)xt=E[Hr],E.hasOwnProperty(Hr)&&xt!=null&&!N.hasOwnProperty(Hr)&&rn(m,v,Hr,null,N,xt);for(vt in N)if(xt=N[vt],Ct=E[vt],N.hasOwnProperty(vt)&&xt!==Ct&&(xt!=null||Ct!=null))switch(vt){case"children":case"dangerouslySetInnerHTML":if(xt!=null)throw Error(n(137,v));break;default:rn(m,v,vt,xt,N,Ct)}return;default:if(cd(v)){for(var nn in E)xt=E[nn],E.hasOwnProperty(nn)&&xt!==void 0&&!N.hasOwnProperty(nn)&&Zse(m,v,nn,void 0,N,xt);for(Lt in N)xt=N[Lt],Ct=E[Lt],!N.hasOwnProperty(Lt)||xt===Ct||xt===void 0&&Ct===void 0||Zse(m,v,Lt,xt,N,Ct);return}}for(var lt in E)xt=E[lt],E.hasOwnProperty(lt)&&xt!=null&&!N.hasOwnProperty(lt)&&rn(m,v,lt,null,N,xt);for(Bt in N)xt=N[Bt],Ct=E[Bt],!N.hasOwnProperty(Bt)||xt===Ct||xt==null&&Ct==null||rn(m,v,Bt,xt,N,Ct)}function mnt(m){switch(m){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fGt(){if(typeof performance.getEntriesByType=="function"){for(var m=0,v=0,E=performance.getEntriesByType("resource"),N=0;N<E.length;N++){var q=E[N],Y=q.transferSize,ie=q.initiatorType,be=q.duration;if(Y&&be&&mnt(ie)){for(ie=0,be=q.responseEnd,N+=1;N<E.length;N++){var Ke=E[N],vt=Ke.startTime;if(vt>be)break;var Lt=Ke.transferSize,Bt=Ke.initiatorType;Lt&&mnt(Bt)&&(Ke=Ke.responseEnd,ie+=Lt*(Ke<be?1:(be-vt)/(Ke-vt)))}if(--N,v+=8*(Y+ie)/(q.duration/1e3),m++,10<m)break}}if(0<m)return v/m/1e6}return navigator.connection&&(m=navigator.connection.downlink,typeof m=="number")?m:5}var Jse=null,eoe=null;function jM(m){return m.nodeType===9?m:m.ownerDocument}function ynt(m){switch(m){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vnt(m,v){if(m===0)switch(v){case"svg":return 1;case"math":return 2;default:return 0}return m===1&&v==="foreignObject"?0:m}function toe(m,v){return m==="textarea"||m==="noscript"||typeof v.children=="string"||typeof v.children=="number"||typeof v.children=="bigint"||typeof v.dangerouslySetInnerHTML=="object"&&v.dangerouslySetInnerHTML!==null&&v.dangerouslySetInnerHTML.__html!=null}var roe=null;function pGt(){var m=window.event;return m&&m.type==="popstate"?m===roe?!1:(roe=m,!0):(roe=null,!1)}var bnt=typeof setTimeout=="function"?setTimeout:void 0,gGt=typeof clearTimeout=="function"?clearTimeout:void 0,xnt=typeof Promise=="function"?Promise:void 0,mGt=typeof queueMicrotask=="function"?queueMicrotask:typeof xnt<"u"?function(m){return xnt.resolve(null).then(m).catch(yGt)}:bnt;function yGt(m){setTimeout(function(){throw m})}function A0(m){return m==="head"}function Tnt(m,v){var E=v,N=0;do{var q=E.nextSibling;if(m.removeChild(E),q&&q.nodeType===8)if(E=q.data,E==="/$"||E==="/&"){if(N===0){m.removeChild(q),ST(v);return}N--}else if(E==="$"||E==="$?"||E==="$~"||E==="$!"||E==="&")N++;else if(E==="html")r3(m.ownerDocument.documentElement);else if(E==="head"){E=m.ownerDocument.head,r3(E);for(var Y=E.firstChild;Y;){var ie=Y.nextSibling,be=Y.nodeName;Y[Ve]||be==="SCRIPT"||be==="STYLE"||be==="LINK"&&Y.rel.toLowerCase()==="stylesheet"||E.removeChild(Y),Y=ie}}else E==="body"&&r3(m.ownerDocument.body);E=q}while(E);ST(v)}function wnt(m,v){var E=m;m=0;do{var N=E.nextSibling;if(E.nodeType===1?v?(E._stashedDisplay=E.style.display,E.style.display="none"):(E.style.display=E._stashedDisplay||"",E.getAttribute("style")===""&&E.removeAttribute("style")):E.nodeType===3&&(v?(E._stashedText=E.nodeValue,E.nodeValue=""):E.nodeValue=E._stashedText||""),N&&N.nodeType===8)if(E=N.data,E==="/$"){if(m===0)break;m--}else E!=="$"&&E!=="$?"&&E!=="$~"&&E!=="$!"||m++;E=N}while(E)}function ioe(m){var v=m.firstChild;for(v&&v.nodeType===10&&(v=v.nextSibling);v;){var E=v;switch(v=v.nextSibling,E.nodeName){case"HTML":case"HEAD":case"BODY":ioe(E),Et(E);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(E.rel.toLowerCase()==="stylesheet")continue}m.removeChild(E)}}function vGt(m,v,E,N){for(;m.nodeType===1;){var q=E;if(m.nodeName.toLowerCase()!==v.toLowerCase()){if(!N&&(m.nodeName!=="INPUT"||m.type!=="hidden"))break}else if(N){if(!m[Ve])switch(v){case"meta":if(!m.hasAttribute("itemprop"))break;return m;case"link":if(Y=m.getAttribute("rel"),Y==="stylesheet"&&m.hasAttribute("data-precedence"))break;if(Y!==q.rel||m.getAttribute("href")!==(q.href==null||q.href===""?null:q.href)||m.getAttribute("crossorigin")!==(q.crossOrigin==null?null:q.crossOrigin)||m.getAttribute("title")!==(q.title==null?null:q.title))break;return m;case"style":if(m.hasAttribute("data-precedence"))break;return m;case"script":if(Y=m.getAttribute("src"),(Y!==(q.src==null?null:q.src)||m.getAttribute("type")!==(q.type==null?null:q.type)||m.getAttribute("crossorigin")!==(q.crossOrigin==null?null:q.crossOrigin))&&Y&&m.hasAttribute("async")&&!m.hasAttribute("itemprop"))break;return m;default:return m}}else if(v==="input"&&m.type==="hidden"){var Y=q.name==null?null:""+q.name;if(q.type==="hidden"&&m.getAttribute("name")===Y)return m}else return m;if(m=Ec(m.nextSibling),m===null)break}return null}function bGt(m,v,E){if(v==="")return null;for(;m.nodeType!==3;)if((m.nodeType!==1||m.nodeName!=="INPUT"||m.type!=="hidden")&&!E||(m=Ec(m.nextSibling),m===null))return null;return m}function Ent(m,v){for(;m.nodeType!==8;)if((m.nodeType!==1||m.nodeName!=="INPUT"||m.type!=="hidden")&&!v||(m=Ec(m.nextSibling),m===null))return null;return m}function noe(m){return m.data==="$?"||m.data==="$~"}function aoe(m){return m.data==="$!"||m.data==="$?"&&m.ownerDocument.readyState!=="loading"}function xGt(m,v){var E=m.ownerDocument;if(m.data==="$~")m._reactRetry=v;else if(m.data!=="$?"||E.readyState!=="loading")v();else{var N=function(){v(),E.removeEventListener("DOMContentLoaded",N)};E.addEventListener("DOMContentLoaded",N),m._reactRetry=N}}function Ec(m){for(;m!=null;m=m.nextSibling){var v=m.nodeType;if(v===1||v===3)break;if(v===8){if(v=m.data,v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"||v==="F!"||v==="F")break;if(v==="/$"||v==="/&")return null}}return m}var soe=null;function knt(m){m=m.nextSibling;for(var v=0;m;){if(m.nodeType===8){var E=m.data;if(E==="/$"||E==="/&"){if(v===0)return Ec(m.nextSibling);v--}else E!=="$"&&E!=="$!"&&E!=="$?"&&E!=="$~"&&E!=="&"||v++}m=m.nextSibling}return null}function Cnt(m){m=m.previousSibling;for(var v=0;m;){if(m.nodeType===8){var E=m.data;if(E==="$"||E==="$!"||E==="$?"||E==="$~"||E==="&"){if(v===0)return m;v--}else E!=="/$"&&E!=="/&"||v++}m=m.previousSibling}return null}function Snt(m,v,E){switch(v=jM(E),m){case"html":if(m=v.documentElement,!m)throw Error(n(452));return m;case"head":if(m=v.head,!m)throw Error(n(453));return m;case"body":if(m=v.body,!m)throw Error(n(454));return m;default:throw Error(n(451))}}function r3(m){for(var v=m.attributes;v.length;)m.removeAttributeNode(v[0]);Et(m)}var kc=new Map,_nt=new Set;function XM(m){return typeof m.getRootNode=="function"?m.getRootNode():m.nodeType===9?m:m.ownerDocument}var sp=$.d;$.d={f:TGt,r:wGt,D:EGt,C:kGt,L:CGt,m:SGt,X:AGt,S:_Gt,M:LGt};function TGt(){var m=sp.f(),v=zM();return m||v}function wGt(m){var v=br(m);v!==null&&v.tag===5&&v.type==="form"?Wrt(v):sp.r(m)}var ET=typeof document>"u"?null:document;function Ant(m,v,E){var N=ET;if(N&&typeof v=="string"&&v){var q=Aa(v);q='link[rel="'+m+'"][href="'+q+'"]',typeof E=="string"&&(q+='[crossorigin="'+E+'"]'),_nt.has(q)||(_nt.add(q),m={rel:m,crossOrigin:E,href:v},N.querySelector(q)===null&&(v=N.createElement("link"),As(v,"link",m),Yr(v),N.head.appendChild(v)))}}function EGt(m){sp.D(m),Ant("dns-prefetch",m,null)}function kGt(m,v){sp.C(m,v),Ant("preconnect",m,v)}function CGt(m,v,E){sp.L(m,v,E);var N=ET;if(N&&m&&v){var q='link[rel="preload"][as="'+Aa(v)+'"]';v==="image"&&E&&E.imageSrcSet?(q+='[imagesrcset="'+Aa(E.imageSrcSet)+'"]',typeof E.imageSizes=="string"&&(q+='[imagesizes="'+Aa(E.imageSizes)+'"]')):q+='[href="'+Aa(m)+'"]';var Y=q;switch(v){case"style":Y=kT(m);break;case"script":Y=CT(m)}kc.has(Y)||(m=f({rel:"preload",href:v==="image"&&E&&E.imageSrcSet?void 0:m,as:v},E),kc.set(Y,m),N.querySelector(q)!==null||v==="style"&&N.querySelector(i3(Y))||v==="script"&&N.querySelector(n3(Y))||(v=N.createElement("link"),As(v,"link",m),Yr(v),N.head.appendChild(v)))}}function SGt(m,v){sp.m(m,v);var E=ET;if(E&&m){var N=v&&typeof v.as=="string"?v.as:"script",q='link[rel="modulepreload"][as="'+Aa(N)+'"][href="'+Aa(m)+'"]',Y=q;switch(N){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":Y=CT(m)}if(!kc.has(Y)&&(m=f({rel:"modulepreload",href:m},v),kc.set(Y,m),E.querySelector(q)===null)){switch(N){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(E.querySelector(n3(Y)))return}N=E.createElement("link"),As(N,"link",m),Yr(N),E.head.appendChild(N)}}}function _Gt(m,v,E){sp.S(m,v,E);var N=ET;if(N&&m){var q=Si(N).hoistableStyles,Y=kT(m);v=v||"default";var ie=q.get(Y);if(!ie){var be={loading:0,preload:null};if(ie=N.querySelector(i3(Y)))be.loading=5;else{m=f({rel:"stylesheet",href:m,"data-precedence":v},E),(E=kc.get(Y))&&ooe(m,E);var Ke=ie=N.createElement("link");Yr(Ke),As(Ke,"link",m),Ke._p=new Promise(function(vt,Lt){Ke.onload=vt,Ke.onerror=Lt}),Ke.addEventListener("load",function(){be.loading|=1}),Ke.addEventListener("error",function(){be.loading|=2}),be.loading|=4,KM(ie,v,N)}ie={type:"stylesheet",instance:ie,count:1,state:be},q.set(Y,ie)}}}function AGt(m,v){sp.X(m,v);var E=ET;if(E&&m){var N=Si(E).hoistableScripts,q=CT(m),Y=N.get(q);Y||(Y=E.querySelector(n3(q)),Y||(m=f({src:m,async:!0},v),(v=kc.get(q))&&loe(m,v),Y=E.createElement("script"),Yr(Y),As(Y,"link",m),E.head.appendChild(Y)),Y={type:"script",instance:Y,count:1,state:null},N.set(q,Y))}}function LGt(m,v){sp.M(m,v);var E=ET;if(E&&m){var N=Si(E).hoistableScripts,q=CT(m),Y=N.get(q);Y||(Y=E.querySelector(n3(q)),Y||(m=f({src:m,async:!0,type:"module"},v),(v=kc.get(q))&&loe(m,v),Y=E.createElement("script"),Yr(Y),As(Y,"link",m),E.head.appendChild(Y)),Y={type:"script",instance:Y,count:1,state:null},N.set(q,Y))}}function Lnt(m,v,E,N){var q=(q=ee.current)?XM(q):null;if(!q)throw Error(n(446));switch(m){case"meta":case"title":return null;case"style":return typeof E.precedence=="string"&&typeof E.href=="string"?(v=kT(E.href),E=Si(q).hoistableStyles,N=E.get(v),N||(N={type:"style",instance:null,count:0,state:null},E.set(v,N)),N):{type:"void",instance:null,count:0,state:null};case"link":if(E.rel==="stylesheet"&&typeof E.href=="string"&&typeof E.precedence=="string"){m=kT(E.href);var Y=Si(q).hoistableStyles,ie=Y.get(m);if(ie||(q=q.ownerDocument||q,ie={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},Y.set(m,ie),(Y=q.querySelector(i3(m)))&&!Y._p&&(ie.instance=Y,ie.state.loading=5),kc.has(m)||(E={rel:"preload",as:"style",href:E.href,crossOrigin:E.crossOrigin,integrity:E.integrity,media:E.media,hrefLang:E.hrefLang,referrerPolicy:E.referrerPolicy},kc.set(m,E),Y||RGt(q,m,E,ie.state))),v&&N===null)throw Error(n(528,""));return ie}if(v&&N!==null)throw Error(n(529,""));return null;case"script":return v=E.async,E=E.src,typeof E=="string"&&v&&typeof v!="function"&&typeof v!="symbol"?(v=CT(E),E=Si(q).hoistableScripts,N=E.get(v),N||(N={type:"script",instance:null,count:0,state:null},E.set(v,N)),N):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,m))}}function kT(m){return'href="'+Aa(m)+'"'}function i3(m){return'link[rel="stylesheet"]['+m+"]"}function Rnt(m){return f({},m,{"data-precedence":m.precedence,precedence:null})}function RGt(m,v,E,N){m.querySelector('link[rel="preload"][as="style"]['+v+"]")?N.loading=1:(v=m.createElement("link"),N.preload=v,v.addEventListener("load",function(){return N.loading|=1}),v.addEventListener("error",function(){return N.loading|=2}),As(v,"link",E),Yr(v),m.head.appendChild(v))}function CT(m){return'[src="'+Aa(m)+'"]'}function n3(m){return"script[async]"+m}function Nnt(m,v,E){if(v.count++,v.instance===null)switch(v.type){case"style":var N=m.querySelector('style[data-href~="'+Aa(E.href)+'"]');if(N)return v.instance=N,Yr(N),N;var q=f({},E,{"data-href":E.href,"data-precedence":E.precedence,href:null,precedence:null});return N=(m.ownerDocument||m).createElement("style"),Yr(N),As(N,"style",q),KM(N,E.precedence,m),v.instance=N;case"stylesheet":q=kT(E.href);var Y=m.querySelector(i3(q));if(Y)return v.state.loading|=4,v.instance=Y,Yr(Y),Y;N=Rnt(E),(q=kc.get(q))&&ooe(N,q),Y=(m.ownerDocument||m).createElement("link"),Yr(Y);var ie=Y;return ie._p=new Promise(function(be,Ke){ie.onload=be,ie.onerror=Ke}),As(Y,"link",N),v.state.loading|=4,KM(Y,E.precedence,m),v.instance=Y;case"script":return Y=CT(E.src),(q=m.querySelector(n3(Y)))?(v.instance=q,Yr(q),q):(N=E,(q=kc.get(Y))&&(N=f({},E),loe(N,q)),m=m.ownerDocument||m,q=m.createElement("script"),Yr(q),As(q,"link",N),m.head.appendChild(q),v.instance=q);case"void":return null;default:throw Error(n(443,v.type))}else v.type==="stylesheet"&&(v.state.loading&4)===0&&(N=v.instance,v.state.loading|=4,KM(N,E.precedence,m));return v.instance}function KM(m,v,E){for(var N=E.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),q=N.length?N[N.length-1]:null,Y=q,ie=0;ie<N.length;ie++){var be=N[ie];if(be.dataset.precedence===v)Y=be;else if(Y!==q)break}Y?Y.parentNode.insertBefore(m,Y.nextSibling):(v=E.nodeType===9?E.head:E,v.insertBefore(m,v.firstChild))}function ooe(m,v){m.crossOrigin??=v.crossOrigin,m.referrerPolicy??=v.referrerPolicy,m.title??=v.title}function loe(m,v){m.crossOrigin??=v.crossOrigin,m.referrerPolicy??=v.referrerPolicy,m.integrity??=v.integrity}var QM=null;function Dnt(m,v,E){if(QM===null){var N=new Map,q=QM=new Map;q.set(E,N)}else q=QM,N=q.get(E),N||(N=new Map,q.set(E,N));if(N.has(m))return N;for(N.set(m,null),E=E.getElementsByTagName(m),q=0;q<E.length;q++){var Y=E[q];if(!(Y[Ve]||Y[at]||m==="link"&&Y.getAttribute("rel")==="stylesheet")&&Y.namespaceURI!=="http://www.w3.org/2000/svg"){var ie=Y.getAttribute(v)||"";ie=m+ie;var be=N.get(ie);be?be.push(Y):N.set(ie,[Y])}}return N}function Int(m,v,E){m=m.ownerDocument||m,m.head.insertBefore(E,v==="title"?m.querySelector("head > title"):null)}function NGt(m,v,E){if(E===1||v.itemProp!=null)return!1;switch(m){case"meta":case"title":return!0;case"style":if(typeof v.precedence!="string"||typeof v.href!="string"||v.href==="")break;return!0;case"link":if(typeof v.rel!="string"||typeof v.href!="string"||v.href===""||v.onLoad||v.onError)break;return v.rel==="stylesheet"?(m=v.disabled,typeof v.precedence=="string"&&m==null):!0;case"script":if(v.async&&typeof v.async!="function"&&typeof v.async!="symbol"&&!v.onLoad&&!v.onError&&v.src&&typeof v.src=="string")return!0}return!1}function Mnt(m){return!(m.type==="stylesheet"&&(m.state.loading&3)===0)}function DGt(m,v,E,N){if(E.type==="stylesheet"&&(typeof N.media!="string"||matchMedia(N.media).matches!==!1)&&(E.state.loading&4)===0){if(E.instance===null){var q=kT(N.href),Y=v.querySelector(i3(q));if(Y){v=Y._p,v!==null&&typeof v=="object"&&typeof v.then=="function"&&(m.count++,m=ZM.bind(m),v.then(m,m)),E.state.loading|=4,E.instance=Y,Yr(Y);return}Y=v.ownerDocument||v,N=Rnt(N),(q=kc.get(q))&&ooe(N,q),Y=Y.createElement("link"),Yr(Y);var ie=Y;ie._p=new Promise(function(be,Ke){ie.onload=be,ie.onerror=Ke}),As(Y,"link",N),E.instance=Y}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(E,v),(v=E.state.preload)&&(E.state.loading&3)===0&&(m.count++,E=ZM.bind(m),v.addEventListener("load",E),v.addEventListener("error",E))}}var coe=0;function IGt(m,v){return m.stylesheets&&m.count===0&&eO(m,m.stylesheets),0<m.count||0<m.imgCount?function(E){var N=setTimeout(function(){if(m.stylesheets&&eO(m,m.stylesheets),m.unsuspend){var Y=m.unsuspend;m.unsuspend=null,Y()}},6e4+v);0<m.imgBytes&&coe===0&&(coe=62500*fGt());var q=setTimeout(function(){if(m.waitingForImages=!1,m.count===0&&(m.stylesheets&&eO(m,m.stylesheets),m.unsuspend)){var Y=m.unsuspend;m.unsuspend=null,Y()}},(m.imgBytes>coe?50:800)+v);return m.unsuspend=E,function(){m.unsuspend=null,clearTimeout(N),clearTimeout(q)}}:null}function ZM(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eO(this,this.stylesheets);else if(this.unsuspend){var m=this.unsuspend;this.unsuspend=null,m()}}}var JM=null;function eO(m,v){m.stylesheets=null,m.unsuspend!==null&&(m.count++,JM=new Map,v.forEach(MGt,m),JM=null,ZM.call(m))}function MGt(m,v){if(!(v.state.loading&4)){var E=JM.get(m);if(E)var N=E.get(null);else{E=new Map,JM.set(m,E);for(var q=m.querySelectorAll("link[data-precedence],style[data-precedence]"),Y=0;Y<q.length;Y++){var ie=q[Y];(ie.nodeName==="LINK"||ie.getAttribute("media")!=="not all")&&(E.set(ie.dataset.precedence,ie),N=ie)}N&&E.set(null,N)}q=v.instance,ie=q.getAttribute("data-precedence"),Y=E.get(ie)||N,Y===N&&E.set(null,q),E.set(ie,q),this.count++,N=ZM.bind(this),q.addEventListener("load",N),q.addEventListener("error",N),Y?Y.parentNode.insertBefore(q,Y.nextSibling):(m=m.nodeType===9?m.head:m,m.insertBefore(q,m.firstChild)),v.state.loading|=4}}var a3={$$typeof:C,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function OGt(m,v,E,N,q,Y,ie,be,Ke){this.tag=1,this.containerInfo=m,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mt(0),this.hiddenUpdates=Mt(null),this.identifierPrefix=N,this.onUncaughtError=q,this.onCaughtError=Y,this.onRecoverableError=ie,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ke,this.incompleteTransitions=new Map}function PGt(m,v,E,N,q,Y,ie,be,Ke,vt,Lt,Bt){return m=new OGt(m,v,E,ie,Ke,vt,Lt,Bt,be),v=1,Y===!0&&(v|=24),Y=Ol(3,null,null,v),m.current=Y,Y.stateNode=m,v=Vae(),v.refCount++,m.pooledCache=v,v.refCount++,Y.memoizedState={element:N,isDehydrated:E,cache:v},Yae(Y),m}function BGt(m){return m?(m=rT,m):rT}function Ont(m,v,E,N,q,Y){q=BGt(q),N.context===null?N.context=q:N.pendingContext=q,N=Gy(v),N.payload={element:E},Y=Y===void 0?null:Y,Y!==null&&(N.callback=Y),E=Wy(m,N,v),E!==null&&(cl(E,m,v),B5(E,m,v))}function Pnt(m,v){if(m=m.memoizedState,m!==null&&m.dehydrated!==null){var E=m.retryLane;m.retryLane=E!==0&&E<v?E:v}}function uoe(m,v){Pnt(m,v),(m=m.alternate)&&Pnt(m,v)}function Bnt(m){if(m.tag===13||m.tag===31){var v=Py(m,67108864);v!==null&&cl(v,m,67108864),uoe(m,67108864)}}function Fnt(m){if(m.tag===13||m.tag===31){var v=wc();v=Ft(v);var E=Py(m,v);E!==null&&cl(E,m,v),uoe(m,v)}}var tO=!0;function FGt(m,v,E,N){var q=D.T;D.T=null;var Y=$.p;try{$.p=2,hoe(m,v,E,N)}finally{$.p=Y,D.T=q}}function $Gt(m,v,E,N){var q=D.T;D.T=null;var Y=$.p;try{$.p=8,hoe(m,v,E,N)}finally{$.p=Y,D.T=q}}function hoe(m,v,E,N){if(tO){var q=doe(N);if(q===null)Qse(m,v,N,rO,E),znt(m,N);else if(UGt(q,m,v,E,N))N.stopPropagation();else if(znt(m,N),v&4&&-1<zGt.indexOf(m)){for(;q!==null;){var Y=br(q);if(Y!==null)switch(Y.tag){case 3:if(Y=Y.stateNode,Y.current.memoizedState.isDehydrated){var ie=ve(Y.pendingLanes);if(ie!==0){var be=Y;for(be.pendingLanes|=2,be.entangledLanes|=2;ie;){var Ke=1<<31-Ie(ie);be.entanglements[1]|=Ke,ie&=~Ke}ap(Y),(qi&6)===0&&(FM=Ze()+500,J5(0,!1))}}break;case 31:case 13:be=Py(Y,2),be!==null&&cl(be,Y,2),zM(),uoe(Y,2)}if(Y=doe(N),Y===null&&Qse(m,v,N,rO,E),Y===q)break;q=Y}q!==null&&N.stopPropagation()}else Qse(m,v,N,null,E)}}function doe(m){return m=io(m),foe(m)}var rO=null;function foe(m){if(rO=null,m=zt(m),m!==null){var v=s(m);if(v===null)m=null;else{var E=v.tag;if(E===13){if(m=o(v),m!==null)return m;m=null}else if(E===31){if(m=l(v),m!==null)return m;m=null}else if(E===3){if(v.stateNode.current.memoizedState.isDehydrated)return v.tag===3?v.stateNode.containerInfo:null;m=null}else v!==m&&(m=null)}}return rO=m,null}function $nt(m){switch(m){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Re()){case $e:return 2;case he:return 8;case Je:case oe:return 32;case ke:return 268435456;default:return 32}default:return 32}}var poe=!1,L0=null,R0=null,N0=null,s3=new Map,o3=new Map,D0=[],zGt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function znt(m,v){switch(m){case"focusin":case"focusout":L0=null;break;case"dragenter":case"dragleave":R0=null;break;case"mouseover":case"mouseout":N0=null;break;case"pointerover":case"pointerout":s3.delete(v.pointerId);break;case"gotpointercapture":case"lostpointercapture":o3.delete(v.pointerId)}}function l3(m,v,E,N,q,Y){return m===null||m.nativeEvent!==Y?(m={blockedOn:v,domEventName:E,eventSystemFlags:N,nativeEvent:Y,targetContainers:[q]},v!==null&&(v=br(v),v!==null&&Bnt(v)),m):(m.eventSystemFlags|=N,v=m.targetContainers,q!==null&&v.indexOf(q)===-1&&v.push(q),m)}function UGt(m,v,E,N,q){switch(v){case"focusin":return L0=l3(L0,m,v,E,N,q),!0;case"dragenter":return R0=l3(R0,m,v,E,N,q),!0;case"mouseover":return N0=l3(N0,m,v,E,N,q),!0;case"pointerover":var Y=q.pointerId;return s3.set(Y,l3(s3.get(Y)||null,m,v,E,N,q)),!0;case"gotpointercapture":return Y=q.pointerId,o3.set(Y,l3(o3.get(Y)||null,m,v,E,N,q)),!0}return!1}function Unt(m){var v=zt(m.target);if(v!==null){var E=s(v);if(E!==null){if(v=E.tag,v===13){if(v=o(E),v!==null){m.blockedOn=v,Le(m.priority,function(){Fnt(E)});return}}else if(v===31){if(v=l(E),v!==null){m.blockedOn=v,Le(m.priority,function(){Fnt(E)});return}}else if(v===3&&E.stateNode.current.memoizedState.isDehydrated){m.blockedOn=E.tag===3?E.stateNode.containerInfo:null;return}}}m.blockedOn=null}function iO(m){if(m.blockedOn!==null)return!1;for(var v=m.targetContainers;0<v.length;){var E=doe(m.nativeEvent);if(E===null){E=m.nativeEvent;var N=new E.constructor(E.type,E);Dy=N,E.target.dispatchEvent(N),Dy=null}else return v=br(E),v!==null&&Bnt(v),m.blockedOn=E,!1;v.shift()}return!0}function Hnt(m,v,E){iO(m)&&E.delete(v)}function HGt(){poe=!1,L0!==null&&iO(L0)&&(L0=null),R0!==null&&iO(R0)&&(R0=null),N0!==null&&iO(N0)&&(N0=null),s3.forEach(Hnt),o3.forEach(Hnt)}function nO(m,v){m.blockedOn===v&&(m.blockedOn=null,poe||(poe=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,HGt)))}var aO=null;function Vnt(m){aO!==m&&(aO=m,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){aO===m&&(aO=null);for(var v=0;v<m.length;v+=3){var E=m[v],N=m[v+1],q=m[v+2];if(typeof N!="function"){if(foe(N||E)===null)continue;break}var Y=br(E);Y!==null&&(m.splice(v,3),v-=3,fse(Y,{pending:!0,data:q,method:E.method,action:N},N,q))}}))}function ST(m){function v(Ke){return nO(Ke,m)}L0!==null&&nO(L0,m),R0!==null&&nO(R0,m),N0!==null&&nO(N0,m),s3.forEach(v),o3.forEach(v);for(var E=0;E<D0.length;E++){var N=D0[E];N.blockedOn===m&&(N.blockedOn=null)}for(;0<D0.length&&(E=D0[0],E.blockedOn===null);)Unt(E),E.blockedOn===null&&D0.shift();if(E=(m.ownerDocument||m).$$reactFormReplay,E!=null)for(N=0;N<E.length;N+=3){var q=E[N],Y=E[N+1],ie=q[Rt]||null;if(typeof Y=="function")ie||Vnt(E);else if(ie){var be=null;if(Y&&Y.hasAttribute("formAction")){if(q=Y,ie=Y[Rt]||null)be=ie.formAction;else if(foe(q)!==null)continue}else be=ie.action;typeof be=="function"?E[N+1]=be:(E.splice(N,3),N-=3),Vnt(E)}}}function VGt(){function m(Y){Y.canIntercept&&Y.info==="react-transition"&&Y.intercept({handler:function(){return new Promise(function(ie){return q=ie})},focusReset:"manual",scroll:"manual"})}function v(){q!==null&&(q(),q=null),N||setTimeout(E,20)}function E(){if(!N&&!navigation.transition){var Y=navigation.currentEntry;Y&&Y.url!=null&&navigation.navigate(Y.url,{state:Y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var N=!1,q=null;return navigation.addEventListener("navigate",m),navigation.addEventListener("navigatesuccess",v),navigation.addEventListener("navigateerror",v),setTimeout(E,100),function(){N=!0,navigation.removeEventListener("navigate",m),navigation.removeEventListener("navigatesuccess",v),navigation.removeEventListener("navigateerror",v),q!==null&&(q(),q=null)}}}function goe(m){this._internalRoot=m}moe.prototype.render=goe.prototype.render=function(m){var v=this._internalRoot;if(v===null)throw Error(n(409));var E=v.current;Ont(E,wc(),m,v,null,null)},moe.prototype.unmount=goe.prototype.unmount=function(){var m=this._internalRoot;if(m!==null){this._internalRoot=null;var v=m.containerInfo;Ont(m.current,2,null,m,null,null),zM(),v[pr]=null}};function moe(m){this._internalRoot=m}moe.prototype.unstable_scheduleHydration=function(m){if(m){var v=St();m={blockedOn:null,target:m,priority:v};for(var E=0;E<D0.length&&v!==0&&v<D0[E].priority;E++);D0.splice(E,0,m),E===0&&Unt(m)}};var qnt=r.version;if(qnt!=="19.2.5")throw Error(n(527,qnt,"19.2.5"));$.findDOMNode=function(m){var v=m._reactInternals;if(v===void 0)throw typeof m.render=="function"?Error(n(188)):(m=Object.keys(m).join(","),Error(n(268,m)));return m=h(v),m=m!==null?d(m):null,m=m===null?null:m.stateNode,m};var qGt={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sO=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sO.isDisabled&&sO.supportsFiber)try{fe=sO.inject(qGt),Te=sO}catch{}}e.createRoot=function(m,v){if(!a(m))throw Error(n(299));var E=!1,N="",q=$qt,Y=zqt,ie=Uqt;return v!=null&&(v.unstable_strictMode===!0&&(E=!0),v.identifierPrefix!==void 0&&(N=v.identifierPrefix),v.onUncaughtError!==void 0&&(q=v.onUncaughtError),v.onCaughtError!==void 0&&(Y=v.onCaughtError),v.onRecoverableError!==void 0&&(ie=v.onRecoverableError)),v=PGt(m,1,!1,null,null,E,N,null,q,Y,ie,VGt),m[pr]=v.current,hnt(m),new goe(v)}})),mat=lr(((e,t)=>{function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}r(),t.exports=gat()})),Ne=Wa(Zy(),1),yat=mat(),Jy=["Ask me anything…","How can I help you today?","Try: What can you do?"],vat="Need help?",koe="Assistant",bat="Mana",xat="Start chat",Tat="Start a new conversation",wat="Ask anything…",d3="Powered by UserEQ",Eat="No conversation started",kat="Start a new conversation to get started.",f3={avatarOrbColor1:"#2563eb",avatarOrbColor2:"#60a5fa",actionText:"Need help?"};function Coe(e){return{avatarOrbColor1:uO(e?.avatarOrbColor1)??f3.avatarOrbColor1,avatarOrbColor2:uO(e?.avatarOrbColor2)??f3.avatarOrbColor2,actionText:uO(e?.actionText)??f3.actionText}}function ev(e){const t=Coe(e);return{background:`linear-gradient(135deg, ${t.avatarOrbColor1}, ${t.avatarOrbColor2})`}}function cO(e){const t=Coe(e);return{background:`linear-gradient(135deg, ${t.avatarOrbColor1}, ${t.avatarOrbColor2})`,boxShadow:`0 10px 24px color-mix(in srgb, ${t.avatarOrbColor1} 22%, transparent)`}}function uO(e){const t=e?.trim();return t||null}var Cat="default",Sat=f3;function _at(e){if(!e)return"none";switch(e.triggerRuleType){case"time_delay":return`time_delay:${e.timeDelay}`;case"scroll_to_bottom":return`scroll_to_bottom:${String(e.scrollToBottom)}`;case"element_clicked":return`element_clicked:${e.elementClicked}`;case"element_displayed":return`element_displayed:${e.elementDisplayed}`;default:return"unknown"}}function Aat(e){switch(e){case"facebook_messenger":case"facebook-messenger":return"facebook_messenger";case"default":return"default";default:return Cat}}function Lat(e){switch(e){case"chatbar":case"box":case"default":return e;default:return"chatbar"}}function Rat(e){switch(e){case"top-left":case"top-center":case"top-right":case"bottom-left":case"bottom-center":case"bottom-right":return e;default:return"bottom-right"}}function Soe(e){const[t,r]=e.split("-");return{horizontal:r,vertical:t}}function _oe(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=_oe(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function p3(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=_oe(e))&&(i&&(i+=" "),i+=t);return i}var hO=V((()=>{})),Aoe,Loe,dO,AT,fO,Roe,Noe,pO,Doe,Ioe,Moe,g3,Ooe,Poe,Boe,Foe,gO,$oe,zoe,m3,mO,Uoe,yO,Hoe,Voe,qoe,Goe,Woe,Yoe,vO,joe,Xoe,da,bO,xO,Koe,Qoe,Zoe,Joe,ele,tle,fd,ii,pd,y3,Ou,TO,rle,v3,ile,nle,ale,sle,vr,lp,wO,ole,lle,EO,cle,LT,Tr,tv,ule,kO,hle,dle,RT,fle,gd,cp,CO,SO,_O,AO,ple,LO,RO,NO,gle,b3,mle=V((()=>{Aoe=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},Loe=(e,t)=>({classGroupId:e,validator:t}),dO=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),AT="-",fO=[],Roe="arbitrary..",Noe=e=>{const t=Ioe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Doe(s);const o=s.split(AT);return pO(o,o[0]===""&&o.length>1?1:0,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const l=i[s],u=r[s];return l?u?Aoe(u,l):l:u||fO}return r[s]||fO}}},pO=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],n=r.nextPart.get(i);if(n){const l=pO(e,t+1,n);if(l)return l}const a=r.validators;if(a===null)return;const s=t===0?e.join(AT):e.slice(t).join(AT),o=a.length;for(let l=0;l<o;l++){const u=a[l];if(u.validator(s))return u.classGroupId}},Doe=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?Roe+i:void 0})(),Ioe=e=>{const{theme:t,classGroups:r}=e;return Moe(r,t)},Moe=(e,t)=>{const r=dO();for(const i in e){const n=e[i];g3(n,r,i,t)}return r},g3=(e,t,r,i)=>{const n=e.length;for(let a=0;a<n;a++){const s=e[a];Ooe(s,t,r,i)}},Ooe=(e,t,r,i)=>{if(typeof e=="string"){Poe(e,t,r);return}if(typeof e=="function"){Boe(e,t,r,i);return}Foe(e,t,r,i)},Poe=(e,t,r)=>{const i=e===""?t:gO(t,e);i.classGroupId=r},Boe=(e,t,r,i)=>{if($oe(e)){g3(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Loe(r,e))},Foe=(e,t,r,i)=>{const n=Object.entries(e),a=n.length;for(let s=0;s<a;s++){const[o,l]=n[s];g3(l,gO(t,o),r,i)}},gO=(e,t)=>{let r=e;const i=t.split(AT),n=i.length;for(let a=0;a<n;a++){const s=i[a];let o=r.nextPart.get(s);o||(o=dO(),r.nextPart.set(s,o)),r=o}return r},$oe=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,zoe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const n=(a,s)=>{r[a]=s,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(a){let s=r[a];if(s!==void 0)return s;if((s=i[a])!==void 0)return n(a,s),s},set(a,s){a in r?r[a]=s:n(a,s)}}},m3="!",mO=":",Uoe=[],yO=(e,t,r,i,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:n}),Hoe=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=n=>{const a=[];let s=0,o=0,l=0,u;const h=n.length;for(let y=0;y<h;y++){const b=n[y];if(s===0&&o===0){if(b===mO){a.push(n.slice(l,y)),l=y+1;continue}if(b==="/"){u=y;continue}}b==="["?s++:b==="]"?s--:b==="("?o++:b===")"&&o--}const d=a.length===0?n:n.slice(l);let f=d,p=!1;d.endsWith(m3)?(f=d.slice(0,-1),p=!0):d.startsWith(m3)&&(f=d.slice(1),p=!0);const g=u&&u>l?u-l:void 0;return yO(a,p,f,g)};if(t){const n=t+mO,a=i;i=s=>s.startsWith(n)?a(s.slice(n.length)):yO(Uoe,!1,s,void 0,!0)}if(r){const n=i;i=a=>r({className:a,parseClassName:n})}return i},Voe=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let n=[];for(let a=0;a<r.length;a++){const s=r[a],o=s[0]==="[",l=t.has(s);o||l?(n.length>0&&(n.sort(),i.push(...n),n=[]),i.push(s)):n.push(s)}return n.length>0&&(n.sort(),i.push(...n)),i}},qoe=e=>({cache:zoe(e.cacheSize),parseClassName:Hoe(e),sortModifiers:Voe(e),...Noe(e)}),Goe=/\s+/,Woe=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:n,sortModifiers:a}=t,s=[],o=e.trim().split(Goe);let l="";for(let u=o.length-1;u>=0;u-=1){const h=o[u],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=r(h);if(d){l=h+(l.length>0?" "+l:l);continue}let b=!!y,T=i(b?g.substring(0,y):g);if(!T){if(!b){l=h+(l.length>0?" "+l:l);continue}if(T=i(g),!T){l=h+(l.length>0?" "+l:l);continue}b=!1}const w=f.length===0?"":f.length===1?f[0]:a(f).join(":"),x=p?w+m3:w,C=x+T;if(s.indexOf(C)>-1)continue;s.push(C);const L=n(T,b);for(let _=0;_<L.length;++_){const S=L[_];s.push(x+S)}l=h+(l.length>0?" "+l:l)}return l},Yoe=(...e)=>{let t=0,r,i,n="";for(;t<e.length;)(r=e[t++])&&(i=vO(r))&&(n&&(n+=" "),n+=i);return n},vO=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=vO(e[i]))&&(r&&(r+=" "),r+=t);return r},joe=(e,...t)=>{let r,i,n,a;const s=l=>(r=qoe(t.reduce((u,h)=>h(u),e())),i=r.cache.get,n=r.cache.set,a=o,o(l)),o=l=>{const u=i(l);if(u)return u;const h=Woe(l,r);return n(l,h),h};return a=s,(...l)=>a(Yoe(...l))},Xoe=[],da=e=>{const t=r=>r[e]||Xoe;return t.isThemeGetter=!0,t},bO=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xO=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Koe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qoe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zoe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Joe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ele=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tle=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fd=e=>Koe.test(e),ii=e=>!!e&&!Number.isNaN(Number(e)),pd=e=>!!e&&Number.isInteger(Number(e)),y3=e=>e.endsWith("%")&&ii(e.slice(0,-1)),Ou=e=>Qoe.test(e),TO=()=>!0,rle=e=>Zoe.test(e)&&!Joe.test(e),v3=()=>!1,ile=e=>ele.test(e),nle=e=>tle.test(e),ale=e=>!vr(e)&&!Tr(e),sle=e=>gd(e,_O,v3),vr=e=>bO.test(e),lp=e=>gd(e,AO,rle),wO=e=>gd(e,ple,ii),ole=e=>gd(e,RO,TO),lle=e=>gd(e,LO,v3),EO=e=>gd(e,CO,v3),cle=e=>gd(e,SO,nle),LT=e=>gd(e,NO,ile),Tr=e=>xO.test(e),tv=e=>cp(e,AO),ule=e=>cp(e,LO),kO=e=>cp(e,CO),hle=e=>cp(e,_O),dle=e=>cp(e,SO),RT=e=>cp(e,NO,!0),fle=e=>cp(e,RO,!0),gd=(e,t,r)=>{const i=bO.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},cp=(e,t,r=!1)=>{const i=xO.exec(e);return i?i[1]?t(i[1]):r:!1},CO=e=>e==="position"||e==="percentage",SO=e=>e==="image"||e==="url",_O=e=>e==="length"||e==="size"||e==="bg-size",AO=e=>e==="length",ple=e=>e==="number",LO=e=>e==="family-name",RO=e=>e==="number"||e==="weight",NO=e=>e==="shadow",gle=()=>{const e=da("color"),t=da("font"),r=da("text"),i=da("font-weight"),n=da("tracking"),a=da("leading"),s=da("breakpoint"),o=da("container"),l=da("spacing"),u=da("radius"),h=da("shadow"),d=da("inset-shadow"),f=da("text-shadow"),p=da("drop-shadow"),g=da("blur"),y=da("perspective"),b=da("aspect"),T=da("ease"),w=da("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...C(),Tr,vr],_=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],A=()=>[Tr,vr,l],P=()=>[fd,"full","auto",...A()],O=()=>[pd,"none","subgrid",Tr,vr],M=()=>["auto",{span:["full",pd,Tr,vr]},pd,Tr,vr],U=()=>[pd,"auto",Tr,vr],R=()=>["auto","min","max","fr",Tr,vr],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...A()],D=()=>[fd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],$=()=>[fd,"screen","full","dvw","lvw","svw","min","max","fit",...A()],H=()=>[fd,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],z=()=>[e,Tr,vr],j=()=>[...C(),kO,EO,{position:[Tr,vr]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",hle,sle,{size:[Tr,vr]}],K=()=>[y3,tv,lp],Z=()=>["","none","full",u,Tr,vr],re=()=>["",ii,tv,lp],ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[ii,y3,kO,EO],le=()=>["","none",g,Tr,vr],ce=()=>["none",ii,Tr,vr],ue=()=>["none",ii,Tr,vr],we=()=>[ii,Tr,vr],Ee=()=>[fd,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ou],breakpoint:[Ou],color:[TO],container:[Ou],"drop-shadow":[Ou],ease:["in","out","in-out"],font:[ale],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ou],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ou],shadow:[Ou],spacing:["px",ii],text:[Ou],"text-shadow":[Ou],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fd,vr,Tr,b]}],container:["container"],columns:[{columns:[ii,vr,Tr,o]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[pd,"auto",Tr,vr]}],basis:[{basis:[fd,"full","auto",o,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ii,fd,"auto","initial","none",vr]}],grow:[{grow:["",ii,Tr,vr]}],shrink:[{shrink:["",ii,Tr,vr]}],order:[{order:[pd,"first","last","none",Tr,vr]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[o,"screen",...D()]}],"min-w":[{"min-w":[o,"screen","none",...D()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,tv,lp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,fle,ole]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",y3,vr]}],"font-family":[{font:[ule,lle,t]}],"font-features":[{"font-features":[vr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Tr,vr]}],"line-clamp":[{"line-clamp":[ii,"none",Tr,wO]}],leading:[{leading:[a,...A()]}],"list-image":[{"list-image":["none",Tr,vr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Tr,vr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[ii,"from-font","auto",Tr,lp]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[ii,"auto",Tr,vr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Tr,vr]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Tr,vr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pd,Tr,vr],radial:["",Tr,vr],conic:[pd,Tr,vr]},dle,cle]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ii,Tr,vr]}],"outline-w":[{outline:["",ii,tv,lp]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",h,RT,LT]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",d,RT,LT]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[ii,lp]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",f,RT,LT]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[ii,Tr,vr]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ii]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[Tr,vr]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ii]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Tr,vr]}],filter:[{filter:["","none",Tr,vr]}],blur:[{blur:le()}],brightness:[{brightness:[ii,Tr,vr]}],contrast:[{contrast:[ii,Tr,vr]}],"drop-shadow":[{"drop-shadow":["","none",p,RT,LT]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",ii,Tr,vr]}],"hue-rotate":[{"hue-rotate":[ii,Tr,vr]}],invert:[{invert:["",ii,Tr,vr]}],saturate:[{saturate:[ii,Tr,vr]}],sepia:[{sepia:["",ii,Tr,vr]}],"backdrop-filter":[{"backdrop-filter":["","none",Tr,vr]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[ii,Tr,vr]}],"backdrop-contrast":[{"backdrop-contrast":[ii,Tr,vr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ii,Tr,vr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ii,Tr,vr]}],"backdrop-invert":[{"backdrop-invert":["",ii,Tr,vr]}],"backdrop-opacity":[{"backdrop-opacity":[ii,Tr,vr]}],"backdrop-saturate":[{"backdrop-saturate":[ii,Tr,vr]}],"backdrop-sepia":[{"backdrop-sepia":["",ii,Tr,vr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Tr,vr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ii,"initial",Tr,vr]}],ease:[{ease:["linear","initial",T,Tr,vr]}],delay:[{delay:[ii,Tr,vr]}],animate:[{animate:["none",w,Tr,vr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Tr,vr]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Tr,vr,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Tr,vr]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Tr,vr]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[ii,tv,lp,wO]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},b3=joe(gle)}));hO(),mle();function qr(...e){return b3(p3(e))}var Nat=lr((e=>{var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(n,a,s){var o=null;if(s!==void 0&&(o=""+s),a.key!==void 0&&(o=""+a.key),"key"in a){s={};for(var l in a)l!=="key"&&(s[l]=a[l])}else s=a;return a=s.ref,{$$typeof:t,type:n,key:o,ref:a!==void 0?a:null,props:s}}e.Fragment=r,e.jsx=i,e.jsxs=i})),DO=lr(((e,t)=>{t.exports=Nat()})),Pe=DO(),IO=(0,Ne.createContext)({});function MO(e){const t=(0,Ne.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Dat=typeof window<"u",yle=Dat?Ne.useLayoutEffect:Ne.useEffect,x3=(0,Ne.createContext)(null);function OO(e,t){e.indexOf(t)===-1&&e.push(t)}function T3(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}var Pu=(e,t,r)=>r>t?t:r<e?e:r,w3=()=>{},rv=()=>{},up={},vle=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ble(e){return typeof e=="object"&&e!==null}var xle=e=>/^0[^.\s]+$/u.test(e);function Tle(e){let t;return()=>(t===void 0&&(t=e()),t)}var zl=e=>e,Iat=(e,t)=>r=>t(e(r)),NT=(...e)=>e.reduce(Iat),DT=(e,t,r)=>{const i=t-e;return i===0?1:(r-e)/i},PO=class{constructor(){this.subscriptions=[]}add(e){return OO(this.subscriptions,e),()=>T3(this.subscriptions,e)}notify(e,t,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,r);else for(let n=0;n<i;n++){const a=this.subscriptions[n];a&&a(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Io=e=>e*1e3,Ul=e=>e/1e3;function wle(e,t){return t?e*(1e3/t):0}var Ele=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Mat=1e-7,Oat=12;function Pat(e,t,r,i,n){let a,s,o=0;do s=t+(r-t)/2,a=Ele(s,i,n)-e,a>0?r=s:t=s;while(Math.abs(a)>Mat&&++o<Oat);return s}function IT(e,t,r,i){if(e===t&&r===i)return zl;const n=a=>Pat(a,0,1,e,r);return a=>a===0||a===1?a:Ele(n(a),t,i)}var kle=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cle=e=>t=>1-e(1-t),Sle=IT(.33,1.53,.69,.99),BO=Cle(Sle),_le=kle(BO),Ale=e=>e>=1?1:(e*=2)<1?.5*BO(e):.5*(2-Math.pow(2,-10*(e-1))),FO=e=>1-Math.sin(Math.acos(e)),Lle=Cle(FO),Rle=kle(FO),Bat=IT(.42,0,1,1),Fat=IT(0,0,.58,1),Nle=IT(.42,0,.58,1),$at=e=>Array.isArray(e)&&typeof e[0]!="number",Dle=e=>Array.isArray(e)&&typeof e[0]=="number",Ile={linear:zl,easeIn:Bat,easeInOut:Nle,easeOut:Fat,circIn:FO,circInOut:Rle,circOut:Lle,backIn:BO,backInOut:_le,backOut:Sle,anticipate:Ale},zat=e=>typeof e=="string",Mle=e=>{if(Dle(e)){rv(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,i,n]=e;return IT(t,r,i,n)}else if(zat(e))return rv(Ile[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ile[e];return e},E3=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Bu={value:null,addProjectionMetrics:null};function Uat(e,t){let r=new Set,i=new Set,n=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){s.has(d)&&(h.schedule(d),e()),l++,d(o)}const h={schedule:(d,f=!1,p=!1)=>{const g=p&&n?r:i;return f&&s.add(d),g.add(d),d},cancel:d=>{i.delete(d),s.delete(d)},process:d=>{if(o=d,n){a=!0;return}n=!0;const f=r;r=i,i=f,r.forEach(u),t&&Bu.value&&Bu.value.frameloop[t].push(l),l=0,r.clear(),n=!1,a&&(a=!1,h.process(d))}};return h}var Hat=40;function Ole(e,t){let r=!1,i=!0;const n={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,s=E3.reduce((x,C)=>(x[C]=Uat(a,t?C:void 0),x),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:f,render:p,postRender:g}=s,y=()=>{const x=up.useManualTiming,C=x?n.timestamp:performance.now();r=!1,x||(n.delta=i?1e3/60:Math.max(Math.min(C-n.timestamp,Hat),1)),n.timestamp=C,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),h.process(n),d.process(n),f.process(n),p.process(n),g.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(y))},b=()=>{r=!0,i=!0,n.isProcessing||e(y)};return{schedule:E3.reduce((x,C)=>{const L=s[C];return x[C]=(_,S=!1,A=!1)=>(r||b(),L.schedule(_,S,A)),x},{}),cancel:x=>{for(let C=0;C<E3.length;C++)s[E3[C]].cancel(x)},state:n,steps:s}}var{schedule:an,cancel:hp,state:ls,steps:$O}=Ole(typeof requestAnimationFrame<"u"?requestAnimationFrame:zl,!0),k3;function Vat(){k3=void 0}var no={now:()=>(k3===void 0&&no.set(ls.isProcessing||up.useManualTiming?ls.timestamp:performance.now()),k3),set:e=>{k3=e,queueMicrotask(Vat)}},M0={layout:0,mainThread:0,waapi:0},Ple=e=>t=>typeof t=="string"&&t.startsWith(e),Ble=Ple("--"),qat=Ple("var(--"),zO=e=>qat(e)?Gat.test(e.split("/*")[0].trim()):!1,Gat=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fle(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var iv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},MT={...iv,transform:e=>Pu(0,1,e)},C3={...iv,default:1},OT=e=>Math.round(e*1e5)/1e5,UO=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Wat(e){return e==null}var Yat=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,HO=(e,t)=>r=>!!(typeof r=="string"&&Yat.test(r)&&r.startsWith(e)||t&&!Wat(r)&&Object.prototype.hasOwnProperty.call(r,t)),$le=(e,t,r)=>i=>{if(typeof i!="string")return i;const[n,a,s,o]=i.match(UO);return{[e]:parseFloat(n),[t]:parseFloat(a),[r]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},jat=e=>Pu(0,255,e),VO={...iv,transform:e=>Math.round(jat(e))},O0={test:HO("rgb","red"),parse:$le("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+VO.transform(e)+", "+VO.transform(t)+", "+VO.transform(r)+", "+OT(MT.transform(i))+")"};function Xat(e){let t="",r="",i="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}var qO={test:HO("#"),parse:Xat,transform:O0.transform},PT=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),dp=PT("deg"),Fu=PT("%"),wr=PT("px"),Kat=PT("vh"),Qat=PT("vw"),zle={...Fu,parse:e=>Fu.parse(e)/100,transform:e=>Fu.transform(e*100)},nv={test:HO("hsl","hue"),parse:$le("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+Fu.transform(OT(t))+", "+Fu.transform(OT(r))+", "+OT(MT.transform(i))+")"},fa={test:e=>O0.test(e)||qO.test(e)||nv.test(e),parse:e=>O0.test(e)?O0.parse(e):nv.test(e)?nv.parse(e):qO.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?O0.transform(e):nv.transform(e),getAnimatableNone:e=>{const t=fa.parse(e);return t.alpha=0,fa.transform(t)}},Zat=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jat(e){return isNaN(e)&&typeof e=="string"&&(e.match(UO)?.length||0)+(e.match(Zat)?.length||0)>0}var Ule="number",Hle="color",est="var",tst="var(",Vle="${}",rst=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function av(e){const t=e.toString(),r=[],i={color:[],number:[],var:[]},n=[];let a=0;return{values:r,split:t.replace(rst,s=>(fa.test(s)?(i.color.push(a),n.push(Hle),r.push(fa.parse(s))):s.startsWith(tst)?(i.var.push(a),n.push(est),r.push(s)):(i.number.push(a),n.push(Ule),r.push(parseFloat(s))),++a,Vle)).split(Vle),indexes:i,types:n}}function ist(e){return av(e).values}function qle({split:e,types:t}){const r=e.length;return i=>{let n="";for(let a=0;a<r;a++)if(n+=e[a],i[a]!==void 0){const s=t[a];s===Ule?n+=OT(i[a]):s===Hle?n+=fa.transform(i[a]):n+=i[a]}return n}}function nst(e){return qle(av(e))}var ast=e=>typeof e=="number"?0:fa.test(e)?fa.getAnimatableNone(e):e,sst=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:ast(e);function ost(e){const t=av(e);return qle(t)(t.values.map((r,i)=>sst(r,t.split[i])))}var Cc={test:Jat,parse:ist,createTransformer:nst,getAnimatableNone:ost};function GO(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function lst({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,t/=100,r/=100;let n=0,a=0,s=0;if(!t)n=a=s=r;else{const o=r<.5?r*(1+t):r+t-r*t,l=2*r-o;n=GO(l,o,e+1/3),a=GO(l,o,e),s=GO(l,o,e-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:i}}function S3(e,t){return r=>r>0?t:e}var vn=(e,t,r)=>e+(t-e)*r,WO=(e,t,r)=>{const i=e*e,n=r*(t*t-i)+i;return n<0?0:Math.sqrt(n)},cst=[qO,O0,nv],ust=e=>cst.find(t=>t.test(e));function Gle(e){const t=ust(e);if(w3(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===nv&&(r=lst(r)),r}var Wle=(e,t)=>{const r=Gle(e),i=Gle(t);if(!r||!i)return S3(e,t);const n={...r};return a=>(n.red=WO(r.red,i.red,a),n.green=WO(r.green,i.green,a),n.blue=WO(r.blue,i.blue,a),n.alpha=vn(r.alpha,i.alpha,a),O0.transform(n))},YO=new Set(["none","hidden"]);function hst(e,t){return YO.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function dst(e,t){return r=>vn(e,t,r)}function jO(e){return typeof e=="number"?dst:typeof e=="string"?zO(e)?S3:fa.test(e)?Wle:gst:Array.isArray(e)?Yle:typeof e=="object"?fa.test(e)?Wle:fst:S3}function Yle(e,t){const r=[...e],i=r.length,n=e.map((a,s)=>jO(a)(a,t[s]));return a=>{for(let s=0;s<i;s++)r[s]=n[s](a);return r}}function fst(e,t){const r={...e,...t},i={};for(const n in r)e[n]!==void 0&&t[n]!==void 0&&(i[n]=jO(e[n])(e[n],t[n]));return n=>{for(const a in i)r[a]=i[a](n);return r}}function pst(e,t){const r=[],i={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){const a=t.types[n],s=e.indexes[a][i[a]];r[n]=e.values[s]??0,i[a]++}return r}var gst=(e,t)=>{const r=Cc.createTransformer(t),i=av(e),n=av(t);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?YO.has(e)&&!n.values.length||YO.has(t)&&!i.values.length?hst(e,t):NT(Yle(pst(i,n),n.values),r):(w3(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),S3(e,t))};function jle(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?vn(e,t,r):jO(e)(e,t)}var mst=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>an.update(t,r),stop:()=>hp(t),now:()=>ls.isProcessing?ls.timestamp:no.now()}},Xle=(e,t,r=10)=>{let i="";const n=Math.max(Math.round(t/r),2);for(let a=0;a<n;a++)i+=Math.round(e(a/(n-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Kle=2e4;function XO(e){let t=0;const r=50;let i=e.next(t);for(;!i.done&&t<2e4;)t+=r,i=e.next(t);return t>=2e4?1/0:t}function yst(e,t=100,r){const i=r({...e,keyframes:[0,t]}),n=Math.min(XO(i),Kle);return{type:"keyframes",ease:a=>i.next(n*a).value/t,duration:Ul(n)}}var Bn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function KO(e,t){return e*Math.sqrt(1-t*t)}var vst=12;function bst(e,t,r){let i=r;for(let n=1;n<vst;n++)i=i-e(i)/t(i);return i}var QO=.001;function xst({duration:e=Bn.duration,bounce:t=Bn.bounce,velocity:r=Bn.velocity,mass:i=Bn.mass}){let n,a;w3(e<=Io(Bn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Pu(Bn.minDamping,Bn.maxDamping,s),e=Pu(Bn.minDuration,Bn.maxDuration,Ul(e)),s<1?(n=u=>{const h=u*s,d=h*e,f=h-r,p=KO(u,s),g=Math.exp(-d);return QO-f/p*g},a=u=>{const h=u*s*e,d=h*r+r,f=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-h),g=KO(Math.pow(u,2),s);return(-n(u)+QO>0?-1:1)*((d-f)*p)/g}):(n=u=>{const h=Math.exp(-u*e),d=(u-r)*e+1;return-QO+h*d},a=u=>Math.exp(-u*e)*((r-u)*(e*e)));const o=5/e,l=bst(n,a,o);if(e=Io(e),isNaN(l))return{stiffness:Bn.stiffness,damping:Bn.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}var Tst=["duration","bounce"],wst=["stiffness","damping","mass"];function Qle(e,t){return t.some(r=>e[r]!==void 0)}function Est(e){let t={velocity:Bn.velocity,stiffness:Bn.stiffness,damping:Bn.damping,mass:Bn.mass,isResolvedFromDuration:!1,...e};if(!Qle(e,wst)&&Qle(e,Tst))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,i=2*Math.PI/(r*1.2),n=i*i,a=2*Pu(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:Bn.mass,stiffness:n,damping:a}}else{const r=xst({...e,velocity:0});t={...t,...r,mass:Bn.mass},t.isResolvedFromDuration=!0}return t}function _3(e=Bn.visualDuration,t=Bn.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:n}=r;const a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:u,mass:h,duration:d,velocity:f,isResolvedFromDuration:p}=Est({...r,velocity:-Ul(r.velocity||0)}),g=f||0,y=u/(2*Math.sqrt(l*h)),b=s-a,T=Ul(Math.sqrt(l/h)),w=Math.abs(b)<5;i||(i=w?Bn.restSpeed.granular:Bn.restSpeed.default),n||(n=w?Bn.restDelta.granular:Bn.restDelta.default);let x,C,L,_,S,A;if(y<1)L=KO(T,y),_=(g+y*T*b)/L,x=O=>s-Math.exp(-y*T*O)*(_*Math.sin(L*O)+b*Math.cos(L*O)),S=y*T*_+b*L,A=y*T*b-_*L,C=O=>Math.exp(-y*T*O)*(S*Math.sin(L*O)+A*Math.cos(L*O));else if(y===1){x=M=>s-Math.exp(-T*M)*(b+(g+T*b)*M);const O=g+T*b;C=M=>Math.exp(-T*M)*(T*O*M-g)}else{const O=T*Math.sqrt(y*y-1);x=F=>{const I=Math.exp(-y*T*F),B=Math.min(O*F,300);return s-I*((g+y*T*b)*Math.sinh(B)+O*b*Math.cosh(B))/O};const M=(g+y*T*b)/O,U=y*T*M-b*O,R=y*T*b-M*O;C=F=>{const I=Math.exp(-y*T*F),B=Math.min(O*F,300);return I*(U*Math.sinh(B)+R*Math.cosh(B))}}const P={calculatedDuration:p&&d||null,velocity:O=>Io(C(O)),next:O=>{if(!p&&y<1){const U=Math.exp(-y*T*O),R=Math.sin(L*O),F=Math.cos(L*O),I=s-U*(_*R+b*F),B=Io(U*(S*R+A*F));return o.done=Math.abs(B)<=i&&Math.abs(s-I)<=n,o.value=o.done?s:I,o}const M=x(O);if(p)o.done=O>=d;else{const U=Io(C(O));o.done=Math.abs(U)<=i&&Math.abs(s-M)<=n}return o.value=o.done?s:M,o},toString:()=>{const O=Math.min(XO(P),Kle),M=Xle(U=>P.next(O*U).value,O,30);return O+"ms "+M},toTransition:()=>{}};return P}_3.applyToOptions=e=>{const t=yst(e,100,_3);return e.ease=t.ease,e.duration=Io(t.duration),e.type="keyframes",e};var kst=5;function Zle(e,t,r){const i=Math.max(t-kst,0);return wle(r-e(i),t-i)}function ZO({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:h}){const d=e[0],f={done:!1,value:d},p=A=>o!==void 0&&A<o||l!==void 0&&A>l,g=A=>o===void 0?l:l===void 0||Math.abs(o-A)<Math.abs(l-A)?o:l;let y=r*t;const b=d+y,T=s===void 0?b:s(b);T!==b&&(y=T-d);const w=A=>-y*Math.exp(-A/i),x=A=>T+w(A),C=A=>{const P=w(A),O=x(A);f.done=Math.abs(P)<=u,f.value=f.done?T:O};let L,_;const S=A=>{p(f.value)&&(L=A,_=_3({keyframes:[f.value,g(f.value)],velocity:Zle(x,A,f.value),damping:n,stiffness:a,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:A=>{let P=!1;return!_&&L===void 0&&(P=!0,C(A),S(A)),L!==void 0&&A>=L?_.next(A-L):(!P&&C(A),f)}}}function Cst(e,t,r){const i=[],n=r||up.mix||jle,a=e.length-1;for(let s=0;s<a;s++){let o=n(e[s],e[s+1]);t&&(o=NT(Array.isArray(t)?t[s]||zl:t,o)),i.push(o)}return i}function Sst(e,t,{clamp:r=!0,ease:i,mixer:n}={}){const a=e.length;if(rv(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Cst(t,i,n),l=o.length,u=h=>{if(s&&h<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(h<e[d+1]);d++);const f=DT(e[d],e[d+1],h);return o[d](f)};return r?h=>u(Pu(e[0],e[a-1],h)):u}function _st(e,t){const r=e[e.length-1];for(let i=1;i<=t;i++){const n=DT(0,t,i);e.push(vn(r,1,n))}}function Ast(e){const t=[0];return _st(t,e.length-1),t}function Lst(e,t){return e.map(r=>r*t)}function Rst(e,t){return e.map(()=>t||Nle).splice(0,e.length-1)}function BT({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){const n=$at(i)?i.map(Mle):Mle(i),a={done:!1,value:t[0]},s=Sst(Lst(r&&r.length===t.length?r:Ast(t),e),t,{ease:Array.isArray(n)?n:Rst(t,n)});return{calculatedDuration:e,next:o=>(a.value=s(o),a.done=o>=e,a)}}var Nst=e=>e!==null;function A3(e,{repeat:t,repeatType:r="loop"},i,n=1){const a=e.filter(Nst),s=n<0||t&&r!=="loop"&&t%2===1?0:a.length-1;return!s||i===void 0?a[s]:i}var Dst={decay:ZO,inertia:ZO,tween:BT,keyframes:BT,spring:_3};function Jle(e){typeof e.type=="string"&&(e.type=Dst[e.type])}var JO=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Ist=e=>e/100,L3=class extends JO{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==no.now()&&this.tick(no.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},M0.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Jle(e);const{type:t=BT,repeat:r=0,repeatDelay:i=0,repeatType:n,velocity:a=0}=e;let{keyframes:s}=e;const o=t||BT;o!==BT&&typeof s[0]!="number"&&(this.mixKeyframes=NT(Ist,jle(s[0],s[1])),s=[0,100]);const l=o({...e,keyframes:s});n==="mirror"&&(this.mirroredGenerator=o({...e,keyframes:[...s].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=XO(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:r,totalDuration:i,mixKeyframes:n,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:o}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,x=r;if(h){const S=Math.min(this.currentTime,i)/s;let A=Math.floor(S),P=S%1;!P&&S>=1&&(P=1),P===1&&A--,A=Math.min(A,h+1),A%2&&(d==="reverse"?(P=1-P,f&&(P-=f/s)):d==="mirror"&&(x=a)),w=Pu(0,1,P)*s}let C;T?(this.delayState.value=u[0],C=this.delayState):C=x.next(w),n&&!T&&(C.value=n(C.value));let{done:L}=C;!T&&o!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return _&&p!==ZO&&(C.value=A3(u,this.options,y,this.speed)),g&&g(C.value),_&&this.finish(),C}then(e,t){return this.finished.then(e,t)}get duration(){return Ul(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ul(e)}get time(){return Ul(this.currentTime)}set time(e){e=Io(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const t=this.generator.next(e).value;return Zle(r=>this.generator.next(r).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(no.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Ul(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=mst,startTime:t}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(no.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,M0.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Mst(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var P0=e=>e*180/Math.PI,e9=e=>t9(P0(Math.atan2(e[1],e[0]))),Ost={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:e9,rotateZ:e9,skewX:e=>P0(Math.atan(e[1])),skewY:e=>P0(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},t9=e=>(e=e%360,e<0&&(e+=360),e),ece=e9,tce=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),rce=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Pst={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tce,scaleY:rce,scale:e=>(tce(e)+rce(e))/2,rotateX:e=>t9(P0(Math.atan2(e[6],e[5]))),rotateY:e=>t9(P0(Math.atan2(-e[2],e[0]))),rotateZ:ece,rotate:ece,skewX:e=>P0(Math.atan(e[4])),skewY:e=>P0(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function r9(e){return e.includes("scale")?1:0}function i9(e,t){if(!e||e==="none")return r9(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,n;if(r)i=Pst,n=r;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Ost,n=o}if(!n)return r9(t);const a=i[t],s=n[1].split(",").map(Fst);return typeof a=="function"?a(s):s[a]}var Bst=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return i9(r,t)};function Fst(e){return parseFloat(e.trim())}var sv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ov=new Set(sv),ice=e=>e===iv||e===wr,$st=new Set(["x","y","z"]),zst=sv.filter(e=>!$st.has(e));function Ust(e){const t=[];return zst.forEach(r=>{const i=e.getValue(r);i!==void 0&&(t.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),t}var fp={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:i})=>{const n=e.max-e.min;return i==="border-box"?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:i})=>{const n=e.max-e.min;return i==="border-box"?n:n-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>i9(t,"x"),y:(e,{transform:t})=>i9(t,"y")};fp.translateX=fp.x,fp.translateY=fp.y;var B0=new Set,n9=!1,a9=!1,s9=!1;function nce(){if(a9){const e=Array.from(B0).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),r=new Map;t.forEach(i=>{const n=Ust(i);n.length&&(r.set(i,n),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const n=r.get(i);n&&n.forEach(([a,s])=>{i.getValue(a)?.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}a9=!1,n9=!1,B0.forEach(e=>e.complete(s9)),B0.clear()}function ace(){B0.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(a9=!0)})}function Hst(){s9=!0,ace(),nce(),s9=!1}var o9=class{constructor(e,t,r,i,n,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=i,this.element=n,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(B0.add(this),n9||(n9=!0,an.read(ace),an.resolveKeyframes(nce))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:i}=this;if(e[0]===null){const n=i?.get(),a=e[e.length-1];if(n!==void 0)e[0]=n;else if(r&&t){const s=r.readValue(t,a);s!=null&&(e[0]=s)}e[0]===void 0&&(e[0]=a),i&&n===void 0&&i.set(e[0])}Mst(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),B0.delete(this)}cancel(){this.state==="scheduled"&&(B0.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}},Vst=e=>e.startsWith("--");function sce(e,t,r){Vst(t)?e.style.setProperty(t,r):e.style[t]=r}var qst={};function oce(e,t){const r=Tle(e);return()=>qst[t]??r()}var Gst=oce(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),lce=oce(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),FT=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,cce={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:FT([0,.65,.55,1]),circOut:FT([.55,0,1,.45]),backIn:FT([.31,.01,.66,-.59]),backOut:FT([.33,1.53,.69,.99])};function uce(e,t){if(e)return typeof e=="function"?lce()?Xle(e,t):"ease-out":Dle(e)?FT(e):Array.isArray(e)?e.map(r=>uce(r,t)||cce.easeOut):cce[e]}function Wst(e,t,r,{delay:i=0,duration:n=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},u=void 0){const h={[t]:r};l&&(h.offset=l);const d=uce(o,n);Array.isArray(d)&&(h.easing=d),Bu.value&&M0.waapi++;const f={delay:i,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};u&&(f.pseudoElement=u);const p=e.animate(h,f);return Bu.value&&p.finished.finally(()=>{M0.waapi--}),p}function hce(e){return typeof e=="function"&&"applyToOptions"in e}function Yst({type:e,...t}){return hce(e)&&lce()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var dce=class extends JO{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:i,pseudoElement:n,allowFlatten:a=!1,finalKeyframe:s,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=a,this.options=e,rv(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Yst(e);this.animation=Wst(t,r,i,l,n),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){const u=A3(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(u),sce(t,r,u),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Ul(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ul(e)}get time(){return Ul(Number(this.animation.currentTime)||0)}set time(e){const t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Io(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Gst()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),zl):i(this)}},fce={anticipate:Ale,backInOut:_le,circInOut:Rle};function jst(e){return e in fce}function Xst(e){typeof e.ease=="string"&&jst(e.ease)&&(e.ease=fce[e.ease])}var l9=10,Kst=class extends dce{constructor(e){Xst(e),Jle(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:r,onComplete:i,element:n,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const s=new L3({...a,autoplay:!1}),o=Math.max(l9,no.now()-this.startTime),l=Pu(0,l9,o-l9),u=s.sample(o).value,{name:h}=this.options;n&&h&&sce(n,h,u),t.setWithVelocity(s.sample(Math.max(0,o-l)).value,u,l),s.stop()}},pce=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Cc.test(e)||e==="0")&&!e.startsWith("url("));function Qst(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Zst(e,t,r,i){const n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=pce(n,t),o=pce(a,t);return w3(s===o,`You are trying to animate ${t} from "${n}" to "${a}". "${s?a:n}" is not an animatable value.`,"value-not-animatable"),!s||!o?!1:Qst(e)||(r==="spring"||hce(r))&&i}function c9(e){e.duration=0,e.type="keyframes"}var gce=new Set(["opacity","clipPath","filter","transform"]),Jst=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function eot(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Jst.test(e[t]))return!0;return!1}var tot=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rot=Tle(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function iot(e){const{motionValue:t,name:r,repeatDelay:i,repeatType:n,damping:a,type:s,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return rot()&&r&&(gce.has(r)||tot.has(r)&&eot(o))&&(r!=="transform"||!u)&&!l&&!i&&n!=="mirror"&&a!==0&&s!=="inertia"}var not=40,aot=class extends JO{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:a="loop",keyframes:s,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=no.now();const d={autoplay:e,delay:t,type:r,repeat:i,repeatDelay:n,repeatType:a,name:o,motionValue:l,element:u,...h},f=u?.KeyframeResolver||o9;this.keyframeResolver=new f(s,(p,g,y)=>this.onKeyframesResolved(p,g,d,!y),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,i){this.keyframeResolver=void 0;const{name:n,type:a,velocity:s,delay:o,isHandoff:l,onUpdate:u}=r;this.resolvedAt=no.now();let h=!0;Zst(e,n,a,s)||(h=!1,(up.instantAnimations||!o)&&u?.(A3(e,r,t)),e[0]=e[e.length-1],c9(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>not?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},f=h&&!l&&iot(d),p=d.motionValue?.owner?.current;let g;if(f)try{g=new Kst({...d,element:p})}catch{g=new L3(d)}else g=new L3(d);g.finished.then(()=>{this.notifyFinished()}).catch(zl),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hst()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function mce(e,t,r,i=0,n=1){const a=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),s=e.size,o=(s-1)*i;return typeof r=="function"?r(a,s):n===1?a*i:o-a*i}var sot=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oot(e){const t=sot.exec(e);if(!t)return[,];const[,r,i,n]=t;return[`--${r??i}`,n]}var lot=4;function yce(e,t,r=1){rv(r<=lot,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,n]=oot(e);if(!i)return;const a=window.getComputedStyle(t).getPropertyValue(i);if(a){const s=a.trim();return vle(s)?parseFloat(s):s}return zO(n)?yce(n,t,r+1):n}var cot={type:"spring",stiffness:500,damping:25,restSpeed:10},uot=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hot={type:"keyframes",duration:.8},dot={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fot=(e,{keyframes:t})=>t.length>2?hot:ov.has(e)?e.startsWith("scale")?uot(t[1]):cot:dot;function vce(e,t){if(e?.inherit&&t){const{inherit:r,...i}=e;return{...t,...i}}return e}function u9(e,t){const r=e?.[t]??e?.default??e;return r!==e?vce(r,e):r}var pot=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function got(e){for(const t in e)if(!pot.has(t))return!0;return!1}var h9=(e,t,r,i={},n,a)=>s=>{const o=u9(i,e)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Io(l);const h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:n};got(o)||Object.assign(h,fot(e,h)),h.duration&&(h.duration=Io(h.duration)),h.repeatDelay&&(h.repeatDelay=Io(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let d=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(c9(h),h.delay===0&&(d=!0)),(up.instantAnimations||up.skipAnimations||n?.shouldSkipAnimations)&&(d=!0,c9(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const f=A3(h.keyframes,o);if(f!==void 0){an.update(()=>{h.onUpdate(f),h.onComplete()});return}}return o.isSync?new L3(h):new aot(h)};function bce(e){const t=[{},{}];return e?.values.forEach((r,i)=>{t[0][i]=r.get(),t[1][i]=r.getVelocity()}),t}function d9(e,t,r,i){if(typeof t=="function"){const[n,a]=bce(i);t=t(r!==void 0?r:e.custom,n,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[n,a]=bce(i);t=t(r!==void 0?r:e.custom,n,a)}return t}function F0(e,t,r){const i=e.getProps();return d9(i,t,r!==void 0?r:i.custom,e)}var xce=new Set(["width","height","top","left","right","bottom",...sv]),Tce=30,mot=e=>!isNaN(parseFloat(e)),wce={current:void 0},yot=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=no.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=no.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=mot(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new PO);const r=this.events[e].add(t);return e==="change"?()=>{r(),an.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wce.current&&wce.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=no.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Tce)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,Tce);return wle(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function lv(e,t){return new yot(e,t)}var f9=e=>Array.isArray(e);function vot(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,lv(r))}function bot(e){return f9(e)?e[e.length-1]||0:e}function xot(e,t){let{transitionEnd:r={},transition:i={},...n}=F0(e,t)||{};n={...n,...r};for(const a in n)vot(e,a,bot(n[a]))}var cs=e=>!!(e&&e.getVelocity);function Tot(e){return!!(cs(e)&&e.add)}function p9(e,t){const r=e.getValue("willChange");if(Tot(r))return r.add(t);if(!r&&up.WillChange){const i=new up.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function g9(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var wot="framerAppearId",Ece="data-"+g9(wot);function kce(e){return e.props[Ece]}function Eot({protectedKeys:e,needsAnimating:t},r){const i=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,i}function Cce(e,t,{delay:r=0,transitionOverride:i,type:n}={}){let{transition:a,transitionEnd:s,...o}=t;const l=e.getDefaultTransition();a=a?vce(a,l):l;const u=a?.reduceMotion;i&&(a=i);const h=[],d=n&&e.animationState&&e.animationState.getState()[n];for(const f in o){const p=e.getValue(f,e.latestValues[f]??null),g=o[f];if(g===void 0||d&&Eot(d,f))continue;const y={delay:r,...u9(a||{},f)},b=p.get();if(b!==void 0&&!p.isAnimating()&&!Array.isArray(g)&&g===b&&!y.velocity){an.update(()=>p.set(g));continue}let T=!1;if(window.MotionHandoffAnimation){const C=kce(e);if(C){const L=window.MotionHandoffAnimation(C,f,an);L!==null&&(y.startTime=L,T=!0)}}p9(e,f);const w=u??e.shouldReduceMotion;p.start(h9(f,p,g,w&&xce.has(f)?{type:!1}:y,e,T));const x=p.animation;x&&h.push(x)}if(s){const f=()=>an.update(()=>{s&&xot(e,s)});h.length?Promise.all(h).then(f):f()}return h}function m9(e,t,r={}){const i=F0(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:n=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(n=r.transitionOverride);const a=i?()=>Promise.all(Cce(e,i,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:d}=n;return kot(e,t,l,u,h,d,r)}:()=>Promise.resolve(),{when:o}=n;if(o){const[l,u]=o==="beforeChildren"?[a,s]:[s,a];return l().then(()=>u())}else return Promise.all([a(),s(r.delay)])}function kot(e,t,r=0,i=0,n=0,a=1,s){const o=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),o.push(m9(l,t,{...s,delay:r+(typeof i=="function"?0:i)+mce(e.variantChildren,l,i,n,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}function Cot(e,t,r={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const n=t.map(a=>m9(e,a,r));i=Promise.all(n)}else if(typeof t=="string")i=m9(e,t,r);else{const n=typeof t=="function"?F0(e,t,r.custom):t;i=Promise.all(Cce(e,n,r))}return i.then(()=>{e.notify("AnimationComplete",t)})}var Sot={test:e=>e==="auto",parse:e=>e},Sce=e=>t=>t.test(e),_ce=[iv,wr,Fu,dp,Qat,Kat,Sot],Ace=e=>_ce.find(Sce(e));function _ot(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||xle(e):!0}var Aot=new Set(["brightness","contrast","saturate","opacity"]);function Lot(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=r.match(UO)||[];if(!i)return e;const n=r.replace(i,"");let a=Aot.has(t)?1:0;return i!==r&&(a*=100),t+"("+a+n+")"}var Rot=/\b([a-z-]*)\(.*?\)/gu,y9={...Cc,getAnimatableNone:e=>{const t=e.match(Rot);return t?t.map(Lot).join(" "):e}},v9={...Cc,getAnimatableNone:e=>{const t=Cc.parse(e);return Cc.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Lce={...iv,transform:Math.round},Not={rotate:dp,rotateX:dp,rotateY:dp,rotateZ:dp,scale:C3,scaleX:C3,scaleY:C3,scaleZ:C3,skew:dp,skewX:dp,skewY:dp,distance:wr,translateX:wr,translateY:wr,translateZ:wr,x:wr,y:wr,z:wr,perspective:wr,transformPerspective:wr,opacity:MT,originX:zle,originY:zle,originZ:wr},b9={borderWidth:wr,borderTopWidth:wr,borderRightWidth:wr,borderBottomWidth:wr,borderLeftWidth:wr,borderRadius:wr,borderTopLeftRadius:wr,borderTopRightRadius:wr,borderBottomRightRadius:wr,borderBottomLeftRadius:wr,width:wr,maxWidth:wr,height:wr,maxHeight:wr,top:wr,right:wr,bottom:wr,left:wr,inset:wr,insetBlock:wr,insetBlockStart:wr,insetBlockEnd:wr,insetInline:wr,insetInlineStart:wr,insetInlineEnd:wr,padding:wr,paddingTop:wr,paddingRight:wr,paddingBottom:wr,paddingLeft:wr,paddingBlock:wr,paddingBlockStart:wr,paddingBlockEnd:wr,paddingInline:wr,paddingInlineStart:wr,paddingInlineEnd:wr,margin:wr,marginTop:wr,marginRight:wr,marginBottom:wr,marginLeft:wr,marginBlock:wr,marginBlockStart:wr,marginBlockEnd:wr,marginInline:wr,marginInlineStart:wr,marginInlineEnd:wr,fontSize:wr,backgroundPositionX:wr,backgroundPositionY:wr,...Not,zIndex:Lce,fillOpacity:MT,strokeOpacity:MT,numOctaves:Lce},Dot={...b9,color:fa,backgroundColor:fa,outlineColor:fa,fill:fa,stroke:fa,borderColor:fa,borderTopColor:fa,borderRightColor:fa,borderBottomColor:fa,borderLeftColor:fa,filter:y9,WebkitFilter:y9,mask:v9,WebkitMask:v9},Rce=e=>Dot[e],Iot=new Set([y9,v9]);function Nce(e,t){let r=Rce(e);return Iot.has(r)||(r=Cc),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var Mot=new Set(["auto","none","0"]);function Oot(e,t,r){let i=0,n;for(;i<e.length&&!n;){const a=e[i];typeof a=="string"&&!Mot.has(a)&&av(a).values.length&&(n=e[i]),i++}if(n&&r)for(const a of t)e[a]=Nce(r,n)}var Pot=class extends o9{constructor(e,t,r,i,n){super(e,t,r,i,n,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let o=0;o<e.length;o++){let l=e[o];if(typeof l=="string"&&(l=l.trim(),zO(l))){const u=yce(l,t.current);u!==void 0&&(e[o]=u),o===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!xce.has(r)||e.length!==2)return;const[i,n]=e,a=Ace(i),s=Ace(n);if(Fle(i)!==Fle(n)&&fp[r]){this.needsMeasurement=!0;return}if(a!==s)if(ice(a)&&ice(s))for(let o=0;o<e.length;o++){const l=e[o];typeof l=="string"&&(e[o]=parseFloat(l))}else fp[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||_ot(e[i]))&&r.push(i);r.length&&Oot(e,r,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fp[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const i=t[t.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);const n=r.length-1,a=r[n];r[n]=fp[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,o])=>{e.getValue(s).set(o)}),this.resolveNoneKeyframes()}};function Dce(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;t&&(i=t.current);const n=r?.[e]??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(i=>i!=null)}var Ice=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function R3(e){return ble(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:x9,cancel:WGt}=Ole(queueMicrotask,!1),Sc={x:!1,y:!1};function Mce(){return Sc.x||Sc.y}function Bot(e){return e==="x"||e==="y"?Sc[e]?null:(Sc[e]=!0,()=>{Sc[e]=!1}):Sc.x||Sc.y?null:(Sc.x=Sc.y=!0,()=>{Sc.x=Sc.y=!1})}function Oce(e,t){const r=Dce(e),i=new AbortController,n={passive:!0,...t,signal:i.signal};return[r,n,()=>i.abort()]}function Fot(e){return!(e.pointerType==="touch"||Mce())}function $ot(e,t,r={}){const[i,n,a]=Oce(e,r);return i.forEach(s=>{let o=!1,l=!1,u;const h=()=>{s.removeEventListener("pointerleave",g)},d=b=>{u&&(u(b),u=void 0),h()},f=b=>{o=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(b))},p=()=>{o=!0,window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",f,n)},g=b=>{if(b.pointerType!=="touch"){if(o){l=!0;return}d(b)}},y=b=>{if(!Fot(b))return;l=!1;const T=t(s,b);typeof T=="function"&&(u=T,s.addEventListener("pointerleave",g,n))};s.addEventListener("pointerenter",y,n),s.addEventListener("pointerdown",p,n)}),a}var Pce=(e,t)=>t?e===t?!0:Pce(e,t.parentElement):!1,T9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zot=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Uot(e){return zot.has(e.tagName)||e.isContentEditable===!0}var Hot=new Set(["INPUT","SELECT","TEXTAREA"]);function Vot(e){return Hot.has(e.tagName)||e.isContentEditable===!0}var N3=new WeakSet;function Bce(e){return t=>{t.key==="Enter"&&e(t)}}function w9(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var qot=(e,t)=>{const r=e.currentTarget;if(!r)return;const i=Bce(()=>{if(N3.has(r))return;w9(r,"down");const n=Bce(()=>{w9(r,"up")}),a=()=>w9(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",a,t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)};function Fce(e){return T9(e)&&!Mce()}var $ce=new WeakSet;function Got(e,t,r={}){const[i,n,a]=Oce(e,r),s=o=>{const l=o.currentTarget;if(!Fce(o)||$ce.has(o))return;N3.add(l),r.stopPropagation&&$ce.add(o);const u=t(l,o),h=(p,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),N3.has(l)&&N3.delete(l),Fce(p)&&typeof u=="function"&&u(p,{success:g})},d=p=>{h(p,l===window||l===document||r.useGlobalTarget||Pce(l,p.target))},f=p=>{h(p,!1)};window.addEventListener("pointerup",d,n),window.addEventListener("pointercancel",f,n)};return i.forEach(o=>{(r.useGlobalTarget?window:o).addEventListener("pointerdown",s,n),R3(o)&&(o.addEventListener("focus",l=>qot(l,n)),!Uot(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function E9(e){return ble(e)&&"ownerSVGElement"in e}var D3=new WeakMap,I3,zce=(e,t,r)=>(i,n)=>n&&n[0]?n[0][e+"Size"]:E9(i)&&"getBBox"in i?i.getBBox()[t]:i[r],Wot=zce("inline","width","offsetWidth"),Yot=zce("block","height","offsetHeight");function jot({target:e,borderBoxSize:t}){D3.get(e)?.forEach(r=>{r(e,{get width(){return Wot(e,t)},get height(){return Yot(e,t)}})})}function Xot(e){e.forEach(jot)}function Kot(){typeof ResizeObserver>"u"||(I3=new ResizeObserver(Xot))}function Qot(e,t){I3||Kot();const r=Dce(e);return r.forEach(i=>{let n=D3.get(i);n||(n=new Set,D3.set(i,n)),n.add(t),I3?.observe(i)}),()=>{r.forEach(i=>{const n=D3.get(i);n?.delete(t),n?.size||I3?.unobserve(i)})}}var M3=new Set,cv;function Zot(){cv=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};M3.forEach(t=>t(e))},window.addEventListener("resize",cv)}function Jot(e){return M3.add(e),cv||Zot(),()=>{M3.delete(e),!M3.size&&typeof cv=="function"&&(window.removeEventListener("resize",cv),cv=void 0)}}function Uce(e,t){return typeof e=="function"?Jot(e):Qot(e,t)}function elt(e){return E9(e)&&e.tagName==="svg"}var tlt=[..._ce,fa,Cc],rlt=e=>tlt.find(Sce(e)),Hce=()=>({translate:0,scale:1,origin:0,originPoint:0}),uv=()=>({x:Hce(),y:Hce()}),Vce=()=>({min:0,max:0}),Ia=()=>({x:Vce(),y:Vce()}),ilt=new WeakMap;function O3(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $T(e){return typeof e=="string"||Array.isArray(e)}var k9=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],C9=["initial",...k9];function P3(e){return O3(e.animate)||C9.some(t=>$T(e[t]))}function qce(e){return!!(P3(e)||e.variants)}function nlt(e,t,r){for(const i in t){const n=t[i],a=r[i];if(cs(n))e.addValue(i,n);else if(cs(a))e.addValue(i,lv(n,{owner:e}));else if(a!==n)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(n):s.hasAnimated||s.set(n)}else{const s=e.getStaticValue(i);e.addValue(i,lv(s!==void 0?s:n,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}var S9={current:null},Gce={current:!1},alt=typeof window<"u";function slt(){if(Gce.current=!0,!!alt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>S9.current=e.matches;e.addEventListener("change",t),t()}else S9.current=!1}var Wce=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],B3={};function Yce(e){B3=e}function olt(){return B3}var llt=class{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:i,skipAnimations:n,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=o9,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=no.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,an.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=P3(t),this.isVariantNode=qce(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&cs(p)&&p.set(l[f])}}mount(e){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=e,ilt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,r)=>this.bindToMotionValue(r,t)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Gce.current||slt(),this.shouldReduceMotion=S9.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),hp(this.notifyUpdate),hp(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&gce.has(e)&&this.current instanceof HTMLElement){const{factory:a,keyframes:s,times:o,ease:l,duration:u}=t.accelerate,h=new dce({element:this.current,name:e,keyframes:s,times:o,ease:l,duration:Io(u)}),d=a(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const r=ov.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=t.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&an.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in B3){const t=B3[e];if(!t)continue;const{isEnabled:r,Feature:i}=t;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ia()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;r<Wce.length;r++){const i=Wce[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=nlt(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&t!==void 0&&(r=lv(t===null?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(vle(r)||xle(r))?r=parseFloat(r):!rlt(r)&&Cc.test(t)&&(r=Nce(e,t)),this.setBaseTarget(e,cs(r)?r.get():r)),cs(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let r;if(typeof t=="string"||typeof t=="object"){const n=d9(this.props,t,this.presenceContext?.custom);n&&(r=n[e])}if(t&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!cs(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new PO),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){x9.render(this.render)}},jce=class extends llt{constructor(){super(...arguments),this.KeyframeResolver=Pot}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){const r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;cs(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},pp=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Xce({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function clt({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ult(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function _9(e){return e===void 0||e===1}function A9({scale:e,scaleX:t,scaleY:r}){return!_9(e)||!_9(t)||!_9(r)}function $0(e){return A9(e)||Kce(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Kce(e){return Qce(e.x)||Qce(e.y)}function Qce(e){return e&&e!=="0%"}function F3(e,t,r){return r+t*(e-r)}function Zce(e,t,r,i,n){return n!==void 0&&(e=F3(e,n,i)),F3(e,r,i)+t}function L9(e,t=0,r=1,i,n){e.min=Zce(e.min,t,r,i,n),e.max=Zce(e.max,t,r,i,n)}function Jce(e,{x:t,y:r}){L9(e.x,t.translate,t.scale,t.originPoint),L9(e.y,r.translate,r.scale,r.originPoint)}var eue=.999999999999,tue=1.0000000000001;function hlt(e,t,r,i=!1){const n=r.length;if(!n)return;t.x=t.y=1;let a,s;for(let o=0;o<n;o++){a=r[o],s=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&($u(e.x,-a.scroll.offset.x),$u(e.y,-a.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Jce(e,s)),i&&$0(a.latestValues)&&$3(e,a.latestValues,a.layout?.layoutBox))}t.x<tue&&t.x>eue&&(t.x=1),t.y<tue&&t.y>eue&&(t.y=1)}function $u(e,t){e.min+=t,e.max+=t}function rue(e,t,r,i,n=.5){L9(e,t,r,vn(e.min,e.max,n),i)}function iue(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function $3(e,t,r){const i=r??e;rue(e.x,iue(t.x,i.x),t.scaleX,t.scale,t.originX),rue(e.y,iue(t.y,i.y),t.scaleY,t.scale,t.originY)}function nue(e,t){return Xce(ult(e.getBoundingClientRect(),t))}function dlt(e,t,r){const i=nue(e,r),{scroll:n}=t;return n&&($u(i.x,n.offset.x),$u(i.y,n.offset.y)),i}var flt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},plt=sv.length;function glt(e,t,r){let i="",n=!0;for(let a=0;a<plt;a++){const s=sv[a],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number")l=o===(s.startsWith("scale")?1:0);else{const u=parseFloat(o);l=s.startsWith("scale")?u===1:u===0}if(!l||r){const u=Ice(o,b9[s]);if(!l){n=!1;const h=flt[s]||s;i+=`${h}(${u}) `}r&&(t[s]=u)}}return i=i.trim(),r?i=r(t,n?"":i):n&&(i="none"),i}function R9(e,t,r){const{style:i,vars:n,transformOrigin:a}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(ov.has(l)){s=!0;continue}else if(Ble(l)){n[l]=u;continue}else{const h=Ice(u,b9[l]);l.startsWith("origin")?(o=!0,a[l]=h):i[l]=h}}if(t.transform||(s||r?i.transform=glt(t,e.transform,r):i.transform&&(i.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:h=0}=a;i.transformOrigin=`${l} ${u} ${h}`}}function aue(e,{style:t,vars:r},i,n){const a=e.style;let s;for(s in t)a[s]=t[s];n?.applyProjectionStyles(a,i);for(s in r)a.setProperty(s,r[s])}function sue(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var zT={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(wr.test(e))e=parseFloat(e);else return e;return`${sue(e,t.target.x)}% ${sue(e,t.target.y)}%`}},mlt={correct:(e,{treeScale:t,projectionDelta:r})=>{const i=e,n=Cc.parse(e);if(n.length>5)return i;const a=Cc.createTransformer(e),s=typeof n[0]!="number"?1:0,o=r.x.scale*t.x,l=r.y.scale*t.y;n[0+s]/=o,n[1+s]/=l;const u=vn(o,l,.5);return typeof n[2+s]=="number"&&(n[2+s]/=u),typeof n[3+s]=="number"&&(n[3+s]/=u),a(n)}},N9={borderRadius:{...zT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zT,borderTopRightRadius:zT,borderBottomLeftRadius:zT,borderBottomRightRadius:zT,boxShadow:mlt};function oue(e,{layout:t,layoutId:r}){return ov.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!N9[e]||e==="opacity")}function D9(e,t,r){const i=e.style,n=t?.style,a={};if(!i)return a;for(const s in i)(cs(i[s])||n&&cs(n[s])||oue(s,e)||r?.getValue(s)?.liveStyle!==void 0)&&(a[s]=i[s]);return a}function ylt(e){return window.getComputedStyle(e)}var vlt=class extends jce{constructor(){super(...arguments),this.type="html",this.renderInstance=aue}readValueFromInstance(e,t){if(ov.has(t))return this.projection?.isProjecting?r9(t):Bst(e,t);{const r=ylt(e),i=(Ble(t)?r.getPropertyValue(t):r[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nue(e,t)}build(e,t,r){R9(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return D9(e,t,r)}},blt={offset:"stroke-dashoffset",array:"stroke-dasharray"},xlt={offset:"strokeDashoffset",array:"strokeDasharray"};function Tlt(e,t,r=1,i=0,n=!0){e.pathLength=1;const a=n?blt:xlt;e[a.offset]=`${-i}`,e[a.array]=`${t} ${r}`}var wlt=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function lue(e,{attrX:t,attrY:r,attrScale:i,pathLength:n,pathSpacing:a=1,pathOffset:s=0,...o},l,u,h){if(R9(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=h?.transformBox??"fill-box",delete d.transformBox);for(const p of wlt)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),i!==void 0&&(d.scale=i),n!==void 0&&Tlt(d,n,a,s,!1)}var cue=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),uue=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Elt(e,t,r,i){aue(e,t,void 0,i);for(const n in t.attrs)e.setAttribute(cue.has(n)?n:g9(n),t.attrs[n])}function hue(e,t,r){const i=D9(e,t,r);for(const n in e)if(cs(e[n])||cs(t[n])){const a=sv.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[a]=e[n]}return i}var klt=class extends jce{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ia}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ov.has(t)){const r=Rce(t);return r&&r.default||0}return t=cue.has(t)?t:g9(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return hue(e,t,r)}build(e,t,r){lue(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,i){Elt(e,t,r,i)}mount(e){this.isSVGTag=uue(e.tagName),super.mount(e)}},Clt=C9.length;function due(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?due(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<Clt;r++){const i=C9[r],n=e.props[i];($T(n)||n===!1)&&(t[i]=n)}return t}function fue(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}var Slt=[...k9].reverse(),_lt=k9.length;function Alt(e){return t=>Promise.all(t.map(({animation:r,options:i})=>Cot(e,r,i)))}function Llt(e){let t=Alt(e),r=pue(),i=!0,n=!1;const a=u=>(h,d)=>{const f=F0(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:p,transitionEnd:g,...y}=f;h={...h,...y,...g}}return h};function s(u){t=u(e)}function o(u){const{props:h}=e,d=due(e.parent)||{},f=[],p=new Set;let g={},y=1/0;for(let T=0;T<_lt;T++){const w=Slt[T],x=r[w],C=h[w]!==void 0?h[w]:d[w],L=$T(C),_=w===u?x.isActive:null;_===!1&&(y=T);let S=C===d[w]&&C!==h[w]&&L;if(S&&(i||n)&&e.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...g},!x.isActive&&_===null||!C&&!x.prevProp||O3(C)||typeof C=="boolean")continue;if(w==="exit"&&x.isActive&&_!==!0){x.prevResolvedValues&&(g={...g,...x.prevResolvedValues});continue}const A=Rlt(x.prevProp,C);let P=A||w===u&&x.isActive&&!S&&L||T>y&&L,O=!1;const M=Array.isArray(C)?C:[C];let U=M.reduce(a(w),{});_===!1&&(U={});const{prevResolvedValues:R={}}=x,F={...R,...U},I=D=>{P=!0,p.has(D)&&(O=!0,p.delete(D)),x.needsAnimating[D]=!0;const $=e.getValue(D);$&&($.liveStyle=!1)};for(const D in F){const $=U[D],H=R[D];if(g.hasOwnProperty(D))continue;let z=!1;f9($)&&f9(H)?z=!fue($,H):z=$!==H,z?$!=null?I(D):p.add(D):$!==void 0&&p.has(D)?I(D):x.protectedKeys[D]=!0}x.prevProp=C,x.prevResolvedValues=U,x.isActive&&(g={...g,...U}),(i||n)&&e.blockInitialAnimation&&(P=!1);const B=S&&A;P&&(!B||O)&&f.push(...M.map(D=>{const $={type:w};if(typeof D=="string"&&(i||n)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:H}=e,z=F0(H,D);if(H.enteringChildren&&z){const{delayChildren:j}=z.transition||{};$.delay=mce(H.enteringChildren,e,j)}}return{animation:D,options:$}}))}if(p.size){const T={};if(typeof h.initial!="boolean"){const w=F0(e,Array.isArray(h.initial)?h.initial[0]:h.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const x=e.getBaseTarget(w),C=e.getValue(w);C&&(C.liveStyle=!0),T[w]=x??null}),f.push({animation:T})}let b=!!f.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,n=!1,b?t(f):Promise.resolve()}function l(u,h){if(r[u].isActive===h)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,h)),r[u].isActive=h;const d=o(u);for(const f in r)r[f].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>r,reset:()=>{r=pue(),n=!0}}}function Rlt(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fue(t,e):!1}function z0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pue(){return{animate:z0(!0),whileInView:z0(),whileHover:z0(),whileTap:z0(),whileDrag:z0(),whileFocus:z0(),exit:z0()}}function I9(e,t){e.min=t.min,e.max=t.max}function _c(e,t){I9(e.x,t.x),I9(e.y,t.y)}function gue(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var mue=1e-4,Nlt=1-mue,Dlt=1+mue,yue=.01,Ilt=0-yue,Mlt=0+yue;function ao(e){return e.max-e.min}function Olt(e,t,r){return Math.abs(e-t)<=r}function vue(e,t,r,i=.5){e.origin=i,e.originPoint=vn(t.min,t.max,e.origin),e.scale=ao(r)/ao(t),e.translate=vn(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Nlt&&e.scale<=Dlt||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ilt&&e.translate<=Mlt||isNaN(e.translate))&&(e.translate=0)}function UT(e,t,r,i){vue(e.x,t.x,r.x,i?i.originX:void 0),vue(e.y,t.y,r.y,i?i.originY:void 0)}function bue(e,t,r,i=0){e.min=(i?vn(r.min,r.max,i):r.min)+t.min,e.max=e.min+ao(t)}function Plt(e,t,r,i){bue(e.x,t.x,r.x,i?.x),bue(e.y,t.y,r.y,i?.y)}function xue(e,t,r,i=0){const n=i?vn(r.min,r.max,i):r.min;e.min=t.min-n,e.max=e.min+ao(t)}function z3(e,t,r,i){xue(e.x,t.x,r.x,i?.x),xue(e.y,t.y,r.y,i?.y)}function Tue(e,t,r,i,n){return e-=t,e=F3(e,1/r,i),n!==void 0&&(e=F3(e,1/n,i)),e}function Blt(e,t=0,r=1,i=.5,n,a=e,s=e){if(Fu.test(t)&&(t=parseFloat(t),t=vn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=vn(a.min,a.max,i);e===a&&(o-=t),e.min=Tue(e.min,t,r,o,n),e.max=Tue(e.max,t,r,o,n)}function wue(e,t,[r,i,n],a,s){Blt(e,t[r],t[i],t[n],t.scale,a,s)}var Flt=["x","scaleX","originX"],$lt=["y","scaleY","originY"];function Eue(e,t,r,i){wue(e.x,t,Flt,r?r.x:void 0,i?i.x:void 0),wue(e.y,t,$lt,r?r.y:void 0,i?i.y:void 0)}function kue(e){return e.translate===0&&e.scale===1}function Cue(e){return kue(e.x)&&kue(e.y)}function Sue(e,t){return e.min===t.min&&e.max===t.max}function zlt(e,t){return Sue(e.x,t.x)&&Sue(e.y,t.y)}function _ue(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Aue(e,t){return _ue(e.x,t.x)&&_ue(e.y,t.y)}function Lue(e){return ao(e.x)/ao(e.y)}function Rue(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function zu(e){return[e("x"),e("y")]}function Ult(e,t,r){let i="";const n=e.x.translate/t.x,a=e.y.translate/t.y,s=r?.z||0;if((n||a||s)&&(i=`translate3d(${n}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:u,rotate:h,rotateX:d,rotateY:f,skewX:p,skewY:g}=r;u&&(i=`perspective(${u}px) ${i}`),h&&(i+=`rotate(${h}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),p&&(i+=`skewX(${p}deg) `),g&&(i+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(i+=`scale(${o}, ${l})`),i||"none"}var Nue=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Hlt=Nue.length,Due=e=>typeof e=="string"?parseFloat(e):e,Iue=e=>typeof e=="number"||wr.test(e);function Vlt(e,t,r,i,n,a){n?(e.opacity=vn(0,r.opacity??1,qlt(i)),e.opacityExit=vn(t.opacity??1,0,Glt(i))):a&&(e.opacity=vn(t.opacity??1,r.opacity??1,i));for(let s=0;s<Hlt;s++){const o=Nue[s];let l=Mue(t,o),u=Mue(r,o);l===void 0&&u===void 0||(l||(l=0),u||(u=0),l===0||u===0||Iue(l)===Iue(u)?(e[o]=Math.max(vn(Due(l),Due(u),i),0),(Fu.test(u)||Fu.test(l))&&(e[o]+="%")):e[o]=u)}(t.rotate||r.rotate)&&(e.rotate=vn(t.rotate||0,r.rotate||0,i))}function Mue(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var qlt=Oue(0,.5,Lle),Glt=Oue(.5,.95,zl);function Oue(e,t,r){return i=>i<e?0:i>t?1:r(DT(e,t,i))}function Wlt(e,t,r){const i=cs(e)?e:lv(e);return i.start(h9("",i,t,r)),i.animation}function HT(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}var Ylt=(e,t)=>e.depth-t.depth,jlt=class{constructor(){this.children=[],this.isDirty=!1}add(e){OO(this.children,e),this.isDirty=!0}remove(e){T3(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ylt),this.isDirty=!1,this.children.forEach(e)}};function Xlt(e,t){const r=no.now(),i=({timestamp:n})=>{const a=n-r;a>=t&&(hp(i),e(a-t))};return an.setup(i,!0),()=>hp(i)}function U3(e){return cs(e)?e.get():e}var Klt=class{constructor(){this.members=[]}add(e){OO(this.members,e);for(let t=this.members.length-1;t>=0;t--){const r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(T3(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(T3(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){const r=this.members[t];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:n}=e.options;(i===void 0||i!==n)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},H3={hasAnimatedSinceResize:!0,hasEverUpdated:!1},U0={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},M9=["","X","Y","Z"],Qlt=1e3,Zlt=0;function O9(e,t,r,i){const{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Pue(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=kce(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:n,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",an,!(n||a))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Pue(i)}function Bue({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(s={},o=t?.()){this.id=Zlt++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bu.value&&(U0.nodes=U0.calculatedTargetDeltas=U0.calculatedProjections=0),this.nodes.forEach(tct),this.nodes.forEach(oct),this.nodes.forEach(lct),this.nodes.forEach(rct),Bu.addProjectionMetrics&&Bu.addProjectionMetrics(U0)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new jlt)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new PO),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=E9(s)&&!elt(s),this.instance=s;const{layoutId:o,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let h,d=0;const f=()=>this.root.updateBlockedByResize=!1;an.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,h&&h(),h=Xlt(f,250),H3.hasAnimatedSinceResize&&(H3.hasAnimatedSinceResize=!1,this.nodes.forEach(zue)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||fct,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),T=!this.targetLayout||!Aue(this.targetLayout,p),w=!d&&f;if(this.options.layoutRoot||this.resumeFrom||w||d&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...u9(g,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(h,w)}else d||zue(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hp(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(cct),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pue(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const d=this.path[h];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const o=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),o&&this.nodes.forEach(nct),this.nodes.forEach(Fue);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach($ue);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(act),this.nodes.forEach(sct),this.nodes.forEach(Jlt),this.nodes.forEach(ect)):this.nodes.forEach($ue),this.clearAllSnapshots();const s=no.now();ls.delta=Pu(0,1e3/60,s-ls.timestamp),ls.timestamp=s,ls.isProcessing=!0,$O.update.process(ls),$O.preRender.process(ls),$O.render.process(ls),ls.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,x9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ict),this.sharedNodes.forEach(uct)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,an.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){an.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ao(this.snapshot.measuredBox.x)&&!ao(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ia()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Cue(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,h=u!==this.prevTransformTemplateValue;s&&this.instance&&(o||$0(this.latestValues)||h)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),pct(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ia();const o=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(gct))){const{scroll:l}=this.root;l&&($u(o.x,l.offset.x),$u(o.y,l.offset.y))}return o}removeElementScroll(s){const o=Ia();if(_c(o,s),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&_c(o,s),$u(o.x,h.offset.x),$u(o.y,h.offset.y))}return o}applyTransform(s,o=!1,l){const u=l||Ia();_c(u,s);for(let h=0;h<this.path.length;h++){const d=this.path[h];!o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&($u(u.x,-d.scroll.offset.x),$u(u.y,-d.scroll.offset.y)),$0(d.latestValues)&&$3(u,d.latestValues,d.layout?.layoutBox)}return $0(this.latestValues)&&$3(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(s){const o=Ia();_c(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!$0(u.latestValues))continue;let h;u.instance&&(A9(u.latestValues)&&u.updateSnapshot(),h=Ia(),_c(h,u.measurePageBox())),Eue(o,u.latestValues,u.snapshot?.layoutBox,h)}return $0(this.latestValues)&&Eue(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ls.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=ls.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ia(),this.targetWithTransforms=Ia()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Plt(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):_c(this.target,this.layout.layoutBox),Jce(this.target,this.targetDelta)):_c(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0),Bu.value&&U0.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||A9(this.parent.latestValues)||Kce(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,o,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ia(),this.relativeTargetOrigin=Ia(),z3(this.relativeTargetOrigin,o,l,this.options.layoutAnchor||void 0),_c(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),o=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ls.timestamp&&(l=!1),l)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;_c(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;hlt(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ia());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gue(this.prevProjectionDelta.x,this.projectionDelta.x),gue(this.prevProjectionDelta.y,this.projectionDelta.y)),UT(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Rue(this.projectionDelta.x,this.prevProjectionDelta.x)||!Rue(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Bu.value&&U0.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=uv(),this.projectionDelta=uv(),this.projectionDeltaWithTransform=uv()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},h={...this.latestValues},d=uv();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=Ia(),p=(l?l.source:void 0)!==(this.layout?this.layout.source:void 0),g=this.getStack(),y=!g||g.members.length<=1,b=!!(p&&!y&&this.options.crossfade===!0&&!this.path.some(dct));this.animationProgress=0;let T;this.mixTargetDelta=w=>{const x=w/1e3;Uue(d.x,s.x,x),Uue(d.y,s.y,x),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(z3(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hct(this.relativeTarget,this.relativeTargetOrigin,f,x),T&&zlt(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Ia()),_c(T,this.relativeTarget)),p&&(this.animationValues=h,Vlt(h,u,this.latestValues,x,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(hp(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=an.update(()=>{H3.hasAnimatedSinceResize=!0,M0.layout++,this.motionValue||(this.motionValue=lv(0)),this.motionValue.jump(0,!1),this.currentAnimation=Wlt(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{M0.layout--},onComplete:()=>{M0.layout--,s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qlt),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:h}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&Wue(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ia();const d=ao(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=ao(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}_c(o,l),$3(o,h),UT(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Klt),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&O9("z",s,u,this.animationValues);for(let h=0;h<M9.length;h++)O9(`rotate${M9[h]}`,s,u,this.animationValues),O9(`skew${M9[h]}`,s,u,this.animationValues);s.render();for(const h in u)s.setStaticValue(h,u[h]),this.animationValues&&(this.animationValues[h]=u[h]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=U3(o?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=U3(o?.pointerEvents)||""),this.hasProjected&&!$0(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=Ult(this.projectionDeltaWithTransform,this.treeScale,h);l&&(d=l(h,d)),s.transform=d;const{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?s.opacity=u===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in N9){if(h[g]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:T}=N9[g],w=d==="none"?h[g]:y(h[g],u);if(b){const x=b.length;for(let C=0;C<x;C++)s[b[C]]=w}else T?this.options.visualElement.renderState.vars[g]=w:s[g]=w}this.options.layoutId&&(s.pointerEvents=u===this?U3(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Fue),this.root.sharedNodes.clear()}}}function Jlt(e){e.updateLayout()}function ect(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:n}=e.options,a=t.source!==e.layout.source;if(n==="size")zu(h=>{const d=a?t.measuredBox[h]:t.layoutBox[h],f=ao(d);d.min=r[h].min,d.max=d.min+f});else if(n==="x"||n==="y"){const h=n==="x"?"y":"x";I9(a?t.measuredBox[h]:t.layoutBox[h],r[h])}else Wue(n,t.layoutBox,r)&&zu(h=>{const d=a?t.measuredBox[h]:t.layoutBox[h],f=ao(r[h]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+f)});const s=uv();UT(s,r,t.layoutBox);const o=uv();a?UT(o,e.applyTransform(i,!0),t.measuredBox):UT(o,r,t.layoutBox);const l=!Cue(s);let u=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=e.options.layoutAnchor||void 0,g=Ia();z3(g,t.layoutBox,d.layoutBox,p);const y=Ia();z3(y,r,f.layoutBox,p),Aue(g,y)||(u=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function tct(e){Bu.value&&U0.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rct(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ict(e){e.clearSnapshot()}function Fue(e){e.clearMeasurements()}function nct(e){e.isLayoutDirty=!0,e.updateLayout()}function $ue(e){e.isLayoutDirty=!1}function act(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sct(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zue(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oct(e){e.resolveTargetDelta()}function lct(e){e.calcProjection()}function cct(e){e.resetSkewAndRotation()}function uct(e){e.removeLeadSnapshot()}function Uue(e,t,r){e.translate=vn(t.translate,0,r),e.scale=vn(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Hue(e,t,r,i){e.min=vn(t.min,r.min,i),e.max=vn(t.max,r.max,i)}function hct(e,t,r,i){Hue(e.x,t.x,r.x,i),Hue(e.y,t.y,r.y,i)}function dct(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var fct={duration:.45,ease:[.4,0,.1,1]},Vue=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),que=Vue("applewebkit/")&&!Vue("chrome/")?Math.round:zl;function Gue(e){e.min=que(e.min),e.max=que(e.max)}function pct(e){Gue(e.x),Gue(e.y)}function Wue(e,t,r){return e==="position"||e==="preserve-aspect"&&!Olt(Lue(t),Lue(r),.2)}function gct(e){return e!==e.root&&e.scroll?.wasRoot}var mct=Bue({attachResizeListener:(e,t)=>HT(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),P9={current:void 0},Yue=Bue({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!P9.current){const e=new mct({});e.mount(window),e.setOptions({layoutScroll:!0}),P9.current=e}return P9.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),B9=(0,Ne.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jue(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yct(...e){return t=>{let r=!1;const i=e.map(n=>{const a=jue(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<i.length;n++){const a=i[n];typeof a=="function"?a():jue(e[n],null)}}}}function vct(...e){return Ne.useCallback(yct(...e),e)}var bct=class extends Ne.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(R3(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=t.offsetParent,i=R3(r)&&r.offsetWidth||0,n=R3(r)&&r.offsetHeight||0,a=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}};function xct({children:e,isPresent:t,anchorX:r,anchorY:i,root:n,pop:a}){const s=(0,Ne.useId)(),o=(0,Ne.useRef)(null),l=(0,Ne.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,Ne.useContext)(B9),h=vct(o,e.props?.ref??e?.ref);return(0,Ne.useInsertionEffect)(()=>{const{width:d,height:f,top:p,left:g,right:y,bottom:b}=l.current;if(t||a===!1||!o.current||!d||!f)return;const T=r==="left"?`left: ${g}`:`right: ${y}`,w=i==="bottom"?`bottom: ${b}`:`top: ${p}`;o.current.dataset.motionPopId=s;const x=document.createElement("style");u&&(x.nonce=u);const C=n??document.head;return C.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
11
11
|
[data-motion-pop-id="${s}"] {
|
|
12
12
|
position: absolute !important;
|
|
13
13
|
width: ${d}px !important;
|
|
@@ -15,7 +15,7 @@ Error generating stack: `+N.message+`
|
|
|
15
15
|
${T}px !important;
|
|
16
16
|
${w}px !important;
|
|
17
17
|
}
|
|
18
|
-
`),()=>{o.current?.removeAttribute("data-motion-pop-id"),C.contains(x)&&C.removeChild(x)}},[t]),(0,Pe.jsx)(bct,{isPresent:t,childRef:o,sizeRef:l,pop:a,children:a===!1?e:Ne.cloneElement(e,{ref:h})})}var Tct=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:n,presenceAffectsLayout:a,mode:s,anchorX:o,anchorY:l,root:u})=>{const h=MO(wct),d=(0,Ne.useId)();let f=!0,p=(0,Ne.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:r,custom:n,onExitComplete:g=>{h.set(g,!0);for(const y of h.values())if(!y)return;i&&i()},register:g=>(h.set(g,!1),()=>h.delete(g))}),[r,h,i]);return a&&f&&(p={...p}),(0,Ne.useMemo)(()=>{h.forEach((g,y)=>h.set(y,!1))},[r]),Ne.useEffect(()=>{!r&&!h.size&&i&&i()},[r]),e=(0,Pe.jsx)(xct,{pop:s==="popLayout",isPresent:r,anchorX:o,anchorY:l,root:u,children:e}),(0,Pe.jsx)(x3.Provider,{value:p,children:e})};function wct(){return new Map}function Xue(e=!0){const t=(0,Ne.useContext)(x3);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:i,register:n}=t,a=(0,Ne.useId)();(0,Ne.useEffect)(()=>{if(e)return n(a)},[e]);const s=(0,Ne.useCallback)(()=>e&&i&&i(a),[a,i,e]);return!r&&i?[!1,s]:[!0]}var V3=e=>e.key||"";function Kue(e){const t=[];return Ne.Children.forEach(e,r=>{(0,Ne.isValidElement)(r)&&t.push(r)}),t}var Que=({children:e,custom:t,initial:r=!0,onExitComplete:i,presenceAffectsLayout:n=!0,mode:a="sync",propagate:s=!1,anchorX:o="left",anchorY:l="top",root:u})=>{const[h,d]=Xue(s),f=(0,Ne.useMemo)(()=>Kue(e),[e]),p=s&&!h?[]:f.map(V3),g=(0,Ne.useRef)(!0),y=(0,Ne.useRef)(f),b=MO(()=>new Map),T=(0,Ne.useRef)(new Set),[w,x]=(0,Ne.useState)(f),[C,L]=(0,Ne.useState)(f);yle(()=>{g.current=!1,y.current=f;for(let A=0;A<C.length;A++){const P=V3(C[A]);p.includes(P)?(b.delete(P),T.current.delete(P)):b.get(P)!==!0&&b.set(P,!1)}},[C,p.length,p.join("-")]);const _=[];if(f!==w){let A=[...f];for(let P=0;P<C.length;P++){const O=C[P],M=V3(O);p.includes(M)||(A.splice(P,0,O),_.push(O))}return a==="wait"&&_.length&&(A=_),L(Kue(A)),x(f),null}const{forceRender:S}=(0,Ne.useContext)(IO);return(0,Pe.jsx)(Pe.Fragment,{children:C.map(A=>{const P=V3(A),O=s&&!h?!1:f===C||p.includes(P),M=()=>{if(T.current.has(P))return;if(b.has(P))T.current.add(P),b.set(P,!0);else return;let U=!0;b.forEach(R=>{R||(U=!1)}),U&&(S?.(),L(y.current),s&&d?.(),i&&i())};return(0,Pe.jsx)(Tct,{isPresent:O,initial:!g.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:a,root:u,onExitComplete:O?void 0:M,anchorX:o,anchorY:l,children:A},P)})})},Zue=(0,Ne.createContext)({strict:!1}),Jue={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ehe=!1;function Ect(){if(ehe)return;const e={};for(const t in Jue)e[t]={isEnabled:r=>Jue[t].some(i=>!!r[i])};Yce(e),ehe=!0}function the(){return Ect(),olt()}function kct(e){const t=the();for(const r in e)t[r]={...t[r],...e[r]};Yce(t)}var Cct=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function q3(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Cct.has(e)}var Sct=Rr({default:()=>rhe}),rhe,_ct=V((()=>{throw rhe={},new Error('Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?')})),ihe=e=>!q3(e);function Act(e){typeof e=="function"&&(ihe=t=>t.startsWith("on")?!q3(t):e(t))}try{Act((_ct(),h3(Sct)).default)}catch{}function Lct(e,t,r){const i={};for(const n in e)n==="values"&&typeof e.values=="object"||cs(e[n])||(ihe(n)||r===!0&&q3(n)||!t&&!q3(n)||e.draggable&&n.startsWith("onDrag"))&&(i[n]=e[n]);return i}var G3=(0,Ne.createContext)({});function Rct(e,t){if(P3(e)){const{initial:r,animate:i}=e;return{initial:r===!1||$T(r)?r:void 0,animate:$T(i)?i:void 0}}return e.inherit!==!1?t:{}}function Nct(e){const{initial:t,animate:r}=Rct(e,(0,Ne.useContext)(G3));return(0,Ne.useMemo)(()=>({initial:t,animate:r}),[nhe(t),nhe(r)])}function nhe(e){return Array.isArray(e)?e.join(" "):e}var F9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ahe(e,t,r){for(const i in t)!cs(t[i])&&!oue(i,r)&&(e[i]=t[i])}function Dct({transformTemplate:e},t){return(0,Ne.useMemo)(()=>{const r=F9();return R9(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Ict(e,t){const r=e.style||{},i={};return ahe(i,r,e),Object.assign(i,Dct(e,t)),i}function Mct(e,t){const r={},i=Ict(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}var she=()=>({...F9(),attrs:{}});function Oct(e,t,r,i){const n=(0,Ne.useMemo)(()=>{const a=she();return lue(a,t,uue(i),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};ahe(a,e.style,e),n.style={...a,...n.style}}return n}var Pct=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $9(e){return typeof e!="string"||e.includes("-")?!1:!!(Pct.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bct(e,t,r,{latestValues:i},n,a=!1,s){const o=(s??$9(e)?Oct:Mct)(t,i,n,e),l=Lct(t,typeof e=="string",a),u=e!==Ne.Fragment?{...l,...o,ref:r}:{},{children:h}=t,d=(0,Ne.useMemo)(()=>cs(h)?h.get():h,[h]);return(0,Ne.createElement)(e,{...u,children:d})}function Fct({scrapeMotionValuesFromProps:e,createRenderState:t},r,i,n){return{latestValues:$ct(r,i,n,e),renderState:t()}}function $ct(e,t,r,i){const n={},a=i(e,{});for(const f in a)n[f]=U3(a[f]);let{initial:s,animate:o}=e;const l=P3(e),u=qce(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let h=r?r.initial===!1:!1;h=h||s===!1;const d=h?o:s;if(d&&typeof d!="boolean"&&!O3(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const g=d9(e,f[p]);if(g){const{transitionEnd:y,transition:b,...T}=g;for(const w in T){let x=T[w];if(Array.isArray(x)){const C=h?x.length-1:0;x=x[C]}x!==null&&(n[w]=x)}for(const w in y)n[w]=y[w]}}}return n}var ohe=e=>(t,r)=>{const i=(0,Ne.useContext)(G3),n=(0,Ne.useContext)(x3),a=()=>Fct(e,t,i,n);return r?a():MO(a)},zct=ohe({scrapeMotionValuesFromProps:D9,createRenderState:F9}),Uct=ohe({scrapeMotionValuesFromProps:hue,createRenderState:she}),Hct=Symbol.for("motionComponentSymbol");function Vct(e,t,r){const i=(0,Ne.useRef)(r);(0,Ne.useInsertionEffect)(()=>{i.current=r});const n=(0,Ne.useRef)(null);return(0,Ne.useCallback)(a=>{a&&e.onMount?.(a);const s=i.current;if(typeof s=="function")if(a){const o=s(a);typeof o=="function"&&(n.current=o)}else n.current?(n.current(),n.current=null):s(a);else s&&(s.current=a);t&&(a?t.mount(a):t.unmount())},[t])}var lhe=(0,Ne.createContext)({});function hv(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qct(e,t,r,i,n,a){const{visualElement:s}=(0,Ne.useContext)(G3),o=(0,Ne.useContext)(Zue),l=(0,Ne.useContext)(x3),u=(0,Ne.useContext)(B9),h=u.reducedMotion,d=u.skipAnimations,f=(0,Ne.useRef)(null),p=(0,Ne.useRef)(!1);i=i||o.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:s,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:h,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const g=f.current,y=(0,Ne.useContext)(lhe);g&&!g.projection&&n&&(g.type==="html"||g.type==="svg")&&Gct(f.current,r,n,y);const b=(0,Ne.useRef)(!1);(0,Ne.useInsertionEffect)(()=>{g&&b.current&&g.update(r,l)});const T=r[Ece],w=(0,Ne.useRef)(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return yle(()=>{p.current=!0,g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),w.current&&g.animationState&&g.animationState.animateChanges())}),(0,Ne.useEffect)(()=>{g&&(!w.current&&g.animationState&&g.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),w.current=!1),g.enteringChildren=void 0)}),g}function Gct(e,t,r,i){const{layoutId:n,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:che(e.parent)),e.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:!!s||o&&hv(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}function che(e){if(e)return e.options.allowProjection!==!1?e.projection:che(e.parent)}function z9(e,{forwardMotionProps:t=!1,type:r}={},i,n){i&&kct(i);const a=r?r==="svg":$9(e),s=a?Uct:zct;function o(u,h){let d;const f={...(0,Ne.useContext)(B9),...u,layoutId:Wct(u)},{isStatic:p}=f,g=Nct(u),y=s(u,p);if(!p&&typeof window<"u"){Yct(f,i);const b=jct(f);d=b.MeasureLayout,g.visualElement=qct(e,y,f,n,b.ProjectionNode,a)}return(0,Pe.jsxs)(G3.Provider,{value:g,children:[d&&g.visualElement?(0,Pe.jsx)(d,{visualElement:g.visualElement,...f}):null,Bct(e,u,Vct(y,g.visualElement,h),y,p,t,a)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=(0,Ne.forwardRef)(o);return l[Hct]=e,l}function Wct({layoutId:e}){const t=(0,Ne.useContext)(IO).id;return t&&e!==void 0?t+"-"+e:e}function Yct(e,t){(0,Ne.useContext)(Zue).strict}function jct(e){const{drag:t,layout:r}=the();if(!t&&!r)return{};const i={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Xct(e,t){if(typeof Proxy>"u")return z9;const r=new Map,i=(a,s)=>z9(a,s,e,t),n=(a,s)=>i(a,s);return new Proxy(n,{get:(a,s)=>s==="create"?i:(r.has(s)||r.set(s,z9(s,void 0,e,t)),r.get(s))})}var Kct=(e,t)=>t.isSVG??$9(e)?new klt(t):new vlt(t,{allowProjection:e!==Ne.Fragment}),Qct=class extends pp{constructor(e){super(e),e.animationState||(e.animationState=Llt(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();O3(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Zct=0,Jct=class extends pp{constructor(){super(...arguments),this.id=Zct++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&r===!1){if(this.isExitComplete){const{initial:n,custom:a}=this.node.getProps();if(typeof n=="string"){const s=F0(this.node,n,a);if(s){const{transition:o,transitionEnd:l,...u}=s;for(const h in u)this.node.getValue(h)?.jump(u[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}},eut={animation:{Feature:Qct},exit:{Feature:Jct}};function VT(e){return{point:{x:e.pageX,y:e.pageY}}}var tut=e=>t=>T9(t)&&e(t,VT(t));function qT(e,t,r,i){return HT(e,t,tut(r),i)}var uhe=({current:e})=>e?e.ownerDocument.defaultView:null,hhe=(e,t)=>Math.abs(e-t);function rut(e,t){const r=hhe(e.x,t.x),i=hhe(e.y,t.y);return Math.sqrt(r**2+i**2)}var dhe=new Set(["auto","scroll"]),fhe=class{constructor(e,t,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:n=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=W3(this.lastRawMoveEventInfo,this.transformPagePoint));const d=U9(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=rut(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!p)return;const{point:g}=d,{timestamp:y}=ls;this.history.push({...g,timestamp:y});const{onStart:b,onMove:T}=this.handlers;f||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=f,this.lastMoveEventInfo=W3(f,this.transformPagePoint),an.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=U9(d.type==="pointercancel"?this.lastMoveEventInfo:W3(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),g&&g(d,b)},!T9(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const o=W3(VT(e),this.transformPagePoint),{point:l}=o,{timestamp:u}=ls;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=t;h&&h(e,U9(o,this.history)),this.removeListeners=NT(qT(this.contextWindow,"pointermove",this.handlePointerMove),qT(this.contextWindow,"pointerup",this.handlePointerUp),qT(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){const r=getComputedStyle(t);(dhe.has(r.overflowX)||dhe.has(r.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const r=e===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:i.x-t.x,y:i.y-t.y};n.x===0&&n.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,i),an.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hp(this.updatePoint)}};function W3(e,t){return t?{point:t(e.point)}:e}function phe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function U9({point:e},t){return{point:e,delta:phe(e,ghe(t)),offset:phe(e,iut(t)),velocity:nut(t,.1)}}function iut(e){return e[0]}function ghe(e){return e[e.length-1]}function nut(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null;const n=ghe(e);for(;r>=0&&(i=e[r],!(n.timestamp-i.timestamp>Io(t)));)r--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&n.timestamp-i.timestamp>Io(t)*2&&(i=e[1]);const a=Ul(n.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const s={x:(n.x-i.x)/a,y:(n.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function aut(e,{min:t,max:r},i){return t!==void 0&&e<t?e=i?vn(t,e,i.min):Math.max(e,t):r!==void 0&&e>r&&(e=i?vn(r,e,i.max):Math.min(e,r)),e}function mhe(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function sut(e,{top:t,left:r,bottom:i,right:n}){return{x:mhe(e.x,r,n),y:mhe(e.y,t,i)}}function yhe(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function out(e,t){return{x:yhe(e.x,t.x),y:yhe(e.y,t.y)}}function lut(e,t){let r=.5;const i=ao(e),n=ao(t);return n>i?r=DT(t.min,t.max-i,e.min):i>n&&(r=DT(e.min,e.max-n,t.min)),Pu(0,1,r)}function cut(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var H9=.35;function uut(e=H9){return e===!1?e=0:e===!0&&(e=H9),{x:vhe(e,"left","right"),y:vhe(e,"top","bottom")}}function vhe(e,t,r){return{min:bhe(e,t),max:bhe(e,r)}}function bhe(e,t){return typeof e=="number"?e:e[t]||0}var hut=new WeakMap,dut=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ia(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const n=h=>{t&&this.snapToCursor(VT(h).point),this.stopAnimation()},a=(h,d)=>{const{drag:f,dragPropagation:p,onDragStart:g}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bot(f),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zu(b=>{let T=this.getAxisMotionValue(b).get()||0;if(Fu.test(T)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[b];x&&(T=ao(x)*(parseFloat(T)/100))}}this.originPoint[b]=T}),g&&an.update(()=>g(h,d),!1,!0),p9(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:g,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=d;if(p&&this.currentDirection===null){this.currentDirection=put(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&an.update(()=>y(h,d),!1,!0)},o=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new fhe(e,{onSessionStart:n,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:uhe(this.visualElement),element:this.visualElement.current})}stop(e,t){const r=e||this.latestPointerEvent,i=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&an.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){const{drag:i}=this.getProps();if(!r||!Y3(e,i,this.currentDirection))return;const n=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=aut(a,this.constraints[e],this.elastic[e])),n.set(a)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&hv(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=sut(r.layoutBox,e):this.constraints=!1,this.elastic=uut(t),i!==this.constraints&&!hv(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&zu(n=>{this.constraints!==!1&&this.getAxisMotionValue(n)&&(this.constraints[n]=cut(r.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!hv(e))return!1;const r=e.current;rv(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const n=dlt(r,i.root,this.visualElement.getTransformPagePoint());let a=out(i.layout.layoutBox,n);if(t){const s=t(clt(a));this.hasMutatedConstraints=!!s,s&&(a=Xce(s))}return a}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{},l=zu(u=>{if(!Y3(u,t,this.currentDirection))return;let h=o&&o[u]||{};(a===!0||a===u)&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:r?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...n,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return p9(this.visualElement,e),r.start(h9(e,r,0,t,this.visualElement,!1))}stopAnimation(){zu(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[t];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){zu(t=>{const{drag:r}=this.getProps();if(!Y3(t,r,this.currentDirection))return;const{projection:i}=this.visualElement,n=this.getAxisMotionValue(t);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[t],o=n.get()||0;n.set(e[t]-vn(a,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!hv(t)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};zu(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const o=s.get();i[a]=lut({min:o,max:o},this.constraints[a])}});const{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),zu(a=>{if(!Y3(a,e,null))return;const s=this.getAxisMotionValue(a),{min:o,max:l}=this.constraints[a];s.set(vn(o,l,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hut.set(this.visualElement,this);const e=this.visualElement.current,t=qT(e,"pointerdown",l=>{const{drag:u,dragListener:h=!0}=this.getProps(),d=l.target,f=d!==e&&Vot(d);u&&h&&!f&&this.start(l)});let r;const i=()=>{const{dragConstraints:l}=this.getProps();hv(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),r||(r=fut(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,a=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),an.read(i);const s=HT(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(zu(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=l[h].translate,d.set(d.get()+l[h].translate))}),this.visualElement.render())}));return()=>{s(),t(),a(),o&&o(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:a=H9,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:a,dragMomentum:s}}};function xhe(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function fut(e,t,r){const i=Uce(e,xhe(r)),n=Uce(t,xhe(r));return()=>{i(),n()}}function Y3(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function put(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var gut=class extends pp{constructor(e){super(e),this.removeGroupControls=zl,this.removeListeners=zl,this.controls=new dut(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||zl}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},V9=e=>(t,r)=>{e&&an.update(()=>e(t,r),!1,!0)},mut=class extends pp{constructor(){super(...arguments),this.removePointerDownListener=zl}onPointerDown(e){this.session=new fhe(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uhe(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:V9(e),onStart:V9(t),onMove:V9(r),onEnd:(n,a)=>{delete this.session,i&&an.postRender(()=>i(n,a))}}}mount(){this.removePointerDownListener=qT(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},q9=!1,yut=class extends Ne.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),r&&r.register&&i&&r.register(n),q9&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),H3.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:i,isPresent:n}=this.props,{projection:a}=r;return a&&(a.isPresent=n,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),q9=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==n?a.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?a.promote():a.relegate()||an.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),x9.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:i}=e;q9=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function The(e){const[t,r]=Xue(),i=(0,Ne.useContext)(IO);return(0,Pe.jsx)(yut,{...e,layoutGroup:i,switchLayoutGroup:(0,Ne.useContext)(lhe),isPresent:t,safeToRemove:r})}var vut={pan:{Feature:mut},drag:{Feature:gut,ProjectionNode:Yue,MeasureLayout:The}};function whe(e,t,r){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",r==="Start");const n=i["onHover"+r];n&&an.postRender(()=>n(t,VT(t)))}var but=class extends pp{mount(){const{current:e}=this.node;e&&(this.unmount=$ot(e,(t,r)=>(whe(this.node,r,"Start"),i=>whe(this.node,i,"End"))))}unmount(){}},xut=class extends pp{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=NT(HT(this.node.current,"focus",()=>this.onFocus()),HT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Ehe(e,t,r){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",r==="Start");const n=i["onTap"+(r==="End"?"":r)];n&&an.postRender(()=>n(t,VT(t)))}var Tut=class extends pp{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=Got(e,(i,n)=>(Ehe(this.node,n,"Start"),(a,{success:s})=>Ehe(this.node,a,s?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}},G9=new WeakMap,W9=new WeakMap,wut=e=>{const t=G9.get(e.target);t&&t(e)},Eut=e=>{e.forEach(wut)};function kut({root:e,...t}){const r=e||document;W9.has(r)||W9.set(r,{});const i=W9.get(r),n=JSON.stringify(t);return i[n]||(i[n]=new IntersectionObserver(Eut,{root:e,...t})),i[n]}function Cut(e,t,r){const i=kut(t);return G9.set(e,r),i.observe(e),()=>{G9.delete(e),i.unobserve(e)}}var Sut={some:0,all:1},_ut=class extends pp{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:i="some",once:n}=e,a={root:t?t.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Sut[i]},s=o=>{const{isIntersecting:l}=o;if(this.isInView===l||(this.isInView=l,n&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=l?u:h;d&&d(o)};this.stopObserver=Cut(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(Aut(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Aut({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var Lut={inView:{Feature:_ut},tap:{Feature:Tut},focus:{Feature:xut},hover:{Feature:but}},Rut={layout:{ProjectionNode:Yue,MeasureLayout:The}},Nut={...eut,...Lut,...vut,...Rut},Hl=Xct(Nut,Kct);function khe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Che(...e){return t=>{let r=!1;const i=e.map(n=>{const a=khe(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<i.length;n++){const a=i[n];typeof a=="function"?a():khe(e[n],null)}}}}function H0(...e){return Ne.useCallback(Che(...e),e)}function V0(e){const t=Iut(e),r=Ne.forwardRef((i,n)=>{const{children:a,...s}=i,o=Ne.Children.toArray(a),l=o.find(Out);if(l){const u=l.props.children,h=o.map(d=>d===l?Ne.Children.count(u)>1?Ne.Children.only(null):Ne.isValidElement(u)?u.props.children:null:d);return(0,Pe.jsx)(t,{...s,ref:n,children:Ne.isValidElement(u)?Ne.cloneElement(u,void 0,h):null})}return(0,Pe.jsx)(t,{...s,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}var Dut=V0("Slot");function Iut(e){const t=Ne.forwardRef((r,i)=>{const{children:n,...a}=r;if(Ne.isValidElement(n)){const s=But(n),o=Put(a,n.props);return n.type!==Ne.Fragment&&(o.ref=i?Che(i,s):s),Ne.cloneElement(n,o)}return Ne.Children.count(n)>1?Ne.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mut=Symbol("radix.slottable");function Out(e){return Ne.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mut}function Put(e,t){const r={...t};for(const i in t){const n=e[i],a=t[i];/^on[A-Z]/.test(i)?n&&a?r[i]=(...s)=>{const o=a(...s);return n(...s),o}:n&&(r[i]=n):i==="style"?r[i]={...n,...a}:i==="className"&&(r[i]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function But(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Fut(e,t){const r=Ne.createContext(t),i=a=>{const{children:s,...o}=a,l=Ne.useMemo(()=>o,Object.values(o));return(0,Pe.jsx)(r.Provider,{value:l,children:s})};i.displayName=e+"Provider";function n(a){const s=Ne.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,n]}function She(e,t=[]){let r=[];function i(a,s){const o=Ne.createContext(s),l=r.length;r=[...r,s];const u=d=>{const{scope:f,children:p,...g}=d,y=f?.[e]?.[l]||o,b=Ne.useMemo(()=>g,Object.values(g));return(0,Pe.jsx)(y.Provider,{value:b,children:p})};u.displayName=a+"Provider";function h(d,f){const p=f?.[e]?.[l]||o,g=Ne.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[u,h]}const n=()=>{const a=r.map(s=>Ne.createContext(s));return function(o){const l=o?.[e]||a;return Ne.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return n.scopeName=e,[i,$ut(n,...t)]}function $ut(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const s=i.reduce((o,{useScope:l,scopeName:u})=>{const h=l(a)[`__scope${u}`];return{...o,...h}},{});return Ne.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var jGt=!!(typeof window<"u"&&window.document&&window.document.createElement);function gp(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var mp=globalThis?.document?Ne.useLayoutEffect:()=>{},zut=Ne[" useInsertionEffect ".trim().toString()]||mp;function Uut({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[n,a,s]=Hut({defaultProp:t,onChange:r}),o=e!==void 0,l=o?e:n;{const u=Ne.useRef(e!==void 0);Ne.useEffect(()=>{const h=u.current;h!==o&&console.warn(`${i} is changing from ${h?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=o},[o,i])}return[l,Ne.useCallback(u=>{if(o){const h=Vut(u)?u(e):u;h!==e&&s.current?.(h)}else a(u)},[o,e,a,s])]}function Hut({defaultProp:e,onChange:t}){const[r,i]=Ne.useState(e),n=Ne.useRef(r),a=Ne.useRef(t);return zut(()=>{a.current=t},[t]),Ne.useEffect(()=>{n.current!==r&&(a.current?.(r),n.current=r)},[r,n]),[r,i,a]}function Vut(e){return typeof e=="function"}function qut(e,t){return Ne.useReducer((r,i)=>t[r][i]??r,e)}var j3=e=>{const{present:t,children:r}=e,i=Gut(t),n=typeof r=="function"?r({present:i.isPresent}):Ne.Children.only(r),a=H0(i.ref,Wut(n));return typeof r=="function"||i.isPresent?Ne.cloneElement(n,{ref:a}):null};j3.displayName="Presence";function Gut(e){const[t,r]=Ne.useState(),i=Ne.useRef(null),n=Ne.useRef(e),a=Ne.useRef("none"),[s,o]=qut(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ne.useEffect(()=>{const l=X3(i.current);a.current=s==="mounted"?l:"none"},[s]),mp(()=>{const l=i.current,u=n.current;if(u!==e){const h=a.current,d=X3(l);e?o("MOUNT"):d==="none"||l?.display==="none"?o("UNMOUNT"):o(u&&h!==d?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,o]),mp(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,h=f=>{const p=X3(i.current).includes(CSS.escape(f.animationName));if(f.target===t&&p&&(o("ANIMATION_END"),!n.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},d=f=>{f.target===t&&(a.current=X3(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else o("ANIMATION_END")},[t,o]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Ne.useCallback(l=>{i.current=l?getComputedStyle(l):null,r(l)},[])}}function X3(e){return e?.animationName||"none"}function Wut(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Yut=Ne[" useId ".trim().toString()]||(()=>{}),jut=0;function Y9(e){const[t,r]=Ne.useState(Yut());return mp(()=>{e||r(i=>i??String(jut++))},[e]),e||(t?`radix-${t}`:"")}var _he=Wa(lO(),1),Ahe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Xut(e,t){e&&_he.flushSync(()=>e.dispatchEvent(t))}function dv(e){const t=Ne.useRef(e);return Ne.useEffect(()=>{t.current=e}),Ne.useMemo(()=>(...r)=>t.current?.(...r),[])}function Kut(e,t=globalThis?.document){const r=dv(e);Ne.useEffect(()=>{const i=n=>{n.key==="Escape"&&r(n)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[r,t])}var Qut="DismissableLayer",j9="dismissableLayer.update",Zut="dismissableLayer.pointerDownOutside",Jut="dismissableLayer.focusOutside",Lhe,Rhe=Ne.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nhe=Ne.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=Ne.useContext(Rhe),[h,d]=Ne.useState(null),f=h?.ownerDocument??globalThis?.document,[,p]=Ne.useState({}),g=H0(t,S=>d(S)),y=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),T=y.indexOf(b),w=h?y.indexOf(h):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,C=w>=T,L=rht(S=>{const A=S.target,P=[...u.branches].some(O=>O.contains(A));!C||P||(n?.(S),s?.(S),S.defaultPrevented||o?.())},f),_=iht(S=>{const A=S.target;[...u.branches].some(P=>P.contains(A))||(a?.(S),s?.(S),S.defaultPrevented||o?.())},f);return Kut(S=>{w===u.layers.size-1&&(i?.(S),!S.defaultPrevented&&o&&(S.preventDefault(),o()))},f),Ne.useEffect(()=>{if(h)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Lhe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Dhe(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Lhe)}},[h,f,r,u]),Ne.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Dhe())},[h,u]),Ne.useEffect(()=>{const S=()=>p({});return document.addEventListener(j9,S),()=>document.removeEventListener(j9,S)},[]),(0,Pe.jsx)(Ahe.div,{...l,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:gp(e.onFocusCapture,_.onFocusCapture),onBlurCapture:gp(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:gp(e.onPointerDownCapture,L.onPointerDownCapture)})});Nhe.displayName=Qut;var eht="DismissableLayerBranch",tht=Ne.forwardRef((e,t)=>{const r=Ne.useContext(Rhe),i=Ne.useRef(null),n=H0(t,i);return Ne.useEffect(()=>{const a=i.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),(0,Pe.jsx)(Ahe.div,{...e,ref:n})});tht.displayName=eht;function rht(e,t=globalThis?.document){const r=dv(e),i=Ne.useRef(!1),n=Ne.useRef(()=>{});return Ne.useEffect(()=>{const a=o=>{if(o.target&&!i.current){let l=function(){Ihe(Zut,r,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=l,t.addEventListener("click",n.current,{once:!0})):l()}else t.removeEventListener("click",n.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}function iht(e,t=globalThis?.document){const r=dv(e),i=Ne.useRef(!1);return Ne.useEffect(()=>{const n=a=>{a.target&&!i.current&&Ihe(Jut,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Dhe(){const e=new CustomEvent(j9);document.dispatchEvent(e)}function Ihe(e,t,r,{discrete:i}){const n=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),i?Xut(n,a):n.dispatchEvent(a)}var nht=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),X9="focusScope.autoFocusOnMount",K9="focusScope.autoFocusOnUnmount",Mhe={bubbles:!1,cancelable:!0},aht="FocusScope",Ohe=Ne.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...s}=e,[o,l]=Ne.useState(null),u=dv(n),h=dv(a),d=Ne.useRef(null),f=H0(t,y=>l(y)),p=Ne.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ne.useEffect(()=>{if(i){let y=function(x){if(p.paused||!o)return;const C=x.target;o.contains(C)?d.current=C:yp(d.current,{select:!0})},b=function(x){if(p.paused||!o)return;const C=x.relatedTarget;C!==null&&(o.contains(C)||yp(d.current,{select:!0}))},T=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&yp(o)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const w=new MutationObserver(T);return o&&w.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),w.disconnect()}}},[i,o,p.paused]),Ne.useEffect(()=>{if(o){Fhe.add(p);const y=document.activeElement;if(!o.contains(y)){const b=new CustomEvent(X9,Mhe);o.addEventListener(X9,u),o.dispatchEvent(b),b.defaultPrevented||(sht(hht(Phe(o)),{select:!0}),document.activeElement===y&&yp(o))}return()=>{o.removeEventListener(X9,u),setTimeout(()=>{const b=new CustomEvent(K9,Mhe);o.addEventListener(K9,h),o.dispatchEvent(b),b.defaultPrevented||yp(y??document.body,{select:!0}),o.removeEventListener(K9,h),Fhe.remove(p)},0)}}},[o,u,h,p]);const g=Ne.useCallback(y=>{if(!r&&!i||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,T=document.activeElement;if(b&&T){const w=y.currentTarget,[x,C]=oht(w);x&&C?!y.shiftKey&&T===C?(y.preventDefault(),r&&yp(x,{select:!0})):y.shiftKey&&T===x&&(y.preventDefault(),r&&yp(C,{select:!0})):T===w&&y.preventDefault()}},[r,i,p.paused]);return(0,Pe.jsx)(nht.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});Ohe.displayName=aht;function sht(e,{select:t=!1}={}){const r=document.activeElement;for(const i of e)if(yp(i,{select:t}),document.activeElement!==r)return}function oht(e){const t=Phe(e);return[Bhe(t,e),Bhe(t.reverse(),e)]}function Phe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const n=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||n?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Bhe(e,t){for(const r of e)if(!lht(r,{upTo:t}))return r}function lht(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cht(e){return e instanceof HTMLInputElement&&"select"in e}function yp(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&cht(e)&&t&&e.select()}}var Fhe=uht();function uht(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=$he(e,t),e.unshift(t)},remove(t){e=$he(e,t),e[0]?.resume()}}}function $he(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function hht(e){return e.filter(t=>t.tagName!=="A")}var dht=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),fht="Portal",zhe=Ne.forwardRef((e,t)=>{const{container:r,...i}=e,[n,a]=Ne.useState(!1);mp(()=>a(!0),[]);const s=r||n&&globalThis?.document?.body;return s?_he.createPortal((0,Pe.jsx)(dht.div,{...i,ref:t}),s):null});zhe.displayName=fht;var GT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),Q9=0;function pht(){Ne.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Uhe()),document.body.insertAdjacentElement("beforeend",e[1]??Uhe()),Q9++,()=>{Q9===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Q9--}},[])}function Uhe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Uu=function(){return Uu=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Uu.apply(this,arguments)};function Hhe(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function ght(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,a;i<n;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var K3="right-scroll-bar-position",Q3="width-before-scroll-bar",mht="with-scroll-bars-hidden",yht="--removed-body-scroll-bar-size";function Z9(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vht(e,t){var r=(0,Ne.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var n=r.value;n!==i&&(r.value=i,r.callback(i,n))}}}})[0];return r.callback=t,r.facade}var bht=typeof window<"u"?Ne.useLayoutEffect:Ne.useEffect,Vhe=new WeakMap;function xht(e,t){var r=vht(t||null,function(i){return e.forEach(function(n){return Z9(n,i)})});return bht(function(){var i=Vhe.get(r);if(i){var n=new Set(i),a=new Set(e),s=r.current;n.forEach(function(o){a.has(o)||Z9(o,null)}),a.forEach(function(o){n.has(o)||Z9(o,s)})}Vhe.set(r,e)},[e]),r}function Tht(e){return e}function wht(e,t){t===void 0&&(t=Tht);var r=[],i=!1;return{read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(n){var a=t(n,i);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(n){for(i=!0;r.length;){var a=r;r=[],a.forEach(n)}r={push:function(s){return n(s)},filter:function(){return r}}},assignMedium:function(n){i=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(n),a=r}var o=function(){var u=a;a=[],u.forEach(n)},l=function(){return Promise.resolve().then(o)};l(),r={push:function(u){a.push(u),l()},filter:function(u){return a=a.filter(u),r}}}}}function Eht(e){e===void 0&&(e={});var t=wht(null);return t.options=Uu({async:!0,ssr:!1},e),t}var qhe=function(e){var t=e.sideCar,r=Hhe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return Ne.createElement(i,Uu({},r))};qhe.isSideCarExport=!0;function kht(e,t){return e.useMedium(t),qhe}var Ghe=Eht(),J9=function(){},Z3=Ne.forwardRef(function(e,t){var r=Ne.useRef(null),i=Ne.useState({onScrollCapture:J9,onWheelCapture:J9,onTouchMoveCapture:J9}),n=i[0],a=i[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,h=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,y=e.inert,b=e.allowPinchZoom,T=e.as,w=T===void 0?"div":T,x=e.gapMode,C=Hhe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=f,_=xht([r,t]),S=Uu(Uu({},C),n);return Ne.createElement(Ne.Fragment,null,h&&Ne.createElement(L,{sideCar:Ghe,removeScrollBar:u,shards:d,noRelative:p,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:x}),s?Ne.cloneElement(Ne.Children.only(o),Uu(Uu({},S),{ref:_})):Ne.createElement(w,Uu({},S,{className:l,ref:_}),o))});Z3.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Z3.classNames={fullWidth:Q3,zeroRight:K3};var Whe,Cht=function(){if(Whe)return Whe;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sht(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cht();return t&&e.setAttribute("nonce",t),e}function _ht(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Aht(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var Lht=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Sht())&&(_ht(t,r),Aht(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rht=function(){var e=Lht();return function(t,r){Ne.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Yhe=function(){var e=Rht(),t=function(r){var i=r.styles,n=r.dynamic;return e(i,n),null};return t},Nht={left:0,top:0,right:0,gap:0},eP=function(e){return parseInt(e||"",10)||0},Dht=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[eP(r),eP(i),eP(n)]},Iht=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nht;var t=Dht(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},Mht=Yhe(),WT="data-scroll-locked",Oht=function(e,t,r,i){var n=e.left,a=e.top,s=e.right,o=e.gap;return r===void 0&&(r="margin"),`
|
|
18
|
+
`),()=>{o.current?.removeAttribute("data-motion-pop-id"),C.contains(x)&&C.removeChild(x)}},[t]),(0,Pe.jsx)(bct,{isPresent:t,childRef:o,sizeRef:l,pop:a,children:a===!1?e:Ne.cloneElement(e,{ref:h})})}var Tct=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:n,presenceAffectsLayout:a,mode:s,anchorX:o,anchorY:l,root:u})=>{const h=MO(wct),d=(0,Ne.useId)();let f=!0,p=(0,Ne.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:r,custom:n,onExitComplete:g=>{h.set(g,!0);for(const y of h.values())if(!y)return;i&&i()},register:g=>(h.set(g,!1),()=>h.delete(g))}),[r,h,i]);return a&&f&&(p={...p}),(0,Ne.useMemo)(()=>{h.forEach((g,y)=>h.set(y,!1))},[r]),Ne.useEffect(()=>{!r&&!h.size&&i&&i()},[r]),e=(0,Pe.jsx)(xct,{pop:s==="popLayout",isPresent:r,anchorX:o,anchorY:l,root:u,children:e}),(0,Pe.jsx)(x3.Provider,{value:p,children:e})};function wct(){return new Map}function Xue(e=!0){const t=(0,Ne.useContext)(x3);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:i,register:n}=t,a=(0,Ne.useId)();(0,Ne.useEffect)(()=>{if(e)return n(a)},[e]);const s=(0,Ne.useCallback)(()=>e&&i&&i(a),[a,i,e]);return!r&&i?[!1,s]:[!0]}var V3=e=>e.key||"";function Kue(e){const t=[];return Ne.Children.forEach(e,r=>{(0,Ne.isValidElement)(r)&&t.push(r)}),t}var Que=({children:e,custom:t,initial:r=!0,onExitComplete:i,presenceAffectsLayout:n=!0,mode:a="sync",propagate:s=!1,anchorX:o="left",anchorY:l="top",root:u})=>{const[h,d]=Xue(s),f=(0,Ne.useMemo)(()=>Kue(e),[e]),p=s&&!h?[]:f.map(V3),g=(0,Ne.useRef)(!0),y=(0,Ne.useRef)(f),b=MO(()=>new Map),T=(0,Ne.useRef)(new Set),[w,x]=(0,Ne.useState)(f),[C,L]=(0,Ne.useState)(f);yle(()=>{g.current=!1,y.current=f;for(let A=0;A<C.length;A++){const P=V3(C[A]);p.includes(P)?(b.delete(P),T.current.delete(P)):b.get(P)!==!0&&b.set(P,!1)}},[C,p.length,p.join("-")]);const _=[];if(f!==w){let A=[...f];for(let P=0;P<C.length;P++){const O=C[P],M=V3(O);p.includes(M)||(A.splice(P,0,O),_.push(O))}return a==="wait"&&_.length&&(A=_),L(Kue(A)),x(f),null}const{forceRender:S}=(0,Ne.useContext)(IO);return(0,Pe.jsx)(Pe.Fragment,{children:C.map(A=>{const P=V3(A),O=s&&!h?!1:f===C||p.includes(P),M=()=>{if(T.current.has(P))return;if(b.has(P))T.current.add(P),b.set(P,!0);else return;let U=!0;b.forEach(R=>{R||(U=!1)}),U&&(S?.(),L(y.current),s&&d?.(),i&&i())};return(0,Pe.jsx)(Tct,{isPresent:O,initial:!g.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:a,root:u,onExitComplete:O?void 0:M,anchorX:o,anchorY:l,children:A},P)})})},Zue=(0,Ne.createContext)({strict:!1}),Jue={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ehe=!1;function Ect(){if(ehe)return;const e={};for(const t in Jue)e[t]={isEnabled:r=>Jue[t].some(i=>!!r[i])};Yce(e),ehe=!0}function the(){return Ect(),olt()}function kct(e){const t=the();for(const r in e)t[r]={...t[r],...e[r]};Yce(t)}var Cct=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function q3(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Cct.has(e)}var Sct=Rr({default:()=>rhe}),rhe,_ct=V((()=>{throw rhe={},new Error('Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?')})),ihe=e=>!q3(e);function Act(e){typeof e=="function"&&(ihe=t=>t.startsWith("on")?!q3(t):e(t))}try{Act((_ct(),h3(Sct)).default)}catch{}function Lct(e,t,r){const i={};for(const n in e)n==="values"&&typeof e.values=="object"||cs(e[n])||(ihe(n)||r===!0&&q3(n)||!t&&!q3(n)||e.draggable&&n.startsWith("onDrag"))&&(i[n]=e[n]);return i}var G3=(0,Ne.createContext)({});function Rct(e,t){if(P3(e)){const{initial:r,animate:i}=e;return{initial:r===!1||$T(r)?r:void 0,animate:$T(i)?i:void 0}}return e.inherit!==!1?t:{}}function Nct(e){const{initial:t,animate:r}=Rct(e,(0,Ne.useContext)(G3));return(0,Ne.useMemo)(()=>({initial:t,animate:r}),[nhe(t),nhe(r)])}function nhe(e){return Array.isArray(e)?e.join(" "):e}var F9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ahe(e,t,r){for(const i in t)!cs(t[i])&&!oue(i,r)&&(e[i]=t[i])}function Dct({transformTemplate:e},t){return(0,Ne.useMemo)(()=>{const r=F9();return R9(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Ict(e,t){const r=e.style||{},i={};return ahe(i,r,e),Object.assign(i,Dct(e,t)),i}function Mct(e,t){const r={},i=Ict(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}var she=()=>({...F9(),attrs:{}});function Oct(e,t,r,i){const n=(0,Ne.useMemo)(()=>{const a=she();return lue(a,t,uue(i),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};ahe(a,e.style,e),n.style={...a,...n.style}}return n}var Pct=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $9(e){return typeof e!="string"||e.includes("-")?!1:!!(Pct.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bct(e,t,r,{latestValues:i},n,a=!1,s){const o=(s??$9(e)?Oct:Mct)(t,i,n,e),l=Lct(t,typeof e=="string",a),u=e!==Ne.Fragment?{...l,...o,ref:r}:{},{children:h}=t,d=(0,Ne.useMemo)(()=>cs(h)?h.get():h,[h]);return(0,Ne.createElement)(e,{...u,children:d})}function Fct({scrapeMotionValuesFromProps:e,createRenderState:t},r,i,n){return{latestValues:$ct(r,i,n,e),renderState:t()}}function $ct(e,t,r,i){const n={},a=i(e,{});for(const f in a)n[f]=U3(a[f]);let{initial:s,animate:o}=e;const l=P3(e),u=qce(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let h=r?r.initial===!1:!1;h=h||s===!1;const d=h?o:s;if(d&&typeof d!="boolean"&&!O3(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const g=d9(e,f[p]);if(g){const{transitionEnd:y,transition:b,...T}=g;for(const w in T){let x=T[w];if(Array.isArray(x)){const C=h?x.length-1:0;x=x[C]}x!==null&&(n[w]=x)}for(const w in y)n[w]=y[w]}}}return n}var ohe=e=>(t,r)=>{const i=(0,Ne.useContext)(G3),n=(0,Ne.useContext)(x3),a=()=>Fct(e,t,i,n);return r?a():MO(a)},zct=ohe({scrapeMotionValuesFromProps:D9,createRenderState:F9}),Uct=ohe({scrapeMotionValuesFromProps:hue,createRenderState:she}),Hct=Symbol.for("motionComponentSymbol");function Vct(e,t,r){const i=(0,Ne.useRef)(r);(0,Ne.useInsertionEffect)(()=>{i.current=r});const n=(0,Ne.useRef)(null);return(0,Ne.useCallback)(a=>{a&&e.onMount?.(a);const s=i.current;if(typeof s=="function")if(a){const o=s(a);typeof o=="function"&&(n.current=o)}else n.current?(n.current(),n.current=null):s(a);else s&&(s.current=a);t&&(a?t.mount(a):t.unmount())},[t])}var lhe=(0,Ne.createContext)({});function hv(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qct(e,t,r,i,n,a){const{visualElement:s}=(0,Ne.useContext)(G3),o=(0,Ne.useContext)(Zue),l=(0,Ne.useContext)(x3),u=(0,Ne.useContext)(B9),h=u.reducedMotion,d=u.skipAnimations,f=(0,Ne.useRef)(null),p=(0,Ne.useRef)(!1);i=i||o.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:s,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:h,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const g=f.current,y=(0,Ne.useContext)(lhe);g&&!g.projection&&n&&(g.type==="html"||g.type==="svg")&&Gct(f.current,r,n,y);const b=(0,Ne.useRef)(!1);(0,Ne.useInsertionEffect)(()=>{g&&b.current&&g.update(r,l)});const T=r[Ece],w=(0,Ne.useRef)(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return yle(()=>{p.current=!0,g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),w.current&&g.animationState&&g.animationState.animateChanges())}),(0,Ne.useEffect)(()=>{g&&(!w.current&&g.animationState&&g.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),w.current=!1),g.enteringChildren=void 0)}),g}function Gct(e,t,r,i){const{layoutId:n,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:che(e.parent)),e.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:!!s||o&&hv(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}function che(e){if(e)return e.options.allowProjection!==!1?e.projection:che(e.parent)}function z9(e,{forwardMotionProps:t=!1,type:r}={},i,n){i&&kct(i);const a=r?r==="svg":$9(e),s=a?Uct:zct;function o(u,h){let d;const f={...(0,Ne.useContext)(B9),...u,layoutId:Wct(u)},{isStatic:p}=f,g=Nct(u),y=s(u,p);if(!p&&typeof window<"u"){Yct(f,i);const b=jct(f);d=b.MeasureLayout,g.visualElement=qct(e,y,f,n,b.ProjectionNode,a)}return(0,Pe.jsxs)(G3.Provider,{value:g,children:[d&&g.visualElement?(0,Pe.jsx)(d,{visualElement:g.visualElement,...f}):null,Bct(e,u,Vct(y,g.visualElement,h),y,p,t,a)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=(0,Ne.forwardRef)(o);return l[Hct]=e,l}function Wct({layoutId:e}){const t=(0,Ne.useContext)(IO).id;return t&&e!==void 0?t+"-"+e:e}function Yct(e,t){(0,Ne.useContext)(Zue).strict}function jct(e){const{drag:t,layout:r}=the();if(!t&&!r)return{};const i={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Xct(e,t){if(typeof Proxy>"u")return z9;const r=new Map,i=(a,s)=>z9(a,s,e,t),n=(a,s)=>i(a,s);return new Proxy(n,{get:(a,s)=>s==="create"?i:(r.has(s)||r.set(s,z9(s,void 0,e,t)),r.get(s))})}var Kct=(e,t)=>t.isSVG??$9(e)?new klt(t):new vlt(t,{allowProjection:e!==Ne.Fragment}),Qct=class extends pp{constructor(e){super(e),e.animationState||(e.animationState=Llt(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();O3(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Zct=0,Jct=class extends pp{constructor(){super(...arguments),this.id=Zct++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&r===!1){if(this.isExitComplete){const{initial:n,custom:a}=this.node.getProps();if(typeof n=="string"){const s=F0(this.node,n,a);if(s){const{transition:o,transitionEnd:l,...u}=s;for(const h in u)this.node.getValue(h)?.jump(u[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}},eut={animation:{Feature:Qct},exit:{Feature:Jct}};function VT(e){return{point:{x:e.pageX,y:e.pageY}}}var tut=e=>t=>T9(t)&&e(t,VT(t));function qT(e,t,r,i){return HT(e,t,tut(r),i)}var uhe=({current:e})=>e?e.ownerDocument.defaultView:null,hhe=(e,t)=>Math.abs(e-t);function rut(e,t){const r=hhe(e.x,t.x),i=hhe(e.y,t.y);return Math.sqrt(r**2+i**2)}var dhe=new Set(["auto","scroll"]),fhe=class{constructor(e,t,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:n=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=W3(this.lastRawMoveEventInfo,this.transformPagePoint));const d=U9(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=rut(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!p)return;const{point:g}=d,{timestamp:y}=ls;this.history.push({...g,timestamp:y});const{onStart:b,onMove:T}=this.handlers;f||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=f,this.lastMoveEventInfo=W3(f,this.transformPagePoint),an.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=U9(d.type==="pointercancel"?this.lastMoveEventInfo:W3(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),g&&g(d,b)},!T9(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const o=W3(VT(e),this.transformPagePoint),{point:l}=o,{timestamp:u}=ls;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=t;h&&h(e,U9(o,this.history)),this.removeListeners=NT(qT(this.contextWindow,"pointermove",this.handlePointerMove),qT(this.contextWindow,"pointerup",this.handlePointerUp),qT(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){const r=getComputedStyle(t);(dhe.has(r.overflowX)||dhe.has(r.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const r=e===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:i.x-t.x,y:i.y-t.y};n.x===0&&n.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,i),an.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hp(this.updatePoint)}};function W3(e,t){return t?{point:t(e.point)}:e}function phe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function U9({point:e},t){return{point:e,delta:phe(e,ghe(t)),offset:phe(e,iut(t)),velocity:nut(t,.1)}}function iut(e){return e[0]}function ghe(e){return e[e.length-1]}function nut(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null;const n=ghe(e);for(;r>=0&&(i=e[r],!(n.timestamp-i.timestamp>Io(t)));)r--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&n.timestamp-i.timestamp>Io(t)*2&&(i=e[1]);const a=Ul(n.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const s={x:(n.x-i.x)/a,y:(n.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function aut(e,{min:t,max:r},i){return t!==void 0&&e<t?e=i?vn(t,e,i.min):Math.max(e,t):r!==void 0&&e>r&&(e=i?vn(r,e,i.max):Math.min(e,r)),e}function mhe(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function sut(e,{top:t,left:r,bottom:i,right:n}){return{x:mhe(e.x,r,n),y:mhe(e.y,t,i)}}function yhe(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function out(e,t){return{x:yhe(e.x,t.x),y:yhe(e.y,t.y)}}function lut(e,t){let r=.5;const i=ao(e),n=ao(t);return n>i?r=DT(t.min,t.max-i,e.min):i>n&&(r=DT(e.min,e.max-n,t.min)),Pu(0,1,r)}function cut(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var H9=.35;function uut(e=H9){return e===!1?e=0:e===!0&&(e=H9),{x:vhe(e,"left","right"),y:vhe(e,"top","bottom")}}function vhe(e,t,r){return{min:bhe(e,t),max:bhe(e,r)}}function bhe(e,t){return typeof e=="number"?e:e[t]||0}var hut=new WeakMap,dut=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ia(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const n=h=>{t&&this.snapToCursor(VT(h).point),this.stopAnimation()},a=(h,d)=>{const{drag:f,dragPropagation:p,onDragStart:g}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bot(f),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zu(b=>{let T=this.getAxisMotionValue(b).get()||0;if(Fu.test(T)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[b];x&&(T=ao(x)*(parseFloat(T)/100))}}this.originPoint[b]=T}),g&&an.update(()=>g(h,d),!1,!0),p9(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:g,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=d;if(p&&this.currentDirection===null){this.currentDirection=put(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&an.update(()=>y(h,d),!1,!0)},o=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new fhe(e,{onSessionStart:n,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:uhe(this.visualElement),element:this.visualElement.current})}stop(e,t){const r=e||this.latestPointerEvent,i=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&an.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){const{drag:i}=this.getProps();if(!r||!Y3(e,i,this.currentDirection))return;const n=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=aut(a,this.constraints[e],this.elastic[e])),n.set(a)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&hv(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=sut(r.layoutBox,e):this.constraints=!1,this.elastic=uut(t),i!==this.constraints&&!hv(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&zu(n=>{this.constraints!==!1&&this.getAxisMotionValue(n)&&(this.constraints[n]=cut(r.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!hv(e))return!1;const r=e.current;rv(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const n=dlt(r,i.root,this.visualElement.getTransformPagePoint());let a=out(i.layout.layoutBox,n);if(t){const s=t(clt(a));this.hasMutatedConstraints=!!s,s&&(a=Xce(s))}return a}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{},l=zu(u=>{if(!Y3(u,t,this.currentDirection))return;let h=o&&o[u]||{};(a===!0||a===u)&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:r?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...n,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return p9(this.visualElement,e),r.start(h9(e,r,0,t,this.visualElement,!1))}stopAnimation(){zu(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[t];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){zu(t=>{const{drag:r}=this.getProps();if(!Y3(t,r,this.currentDirection))return;const{projection:i}=this.visualElement,n=this.getAxisMotionValue(t);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[t],o=n.get()||0;n.set(e[t]-vn(a,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!hv(t)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};zu(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const o=s.get();i[a]=lut({min:o,max:o},this.constraints[a])}});const{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),zu(a=>{if(!Y3(a,e,null))return;const s=this.getAxisMotionValue(a),{min:o,max:l}=this.constraints[a];s.set(vn(o,l,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hut.set(this.visualElement,this);const e=this.visualElement.current,t=qT(e,"pointerdown",l=>{const{drag:u,dragListener:h=!0}=this.getProps(),d=l.target,f=d!==e&&Vot(d);u&&h&&!f&&this.start(l)});let r;const i=()=>{const{dragConstraints:l}=this.getProps();hv(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),r||(r=fut(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,a=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),an.read(i);const s=HT(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(zu(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=l[h].translate,d.set(d.get()+l[h].translate))}),this.visualElement.render())}));return()=>{s(),t(),a(),o&&o(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:a=H9,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:a,dragMomentum:s}}};function xhe(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function fut(e,t,r){const i=Uce(e,xhe(r)),n=Uce(t,xhe(r));return()=>{i(),n()}}function Y3(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function put(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var gut=class extends pp{constructor(e){super(e),this.removeGroupControls=zl,this.removeListeners=zl,this.controls=new dut(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||zl}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},V9=e=>(t,r)=>{e&&an.update(()=>e(t,r),!1,!0)},mut=class extends pp{constructor(){super(...arguments),this.removePointerDownListener=zl}onPointerDown(e){this.session=new fhe(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uhe(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:V9(e),onStart:V9(t),onMove:V9(r),onEnd:(n,a)=>{delete this.session,i&&an.postRender(()=>i(n,a))}}}mount(){this.removePointerDownListener=qT(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},q9=!1,yut=class extends Ne.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),r&&r.register&&i&&r.register(n),q9&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),H3.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:i,isPresent:n}=this.props,{projection:a}=r;return a&&(a.isPresent=n,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),q9=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==n?a.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?a.promote():a.relegate()||an.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),x9.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:i}=e;q9=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function The(e){const[t,r]=Xue(),i=(0,Ne.useContext)(IO);return(0,Pe.jsx)(yut,{...e,layoutGroup:i,switchLayoutGroup:(0,Ne.useContext)(lhe),isPresent:t,safeToRemove:r})}var vut={pan:{Feature:mut},drag:{Feature:gut,ProjectionNode:Yue,MeasureLayout:The}};function whe(e,t,r){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",r==="Start");const n=i["onHover"+r];n&&an.postRender(()=>n(t,VT(t)))}var but=class extends pp{mount(){const{current:e}=this.node;e&&(this.unmount=$ot(e,(t,r)=>(whe(this.node,r,"Start"),i=>whe(this.node,i,"End"))))}unmount(){}},xut=class extends pp{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=NT(HT(this.node.current,"focus",()=>this.onFocus()),HT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Ehe(e,t,r){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",r==="Start");const n=i["onTap"+(r==="End"?"":r)];n&&an.postRender(()=>n(t,VT(t)))}var Tut=class extends pp{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=Got(e,(i,n)=>(Ehe(this.node,n,"Start"),(a,{success:s})=>Ehe(this.node,a,s?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}},G9=new WeakMap,W9=new WeakMap,wut=e=>{const t=G9.get(e.target);t&&t(e)},Eut=e=>{e.forEach(wut)};function kut({root:e,...t}){const r=e||document;W9.has(r)||W9.set(r,{});const i=W9.get(r),n=JSON.stringify(t);return i[n]||(i[n]=new IntersectionObserver(Eut,{root:e,...t})),i[n]}function Cut(e,t,r){const i=kut(t);return G9.set(e,r),i.observe(e),()=>{G9.delete(e),i.unobserve(e)}}var Sut={some:0,all:1},_ut=class extends pp{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:i="some",once:n}=e,a={root:t?t.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Sut[i]},s=o=>{const{isIntersecting:l}=o;if(this.isInView===l||(this.isInView=l,n&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=l?u:h;d&&d(o)};this.stopObserver=Cut(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(Aut(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Aut({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var Lut={inView:{Feature:_ut},tap:{Feature:Tut},focus:{Feature:xut},hover:{Feature:but}},Rut={layout:{ProjectionNode:Yue,MeasureLayout:The}},Nut={...eut,...Lut,...vut,...Rut},Hl=Xct(Nut,Kct);function khe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Che(...e){return t=>{let r=!1;const i=e.map(n=>{const a=khe(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<i.length;n++){const a=i[n];typeof a=="function"?a():khe(e[n],null)}}}}function H0(...e){return Ne.useCallback(Che(...e),e)}function V0(e){const t=Iut(e),r=Ne.forwardRef((i,n)=>{const{children:a,...s}=i,o=Ne.Children.toArray(a),l=o.find(Out);if(l){const u=l.props.children,h=o.map(d=>d===l?Ne.Children.count(u)>1?Ne.Children.only(null):Ne.isValidElement(u)?u.props.children:null:d);return(0,Pe.jsx)(t,{...s,ref:n,children:Ne.isValidElement(u)?Ne.cloneElement(u,void 0,h):null})}return(0,Pe.jsx)(t,{...s,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}var Dut=V0("Slot");function Iut(e){const t=Ne.forwardRef((r,i)=>{const{children:n,...a}=r;if(Ne.isValidElement(n)){const s=But(n),o=Put(a,n.props);return n.type!==Ne.Fragment&&(o.ref=i?Che(i,s):s),Ne.cloneElement(n,o)}return Ne.Children.count(n)>1?Ne.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mut=Symbol("radix.slottable");function Out(e){return Ne.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mut}function Put(e,t){const r={...t};for(const i in t){const n=e[i],a=t[i];/^on[A-Z]/.test(i)?n&&a?r[i]=(...s)=>{const o=a(...s);return n(...s),o}:n&&(r[i]=n):i==="style"?r[i]={...n,...a}:i==="className"&&(r[i]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function But(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Fut(e,t){const r=Ne.createContext(t),i=a=>{const{children:s,...o}=a,l=Ne.useMemo(()=>o,Object.values(o));return(0,Pe.jsx)(r.Provider,{value:l,children:s})};i.displayName=e+"Provider";function n(a){const s=Ne.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,n]}function She(e,t=[]){let r=[];function i(a,s){const o=Ne.createContext(s),l=r.length;r=[...r,s];const u=d=>{const{scope:f,children:p,...g}=d,y=f?.[e]?.[l]||o,b=Ne.useMemo(()=>g,Object.values(g));return(0,Pe.jsx)(y.Provider,{value:b,children:p})};u.displayName=a+"Provider";function h(d,f){const p=f?.[e]?.[l]||o,g=Ne.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[u,h]}const n=()=>{const a=r.map(s=>Ne.createContext(s));return function(o){const l=o?.[e]||a;return Ne.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return n.scopeName=e,[i,$ut(n,...t)]}function $ut(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const s=i.reduce((o,{useScope:l,scopeName:u})=>{const h=l(a)[`__scope${u}`];return{...o,...h}},{});return Ne.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var YGt=!!(typeof window<"u"&&window.document&&window.document.createElement);function gp(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var mp=globalThis?.document?Ne.useLayoutEffect:()=>{},zut=Ne[" useInsertionEffect ".trim().toString()]||mp;function Uut({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[n,a,s]=Hut({defaultProp:t,onChange:r}),o=e!==void 0,l=o?e:n;{const u=Ne.useRef(e!==void 0);Ne.useEffect(()=>{const h=u.current;h!==o&&console.warn(`${i} is changing from ${h?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=o},[o,i])}return[l,Ne.useCallback(u=>{if(o){const h=Vut(u)?u(e):u;h!==e&&s.current?.(h)}else a(u)},[o,e,a,s])]}function Hut({defaultProp:e,onChange:t}){const[r,i]=Ne.useState(e),n=Ne.useRef(r),a=Ne.useRef(t);return zut(()=>{a.current=t},[t]),Ne.useEffect(()=>{n.current!==r&&(a.current?.(r),n.current=r)},[r,n]),[r,i,a]}function Vut(e){return typeof e=="function"}function qut(e,t){return Ne.useReducer((r,i)=>t[r][i]??r,e)}var j3=e=>{const{present:t,children:r}=e,i=Gut(t),n=typeof r=="function"?r({present:i.isPresent}):Ne.Children.only(r),a=H0(i.ref,Wut(n));return typeof r=="function"||i.isPresent?Ne.cloneElement(n,{ref:a}):null};j3.displayName="Presence";function Gut(e){const[t,r]=Ne.useState(),i=Ne.useRef(null),n=Ne.useRef(e),a=Ne.useRef("none"),[s,o]=qut(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ne.useEffect(()=>{const l=X3(i.current);a.current=s==="mounted"?l:"none"},[s]),mp(()=>{const l=i.current,u=n.current;if(u!==e){const h=a.current,d=X3(l);e?o("MOUNT"):d==="none"||l?.display==="none"?o("UNMOUNT"):o(u&&h!==d?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,o]),mp(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,h=f=>{const p=X3(i.current).includes(CSS.escape(f.animationName));if(f.target===t&&p&&(o("ANIMATION_END"),!n.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},d=f=>{f.target===t&&(a.current=X3(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else o("ANIMATION_END")},[t,o]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Ne.useCallback(l=>{i.current=l?getComputedStyle(l):null,r(l)},[])}}function X3(e){return e?.animationName||"none"}function Wut(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Yut=Ne[" useId ".trim().toString()]||(()=>{}),jut=0;function Y9(e){const[t,r]=Ne.useState(Yut());return mp(()=>{e||r(i=>i??String(jut++))},[e]),e||(t?`radix-${t}`:"")}var _he=Wa(lO(),1),Ahe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Xut(e,t){e&&_he.flushSync(()=>e.dispatchEvent(t))}function dv(e){const t=Ne.useRef(e);return Ne.useEffect(()=>{t.current=e}),Ne.useMemo(()=>(...r)=>t.current?.(...r),[])}function Kut(e,t=globalThis?.document){const r=dv(e);Ne.useEffect(()=>{const i=n=>{n.key==="Escape"&&r(n)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[r,t])}var Qut="DismissableLayer",j9="dismissableLayer.update",Zut="dismissableLayer.pointerDownOutside",Jut="dismissableLayer.focusOutside",Lhe,Rhe=Ne.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nhe=Ne.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=Ne.useContext(Rhe),[h,d]=Ne.useState(null),f=h?.ownerDocument??globalThis?.document,[,p]=Ne.useState({}),g=H0(t,S=>d(S)),y=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),T=y.indexOf(b),w=h?y.indexOf(h):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,C=w>=T,L=rht(S=>{const A=S.target,P=[...u.branches].some(O=>O.contains(A));!C||P||(n?.(S),s?.(S),S.defaultPrevented||o?.())},f),_=iht(S=>{const A=S.target;[...u.branches].some(P=>P.contains(A))||(a?.(S),s?.(S),S.defaultPrevented||o?.())},f);return Kut(S=>{w===u.layers.size-1&&(i?.(S),!S.defaultPrevented&&o&&(S.preventDefault(),o()))},f),Ne.useEffect(()=>{if(h)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Lhe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Dhe(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Lhe)}},[h,f,r,u]),Ne.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Dhe())},[h,u]),Ne.useEffect(()=>{const S=()=>p({});return document.addEventListener(j9,S),()=>document.removeEventListener(j9,S)},[]),(0,Pe.jsx)(Ahe.div,{...l,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:gp(e.onFocusCapture,_.onFocusCapture),onBlurCapture:gp(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:gp(e.onPointerDownCapture,L.onPointerDownCapture)})});Nhe.displayName=Qut;var eht="DismissableLayerBranch",tht=Ne.forwardRef((e,t)=>{const r=Ne.useContext(Rhe),i=Ne.useRef(null),n=H0(t,i);return Ne.useEffect(()=>{const a=i.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),(0,Pe.jsx)(Ahe.div,{...e,ref:n})});tht.displayName=eht;function rht(e,t=globalThis?.document){const r=dv(e),i=Ne.useRef(!1),n=Ne.useRef(()=>{});return Ne.useEffect(()=>{const a=o=>{if(o.target&&!i.current){let l=function(){Ihe(Zut,r,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=l,t.addEventListener("click",n.current,{once:!0})):l()}else t.removeEventListener("click",n.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}function iht(e,t=globalThis?.document){const r=dv(e),i=Ne.useRef(!1);return Ne.useEffect(()=>{const n=a=>{a.target&&!i.current&&Ihe(Jut,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Dhe(){const e=new CustomEvent(j9);document.dispatchEvent(e)}function Ihe(e,t,r,{discrete:i}){const n=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),i?Xut(n,a):n.dispatchEvent(a)}var nht=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),X9="focusScope.autoFocusOnMount",K9="focusScope.autoFocusOnUnmount",Mhe={bubbles:!1,cancelable:!0},aht="FocusScope",Ohe=Ne.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:n,onUnmountAutoFocus:a,...s}=e,[o,l]=Ne.useState(null),u=dv(n),h=dv(a),d=Ne.useRef(null),f=H0(t,y=>l(y)),p=Ne.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ne.useEffect(()=>{if(i){let y=function(x){if(p.paused||!o)return;const C=x.target;o.contains(C)?d.current=C:yp(d.current,{select:!0})},b=function(x){if(p.paused||!o)return;const C=x.relatedTarget;C!==null&&(o.contains(C)||yp(d.current,{select:!0}))},T=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&yp(o)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const w=new MutationObserver(T);return o&&w.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),w.disconnect()}}},[i,o,p.paused]),Ne.useEffect(()=>{if(o){Fhe.add(p);const y=document.activeElement;if(!o.contains(y)){const b=new CustomEvent(X9,Mhe);o.addEventListener(X9,u),o.dispatchEvent(b),b.defaultPrevented||(sht(hht(Phe(o)),{select:!0}),document.activeElement===y&&yp(o))}return()=>{o.removeEventListener(X9,u),setTimeout(()=>{const b=new CustomEvent(K9,Mhe);o.addEventListener(K9,h),o.dispatchEvent(b),b.defaultPrevented||yp(y??document.body,{select:!0}),o.removeEventListener(K9,h),Fhe.remove(p)},0)}}},[o,u,h,p]);const g=Ne.useCallback(y=>{if(!r&&!i||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,T=document.activeElement;if(b&&T){const w=y.currentTarget,[x,C]=oht(w);x&&C?!y.shiftKey&&T===C?(y.preventDefault(),r&&yp(x,{select:!0})):y.shiftKey&&T===x&&(y.preventDefault(),r&&yp(C,{select:!0})):T===w&&y.preventDefault()}},[r,i,p.paused]);return(0,Pe.jsx)(nht.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});Ohe.displayName=aht;function sht(e,{select:t=!1}={}){const r=document.activeElement;for(const i of e)if(yp(i,{select:t}),document.activeElement!==r)return}function oht(e){const t=Phe(e);return[Bhe(t,e),Bhe(t.reverse(),e)]}function Phe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const n=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||n?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Bhe(e,t){for(const r of e)if(!lht(r,{upTo:t}))return r}function lht(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cht(e){return e instanceof HTMLInputElement&&"select"in e}function yp(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&cht(e)&&t&&e.select()}}var Fhe=uht();function uht(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=$he(e,t),e.unshift(t)},remove(t){e=$he(e,t),e[0]?.resume()}}}function $he(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function hht(e){return e.filter(t=>t.tagName!=="A")}var dht=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),fht="Portal",zhe=Ne.forwardRef((e,t)=>{const{container:r,...i}=e,[n,a]=Ne.useState(!1);mp(()=>a(!0),[]);const s=r||n&&globalThis?.document?.body;return s?_he.createPortal((0,Pe.jsx)(dht.div,{...i,ref:t}),s):null});zhe.displayName=fht;var GT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),Q9=0;function pht(){Ne.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Uhe()),document.body.insertAdjacentElement("beforeend",e[1]??Uhe()),Q9++,()=>{Q9===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Q9--}},[])}function Uhe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Uu=function(){return Uu=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Uu.apply(this,arguments)};function Hhe(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function ght(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,a;i<n;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var K3="right-scroll-bar-position",Q3="width-before-scroll-bar",mht="with-scroll-bars-hidden",yht="--removed-body-scroll-bar-size";function Z9(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vht(e,t){var r=(0,Ne.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var n=r.value;n!==i&&(r.value=i,r.callback(i,n))}}}})[0];return r.callback=t,r.facade}var bht=typeof window<"u"?Ne.useLayoutEffect:Ne.useEffect,Vhe=new WeakMap;function xht(e,t){var r=vht(t||null,function(i){return e.forEach(function(n){return Z9(n,i)})});return bht(function(){var i=Vhe.get(r);if(i){var n=new Set(i),a=new Set(e),s=r.current;n.forEach(function(o){a.has(o)||Z9(o,null)}),a.forEach(function(o){n.has(o)||Z9(o,s)})}Vhe.set(r,e)},[e]),r}function Tht(e){return e}function wht(e,t){t===void 0&&(t=Tht);var r=[],i=!1;return{read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(n){var a=t(n,i);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(n){for(i=!0;r.length;){var a=r;r=[],a.forEach(n)}r={push:function(s){return n(s)},filter:function(){return r}}},assignMedium:function(n){i=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(n),a=r}var o=function(){var u=a;a=[],u.forEach(n)},l=function(){return Promise.resolve().then(o)};l(),r={push:function(u){a.push(u),l()},filter:function(u){return a=a.filter(u),r}}}}}function Eht(e){e===void 0&&(e={});var t=wht(null);return t.options=Uu({async:!0,ssr:!1},e),t}var qhe=function(e){var t=e.sideCar,r=Hhe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return Ne.createElement(i,Uu({},r))};qhe.isSideCarExport=!0;function kht(e,t){return e.useMedium(t),qhe}var Ghe=Eht(),J9=function(){},Z3=Ne.forwardRef(function(e,t){var r=Ne.useRef(null),i=Ne.useState({onScrollCapture:J9,onWheelCapture:J9,onTouchMoveCapture:J9}),n=i[0],a=i[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,h=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,y=e.inert,b=e.allowPinchZoom,T=e.as,w=T===void 0?"div":T,x=e.gapMode,C=Hhe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=f,_=xht([r,t]),S=Uu(Uu({},C),n);return Ne.createElement(Ne.Fragment,null,h&&Ne.createElement(L,{sideCar:Ghe,removeScrollBar:u,shards:d,noRelative:p,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:x}),s?Ne.cloneElement(Ne.Children.only(o),Uu(Uu({},S),{ref:_})):Ne.createElement(w,Uu({},S,{className:l,ref:_}),o))});Z3.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Z3.classNames={fullWidth:Q3,zeroRight:K3};var Whe,Cht=function(){if(Whe)return Whe;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sht(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cht();return t&&e.setAttribute("nonce",t),e}function _ht(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Aht(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var Lht=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Sht())&&(_ht(t,r),Aht(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rht=function(){var e=Lht();return function(t,r){Ne.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Yhe=function(){var e=Rht(),t=function(r){var i=r.styles,n=r.dynamic;return e(i,n),null};return t},Nht={left:0,top:0,right:0,gap:0},eP=function(e){return parseInt(e||"",10)||0},Dht=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[eP(r),eP(i),eP(n)]},Iht=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nht;var t=Dht(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},Mht=Yhe(),WT="data-scroll-locked",Oht=function(e,t,r,i){var n=e.left,a=e.top,s=e.right,o=e.gap;return r===void 0&&(r="margin"),`
|
|
19
19
|
.`.concat(mht,` {
|
|
20
20
|
overflow: hidden `).concat(i,`;
|
|
21
21
|
padding-right: `).concat(o,"px ").concat(i,`;
|
|
@@ -55,11 +55,11 @@ Error generating stack: `+N.message+`
|
|
|
55
55
|
`)},jhe=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},Pht=function(){Ne.useEffect(function(){return document.body.setAttribute(WT,(jhe()+1).toString()),function(){var e=jhe()-1;e<=0?document.body.removeAttribute(WT):document.body.setAttribute(WT,e.toString())}},[])},Bht=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,n=i===void 0?"margin":i;Pht();var a=Ne.useMemo(function(){return Iht(n)},[n]);return Ne.createElement(Mht,{styles:Oht(a,!t,n,r?"":"!important")})},tP=!1;if(typeof window<"u")try{var J3=Object.defineProperty({},"passive",{get:function(){return tP=!0,!0}});window.addEventListener("test",J3,J3),window.removeEventListener("test",J3,J3)}catch{tP=!1}var fv=tP?{passive:!1}:!1,Fht=function(e){return e.tagName==="TEXTAREA"},Xhe=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Fht(e)&&r[t]==="visible")},$ht=function(e){return Xhe(e,"overflowY")},zht=function(e){return Xhe(e,"overflowX")},Khe=function(e,t){var r=t.ownerDocument,i=t;do{if(typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host),Qhe(e,i)){var n=Zhe(e,i);if(n[1]>n[2])return!0}i=i.parentNode}while(i&&i!==r.body);return!1},Uht=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Hht=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Qhe=function(e,t){return e==="v"?$ht(t):zht(t)},Zhe=function(e,t){return e==="v"?Uht(t):Hht(t)},Vht=function(e,t){return e==="h"&&t==="rtl"?-1:1},qht=function(e,t,r,i,n){var a=Vht(e,window.getComputedStyle(t).direction),s=a*i,o=r.target,l=t.contains(o),u=!1,h=s>0,d=0,f=0;do{if(!o)break;var p=Zhe(e,o),g=p[0],y=p[1]-p[2]-a*g;(g||y)&&Qhe(e,o)&&(d+=y,f+=g);var b=o.parentNode;o=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(h&&(n&&Math.abs(d)<1||!n&&s>d)||!h&&(n&&Math.abs(f)<1||!n&&-s>f))&&(u=!0),u},e_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jhe=function(e){return[e.deltaX,e.deltaY]},ede=function(e){return e&&"current"in e?e.current:e},Ght=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Wht=function(e){return`
|
|
56
56
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
57
57
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
58
|
-
`)},Yht=0,pv=[];function jht(e){var t=Ne.useRef([]),r=Ne.useRef([0,0]),i=Ne.useRef(),n=Ne.useState(Yht++)[0],a=Ne.useState(Yhe)[0],s=Ne.useRef(e);Ne.useEffect(function(){s.current=e},[e]),Ne.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var y=ght([e.lockRef.current],(e.shards||[]).map(ede),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var o=Ne.useCallback(function(y,b){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var T=e_(y),w=r.current,x="deltaX"in y?y.deltaX:w[0]-T[0],C="deltaY"in y?y.deltaY:w[1]-T[1],L,_=y.target,S=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in y&&S==="h"&&_.type==="range")return!1;var A=window.getSelection(),P=A&&A.anchorNode;if(P&&(P===_||P.contains(_)))return!1;var O=Khe(S,_);if(!O)return!0;if(O?L=S:(L=S==="v"?"h":"v",O=Khe(S,_)),!O)return!1;if(!i.current&&"changedTouches"in y&&(x||C)&&(i.current=L),!L)return!0;var M=i.current||L;return qht(M,b,y,M==="h"?x:C,!0)},[]),l=Ne.useCallback(function(y){var b=y;if(!(!pv.length||pv[pv.length-1]!==a)){var T="deltaY"in b?Jhe(b):e_(b),w=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&Ght(C.delta,T)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(s.current.shards||[]).map(ede).filter(Boolean).filter(function(C){return C.contains(b.target)});(x.length>0?o(b,x[0]):!s.current.noIsolation)&&b.cancelable&&b.preventDefault()}}},[]),u=Ne.useCallback(function(y,b,T,w){var x={name:y,delta:b,target:T,should:w,shadowParent:Xht(T)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),h=Ne.useCallback(function(y){r.current=e_(y),i.current=void 0},[]),d=Ne.useCallback(function(y){u(y.type,Jhe(y),y.target,o(y,e.lockRef.current))},[]),f=Ne.useCallback(function(y){u(y.type,e_(y),y.target,o(y,e.lockRef.current))},[]);Ne.useEffect(function(){return pv.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,fv),document.addEventListener("touchmove",l,fv),document.addEventListener("touchstart",h,fv),function(){pv=pv.filter(function(y){return y!==a}),document.removeEventListener("wheel",l,fv),document.removeEventListener("touchmove",l,fv),document.removeEventListener("touchstart",h,fv)}},[]);var p=e.removeScrollBar,g=e.inert;return Ne.createElement(Ne.Fragment,null,g?Ne.createElement(a,{styles:Wht(n)}):null,p?Ne.createElement(Bht,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xht(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Kht=kht(Ghe,jht),tde=Ne.forwardRef(function(e,t){return Ne.createElement(Z3,Uu({},e,{ref:t,sideCar:Kht}))});tde.classNames=Z3.classNames;var Qht=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},gv=new WeakMap,t_=new WeakMap,r_={},rP=0,rde=function(e){return e&&(e.host||rde(e.parentNode))},Zht=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=rde(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Jht=function(e,t,r,i){var n=Zht(t,Array.isArray(e)?e:[e]);r_[r]||(r_[r]=new WeakMap);var a=r_[r],s=[],o=new Set,l=new Set(n),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};n.forEach(u);var h=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))h(f);else try{var p=f.getAttribute(i),g=p!==null&&p!=="false",y=(gv.get(f)||0)+1,b=(a.get(f)||0)+1;gv.set(f,y),a.set(f,b),s.push(f),y===1&&g&&t_.set(f,!0),b===1&&f.setAttribute(r,"true"),g||f.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",f,T)}})};return h(t),o.clear(),rP++,function(){s.forEach(function(d){var f=gv.get(d)-1,p=a.get(d)-1;gv.set(d,f),a.set(d,p),f||(t_.has(d)||d.removeAttribute(i),t_.delete(d)),p||d.removeAttribute(r)}),rP--,rP||(gv=new WeakMap,gv=new WeakMap,t_=new WeakMap,r_={})}},edt=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),n=t||Qht(e);return n?(i.push.apply(i,Array.from(n.querySelectorAll("[aria-live], script"))),Jht(i,n,r,"aria-hidden")):function(){return null}},i_="Dialog",[ide,
|
|
58
|
+
`)},Yht=0,pv=[];function jht(e){var t=Ne.useRef([]),r=Ne.useRef([0,0]),i=Ne.useRef(),n=Ne.useState(Yht++)[0],a=Ne.useState(Yhe)[0],s=Ne.useRef(e);Ne.useEffect(function(){s.current=e},[e]),Ne.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var y=ght([e.lockRef.current],(e.shards||[]).map(ede),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var o=Ne.useCallback(function(y,b){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var T=e_(y),w=r.current,x="deltaX"in y?y.deltaX:w[0]-T[0],C="deltaY"in y?y.deltaY:w[1]-T[1],L,_=y.target,S=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in y&&S==="h"&&_.type==="range")return!1;var A=window.getSelection(),P=A&&A.anchorNode;if(P&&(P===_||P.contains(_)))return!1;var O=Khe(S,_);if(!O)return!0;if(O?L=S:(L=S==="v"?"h":"v",O=Khe(S,_)),!O)return!1;if(!i.current&&"changedTouches"in y&&(x||C)&&(i.current=L),!L)return!0;var M=i.current||L;return qht(M,b,y,M==="h"?x:C,!0)},[]),l=Ne.useCallback(function(y){var b=y;if(!(!pv.length||pv[pv.length-1]!==a)){var T="deltaY"in b?Jhe(b):e_(b),w=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&Ght(C.delta,T)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(s.current.shards||[]).map(ede).filter(Boolean).filter(function(C){return C.contains(b.target)});(x.length>0?o(b,x[0]):!s.current.noIsolation)&&b.cancelable&&b.preventDefault()}}},[]),u=Ne.useCallback(function(y,b,T,w){var x={name:y,delta:b,target:T,should:w,shadowParent:Xht(T)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),h=Ne.useCallback(function(y){r.current=e_(y),i.current=void 0},[]),d=Ne.useCallback(function(y){u(y.type,Jhe(y),y.target,o(y,e.lockRef.current))},[]),f=Ne.useCallback(function(y){u(y.type,e_(y),y.target,o(y,e.lockRef.current))},[]);Ne.useEffect(function(){return pv.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,fv),document.addEventListener("touchmove",l,fv),document.addEventListener("touchstart",h,fv),function(){pv=pv.filter(function(y){return y!==a}),document.removeEventListener("wheel",l,fv),document.removeEventListener("touchmove",l,fv),document.removeEventListener("touchstart",h,fv)}},[]);var p=e.removeScrollBar,g=e.inert;return Ne.createElement(Ne.Fragment,null,g?Ne.createElement(a,{styles:Wht(n)}):null,p?Ne.createElement(Bht,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xht(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Kht=kht(Ghe,jht),tde=Ne.forwardRef(function(e,t){return Ne.createElement(Z3,Uu({},e,{ref:t,sideCar:Kht}))});tde.classNames=Z3.classNames;var Qht=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},gv=new WeakMap,t_=new WeakMap,r_={},rP=0,rde=function(e){return e&&(e.host||rde(e.parentNode))},Zht=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=rde(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Jht=function(e,t,r,i){var n=Zht(t,Array.isArray(e)?e:[e]);r_[r]||(r_[r]=new WeakMap);var a=r_[r],s=[],o=new Set,l=new Set(n),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};n.forEach(u);var h=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))h(f);else try{var p=f.getAttribute(i),g=p!==null&&p!=="false",y=(gv.get(f)||0)+1,b=(a.get(f)||0)+1;gv.set(f,y),a.set(f,b),s.push(f),y===1&&g&&t_.set(f,!0),b===1&&f.setAttribute(r,"true"),g||f.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",f,T)}})};return h(t),o.clear(),rP++,function(){s.forEach(function(d){var f=gv.get(d)-1,p=a.get(d)-1;gv.set(d,f),a.set(d,p),f||(t_.has(d)||d.removeAttribute(i),t_.delete(d)),p||d.removeAttribute(r)}),rP--,rP||(gv=new WeakMap,gv=new WeakMap,t_=new WeakMap,r_={})}},edt=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),n=t||Qht(e);return n?(i.push.apply(i,Array.from(n.querySelectorAll("[aria-live], script"))),Jht(i,n,r,"aria-hidden")):function(){return null}},i_="Dialog",[ide,jGt]=She(i_),[tdt,Ac]=ide(i_),nde=e=>{const{__scopeDialog:t,children:r,open:i,defaultOpen:n,onOpenChange:a,modal:s=!0}=e,o=Ne.useRef(null),l=Ne.useRef(null),[u,h]=Uut({prop:i,defaultProp:n??!1,onChange:a,caller:i_});return(0,Pe.jsx)(tdt,{scope:t,triggerRef:o,contentRef:l,contentId:Y9(),titleId:Y9(),descriptionId:Y9(),open:u,onOpenChange:h,onOpenToggle:Ne.useCallback(()=>h(d=>!d),[h]),modal:s,children:r})};nde.displayName=i_;var ade="DialogTrigger",rdt=Ne.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,n=Ac(ade,r),a=H0(t,n.triggerRef);return(0,Pe.jsx)(GT.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":aP(n.open),...i,ref:a,onClick:gp(e.onClick,n.onOpenToggle)})});rdt.displayName=ade;var iP="DialogPortal",[idt,sde]=ide(iP,{forceMount:void 0}),ode=e=>{const{__scopeDialog:t,forceMount:r,children:i,container:n}=e,a=Ac(iP,t);return(0,Pe.jsx)(idt,{scope:t,forceMount:r,children:Ne.Children.map(i,s=>(0,Pe.jsx)(j3,{present:r||a.open,children:(0,Pe.jsx)(zhe,{asChild:!0,container:n,children:s})}))})};ode.displayName=iP;var n_="DialogOverlay",lde=Ne.forwardRef((e,t)=>{const r=sde(n_,e.__scopeDialog),{forceMount:i=r.forceMount,...n}=e,a=Ac(n_,e.__scopeDialog);return a.modal?(0,Pe.jsx)(j3,{present:i||a.open,children:(0,Pe.jsx)(adt,{...n,ref:t})}):null});lde.displayName=n_;var ndt=V0("DialogOverlay.RemoveScroll"),adt=Ne.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,n=Ac(n_,r);return(0,Pe.jsx)(tde,{as:ndt,allowPinchZoom:!0,shards:[n.contentRef],children:(0,Pe.jsx)(GT.div,{"data-state":aP(n.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),q0="DialogContent",cde=Ne.forwardRef((e,t)=>{const r=sde(q0,e.__scopeDialog),{forceMount:i=r.forceMount,...n}=e,a=Ac(q0,e.__scopeDialog);return(0,Pe.jsx)(j3,{present:i||a.open,children:a.modal?(0,Pe.jsx)(sdt,{...n,ref:t}):(0,Pe.jsx)(odt,{...n,ref:t})})});cde.displayName=q0;var sdt=Ne.forwardRef((e,t)=>{const r=Ac(q0,e.__scopeDialog),i=Ne.useRef(null),n=H0(t,r.contentRef,i);return Ne.useEffect(()=>{const a=i.current;if(a)return edt(a)},[]),(0,Pe.jsx)(ude,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gp(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:gp(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,o=s.button===0&&s.ctrlKey===!0;(s.button===2||o)&&a.preventDefault()}),onFocusOutside:gp(e.onFocusOutside,a=>a.preventDefault())})}),odt=Ne.forwardRef((e,t)=>{const r=Ac(q0,e.__scopeDialog),i=Ne.useRef(!1),n=Ne.useRef(!1);return(0,Pe.jsx)(ude,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(i.current||r.triggerRef.current?.focus(),a.preventDefault()),i.current=!1,n.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const s=a.target;r.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&n.current&&a.preventDefault()}})}),ude=Ne.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:n,onCloseAutoFocus:a,...s}=e,o=Ac(q0,r),l=Ne.useRef(null),u=H0(t,l);return pht(),(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(Ohe,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:n,onUnmountAutoFocus:a,children:(0,Pe.jsx)(Nhe,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":aP(o.open),...s,ref:u,onDismiss:()=>o.onOpenChange(!1)})}),(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(cdt,{titleId:o.titleId}),(0,Pe.jsx)(hdt,{contentRef:l,descriptionId:o.descriptionId})]})]})}),nP="DialogTitle",hde=Ne.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,n=Ac(nP,r);return(0,Pe.jsx)(GT.h2,{id:n.titleId,...i,ref:t})});hde.displayName=nP;var dde="DialogDescription",ldt=Ne.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,n=Ac(dde,r);return(0,Pe.jsx)(GT.p,{id:n.descriptionId,...i,ref:t})});ldt.displayName=dde;var fde="DialogClose",pde=Ne.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,n=Ac(fde,r);return(0,Pe.jsx)(GT.button,{type:"button",...i,ref:t,onClick:gp(e.onClick,()=>n.onOpenChange(!1))})});pde.displayName=fde;function aP(e){return e?"open":"closed"}var gde="DialogTitleWarning",[XGt,mde]=Fut(gde,{contentName:q0,titleName:nP,docsSlug:"dialog"}),cdt=({titleId:e})=>{const t=mde(gde),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
59
59
|
|
|
60
60
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
61
61
|
|
|
62
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return Ne.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},udt="DialogDescriptionWarning",hdt=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mde(udt).contentName}}.`;return Ne.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ddt=nde,fdt=ode,pdt=lde,gdt=cde,mdt=hde,ydt=pde,sP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),vdt=lr((e=>{var t=Zy();function r(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var i=typeof Object.is=="function"?Object.is:r,n=t.useState,a=t.useEffect,s=t.useLayoutEffect,o=t.useDebugValue;function l(f,p){var g=p(),y=n({inst:{value:g,getSnapshot:p}}),b=y[0].inst,T=y[1];return s(function(){b.value=g,b.getSnapshot=p,u(b)&&T({inst:b})},[f,g,p]),a(function(){return u(b)&&T({inst:b}),f(function(){u(b)&&T({inst:b})})},[f]),o(g),g}function u(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!i(f,g)}catch{return!0}}function h(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:l;e.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d})),bdt=lr(((e,t)=>{t.exports=vdt()})),xdt=bdt();function Tdt(){return(0,xdt.useSyncExternalStore)(wdt,()=>!0,()=>!1)}function wdt(){return()=>{}}var oP="Avatar",[Edt,QGt]=She(oP),[kdt,yde]=Edt(oP),vde=Ne.forwardRef((e,t)=>{const{__scopeAvatar:r,...i}=e,[n,a]=Ne.useState("idle");return(0,Pe.jsx)(kdt,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:a,children:(0,Pe.jsx)(sP.span,{...i,ref:t})})});vde.displayName=oP;var bde="AvatarImage",xde=Ne.forwardRef((e,t)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:n=()=>{},...a}=e,s=yde(bde,r),o=Cdt(i,a),l=dv(u=>{n(u),s.onImageLoadingStatusChange(u)});return mp(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?(0,Pe.jsx)(sP.img,{...a,ref:t,src:i}):null});xde.displayName=bde;var Tde="AvatarFallback",wde=Ne.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:i,...n}=e,a=yde(Tde,r),[s,o]=Ne.useState(i===void 0);return Ne.useEffect(()=>{if(i!==void 0){const l=window.setTimeout(()=>o(!0),i);return()=>window.clearTimeout(l)}},[i]),s&&a.imageLoadingStatus!=="loaded"?(0,Pe.jsx)(sP.span,{...n,ref:t}):null});wde.displayName=Tde;function Ede(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Cdt(e,{referrerPolicy:t,crossOrigin:r}){const i=Tdt(),n=Ne.useRef(null),a=i?(n.current||(n.current=new window.Image),n.current):null,[s,o]=Ne.useState(()=>Ede(a,e));return mp(()=>{o(Ede(a,e))},[a,e]),mp(()=>{const l=d=>()=>{o(d)};if(!a)return;const u=l("loaded"),h=l("error");return a.addEventListener("load",u),a.addEventListener("error",h),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",h)}},[a,r,t]),s}var Sdt=vde,_dt=xde,Adt=wde;function YT({className:e,size:t="default",...r}){return(0,Pe.jsx)(Sdt,{"data-slot":"avatar","data-size":t,className:qr("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),...r})}function jT({className:e,...t}){return(0,Pe.jsx)(_dt,{"data-slot":"avatar-image",className:qr("aspect-square size-full rounded-full object-cover",e),...t})}function XT({className:e,...t}){return(0,Pe.jsx)(Adt,{"data-slot":"avatar-fallback",className:qr("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}hO();var kde=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Cde=p3,Sde=(e,t)=>r=>{var i;if(t?.variants==null)return Cde(e,r?.class,r?.className);const{variants:n,defaultVariants:a}=t,s=Object.keys(n).map(l=>{const u=r?.[l],h=a?.[l];if(u===null)return null;const d=kde(u)||kde(h);return n[l][d]}),o=r&&Object.entries(r).reduce((l,u)=>{let[h,d]=u;return d===void 0||(l[h]=d),l},{});return Cde(e,s,t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((l,u)=>{let{class:h,className:d,...f}=u;return Object.entries(f).every(p=>{let[g,y]=p;return Array.isArray(y)?y.includes({...a,...o}[g]):{...a,...o}[g]===y})?[...l,h,d]:l},[]),r?.class,r?.className)},Ldt=Sde("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Lc({className:e,variant:t="default",size:r="default",asChild:i=!1,...n}){return(0,Pe.jsx)(i?Dut:"button",{"data-slot":"button","data-variant":t,"data-size":r,className:qr(Ldt({variant:t,size:r,className:e})),...n})}function _de({className:e,...t}){return(0,Pe.jsx)("textarea",{"data-slot":"textarea",className:qr("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}var Rdt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ndt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Ade=e=>{const t=Ndt(e);return t.charAt(0).toUpperCase()+t.slice(1)},Lde=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),Ddt=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0},Idt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},Mdt=(0,Ne.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:n="",children:a,iconNode:s,...o},l)=>(0,Ne.createElement)("svg",{ref:l,...Idt,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:Lde("lucide",n),...!a&&!Ddt(o)&&{"aria-hidden":"true"},...o},[...s.map(([u,h])=>(0,Ne.createElement)(u,h)),...Array.isArray(a)?a:[a]])),Mo=(e,t)=>{const r=(0,Ne.forwardRef)(({className:i,...n},a)=>(0,Ne.createElement)(Mdt,{ref:a,iconNode:t,className:Lde(`lucide-${Rdt(Ade(e))}`,`lucide-${e}`,i),...n}));return r.displayName=Ade(e),r},Odt=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Pdt=Mo("arrow-down",Odt),Bdt=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],KT=Mo("chevron-down",Bdt),Fdt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$dt=Mo("circle-check",Fdt),zdt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Udt=Mo("circle-x",zdt),Hdt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Vdt=Mo("info",Hdt),qdt=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Gdt=Mo("message-circle-x",qdt),Wdt=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Ydt=Mo("message-square-text",Wdt),jdt=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Xdt=Mo("minimize-2",jdt),Kdt=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Qdt=Mo("phone",Kdt),Zdt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Jdt=Mo("search",Zdt),eft=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],tft=Mo("send-horizontal",eft),rft=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ift=Mo("send",rft),nft=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aft=Mo("sparkles",nft),sft=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],oft=Mo("video",sft),Rde=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),lft=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cft=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Nde=e=>{const t=cft(e);return t.charAt(0).toUpperCase()+t.slice(1)},lP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},uft=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},hft=(0,Ne.createContext)({}),dft=()=>(0,Ne.useContext)(hft),fft=(0,Ne.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:i,className:n="",children:a,iconNode:s,...o},l)=>{const{size:u=24,strokeWidth:h=2,absoluteStrokeWidth:d=!1,color:f="currentColor",className:p=""}=dft()??{},g=i??d?Number(r??h)*24/Number(t??u):r??h;return(0,Ne.createElement)("svg",{ref:l,...lP,width:t??u??lP.width,height:t??u??lP.height,stroke:e??f,strokeWidth:g,className:Rde("lucide",p,n),...!a&&!uft(o)&&{"aria-hidden":"true"},...o},[...s.map(([y,b])=>(0,Ne.createElement)(y,b)),...Array.isArray(a)?a:[a]])}),pft=(e,t)=>{const r=(0,Ne.forwardRef)(({className:i,...n},a)=>(0,Ne.createElement)(fft,{ref:a,iconNode:t,className:Rde(`lucide-${lft(Nde(e))}`,`lucide-${e}`,i),...n}));return r.displayName=Nde(e),r},gft=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mft=pft("x",gft);function yft({...e}){return(0,Pe.jsx)(ddt,{"data-slot":"dialog",...e})}function vft({...e}){return(0,Pe.jsx)(fdt,{"data-slot":"dialog-portal",...e})}function bft({className:e,...t}){return(0,Pe.jsx)(pdt,{"data-slot":"dialog-overlay",className:qr("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function xft({className:e,children:t,showCloseButton:r=!0,...i}){return(0,Pe.jsxs)(vft,{children:[(0,Pe.jsx)(bft,{}),(0,Pe.jsxs)(gdt,{"data-slot":"dialog-content",className:qr("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[t,r&&(0,Pe.jsx)(ydt,{"data-slot":"dialog-close",asChild:!0,children:(0,Pe.jsxs)(Lc,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[(0,Pe.jsx)(mft,{}),(0,Pe.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})}function Tft({className:e,...t}){return(0,Pe.jsx)(mdt,{"data-slot":"dialog-title",className:qr("font-heading text-base leading-none font-medium",e),...t})}var wft={damping:.7,stiffness:.05,mass:1.25},Eft=70,kft=1e3/60,Cft=350,a_=!1;globalThis.document?.addEventListener("mousedown",()=>{a_=!0}),globalThis.document?.addEventListener("mouseup",()=>{a_=!1}),globalThis.document?.addEventListener("click",()=>{a_=!1});var Sft=(e={})=>{const[t,r]=(0,Ne.useState)(!1),[i,n]=(0,Ne.useState)(e.initial!==!1),[a,s]=(0,Ne.useState)(!1),o=(0,Ne.useRef)(null);o.current=e;const l=(0,Ne.useCallback)(()=>{if(!a_)return!1;const w=window.getSelection();if(!w||!w.rangeCount)return!1;const x=w.getRangeAt(0);return x.commonAncestorContainer.contains(b.current)||b.current?.contains(x.commonAncestorContainer)},[]),u=(0,Ne.useCallback)(w=>{d.isAtBottom=w,n(w)},[]),h=(0,Ne.useCallback)(w=>{d.escapedFromLock=w,r(w)},[]),d=(0,Ne.useMemo)(()=>{let w;return{escapedFromLock:t,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return b.current?.scrollTop??0},set scrollTop(x){b.current&&(b.current.scrollTop=x,d.ignoreScrollToTop=b.current.scrollTop)},get targetScrollTop(){return!b.current||!T.current?0:b.current.scrollHeight-1-b.current.clientHeight},get calculatedTargetScrollTop(){if(!b.current||!T.current)return 0;const{targetScrollTop:x}=this;if(!e.targetScrollTop)return x;if(w?.targetScrollTop===x)return w.calculatedScrollTop;const C=Math.max(Math.min(e.targetScrollTop(x,{scrollElement:b.current,contentElement:T.current}),x),0);return w={targetScrollTop:x,calculatedScrollTop:C},requestAnimationFrame(()=>{w=void 0}),C},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=Eft}}},[]),f=(0,Ne.useCallback)((w={})=>{typeof w=="string"&&(w={animation:w}),w.preserveScrollPosition||u(!0);const x=Date.now()+(Number(w.wait)||0),C=uP(o.current,w.animation),{ignoreEscapes:L=!1}=w;let _,S=d.calculatedTargetScrollTop;w.duration instanceof Promise?w.duration.finally(()=>{_=Date.now()}):_=x+(w.duration??0);const A=async()=>{const P=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;const{scrollTop:O}=d,M=performance.now(),U=(M-(d.lastTick??M))/kft;if(d.animation||(d.animation={behavior:C,promise:P,ignoreEscapes:L}),d.animation.behavior===C&&(d.lastTick=M),l()||x>Date.now())return A();if(O<Math.min(S,d.calculatedTargetScrollTop)){if(d.animation?.behavior===C){if(C==="instant")return d.scrollTop=d.calculatedTargetScrollTop,A();d.velocity=(C.damping*d.velocity+C.stiffness*d.scrollDifference)/C.mass,d.accumulated+=d.velocity*U,d.scrollTop+=d.accumulated,d.scrollTop!==O&&(d.accumulated=0)}return A()}return _>Date.now()?(S=d.calculatedTargetScrollTop,A()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?f({animation:uP(o.current,o.current.resize),ignoreEscapes:L,duration:Math.max(0,_-Date.now())||void 0}):d.isAtBottom)});return P.then(O=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),O))};return w.wait!==!0&&(d.animation=void 0),d.animation?.behavior===C?d.animation.promise:A()},[u,l,d]),p=(0,Ne.useCallback)(()=>{h(!0),u(!1)},[h,u]),g=(0,Ne.useCallback)(({target:w})=>{if(w!==b.current)return;const{scrollTop:x,ignoreScrollToTop:C}=d;let{lastScrollTop:L=x}=d;d.lastScrollTop=x,d.ignoreScrollToTop=void 0,C&&C>x&&(L=C),s(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||x===C)return;if(l()){h(!0),u(!1);return}const _=x>L,S=x<L;if(d.animation?.ignoreEscapes){d.scrollTop=L;return}S&&(h(!0),u(!1)),_&&h(!1),!d.escapedFromLock&&d.isNearBottom&&u(!0)},1)},[h,u,l,d]),y=(0,Ne.useCallback)(({target:w,deltaY:x})=>{let C=w;for(;!["scroll","auto"].includes(getComputedStyle(C).overflow);){if(!C.parentElement)return;C=C.parentElement}C===b.current&&x<0&&b.current.scrollHeight>b.current.clientHeight&&!d.animation?.ignoreEscapes&&(h(!0),u(!1))},[h,u,d]),b=Dde(w=>{b.current?.removeEventListener("scroll",g),b.current?.removeEventListener("wheel",y),w?.addEventListener("scroll",g,{passive:!0}),w?.addEventListener("wheel",y,{passive:!0})},[]),T=Dde(w=>{if(d.resizeObserver?.disconnect(),!w)return;let x;d.resizeObserver=new ResizeObserver(([C])=>{const{height:L}=C.contentRect,_=L-(x??L);if(d.resizeDifference=_,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),s(d.isNearBottom),_>=0){const S=uP(o.current,x?o.current.resize:o.current.initial);f({animation:S,wait:!0,preserveScrollPosition:!0,duration:S==="instant"?void 0:Cft})}else d.isNearBottom&&(h(!1),u(!0));x=L,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===_&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(w)},[]);return{contentRef:T,scrollRef:b,scrollToBottom:f,stopScroll:p,isAtBottom:i||a,isNearBottom:a,escapedFromLock:t,state:d}};function Dde(e,t){const r=(0,Ne.useCallback)(i=>(r.current=i,e(i)),t);return r}var cP=new Map;function uP(...e){const t={...wft};let r=!1;for(const n of e){if(n==="instant"){r=!0;continue}typeof n=="object"&&(r=!1,t.damping=n.damping??t.damping,t.stiffness=n.stiffness??t.stiffness,t.mass=n.mass??t.mass)}const i=JSON.stringify(t);return cP.has(i)||cP.set(i,Object.freeze(t)),r?"instant":cP.get(i)}var Ide=(0,Ne.createContext)(null),_ft=typeof window<"u"?Ne.useLayoutEffect:Ne.useEffect;function s_({instance:e,children:t,resize:r,initial:i,mass:n,damping:a,stiffness:s,targetScrollTop:o,contextRef:l,...u}){const h=(0,Ne.useRef)(null),d=Sft({mass:n,damping:a,stiffness:s,resize:r,initial:i,targetScrollTop:Ne.useCallback((C,L)=>(x?.targetScrollTop??o)?.(C,L)??C,[o])}),{scrollRef:f,contentRef:p,scrollToBottom:g,stopScroll:y,isAtBottom:b,escapedFromLock:T,state:w}=e??d,x=(0,Ne.useMemo)(()=>({scrollToBottom:g,stopScroll:y,scrollRef:f,isAtBottom:b,escapedFromLock:T,contentRef:p,state:w,get targetScrollTop(){return h.current},set targetScrollTop(C){h.current=C}}),[g,b,p,f,y,T,w]);return(0,Ne.useImperativeHandle)(l,()=>x,[x]),_ft(()=>{f.current&&getComputedStyle(f.current).overflow==="visible"&&(f.current.style.overflow="auto")},[]),Ne.createElement(Ide.Provider,{value:x},Ne.createElement("div",{...u},typeof t=="function"?t(x):t))}(function(e){function t({children:r,scrollClassName:i,...n}){const a=Mde();return Ne.createElement("div",{ref:a.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:i},Ne.createElement("div",{...n,ref:a.contentRef},typeof r=="function"?r(a):r))}e.Content=t})(s_||(s_={}));function Mde(){const e=(0,Ne.useContext)(Ide);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}function Ode({className:e,...t}){return(0,Pe.jsx)(s_,{className:qr("relative size-full overflow-y-hidden",e),initial:"instant",resize:"smooth",role:"log",...t})}function Pde({className:e,children:t,...r}){return(0,Pe.jsx)(s_.Content,{className:qr("flex min-h-full flex-1 flex-col gap-2 p-0",e),...r,children:t})}function Bde({icon:e,title:t,description:r,className:i,children:n,...a}){return(0,Pe.jsxs)("div",{className:qr("flex flex-col items-center justify-center gap-3 text-center",i),...a,children:[e?(0,Pe.jsx)("div",{className:"text-muted-foreground",children:e}):null,t?(0,Pe.jsx)("p",{className:"text-lg font-semibold leading-tight text-foreground",children:t}):null,r?(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground",children:r}):null,n]})}function Fde({className:e,children:t,...r}){const{isAtBottom:i,scrollToBottom:n}=Mde();return i?null:(0,Pe.jsx)(Lc,{type:"button",size:"icon",variant:"outline",className:qr("absolute bottom-3 left-1/2 z-10 -translate-x-1/2 rounded-full shadow-lg",e),onClick:()=>n(),"aria-label":"Scroll to bottom",...r,children:t??(0,Pe.jsx)(Pdt,{className:"size-4"})})}var $de="stop_confirmation",zde="stop_confirmation_result",o_="Do you want to stop this conversation?";function Aft(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ude(e){return e==="accepted"||e==="rejected"?e:"pending"}function Lft(e){return e==="accepted"||e==="rejected"?e:null}function Hde(e){if(typeof e!="string")return o_;const t=e.trim();return t.length>0?t:o_}function Vde(e){return{kind:$de,confirmationId:e.confirmationId,state:Ude(e.state),prompt:Hde(e.prompt)}}function Rft(e){return{kind:zde,confirmationId:e.confirmationId,decision:e.decision}}function qde(e){return JSON.stringify(e)}function Nft(e){return qde(Vde(e))}function Dft(e){return qde(Rft(e))}function l_(e){if(typeof e!="string"||e.trim()==="")return null;let t;try{t=JSON.parse(e)}catch{return null}if(!Aft(t)||typeof t.kind!="string")return null;if(t.kind==="stop_confirmation")return typeof t.confirmationId!="string"||!t.confirmationId.trim()?null:{kind:$de,confirmationId:t.confirmationId,state:Ude(t.state),prompt:Hde(t.prompt)};if(t.kind==="stop_confirmation_result"){const r=Lft(t.decision);return typeof t.confirmationId!="string"||!t.confirmationId.trim()||r==null?null:{kind:zde,confirmationId:t.confirmationId,decision:r}}return null}function Gde(e){const t=new Map;e.forEach((i,n)=>{const a=l_(i.content);if(!a)return;const s=t.get(a.confirmationId),o=hP(i.createdAt,n);if(!s){t.set(a.confirmationId,{firstIndex:n,latestIndex:n,latestEnvelope:a});return}o>=hP(e[s.latestIndex]?.createdAt,s.latestIndex)&&t.set(a.confirmationId,{firstIndex:s.firstIndex,latestIndex:n,latestEnvelope:a})});const r=[];return e.forEach((i,n)=>{const a=l_(i.content);if(!a){r.push({type:"message",message:i});return}const s=t.get(a.confirmationId);if(!s||s.firstIndex!==n)return;const o=s.latestEnvelope.kind==="stop_confirmation"?s.latestEnvelope:Vde({confirmationId:s.latestEnvelope.confirmationId,prompt:o_});r.push({type:"confirmation",message:i,envelope:o,latestEnvelope:s.latestEnvelope})}),r}function Ift(e){const t=new Map;e.forEach((r,i)=>{const n=l_(r.content);if(!n)return;const a=hP(r.createdAt,i),s=t.get(n.confirmationId);(!s||a>=s.sortValue)&&t.set(n.confirmationId,{sortValue:a,envelope:n})});for(const[r,i]of t.entries())if(i.envelope.kind==="stop_confirmation"&&i.envelope.state==="pending")return r;return null}function hP(e,t){if(typeof e!="string")return t;const r=Date.parse(e);return Number.isNaN(r)?t:r}function Wde(){return{scrollClassName:"h-full overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",contentClassName:"flex flex-col gap-2 p-0"}}var dP=lr(((e,t)=>{(function(r,i){typeof e=="object"&&typeof t<"u"?t.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=i()})(e,(function(){"use strict";var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",o="minute",l="hour",u="day",h="week",d="month",f="quarter",p="year",g="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var I=["th","st","nd","rd"],B=F%100;return"["+F+(I[(B-20)%10]||I[B]||I[0])+"]"}},x=function(F,I,B){var D=String(F);return!D||D.length>=I?F:""+Array(I+1-D.length).join(B)+F},C={s:x,z:function(F){var I=-F.utcOffset(),B=Math.abs(I),D=Math.floor(B/60),$=B%60;return(I<=0?"+":"-")+x(D,2,"0")+":"+x($,2,"0")},m:function F(I,B){if(I.date()<B.date())return-F(B,I);var D=12*(B.year()-I.year())+(B.month()-I.month()),$=I.clone().add(D,d),H=B-$<0,z=I.clone().add(D+(H?-1:1),d);return+(-(D+(B-$)/(H?$-z:z-$))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:d,y:p,w:h,d:u,D:g,h:l,m:o,s,ms:a,Q:f}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},L="en",_={};_[L]=w;var S="$isDayjsObject",A=function(F){return F instanceof U||!(!F||!F[S])},P=function F(I,B,D){var $;if(!I)return L;if(typeof I=="string"){var H=I.toLowerCase();_[H]&&($=H),B&&(_[H]=B,$=H);var z=I.split("-");if(!$&&z.length>1)return F(z[0])}else{var j=I.name;_[j]=I,$=j}return!D&&$&&(L=$),$||!D&&L},O=function(F,I){if(A(F))return F.clone();var B=typeof I=="object"?I:{};return B.date=F,B.args=arguments,new U(B)},M=C;M.l=P,M.i=A,M.w=function(F,I){return O(F,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var U=(function(){function F(B){this.$L=P(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[S]=!0}var I=F.prototype;return I.parse=function(B){this.$d=(function(D){var $=D.date,H=D.utc;if($===null)return new Date(NaN);if(M.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var z=$.match(b);if(z){var j=z[2]-1||0,W=(z[7]||"0").substring(0,3);return H?new Date(Date.UTC(z[1],j,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],j,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date($)})(B),this.init()},I.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},I.$utils=function(){return M},I.isValid=function(){return this.$d.toString()!==y},I.isSame=function(B,D){var $=O(B);return this.startOf(D)<=$&&$<=this.endOf(D)},I.isAfter=function(B,D){return O(B)<this.startOf(D)},I.isBefore=function(B,D){return this.endOf(D)<O(B)},I.$g=function(B,D,$){return M.u(B)?this[D]:this.set($,B)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(B,D){var $=this,H=!!M.u(D)||D,z=M.p(B),j=function(J,le){var ce=M.w($.$u?Date.UTC($.$y,le,J):new Date($.$y,le,J),$);return H?ce:ce.endOf(u)},W=function(J,le){return M.w($.toDate()[J].apply($.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(le)),$)},G=this.$W,K=this.$M,Z=this.$D,re="set"+(this.$u?"UTC":"");switch(z){case p:return H?j(1,0):j(31,11);case d:return H?j(1,K):j(0,K+1);case h:var ee=this.$locale().weekStart||0,se=(G<ee?G+7:G)-ee;return j(H?Z-se:Z+(6-se),K);case u:case g:return W(re+"Hours",0);case l:return W(re+"Minutes",1);case o:return W(re+"Seconds",2);case s:return W(re+"Milliseconds",3);default:return this.clone()}},I.endOf=function(B){return this.startOf(B,!1)},I.$set=function(B,D){var $,H=M.p(B),z="set"+(this.$u?"UTC":""),j=($={},$[u]=z+"Date",$[g]=z+"Date",$[d]=z+"Month",$[p]=z+"FullYear",$[l]=z+"Hours",$[o]=z+"Minutes",$[s]=z+"Seconds",$[a]=z+"Milliseconds",$)[H],W=H===u?this.$D+(D-this.$W):D;if(H===d||H===p){var G=this.clone().set(g,1);G.$d[j](W),G.init(),this.$d=G.set(g,Math.min(this.$D,G.daysInMonth())).$d}else j&&this.$d[j](W);return this.init(),this},I.set=function(B,D){return this.clone().$set(B,D)},I.get=function(B){return this[M.p(B)]()},I.add=function(B,D){var $,H=this;B=Number(B);var z=M.p(D),j=function(K){var Z=O(H);return M.w(Z.date(Z.date()+Math.round(K*B)),H)};if(z===d)return this.set(d,this.$M+B);if(z===p)return this.set(p,this.$y+B);if(z===u)return j(1);if(z===h)return j(7);var W=($={},$[o]=i,$[l]=n,$[s]=r,$)[z]||1,G=this.$d.getTime()+B*W;return M.w(G,this)},I.subtract=function(B,D){return this.add(-1*B,D)},I.format=function(B){var D=this,$=this.$locale();if(!this.isValid())return $.invalidDate||y;var H=B||"YYYY-MM-DDTHH:mm:ssZ",z=M.z(this),j=this.$H,W=this.$m,G=this.$M,K=$.weekdays,Z=$.months,re=$.meridiem,ee=function(le,ce,ue,we){return le&&(le[ce]||le(D,H))||ue[ce].slice(0,we)},se=function(le){return M.s(j%12||12,le,"0")},J=re||function(le,ce,ue){var we=le<12?"AM":"PM";return ue?we.toLowerCase():we};return H.replace(T,(function(le,ce){return ce||(function(ue){switch(ue){case"YY":return String(D.$y).slice(-2);case"YYYY":return M.s(D.$y,4,"0");case"M":return G+1;case"MM":return M.s(G+1,2,"0");case"MMM":return ee($.monthsShort,G,Z,3);case"MMMM":return ee(Z,G);case"D":return D.$D;case"DD":return M.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ee($.weekdaysMin,D.$W,K,2);case"ddd":return ee($.weekdaysShort,D.$W,K,3);case"dddd":return K[D.$W];case"H":return String(j);case"HH":return M.s(j,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return J(j,W,!0);case"A":return J(j,W,!1);case"m":return String(W);case"mm":return M.s(W,2,"0");case"s":return String(D.$s);case"ss":return M.s(D.$s,2,"0");case"SSS":return M.s(D.$ms,3,"0");case"Z":return z}return null})(le)||z.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(B,D,$){var H,z=this,j=M.p(D),W=O(B),G=(W.utcOffset()-this.utcOffset())*i,K=this-W,Z=function(){return M.m(z,W)};switch(j){case p:H=Z()/12;break;case d:H=Z();break;case f:H=Z()/3;break;case h:H=(K-G)/6048e5;break;case u:H=(K-G)/864e5;break;case l:H=K/n;break;case o:H=K/i;break;case s:H=K/r;break;default:H=K}return $?H:M.a(H)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return _[this.$L]},I.locale=function(B,D){if(!B)return this.$L;var $=this.clone(),H=P(B,D,!0);return H&&($.$L=H),$},I.clone=function(){return M.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},F})(),R=U.prototype;return O.prototype=R,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",u],["$M",d],["$y",p],["$D",g]].forEach((function(F){R[F[1]]=function(I){return this.$g(I,F[0],F[1])}})),O.extend=function(F,I){return F.$i||(F(I,U,O),F.$i=!0),O},O.locale=P,O.isDayjs=A,O.unix=function(F){return O(1e3*F)},O.en=_[L],O.Ls=_,O.p={},O}))})),Yde,fP,k,QT,Hu,de,c_,ul,$r=V((()=>{Yde=Wa(dP(),1),fP=Object.defineProperty,k=(e,t)=>fP(e,"name",{value:t,configurable:!0}),QT=(e,t)=>{for(var r in t)fP(e,r,{get:t[r],enumerable:!0})},Hu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},de={trace:k((...e)=>{},"trace"),debug:k((...e)=>{},"debug"),info:k((...e)=>{},"info"),warn:k((...e)=>{},"warn"),error:k((...e)=>{},"error"),fatal:k((...e)=>{},"fatal")},c_=k(function(e="fatal"){let t=Hu.fatal;typeof e=="string"?e.toLowerCase()in Hu&&(t=Hu[e]):typeof e=="number"&&(t=e),de.trace=()=>{},de.debug=()=>{},de.info=()=>{},de.warn=()=>{},de.error=()=>{},de.fatal=()=>{},t<=Hu.fatal&&(de.fatal=console.error?console.error.bind(console,ul("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ul("FATAL"))),t<=Hu.error&&(de.error=console.error?console.error.bind(console,ul("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ul("ERROR"))),t<=Hu.warn&&(de.warn=console.warn?console.warn.bind(console,ul("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ul("WARN"))),t<=Hu.info&&(de.info=console.info?console.info.bind(console,ul("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ul("INFO"))),t<=Hu.debug&&(de.debug=console.debug?console.debug.bind(console,ul("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ul("DEBUG"))),t<=Hu.trace&&(de.trace=console.debug?console.debug.bind(console,ul("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ul("TRACE")))},"setLogLevel"),ul=k(e=>`%c${(0,Yde.default)().format("ss.SSS")} : ${e} : `,"format")})),ZT,Mft=V((()=>{ZT={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return ZT.hue2rgb(a,n,e+1/3)*255;case"g":return ZT.hue2rgb(a,n,e)*255;case"b":return ZT.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}}})),jde,Oft=V((()=>{jde={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10}})),Xde,Pft=V((()=>{Xde={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}})),Gr,md=V((()=>{Mft(),Oft(),Pft(),Gr={channel:ZT,lang:jde,unit:Xde}})),yd,us,u_=V((()=>{md(),yd={};for(let e=0;e<=255;e++)yd[e]=Gr.unit.dec2hex(e);us={ALL:0,RGB:1,HSL:2}})),Kde,Bft=V((()=>{u_(),Kde=class{constructor(){this.type=us.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=us.ALL}is(e){return this.type===e}}})),Qde,Fft=V((()=>{md(),Bft(),u_(),Qde=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new Kde}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=us.ALL,this}_ensureHSL(){const e=this.data,{h:t,s:r,l:i}=e;t===void 0&&(e.h=Gr.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=Gr.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=Gr.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:t,g:r,b:i}=e;t===void 0&&(e.r=Gr.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=Gr.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=Gr.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,t=e.r;return!this.type.is(us.HSL)&&t!==void 0?t:(this._ensureHSL(),Gr.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,t=e.g;return!this.type.is(us.HSL)&&t!==void 0?t:(this._ensureHSL(),Gr.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,t=e.b;return!this.type.is(us.HSL)&&t!==void 0?t:(this._ensureHSL(),Gr.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,t=e.h;return!this.type.is(us.RGB)&&t!==void 0?t:(this._ensureRGB(),Gr.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,t=e.s;return!this.type.is(us.RGB)&&t!==void 0?t:(this._ensureRGB(),Gr.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,t=e.l;return!this.type.is(us.RGB)&&t!==void 0?t:(this._ensureRGB(),Gr.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(us.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(us.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(us.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(us.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(us.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(us.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}})),JT,h_=V((()=>{Fft(),JT=new Qde({r:0,g:0,b:0,a:0},"transparent")})),G0,Zde=V((()=>{h_(),u_(),G0={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(G0.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,u=a?0:-1,h=s?255:15;return JT.set({r:(i>>l*(u+3)&h)*o,g:(i>>l*(u+2)&h)*o,b:(i>>l*(u+1)&h)*o,a:a?(i&h)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${yd[Math.round(t)]}${yd[Math.round(r)]}${yd[Math.round(i)]}${yd[Math.round(n*255)]}`:`#${yd[Math.round(t)]}${yd[Math.round(r)]}${yd[Math.round(i)]}`}}})),vp,$ft=V((()=>{md(),h_(),vp={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(vp.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return Gr.channel.clamp.h(parseFloat(r)*.9);case"rad":return Gr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Gr.channel.clamp.h(parseFloat(r)*360)}}return Gr.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(vp.re);if(!r)return;const[,i,n,a,s,o]=r;return JT.set({h:vp._hue2deg(i),s:Gr.channel.clamp.s(parseFloat(n)),l:Gr.channel.clamp.l(parseFloat(a)),a:s?Gr.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${Gr.lang.round(t)}, ${Gr.lang.round(r)}%, ${Gr.lang.round(i)}%, ${n})`:`hsl(${Gr.lang.round(t)}, ${Gr.lang.round(r)}%, ${Gr.lang.round(i)}%)`}}})),mv,zft=V((()=>{Zde(),mv={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=mv.colors[e];if(t)return G0.parse(t)},stringify:e=>{const t=G0.stringify(e);for(const r in mv.colors)if(mv.colors[r]===t)return r}}})),yv,Uft=V((()=>{md(),h_(),yv={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(yv.re);if(!r)return;const[,i,n,a,s,o,l,u,h]=r;return JT.set({r:Gr.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Gr.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:Gr.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?Gr.channel.clamp.a(h?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${Gr.lang.round(t)}, ${Gr.lang.round(r)}, ${Gr.lang.round(i)}, ${Gr.lang.round(n)})`:`rgb(${Gr.lang.round(t)}, ${Gr.lang.round(r)}, ${Gr.lang.round(i)})`}}})),Vl,bp=V((()=>{Zde(),$ft(),zft(),Uft(),u_(),Vl={format:{keyword:mv,hex:G0,rgb:yv,rgba:yv,hsl:vp,hsla:vp},parse:e=>{if(typeof e!="string")return e;const t=G0.parse(e)||yv.parse(e)||vp.parse(e)||mv.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(us.HSL)||e.data.r===void 0?vp.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?yv.stringify(e):G0.stringify(e)}})),pP,Jde=V((()=>{md(),bp(),pP=(e,t)=>{const r=Vl.parse(e);for(const i in t)r[i]=Gr.channel.clamp[i](t[i]);return Vl.stringify(r)}})),ql,efe=V((()=>{md(),h_(),bp(),Jde(),ql=(e,t,r=0,i=1)=>{if(typeof e!="number")return pP(e,{a:t});const n=JT.set({r:Gr.channel.clamp.r(e),g:Gr.channel.clamp.g(t),b:Gr.channel.clamp.b(r),a:Gr.channel.clamp.a(i)});return Vl.stringify(n)}})),d_,Hft=V((()=>{md(),bp(),d_=(e,t)=>Gr.lang.round(Vl.parse(e)[t])})),tfe,Vft=V((()=>{md(),bp(),tfe=e=>{const{r:t,g:r,b:i}=Vl.parse(e),n=.2126*Gr.channel.toLinear(t)+.7152*Gr.channel.toLinear(r)+.0722*Gr.channel.toLinear(i);return Gr.lang.round(n)}})),rfe,qft=V((()=>{Vft(),rfe=e=>tfe(e)>=.5})),Ls,Gft=V((()=>{qft(),Ls=e=>!rfe(e)})),f_,gP=V((()=>{md(),bp(),f_=(e,t,r)=>{const i=Vl.parse(e),n=i[t],a=Gr.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Vl.stringify(i)}})),kt,Wft=V((()=>{gP(),kt=(e,t)=>f_(e,"l",t)})),Tt,Yft=V((()=>{gP(),Tt=(e,t)=>f_(e,"l",-t)})),mP,jft=V((()=>{gP(),mP=(e,t)=>f_(e,"a",-t)})),pe,Xft=V((()=>{bp(),Jde(),pe=(e,t)=>{const r=Vl.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return pP(e,i)}})),ife,Kft=V((()=>{bp(),efe(),ife=(e,t,r=50)=>{const{r:i,g:n,b:a,a:s}=Vl.parse(e),{r:o,g:l,b:u,a:h}=Vl.parse(t),d=r/100,f=d*2-1,p=s-h,g=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-g;return ql(i*g+o*y,n*g+l*y,a*g+u*y,s*d+h*(1-d))}})),st,Qft=V((()=>{bp(),Kft(),st=(e,t=100)=>{const r=Vl.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,ife(r,e,t)}})),Zft=V((()=>{efe(),Hft(),Gft(),Wft(),Yft(),jft(),Xft(),Qft()})),xp=V((()=>{Zft()}));function so(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return p_(e,t,i)}}function Jft(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return g_(e,r)}}function oi(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tw;vP&&vP(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(afe(t)||(t[i]=a),n=a)}e[n]=!0}return e}function ept(e){for(let t=0;t<e.length;t++)Gl(e,t)||(e[t]=null);return e}function Vu(e){const t=vv(null);for(const[r,i]of yP(e))Gl(e,r)&&(Array.isArray(i)?t[r]=ept(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=Vu(i):t[r]=i);return t}function ew(e,t){for(;e!==null;){const i=ofe(e,t);if(i){if(i.get)return so(i.get);if(typeof i.value=="function")return so(i.value)}e=sfe(e)}function r(){return null}return r}function nfe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wfe();const t=Pt=>nfe(Pt);if(t.version="3.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==wv.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:u,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,g=l.prototype,y=ew(g,"cloneNode"),b=ew(g,"remove"),T=ew(g,"nextSibling"),w=ew(g,"childNodes"),x=ew(g,"parentNode");if(typeof s=="function"){const Pt=r.createElement("template");Pt.content&&Pt.content.ownerDocument&&(r=Pt.content.ownerDocument)}let C,L="";const{implementation:_,createNodeIterator:S,createDocumentFragment:A,getElementsByTagName:P}=r,{importNode:O}=i;let M=_P();t.isSupported=typeof yP=="function"&&typeof x=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:R,TMPLIT_EXPR:F,DATA_ATTR:I,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:H}=SP;let{IS_ALLOWED_URI:z}=SP,j=null;const W=oi({},[...xP,...v_,...b_,...x_,...TP]);let G=null;const K=oi({},[...wP,...T_,...EP,...rw]);let Z=Object.seal(vv(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,ee=null;const se=Object.seal(vv(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let J=!0,le=!0,ce=!1,ue=!0,we=!1,Ee=!0,_e=!1,Ue=!1,Fe=!1,Ce=!1,Qe=!1,Me=!1,dt=!0,Se=!1;const ut="user-content-";let it=!0,Ze=!1,Re={},$e=null;const he=oi({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Je=null;const oe=oi({},["audio","video","img","source","image","track"]);let ke=null;const ne=oi({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ae="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml";let Ae=Te,Ie=!1,Xe=null;const Be=oi({},[ae,fe,Te],m_);let ct=oi({},["mi","mo","mn","ms","mtext"]),ot=oi({},["annotation-xml"]);const et=oi({},["title","style","font","a","script"]);let ht=null;const ve=["application/xhtml+xml","text/html"],_t="text/html";let ye=null,wt=null;const Wt=r.createElement("form"),Mt=function(Ve){return Ve instanceof RegExp||Ve instanceof Function},rr=function(){let Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(wt&&wt===Ve)){if((!Ve||typeof Ve!="object")&&(Ve={}),Ve=Vu(Ve),ht=ve.indexOf(Ve.PARSER_MEDIA_TYPE)===-1?_t:Ve.PARSER_MEDIA_TYPE,ye=ht==="application/xhtml+xml"?m_:tw,j=Gl(Ve,"ALLOWED_TAGS")?oi({},Ve.ALLOWED_TAGS,ye):W,G=Gl(Ve,"ALLOWED_ATTR")?oi({},Ve.ALLOWED_ATTR,ye):K,Xe=Gl(Ve,"ALLOWED_NAMESPACES")?oi({},Ve.ALLOWED_NAMESPACES,m_):Be,ke=Gl(Ve,"ADD_URI_SAFE_ATTR")?oi(Vu(ne),Ve.ADD_URI_SAFE_ATTR,ye):ne,Je=Gl(Ve,"ADD_DATA_URI_TAGS")?oi(Vu(oe),Ve.ADD_DATA_URI_TAGS,ye):oe,$e=Gl(Ve,"FORBID_CONTENTS")?oi({},Ve.FORBID_CONTENTS,ye):he,re=Gl(Ve,"FORBID_TAGS")?oi({},Ve.FORBID_TAGS,ye):Vu({}),ee=Gl(Ve,"FORBID_ATTR")?oi({},Ve.FORBID_ATTR,ye):Vu({}),Re=Gl(Ve,"USE_PROFILES")?Ve.USE_PROFILES:!1,J=Ve.ALLOW_ARIA_ATTR!==!1,le=Ve.ALLOW_DATA_ATTR!==!1,ce=Ve.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=Ve.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=Ve.SAFE_FOR_TEMPLATES||!1,Ee=Ve.SAFE_FOR_XML!==!1,_e=Ve.WHOLE_DOCUMENT||!1,Ce=Ve.RETURN_DOM||!1,Qe=Ve.RETURN_DOM_FRAGMENT||!1,Me=Ve.RETURN_TRUSTED_TYPE||!1,Fe=Ve.FORCE_BODY||!1,dt=Ve.SANITIZE_DOM!==!1,Se=Ve.SANITIZE_NAMED_PROPS||!1,it=Ve.KEEP_CONTENT!==!1,Ze=Ve.IN_PLACE||!1,z=Ve.ALLOWED_URI_REGEXP||kP,Ae=Ve.NAMESPACE||Te,ct=Ve.MATHML_TEXT_INTEGRATION_POINTS||ct,ot=Ve.HTML_INTEGRATION_POINTS||ot,Z=Ve.CUSTOM_ELEMENT_HANDLING||vv(null),Ve.CUSTOM_ELEMENT_HANDLING&&Mt(Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ve.CUSTOM_ELEMENT_HANDLING&&Mt(Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ve.CUSTOM_ELEMENT_HANDLING&&typeof Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(le=!1),Qe&&(Ce=!0),Re&&(j=oi({},TP),G=vv(null),Re.html===!0&&(oi(j,xP),oi(G,wP)),Re.svg===!0&&(oi(j,v_),oi(G,T_),oi(G,rw)),Re.svgFilters===!0&&(oi(j,b_),oi(G,T_),oi(G,rw)),Re.mathMl===!0&&(oi(j,x_),oi(G,EP),oi(G,rw))),se.tagCheck=null,se.attributeCheck=null,Ve.ADD_TAGS&&(typeof Ve.ADD_TAGS=="function"?se.tagCheck=Ve.ADD_TAGS:(j===W&&(j=Vu(j)),oi(j,Ve.ADD_TAGS,ye))),Ve.ADD_ATTR&&(typeof Ve.ADD_ATTR=="function"?se.attributeCheck=Ve.ADD_ATTR:(G===K&&(G=Vu(G)),oi(G,Ve.ADD_ATTR,ye))),Ve.ADD_URI_SAFE_ATTR&&oi(ke,Ve.ADD_URI_SAFE_ATTR,ye),Ve.FORBID_CONTENTS&&($e===he&&($e=Vu($e)),oi($e,Ve.FORBID_CONTENTS,ye)),Ve.ADD_FORBID_CONTENTS&&($e===he&&($e=Vu($e)),oi($e,Ve.ADD_FORBID_CONTENTS,ye)),it&&(j["#text"]=!0),_e&&oi(j,["html","head","body"]),j.table&&(oi(j,["tbody"]),delete re.tbody),Ve.TRUSTED_TYPES_POLICY){if(typeof Ve.TRUSTED_TYPES_POLICY.createHTML!="function")throw Tv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ve.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Tv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Ve.TRUSTED_TYPES_POLICY,L=C.createHTML("")}else C===void 0&&(C=Efe(p,n)),C!==null&&typeof L=="string"&&(L=C.createHTML(""));Rs&&Rs(Ve),wt=Ve}},Ht=oi({},[...v_,...b_,...dfe]),ir=oi({},[...x_,...ffe]),bt=function(Ve){let Et=x(Ve);(!Et||!Et.tagName)&&(Et={namespaceURI:Ae,tagName:"template"});const zt=tw(Ve.tagName),br=tw(Et.tagName);return Xe[Ve.namespaceURI]?Ve.namespaceURI===fe?Et.namespaceURI===Te?zt==="svg":Et.namespaceURI===ae?zt==="svg"&&(br==="annotation-xml"||ct[br]):!!Ht[zt]:Ve.namespaceURI===ae?Et.namespaceURI===Te?zt==="math":Et.namespaceURI===fe?zt==="math"&&ot[br]:!!ir[zt]:Ve.namespaceURI===Te?Et.namespaceURI===fe&&!ot[br]||Et.namespaceURI===ae&&!ct[br]?!1:!ir[zt]&&(et[zt]||!Ht[zt]):!!(ht==="application/xhtml+xml"&&Xe[Ve.namespaceURI]):!1},me=function(Ve){xv(t.removed,{element:Ve});try{x(Ve).removeChild(Ve)}catch{b(Ve)}},Ft=function(Ve,Et){try{xv(t.removed,{attribute:Et.getAttributeNode(Ve),from:Et})}catch{xv(t.removed,{attribute:null,from:Et})}if(Et.removeAttribute(Ve),Ve==="is")if(Ce||Qe)try{me(Et)}catch{}else try{Et.setAttribute(Ve,"")}catch{}},Ot=function(Ve){let Et=null,zt=null;if(Fe)Ve="<remove></remove>"+Ve;else{const Si=y_(Ve,/^[\r\n\t ]+/);zt=Si&&Si[0]}ht==="application/xhtml+xml"&&Ae===Te&&(Ve='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ve+"</body></html>");const br=C?C.createHTML(Ve):Ve;if(Ae===Te)try{Et=new f().parseFromString(br,ht)}catch{}if(!Et||!Et.documentElement){Et=_.createDocument(Ae,"template",null);try{Et.documentElement.innerHTML=Ie?L:br}catch{}}const mr=Et.body||Et.documentElement;return Ve&&zt&&mr.insertBefore(r.createTextNode(zt),mr.childNodes[0]||null),Ae===Te?P.call(Et,_e?"html":"body")[0]:_e?Et.documentElement:mr},St=function(Ve){return S.call(Ve.ownerDocument||Ve,Ve,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Le=function(Ve){return Ve instanceof d&&(typeof Ve.nodeName!="string"||typeof Ve.textContent!="string"||typeof Ve.removeChild!="function"||!(Ve.attributes instanceof h)||typeof Ve.removeAttribute!="function"||typeof Ve.setAttribute!="function"||typeof Ve.namespaceURI!="string"||typeof Ve.insertBefore!="function"||typeof Ve.hasChildNodes!="function")},ft=function(Ve){return typeof o=="function"&&Ve instanceof o};function at(Pt,Ve,Et){bv(Pt,zt=>{zt.call(t,Ve,Et,wt)})}const Rt=function(Ve){let Et=null;if(at(M.beforeSanitizeElements,Ve,null),Le(Ve))return me(Ve),!0;const zt=ye(Ve.nodeName);if(at(M.uponSanitizeElement,Ve,{tagName:zt,allowedTags:j}),Ee&&Ve.hasChildNodes()&&!ft(Ve.firstElementChild)&&Ns(/<[/\w!]/g,Ve.innerHTML)&&Ns(/<[/\w!]/g,Ve.textContent)||Ee&&Ve.namespaceURI===Te&&zt==="style"&&ft(Ve.firstElementChild)||Ve.nodeType===wv.progressingInstruction||Ee&&Ve.nodeType===wv.comment&&Ns(/<[/\w]/g,Ve.data))return me(Ve),!0;if(re[zt]||!(se.tagCheck instanceof Function&&se.tagCheck(zt))&&!j[zt]){if(!re[zt]&&nr(zt)&&(Z.tagNameCheck instanceof RegExp&&Ns(Z.tagNameCheck,zt)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(zt)))return!1;if(it&&!$e[zt]){const br=x(Ve)||Ve.parentNode,mr=w(Ve)||Ve.childNodes;if(mr&&br){const Si=mr.length;for(let Yr=Si-1;Yr>=0;--Yr){const Ri=y(mr[Yr],!0);Ri.__removalCount=(Ve.__removalCount||0)+1,br.insertBefore(Ri,T(Ve))}}}return me(Ve),!0}return Ve instanceof l&&!bt(Ve)||(zt==="noscript"||zt==="noembed"||zt==="noframes")&&Ns(/<\/no(script|embed|frames)/i,Ve.innerHTML)?(me(Ve),!0):(we&&Ve.nodeType===wv.text&&(Et=Ve.textContent,bv([U,R,F],br=>{Et=W0(Et,br," ")}),Ve.textContent!==Et&&(xv(t.removed,{element:Ve.cloneNode()}),Ve.textContent=Et)),at(M.afterSanitizeElements,Ve,null),!1)},pr=function(Ve,Et,zt){if(ee[Et]||dt&&(Et==="id"||Et==="name")&&(zt in r||zt in Wt))return!1;if(!(le&&!ee[Et]&&Ns(I,Et))){if(!(J&&Ns(B,Et))){if(!(se.attributeCheck instanceof Function&&se.attributeCheck(Et,Ve))){if(!G[Et]||ee[Et]){if(!(nr(Ve)&&(Z.tagNameCheck instanceof RegExp&&Ns(Z.tagNameCheck,Ve)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(Ve))&&(Z.attributeNameCheck instanceof RegExp&&Ns(Z.attributeNameCheck,Et)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(Et,Ve))||Et==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&Ns(Z.tagNameCheck,zt)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(zt))))return!1}else if(!ke[Et]){if(!Ns(z,W0(zt,$,""))){if(!((Et==="src"||Et==="xlink:href"||Et==="href")&&Ve!=="script"&&ufe(zt,"data:")===0&&Je[Ve])){if(!(ce&&!Ns(D,W0(zt,$,"")))){if(zt)return!1}}}}}}}return!0},nr=function(Ve){return Ve!=="annotation-xml"&&y_(Ve,H)},Cr=function(Ve){at(M.beforeSanitizeAttributes,Ve,null);const{attributes:Et}=Ve;if(!Et||Le(Ve))return;const zt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let br=Et.length;for(;br--;){const{name:mr,namespaceURI:Si,value:Yr}=Et[br],Ri=ye(mr),Sa=Yr;let tr=mr==="value"?Sa:hfe(Sa);if(zt.attrName=Ri,zt.attrValue=tr,zt.keepAttr=!0,zt.forceKeepAttr=void 0,at(M.uponSanitizeAttribute,Ve,zt),tr=zt.attrValue,Se&&(Ri==="id"||Ri==="name")&&(Ft(mr,Ve),tr=ut+tr),Ee&&Ns(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,tr)){Ft(mr,Ve);continue}if(Ri==="attributename"&&y_(tr,"href")){Ft(mr,Ve);continue}if(zt.forceKeepAttr)continue;if(!zt.keepAttr){Ft(mr,Ve);continue}if(!ue&&Ns(/\/>/i,tr)){Ft(mr,Ve);continue}we&&bv([U,R,F],Jt=>{tr=W0(tr,Jt," ")});const cr=ye(Ve.nodeName);if(!pr(cr,Ri,tr)){Ft(mr,Ve);continue}if(C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Si)switch(p.getAttributeType(cr,Ri)){case"TrustedHTML":tr=C.createHTML(tr);break;case"TrustedScriptURL":tr=C.createScriptURL(tr);break}if(tr!==Sa)try{Si?Ve.setAttributeNS(Si,mr,tr):Ve.setAttribute(mr,tr),Le(Ve)?me(Ve):bP(t.removed)}catch{Ft(mr,Ve)}}at(M.afterSanitizeAttributes,Ve,null)},Fr=function(Ve){let Et=null;const zt=St(Ve);for(at(M.beforeSanitizeShadowDOM,Ve,null);Et=zt.nextNode();)at(M.uponSanitizeShadowNode,Et,null),Rt(Et),Cr(Et),Et.content instanceof a&&Fr(Et.content);at(M.afterSanitizeShadowDOM,Ve,null)};return t.sanitize=function(Pt){let Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Et=null,zt=null,br=null,mr=null;if(Ie=!Pt,Ie&&(Pt="<!-->"),typeof Pt!="string"&&!ft(Pt))if(typeof Pt.toString=="function"){if(Pt=Pt.toString(),typeof Pt!="string")throw Tv("dirty is not a string, aborting")}else throw Tv("toString is not a function");if(!t.isSupported)return Pt;if(Ue||rr(Ve),t.removed=[],typeof Pt=="string"&&(Ze=!1),Ze){if(Pt.nodeName){const Ri=ye(Pt.nodeName);if(!j[Ri]||re[Ri])throw Tv("root node is forbidden and cannot be sanitized in-place")}}else if(Pt instanceof o)Et=Ot("<!---->"),zt=Et.ownerDocument.importNode(Pt,!0),zt.nodeType===wv.element&&zt.nodeName==="BODY"||zt.nodeName==="HTML"?Et=zt:Et.appendChild(zt);else{if(!Ce&&!we&&!_e&&Pt.indexOf("<")===-1)return C&&Me?C.createHTML(Pt):Pt;if(Et=Ot(Pt),!Et)return Ce?null:Me?L:""}Et&&Fe&&me(Et.firstChild);const Si=St(Ze?Pt:Et);for(;br=Si.nextNode();)Rt(br),Cr(br),br.content instanceof a&&Fr(br.content);if(Ze)return Pt;if(Ce){if(we){Et.normalize();let Ri=Et.innerHTML;bv([U,R,F],Sa=>{Ri=W0(Ri,Sa," ")}),Et.innerHTML=Ri}if(Qe)for(mr=A.call(Et.ownerDocument);Et.firstChild;)mr.appendChild(Et.firstChild);else mr=Et;return(G.shadowroot||G.shadowrootmode)&&(mr=O.call(i,mr,!0)),mr}let Yr=_e?Et.outerHTML:Et.innerHTML;return _e&&j["!doctype"]&&Et.ownerDocument&&Et.ownerDocument.doctype&&Et.ownerDocument.doctype.name&&Ns(CP,Et.ownerDocument.doctype.name)&&(Yr="<!DOCTYPE "+Et.ownerDocument.doctype.name+`>
|
|
62
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return Ne.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},udt="DialogDescriptionWarning",hdt=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mde(udt).contentName}}.`;return Ne.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ddt=nde,fdt=ode,pdt=lde,gdt=cde,mdt=hde,ydt=pde,sP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=V0(`Primitive.${t}`),i=Ne.forwardRef((n,a)=>{const{asChild:s,...o}=n,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),vdt=lr((e=>{var t=Zy();function r(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var i=typeof Object.is=="function"?Object.is:r,n=t.useState,a=t.useEffect,s=t.useLayoutEffect,o=t.useDebugValue;function l(f,p){var g=p(),y=n({inst:{value:g,getSnapshot:p}}),b=y[0].inst,T=y[1];return s(function(){b.value=g,b.getSnapshot=p,u(b)&&T({inst:b})},[f,g,p]),a(function(){return u(b)&&T({inst:b}),f(function(){u(b)&&T({inst:b})})},[f]),o(g),g}function u(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!i(f,g)}catch{return!0}}function h(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:l;e.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d})),bdt=lr(((e,t)=>{t.exports=vdt()})),xdt=bdt();function Tdt(){return(0,xdt.useSyncExternalStore)(wdt,()=>!0,()=>!1)}function wdt(){return()=>{}}var oP="Avatar",[Edt,KGt]=She(oP),[kdt,yde]=Edt(oP),vde=Ne.forwardRef((e,t)=>{const{__scopeAvatar:r,...i}=e,[n,a]=Ne.useState("idle");return(0,Pe.jsx)(kdt,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:a,children:(0,Pe.jsx)(sP.span,{...i,ref:t})})});vde.displayName=oP;var bde="AvatarImage",xde=Ne.forwardRef((e,t)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:n=()=>{},...a}=e,s=yde(bde,r),o=Cdt(i,a),l=dv(u=>{n(u),s.onImageLoadingStatusChange(u)});return mp(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?(0,Pe.jsx)(sP.img,{...a,ref:t,src:i}):null});xde.displayName=bde;var Tde="AvatarFallback",wde=Ne.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:i,...n}=e,a=yde(Tde,r),[s,o]=Ne.useState(i===void 0);return Ne.useEffect(()=>{if(i!==void 0){const l=window.setTimeout(()=>o(!0),i);return()=>window.clearTimeout(l)}},[i]),s&&a.imageLoadingStatus!=="loaded"?(0,Pe.jsx)(sP.span,{...n,ref:t}):null});wde.displayName=Tde;function Ede(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Cdt(e,{referrerPolicy:t,crossOrigin:r}){const i=Tdt(),n=Ne.useRef(null),a=i?(n.current||(n.current=new window.Image),n.current):null,[s,o]=Ne.useState(()=>Ede(a,e));return mp(()=>{o(Ede(a,e))},[a,e]),mp(()=>{const l=d=>()=>{o(d)};if(!a)return;const u=l("loaded"),h=l("error");return a.addEventListener("load",u),a.addEventListener("error",h),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",h)}},[a,r,t]),s}var Sdt=vde,_dt=xde,Adt=wde;function YT({className:e,size:t="default",...r}){return(0,Pe.jsx)(Sdt,{"data-slot":"avatar","data-size":t,className:qr("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),...r})}function jT({className:e,...t}){return(0,Pe.jsx)(_dt,{"data-slot":"avatar-image",className:qr("aspect-square size-full rounded-full object-cover",e),...t})}function XT({className:e,...t}){return(0,Pe.jsx)(Adt,{"data-slot":"avatar-fallback",className:qr("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}hO();var kde=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Cde=p3,Sde=(e,t)=>r=>{var i;if(t?.variants==null)return Cde(e,r?.class,r?.className);const{variants:n,defaultVariants:a}=t,s=Object.keys(n).map(l=>{const u=r?.[l],h=a?.[l];if(u===null)return null;const d=kde(u)||kde(h);return n[l][d]}),o=r&&Object.entries(r).reduce((l,u)=>{let[h,d]=u;return d===void 0||(l[h]=d),l},{});return Cde(e,s,t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((l,u)=>{let{class:h,className:d,...f}=u;return Object.entries(f).every(p=>{let[g,y]=p;return Array.isArray(y)?y.includes({...a,...o}[g]):{...a,...o}[g]===y})?[...l,h,d]:l},[]),r?.class,r?.className)},Ldt=Sde("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Lc({className:e,variant:t="default",size:r="default",asChild:i=!1,...n}){return(0,Pe.jsx)(i?Dut:"button",{"data-slot":"button","data-variant":t,"data-size":r,className:qr(Ldt({variant:t,size:r,className:e})),...n})}function _de({className:e,...t}){return(0,Pe.jsx)("textarea",{"data-slot":"textarea",className:qr("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}var Rdt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ndt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Ade=e=>{const t=Ndt(e);return t.charAt(0).toUpperCase()+t.slice(1)},Lde=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),Ddt=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0},Idt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},Mdt=(0,Ne.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:n="",children:a,iconNode:s,...o},l)=>(0,Ne.createElement)("svg",{ref:l,...Idt,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:Lde("lucide",n),...!a&&!Ddt(o)&&{"aria-hidden":"true"},...o},[...s.map(([u,h])=>(0,Ne.createElement)(u,h)),...Array.isArray(a)?a:[a]])),Mo=(e,t)=>{const r=(0,Ne.forwardRef)(({className:i,...n},a)=>(0,Ne.createElement)(Mdt,{ref:a,iconNode:t,className:Lde(`lucide-${Rdt(Ade(e))}`,`lucide-${e}`,i),...n}));return r.displayName=Ade(e),r},Odt=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Pdt=Mo("arrow-down",Odt),Bdt=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],KT=Mo("chevron-down",Bdt),Fdt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$dt=Mo("circle-check",Fdt),zdt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Udt=Mo("circle-x",zdt),Hdt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Vdt=Mo("info",Hdt),qdt=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Gdt=Mo("message-circle-x",qdt),Wdt=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Ydt=Mo("message-square-text",Wdt),jdt=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Xdt=Mo("minimize-2",jdt),Kdt=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Qdt=Mo("phone",Kdt),Zdt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Jdt=Mo("search",Zdt),eft=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],tft=Mo("send-horizontal",eft),rft=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ift=Mo("send",rft),nft=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aft=Mo("sparkles",nft),sft=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],oft=Mo("video",sft),Rde=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),lft=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cft=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Nde=e=>{const t=cft(e);return t.charAt(0).toUpperCase()+t.slice(1)},lP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},uft=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},hft=(0,Ne.createContext)({}),dft=()=>(0,Ne.useContext)(hft),fft=(0,Ne.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:i,className:n="",children:a,iconNode:s,...o},l)=>{const{size:u=24,strokeWidth:h=2,absoluteStrokeWidth:d=!1,color:f="currentColor",className:p=""}=dft()??{},g=i??d?Number(r??h)*24/Number(t??u):r??h;return(0,Ne.createElement)("svg",{ref:l,...lP,width:t??u??lP.width,height:t??u??lP.height,stroke:e??f,strokeWidth:g,className:Rde("lucide",p,n),...!a&&!uft(o)&&{"aria-hidden":"true"},...o},[...s.map(([y,b])=>(0,Ne.createElement)(y,b)),...Array.isArray(a)?a:[a]])}),pft=(e,t)=>{const r=(0,Ne.forwardRef)(({className:i,...n},a)=>(0,Ne.createElement)(fft,{ref:a,iconNode:t,className:Rde(`lucide-${lft(Nde(e))}`,`lucide-${e}`,i),...n}));return r.displayName=Nde(e),r},gft=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mft=pft("x",gft);function yft({...e}){return(0,Pe.jsx)(ddt,{"data-slot":"dialog",...e})}function vft({...e}){return(0,Pe.jsx)(fdt,{"data-slot":"dialog-portal",...e})}function bft({className:e,...t}){return(0,Pe.jsx)(pdt,{"data-slot":"dialog-overlay",className:qr("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function xft({className:e,children:t,showCloseButton:r=!0,...i}){return(0,Pe.jsxs)(vft,{children:[(0,Pe.jsx)(bft,{}),(0,Pe.jsxs)(gdt,{"data-slot":"dialog-content",className:qr("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[t,r&&(0,Pe.jsx)(ydt,{"data-slot":"dialog-close",asChild:!0,children:(0,Pe.jsxs)(Lc,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[(0,Pe.jsx)(mft,{}),(0,Pe.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})}function Tft({className:e,...t}){return(0,Pe.jsx)(mdt,{"data-slot":"dialog-title",className:qr("font-heading text-base leading-none font-medium",e),...t})}var wft={damping:.7,stiffness:.05,mass:1.25},Eft=70,kft=1e3/60,Cft=350,a_=!1;globalThis.document?.addEventListener("mousedown",()=>{a_=!0}),globalThis.document?.addEventListener("mouseup",()=>{a_=!1}),globalThis.document?.addEventListener("click",()=>{a_=!1});var Sft=(e={})=>{const[t,r]=(0,Ne.useState)(!1),[i,n]=(0,Ne.useState)(e.initial!==!1),[a,s]=(0,Ne.useState)(!1),o=(0,Ne.useRef)(null);o.current=e;const l=(0,Ne.useCallback)(()=>{if(!a_)return!1;const w=window.getSelection();if(!w||!w.rangeCount)return!1;const x=w.getRangeAt(0);return x.commonAncestorContainer.contains(b.current)||b.current?.contains(x.commonAncestorContainer)},[]),u=(0,Ne.useCallback)(w=>{d.isAtBottom=w,n(w)},[]),h=(0,Ne.useCallback)(w=>{d.escapedFromLock=w,r(w)},[]),d=(0,Ne.useMemo)(()=>{let w;return{escapedFromLock:t,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return b.current?.scrollTop??0},set scrollTop(x){b.current&&(b.current.scrollTop=x,d.ignoreScrollToTop=b.current.scrollTop)},get targetScrollTop(){return!b.current||!T.current?0:b.current.scrollHeight-1-b.current.clientHeight},get calculatedTargetScrollTop(){if(!b.current||!T.current)return 0;const{targetScrollTop:x}=this;if(!e.targetScrollTop)return x;if(w?.targetScrollTop===x)return w.calculatedScrollTop;const C=Math.max(Math.min(e.targetScrollTop(x,{scrollElement:b.current,contentElement:T.current}),x),0);return w={targetScrollTop:x,calculatedScrollTop:C},requestAnimationFrame(()=>{w=void 0}),C},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=Eft}}},[]),f=(0,Ne.useCallback)((w={})=>{typeof w=="string"&&(w={animation:w}),w.preserveScrollPosition||u(!0);const x=Date.now()+(Number(w.wait)||0),C=uP(o.current,w.animation),{ignoreEscapes:L=!1}=w;let _,S=d.calculatedTargetScrollTop;w.duration instanceof Promise?w.duration.finally(()=>{_=Date.now()}):_=x+(w.duration??0);const A=async()=>{const P=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;const{scrollTop:O}=d,M=performance.now(),U=(M-(d.lastTick??M))/kft;if(d.animation||(d.animation={behavior:C,promise:P,ignoreEscapes:L}),d.animation.behavior===C&&(d.lastTick=M),l()||x>Date.now())return A();if(O<Math.min(S,d.calculatedTargetScrollTop)){if(d.animation?.behavior===C){if(C==="instant")return d.scrollTop=d.calculatedTargetScrollTop,A();d.velocity=(C.damping*d.velocity+C.stiffness*d.scrollDifference)/C.mass,d.accumulated+=d.velocity*U,d.scrollTop+=d.accumulated,d.scrollTop!==O&&(d.accumulated=0)}return A()}return _>Date.now()?(S=d.calculatedTargetScrollTop,A()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?f({animation:uP(o.current,o.current.resize),ignoreEscapes:L,duration:Math.max(0,_-Date.now())||void 0}):d.isAtBottom)});return P.then(O=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),O))};return w.wait!==!0&&(d.animation=void 0),d.animation?.behavior===C?d.animation.promise:A()},[u,l,d]),p=(0,Ne.useCallback)(()=>{h(!0),u(!1)},[h,u]),g=(0,Ne.useCallback)(({target:w})=>{if(w!==b.current)return;const{scrollTop:x,ignoreScrollToTop:C}=d;let{lastScrollTop:L=x}=d;d.lastScrollTop=x,d.ignoreScrollToTop=void 0,C&&C>x&&(L=C),s(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||x===C)return;if(l()){h(!0),u(!1);return}const _=x>L,S=x<L;if(d.animation?.ignoreEscapes){d.scrollTop=L;return}S&&(h(!0),u(!1)),_&&h(!1),!d.escapedFromLock&&d.isNearBottom&&u(!0)},1)},[h,u,l,d]),y=(0,Ne.useCallback)(({target:w,deltaY:x})=>{let C=w;for(;!["scroll","auto"].includes(getComputedStyle(C).overflow);){if(!C.parentElement)return;C=C.parentElement}C===b.current&&x<0&&b.current.scrollHeight>b.current.clientHeight&&!d.animation?.ignoreEscapes&&(h(!0),u(!1))},[h,u,d]),b=Dde(w=>{b.current?.removeEventListener("scroll",g),b.current?.removeEventListener("wheel",y),w?.addEventListener("scroll",g,{passive:!0}),w?.addEventListener("wheel",y,{passive:!0})},[]),T=Dde(w=>{if(d.resizeObserver?.disconnect(),!w)return;let x;d.resizeObserver=new ResizeObserver(([C])=>{const{height:L}=C.contentRect,_=L-(x??L);if(d.resizeDifference=_,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),s(d.isNearBottom),_>=0){const S=uP(o.current,x?o.current.resize:o.current.initial);f({animation:S,wait:!0,preserveScrollPosition:!0,duration:S==="instant"?void 0:Cft})}else d.isNearBottom&&(h(!1),u(!0));x=L,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===_&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(w)},[]);return{contentRef:T,scrollRef:b,scrollToBottom:f,stopScroll:p,isAtBottom:i||a,isNearBottom:a,escapedFromLock:t,state:d}};function Dde(e,t){const r=(0,Ne.useCallback)(i=>(r.current=i,e(i)),t);return r}var cP=new Map;function uP(...e){const t={...wft};let r=!1;for(const n of e){if(n==="instant"){r=!0;continue}typeof n=="object"&&(r=!1,t.damping=n.damping??t.damping,t.stiffness=n.stiffness??t.stiffness,t.mass=n.mass??t.mass)}const i=JSON.stringify(t);return cP.has(i)||cP.set(i,Object.freeze(t)),r?"instant":cP.get(i)}var Ide=(0,Ne.createContext)(null),_ft=typeof window<"u"?Ne.useLayoutEffect:Ne.useEffect;function s_({instance:e,children:t,resize:r,initial:i,mass:n,damping:a,stiffness:s,targetScrollTop:o,contextRef:l,...u}){const h=(0,Ne.useRef)(null),d=Sft({mass:n,damping:a,stiffness:s,resize:r,initial:i,targetScrollTop:Ne.useCallback((C,L)=>(x?.targetScrollTop??o)?.(C,L)??C,[o])}),{scrollRef:f,contentRef:p,scrollToBottom:g,stopScroll:y,isAtBottom:b,escapedFromLock:T,state:w}=e??d,x=(0,Ne.useMemo)(()=>({scrollToBottom:g,stopScroll:y,scrollRef:f,isAtBottom:b,escapedFromLock:T,contentRef:p,state:w,get targetScrollTop(){return h.current},set targetScrollTop(C){h.current=C}}),[g,b,p,f,y,T,w]);return(0,Ne.useImperativeHandle)(l,()=>x,[x]),_ft(()=>{f.current&&getComputedStyle(f.current).overflow==="visible"&&(f.current.style.overflow="auto")},[]),Ne.createElement(Ide.Provider,{value:x},Ne.createElement("div",{...u},typeof t=="function"?t(x):t))}(function(e){function t({children:r,scrollClassName:i,...n}){const a=Mde();return Ne.createElement("div",{ref:a.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:i},Ne.createElement("div",{...n,ref:a.contentRef},typeof r=="function"?r(a):r))}e.Content=t})(s_||(s_={}));function Mde(){const e=(0,Ne.useContext)(Ide);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}function Ode({className:e,...t}){return(0,Pe.jsx)(s_,{className:qr("relative size-full overflow-y-hidden",e),initial:"instant",resize:"smooth",role:"log",...t})}function Pde({className:e,children:t,...r}){return(0,Pe.jsx)(s_.Content,{className:qr("flex min-h-full flex-1 flex-col gap-2 p-0",e),...r,children:t})}function Bde({icon:e,title:t,description:r,className:i,children:n,...a}){return(0,Pe.jsxs)("div",{className:qr("flex flex-col items-center justify-center gap-3 text-center",i),...a,children:[e?(0,Pe.jsx)("div",{className:"text-muted-foreground",children:e}):null,t?(0,Pe.jsx)("p",{className:"text-lg font-semibold leading-tight text-foreground",children:t}):null,r?(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground",children:r}):null,n]})}function Fde({className:e,children:t,...r}){const{isAtBottom:i,scrollToBottom:n}=Mde();return i?null:(0,Pe.jsx)(Lc,{type:"button",size:"icon",variant:"outline",className:qr("absolute bottom-3 left-1/2 z-10 -translate-x-1/2 rounded-full shadow-lg",e),onClick:()=>n(),"aria-label":"Scroll to bottom",...r,children:t??(0,Pe.jsx)(Pdt,{className:"size-4"})})}var $de="stop_confirmation",zde="stop_confirmation_result",o_="Do you want to stop this conversation?";function Aft(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ude(e){return e==="accepted"||e==="rejected"?e:"pending"}function Lft(e){return e==="accepted"||e==="rejected"?e:null}function Hde(e){if(typeof e!="string")return o_;const t=e.trim();return t.length>0?t:o_}function Vde(e){return{kind:$de,confirmationId:e.confirmationId,state:Ude(e.state),prompt:Hde(e.prompt)}}function Rft(e){return{kind:zde,confirmationId:e.confirmationId,decision:e.decision}}function qde(e){return JSON.stringify(e)}function Nft(e){return qde(Vde(e))}function Dft(e){return qde(Rft(e))}function l_(e){if(typeof e!="string"||e.trim()==="")return null;let t;try{t=JSON.parse(e)}catch{return null}if(!Aft(t)||typeof t.kind!="string")return null;if(t.kind==="stop_confirmation")return typeof t.confirmationId!="string"||!t.confirmationId.trim()?null:{kind:$de,confirmationId:t.confirmationId,state:Ude(t.state),prompt:Hde(t.prompt)};if(t.kind==="stop_confirmation_result"){const r=Lft(t.decision);return typeof t.confirmationId!="string"||!t.confirmationId.trim()||r==null?null:{kind:zde,confirmationId:t.confirmationId,decision:r}}return null}function Gde(e){const t=new Map;e.forEach((i,n)=>{const a=l_(i.content);if(!a)return;const s=t.get(a.confirmationId),o=hP(i.createdAt,n);if(!s){t.set(a.confirmationId,{firstIndex:n,latestIndex:n,latestEnvelope:a});return}o>=hP(e[s.latestIndex]?.createdAt,s.latestIndex)&&t.set(a.confirmationId,{firstIndex:s.firstIndex,latestIndex:n,latestEnvelope:a})});const r=[];return e.forEach((i,n)=>{const a=l_(i.content);if(!a){r.push({type:"message",message:i});return}const s=t.get(a.confirmationId);if(!s||s.firstIndex!==n)return;const o=s.latestEnvelope.kind==="stop_confirmation"?s.latestEnvelope:Vde({confirmationId:s.latestEnvelope.confirmationId,prompt:o_});r.push({type:"confirmation",message:i,envelope:o,latestEnvelope:s.latestEnvelope})}),r}function Ift(e){const t=new Map;e.forEach((r,i)=>{const n=l_(r.content);if(!n)return;const a=hP(r.createdAt,i),s=t.get(n.confirmationId);(!s||a>=s.sortValue)&&t.set(n.confirmationId,{sortValue:a,envelope:n})});for(const[r,i]of t.entries())if(i.envelope.kind==="stop_confirmation"&&i.envelope.state==="pending")return r;return null}function hP(e,t){if(typeof e!="string")return t;const r=Date.parse(e);return Number.isNaN(r)?t:r}function Wde(){return{scrollClassName:"h-full overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",contentClassName:"flex flex-col gap-2 p-0"}}var dP=lr(((e,t)=>{(function(r,i){typeof e=="object"&&typeof t<"u"?t.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=i()})(e,(function(){"use strict";var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",o="minute",l="hour",u="day",h="week",d="month",f="quarter",p="year",g="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var I=["th","st","nd","rd"],B=F%100;return"["+F+(I[(B-20)%10]||I[B]||I[0])+"]"}},x=function(F,I,B){var D=String(F);return!D||D.length>=I?F:""+Array(I+1-D.length).join(B)+F},C={s:x,z:function(F){var I=-F.utcOffset(),B=Math.abs(I),D=Math.floor(B/60),$=B%60;return(I<=0?"+":"-")+x(D,2,"0")+":"+x($,2,"0")},m:function F(I,B){if(I.date()<B.date())return-F(B,I);var D=12*(B.year()-I.year())+(B.month()-I.month()),$=I.clone().add(D,d),H=B-$<0,z=I.clone().add(D+(H?-1:1),d);return+(-(D+(B-$)/(H?$-z:z-$))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:d,y:p,w:h,d:u,D:g,h:l,m:o,s,ms:a,Q:f}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},L="en",_={};_[L]=w;var S="$isDayjsObject",A=function(F){return F instanceof U||!(!F||!F[S])},P=function F(I,B,D){var $;if(!I)return L;if(typeof I=="string"){var H=I.toLowerCase();_[H]&&($=H),B&&(_[H]=B,$=H);var z=I.split("-");if(!$&&z.length>1)return F(z[0])}else{var j=I.name;_[j]=I,$=j}return!D&&$&&(L=$),$||!D&&L},O=function(F,I){if(A(F))return F.clone();var B=typeof I=="object"?I:{};return B.date=F,B.args=arguments,new U(B)},M=C;M.l=P,M.i=A,M.w=function(F,I){return O(F,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var U=(function(){function F(B){this.$L=P(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[S]=!0}var I=F.prototype;return I.parse=function(B){this.$d=(function(D){var $=D.date,H=D.utc;if($===null)return new Date(NaN);if(M.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var z=$.match(b);if(z){var j=z[2]-1||0,W=(z[7]||"0").substring(0,3);return H?new Date(Date.UTC(z[1],j,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],j,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date($)})(B),this.init()},I.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},I.$utils=function(){return M},I.isValid=function(){return this.$d.toString()!==y},I.isSame=function(B,D){var $=O(B);return this.startOf(D)<=$&&$<=this.endOf(D)},I.isAfter=function(B,D){return O(B)<this.startOf(D)},I.isBefore=function(B,D){return this.endOf(D)<O(B)},I.$g=function(B,D,$){return M.u(B)?this[D]:this.set($,B)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(B,D){var $=this,H=!!M.u(D)||D,z=M.p(B),j=function(J,le){var ce=M.w($.$u?Date.UTC($.$y,le,J):new Date($.$y,le,J),$);return H?ce:ce.endOf(u)},W=function(J,le){return M.w($.toDate()[J].apply($.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(le)),$)},G=this.$W,K=this.$M,Z=this.$D,re="set"+(this.$u?"UTC":"");switch(z){case p:return H?j(1,0):j(31,11);case d:return H?j(1,K):j(0,K+1);case h:var ee=this.$locale().weekStart||0,se=(G<ee?G+7:G)-ee;return j(H?Z-se:Z+(6-se),K);case u:case g:return W(re+"Hours",0);case l:return W(re+"Minutes",1);case o:return W(re+"Seconds",2);case s:return W(re+"Milliseconds",3);default:return this.clone()}},I.endOf=function(B){return this.startOf(B,!1)},I.$set=function(B,D){var $,H=M.p(B),z="set"+(this.$u?"UTC":""),j=($={},$[u]=z+"Date",$[g]=z+"Date",$[d]=z+"Month",$[p]=z+"FullYear",$[l]=z+"Hours",$[o]=z+"Minutes",$[s]=z+"Seconds",$[a]=z+"Milliseconds",$)[H],W=H===u?this.$D+(D-this.$W):D;if(H===d||H===p){var G=this.clone().set(g,1);G.$d[j](W),G.init(),this.$d=G.set(g,Math.min(this.$D,G.daysInMonth())).$d}else j&&this.$d[j](W);return this.init(),this},I.set=function(B,D){return this.clone().$set(B,D)},I.get=function(B){return this[M.p(B)]()},I.add=function(B,D){var $,H=this;B=Number(B);var z=M.p(D),j=function(K){var Z=O(H);return M.w(Z.date(Z.date()+Math.round(K*B)),H)};if(z===d)return this.set(d,this.$M+B);if(z===p)return this.set(p,this.$y+B);if(z===u)return j(1);if(z===h)return j(7);var W=($={},$[o]=i,$[l]=n,$[s]=r,$)[z]||1,G=this.$d.getTime()+B*W;return M.w(G,this)},I.subtract=function(B,D){return this.add(-1*B,D)},I.format=function(B){var D=this,$=this.$locale();if(!this.isValid())return $.invalidDate||y;var H=B||"YYYY-MM-DDTHH:mm:ssZ",z=M.z(this),j=this.$H,W=this.$m,G=this.$M,K=$.weekdays,Z=$.months,re=$.meridiem,ee=function(le,ce,ue,we){return le&&(le[ce]||le(D,H))||ue[ce].slice(0,we)},se=function(le){return M.s(j%12||12,le,"0")},J=re||function(le,ce,ue){var we=le<12?"AM":"PM";return ue?we.toLowerCase():we};return H.replace(T,(function(le,ce){return ce||(function(ue){switch(ue){case"YY":return String(D.$y).slice(-2);case"YYYY":return M.s(D.$y,4,"0");case"M":return G+1;case"MM":return M.s(G+1,2,"0");case"MMM":return ee($.monthsShort,G,Z,3);case"MMMM":return ee(Z,G);case"D":return D.$D;case"DD":return M.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ee($.weekdaysMin,D.$W,K,2);case"ddd":return ee($.weekdaysShort,D.$W,K,3);case"dddd":return K[D.$W];case"H":return String(j);case"HH":return M.s(j,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return J(j,W,!0);case"A":return J(j,W,!1);case"m":return String(W);case"mm":return M.s(W,2,"0");case"s":return String(D.$s);case"ss":return M.s(D.$s,2,"0");case"SSS":return M.s(D.$ms,3,"0");case"Z":return z}return null})(le)||z.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(B,D,$){var H,z=this,j=M.p(D),W=O(B),G=(W.utcOffset()-this.utcOffset())*i,K=this-W,Z=function(){return M.m(z,W)};switch(j){case p:H=Z()/12;break;case d:H=Z();break;case f:H=Z()/3;break;case h:H=(K-G)/6048e5;break;case u:H=(K-G)/864e5;break;case l:H=K/n;break;case o:H=K/i;break;case s:H=K/r;break;default:H=K}return $?H:M.a(H)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return _[this.$L]},I.locale=function(B,D){if(!B)return this.$L;var $=this.clone(),H=P(B,D,!0);return H&&($.$L=H),$},I.clone=function(){return M.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},F})(),R=U.prototype;return O.prototype=R,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",u],["$M",d],["$y",p],["$D",g]].forEach((function(F){R[F[1]]=function(I){return this.$g(I,F[0],F[1])}})),O.extend=function(F,I){return F.$i||(F(I,U,O),F.$i=!0),O},O.locale=P,O.isDayjs=A,O.unix=function(F){return O(1e3*F)},O.en=_[L],O.Ls=_,O.p={},O}))})),Yde,fP,k,QT,Hu,de,c_,ul,$r=V((()=>{Yde=Wa(dP(),1),fP=Object.defineProperty,k=(e,t)=>fP(e,"name",{value:t,configurable:!0}),QT=(e,t)=>{for(var r in t)fP(e,r,{get:t[r],enumerable:!0})},Hu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},de={trace:k((...e)=>{},"trace"),debug:k((...e)=>{},"debug"),info:k((...e)=>{},"info"),warn:k((...e)=>{},"warn"),error:k((...e)=>{},"error"),fatal:k((...e)=>{},"fatal")},c_=k(function(e="fatal"){let t=Hu.fatal;typeof e=="string"?e.toLowerCase()in Hu&&(t=Hu[e]):typeof e=="number"&&(t=e),de.trace=()=>{},de.debug=()=>{},de.info=()=>{},de.warn=()=>{},de.error=()=>{},de.fatal=()=>{},t<=Hu.fatal&&(de.fatal=console.error?console.error.bind(console,ul("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ul("FATAL"))),t<=Hu.error&&(de.error=console.error?console.error.bind(console,ul("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ul("ERROR"))),t<=Hu.warn&&(de.warn=console.warn?console.warn.bind(console,ul("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ul("WARN"))),t<=Hu.info&&(de.info=console.info?console.info.bind(console,ul("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ul("INFO"))),t<=Hu.debug&&(de.debug=console.debug?console.debug.bind(console,ul("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ul("DEBUG"))),t<=Hu.trace&&(de.trace=console.debug?console.debug.bind(console,ul("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ul("TRACE")))},"setLogLevel"),ul=k(e=>`%c${(0,Yde.default)().format("ss.SSS")} : ${e} : `,"format")})),ZT,Mft=V((()=>{ZT={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return ZT.hue2rgb(a,n,e+1/3)*255;case"g":return ZT.hue2rgb(a,n,e)*255;case"b":return ZT.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}}})),jde,Oft=V((()=>{jde={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10}})),Xde,Pft=V((()=>{Xde={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}})),Gr,md=V((()=>{Mft(),Oft(),Pft(),Gr={channel:ZT,lang:jde,unit:Xde}})),yd,us,u_=V((()=>{md(),yd={};for(let e=0;e<=255;e++)yd[e]=Gr.unit.dec2hex(e);us={ALL:0,RGB:1,HSL:2}})),Kde,Bft=V((()=>{u_(),Kde=class{constructor(){this.type=us.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=us.ALL}is(e){return this.type===e}}})),Qde,Fft=V((()=>{md(),Bft(),u_(),Qde=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new Kde}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=us.ALL,this}_ensureHSL(){const e=this.data,{h:t,s:r,l:i}=e;t===void 0&&(e.h=Gr.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=Gr.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=Gr.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:t,g:r,b:i}=e;t===void 0&&(e.r=Gr.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=Gr.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=Gr.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,t=e.r;return!this.type.is(us.HSL)&&t!==void 0?t:(this._ensureHSL(),Gr.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,t=e.g;return!this.type.is(us.HSL)&&t!==void 0?t:(this._ensureHSL(),Gr.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,t=e.b;return!this.type.is(us.HSL)&&t!==void 0?t:(this._ensureHSL(),Gr.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,t=e.h;return!this.type.is(us.RGB)&&t!==void 0?t:(this._ensureRGB(),Gr.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,t=e.s;return!this.type.is(us.RGB)&&t!==void 0?t:(this._ensureRGB(),Gr.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,t=e.l;return!this.type.is(us.RGB)&&t!==void 0?t:(this._ensureRGB(),Gr.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(us.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(us.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(us.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(us.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(us.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(us.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}})),JT,h_=V((()=>{Fft(),JT=new Qde({r:0,g:0,b:0,a:0},"transparent")})),G0,Zde=V((()=>{h_(),u_(),G0={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(G0.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,u=a?0:-1,h=s?255:15;return JT.set({r:(i>>l*(u+3)&h)*o,g:(i>>l*(u+2)&h)*o,b:(i>>l*(u+1)&h)*o,a:a?(i&h)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${yd[Math.round(t)]}${yd[Math.round(r)]}${yd[Math.round(i)]}${yd[Math.round(n*255)]}`:`#${yd[Math.round(t)]}${yd[Math.round(r)]}${yd[Math.round(i)]}`}}})),vp,$ft=V((()=>{md(),h_(),vp={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(vp.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return Gr.channel.clamp.h(parseFloat(r)*.9);case"rad":return Gr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Gr.channel.clamp.h(parseFloat(r)*360)}}return Gr.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(vp.re);if(!r)return;const[,i,n,a,s,o]=r;return JT.set({h:vp._hue2deg(i),s:Gr.channel.clamp.s(parseFloat(n)),l:Gr.channel.clamp.l(parseFloat(a)),a:s?Gr.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${Gr.lang.round(t)}, ${Gr.lang.round(r)}%, ${Gr.lang.round(i)}%, ${n})`:`hsl(${Gr.lang.round(t)}, ${Gr.lang.round(r)}%, ${Gr.lang.round(i)}%)`}}})),mv,zft=V((()=>{Zde(),mv={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=mv.colors[e];if(t)return G0.parse(t)},stringify:e=>{const t=G0.stringify(e);for(const r in mv.colors)if(mv.colors[r]===t)return r}}})),yv,Uft=V((()=>{md(),h_(),yv={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(yv.re);if(!r)return;const[,i,n,a,s,o,l,u,h]=r;return JT.set({r:Gr.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Gr.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:Gr.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?Gr.channel.clamp.a(h?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${Gr.lang.round(t)}, ${Gr.lang.round(r)}, ${Gr.lang.round(i)}, ${Gr.lang.round(n)})`:`rgb(${Gr.lang.round(t)}, ${Gr.lang.round(r)}, ${Gr.lang.round(i)})`}}})),Vl,bp=V((()=>{Zde(),$ft(),zft(),Uft(),u_(),Vl={format:{keyword:mv,hex:G0,rgb:yv,rgba:yv,hsl:vp,hsla:vp},parse:e=>{if(typeof e!="string")return e;const t=G0.parse(e)||yv.parse(e)||vp.parse(e)||mv.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(us.HSL)||e.data.r===void 0?vp.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?yv.stringify(e):G0.stringify(e)}})),pP,Jde=V((()=>{md(),bp(),pP=(e,t)=>{const r=Vl.parse(e);for(const i in t)r[i]=Gr.channel.clamp[i](t[i]);return Vl.stringify(r)}})),ql,efe=V((()=>{md(),h_(),bp(),Jde(),ql=(e,t,r=0,i=1)=>{if(typeof e!="number")return pP(e,{a:t});const n=JT.set({r:Gr.channel.clamp.r(e),g:Gr.channel.clamp.g(t),b:Gr.channel.clamp.b(r),a:Gr.channel.clamp.a(i)});return Vl.stringify(n)}})),d_,Hft=V((()=>{md(),bp(),d_=(e,t)=>Gr.lang.round(Vl.parse(e)[t])})),tfe,Vft=V((()=>{md(),bp(),tfe=e=>{const{r:t,g:r,b:i}=Vl.parse(e),n=.2126*Gr.channel.toLinear(t)+.7152*Gr.channel.toLinear(r)+.0722*Gr.channel.toLinear(i);return Gr.lang.round(n)}})),rfe,qft=V((()=>{Vft(),rfe=e=>tfe(e)>=.5})),Ls,Gft=V((()=>{qft(),Ls=e=>!rfe(e)})),f_,gP=V((()=>{md(),bp(),f_=(e,t,r)=>{const i=Vl.parse(e),n=i[t],a=Gr.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Vl.stringify(i)}})),kt,Wft=V((()=>{gP(),kt=(e,t)=>f_(e,"l",t)})),Tt,Yft=V((()=>{gP(),Tt=(e,t)=>f_(e,"l",-t)})),mP,jft=V((()=>{gP(),mP=(e,t)=>f_(e,"a",-t)})),pe,Xft=V((()=>{bp(),Jde(),pe=(e,t)=>{const r=Vl.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return pP(e,i)}})),ife,Kft=V((()=>{bp(),efe(),ife=(e,t,r=50)=>{const{r:i,g:n,b:a,a:s}=Vl.parse(e),{r:o,g:l,b:u,a:h}=Vl.parse(t),d=r/100,f=d*2-1,p=s-h,g=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-g;return ql(i*g+o*y,n*g+l*y,a*g+u*y,s*d+h*(1-d))}})),st,Qft=V((()=>{bp(),Kft(),st=(e,t=100)=>{const r=Vl.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,ife(r,e,t)}})),Zft=V((()=>{efe(),Hft(),Gft(),Wft(),Yft(),jft(),Xft(),Qft()})),xp=V((()=>{Zft()}));function so(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return p_(e,t,i)}}function Jft(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return g_(e,r)}}function oi(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tw;vP&&vP(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(afe(t)||(t[i]=a),n=a)}e[n]=!0}return e}function ept(e){for(let t=0;t<e.length;t++)Gl(e,t)||(e[t]=null);return e}function Vu(e){const t=vv(null);for(const[r,i]of yP(e))Gl(e,r)&&(Array.isArray(i)?t[r]=ept(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=Vu(i):t[r]=i);return t}function ew(e,t){for(;e!==null;){const i=ofe(e,t);if(i){if(i.get)return so(i.get);if(typeof i.value=="function")return so(i.value)}e=sfe(e)}function r(){return null}return r}function nfe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wfe();const t=Pt=>nfe(Pt);if(t.version="3.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==wv.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:u,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,g=l.prototype,y=ew(g,"cloneNode"),b=ew(g,"remove"),T=ew(g,"nextSibling"),w=ew(g,"childNodes"),x=ew(g,"parentNode");if(typeof s=="function"){const Pt=r.createElement("template");Pt.content&&Pt.content.ownerDocument&&(r=Pt.content.ownerDocument)}let C,L="";const{implementation:_,createNodeIterator:S,createDocumentFragment:A,getElementsByTagName:P}=r,{importNode:O}=i;let M=_P();t.isSupported=typeof yP=="function"&&typeof x=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:R,TMPLIT_EXPR:F,DATA_ATTR:I,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:H}=SP;let{IS_ALLOWED_URI:z}=SP,j=null;const W=oi({},[...xP,...v_,...b_,...x_,...TP]);let G=null;const K=oi({},[...wP,...T_,...EP,...rw]);let Z=Object.seal(vv(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,ee=null;const se=Object.seal(vv(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let J=!0,le=!0,ce=!1,ue=!0,we=!1,Ee=!0,_e=!1,Ue=!1,Fe=!1,Ce=!1,Qe=!1,Me=!1,dt=!0,Se=!1;const ut="user-content-";let it=!0,Ze=!1,Re={},$e=null;const he=oi({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Je=null;const oe=oi({},["audio","video","img","source","image","track"]);let ke=null;const ne=oi({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ae="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml";let Ae=Te,Ie=!1,Xe=null;const Be=oi({},[ae,fe,Te],m_);let ct=oi({},["mi","mo","mn","ms","mtext"]),ot=oi({},["annotation-xml"]);const et=oi({},["title","style","font","a","script"]);let ht=null;const ve=["application/xhtml+xml","text/html"],_t="text/html";let ye=null,wt=null;const Wt=r.createElement("form"),Mt=function(Ve){return Ve instanceof RegExp||Ve instanceof Function},rr=function(){let Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(wt&&wt===Ve)){if((!Ve||typeof Ve!="object")&&(Ve={}),Ve=Vu(Ve),ht=ve.indexOf(Ve.PARSER_MEDIA_TYPE)===-1?_t:Ve.PARSER_MEDIA_TYPE,ye=ht==="application/xhtml+xml"?m_:tw,j=Gl(Ve,"ALLOWED_TAGS")?oi({},Ve.ALLOWED_TAGS,ye):W,G=Gl(Ve,"ALLOWED_ATTR")?oi({},Ve.ALLOWED_ATTR,ye):K,Xe=Gl(Ve,"ALLOWED_NAMESPACES")?oi({},Ve.ALLOWED_NAMESPACES,m_):Be,ke=Gl(Ve,"ADD_URI_SAFE_ATTR")?oi(Vu(ne),Ve.ADD_URI_SAFE_ATTR,ye):ne,Je=Gl(Ve,"ADD_DATA_URI_TAGS")?oi(Vu(oe),Ve.ADD_DATA_URI_TAGS,ye):oe,$e=Gl(Ve,"FORBID_CONTENTS")?oi({},Ve.FORBID_CONTENTS,ye):he,re=Gl(Ve,"FORBID_TAGS")?oi({},Ve.FORBID_TAGS,ye):Vu({}),ee=Gl(Ve,"FORBID_ATTR")?oi({},Ve.FORBID_ATTR,ye):Vu({}),Re=Gl(Ve,"USE_PROFILES")?Ve.USE_PROFILES:!1,J=Ve.ALLOW_ARIA_ATTR!==!1,le=Ve.ALLOW_DATA_ATTR!==!1,ce=Ve.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=Ve.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=Ve.SAFE_FOR_TEMPLATES||!1,Ee=Ve.SAFE_FOR_XML!==!1,_e=Ve.WHOLE_DOCUMENT||!1,Ce=Ve.RETURN_DOM||!1,Qe=Ve.RETURN_DOM_FRAGMENT||!1,Me=Ve.RETURN_TRUSTED_TYPE||!1,Fe=Ve.FORCE_BODY||!1,dt=Ve.SANITIZE_DOM!==!1,Se=Ve.SANITIZE_NAMED_PROPS||!1,it=Ve.KEEP_CONTENT!==!1,Ze=Ve.IN_PLACE||!1,z=Ve.ALLOWED_URI_REGEXP||kP,Ae=Ve.NAMESPACE||Te,ct=Ve.MATHML_TEXT_INTEGRATION_POINTS||ct,ot=Ve.HTML_INTEGRATION_POINTS||ot,Z=Ve.CUSTOM_ELEMENT_HANDLING||vv(null),Ve.CUSTOM_ELEMENT_HANDLING&&Mt(Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ve.CUSTOM_ELEMENT_HANDLING&&Mt(Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ve.CUSTOM_ELEMENT_HANDLING&&typeof Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(le=!1),Qe&&(Ce=!0),Re&&(j=oi({},TP),G=vv(null),Re.html===!0&&(oi(j,xP),oi(G,wP)),Re.svg===!0&&(oi(j,v_),oi(G,T_),oi(G,rw)),Re.svgFilters===!0&&(oi(j,b_),oi(G,T_),oi(G,rw)),Re.mathMl===!0&&(oi(j,x_),oi(G,EP),oi(G,rw))),se.tagCheck=null,se.attributeCheck=null,Ve.ADD_TAGS&&(typeof Ve.ADD_TAGS=="function"?se.tagCheck=Ve.ADD_TAGS:(j===W&&(j=Vu(j)),oi(j,Ve.ADD_TAGS,ye))),Ve.ADD_ATTR&&(typeof Ve.ADD_ATTR=="function"?se.attributeCheck=Ve.ADD_ATTR:(G===K&&(G=Vu(G)),oi(G,Ve.ADD_ATTR,ye))),Ve.ADD_URI_SAFE_ATTR&&oi(ke,Ve.ADD_URI_SAFE_ATTR,ye),Ve.FORBID_CONTENTS&&($e===he&&($e=Vu($e)),oi($e,Ve.FORBID_CONTENTS,ye)),Ve.ADD_FORBID_CONTENTS&&($e===he&&($e=Vu($e)),oi($e,Ve.ADD_FORBID_CONTENTS,ye)),it&&(j["#text"]=!0),_e&&oi(j,["html","head","body"]),j.table&&(oi(j,["tbody"]),delete re.tbody),Ve.TRUSTED_TYPES_POLICY){if(typeof Ve.TRUSTED_TYPES_POLICY.createHTML!="function")throw Tv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ve.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Tv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Ve.TRUSTED_TYPES_POLICY,L=C.createHTML("")}else C===void 0&&(C=Efe(p,n)),C!==null&&typeof L=="string"&&(L=C.createHTML(""));Rs&&Rs(Ve),wt=Ve}},Ht=oi({},[...v_,...b_,...dfe]),ir=oi({},[...x_,...ffe]),bt=function(Ve){let Et=x(Ve);(!Et||!Et.tagName)&&(Et={namespaceURI:Ae,tagName:"template"});const zt=tw(Ve.tagName),br=tw(Et.tagName);return Xe[Ve.namespaceURI]?Ve.namespaceURI===fe?Et.namespaceURI===Te?zt==="svg":Et.namespaceURI===ae?zt==="svg"&&(br==="annotation-xml"||ct[br]):!!Ht[zt]:Ve.namespaceURI===ae?Et.namespaceURI===Te?zt==="math":Et.namespaceURI===fe?zt==="math"&&ot[br]:!!ir[zt]:Ve.namespaceURI===Te?Et.namespaceURI===fe&&!ot[br]||Et.namespaceURI===ae&&!ct[br]?!1:!ir[zt]&&(et[zt]||!Ht[zt]):!!(ht==="application/xhtml+xml"&&Xe[Ve.namespaceURI]):!1},me=function(Ve){xv(t.removed,{element:Ve});try{x(Ve).removeChild(Ve)}catch{b(Ve)}},Ft=function(Ve,Et){try{xv(t.removed,{attribute:Et.getAttributeNode(Ve),from:Et})}catch{xv(t.removed,{attribute:null,from:Et})}if(Et.removeAttribute(Ve),Ve==="is")if(Ce||Qe)try{me(Et)}catch{}else try{Et.setAttribute(Ve,"")}catch{}},Ot=function(Ve){let Et=null,zt=null;if(Fe)Ve="<remove></remove>"+Ve;else{const Si=y_(Ve,/^[\r\n\t ]+/);zt=Si&&Si[0]}ht==="application/xhtml+xml"&&Ae===Te&&(Ve='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ve+"</body></html>");const br=C?C.createHTML(Ve):Ve;if(Ae===Te)try{Et=new f().parseFromString(br,ht)}catch{}if(!Et||!Et.documentElement){Et=_.createDocument(Ae,"template",null);try{Et.documentElement.innerHTML=Ie?L:br}catch{}}const mr=Et.body||Et.documentElement;return Ve&&zt&&mr.insertBefore(r.createTextNode(zt),mr.childNodes[0]||null),Ae===Te?P.call(Et,_e?"html":"body")[0]:_e?Et.documentElement:mr},St=function(Ve){return S.call(Ve.ownerDocument||Ve,Ve,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Le=function(Ve){return Ve instanceof d&&(typeof Ve.nodeName!="string"||typeof Ve.textContent!="string"||typeof Ve.removeChild!="function"||!(Ve.attributes instanceof h)||typeof Ve.removeAttribute!="function"||typeof Ve.setAttribute!="function"||typeof Ve.namespaceURI!="string"||typeof Ve.insertBefore!="function"||typeof Ve.hasChildNodes!="function")},ft=function(Ve){return typeof o=="function"&&Ve instanceof o};function at(Pt,Ve,Et){bv(Pt,zt=>{zt.call(t,Ve,Et,wt)})}const Rt=function(Ve){let Et=null;if(at(M.beforeSanitizeElements,Ve,null),Le(Ve))return me(Ve),!0;const zt=ye(Ve.nodeName);if(at(M.uponSanitizeElement,Ve,{tagName:zt,allowedTags:j}),Ee&&Ve.hasChildNodes()&&!ft(Ve.firstElementChild)&&Ns(/<[/\w!]/g,Ve.innerHTML)&&Ns(/<[/\w!]/g,Ve.textContent)||Ee&&Ve.namespaceURI===Te&&zt==="style"&&ft(Ve.firstElementChild)||Ve.nodeType===wv.progressingInstruction||Ee&&Ve.nodeType===wv.comment&&Ns(/<[/\w]/g,Ve.data))return me(Ve),!0;if(re[zt]||!(se.tagCheck instanceof Function&&se.tagCheck(zt))&&!j[zt]){if(!re[zt]&&nr(zt)&&(Z.tagNameCheck instanceof RegExp&&Ns(Z.tagNameCheck,zt)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(zt)))return!1;if(it&&!$e[zt]){const br=x(Ve)||Ve.parentNode,mr=w(Ve)||Ve.childNodes;if(mr&&br){const Si=mr.length;for(let Yr=Si-1;Yr>=0;--Yr){const Ri=y(mr[Yr],!0);Ri.__removalCount=(Ve.__removalCount||0)+1,br.insertBefore(Ri,T(Ve))}}}return me(Ve),!0}return Ve instanceof l&&!bt(Ve)||(zt==="noscript"||zt==="noembed"||zt==="noframes")&&Ns(/<\/no(script|embed|frames)/i,Ve.innerHTML)?(me(Ve),!0):(we&&Ve.nodeType===wv.text&&(Et=Ve.textContent,bv([U,R,F],br=>{Et=W0(Et,br," ")}),Ve.textContent!==Et&&(xv(t.removed,{element:Ve.cloneNode()}),Ve.textContent=Et)),at(M.afterSanitizeElements,Ve,null),!1)},pr=function(Ve,Et,zt){if(ee[Et]||dt&&(Et==="id"||Et==="name")&&(zt in r||zt in Wt))return!1;if(!(le&&!ee[Et]&&Ns(I,Et))){if(!(J&&Ns(B,Et))){if(!(se.attributeCheck instanceof Function&&se.attributeCheck(Et,Ve))){if(!G[Et]||ee[Et]){if(!(nr(Ve)&&(Z.tagNameCheck instanceof RegExp&&Ns(Z.tagNameCheck,Ve)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(Ve))&&(Z.attributeNameCheck instanceof RegExp&&Ns(Z.attributeNameCheck,Et)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(Et,Ve))||Et==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&Ns(Z.tagNameCheck,zt)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(zt))))return!1}else if(!ke[Et]){if(!Ns(z,W0(zt,$,""))){if(!((Et==="src"||Et==="xlink:href"||Et==="href")&&Ve!=="script"&&ufe(zt,"data:")===0&&Je[Ve])){if(!(ce&&!Ns(D,W0(zt,$,"")))){if(zt)return!1}}}}}}}return!0},nr=function(Ve){return Ve!=="annotation-xml"&&y_(Ve,H)},Cr=function(Ve){at(M.beforeSanitizeAttributes,Ve,null);const{attributes:Et}=Ve;if(!Et||Le(Ve))return;const zt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let br=Et.length;for(;br--;){const{name:mr,namespaceURI:Si,value:Yr}=Et[br],Ri=ye(mr),Sa=Yr;let tr=mr==="value"?Sa:hfe(Sa);if(zt.attrName=Ri,zt.attrValue=tr,zt.keepAttr=!0,zt.forceKeepAttr=void 0,at(M.uponSanitizeAttribute,Ve,zt),tr=zt.attrValue,Se&&(Ri==="id"||Ri==="name")&&(Ft(mr,Ve),tr=ut+tr),Ee&&Ns(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,tr)){Ft(mr,Ve);continue}if(Ri==="attributename"&&y_(tr,"href")){Ft(mr,Ve);continue}if(zt.forceKeepAttr)continue;if(!zt.keepAttr){Ft(mr,Ve);continue}if(!ue&&Ns(/\/>/i,tr)){Ft(mr,Ve);continue}we&&bv([U,R,F],Jt=>{tr=W0(tr,Jt," ")});const cr=ye(Ve.nodeName);if(!pr(cr,Ri,tr)){Ft(mr,Ve);continue}if(C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Si)switch(p.getAttributeType(cr,Ri)){case"TrustedHTML":tr=C.createHTML(tr);break;case"TrustedScriptURL":tr=C.createScriptURL(tr);break}if(tr!==Sa)try{Si?Ve.setAttributeNS(Si,mr,tr):Ve.setAttribute(mr,tr),Le(Ve)?me(Ve):bP(t.removed)}catch{Ft(mr,Ve)}}at(M.afterSanitizeAttributes,Ve,null)},Fr=function(Ve){let Et=null;const zt=St(Ve);for(at(M.beforeSanitizeShadowDOM,Ve,null);Et=zt.nextNode();)at(M.uponSanitizeShadowNode,Et,null),Rt(Et),Cr(Et),Et.content instanceof a&&Fr(Et.content);at(M.afterSanitizeShadowDOM,Ve,null)};return t.sanitize=function(Pt){let Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Et=null,zt=null,br=null,mr=null;if(Ie=!Pt,Ie&&(Pt="<!-->"),typeof Pt!="string"&&!ft(Pt))if(typeof Pt.toString=="function"){if(Pt=Pt.toString(),typeof Pt!="string")throw Tv("dirty is not a string, aborting")}else throw Tv("toString is not a function");if(!t.isSupported)return Pt;if(Ue||rr(Ve),t.removed=[],typeof Pt=="string"&&(Ze=!1),Ze){if(Pt.nodeName){const Ri=ye(Pt.nodeName);if(!j[Ri]||re[Ri])throw Tv("root node is forbidden and cannot be sanitized in-place")}}else if(Pt instanceof o)Et=Ot("<!---->"),zt=Et.ownerDocument.importNode(Pt,!0),zt.nodeType===wv.element&&zt.nodeName==="BODY"||zt.nodeName==="HTML"?Et=zt:Et.appendChild(zt);else{if(!Ce&&!we&&!_e&&Pt.indexOf("<")===-1)return C&&Me?C.createHTML(Pt):Pt;if(Et=Ot(Pt),!Et)return Ce?null:Me?L:""}Et&&Fe&&me(Et.firstChild);const Si=St(Ze?Pt:Et);for(;br=Si.nextNode();)Rt(br),Cr(br),br.content instanceof a&&Fr(br.content);if(Ze)return Pt;if(Ce){if(we){Et.normalize();let Ri=Et.innerHTML;bv([U,R,F],Sa=>{Ri=W0(Ri,Sa," ")}),Et.innerHTML=Ri}if(Qe)for(mr=A.call(Et.ownerDocument);Et.firstChild;)mr.appendChild(Et.firstChild);else mr=Et;return(G.shadowroot||G.shadowrootmode)&&(mr=O.call(i,mr,!0)),mr}let Yr=_e?Et.outerHTML:Et.innerHTML;return _e&&j["!doctype"]&&Et.ownerDocument&&Et.ownerDocument.doctype&&Et.ownerDocument.doctype.name&&Ns(CP,Et.ownerDocument.doctype.name)&&(Yr="<!DOCTYPE "+Et.ownerDocument.doctype.name+`>
|
|
63
63
|
`+Yr),we&&bv([U,R,F],Ri=>{Yr=W0(Yr,Ri," ")}),C&&Me?C.createHTML(Yr):Yr},t.setConfig=function(){rr(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Ue=!0},t.clearConfig=function(){wt=null,Ue=!1},t.isValidAttribute=function(Pt,Ve,Et){return wt||rr({}),pr(ye(Pt),ye(Ve),Et)},t.addHook=function(Pt,Ve){typeof Ve=="function"&&xv(M[Pt],Ve)},t.removeHook=function(Pt,Ve){if(Ve!==void 0){const Et=lfe(M[Pt],Ve);return Et===-1?void 0:cfe(M[Pt],Et,1)[0]}return bP(M[Pt])},t.removeHooks=function(Pt){M[Pt]=[]},t.removeAllHooks=function(){M=_P()},t}var yP,vP,afe,sfe,ofe,Rs,hl,vv,p_,g_,bv,lfe,bP,xv,cfe,tw,m_,y_,W0,ufe,hfe,Gl,Ns,Tv,xP,v_,b_,dfe,x_,ffe,TP,wP,T_,EP,rw,pfe,gfe,mfe,yfe,vfe,kP,bfe,xfe,CP,Tfe,SP,wv,wfe,Efe,_P,vd,w_=V((()=>{({entries:yP,setPrototypeOf:vP,isFrozen:afe,getPrototypeOf:sfe,getOwnPropertyDescriptor:ofe}=Object),{freeze:Rs,seal:hl,create:vv}=Object,{apply:p_,construct:g_}=typeof Reflect<"u"&&Reflect,Rs||(Rs=function(t){return t}),hl||(hl=function(t){return t}),p_||(p_=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)}),g_||(g_=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)}),bv=so(Array.prototype.forEach),lfe=so(Array.prototype.lastIndexOf),bP=so(Array.prototype.pop),xv=so(Array.prototype.push),cfe=so(Array.prototype.splice),tw=so(String.prototype.toLowerCase),m_=so(String.prototype.toString),y_=so(String.prototype.match),W0=so(String.prototype.replace),ufe=so(String.prototype.indexOf),hfe=so(String.prototype.trim),Gl=so(Object.prototype.hasOwnProperty),Ns=so(RegExp.prototype.test),Tv=Jft(TypeError),xP=Rs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),v_=Rs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),b_=Rs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dfe=Rs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),x_=Rs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ffe=Rs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),TP=Rs(["#text"]),wP=Rs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),T_=Rs(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),EP=Rs(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rw=Rs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pfe=hl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),gfe=hl(/<%[\w\W]*|[\w\W]*%>/gm),mfe=hl(/\$\{[\w\W]*/gm),yfe=hl(/^data-[\-\w.\u00B7-\uFFFF]+$/),vfe=hl(/^aria-[\-\w]+$/),kP=hl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bfe=hl(/^(?:\w+script|data):/i),xfe=hl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),CP=hl(/^html$/i),Tfe=hl(/^[a-z][.\w]*(-[.\w]+)+$/i),SP=Object.freeze({__proto__:null,ARIA_ATTR:vfe,ATTR_WHITESPACE:xfe,CUSTOM_ELEMENT:Tfe,DATA_ATTR:yfe,DOCTYPE_NAME:CP,ERB_EXPR:gfe,IS_ALLOWED_URI:kP,IS_SCRIPT_OR_DATA:bfe,MUSTACHE_EXPR:pfe,TMPLIT_EXPR:mfe}),wv={element:1,text:3,progressingInstruction:7,comment:8,document:9},wfe=function(){return typeof window>"u"?null:window},Efe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},_P=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vd=nfe()})),tpt=Rr({ParseError:()=>Qt,SETTINGS_SCHEMA:()=>nw,__defineFunction:()=>ur,__defineMacro:()=>xe,__defineSymbol:()=>Q,__domTree:()=>nF,__parse:()=>eF,__renderToDomTree:()=>Aw,__renderToHTMLTree:()=>rF,__setFontMetrics:()=>Cfe,default:()=>lge,render:()=>dA,renderToString:()=>JB,version:()=>iF});function rpt(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}function ipt(e){for(var t=0;t<R_.length;t++)for(var r=R_[t],i=0;i<r.blocks.length;i++){var n=r.blocks[i];if(e>=n[0]&&e<=n[1])return r.name}return null}function kfe(e){for(var t=0;t<sw.length;t+=2)if(e>=sw[t]&&e<=sw[t+1])return!0;return!1}function npt(e){if(e instanceof Oo)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function apt(e){if(e instanceof Z0)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}function Cfe(e,t){Nc[e]=t}function AP(e,t,r){if(!Nc[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),n=Nc[t][i];if(!n&&e[0]in FP&&(i=FP[e[0]].charCodeAt(0),n=Nc[t][i]),!n&&r==="text"&&kfe(i)&&(n=Nc[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}function spt(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!I_[t]){var r=I_[t]={cssEmPerMu:lw.quad[t]/18};for(var i in lw)lw.hasOwnProperty(i)&&(r[i]=lw[i][t])}return I_[t]}function Q(e,t,r,i,n,a){bn[e][n]={font:t,group:r,replace:i},a&&i&&(bn[e][i]=bn[e][n])}function ur(e){for(var{type:t,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n},l=0;l<r.length;++l)XP[r[l]]=o;t&&(a&&(mw[t]=a),s&&(yw[t]=s))}function Y0(e){var{type:t,htmlBuilder:r,mathmlBuilder:i}=e;ur({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:i})}function E_(e,t){var r=qt(["base"],e,t),i=qt(["strut"]);return i.style.height=er(r.height+r.depth),r.depth&&(i.style.verticalAlign=er(-r.depth)),r.children.unshift(i),r}function LP(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var i=ga(e,t,"root"),n;i.length===2&&i[1].hasClass("tag")&&(n=i.pop());for(var a=[],s=[],o=0;o<i.length;o++)if(s.push(i[o]),i[o].hasClass("mbin")||i[o].hasClass("mrel")||i[o].hasClass("allowbreak")){for(var l=!1;o<i.length-1&&i[o+1].hasClass("mspace")&&!i[o+1].hasClass("newline");)o++,s.push(i[o]),i[o].hasClass("nobreak")&&(l=!0);l||(a.push(E_(s,t)),s=[])}else i[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(E_(s,t)),s=[]),a.push(i[o]));s.length>0&&a.push(E_(s,t));var u;r?(u=E_(ga(r,t,!0),t),u.classes=["tag"],a.push(u)):n&&a.push(n);var h=qt(["katex-html"],a);if(h.setAttribute("aria-hidden","true"),u){var d=u.children[0];d.style.height=er(h.height+h.depth),h.depth&&(d.style.verticalAlign=er(-h.depth))}return h}function Sfe(e){return new Q0(e)}function RP(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof ra&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof ra&&r.text===","}else return!1}function _fe(e,t,r,i,n){var a=Bo(e,r),s;a.length===1&&a[0]instanceof Kt&&bpe.has(a[0].type)?s=a[0]:s=new Kt("mrow",a);var o=new Kt("annotation",[new ra(t)]);o.setAttribute("encoding","application/x-tex");var l=new Kt("math",[new Kt("semantics",[s,o])]);return l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&l.setAttribute("display","block"),qt([n?"katex":"katex-mathml"],[l])}function ei(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function k_(e){var t=C_(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function C_(e){return e&&(e.type==="atom"||spe.hasOwnProperty(e.type))?e:null}function Afe(e,t){var r=ga(e.body,t,!0);return qt([e.mclass],r,t)}function Lfe(e,t){var r,i=Bo(e.body,t);return e.mclass==="minner"?r=new Kt("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(r=i[0],r.type="mi"):r=new Kt("mi",i):(e.isCharacterBox?(r=i[0],r.type="mo"):r=new Kt("mo",i),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}function opt(e,t,r){var i=Ape[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var n=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:i,mode:"math",family:"rel"},s={type:"ordgroup",mode:"math",body:[n,r.callFunction("\\Big",[a],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[s],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}function lpt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Qt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],n=[i],a=0;a<t.length;a++){for(var s=t[a],o=aB(),l=0;l<s.length;l++)if(!sB(s[l]))o.body.push(s[l]);else{i.push(o),l+=1;var u=k_(s[l]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var d=0;d<2;d++){for(var f=!0,p=l+1;p<s.length;p++){if(Lpe(s[p],u)){f=!1,l=p;break}if(sB(s[p]))throw new Qt("Missing a "+u+" character to complete a CD arrow.",s[p]);h[d].body.push(s[p])}if(f)throw new Qt("Missing a "+u+" character to complete a CD arrow.",s[l])}else throw new Qt('Expected one of "<>AV=|." after @',s[l]);var g={type:"styling",body:[opt(u,h,e)],mode:"math",style:"display"};i.push(g),o=aB()}a%2===0?i.push(o):i.shift(),i=[],n.push(i)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}function S_(e,t){var r=C_(e);if(r&&zpe.has(r.text))return r;throw r?new Qt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Qt("Invalid delimiter type '"+e.type+"'",e)}function Rfe(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function qu(e){for(var{type:t,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l<r.length;++l)xB[r[l]]=o;a&&(mw[t]=a),s&&(yw[t]=s)}function xe(e,t){TB[e]=t}function Nfe(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}function NP(e){if(!e.includes("ed"))return!e.includes("*")}function Tp(e,t,r){var{hskipBeforeAndAfter:i,addJot:n,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:h,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new Qt("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var g=[],y=[g],b=[],T=[],w=l!=null?[]:void 0;function x(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new Wl("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(x(),T.push(Nfe(e));;){var L=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var _={type:"ordgroup",mode:e.mode,body:L};r&&(_={type:"styling",mode:e.mode,style:r,body:[_]}),g.push(_);var S=e.fetch().text;if(S==="&"){if(d&&g.length===d){if(u||o)throw new Qt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(S==="\\end"){C(),g.length===1&&_.type==="styling"&&_.body.length===1&&_.body[0].type==="ordgroup"&&_.body[0].body.length===0&&(y.length>1||!h)&&y.pop(),T.length<y.length+1&&T.push([]);break}else if(S==="\\\\"){e.consume();var A=void 0;e.gullet.future().text!==" "&&(A=e.parseSizeGroup(!0)),b.push(A?A.value:null),C(),T.push(Nfe(e)),g=[],y.push(g),x()}else throw new Qt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:s,body:y,cols:a,rowGaps:b,hskipBeforeAndAfter:i,hLinesBeforeRow:T,colSeparationType:o,tags:w,leqno:f}}function DP(e){return e.slice(0,1)==="d"?"display":"text"}function Dfe(e,t,r){for(var i=ga(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,a=0;a<i.length;a++){var s=i[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(i[a].classes,t.sizingClasses(r)):i[a].classes[s+1]==="reset-size"+t.size&&(i[a].classes[s+1]="reset-size"+r.size),i[a].height*=n,i[a].depth*=n}return Xu(i)}var Qt,Ife,__,Mfe,Ofe,hs,iw,Pfe,Gu,Bfe,nw,A_,bd,L_,aw,j0,Wu,Ev,dl,X0,Ds,Rc,Ffe,$fe,zfe,Ufe,Hfe,Vfe,Kr,R_,sw,pa,K0,qfe,Gfe,Wfe,Yfe,jfe,Xfe,Kfe,Qfe,Zfe,IP,Jfe,Q0,N_,epe,MP,Ln,er,xd,OP,PP,tpe,BP,Z0,ow,rpe,ipe,Oo,Yu,Td,D_,npe,Nc,lw,FP,I_,ape,spe,bn,te,Ut,ge,qe,xn,dr,Is,J0,Ir,ea,Po,kv,We,ju,rt,$P,zP,M_,UP,HP,O_,VP,cw,P_,uw,Wr,Ms,Fn,wp,wd,B_,F_,hw,dw,qP,ope,fw,Os,$_,lpe,pw,cpe,GP,z_,qt,Ed,em,upe,Xu,tm,hpe,Di,WP,gw,U_,YP,jP,Rn,Ep,Ku,dpe,fpe,XP,mw,yw,vw,ta,ppe,gpe,mpe,ype,ga,H_,KP,V_,q_,Cv,Ii,Kt,ra,QP,vpe,bpe,fl,G_,W_,Bo,kd,Zi,xpe,ZP,JP,eB,tB,rB,Tpe,wpe,Epe,bw,kpe,Cpe,xw,Spe,iB,Y_,nB,_pe,Tw,ww,Ape,aB,sB,Lpe,oB,lB,j_,cB,Rpe,uB,Sv,X_,hB,Npe,Dpe,dB,K_,Q_,Z_,Ew,Ipe,Mpe,fB,J_,eA,tA,Ope,pB,Ppe,gB,_v,mB,Bpe,Fpe,yB,$pe,vB,rA,iA,bB,zpe,kw,Cw,xB,TB,pl,Wl,Sw,Upe,Dc,Hpe,Ic,wB,EB,kB,CB,SB,Vpe,qpe,_B,AB,LB,RB,Gpe,nA,NB,DB,IB,rm,Av,Wpe,Ype,MB,jpe,OB,Xpe,PB,Kpe,BB,aA,sA,FB,$B,zB,Qpe,UB,HB,Cd,VB,Zpe,Jpe,ege,tge,oA,rge,ige,qB,nge,age,GB,lA,WB,sge,cA,YB,jB,XB,oge,KB,_w,uA,QB,ZB,hA,dA,JB,eF,tF,Aw,rF,iF,nF,lge,cpt=V((()=>{for(Qt=class Gnt extends Error{constructor(t,r){var i="KaTeX parse error: "+t,n,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;n=s.start,a=s.end,n===o.length?i+=" at end of input: ":i+=" at position "+(n+1)+": ";var l=o.slice(n,a).replace(/[^]/g,"$&̲"),u;n>15?u="…"+o.slice(n-15,n):u=o.slice(0,n);var h;a+15<o.length?h=o.slice(a,a+15)+"…":h=o.slice(a),i+=u+l+h}super(i),this.name="ParseError",Object.setPrototypeOf(this,Gnt.prototype),this.position=n,n!=null&&a!=null&&(this.length=a-n),this.rawMessage=t}},Ife=/([A-Z])/g,__=e=>e.replace(Ife,"-$1").toLowerCase(),Mfe={"&":"&",">":">","<":"<",'"':""","'":"'"},Ofe=/[&><"']/g,hs=e=>String(e).replace(Ofe,t=>Mfe[t]),iw=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?iw(e.body[0]):e:e.type==="font"?iw(e.body):e,Pfe=new Set(["mathord","textord","atom"]),Gu=e=>Pfe.has(iw(e).type),Bfe=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},nw={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}},A_=class{constructor(e){e===void 0&&(e={}),e=e||{};for(var t of Object.keys(nw)){var r=nw[t],i=e[t];this[t]=i!==void 0?r.processor?r.processor(i):i:rpt(r)}}reportNonstrict(e,t,r){var i=this.strict;if(typeof i=="function"&&(i=i(e,t,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Qt("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,r){var i=this.strict;if(typeof i=="function")try{i=i(e,t,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=Bfe(e.url);if(t==null)return!1;e.protocol=t}var r=typeof this.trust=="function"?this.trust(e):this.trust;return!!r}},bd=class{constructor(e,t,r){this.id=e,this.size=t,this.cramped=r}sup(){return Rc[Ffe[this.id]]}sub(){return Rc[$fe[this.id]]}fracNum(){return Rc[zfe[this.id]]}fracDen(){return Rc[Ufe[this.id]]}cramp(){return Rc[Hfe[this.id]]}text(){return Rc[Vfe[this.id]]}isTight(){return this.size>=2}},L_=0,aw=1,j0=2,Wu=3,Ev=4,dl=5,X0=6,Ds=7,Rc=[new bd(L_,0,!1),new bd(aw,0,!0),new bd(j0,1,!1),new bd(Wu,1,!0),new bd(Ev,2,!1),new bd(dl,2,!0),new bd(X0,3,!1),new bd(Ds,3,!0)],Ffe=[Ev,dl,Ev,dl,X0,Ds,X0,Ds],$fe=[dl,dl,dl,dl,Ds,Ds,Ds,Ds],zfe=[j0,Wu,Ev,dl,X0,Ds,X0,Ds],Ufe=[Wu,Wu,dl,dl,Ds,Ds,Ds,Ds],Hfe=[aw,aw,Wu,Wu,dl,dl,Ds,Ds],Vfe=[L_,aw,j0,Wu,j0,Wu,j0,Wu],Kr={DISPLAY:Rc[L_],TEXT:Rc[j0],SCRIPT:Rc[Ev],SCRIPTSCRIPT:Rc[X0]},R_=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],sw=[],R_.forEach(e=>e.blocks.forEach(t=>sw.push(...t))),pa=e=>e+" "+e,K0=80,qfe=function(t,r){return"M95,"+(622+t+r)+`
|
|
64
64
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
65
65
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
@@ -3314,7 +3314,7 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
|
|
|
3314
3314
|
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
|
|
3315
3315
|
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const i=Fi(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(n=>{uk(n.styles)||i.forEach(a=>{r+=pWe(n.id,a,n.styles)}),uk(n.textStyles)||(r+=pWe(n.id,"tspan",(n?.textStyles||[]).map(a=>a.replace("color","fill"))))})}return r},"createCssStyles"),qNt=k((e,t,r,i)=>ij(l3t(`${i}{${t0e(t,VNt(e,r),{...e.themeVariables,theme:e.theme,look:e.look},i)}}`),u3t),"createUserStyles"),GNt=k((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=hh(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),WNt=k((e="",t)=>`<iframe style="width:${ONt};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":PNt};${BNt}" src="data:text/html;charset=UTF-8;base64,${dWe(`<body style="${FNt}">${e}</body>`)}" sandbox="${$Nt}">
|
|
3316
3316
|
${zNt}
|
|
3317
|
-
</iframe>`,"putIntoIFrame"),gWe=k((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",DNt);return n&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");function Fte(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}k(Fte,"sandboxedIframe");var YNt=k((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),jNt=k(async function(e,t,r){CD();const i=Bte(t);t=i.code;const n=Dr();de.debug(n),t.length>(n?.maxTextSize??ANt)&&(t=LNt);const a="#"+e,s="i"+e,o="#"+s,l="d"+e,u="#"+l,h=k(()=>{const U=It(f?o:u).node();U&&"remove"in U&&U.remove()},"removeTempElements");let d=It("body");const f=n.securityLevel===RNt,p=n.securityLevel===NNt,g=n.fontFamily;r!==void 0?(r&&(r.innerHTML=""),f?(d=It(Fte(It(r),s).nodes()[0].contentDocument.body),d.node().style.margin=0):d=It(r),gWe(d,e,l,`font-family: ${g}`,INt)):(YNt(document,e,l,s),f?(d=It(Fte(It("body"),s).nodes()[0].contentDocument.body),d.node().style.margin=0):d=It("body"),gWe(d,e,l));let y,b;try{y=await Ote.fromText(t,{title:i.title})}catch(U){if(n.suppressErrorRendering)throw h(),U;y=await Ote.fromText("error"),b=U}const T=d.select(u).node(),w=y.type,x=T.firstChild,C=x.firstChild,L=y.renderer.getClasses?.(t,y),_=qNt(n,w,L,a),S=document.createElement("style");S.innerHTML=_,x.insertBefore(S,C);try{await y.renderer.draw(t,e,"11.14.0",y)}catch(U){throw n.suppressErrorRendering?h():aNt.draw(t,e,"11.14.0"),U}const A=d.select(`${u} svg`),P=y.db.getAccTitle?.(),O=y.db.getAccDescription?.();vWe(w,A,P,O),d.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",MNt);let M=d.select(u).node().innerHTML;if(de.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),M=GNt(M,f,Zu(n.arrowMarkerAbsolute)),f){const U=d.select(u+" svg").node();M=WNt(M,U)}else p||(M=vd.sanitize(M,{ADD_TAGS:UNt,ADD_ATTR:HNt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(ENt(),b)throw b;return h(),{diagramType:w,svg:M,bindFunctions:y.db.bindFunctions}},"render");function mWe(e={}){const t=Gn({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Oge(t),t?.theme&&t.theme in Qu?t.themeVariables=Qu[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Qu.default.getThemeVariables(t.themeVariables)),c_((typeof t=="object"?Mge(t):uF()).logLevel),CD()}k(mWe,"initialize");var yWe=k((e,t={})=>{const{code:r}=Pte(e);return Ote.fromText(r,t)},"getDiagramFromText");function vWe(e,t,r,i){lWe(t,e),cWe(t,r,i,t.attr("id"))}k(vWe,"addA11yInfo");var Ty=Object.freeze({render:jNt,parse:fWe,getDiagramFromText:yWe,initialize:mWe,getConfig:Dr,setConfig:hF,getSiteConfig:uF,updateSiteConfig:Pge,reset:k(()=>{Nw()},"reset"),globalReset:k(()=>{Nw(im)},"globalReset"),defaultConfig:im});c_(Dr().logLevel),Nw(Dr());var XNt=k((e,t,r)=>{de.warn(e),yU(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),bWe=k(async function(e={querySelector:".mermaid"}){try{await KNt(e)}catch(t){if(yU(t)&&de.error(t.str),If.parseError&&If.parseError(t),!e.suppressErrors)throw de.error("Use the suppressErrors option to suppress these errors"),t}},"run"),KNt=k(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Ty.getConfig();de.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");de.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(de.debug("Start On Load: "+i?.startOnLoad),Ty.updateSiteConfig({startOnLoad:i?.startOnLoad}));const a=new Xr.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const l of Array.from(n)){if(de.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${a.next()}`;s=l.innerHTML,s=JTe(Xr.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Xr.detectInit(s);h&&de.debug("Detected early reinit: ",h);try{const{svg:d,bindFunctions:f}=await EWe(u,s,l);l.innerHTML=d,e&&await e(u),f&&f(l)}catch(d){XNt(d,o,If.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),xWe=k(function(e){Ty.initialize(e)},"initialize"),QNt=k(async function(e,t,r){de.warn("mermaid.init is deprecated. Please use run instead."),e&&xWe(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await bWe(i)},"init"),ZNt=k(async(e,{lazyLoad:t=!0}={})=>{CD(),pA(...e),t===!1&&await TNt()},"registerExternalDiagrams"),TWe=k(function(){if(If.startOnLoad){const{startOnLoad:e}=Ty.getConfig();e&&If.run().catch(t=>de.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",TWe,!1);var JNt=k(function(e){If.parseError=e},"setParseErrorHandler"),SD=[],$te=!1,wWe=k(async()=>{if(!$te){for($te=!0;SD.length>0;){const e=SD.shift();if(e)try{await e()}catch(t){de.error("Error executing queue",t)}}$te=!1}},"executeQueue"),eDt=k(async(e,t)=>new Promise((r,i)=>{const n=k(()=>new Promise((a,s)=>{Ty.parse(e,t).then(o=>{a(o),r(o)},o=>{de.error("Error parsing",o),If.parseError?.(o),s(o),i(o)})}),"performCall");SD.push(n),wWe().catch(i)}),"parse"),EWe=k((e,t,r)=>new Promise((i,n)=>{const a=k(()=>new Promise((s,o)=>{Ty.render(e,t,r).then(l=>{s(l),i(l)},l=>{de.error("Error parsing",l),If.parseError?.(l),o(l),n(l)})}),"performCall");SD.push(a),wWe().catch(n)}),"render"),If={startOnLoad:!0,mermaidAPI:Ty,parse:eDt,render:EWe,init:QNt,run:bWe,registerExternalDiagrams:ZNt,registerLayoutLoaders:ZY,initialize:xWe,parseError:void 0,contentLoaded:TWe,setParseErrorHandler:JNt,detectType:fA,registerIconPacks:YU,getRegisteredDiagramsMetadata:k(()=>Object.keys(kp).map(e=>({id:e})),"getRegisteredDiagramsMetadata")},zte=If,kWe={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0};function tDt(e={}){let t=!1,r={...kWe,...e.config},i={initialize(n){r={...kWe,...e.config,...n},zte.initialize(r),t=!0},async render(n,a){return t||(zte.initialize(r),t=!0),await zte.render(n,a)}};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid(n){return n&&i.initialize(n),i}}}var rDt=tDt();function iDt(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=AS(e[r]);return _D(i);function i(...n){let a=-1;for(;++a<t.length;)if(t[a].apply(this,n))return!0;return!1}}function nDt(e){const t=e;return _D(r);function r(i){const n=i;let a;for(a in e)if(n[a]!==t[a])return!1;return!0}}function aDt(e){return _D(t);function t(r){return r&&r.type===e}}function _D(e){return t;function t(r,i,n){return!!(oDt(r)&&e.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function sDt(){return!0}function oDt(e){return e!==null&&typeof e=="object"&&"type"in e}var AS,lDt=V((()=>{AS=(function(e){if(e==null)return sDt;if(typeof e=="function")return _D(e);if(typeof e=="object")return Array.isArray(e)?iDt(e):nDt(e);if(typeof e=="string")return aDt(e);throw new Error("Expected function, string, or object as test")})})),Ute=V((()=>{lDt()}));function ZGt(e){return e}var cDt=V((()=>{}));function Hte(e,t,r,i){let n;typeof t=="function"&&typeof r!="function"?(i=r,r=t):n=t;const a=AS(n),s=i?-1:1;o(e,void 0,[])();function o(l,u,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Vte,g,y,b;if((!t||a(l,u,h[h.length-1]||void 0))&&(p=uDt(r(l,h)),p[0]===!1))return p;if("children"in l&&l.children){const T=l;if(T.children&&p[0]!=="skip")for(y=(i?T.children.length:-1)+s,b=h.concat(T);y>-1&&y<T.children.length;){const w=T.children[y];if(g=o(w,y,b)(),g[0]===!1)return g;y=typeof g[1]=="number"?g[1]:y+s}}return p}}}function uDt(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Vte:[e]}var Vte,hDt,dDt,kx,fDt=V((()=>{Ute(),cDt(),Vte=[],hDt=!0,dDt=!1,kx="skip"})),qte=V((()=>{fDt()}));function nd(e,t,r,i){let n,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,n=r):(a=t,s=r,n=i),Hte(e,a,o,n);function o(l,u){const h=u[u.length-1],d=h?h.children.indexOf(l):void 0;return s(l,d,h)}}var pDt=V((()=>{qte()})),LS=V((()=>{pDt()}));function gDt({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:i=!1,allowedProtocols:n=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=wy.indicator,imageBlockPolicy:l=wy.indicator}){const u=t.length&&!t.every(d=>d==="*"),h=r.length&&!r.every(d=>d==="*");if(!e&&(u||h))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return d=>{const f=RWe(e,t,r,i,n,a,s,o,l);_We(d),nd(d,f)}}function CWe(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function mDt(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}function SWe(e,t,r,i=!1,n=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!n)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return n&&i&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const l=e.substring(5);if(l&&l.length>0&&l!=="invalid")return e}}catch{return null}return null}const s=CWe(e,r);if(!s||LWe.has(s.protocol)||!(AWe.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const o=mDt(e);return s&&t.some(l=>{const u=CWe(l,r);return!u||u.origin!==s.origin?!1:s.href.startsWith(u.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:o?s.pathname+s.search+s.hash:s.href:null}function _We(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)_We(t)}}function yDt(e,t,r){return t===wy.remove?{type:"remove"}:t===wy.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function vDt(e,t,r){if(t===wy.remove)return{type:"remove"};if(t===wy.textOnly){const i=String(e.properties.alt||"");return i?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:i}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}var wy,AWe,LWe,AD,RWe,bDt=V((()=>{LS(),wy={indicator:"indicator",textOnly:"text-only",remove:"remove"},AWe=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),LWe=new Set(["javascript:","data:","file:","vbscript:"]),AD=Symbol("node-seen"),RWe=(e,t,r,i,n,a,s,o,l)=>{const u=(h,d,f)=>{if(h.type!=="element"||h[AD])return!0;if(h.tagName==="a"){const p=SWe(h.properties.href,t,e,!1,!1,n);if(p===null){if(h[AD]=!0,nd(h,u),f&&typeof d=="number"){const g=yDt(h,o,s);if(g.type==="remove")return f.children.splice(d,1),[kx,d];f.children[d]=g.element}return kx}else return h.properties.href=p,h.properties.target="_blank",h.properties.rel="noopener noreferrer",!0}if(h.tagName==="img"){const p=SWe(h.properties.src,r,e,i,!0,n);if(p===null){if(h[AD]=!0,nd(h,u),f&&typeof d=="number"){const g=vDt(h,l,a);if(g.type==="remove")return f.children.splice(d,1),[kx,d];f.children[d]=g.element}return kx}else return h.properties.src=p,!0}return!0};return u}})),NWe=V((()=>{})),Gte,DWe,Wte,xDt=V((()=>{NWe(),Gte=typeof self=="object"?self:globalThis,DWe=(e,t)=>{const r=(n,a)=>(e.set(a,n),n),i=n=>{if(e.has(n))return e.get(n);const[a,s]=t[n];switch(a){case 0:case-1:return r(s,n);case 1:{const o=r([],n);for(const l of s)o.push(i(l));return o}case 2:{const o=r({},n);for(const[l,u]of s)o[i(l)]=i(u);return o}case 3:return r(new Date(s),n);case 4:{const{source:o,flags:l}=s;return r(new RegExp(o,l),n)}case 5:{const o=r(new Map,n);for(const[l,u]of s)o.set(i(l),i(u));return o}case 6:{const o=r(new Set,n);for(const l of s)o.add(i(l));return o}case 7:{const{name:o,message:l}=s;return r(new Gte[o](l),n)}case 8:return r(BigInt(s),n);case"BigInt":return r(Object(BigInt(s)),n);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new Gte[a](s),n)};return i},Wte=e=>DWe(new Map,e)(0)})),Ey,IWe,MWe,Cx,RS,OWe,Yte,TDt=V((()=>{NWe(),Ey="",{toString:IWe}={},{keys:MWe}=Object,Cx=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const r=IWe.call(e).slice(8,-1);switch(r){case"Array":return[1,Ey];case"Object":return[2,Ey];case"Date":return[3,Ey];case"RegExp":return[4,Ey];case"Map":return[5,Ey];case"Set":return[6,Ey];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},RS=([e,t])=>e===0&&(t==="function"||t==="symbol"),OWe=(e,t,r,i)=>{const n=(s,o)=>{const l=i.push(s)-1;return r.set(o,l),l},a=s=>{if(r.has(s))return r.get(s);let[o,l]=Cx(s);switch(o){case 0:{let h=s;switch(l){case"bigint":o=8,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);h=null;break;case"undefined":return n([-1],s)}return n([o,h],s)}case 1:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),n([l,[...f]],s)}const h=[],d=n([o,h],s);for(const f of s)h.push(a(f));return d}case 2:{if(l)switch(l){case"BigInt":return n([l,s.toString()],s);case"Boolean":case"Number":case"String":return n([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=n([o,h],s);for(const f of MWe(s))(e||!RS(Cx(s[f])))&&h.push([a(f),a(s[f])]);return d}case 3:return n([o,s.toISOString()],s);case 4:{const{source:h,flags:d}=s;return n([o,{source:h,flags:d}],s)}case 5:{const h=[],d=n([o,h],s);for(const[f,p]of s)(e||!(RS(Cx(f))||RS(Cx(p))))&&h.push([a(f),a(p)]);return d}case 6:{const h=[],d=n([o,h],s);for(const f of s)(e||!RS(Cx(f)))&&h.push(a(f));return d}}const{message:u}=s;return n([o,{name:l,message:u}],s)};return a},Yte=(e,{json:t,lossy:r}={})=>{const i=[];return OWe(!(t||r),!!t,new Map,i)(e),i}})),Kg,LD=V((()=>{xDt(),TDt(),Kg=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Wte(Yte(e,t)):structuredClone(e):(e,t)=>Wte(Yte(e,t))}));function JGt(){}var Mf=V((()=>{})),Sx,PWe=V((()=>{Sx=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}},Sx.prototype.normal={},Sx.prototype.property={},Sx.prototype.space=void 0}));function BWe(e,t){const r={},i={};for(const n of e)Object.assign(r,n.property),Object.assign(i,n.normal);return new Sx(r,i,t)}var wDt=V((()=>{PWe()}));function NS(e){return e.toLowerCase()}var jte=V((()=>{})),Ao,FWe=V((()=>{Ao=class{constructor(e,t){this.attribute=t,this.property=e}},Ao.prototype.attribute="",Ao.prototype.booleanish=!1,Ao.prototype.boolean=!1,Ao.prototype.commaOrSpaceSeparated=!1,Ao.prototype.commaSeparated=!1,Ao.prototype.defined=!1,Ao.prototype.mustUseProperty=!1,Ao.prototype.number=!1,Ao.prototype.overloadedBoolean=!1,Ao.prototype.property="",Ao.prototype.spaceSeparated=!1,Ao.prototype.space=void 0})),Xte=Rr({boolean:()=>Zr,booleanish:()=>ca,commaOrSpaceSeparated:()=>rl,commaSeparated:()=>Cy,number:()=>Zt,overloadedBoolean:()=>RD,spaceSeparated:()=>hn});function ky(){return 2**++$We}var $We,Zr,ca,RD,Zt,hn,Cy,rl,ND=V((()=>{$We=0,Zr=ky(),ca=ky(),RD=ky(),Zt=ky(),hn=ky(),Cy=ky(),rl=ky()}));function zWe(e,t,r){r&&(e[t]=r)}var DD,ID,UWe=V((()=>{FWe(),ND(),DD=Object.keys(Xte),ID=class extends Ao{constructor(e,t,r,i){let n=-1;if(super(e,t),zWe(this,"space",i),typeof r=="number")for(;++n<DD.length;){const a=DD[n];zWe(this,DD[n],(r&Xte[a])===Xte[a])}}},ID.prototype.defined=!0}));function _x(e){const t={},r={};for(const[i,n]of Object.entries(e.properties)){const a=new ID(i,e.transform(e.attributes||{},i),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,r[NS(i)]=i,r[NS(a.attribute)]=i}return new Sx(t,r,e.space)}var Ax=V((()=>{jte(),UWe(),PWe()})),Kte,EDt=V((()=>{Ax(),ND(),Kte=_x({properties:{ariaActiveDescendant:null,ariaAtomic:ca,ariaAutoComplete:null,ariaBusy:ca,ariaChecked:ca,ariaColCount:Zt,ariaColIndex:Zt,ariaColSpan:Zt,ariaControls:hn,ariaCurrent:null,ariaDescribedBy:hn,ariaDetails:null,ariaDisabled:ca,ariaDropEffect:hn,ariaErrorMessage:null,ariaExpanded:ca,ariaFlowTo:hn,ariaGrabbed:ca,ariaHasPopup:null,ariaHidden:ca,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hn,ariaLevel:Zt,ariaLive:null,ariaModal:ca,ariaMultiLine:ca,ariaMultiSelectable:ca,ariaOrientation:null,ariaOwns:hn,ariaPlaceholder:null,ariaPosInSet:Zt,ariaPressed:ca,ariaReadOnly:ca,ariaRelevant:null,ariaRequired:ca,ariaRoleDescription:hn,ariaRowCount:Zt,ariaRowIndex:Zt,ariaRowSpan:Zt,ariaSelected:ca,ariaSetSize:Zt,ariaSort:null,ariaValueMax:Zt,ariaValueMin:Zt,ariaValueNow:Zt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}})}));function HWe(e,t){return t in e?e[t]:t}var VWe=V((()=>{}));function qWe(e,t){return HWe(e,t.toLowerCase())}var GWe=V((()=>{VWe()})),WWe,kDt=V((()=>{GWe(),Ax(),ND(),WWe=_x({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cy,acceptCharset:hn,accessKey:hn,action:null,allow:null,allowFullScreen:Zr,allowPaymentRequest:Zr,allowUserMedia:Zr,alt:null,as:null,async:Zr,autoCapitalize:null,autoComplete:hn,autoFocus:Zr,autoPlay:Zr,blocking:hn,capture:null,charSet:null,checked:Zr,cite:null,className:hn,cols:Zt,colSpan:null,content:null,contentEditable:ca,controls:Zr,controlsList:hn,coords:Zt|Cy,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Zr,defer:Zr,dir:null,dirName:null,disabled:Zr,download:RD,draggable:ca,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Zr,formTarget:null,headers:hn,height:Zt,hidden:RD,high:Zt,href:null,hrefLang:null,htmlFor:hn,httpEquiv:hn,id:null,imageSizes:null,imageSrcSet:null,inert:Zr,inputMode:null,integrity:null,is:null,isMap:Zr,itemId:null,itemProp:hn,itemRef:hn,itemScope:Zr,itemType:hn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Zr,low:Zt,manifest:null,max:null,maxLength:Zt,media:null,method:null,min:null,minLength:Zt,multiple:Zr,muted:Zr,name:null,nonce:null,noModule:Zr,noValidate:Zr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Zr,optimum:Zt,pattern:null,ping:hn,placeholder:null,playsInline:Zr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Zr,referrerPolicy:null,rel:hn,required:Zr,reversed:Zr,rows:Zt,rowSpan:Zt,sandbox:hn,scope:null,scoped:Zr,seamless:Zr,selected:Zr,shadowRootClonable:Zr,shadowRootDelegatesFocus:Zr,shadowRootMode:null,shape:null,size:Zt,sizes:null,slot:null,span:Zt,spellCheck:ca,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Zt,step:null,style:null,tabIndex:Zt,target:null,title:null,translate:null,type:null,typeMustMatch:Zr,useMap:null,value:ca,width:Zt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hn,axis:null,background:null,bgColor:null,border:Zt,borderColor:null,bottomMargin:Zt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Zr,declare:Zr,event:null,face:null,frame:null,frameBorder:null,hSpace:Zt,leftMargin:Zt,link:null,longDesc:null,lowSrc:null,marginHeight:Zt,marginWidth:Zt,noResize:Zr,noHref:Zr,noShade:Zr,noWrap:Zr,object:null,profile:null,prompt:null,rev:null,rightMargin:Zt,rules:null,scheme:null,scrolling:ca,standby:null,summary:null,text:null,topMargin:Zt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Zt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Zr,disableRemotePlayback:Zr,prefix:null,property:null,results:Zt,security:null,unselectable:null},space:"html",transform:qWe})})),YWe,CDt=V((()=>{VWe(),Ax(),ND(),YWe=_x({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:rl,accentHeight:Zt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Zt,amplitude:Zt,arabicForm:null,ascent:Zt,attributeName:null,attributeType:null,azimuth:Zt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zt,by:null,calcMode:null,capHeight:Zt,className:hn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zt,diffuseConstant:Zt,direction:null,display:null,dur:null,divisor:Zt,dominantBaseline:null,download:Zr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Zt,enableBackground:null,end:null,event:null,exponent:Zt,externalResourcesRequired:null,fill:null,fillOpacity:Zt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Cy,g2:Cy,glyphName:Cy,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Zt,horizOriginX:Zt,horizOriginY:Zt,id:null,ideographic:Zt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Zt,k:Zt,k1:Zt,k2:Zt,k3:Zt,k4:Zt,kernelMatrix:rl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Zt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zt,overlineThickness:Zt,paintOrder:null,panose1:null,path:null,pathLength:Zt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:hn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Zt,pointsAtY:Zt,pointsAtZ:Zt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rl,rev:rl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rl,requiredFeatures:rl,requiredFonts:rl,requiredFormats:rl,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zt,specularExponent:Zt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Zt,strikethroughThickness:Zt,string:null,stroke:null,strokeDashArray:rl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Zt,strokeOpacity:Zt,strokeWidth:null,style:null,surfaceScale:Zt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rl,tabIndex:Zt,tableValues:null,target:null,targetX:Zt,targetY:Zt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Zt,underlineThickness:Zt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zt,values:null,vAlphabetic:Zt,vMathematical:Zt,vectorEffect:null,vHanging:Zt,vIdeographic:Zt,version:null,vertAdvY:Zt,vertOriginX:Zt,vertOriginY:Zt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:HWe})})),Qte,SDt=V((()=>{Ax(),Qte=_x({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}})})),Zte,_Dt=V((()=>{Ax(),GWe(),Zte=_x({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qWe})})),Jte,ADt=V((()=>{Ax(),Jte=_x({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}})})),jWe,LDt=V((()=>{jWe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"}}));function MD(e,t){const r=NS(t);let i=t,n=Ao;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&KWe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ere,NDt);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ere.test(a)){let s=a.replace(XWe,RDt);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}n=ID}return new n(i,t)}function RDt(e){return"-"+e.toLowerCase()}function NDt(e){return e.charAt(1).toUpperCase()}var XWe,ere,KWe,DDt=V((()=>{UWe(),FWe(),jte(),XWe=/[A-Z]/g,ere=/-[a-z]/g,KWe=/^data[-\w.:]+$/i})),Lx,Of,DS=V((()=>{wDt(),EDt(),kDt(),CDt(),SDt(),_Dt(),ADt(),LDt(),DDt(),jte(),Lx=BWe([Kte,WWe,Qte,Zte,Jte],"html"),Of=BWe([Kte,YWe,Qte,Zte,Jte],"svg")}));function QWe(e){const t=[],r=String(e||"");let i=r.indexOf(","),n=0,a=!1;for(;!a;){i===-1&&(i=r.length,a=!0);const s=r.slice(n,i).trim();(s||!a)&&t.push(s),n=i+1,i=r.indexOf(",",n)}return t}function ZWe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var tre=V((()=>{}));function IDt(e,t){const r=e||"",i={};let n=0,a,s;for(;n<r.length;){rre.lastIndex=n;const o=rre.exec(r),l=r.slice(n,o?o.index:r.length);l&&(a?a==="#"?i.id=l:Array.isArray(i.className)?i.className.push(l):i.className=[l]:s=l,n+=l.length),o&&(a=o[0],n++)}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}var rre,MDt=V((()=>{rre=/[#.]/g})),ODt=V((()=>{MDt()}));function JWe(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function eYe(e){return e.join(" ").trim()}var ire=V((()=>{}));function tYe(e,t,r){const i=r?$Dt(r):void 0;function n(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=IDt(a,t);const u=l.tagName.toLowerCase(),h=i?i.get(u):void 0;if(l.tagName=h||u,PDt(s))o.unshift(s);else for(const[d,f]of Object.entries(s))BDt(e,l.properties,d,f)}for(const u of o)nre(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return n}function PDt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const i of r){const n=t[i];if(n&&typeof n=="object"){if(!Array.isArray(n))return!0;const a=n;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function BDt(e,t,r,i){const n=MD(e,r);let a;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;a=i}else typeof i=="boolean"?a=i:typeof i=="string"?n.spaceSeparated?a=JWe(i):n.commaSeparated?a=QWe(i):n.commaOrSpaceSeparated?a=JWe(QWe(i).join(" ")):a=rYe(n,n.property,i):Array.isArray(i)?a=[...i]:a=n.property==="style"?FDt(i):String(i);if(Array.isArray(a)){const s=[];for(const o of a)s.push(rYe(n,n.property,o));a=s}n.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[n.property]=a}}function nre(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)nre(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?nre(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function rYe(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||NS(r)===NS(t)))return!0}return r}function FDt(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function $Dt(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}var zDt=V((()=>{tre(),ODt(),DS(),ire()})),iYe,UDt=V((()=>{iYe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]})),nYe,aYe,HDt=V((()=>{DS(),zDt(),UDt(),nYe=tYe(Lx,"div"),aYe=tYe(Of,"g",iYe)})),VDt=V((()=>{HDt()}));function qDt(e){const t=String(e),r=[];return{toOffset:n,toPoint:i};function i(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=r[s];if(o===void 0){const l=sYe(t,r[s-1]);o=l===-1?t.length+1:l+1,r[s]=o}if(o>a)return{line:s+1,column:a-(s>0?r[s-1]:0)+1,offset:a};s++}}}function n(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;r.length<a.line;){const o=r[r.length-1],l=sYe(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;r.push(u)}const s=(a.line>1?r[a.line-2]:0)+a.column-1;if(s<r[a.line-1])return s}}}function sYe(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
|
|
3317
|
+
</iframe>`,"putIntoIFrame"),gWe=k((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",DNt);return n&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");function Fte(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}k(Fte,"sandboxedIframe");var YNt=k((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),jNt=k(async function(e,t,r){CD();const i=Bte(t);t=i.code;const n=Dr();de.debug(n),t.length>(n?.maxTextSize??ANt)&&(t=LNt);const a="#"+e,s="i"+e,o="#"+s,l="d"+e,u="#"+l,h=k(()=>{const U=It(f?o:u).node();U&&"remove"in U&&U.remove()},"removeTempElements");let d=It("body");const f=n.securityLevel===RNt,p=n.securityLevel===NNt,g=n.fontFamily;r!==void 0?(r&&(r.innerHTML=""),f?(d=It(Fte(It(r),s).nodes()[0].contentDocument.body),d.node().style.margin=0):d=It(r),gWe(d,e,l,`font-family: ${g}`,INt)):(YNt(document,e,l,s),f?(d=It(Fte(It("body"),s).nodes()[0].contentDocument.body),d.node().style.margin=0):d=It("body"),gWe(d,e,l));let y,b;try{y=await Ote.fromText(t,{title:i.title})}catch(U){if(n.suppressErrorRendering)throw h(),U;y=await Ote.fromText("error"),b=U}const T=d.select(u).node(),w=y.type,x=T.firstChild,C=x.firstChild,L=y.renderer.getClasses?.(t,y),_=qNt(n,w,L,a),S=document.createElement("style");S.innerHTML=_,x.insertBefore(S,C);try{await y.renderer.draw(t,e,"11.14.0",y)}catch(U){throw n.suppressErrorRendering?h():aNt.draw(t,e,"11.14.0"),U}const A=d.select(`${u} svg`),P=y.db.getAccTitle?.(),O=y.db.getAccDescription?.();vWe(w,A,P,O),d.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",MNt);let M=d.select(u).node().innerHTML;if(de.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),M=GNt(M,f,Zu(n.arrowMarkerAbsolute)),f){const U=d.select(u+" svg").node();M=WNt(M,U)}else p||(M=vd.sanitize(M,{ADD_TAGS:UNt,ADD_ATTR:HNt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(ENt(),b)throw b;return h(),{diagramType:w,svg:M,bindFunctions:y.db.bindFunctions}},"render");function mWe(e={}){const t=Gn({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Oge(t),t?.theme&&t.theme in Qu?t.themeVariables=Qu[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Qu.default.getThemeVariables(t.themeVariables)),c_((typeof t=="object"?Mge(t):uF()).logLevel),CD()}k(mWe,"initialize");var yWe=k((e,t={})=>{const{code:r}=Pte(e);return Ote.fromText(r,t)},"getDiagramFromText");function vWe(e,t,r,i){lWe(t,e),cWe(t,r,i,t.attr("id"))}k(vWe,"addA11yInfo");var Ty=Object.freeze({render:jNt,parse:fWe,getDiagramFromText:yWe,initialize:mWe,getConfig:Dr,setConfig:hF,getSiteConfig:uF,updateSiteConfig:Pge,reset:k(()=>{Nw()},"reset"),globalReset:k(()=>{Nw(im)},"globalReset"),defaultConfig:im});c_(Dr().logLevel),Nw(Dr());var XNt=k((e,t,r)=>{de.warn(e),yU(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),bWe=k(async function(e={querySelector:".mermaid"}){try{await KNt(e)}catch(t){if(yU(t)&&de.error(t.str),If.parseError&&If.parseError(t),!e.suppressErrors)throw de.error("Use the suppressErrors option to suppress these errors"),t}},"run"),KNt=k(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Ty.getConfig();de.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");de.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(de.debug("Start On Load: "+i?.startOnLoad),Ty.updateSiteConfig({startOnLoad:i?.startOnLoad}));const a=new Xr.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const l of Array.from(n)){if(de.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${a.next()}`;s=l.innerHTML,s=JTe(Xr.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Xr.detectInit(s);h&&de.debug("Detected early reinit: ",h);try{const{svg:d,bindFunctions:f}=await EWe(u,s,l);l.innerHTML=d,e&&await e(u),f&&f(l)}catch(d){XNt(d,o,If.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),xWe=k(function(e){Ty.initialize(e)},"initialize"),QNt=k(async function(e,t,r){de.warn("mermaid.init is deprecated. Please use run instead."),e&&xWe(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await bWe(i)},"init"),ZNt=k(async(e,{lazyLoad:t=!0}={})=>{CD(),pA(...e),t===!1&&await TNt()},"registerExternalDiagrams"),TWe=k(function(){if(If.startOnLoad){const{startOnLoad:e}=Ty.getConfig();e&&If.run().catch(t=>de.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",TWe,!1);var JNt=k(function(e){If.parseError=e},"setParseErrorHandler"),SD=[],$te=!1,wWe=k(async()=>{if(!$te){for($te=!0;SD.length>0;){const e=SD.shift();if(e)try{await e()}catch(t){de.error("Error executing queue",t)}}$te=!1}},"executeQueue"),eDt=k(async(e,t)=>new Promise((r,i)=>{const n=k(()=>new Promise((a,s)=>{Ty.parse(e,t).then(o=>{a(o),r(o)},o=>{de.error("Error parsing",o),If.parseError?.(o),s(o),i(o)})}),"performCall");SD.push(n),wWe().catch(i)}),"parse"),EWe=k((e,t,r)=>new Promise((i,n)=>{const a=k(()=>new Promise((s,o)=>{Ty.render(e,t,r).then(l=>{s(l),i(l)},l=>{de.error("Error parsing",l),If.parseError?.(l),o(l),n(l)})}),"performCall");SD.push(a),wWe().catch(n)}),"render"),If={startOnLoad:!0,mermaidAPI:Ty,parse:eDt,render:EWe,init:QNt,run:bWe,registerExternalDiagrams:ZNt,registerLayoutLoaders:ZY,initialize:xWe,parseError:void 0,contentLoaded:TWe,setParseErrorHandler:JNt,detectType:fA,registerIconPacks:YU,getRegisteredDiagramsMetadata:k(()=>Object.keys(kp).map(e=>({id:e})),"getRegisteredDiagramsMetadata")},zte=If,kWe={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0};function tDt(e={}){let t=!1,r={...kWe,...e.config},i={initialize(n){r={...kWe,...e.config,...n},zte.initialize(r),t=!0},async render(n,a){return t||(zte.initialize(r),t=!0),await zte.render(n,a)}};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid(n){return n&&i.initialize(n),i}}}var rDt=tDt();function iDt(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=AS(e[r]);return _D(i);function i(...n){let a=-1;for(;++a<t.length;)if(t[a].apply(this,n))return!0;return!1}}function nDt(e){const t=e;return _D(r);function r(i){const n=i;let a;for(a in e)if(n[a]!==t[a])return!1;return!0}}function aDt(e){return _D(t);function t(r){return r&&r.type===e}}function _D(e){return t;function t(r,i,n){return!!(oDt(r)&&e.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function sDt(){return!0}function oDt(e){return e!==null&&typeof e=="object"&&"type"in e}var AS,lDt=V((()=>{AS=(function(e){if(e==null)return sDt;if(typeof e=="function")return _D(e);if(typeof e=="object")return Array.isArray(e)?iDt(e):nDt(e);if(typeof e=="string")return aDt(e);throw new Error("Expected function, string, or object as test")})})),Ute=V((()=>{lDt()}));function QGt(e){return e}var cDt=V((()=>{}));function Hte(e,t,r,i){let n;typeof t=="function"&&typeof r!="function"?(i=r,r=t):n=t;const a=AS(n),s=i?-1:1;o(e,void 0,[])();function o(l,u,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Vte,g,y,b;if((!t||a(l,u,h[h.length-1]||void 0))&&(p=uDt(r(l,h)),p[0]===!1))return p;if("children"in l&&l.children){const T=l;if(T.children&&p[0]!=="skip")for(y=(i?T.children.length:-1)+s,b=h.concat(T);y>-1&&y<T.children.length;){const w=T.children[y];if(g=o(w,y,b)(),g[0]===!1)return g;y=typeof g[1]=="number"?g[1]:y+s}}return p}}}function uDt(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Vte:[e]}var Vte,hDt,dDt,kx,fDt=V((()=>{Ute(),cDt(),Vte=[],hDt=!0,dDt=!1,kx="skip"})),qte=V((()=>{fDt()}));function nd(e,t,r,i){let n,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,n=r):(a=t,s=r,n=i),Hte(e,a,o,n);function o(l,u){const h=u[u.length-1],d=h?h.children.indexOf(l):void 0;return s(l,d,h)}}var pDt=V((()=>{qte()})),LS=V((()=>{pDt()}));function gDt({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:i=!1,allowedProtocols:n=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=wy.indicator,imageBlockPolicy:l=wy.indicator}){const u=t.length&&!t.every(d=>d==="*"),h=r.length&&!r.every(d=>d==="*");if(!e&&(u||h))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return d=>{const f=RWe(e,t,r,i,n,a,s,o,l);_We(d),nd(d,f)}}function CWe(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function mDt(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}function SWe(e,t,r,i=!1,n=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!n)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return n&&i&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const l=e.substring(5);if(l&&l.length>0&&l!=="invalid")return e}}catch{return null}return null}const s=CWe(e,r);if(!s||LWe.has(s.protocol)||!(AWe.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const o=mDt(e);return s&&t.some(l=>{const u=CWe(l,r);return!u||u.origin!==s.origin?!1:s.href.startsWith(u.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:o?s.pathname+s.search+s.hash:s.href:null}function _We(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)_We(t)}}function yDt(e,t,r){return t===wy.remove?{type:"remove"}:t===wy.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function vDt(e,t,r){if(t===wy.remove)return{type:"remove"};if(t===wy.textOnly){const i=String(e.properties.alt||"");return i?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:i}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}var wy,AWe,LWe,AD,RWe,bDt=V((()=>{LS(),wy={indicator:"indicator",textOnly:"text-only",remove:"remove"},AWe=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),LWe=new Set(["javascript:","data:","file:","vbscript:"]),AD=Symbol("node-seen"),RWe=(e,t,r,i,n,a,s,o,l)=>{const u=(h,d,f)=>{if(h.type!=="element"||h[AD])return!0;if(h.tagName==="a"){const p=SWe(h.properties.href,t,e,!1,!1,n);if(p===null){if(h[AD]=!0,nd(h,u),f&&typeof d=="number"){const g=yDt(h,o,s);if(g.type==="remove")return f.children.splice(d,1),[kx,d];f.children[d]=g.element}return kx}else return h.properties.href=p,h.properties.target="_blank",h.properties.rel="noopener noreferrer",!0}if(h.tagName==="img"){const p=SWe(h.properties.src,r,e,i,!0,n);if(p===null){if(h[AD]=!0,nd(h,u),f&&typeof d=="number"){const g=vDt(h,l,a);if(g.type==="remove")return f.children.splice(d,1),[kx,d];f.children[d]=g.element}return kx}else return h.properties.src=p,!0}return!0};return u}})),NWe=V((()=>{})),Gte,DWe,Wte,xDt=V((()=>{NWe(),Gte=typeof self=="object"?self:globalThis,DWe=(e,t)=>{const r=(n,a)=>(e.set(a,n),n),i=n=>{if(e.has(n))return e.get(n);const[a,s]=t[n];switch(a){case 0:case-1:return r(s,n);case 1:{const o=r([],n);for(const l of s)o.push(i(l));return o}case 2:{const o=r({},n);for(const[l,u]of s)o[i(l)]=i(u);return o}case 3:return r(new Date(s),n);case 4:{const{source:o,flags:l}=s;return r(new RegExp(o,l),n)}case 5:{const o=r(new Map,n);for(const[l,u]of s)o.set(i(l),i(u));return o}case 6:{const o=r(new Set,n);for(const l of s)o.add(i(l));return o}case 7:{const{name:o,message:l}=s;return r(new Gte[o](l),n)}case 8:return r(BigInt(s),n);case"BigInt":return r(Object(BigInt(s)),n);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new Gte[a](s),n)};return i},Wte=e=>DWe(new Map,e)(0)})),Ey,IWe,MWe,Cx,RS,OWe,Yte,TDt=V((()=>{NWe(),Ey="",{toString:IWe}={},{keys:MWe}=Object,Cx=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const r=IWe.call(e).slice(8,-1);switch(r){case"Array":return[1,Ey];case"Object":return[2,Ey];case"Date":return[3,Ey];case"RegExp":return[4,Ey];case"Map":return[5,Ey];case"Set":return[6,Ey];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},RS=([e,t])=>e===0&&(t==="function"||t==="symbol"),OWe=(e,t,r,i)=>{const n=(s,o)=>{const l=i.push(s)-1;return r.set(o,l),l},a=s=>{if(r.has(s))return r.get(s);let[o,l]=Cx(s);switch(o){case 0:{let h=s;switch(l){case"bigint":o=8,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);h=null;break;case"undefined":return n([-1],s)}return n([o,h],s)}case 1:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),n([l,[...f]],s)}const h=[],d=n([o,h],s);for(const f of s)h.push(a(f));return d}case 2:{if(l)switch(l){case"BigInt":return n([l,s.toString()],s);case"Boolean":case"Number":case"String":return n([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=n([o,h],s);for(const f of MWe(s))(e||!RS(Cx(s[f])))&&h.push([a(f),a(s[f])]);return d}case 3:return n([o,s.toISOString()],s);case 4:{const{source:h,flags:d}=s;return n([o,{source:h,flags:d}],s)}case 5:{const h=[],d=n([o,h],s);for(const[f,p]of s)(e||!(RS(Cx(f))||RS(Cx(p))))&&h.push([a(f),a(p)]);return d}case 6:{const h=[],d=n([o,h],s);for(const f of s)(e||!RS(Cx(f)))&&h.push(a(f));return d}}const{message:u}=s;return n([o,{name:l,message:u}],s)};return a},Yte=(e,{json:t,lossy:r}={})=>{const i=[];return OWe(!(t||r),!!t,new Map,i)(e),i}})),Kg,LD=V((()=>{xDt(),TDt(),Kg=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Wte(Yte(e,t)):structuredClone(e):(e,t)=>Wte(Yte(e,t))}));function ZGt(){}var Mf=V((()=>{})),Sx,PWe=V((()=>{Sx=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}},Sx.prototype.normal={},Sx.prototype.property={},Sx.prototype.space=void 0}));function BWe(e,t){const r={},i={};for(const n of e)Object.assign(r,n.property),Object.assign(i,n.normal);return new Sx(r,i,t)}var wDt=V((()=>{PWe()}));function NS(e){return e.toLowerCase()}var jte=V((()=>{})),Ao,FWe=V((()=>{Ao=class{constructor(e,t){this.attribute=t,this.property=e}},Ao.prototype.attribute="",Ao.prototype.booleanish=!1,Ao.prototype.boolean=!1,Ao.prototype.commaOrSpaceSeparated=!1,Ao.prototype.commaSeparated=!1,Ao.prototype.defined=!1,Ao.prototype.mustUseProperty=!1,Ao.prototype.number=!1,Ao.prototype.overloadedBoolean=!1,Ao.prototype.property="",Ao.prototype.spaceSeparated=!1,Ao.prototype.space=void 0})),Xte=Rr({boolean:()=>Zr,booleanish:()=>ca,commaOrSpaceSeparated:()=>rl,commaSeparated:()=>Cy,number:()=>Zt,overloadedBoolean:()=>RD,spaceSeparated:()=>hn});function ky(){return 2**++$We}var $We,Zr,ca,RD,Zt,hn,Cy,rl,ND=V((()=>{$We=0,Zr=ky(),ca=ky(),RD=ky(),Zt=ky(),hn=ky(),Cy=ky(),rl=ky()}));function zWe(e,t,r){r&&(e[t]=r)}var DD,ID,UWe=V((()=>{FWe(),ND(),DD=Object.keys(Xte),ID=class extends Ao{constructor(e,t,r,i){let n=-1;if(super(e,t),zWe(this,"space",i),typeof r=="number")for(;++n<DD.length;){const a=DD[n];zWe(this,DD[n],(r&Xte[a])===Xte[a])}}},ID.prototype.defined=!0}));function _x(e){const t={},r={};for(const[i,n]of Object.entries(e.properties)){const a=new ID(i,e.transform(e.attributes||{},i),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,r[NS(i)]=i,r[NS(a.attribute)]=i}return new Sx(t,r,e.space)}var Ax=V((()=>{jte(),UWe(),PWe()})),Kte,EDt=V((()=>{Ax(),ND(),Kte=_x({properties:{ariaActiveDescendant:null,ariaAtomic:ca,ariaAutoComplete:null,ariaBusy:ca,ariaChecked:ca,ariaColCount:Zt,ariaColIndex:Zt,ariaColSpan:Zt,ariaControls:hn,ariaCurrent:null,ariaDescribedBy:hn,ariaDetails:null,ariaDisabled:ca,ariaDropEffect:hn,ariaErrorMessage:null,ariaExpanded:ca,ariaFlowTo:hn,ariaGrabbed:ca,ariaHasPopup:null,ariaHidden:ca,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hn,ariaLevel:Zt,ariaLive:null,ariaModal:ca,ariaMultiLine:ca,ariaMultiSelectable:ca,ariaOrientation:null,ariaOwns:hn,ariaPlaceholder:null,ariaPosInSet:Zt,ariaPressed:ca,ariaReadOnly:ca,ariaRelevant:null,ariaRequired:ca,ariaRoleDescription:hn,ariaRowCount:Zt,ariaRowIndex:Zt,ariaRowSpan:Zt,ariaSelected:ca,ariaSetSize:Zt,ariaSort:null,ariaValueMax:Zt,ariaValueMin:Zt,ariaValueNow:Zt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}})}));function HWe(e,t){return t in e?e[t]:t}var VWe=V((()=>{}));function qWe(e,t){return HWe(e,t.toLowerCase())}var GWe=V((()=>{VWe()})),WWe,kDt=V((()=>{GWe(),Ax(),ND(),WWe=_x({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cy,acceptCharset:hn,accessKey:hn,action:null,allow:null,allowFullScreen:Zr,allowPaymentRequest:Zr,allowUserMedia:Zr,alt:null,as:null,async:Zr,autoCapitalize:null,autoComplete:hn,autoFocus:Zr,autoPlay:Zr,blocking:hn,capture:null,charSet:null,checked:Zr,cite:null,className:hn,cols:Zt,colSpan:null,content:null,contentEditable:ca,controls:Zr,controlsList:hn,coords:Zt|Cy,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Zr,defer:Zr,dir:null,dirName:null,disabled:Zr,download:RD,draggable:ca,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Zr,formTarget:null,headers:hn,height:Zt,hidden:RD,high:Zt,href:null,hrefLang:null,htmlFor:hn,httpEquiv:hn,id:null,imageSizes:null,imageSrcSet:null,inert:Zr,inputMode:null,integrity:null,is:null,isMap:Zr,itemId:null,itemProp:hn,itemRef:hn,itemScope:Zr,itemType:hn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Zr,low:Zt,manifest:null,max:null,maxLength:Zt,media:null,method:null,min:null,minLength:Zt,multiple:Zr,muted:Zr,name:null,nonce:null,noModule:Zr,noValidate:Zr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Zr,optimum:Zt,pattern:null,ping:hn,placeholder:null,playsInline:Zr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Zr,referrerPolicy:null,rel:hn,required:Zr,reversed:Zr,rows:Zt,rowSpan:Zt,sandbox:hn,scope:null,scoped:Zr,seamless:Zr,selected:Zr,shadowRootClonable:Zr,shadowRootDelegatesFocus:Zr,shadowRootMode:null,shape:null,size:Zt,sizes:null,slot:null,span:Zt,spellCheck:ca,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Zt,step:null,style:null,tabIndex:Zt,target:null,title:null,translate:null,type:null,typeMustMatch:Zr,useMap:null,value:ca,width:Zt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hn,axis:null,background:null,bgColor:null,border:Zt,borderColor:null,bottomMargin:Zt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Zr,declare:Zr,event:null,face:null,frame:null,frameBorder:null,hSpace:Zt,leftMargin:Zt,link:null,longDesc:null,lowSrc:null,marginHeight:Zt,marginWidth:Zt,noResize:Zr,noHref:Zr,noShade:Zr,noWrap:Zr,object:null,profile:null,prompt:null,rev:null,rightMargin:Zt,rules:null,scheme:null,scrolling:ca,standby:null,summary:null,text:null,topMargin:Zt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Zt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Zr,disableRemotePlayback:Zr,prefix:null,property:null,results:Zt,security:null,unselectable:null},space:"html",transform:qWe})})),YWe,CDt=V((()=>{VWe(),Ax(),ND(),YWe=_x({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:rl,accentHeight:Zt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Zt,amplitude:Zt,arabicForm:null,ascent:Zt,attributeName:null,attributeType:null,azimuth:Zt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zt,by:null,calcMode:null,capHeight:Zt,className:hn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zt,diffuseConstant:Zt,direction:null,display:null,dur:null,divisor:Zt,dominantBaseline:null,download:Zr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Zt,enableBackground:null,end:null,event:null,exponent:Zt,externalResourcesRequired:null,fill:null,fillOpacity:Zt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Cy,g2:Cy,glyphName:Cy,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Zt,horizOriginX:Zt,horizOriginY:Zt,id:null,ideographic:Zt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Zt,k:Zt,k1:Zt,k2:Zt,k3:Zt,k4:Zt,kernelMatrix:rl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Zt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zt,overlineThickness:Zt,paintOrder:null,panose1:null,path:null,pathLength:Zt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:hn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Zt,pointsAtY:Zt,pointsAtZ:Zt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rl,rev:rl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rl,requiredFeatures:rl,requiredFonts:rl,requiredFormats:rl,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zt,specularExponent:Zt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Zt,strikethroughThickness:Zt,string:null,stroke:null,strokeDashArray:rl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Zt,strokeOpacity:Zt,strokeWidth:null,style:null,surfaceScale:Zt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rl,tabIndex:Zt,tableValues:null,target:null,targetX:Zt,targetY:Zt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Zt,underlineThickness:Zt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zt,values:null,vAlphabetic:Zt,vMathematical:Zt,vectorEffect:null,vHanging:Zt,vIdeographic:Zt,version:null,vertAdvY:Zt,vertOriginX:Zt,vertOriginY:Zt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:HWe})})),Qte,SDt=V((()=>{Ax(),Qte=_x({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}})})),Zte,_Dt=V((()=>{Ax(),GWe(),Zte=_x({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qWe})})),Jte,ADt=V((()=>{Ax(),Jte=_x({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}})})),jWe,LDt=V((()=>{jWe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"}}));function MD(e,t){const r=NS(t);let i=t,n=Ao;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&KWe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ere,NDt);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ere.test(a)){let s=a.replace(XWe,RDt);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}n=ID}return new n(i,t)}function RDt(e){return"-"+e.toLowerCase()}function NDt(e){return e.charAt(1).toUpperCase()}var XWe,ere,KWe,DDt=V((()=>{UWe(),FWe(),jte(),XWe=/[A-Z]/g,ere=/-[a-z]/g,KWe=/^data[-\w.:]+$/i})),Lx,Of,DS=V((()=>{wDt(),EDt(),kDt(),CDt(),SDt(),_Dt(),ADt(),LDt(),DDt(),jte(),Lx=BWe([Kte,WWe,Qte,Zte,Jte],"html"),Of=BWe([Kte,YWe,Qte,Zte,Jte],"svg")}));function QWe(e){const t=[],r=String(e||"");let i=r.indexOf(","),n=0,a=!1;for(;!a;){i===-1&&(i=r.length,a=!0);const s=r.slice(n,i).trim();(s||!a)&&t.push(s),n=i+1,i=r.indexOf(",",n)}return t}function ZWe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var tre=V((()=>{}));function IDt(e,t){const r=e||"",i={};let n=0,a,s;for(;n<r.length;){rre.lastIndex=n;const o=rre.exec(r),l=r.slice(n,o?o.index:r.length);l&&(a?a==="#"?i.id=l:Array.isArray(i.className)?i.className.push(l):i.className=[l]:s=l,n+=l.length),o&&(a=o[0],n++)}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}var rre,MDt=V((()=>{rre=/[#.]/g})),ODt=V((()=>{MDt()}));function JWe(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function eYe(e){return e.join(" ").trim()}var ire=V((()=>{}));function tYe(e,t,r){const i=r?$Dt(r):void 0;function n(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=IDt(a,t);const u=l.tagName.toLowerCase(),h=i?i.get(u):void 0;if(l.tagName=h||u,PDt(s))o.unshift(s);else for(const[d,f]of Object.entries(s))BDt(e,l.properties,d,f)}for(const u of o)nre(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return n}function PDt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const i of r){const n=t[i];if(n&&typeof n=="object"){if(!Array.isArray(n))return!0;const a=n;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function BDt(e,t,r,i){const n=MD(e,r);let a;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;a=i}else typeof i=="boolean"?a=i:typeof i=="string"?n.spaceSeparated?a=JWe(i):n.commaSeparated?a=QWe(i):n.commaOrSpaceSeparated?a=JWe(QWe(i).join(" ")):a=rYe(n,n.property,i):Array.isArray(i)?a=[...i]:a=n.property==="style"?FDt(i):String(i);if(Array.isArray(a)){const s=[];for(const o of a)s.push(rYe(n,n.property,o));a=s}n.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[n.property]=a}}function nre(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)nre(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?nre(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function rYe(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||NS(r)===NS(t)))return!0}return r}function FDt(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function $Dt(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}var zDt=V((()=>{tre(),ODt(),DS(),ire()})),iYe,UDt=V((()=>{iYe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]})),nYe,aYe,HDt=V((()=>{DS(),zDt(),UDt(),nYe=tYe(Lx,"div"),aYe=tYe(Of,"g",iYe)})),VDt=V((()=>{HDt()}));function qDt(e){const t=String(e),r=[];return{toOffset:n,toPoint:i};function i(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=r[s];if(o===void 0){const l=sYe(t,r[s-1]);o=l===-1?t.length+1:l+1,r[s]=o}if(o>a)return{line:s+1,column:a-(s>0?r[s-1]:0)+1,offset:a};s++}}}function n(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;r.length<a.line;){const o=r[r.length-1],l=sYe(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;r.push(u)}const s=(a.line>1?r[a.line-2]:0)+a.column-1;if(s<r[a.line-1])return s}}}function sYe(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
|
|
3318
3318
|
`,t);return i===-1?r:r===-1||r+1===i?i:r<i?r:i}var GDt=V((()=>{})),WDt=V((()=>{GDt()})),Qg,are=V((()=>{Qg={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}}));function YDt(e,t){const r=t||{};return sre({file:r.file||void 0,location:!1,schema:r.space==="svg"?Of:Lx,verbose:r.verbose||!1},e)}function sre(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},OD(e,i,r),r}case"#document":case"#document-fragment":{const i=t,n="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(r={type:"root",children:oYe(e,t.childNodes),data:{quirksMode:n}},e.file&&e.location){const a=String(e.file),s=qDt(a),o=s.toPoint(0),l=s.toPoint(a.length);r.position={start:o,end:l}}return r}case"#documentType":{const i=t;return r={type:"doctype"},OD(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},OD(e,i,r),r}default:return r=jDt(e,t),r}}function oYe(e,t){let r=-1;const i=[];for(;++r<t.length;){const n=sre(e,t[r]);i.push(n)}return i}function jDt(e,t){const r=e.schema;e.schema=t.namespaceURI===Qg.svg?Of:Lx;let i=-1;const n={};for(;++i<t.attrs.length;){const s=t.attrs[i],o=(s.prefix?s.prefix+":":"")+s.name;ore.call(cYe,o)||(n[o]=s.value)}const a=(e.schema.space==="svg"?aYe:nYe)(t.tagName,n,oYe(e,t.childNodes));if(OD(e,t,a),a.tagName==="template"){const s=t,o=s.sourceCodeLocation,l=o&&o.startTag&&Rx(o.startTag),u=o&&o.endTag&&Rx(o.endTag),h=sre(e,s.content);l&&u&&e.file&&(h.position={start:l.end,end:u.start}),a.content=h}return e.schema=r,a}function OD(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=XDt(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function XDt(e,t,r){const i=Rx(r);if(t.type==="element"){const n=t.children[t.children.length-1];if(i&&!r.endTag&&n&&n.position&&n.position.end&&(i.end=Object.assign({},n.position.end)),e.verbose){const a={};let s;if(r.attrs)for(s in r.attrs)ore.call(r.attrs,s)&&(a[MD(e.schema,s).property]=Rx(r.attrs[s]));r.startTag;const o=Rx(r.startTag),l=r.endTag?Rx(r.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return i}function Rx(e){const t=lYe({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=lYe({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function lYe(e){return e.line&&e.column?e:void 0}var ore,cYe,KDt=V((()=>{Mf(),VDt(),DS(),WDt(),are(),ore={}.hasOwnProperty,cYe=Object.prototype})),QDt=V((()=>{KDt()}));function uYe(e,t){const r=t||{};function i(n,...a){let s=i.invalid;const o=i.handlers;if(n&&lre.call(n,e)){const l=String(n[e]);s=lre.call(o,l)?o[l]:i.unknown}if(s)return s.call(this,n,...a)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}var lre,cre=V((()=>{lre={}.hasOwnProperty}));function ZDt(e,t){const r=(t||hYe).space;return hre(e,r==="svg"?Of:Lx)}function JDt(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=ure(e.children,r,t),Nx(e,r),r}function eIt(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=ure(e.children,r,t),Nx(e,r),r}function tIt(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Nx(e,t),t}function rIt(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Nx(e,t),t}function iIt(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Nx(e,t),t}function nIt(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Of);const n=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&dYe.call(e.properties,a)){const l=aIt(i,a,e.properties[a]);l&&n.push(l)}}const s=i.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:n,namespaceURI:Qg[s],childNodes:[],parentNode:null};return o.childNodes=ure(e.children,o,i),Nx(e,o),e.tagName==="template"&&e.content&&(o.content=eIt(e.content,i)),o}function aIt(e,t,r){const i=MD(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&i.boolean)return;Array.isArray(r)&&(r=i.commaSeparated?ZWe(r):eYe(r));const n={name:i.attribute,value:r===!0?"":String(r)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const a=n.name.indexOf(":");a<0?n.prefix="":(n.name=n.name.slice(a+1),n.prefix=i.attribute.slice(0,a)),n.namespace=Qg[i.space]}return n}function ure(e,t,r){let i=-1;const n=[];if(e)for(;++i<e.length;){const a=hre(e[i],r);a.parentNode=t,n.push(a)}return n}function Nx(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}var hYe,dYe,hre,sIt=V((()=>{tre(),Mf(),DS(),ire(),are(),cre(),hYe={},dYe={}.hasOwnProperty,hre=uYe("type",{handlers:{root:JDt,element:nIt,text:rIt,comment:iIt,doctype:tIt}})})),oIt=V((()=>{sIt()})),fYe,lIt=V((()=>{fYe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]}));function pYe(e){return e>=55296&&e<=57343}function cIt(e){return e>=56320&&e<=57343}function uIt(e,t){return(e-55296)*1024+9216+t}function gYe(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function mYe(e){return e>=64976&&e<=65007||yYe.has(e)}var yYe,hIt,De,Lo,dre=V((()=>{yYe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),hIt="�",(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(De||(De={})),Lo={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"}})),At,PD=V((()=>{(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(At||(At={}))})),vYe,bYe,dIt=V((()=>{dre(),PD(),vYe=65536,bYe=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=vYe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:r,col:i,offset:n}=this,a=i+t,s=n+t;return{code:e,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(cIt(t))return this.pos++,this._addGap(),uIt(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,De.EOF;return this._err(At.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,De.EOF;const r=this.html.charCodeAt(t);return r===De.CARRIAGE_RETURN?De.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,De.EOF;let e=this.html.charCodeAt(this.pos);return e===De.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,De.LINE_FEED):e===De.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,pYe(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===De.LINE_FEED||e===De.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){gYe(e)?this._err(At.controlCharacterInInputStream):mYe(e)&&this._err(At.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}}));function xYe(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}var hi,fre=V((()=>{(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(hi||(hi={}))})),TYe,fIt=V((()=>{TYe=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)))}));function pIt(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=wYe.get(e))!==null&&t!==void 0?t:e}var pre,wYe,gIt,mIt=V((()=>{wYe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),gIt=(pre=String.fromCodePoint)!==null&&pre!==void 0?pre:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t}}));function gre(e){return e>=ns.ZERO&&e<=ns.NINE}function yIt(e){return e>=ns.UPPER_A&&e<=ns.UPPER_F||e>=ns.LOWER_A&&e<=ns.LOWER_F}function vIt(e){return e>=ns.UPPER_A&&e<=ns.UPPER_Z||e>=ns.LOWER_A&&e<=ns.LOWER_Z||gre(e)}function bIt(e){return e===ns.EQUALS||vIt(e)}function xIt(e,t,r,i){const n=(t&Zg.BRANCH_LENGTH)>>7,a=t&Zg.JUMP_TABLE;if(n===0)return a!==0&&i===a?r:-1;if(a){const l=i-a;return l<0||l>=n?-1:e[r+l]-1}let s=r,o=s+n-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<i)s=l+1;else if(u>i)o=l-1;else return e[l+n]}return-1}var ns,EYe,Zg,as,Pf,kYe,TIt=V((()=>{mIt(),fIt(),(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ns||(ns={})),EYe=32,(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Zg||(Zg={})),(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(as||(as={})),(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Pf||(Pf={})),kYe=class{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=as.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Pf.Strict}startEntity(e){this.decodeMode=e,this.state=as.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case as.EntityStart:return e.charCodeAt(t)===ns.NUM?(this.state=as.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=as.NamedEntity,this.stateNamedEntity(e,t));case as.NumericStart:return this.stateNumericStart(e,t);case as.NumericDecimal:return this.stateNumericDecimal(e,t);case as.NumericHex:return this.stateNumericHex(e,t);case as.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|EYe)===ns.LOWER_X?(this.state=as.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=as.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,i){if(t!==r){const n=r-t;this.result=this.result*Math.pow(i,n)+Number.parseInt(e.substr(t,n),i),this.consumed+=n}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const i=e.charCodeAt(t);if(gre(i)||yIt(i))t+=1;else return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const i=e.charCodeAt(t);if(gre(i))t+=1;else return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ns.SEMI)this.consumed+=1;else if(this.decodeMode===Pf.Strict)return 0;return this.emitCodePoint(pIt(this.result),this.consumed),this.errors&&(e!==ns.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let i=r[this.treeIndex],n=(i&Zg.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=xIt(r,i,this.treeIndex+Math.max(1,n),a),this.treeIndex<0)return this.result===0||this.decodeMode===Pf.Attribute&&(n===0||bIt(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],n=(i&Zg.VALUE_LENGTH)>>14,n!==0){if(a===ns.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==Pf.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,i=(r[t]&Zg.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:i}=this;return this.emitCodePoint(t===1?i[e]&~Zg.VALUE_LENGTH:i[e+1],r),t===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case as.NamedEntity:return this.result!==0&&(this.decodeMode!==Pf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case as.NumericDecimal:return this.emitNumericEntity(0,2);case as.NumericHex:return this.emitNumericEntity(0,3);case as.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case as.EntityStart:return 0}}}}));function Dx(e){var t;return(t=CYe.get(e))!==null&&t!==void 0?t:X.UNKNOWN}var Vt,Sy,fc,pt,X,CYe,jt,SYe,BD,wIt,Jg=V((()=>{(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Vt||(Vt={})),(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Sy||(Sy={})),(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(fc||(fc={})),(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(pt||(pt={})),(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(X||(X={})),CYe=new Map([[pt.A,X.A],[pt.ADDRESS,X.ADDRESS],[pt.ANNOTATION_XML,X.ANNOTATION_XML],[pt.APPLET,X.APPLET],[pt.AREA,X.AREA],[pt.ARTICLE,X.ARTICLE],[pt.ASIDE,X.ASIDE],[pt.B,X.B],[pt.BASE,X.BASE],[pt.BASEFONT,X.BASEFONT],[pt.BGSOUND,X.BGSOUND],[pt.BIG,X.BIG],[pt.BLOCKQUOTE,X.BLOCKQUOTE],[pt.BODY,X.BODY],[pt.BR,X.BR],[pt.BUTTON,X.BUTTON],[pt.CAPTION,X.CAPTION],[pt.CENTER,X.CENTER],[pt.CODE,X.CODE],[pt.COL,X.COL],[pt.COLGROUP,X.COLGROUP],[pt.DD,X.DD],[pt.DESC,X.DESC],[pt.DETAILS,X.DETAILS],[pt.DIALOG,X.DIALOG],[pt.DIR,X.DIR],[pt.DIV,X.DIV],[pt.DL,X.DL],[pt.DT,X.DT],[pt.EM,X.EM],[pt.EMBED,X.EMBED],[pt.FIELDSET,X.FIELDSET],[pt.FIGCAPTION,X.FIGCAPTION],[pt.FIGURE,X.FIGURE],[pt.FONT,X.FONT],[pt.FOOTER,X.FOOTER],[pt.FOREIGN_OBJECT,X.FOREIGN_OBJECT],[pt.FORM,X.FORM],[pt.FRAME,X.FRAME],[pt.FRAMESET,X.FRAMESET],[pt.H1,X.H1],[pt.H2,X.H2],[pt.H3,X.H3],[pt.H4,X.H4],[pt.H5,X.H5],[pt.H6,X.H6],[pt.HEAD,X.HEAD],[pt.HEADER,X.HEADER],[pt.HGROUP,X.HGROUP],[pt.HR,X.HR],[pt.HTML,X.HTML],[pt.I,X.I],[pt.IMG,X.IMG],[pt.IMAGE,X.IMAGE],[pt.INPUT,X.INPUT],[pt.IFRAME,X.IFRAME],[pt.KEYGEN,X.KEYGEN],[pt.LABEL,X.LABEL],[pt.LI,X.LI],[pt.LINK,X.LINK],[pt.LISTING,X.LISTING],[pt.MAIN,X.MAIN],[pt.MALIGNMARK,X.MALIGNMARK],[pt.MARQUEE,X.MARQUEE],[pt.MATH,X.MATH],[pt.MENU,X.MENU],[pt.META,X.META],[pt.MGLYPH,X.MGLYPH],[pt.MI,X.MI],[pt.MO,X.MO],[pt.MN,X.MN],[pt.MS,X.MS],[pt.MTEXT,X.MTEXT],[pt.NAV,X.NAV],[pt.NOBR,X.NOBR],[pt.NOFRAMES,X.NOFRAMES],[pt.NOEMBED,X.NOEMBED],[pt.NOSCRIPT,X.NOSCRIPT],[pt.OBJECT,X.OBJECT],[pt.OL,X.OL],[pt.OPTGROUP,X.OPTGROUP],[pt.OPTION,X.OPTION],[pt.P,X.P],[pt.PARAM,X.PARAM],[pt.PLAINTEXT,X.PLAINTEXT],[pt.PRE,X.PRE],[pt.RB,X.RB],[pt.RP,X.RP],[pt.RT,X.RT],[pt.RTC,X.RTC],[pt.RUBY,X.RUBY],[pt.S,X.S],[pt.SCRIPT,X.SCRIPT],[pt.SEARCH,X.SEARCH],[pt.SECTION,X.SECTION],[pt.SELECT,X.SELECT],[pt.SOURCE,X.SOURCE],[pt.SMALL,X.SMALL],[pt.SPAN,X.SPAN],[pt.STRIKE,X.STRIKE],[pt.STRONG,X.STRONG],[pt.STYLE,X.STYLE],[pt.SUB,X.SUB],[pt.SUMMARY,X.SUMMARY],[pt.SUP,X.SUP],[pt.TABLE,X.TABLE],[pt.TBODY,X.TBODY],[pt.TEMPLATE,X.TEMPLATE],[pt.TEXTAREA,X.TEXTAREA],[pt.TFOOT,X.TFOOT],[pt.TD,X.TD],[pt.TH,X.TH],[pt.THEAD,X.THEAD],[pt.TITLE,X.TITLE],[pt.TR,X.TR],[pt.TRACK,X.TRACK],[pt.TT,X.TT],[pt.U,X.U],[pt.UL,X.UL],[pt.SVG,X.SVG],[pt.VAR,X.VAR],[pt.WBR,X.WBR],[pt.XMP,X.XMP]]),jt=X,SYe={[Vt.HTML]:new Set([jt.ADDRESS,jt.APPLET,jt.AREA,jt.ARTICLE,jt.ASIDE,jt.BASE,jt.BASEFONT,jt.BGSOUND,jt.BLOCKQUOTE,jt.BODY,jt.BR,jt.BUTTON,jt.CAPTION,jt.CENTER,jt.COL,jt.COLGROUP,jt.DD,jt.DETAILS,jt.DIR,jt.DIV,jt.DL,jt.DT,jt.EMBED,jt.FIELDSET,jt.FIGCAPTION,jt.FIGURE,jt.FOOTER,jt.FORM,jt.FRAME,jt.FRAMESET,jt.H1,jt.H2,jt.H3,jt.H4,jt.H5,jt.H6,jt.HEAD,jt.HEADER,jt.HGROUP,jt.HR,jt.HTML,jt.IFRAME,jt.IMG,jt.INPUT,jt.LI,jt.LINK,jt.LISTING,jt.MAIN,jt.MARQUEE,jt.MENU,jt.META,jt.NAV,jt.NOEMBED,jt.NOFRAMES,jt.NOSCRIPT,jt.OBJECT,jt.OL,jt.P,jt.PARAM,jt.PLAINTEXT,jt.PRE,jt.SCRIPT,jt.SECTION,jt.SELECT,jt.SOURCE,jt.STYLE,jt.SUMMARY,jt.TABLE,jt.TBODY,jt.TD,jt.TEMPLATE,jt.TEXTAREA,jt.TFOOT,jt.TH,jt.THEAD,jt.TITLE,jt.TR,jt.TRACK,jt.UL,jt.WBR,jt.XMP]),[Vt.MATHML]:new Set([jt.MI,jt.MO,jt.MN,jt.MS,jt.MTEXT,jt.ANNOTATION_XML]),[Vt.SVG]:new Set([jt.TITLE,jt.FOREIGN_OBJECT,jt.DESC]),[Vt.XLINK]:new Set,[Vt.XML]:new Set,[Vt.XMLNS]:new Set},BD=new Set([jt.H1,jt.H2,jt.H3,jt.H4,jt.H5,jt.H6]),wIt=new Set([pt.STYLE,pt.SCRIPT,pt.XMP,pt.IFRAME,pt.NOEMBED,pt.NOFRAMES,pt.PLAINTEXT])}));function EIt(e){return e>=De.DIGIT_0&&e<=De.DIGIT_9}function IS(e){return e>=De.LATIN_CAPITAL_A&&e<=De.LATIN_CAPITAL_Z}function kIt(e){return e>=De.LATIN_SMALL_A&&e<=De.LATIN_SMALL_Z}function e0(e){return kIt(e)||IS(e)}function _Ye(e){return e0(e)||EIt(e)}function FD(e){return e+32}function AYe(e){return e===De.SPACE||e===De.LINE_FEED||e===De.TABULATION||e===De.FORM_FEED}function LYe(e){return AYe(e)||e===De.SOLIDUS||e===De.GREATER_THAN_SIGN}function CIt(e){return e===De.NULL?At.nullCharacterReference:e>1114111?At.characterReferenceOutsideUnicodeRange:pYe(e)?At.surrogateCharacterReference:mYe(e)?At.noncharacterCharacterReference:gYe(e)||e===De.CARRIAGE_RETURN?At.controlCharacterReference:null}var ze,Kn,RYe,NYe=V((()=>{dIt(),dre(),fre(),TIt(),PD(),Jg(),(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ze||(ze={})),Kn={DATA:ze.DATA,RCDATA:ze.RCDATA,RAWTEXT:ze.RAWTEXT,SCRIPT_DATA:ze.SCRIPT_DATA,PLAINTEXT:ze.PLAINTEXT,CDATA_SECTION:ze.CDATA_SECTION},RYe=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ze.DATA,this.returnState=ze.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new bYe(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kYe(TYe,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(At.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(At.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=CIt(r);i&&this._err(i,1)}}:void 0)}_err(e,t=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:hi.START_TAG,tagName:"",tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:hi.END_TAG,tagName:"",tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:hi.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:hi.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const r=this.currentToken;if(xYe(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(e=(t=r.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(At.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Dx(e.tagName),e.type===hi.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(At.endTagWithAttributes),e.selfClosing&&this._err(At.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case hi.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case hi.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case hi.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:hi.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){const t=AYe(e)?hi.WHITESPACE_CHARACTER:e===De.NULL?hi.NULL_CHARACTER:hi.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(hi.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=ze.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Pf.Attribute:Pf.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ze.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ze.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ze.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case ze.DATA:this._stateData(e);break;case ze.RCDATA:this._stateRcdata(e);break;case ze.RAWTEXT:this._stateRawtext(e);break;case ze.SCRIPT_DATA:this._stateScriptData(e);break;case ze.PLAINTEXT:this._statePlaintext(e);break;case ze.TAG_OPEN:this._stateTagOpen(e);break;case ze.END_TAG_OPEN:this._stateEndTagOpen(e);break;case ze.TAG_NAME:this._stateTagName(e);break;case ze.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case ze.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case ze.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case ze.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case ze.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case ze.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case ze.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case ze.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case ze.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case ze.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case ze.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case ze.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case ze.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case ze.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case ze.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case ze.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case ze.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case ze.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case ze.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case ze.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case ze.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case ze.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case ze.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case ze.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case ze.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case ze.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case ze.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case ze.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case ze.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case ze.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case ze.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case ze.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case ze.BOGUS_COMMENT:this._stateBogusComment(e);break;case ze.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case ze.COMMENT_START:this._stateCommentStart(e);break;case ze.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case ze.COMMENT:this._stateComment(e);break;case ze.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case ze.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case ze.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case ze.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case ze.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case ze.COMMENT_END:this._stateCommentEnd(e);break;case ze.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case ze.DOCTYPE:this._stateDoctype(e);break;case ze.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case ze.DOCTYPE_NAME:this._stateDoctypeName(e);break;case ze.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case ze.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case ze.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case ze.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case ze.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case ze.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case ze.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case ze.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case ze.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case ze.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case ze.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case ze.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case ze.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case ze.CDATA_SECTION:this._stateCdataSection(e);break;case ze.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case ze.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case ze.CHARACTER_REFERENCE:this._stateCharacterReference();break;case ze.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case De.LESS_THAN_SIGN:this.state=ze.TAG_OPEN;break;case De.AMPERSAND:this._startCharacterReference();break;case De.NULL:this._err(At.unexpectedNullCharacter),this._emitCodePoint(e);break;case De.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case De.AMPERSAND:this._startCharacterReference();break;case De.LESS_THAN_SIGN:this.state=ze.RCDATA_LESS_THAN_SIGN;break;case De.NULL:this._err(At.unexpectedNullCharacter),this._emitChars("�");break;case De.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case De.LESS_THAN_SIGN:this.state=ze.RAWTEXT_LESS_THAN_SIGN;break;case De.NULL:this._err(At.unexpectedNullCharacter),this._emitChars("�");break;case De.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case De.LESS_THAN_SIGN:this.state=ze.SCRIPT_DATA_LESS_THAN_SIGN;break;case De.NULL:this._err(At.unexpectedNullCharacter),this._emitChars("�");break;case De.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case De.NULL:this._err(At.unexpectedNullCharacter),this._emitChars("�");break;case De.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(e0(e))this._createStartTagToken(),this.state=ze.TAG_NAME,this._stateTagName(e);else switch(e){case De.EXCLAMATION_MARK:this.state=ze.MARKUP_DECLARATION_OPEN;break;case De.SOLIDUS:this.state=ze.END_TAG_OPEN;break;case De.QUESTION_MARK:this._err(At.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ze.BOGUS_COMMENT,this._stateBogusComment(e);break;case De.EOF:this._err(At.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(At.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ze.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(e0(e))this._createEndTagToken(),this.state=ze.TAG_NAME,this._stateTagName(e);else switch(e){case De.GREATER_THAN_SIGN:this._err(At.missingEndTagName),this.state=ze.DATA;break;case De.EOF:this._err(At.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(At.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ze.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:this.state=ze.BEFORE_ATTRIBUTE_NAME;break;case De.SOLIDUS:this.state=ze.SELF_CLOSING_START_TAG;break;case De.GREATER_THAN_SIGN:this.state=ze.DATA,this.emitCurrentTagToken();break;case De.NULL:this._err(At.unexpectedNullCharacter),t.tagName+="�";break;case De.EOF:this._err(At.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(IS(e)?FD(e):e)}}_stateRcdataLessThanSign(e){e===De.SOLIDUS?this.state=ze.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ze.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){e0(e)?(this.state=ze.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=ze.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ze.BEFORE_ATTRIBUTE_NAME,!1;case De.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ze.SELF_CLOSING_START_TAG,!1;case De.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ze.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ze.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===De.SOLIDUS?this.state=ze.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ze.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){e0(e)?(this.state=ze.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=ze.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ze.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case De.SOLIDUS:this.state=ze.SCRIPT_DATA_END_TAG_OPEN;break;case De.EXCLAMATION_MARK:this.state=ze.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=ze.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){e0(e)?(this.state=ze.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=ze.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ze.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===De.HYPHEN_MINUS?(this.state=ze.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ze.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===De.HYPHEN_MINUS?(this.state=ze.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ze.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case De.HYPHEN_MINUS:this.state=ze.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case De.LESS_THAN_SIGN:this.state=ze.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case De.NULL:this._err(At.unexpectedNullCharacter),this._emitChars("�");break;case De.EOF:this._err(At.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case De.HYPHEN_MINUS:this.state=ze.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case De.LESS_THAN_SIGN:this.state=ze.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case De.NULL:this._err(At.unexpectedNullCharacter),this.state=ze.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case De.EOF:this._err(At.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ze.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case De.HYPHEN_MINUS:this._emitChars("-");break;case De.LESS_THAN_SIGN:this.state=ze.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case De.GREATER_THAN_SIGN:this.state=ze.SCRIPT_DATA,this._emitChars(">");break;case De.NULL:this._err(At.unexpectedNullCharacter),this.state=ze.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case De.EOF:this._err(At.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ze.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===De.SOLIDUS?this.state=ze.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:e0(e)?(this._emitChars("<"),this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=ze.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){e0(e)?(this.state=ze.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=ze.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ze.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Lo.SCRIPT,!1)&&LYe(this.preprocessor.peek(Lo.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<Lo.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ze.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case De.HYPHEN_MINUS:this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case De.LESS_THAN_SIGN:this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case De.NULL:this._err(At.unexpectedNullCharacter),this._emitChars("�");break;case De.EOF:this._err(At.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case De.HYPHEN_MINUS:this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case De.LESS_THAN_SIGN:this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case De.NULL:this._err(At.unexpectedNullCharacter),this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case De.EOF:this._err(At.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case De.HYPHEN_MINUS:this._emitChars("-");break;case De.LESS_THAN_SIGN:this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case De.GREATER_THAN_SIGN:this.state=ze.SCRIPT_DATA,this._emitChars(">");break;case De.NULL:this._err(At.unexpectedNullCharacter),this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case De.EOF:this._err(At.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===De.SOLIDUS?(this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Lo.SCRIPT,!1)&&LYe(this.preprocessor.peek(Lo.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<Lo.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=ze.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ze.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.SOLIDUS:case De.GREATER_THAN_SIGN:case De.EOF:this.state=ze.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case De.EQUALS_SIGN:this._err(At.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ze.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=ze.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:case De.SOLIDUS:case De.GREATER_THAN_SIGN:case De.EOF:this._leaveAttrName(),this.state=ze.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case De.EQUALS_SIGN:this._leaveAttrName(),this.state=ze.BEFORE_ATTRIBUTE_VALUE;break;case De.QUOTATION_MARK:case De.APOSTROPHE:case De.LESS_THAN_SIGN:this._err(At.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case De.NULL:this._err(At.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(IS(e)?FD(e):e)}}_stateAfterAttributeName(e){switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.SOLIDUS:this.state=ze.SELF_CLOSING_START_TAG;break;case De.EQUALS_SIGN:this.state=ze.BEFORE_ATTRIBUTE_VALUE;break;case De.GREATER_THAN_SIGN:this.state=ze.DATA,this.emitCurrentTagToken();break;case De.EOF:this._err(At.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=ze.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.QUOTATION_MARK:this.state=ze.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case De.APOSTROPHE:this.state=ze.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case De.GREATER_THAN_SIGN:this._err(At.missingAttributeValue),this.state=ze.DATA,this.emitCurrentTagToken();break;default:this.state=ze.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case De.QUOTATION_MARK:this.state=ze.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case De.AMPERSAND:this._startCharacterReference();break;case De.NULL:this._err(At.unexpectedNullCharacter),this.currentAttr.value+="�";break;case De.EOF:this._err(At.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case De.APOSTROPHE:this.state=ze.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case De.AMPERSAND:this._startCharacterReference();break;case De.NULL:this._err(At.unexpectedNullCharacter),this.currentAttr.value+="�";break;case De.EOF:this._err(At.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:this._leaveAttrValue(),this.state=ze.BEFORE_ATTRIBUTE_NAME;break;case De.AMPERSAND:this._startCharacterReference();break;case De.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ze.DATA,this.emitCurrentTagToken();break;case De.NULL:this._err(At.unexpectedNullCharacter),this.currentAttr.value+="�";break;case De.QUOTATION_MARK:case De.APOSTROPHE:case De.LESS_THAN_SIGN:case De.EQUALS_SIGN:case De.GRAVE_ACCENT:this._err(At.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case De.EOF:this._err(At.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:this._leaveAttrValue(),this.state=ze.BEFORE_ATTRIBUTE_NAME;break;case De.SOLIDUS:this._leaveAttrValue(),this.state=ze.SELF_CLOSING_START_TAG;break;case De.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ze.DATA,this.emitCurrentTagToken();break;case De.EOF:this._err(At.eofInTag),this._emitEOFToken();break;default:this._err(At.missingWhitespaceBetweenAttributes),this.state=ze.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case De.GREATER_THAN_SIGN:{const t=this.currentToken;t.selfClosing=!0,this.state=ze.DATA,this.emitCurrentTagToken();break}case De.EOF:this._err(At.eofInTag),this._emitEOFToken();break;default:this._err(At.unexpectedSolidusInTag),this.state=ze.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case De.GREATER_THAN_SIGN:this.state=ze.DATA,this.emitCurrentComment(t);break;case De.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case De.NULL:this._err(At.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Lo.DASH_DASH,!0)?(this._createCommentToken(Lo.DASH_DASH.length+1),this.state=ze.COMMENT_START):this._consumeSequenceIfMatch(Lo.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Lo.DOCTYPE.length+1),this.state=ze.DOCTYPE):this._consumeSequenceIfMatch(Lo.CDATA_START,!0)?this.inForeignNode?this.state=ze.CDATA_SECTION:(this._err(At.cdataInHtmlContent),this._createCommentToken(Lo.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ze.BOGUS_COMMENT):this._ensureHibernation()||(this._err(At.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ze.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case De.HYPHEN_MINUS:this.state=ze.COMMENT_START_DASH;break;case De.GREATER_THAN_SIGN:{this._err(At.abruptClosingOfEmptyComment),this.state=ze.DATA;const t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=ze.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case De.HYPHEN_MINUS:this.state=ze.COMMENT_END;break;case De.GREATER_THAN_SIGN:this._err(At.abruptClosingOfEmptyComment),this.state=ze.DATA,this.emitCurrentComment(t);break;case De.EOF:this._err(At.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ze.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case De.HYPHEN_MINUS:this.state=ze.COMMENT_END_DASH;break;case De.LESS_THAN_SIGN:t.data+="<",this.state=ze.COMMENT_LESS_THAN_SIGN;break;case De.NULL:this._err(At.unexpectedNullCharacter),t.data+="�";break;case De.EOF:this._err(At.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case De.EXCLAMATION_MARK:t.data+="!",this.state=ze.COMMENT_LESS_THAN_SIGN_BANG;break;case De.LESS_THAN_SIGN:t.data+="<";break;default:this.state=ze.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===De.HYPHEN_MINUS?this.state=ze.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ze.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===De.HYPHEN_MINUS?this.state=ze.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ze.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==De.GREATER_THAN_SIGN&&e!==De.EOF&&this._err(At.nestedComment),this.state=ze.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case De.HYPHEN_MINUS:this.state=ze.COMMENT_END;break;case De.EOF:this._err(At.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ze.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case De.GREATER_THAN_SIGN:this.state=ze.DATA,this.emitCurrentComment(t);break;case De.EXCLAMATION_MARK:this.state=ze.COMMENT_END_BANG;break;case De.HYPHEN_MINUS:t.data+="-";break;case De.EOF:this._err(At.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=ze.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case De.HYPHEN_MINUS:t.data+="--!",this.state=ze.COMMENT_END_DASH;break;case De.GREATER_THAN_SIGN:this._err(At.incorrectlyClosedComment),this.state=ze.DATA,this.emitCurrentComment(t);break;case De.EOF:this._err(At.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=ze.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:this.state=ze.BEFORE_DOCTYPE_NAME;break;case De.GREATER_THAN_SIGN:this.state=ze.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case De.EOF:{this._err(At.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(At.missingWhitespaceBeforeDoctypeName),this.state=ze.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(IS(e))this._createDoctypeToken(String.fromCharCode(FD(e))),this.state=ze.DOCTYPE_NAME;else switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.NULL:this._err(At.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=ze.DOCTYPE_NAME;break;case De.GREATER_THAN_SIGN:{this._err(At.missingDoctypeName),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ze.DATA;break}case De.EOF:{this._err(At.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=ze.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:this.state=ze.AFTER_DOCTYPE_NAME;break;case De.GREATER_THAN_SIGN:this.state=ze.DATA,this.emitCurrentDoctype(t);break;case De.NULL:this._err(At.unexpectedNullCharacter),t.name+="�";break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(IS(e)?FD(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.GREATER_THAN_SIGN:this.state=ze.DATA,this.emitCurrentDoctype(t);break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(Lo.PUBLIC,!1)?this.state=ze.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Lo.SYSTEM,!1)?this.state=ze.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(At.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=ze.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:this.state=ze.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case De.QUOTATION_MARK:this._err(At.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ze.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case De.APOSTROPHE:this._err(At.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ze.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case De.GREATER_THAN_SIGN:this._err(At.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ze.DATA,this.emitCurrentDoctype(t);break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(At.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ze.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.QUOTATION_MARK:t.publicId="",this.state=ze.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case De.APOSTROPHE:t.publicId="",this.state=ze.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case De.GREATER_THAN_SIGN:this._err(At.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ze.DATA,this.emitCurrentDoctype(t);break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(At.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ze.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case De.QUOTATION_MARK:this.state=ze.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case De.NULL:this._err(At.unexpectedNullCharacter),t.publicId+="�";break;case De.GREATER_THAN_SIGN:this._err(At.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ze.DATA;break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case De.APOSTROPHE:this.state=ze.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case De.NULL:this._err(At.unexpectedNullCharacter),t.publicId+="�";break;case De.GREATER_THAN_SIGN:this._err(At.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ze.DATA;break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:this.state=ze.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case De.GREATER_THAN_SIGN:this.state=ze.DATA,this.emitCurrentDoctype(t);break;case De.QUOTATION_MARK:this._err(At.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ze.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case De.APOSTROPHE:this._err(At.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ze.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(At.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ze.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ze.DATA;break;case De.QUOTATION_MARK:t.systemId="",this.state=ze.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case De.APOSTROPHE:t.systemId="",this.state=ze.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(At.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ze.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:this.state=ze.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case De.QUOTATION_MARK:this._err(At.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ze.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case De.APOSTROPHE:this._err(At.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ze.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case De.GREATER_THAN_SIGN:this._err(At.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ze.DATA,this.emitCurrentDoctype(t);break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(At.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ze.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.QUOTATION_MARK:t.systemId="",this.state=ze.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case De.APOSTROPHE:t.systemId="",this.state=ze.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case De.GREATER_THAN_SIGN:this._err(At.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ze.DATA,this.emitCurrentDoctype(t);break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(At.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ze.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case De.QUOTATION_MARK:this.state=ze.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case De.NULL:this._err(At.unexpectedNullCharacter),t.systemId+="�";break;case De.GREATER_THAN_SIGN:this._err(At.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ze.DATA;break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case De.APOSTROPHE:this.state=ze.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case De.NULL:this._err(At.unexpectedNullCharacter),t.systemId+="�";break;case De.GREATER_THAN_SIGN:this._err(At.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ze.DATA;break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case De.SPACE:case De.LINE_FEED:case De.TABULATION:case De.FORM_FEED:break;case De.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ze.DATA;break;case De.EOF:this._err(At.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(At.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ze.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case De.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ze.DATA;break;case De.NULL:this._err(At.unexpectedNullCharacter);break;case De.EOF:this.emitCurrentDoctype(t),this._emitEOFToken();break;default:}}_stateCdataSection(e){switch(e){case De.RIGHT_SQUARE_BRACKET:this.state=ze.CDATA_SECTION_BRACKET;break;case De.EOF:this._err(At.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===De.RIGHT_SQUARE_BRACKET?this.state=ze.CDATA_SECTION_END:(this._emitChars("]"),this.state=ze.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case De.GREATER_THAN_SIGN:this.state=ze.DATA;break;case De.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=ze.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(De.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&_Ye(this.preprocessor.peek(1))?ze.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){_Ye(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===De.SEMICOLON&&this._err(At.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}})),mre,yre,MS,DYe,IYe,vre,bre,MYe,OYe,PYe,BYe,FYe,SIt=V((()=>{Jg(),mre=new Set([X.DD,X.DT,X.LI,X.OPTGROUP,X.OPTION,X.P,X.RB,X.RP,X.RT,X.RTC]),yre=new Set([...mre,X.CAPTION,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]),MS=new Set([X.APPLET,X.CAPTION,X.HTML,X.MARQUEE,X.OBJECT,X.TABLE,X.TD,X.TEMPLATE,X.TH]),DYe=new Set([...MS,X.OL,X.UL]),IYe=new Set([...MS,X.BUTTON]),vre=new Set([X.ANNOTATION_XML,X.MI,X.MN,X.MO,X.MS,X.MTEXT]),bre=new Set([X.DESC,X.FOREIGN_OBJECT,X.TITLE]),MYe=new Set([X.TR,X.TEMPLATE,X.HTML]),OYe=new Set([X.TBODY,X.TFOOT,X.THEAD,X.TEMPLATE,X.HTML]),PYe=new Set([X.TABLE,X.TEMPLATE,X.HTML]),BYe=new Set([X.TD,X.TH]),FYe=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=X.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===X.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Vt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const i=this._indexOf(e)+1;this.items.splice(i,0,t),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Vt.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(BD,Vt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(BYe,Vt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(PYe,Vt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(OYe,Vt.HTML)}clearBackToTableRowContext(){this.clearBackTo(MYe,Vt.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===X.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===X.HTML}hasInDynamicScope(e,t){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Vt.HTML:if(i===e)return!0;if(t.has(i))return!1;break;case Vt.SVG:if(bre.has(i))return!1;break;case Vt.MATHML:if(vre.has(i))return!1;break}}return!0}hasInScope(e){return this.hasInDynamicScope(e,MS)}hasInListItemScope(e){return this.hasInDynamicScope(e,DYe)}hasInButtonScope(e){return this.hasInDynamicScope(e,IYe)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Vt.HTML:if(BD.has(t))return!0;if(MS.has(t))return!1;break;case Vt.SVG:if(bre.has(t))return!1;break;case Vt.MATHML:if(vre.has(t))return!1;break}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Vt.HTML)switch(this.tagIDs[t]){case e:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Vt.HTML)switch(this.tagIDs[e]){case X.TBODY:case X.THEAD:case X.TFOOT:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Vt.HTML)switch(this.tagIDs[t]){case e:return!0;case X.OPTION:case X.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&mre.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&yre.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&yre.has(this.currentTagId);)this.pop()}}})),$D,ad,xre,$Ye,_It=V((()=>{$D=3,(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ad||(ad={})),xre={type:ad.Marker},$Ye=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],i=t.length,n=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let s=0;s<this.entries.length;s++){const o=this.entries[s];if(o.type===ad.Marker)break;const{element:l}=o;if(this.treeAdapter.getTagName(l)===n&&this.treeAdapter.getNamespaceURI(l)===a){const u=this.treeAdapter.getAttrList(l);u.length===i&&r.push({idx:s,attrs:u})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<$D)return;const t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<$D)return;const i=new Map(t.map(a=>[a.name,a.value]));let n=0;for(let a=0;a<r.length;a++){const s=r[a];s.attrs.every(o=>i.get(o.name)===o.value)&&(n+=1,n>=$D&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(xre)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ad.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ad.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(xre);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(r=>r.type===ad.Marker||this.treeAdapter.getTagName(r.element)===e);return t&&t.type===ad.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===ad.Element&&t.element===e)}}})),Bf,Tre=V((()=>{Jg(),Bf={createDocument(){return{nodeName:"#document",mode:fc.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){const n=e.childNodes.find(a=>a.nodeName==="#documentType");if(n)n.name=t,n.publicId=r,n.systemId=i;else{const a={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};Bf.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Bf.isTextNode(r)){r.value+=t;return}}Bf.appendChild(e,Bf.createTextNode(t))},insertTextBefore(e,t,r){const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Bf.isTextNode(i)?i.value+=t:Bf.insertBefore(e,Bf.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}}}));function zYe(e,t){return t.some(r=>e.startsWith(r))}function AIt(e){return e.name===wre&&e.publicId===null&&(e.systemId===null||e.systemId===UYe)}function LIt(e){if(e.name!==wre)return fc.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===HYe)return fc.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),qYe.has(r))return fc.QUIRKS;let i=t===null?VYe:Ere;if(zYe(r,i))return fc.QUIRKS;if(i=t===null?kre:GYe,zYe(r,i))return fc.LIMITED_QUIRKS}return fc.NO_QUIRKS}var wre,UYe,HYe,Ere,VYe,qYe,kre,GYe,RIt=V((()=>{Jg(),wre="html",UYe="about:legacy-compat",HYe="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ere=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],VYe=[...Ere,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],qYe=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),kre=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],GYe=[...kre,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]}));function NIt(e){const t=e.tagID;return t===X.FONT&&e.attrs.some(({name:r})=>r===Sy.COLOR||r===Sy.SIZE||r===Sy.FACE)||JYe.has(t)}function WYe(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===jYe){e.attrs[t].name=XYe;break}}function YYe(e){for(let t=0;t<e.attrs.length;t++){const r=KYe.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Cre(e){for(let t=0;t<e.attrs.length;t++){const r=QYe.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function DIt(e){const t=ZYe.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Dx(e.tagName))}function IIt(e,t){return t===Vt.MATHML&&(e===X.MI||e===X.MO||e===X.MN||e===X.MS||e===X.MTEXT)}function MIt(e,t,r){if(t===Vt.MATHML&&e===X.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===Sy.ENCODING){const n=r[i].value.toLowerCase();return n===Sre.TEXT_HTML||n===Sre.APPLICATION_XML}}return t===Vt.SVG&&(e===X.FOREIGN_OBJECT||e===X.DESC||e===X.TITLE)}function OIt(e,t,r,i){return(!i||i===Vt.HTML)&&MIt(e,t,r)||(!i||i===Vt.MATHML)&&IIt(e,t)}var Sre,jYe,XYe,KYe,QYe,ZYe,JYe,eje=V((()=>{Jg(),Sre={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},jYe="definitionurl",XYe="definitionURL",KYe=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),QYe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Vt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Vt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Vt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Vt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Vt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Vt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Vt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Vt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Vt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Vt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Vt.XMLNS}]]),ZYe=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),JYe=new Set([X.B,X.BIG,X.BLOCKQUOTE,X.BODY,X.BR,X.CENTER,X.CODE,X.DD,X.DIV,X.DL,X.DT,X.EM,X.EMBED,X.H1,X.H2,X.H3,X.H4,X.H5,X.H6,X.HEAD,X.HR,X.I,X.IMG,X.LI,X.LISTING,X.MENU,X.META,X.NOBR,X.OL,X.P,X.PRE,X.RUBY,X.S,X.SMALL,X.SPAN,X.STRONG,X.STRIKE,X.SUB,X.SUP,X.TABLE,X.TT,X.U,X.UL,X.VAR])}));function PIt(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):oje(e,t),r}function BIt(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){const n=e.openElements.items[i];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[i])&&(r=n)}return r||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),r}function FIt(e,t,r){let i=t,n=e.openElements.getCommonAncestor(t);for(let a=0,s=n;s!==r;a++,s=n){n=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=bje;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=$It(e,o),i===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(s,i),i=s)}return i}function $It(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function zIt(e,t,r){const i=Dx(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{const n=e.treeAdapter.getNamespaceURI(t);i===X.TEMPLATE&&n===Vt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function UIt(e,t,r){const i=e.treeAdapter.getNamespaceURI(r.element),{token:n}=r,a=e.treeAdapter.createElement(n.tagName,i,n.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,n.tagID)}function _re(e,t){for(let r=0;r<vje;r++){const i=PIt(e,t);if(!i)break;const n=BIt(e,i);if(!n)break;e.activeFormattingElements.bookmark=i;const a=FIt(e,n,i.element),s=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(a),s&&zIt(e,s,a),UIt(e,n,i)}}function Are(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function HIt(e,t){e._appendCommentNode(t,e.openElements.items[0])}function VIt(e,t){e._appendCommentNode(t,e.document)}function Lre(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(i);if(n&&!n.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function qIt(e,t){e._setDocumentType(t);const r=t.forceQuirks?fc.QUIRKS:LIt(t);AIt(t)||e._err(t,At.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=Ye.BEFORE_HTML}function OS(e,t){e._err(t,At.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,fc.QUIRKS),e.insertionMode=Ye.BEFORE_HTML,e._processToken(t)}function GIt(e,t){t.tagID===X.HTML?(e._insertElement(t,Vt.HTML),e.insertionMode=Ye.BEFORE_HEAD):PS(e,t)}function WIt(e,t){const r=t.tagID;(r===X.HTML||r===X.HEAD||r===X.BODY||r===X.BR)&&PS(e,t)}function PS(e,t){e._insertFakeRootElement(),e.insertionMode=Ye.BEFORE_HEAD,e._processToken(t)}function YIt(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.HEAD:e._insertElement(t,Vt.HTML),e.headElement=e.openElements.current,e.insertionMode=Ye.IN_HEAD;break;default:BS(e,t)}}function jIt(e,t){const r=t.tagID;r===X.HEAD||r===X.BODY||r===X.HTML||r===X.BR?BS(e,t):e._err(t,At.endTagWithoutMatchingOpenElement)}function BS(e,t){e._insertFakeElement(pt.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ye.IN_HEAD,e._processToken(t)}function ku(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:e._appendElement(t,Vt.HTML),t.ackSelfClosing=!0;break;case X.TITLE:e._switchToTextParsing(t,Kn.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Kn.RAWTEXT):(e._insertElement(t,Vt.HTML),e.insertionMode=Ye.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,Kn.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,Kn.SCRIPT_DATA);break;case X.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ye.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ye.IN_TEMPLATE);break;case X.HEAD:e._err(t,At.misplacedStartTagForHeadElement);break;default:FS(e,t)}}function XIt(e,t){switch(t.tagID){case X.HEAD:e.openElements.pop(),e.insertionMode=Ye.AFTER_HEAD;break;case X.BODY:case X.BR:case X.HTML:FS(e,t);break;case X.TEMPLATE:_y(e,t);break;default:e._err(t,At.endTagWithoutMatchingOpenElement)}}function _y(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X.TEMPLATE&&e._err(t,At.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,At.endTagWithoutMatchingOpenElement)}function FS(e,t){e.openElements.pop(),e.insertionMode=Ye.AFTER_HEAD,e._processToken(t)}function KIt(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:ku(e,t);break;case X.NOSCRIPT:e._err(t,At.nestedNoscriptInHead);break;default:$S(e,t)}}function QIt(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=Ye.IN_HEAD;break;case X.BR:$S(e,t);break;default:e._err(t,At.endTagWithoutMatchingOpenElement)}}function $S(e,t){const r=t.type===hi.EOF?At.openElementsLeftAfterEof:At.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=Ye.IN_HEAD,e._processToken(t)}function ZIt(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.BODY:e._insertElement(t,Vt.HTML),e.framesetOk=!1,e.insertionMode=Ye.IN_BODY;break;case X.FRAMESET:e._insertElement(t,Vt.HTML),e.insertionMode=Ye.IN_FRAMESET;break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e._err(t,At.abandonedHeadElementChild),e.openElements.push(e.headElement,X.HEAD),ku(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,At.misplacedStartTagForHeadElement);break;default:zS(e,t)}}function JIt(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:zS(e,t);break;case X.TEMPLATE:_y(e,t);break;default:e._err(t,At.endTagWithoutMatchingOpenElement)}}function zS(e,t){e._insertFakeElement(pt.BODY,X.BODY),e.insertionMode=Ye.IN_BODY,zD(e,t)}function zD(e,t){switch(t.type){case hi.CHARACTER:rje(e,t);break;case hi.WHITESPACE_CHARACTER:tje(e,t);break;case hi.COMMENT:Are(e,t);break;case hi.START_TAG:Qs(e,t);break;case hi.END_TAG:UD(e,t);break;case hi.EOF:lje(e,t);break;default:}}function tje(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function rje(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function eMt(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function tMt(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function rMt(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Vt.HTML),e.insertionMode=Ye.IN_FRAMESET)}function iMt(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,Vt.HTML)}function nMt(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&BD.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Vt.HTML)}function aMt(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,Vt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function sMt(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,Vt.HTML),r||(e.formElement=e.openElements.current))}function oMt(e,t){e.framesetOk=!1;const r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const n=e.openElements.tagIDs[i];if(r===X.LI&&n===X.LI||(r===X.DD||r===X.DT)&&(n===X.DD||n===X.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==X.ADDRESS&&n!==X.DIV&&n!==X.P&&e._isSpecialElement(e.openElements.items[i],n))break}e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,Vt.HTML)}function lMt(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,Vt.HTML),e.tokenizer.state=Kn.PLAINTEXT}function cMt(e,t){e.openElements.hasInScope(X.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Vt.HTML),e.framesetOk=!1}function uMt(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(pt.A);r&&(_re(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function hMt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function dMt(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(_re(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function fMt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Vt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function pMt(e,t){e.treeAdapter.getDocumentMode(e.document)!==fc.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,Vt.HTML),e.framesetOk=!1,e.insertionMode=Ye.IN_TABLE}function ije(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Vt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function nje(e){const t=xYe(e,Sy.TYPE);return t!=null&&t.toLowerCase()===yje}function gMt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Vt.HTML),nje(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function mMt(e,t){e._appendElement(t,Vt.HTML),t.ackSelfClosing=!0}function yMt(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,Vt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function vMt(e,t){t.tagName=pt.IMG,t.tagID=X.IMG,ije(e,t)}function bMt(e,t){e._insertElement(t,Vt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Kn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ye.TEXT}function xMt(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Kn.RAWTEXT)}function TMt(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Kn.RAWTEXT)}function aje(e,t){e._switchToTextParsing(t,Kn.RAWTEXT)}function wMt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Vt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ye.IN_TABLE||e.insertionMode===Ye.IN_CAPTION||e.insertionMode===Ye.IN_TABLE_BODY||e.insertionMode===Ye.IN_ROW||e.insertionMode===Ye.IN_CELL?Ye.IN_SELECT_IN_TABLE:Ye.IN_SELECT}function EMt(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Vt.HTML)}function kMt(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Vt.HTML)}function CMt(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,Vt.HTML)}function SMt(e,t){e._reconstructActiveFormattingElements(),WYe(t),Cre(t),t.selfClosing?e._appendElement(t,Vt.MATHML):e._insertElement(t,Vt.MATHML),t.ackSelfClosing=!0}function _Mt(e,t){e._reconstructActiveFormattingElements(),YYe(t),Cre(t),t.selfClosing?e._appendElement(t,Vt.SVG):e._insertElement(t,Vt.SVG),t.ackSelfClosing=!0}function sje(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Vt.HTML)}function Qs(e,t){switch(t.tagID){case X.I:case X.S:case X.B:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.SMALL:case X.STRIKE:case X.STRONG:hMt(e,t);break;case X.A:uMt(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:nMt(e,t);break;case X.P:case X.DL:case X.OL:case X.UL:case X.DIV:case X.DIR:case X.NAV:case X.MAIN:case X.MENU:case X.ASIDE:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.DETAILS:case X.ADDRESS:case X.ARTICLE:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:iMt(e,t);break;case X.LI:case X.DD:case X.DT:oMt(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:ije(e,t);break;case X.HR:yMt(e,t);break;case X.RB:case X.RTC:kMt(e,t);break;case X.RT:case X.RP:CMt(e,t);break;case X.PRE:case X.LISTING:aMt(e,t);break;case X.XMP:xMt(e,t);break;case X.SVG:_Mt(e,t);break;case X.HTML:eMt(e,t);break;case X.BASE:case X.LINK:case X.META:case X.STYLE:case X.TITLE:case X.SCRIPT:case X.BGSOUND:case X.BASEFONT:case X.TEMPLATE:ku(e,t);break;case X.BODY:tMt(e,t);break;case X.FORM:sMt(e,t);break;case X.NOBR:dMt(e,t);break;case X.MATH:SMt(e,t);break;case X.TABLE:pMt(e,t);break;case X.INPUT:gMt(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:mMt(e,t);break;case X.IMAGE:vMt(e,t);break;case X.BUTTON:cMt(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:fMt(e,t);break;case X.IFRAME:TMt(e,t);break;case X.SELECT:wMt(e,t);break;case X.OPTION:case X.OPTGROUP:EMt(e,t);break;case X.NOEMBED:case X.NOFRAMES:aje(e,t);break;case X.FRAMESET:rMt(e,t);break;case X.TEXTAREA:bMt(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?aje(e,t):sje(e,t);break;case X.PLAINTEXT:lMt(e,t);break;case X.COL:case X.TH:case X.TD:case X.TR:case X.HEAD:case X.FRAME:case X.TBODY:case X.TFOOT:case X.THEAD:case X.CAPTION:case X.COLGROUP:break;default:sje(e,t)}}function AMt(e,t){if(e.openElements.hasInScope(X.BODY)&&(e.insertionMode=Ye.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function LMt(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=Ye.AFTER_BODY,gje(e,t))}function RMt(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function NMt(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(X.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X.FORM):r&&e.openElements.remove(r))}function DMt(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(pt.P,X.P),e._closePElement()}function IMt(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function MMt(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function OMt(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function PMt(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function BMt(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(pt.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function oje(e,t){const r=t.tagName,i=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const a=e.openElements.items[n],s=e.openElements.tagIDs[n];if(i===s&&(i!==X.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(a,s))break}}function UD(e,t){switch(t.tagID){case X.A:case X.B:case X.I:case X.S:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.NOBR:case X.SMALL:case X.STRIKE:case X.STRONG:_re(e,t);break;case X.P:DMt(e);break;case X.DL:case X.UL:case X.OL:case X.DIR:case X.DIV:case X.NAV:case X.PRE:case X.MAIN:case X.MENU:case X.ASIDE:case X.BUTTON:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.ADDRESS:case X.ARTICLE:case X.DETAILS:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.LISTING:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:RMt(e,t);break;case X.LI:IMt(e);break;case X.DD:case X.DT:MMt(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:OMt(e);break;case X.BR:BMt(e);break;case X.BODY:AMt(e,t);break;case X.HTML:LMt(e,t);break;case X.FORM:NMt(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:PMt(e,t);break;case X.TEMPLATE:_y(e,t);break;default:oje(e,t)}}function lje(e,t){e.tmplInsertionModeStack.length>0?pje(e,t):Lre(e,t)}function FMt(e,t){var r;t.tagID===X.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function $Mt(e,t){e._err(t,At.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Rre(e,t){if(e.openElements.currentTagId!==void 0&&Ire.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ye.IN_TABLE_TEXT,t.type){case hi.CHARACTER:uje(e,t);break;case hi.WHITESPACE_CHARACTER:cje(e,t);break}else HS(e,t)}function zMt(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Vt.HTML),e.insertionMode=Ye.IN_CAPTION}function UMt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Vt.HTML),e.insertionMode=Ye.IN_COLUMN_GROUP}function HMt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(pt.COLGROUP,X.COLGROUP),e.insertionMode=Ye.IN_COLUMN_GROUP,Nre(e,t)}function VMt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Vt.HTML),e.insertionMode=Ye.IN_TABLE_BODY}function qMt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(pt.TBODY,X.TBODY),e.insertionMode=Ye.IN_TABLE_BODY,VD(e,t)}function GMt(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function WMt(e,t){nje(t)?e._appendElement(t,Vt.HTML):HS(e,t),t.ackSelfClosing=!0}function YMt(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Vt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ix(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:qMt(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:ku(e,t);break;case X.COL:HMt(e,t);break;case X.FORM:YMt(e,t);break;case X.TABLE:GMt(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:VMt(e,t);break;case X.INPUT:WMt(e,t);break;case X.CAPTION:zMt(e,t);break;case X.COLGROUP:UMt(e,t);break;default:HS(e,t)}}function US(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:_y(e,t);break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:HS(e,t)}}function HS(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,zD(e,t),e.fosterParentingEnabled=r}function cje(e,t){e.pendingCharacterTokens.push(t)}function uje(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function VS(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)HS(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function jMt(e,t){const r=t.tagID;Pre.has(r)?e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ye.IN_TABLE,Ix(e,t)):Qs(e,t)}function XMt(e,t){const r=t.tagID;switch(r){case X.CAPTION:case X.TABLE:e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ye.IN_TABLE,r===X.TABLE&&US(e,t));break;case X.BODY:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:UD(e,t)}}function Nre(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.COL:e._appendElement(t,Vt.HTML),t.ackSelfClosing=!0;break;case X.TEMPLATE:ku(e,t);break;default:HD(e,t)}}function KMt(e,t){switch(t.tagID){case X.COLGROUP:e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ye.IN_TABLE);break;case X.TEMPLATE:_y(e,t);break;case X.COL:break;default:HD(e,t)}}function HD(e,t){e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ye.IN_TABLE,e._processToken(t))}function VD(e,t){switch(t.tagID){case X.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Vt.HTML),e.insertionMode=Ye.IN_ROW;break;case X.TH:case X.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(pt.TR,X.TR),e.insertionMode=Ye.IN_ROW,qD(e,t);break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ye.IN_TABLE,Ix(e,t));break;default:Ix(e,t)}}function Dre(e,t){const r=t.tagID;switch(t.tagID){case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ye.IN_TABLE);break;case X.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ye.IN_TABLE,US(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:case X.TR:break;default:US(e,t)}}function qD(e,t){switch(t.tagID){case X.TH:case X.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Vt.HTML),e.insertionMode=Ye.IN_CELL,e.activeFormattingElements.insertMarker();break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ye.IN_TABLE_BODY,VD(e,t));break;default:Ix(e,t)}}function hje(e,t){switch(t.tagID){case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ye.IN_TABLE_BODY);break;case X.TABLE:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ye.IN_TABLE_BODY,Dre(e,t));break;case X.TBODY:case X.TFOOT:case X.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(X.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ye.IN_TABLE_BODY,Dre(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:break;default:US(e,t)}}function QMt(e,t){const r=t.tagID;Pre.has(r)?(e.openElements.hasInTableScope(X.TD)||e.openElements.hasInTableScope(X.TH))&&(e._closeTableCell(),qD(e,t)):Qs(e,t)}function ZMt(e,t){const r=t.tagID;switch(r){case X.TD:case X.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ye.IN_ROW);break;case X.TABLE:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),hje(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:break;default:UD(e,t)}}function dje(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._insertElement(t,Vt.HTML);break;case X.OPTGROUP:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Vt.HTML);break;case X.HR:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Vt.HTML),t.ackSelfClosing=!0;break;case X.INPUT:case X.KEYGEN:case X.TEXTAREA:case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),t.tagID!==X.SELECT&&e._processStartTag(t));break;case X.SCRIPT:case X.TEMPLATE:ku(e,t);break;default:}}function fje(e,t){switch(t.tagID){case X.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===X.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop();break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop();break;case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode());break;case X.TEMPLATE:_y(e,t);break;default:}}function JMt(e,t){const r=t.tagID;r===X.CAPTION||r===X.TABLE||r===X.TBODY||r===X.TFOOT||r===X.THEAD||r===X.TR||r===X.TD||r===X.TH?(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e._processStartTag(t)):dje(e,t)}function eOt(e,t){const r=t.tagID;r===X.CAPTION||r===X.TABLE||r===X.TBODY||r===X.TFOOT||r===X.THEAD||r===X.TR||r===X.TD||r===X.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e.onEndTag(t)):fje(e,t)}function tOt(e,t){switch(t.tagID){case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:ku(e,t);break;case X.CAPTION:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.tmplInsertionModeStack[0]=Ye.IN_TABLE,e.insertionMode=Ye.IN_TABLE,Ix(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=Ye.IN_COLUMN_GROUP,e.insertionMode=Ye.IN_COLUMN_GROUP,Nre(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=Ye.IN_TABLE_BODY,e.insertionMode=Ye.IN_TABLE_BODY,VD(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=Ye.IN_ROW,e.insertionMode=Ye.IN_ROW,qD(e,t);break;default:e.tmplInsertionModeStack[0]=Ye.IN_BODY,e.insertionMode=Ye.IN_BODY,Qs(e,t)}}function rOt(e,t){t.tagID===X.TEMPLATE&&_y(e,t)}function pje(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Lre(e,t)}function iOt(e,t){t.tagID===X.HTML?Qs(e,t):GD(e,t)}function gje(e,t){var r;if(t.tagID===X.HTML){if(e.fragmentContext||(e.insertionMode=Ye.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else GD(e,t)}function GD(e,t){e.insertionMode=Ye.IN_BODY,zD(e,t)}function nOt(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.FRAMESET:e._insertElement(t,Vt.HTML);break;case X.FRAME:e._appendElement(t,Vt.HTML),t.ackSelfClosing=!0;break;case X.NOFRAMES:ku(e,t);break;default:}}function aOt(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=Ye.AFTER_FRAMESET))}function sOt(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.NOFRAMES:ku(e,t);break;default:}}function oOt(e,t){t.tagID===X.HTML&&(e.insertionMode=Ye.AFTER_AFTER_FRAMESET)}function lOt(e,t){t.tagID===X.HTML?Qs(e,t):WD(e,t)}function WD(e,t){e.insertionMode=Ye.IN_BODY,zD(e,t)}function cOt(e,t){switch(t.tagID){case X.HTML:Qs(e,t);break;case X.NOFRAMES:ku(e,t);break;default:}}function uOt(e,t){t.chars="�",e._insertCharacters(t)}function hOt(e,t){e._insertCharacters(t),e.framesetOk=!1}function mje(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Vt.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function dOt(e,t){if(NIt(t))mje(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===Vt.MATHML?WYe(t):i===Vt.SVG&&(DIt(t),YYe(t)),Cre(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function fOt(e,t){if(t.tagID===X.P||t.tagID===X.BR){mje(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===Vt.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(i);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(r);break}}}var yje,vje,bje,Ye,xje,Ire,Mre,Ore,Pre,pOt=V((()=>{NYe(),SIt(),_It(),Tre(),RIt(),eje(),PD(),dre(),Jg(),fre(),yje="hidden",vje=8,bje=3,(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Ye||(Ye={})),xje={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ire=new Set([X.TABLE,X.TBODY,X.TFOOT,X.THEAD,X.TR]),Mre={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Bf,onParseError:null},Ore=class{constructor(e,t,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=Ye.INITIAL,this.originalInsertionMode=Ye.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Mre,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new RYe(this.options,this),this.activeFormattingElements=new $Ye(this.treeAdapter),this.fragmentContextID=r?Dx(this.treeAdapter.getTagName(r)):X.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new FYe(this.document,this.treeAdapter,this)}static parse(e,t){const r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){const r={...Mre,...t};e!=null||(e=r.treeAdapter.createElement(pt.TEMPLATE,Vt.HTML,[]));const i=r.treeAdapter.createElement("documentmock",Vt.HTML,[]),n=new this(r,i,e);return n.fragmentContextID===X.TEMPLATE&&n.tmplInsertionModeStack.unshift(Ye.IN_TEMPLATE),n._initTokenizerForFragmentParsing(),n._insertFakeRootElement(),n._resetInsertionMode(),n._findFormInFragmentContext(),n}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var i;if(!this.onParseError)return;const n=(i=e.location)!==null&&i!==void 0?i:xje,a={code:t,startLine:n.startLine,startCol:n.startCol,startOffset:n.startOffset,endLine:r?n.startLine:n.endLine,endCol:r?n.startCol:n.endCol,endOffset:r?n.startOffset:n.endOffset};this.onParseError(a)}onItemPush(e,t,r){var i,n;(n=(i=this.treeAdapter).onItemPush)===null||n===void 0||n.call(i,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,e,this.openElements.current),t){let n,a;this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,a=this.fragmentContextID):{current:n,currentTagId:a}=this.openElements,this._setContextModes(n,a)}}_setContextModes(e,t){const r=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===Vt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Vt.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ye.TEXT}switchToPlaintextParsing(){this.insertionMode=Ye.TEXT,this.originalInsertionMode=Ye.IN_BODY,this.tokenizer.state=Kn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===pt.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Vt.HTML))switch(this.fragmentContextID){case X.TITLE:case X.TEXTAREA:this.tokenizer.state=Kn.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=Kn.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=Kn.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=Kn.PLAINTEXT;break;default:}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",i=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,i),e.location){const n=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));n&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){const r=this.treeAdapter.createElement(e,Vt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Vt.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(pt.HTML,Vt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X.HTML)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const i=this.treeAdapter.getChildNodes(t),n=i[(r?i.lastIndexOf(r):i.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(n)){const{endLine:a,endCol:s,endOffset:o}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(n,{endLine:a,endCol:s,endOffset:o})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,i=this.treeAdapter.getTagName(e),n=t.type===hi.END_TAG&&i===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,n)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,e.tagID===X.SVG&&this.treeAdapter.getTagName(t)===pt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===Vt.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===X.MGLYPH||e.tagID===X.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,t,Vt.HTML)}_processToken(e){switch(e.type){case hi.CHARACTER:this.onCharacter(e);break;case hi.NULL_CHARACTER:this.onNullCharacter(e);break;case hi.COMMENT:this.onComment(e);break;case hi.DOCTYPE:this.onDoctype(e);break;case hi.START_TAG:this._processStartTag(e);break;case hi.END_TAG:this.onEndTag(e);break;case hi.EOF:this.onEof(e);break;case hi.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e);break}}_isIntegrationPoint(e,t,r){const i=this.treeAdapter.getNamespaceURI(t),n=this.treeAdapter.getAttrList(t);return OIt(e,i,n,r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(i=>i.type===ad.Marker||this.openElements.contains(i.element)),r=t===-1?e-1:t-1;for(let i=r;i>=0;i--){const n=this.activeFormattingElements.entries[i];this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ye.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X.P),this.openElements.popUntilTagNamePopped(X.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X.TR:this.insertionMode=Ye.IN_ROW;return;case X.TBODY:case X.THEAD:case X.TFOOT:this.insertionMode=Ye.IN_TABLE_BODY;return;case X.CAPTION:this.insertionMode=Ye.IN_CAPTION;return;case X.COLGROUP:this.insertionMode=Ye.IN_COLUMN_GROUP;return;case X.TABLE:this.insertionMode=Ye.IN_TABLE;return;case X.BODY:this.insertionMode=Ye.IN_BODY;return;case X.FRAMESET:this.insertionMode=Ye.IN_FRAMESET;return;case X.SELECT:this._resetInsertionModeForSelect(e);return;case X.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case X.HTML:this.insertionMode=this.headElement?Ye.AFTER_HEAD:Ye.BEFORE_HEAD;return;case X.TD:case X.TH:if(e>0){this.insertionMode=Ye.IN_CELL;return}break;case X.HEAD:if(e>0){this.insertionMode=Ye.IN_HEAD;return}break}this.insertionMode=Ye.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const r=this.openElements.tagIDs[t];if(r===X.TEMPLATE)break;if(r===X.TABLE){this.insertionMode=Ye.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ye.IN_SELECT}_isElementCausesFosterParenting(e){return Ire.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case X.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Vt.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X.TABLE:{const r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return SYe[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){hOt(this,e);return}switch(this.insertionMode){case Ye.INITIAL:OS(this,e);break;case Ye.BEFORE_HTML:PS(this,e);break;case Ye.BEFORE_HEAD:BS(this,e);break;case Ye.IN_HEAD:FS(this,e);break;case Ye.IN_HEAD_NO_SCRIPT:$S(this,e);break;case Ye.AFTER_HEAD:zS(this,e);break;case Ye.IN_BODY:case Ye.IN_CAPTION:case Ye.IN_CELL:case Ye.IN_TEMPLATE:rje(this,e);break;case Ye.TEXT:case Ye.IN_SELECT:case Ye.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Ye.IN_TABLE:case Ye.IN_TABLE_BODY:case Ye.IN_ROW:Rre(this,e);break;case Ye.IN_TABLE_TEXT:uje(this,e);break;case Ye.IN_COLUMN_GROUP:HD(this,e);break;case Ye.AFTER_BODY:GD(this,e);break;case Ye.AFTER_AFTER_BODY:WD(this,e);break;default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){uOt(this,e);return}switch(this.insertionMode){case Ye.INITIAL:OS(this,e);break;case Ye.BEFORE_HTML:PS(this,e);break;case Ye.BEFORE_HEAD:BS(this,e);break;case Ye.IN_HEAD:FS(this,e);break;case Ye.IN_HEAD_NO_SCRIPT:$S(this,e);break;case Ye.AFTER_HEAD:zS(this,e);break;case Ye.TEXT:this._insertCharacters(e);break;case Ye.IN_TABLE:case Ye.IN_TABLE_BODY:case Ye.IN_ROW:Rre(this,e);break;case Ye.IN_COLUMN_GROUP:HD(this,e);break;case Ye.AFTER_BODY:GD(this,e);break;case Ye.AFTER_AFTER_BODY:WD(this,e);break;default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Are(this,e);return}switch(this.insertionMode){case Ye.INITIAL:case Ye.BEFORE_HTML:case Ye.BEFORE_HEAD:case Ye.IN_HEAD:case Ye.IN_HEAD_NO_SCRIPT:case Ye.AFTER_HEAD:case Ye.IN_BODY:case Ye.IN_TABLE:case Ye.IN_CAPTION:case Ye.IN_COLUMN_GROUP:case Ye.IN_TABLE_BODY:case Ye.IN_ROW:case Ye.IN_CELL:case Ye.IN_SELECT:case Ye.IN_SELECT_IN_TABLE:case Ye.IN_TEMPLATE:case Ye.IN_FRAMESET:case Ye.AFTER_FRAMESET:Are(this,e);break;case Ye.IN_TABLE_TEXT:VS(this,e);break;case Ye.AFTER_BODY:HIt(this,e);break;case Ye.AFTER_AFTER_BODY:case Ye.AFTER_AFTER_FRAMESET:VIt(this,e);break;default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Ye.INITIAL:qIt(this,e);break;case Ye.BEFORE_HEAD:case Ye.IN_HEAD:case Ye.IN_HEAD_NO_SCRIPT:case Ye.AFTER_HEAD:this._err(e,At.misplacedDoctype);break;case Ye.IN_TABLE_TEXT:VS(this,e);break;default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,At.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?dOt(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Ye.INITIAL:OS(this,e);break;case Ye.BEFORE_HTML:GIt(this,e);break;case Ye.BEFORE_HEAD:YIt(this,e);break;case Ye.IN_HEAD:ku(this,e);break;case Ye.IN_HEAD_NO_SCRIPT:KIt(this,e);break;case Ye.AFTER_HEAD:ZIt(this,e);break;case Ye.IN_BODY:Qs(this,e);break;case Ye.IN_TABLE:Ix(this,e);break;case Ye.IN_TABLE_TEXT:VS(this,e);break;case Ye.IN_CAPTION:jMt(this,e);break;case Ye.IN_COLUMN_GROUP:Nre(this,e);break;case Ye.IN_TABLE_BODY:VD(this,e);break;case Ye.IN_ROW:qD(this,e);break;case Ye.IN_CELL:QMt(this,e);break;case Ye.IN_SELECT:dje(this,e);break;case Ye.IN_SELECT_IN_TABLE:JMt(this,e);break;case Ye.IN_TEMPLATE:tOt(this,e);break;case Ye.AFTER_BODY:iOt(this,e);break;case Ye.IN_FRAMESET:nOt(this,e);break;case Ye.AFTER_FRAMESET:sOt(this,e);break;case Ye.AFTER_AFTER_BODY:lOt(this,e);break;case Ye.AFTER_AFTER_FRAMESET:cOt(this,e);break;default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?fOt(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Ye.INITIAL:OS(this,e);break;case Ye.BEFORE_HTML:WIt(this,e);break;case Ye.BEFORE_HEAD:jIt(this,e);break;case Ye.IN_HEAD:XIt(this,e);break;case Ye.IN_HEAD_NO_SCRIPT:QIt(this,e);break;case Ye.AFTER_HEAD:JIt(this,e);break;case Ye.IN_BODY:UD(this,e);break;case Ye.TEXT:FMt(this,e);break;case Ye.IN_TABLE:US(this,e);break;case Ye.IN_TABLE_TEXT:VS(this,e);break;case Ye.IN_CAPTION:XMt(this,e);break;case Ye.IN_COLUMN_GROUP:KMt(this,e);break;case Ye.IN_TABLE_BODY:Dre(this,e);break;case Ye.IN_ROW:hje(this,e);break;case Ye.IN_CELL:ZMt(this,e);break;case Ye.IN_SELECT:fje(this,e);break;case Ye.IN_SELECT_IN_TABLE:eOt(this,e);break;case Ye.IN_TEMPLATE:rOt(this,e);break;case Ye.AFTER_BODY:gje(this,e);break;case Ye.IN_FRAMESET:aOt(this,e);break;case Ye.AFTER_FRAMESET:oOt(this,e);break;case Ye.AFTER_AFTER_BODY:WD(this,e);break;default:}}onEof(e){switch(this.insertionMode){case Ye.INITIAL:OS(this,e);break;case Ye.BEFORE_HTML:PS(this,e);break;case Ye.BEFORE_HEAD:BS(this,e);break;case Ye.IN_HEAD:FS(this,e);break;case Ye.IN_HEAD_NO_SCRIPT:$S(this,e);break;case Ye.AFTER_HEAD:zS(this,e);break;case Ye.IN_BODY:case Ye.IN_TABLE:case Ye.IN_CAPTION:case Ye.IN_COLUMN_GROUP:case Ye.IN_TABLE_BODY:case Ye.IN_ROW:case Ye.IN_CELL:case Ye.IN_SELECT:case Ye.IN_SELECT_IN_TABLE:lje(this,e);break;case Ye.TEXT:$Mt(this,e);break;case Ye.IN_TABLE_TEXT:VS(this,e);break;case Ye.IN_TEMPLATE:pje(this,e);break;case Ye.AFTER_BODY:case Ye.IN_FRAMESET:case Ye.AFTER_FRAMESET:case Ye.AFTER_AFTER_BODY:case Ye.AFTER_AFTER_FRAMESET:Lre(this,e);break;default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===De.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case Ye.IN_HEAD:case Ye.IN_HEAD_NO_SCRIPT:case Ye.AFTER_HEAD:case Ye.TEXT:case Ye.IN_COLUMN_GROUP:case Ye.IN_SELECT:case Ye.IN_SELECT_IN_TABLE:case Ye.IN_FRAMESET:case Ye.AFTER_FRAMESET:this._insertCharacters(e);break;case Ye.IN_BODY:case Ye.IN_CAPTION:case Ye.IN_CELL:case Ye.IN_TEMPLATE:case Ye.AFTER_BODY:case Ye.AFTER_AFTER_BODY:case Ye.AFTER_AFTER_FRAMESET:tje(this,e);break;case Ye.IN_TABLE:case Ye.IN_TABLE_BODY:case Ye.IN_ROW:Rre(this,e);break;case Ye.IN_TABLE_TEXT:cje(this,e);break;default:}}},Pre=new Set([X.CAPTION,X.COL,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR])})),gOt,mOt=V((()=>{Jg(),Tre(),gOt=new Set([pt.AREA,pt.BASE,pt.BASEFONT,pt.BGSOUND,pt.BR,pt.COL,pt.EMBED,pt.FRAME,pt.HR,pt.IMG,pt.INPUT,pt.KEYGEN,pt.LINK,pt.META,pt.PARAM,pt.SOURCE,pt.TRACK,pt.WBR])})),yOt=V((()=>{pOt(),Tre(),mOt(),PD(),eje(),Jg(),fre(),NYe()}));function Tje(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function wje(e){const t=Cu(e),r=qS(e);if(t&&r)return{start:t,end:r}}var qS,Cu,vOt=V((()=>{qS=Tje("end"),Cu=Tje("start")})),GS=V((()=>{vOt()}));function Eje(e,t){const r=AOt(e),i=uYe("type",{handlers:{root:bOt,element:xOt,text:TOt,comment:Cje,doctype:wOt,raw:kOt},unknown:COt}),n={parser:r?new Ore(Bre):Ore.getFragmentParser(void 0,Bre),handle(s){i(s,n)},stitches:!1,options:t||{}};i(e,n),Mx(n,Cu());const a=YDt(r?n.parser.document:n.parser.getFragment(),{file:n.options.file});return n.stitches&&nd(a,"comment",function(s,o,l){const u=s;if(u.value.stitch&&l&&o!==void 0){const h=l.children;return h[o]=u.value.stitch,o}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function kje(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function bOt(e,t){kje(e.children,t)}function xOt(e,t){SOt(e,t),kje(e.children,t),_Ot(e,t)}function TOt(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:hi.CHARACTER,chars:e.value,location:WS(e)};Mx(t,Cu(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function wOt(e,t){const r={type:hi.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:WS(e)};Mx(t,Cu(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function EOt(e,t){t.stitches=!0;const r=LOt(e);"children"in e&&"children"in r&&(r.children=Eje({type:"root",children:e.children},t.options).children),Cje({type:"comment",value:{stitch:r}},t)}function Cje(e,t){const r=e.value,i={type:hi.COMMENT,data:r,location:WS(e)};Mx(t,Cu(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function kOt(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Sje(t,Cu(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(_je,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function COt(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))EOt(r,t);else{let i="";throw Aje.has(r.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+i)}}function Mx(e,t){Sje(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Kn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Sje(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function SOt(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Kn.PLAINTEXT)return;Mx(t,Cu(e));const i=t.parser.openElements.current;let n="namespaceURI"in i?i.namespaceURI:Qg.html;n===Qg.html&&r==="svg"&&(n=Qg.svg);const a=ZDt({...e,children:[]},{space:n===Qg.svg?"svg":"html"}),s={type:hi.START_TAG,tagName:r,tagID:Dx(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:WS(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function _Ot(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&fYe.includes(r)||t.parser.tokenizer.state===Kn.PLAINTEXT)return;Mx(t,qS(e));const i={type:hi.END_TAG,tagName:r,tagID:Dx(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:WS(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Kn.RCDATA||t.parser.tokenizer.state===Kn.RAWTEXT||t.parser.tokenizer.state===Kn.SCRIPT_DATA)&&(t.parser.tokenizer.state=Kn.DATA)}function AOt(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function WS(e){const t=Cu(e)||{line:void 0,column:void 0,offset:void 0},r=qS(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function LOt(e){return"children"in e?Kg({...e,children:[]}):Kg(e)}var _je,Aje,Bre,ROt=V((()=>{LD(),QDt(),oIt(),lIt(),yOt(),GS(),LS(),are(),cre(),_je=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Aje=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Bre={sourceCodeLocationInfo:!0,scriptingEnabled:!1}})),NOt=V((()=>{ROt()}));function Fre(e){return function(t,r){return Eje(t,{...e,file:r})}}var DOt=V((()=>{NOt()})),IOt=V((()=>{DOt()})),t0,r0,Lje=V((()=>{t0=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],r0={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...t0,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...t0],h2:[["className","sr-only"]],img:[...t0,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...t0,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...t0],table:[...t0],ul:[...t0,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]}}));function MOt(e,t){let r={type:"root",children:[]};const i=Rje({schema:t?{...r0,...t}:r0,stack:[]},e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function Rje(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return OOt(e,r);case"doctype":return POt(e,r);case"element":return BOt(e,r);case"root":return FOt(e,r);case"text":return $Ot(e,r);default:}}}function OOt(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",i=r.indexOf("-->"),n={type:"comment",value:i<0?r:r.slice(0,i)};return YS(n,t),n}}function POt(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return YS(r,t),r}}function BOt(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const i=Nje(e,t.children),n=zOt(e,t.properties);e.stack.pop();let a=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(a=!0,e.schema.ancestors&&Ff.call(e.schema.ancestors,r))){const o=e.schema.ancestors[r];let l=-1;for(a=!1;++l<o.length;)e.stack.includes(o[l])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(r)?i:void 0;const s={type:"element",tagName:r,properties:n,children:i};return YS(s,t),s}function FOt(e,t){const r={type:"root",children:Nje(e,t.children)};return YS(r,t),r}function $Ot(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return YS(r,t),r}function Nje(e,t){const r=[];if(Array.isArray(t)){const i=t;let n=-1;for(;++n<i.length;){const a=Rje(e,i[n]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function zOt(e,t){const r=e.stack[e.stack.length-1],i=e.schema.attributes,n=e.schema.required,a=i&&Ff.call(i,r)?i[r]:void 0,s=i&&Ff.call(i,"*")?i["*"]:void 0,o=t&&typeof t=="object"?t:{},l={};let u;for(u in o)if(Ff.call(o,u)){const h=o[u];let d=Dje(e,Mje(a,u),u,h);d==null&&(d=Dje(e,Mje(s,u),u,h)),d!=null&&(l[u]=d)}if(n&&Ff.call(n,r)){const h=n[r];for(u in h)Ff.call(h,u)&&!Ff.call(l,u)&&(l[u]=h[u])}return l}function Dje(e,t,r,i){return t?Array.isArray(i)?UOt(e,t,r,i):Ije(e,t,r,i):void 0}function UOt(e,t,r,i){let n=-1;const a=[];for(;++n<i.length;){const s=Ije(e,t,r,i[n]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function Ije(e,t,r,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&HOt(e,r,i)){if(typeof t=="object"&&t.length>1){let n=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(i))){n=!0;break}}else if(s===i){n=!0;break}}if(!n)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+i:i}}function HOt(e,t,r){const i=e.schema.protocols&&Ff.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||i.length===0)return!0;const n=String(r),a=n.indexOf(":"),s=n.indexOf("?"),o=n.indexOf("#"),l=n.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u<i.length;){const h=i[u];if(a===h.length&&n.slice(0,h.length)===h)return!0}return!1}function YS(e,t){const r=wje(t);t.data&&(e.data=Kg(t.data)),r&&(e.position=r)}function Mje(e,t){let r,i=-1;if(e)for(;++i<e.length;){const n=e[i],a=typeof n=="string"?n:n[0];if(a===t)return n;a==="data*"&&(r=n)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}var Ff,VOt=V((()=>{LD(),GS(),Lje(),Ff={}.hasOwnProperty})),Oje=V((()=>{VOt(),Lje()}));function Pje(e){return function(t){return MOt(t,e)}}var qOt=V((()=>{Oje()})),GOt=V((()=>{Oje(),qOt()}));function Bje(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,n=r.indexOf(t);for(;n!==-1;)i++,n=r.indexOf(t,n+t.length);return i}var WOt=V((()=>{}));function YD(e){return e!==null&&(e<32||e===127)}function Br(e){return e!==null&&e<-2}function dn(e){return e!==null&&(e<0||e===32)}function fi(e){return e===-2||e===-1||e===32}function i0(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var Zs,Es,Fje,jD,$je,zje,jS,n0,Li=V((()=>{Zs=i0(/[A-Za-z]/),Es=i0(/[\dA-Za-z]/),Fje=i0(/[#-'*+\--9=?A-Z^-~]/),jD=i0(/\d/),$je=i0(/[\dA-Fa-f]/),zje=i0(/[!-/:-@[-`{-~]/),jS=i0(new RegExp("\\p{P}|\\p{S}","u")),n0=i0(/\s/)}));function YOt(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var jOt=V((()=>{}));function XOt(e,t,r){const i=AS((r||{}).ignore||[]),n=KOt(t);let a=-1;for(;++a<n.length;)Hte(e,"text",s);function s(l,u){let h=-1,d;for(;++h<u.length;){const f=u[h],p=d?d.children:void 0;if(i(f,p?p.indexOf(f):void 0,d))return;d=f}if(d)return o(l,u)}function o(l,u){const h=u[u.length-1],d=n[a][0],f=n[a][1];let p=0;const g=h.children.indexOf(l);let y=!1,b=[];d.lastIndex=0;let T=d.exec(l.value);for(;T;){const w=T.index,x={index:T.index,input:T.input,stack:[...u,l]};let C=f(...T,x);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?d.lastIndex=w+1:(p!==w&&b.push({type:"text",value:l.value.slice(p,w)}),Array.isArray(C)?b.push(...C):C&&b.push(C),p=w+T[0].length,y=!0),!d.global)break;T=d.exec(l.value)}return y?(p<l.value.length&&b.push({type:"text",value:l.value.slice(p)}),h.children.splice(g,1,...b)):b=[l],g+b.length}}function KOt(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const n=r[i];t.push([QOt(n[0]),ZOt(n[1])])}return t}function QOt(e){return typeof e=="string"?new RegExp(YOt(e),"g"):e}function ZOt(e){return typeof e=="function"?e:function(){return e}}var JOt=V((()=>{jOt(),qte(),Ute()})),e9t=V((()=>{JOt()}));function t9t(){return{transforms:[l9t],enter:{literalAutolink:i9t,literalAutolinkEmail:$re,literalAutolinkHttp:$re,literalAutolinkWww:$re},exit:{literalAutolink:o9t,literalAutolinkEmail:s9t,literalAutolinkHttp:n9t,literalAutolinkWww:a9t}}}function r9t(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:XD,notInConstruct:KD},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:XD,notInConstruct:KD},{character:":",before:"[ps]",after:"\\/",inConstruct:XD,notInConstruct:KD}]}}function i9t(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $re(e){this.config.enter.autolinkProtocol.call(this,e)}function n9t(e){this.config.exit.autolinkProtocol.call(this,e)}function a9t(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function s9t(e){this.config.exit.autolinkEmail.call(this,e)}function o9t(e){this.exit(e)}function l9t(e){XOt(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,c9t],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),u9t]],{ignore:["link","linkReference"]})}function c9t(e,t,r,i,n){let a="";if(!Uje(n)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!h9t(r)))return!1;const s=d9t(r+i);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function u9t(e,t,r,i){return!Uje(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function h9t(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function d9t(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const n=Bje(e,"(");let a=Bje(e,")");for(;i!==-1&&n>a;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),a++;return[e,r]}function Uje(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||n0(r)||jS(r))&&(!t||r!==47)}var XD,KD,f9t=V((()=>{WOt(),Mf(),Li(),e9t(),XD="phrasing",KD=["autolink","link","image","label"]})),p9t=V((()=>{f9t()}));function Su(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ay=V((()=>{}));function g9t(){this.buffer()}function m9t(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function y9t(){this.buffer()}function v9t(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function b9t(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Su(this.sliceSerialize(e)).toLowerCase(),r.label=t}function x9t(e){this.exit(e)}function T9t(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Su(this.sliceSerialize(e)).toLowerCase(),r.label=t}function w9t(e){this.exit(e)}function E9t(){return"["}function Hje(e,t,r,i){const n=r.createTracker(i);let a=n.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return a+=n.move(r.safe(r.associationId(e),{after:"]",before:a})),o(),s(),a+=n.move("]"),a}function k9t(){return{enter:{gfmFootnoteCallString:g9t,gfmFootnoteCall:m9t,gfmFootnoteDefinitionLabelString:y9t,gfmFootnoteDefinition:v9t},exit:{gfmFootnoteCallString:b9t,gfmFootnoteCall:x9t,gfmFootnoteDefinitionLabelString:T9t,gfmFootnoteDefinition:w9t}}}function C9t(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Hje},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,n,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),h=a.enter("label");return l+=o.move(a.safe(a.associationId(i),{before:l,after:"]"})),h(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
3319
3319
|
`:" ")+a.indentLines(a.containerFlow(i,o.current()),t?Vje:S9t))),u(),l}}function S9t(e,t,r){return t===0?e:Vje(e,t,r)}function Vje(e,t,r){return(r?"":" ")+e}var _9t=V((()=>{Mf(),Ay(),Hje.peek=E9t})),A9t=V((()=>{_9t()}));function L9t(){return{canContainEols:["delete"],enter:{strikethrough:N9t},exit:{strikethrough:D9t}}}function R9t(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Gje}],handlers:{delete:qje}}}function N9t(e){this.enter({type:"delete",children:[]},e)}function D9t(e){this.exit(e)}function qje(e,t,r,i){const n=r.createTracker(i),a=r.enter("strikethrough");let s=n.move("~~");return s+=r.containerPhrasing(e,{...n.current(),before:s,after:"~"}),s+=n.move("~~"),a(),s}function I9t(){return"~"}var Gje,M9t=V((()=>{Gje=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],qje.peek=I9t})),O9t=V((()=>{M9t()}));function P9t(e){return e.length}function B9t(e,t){const r=t||{},i=(r.align||[]).concat(),n=r.stringLength||P9t,a=[],s=[],o=[],l=[];let u=0,h=-1;for(;++h<e.length;){const y=[],b=[];let T=-1;for(e[h].length>u&&(u=e[h].length);++T<e[h].length;){const w=F9t(e[h][T]);if(r.alignDelimiters!==!1){const x=n(w);b[T]=x,(l[T]===void 0||x>l[T])&&(l[T]=x)}y.push(w)}s[h]=y,o[h]=b}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d<u;)a[d]=Wje(i[d]);else{const y=Wje(i);for(;++d<u;)a[d]=y}d=-1;const f=[],p=[];for(;++d<u;){const y=a[d];let b="",T="";y===99?(b=":",T=":"):y===108?b=":":y===114&&(T=":");let w=r.alignDelimiters===!1?1:Math.max(1,l[d]-b.length-T.length);const x=b+"-".repeat(w)+T;r.alignDelimiters!==!1&&(w=b.length+w+T.length,w>l[d]&&(l[d]=w),p[d]=w),f[d]=x}s.splice(1,0,f),o.splice(1,0,p),h=-1;const g=[];for(;++h<s.length;){const y=s[h],b=o[h];d=-1;const T=[];for(;++d<u;){const w=y[d]||"";let x="",C="";if(r.alignDelimiters!==!1){const L=l[d]-(b[d]||0),_=a[d];_===114?x=" ".repeat(L):_===99?L%2?(x=" ".repeat(L/2+.5),C=" ".repeat(L/2-.5)):(x=" ".repeat(L/2),C=x):C=" ".repeat(L)}r.delimiterStart!==!1&&!d&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&w==="")&&(r.delimiterStart!==!1||d)&&T.push(" "),r.alignDelimiters!==!1&&T.push(x),T.push(w),r.alignDelimiters!==!1&&T.push(C),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||d!==u-1)&&T.push("|")}g.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return g.join(`
|
|
3320
3320
|
`)}function F9t(e){return e==null?"":String(e)}function Wje(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var $9t=V((()=>{}));function z9t(e,t,r,i){const n=r.enter("blockquote"),a=r.createTracker(i);a.move("> "),a.shift(2);const s=r.indentLines(r.containerFlow(e,a.current()),U9t);return n(),s}function U9t(e,t,r){return">"+(r?"":" ")+e}var H9t=V((()=>{}));function V9t(e,t){return Yje(e,t.inConstruct,!0)&&!Yje(e,t.notInConstruct,!1)}function Yje(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}var jje=V((()=>{}));function Xje(e,t,r,i){let n=-1;for(;++n<r.unsafe.length;)if(r.unsafe[n].character===`
|
|
@@ -3469,7 +3469,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error
|
|
|
3469
3469
|
max-width: none !important;
|
|
3470
3470
|
}
|
|
3471
3471
|
}
|
|
3472
|
-
`;function yVt(e){return typeof e=="number"&&!Number.isNaN(e)&&e>=0}function vVt(e,t){const r=document.getElementById(e);if(r instanceof HTMLElement)return t(r),()=>{};const i=document.body??document.documentElement;if(!i)return()=>{};let n=!1;const a=new MutationObserver(()=>{if(n)return;const s=document.getElementById(e);s instanceof HTMLElement&&(n=!0,a.disconnect(),t(s))});return a.observe(i,{childList:!0,subtree:!0}),()=>{n=!0,a.disconnect()}}function bVt(e){const[t,r]=(0,Ne.useState)(e==null);return(typeof window>"u"?Ne.useEffect:Ne.useLayoutEffect)(()=>{let i=!1;const n=()=>{i||r(!0)};if(!e)return r(!0),()=>{i=!0};r(!1);let a=()=>{};switch(e.triggerRuleType){case"time_delay":{if(!yVt(e.timeDelay))return n(),()=>{i=!0};const s=window.setTimeout(n,e.timeDelay*1e3);a=()=>{window.clearTimeout(s)};break}case"scroll_to_bottom":{if(!e.scrollToBottom)return n(),()=>{i=!0};const s=()=>{const o=window.scrollY,l=window.innerHeight,u=document.documentElement.scrollHeight;o+l>=u-1&&n()};s(),window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s),a=()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)};break}case"element_displayed":{if(!e.elementDisplayed)return n(),()=>{i=!0};let s=null;const o=vVt(e.elementDisplayed,l=>{s=new IntersectionObserver(u=>{u.some(h=>h.isIntersecting)&&n()}),s.observe(l)});a=()=>{s?.disconnect(),o()};break}case"element_clicked":{if(!e.elementClicked)return n(),()=>{i=!0};const s=`#${CSS.escape(e.elementClicked)}`,o=l=>{const u=l.target;u instanceof Element&&u.closest(s)&&n()};document.addEventListener("click",o,!0),a=()=>{document.removeEventListener("click",o,!0)};break}default:return n(),()=>{i=!0}}return()=>{i=!0,a()}},[e]),{ready:t||e==null}}var xVt={default:ltt,box:eVt,chatbar:nVt},TVt={facebook_messenger:hVt};function wVt({mode:e,agentId:t,variant:r,preset:i="default",placement:n,appearance:a,agentAvatarUrl:s,widgetTitle:o,spotlights:l,open:u,status:h,messages:d,errorMessage:f,triggerRule:p,emptyAction:g,sendDisabled:y=!1,onOpenChange:b,onSendMessage:T,onStopConversation:w,onConfirmationDecision:x,portalContainer:C,onWidgetVisible:L,onLinkClick:_,onLauncherClick:S}){const{ready:A}=bVt(p),{horizontal:P,vertical:O}=Soe(n),M=(i!=="default"?TVt[i]:void 0)??xVt[r]??ltt,U=EVt(e,n),R=s?.trim()||void 0,F=Ift(d)!=null,I=F||h==="booting"||h==="sending",B=y||F||h==="booting",D=Ne.useRef(!1);return Ne.useEffect(()=>{e!=="embed"||!A||D.current||(D.current=!0,L?.(p?.triggerRuleType??null))},[e,L,A,p]),A?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("style",{children:mVt}),(0,Pe.jsx)("div",{"data-agent-id":t,"data-mode":e,"data-horizontal":P,"data-vertical":O,"data-variant":r,"data-preset":i,"data-open":String(u),"data-status":h,style:U,className:"widget-shell",children:(0,Pe.jsx)("div",{style:{pointerEvents:"auto"},children:(0,Pe.jsx)(M,{agentName:o,agentAvatarUrl:R,appearance:a,spotlightMessages:l,messages:d,status:h,errorMessage:f,emptyAction:g,sendDisabled:B,onSendMessage:T,open:u,onOpenChange:b,onStopConversation:w,stopDisabled:I,onConfirmationDecision:x,onLauncherClick:S,onLinkClick:_,portalContainer:C})})})]}):null}function EVt(e,t){const r={pointerEvents:"none"};if(e==="preview"){const{horizontal:i,vertical:n}=Soe(t);return Object.assign(r,{position:"relative",display:"flex",width:"100%",minHeight:"720px",padding:"24px",overflow:"hidden",alignItems:n==="top"?"flex-start":"flex-end",justifyContent:i==="left"?"flex-start":i==="center"?"center":"flex-end"}),r}switch(Object.assign(r,{position:"fixed",zIndex:2147483646}),t){case"top-left":Object.assign(r,{left:"24px",top:"24px"});break;case"top-center":Object.assign(r,{left:"50%",top:"24px",transform:"translateX(-50%)"});break;case"top-right":Object.assign(r,{right:"24px",top:"24px"});break;case"bottom-left":Object.assign(r,{left:"24px",bottom:"24px"});break;case"bottom-center":Object.assign(r,{left:"50%",bottom:"24px",transform:"translateX(-50%)"});break;default:Object.assign(r,{right:"24px",bottom:"24px"});break}return r}function dtt(e){const t=e?.trim();return t?t.replace(/\/+$/,""):null}function ftt(){const e="https://api.usereq.com",t=globalThis.__USEREQ_WIDGET_API_BASE__;return dtt(e)??dtt(t)??"http://localhost:4000"}async function Gx(e,t){const r=await fetch(new URL(e,`${ftt()}/`).toString(),{...t,headers:{"Content-Type":"application/json",...t.headers??{}},credentials:"omit"}),i=await r.text(),n=i?JSON.parse(i):null;if(!r.ok)throw new Error(typeof n=="object"&&n&&"error"in n?String(n.error??r.statusText):r.statusText);return n}async function kVt(e){return Gx("/api/widget/sessions",{method:"POST",body:JSON.stringify(e)})}async function CVt(e){return Gx("/api/conversations/public/start",{method:"POST",headers:{Authorization:`Bearer ${e.sessionToken}`},body:JSON.stringify({agentId:e.agentId})})}async function SVt(e){return Gx(`/api/conversations/public/${encodeURIComponent(e.conversationId)}/messages`,{method:"POST",headers:{Authorization:`Bearer ${e.sessionToken}`},body:JSON.stringify({content:e.content})})}async function _Vt(e){return Gx(`/api/conversations/public/${encodeURIComponent(e.conversationId)}/messages`,{method:"POST",headers:{Authorization:`Bearer ${e.sessionToken}`},body:JSON.stringify({content:e.content})})}async function AVt(e){return Gx("/api/conversations/public/current",{method:"GET",headers:{Authorization:`Bearer ${e}`}})}async function LVt(e){const t=new URLSearchParams;return e.cursor&&t.set("cursor",e.cursor),Gx(`/api/conversations/public/${encodeURIComponent(e.conversationId)}/messages?${t.toString()}`,{method:"GET",headers:{Authorization:`Bearer ${e.sessionToken}`}})}function pae(e){return`usereq-widget:${e}`}function RVt(e){try{const t=sessionStorage.getItem(pae(e));if(!t)return null;const r=JSON.parse(t);return!r?.sessionToken||!r?.expiresAt||!r?.widgetConfig?.agentId||!r?.widgetConfig?.name?null:r}catch{return null}}function KI(e,t){sessionStorage.setItem(pae(e),JSON.stringify(t))}function NVt(e){sessionStorage.removeItem(pae(e))}function QI(e){return[...e].sort((t,r)=>new Date(t.createdAt).getTime()-new Date(r.createdAt).getTime())}var ptt={loadSession:RVt,saveSession:KI,mintWidgetSession:kVt,getCurrentConversation:AVt,listConversationMessages:LVt,getOrigin:()=>window.location.origin,now:()=>Date.now()};function DVt(e,t=Date.now()){if(!e)return!1;const r=new Date(e.expiresAt).getTime();return Number.isFinite(r)&&r>t}async function ZI(e,t=ptt,r){const i=t.loadSession(e.agentId),n=DVt(i,t.now());if(n&&!r?.refreshWidgetConfig)return i;if(n&&r?.refreshWidgetConfig)try{const o=await t.mintWidgetSession({agentId:e.agentId,origin:t.getOrigin(),pageUrl:e.pageUrl,referrer:e.referrer}),l={...i,widgetConfig:o.widgetConfig};return t.saveSession(e.agentId,l),l}catch{return i}const a=await t.mintWidgetSession({agentId:e.agentId,origin:t.getOrigin(),pageUrl:e.pageUrl,referrer:e.referrer}),s={sessionToken:a.sessionToken,expiresAt:a.expiresAt,widgetConfig:a.widgetConfig};return t.saveSession(e.agentId,s),s}async function IVt(e,t){const r=await ZI(e,t,{refreshWidgetConfig:!0});let i=r.conversationId,n=[];if(i)try{n=QI((await t.listConversationMessages({conversationId:i,sessionToken:r.sessionToken})).data)}catch{i=void 0,n=[]}else try{i=(await t.getCurrentConversation(r.sessionToken)).conversation?.id??void 0,i&&(n=QI((await t.listConversationMessages({conversationId:i,sessionToken:r.sessionToken})).data))}catch{i=void 0,n=[]}const a={...r,conversationId:i};return t.saveSession(e.agentId,a),{session:a,conversationId:i,messages:n}}async function MVt(e){return IVt(e,ptt)}async function OVt(e){const t=await ZI({agentId:e.agentId,pageUrl:window.location.href,referrer:document.referrer||void 0});if(!t.conversationId)throw new Error("Widget conversation not started");const r=await SVt({conversationId:t.conversationId,sessionToken:t.sessionToken,content:e.content}),i={...t,conversationId:t.conversationId};return KI(e.agentId,i),{session:i,conversationId:t.conversationId,messages:QI([r.userMessage,...r.assistantMessages]),userMessage:r.userMessage,assistantMessages:r.assistantMessages}}async function gtt(e){const t=await ZI({agentId:e.agentId,pageUrl:window.location.href,referrer:document.referrer||void 0});if(!t.conversationId)throw new Error("Widget conversation not started");const r=e.decision!=null?Dft({confirmationId:e.confirmationId,decision:e.decision}):Nft({confirmationId:e.confirmationId,prompt:e.prompt}),i=await _Vt({conversationId:t.conversationId,sessionToken:t.sessionToken,content:r}),n={...t,conversationId:t.conversationId};return KI(e.agentId,n),{session:n,conversationId:t.conversationId,confirmationMessage:i.confirmationMessage}}async function PVt(e){const t=await ZI({agentId:e.agentId,pageUrl:window.location.href,referrer:document.referrer||void 0}),r=await CVt({agentId:e.agentId,sessionToken:t.sessionToken}),i={...t,conversationId:r.conversation.id};return KI(e.agentId,i),{session:i,conversationId:r.conversation.id,messages:QI([r.welcomeMessage]),welcomeMessage:r.welcomeMessage}}async function BVt(e){NVt(e)}var FVt="/api/widget/events/batch",$Vt=10,zVt=2500,gae=12e4,mtt=200,UVt=5,HVt=600*1e3,ytt="usereq-widget:unique-script-loaded:";function VVt(e){if(!e)return;const t=e.trim();if(!t)return;const r=Number(t);if(Number.isFinite(r)&&r>=0)return Math.min(gae,r*1e3);const i=Date.parse(t);if(!Number.isNaN(i)){const n=i-Date.now();if(n>0)return Math.min(gae,n)}}function qVt(e){if(e.ok)return{outcome:"ok"};const t=e.status;return t===408||t===425||t===429||t>=500?{outcome:"retry",retryAfterMs:VVt(e.headers.get("retry-after"))}:t>=400&&t<500?{outcome:"drop"}:{outcome:"retry"}}var GVt=class{mode;agentId;getSession;getConversationId;batchSize;flushIntervalMs;uniqueScriptSeen=new Set;flushTimer=null;queue=[];disposed=!1;consecutiveFailures=0;nextAllowedFlushAt=0;constructor(e){this.mode=e.mode,this.agentId=e.agentId,this.getSession=e.getSession,this.getConversationId=e.getConversationId,this.batchSize=Math.max(1,e.batchSize??$Vt),this.flushIntervalMs=Math.max(200,e.flushIntervalMs??zVt),this.mode==="embed"&&(window.addEventListener("pagehide",this.handlePageHide,{capture:!0}),document.addEventListener("visibilitychange",this.handleVisibilityChange,!0))}dispose(){this.disposed||(this.disposed=!0,this.clearFlushTimer(),window.removeEventListener("pagehide",this.handlePageHide,!0),document.removeEventListener("visibilitychange",this.handleVisibilityChange,!0),this.flush({transport:"beacon"}))}trackScriptLoaded(){this.track({eventType:"SCRIPT_LOADED"})}trackUniqueScriptLoaded(){const e=this.getSession()?.sessionToken?.trim();if(!e)return;const t=`${this.agentId}:${e}`;if(!this.uniqueScriptSeen.has(t)){if(this.hasSessionUniqueScriptLoaded(t)){this.uniqueScriptSeen.add(t);return}this.uniqueScriptSeen.add(t),this.setSessionUniqueScriptLoaded(t),this.track({eventType:"UNIQUE_SCRIPT_LOADED"})}}trackView(e){this.track({eventType:"VIEW",triggerRuleType:e}),e==="element_displayed"&&this.track({eventType:"DISPLAY_AFTER_ELEMENT_SHOWED",triggerRuleType:e})}trackClick(){this.track({eventType:"CLICK"})}trackLinkClicked(e){const t=e.trim();if(!t)return;const r=this.normalizeLinkUrl(t);this.track({eventType:"LINK_CLICKED",linkUrl:r})}track(e){if(this.disposed||this.mode!=="embed")return;const t=this.getSession()?.sessionToken?.trim();if(!t)return;const{occurredAt:r,conversationId:i,triggerRuleType:n,linkUrl:a,...s}=e,o=i??this.getConversationId(),l={...s,occurredAt:r??new Date().toISOString(),...o?{conversationId:o}:{},...n?{triggerRuleType:n}:{},...a?{linkUrl:a}:{}};if(this.enqueue({event:l,sessionToken:t,attempts:0,enqueuedAt:Date.now()}),this.queue.length>=this.batchSize){this.flush();return}this.scheduleFlush()}enqueue(e){this.queue.push(e),this.queue.length>mtt&&this.queue.splice(0,this.queue.length-mtt)}pruneStale(e){this.queue.length!==0&&(this.queue=this.queue.filter(t=>e-t.enqueuedAt<HVt))}async flush(e){if(this.disposed)return;const t=Date.now();if(this.pruneStale(t),this.queue.length===0){this.clearFlushTimer();return}this.clearFlushTimer();const r=e?.transport??"default",i=this.queue;this.queue=[];const n=new Map;for(const u of i){const h=n.get(u.sessionToken);h?h.push(u):n.set(u.sessionToken,[u])}const a=[];let s=0,o=!1,l=!1;for(const[u,h]of n.entries()){const d=await this.sendBatch({events:h.map(f=>f.event),sessionToken:u,transport:r});if(d.outcome==="ok"){l=!0;continue}if(d.outcome!=="drop"){o=!0,d.retryAfterMs&&d.retryAfterMs>s&&(s=d.retryAfterMs);for(const f of h){const p=f.attempts+1;p>=UVt||a.push({...f,attempts:p})}}}if(l&&!o?(this.consecutiveFailures=0,this.nextAllowedFlushAt=0):o&&(this.consecutiveFailures+=1),a.length>0){for(const d of a)this.enqueue(d);const u=this.computeBackoffDelay(),h=Math.max(u,s);this.nextAllowedFlushAt=Date.now()+h,this.scheduleFlush(h)}}computeBackoffDelay(){const e=Math.max(0,this.consecutiveFailures-1),t=this.flushIntervalMs*Math.pow(2,e),r=t*.2*Math.random();return Math.min(gae,t+r)}async sendBatch(e){if(e.events.length===0)return{outcome:"ok"};const t=new URL(FVt,`${ftt()}/`).toString(),r={events:e.events.map(i=>{const{conversationId:n,triggerRuleType:a,linkUrl:s,...o}=i;return{...o,...n?{conversationId:n}:{},...a?{triggerRuleType:a}:{},...s?{linkUrl:s}:{}}}),pageUrl:window.location.href,referrer:document.referrer||void 0,sessionToken:e.sessionToken};if(e.transport==="beacon"&&typeof navigator.sendBeacon=="function"){const i=new Blob([JSON.stringify(r)],{type:"application/json"});if(navigator.sendBeacon(t,i))return{outcome:"ok"}}try{return qVt(await fetch(t,{method:"POST",headers:{Authorization:`Bearer ${e.sessionToken}`,"Content-Type":"application/json"},body:JSON.stringify(r),credentials:"omit",keepalive:e.transport==="beacon"}))}catch{return{outcome:"retry"}}}scheduleFlush(e){if(this.flushTimer!=null)return;const t=Math.max(0,e??this.flushIntervalMs);this.flushTimer=window.setTimeout(()=>{this.flushTimer=null,this.flush()},t)}clearFlushTimer(){this.flushTimer!=null&&(window.clearTimeout(this.flushTimer),this.flushTimer=null)}hasSessionUniqueScriptLoaded(e){try{return sessionStorage.getItem(`${ytt}${e}`)==="1"}catch{return!1}}setSessionUniqueScriptLoaded(e){try{sessionStorage.setItem(`${ytt}${e}`,"1")}catch{}}handlePageHide=()=>{this.flush({transport:"beacon"})};handleVisibilityChange=()=>{document.visibilityState==="hidden"&&this.flush({transport:"beacon"})};normalizeLinkUrl(e){try{return new URL(e,window.location.href).toString()}catch{return e}}};function WVt(e){return new GVt(e)}var YVt=`
|
|
3472
|
+
`;function yVt(e){return typeof e=="number"&&!Number.isNaN(e)&&e>=0}function vVt(e,t){const r=document.getElementById(e);if(r instanceof HTMLElement)return t(r),()=>{};const i=document.body??document.documentElement;if(!i)return()=>{};let n=!1;const a=new MutationObserver(()=>{if(n)return;const s=document.getElementById(e);s instanceof HTMLElement&&(n=!0,a.disconnect(),t(s))});return a.observe(i,{childList:!0,subtree:!0}),()=>{n=!0,a.disconnect()}}function bVt(e){const[t,r]=(0,Ne.useState)(e==null);return(typeof window>"u"?Ne.useEffect:Ne.useLayoutEffect)(()=>{let i=!1;const n=()=>{i||r(!0)};if(!e)return r(!0),()=>{i=!0};r(!1);let a=()=>{};switch(e.triggerRuleType){case"time_delay":{if(!yVt(e.timeDelay))return n(),()=>{i=!0};const s=window.setTimeout(n,e.timeDelay*1e3);a=()=>{window.clearTimeout(s)};break}case"scroll_to_bottom":{if(!e.scrollToBottom)return n(),()=>{i=!0};const s=()=>{const o=window.scrollY,l=window.innerHeight,u=document.documentElement.scrollHeight;o+l>=u-1&&n()};s(),window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s),a=()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)};break}case"element_displayed":{if(!e.elementDisplayed)return n(),()=>{i=!0};let s=null;const o=vVt(e.elementDisplayed,l=>{s=new IntersectionObserver(u=>{u.some(h=>h.isIntersecting)&&n()}),s.observe(l)});a=()=>{s?.disconnect(),o()};break}case"element_clicked":{if(!e.elementClicked)return n(),()=>{i=!0};const s=`#${CSS.escape(e.elementClicked)}`,o=l=>{const u=l.target;u instanceof Element&&u.closest(s)&&n()};document.addEventListener("click",o,!0),a=()=>{document.removeEventListener("click",o,!0)};break}default:return n(),()=>{i=!0}}return()=>{i=!0,a()}},[e]),{ready:t||e==null}}var xVt={default:ltt,box:eVt,chatbar:nVt},TVt={facebook_messenger:hVt};function wVt({mode:e,agentId:t,variant:r,preset:i="default",placement:n,appearance:a,agentAvatarUrl:s,widgetTitle:o,spotlights:l,open:u,status:h,messages:d,errorMessage:f,triggerRule:p,emptyAction:g,sendDisabled:y=!1,onOpenChange:b,onSendMessage:T,onStopConversation:w,onConfirmationDecision:x,portalContainer:C,onWidgetVisible:L,onLinkClick:_,onLauncherClick:S}){const{ready:A}=bVt(p),{horizontal:P,vertical:O}=Soe(n),M=(i!=="default"?TVt[i]:void 0)??xVt[r]??ltt,U=EVt(e,n),R=s?.trim()||void 0,F=Ift(d)!=null,I=F||h==="booting"||h==="sending",B=y||F||h==="booting",D=Ne.useRef(!1);return Ne.useEffect(()=>{e!=="embed"||!A||D.current||(D.current=!0,L?.(p?.triggerRuleType??null))},[e,L,A,p]),A?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("style",{children:mVt}),(0,Pe.jsx)("div",{"data-agent-id":t,"data-mode":e,"data-horizontal":P,"data-vertical":O,"data-variant":r,"data-preset":i,"data-open":String(u),"data-status":h,style:U,className:"widget-shell",children:(0,Pe.jsx)("div",{style:{pointerEvents:"auto"},children:(0,Pe.jsx)(M,{agentName:o,agentAvatarUrl:R,appearance:a,spotlightMessages:l,messages:d,status:h,errorMessage:f,emptyAction:g,sendDisabled:B,onSendMessage:T,open:u,onOpenChange:b,onStopConversation:w,stopDisabled:I,onConfirmationDecision:x,onLauncherClick:S,onLinkClick:_,portalContainer:C})})})]}):null}function EVt(e,t){const r={pointerEvents:"none"};if(e==="preview"){const{horizontal:i,vertical:n}=Soe(t);return Object.assign(r,{position:"relative",display:"flex",width:"100%",minHeight:"720px",padding:"24px",overflow:"hidden",alignItems:n==="top"?"flex-start":"flex-end",justifyContent:i==="left"?"flex-start":i==="center"?"center":"flex-end"}),r}switch(Object.assign(r,{position:"fixed",zIndex:2147483646}),t){case"top-left":Object.assign(r,{left:"24px",top:"24px"});break;case"top-center":Object.assign(r,{left:"50%",top:"24px",transform:"translateX(-50%)"});break;case"top-right":Object.assign(r,{right:"24px",top:"24px"});break;case"bottom-left":Object.assign(r,{left:"24px",bottom:"24px"});break;case"bottom-center":Object.assign(r,{left:"50%",bottom:"24px",transform:"translateX(-50%)"});break;default:Object.assign(r,{right:"24px",bottom:"24px"});break}return r}function dtt(e){const t=e?.trim();return t?t.replace(/\/+$/,""):null}function ftt(){const e="https://api.usereq.com",t=globalThis.__USEREQ_WIDGET_API_BASE__;return dtt(e)??dtt(t)??"http://localhost:4000"}async function Gx(e,t){const r=await fetch(new URL(e,`${ftt()}/`).toString(),{...t,headers:{"Content-Type":"application/json",...t.headers??{}},credentials:"omit"}),i=await r.text(),n=i?JSON.parse(i):null;if(!r.ok)throw new Error(typeof n=="object"&&n&&"error"in n?String(n.error??r.statusText):r.statusText);return n}async function kVt(e){return Gx("/api/widget/sessions",{method:"POST",body:JSON.stringify(e)})}async function CVt(e){return Gx("/api/conversations/public/start",{method:"POST",headers:{Authorization:`Bearer ${e.sessionToken}`},body:JSON.stringify({agentId:e.agentId})})}async function SVt(e){return Gx(`/api/conversations/public/${encodeURIComponent(e.conversationId)}/messages`,{method:"POST",headers:{Authorization:`Bearer ${e.sessionToken}`},body:JSON.stringify({content:e.content})})}async function _Vt(e){return Gx(`/api/conversations/public/${encodeURIComponent(e.conversationId)}/messages`,{method:"POST",headers:{Authorization:`Bearer ${e.sessionToken}`},body:JSON.stringify({content:e.content})})}async function AVt(e){return Gx("/api/conversations/public/current",{method:"GET",headers:{Authorization:`Bearer ${e}`}})}async function LVt(e){const t=new URLSearchParams;return e.cursor&&t.set("cursor",e.cursor),Gx(`/api/conversations/public/${encodeURIComponent(e.conversationId)}/messages?${t.toString()}`,{method:"GET",headers:{Authorization:`Bearer ${e.sessionToken}`}})}function pae(e){return`usereq-widget:${e}`}function RVt(e){try{const t=sessionStorage.getItem(pae(e));if(!t)return null;const r=JSON.parse(t);return!r?.sessionToken||!r?.expiresAt||!r?.widgetConfig?.agentId||!r?.widgetConfig?.name?null:r}catch{return null}}function KI(e,t){sessionStorage.setItem(pae(e),JSON.stringify(t))}function NVt(e){sessionStorage.removeItem(pae(e))}function QI(e){return[...e].sort((t,r)=>new Date(t.createdAt).getTime()-new Date(r.createdAt).getTime())}var ptt={loadSession:RVt,saveSession:KI,mintWidgetSession:kVt,getCurrentConversation:AVt,listConversationMessages:LVt,getOrigin:()=>window.location.origin,now:()=>Date.now()};function DVt(e,t=Date.now()){if(!e)return!1;const r=new Date(e.expiresAt).getTime();return Number.isFinite(r)&&r>t}async function ZI(e,t=ptt,r){const i=t.loadSession(e.agentId),n=DVt(i,t.now());if(n&&!r?.refreshWidgetConfig)return i;if(n&&r?.refreshWidgetConfig)try{const o=await t.mintWidgetSession({agentId:e.agentId,origin:t.getOrigin(),pageUrl:e.pageUrl,referrer:e.referrer}),l={...i,widgetConfig:o.widgetConfig};return t.saveSession(e.agentId,l),l}catch{return i}const a=await t.mintWidgetSession({agentId:e.agentId,origin:t.getOrigin(),pageUrl:e.pageUrl,referrer:e.referrer}),s={sessionToken:a.sessionToken,expiresAt:a.expiresAt,widgetConfig:a.widgetConfig};return t.saveSession(e.agentId,s),s}async function IVt(e,t){const r=await ZI(e,t,{refreshWidgetConfig:!0});let i=r.conversationId,n=[];if(i)try{n=QI((await t.listConversationMessages({conversationId:i,sessionToken:r.sessionToken})).data)}catch{i=void 0,n=[]}else try{i=(await t.getCurrentConversation(r.sessionToken)).conversation?.id??void 0,i&&(n=QI((await t.listConversationMessages({conversationId:i,sessionToken:r.sessionToken})).data))}catch{i=void 0,n=[]}const a={...r,conversationId:i};return t.saveSession(e.agentId,a),{session:a,conversationId:i,messages:n}}async function MVt(e){return IVt(e,ptt)}async function OVt(e){const t=await ZI({agentId:e.agentId,pageUrl:window.location.href,referrer:document.referrer||void 0});if(!t.conversationId)throw new Error("Widget conversation not started");const r=await SVt({conversationId:t.conversationId,sessionToken:t.sessionToken,content:e.content}),i={...t,conversationId:t.conversationId};return KI(e.agentId,i),{session:i,conversationId:t.conversationId,messages:QI([r.userMessage,...r.assistantMessages]),userMessage:r.userMessage,assistantMessages:r.assistantMessages}}async function gtt(e){const t=await ZI({agentId:e.agentId,pageUrl:window.location.href,referrer:document.referrer||void 0});if(!t.conversationId)throw new Error("Widget conversation not started");const r=e.decision!=null?Dft({confirmationId:e.confirmationId,decision:e.decision}):Nft({confirmationId:e.confirmationId,prompt:e.prompt}),i=await _Vt({conversationId:t.conversationId,sessionToken:t.sessionToken,content:r}),n={...t,conversationId:t.conversationId};return KI(e.agentId,n),{session:n,conversationId:t.conversationId,confirmationMessage:i.confirmationMessage}}async function PVt(e){const t=await ZI({agentId:e.agentId,pageUrl:window.location.href,referrer:document.referrer||void 0}),r=await CVt({agentId:e.agentId,sessionToken:t.sessionToken}),i={...t,conversationId:r.conversation.id};return KI(e.agentId,i),{session:i,conversationId:r.conversation.id,messages:QI([r.welcomeMessage]),welcomeMessage:r.welcomeMessage}}async function BVt(e){NVt(e)}var FVt="/api/widget/events/batch",$Vt=10,zVt=2500,gae=12e4,mtt=200,UVt=600*1e3,ytt="usereq-widget:unique-script-loaded:";function HVt(e){if(!e)return;const t=e.trim();if(!t)return;const r=Number(t);if(Number.isFinite(r)&&r>=0)return Math.min(gae,r*1e3);const i=Date.parse(t);if(!Number.isNaN(i)){const n=i-Date.now();if(n>0)return Math.min(gae,n)}}function VVt(e){if(e.ok)return{outcome:"ok"};const t=e.status;return t===408||t===425||t===429||t>=500?{outcome:"retry",retryAfterMs:HVt(e.headers.get("retry-after"))}:t>=400&&t<500?{outcome:"drop"}:{outcome:"retry"}}var qVt=class{mode;agentId;getSession;getConversationId;batchSize;flushIntervalMs;uniqueScriptSeen=new Set;flushTimer=null;queue=[];disposed=!1;consecutiveFailures=0;nextAllowedFlushAt=0;constructor(e){this.mode=e.mode,this.agentId=e.agentId,this.getSession=e.getSession,this.getConversationId=e.getConversationId,this.batchSize=Math.max(1,e.batchSize??$Vt),this.flushIntervalMs=Math.max(200,e.flushIntervalMs??zVt)}dispose(){this.disposed||(this.disposed=!0,this.clearFlushTimer())}trackScriptLoaded(){this.track({eventType:"SCRIPT_LOADED"})}trackUniqueScriptLoaded(){}trackView(e){this.track({eventType:"VIEW",triggerRuleType:e}),e==="element_displayed"&&this.track({eventType:"DISPLAY_AFTER_ELEMENT_SHOWED",triggerRuleType:e})}trackClick(){this.track({eventType:"CLICK"})}trackLinkClicked(e){const t=e.trim();if(!t)return;const r=this.normalizeLinkUrl(t);this.track({eventType:"LINK_CLICKED",linkUrl:r})}track(e){}enqueue(e){this.queue.push(e),this.queue.length>mtt&&this.queue.splice(0,this.queue.length-mtt)}pruneStale(e){this.queue.length!==0&&(this.queue=this.queue.filter(t=>e-t.enqueuedAt<UVt))}async flush(e){}computeBackoffDelay(){const e=Math.max(0,this.consecutiveFailures-1),t=this.flushIntervalMs*Math.pow(2,e),r=t*.2*Math.random();return Math.min(gae,t+r)}async sendBatch(e){if(e.events.length===0)return{outcome:"ok"};const t=new URL(FVt,`${ftt()}/`).toString(),r={events:e.events.map(i=>{const{conversationId:n,triggerRuleType:a,linkUrl:s,...o}=i;return{...o,...n?{conversationId:n}:{},...a?{triggerRuleType:a}:{},...s?{linkUrl:s}:{}}}),pageUrl:window.location.href,referrer:document.referrer||void 0,sessionToken:e.sessionToken};if(e.transport==="beacon"&&typeof navigator.sendBeacon=="function"){const i=new Blob([JSON.stringify(r)],{type:"application/json"});if(navigator.sendBeacon(t,i))return{outcome:"ok"}}try{return VVt(await fetch(t,{method:"POST",headers:{Authorization:`Bearer ${e.sessionToken}`,"Content-Type":"application/json"},body:JSON.stringify(r),credentials:"omit",keepalive:e.transport==="beacon"}))}catch{return{outcome:"retry"}}}scheduleFlush(e){if(this.flushTimer!=null)return;const t=Math.max(0,e??this.flushIntervalMs);this.flushTimer=window.setTimeout(()=>{this.flushTimer=null,this.flush()},t)}clearFlushTimer(){this.flushTimer!=null&&(window.clearTimeout(this.flushTimer),this.flushTimer=null)}hasSessionUniqueScriptLoaded(e){try{return sessionStorage.getItem(`${ytt}${e}`)==="1"}catch{return!1}}setSessionUniqueScriptLoaded(e){try{sessionStorage.setItem(`${ytt}${e}`,"1")}catch{}}handlePageHide=()=>{this.flush({transport:"beacon"})};handleVisibilityChange=()=>{document.visibilityState==="hidden"&&this.flush({transport:"beacon"})};normalizeLinkUrl(e){try{return new URL(e,window.location.href).toString()}catch{return e}}};function GVt(e){return new qVt(e)}var WVt=`
|
|
3473
3473
|
:host {
|
|
3474
3474
|
color-scheme: light;
|
|
3475
3475
|
--tw-border-style: solid;
|
|
@@ -3553,8 +3553,8 @@ Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error
|
|
|
3553
3553
|
--radius-4xl: calc(var(--radius) + 16px);
|
|
3554
3554
|
--spacing-header: 3rem;
|
|
3555
3555
|
}
|
|
3556
|
-
`,
|
|
3557
|
-
${
|
|
3556
|
+
`,YVt=class extends HTMLElement{static observedAttributes=["agent-id","mode","variant","preset","placement","avatar-orb-color-1","avatar-orb-color-2","action-text"];shadowRootRef;hostStyleElement;shadowStyleElement;mountElement;root;agentId="";mode="embed";variant=null;preset=null;placement=null;appearanceAttributes={};open=!1;status="idle";sessionConfig=null;sessionState=null;messages=[];widgetTitle="Assistant";welcomeMessage=null;errorMessage=null;bootstrapPromise=null;bootstrapVersion=0;sendVersion=0;confirmationVersion=0;bootstrapPhase="idle";analyticsTrackerKey="";analyticsTracker=null;constructor(){super(),this.shadowRootRef=this.attachShadow({mode:"open"}),this.hostStyleElement=document.createElement("style"),this.hostStyleElement.textContent=`
|
|
3557
|
+
${WVt}
|
|
3558
3558
|
|
|
3559
3559
|
:host {
|
|
3560
3560
|
display: block;
|
|
@@ -3566,4 +3566,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error
|
|
|
3566
3566
|
position: relative;
|
|
3567
3567
|
min-height: 720px;
|
|
3568
3568
|
}
|
|
3569
|
-
`,this.shadowStyleElement=document.createElement("style"),this.shadowStyleElement.textContent=uat()??"",this.mountElement=document.createElement("div"),this.mountElement.style.display="block",this.mountElement.style.width="100%",this.mountElement.style.height="100%",this.shadowRootRef.append(this.hostStyleElement,this.shadowStyleElement,this.mountElement),this.root=(0,yat.createRoot)(this.mountElement)}connectedCallback(){this.syncAttributes(),this.recreateAnalyticsTracker(),this.renderWidget(),this.agentId&&this.ensureBootstrap()}disconnectedCallback(){this.bootstrapPromise=null,this.analyticsTracker?.dispose(),this.analyticsTracker=null,this.analyticsTrackerKey="",this.root.unmount()}attributeChangedCallback(e,t,r){this.syncAttributes(),this.recreateAnalyticsTracker(),e==="agent-id"&&t!==r&&this.clearAgentState(),this.renderWidget(),e==="agent-id"&&this.agentId&&this.ensureBootstrap()}syncAttributes(){this.agentId=this.getAttribute("agent-id")?.trim()??"",this.mode=
|
|
3569
|
+
`,this.shadowStyleElement=document.createElement("style"),this.shadowStyleElement.textContent=uat()??"",this.mountElement=document.createElement("div"),this.mountElement.style.display="block",this.mountElement.style.width="100%",this.mountElement.style.height="100%",this.shadowRootRef.append(this.hostStyleElement,this.shadowStyleElement,this.mountElement),this.root=(0,yat.createRoot)(this.mountElement)}connectedCallback(){this.syncAttributes(),this.recreateAnalyticsTracker(),this.renderWidget(),this.agentId&&this.ensureBootstrap()}disconnectedCallback(){this.bootstrapPromise=null,this.analyticsTracker?.dispose(),this.analyticsTracker=null,this.analyticsTrackerKey="",this.root.unmount()}attributeChangedCallback(e,t,r){this.syncAttributes(),this.recreateAnalyticsTracker(),e==="agent-id"&&t!==r&&this.clearAgentState(),this.renderWidget(),e==="agent-id"&&this.agentId&&this.ensureBootstrap()}syncAttributes(){this.agentId=this.getAttribute("agent-id")?.trim()??"",this.mode=XVt(this.getAttribute("mode")),this.variant=this.getAttribute("variant"),this.preset=this.getAttribute("preset"),this.placement=this.getAttribute("placement"),this.appearanceAttributes=jVt(this)}getResolvedPlacement(){return Rat(this.placement??this.sessionConfig?.widgetConfig.widgetPlacement??"bottom-right")}getResolvedVariant(){return Lat(this.variant??this.sessionConfig?.widgetConfig.widgetVariant??"chatbar")}getResolvedPreset(){return Aat(this.preset??this.sessionConfig?.widgetConfig.widgetPreset??"default")}getResolvedAppearance(){const e=this.sessionConfig?.widgetConfig.widgetAppearance??Sat;return{avatarOrbColor1:this.appearanceAttributes.avatarOrbColor1?.trim()||e.avatarOrbColor1,avatarOrbColor2:this.appearanceAttributes.avatarOrbColor2?.trim()||e.avatarOrbColor2,actionText:this.appearanceAttributes.actionText?.trim()||e.actionText}}getWidgetTitle(){return this.sessionConfig?.widgetConfig.name??this.widgetTitle}getAgentAvatarUrl(){return this.sessionConfig?.widgetConfig.agentAvatarUrl??null}getWelcomeMessage(){return this.sessionConfig?.widgetConfig.welcomeMessage??this.welcomeMessage}getSpotlights(){return this.sessionConfig?.widgetConfig.spotlightMessages??[]}clearAgentState(){this.sendVersion+=1,this.confirmationVersion+=1,this.bootstrapVersion+=1,this.bootstrapPhase="idle",this.bootstrapPromise=null,this.sessionConfig=null,this.sessionState=null,this.messages=[],this.widgetTitle="Assistant",this.welcomeMessage=null,this.errorMessage=null,this.status="idle"}recreateAnalyticsTracker(){const e=`${this.mode}:${this.agentId}`;e!==this.analyticsTrackerKey&&(this.analyticsTracker?.dispose(),this.analyticsTracker=GVt({mode:this.mode,agentId:this.agentId,getSession:()=>this.sessionState,getConversationId:()=>this.sessionState?.conversationId}),this.analyticsTrackerKey=e)}renderWidget(){if(this.bootstrapPhase!=="ready"||this.sessionConfig==null||this.sessionState==null){this.root.render(null);return}const e=this.getResolvedAppearance(),t=this.getResolvedPlacement(),r=this.getResolvedVariant(),i=this.getResolvedPreset(),n=this.status==="booting"||this.sessionState!=null&&!this.sessionState.conversationId?{label:Tat,onClick:()=>{this.handleStartConversation()},disabled:this.status!=="ready"}:void 0;this.root.render(Ne.createElement(wVt,{key:`${this.agentId}:${_at(this.sessionConfig?.widgetConfig.triggerRule)}`,mode:this.mode,agentId:this.agentId,variant:r,preset:i,placement:t,appearance:e,agentAvatarUrl:this.getAgentAvatarUrl(),widgetTitle:this.getWidgetTitle(),welcomeMessage:this.getWelcomeMessage(),spotlights:this.getSpotlights(),open:this.open,status:this.status,messages:this.messages,errorMessage:this.errorMessage,triggerRule:this.sessionConfig?.widgetConfig.triggerRule??null,emptyAction:n,onStopConversation:this.sessionState?.conversationId!=null?()=>{this.handleStopConversation()}:void 0,sendDisabled:this.status==="sending"||!this.sessionState?.conversationId,onOpenChange:a=>{this.handleOpenChange(a)},onSendMessage:a=>{this.sendMessage(a)},onConfirmationDecision:(a,s)=>{this.handleConfirmationDecision(a,s)},onWidgetVisible:a=>this.analyticsTracker?.trackView(a),onLinkClick:a=>this.analyticsTracker?.trackLinkClicked(a),portalContainer:this.shadowRootRef}))}async ensureBootstrap(){if(this.bootstrapPromise)return this.bootstrapPromise;const e=++this.bootstrapVersion;return this.bootstrapPromise=(async()=>{if(!this.agentId){this.status="error",this.errorMessage="Missing agent id",this.renderWidget();return}this.bootstrapPhase="booting",this.status="booting",this.errorMessage=null,this.renderWidget();try{const t=await MVt({agentId:this.agentId,pageUrl:window.location.href,referrer:document.referrer||void 0});if(e!==this.bootstrapVersion)return;this.sessionConfig={sessionToken:t.session.sessionToken,expiresAt:t.session.expiresAt,widgetConfig:t.session.widgetConfig},this.sessionState=t.session,this.messages=t.messages,this.widgetTitle=t.session.widgetConfig.name,this.welcomeMessage=t.session.widgetConfig.welcomeMessage,this.status="ready",this.bootstrapPhase="ready",this.mode==="embed"&&(this.analyticsTracker?.trackScriptLoaded(),this.analyticsTracker?.trackUniqueScriptLoaded()),this.renderWidget()}catch(t){if(e!==this.bootstrapVersion)return;this.status="error",this.bootstrapPhase="blocked",this.errorMessage=t instanceof Error?t.message:"Failed to start widget",this.renderWidget()}})().finally(()=>{e===this.bootstrapVersion&&(this.bootstrapPromise=null)}),this.bootstrapPromise}async sendMessage(e){const t=e.trim();if(!t||!this.sessionState?.conversationId)return;const r=++this.sendVersion,i=`optimistic:${Date.now()}`,n={id:i,conversationId:this.sessionState.conversationId,role:"user",content:t,createdAt:new Date().toISOString()};this.status="sending",this.errorMessage=null,this.messages=[...this.messages,n],this.renderWidget();try{const a=await OVt({agentId:this.agentId,content:t});if(r!==this.sendVersion)return;this.sessionState=a.session;const s=UHt(a.assistantMessages.map(o=>({id:o.id,content:o.content,createdAt:o.createdAt})),{initialDelayMs:0,typingHoldMs:1260,interMessageDelayMs:1520,interMessageDelayJitterMs:100});for(const o of s){if(await new Promise(u=>window.setTimeout(u,o.delayMs)),r!==this.sendVersion)return;const l=o.message;this.messages=[...this.messages,{id:l.id,conversationId:a.conversationId,role:"assistant",content:l.content,createdAt:l.createdAt}],this.renderWidget()}r===this.sendVersion&&(this.status="ready",this.renderWidget())}catch(a){if(r!==this.sendVersion)return;this.messages=this.messages.filter(s=>s.id!==i),this.status="error",this.errorMessage=a instanceof Error?a.message:"Failed to send message",this.renderWidget()}}async handleOpenChange(e){const t=this.open;this.open=e,this.renderWidget(),!t&&e&&this.mode==="embed"&&this.analyticsTracker?.trackClick(),this.open&&(this.status==="idle"||!this.sessionState)&&await this.ensureBootstrap()}async handleStartConversation(){if(this.sessionState||await this.ensureBootstrap(),!!this.sessionState){this.status="booting",this.errorMessage=null,this.renderWidget();try{const e=await PVt({agentId:this.agentId});this.sessionState=e.session,this.messages=e.messages,this.status="ready",this.renderWidget()}catch(e){this.status="error",this.errorMessage=e instanceof Error?e.message:"Failed to start conversation",this.renderWidget()}}}async handleStopConversation(){if(!this.sessionState?.conversationId)return;const e=crypto.randomUUID(),t=++this.confirmationVersion;this.status="sending",this.errorMessage=null,this.renderWidget();try{const r=await gtt({agentId:this.agentId,confirmationId:e,prompt:o_});if(t!==this.confirmationVersion)return;this.sessionState=r.session,this.messages=[...this.messages,r.confirmationMessage],this.status="ready",this.renderWidget()}catch(r){if(t!==this.confirmationVersion)return;this.status="error",this.errorMessage=r instanceof Error?r.message:"Failed to stop conversation",this.renderWidget()}}async handleConfirmationDecision(e,t){if(!this.sessionState?.conversationId)return;const r=++this.confirmationVersion;this.status="sending",this.errorMessage=null,this.renderWidget();try{const i=await gtt({agentId:this.agentId,confirmationId:e,decision:t?"accepted":"rejected"});if(r!==this.confirmationVersion)return;this.sessionState=i.session,this.messages=[...this.messages,i.confirmationMessage],this.renderWidget(),t?window.setTimeout(()=>{r===this.confirmationVersion&&this.handleReset()},0):(this.status="ready",this.renderWidget())}catch(i){if(r!==this.confirmationVersion)return;this.status="error",this.errorMessage=i instanceof Error?i.message:"Failed to update confirmation",this.renderWidget()}}handleReset=async()=>{this.sendVersion+=1,await BVt(this.agentId),this.clearAgentState(),this.open=!0,this.renderWidget(),await this.ensureBootstrap()}};function jVt(e){const t=e.getAttribute("avatar-orb-color-1"),r=e.getAttribute("avatar-orb-color-2"),i=e.getAttribute("action-text");return{avatarOrbColor1:t?.trim()||void 0,avatarOrbColor2:r?.trim()||void 0,actionText:i?.trim()||void 0}}function XVt(e){return e==="preview"?"preview":"embed"}function KVt(){customElements.get("usereq-agent-widget")||customElements.define("usereq-agent-widget",YVt)}cat(oat),KVt()})();
|