anycodex 0.0.17 → 0.0.18
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.
|
@@ -49,7 +49,7 @@ Error generating stack: `+o.message+`
|
|
|
49
49
|
`+o.stack}}var Ee=Object.prototype.hasOwnProperty,Ae=e.unstable_scheduleCallback,Ge=e.unstable_cancelCallback,Ol=e.unstable_shouldYield,Zb=e.unstable_requestPaint,fi=e.unstable_now,Qb=e.unstable_getCurrentPriorityLevel,L_=e.unstable_ImmediatePriority,O_=e.unstable_UserBlockingPriority,Ml=e.unstable_NormalPriority,Jb=e.unstable_LowPriority,M_=e.unstable_IdlePriority,e1=e.log,t1=e.unstable_setDisableYieldValue,na=null,_i=null;function zr(i){if(typeof e1=="function"&&t1(i),_i&&typeof _i.setStrictMode=="function")try{_i.setStrictMode(na,i)}catch{}}var pi=Math.clz32?Math.clz32:s1,i1=Math.log,r1=Math.LN2;function s1(i){return i>>>=0,i===0?32:31-(i1(i)/r1|0)|0}var Nl=256,Bl=262144,zl=4194304;function Ss(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Pl(i,s,a){var o=i.pendingLanes;if(o===0)return 0;var h=0,p=i.suspendedLanes,g=i.pingedLanes;i=i.warmLanes;var w=o&134217727;return w!==0?(o=w&~p,o!==0?h=Ss(o):(g&=w,g!==0?h=Ss(g):a||(a=w&~i,a!==0&&(h=Ss(a))))):(w=o&~p,w!==0?h=Ss(w):g!==0?h=Ss(g):a||(a=o&~i,a!==0&&(h=Ss(a)))),h===0?0:s!==0&&s!==h&&(s&p)===0&&(p=h&-h,a=s&-s,p>=a||p===32&&(a&4194048)!==0)?s:h}function aa(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function n1(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 N_(){var i=zl;return zl<<=1,(zl&62914560)===0&&(zl=4194304),i}function tu(i){for(var s=[],a=0;31>a;a++)s.push(i);return s}function la(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function a1(i,s,a,o,h,p){var g=i.pendingLanes;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=a,i.entangledLanes&=a,i.errorRecoveryDisabledLanes&=a,i.shellSuspendCounter=0;var w=i.entanglements,A=i.expirationTimes,z=i.hiddenUpdates;for(a=g&~a;0<a;){var G=31-pi(a),Z=1<<G;w[G]=0,A[G]=-1;var P=z[G];if(P!==null)for(z[G]=null,G=0;G<P.length;G++){var U=P[G];U!==null&&(U.lane&=-536870913)}a&=~Z}o!==0&&B_(i,o,0),p!==0&&h===0&&i.tag!==0&&(i.suspendedLanes|=p&~(g&~s))}function B_(i,s,a){i.pendingLanes|=s,i.suspendedLanes&=~s;var o=31-pi(s);i.entangledLanes|=s,i.entanglements[o]=i.entanglements[o]|1073741824|a&261930}function z_(i,s){var a=i.entangledLanes|=s;for(i=i.entanglements;a;){var o=31-pi(a),h=1<<o;h&s|i[o]&s&&(i[o]|=s),a&=~h}}function P_(i,s){var a=s&-s;return a=(a&42)!==0?1:iu(a),(a&(i.suspendedLanes|s))!==0?0:a}function iu(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function ru(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function I_(){var i=F.p;return i!==0?i:(i=window.event,i===void 0?32:Cv(i.type))}function H_(i,s){var a=F.p;try{return F.p=i,s()}finally{F.p=a}}var Pr=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Pr,ri="__reactProps$"+Pr,rn="__reactContainer$"+Pr,su="__reactEvents$"+Pr,l1="__reactListeners$"+Pr,o1="__reactHandles$"+Pr,U_="__reactResources$"+Pr,oa="__reactMarker$"+Pr;function nu(i){delete i[Ut],delete i[ri],delete i[su],delete i[l1],delete i[o1]}function sn(i){var s=i[Ut];if(s)return s;for(var a=i.parentNode;a;){if(s=a[rn]||a[Ut]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(i=lv(i);i!==null;){if(a=i[Ut])return a;i=lv(i)}return s}i=a,a=i.parentNode}return null}function nn(i){if(i=i[Ut]||i[rn]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function ca(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(n(33))}function an(i){var s=i[U_];return s||(s=i[U_]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Lt(i){i[oa]=!0}var j_=new Set,V_={};function bs(i,s){ln(i,s),ln(i+"Capture",s)}function ln(i,s){for(V_[i]=s,i=0;i<s.length;i++)j_.add(s[i])}var c1=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]*$"),$_={},G_={};function u1(i){return Ee.call(G_,i)?!0:Ee.call($_,i)?!1:c1.test(i)?G_[i]=!0:($_[i]=!0,!1)}function Il(i,s,a){if(u1(s))if(a===null)i.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var o=s.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+a)}}function Hl(i,s,a){if(a===null)i.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+a)}}function or(i,s,a,o){if(o===null)i.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttributeNS(s,a,""+o)}}function Ai(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function q_(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function h1(i,s,a){var o=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,p=o.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return h.call(this)},set:function(g){a=""+g,p.call(this,g)}}),Object.defineProperty(i,s,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function au(i){if(!i._valueTracker){var s=q_(i)?"checked":"value";i._valueTracker=h1(i,s,""+i[s])}}function W_(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var a=s.getValue(),o="";return i&&(o=q_(i)?i.checked?"true":"false":i.value),i=o,i!==a?(s.setValue(i),!0):!1}function Ul(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var d1=/[\n"\\]/g;function ki(i){return i.replace(d1,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function lu(i,s,a,o,h,p,g,w){i.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?i.type=g:i.removeAttribute("type"),s!=null?g==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Ai(s)):i.value!==""+Ai(s)&&(i.value=""+Ai(s)):g!=="submit"&&g!=="reset"||i.removeAttribute("value"),s!=null?ou(i,g,Ai(s)):a!=null?ou(i,g,Ai(a)):o!=null&&i.removeAttribute("value"),h==null&&p!=null&&(i.defaultChecked=!!p),h!=null&&(i.checked=h&&typeof h!="function"&&typeof h!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?i.name=""+Ai(w):i.removeAttribute("name")}function F_(i,s,a,o,h,p,g,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(i.type=p),s!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||s!=null)){au(i);return}a=a!=null?""+Ai(a):"",s=s!=null?""+Ai(s):a,w||s===i.value||(i.value=s),i.defaultValue=s}o=o??h,o=typeof o!="function"&&typeof o!="symbol"&&!!o,i.checked=w?i.checked:!!o,i.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(i.name=g),au(i)}function ou(i,s,a){s==="number"&&Ul(i.ownerDocument)===i||i.defaultValue===""+a||(i.defaultValue=""+a)}function on(i,s,a,o){if(i=i.options,s){s={};for(var h=0;h<a.length;h++)s["$"+a[h]]=!0;for(a=0;a<i.length;a++)h=s.hasOwnProperty("$"+i[a].value),i[a].selected!==h&&(i[a].selected=h),h&&o&&(i[a].defaultSelected=!0)}else{for(a=""+Ai(a),s=null,h=0;h<i.length;h++){if(i[h].value===a){i[h].selected=!0,o&&(i[h].defaultSelected=!0);return}s!==null||i[h].disabled||(s=i[h])}s!==null&&(s.selected=!0)}}function Y_(i,s,a){if(s!=null&&(s=""+Ai(s),s!==i.value&&(i.value=s),a==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=a!=null?""+Ai(a):""}function K_(i,s,a,o){if(s==null){if(o!=null){if(a!=null)throw Error(n(92));if(se(o)){if(1<o.length)throw Error(n(93));o=o[0]}a=o}a==null&&(a=""),s=a}a=Ai(s),i.defaultValue=a,o=i.textContent,o===a&&o!==""&&o!==null&&(i.value=o),au(i)}function cn(i,s){if(s){var a=i.firstChild;if(a&&a===i.lastChild&&a.nodeType===3){a.nodeValue=s;return}}i.textContent=s}var f1=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 X_(i,s,a){var o=s.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":o?i.setProperty(s,a):typeof a!="number"||a===0||f1.has(s)?s==="float"?i.cssFloat=a:i[s]=(""+a).trim():i[s]=a+"px"}function Z_(i,s,a){if(s!=null&&typeof s!="object")throw Error(n(62));if(i=i.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||s!=null&&s.hasOwnProperty(o)||(o.indexOf("--")===0?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="");for(var h in s)o=s[h],s.hasOwnProperty(h)&&a[h]!==o&&X_(i,h,o)}else for(var p in s)s.hasOwnProperty(p)&&X_(i,p,s[p])}function cu(i){if(i.indexOf("-")===-1)return!1;switch(i){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 _1=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"]]),p1=/^[\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 jl(i){return p1.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function cr(){}var uu=null;function hu(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var un=null,hn=null;function Q_(i){var s=nn(i);if(s&&(i=s.stateNode)){var a=i[ri]||null;e:switch(i=s.stateNode,s.type){case"input":if(lu(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),s=a.name,a.type==="radio"&&s!=null){for(a=i;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+ki(""+s)+'"][type="radio"]'),s=0;s<a.length;s++){var o=a[s];if(o!==i&&o.form===i.form){var h=o[ri]||null;if(!h)throw Error(n(90));lu(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(s=0;s<a.length;s++)o=a[s],o.form===i.form&&W_(o)}break e;case"textarea":Y_(i,a.value,a.defaultValue);break e;case"select":s=a.value,s!=null&&on(i,!!a.multiple,s,!1)}}}var du=!1;function J_(i,s,a){if(du)return i(s,a);du=!0;try{var o=i(s);return o}finally{if(du=!1,(un!==null||hn!==null)&&(Ro(),un&&(s=un,i=hn,hn=un=null,Q_(s),i)))for(s=0;s<i.length;s++)Q_(i[s])}}function ua(i,s){var a=i.stateNode;if(a===null)return null;var o=a[ri]||null;if(o===null)return null;a=o[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(i=i.type,o=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!o;break e;default:i=!1}if(i)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fu=!1;if(ur)try{var ha={};Object.defineProperty(ha,"passive",{get:function(){fu=!0}}),window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{fu=!1}var Ir=null,_u=null,Vl=null;function ep(){if(Vl)return Vl;var i,s=_u,a=s.length,o,h="value"in Ir?Ir.value:Ir.textContent,p=h.length;for(i=0;i<a&&s[i]===h[i];i++);var g=a-i;for(o=1;o<=g&&s[a-o]===h[p-o];o++);return Vl=h.slice(i,1<o?1-o:void 0)}function $l(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Gl(){return!0}function tp(){return!1}function si(i){function s(a,o,h,p,g){this._reactName=a,this._targetInst=h,this.type=o,this.nativeEvent=p,this.target=g,this.currentTarget=null;for(var w in i)i.hasOwnProperty(w)&&(a=i[w],this[w]=a?a(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Gl:tp,this.isPropagationStopped=tp,this}return m(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),s}var ws={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ql=si(ws),da=m({},ws,{view:0,detail:0}),m1=si(da),pu,mu,fa,Wl=m({},da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vu,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==fa&&(fa&&i.type==="mousemove"?(pu=i.screenX-fa.screenX,mu=i.screenY-fa.screenY):mu=pu=0,fa=i),pu)},movementY:function(i){return"movementY"in i?i.movementY:mu}}),ip=si(Wl),g1=m({},Wl,{dataTransfer:0}),v1=si(g1),y1=m({},da,{relatedTarget:0}),gu=si(y1),S1=m({},ws,{animationName:0,elapsedTime:0,pseudoElement:0}),b1=si(S1),w1=m({},ws,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),C1=si(w1),E1=m({},ws,{data:0}),rp=si(E1),x1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A1={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"},k1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T1(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=k1[i])?!!s[i]:!1}function vu(){return T1}var R1=m({},da,{key:function(i){if(i.key){var s=x1[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=$l(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?A1[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vu,charCode:function(i){return i.type==="keypress"?$l(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?$l(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),D1=si(R1),L1=m({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sp=si(L1),O1=m({},da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vu}),M1=si(O1),N1=m({},ws,{propertyName:0,elapsedTime:0,pseudoElement:0}),B1=si(N1),z1=m({},Wl,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),P1=si(z1),I1=m({},ws,{newState:0,oldState:0}),H1=si(I1),U1=[9,13,27,32],yu=ur&&"CompositionEvent"in window,_a=null;ur&&"documentMode"in document&&(_a=document.documentMode);var j1=ur&&"TextEvent"in window&&!_a,np=ur&&(!yu||_a&&8<_a&&11>=_a),ap=" ",lp=!1;function op(i,s){switch(i){case"keyup":return U1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cp(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var dn=!1;function V1(i,s){switch(i){case"compositionend":return cp(s);case"keypress":return s.which!==32?null:(lp=!0,ap);case"textInput":return i=s.data,i===ap&&lp?null:i;default:return null}}function $1(i,s){if(dn)return i==="compositionend"||!yu&&op(i,s)?(i=ep(),Vl=_u=Ir=null,dn=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return np&&s.locale!=="ko"?null:s.data;default:return null}}var G1={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 up(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!G1[i.type]:s==="textarea"}function hp(i,s,a,o){un?hn?hn.push(o):hn=[o]:un=o,s=zo(s,"onChange"),0<s.length&&(a=new ql("onChange","change",null,a,o),i.push({event:a,listeners:s}))}var pa=null,ma=null;function q1(i){Fg(i,0)}function Fl(i){var s=ca(i);if(W_(s))return i}function dp(i,s){if(i==="change")return s}var fp=!1;if(ur){var Su;if(ur){var bu="oninput"in document;if(!bu){var _p=document.createElement("div");_p.setAttribute("oninput","return;"),bu=typeof _p.oninput=="function"}Su=bu}else Su=!1;fp=Su&&(!document.documentMode||9<document.documentMode)}function pp(){pa&&(pa.detachEvent("onpropertychange",mp),ma=pa=null)}function mp(i){if(i.propertyName==="value"&&Fl(ma)){var s=[];hp(s,ma,i,hu(i)),J_(q1,s)}}function W1(i,s,a){i==="focusin"?(pp(),pa=s,ma=a,pa.attachEvent("onpropertychange",mp)):i==="focusout"&&pp()}function F1(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Fl(ma)}function Y1(i,s){if(i==="click")return Fl(s)}function K1(i,s){if(i==="input"||i==="change")return Fl(s)}function X1(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var mi=typeof Object.is=="function"?Object.is:X1;function ga(i,s){if(mi(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var a=Object.keys(i),o=Object.keys(s);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var h=a[o];if(!Ee.call(s,h)||!mi(i[h],s[h]))return!1}return!0}function gp(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function vp(i,s){var a=gp(i);i=0;for(var o;a;){if(a.nodeType===3){if(o=i+a.textContent.length,i<=s&&o>=s)return{node:a,offset:s-i};i=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=gp(a)}}function yp(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?yp(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Sp(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Ul(i.document);s instanceof i.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)i=s.contentWindow;else break;s=Ul(i.document)}return s}function wu(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var Z1=ur&&"documentMode"in document&&11>=document.documentMode,fn=null,Cu=null,va=null,Eu=!1;function bp(i,s,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Eu||fn==null||fn!==Ul(o)||(o=fn,"selectionStart"in o&&wu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),va&&ga(va,o)||(va=o,o=zo(Cu,"onSelect"),0<o.length&&(s=new ql("onSelect","select",null,s,a),i.push({event:s,listeners:o}),s.target=fn)))}function Cs(i,s){var a={};return a[i.toLowerCase()]=s.toLowerCase(),a["Webkit"+i]="webkit"+s,a["Moz"+i]="moz"+s,a}var _n={animationend:Cs("Animation","AnimationEnd"),animationiteration:Cs("Animation","AnimationIteration"),animationstart:Cs("Animation","AnimationStart"),transitionrun:Cs("Transition","TransitionRun"),transitionstart:Cs("Transition","TransitionStart"),transitioncancel:Cs("Transition","TransitionCancel"),transitionend:Cs("Transition","TransitionEnd")},xu={},wp={};ur&&(wp=document.createElement("div").style,"AnimationEvent"in window||(delete _n.animationend.animation,delete _n.animationiteration.animation,delete _n.animationstart.animation),"TransitionEvent"in window||delete _n.transitionend.transition);function Es(i){if(xu[i])return xu[i];if(!_n[i])return i;var s=_n[i],a;for(a in s)if(s.hasOwnProperty(a)&&a in wp)return xu[i]=s[a];return i}var Cp=Es("animationend"),Ep=Es("animationiteration"),xp=Es("animationstart"),Q1=Es("transitionrun"),J1=Es("transitionstart"),ew=Es("transitioncancel"),Ap=Es("transitionend"),kp=new Map,Au="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(" ");Au.push("scrollEnd");function Gi(i,s){kp.set(i,s),bs(s,[i])}var Yl=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Ti=[],pn=0,ku=0;function Kl(){for(var i=pn,s=ku=pn=0;s<i;){var a=Ti[s];Ti[s++]=null;var o=Ti[s];Ti[s++]=null;var h=Ti[s];Ti[s++]=null;var p=Ti[s];if(Ti[s++]=null,o!==null&&h!==null){var g=o.pending;g===null?h.next=h:(h.next=g.next,g.next=h),o.pending=h}p!==0&&Tp(a,h,p)}}function Xl(i,s,a,o){Ti[pn++]=i,Ti[pn++]=s,Ti[pn++]=a,Ti[pn++]=o,ku|=o,i.lanes|=o,i=i.alternate,i!==null&&(i.lanes|=o)}function Tu(i,s,a,o){return Xl(i,s,a,o),Zl(i)}function xs(i,s){return Xl(i,null,null,s),Zl(i)}function Tp(i,s,a){i.lanes|=a;var o=i.alternate;o!==null&&(o.lanes|=a);for(var h=!1,p=i.return;p!==null;)p.childLanes|=a,o=p.alternate,o!==null&&(o.childLanes|=a),p.tag===22&&(i=p.stateNode,i===null||i._visibility&1||(h=!0)),i=p,p=p.return;return i.tag===3?(p=i.stateNode,h&&s!==null&&(h=31-pi(a),i=p.hiddenUpdates,o=i[h],o===null?i[h]=[s]:o.push(s),s.lane=a|536870912),p):null}function Zl(i){if(50<Ua)throw Ua=0,Ph=null,Error(n(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var mn={};function tw(i,s,a,o){this.tag=i,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(i,s,a,o){return new tw(i,s,a,o)}function Ru(i){return i=i.prototype,!(!i||!i.isReactComponent)}function hr(i,s){var a=i.alternate;return a===null?(a=gi(i.tag,s,i.key,i.mode),a.elementType=i.elementType,a.type=i.type,a.stateNode=i.stateNode,a.alternate=i,i.alternate=a):(a.pendingProps=s,a.type=i.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=i.flags&65011712,a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,s=i.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=i.sibling,a.index=i.index,a.ref=i.ref,a.refCleanup=i.refCleanup,a}function Rp(i,s){i.flags&=65011714;var a=i.alternate;return a===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,s=a.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function Ql(i,s,a,o,h,p){var g=0;if(o=i,typeof i=="function")Ru(i)&&(g=1);else if(typeof i=="string")g=aC(i,a,ee.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case ve:return i=gi(31,a,s,h),i.elementType=ve,i.lanes=p,i;case E:return As(a.children,h,p,s);case T:g=8,h|=24;break;case O:return i=gi(12,a,s,h|2),i.elementType=O,i.lanes=p,i;case j:return i=gi(13,a,s,h),i.elementType=j,i.lanes=p,i;case Y:return i=gi(19,a,s,h),i.elementType=Y,i.lanes=p,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case B:g=10;break e;case H:g=9;break e;case I:g=11;break e;case te:g=14;break e;case ge:g=16,o=null;break e}g=29,a=Error(n(130,i===null?"null":typeof i,"")),o=null}return s=gi(g,a,s,h),s.elementType=i,s.type=o,s.lanes=p,s}function As(i,s,a,o){return i=gi(7,i,o,s),i.lanes=a,i}function Du(i,s,a){return i=gi(6,i,null,s),i.lanes=a,i}function Dp(i){var s=gi(18,null,null,0);return s.stateNode=i,s}function Lu(i,s,a){return s=gi(4,i.children!==null?i.children:[],i.key,s),s.lanes=a,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var Lp=new WeakMap;function Ri(i,s){if(typeof i=="object"&&i!==null){var a=Lp.get(i);return a!==void 0?a:(s={value:i,source:s,stack:Se(s)},Lp.set(i,s),s)}return{value:i,source:s,stack:Se(s)}}var gn=[],vn=0,Jl=null,ya=0,Di=[],Li=0,Hr=null,Xi=1,Zi="";function dr(i,s){gn[vn++]=ya,gn[vn++]=Jl,Jl=i,ya=s}function Op(i,s,a){Di[Li++]=Xi,Di[Li++]=Zi,Di[Li++]=Hr,Hr=i;var o=Xi;i=Zi;var h=32-pi(o)-1;o&=~(1<<h),a+=1;var p=32-pi(s)+h;if(30<p){var g=h-h%5;p=(o&(1<<g)-1).toString(32),o>>=g,h-=g,Xi=1<<32-pi(s)+h|a<<h|o,Zi=p+i}else Xi=1<<p|a<<h|o,Zi=i}function Ou(i){i.return!==null&&(dr(i,1),Op(i,1,0))}function Mu(i){for(;i===Jl;)Jl=gn[--vn],gn[vn]=null,ya=gn[--vn],gn[vn]=null;for(;i===Hr;)Hr=Di[--Li],Di[Li]=null,Zi=Di[--Li],Di[Li]=null,Xi=Di[--Li],Di[Li]=null}function Mp(i,s){Di[Li++]=Xi,Di[Li++]=Zi,Di[Li++]=Hr,Xi=s.id,Zi=s.overflow,Hr=i}var jt=null,tt=null,He=!1,Ur=null,Oi=!1,Nu=Error(n(519));function jr(i){var s=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sa(Ri(s,i)),Nu}function Np(i){var s=i.stateNode,a=i.type,o=i.memoizedProps;switch(s[Ut]=i,s[ri]=o,a){case"dialog":Be("cancel",s),Be("close",s);break;case"iframe":case"object":case"embed":Be("load",s);break;case"video":case"audio":for(a=0;a<Va.length;a++)Be(Va[a],s);break;case"source":Be("error",s);break;case"img":case"image":case"link":Be("error",s),Be("load",s);break;case"details":Be("toggle",s);break;case"input":Be("invalid",s),F_(s,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Be("invalid",s);break;case"textarea":Be("invalid",s),K_(s,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||s.textContent===""+a||o.suppressHydrationWarning===!0||Zg(s.textContent,a)?(o.popover!=null&&(Be("beforetoggle",s),Be("toggle",s)),o.onScroll!=null&&Be("scroll",s),o.onScrollEnd!=null&&Be("scrollend",s),o.onClick!=null&&(s.onclick=cr),s=!0):s=!1,s||jr(i,!0)}function Bp(i){for(jt=i.return;jt;)switch(jt.tag){case 5:case 31:case 13:Oi=!1;return;case 27:case 3:Oi=!0;return;default:jt=jt.return}}function yn(i){if(i!==jt)return!1;if(!He)return Bp(i),He=!0,!1;var s=i.tag,a;if((a=s!==3&&s!==27)&&((a=s===5)&&(a=i.type,a=!(a!=="form"&&a!=="button")||Qh(i.type,i.memoizedProps)),a=!a),a&&tt&&jr(i),Bp(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));tt=av(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));tt=av(i)}else s===27?(s=tt,ts(i.type)?(i=rd,rd=null,tt=i):tt=s):tt=jt?Ni(i.stateNode.nextSibling):null;return!0}function ks(){tt=jt=null,He=!1}function Bu(){var i=Ur;return i!==null&&(oi===null?oi=i:oi.push.apply(oi,i),Ur=null),i}function Sa(i){Ur===null?Ur=[i]:Ur.push(i)}var zu=x(null),Ts=null,fr=null;function Vr(i,s,a){X(zu,s._currentValue),s._currentValue=a}function _r(i){i._currentValue=zu.current,M(zu)}function Pu(i,s,a){for(;i!==null;){var o=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,o!==null&&(o.childLanes|=s)):o!==null&&(o.childLanes&s)!==s&&(o.childLanes|=s),i===a)break;i=i.return}}function Iu(i,s,a,o){var h=i.child;for(h!==null&&(h.return=i);h!==null;){var p=h.dependencies;if(p!==null){var g=h.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=h;for(var A=0;A<s.length;A++)if(w.context===s[A]){p.lanes|=a,w=p.alternate,w!==null&&(w.lanes|=a),Pu(p.return,a,i),o||(g=null);break e}p=w.next}}else if(h.tag===18){if(g=h.return,g===null)throw Error(n(341));g.lanes|=a,p=g.alternate,p!==null&&(p.lanes|=a),Pu(g,a,i),g=null}else g=h.child;if(g!==null)g.return=h;else for(g=h;g!==null;){if(g===i){g=null;break}if(h=g.sibling,h!==null){h.return=g.return,g=h;break}g=g.return}h=g}}function Sn(i,s,a,o){i=null;for(var h=s,p=!1;h!==null;){if(!p){if((h.flags&524288)!==0)p=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var g=h.alternate;if(g===null)throw Error(n(387));if(g=g.memoizedProps,g!==null){var w=h.type;mi(h.pendingProps.value,g.value)||(i!==null?i.push(w):i=[w])}}else if(h===we.current){if(g=h.alternate,g===null)throw Error(n(387));g.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(i!==null?i.push(Fa):i=[Fa])}h=h.return}i!==null&&Iu(s,i,a,o),s.flags|=262144}function eo(i){for(i=i.firstContext;i!==null;){if(!mi(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Rs(i){Ts=i,fr=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Vt(i){return zp(Ts,i)}function to(i,s){return Ts===null&&Rs(i),zp(i,s)}function zp(i,s){var a=s._currentValue;if(s={context:s,memoizedValue:a,next:null},fr===null){if(i===null)throw Error(n(308));fr=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else fr=fr.next=s;return a}var iw=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(a,o){i.push(o)}};this.abort=function(){s.aborted=!0,i.forEach(function(a){return a()})}},rw=e.unstable_scheduleCallback,sw=e.unstable_NormalPriority,gt={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hu(){return{controller:new iw,data:new Map,refCount:0}}function ba(i){i.refCount--,i.refCount===0&&rw(sw,function(){i.controller.abort()})}var wa=null,Uu=0,bn=0,wn=null;function nw(i,s){if(wa===null){var a=wa=[];Uu=0,bn=$h(),wn={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Uu++,s.then(Pp,Pp),s}function Pp(){if(--Uu===0&&wa!==null){wn!==null&&(wn.status="fulfilled");var i=wa;wa=null,bn=0,wn=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function aw(i,s){var a=[],o={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return i.then(function(){o.status="fulfilled",o.value=s;for(var h=0;h<a.length;h++)(0,a[h])(s)},function(h){for(o.status="rejected",o.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),o}var Ip=D.S;D.S=function(i,s){bg=fi(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&nw(i,s),Ip!==null&&Ip(i,s)};var Ds=x(null);function ju(){var i=Ds.current;return i!==null?i:Qe.pooledCache}function io(i,s){s===null?X(Ds,Ds.current):X(Ds,s.pool)}function Hp(){var i=ju();return i===null?null:{parent:gt._currentValue,pool:i}}var Cn=Error(n(460)),Vu=Error(n(474)),ro=Error(n(542)),so={then:function(){}};function Up(i){return i=i.status,i==="fulfilled"||i==="rejected"}function jp(i,s,a){switch(a=i[a],a===void 0?i.push(s):a!==s&&(s.then(cr,cr),s=a),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,$p(i),i;default:if(typeof s.status=="string")s.then(cr,cr);else{if(i=Qe,i!==null&&100<i.shellSuspendCounter)throw Error(n(482));i=s,i.status="pending",i.then(function(o){if(s.status==="pending"){var h=s;h.status="fulfilled",h.value=o}},function(o){if(s.status==="pending"){var h=s;h.status="rejected",h.reason=o}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,$p(i),i}throw Os=s,Cn}}function Ls(i){try{var s=i._init;return s(i._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Os=a,Cn):a}}var Os=null;function Vp(){if(Os===null)throw Error(n(459));var i=Os;return Os=null,i}function $p(i){if(i===Cn||i===ro)throw Error(n(483))}var En=null,Ca=0;function no(i){var s=Ca;return Ca+=1,En===null&&(En=[]),jp(En,i,s)}function Ea(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function ao(i,s){throw s.$$typeof===y?Error(n(525)):(i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function Gp(i){function s(L,R){if(i){var N=L.deletions;N===null?(L.deletions=[R],L.flags|=16):N.push(R)}}function a(L,R){if(!i)return null;for(;R!==null;)s(L,R),R=R.sibling;return null}function o(L){for(var R=new Map;L!==null;)L.key!==null?R.set(L.key,L):R.set(L.index,L),L=L.sibling;return R}function h(L,R){return L=hr(L,R),L.index=0,L.sibling=null,L}function p(L,R,N){return L.index=N,i?(N=L.alternate,N!==null?(N=N.index,N<R?(L.flags|=67108866,R):N):(L.flags|=67108866,R)):(L.flags|=1048576,R)}function g(L){return i&&L.alternate===null&&(L.flags|=67108866),L}function w(L,R,N,K){return R===null||R.tag!==6?(R=Du(N,L.mode,K),R.return=L,R):(R=h(R,N),R.return=L,R)}function A(L,R,N,K){var ye=N.type;return ye===E?G(L,R,N.props.children,K,N.key):R!==null&&(R.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===ge&&Ls(ye)===R.type)?(R=h(R,N.props),Ea(R,N),R.return=L,R):(R=Ql(N.type,N.key,N.props,null,L.mode,K),Ea(R,N),R.return=L,R)}function z(L,R,N,K){return R===null||R.tag!==4||R.stateNode.containerInfo!==N.containerInfo||R.stateNode.implementation!==N.implementation?(R=Lu(N,L.mode,K),R.return=L,R):(R=h(R,N.children||[]),R.return=L,R)}function G(L,R,N,K,ye){return R===null||R.tag!==7?(R=As(N,L.mode,K,ye),R.return=L,R):(R=h(R,N),R.return=L,R)}function Z(L,R,N){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Du(""+R,L.mode,N),R.return=L,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case S:return N=Ql(R.type,R.key,R.props,null,L.mode,N),Ea(N,R),N.return=L,N;case b:return R=Lu(R,L.mode,N),R.return=L,R;case ge:return R=Ls(R),Z(L,R,N)}if(se(R)||J(R))return R=As(R,L.mode,N,null),R.return=L,R;if(typeof R.then=="function")return Z(L,no(R),N);if(R.$$typeof===B)return Z(L,to(L,R),N);ao(L,R)}return null}function P(L,R,N,K){var ye=R!==null?R.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ye!==null?null:w(L,R,""+N,K);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case S:return N.key===ye?A(L,R,N,K):null;case b:return N.key===ye?z(L,R,N,K):null;case ge:return N=Ls(N),P(L,R,N,K)}if(se(N)||J(N))return ye!==null?null:G(L,R,N,K,null);if(typeof N.then=="function")return P(L,R,no(N),K);if(N.$$typeof===B)return P(L,R,to(L,N),K);ao(L,N)}return null}function U(L,R,N,K,ye){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return L=L.get(N)||null,w(R,L,""+K,ye);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case S:return L=L.get(K.key===null?N:K.key)||null,A(R,L,K,ye);case b:return L=L.get(K.key===null?N:K.key)||null,z(R,L,K,ye);case ge:return K=Ls(K),U(L,R,N,K,ye)}if(se(K)||J(K))return L=L.get(N)||null,G(R,L,K,ye,null);if(typeof K.then=="function")return U(L,R,N,no(K),ye);if(K.$$typeof===B)return U(L,R,N,to(R,K),ye);ao(R,K)}return null}function _e(L,R,N,K){for(var ye=null,Ue=null,me=R,Re=R=0,Ie=null;me!==null&&Re<N.length;Re++){me.index>Re?(Ie=me,me=null):Ie=me.sibling;var je=P(L,me,N[Re],K);if(je===null){me===null&&(me=Ie);break}i&&me&&je.alternate===null&&s(L,me),R=p(je,R,Re),Ue===null?ye=je:Ue.sibling=je,Ue=je,me=Ie}if(Re===N.length)return a(L,me),He&&dr(L,Re),ye;if(me===null){for(;Re<N.length;Re++)me=Z(L,N[Re],K),me!==null&&(R=p(me,R,Re),Ue===null?ye=me:Ue.sibling=me,Ue=me);return He&&dr(L,Re),ye}for(me=o(me);Re<N.length;Re++)Ie=U(me,L,Re,N[Re],K),Ie!==null&&(i&&Ie.alternate!==null&&me.delete(Ie.key===null?Re:Ie.key),R=p(Ie,R,Re),Ue===null?ye=Ie:Ue.sibling=Ie,Ue=Ie);return i&&me.forEach(function(as){return s(L,as)}),He&&dr(L,Re),ye}function be(L,R,N,K){if(N==null)throw Error(n(151));for(var ye=null,Ue=null,me=R,Re=R=0,Ie=null,je=N.next();me!==null&&!je.done;Re++,je=N.next()){me.index>Re?(Ie=me,me=null):Ie=me.sibling;var as=P(L,me,je.value,K);if(as===null){me===null&&(me=Ie);break}i&&me&&as.alternate===null&&s(L,me),R=p(as,R,Re),Ue===null?ye=as:Ue.sibling=as,Ue=as,me=Ie}if(je.done)return a(L,me),He&&dr(L,Re),ye;if(me===null){for(;!je.done;Re++,je=N.next())je=Z(L,je.value,K),je!==null&&(R=p(je,R,Re),Ue===null?ye=je:Ue.sibling=je,Ue=je);return He&&dr(L,Re),ye}for(me=o(me);!je.done;Re++,je=N.next())je=U(me,L,Re,je.value,K),je!==null&&(i&&je.alternate!==null&&me.delete(je.key===null?Re:je.key),R=p(je,R,Re),Ue===null?ye=je:Ue.sibling=je,Ue=je);return i&&me.forEach(function(gC){return s(L,gC)}),He&&dr(L,Re),ye}function Xe(L,R,N,K){if(typeof N=="object"&&N!==null&&N.type===E&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case S:e:{for(var ye=N.key;R!==null;){if(R.key===ye){if(ye=N.type,ye===E){if(R.tag===7){a(L,R.sibling),K=h(R,N.props.children),K.return=L,L=K;break e}}else if(R.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===ge&&Ls(ye)===R.type){a(L,R.sibling),K=h(R,N.props),Ea(K,N),K.return=L,L=K;break e}a(L,R);break}else s(L,R);R=R.sibling}N.type===E?(K=As(N.props.children,L.mode,K,N.key),K.return=L,L=K):(K=Ql(N.type,N.key,N.props,null,L.mode,K),Ea(K,N),K.return=L,L=K)}return g(L);case b:e:{for(ye=N.key;R!==null;){if(R.key===ye)if(R.tag===4&&R.stateNode.containerInfo===N.containerInfo&&R.stateNode.implementation===N.implementation){a(L,R.sibling),K=h(R,N.children||[]),K.return=L,L=K;break e}else{a(L,R);break}else s(L,R);R=R.sibling}K=Lu(N,L.mode,K),K.return=L,L=K}return g(L);case ge:return N=Ls(N),Xe(L,R,N,K)}if(se(N))return _e(L,R,N,K);if(J(N)){if(ye=J(N),typeof ye!="function")throw Error(n(150));return N=ye.call(N),be(L,R,N,K)}if(typeof N.then=="function")return Xe(L,R,no(N),K);if(N.$$typeof===B)return Xe(L,R,to(L,N),K);ao(L,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,R!==null&&R.tag===6?(a(L,R.sibling),K=h(R,N),K.return=L,L=K):(a(L,R),K=Du(N,L.mode,K),K.return=L,L=K),g(L)):a(L,R)}return function(L,R,N,K){try{Ca=0;var ye=Xe(L,R,N,K);return En=null,ye}catch(me){if(me===Cn||me===ro)throw me;var Ue=gi(29,me,null,L.mode);return Ue.lanes=K,Ue.return=L,Ue}finally{}}}var Ms=Gp(!0),qp=Gp(!1),$r=!1;function $u(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gu(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Gr(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function qr(i,s,a){var o=i.updateQueue;if(o===null)return null;if(o=o.shared,(Ve&2)!==0){var h=o.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),o.pending=s,s=Zl(i),Tp(i,null,a),s}return Xl(i,o,s,a),Zl(i)}function xa(i,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194048)!==0)){var o=s.lanes;o&=i.pendingLanes,a|=o,s.lanes=a,z_(i,a)}}function qu(i,s){var a=i.updateQueue,o=i.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var h=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?h=p=g:p=p.next=g,a=a.next}while(a!==null);p===null?h=p=s:p=p.next=s}else h=p=s;a={baseState:o.baseState,firstBaseUpdate:h,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},i.updateQueue=a;return}i=a.lastBaseUpdate,i===null?a.firstBaseUpdate=s:i.next=s,a.lastBaseUpdate=s}var Wu=!1;function Aa(){if(Wu){var i=wn;if(i!==null)throw i}}function ka(i,s,a,o){Wu=!1;var h=i.updateQueue;$r=!1;var p=h.firstBaseUpdate,g=h.lastBaseUpdate,w=h.shared.pending;if(w!==null){h.shared.pending=null;var A=w,z=A.next;A.next=null,g===null?p=z:g.next=z,g=A;var G=i.alternate;G!==null&&(G=G.updateQueue,w=G.lastBaseUpdate,w!==g&&(w===null?G.firstBaseUpdate=z:w.next=z,G.lastBaseUpdate=A))}if(p!==null){var Z=h.baseState;g=0,G=z=A=null,w=p;do{var P=w.lane&-536870913,U=P!==w.lane;if(U?(Pe&P)===P:(o&P)===P){P!==0&&P===bn&&(Wu=!0),G!==null&&(G=G.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var _e=i,be=w;P=s;var Xe=a;switch(be.tag){case 1:if(_e=be.payload,typeof _e=="function"){Z=_e.call(Xe,Z,P);break e}Z=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=be.payload,P=typeof _e=="function"?_e.call(Xe,Z,P):_e,P==null)break e;Z=m({},Z,P);break e;case 2:$r=!0}}P=w.callback,P!==null&&(i.flags|=64,U&&(i.flags|=8192),U=h.callbacks,U===null?h.callbacks=[P]:U.push(P))}else U={lane:P,tag:w.tag,payload:w.payload,callback:w.callback,next:null},G===null?(z=G=U,A=Z):G=G.next=U,g|=P;if(w=w.next,w===null){if(w=h.shared.pending,w===null)break;U=w,w=U.next,U.next=null,h.lastBaseUpdate=U,h.shared.pending=null}}while(!0);G===null&&(A=Z),h.baseState=A,h.firstBaseUpdate=z,h.lastBaseUpdate=G,p===null&&(h.shared.lanes=0),Xr|=g,i.lanes=g,i.memoizedState=Z}}function Wp(i,s){if(typeof i!="function")throw Error(n(191,i));i.call(s)}function Fp(i,s){var a=i.callbacks;if(a!==null)for(i.callbacks=null,i=0;i<a.length;i++)Wp(a[i],s)}var xn=x(null),lo=x(0);function Yp(i,s){i=Cr,X(lo,i),X(xn,s),Cr=i|s.baseLanes}function Fu(){X(lo,Cr),X(xn,xn.current)}function Yu(){Cr=lo.current,M(xn),M(lo)}var vi=x(null),Mi=null;function Wr(i){var s=i.alternate;X(ft,ft.current&1),X(vi,i),Mi===null&&(s===null||xn.current!==null||s.memoizedState!==null)&&(Mi=i)}function Ku(i){X(ft,ft.current),X(vi,i),Mi===null&&(Mi=i)}function Kp(i){i.tag===22?(X(ft,ft.current),X(vi,i),Mi===null&&(Mi=i)):Fr()}function Fr(){X(ft,ft.current),X(vi,vi.current)}function yi(i){M(vi),Mi===i&&(Mi=null),M(ft)}var ft=x(0);function oo(i){for(var s=i;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||td(a)||id(a)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var pr=0,Te=null,Ye=null,vt=null,co=!1,An=!1,Ns=!1,uo=0,Ta=0,kn=null,lw=0;function ct(){throw Error(n(321))}function Xu(i,s){if(s===null)return!1;for(var a=0;a<s.length&&a<i.length;a++)if(!mi(i[a],s[a]))return!1;return!0}function Zu(i,s,a,o,h,p){return pr=p,Te=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,D.H=i===null||i.memoizedState===null?Om:dh,Ns=!1,p=a(o,h),Ns=!1,An&&(p=Zp(s,a,o,h)),Xp(i),p}function Xp(i){D.H=La;var s=Ye!==null&&Ye.next!==null;if(pr=0,vt=Ye=Te=null,co=!1,Ta=0,kn=null,s)throw Error(n(300));i===null||yt||(i=i.dependencies,i!==null&&eo(i)&&(yt=!0))}function Zp(i,s,a,o){Te=i;var h=0;do{if(An&&(kn=null),Ta=0,An=!1,25<=h)throw Error(n(301));if(h+=1,vt=Ye=null,i.updateQueue!=null){var p=i.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}D.H=Mm,p=s(a,o)}while(An);return p}function ow(){var i=D.H,s=i.useState()[0];return s=typeof s.then=="function"?Ra(s):s,i=i.useState()[0],(Ye!==null?Ye.memoizedState:null)!==i&&(Te.flags|=1024),s}function Qu(){var i=uo!==0;return uo=0,i}function Ju(i,s,a){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~a}function eh(i){if(co){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}co=!1}pr=0,vt=Ye=Te=null,An=!1,Ta=uo=0,kn=null}function Qt(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Te.memoizedState=vt=i:vt=vt.next=i,vt}function _t(){if(Ye===null){var i=Te.alternate;i=i!==null?i.memoizedState:null}else i=Ye.next;var s=vt===null?Te.memoizedState:vt.next;if(s!==null)vt=s,Ye=i;else{if(i===null)throw Te.alternate===null?Error(n(467)):Error(n(310));Ye=i,i={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},vt===null?Te.memoizedState=vt=i:vt=vt.next=i}return vt}function ho(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ra(i){var s=Ta;return Ta+=1,kn===null&&(kn=[]),i=jp(kn,i,s),s=Te,(vt===null?s.memoizedState:vt.next)===null&&(s=s.alternate,D.H=s===null||s.memoizedState===null?Om:dh),i}function fo(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Ra(i);if(i.$$typeof===B)return Vt(i)}throw Error(n(438,String(i)))}function th(i){var s=null,a=Te.updateQueue;if(a!==null&&(s=a.memoCache),s==null){var o=Te.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(s={data:o.data.map(function(h){return h.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),a===null&&(a=ho(),Te.updateQueue=a),a.memoCache=s,a=s.data[s.index],a===void 0)for(a=s.data[s.index]=Array(i),o=0;o<i;o++)a[o]=fe;return s.index++,a}function mr(i,s){return typeof s=="function"?s(i):s}function _o(i){var s=_t();return ih(s,Ye,i)}function ih(i,s,a){var o=i.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=a;var h=i.baseQueue,p=o.pending;if(p!==null){if(h!==null){var g=h.next;h.next=p.next,p.next=g}s.baseQueue=h=p,o.pending=null}if(p=i.baseState,h===null)i.memoizedState=p;else{s=h.next;var w=g=null,A=null,z=s,G=!1;do{var Z=z.lane&-536870913;if(Z!==z.lane?(Pe&Z)===Z:(pr&Z)===Z){var P=z.revertLane;if(P===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Z===bn&&(G=!0);else if((pr&P)===P){z=z.next,P===bn&&(G=!0);continue}else Z={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},A===null?(w=A=Z,g=p):A=A.next=Z,Te.lanes|=P,Xr|=P;Z=z.action,Ns&&a(p,Z),p=z.hasEagerState?z.eagerState:a(p,Z)}else P={lane:Z,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},A===null?(w=A=P,g=p):A=A.next=P,Te.lanes|=Z,Xr|=Z;z=z.next}while(z!==null&&z!==s);if(A===null?g=p:A.next=w,!mi(p,i.memoizedState)&&(yt=!0,G&&(a=wn,a!==null)))throw a;i.memoizedState=p,i.baseState=g,i.baseQueue=A,o.lastRenderedState=p}return h===null&&(o.lanes=0),[i.memoizedState,o.dispatch]}function rh(i){var s=_t(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=i;var o=a.dispatch,h=a.pending,p=s.memoizedState;if(h!==null){a.pending=null;var g=h=h.next;do p=i(p,g.action),g=g.next;while(g!==h);mi(p,s.memoizedState)||(yt=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),a.lastRenderedState=p}return[p,o]}function Qp(i,s,a){var o=Te,h=_t(),p=He;if(p){if(a===void 0)throw Error(n(407));a=a()}else a=s();var g=!mi((Ye||h).memoizedState,a);if(g&&(h.memoizedState=a,yt=!0),h=h.queue,ah(tm.bind(null,o,h,i),[i]),h.getSnapshot!==s||g||vt!==null&&vt.memoizedState.tag&1){if(o.flags|=2048,Tn(9,{destroy:void 0},em.bind(null,o,h,a,s),null),Qe===null)throw Error(n(349));p||(pr&127)!==0||Jp(o,s,a)}return a}function Jp(i,s,a){i.flags|=16384,i={getSnapshot:s,value:a},s=Te.updateQueue,s===null?(s=ho(),Te.updateQueue=s,s.stores=[i]):(a=s.stores,a===null?s.stores=[i]:a.push(i))}function em(i,s,a,o){s.value=a,s.getSnapshot=o,im(s)&&rm(i)}function tm(i,s,a){return a(function(){im(s)&&rm(i)})}function im(i){var s=i.getSnapshot;i=i.value;try{var a=s();return!mi(i,a)}catch{return!0}}function rm(i){var s=xs(i,2);s!==null&&ci(s,i,2)}function sh(i){var s=Qt();if(typeof i=="function"){var a=i;if(i=a(),Ns){zr(!0);try{a()}finally{zr(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:i},s}function sm(i,s,a,o){return i.baseState=a,ih(i,Ye,typeof o=="function"?o:mr)}function cw(i,s,a,o,h){if(go(i))throw Error(n(485));if(i=s.action,i!==null){var p={payload:h,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){p.listeners.push(g)}};D.T!==null?a(!0):p.isTransition=!1,o(p),a=s.pending,a===null?(p.next=s.pending=p,nm(s,p)):(p.next=a.next,s.pending=a.next=p)}}function nm(i,s){var a=s.action,o=s.payload,h=i.state;if(s.isTransition){var p=D.T,g={};D.T=g;try{var w=a(h,o),A=D.S;A!==null&&A(g,w),am(i,s,w)}catch(z){nh(i,s,z)}finally{p!==null&&g.types!==null&&(p.types=g.types),D.T=p}}else try{p=a(h,o),am(i,s,p)}catch(z){nh(i,s,z)}}function am(i,s,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){lm(i,s,o)},function(o){return nh(i,s,o)}):lm(i,s,a)}function lm(i,s,a){s.status="fulfilled",s.value=a,om(s),i.state=a,s=i.pending,s!==null&&(a=s.next,a===s?i.pending=null:(a=a.next,s.next=a,nm(i,a)))}function nh(i,s,a){var o=i.pending;if(i.pending=null,o!==null){o=o.next;do s.status="rejected",s.reason=a,om(s),s=s.next;while(s!==o)}i.action=null}function om(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function cm(i,s){return s}function um(i,s){if(He){var a=Qe.formState;if(a!==null){e:{var o=Te;if(He){if(tt){t:{for(var h=tt,p=Oi;h.nodeType!==8;){if(!p){h=null;break t}if(h=Ni(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p==="F!"||p==="F"?h:null}if(h){tt=Ni(h.nextSibling),o=h.data==="F!";break e}}jr(o)}o=!1}o&&(s=a[0])}}return a=Qt(),a.memoizedState=a.baseState=s,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cm,lastRenderedState:s},a.queue=o,a=Rm.bind(null,Te,o),o.dispatch=a,o=sh(!1),p=hh.bind(null,Te,!1,o.queue),o=Qt(),h={state:s,dispatch:null,action:i,pending:null},o.queue=h,a=cw.bind(null,Te,h,p,a),h.dispatch=a,o.memoizedState=i,[s,a,!1]}function hm(i){var s=_t();return dm(s,Ye,i)}function dm(i,s,a){if(s=ih(i,s,cm)[0],i=_o(mr)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var o=Ra(s)}catch(g){throw g===Cn?ro:g}else o=s;s=_t();var h=s.queue,p=h.dispatch;return a!==s.memoizedState&&(Te.flags|=2048,Tn(9,{destroy:void 0},uw.bind(null,h,a),null)),[o,p,i]}function uw(i,s){i.action=s}function fm(i){var s=_t(),a=Ye;if(a!==null)return dm(s,a,i);_t(),s=s.memoizedState,a=_t();var o=a.queue.dispatch;return a.memoizedState=i,[s,o,!1]}function Tn(i,s,a,o){return i={tag:i,create:a,deps:o,inst:s,next:null},s=Te.updateQueue,s===null&&(s=ho(),Te.updateQueue=s),a=s.lastEffect,a===null?s.lastEffect=i.next=i:(o=a.next,a.next=i,i.next=o,s.lastEffect=i),i}function _m(){return _t().memoizedState}function po(i,s,a,o){var h=Qt();Te.flags|=i,h.memoizedState=Tn(1|s,{destroy:void 0},a,o===void 0?null:o)}function mo(i,s,a,o){var h=_t();o=o===void 0?null:o;var p=h.memoizedState.inst;Ye!==null&&o!==null&&Xu(o,Ye.memoizedState.deps)?h.memoizedState=Tn(s,p,a,o):(Te.flags|=i,h.memoizedState=Tn(1|s,p,a,o))}function pm(i,s){po(8390656,8,i,s)}function ah(i,s){mo(2048,8,i,s)}function hw(i){Te.flags|=4;var s=Te.updateQueue;if(s===null)s=ho(),Te.updateQueue=s,s.events=[i];else{var a=s.events;a===null?s.events=[i]:a.push(i)}}function mm(i){var s=_t().memoizedState;return hw({ref:s,nextImpl:i}),function(){if((Ve&2)!==0)throw Error(n(440));return s.impl.apply(void 0,arguments)}}function gm(i,s){return mo(4,2,i,s)}function vm(i,s){return mo(4,4,i,s)}function ym(i,s){if(typeof s=="function"){i=i();var a=s(i);return function(){typeof a=="function"?a():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Sm(i,s,a){a=a!=null?a.concat([i]):null,mo(4,4,ym.bind(null,s,i),a)}function lh(){}function bm(i,s){var a=_t();s=s===void 0?null:s;var o=a.memoizedState;return s!==null&&Xu(s,o[1])?o[0]:(a.memoizedState=[i,s],i)}function wm(i,s){var a=_t();s=s===void 0?null:s;var o=a.memoizedState;if(s!==null&&Xu(s,o[1]))return o[0];if(o=i(),Ns){zr(!0);try{i()}finally{zr(!1)}}return a.memoizedState=[o,s],o}function oh(i,s,a){return a===void 0||(pr&1073741824)!==0&&(Pe&261930)===0?i.memoizedState=s:(i.memoizedState=a,i=Cg(),Te.lanes|=i,Xr|=i,a)}function Cm(i,s,a,o){return mi(a,s)?a:xn.current!==null?(i=oh(i,a,o),mi(i,s)||(yt=!0),i):(pr&42)===0||(pr&1073741824)!==0&&(Pe&261930)===0?(yt=!0,i.memoizedState=a):(i=Cg(),Te.lanes|=i,Xr|=i,s)}function Em(i,s,a,o,h){var p=F.p;F.p=p!==0&&8>p?p:8;var g=D.T,w={};D.T=w,hh(i,!1,s,a);try{var A=h(),z=D.S;if(z!==null&&z(w,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=aw(A,o);Da(i,s,G,wi(i))}else Da(i,s,o,wi(i))}catch(Z){Da(i,s,{then:function(){},status:"rejected",reason:Z},wi())}finally{F.p=p,g!==null&&w.types!==null&&(g.types=w.types),D.T=g}}function dw(){}function ch(i,s,a,o){if(i.tag!==5)throw Error(n(476));var h=xm(i).queue;Em(i,h,s,W,a===null?dw:function(){return Am(i),a(o)})}function xm(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:W},next:null};var a={};return s.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:a},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function Am(i){var s=xm(i);s.next===null&&(s=i.alternate.memoizedState),Da(i,s.next.queue,{},wi())}function uh(){return Vt(Fa)}function km(){return _t().memoizedState}function Tm(){return _t().memoizedState}function fw(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var a=wi();i=Gr(a);var o=qr(s,i,a);o!==null&&(ci(o,s,a),xa(o,s,a)),s={cache:Hu()},i.payload=s;return}s=s.return}}function _w(i,s,a){var o=wi();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},go(i)?Dm(s,a):(a=Tu(i,s,a,o),a!==null&&(ci(a,i,o),Lm(a,s,o)))}function Rm(i,s,a){var o=wi();Da(i,s,a,o)}function Da(i,s,a,o){var h={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(go(i))Dm(s,h);else{var p=i.alternate;if(i.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var g=s.lastRenderedState,w=p(g,a);if(h.hasEagerState=!0,h.eagerState=w,mi(w,g))return Xl(i,s,h,0),Qe===null&&Kl(),!1}catch{}finally{}if(a=Tu(i,s,h,o),a!==null)return ci(a,i,o),Lm(a,s,o),!0}return!1}function hh(i,s,a,o){if(o={lane:2,revertLane:$h(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},go(i)){if(s)throw Error(n(479))}else s=Tu(i,a,o,2),s!==null&&ci(s,i,2)}function go(i){var s=i.alternate;return i===Te||s!==null&&s===Te}function Dm(i,s){An=co=!0;var a=i.pending;a===null?s.next=s:(s.next=a.next,a.next=s),i.pending=s}function Lm(i,s,a){if((a&4194048)!==0){var o=s.lanes;o&=i.pendingLanes,a|=o,s.lanes=a,z_(i,a)}}var La={readContext:Vt,use:fo,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};La.useEffectEvent=ct;var Om={readContext:Vt,use:fo,useCallback:function(i,s){return Qt().memoizedState=[i,s===void 0?null:s],i},useContext:Vt,useEffect:pm,useImperativeHandle:function(i,s,a){a=a!=null?a.concat([i]):null,po(4194308,4,ym.bind(null,s,i),a)},useLayoutEffect:function(i,s){return po(4194308,4,i,s)},useInsertionEffect:function(i,s){po(4,2,i,s)},useMemo:function(i,s){var a=Qt();s=s===void 0?null:s;var o=i();if(Ns){zr(!0);try{i()}finally{zr(!1)}}return a.memoizedState=[o,s],o},useReducer:function(i,s,a){var o=Qt();if(a!==void 0){var h=a(s);if(Ns){zr(!0);try{a(s)}finally{zr(!1)}}}else h=s;return o.memoizedState=o.baseState=h,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:h},o.queue=i,i=i.dispatch=_w.bind(null,Te,i),[o.memoizedState,i]},useRef:function(i){var s=Qt();return i={current:i},s.memoizedState=i},useState:function(i){i=sh(i);var s=i.queue,a=Rm.bind(null,Te,s);return s.dispatch=a,[i.memoizedState,a]},useDebugValue:lh,useDeferredValue:function(i,s){var a=Qt();return oh(a,i,s)},useTransition:function(){var i=sh(!1);return i=Em.bind(null,Te,i.queue,!0,!1),Qt().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,a){var o=Te,h=Qt();if(He){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),Qe===null)throw Error(n(349));(Pe&127)!==0||Jp(o,s,a)}h.memoizedState=a;var p={value:a,getSnapshot:s};return h.queue=p,pm(tm.bind(null,o,p,i),[i]),o.flags|=2048,Tn(9,{destroy:void 0},em.bind(null,o,p,a,s),null),a},useId:function(){var i=Qt(),s=Qe.identifierPrefix;if(He){var a=Zi,o=Xi;a=(o&~(1<<32-pi(o)-1)).toString(32)+a,s="_"+s+"R_"+a,a=uo++,0<a&&(s+="H"+a.toString(32)),s+="_"}else a=lw++,s="_"+s+"r_"+a.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:uh,useFormState:um,useActionState:um,useOptimistic:function(i){var s=Qt();s.memoizedState=s.baseState=i;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=a,s=hh.bind(null,Te,!0,a),a.dispatch=s,[i,s]},useMemoCache:th,useCacheRefresh:function(){return Qt().memoizedState=fw.bind(null,Te)},useEffectEvent:function(i){var s=Qt(),a={impl:i};return s.memoizedState=a,function(){if((Ve&2)!==0)throw Error(n(440));return a.impl.apply(void 0,arguments)}}},dh={readContext:Vt,use:fo,useCallback:bm,useContext:Vt,useEffect:ah,useImperativeHandle:Sm,useInsertionEffect:gm,useLayoutEffect:vm,useMemo:wm,useReducer:_o,useRef:_m,useState:function(){return _o(mr)},useDebugValue:lh,useDeferredValue:function(i,s){var a=_t();return Cm(a,Ye.memoizedState,i,s)},useTransition:function(){var i=_o(mr)[0],s=_t().memoizedState;return[typeof i=="boolean"?i:Ra(i),s]},useSyncExternalStore:Qp,useId:km,useHostTransitionStatus:uh,useFormState:hm,useActionState:hm,useOptimistic:function(i,s){var a=_t();return sm(a,Ye,i,s)},useMemoCache:th,useCacheRefresh:Tm};dh.useEffectEvent=mm;var Mm={readContext:Vt,use:fo,useCallback:bm,useContext:Vt,useEffect:ah,useImperativeHandle:Sm,useInsertionEffect:gm,useLayoutEffect:vm,useMemo:wm,useReducer:rh,useRef:_m,useState:function(){return rh(mr)},useDebugValue:lh,useDeferredValue:function(i,s){var a=_t();return Ye===null?oh(a,i,s):Cm(a,Ye.memoizedState,i,s)},useTransition:function(){var i=rh(mr)[0],s=_t().memoizedState;return[typeof i=="boolean"?i:Ra(i),s]},useSyncExternalStore:Qp,useId:km,useHostTransitionStatus:uh,useFormState:fm,useActionState:fm,useOptimistic:function(i,s){var a=_t();return Ye!==null?sm(a,Ye,i,s):(a.baseState=i,[i,a.queue.dispatch])},useMemoCache:th,useCacheRefresh:Tm};Mm.useEffectEvent=mm;function fh(i,s,a,o){s=i.memoizedState,a=a(o,s),a=a==null?s:m({},s,a),i.memoizedState=a,i.lanes===0&&(i.updateQueue.baseState=a)}var _h={enqueueSetState:function(i,s,a){i=i._reactInternals;var o=wi(),h=Gr(o);h.payload=s,a!=null&&(h.callback=a),s=qr(i,h,o),s!==null&&(ci(s,i,o),xa(s,i,o))},enqueueReplaceState:function(i,s,a){i=i._reactInternals;var o=wi(),h=Gr(o);h.tag=1,h.payload=s,a!=null&&(h.callback=a),s=qr(i,h,o),s!==null&&(ci(s,i,o),xa(s,i,o))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var a=wi(),o=Gr(a);o.tag=2,s!=null&&(o.callback=s),s=qr(i,o,a),s!==null&&(ci(s,i,a),xa(s,i,a))}};function Nm(i,s,a,o,h,p,g){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(o,p,g):s.prototype&&s.prototype.isPureReactComponent?!ga(a,o)||!ga(h,p):!0}function Bm(i,s,a,o){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,o),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,o),s.state!==i&&_h.enqueueReplaceState(s,s.state,null)}function Bs(i,s){var a=s;if("ref"in s){a={};for(var o in s)o!=="ref"&&(a[o]=s[o])}if(i=i.defaultProps){a===s&&(a=m({},a));for(var h in i)a[h]===void 0&&(a[h]=i[h])}return a}function zm(i){Yl(i)}function Pm(i){console.error(i)}function Im(i){Yl(i)}function vo(i,s){try{var a=i.onUncaughtError;a(s.value,{componentStack:s.stack})}catch(o){setTimeout(function(){throw o})}}function Hm(i,s,a){try{var o=i.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function ph(i,s,a){return a=Gr(a),a.tag=3,a.payload={element:null},a.callback=function(){vo(i,s)},a}function Um(i){return i=Gr(i),i.tag=3,i}function jm(i,s,a,o){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var p=o.value;i.payload=function(){return h(p)},i.callback=function(){Hm(s,a,o)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(i.callback=function(){Hm(s,a,o),typeof h!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function pw(i,s,a,o,h){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(s=a.alternate,s!==null&&Sn(s,a,h,!0),a=vi.current,a!==null){switch(a.tag){case 31:case 13:return Mi===null?Do():a.alternate===null&&ut===0&&(ut=3),a.flags&=-257,a.flags|=65536,a.lanes=h,o===so?a.flags|=16384:(s=a.updateQueue,s===null?a.updateQueue=new Set([o]):s.add(o),Uh(i,o,h)),!1;case 22:return a.flags|=65536,o===so?a.flags|=16384:(s=a.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=s):(a=s.retryQueue,a===null?s.retryQueue=new Set([o]):a.add(o)),Uh(i,o,h)),!1}throw Error(n(435,a.tag))}return Uh(i,o,h),Do(),!1}if(He)return s=vi.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=h,o!==Nu&&(i=Error(n(422),{cause:o}),Sa(Ri(i,a)))):(o!==Nu&&(s=Error(n(423),{cause:o}),Sa(Ri(s,a))),i=i.current.alternate,i.flags|=65536,h&=-h,i.lanes|=h,o=Ri(o,a),h=ph(i.stateNode,o,h),qu(i,h),ut!==4&&(ut=2)),!1;var p=Error(n(520),{cause:o});if(p=Ri(p,a),Ha===null?Ha=[p]:Ha.push(p),ut!==4&&(ut=2),s===null)return!0;o=Ri(o,a),a=s;do{switch(a.tag){case 3:return a.flags|=65536,i=h&-h,a.lanes|=i,i=ph(a.stateNode,o,i),qu(a,i),!1;case 1:if(s=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Zr===null||!Zr.has(p))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Um(h),jm(h,i,a,o),qu(a,h),!1}a=a.return}while(a!==null);return!1}var mh=Error(n(461)),yt=!1;function $t(i,s,a,o){s.child=i===null?qp(s,null,a,o):Ms(s,i.child,a,o)}function Vm(i,s,a,o,h){a=a.render;var p=s.ref;if("ref"in o){var g={};for(var w in o)w!=="ref"&&(g[w]=o[w])}else g=o;return Rs(s),o=Zu(i,s,a,g,p,h),w=Qu(),i!==null&&!yt?(Ju(i,s,h),gr(i,s,h)):(He&&w&&Ou(s),s.flags|=1,$t(i,s,o,h),s.child)}function $m(i,s,a,o,h){if(i===null){var p=a.type;return typeof p=="function"&&!Ru(p)&&p.defaultProps===void 0&&a.compare===null?(s.tag=15,s.type=p,Gm(i,s,p,o,h)):(i=Ql(a.type,null,o,s,s.mode,h),i.ref=s.ref,i.return=s,s.child=i)}if(p=i.child,!Eh(i,h)){var g=p.memoizedProps;if(a=a.compare,a=a!==null?a:ga,a(g,o)&&i.ref===s.ref)return gr(i,s,h)}return s.flags|=1,i=hr(p,o),i.ref=s.ref,i.return=s,s.child=i}function Gm(i,s,a,o,h){if(i!==null){var p=i.memoizedProps;if(ga(p,o)&&i.ref===s.ref)if(yt=!1,s.pendingProps=o=p,Eh(i,h))(i.flags&131072)!==0&&(yt=!0);else return s.lanes=i.lanes,gr(i,s,h)}return gh(i,s,a,o,h)}function qm(i,s,a,o){var h=o.children,p=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((s.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,i!==null){for(o=s.child=i.child,h=0;o!==null;)h=h|o.lanes|o.childLanes,o=o.sibling;o=h&~p}else o=0,s.child=null;return Wm(i,s,p,a,o)}if((a&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&io(s,p!==null?p.cachePool:null),p!==null?Yp(s,p):Fu(),Kp(s);else return o=s.lanes=536870912,Wm(i,s,p!==null?p.baseLanes|a:a,a,o)}else p!==null?(io(s,p.cachePool),Yp(s,p),Fr(),s.memoizedState=null):(i!==null&&io(s,null),Fu(),Fr());return $t(i,s,h,a),s.child}function Oa(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function Wm(i,s,a,o,h){var p=ju();return p=p===null?null:{parent:gt._currentValue,pool:p},s.memoizedState={baseLanes:a,cachePool:p},i!==null&&io(s,null),Fu(),Kp(s),i!==null&&Sn(i,s,o,!0),s.childLanes=h,null}function yo(i,s){return s=bo({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function Fm(i,s,a){return Ms(s,i.child,null,a),i=yo(s,s.pendingProps),i.flags|=2,yi(s),s.memoizedState=null,i}function mw(i,s,a){var o=s.pendingProps,h=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(He){if(o.mode==="hidden")return i=yo(s,o),s.lanes=536870912,Oa(null,i);if(Ku(s),(i=tt)?(i=nv(i,Oi),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Hr!==null?{id:Xi,overflow:Zi}:null,retryLane:536870912,hydrationErrors:null},a=Dp(i),a.return=s,s.child=a,jt=s,tt=null)):i=null,i===null)throw jr(s);return s.lanes=536870912,null}return yo(s,o)}var p=i.memoizedState;if(p!==null){var g=p.dehydrated;if(Ku(s),h)if(s.flags&256)s.flags&=-257,s=Fm(i,s,a);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(n(558));else if(yt||Sn(i,s,a,!1),h=(a&i.childLanes)!==0,yt||h){if(o=Qe,o!==null&&(g=P_(o,a),g!==0&&g!==p.retryLane))throw p.retryLane=g,xs(i,g),ci(o,i,g),mh;Do(),s=Fm(i,s,a)}else i=p.treeContext,tt=Ni(g.nextSibling),jt=s,He=!0,Ur=null,Oi=!1,i!==null&&Mp(s,i),s=yo(s,o),s.flags|=4096;return s}return i=hr(i.child,{mode:o.mode,children:o.children}),i.ref=s.ref,s.child=i,i.return=s,i}function So(i,s){var a=s.ref;if(a===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(n(284));(i===null||i.ref!==a)&&(s.flags|=4194816)}}function gh(i,s,a,o,h){return Rs(s),a=Zu(i,s,a,o,void 0,h),o=Qu(),i!==null&&!yt?(Ju(i,s,h),gr(i,s,h)):(He&&o&&Ou(s),s.flags|=1,$t(i,s,a,h),s.child)}function Ym(i,s,a,o,h,p){return Rs(s),s.updateQueue=null,a=Zp(s,o,a,h),Xp(i),o=Qu(),i!==null&&!yt?(Ju(i,s,p),gr(i,s,p)):(He&&o&&Ou(s),s.flags|=1,$t(i,s,a,p),s.child)}function Km(i,s,a,o,h){if(Rs(s),s.stateNode===null){var p=mn,g=a.contextType;typeof g=="object"&&g!==null&&(p=Vt(g)),p=new a(o,p),s.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=_h,s.stateNode=p,p._reactInternals=s,p=s.stateNode,p.props=o,p.state=s.memoizedState,p.refs={},$u(s),g=a.contextType,p.context=typeof g=="object"&&g!==null?Vt(g):mn,p.state=s.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(fh(s,a,g,o),p.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(g=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),g!==p.state&&_h.enqueueReplaceState(p,p.state,null),ka(s,o,p,h),Aa(),p.state=s.memoizedState),typeof p.componentDidMount=="function"&&(s.flags|=4194308),o=!0}else if(i===null){p=s.stateNode;var w=s.memoizedProps,A=Bs(a,w);p.props=A;var z=p.context,G=a.contextType;g=mn,typeof G=="object"&&G!==null&&(g=Vt(G));var Z=a.getDerivedStateFromProps;G=typeof Z=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=s.pendingProps!==w,G||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||z!==g)&&Bm(s,p,o,g),$r=!1;var P=s.memoizedState;p.state=P,ka(s,o,p,h),Aa(),z=s.memoizedState,w||P!==z||$r?(typeof Z=="function"&&(fh(s,a,Z,o),z=s.memoizedState),(A=$r||Nm(s,a,A,o,P,z,g))?(G||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(s.flags|=4194308)):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=o,s.memoizedState=z),p.props=o,p.state=z,p.context=g,o=A):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),o=!1)}else{p=s.stateNode,Gu(i,s),g=s.memoizedProps,G=Bs(a,g),p.props=G,Z=s.pendingProps,P=p.context,z=a.contextType,A=mn,typeof z=="object"&&z!==null&&(A=Vt(z)),w=a.getDerivedStateFromProps,(z=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(g!==Z||P!==A)&&Bm(s,p,o,A),$r=!1,P=s.memoizedState,p.state=P,ka(s,o,p,h),Aa();var U=s.memoizedState;g!==Z||P!==U||$r||i!==null&&i.dependencies!==null&&eo(i.dependencies)?(typeof w=="function"&&(fh(s,a,w,o),U=s.memoizedState),(G=$r||Nm(s,a,G,o,P,U,A)||i!==null&&i.dependencies!==null&&eo(i.dependencies))?(z||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,U,A),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,U,A)),typeof p.componentDidUpdate=="function"&&(s.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof p.componentDidUpdate!="function"||g===i.memoizedProps&&P===i.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||g===i.memoizedProps&&P===i.memoizedState||(s.flags|=1024),s.memoizedProps=o,s.memoizedState=U),p.props=o,p.state=U,p.context=A,o=G):(typeof p.componentDidUpdate!="function"||g===i.memoizedProps&&P===i.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||g===i.memoizedProps&&P===i.memoizedState||(s.flags|=1024),o=!1)}return p=o,So(i,s),o=(s.flags&128)!==0,p||o?(p=s.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:p.render(),s.flags|=1,i!==null&&o?(s.child=Ms(s,i.child,null,h),s.child=Ms(s,null,a,h)):$t(i,s,a,h),s.memoizedState=p.state,i=s.child):i=gr(i,s,h),i}function Xm(i,s,a,o){return ks(),s.flags|=256,$t(i,s,a,o),s.child}var vh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yh(i){return{baseLanes:i,cachePool:Hp()}}function Sh(i,s,a){return i=i!==null?i.childLanes&~a:0,s&&(i|=bi),i}function Zm(i,s,a){var o=s.pendingProps,h=!1,p=(s.flags&128)!==0,g;if((g=p)||(g=i!==null&&i.memoizedState===null?!1:(ft.current&2)!==0),g&&(h=!0,s.flags&=-129),g=(s.flags&32)!==0,s.flags&=-33,i===null){if(He){if(h?Wr(s):Fr(),(i=tt)?(i=nv(i,Oi),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Hr!==null?{id:Xi,overflow:Zi}:null,retryLane:536870912,hydrationErrors:null},a=Dp(i),a.return=s,s.child=a,jt=s,tt=null)):i=null,i===null)throw jr(s);return id(i)?s.lanes=32:s.lanes=536870912,null}var w=o.children;return o=o.fallback,h?(Fr(),h=s.mode,w=bo({mode:"hidden",children:w},h),o=As(o,h,a,null),w.return=s,o.return=s,w.sibling=o,s.child=w,o=s.child,o.memoizedState=yh(a),o.childLanes=Sh(i,g,a),s.memoizedState=vh,Oa(null,o)):(Wr(s),bh(s,w))}var A=i.memoizedState;if(A!==null&&(w=A.dehydrated,w!==null)){if(p)s.flags&256?(Wr(s),s.flags&=-257,s=wh(i,s,a)):s.memoizedState!==null?(Fr(),s.child=i.child,s.flags|=128,s=null):(Fr(),w=o.fallback,h=s.mode,o=bo({mode:"visible",children:o.children},h),w=As(w,h,a,null),w.flags|=2,o.return=s,w.return=s,o.sibling=w,s.child=o,Ms(s,i.child,null,a),o=s.child,o.memoizedState=yh(a),o.childLanes=Sh(i,g,a),s.memoizedState=vh,s=Oa(null,o));else if(Wr(s),id(w)){if(g=w.nextSibling&&w.nextSibling.dataset,g)var z=g.dgst;g=z,o=Error(n(419)),o.stack="",o.digest=g,Sa({value:o,source:null,stack:null}),s=wh(i,s,a)}else if(yt||Sn(i,s,a,!1),g=(a&i.childLanes)!==0,yt||g){if(g=Qe,g!==null&&(o=P_(g,a),o!==0&&o!==A.retryLane))throw A.retryLane=o,xs(i,o),ci(g,i,o),mh;td(w)||Do(),s=wh(i,s,a)}else td(w)?(s.flags|=192,s.child=i.child,s=null):(i=A.treeContext,tt=Ni(w.nextSibling),jt=s,He=!0,Ur=null,Oi=!1,i!==null&&Mp(s,i),s=bh(s,o.children),s.flags|=4096);return s}return h?(Fr(),w=o.fallback,h=s.mode,A=i.child,z=A.sibling,o=hr(A,{mode:"hidden",children:o.children}),o.subtreeFlags=A.subtreeFlags&65011712,z!==null?w=hr(z,w):(w=As(w,h,a,null),w.flags|=2),w.return=s,o.return=s,o.sibling=w,s.child=o,Oa(null,o),o=s.child,w=i.child.memoizedState,w===null?w=yh(a):(h=w.cachePool,h!==null?(A=gt._currentValue,h=h.parent!==A?{parent:A,pool:A}:h):h=Hp(),w={baseLanes:w.baseLanes|a,cachePool:h}),o.memoizedState=w,o.childLanes=Sh(i,g,a),s.memoizedState=vh,Oa(i.child,o)):(Wr(s),a=i.child,i=a.sibling,a=hr(a,{mode:"visible",children:o.children}),a.return=s,a.sibling=null,i!==null&&(g=s.deletions,g===null?(s.deletions=[i],s.flags|=16):g.push(i)),s.child=a,s.memoizedState=null,a)}function bh(i,s){return s=bo({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function bo(i,s){return i=gi(22,i,null,s),i.lanes=0,i}function wh(i,s,a){return Ms(s,i.child,null,a),i=bh(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function Qm(i,s,a){i.lanes|=s;var o=i.alternate;o!==null&&(o.lanes|=s),Pu(i.return,s,a)}function Ch(i,s,a,o,h,p){var g=i.memoizedState;g===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:h,treeForkCount:p}:(g.isBackwards=s,g.rendering=null,g.renderingStartTime=0,g.last=o,g.tail=a,g.tailMode=h,g.treeForkCount=p)}function Jm(i,s,a){var o=s.pendingProps,h=o.revealOrder,p=o.tail;o=o.children;var g=ft.current,w=(g&2)!==0;if(w?(g=g&1|2,s.flags|=128):g&=1,X(ft,g),$t(i,s,o,a),o=He?ya:0,!w&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Qm(i,a,s);else if(i.tag===19)Qm(i,a,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(h){case"forwards":for(a=s.child,h=null;a!==null;)i=a.alternate,i!==null&&oo(i)===null&&(h=a),a=a.sibling;a=h,a===null?(h=s.child,s.child=null):(h=a.sibling,a.sibling=null),Ch(s,!1,h,a,p,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,h=s.child,s.child=null;h!==null;){if(i=h.alternate,i!==null&&oo(i)===null){s.child=h;break}i=h.sibling,h.sibling=a,a=h,h=i}Ch(s,!0,a,null,p,o);break;case"together":Ch(s,!1,null,null,void 0,o);break;default:s.memoizedState=null}return s.child}function gr(i,s,a){if(i!==null&&(s.dependencies=i.dependencies),Xr|=s.lanes,(a&s.childLanes)===0)if(i!==null){if(Sn(i,s,a,!1),(a&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,a=hr(i,i.pendingProps),s.child=a,a.return=s;i.sibling!==null;)i=i.sibling,a=a.sibling=hr(i,i.pendingProps),a.return=s;a.sibling=null}return s.child}function Eh(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&eo(i)))}function gw(i,s,a){switch(s.tag){case 3:Fe(s,s.stateNode.containerInfo),Vr(s,gt,i.memoizedState.cache),ks();break;case 27:case 5:Ft(s);break;case 4:Fe(s,s.stateNode.containerInfo);break;case 10:Vr(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Ku(s),null;break;case 13:var o=s.memoizedState;if(o!==null)return o.dehydrated!==null?(Wr(s),s.flags|=128,null):(a&s.child.childLanes)!==0?Zm(i,s,a):(Wr(s),i=gr(i,s,a),i!==null?i.sibling:null);Wr(s);break;case 19:var h=(i.flags&128)!==0;if(o=(a&s.childLanes)!==0,o||(Sn(i,s,a,!1),o=(a&s.childLanes)!==0),h){if(o)return Jm(i,s,a);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),X(ft,ft.current),o)break;return null;case 22:return s.lanes=0,qm(i,s,a,s.pendingProps);case 24:Vr(s,gt,i.memoizedState.cache)}return gr(i,s,a)}function eg(i,s,a){if(i!==null)if(i.memoizedProps!==s.pendingProps)yt=!0;else{if(!Eh(i,a)&&(s.flags&128)===0)return yt=!1,gw(i,s,a);yt=(i.flags&131072)!==0}else yt=!1,He&&(s.flags&1048576)!==0&&Op(s,ya,s.index);switch(s.lanes=0,s.tag){case 16:e:{var o=s.pendingProps;if(i=Ls(s.elementType),s.type=i,typeof i=="function")Ru(i)?(o=Bs(i,o),s.tag=1,s=Km(null,s,i,o,a)):(s.tag=0,s=gh(null,s,i,o,a));else{if(i!=null){var h=i.$$typeof;if(h===I){s.tag=11,s=Vm(null,s,i,o,a);break e}else if(h===te){s.tag=14,s=$m(null,s,i,o,a);break e}}throw s=re(i)||i,Error(n(306,s,""))}}return s;case 0:return gh(i,s,s.type,s.pendingProps,a);case 1:return o=s.type,h=Bs(o,s.pendingProps),Km(i,s,o,h,a);case 3:e:{if(Fe(s,s.stateNode.containerInfo),i===null)throw Error(n(387));o=s.pendingProps;var p=s.memoizedState;h=p.element,Gu(i,s),ka(s,o,null,a);var g=s.memoizedState;if(o=g.cache,Vr(s,gt,o),o!==p.cache&&Iu(s,[gt],a,!0),Aa(),o=g.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:g.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=Xm(i,s,o,a);break e}else if(o!==h){h=Ri(Error(n(424)),s),Sa(h),s=Xm(i,s,o,a);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(tt=Ni(i.firstChild),jt=s,He=!0,Ur=null,Oi=!0,a=qp(s,null,o,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ks(),o===h){s=gr(i,s,a);break e}$t(i,s,o,a)}s=s.child}return s;case 26:return So(i,s),i===null?(a=hv(s.type,null,s.pendingProps,null))?s.memoizedState=a:He||(a=s.type,i=s.pendingProps,o=Po(pe.current).createElement(a),o[Ut]=s,o[ri]=i,Gt(o,a,i),Lt(o),s.stateNode=o):s.memoizedState=hv(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Ft(s),i===null&&He&&(o=s.stateNode=ov(s.type,s.pendingProps,pe.current),jt=s,Oi=!0,h=tt,ts(s.type)?(rd=h,tt=Ni(o.firstChild)):tt=h),$t(i,s,s.pendingProps.children,a),So(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&He&&((h=o=tt)&&(o=Fw(o,s.type,s.pendingProps,Oi),o!==null?(s.stateNode=o,jt=s,tt=Ni(o.firstChild),Oi=!1,h=!0):h=!1),h||jr(s)),Ft(s),h=s.type,p=s.pendingProps,g=i!==null?i.memoizedProps:null,o=p.children,Qh(h,p)?o=null:g!==null&&Qh(h,g)&&(s.flags|=32),s.memoizedState!==null&&(h=Zu(i,s,ow,null,null,a),Fa._currentValue=h),So(i,s),$t(i,s,o,a),s.child;case 6:return i===null&&He&&((i=a=tt)&&(a=Yw(a,s.pendingProps,Oi),a!==null?(s.stateNode=a,jt=s,tt=null,i=!0):i=!1),i||jr(s)),null;case 13:return Zm(i,s,a);case 4:return Fe(s,s.stateNode.containerInfo),o=s.pendingProps,i===null?s.child=Ms(s,null,o,a):$t(i,s,o,a),s.child;case 11:return Vm(i,s,s.type,s.pendingProps,a);case 7:return $t(i,s,s.pendingProps,a),s.child;case 8:return $t(i,s,s.pendingProps.children,a),s.child;case 12:return $t(i,s,s.pendingProps.children,a),s.child;case 10:return o=s.pendingProps,Vr(s,s.type,o.value),$t(i,s,o.children,a),s.child;case 9:return h=s.type._context,o=s.pendingProps.children,Rs(s),h=Vt(h),o=o(h),s.flags|=1,$t(i,s,o,a),s.child;case 14:return $m(i,s,s.type,s.pendingProps,a);case 15:return Gm(i,s,s.type,s.pendingProps,a);case 19:return Jm(i,s,a);case 31:return mw(i,s,a);case 22:return qm(i,s,a,s.pendingProps);case 24:return Rs(s),o=Vt(gt),i===null?(h=ju(),h===null&&(h=Qe,p=Hu(),h.pooledCache=p,p.refCount++,p!==null&&(h.pooledCacheLanes|=a),h=p),s.memoizedState={parent:o,cache:h},$u(s),Vr(s,gt,h)):((i.lanes&a)!==0&&(Gu(i,s),ka(s,null,null,a),Aa()),h=i.memoizedState,p=s.memoizedState,h.parent!==o?(h={parent:o,cache:o},s.memoizedState=h,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=h),Vr(s,gt,o)):(o=p.cache,Vr(s,gt,o),o!==h.cache&&Iu(s,[gt],a,!0))),$t(i,s,s.pendingProps.children,a),s.child;case 29:throw s.pendingProps}throw Error(n(156,s.tag))}function vr(i){i.flags|=4}function xh(i,s,a,o,h){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(h&335544128)===h)if(i.stateNode.complete)i.flags|=8192;else if(kg())i.flags|=8192;else throw Os=so,Vu}else i.flags&=-16777217}function tg(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!mv(s))if(kg())i.flags|=8192;else throw Os=so,Vu}function wo(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?N_():536870912,i.lanes|=s,On|=s)}function Ma(i,s){if(!He)switch(i.tailMode){case"hidden":s=i.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i.tail=null:a.sibling=null;break;case"collapsed":a=i.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:o.sibling=null}}function it(i){var s=i.alternate!==null&&i.alternate.child===i.child,a=0,o=0;if(s)for(var h=i.child;h!==null;)a|=h.lanes|h.childLanes,o|=h.subtreeFlags&65011712,o|=h.flags&65011712,h.return=i,h=h.sibling;else for(h=i.child;h!==null;)a|=h.lanes|h.childLanes,o|=h.subtreeFlags,o|=h.flags,h.return=i,h=h.sibling;return i.subtreeFlags|=o,i.childLanes=a,s}function vw(i,s,a){var o=s.pendingProps;switch(Mu(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(s),null;case 1:return it(s),null;case 3:return a=s.stateNode,o=null,i!==null&&(o=i.memoizedState.cache),s.memoizedState.cache!==o&&(s.flags|=2048),_r(gt),ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(i===null||i.child===null)&&(yn(s)?vr(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Bu())),it(s),null;case 26:var h=s.type,p=s.memoizedState;return i===null?(vr(s),p!==null?(it(s),tg(s,p)):(it(s),xh(s,h,null,o,a))):p?p!==i.memoizedState?(vr(s),it(s),tg(s,p)):(it(s),s.flags&=-16777217):(i=i.memoizedProps,i!==o&&vr(s),it(s),xh(s,h,i,o,a)),null;case 27:if($e(s),a=pe.current,h=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==o&&vr(s);else{if(!o){if(s.stateNode===null)throw Error(n(166));return it(s),null}i=ee.current,yn(s)?Np(s):(i=ov(h,o,a),s.stateNode=i,vr(s))}return it(s),null;case 5:if($e(s),h=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==o&&vr(s);else{if(!o){if(s.stateNode===null)throw Error(n(166));return it(s),null}if(p=ee.current,yn(s))Np(s);else{var g=Po(pe.current);switch(p){case 1:p=g.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:p=g.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":p=g.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":p=g.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":p=g.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?g.createElement("select",{is:o.is}):g.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?g.createElement(h,{is:o.is}):g.createElement(h)}}p[Ut]=s,p[ri]=o;e:for(g=s.child;g!==null;){if(g.tag===5||g.tag===6)p.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===s)break e;for(;g.sibling===null;){if(g.return===null||g.return===s)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}s.stateNode=p;e:switch(Gt(p,h,o),h){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&vr(s)}}return it(s),xh(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,a),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==o&&vr(s);else{if(typeof o!="string"&&s.stateNode===null)throw Error(n(166));if(i=pe.current,yn(s)){if(i=s.stateNode,a=s.memoizedProps,o=null,h=jt,h!==null)switch(h.tag){case 27:case 5:o=h.memoizedProps}i[Ut]=s,i=!!(i.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Zg(i.nodeValue,a)),i||jr(s,!0)}else i=Po(i).createTextNode(o),i[Ut]=s,s.stateNode=i}return it(s),null;case 31:if(a=s.memoizedState,i===null||i.memoizedState!==null){if(o=yn(s),a!==null){if(i===null){if(!o)throw Error(n(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(557));i[Ut]=s}else ks(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;it(s),i=!1}else a=Bu(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=a),i=!0;if(!i)return s.flags&256?(yi(s),s):(yi(s),null);if((s.flags&128)!==0)throw Error(n(558))}return it(s),null;case 13:if(o=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(h=yn(s),o!==null&&o.dehydrated!==null){if(i===null){if(!h)throw Error(n(318));if(h=s.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));h[Ut]=s}else ks(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;it(s),h=!1}else h=Bu(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=h),h=!0;if(!h)return s.flags&256?(yi(s),s):(yi(s),null)}return yi(s),(s.flags&128)!==0?(s.lanes=a,s):(a=o!==null,i=i!==null&&i.memoizedState!==null,a&&(o=s.child,h=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(h=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==h&&(o.flags|=2048)),a!==i&&a&&(s.child.flags|=8192),wo(s,s.updateQueue),it(s),null);case 4:return ze(),i===null&&Fh(s.stateNode.containerInfo),it(s),null;case 10:return _r(s.type),it(s),null;case 19:if(M(ft),o=s.memoizedState,o===null)return it(s),null;if(h=(s.flags&128)!==0,p=o.rendering,p===null)if(h)Ma(o,!1);else{if(ut!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(p=oo(i),p!==null){for(s.flags|=128,Ma(o,!1),i=p.updateQueue,s.updateQueue=i,wo(s,i),s.subtreeFlags=0,i=a,a=s.child;a!==null;)Rp(a,i),a=a.sibling;return X(ft,ft.current&1|2),He&&dr(s,o.treeForkCount),s.child}i=i.sibling}o.tail!==null&&fi()>ko&&(s.flags|=128,h=!0,Ma(o,!1),s.lanes=4194304)}else{if(!h)if(i=oo(p),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,wo(s,i),Ma(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!He)return it(s),null}else 2*fi()-o.renderingStartTime>ko&&a!==536870912&&(s.flags|=128,h=!0,Ma(o,!1),s.lanes=4194304);o.isBackwards?(p.sibling=s.child,s.child=p):(i=o.last,i!==null?i.sibling=p:s.child=p,o.last=p)}return o.tail!==null?(i=o.tail,o.rendering=i,o.tail=i.sibling,o.renderingStartTime=fi(),i.sibling=null,a=ft.current,X(ft,h?a&1|2:a&1),He&&dr(s,o.treeForkCount),i):(it(s),null);case 22:case 23:return yi(s),Yu(),o=s.memoizedState!==null,i!==null?i.memoizedState!==null!==o&&(s.flags|=8192):o&&(s.flags|=8192),o?(a&536870912)!==0&&(s.flags&128)===0&&(it(s),s.subtreeFlags&6&&(s.flags|=8192)):it(s),a=s.updateQueue,a!==null&&wo(s,a.retryQueue),a=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==a&&(s.flags|=2048),i!==null&&M(Ds),null;case 24:return a=null,i!==null&&(a=i.memoizedState.cache),s.memoizedState.cache!==a&&(s.flags|=2048),_r(gt),it(s),null;case 25:return null;case 30:return null}throw Error(n(156,s.tag))}function yw(i,s){switch(Mu(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return _r(gt),ze(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return $e(s),null;case 31:if(s.memoizedState!==null){if(yi(s),s.alternate===null)throw Error(n(340));ks()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(yi(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));ks()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return M(ft),null;case 4:return ze(),null;case 10:return _r(s.type),null;case 22:case 23:return yi(s),Yu(),i!==null&&M(Ds),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return _r(gt),null;case 25:return null;default:return null}}function ig(i,s){switch(Mu(s),s.tag){case 3:_r(gt),ze();break;case 26:case 27:case 5:$e(s);break;case 4:ze();break;case 31:s.memoizedState!==null&&yi(s);break;case 13:yi(s);break;case 19:M(ft);break;case 10:_r(s.type);break;case 22:case 23:yi(s),Yu(),i!==null&&M(Ds);break;case 24:_r(gt)}}function Na(i,s){try{var a=s.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var h=o.next;a=h;do{if((a.tag&i)===i){o=void 0;var p=a.create,g=a.inst;o=p(),g.destroy=o}a=a.next}while(a!==h)}}catch(w){We(s,s.return,w)}}function Yr(i,s,a){try{var o=s.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var p=h.next;o=p;do{if((o.tag&i)===i){var g=o.inst,w=g.destroy;if(w!==void 0){g.destroy=void 0,h=s;var A=a,z=w;try{z()}catch(G){We(h,A,G)}}}o=o.next}while(o!==p)}}catch(G){We(s,s.return,G)}}function rg(i){var s=i.updateQueue;if(s!==null){var a=i.stateNode;try{Fp(s,a)}catch(o){We(i,i.return,o)}}}function sg(i,s,a){a.props=Bs(i.type,i.memoizedProps),a.state=i.memoizedState;try{a.componentWillUnmount()}catch(o){We(i,s,o)}}function Ba(i,s){try{var a=i.ref;if(a!==null){switch(i.tag){case 26:case 27:case 5:var o=i.stateNode;break;case 30:o=i.stateNode;break;default:o=i.stateNode}typeof a=="function"?i.refCleanup=a(o):a.current=o}}catch(h){We(i,s,h)}}function Qi(i,s){var a=i.ref,o=i.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(h){We(i,s,h)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){We(i,s,h)}else a.current=null}function ng(i){var s=i.type,a=i.memoizedProps,o=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(h){We(i,i.return,h)}}function Ah(i,s,a){try{var o=i.stateNode;jw(o,i.type,a,s),o[ri]=s}catch(h){We(i,i.return,h)}}function ag(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ts(i.type)||i.tag===4}function kh(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||ag(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ts(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Th(i,s,a){var o=i.tag;if(o===5||o===6)i=i.stateNode,s?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(i,s):(s=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.appendChild(i),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=cr));else if(o!==4&&(o===27&&ts(i.type)&&(a=i.stateNode,s=null),i=i.child,i!==null))for(Th(i,s,a),i=i.sibling;i!==null;)Th(i,s,a),i=i.sibling}function Co(i,s,a){var o=i.tag;if(o===5||o===6)i=i.stateNode,s?a.insertBefore(i,s):a.appendChild(i);else if(o!==4&&(o===27&&ts(i.type)&&(a=i.stateNode),i=i.child,i!==null))for(Co(i,s,a),i=i.sibling;i!==null;)Co(i,s,a),i=i.sibling}function lg(i){var s=i.stateNode,a=i.memoizedProps;try{for(var o=i.type,h=s.attributes;h.length;)s.removeAttributeNode(h[0]);Gt(s,o,a),s[Ut]=i,s[ri]=a}catch(p){We(i,i.return,p)}}var yr=!1,St=!1,Rh=!1,og=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function Sw(i,s){if(i=i.containerInfo,Xh=Go,i=Sp(i),wu(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else e:{a=(a=i.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var h=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var g=0,w=-1,A=-1,z=0,G=0,Z=i,P=null;t:for(;;){for(var U;Z!==a||h!==0&&Z.nodeType!==3||(w=g+h),Z!==p||o!==0&&Z.nodeType!==3||(A=g+o),Z.nodeType===3&&(g+=Z.nodeValue.length),(U=Z.firstChild)!==null;)P=Z,Z=U;for(;;){if(Z===i)break t;if(P===a&&++z===h&&(w=g),P===p&&++G===o&&(A=g),(U=Z.nextSibling)!==null)break;Z=P,P=Z.parentNode}Z=U}a=w===-1||A===-1?null:{start:w,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Zh={focusedElem:i,selectionRange:a},Go=!1,Ot=s;Ot!==null;)if(s=Ot,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Ot=i;else for(;Ot!==null;){switch(s=Ot,p=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(a=0;a<i.length;a++)h=i[a],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&p!==null){i=void 0,a=s,h=p.memoizedProps,p=p.memoizedState,o=a.stateNode;try{var _e=Bs(a.type,h);i=o.getSnapshotBeforeUpdate(_e,p),o.__reactInternalSnapshotBeforeUpdate=i}catch(be){We(a,a.return,be)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,a=i.nodeType,a===9)ed(i);else if(a===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":ed(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(n(163))}if(i=s.sibling,i!==null){i.return=s.return,Ot=i;break}Ot=s.return}}function cg(i,s,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:br(i,a),o&4&&Na(5,a);break;case 1:if(br(i,a),o&4)if(i=a.stateNode,s===null)try{i.componentDidMount()}catch(g){We(a,a.return,g)}else{var h=Bs(a.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(h,s,i.__reactInternalSnapshotBeforeUpdate)}catch(g){We(a,a.return,g)}}o&64&&rg(a),o&512&&Ba(a,a.return);break;case 3:if(br(i,a),o&64&&(i=a.updateQueue,i!==null)){if(s=null,a.child!==null)switch(a.child.tag){case 27:case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}try{Fp(i,s)}catch(g){We(a,a.return,g)}}break;case 27:s===null&&o&4&&lg(a);case 26:case 5:br(i,a),s===null&&o&4&&ng(a),o&512&&Ba(a,a.return);break;case 12:br(i,a);break;case 31:br(i,a),o&4&&dg(i,a);break;case 13:br(i,a),o&4&&fg(i,a),o&64&&(i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(a=Rw.bind(null,a),Kw(i,a))));break;case 22:if(o=a.memoizedState!==null||yr,!o){s=s!==null&&s.memoizedState!==null||St,h=yr;var p=St;yr=o,(St=s)&&!p?wr(i,a,(a.subtreeFlags&8772)!==0):br(i,a),yr=h,St=p}break;case 30:break;default:br(i,a)}}function ug(i){var s=i.alternate;s!==null&&(i.alternate=null,ug(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&nu(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var st=null,ni=!1;function Sr(i,s,a){for(a=a.child;a!==null;)hg(i,s,a),a=a.sibling}function hg(i,s,a){if(_i&&typeof _i.onCommitFiberUnmount=="function")try{_i.onCommitFiberUnmount(na,a)}catch{}switch(a.tag){case 26:St||Qi(a,s),Sr(i,s,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:St||Qi(a,s);var o=st,h=ni;ts(a.type)&&(st=a.stateNode,ni=!1),Sr(i,s,a),Ga(a.stateNode),st=o,ni=h;break;case 5:St||Qi(a,s);case 6:if(o=st,h=ni,st=null,Sr(i,s,a),st=o,ni=h,st!==null)if(ni)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(a.stateNode)}catch(p){We(a,s,p)}else try{st.removeChild(a.stateNode)}catch(p){We(a,s,p)}break;case 18:st!==null&&(ni?(i=st,rv(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.stateNode),Un(i)):rv(st,a.stateNode));break;case 4:o=st,h=ni,st=a.stateNode.containerInfo,ni=!0,Sr(i,s,a),st=o,ni=h;break;case 0:case 11:case 14:case 15:Yr(2,a,s),St||Yr(4,a,s),Sr(i,s,a);break;case 1:St||(Qi(a,s),o=a.stateNode,typeof o.componentWillUnmount=="function"&&sg(a,s,o)),Sr(i,s,a);break;case 21:Sr(i,s,a);break;case 22:St=(o=St)||a.memoizedState!==null,Sr(i,s,a),St=o;break;default:Sr(i,s,a)}}function dg(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Un(i)}catch(a){We(s,s.return,a)}}}function fg(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Un(i)}catch(a){We(s,s.return,a)}}function bw(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new og),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new og),s;default:throw Error(n(435,i.tag))}}function Eo(i,s){var a=bw(i);s.forEach(function(o){if(!a.has(o)){a.add(o);var h=Dw.bind(null,i,o);o.then(h,h)}})}function ai(i,s){var a=s.deletions;if(a!==null)for(var o=0;o<a.length;o++){var h=a[o],p=i,g=s,w=g;e:for(;w!==null;){switch(w.tag){case 27:if(ts(w.type)){st=w.stateNode,ni=!1;break e}break;case 5:st=w.stateNode,ni=!1;break e;case 3:case 4:st=w.stateNode.containerInfo,ni=!0;break e}w=w.return}if(st===null)throw Error(n(160));hg(p,g,h),st=null,ni=!1,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)_g(s,i),s=s.sibling}var qi=null;function _g(i,s){var a=i.alternate,o=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ai(s,i),li(i),o&4&&(Yr(3,i,i.return),Na(3,i),Yr(5,i,i.return));break;case 1:ai(s,i),li(i),o&512&&(St||a===null||Qi(a,a.return)),o&64&&yr&&(i=i.updateQueue,i!==null&&(o=i.callbacks,o!==null&&(a=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var h=qi;if(ai(s,i),li(i),o&512&&(St||a===null||Qi(a,a.return)),o&4){var p=a!==null?a.memoizedState:null;if(o=i.memoizedState,a===null)if(o===null)if(i.stateNode===null){e:{o=i.type,a=i.memoizedProps,h=h.ownerDocument||h;t:switch(o){case"title":p=h.getElementsByTagName("title")[0],(!p||p[oa]||p[Ut]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=h.createElement(o),h.head.insertBefore(p,h.querySelector("head > title"))),Gt(p,o,a),p[Ut]=i,Lt(p),o=p;break e;case"link":var g=_v("link","href",h).get(o+(a.href||""));if(g){for(var w=0;w<g.length;w++)if(p=g[w],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(w,1);break t}}p=h.createElement(o),Gt(p,o,a),h.head.appendChild(p);break;case"meta":if(g=_v("meta","content",h).get(o+(a.content||""))){for(w=0;w<g.length;w++)if(p=g[w],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(w,1);break t}}p=h.createElement(o),Gt(p,o,a),h.head.appendChild(p);break;default:throw Error(n(468,o))}p[Ut]=i,Lt(p),o=p}i.stateNode=o}else pv(h,i.type,i.stateNode);else i.stateNode=fv(h,o,i.memoizedProps);else p!==o?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,o===null?pv(h,i.type,i.stateNode):fv(h,o,i.memoizedProps)):o===null&&i.stateNode!==null&&Ah(i,i.memoizedProps,a.memoizedProps)}break;case 27:ai(s,i),li(i),o&512&&(St||a===null||Qi(a,a.return)),a!==null&&o&4&&Ah(i,i.memoizedProps,a.memoizedProps);break;case 5:if(ai(s,i),li(i),o&512&&(St||a===null||Qi(a,a.return)),i.flags&32){h=i.stateNode;try{cn(h,"")}catch(_e){We(i,i.return,_e)}}o&4&&i.stateNode!=null&&(h=i.memoizedProps,Ah(i,h,a!==null?a.memoizedProps:h)),o&1024&&(Rh=!0);break;case 6:if(ai(s,i),li(i),o&4){if(i.stateNode===null)throw Error(n(162));o=i.memoizedProps,a=i.stateNode;try{a.nodeValue=o}catch(_e){We(i,i.return,_e)}}break;case 3:if(Uo=null,h=qi,qi=Io(s.containerInfo),ai(s,i),qi=h,li(i),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Un(s.containerInfo)}catch(_e){We(i,i.return,_e)}Rh&&(Rh=!1,pg(i));break;case 4:o=qi,qi=Io(i.stateNode.containerInfo),ai(s,i),li(i),qi=o;break;case 12:ai(s,i),li(i);break;case 31:ai(s,i),li(i),o&4&&(o=i.updateQueue,o!==null&&(i.updateQueue=null,Eo(i,o)));break;case 13:ai(s,i),li(i),i.child.flags&8192&&i.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ao=fi()),o&4&&(o=i.updateQueue,o!==null&&(i.updateQueue=null,Eo(i,o)));break;case 22:h=i.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,z=yr,G=St;if(yr=z||h,St=G||A,ai(s,i),St=G,yr=z,li(i),o&8192)e:for(s=i.stateNode,s._visibility=h?s._visibility&-2:s._visibility|1,h&&(a===null||A||yr||St||zs(i)),a=null,s=i;;){if(s.tag===5||s.tag===26){if(a===null){A=a=s;try{if(p=A.stateNode,h)g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{w=A.stateNode;var Z=A.memoizedProps.style,P=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;w.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(_e){We(A,A.return,_e)}}}else if(s.tag===6){if(a===null){A=s;try{A.stateNode.nodeValue=h?"":A.memoizedProps}catch(_e){We(A,A.return,_e)}}}else if(s.tag===18){if(a===null){A=s;try{var U=A.stateNode;h?sv(U,!0):sv(A.stateNode,!1)}catch(_e){We(A,A.return,_e)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;a===s&&(a=null),s=s.return}a===s&&(a=null),s.sibling.return=s.return,s=s.sibling}o&4&&(o=i.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Eo(i,a))));break;case 19:ai(s,i),li(i),o&4&&(o=i.updateQueue,o!==null&&(i.updateQueue=null,Eo(i,o)));break;case 30:break;case 21:break;default:ai(s,i),li(i)}}function li(i){var s=i.flags;if(s&2){try{for(var a,o=i.return;o!==null;){if(ag(o)){a=o;break}o=o.return}if(a==null)throw Error(n(160));switch(a.tag){case 27:var h=a.stateNode,p=kh(i);Co(i,p,h);break;case 5:var g=a.stateNode;a.flags&32&&(cn(g,""),a.flags&=-33);var w=kh(i);Co(i,w,g);break;case 3:case 4:var A=a.stateNode.containerInfo,z=kh(i);Th(i,z,A);break;default:throw Error(n(161))}}catch(G){We(i,i.return,G)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function pg(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;pg(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function br(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)cg(i,s.alternate,s),s=s.sibling}function zs(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Yr(4,s,s.return),zs(s);break;case 1:Qi(s,s.return);var a=s.stateNode;typeof a.componentWillUnmount=="function"&&sg(s,s.return,a),zs(s);break;case 27:Ga(s.stateNode);case 26:case 5:Qi(s,s.return),zs(s);break;case 22:s.memoizedState===null&&zs(s);break;case 30:zs(s);break;default:zs(s)}i=i.sibling}}function wr(i,s,a){for(a=a&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var o=s.alternate,h=i,p=s,g=p.flags;switch(p.tag){case 0:case 11:case 15:wr(h,p,a),Na(4,p);break;case 1:if(wr(h,p,a),o=p,h=o.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(z){We(o,o.return,z)}if(o=p,h=o.updateQueue,h!==null){var w=o.stateNode;try{var A=h.shared.hiddenCallbacks;if(A!==null)for(h.shared.hiddenCallbacks=null,h=0;h<A.length;h++)Wp(A[h],w)}catch(z){We(o,o.return,z)}}a&&g&64&&rg(p),Ba(p,p.return);break;case 27:lg(p);case 26:case 5:wr(h,p,a),a&&o===null&&g&4&&ng(p),Ba(p,p.return);break;case 12:wr(h,p,a);break;case 31:wr(h,p,a),a&&g&4&&dg(h,p);break;case 13:wr(h,p,a),a&&g&4&&fg(h,p);break;case 22:p.memoizedState===null&&wr(h,p,a),Ba(p,p.return);break;case 30:break;default:wr(h,p,a)}s=s.sibling}}function Dh(i,s){var a=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==a&&(i!=null&&i.refCount++,a!=null&&ba(a))}function Lh(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&ba(i))}function Wi(i,s,a,o){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)mg(i,s,a,o),s=s.sibling}function mg(i,s,a,o){var h=s.flags;switch(s.tag){case 0:case 11:case 15:Wi(i,s,a,o),h&2048&&Na(9,s);break;case 1:Wi(i,s,a,o);break;case 3:Wi(i,s,a,o),h&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&ba(i)));break;case 12:if(h&2048){Wi(i,s,a,o),i=s.stateNode;try{var p=s.memoizedProps,g=p.id,w=p.onPostCommit;typeof w=="function"&&w(g,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(A){We(s,s.return,A)}}else Wi(i,s,a,o);break;case 31:Wi(i,s,a,o);break;case 13:Wi(i,s,a,o);break;case 23:break;case 22:p=s.stateNode,g=s.alternate,s.memoizedState!==null?p._visibility&2?Wi(i,s,a,o):za(i,s):p._visibility&2?Wi(i,s,a,o):(p._visibility|=2,Rn(i,s,a,o,(s.subtreeFlags&10256)!==0||!1)),h&2048&&Dh(g,s);break;case 24:Wi(i,s,a,o),h&2048&&Lh(s.alternate,s);break;default:Wi(i,s,a,o)}}function Rn(i,s,a,o,h){for(h=h&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var p=i,g=s,w=a,A=o,z=g.flags;switch(g.tag){case 0:case 11:case 15:Rn(p,g,w,A,h),Na(8,g);break;case 23:break;case 22:var G=g.stateNode;g.memoizedState!==null?G._visibility&2?Rn(p,g,w,A,h):za(p,g):(G._visibility|=2,Rn(p,g,w,A,h)),h&&z&2048&&Dh(g.alternate,g);break;case 24:Rn(p,g,w,A,h),h&&z&2048&&Lh(g.alternate,g);break;default:Rn(p,g,w,A,h)}s=s.sibling}}function za(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var a=i,o=s,h=o.flags;switch(o.tag){case 22:za(a,o),h&2048&&Dh(o.alternate,o);break;case 24:za(a,o),h&2048&&Lh(o.alternate,o);break;default:za(a,o)}s=s.sibling}}var Pa=8192;function Dn(i,s,a){if(i.subtreeFlags&Pa)for(i=i.child;i!==null;)gg(i,s,a),i=i.sibling}function gg(i,s,a){switch(i.tag){case 26:Dn(i,s,a),i.flags&Pa&&i.memoizedState!==null&&lC(a,qi,i.memoizedState,i.memoizedProps);break;case 5:Dn(i,s,a);break;case 3:case 4:var o=qi;qi=Io(i.stateNode.containerInfo),Dn(i,s,a),qi=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Pa,Pa=16777216,Dn(i,s,a),Pa=o):Dn(i,s,a));break;default:Dn(i,s,a)}}function vg(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Ia(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var o=s[a];Ot=o,Sg(o,i)}vg(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)yg(i),i=i.sibling}function yg(i){switch(i.tag){case 0:case 11:case 15:Ia(i),i.flags&2048&&Yr(9,i,i.return);break;case 3:Ia(i);break;case 12:Ia(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,xo(i)):Ia(i);break;default:Ia(i)}}function xo(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var o=s[a];Ot=o,Sg(o,i)}vg(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Yr(8,s,s.return),xo(s);break;case 22:a=s.stateNode,a._visibility&2&&(a._visibility&=-3,xo(s));break;default:xo(s)}i=i.sibling}}function Sg(i,s){for(;Ot!==null;){var a=Ot;switch(a.tag){case 0:case 11:case 15:Yr(8,a,s);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:ba(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,Ot=o;else e:for(a=i;Ot!==null;){o=Ot;var h=o.sibling,p=o.return;if(ug(o),o===a){Ot=null;break e}if(h!==null){h.return=p,Ot=h;break e}Ot=p}}}var ww={getCacheForType:function(i){var s=Vt(gt),a=s.data.get(i);return a===void 0&&(a=i(),s.data.set(i,a)),a},cacheSignal:function(){return Vt(gt).controller.signal}},Cw=typeof WeakMap=="function"?WeakMap:Map,Ve=0,Qe=null,Ne=null,Pe=0,qe=0,Si=null,Kr=!1,Ln=!1,Oh=!1,Cr=0,ut=0,Xr=0,Ps=0,Mh=0,bi=0,On=0,Ha=null,oi=null,Nh=!1,Ao=0,bg=0,ko=1/0,To=null,Zr=null,Et=0,Qr=null,Mn=null,Er=0,Bh=0,zh=null,wg=null,Ua=0,Ph=null;function wi(){return(Ve&2)!==0&&Pe!==0?Pe&-Pe:D.T!==null?$h():I_()}function Cg(){if(bi===0)if((Pe&536870912)===0||He){var i=Bl;Bl<<=1,(Bl&3932160)===0&&(Bl=262144),bi=i}else bi=536870912;return i=vi.current,i!==null&&(i.flags|=32),bi}function ci(i,s,a){(i===Qe&&(qe===2||qe===9)||i.cancelPendingCommit!==null)&&(Nn(i,0),Jr(i,Pe,bi,!1)),la(i,a),((Ve&2)===0||i!==Qe)&&(i===Qe&&((Ve&2)===0&&(Ps|=a),ut===4&&Jr(i,Pe,bi,!1)),Ji(i))}function Eg(i,s,a){if((Ve&6)!==0)throw Error(n(327));var o=!a&&(s&127)===0&&(s&i.expiredLanes)===0||aa(i,s),h=o?Aw(i,s):Hh(i,s,!0),p=o;do{if(h===0){Ln&&!o&&Jr(i,s,0,!1);break}else{if(a=i.current.alternate,p&&!Ew(a)){h=Hh(i,s,!1),p=!1;continue}if(h===2){if(p=s,i.errorRecoveryDisabledLanes&p)var g=0;else g=i.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){s=g;e:{var w=i;h=Ha;var A=w.current.memoizedState.isDehydrated;if(A&&(Nn(w,g).flags|=256),g=Hh(w,g,!1),g!==2){if(Oh&&!A){w.errorRecoveryDisabledLanes|=p,Ps|=p,h=4;break e}p=oi,oi=h,p!==null&&(oi===null?oi=p:oi.push.apply(oi,p))}h=g}if(p=!1,h!==2)continue}}if(h===1){Nn(i,0),Jr(i,s,0,!0);break}e:{switch(o=i,p=h,p){case 0:case 1:throw Error(n(345));case 4:if((s&4194048)!==s)break;case 6:Jr(o,s,bi,!Kr);break e;case 2:oi=null;break;case 3:case 5:break;default:throw Error(n(329))}if((s&62914560)===s&&(h=Ao+300-fi(),10<h)){if(Jr(o,s,bi,!Kr),Pl(o,0,!0)!==0)break e;Er=s,o.timeoutHandle=tv(xg.bind(null,o,a,oi,To,Nh,s,bi,Ps,On,Kr,p,"Throttled",-0,0),h);break e}xg(o,a,oi,To,Nh,s,bi,Ps,On,Kr,p,null,-0,0)}}break}while(!0);Ji(i)}function xg(i,s,a,o,h,p,g,w,A,z,G,Z,P,U){if(i.timeoutHandle=-1,Z=s.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cr},gg(s,p,Z);var _e=(p&62914560)===p?Ao-fi():(p&4194048)===p?bg-fi():0;if(_e=oC(Z,_e),_e!==null){Er=p,i.cancelPendingCommit=_e(Mg.bind(null,i,s,p,a,o,h,g,w,A,G,Z,null,P,U)),Jr(i,p,g,!z);return}}Mg(i,s,p,a,o,h,g,w,A)}function Ew(i){for(var s=i;;){var a=s.tag;if((a===0||a===11||a===15)&&s.flags&16384&&(a=s.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var h=a[o],p=h.getSnapshot;h=h.value;try{if(!mi(p(),h))return!1}catch{return!1}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Jr(i,s,a,o){s&=~Mh,s&=~Ps,i.suspendedLanes|=s,i.pingedLanes&=~s,o&&(i.warmLanes|=s),o=i.expirationTimes;for(var h=s;0<h;){var p=31-pi(h),g=1<<p;o[p]=-1,h&=~g}a!==0&&B_(i,a,s)}function Ro(){return(Ve&6)===0?(ja(0),!1):!0}function Ih(){if(Ne!==null){if(qe===0)var i=Ne.return;else i=Ne,fr=Ts=null,eh(i),En=null,Ca=0,i=Ne;for(;i!==null;)ig(i.alternate,i),i=i.return;Ne=null}}function Nn(i,s){var a=i.timeoutHandle;a!==-1&&(i.timeoutHandle=-1,Gw(a)),a=i.cancelPendingCommit,a!==null&&(i.cancelPendingCommit=null,a()),Er=0,Ih(),Qe=i,Ne=a=hr(i.current,null),Pe=s,qe=0,Si=null,Kr=!1,Ln=aa(i,s),Oh=!1,On=bi=Mh=Ps=Xr=ut=0,oi=Ha=null,Nh=!1,(s&8)!==0&&(s|=s&32);var o=i.entangledLanes;if(o!==0)for(i=i.entanglements,o&=s;0<o;){var h=31-pi(o),p=1<<h;s|=i[h],o&=~p}return Cr=s,Kl(),a}function Ag(i,s){Te=null,D.H=La,s===Cn||s===ro?(s=Vp(),qe=3):s===Vu?(s=Vp(),qe=4):qe=s===mh?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Si=s,Ne===null&&(ut=1,vo(i,Ri(s,i.current)))}function kg(){var i=vi.current;return i===null?!0:(Pe&4194048)===Pe?Mi===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?i===Mi:!1}function Tg(){var i=D.H;return D.H=La,i===null?La:i}function Rg(){var i=D.A;return D.A=ww,i}function Do(){ut=4,Kr||(Pe&4194048)!==Pe&&vi.current!==null||(Ln=!0),(Xr&134217727)===0&&(Ps&134217727)===0||Qe===null||Jr(Qe,Pe,bi,!1)}function Hh(i,s,a){var o=Ve;Ve|=2;var h=Tg(),p=Rg();(Qe!==i||Pe!==s)&&(To=null,Nn(i,s)),s=!1;var g=ut;e:do try{if(qe!==0&&Ne!==null){var w=Ne,A=Si;switch(qe){case 8:Ih(),g=6;break e;case 3:case 2:case 9:case 6:vi.current===null&&(s=!0);var z=qe;if(qe=0,Si=null,Bn(i,w,A,z),a&&Ln){g=0;break e}break;default:z=qe,qe=0,Si=null,Bn(i,w,A,z)}}xw(),g=ut;break}catch(G){Ag(i,G)}while(!0);return s&&i.shellSuspendCounter++,fr=Ts=null,Ve=o,D.H=h,D.A=p,Ne===null&&(Qe=null,Pe=0,Kl()),g}function xw(){for(;Ne!==null;)Dg(Ne)}function Aw(i,s){var a=Ve;Ve|=2;var o=Tg(),h=Rg();Qe!==i||Pe!==s?(To=null,ko=fi()+500,Nn(i,s)):Ln=aa(i,s);e:do try{if(qe!==0&&Ne!==null){s=Ne;var p=Si;t:switch(qe){case 1:qe=0,Si=null,Bn(i,s,p,1);break;case 2:case 9:if(Up(p)){qe=0,Si=null,Lg(s);break}s=function(){qe!==2&&qe!==9||Qe!==i||(qe=7),Ji(i)},p.then(s,s);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Up(p)?(qe=0,Si=null,Lg(s)):(qe=0,Si=null,Bn(i,s,p,7));break;case 5:var g=null;switch(Ne.tag){case 26:g=Ne.memoizedState;case 5:case 27:var w=Ne;if(g?mv(g):w.stateNode.complete){qe=0,Si=null;var A=w.sibling;if(A!==null)Ne=A;else{var z=w.return;z!==null?(Ne=z,Lo(z)):Ne=null}break t}}qe=0,Si=null,Bn(i,s,p,5);break;case 6:qe=0,Si=null,Bn(i,s,p,6);break;case 8:Ih(),ut=6;break e;default:throw Error(n(462))}}kw();break}catch(G){Ag(i,G)}while(!0);return fr=Ts=null,D.H=o,D.A=h,Ve=a,Ne!==null?0:(Qe=null,Pe=0,Kl(),ut)}function kw(){for(;Ne!==null&&!Ol();)Dg(Ne)}function Dg(i){var s=eg(i.alternate,i,Cr);i.memoizedProps=i.pendingProps,s===null?Lo(i):Ne=s}function Lg(i){var s=i,a=s.alternate;switch(s.tag){case 15:case 0:s=Ym(a,s,s.pendingProps,s.type,void 0,Pe);break;case 11:s=Ym(a,s,s.pendingProps,s.type.render,s.ref,Pe);break;case 5:eh(s);default:ig(a,s),s=Ne=Rp(s,Cr),s=eg(a,s,Cr)}i.memoizedProps=i.pendingProps,s===null?Lo(i):Ne=s}function Bn(i,s,a,o){fr=Ts=null,eh(s),En=null,Ca=0;var h=s.return;try{if(pw(i,h,s,a,Pe)){ut=1,vo(i,Ri(a,i.current)),Ne=null;return}}catch(p){if(h!==null)throw Ne=h,p;ut=1,vo(i,Ri(a,i.current)),Ne=null;return}s.flags&32768?(He||o===1?i=!0:Ln||(Pe&536870912)!==0?i=!1:(Kr=i=!0,(o===2||o===9||o===3||o===6)&&(o=vi.current,o!==null&&o.tag===13&&(o.flags|=16384))),Og(s,i)):Lo(s)}function Lo(i){var s=i;do{if((s.flags&32768)!==0){Og(s,Kr);return}i=s.return;var a=vw(s.alternate,s,Cr);if(a!==null){Ne=a;return}if(s=s.sibling,s!==null){Ne=s;return}Ne=s=i}while(s!==null);ut===0&&(ut=5)}function Og(i,s){do{var a=yw(i.alternate,i);if(a!==null){a.flags&=32767,Ne=a;return}if(a=i.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!s&&(i=i.sibling,i!==null)){Ne=i;return}Ne=i=a}while(i!==null);ut=6,Ne=null}function Mg(i,s,a,o,h,p,g,w,A){i.cancelPendingCommit=null;do Oo();while(Et!==0);if((Ve&6)!==0)throw Error(n(327));if(s!==null){if(s===i.current)throw Error(n(177));if(p=s.lanes|s.childLanes,p|=ku,a1(i,a,p,g,w,A),i===Qe&&(Ne=Qe=null,Pe=0),Mn=s,Qr=i,Er=a,Bh=p,zh=h,wg=o,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Lw(Ml,function(){return Ig(),null})):(i.callbackNode=null,i.callbackPriority=0),o=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||o){o=D.T,D.T=null,h=F.p,F.p=2,g=Ve,Ve|=4;try{Sw(i,s,a)}finally{Ve=g,F.p=h,D.T=o}}Et=1,Ng(),Bg(),zg()}}function Ng(){if(Et===1){Et=0;var i=Qr,s=Mn,a=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var o=F.p;F.p=2;var h=Ve;Ve|=4;try{_g(s,i);var p=Zh,g=Sp(i.containerInfo),w=p.focusedElem,A=p.selectionRange;if(g!==w&&w&&w.ownerDocument&&yp(w.ownerDocument.documentElement,w)){if(A!==null&&wu(w)){var z=A.start,G=A.end;if(G===void 0&&(G=z),"selectionStart"in w)w.selectionStart=z,w.selectionEnd=Math.min(G,w.value.length);else{var Z=w.ownerDocument||document,P=Z&&Z.defaultView||window;if(P.getSelection){var U=P.getSelection(),_e=w.textContent.length,be=Math.min(A.start,_e),Xe=A.end===void 0?be:Math.min(A.end,_e);!U.extend&&be>Xe&&(g=Xe,Xe=be,be=g);var L=vp(w,be),R=vp(w,Xe);if(L&&R&&(U.rangeCount!==1||U.anchorNode!==L.node||U.anchorOffset!==L.offset||U.focusNode!==R.node||U.focusOffset!==R.offset)){var N=Z.createRange();N.setStart(L.node,L.offset),U.removeAllRanges(),be>Xe?(U.addRange(N),U.extend(R.node,R.offset)):(N.setEnd(R.node,R.offset),U.addRange(N))}}}}for(Z=[],U=w;U=U.parentNode;)U.nodeType===1&&Z.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Z.length;w++){var K=Z[w];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Go=!!Xh,Zh=Xh=null}finally{Ve=h,F.p=o,D.T=a}}i.current=s,Et=2}}function Bg(){if(Et===2){Et=0;var i=Qr,s=Mn,a=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var o=F.p;F.p=2;var h=Ve;Ve|=4;try{cg(i,s.alternate,s)}finally{Ve=h,F.p=o,D.T=a}}Et=3}}function zg(){if(Et===4||Et===3){Et=0,Zb();var i=Qr,s=Mn,a=Er,o=wg;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Et=5:(Et=0,Mn=Qr=null,Pg(i,i.pendingLanes));var h=i.pendingLanes;if(h===0&&(Zr=null),ru(a),s=s.stateNode,_i&&typeof _i.onCommitFiberRoot=="function")try{_i.onCommitFiberRoot(na,s,void 0,(s.current.flags&128)===128)}catch{}if(o!==null){s=D.T,h=F.p,F.p=2,D.T=null;try{for(var p=i.onRecoverableError,g=0;g<o.length;g++){var w=o[g];p(w.value,{componentStack:w.stack})}}finally{D.T=s,F.p=h}}(Er&3)!==0&&Oo(),Ji(i),h=i.pendingLanes,(a&261930)!==0&&(h&42)!==0?i===Ph?Ua++:(Ua=0,Ph=i):Ua=0,ja(0)}}function Pg(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,ba(s)))}function Oo(){return Ng(),Bg(),zg(),Ig()}function Ig(){if(Et!==5)return!1;var i=Qr,s=Bh;Bh=0;var a=ru(Er),o=D.T,h=F.p;try{F.p=32>a?32:a,D.T=null,a=zh,zh=null;var p=Qr,g=Er;if(Et=0,Mn=Qr=null,Er=0,(Ve&6)!==0)throw Error(n(331));var w=Ve;if(Ve|=4,yg(p.current),mg(p,p.current,g,a),Ve=w,ja(0,!1),_i&&typeof _i.onPostCommitFiberRoot=="function")try{_i.onPostCommitFiberRoot(na,p)}catch{}return!0}finally{F.p=h,D.T=o,Pg(i,s)}}function Hg(i,s,a){s=Ri(a,s),s=ph(i.stateNode,s,2),i=qr(i,s,2),i!==null&&(la(i,2),Ji(i))}function We(i,s,a){if(i.tag===3)Hg(i,i,a);else for(;s!==null;){if(s.tag===3){Hg(s,i,a);break}else if(s.tag===1){var o=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Zr===null||!Zr.has(o))){i=Ri(a,i),a=Um(2),o=qr(s,a,2),o!==null&&(jm(a,o,s,i),la(o,2),Ji(o));break}}s=s.return}}function Uh(i,s,a){var o=i.pingCache;if(o===null){o=i.pingCache=new Cw;var h=new Set;o.set(s,h)}else h=o.get(s),h===void 0&&(h=new Set,o.set(s,h));h.has(a)||(Oh=!0,h.add(a),i=Tw.bind(null,i,s,a),s.then(i,i))}function Tw(i,s,a){var o=i.pingCache;o!==null&&o.delete(s),i.pingedLanes|=i.suspendedLanes&a,i.warmLanes&=~a,Qe===i&&(Pe&a)===a&&(ut===4||ut===3&&(Pe&62914560)===Pe&&300>fi()-Ao?(Ve&2)===0&&Nn(i,0):Mh|=a,On===Pe&&(On=0)),Ji(i)}function Ug(i,s){s===0&&(s=N_()),i=xs(i,s),i!==null&&(la(i,s),Ji(i))}function Rw(i){var s=i.memoizedState,a=0;s!==null&&(a=s.retryLane),Ug(i,a)}function Dw(i,s){var a=0;switch(i.tag){case 31:case 13:var o=i.stateNode,h=i.memoizedState;h!==null&&(a=h.retryLane);break;case 19:o=i.stateNode;break;case 22:o=i.stateNode._retryCache;break;default:throw Error(n(314))}o!==null&&o.delete(s),Ug(i,a)}function Lw(i,s){return Ae(i,s)}var Mo=null,zn=null,jh=!1,No=!1,Vh=!1,es=0;function Ji(i){i!==zn&&i.next===null&&(zn===null?Mo=zn=i:zn=zn.next=i),No=!0,jh||(jh=!0,Mw())}function ja(i,s){if(!Vh&&No){Vh=!0;do for(var a=!1,o=Mo;o!==null;){if(i!==0){var h=o.pendingLanes;if(h===0)var p=0;else{var g=o.suspendedLanes,w=o.pingedLanes;p=(1<<31-pi(42|i)+1)-1,p&=h&~(g&~w),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,Gg(o,p))}else p=Pe,p=Pl(o,o===Qe?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||aa(o,p)||(a=!0,Gg(o,p));o=o.next}while(a);Vh=!1}}function Ow(){jg()}function jg(){No=jh=!1;var i=0;es!==0&&$w()&&(i=es);for(var s=fi(),a=null,o=Mo;o!==null;){var h=o.next,p=Vg(o,s);p===0?(o.next=null,a===null?Mo=h:a.next=h,h===null&&(zn=a)):(a=o,(i!==0||(p&3)!==0)&&(No=!0)),o=h}Et!==0&&Et!==5||ja(i),es!==0&&(es=0)}function Vg(i,s){for(var a=i.suspendedLanes,o=i.pingedLanes,h=i.expirationTimes,p=i.pendingLanes&-62914561;0<p;){var g=31-pi(p),w=1<<g,A=h[g];A===-1?((w&a)===0||(w&o)!==0)&&(h[g]=n1(w,s)):A<=s&&(i.expiredLanes|=w),p&=~w}if(s=Qe,a=Pe,a=Pl(i,i===s?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),o=i.callbackNode,a===0||i===s&&(qe===2||qe===9)||i.cancelPendingCommit!==null)return o!==null&&o!==null&&Ge(o),i.callbackNode=null,i.callbackPriority=0;if((a&3)===0||aa(i,a)){if(s=a&-a,s===i.callbackPriority)return s;switch(o!==null&&Ge(o),ru(a)){case 2:case 8:a=O_;break;case 32:a=Ml;break;case 268435456:a=M_;break;default:a=Ml}return o=$g.bind(null,i),a=Ae(a,o),i.callbackPriority=s,i.callbackNode=a,s}return o!==null&&o!==null&&Ge(o),i.callbackPriority=2,i.callbackNode=null,2}function $g(i,s){if(Et!==0&&Et!==5)return i.callbackNode=null,i.callbackPriority=0,null;var a=i.callbackNode;if(Oo()&&i.callbackNode!==a)return null;var o=Pe;return o=Pl(i,i===Qe?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),o===0?null:(Eg(i,o,s),Vg(i,fi()),i.callbackNode!=null&&i.callbackNode===a?$g.bind(null,i):null)}function Gg(i,s){if(Oo())return null;Eg(i,s,!0)}function Mw(){qw(function(){(Ve&6)!==0?Ae(L_,Ow):jg()})}function $h(){if(es===0){var i=bn;i===0&&(i=Nl,Nl<<=1,(Nl&261888)===0&&(Nl=256)),es=i}return es}function qg(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:jl(""+i)}function Wg(i,s){var a=s.ownerDocument.createElement("input");return a.name=s.name,a.value=s.value,i.id&&a.setAttribute("form",i.id),s.parentNode.insertBefore(a,s),i=new FormData(i),a.parentNode.removeChild(a),i}function Nw(i,s,a,o,h){if(s==="submit"&&a&&a.stateNode===h){var p=qg((h[ri]||null).action),g=o.submitter;g&&(s=(s=g[ri]||null)?qg(s.formAction):g.getAttribute("formAction"),s!==null&&(p=s,g=null));var w=new ql("action","action",null,o,h);i.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(es!==0){var A=g?Wg(h,g):new FormData(h);ch(a,{pending:!0,data:A,method:h.method,action:p},null,A)}}else typeof p=="function"&&(w.preventDefault(),A=g?Wg(h,g):new FormData(h),ch(a,{pending:!0,data:A,method:h.method,action:p},p,A))},currentTarget:h}]})}}for(var Gh=0;Gh<Au.length;Gh++){var qh=Au[Gh],Bw=qh.toLowerCase(),zw=qh[0].toUpperCase()+qh.slice(1);Gi(Bw,"on"+zw)}Gi(Cp,"onAnimationEnd"),Gi(Ep,"onAnimationIteration"),Gi(xp,"onAnimationStart"),Gi("dblclick","onDoubleClick"),Gi("focusin","onFocus"),Gi("focusout","onBlur"),Gi(Q1,"onTransitionRun"),Gi(J1,"onTransitionStart"),Gi(ew,"onTransitionCancel"),Gi(Ap,"onTransitionEnd"),ln("onMouseEnter",["mouseout","mouseover"]),ln("onMouseLeave",["mouseout","mouseover"]),ln("onPointerEnter",["pointerout","pointerover"]),ln("onPointerLeave",["pointerout","pointerover"]),bs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bs("onBeforeInput",["compositionend","keypress","textInput","paste"]),bs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Va="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(" "),Pw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Va));function Fg(i,s){s=(s&4)!==0;for(var a=0;a<i.length;a++){var o=i[a],h=o.event;o=o.listeners;e:{var p=void 0;if(s)for(var g=o.length-1;0<=g;g--){var w=o[g],A=w.instance,z=w.currentTarget;if(w=w.listener,A!==p&&h.isPropagationStopped())break e;p=w,h.currentTarget=z;try{p(h)}catch(G){Yl(G)}h.currentTarget=null,p=A}else for(g=0;g<o.length;g++){if(w=o[g],A=w.instance,z=w.currentTarget,w=w.listener,A!==p&&h.isPropagationStopped())break e;p=w,h.currentTarget=z;try{p(h)}catch(G){Yl(G)}h.currentTarget=null,p=A}}}}function Be(i,s){var a=s[su];a===void 0&&(a=s[su]=new Set);var o=i+"__bubble";a.has(o)||(Yg(s,i,2,!1),a.add(o))}function Wh(i,s,a){var o=0;s&&(o|=4),Yg(a,i,o,s)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function Fh(i){if(!i[Bo]){i[Bo]=!0,j_.forEach(function(a){a!=="selectionchange"&&(Pw.has(a)||Wh(a,!1,i),Wh(a,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Bo]||(s[Bo]=!0,Wh("selectionchange",!1,s))}}function Yg(i,s,a,o){switch(Cv(s)){case 2:var h=hC;break;case 8:h=dC;break;default:h=od}a=h.bind(null,s,a,i),h=void 0,!fu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),o?h!==void 0?i.addEventListener(s,a,{capture:!0,passive:h}):i.addEventListener(s,a,!0):h!==void 0?i.addEventListener(s,a,{passive:h}):i.addEventListener(s,a,!1)}function Yh(i,s,a,o,h){var p=o;if((s&1)===0&&(s&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var w=o.stateNode.containerInfo;if(w===h)break;if(g===4)for(g=o.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===h)return;g=g.return}for(;w!==null;){if(g=sn(w),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){o=p=g;continue e}w=w.parentNode}}o=o.return}J_(function(){var z=p,G=hu(a),Z=[];e:{var P=kp.get(i);if(P!==void 0){var U=ql,_e=i;switch(i){case"keypress":if($l(a)===0)break e;case"keydown":case"keyup":U=D1;break;case"focusin":_e="focus",U=gu;break;case"focusout":_e="blur",U=gu;break;case"beforeblur":case"afterblur":U=gu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=ip;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=v1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=M1;break;case Cp:case Ep:case xp:U=b1;break;case Ap:U=B1;break;case"scroll":case"scrollend":U=m1;break;case"wheel":U=P1;break;case"copy":case"cut":case"paste":U=C1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=sp;break;case"toggle":case"beforetoggle":U=H1}var be=(s&4)!==0,Xe=!be&&(i==="scroll"||i==="scrollend"),L=be?P!==null?P+"Capture":null:P;be=[];for(var R=z,N;R!==null;){var K=R;if(N=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||N===null||L===null||(K=ua(R,L),K!=null&&be.push($a(R,K,N))),Xe)break;R=R.return}0<be.length&&(P=new U(P,_e,null,a,G),Z.push({event:P,listeners:be}))}}if((s&7)===0){e:{if(P=i==="mouseover"||i==="pointerover",U=i==="mouseout"||i==="pointerout",P&&a!==uu&&(_e=a.relatedTarget||a.fromElement)&&(sn(_e)||_e[rn]))break e;if((U||P)&&(P=G.window===G?G:(P=G.ownerDocument)?P.defaultView||P.parentWindow:window,U?(_e=a.relatedTarget||a.toElement,U=z,_e=_e?sn(_e):null,_e!==null&&(Xe=c(_e),be=_e.tag,_e!==Xe||be!==5&&be!==27&&be!==6)&&(_e=null)):(U=null,_e=z),U!==_e)){if(be=ip,K="onMouseLeave",L="onMouseEnter",R="mouse",(i==="pointerout"||i==="pointerover")&&(be=sp,K="onPointerLeave",L="onPointerEnter",R="pointer"),Xe=U==null?P:ca(U),N=_e==null?P:ca(_e),P=new be(K,R+"leave",U,a,G),P.target=Xe,P.relatedTarget=N,K=null,sn(G)===z&&(be=new be(L,R+"enter",_e,a,G),be.target=N,be.relatedTarget=Xe,K=be),Xe=K,U&&_e)t:{for(be=Iw,L=U,R=_e,N=0,K=L;K;K=be(K))N++;K=0;for(var ye=R;ye;ye=be(ye))K++;for(;0<N-K;)L=be(L),N--;for(;0<K-N;)R=be(R),K--;for(;N--;){if(L===R||R!==null&&L===R.alternate){be=L;break t}L=be(L),R=be(R)}be=null}else be=null;U!==null&&Kg(Z,P,U,be,!1),_e!==null&&Xe!==null&&Kg(Z,Xe,_e,be,!0)}}e:{if(P=z?ca(z):window,U=P.nodeName&&P.nodeName.toLowerCase(),U==="select"||U==="input"&&P.type==="file")var Ue=dp;else if(up(P))if(fp)Ue=K1;else{Ue=F1;var me=W1}else U=P.nodeName,!U||U.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?z&&cu(z.elementType)&&(Ue=dp):Ue=Y1;if(Ue&&(Ue=Ue(i,z))){hp(Z,Ue,a,G);break e}me&&me(i,P,z),i==="focusout"&&z&&P.type==="number"&&z.memoizedProps.value!=null&&ou(P,"number",P.value)}switch(me=z?ca(z):window,i){case"focusin":(up(me)||me.contentEditable==="true")&&(fn=me,Cu=z,va=null);break;case"focusout":va=Cu=fn=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,bp(Z,a,G);break;case"selectionchange":if(Z1)break;case"keydown":case"keyup":bp(Z,a,G)}var Re;if(yu)e:{switch(i){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else dn?op(i,a)&&(Ie="onCompositionEnd"):i==="keydown"&&a.keyCode===229&&(Ie="onCompositionStart");Ie&&(np&&a.locale!=="ko"&&(dn||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&dn&&(Re=ep()):(Ir=G,_u="value"in Ir?Ir.value:Ir.textContent,dn=!0)),me=zo(z,Ie),0<me.length&&(Ie=new rp(Ie,i,null,a,G),Z.push({event:Ie,listeners:me}),Re?Ie.data=Re:(Re=cp(a),Re!==null&&(Ie.data=Re)))),(Re=j1?V1(i,a):$1(i,a))&&(Ie=zo(z,"onBeforeInput"),0<Ie.length&&(me=new rp("onBeforeInput","beforeinput",null,a,G),Z.push({event:me,listeners:Ie}),me.data=Re)),Nw(Z,i,z,a,G)}Fg(Z,s)})}function $a(i,s,a){return{instance:i,listener:s,currentTarget:a}}function zo(i,s){for(var a=s+"Capture",o=[];i!==null;){var h=i,p=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||p===null||(h=ua(i,a),h!=null&&o.unshift($a(i,h,p)),h=ua(i,s),h!=null&&o.push($a(i,h,p))),i.tag===3)return o;i=i.return}return[]}function Iw(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Kg(i,s,a,o,h){for(var p=s._reactName,g=[];a!==null&&a!==o;){var w=a,A=w.alternate,z=w.stateNode;if(w=w.tag,A!==null&&A===o)break;w!==5&&w!==26&&w!==27||z===null||(A=z,h?(z=ua(a,p),z!=null&&g.unshift($a(a,z,A))):h||(z=ua(a,p),z!=null&&g.push($a(a,z,A)))),a=a.return}g.length!==0&&i.push({event:s,listeners:g})}var Hw=/\r\n?/g,Uw=/\u0000|\uFFFD/g;function Xg(i){return(typeof i=="string"?i:""+i).replace(Hw,`
|
|
50
50
|
`).replace(Uw,"")}function Zg(i,s){return s=Xg(s),Xg(i)===s}function Ke(i,s,a,o,h,p){switch(a){case"children":typeof o=="string"?s==="body"||s==="textarea"&&o===""||cn(i,o):(typeof o=="number"||typeof o=="bigint")&&s!=="body"&&cn(i,""+o);break;case"className":Hl(i,"class",o);break;case"tabIndex":Hl(i,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Hl(i,a,o);break;case"style":Z_(i,o,p);break;case"data":if(s!=="object"){Hl(i,"data",o);break}case"src":case"href":if(o===""&&(s!=="a"||a!=="href")){i.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){i.removeAttribute(a);break}o=jl(""+o),i.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){i.setAttribute(a,"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 p=="function"&&(a==="formAction"?(s!=="input"&&Ke(i,s,"name",h.name,h,null),Ke(i,s,"formEncType",h.formEncType,h,null),Ke(i,s,"formMethod",h.formMethod,h,null),Ke(i,s,"formTarget",h.formTarget,h,null)):(Ke(i,s,"encType",h.encType,h,null),Ke(i,s,"method",h.method,h,null),Ke(i,s,"target",h.target,h,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){i.removeAttribute(a);break}o=jl(""+o),i.setAttribute(a,o);break;case"onClick":o!=null&&(i.onclick=cr);break;case"onScroll":o!=null&&Be("scroll",i);break;case"onScrollEnd":o!=null&&Be("scrollend",i);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(n(61));if(a=o.__html,a!=null){if(h.children!=null)throw Error(n(60));i.innerHTML=a}}break;case"multiple":i.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":i.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){i.removeAttribute("xlink:href");break}a=jl(""+o),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?i.setAttribute(a,""+o):i.removeAttribute(a);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":o&&typeof o!="function"&&typeof o!="symbol"?i.setAttribute(a,""):i.removeAttribute(a);break;case"capture":case"download":o===!0?i.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?i.setAttribute(a,o):i.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?i.setAttribute(a,o):i.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?i.removeAttribute(a):i.setAttribute(a,o);break;case"popover":Be("beforetoggle",i),Be("toggle",i),Il(i,"popover",o);break;case"xlinkActuate":or(i,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":or(i,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":or(i,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":or(i,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":or(i,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":or(i,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":or(i,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":or(i,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":or(i,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Il(i,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=_1.get(a)||a,Il(i,a,o))}}function Kh(i,s,a,o,h,p){switch(a){case"style":Z_(i,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(n(61));if(a=o.__html,a!=null){if(h.children!=null)throw Error(n(60));i.innerHTML=a}}break;case"children":typeof o=="string"?cn(i,o):(typeof o=="number"||typeof o=="bigint")&&cn(i,""+o);break;case"onScroll":o!=null&&Be("scroll",i);break;case"onScrollEnd":o!=null&&Be("scrollend",i);break;case"onClick":o!=null&&(i.onclick=cr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!V_.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),s=a.slice(2,h?a.length-7:void 0),p=i[ri]||null,p=p!=null?p[a]:null,typeof p=="function"&&i.removeEventListener(s,p,h),typeof o=="function")){typeof p!="function"&&p!==null&&(a in i?i[a]=null:i.hasAttribute(a)&&i.removeAttribute(a)),i.addEventListener(s,o,h);break e}a in i?i[a]=o:o===!0?i.setAttribute(a,""):Il(i,a,o)}}}function Gt(i,s,a){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",i),Be("load",i);var o=!1,h=!1,p;for(p in a)if(a.hasOwnProperty(p)){var g=a[p];if(g!=null)switch(p){case"src":o=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,s));default:Ke(i,s,p,g,a,null)}}h&&Ke(i,s,"srcSet",a.srcSet,a,null),o&&Ke(i,s,"src",a.src,a,null);return;case"input":Be("invalid",i);var w=p=g=h=null,A=null,z=null;for(o in a)if(a.hasOwnProperty(o)){var G=a[o];if(G!=null)switch(o){case"name":h=G;break;case"type":g=G;break;case"checked":A=G;break;case"defaultChecked":z=G;break;case"value":p=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(n(137,s));break;default:Ke(i,s,o,G,a,null)}}F_(i,p,w,A,z,g,h,!1);return;case"select":Be("invalid",i),o=g=p=null;for(h in a)if(a.hasOwnProperty(h)&&(w=a[h],w!=null))switch(h){case"value":p=w;break;case"defaultValue":g=w;break;case"multiple":o=w;default:Ke(i,s,h,w,a,null)}s=p,a=g,i.multiple=!!o,s!=null?on(i,!!o,s,!1):a!=null&&on(i,!!o,a,!0);return;case"textarea":Be("invalid",i),p=h=o=null;for(g in a)if(a.hasOwnProperty(g)&&(w=a[g],w!=null))switch(g){case"value":o=w;break;case"defaultValue":h=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(n(91));break;default:Ke(i,s,g,w,a,null)}K_(i,o,h,p);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(o=a[A],o!=null))switch(A){case"selected":i.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ke(i,s,A,o,a,null)}return;case"dialog":Be("beforetoggle",i),Be("toggle",i),Be("cancel",i),Be("close",i);break;case"iframe":case"object":Be("load",i);break;case"video":case"audio":for(o=0;o<Va.length;o++)Be(Va[o],i);break;case"image":Be("error",i),Be("load",i);break;case"details":Be("toggle",i);break;case"embed":case"source":case"link":Be("error",i),Be("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(o=a[z],o!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,s));default:Ke(i,s,z,o,a,null)}return;default:if(cu(s)){for(G in a)a.hasOwnProperty(G)&&(o=a[G],o!==void 0&&Kh(i,s,G,o,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(o=a[w],o!=null&&Ke(i,s,w,o,a,null))}function jw(i,s,a,o){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,g=null,w=null,A=null,z=null,G=null;for(U in a){var Z=a[U];if(a.hasOwnProperty(U)&&Z!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":A=Z;default:o.hasOwnProperty(U)||Ke(i,s,U,null,o,Z)}}for(var P in o){var U=o[P];if(Z=a[P],o.hasOwnProperty(P)&&(U!=null||Z!=null))switch(P){case"type":p=U;break;case"name":h=U;break;case"checked":z=U;break;case"defaultChecked":G=U;break;case"value":g=U;break;case"defaultValue":w=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(n(137,s));break;default:U!==Z&&Ke(i,s,P,U,o,Z)}}lu(i,g,w,A,z,G,p,h);return;case"select":U=g=w=P=null;for(p in a)if(A=a[p],a.hasOwnProperty(p)&&A!=null)switch(p){case"value":break;case"multiple":U=A;default:o.hasOwnProperty(p)||Ke(i,s,p,null,o,A)}for(h in o)if(p=o[h],A=a[h],o.hasOwnProperty(h)&&(p!=null||A!=null))switch(h){case"value":P=p;break;case"defaultValue":w=p;break;case"multiple":g=p;default:p!==A&&Ke(i,s,h,p,o,A)}s=w,a=g,o=U,P!=null?on(i,!!a,P,!1):!!o!=!!a&&(s!=null?on(i,!!a,s,!0):on(i,!!a,a?[]:"",!1));return;case"textarea":U=P=null;for(w in a)if(h=a[w],a.hasOwnProperty(w)&&h!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ke(i,s,w,null,o,h)}for(g in o)if(h=o[g],p=a[g],o.hasOwnProperty(g)&&(h!=null||p!=null))switch(g){case"value":P=h;break;case"defaultValue":U=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(n(91));break;default:h!==p&&Ke(i,s,g,h,o,p)}Y_(i,P,U);return;case"option":for(var _e in a)if(P=a[_e],a.hasOwnProperty(_e)&&P!=null&&!o.hasOwnProperty(_e))switch(_e){case"selected":i.selected=!1;break;default:Ke(i,s,_e,null,o,P)}for(A in o)if(P=o[A],U=a[A],o.hasOwnProperty(A)&&P!==U&&(P!=null||U!=null))switch(A){case"selected":i.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:Ke(i,s,A,P,o,U)}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 be in a)P=a[be],a.hasOwnProperty(be)&&P!=null&&!o.hasOwnProperty(be)&&Ke(i,s,be,null,o,P);for(z in o)if(P=o[z],U=a[z],o.hasOwnProperty(z)&&P!==U&&(P!=null||U!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(n(137,s));break;default:Ke(i,s,z,P,o,U)}return;default:if(cu(s)){for(var Xe in a)P=a[Xe],a.hasOwnProperty(Xe)&&P!==void 0&&!o.hasOwnProperty(Xe)&&Kh(i,s,Xe,void 0,o,P);for(G in o)P=o[G],U=a[G],!o.hasOwnProperty(G)||P===U||P===void 0&&U===void 0||Kh(i,s,G,P,o,U);return}}for(var L in a)P=a[L],a.hasOwnProperty(L)&&P!=null&&!o.hasOwnProperty(L)&&Ke(i,s,L,null,o,P);for(Z in o)P=o[Z],U=a[Z],!o.hasOwnProperty(Z)||P===U||P==null&&U==null||Ke(i,s,Z,P,o,U)}function Qg(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Vw(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var h=a[o],p=h.transferSize,g=h.initiatorType,w=h.duration;if(p&&w&&Qg(g)){for(g=0,w=h.responseEnd,o+=1;o<a.length;o++){var A=a[o],z=A.startTime;if(z>w)break;var G=A.transferSize,Z=A.initiatorType;G&&Qg(Z)&&(A=A.responseEnd,g+=G*(A<w?1:(w-z)/(A-z)))}if(--o,s+=8*(p+g)/(h.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Xh=null,Zh=null;function Po(i){return i.nodeType===9?i:i.ownerDocument}function Jg(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ev(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function Qh(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Jh=null;function $w(){var i=window.event;return i&&i.type==="popstate"?i===Jh?!1:(Jh=i,!0):(Jh=null,!1)}var tv=typeof setTimeout=="function"?setTimeout:void 0,Gw=typeof clearTimeout=="function"?clearTimeout:void 0,iv=typeof Promise=="function"?Promise:void 0,qw=typeof queueMicrotask=="function"?queueMicrotask:typeof iv<"u"?function(i){return iv.resolve(null).then(i).catch(Ww)}:tv;function Ww(i){setTimeout(function(){throw i})}function ts(i){return i==="head"}function rv(i,s){var a=s,o=0;do{var h=a.nextSibling;if(i.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"||a==="/&"){if(o===0){i.removeChild(h),Un(s);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Ga(i.ownerDocument.documentElement);else if(a==="head"){a=i.ownerDocument.head,Ga(a);for(var p=a.firstChild;p;){var g=p.nextSibling,w=p.nodeName;p[oa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=g}}else a==="body"&&Ga(i.ownerDocument.body);a=h}while(a);Un(s)}function sv(i,s){var a=i;i=0;do{var o=a.nextSibling;if(a.nodeType===1?s?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(s?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(i===0)break;i--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||i++;a=o}while(a)}function ed(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var a=s;switch(s=s.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ed(a),nu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}i.removeChild(a)}}function Fw(i,s,a,o){for(;i.nodeType===1;){var h=a;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!o&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(o){if(!i[oa])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(p=i.getAttribute("rel"),p==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(p!==h.rel||i.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||i.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||i.getAttribute("title")!==(h.title==null?null:h.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(p=i.getAttribute("src"),(p!==(h.src==null?null:h.src)||i.getAttribute("type")!==(h.type==null?null:h.type)||i.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&i.getAttribute("name")===p)return i}else return i;if(i=Ni(i.nextSibling),i===null)break}return null}function Yw(i,s,a){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Ni(i.nextSibling),i===null))return null;return i}function nv(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Ni(i.nextSibling),i===null))return null;return i}function td(i){return i.data==="$?"||i.data==="$~"}function id(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function Kw(i,s){var a=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||a.readyState!=="loading")s();else{var o=function(){s(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),i._reactRetry=o}}function Ni(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var rd=null;function av(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="/$"||a==="/&"){if(s===0)return Ni(i.nextSibling);s--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||s++}i=i.nextSibling}return null}function lv(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(s===0)return i;s--}else a!=="/$"&&a!=="/&"||s++}i=i.previousSibling}return null}function ov(i,s,a){switch(s=Po(a),i){case"html":if(i=s.documentElement,!i)throw Error(n(452));return i;case"head":if(i=s.head,!i)throw Error(n(453));return i;case"body":if(i=s.body,!i)throw Error(n(454));return i;default:throw Error(n(451))}}function Ga(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);nu(i)}var Bi=new Map,cv=new Set;function Io(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var xr=F.d;F.d={f:Xw,r:Zw,D:Qw,C:Jw,L:eC,m:tC,X:rC,S:iC,M:sC};function Xw(){var i=xr.f(),s=Ro();return i||s}function Zw(i){var s=nn(i);s!==null&&s.tag===5&&s.type==="form"?Am(s):xr.r(i)}var Pn=typeof document>"u"?null:document;function uv(i,s,a){var o=Pn;if(o&&typeof s=="string"&&s){var h=ki(s);h='link[rel="'+i+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),cv.has(h)||(cv.add(h),i={rel:i,crossOrigin:a,href:s},o.querySelector(h)===null&&(s=o.createElement("link"),Gt(s,"link",i),Lt(s),o.head.appendChild(s)))}}function Qw(i){xr.D(i),uv("dns-prefetch",i,null)}function Jw(i,s){xr.C(i,s),uv("preconnect",i,s)}function eC(i,s,a){xr.L(i,s,a);var o=Pn;if(o&&i&&s){var h='link[rel="preload"][as="'+ki(s)+'"]';s==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+ki(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+ki(a.imageSizes)+'"]')):h+='[href="'+ki(i)+'"]';var p=h;switch(s){case"style":p=In(i);break;case"script":p=Hn(i)}Bi.has(p)||(i=m({rel:"preload",href:s==="image"&&a&&a.imageSrcSet?void 0:i,as:s},a),Bi.set(p,i),o.querySelector(h)!==null||s==="style"&&o.querySelector(qa(p))||s==="script"&&o.querySelector(Wa(p))||(s=o.createElement("link"),Gt(s,"link",i),Lt(s),o.head.appendChild(s)))}}function tC(i,s){xr.m(i,s);var a=Pn;if(a&&i){var o=s&&typeof s.as=="string"?s.as:"script",h='link[rel="modulepreload"][as="'+ki(o)+'"][href="'+ki(i)+'"]',p=h;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Hn(i)}if(!Bi.has(p)&&(i=m({rel:"modulepreload",href:i},s),Bi.set(p,i),a.querySelector(h)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wa(p)))return}o=a.createElement("link"),Gt(o,"link",i),Lt(o),a.head.appendChild(o)}}}function iC(i,s,a){xr.S(i,s,a);var o=Pn;if(o&&i){var h=an(o).hoistableStyles,p=In(i);s=s||"default";var g=h.get(p);if(!g){var w={loading:0,preload:null};if(g=o.querySelector(qa(p)))w.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":s},a),(a=Bi.get(p))&&sd(i,a);var A=g=o.createElement("link");Lt(A),Gt(A,"link",i),A._p=new Promise(function(z,G){A.onload=z,A.onerror=G}),A.addEventListener("load",function(){w.loading|=1}),A.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Ho(g,s,o)}g={type:"stylesheet",instance:g,count:1,state:w},h.set(p,g)}}}function rC(i,s){xr.X(i,s);var a=Pn;if(a&&i){var o=an(a).hoistableScripts,h=Hn(i),p=o.get(h);p||(p=a.querySelector(Wa(h)),p||(i=m({src:i,async:!0},s),(s=Bi.get(h))&&nd(i,s),p=a.createElement("script"),Lt(p),Gt(p,"link",i),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(h,p))}}function sC(i,s){xr.M(i,s);var a=Pn;if(a&&i){var o=an(a).hoistableScripts,h=Hn(i),p=o.get(h);p||(p=a.querySelector(Wa(h)),p||(i=m({src:i,async:!0,type:"module"},s),(s=Bi.get(h))&&nd(i,s),p=a.createElement("script"),Lt(p),Gt(p,"link",i),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(h,p))}}function hv(i,s,a,o){var h=(h=pe.current)?Io(h):null;if(!h)throw Error(n(446));switch(i){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(s=In(a.href),a=an(h).hoistableStyles,o=a.get(s),o||(o={type:"style",instance:null,count:0,state:null},a.set(s,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){i=In(a.href);var p=an(h).hoistableStyles,g=p.get(i);if(g||(h=h.ownerDocument||h,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(i,g),(p=h.querySelector(qa(i)))&&!p._p&&(g.instance=p,g.state.loading=5),Bi.has(i)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Bi.set(i,a),p||nC(h,i,a,g.state))),s&&o===null)throw Error(n(528,""));return g}if(s&&o!==null)throw Error(n(529,""));return null;case"script":return s=a.async,a=a.src,typeof a=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Hn(a),a=an(h).hoistableScripts,o=a.get(s),o||(o={type:"script",instance:null,count:0,state:null},a.set(s,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,i))}}function In(i){return'href="'+ki(i)+'"'}function qa(i){return'link[rel="stylesheet"]['+i+"]"}function dv(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function nC(i,s,a,o){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?o.loading=1:(s=i.createElement("link"),o.preload=s,s.addEventListener("load",function(){return o.loading|=1}),s.addEventListener("error",function(){return o.loading|=2}),Gt(s,"link",a),Lt(s),i.head.appendChild(s))}function Hn(i){return'[src="'+ki(i)+'"]'}function Wa(i){return"script[async]"+i}function fv(i,s,a){if(s.count++,s.instance===null)switch(s.type){case"style":var o=i.querySelector('style[data-href~="'+ki(a.href)+'"]');if(o)return s.instance=o,Lt(o),o;var h=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(i.ownerDocument||i).createElement("style"),Lt(o),Gt(o,"style",h),Ho(o,a.precedence,i),s.instance=o;case"stylesheet":h=In(a.href);var p=i.querySelector(qa(h));if(p)return s.state.loading|=4,s.instance=p,Lt(p),p;o=dv(a),(h=Bi.get(h))&&sd(o,h),p=(i.ownerDocument||i).createElement("link"),Lt(p);var g=p;return g._p=new Promise(function(w,A){g.onload=w,g.onerror=A}),Gt(p,"link",o),s.state.loading|=4,Ho(p,a.precedence,i),s.instance=p;case"script":return p=Hn(a.src),(h=i.querySelector(Wa(p)))?(s.instance=h,Lt(h),h):(o=a,(h=Bi.get(p))&&(o=m({},a),nd(o,h)),i=i.ownerDocument||i,h=i.createElement("script"),Lt(h),Gt(h,"link",o),i.head.appendChild(h),s.instance=h);case"void":return null;default:throw Error(n(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(o=s.instance,s.state.loading|=4,Ho(o,a.precedence,i));return s.instance}function Ho(i,s,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=o.length?o[o.length-1]:null,p=h,g=0;g<o.length;g++){var w=o[g];if(w.dataset.precedence===s)p=w;else if(p!==h)break}p?p.parentNode.insertBefore(i,p.nextSibling):(s=a.nodeType===9?a.head:a,s.insertBefore(i,s.firstChild))}function sd(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function nd(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var Uo=null;function _v(i,s,a){if(Uo===null){var o=new Map,h=Uo=new Map;h.set(a,o)}else h=Uo,o=h.get(a),o||(o=new Map,h.set(a,o));if(o.has(i))return o;for(o.set(i,null),a=a.getElementsByTagName(i),h=0;h<a.length;h++){var p=a[h];if(!(p[oa]||p[Ut]||i==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var g=p.getAttribute(s)||"";g=i+g;var w=o.get(g);w?w.push(p):o.set(g,[p])}}return o}function pv(i,s,a){i=i.ownerDocument||i,i.head.insertBefore(a,s==="title"?i.querySelector("head > title"):null)}function aC(i,s,a){if(a===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function mv(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function lC(i,s,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=In(o.href),p=s.querySelector(qa(h));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=jo.bind(i),s.then(i,i)),a.state.loading|=4,a.instance=p,Lt(p);return}p=s.ownerDocument||s,o=dv(o),(h=Bi.get(h))&&sd(o,h),p=p.createElement("link"),Lt(p);var g=p;g._p=new Promise(function(w,A){g.onload=w,g.onerror=A}),Gt(p,"link",o),a.instance=p}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(a,s),(s=a.state.preload)&&(a.state.loading&3)===0&&(i.count++,a=jo.bind(i),s.addEventListener("load",a),s.addEventListener("error",a))}}var ad=0;function oC(i,s){return i.stylesheets&&i.count===0&&$o(i,i.stylesheets),0<i.count||0<i.imgCount?function(a){var o=setTimeout(function(){if(i.stylesheets&&$o(i,i.stylesheets),i.unsuspend){var p=i.unsuspend;i.unsuspend=null,p()}},6e4+s);0<i.imgBytes&&ad===0&&(ad=62500*Vw());var h=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&$o(i,i.stylesheets),i.unsuspend)){var p=i.unsuspend;i.unsuspend=null,p()}},(i.imgBytes>ad?50:800)+s);return i.unsuspend=a,function(){i.unsuspend=null,clearTimeout(o),clearTimeout(h)}}:null}function jo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$o(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Vo=null;function $o(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Vo=new Map,s.forEach(cC,i),Vo=null,jo.call(i))}function cC(i,s){if(!(s.state.loading&4)){var a=Vo.get(i);if(a)var o=a.get(null);else{a=new Map,Vo.set(i,a);for(var h=i.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var g=h[p];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),o=g)}o&&a.set(null,o)}h=s.instance,g=h.getAttribute("data-precedence"),p=a.get(g)||o,p===o&&a.set(null,h),a.set(g,h),this.count++,o=jo.bind(this),h.addEventListener("load",o),h.addEventListener("error",o),p?p.parentNode.insertBefore(h,p.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(h,i.firstChild)),s.state.loading|=4}}var Fa={$$typeof:B,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function uC(i,s,a,o,h,p,g,w,A){this.tag=1,this.containerInfo=i,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=tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tu(0),this.hiddenUpdates=tu(null),this.identifierPrefix=o,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function gv(i,s,a,o,h,p,g,w,A,z,G,Z){return i=new uC(i,s,a,g,A,z,G,Z,w),s=1,p===!0&&(s|=24),p=gi(3,null,null,s),i.current=p,p.stateNode=i,s=Hu(),s.refCount++,i.pooledCache=s,s.refCount++,p.memoizedState={element:o,isDehydrated:a,cache:s},$u(p),i}function vv(i){return i?(i=mn,i):mn}function yv(i,s,a,o,h,p){h=vv(h),o.context===null?o.context=h:o.pendingContext=h,o=Gr(s),o.payload={element:a},p=p===void 0?null:p,p!==null&&(o.callback=p),a=qr(i,o,s),a!==null&&(ci(a,i,s),xa(a,i,s))}function Sv(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var a=i.retryLane;i.retryLane=a!==0&&a<s?a:s}}function ld(i,s){Sv(i,s),(i=i.alternate)&&Sv(i,s)}function bv(i){if(i.tag===13||i.tag===31){var s=xs(i,67108864);s!==null&&ci(s,i,67108864),ld(i,67108864)}}function wv(i){if(i.tag===13||i.tag===31){var s=wi();s=iu(s);var a=xs(i,s);a!==null&&ci(a,i,s),ld(i,s)}}var Go=!0;function hC(i,s,a,o){var h=D.T;D.T=null;var p=F.p;try{F.p=2,od(i,s,a,o)}finally{F.p=p,D.T=h}}function dC(i,s,a,o){var h=D.T;D.T=null;var p=F.p;try{F.p=8,od(i,s,a,o)}finally{F.p=p,D.T=h}}function od(i,s,a,o){if(Go){var h=cd(o);if(h===null)Yh(i,s,o,qo,a),Ev(i,o);else if(_C(h,i,s,a,o))o.stopPropagation();else if(Ev(i,o),s&4&&-1<fC.indexOf(i)){for(;h!==null;){var p=nn(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var g=Ss(p.pendingLanes);if(g!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;g;){var A=1<<31-pi(g);w.entanglements[1]|=A,g&=~A}Ji(p),(Ve&6)===0&&(ko=fi()+500,ja(0))}}break;case 31:case 13:w=xs(p,2),w!==null&&ci(w,p,2),Ro(),ld(p,2)}if(p=cd(o),p===null&&Yh(i,s,o,qo,a),p===h)break;h=p}h!==null&&o.stopPropagation()}else Yh(i,s,o,null,a)}}function cd(i){return i=hu(i),ud(i)}var qo=null;function ud(i){if(qo=null,i=sn(i),i!==null){var s=c(i);if(s===null)i=null;else{var a=s.tag;if(a===13){if(i=u(s),i!==null)return i;i=null}else if(a===31){if(i=d(s),i!==null)return i;i=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return qo=i,null}function Cv(i){switch(i){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(Qb()){case L_:return 2;case O_:return 8;case Ml:case Jb:return 32;case M_:return 268435456;default:return 32}default:return 32}}var hd=!1,is=null,rs=null,ss=null,Ya=new Map,Ka=new Map,ns=[],fC="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 Ev(i,s){switch(i){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":rs=null;break;case"mouseover":case"mouseout":ss=null;break;case"pointerover":case"pointerout":Ya.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ka.delete(s.pointerId)}}function Xa(i,s,a,o,h,p){return i===null||i.nativeEvent!==p?(i={blockedOn:s,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[h]},s!==null&&(s=nn(s),s!==null&&bv(s)),i):(i.eventSystemFlags|=o,s=i.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),i)}function _C(i,s,a,o,h){switch(s){case"focusin":return is=Xa(is,i,s,a,o,h),!0;case"dragenter":return rs=Xa(rs,i,s,a,o,h),!0;case"mouseover":return ss=Xa(ss,i,s,a,o,h),!0;case"pointerover":var p=h.pointerId;return Ya.set(p,Xa(Ya.get(p)||null,i,s,a,o,h)),!0;case"gotpointercapture":return p=h.pointerId,Ka.set(p,Xa(Ka.get(p)||null,i,s,a,o,h)),!0}return!1}function xv(i){var s=sn(i.target);if(s!==null){var a=c(s);if(a!==null){if(s=a.tag,s===13){if(s=u(a),s!==null){i.blockedOn=s,H_(i.priority,function(){wv(a)});return}}else if(s===31){if(s=d(a),s!==null){i.blockedOn=s,H_(i.priority,function(){wv(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){i.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Wo(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var a=cd(i.nativeEvent);if(a===null){a=i.nativeEvent;var o=new a.constructor(a.type,a);uu=o,a.target.dispatchEvent(o),uu=null}else return s=nn(a),s!==null&&bv(s),i.blockedOn=a,!1;s.shift()}return!0}function Av(i,s,a){Wo(i)&&a.delete(s)}function pC(){hd=!1,is!==null&&Wo(is)&&(is=null),rs!==null&&Wo(rs)&&(rs=null),ss!==null&&Wo(ss)&&(ss=null),Ya.forEach(Av),Ka.forEach(Av)}function Fo(i,s){i.blockedOn===s&&(i.blockedOn=null,hd||(hd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,pC)))}var Yo=null;function kv(i){Yo!==i&&(Yo=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yo===i&&(Yo=null);for(var s=0;s<i.length;s+=3){var a=i[s],o=i[s+1],h=i[s+2];if(typeof o!="function"){if(ud(o||a)===null)continue;break}var p=nn(a);p!==null&&(i.splice(s,3),s-=3,ch(p,{pending:!0,data:h,method:a.method,action:o},o,h))}}))}function Un(i){function s(A){return Fo(A,i)}is!==null&&Fo(is,i),rs!==null&&Fo(rs,i),ss!==null&&Fo(ss,i),Ya.forEach(s),Ka.forEach(s);for(var a=0;a<ns.length;a++){var o=ns[a];o.blockedOn===i&&(o.blockedOn=null)}for(;0<ns.length&&(a=ns[0],a.blockedOn===null);)xv(a),a.blockedOn===null&&ns.shift();if(a=(i.ownerDocument||i).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var h=a[o],p=a[o+1],g=h[ri]||null;if(typeof p=="function")g||kv(a);else if(g){var w=null;if(p&&p.hasAttribute("formAction")){if(h=p,g=p[ri]||null)w=g.formAction;else if(ud(h)!==null)continue}else w=g.action;typeof w=="function"?a[o+1]=w:(a.splice(o,3),o-=3),kv(a)}}}function Tv(){function i(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(g){return h=g})},focusReset:"manual",scroll:"manual"})}function s(){h!==null&&(h(),h=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,h=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),h!==null&&(h(),h=null)}}}function dd(i){this._internalRoot=i}Ko.prototype.render=dd.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));var a=s.current,o=wi();yv(a,o,i,s,null,null)},Ko.prototype.unmount=dd.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;yv(i.current,2,null,i,null,null),Ro(),s[rn]=null}};function Ko(i){this._internalRoot=i}Ko.prototype.unstable_scheduleHydration=function(i){if(i){var s=I_();i={blockedOn:null,target:i,priority:s};for(var a=0;a<ns.length&&s!==0&&s<ns[a].priority;a++);ns.splice(a,0,i),a===0&&xv(i)}};var Rv=t.version;if(Rv!=="19.2.4")throw Error(n(527,Rv,"19.2.4"));F.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=f(s),i=i!==null?v(i):null,i=i===null?null:i.stateNode,i};var mC={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xo.isDisabled&&Xo.supportsFiber)try{na=Xo.inject(mC),_i=Xo}catch{}}return Qa.createRoot=function(i,s){if(!l(i))throw Error(n(299));var a=!1,o="",h=zm,p=Pm,g=Im;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(o=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(g=s.onRecoverableError)),s=gv(i,1,!1,null,null,a,o,null,h,p,g,Tv),i[rn]=s.current,Fh(i),new dd(s)},Qa.hydrateRoot=function(i,s,a){if(!l(i))throw Error(n(299));var o=!1,h="",p=zm,g=Pm,w=Im,A=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),s=gv(i,1,!0,s,a??null,o,h,A,p,g,w,Tv),s.context=vv(null),a=s.current,o=wi(),o=iu(o),h=Gr(o),h.callback=null,qr(a,h,o),a=o,s.current.lanes=a,la(s,a),Ji(s),i[rn]=s.current,Fh(i),new Ko(s)},Qa.version="19.2.4",Qa}var jv;function DC(){if(jv)return gd.exports;jv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),gd.exports=RC(),gd.exports}var LC=DC();const jn={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};class OC{constructor(t){V(this,"ws");V(this,"onopen",null);V(this,"onmessage",null);V(this,"onclose",null);this.ws=new WebSocket(t),this.ws.onopen=()=>{var r;return(r=this.onopen)==null?void 0:r.call(this)},this.ws.onmessage=r=>{var n;try{(n=this.onmessage)==null||n.call(this,JSON.parse(r.data))}catch{}},this.ws.onclose=()=>{var r;return(r=this.onclose)==null?void 0:r.call(this)},this.ws.onerror=()=>{}}get readyState(){return this.ws.readyState}send(t){this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify(t))}close(){this.ws.close()}}class MC{constructor(t,r){V(this,"channelId",null);V(this,"_readyState",jn.CONNECTING);V(this,"pollAbort",null);V(this,"disposed",!1);V(this,"baseUrl");V(this,"sessionId");V(this,"onopen",null);V(this,"onmessage",null);V(this,"onclose",null);this.baseUrl=t,this.sessionId=r,this.init()}get readyState(){return this._readyState}async init(){var t,r;try{const n=await fetch(`${this.baseUrl}/api/poll/connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:this.sessionId})});if(!n.ok)throw new Error("Connect failed");const{channelId:l}=await n.json();this.channelId=l,this._readyState=jn.OPEN,(t=this.onopen)==null||t.call(this),this.poll()}catch{this._readyState=jn.CLOSED,(r=this.onclose)==null||r.call(this)}}async poll(){var t,r;for(;!this.disposed&&this.channelId;)try{this.pollAbort=new AbortController;const n=await fetch(`${this.baseUrl}/api/poll?channelId=${encodeURIComponent(this.channelId)}`,{signal:this.pollAbort.signal});if(!n.ok)throw new Error("Poll failed");const l=await n.json();for(const c of l)(t=this.onmessage)==null||t.call(this,c)}catch(n){if(this.disposed)break;if(n.name==="AbortError")continue;await new Promise(l=>setTimeout(l,2e3))}this.disposed||(this._readyState=jn.CLOSED,(r=this.onclose)==null||r.call(this))}send(t){!this.channelId||this._readyState!==jn.OPEN||fetch(`${this.baseUrl}/api/poll/send`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channelId:this.channelId,data:t})}).catch(()=>{})}close(){var t;this.disposed=!0,this._readyState=jn.CLOSED,(t=this.pollAbort)==null||t.abort(),this.channelId&&fetch(`${this.baseUrl}/api/poll/close`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channelId:this.channelId})}).catch(()=>{})}}function NC(e){var l;const r=new URLSearchParams(location.search).get("transport");if(r?r==="ws":((l=window.__ANYCODE_CONFIG__)==null?void 0:l.webSocket)===!0){const c=location.protocol==="https:"?"wss:":"ws:";return new OC(`${c}//${location.host}/?sessionId=${e}`)}return new MC(location.origin,e)}function BC({size:e=18,color:t="currentColor"}){return k.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("rect",{x:"9",y:"2",width:"6",height:"12",rx:"3"}),k.jsx("path",{d:"M5 10a7 7 0 0 0 14 0"}),k.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"22"}),k.jsx("line",{x1:"8",y1:"22",x2:"16",y2:"22"})]})}function zC({size:e=18,color:t="currentColor"}){return k.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),k.jsx("line",{x1:"6",y1:"9",x2:"6",y2:"9"}),k.jsx("line",{x1:"10",y1:"9",x2:"10",y2:"9"}),k.jsx("line",{x1:"14",y1:"9",x2:"14",y2:"9"}),k.jsx("line",{x1:"18",y1:"9",x2:"18",y2:"9"}),k.jsx("line",{x1:"6",y1:"13",x2:"6",y2:"13"}),k.jsx("line",{x1:"18",y1:"13",x2:"18",y2:"13"}),k.jsx("line",{x1:"9",y1:"13",x2:"15",y2:"13"})]})}function PC({size:e=14,color:t="currentColor"}){return k.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,stroke:"none",children:k.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})})}function IC({size:e=14,color:t="currentColor"}){return k.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",children:[k.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),k.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})}function D0({size:e=18,color:t="currentColor"}){return k.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),k.jsx("polygon",{points:"10 8 16 12 10 16"})]})}function HC({size:e=18,color:t="currentColor"}){return k.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),k.jsx("line",{x1:"7",y1:"8",x2:"17",y2:"8"}),k.jsx("line",{x1:"7",y1:"12",x2:"14",y2:"12"}),k.jsx("line",{x1:"7",y1:"16",x2:"17",y2:"16"})]})}function L0({size:e=18,color:t="currentColor"}){return k.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),k.jsx("path",{d:"M12 8v8"}),k.jsx("path",{d:"M8 12h8"})]})}function O0({size:e=14,color:t="currentColor"}){return k.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:k.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})})}function UC({size:e=10,color:t="currentColor"}){return k.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:k.jsx("polyline",{points:"9 6 15 12 9 18"})})}function pl({size:e=14,color:t="currentColor"}){return k.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),k.jsx("polyline",{points:"14 2 14 8 20 8"})]})}function jC({size:e=14,color:t="currentColor"}){return k.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:k.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function M0({size:e=18,color:t="currentColor"}){return k.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[k.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),k.jsx("polyline",{points:"7 9 10 12 7 15"}),k.jsx("line",{x1:"13",y1:"15",x2:"17",y2:"15"})]})}function VC({size:e=14,color:t="currentColor"}){return k.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,stroke:"none",children:k.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}function $C({activeTab:e,onTabChange:t,changeCount:r}){return k.jsxs("nav",{className:"tab-bar",children:[k.jsx("div",{className:"tab-spacer"}),k.jsxs("button",{className:`tab-item ${e==="preview"?"active":""}`,onClick:()=>t("preview"),children:[k.jsx("span",{className:"tab-icon",children:k.jsx(D0,{})}),k.jsx("span",{className:"tab-label",children:"预览"})]}),k.jsxs("button",{className:`tab-item ${e==="terminal"?"active":""}`,onClick:()=>t("terminal"),children:[k.jsx("span",{className:"tab-icon",children:k.jsx(M0,{})}),k.jsx("span",{className:"tab-label",children:"终端"})]}),k.jsxs("button",{className:`tab-item ${e==="files"?"active":""}`,onClick:()=>t("files"),children:[k.jsx("span",{className:"tab-icon",children:k.jsx(HC,{})}),k.jsx("span",{className:"tab-label",children:"文件"})]}),k.jsxs("button",{className:`tab-item ${e==="changes"?"active":""}`,onClick:()=>t("changes"),children:[k.jsxs("span",{className:"tab-icon",children:[k.jsx(L0,{}),r!==void 0&&r>0&&k.jsx("span",{className:"tab-badge",children:r})]}),k.jsx("span",{className:"tab-label",children:"变更"})]})]})}var Zd=Object.defineProperty,GC=Object.getOwnPropertyDescriptor,qC=Object.getOwnPropertyNames,WC=Object.prototype.hasOwnProperty,t_=(e,t)=>{let r={};for(var n in e)Zd(r,n,{get:e[n],enumerable:!0});return Zd(r,Symbol.toStringTag,{value:"Module"}),r},FC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var l=qC(t),c=0,u=l.length,d;c<u;c++)d=l[c],!WC.call(e,d)&&d!==r&&Zd(e,d,{get:(_=>t[_]).bind(null,d),enumerable:!(n=GC(t,d))||n.enumerable});return e},N0=(e,t,r)=>(FC(e,t,"default"),r);const YC="modulepreload",KC=function(e){return"/"+e},Vv={},C=function(t,r,n){let l=Promise.resolve();if(r&&r.length>0){let u=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),_=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));l=u(r.map(f=>{if(f=KC(f),f in Vv)return;Vv[f]=!0;const v=f.endsWith(".css"),m=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const y=document.createElement("link");if(y.rel=v?"stylesheet":YC,v||(y.as="script"),y.crossOrigin="",y.href=f,_&&y.setAttribute("nonce",_),document.head.appendChild(y),v)return new Promise((S,b)=>{y.addEventListener("load",S),y.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${f}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return l.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})},Hc=[{id:"abap",name:"ABAP",import:(()=>C(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>C(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>C(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>C(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>C(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>C(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>C(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>C(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>C(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>C(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>C(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>C(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>C(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>C(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>C(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>C(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>C(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>C(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>C(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>C(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>C(()=>import("./bird2-BIv1doCn.js"),[]))},{id:"blade",name:"Blade",import:(()=>C(()=>import("./blade-BjGOyj-B.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>C(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>C(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>C(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>C(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>C(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>C(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>C(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>C(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>C(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>C(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>C(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>C(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>C(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>C(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>C(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>C(()=>import("./crystal-DNxU26gB.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>C(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>C(()=>import("./css-CLj8gQPS.js"),[]))},{id:"csv",name:"CSV",import:(()=>C(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>C(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>C(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>C(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>C(()=>import("./dart-bE4Kk8sk.js"),[]))},{id:"dax",name:"DAX",import:(()=>C(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>C(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>C(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>C(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>C(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>C(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>C(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>C(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>C(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>C(()=>import("./emacs-lisp-CXvaQtF9.js"),[]))},{id:"erb",name:"ERB",import:(()=>C(()=>import("./erb-BYCe7drp.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>C(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>C(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>C(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>C(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>C(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>C(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>C(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>C(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>C(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>C(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>C(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>C(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>C(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>C(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>C(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>C(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>C(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>C(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gn",name:"GN",import:(()=>C(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>C(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>C(()=>import("./go-C27-OAKa.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>C(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>C(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>C(()=>import("./hack-i7_Ulhet.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>C(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>C(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>C(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>C(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>C(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>C(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>C(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>C(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>C(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>C(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>C(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>C(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>C(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>C(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>C(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>C(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>C(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>C(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>C(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>C(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>C(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>C(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>C(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>C(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>C(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>C(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>C(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"just",name:"Just",import:(()=>C(()=>import("./just-VxiPbLrw.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38])))},{id:"kdl",name:"KDL",import:(()=>C(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>C(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>C(()=>import("./kusto-wEQ09or8.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>C(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>C(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>C(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>C(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([67,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>C(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>C(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>C(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>C(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>C(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>C(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>C(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>C(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([68,3,69,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>C(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>C(()=>import("./mdc-DTYItulj.js"),__vite__mapDeps([70,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>C(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>C(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>C(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>C(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>C(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>C(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>C(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>C(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([71,72])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>C(()=>import("./nextflow-groovy-vE_lwT2v.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>C(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26])))},{id:"nim",name:"Nim",import:(()=>C(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>C(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>C(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>C(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>C(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>C(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>C(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>C(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>C(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>C(()=>import("./perl-NvoQZIq0.js"),__vite__mapDeps([64,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>C(()=>import("./php-R6g_5hLQ.js"),__vite__mapDeps([75,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>C(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>C(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>C(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>C(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>C(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>C(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>C(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>C(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>C(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>C(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>C(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([76,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>C(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>C(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>C(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>C(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2])))},{id:"qmldir",name:"QML Directory",import:(()=>C(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>C(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>C(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>C(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>C(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>C(()=>import("./razor-BDqjjVU7.js"),__vite__mapDeps([78,1,2,3,79])))},{id:"reg",name:"Windows Registry Script",import:(()=>C(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>C(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>C(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>C(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>C(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>C(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>C(()=>import("./rst-CRjBmOyv.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>C(()=>import("./ruby-Wjq7vjNf.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>C(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>C(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16])))},{id:"sass",name:"Sass",import:(()=>C(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>C(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>C(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>C(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>C(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>C(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>C(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>C(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>C(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>C(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>C(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([86,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>C(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>C(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>C(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>C(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>C(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>C(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>C(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2])))},{id:"svelte",name:"Svelte",import:(()=>C(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([91,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>C(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>C(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>C(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>C(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>C(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>C(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>C(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([92,93,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>C(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>C(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62])))},{id:"toml",name:"TOML",import:(()=>C(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>C(()=>import("./ts-tags-DQrlYJgV.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>C(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>C(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>C(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>C(()=>import("./twig-xg9kU7Mw.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>C(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>C(()=>import("./typespec-CAFt9gP4.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>C(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>C(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>C(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>C(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>C(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>C(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>C(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>C(()=>import("./vue-D2xRrEX4.js"),__vite__mapDeps([96,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>C(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>C(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([98,3,5,69,99,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>C(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>C(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>C(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>C(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>C(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>C(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>C(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>C(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>C(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>C(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>C(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>C(()=>import("./zig-VOosw3JB.js"),[]))}],i_=Object.fromEntries(Hc.map(e=>[e.id,e.import])),r_=Object.fromEntries(Hc.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(r=>[r,e.import]))||[]})),s_={...i_,...r_},n_=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>C(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>C(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>C(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>C(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>C(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>C(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>C(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>C(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>C(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>C(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>C(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>C(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>C(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>C(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>C(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>C(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>C(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>C(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>C(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>C(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>C(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>C(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>C(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>C(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>C(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>C(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>C(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>C(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>C(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>C(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>C(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>C(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>C(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>C(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>C(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>C(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>C(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>C(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>C(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>C(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>C(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>C(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>C(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>C(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>C(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>C(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>C(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>C(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>C(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>C(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>C(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>C(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>C(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>C(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>C(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>C(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>C(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>C(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>C(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>C(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>C(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>C(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],a_=Object.fromEntries(n_.map(e=>[e.id,e.import]));var l_=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function XC(){return 2147483648}function ZC(){return typeof performance<"u"?performance.now():Date.now()}const QC=(e,t)=>e+(t-e%t)%t;async function JC(e){let t,r;const n={};function l(S){r=S,n.HEAPU8=new Uint8Array(S),n.HEAPU32=new Uint32Array(S)}function c(S,b,E){n.HEAPU8.copyWithin(S,b,b+E)}function u(S){try{return t.grow(S-r.byteLength+65535>>>16),l(t.buffer),1}catch{}}function d(S){const b=n.HEAPU8.length;S=S>>>0;const E=XC();if(S>E)return!1;for(let T=1;T<=4;T*=2){let O=b*(1+.2/T);O=Math.min(O,S+100663296);const H=Math.min(E,QC(Math.max(S,O),65536));if(u(H))return!0}return!1}const _=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(S,b,E=1024){const T=b+E;let O=b;for(;S[O]&&!(O>=T);)++O;if(O-b>16&&S.buffer&&_)return _.decode(S.subarray(b,O));let H="";for(;b<O;){let B=S[b++];if(!(B&128)){H+=String.fromCharCode(B);continue}const I=S[b++]&63;if((B&224)===192){H+=String.fromCharCode((B&31)<<6|I);continue}const j=S[b++]&63;if((B&240)===224?B=(B&15)<<12|I<<6|j:B=(B&7)<<18|I<<12|j<<6|S[b++]&63,B<65536)H+=String.fromCharCode(B);else{const Y=B-65536;H+=String.fromCharCode(55296|Y>>10,56320|Y&1023)}}return H}function v(S,b){return S?f(n.HEAPU8,S,b):""}const m={emscripten_get_now:ZC,emscripten_memcpy_big:c,emscripten_resize_heap:d,fd_write:()=>0};async function y(){const b=await e({env:m,wasi_snapshot_preview1:m});t=b.memory,l(t.buffer),Object.assign(n,b),n.UTF8ToString=v}return await y(),n}var eE=Object.defineProperty,tE=(e,t,r)=>t in e?eE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kt=(e,t,r)=>tE(e,typeof t!="symbol"?t+"":t,r);let Mt=null;function iE(e){throw new l_(e.UTF8ToString(e.getLastOnigError()))}class Uc{constructor(t){kt(this,"utf16Length"),kt(this,"utf8Length"),kt(this,"utf16Value"),kt(this,"utf8Value"),kt(this,"utf16OffsetToUtf8"),kt(this,"utf8OffsetToUtf16");const r=t.length,n=Uc._utf8ByteLength(t),l=n!==r,c=l?new Uint32Array(r+1):null;l&&(c[r]=n);const u=l?new Uint32Array(n+1):null;l&&(u[n]=r);const d=new Uint8Array(n);let _=0;for(let f=0;f<r;f++){const v=t.charCodeAt(f);let m=v,y=!1;if(v>=55296&&v<=56319&&f+1<r){const S=t.charCodeAt(f+1);S>=56320&&S<=57343&&(m=(v-55296<<10)+65536|S-56320,y=!0)}l&&(c[f]=_,y&&(c[f+1]=_),m<=127?u[_+0]=f:m<=2047?(u[_+0]=f,u[_+1]=f):m<=65535?(u[_+0]=f,u[_+1]=f,u[_+2]=f):(u[_+0]=f,u[_+1]=f,u[_+2]=f,u[_+3]=f)),m<=127?d[_++]=m:m<=2047?(d[_++]=192|(m&1984)>>>6,d[_++]=128|(m&63)>>>0):m<=65535?(d[_++]=224|(m&61440)>>>12,d[_++]=128|(m&4032)>>>6,d[_++]=128|(m&63)>>>0):(d[_++]=240|(m&1835008)>>>18,d[_++]=128|(m&258048)>>>12,d[_++]=128|(m&4032)>>>6,d[_++]=128|(m&63)>>>0),y&&f++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=d,this.utf16OffsetToUtf8=c,this.utf8OffsetToUtf16=u}static _utf8ByteLength(t){let r=0;for(let n=0,l=t.length;n<l;n++){const c=t.charCodeAt(n);let u=c,d=!1;if(c>=55296&&c<=56319&&n+1<l){const _=t.charCodeAt(n+1);_>=56320&&_<=57343&&(u=(c-55296<<10)+65536|_-56320,d=!0)}u<=127?r+=1:u<=2047?r+=2:u<=65535?r+=3:r+=4,d&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const jc=class ir{constructor(t){if(kt(this,"id",++ir.LAST_ID),kt(this,"_onigBinding"),kt(this,"content"),kt(this,"utf16Length"),kt(this,"utf8Length"),kt(this,"utf16OffsetToUtf8"),kt(this,"utf8OffsetToUtf16"),kt(this,"ptr"),!Mt)throw new l_("Must invoke loadWasm first.");this._onigBinding=Mt,this.content=t;const r=new Uc(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!ir._sharedPtrInUse?(ir._sharedPtr||(ir._sharedPtr=Mt.omalloc(1e4)),ir._sharedPtrInUse=!0,Mt.HEAPU8.set(r.utf8Value,ir._sharedPtr),this.ptr=ir._sharedPtr):this.ptr=r.createString(Mt)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===ir._sharedPtr?ir._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};kt(jc,"LAST_ID",0);kt(jc,"_sharedPtr",0);kt(jc,"_sharedPtrInUse",!1);let B0=jc;class rE{constructor(t){if(kt(this,"_onigBinding"),kt(this,"_ptr"),!Mt)throw new l_("Must invoke loadWasm first.");const r=[],n=[];for(let d=0,_=t.length;d<_;d++){const f=new Uc(t[d]);r[d]=f.createString(Mt),n[d]=f.utf8Length}const l=Mt.omalloc(4*t.length);Mt.HEAPU32.set(r,l/4);const c=Mt.omalloc(4*t.length);Mt.HEAPU32.set(n,c/4);const u=Mt.createOnigScanner(l,c,t.length);for(let d=0,_=t.length;d<_;d++)Mt.ofree(r[d]);Mt.ofree(c),Mt.ofree(l),u===0&&iE(Mt),this._onigBinding=Mt,this._ptr=u}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let l=0;if(typeof n=="number"&&(l=n),typeof t=="string"){t=new B0(t);const c=this._findNextMatchSync(t,r,!1,l);return t.dispose(),c}return this._findNextMatchSync(t,r,!1,l)}_findNextMatchSync(t,r,n,l){const c=this._onigBinding,u=c.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),l);if(u===0)return null;const d=c.HEAPU32;let _=u/4;const f=d[_++],v=d[_++],m=[];for(let y=0;y<v;y++){const S=t.convertUtf8OffsetToUtf16(d[_++]),b=t.convertUtf8OffsetToUtf16(d[_++]);m[y]={start:S,end:b,length:b-S}}return{index:f,captureIndices:m}}}function sE(e){return typeof e.instantiator=="function"}function nE(e){return typeof e.default=="function"}function aE(e){return typeof e.data<"u"}function lE(e){return typeof Response<"u"&&e instanceof Response}function oE(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Zo;function o_(e){if(Zo)return Zo;async function t(){Mt=await JC(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),sE(n)?n=await n.instantiator(r):nE(n)?n=await n.default(r):(aE(n)&&(n=n.data),lE(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await cE(n)(r):n=await uE(n)(r):oE(n)?n=await bd(n)(r):n instanceof WebAssembly.Module?n=await bd(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await bd(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return Zo=t(),Zo}function bd(e){return t=>WebAssembly.instantiate(e,t)}function cE(e){return t=>WebAssembly.instantiateStreaming(e,t)}function uE(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}let z0;function hE(e){z0=e}function dE(){return z0}async function P0(e){return e&&await o_(e),{createScanner(t){return new rE(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new B0(t)}}}const fE=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:P0,getDefaultWasmLoader:dE,loadWasm:o_,setDefaultWasmLoader:hE},Symbol.toStringTag,{value:"Module"}));var I0=t_({});N0(I0,fE);var et=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function _E(e){return c_(e)}function c_(e){return Array.isArray(e)?pE(e):e instanceof RegExp?e:typeof e=="object"?mE(e):e}function pE(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=c_(e[r]);return t}function mE(e){let t={};for(let r in e)t[r]=c_(e[r]);return t}function H0(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function U0(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?U0(e.substring(0,e.length-1)):e.substr(~t+1)}var wd=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Qo=class{static hasCaptures(e){return e===null?!1:(wd.lastIndex=0,wd.test(e))}static replaceCaptures(e,t,r){return e.replace(wd,(n,l,c,u)=>{let d=r[parseInt(l||c,10)];if(d){let _=t.substring(d.start,d.end);for(;_[0]===".";)_=_.substring(1);switch(u){case"downcase":return _.toLowerCase();case"upcase":return _.toUpperCase();default:return _}}else return n})}};function j0(e,t){return e<t?-1:e>t?1:0}function V0(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let l=0;l<r;l++){let c=j0(e[l],t[l]);if(c!==0)return c}return 0}return r-n}function $v(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function $0(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var G0=class{constructor(e){V(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},wc=class{constructor(e,t,r){V(this,"_cachedMatchRoot",new G0(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(yE(e),t)}static createFromParsedTheme(e,t){return bE(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(l=>gE(e.parent,l.parentScopes));return n?new q0(n.fontStyle,n.foreground,n.background):null}},Cd=class hc{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new hc(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new hc(r,t[n]);return r}push(t){return new hc(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function gE(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],l=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],l=!0}for(;e&&!vE(e.scopeName,n);){if(l)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function vE(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var q0=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function yE(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let l=0,c=t.length;l<c;l++){let u=t[l];if(!u.settings)continue;let d;if(typeof u.scope=="string"){let m=u.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),d=m.split(",")}else Array.isArray(u.scope)?d=u.scope:d=[""];let _=-1;if(typeof u.settings.fontStyle=="string"){_=0;let m=u.settings.fontStyle.split(" ");for(let y=0,S=m.length;y<S;y++)switch(m[y]){case"italic":_=_|1;break;case"bold":_=_|2;break;case"underline":_=_|4;break;case"strikethrough":_=_|8;break}}let f=null;typeof u.settings.foreground=="string"&&$v(u.settings.foreground)&&(f=u.settings.foreground);let v=null;typeof u.settings.background=="string"&&$v(u.settings.background)&&(v=u.settings.background);for(let m=0,y=d.length;m<y;m++){let b=d[m].trim().split(" "),E=b[b.length-1],T=null;b.length>1&&(T=b.slice(0,b.length-1),T.reverse()),r[n++]=new SE(E,T,l,_,f,v)}}return r}var SE=class{constructor(e,t,r,n,l,c){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=l,this.background=c}},Zt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Zt||{});function bE(e,t){e.sort((_,f)=>{let v=j0(_.scope,f.scope);return v!==0||(v=V0(_.parentScopes,f.parentScopes),v!==0)?v:_.index-f.index});let r=0,n="#000000",l="#ffffff";for(;e.length>=1&&e[0].scope==="";){let _=e.shift();_.fontStyle!==-1&&(r=_.fontStyle),_.foreground!==null&&(n=_.foreground),_.background!==null&&(l=_.background)}let c=new wE(t),u=new q0(r,c.getId(n),c.getId(l)),d=new EE(new Qd(0,null,-1,0,0),[]);for(let _=0,f=e.length;_<f;_++){let v=e[_];d.insert(0,v.scope,v.parentScopes,v.fontStyle,c.getId(v.foreground),c.getId(v.background))}return new wc(c,u,d)}var wE=class{constructor(e){V(this,"_isFrozen");V(this,"_lastColorId");V(this,"_id2color");V(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},CE=Object.freeze([]),Qd=class W0{constructor(t,r,n,l,c){V(this,"scopeDepth");V(this,"parentScopes");V(this,"fontStyle");V(this,"foreground");V(this,"background");this.scopeDepth=t,this.parentScopes=r||CE,this.fontStyle=n,this.foreground=l,this.background=c}clone(){return new W0(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,l=t.length;n<l;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,l){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),l!==0&&(this.background=l)}},EE=class Jd{constructor(t,r=[],n={}){V(this,"_rulesWithParentScopes");this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,l=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[l]===">"&&l++,!(n>=t.parentScopes.length||l>=r.parentScopes.length);){const c=r.parentScopes[l].length-t.parentScopes[n].length;if(c!==0)return c;n++,l++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),l,c;if(n===-1?(l=t,c=""):(l=t.substring(0,n),c=t.substring(n+1)),this._children.hasOwnProperty(l))return this._children[l].match(c)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Jd._cmpBySpecificity),r}insert(t,r,n,l,c,u){if(r===""){this._doInsertHere(t,n,l,c,u);return}let d=r.indexOf("."),_,f;d===-1?(_=r,f=""):(_=r.substring(0,d),f=r.substring(d+1));let v;this._children.hasOwnProperty(_)?v=this._children[_]:(v=new Jd(this._mainRule.clone(),Qd.cloneArr(this._rulesWithParentScopes)),this._children[_]=v),v.insert(t+1,f,n,l,c,u)}_doInsertHere(t,r,n,l,c){if(r===null){this._mainRule.acceptOverwrite(t,n,l,c);return}for(let u=0,d=this._rulesWithParentScopes.length;u<d;u++){let _=this._rulesWithParentScopes[u];if(V0(_.parentScopes,r)===0){_.acceptOverwrite(t,n,l,c);return}}n===-1&&(n=this._mainRule.fontStyle),l===0&&(l=this._mainRule.foreground),c===0&&(c=this._mainRule.background),this._rulesWithParentScopes.push(new Qd(t,r,n,l,c))}},Zn=class Pi{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=Pi.getLanguageId(t),n=Pi.getTokenType(t),l=Pi.getFontStyle(t),c=Pi.getForeground(t),u=Pi.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:l,foreground:c,background:u})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,l,c,u,d){let _=Pi.getLanguageId(t),f=Pi.getTokenType(t),v=Pi.containsBalancedBrackets(t)?1:0,m=Pi.getFontStyle(t),y=Pi.getForeground(t),S=Pi.getBackground(t);return r!==0&&(_=r),n!==8&&(f=n),l!==null&&(v=l?1:0),c!==-1&&(m=c),u!==0&&(y=u),d!==0&&(S=d),(_<<0|f<<8|v<<10|m<<11|y<<15|S<<24)>>>0}};function Cc(e,t){const r=[],n=xE(e);let l=n.next();for(;l!==null;){let _=0;if(l.length===2&&l.charAt(1)===":"){switch(l.charAt(0)){case"R":_=1;break;case"L":_=-1;break;default:console.log(`Unknown priority ${l} in scope selector`)}l=n.next()}let f=u();if(r.push({matcher:f,priority:_}),l!==",")break;l=n.next()}return r;function c(){if(l==="-"){l=n.next();const _=c();return f=>!!_&&!_(f)}if(l==="("){l=n.next();const _=d();return l===")"&&(l=n.next()),_}if(Gv(l)){const _=[];do _.push(l),l=n.next();while(Gv(l));return f=>t(_,f)}return null}function u(){const _=[];let f=c();for(;f;)_.push(f),f=c();return v=>_.every(m=>m(v))}function d(){const _=[];let f=u();for(;f&&(_.push(f),l==="|"||l===",");){do l=n.next();while(l==="|"||l===",");f=u()}return v=>_.some(m=>m(v))}}function Gv(e){return!!e&&!!e.match(/[\w\.:]+/)}function xE(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function F0(e){typeof e.dispose=="function"&&e.dispose()}var ml=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},AE=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},kE=class{constructor(){V(this,"_references",[]);V(this,"_seenReferenceKeys",new Set);V(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},TE=class{constructor(e,t){V(this,"seenFullScopeRequests",new Set);V(this,"seenPartialScopeRequests",new Set);V(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ml(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new kE;for(const r of e)RE(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof ml){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function RE(e,t,r,n){const l=r.lookup(e.scopeName);if(!l){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const c=r.lookup(t);e instanceof ml?dc({baseGrammar:c,selfGrammar:l},n):ef(e.ruleName,{baseGrammar:c,selfGrammar:l,repository:l.repository},n);const u=r.injections(e.scopeName);if(u)for(const d of u)n.add(new ml(d))}function ef(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];Ec([n],t,r)}}function dc(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ec(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ec(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ec(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const l=n.repository?H0({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&Ec(n.patterns,{...t,repository:l},r);const c=n.include;if(!c)continue;const u=Y0(c);switch(u.kind){case 0:dc({...t,selfGrammar:t.baseGrammar},r);break;case 1:dc(t,r);break;case 2:ef(u.ruleName,{...t,repository:l},r);break;case 3:case 4:const d=u.scopeName===t.selfGrammar.scopeName?t.selfGrammar:u.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(d){const _={baseGrammar:t.baseGrammar,selfGrammar:d,repository:l};u.kind===4?ef(u.ruleName,_,r):dc(_,r)}else u.kind===4?r.add(new AE(u.scopeName,u.ruleName)):r.add(new ml(u.scopeName));break}}}var DE=class{constructor(){V(this,"kind",0)}},LE=class{constructor(){V(this,"kind",1)}},OE=class{constructor(e){V(this,"kind",2);this.ruleName=e}},ME=class{constructor(e){V(this,"kind",3);this.scopeName=e}},NE=class{constructor(e,t){V(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Y0(e){if(e==="$base")return new DE;if(e==="$self")return new LE;const t=e.indexOf("#");if(t===-1)return new ME(e);if(t===0)return new OE(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new NE(r,n)}}var BE=/\\(\d+)/,qv=/\\(\d+)/g,zE=-1,K0=-2;var xl=class{constructor(e,t,r,n){V(this,"$location");V(this,"id");V(this,"_nameIsCapturing");V(this,"_name");V(this,"_contentNameIsCapturing");V(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=Qo.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Qo.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${U0(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Qo.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Qo.replaceCaptures(this._contentName,e,t)}},PE=class extends xl{constructor(t,r,n,l,c){super(t,r,n,l);V(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=c}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,n,l){throw new Error("Not supported!")}},IE=class extends xl{constructor(t,r,n,l,c){super(t,r,n,null);V(this,"_match");V(this,"captures");V(this,"_cachedCompiledPatterns");this._match=new gl(l,this.id),this.captures=c,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,l){return this._getCachedCompiledPatterns(t).compileAG(t,n,l)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new vl,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Wv=class extends xl{constructor(t,r,n,l,c){super(t,r,n,l);V(this,"hasMissingPatterns");V(this,"patterns");V(this,"_cachedCompiledPatterns");this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const n of this.patterns)t.getRule(n).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,l){return this._getCachedCompiledPatterns(t).compileAG(t,n,l)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new vl,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tf=class extends xl{constructor(t,r,n,l,c,u,d,_,f,v){super(t,r,n,l);V(this,"_begin");V(this,"beginCaptures");V(this,"_end");V(this,"endHasBackReferences");V(this,"endCaptures");V(this,"applyEndPatternLast");V(this,"hasMissingPatterns");V(this,"patterns");V(this,"_cachedCompiledPatterns");this._begin=new gl(c,this.id),this.beginCaptures=u,this._end=new gl(d||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=_,this.applyEndPatternLast=f||!1,this.patterns=v.patterns,this.hasMissingPatterns=v.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,n,l){return this._getCachedCompiledPatterns(t,r).compileAG(t,n,l)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new vl;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},xc=class extends xl{constructor(t,r,n,l,c,u,d,_,f){super(t,r,n,l);V(this,"_begin");V(this,"beginCaptures");V(this,"whileCaptures");V(this,"_while");V(this,"whileHasBackReferences");V(this,"hasMissingPatterns");V(this,"patterns");V(this,"_cachedCompiledPatterns");V(this,"_cachedCompiledWhilePatterns");this._begin=new gl(c,this.id),this.beginCaptures=u,this.whileCaptures=_,this._while=new gl(d,K0),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,l){return this._getCachedCompiledPatterns(t).compileAG(t,n,l)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new vl;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,n,l){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,n,l)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new vl,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},X0=class Kt{static createCaptureRule(t,r,n,l,c){return t.registerRule(u=>new PE(r,u,n,l,c))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(l=>{if(t.id=l,t.match)return new IE(t.$vscodeTextmateLocation,t.id,t.name,t.match,Kt._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=H0({},n,t.repository));let c=t.patterns;return typeof c>"u"&&t.include&&(c=[{include:t.include}]),new Wv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Kt._compilePatterns(c,r,n))}return t.while?new xc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kt._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,Kt._compileCaptures(t.whileCaptures||t.captures,r,n),Kt._compilePatterns(t.patterns,r,n)):new tf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kt._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,Kt._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,Kt._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let l=[];if(t){let c=0;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const d=parseInt(u,10);d>c&&(c=d)}for(let u=0;u<=c;u++)l[u]=null;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const d=parseInt(u,10);let _=0;t[u].patterns&&(_=Kt.getCompiledRuleId(t[u],r,n)),l[d]=Kt.createCaptureRule(r,t[u].$vscodeTextmateLocation,t[u].name,t[u].contentName,_)}}return l}static _compilePatterns(t,r,n){let l=[];if(t)for(let c=0,u=t.length;c<u;c++){const d=t[c];let _=-1;if(d.include){const f=Y0(d.include);switch(f.kind){case 0:case 1:_=Kt.getCompiledRuleId(n[d.include],r,n);break;case 2:let v=n[f.ruleName];v&&(_=Kt.getCompiledRuleId(v,r,n));break;case 3:case 4:const m=f.scopeName,y=f.kind===4?f.ruleName:null,S=r.getExternalGrammar(m,n);if(S)if(y){let b=S.repository[y];b&&(_=Kt.getCompiledRuleId(b,r,S.repository))}else _=Kt.getCompiledRuleId(S.repository.$self,r,S.repository);break}}else _=Kt.getCompiledRuleId(d,r,n);if(_!==-1){const f=r.getRule(_);let v=!1;if((f instanceof Wv||f instanceof tf||f instanceof xc)&&f.hasMissingPatterns&&f.patterns.length===0&&(v=!0),v)continue;l.push(_)}}return{patterns:l,hasMissingPatterns:(t?t.length:0)!==l.length}}},gl=class Z0{constructor(t,r){V(this,"source");V(this,"ruleId");V(this,"hasAnchor");V(this,"hasBackReferences");V(this,"_anchorCache");if(t&&typeof t=="string"){const n=t.length;let l=0,c=[],u=!1;for(let d=0;d<n;d++)if(t.charAt(d)==="\\"&&d+1<n){const f=t.charAt(d+1);f==="z"?(c.push(t.substring(l,d)),c.push("$(?!\\n)(?<!\\n)"),l=d+2):(f==="A"||f==="G")&&(u=!0),d++}this.hasAnchor=u,l===0?this.source=t:(c.push(t.substring(l,n)),this.source=c.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=BE.test(this.source):this.hasBackReferences=!1}clone(){return new Z0(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(l=>t.substring(l.start,l.end));return qv.lastIndex=0,this.source.replace(qv,(l,c)=>$0(n[parseInt(c,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],l=[],c,u,d,_;for(c=0,u=this.source.length;c<u;c++)d=this.source.charAt(c),t[c]=d,r[c]=d,n[c]=d,l[c]=d,d==="\\"&&c+1<u&&(_=this.source.charAt(c+1),_==="A"?(t[c+1]="",r[c+1]="",n[c+1]="A",l[c+1]="A"):_==="G"?(t[c+1]="",r[c+1]="G",n[c+1]="",l[c+1]="G"):(t[c+1]=_,r[c+1]=_,n[c+1]=_,l[c+1]=_),c++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:l.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},vl=class{constructor(){V(this,"_items");V(this,"_hasAnchors");V(this,"_cached");V(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new Fv(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(l=>l.resolveAnchors(t,r));return new Fv(e,n,this._items.map(l=>l.ruleId))}},Fv=class{constructor(e,t,r){V(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
51
51
|
`)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Ed=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Dr,HE=(Dr=class{constructor(t,r){V(this,"_defaultAttributes");V(this,"_embeddedLanguagesMatcher");V(this,"_getBasicScopeAttributes",new G0(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new Ed(r,n)}));this._defaultAttributes=new Ed(t,8),this._embeddedLanguagesMatcher=new UE(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Dr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(Dr.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},V(Dr,"_NULL_SCOPE_METADATA",new Ed(0,0)),V(Dr,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Dr),UE=class{constructor(e){V(this,"values");V(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>$0(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Yv=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Q0(e,t,r,n,l,c,u,d){const _=t.content.length;let f=!1,v=-1;if(u){const S=jE(e,t,r,n,l,c);l=S.stack,n=S.linePos,r=S.isFirstLine,v=S.anchorPosition}const m=Date.now();for(;!f;){if(d!==0&&Date.now()-m>d)return new Yv(l,!0);y()}return new Yv(l,!1);function y(){const S=VE(e,t,r,n,l,v);if(!S){c.produce(l,_),f=!0;return}const b=S.captureIndices,E=S.matchedRuleId,T=b&&b.length>0?b[0].end>n:!1;if(E===zE){const O=l.getRule(e);c.produce(l,b[0].start),l=l.withContentNameScopesList(l.nameScopesList),al(e,t,r,l,c,O.endCaptures,b),c.produce(l,b[0].end);const H=l;if(l=l.parent,v=H.getAnchorPos(),!T&&H.getEnterPos()===n){l=H,c.produce(l,_),f=!0;return}}else{const O=e.getRule(E);c.produce(l,b[0].start);const H=l,B=O.getName(t.content,b),I=l.contentNameScopesList.pushAttributed(B,e);if(l=l.push(E,n,v,b[0].end===_,null,I,I),O instanceof tf){const j=O;al(e,t,r,l,c,j.beginCaptures,b),c.produce(l,b[0].end),v=b[0].end;const Y=j.getContentName(t.content,b),te=I.pushAttributed(Y,e);if(l=l.withContentNameScopesList(te),j.endHasBackReferences&&(l=l.withEndRule(j.getEndWithResolvedBackReferences(t.content,b))),!T&&H.hasSameRuleAs(l)){l=l.pop(),c.produce(l,_),f=!0;return}}else if(O instanceof xc){const j=O;al(e,t,r,l,c,j.beginCaptures,b),c.produce(l,b[0].end),v=b[0].end;const Y=j.getContentName(t.content,b),te=I.pushAttributed(Y,e);if(l=l.withContentNameScopesList(te),j.whileHasBackReferences&&(l=l.withEndRule(j.getWhileWithResolvedBackReferences(t.content,b))),!T&&H.hasSameRuleAs(l)){l=l.pop(),c.produce(l,_),f=!0;return}}else if(al(e,t,r,l,c,O.captures,b),c.produce(l,b[0].end),l=l.pop(),!T){l=l.safePop(),c.produce(l,_),f=!0;return}}b[0].end>n&&(n=b[0].end,r=!1)}}function jE(e,t,r,n,l,c){let u=l.beginRuleCapturedEOL?0:-1;const d=[];for(let _=l;_;_=_.pop()){const f=_.getRule(e);f instanceof xc&&d.push({rule:f,stack:_})}for(let _=d.pop();_;_=d.pop()){const{ruleScanner:f,findOptions:v}=qE(_.rule,e,_.stack.endRule,r,n===u),m=f.findNextMatchSync(t,n,v);if(m){if(m.ruleId!==K0){l=_.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(c.produce(_.stack,m.captureIndices[0].start),al(e,t,r,_.stack,c,_.rule.whileCaptures,m.captureIndices),c.produce(_.stack,m.captureIndices[0].end),u=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,r=!1))}else{l=_.stack.pop();break}}return{stack:l,linePos:n,anchorPosition:u,isFirstLine:r}}function VE(e,t,r,n,l,c){const u=$E(e,t,r,n,l,c),d=e.getInjections();if(d.length===0)return u;const _=GE(d,e,t,r,n,l,c);if(!_)return u;if(!u)return _;const f=u.captureIndices[0].start,v=_.captureIndices[0].start;return v<f||_.priorityMatch&&v===f?_:u}function $E(e,t,r,n,l,c){const u=l.getRule(e),{ruleScanner:d,findOptions:_}=J0(u,e,l.endRule,r,n===c),f=d.findNextMatchSync(t,n,_);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function GE(e,t,r,n,l,c,u){let d=Number.MAX_VALUE,_=null,f,v=0;const m=c.contentNameScopesList.getScopeNames();for(let y=0,S=e.length;y<S;y++){const b=e[y];if(!b.matcher(m))continue;const E=t.getRule(b.ruleId),{ruleScanner:T,findOptions:O}=J0(E,t,null,n,l===u),H=T.findNextMatchSync(r,l,O);if(!H)continue;const B=H.captureIndices[0].start;if(!(B>=d)&&(d=B,_=H.captureIndices,f=H.ruleId,v=b.priority,d===l))break}return _?{priorityMatch:v===-1,captureIndices:_,matchedRuleId:f}:null}function J0(e,t,r,n,l){return{ruleScanner:e.compileAG(t,r,n,l),findOptions:0}}function qE(e,t,r,n,l){return{ruleScanner:e.compileWhileAG(t,r,n,l),findOptions:0}}function al(e,t,r,n,l,c,u){if(c.length===0)return;const d=t.content,_=Math.min(c.length,u.length),f=[],v=u[0].end;for(let m=0;m<_;m++){const y=c[m];if(y===null)continue;const S=u[m];if(S.length===0)continue;if(S.start>v)break;for(;f.length>0&&f[f.length-1].endPos<=S.start;)l.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?l.produceFromScopes(f[f.length-1].scopes,S.start):l.produce(n,S.start),y.retokenizeCapturedWithRuleId){const E=y.getName(d,u),T=n.contentNameScopesList.pushAttributed(E,e),O=y.getContentName(d,u),H=T.pushAttributed(O,e),B=n.push(y.retokenizeCapturedWithRuleId,S.start,-1,!1,null,T,H),I=e.createOnigString(d.substring(0,S.end));Q0(e,I,r&&S.start===0,S.start,B,l,!1,0),F0(I);continue}const b=y.getName(d,u);if(b!==null){const T=(f.length>0?f[f.length-1].scopes:n.contentNameScopesList).pushAttributed(b,e);f.push(new WE(T,S.end))}}for(;f.length>0;)l.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var WE=class{constructor(e,t){V(this,"scopes");V(this,"endPos");this.scopes=e,this.endPos=t}};function FE(e,t,r,n,l,c,u,d){return new KE(e,t,r,n,l,c,u,d)}function Kv(e,t,r,n,l){const c=Cc(t,Ac),u=X0.getCompiledRuleId(r,n,l.repository);for(const d of c)e.push({debugSelector:t,matcher:d.matcher,ruleId:u,grammar:l,priority:d.priority})}function Ac(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let l=r;l<t.length;l++)if(YE(t[l],n))return r=l+1,!0;return!1})}function YE(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var KE=class{constructor(e,t,r,n,l,c,u,d){V(this,"_rootId");V(this,"_lastRuleId");V(this,"_ruleId2desc");V(this,"_includedGrammars");V(this,"_grammarRepository");V(this,"_grammar");V(this,"_injections");V(this,"_basicScopeAttributesProvider");V(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=c,this._onigLib=d,this._basicScopeAttributesProvider=new HE(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=u,this._grammar=Xv(t,null),this._injections=null,this._tokenTypeMatchers=[],l)for(const _ of Object.keys(l)){const f=Cc(_,Ac);for(const v of f)this._tokenTypeMatchers.push({matcher:v.matcher,type:l[_]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:l=>l===this._rootScopeName?this._grammar:this.getExternalGrammar(l),injections:l=>this._grammarRepository.injections(l)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const l=n.injections;if(l)for(let u in l)Kv(t,u,l[u],this,n);const c=this._grammarRepository.injections(r);c&&c.forEach(u=>{const d=this.getExternalGrammar(u);if(d){const _=d.injectionSelector;_&&Kv(t,_,d,this,d)}})}return t.sort((l,c)=>l.priority-c.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Xv(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=X0.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let l;if(!t||t===rf.NULL){l=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),v=this.themeProvider.getDefaults(),m=Zn.set(0,f.languageId,f.tokenType,null,v.fontStyle,v.foregroundId,v.backgroundId),y=this.getRule(this._rootId).getName(null,null);let S;y?S=dl.createRootAndLookUpScopeName(y,m,this):S=dl.createRoot("unknown",m),t=new rf(null,this._rootId,-1,-1,!1,null,S,S)}else l=!1,t.reset();e=e+`
|
|
52
|
-
`;const c=this.createOnigString(e),u=c.content.length,d=new ZE(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),_=Q0(this,c,l,0,t,d,!0,n);return F0(c),{lineLength:u,lineTokens:d,ruleStack:_.stack,stoppedEarly:_.stoppedEarly}}};function Xv(e,t){return e=_E(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var dl=class rr{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,l=(t==null?void 0:t.scopePath)??null;for(const c of r)l=Cd.push(l,c.scopeNames),n=new rr(n,l,c.encodedTokenAttributes);return n}static createRoot(t,r){return new rr(null,new Cd(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const l=n.getMetadataForScope(t),c=new Cd(null,t),u=n.themeProvider.themeMatch(c),d=rr.mergeAttributes(r,l,u);return new rr(null,c,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return rr.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let l=-1,c=0,u=0;return n!==null&&(l=n.fontStyle,c=n.foregroundId,u=n.backgroundId),Zn.set(t,r.languageId,r.tokenType,null,l,c,u)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return rr._pushAttributed(this,t,r);const n=t.split(/ /g);let l=this;for(const c of n)l=rr._pushAttributed(l,c,r);return l}static _pushAttributed(t,r,n){const l=n.getMetadataForScope(r),c=t.scopePath.push(r),u=n.themeProvider.themeMatch(c),d=rr.mergeAttributes(t.tokenAttributes,l,u);return new rr(t,c,d)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var l;const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((l=n.parent)==null?void 0:l.scopePath)??null)}),n=n.parent;return n===t?r.reverse():void 0}},Ui,rf=(Ui=class{constructor(t,r,n,l,c,u,d,_){V(this,"_stackElementBrand");V(this,"_enterPos");V(this,"_anchorPos");V(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=c,this.endRule=u,this.nameScopesList=d,this.contentNameScopesList=_,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=l}equals(t){return t===null?!1:Ui._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?dl.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Ui._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,l,c,u,d){return new Ui(this,t,r,n,l,c,u,d)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){var n,l;return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(l=this.contentNameScopesList)==null?void 0:l.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Ui(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var t,r,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,r){const n=dl.fromExtension((t==null?void 0:t.nameScopesList)??null,r.nameScopesList);return new Ui(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,dl.fromExtension(n,r.contentNameScopesList))}},V(Ui,"NULL",new Ui(null,0,0,0,!1,null,null,null)),Ui),XE=class{constructor(e,t){V(this,"balancedBracketScopes");V(this,"unbalancedBracketScopes");V(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Cc(r,Ac).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Cc(r,Ac).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ZE=class{constructor(e,t,r,n){V(this,"_emitBinaryTokens");V(this,"_lineText");V(this,"_tokens");V(this,"_binaryTokens");V(this,"_lastTokenEndIndex");V(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let l=(e==null?void 0:e.tokenAttributes)??0,c=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(c=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=(e==null?void 0:e.getScopeNames())??[];for(const d of this._tokenTypeOverrides)d.matcher(u)&&(l=Zn.set(l,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(c=this.balancedBracketSelectors.match(u))}if(c&&(l=Zn.set(l,0,8,c,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===l){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(l),this._lastTokenEndIndex=t;return}const r=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,l=this._binaryTokens.length;n<l;n++)r[n]=this._binaryTokens[n];return r}},QE=class{constructor(e,t){V(this,"_grammars",new Map);V(this,"_rawGrammars",new Map);V(this,"_injectionGrammars",new Map);V(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,l){if(!this._grammars.has(e)){let c=this._rawGrammars.get(e);if(!c)return null;this._grammars.set(e,FE(e,c,t,r,n,l,this,this._onigLib))}return this._grammars.get(e)}},JE=class{constructor(t){V(this,"_options");V(this,"_syncRegistry");V(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new QE(wc.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(wc.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new XE(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,l,c){const u=new TE(this._syncRegistry,t);for(;u.Q.length>0;)u.Q.map(d=>this._loadSingleGrammar(d.scopeName)),u.processQueue();return this._grammarForScopeName(t,r,n,l,c)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,l=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,l)}_grammarForScopeName(t,r=0,n=null,l=null,c=null){return this._syncRegistry.grammarForScopeName(t,r,n,l,c)}},sf=rf.NULL;function kc(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[l,c]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof c=="string"?r[l]=c:l===n&&Object.assign(r,c);return r}function gs(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function e2(e){return Array.isArray(e)?e:[e]}async function eS(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Vc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tS(e){return e==="ansi"||Vc(e)}function $c(e){return e==="none"}function iS(e){return $c(e)}function Gc(e,t=!1){var c;if(e.length===0)return[["",0]];const r=e.split(/(\r?\n)/g);let n=0;const l=[];for(let u=0;u<r.length;u+=2){const d=t?r[u]+(r[u+1]||""):r[u];l.push([d,n]),n+=r[u].length,n+=((c=r[u+1])==null?void 0:c.length)||0}return l}const Zv={light:"#333333",dark:"#bbbbbb"},Qv={light:"#fffffe",dark:"#1e1e1e"},Jv="__shiki_resolved";function u_(e){var d,_,f,v,m;if(e!=null&&e[Jv])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:r,fg:n}=t;if(!r||!n){const y=t.settings?t.settings.find(S=>!S.name&&!S.scope):void 0;(d=y==null?void 0:y.settings)!=null&&d.foreground&&(n=y.settings.foreground),(_=y==null?void 0:y.settings)!=null&&_.background&&(r=y.settings.background),!n&&((f=t==null?void 0:t.colors)!=null&&f["editor.foreground"])&&(n=t.colors["editor.foreground"]),!r&&((v=t==null?void 0:t.colors)!=null&&v["editor.background"])&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?Zv.light:Zv.dark),r||(r=t.type==="light"?Qv.light:Qv.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let l=0;const c=new Map;function u(y){var b;if(c.has(y))return c.get(y);l+=1;const S=`#${l.toString(16).padStart(8,"0").toLowerCase()}`;return(b=t.colorReplacements)!=null&&b[`#${S}`]?u(y):(c.set(y,S),S)}t.settings=t.settings.map(y=>{var T,O;const S=((T=y.settings)==null?void 0:T.foreground)&&!y.settings.foreground.startsWith("#"),b=((O=y.settings)==null?void 0:O.background)&&!y.settings.background.startsWith("#");if(!S&&!b)return y;const E={...y,settings:{...y.settings}};if(S){const H=u(y.settings.foreground);t.colorReplacements[H]=y.settings.foreground,E.settings.foreground=H}if(b){const H=u(y.settings.background);t.colorReplacements[H]=y.settings.background,E.settings.background=H}return E});for(const y of Object.keys(t.colors||{}))if((y==="editor.foreground"||y==="editor.background"||y.startsWith("terminal.ansi"))&&!((m=t.colors[y])!=null&&m.startsWith("#"))){const S=u(t.colors[y]);t.colorReplacements[S]=t.colors[y],t.colors[y]=S}return Object.defineProperty(t,Jv,{enumerable:!1,writable:!1,value:!0}),t}async function rS(e){return Array.from(new Set((await Promise.all(e.filter(t=>!tS(t)).map(async t=>await eS(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function sS(e){return(await Promise.all(e.map(async t=>iS(t)?null:u_(await eS(t))))).filter(t=>!!t)}function nS(e,t){if(!t)return e;if(t[e]){const r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new et(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var t2=class extends JE{constructor(t,r,n,l={}){super(t);V(this,"_resolvedThemes",new Map);V(this,"_resolvedGrammars",new Map);V(this,"_langMap",new Map);V(this,"_langGraph",new Map);V(this,"_textmateThemeCache",new WeakMap);V(this,"_loadedThemesCache",null);V(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=r,this._langs=n,this._alias=l,this._themes.map(c=>this.loadTheme(c)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const r=u_(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=wc.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){return t=nS(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var c,u,d,_;if(this.getGrammar(t.name))return;const r=new Set([...this._langMap.values()].filter(f=>{var v;return(v=f.embeddedLangsLazy)==null?void 0:v.includes(t.name)}));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const l=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(l.name=t.name,this._resolvedGrammars.set(t.name,l),t.aliases&&t.aliases.forEach(f=>{this._alias[f]=t.name}),this._loadedLanguagesCache=null,r.size)for(const f of r)this._resolvedGrammars.delete(f.name),this._loadedLanguagesCache=null,(u=(c=this._syncRegistry)==null?void 0:c._injectionGrammars)==null||u.delete(f.scopeName),(_=(d=this._syncRegistry)==null?void 0:d._grammars)==null||_.delete(f.scopeName),this.loadLanguage(this._langMap.get(f.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const l of t)this.resolveEmbeddedLanguages(l);const r=Array.from(this._langGraph.entries()),n=r.filter(([l,c])=>!c);if(n.length){const l=r.filter(([c,u])=>{var d;return u?(d=u.embeddedLanguages||u.embeddedLangs)==null?void 0:d.some(_=>n.map(([f])=>f).includes(_)):!1}).filter(c=>!n.includes(c));throw new et(`Missing languages ${n.map(([c])=>`\`${c}\``).join(", ")}, required by ${l.map(([c])=>`\`${c}\``).join(", ")}`)}for(const[l,c]of r)this._resolver.addLanguage(c);for(const[l,c]of r)this.loadLanguage(c)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const r=t.embeddedLanguages??t.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}},i2=class{constructor(e,t){V(this,"_langs",new Map);V(this,"_scopeToLang",new Map);V(this,"_injections",new Map);V(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let n=1;n<=t.length;n++){const l=t.slice(0,n).join(".");r=[...r,...this._injections.get(l)||[]]}return r}};let Ja=0;function r2(e){Ja+=1,e.warnings!==!1&&Ja>=10&&Ja%10===0&&console.warn(`[Shiki] ${Ja} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new et("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(u_),l=new t2(new i2(e.engine,r),n,r,e.langAlias);let c;function u(H){return nS(H,e.langAlias)}function d(H){T();const B=l.getGrammar(typeof H=="string"?H:H.name);if(!B)throw new et(`Language \`${H}\` not found, you may need to load it first`);return B}function _(H){if(H==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();const B=l.getTheme(H);if(!B)throw new et(`Theme \`${H}\` not found, you may need to load it first`);return B}function f(H){T();const B=_(H);return c!==H&&(l.setTheme(B),c=H),{theme:B,colorMap:l.getColorMap()}}function v(){return T(),l.getLoadedThemes()}function m(){return T(),l.getLoadedLanguages()}function y(...H){T(),l.loadLanguages(H.flat(1))}async function S(...H){return y(await rS(H))}function b(...H){T();for(const B of H.flat(1))l.loadTheme(B)}async function E(...H){return T(),b(await sS(H))}function T(){if(t)throw new et("Shiki instance has been disposed")}function O(){t||(t=!0,l.dispose(),Ja-=1)}return{setTheme:f,getTheme:_,getLanguage:d,getLoadedThemes:v,getLoadedLanguages:m,resolveLangAlias:u,loadLanguage:S,loadLanguageSync:y,loadTheme:E,loadThemeSync:b,dispose:O,[Symbol.dispose]:O}}async function s2(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([sS(e.themes||[]),rS(e.langs||[]),e.engine]);return r2({...e,themes:t,langs:r,engine:n})}const aS=new WeakMap;function qc(e,t){aS.set(e,t)}function yl(e){return aS.get(e)}var Wc=class lS{constructor(...t){V(this,"_stacks",{});V(this,"lang");if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,l]=t;this.lang=n,this._stacks={[l]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new lS(Object.fromEntries(e2(r).map(n=>[n,sf])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return n2(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function n2(e){const t=[],r=new Set;function n(l){var u;if(r.has(l))return;r.add(l);const c=(u=l==null?void 0:l.nameScopesList)==null?void 0:u.scopeName;c&&t.push(c),l.parent&&n(l.parent)}return n(e),t}function a2(e,t){if(!(e instanceof Wc))throw new et("Invalid grammar state");return e.getInternalStack(t)}function oS(e,t,r={}){const{theme:n=e.getLoadedThemes()[0]}=r;if(Vc(e.resolveLangAlias(r.lang||"text"))||$c(n))return Gc(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:l,colorMap:c}=e.setTheme(n),u=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==u.name)throw new et(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${u.name}"`);if(!r.grammarState.themes.includes(l.name))throw new et(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${l.name}"`)}return o2(t,u,l,c,r)}function l2(...e){if(e.length===2)return yl(e[1]);const[t,r,n={}]=e,{lang:l="text",theme:c=t.getLoadedThemes()[0]}=n;if(Vc(l)||$c(c))throw new et("Plain language does not have grammar state");if(l==="ansi")throw new et("ANSI language does not have grammar state");const{theme:u,colorMap:d}=t.setTheme(c),_=t.getLanguage(l);return new Wc(h_(r,_,u,d,n).stateStack,_.name,u.name)}function o2(e,t,r,n,l){const c=h_(e,t,r,n,l),u=new Wc(c.stateStack,t.name,r.name);return qc(c.tokens,u),c.tokens}function h_(e,t,r,n,l){const c=kc(r,l),{tokenizeMaxLineLength:u=0,tokenizeTimeLimit:d=500}=l,_=Gc(e);let f=l.grammarState?a2(l.grammarState,r.name)??sf:l.grammarContextCode!=null?h_(l.grammarContextCode,t,r,n,{...l,grammarState:void 0,grammarContextCode:void 0}).stateStack:sf,v=[];const m=[];for(let y=0,S=_.length;y<S;y++){const[b,E]=_[y];if(b===""){v=[],m.push([]);continue}if(u>0&&b.length>=u){v=[],m.push([{content:b,offset:E,color:"",fontStyle:0}]);continue}let T,O,H;l.includeExplanation&&(T=t.tokenizeLine(b,f,d),O=T.tokens,H=0);const B=t.tokenizeLine2(b,f,d),I=B.tokens.length/2;for(let j=0;j<I;j++){const Y=B.tokens[2*j],te=j+1<I?B.tokens[2*j+2]:b.length;if(Y===te)continue;const ge=B.tokens[2*j+1],ve=gs(n[Zn.getForeground(ge)],c),fe=Zn.getFontStyle(ge),he={content:b.substring(Y,te),offset:E+Y,color:ve,fontStyle:fe};if(l.includeExplanation){const J=[];if(l.includeExplanation!=="scopeName")for(const re of r.settings){let se;switch(typeof re.scope){case"string":se=re.scope.split(/,/).map(D=>D.trim());break;case"object":se=re.scope;break;default:continue}J.push({settings:re,selectors:se.map(D=>D.split(/ /))})}he.explanation=[];let q=0;for(;Y+q<te;){const re=O[H],se=b.substring(re.startIndex,re.endIndex);q+=se.length,he.explanation.push({content:se,scopes:l.includeExplanation==="scopeName"?c2(re.scopes):u2(J,re.scopes)}),H+=1}}v.push(he)}m.push(v),v=[],f=B.ruleStack}return{tokens:m,stateStack:f}}function c2(e){return e.map(t=>({scopeName:t}))}function u2(e,t){const r=[];for(let n=0,l=t.length;n<l;n++){const c=t[n];r[n]={scopeName:c,themeMatches:d2(e,c,t.slice(0,n))}}return r}function ey(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function h2(e,t,r){if(!ey(e[e.length-1],t))return!1;let n=e.length-2,l=r.length-1;for(;n>=0&&l>=0;)ey(e[n],r[l])&&(n-=1),l-=1;return n===-1}function d2(e,t,r){const n=[];for(const{selectors:l,settings:c}of e)for(const u of l)if(h2(u,t,r)){n.push(c);break}return n}function cS(e,t,r,n=oS){const l=Object.entries(r.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),c=l.map(f=>{const v=n(e,t,{...r,theme:f.theme});return{tokens:v,state:yl(v),theme:typeof f.theme=="string"?f.theme:f.theme.name}}),u=f2(...c.map(f=>f.tokens)),d=u[0].map((f,v)=>f.map((m,y)=>{const S={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in r&&r.includeExplanation&&(S.explanation=m.explanation),u.forEach((b,E)=>{const{content:T,explanation:O,offset:H,...B}=b[v][y];S.variants[l[E].color]=B}),S})),_=c[0].state?new Wc(Object.fromEntries(c.map(f=>{var v;return[f.theme,(v=f.state)==null?void 0:v.getInternalStack(f.theme)]})),c[0].state.lang):void 0;return _&&qc(d,_),d}function f2(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const l=e.map(_=>_[n]),c=t.map(()=>[]);t.forEach((_,f)=>_.push(c[f]));const u=l.map(()=>0),d=l.map(_=>_[0]);for(;d.every(_=>_);){const _=Math.min(...d.map(f=>f.content.length));for(let f=0;f<r;f++){const v=d[f];v.content.length===_?(c[f].push(v),u[f]+=1,d[f]=l[f][u[f]]):(c[f].push({...v,content:v.content.slice(0,_)}),d[f]={...v,content:v.content.slice(_),offset:v.offset+_})}}}return t}const _2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Al{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Al.prototype.normal={};Al.prototype.property={};Al.prototype.space=void 0;function uS(e,t){const r={},n={};for(const l of e)Object.assign(r,l.property),Object.assign(n,l.normal);return new Al(r,n,t)}function nf(e){return e.toLowerCase()}class hi{constructor(t,r){this.attribute=r,this.property=t}}hi.prototype.attribute="";hi.prototype.booleanish=!1;hi.prototype.boolean=!1;hi.prototype.commaOrSpaceSeparated=!1;hi.prototype.commaSeparated=!1;hi.prototype.defined=!1;hi.prototype.mustUseProperty=!1;hi.prototype.number=!1;hi.prototype.overloadedBoolean=!1;hi.prototype.property="";hi.prototype.spaceSeparated=!1;hi.prototype.space=void 0;let p2=0;const De=en(),bt=en(),af=en(),ae=en(),Je=en(),Kn=en(),xi=en();function en(){return 2**++p2}const lf=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:bt,commaOrSpaceSeparated:xi,commaSeparated:Kn,number:ae,overloadedBoolean:af,spaceSeparated:Je},Symbol.toStringTag,{value:"Module"})),xd=Object.keys(lf);class d_ extends hi{constructor(t,r,n,l){let c=-1;if(super(t,r),ty(this,"space",l),typeof n=="number")for(;++c<xd.length;){const u=xd[c];ty(this,xd[c],(n&lf[u])===lf[u])}}}d_.prototype.defined=!0;function ty(e,t,r){r&&(e[t]=r)}function Jn(e){const t={},r={};for(const[n,l]of Object.entries(e.properties)){const c=new d_(n,e.transform(e.attributes||{},n),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(c.mustUseProperty=!0),t[n]=c,r[nf(n)]=n,r[nf(c.attribute)]=n}return new Al(t,r,e.space)}const hS=Jn({properties:{ariaActiveDescendant:null,ariaAtomic:bt,ariaAutoComplete:null,ariaBusy:bt,ariaChecked:bt,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:Je,ariaCurrent:null,ariaDescribedBy:Je,ariaDetails:null,ariaDisabled:bt,ariaDropEffect:Je,ariaErrorMessage:null,ariaExpanded:bt,ariaFlowTo:Je,ariaGrabbed:bt,ariaHasPopup:null,ariaHidden:bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Je,ariaLevel:ae,ariaLive:null,ariaModal:bt,ariaMultiLine:bt,ariaMultiSelectable:bt,ariaOrientation:null,ariaOwns:Je,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:bt,ariaReadOnly:bt,ariaRelevant:null,ariaRequired:bt,ariaRoleDescription:Je,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:bt,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dS(e,t){return t in e?e[t]:t}function fS(e,t){return dS(e,t.toLowerCase())}const m2=Jn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kn,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:Je,autoFocus:De,autoPlay:De,blocking:Je,capture:null,charSet:null,checked:De,cite:null,className:Je,cols:ae,colSpan:null,content:null,contentEditable:bt,controls:De,controlsList:Je,coords:ae|Kn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:af,draggable:bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:Je,height:ae,hidden:af,high:ae,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:Je,itemRef:Je,itemScope:De,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,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:De,optimum:ae,pattern:null,ping:Je,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:Je,required:De,reversed:De,rows:ae,rowSpan:ae,sandbox:Je,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:bt,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:bt,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:fS}),g2=Jn({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:xi,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:Je,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:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,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:Kn,g2:Kn,glyphName:Kn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:xi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,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:ae,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:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xi,rev:xi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xi,requiredFeatures:xi,requiredFonts:xi,requiredFormats:xi,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:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:xi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xi,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dS}),_S=Jn({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()}}),pS=Jn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fS}),mS=Jn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),v2=/[A-Z]/g,iy=/-[a-z]/g,y2=/^data[-\w.:]+$/i;function S2(e,t){const r=nf(t);let n=t,l=hi;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&y2.test(t)){if(t.charAt(4)==="-"){const c=t.slice(5).replace(iy,w2);n="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=t.slice(4);if(!iy.test(c)){let u=c.replace(v2,b2);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=d_}return new l(n,t)}function b2(e){return"-"+e.toLowerCase()}function w2(e){return e.charAt(1).toUpperCase()}const C2=uS([hS,m2,_S,pS,mS],"html"),gS=uS([hS,g2,_S,pS,mS],"svg"),ry={}.hasOwnProperty;function E2(e,t){const r=t||{};function n(l,...c){let u=n.invalid;const d=n.handlers;if(l&&ry.call(l,e)){const _=String(l[e]);u=ry.call(d,_)?d[_]:n.unknown}if(u)return u.call(this,l,...c)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const x2=/["&'<>`]/g,A2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,k2=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,T2=/[|\\{}()[\]^$+*?.]/g,sy=new WeakMap;function R2(e,t){if(e=e.replace(t.subset?D2(t.subset):x2,n),t.subset||t.escapeOnly)return e;return e.replace(A2,r).replace(k2,n);function r(l,c,u){return t.format((l.charCodeAt(0)-55296)*1024+l.charCodeAt(1)-56320+65536,u.charCodeAt(c+2),t)}function n(l,c,u){return t.format(l.charCodeAt(0),u.charCodeAt(c+1),t)}}function D2(e){let t=sy.get(e);return t||(t=L2(e),sy.set(e,t)),t}function L2(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(T2,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const O2=/[\dA-Fa-f]/;function M2(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!O2.test(String.fromCharCode(t))?n:n+";"}const N2=/\d/;function B2(e,t,r){const n="&#"+String(e);return r&&t&&!N2.test(String.fromCharCode(t))?n:n+";"}const z2=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ad={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},P2=["cent","copy","divide","gt","lt","not","para","times"],vS={}.hasOwnProperty,of={};let Jo;for(Jo in Ad)vS.call(Ad,Jo)&&(of[Ad[Jo]]=Jo);const I2=/[^\dA-Za-z]/;function H2(e,t,r,n){const l=String.fromCharCode(e);if(vS.call(of,l)){const c=of[l],u="&"+c;return r&&z2.includes(c)&&!P2.includes(c)&&(!n||t&&t!==61&&I2.test(String.fromCharCode(t)))?u:u+";"}return""}function U2(e,t,r){let n=M2(e,t,r.omitOptionalSemicolons),l;if((r.useNamedReferences||r.useShortestReferences)&&(l=H2(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!l)&&r.useShortestReferences){const c=B2(e,t,r.omitOptionalSemicolons);c.length<n.length&&(n=c)}return l&&(!r.useShortestReferences||l.length<n.length)?l:n}function Xn(e,t){return R2(e,Object.assign({format:U2},t))}const j2=/^>|^->|<!--|-->|--!>|<!-$/g,V2=[">"],$2=["<",">"];function G2(e,t,r,n){return n.settings.bogusComments?"<?"+Xn(e.value,Object.assign({},n.settings.characterReferences,{subset:V2}))+">":"<!--"+e.value.replace(j2,l)+"-->";function l(c){return Xn(c,Object.assign({},n.settings.characterReferences,{subset:$2}))}}function q2(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function ny(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,l=r.indexOf(t);for(;l!==-1;)n++,l=r.indexOf(t,l+t.length);return n}function W2(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function F2(e){return e.join(" ").trim()}const Y2=/[ \t\n\f\r]/g;function f_(e){return typeof e=="object"?e.type==="text"?ay(e.value):!1:ay(e)}function ay(e){return e.replace(Y2,"")===""}const Dt=SS(1),yS=SS(-1),K2=[];function SS(e){return t;function t(r,n,l){const c=r?r.children:K2;let u=(n||0)+e,d=c[u];if(!l)for(;d&&f_(d);)u+=e,d=c[u];return d}}const X2={}.hasOwnProperty;function bS(e){return t;function t(r,n,l){return X2.call(e,r.tagName)&&e[r.tagName](r,n,l)}}const __=bS({body:Q2,caption:kd,colgroup:kd,dd:ix,dt:tx,head:kd,html:Z2,li:ex,optgroup:rx,option:sx,p:J2,rp:ly,rt:ly,tbody:ax,td:oy,tfoot:lx,th:oy,thead:nx,tr:ox});function kd(e,t,r){const n=Dt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&f_(n.value.charAt(0)))}function Z2(e,t,r){const n=Dt(r,t);return!n||n.type!=="comment"}function Q2(e,t,r){const n=Dt(r,t);return!n||n.type!=="comment"}function J2(e,t,r){const n=Dt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function ex(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function tx(e,t,r){const n=Dt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function ix(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function ly(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function rx(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function sx(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function nx(e,t,r){const n=Dt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function ax(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function lx(e,t,r){return!Dt(r,t)}function ox(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function oy(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const cx=bS({body:dx,colgroup:fx,head:hx,html:ux,tbody:_x});function ux(e){const t=Dt(e,-1);return!t||t.type!=="comment"}function hx(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function dx(e){const t=Dt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&f_(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function fx(e,t,r){const n=yS(r,t),l=Dt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&__(n,r.children.indexOf(n),r)?!1:!!(l&&l.type==="element"&&l.tagName==="col")}function _x(e,t,r){const n=yS(r,t),l=Dt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&__(n,r.children.indexOf(n),r)?!1:!!(l&&l.type==="element"&&l.tagName==="tr")}const ec={name:[[`
|
|
52
|
+
`;const c=this.createOnigString(e),u=c.content.length,d=new ZE(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),_=Q0(this,c,l,0,t,d,!0,n);return F0(c),{lineLength:u,lineTokens:d,ruleStack:_.stack,stoppedEarly:_.stoppedEarly}}};function Xv(e,t){return e=_E(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var dl=class rr{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,l=(t==null?void 0:t.scopePath)??null;for(const c of r)l=Cd.push(l,c.scopeNames),n=new rr(n,l,c.encodedTokenAttributes);return n}static createRoot(t,r){return new rr(null,new Cd(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const l=n.getMetadataForScope(t),c=new Cd(null,t),u=n.themeProvider.themeMatch(c),d=rr.mergeAttributes(r,l,u);return new rr(null,c,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return rr.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let l=-1,c=0,u=0;return n!==null&&(l=n.fontStyle,c=n.foregroundId,u=n.backgroundId),Zn.set(t,r.languageId,r.tokenType,null,l,c,u)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return rr._pushAttributed(this,t,r);const n=t.split(/ /g);let l=this;for(const c of n)l=rr._pushAttributed(l,c,r);return l}static _pushAttributed(t,r,n){const l=n.getMetadataForScope(r),c=t.scopePath.push(r),u=n.themeProvider.themeMatch(c),d=rr.mergeAttributes(t.tokenAttributes,l,u);return new rr(t,c,d)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var l;const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((l=n.parent)==null?void 0:l.scopePath)??null)}),n=n.parent;return n===t?r.reverse():void 0}},Ui,rf=(Ui=class{constructor(t,r,n,l,c,u,d,_){V(this,"_stackElementBrand");V(this,"_enterPos");V(this,"_anchorPos");V(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=c,this.endRule=u,this.nameScopesList=d,this.contentNameScopesList=_,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=l}equals(t){return t===null?!1:Ui._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?dl.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Ui._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,l,c,u,d){return new Ui(this,t,r,n,l,c,u,d)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){var n,l;return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(l=this.contentNameScopesList)==null?void 0:l.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Ui(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var t,r,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,r){const n=dl.fromExtension((t==null?void 0:t.nameScopesList)??null,r.nameScopesList);return new Ui(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,dl.fromExtension(n,r.contentNameScopesList))}},V(Ui,"NULL",new Ui(null,0,0,0,!1,null,null,null)),Ui),XE=class{constructor(e,t){V(this,"balancedBracketScopes");V(this,"unbalancedBracketScopes");V(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Cc(r,Ac).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Cc(r,Ac).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ZE=class{constructor(e,t,r,n){V(this,"_emitBinaryTokens");V(this,"_lineText");V(this,"_tokens");V(this,"_binaryTokens");V(this,"_lastTokenEndIndex");V(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let l=(e==null?void 0:e.tokenAttributes)??0,c=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(c=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=(e==null?void 0:e.getScopeNames())??[];for(const d of this._tokenTypeOverrides)d.matcher(u)&&(l=Zn.set(l,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(c=this.balancedBracketSelectors.match(u))}if(c&&(l=Zn.set(l,0,8,c,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===l){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(l),this._lastTokenEndIndex=t;return}const r=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,l=this._binaryTokens.length;n<l;n++)r[n]=this._binaryTokens[n];return r}},QE=class{constructor(e,t){V(this,"_grammars",new Map);V(this,"_rawGrammars",new Map);V(this,"_injectionGrammars",new Map);V(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,l){if(!this._grammars.has(e)){let c=this._rawGrammars.get(e);if(!c)return null;this._grammars.set(e,FE(e,c,t,r,n,l,this,this._onigLib))}return this._grammars.get(e)}},JE=class{constructor(t){V(this,"_options");V(this,"_syncRegistry");V(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new QE(wc.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(wc.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new XE(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,l,c){const u=new TE(this._syncRegistry,t);for(;u.Q.length>0;)u.Q.map(d=>this._loadSingleGrammar(d.scopeName)),u.processQueue();return this._grammarForScopeName(t,r,n,l,c)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,l=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,l)}_grammarForScopeName(t,r=0,n=null,l=null,c=null){return this._syncRegistry.grammarForScopeName(t,r,n,l,c)}},sf=rf.NULL;function kc(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[l,c]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof c=="string"?r[l]=c:l===n&&Object.assign(r,c);return r}function gs(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function ex(e){return Array.isArray(e)?e:[e]}async function eS(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Vc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tS(e){return e==="ansi"||Vc(e)}function $c(e){return e==="none"}function iS(e){return $c(e)}function Gc(e,t=!1){var c;if(e.length===0)return[["",0]];const r=e.split(/(\r?\n)/g);let n=0;const l=[];for(let u=0;u<r.length;u+=2){const d=t?r[u]+(r[u+1]||""):r[u];l.push([d,n]),n+=r[u].length,n+=((c=r[u+1])==null?void 0:c.length)||0}return l}const Zv={light:"#333333",dark:"#bbbbbb"},Qv={light:"#fffffe",dark:"#1e1e1e"},Jv="__shiki_resolved";function u_(e){var d,_,f,v,m;if(e!=null&&e[Jv])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:r,fg:n}=t;if(!r||!n){const y=t.settings?t.settings.find(S=>!S.name&&!S.scope):void 0;(d=y==null?void 0:y.settings)!=null&&d.foreground&&(n=y.settings.foreground),(_=y==null?void 0:y.settings)!=null&&_.background&&(r=y.settings.background),!n&&((f=t==null?void 0:t.colors)!=null&&f["editor.foreground"])&&(n=t.colors["editor.foreground"]),!r&&((v=t==null?void 0:t.colors)!=null&&v["editor.background"])&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?Zv.light:Zv.dark),r||(r=t.type==="light"?Qv.light:Qv.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let l=0;const c=new Map;function u(y){var b;if(c.has(y))return c.get(y);l+=1;const S=`#${l.toString(16).padStart(8,"0").toLowerCase()}`;return(b=t.colorReplacements)!=null&&b[`#${S}`]?u(y):(c.set(y,S),S)}t.settings=t.settings.map(y=>{var T,O;const S=((T=y.settings)==null?void 0:T.foreground)&&!y.settings.foreground.startsWith("#"),b=((O=y.settings)==null?void 0:O.background)&&!y.settings.background.startsWith("#");if(!S&&!b)return y;const E={...y,settings:{...y.settings}};if(S){const H=u(y.settings.foreground);t.colorReplacements[H]=y.settings.foreground,E.settings.foreground=H}if(b){const H=u(y.settings.background);t.colorReplacements[H]=y.settings.background,E.settings.background=H}return E});for(const y of Object.keys(t.colors||{}))if((y==="editor.foreground"||y==="editor.background"||y.startsWith("terminal.ansi"))&&!((m=t.colors[y])!=null&&m.startsWith("#"))){const S=u(t.colors[y]);t.colorReplacements[S]=t.colors[y],t.colors[y]=S}return Object.defineProperty(t,Jv,{enumerable:!1,writable:!1,value:!0}),t}async function rS(e){return Array.from(new Set((await Promise.all(e.filter(t=>!tS(t)).map(async t=>await eS(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function sS(e){return(await Promise.all(e.map(async t=>iS(t)?null:u_(await eS(t))))).filter(t=>!!t)}function nS(e,t){if(!t)return e;if(t[e]){const r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new et(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var tx=class extends JE{constructor(t,r,n,l={}){super(t);V(this,"_resolvedThemes",new Map);V(this,"_resolvedGrammars",new Map);V(this,"_langMap",new Map);V(this,"_langGraph",new Map);V(this,"_textmateThemeCache",new WeakMap);V(this,"_loadedThemesCache",null);V(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=r,this._langs=n,this._alias=l,this._themes.map(c=>this.loadTheme(c)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const r=u_(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=wc.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){return t=nS(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var c,u,d,_;if(this.getGrammar(t.name))return;const r=new Set([...this._langMap.values()].filter(f=>{var v;return(v=f.embeddedLangsLazy)==null?void 0:v.includes(t.name)}));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const l=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(l.name=t.name,this._resolvedGrammars.set(t.name,l),t.aliases&&t.aliases.forEach(f=>{this._alias[f]=t.name}),this._loadedLanguagesCache=null,r.size)for(const f of r)this._resolvedGrammars.delete(f.name),this._loadedLanguagesCache=null,(u=(c=this._syncRegistry)==null?void 0:c._injectionGrammars)==null||u.delete(f.scopeName),(_=(d=this._syncRegistry)==null?void 0:d._grammars)==null||_.delete(f.scopeName),this.loadLanguage(this._langMap.get(f.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const l of t)this.resolveEmbeddedLanguages(l);const r=Array.from(this._langGraph.entries()),n=r.filter(([l,c])=>!c);if(n.length){const l=r.filter(([c,u])=>{var d;return u?(d=u.embeddedLanguages||u.embeddedLangs)==null?void 0:d.some(_=>n.map(([f])=>f).includes(_)):!1}).filter(c=>!n.includes(c));throw new et(`Missing languages ${n.map(([c])=>`\`${c}\``).join(", ")}, required by ${l.map(([c])=>`\`${c}\``).join(", ")}`)}for(const[l,c]of r)this._resolver.addLanguage(c);for(const[l,c]of r)this.loadLanguage(c)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const r=t.embeddedLanguages??t.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}},ix=class{constructor(e,t){V(this,"_langs",new Map);V(this,"_scopeToLang",new Map);V(this,"_injections",new Map);V(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let n=1;n<=t.length;n++){const l=t.slice(0,n).join(".");r=[...r,...this._injections.get(l)||[]]}return r}};let Ja=0;function rx(e){Ja+=1,e.warnings!==!1&&Ja>=10&&Ja%10===0&&console.warn(`[Shiki] ${Ja} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new et("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(u_),l=new tx(new ix(e.engine,r),n,r,e.langAlias);let c;function u(H){return nS(H,e.langAlias)}function d(H){T();const B=l.getGrammar(typeof H=="string"?H:H.name);if(!B)throw new et(`Language \`${H}\` not found, you may need to load it first`);return B}function _(H){if(H==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();const B=l.getTheme(H);if(!B)throw new et(`Theme \`${H}\` not found, you may need to load it first`);return B}function f(H){T();const B=_(H);return c!==H&&(l.setTheme(B),c=H),{theme:B,colorMap:l.getColorMap()}}function v(){return T(),l.getLoadedThemes()}function m(){return T(),l.getLoadedLanguages()}function y(...H){T(),l.loadLanguages(H.flat(1))}async function S(...H){return y(await rS(H))}function b(...H){T();for(const B of H.flat(1))l.loadTheme(B)}async function E(...H){return T(),b(await sS(H))}function T(){if(t)throw new et("Shiki instance has been disposed")}function O(){t||(t=!0,l.dispose(),Ja-=1)}return{setTheme:f,getTheme:_,getLanguage:d,getLoadedThemes:v,getLoadedLanguages:m,resolveLangAlias:u,loadLanguage:S,loadLanguageSync:y,loadTheme:E,loadThemeSync:b,dispose:O,[Symbol.dispose]:O}}async function sx(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([sS(e.themes||[]),rS(e.langs||[]),e.engine]);return rx({...e,themes:t,langs:r,engine:n})}const aS=new WeakMap;function qc(e,t){aS.set(e,t)}function yl(e){return aS.get(e)}var Wc=class lS{constructor(...t){V(this,"_stacks",{});V(this,"lang");if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,l]=t;this.lang=n,this._stacks={[l]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new lS(Object.fromEntries(ex(r).map(n=>[n,sf])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return nx(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function nx(e){const t=[],r=new Set;function n(l){var u;if(r.has(l))return;r.add(l);const c=(u=l==null?void 0:l.nameScopesList)==null?void 0:u.scopeName;c&&t.push(c),l.parent&&n(l.parent)}return n(e),t}function ax(e,t){if(!(e instanceof Wc))throw new et("Invalid grammar state");return e.getInternalStack(t)}function oS(e,t,r={}){const{theme:n=e.getLoadedThemes()[0]}=r;if(Vc(e.resolveLangAlias(r.lang||"text"))||$c(n))return Gc(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:l,colorMap:c}=e.setTheme(n),u=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==u.name)throw new et(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${u.name}"`);if(!r.grammarState.themes.includes(l.name))throw new et(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${l.name}"`)}return ox(t,u,l,c,r)}function lx(...e){if(e.length===2)return yl(e[1]);const[t,r,n={}]=e,{lang:l="text",theme:c=t.getLoadedThemes()[0]}=n;if(Vc(l)||$c(c))throw new et("Plain language does not have grammar state");if(l==="ansi")throw new et("ANSI language does not have grammar state");const{theme:u,colorMap:d}=t.setTheme(c),_=t.getLanguage(l);return new Wc(h_(r,_,u,d,n).stateStack,_.name,u.name)}function ox(e,t,r,n,l){const c=h_(e,t,r,n,l),u=new Wc(c.stateStack,t.name,r.name);return qc(c.tokens,u),c.tokens}function h_(e,t,r,n,l){const c=kc(r,l),{tokenizeMaxLineLength:u=0,tokenizeTimeLimit:d=500}=l,_=Gc(e);let f=l.grammarState?ax(l.grammarState,r.name)??sf:l.grammarContextCode!=null?h_(l.grammarContextCode,t,r,n,{...l,grammarState:void 0,grammarContextCode:void 0}).stateStack:sf,v=[];const m=[];for(let y=0,S=_.length;y<S;y++){const[b,E]=_[y];if(b===""){v=[],m.push([]);continue}if(u>0&&b.length>=u){v=[],m.push([{content:b,offset:E,color:"",fontStyle:0}]);continue}let T,O,H;l.includeExplanation&&(T=t.tokenizeLine(b,f,d),O=T.tokens,H=0);const B=t.tokenizeLine2(b,f,d),I=B.tokens.length/2;for(let j=0;j<I;j++){const Y=B.tokens[2*j],te=j+1<I?B.tokens[2*j+2]:b.length;if(Y===te)continue;const ge=B.tokens[2*j+1],ve=gs(n[Zn.getForeground(ge)],c),fe=Zn.getFontStyle(ge),he={content:b.substring(Y,te),offset:E+Y,color:ve,fontStyle:fe};if(l.includeExplanation){const J=[];if(l.includeExplanation!=="scopeName")for(const re of r.settings){let se;switch(typeof re.scope){case"string":se=re.scope.split(/,/).map(D=>D.trim());break;case"object":se=re.scope;break;default:continue}J.push({settings:re,selectors:se.map(D=>D.split(/ /))})}he.explanation=[];let q=0;for(;Y+q<te;){const re=O[H],se=b.substring(re.startIndex,re.endIndex);q+=se.length,he.explanation.push({content:se,scopes:l.includeExplanation==="scopeName"?cx(re.scopes):ux(J,re.scopes)}),H+=1}}v.push(he)}m.push(v),v=[],f=B.ruleStack}return{tokens:m,stateStack:f}}function cx(e){return e.map(t=>({scopeName:t}))}function ux(e,t){const r=[];for(let n=0,l=t.length;n<l;n++){const c=t[n];r[n]={scopeName:c,themeMatches:dx(e,c,t.slice(0,n))}}return r}function ey(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function hx(e,t,r){if(!ey(e[e.length-1],t))return!1;let n=e.length-2,l=r.length-1;for(;n>=0&&l>=0;)ey(e[n],r[l])&&(n-=1),l-=1;return n===-1}function dx(e,t,r){const n=[];for(const{selectors:l,settings:c}of e)for(const u of l)if(hx(u,t,r)){n.push(c);break}return n}function cS(e,t,r,n=oS){const l=Object.entries(r.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),c=l.map(f=>{const v=n(e,t,{...r,theme:f.theme});return{tokens:v,state:yl(v),theme:typeof f.theme=="string"?f.theme:f.theme.name}}),u=fx(...c.map(f=>f.tokens)),d=u[0].map((f,v)=>f.map((m,y)=>{const S={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in r&&r.includeExplanation&&(S.explanation=m.explanation),u.forEach((b,E)=>{const{content:T,explanation:O,offset:H,...B}=b[v][y];S.variants[l[E].color]=B}),S})),_=c[0].state?new Wc(Object.fromEntries(c.map(f=>{var v;return[f.theme,(v=f.state)==null?void 0:v.getInternalStack(f.theme)]})),c[0].state.lang):void 0;return _&&qc(d,_),d}function fx(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const l=e.map(_=>_[n]),c=t.map(()=>[]);t.forEach((_,f)=>_.push(c[f]));const u=l.map(()=>0),d=l.map(_=>_[0]);for(;d.every(_=>_);){const _=Math.min(...d.map(f=>f.content.length));for(let f=0;f<r;f++){const v=d[f];v.content.length===_?(c[f].push(v),u[f]+=1,d[f]=l[f][u[f]]):(c[f].push({...v,content:v.content.slice(0,_)}),d[f]={...v,content:v.content.slice(_),offset:v.offset+_})}}}return t}const _x=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Al{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Al.prototype.normal={};Al.prototype.property={};Al.prototype.space=void 0;function uS(e,t){const r={},n={};for(const l of e)Object.assign(r,l.property),Object.assign(n,l.normal);return new Al(r,n,t)}function nf(e){return e.toLowerCase()}class hi{constructor(t,r){this.attribute=r,this.property=t}}hi.prototype.attribute="";hi.prototype.booleanish=!1;hi.prototype.boolean=!1;hi.prototype.commaOrSpaceSeparated=!1;hi.prototype.commaSeparated=!1;hi.prototype.defined=!1;hi.prototype.mustUseProperty=!1;hi.prototype.number=!1;hi.prototype.overloadedBoolean=!1;hi.prototype.property="";hi.prototype.spaceSeparated=!1;hi.prototype.space=void 0;let px=0;const De=en(),bt=en(),af=en(),ae=en(),Je=en(),Kn=en(),xi=en();function en(){return 2**++px}const lf=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:bt,commaOrSpaceSeparated:xi,commaSeparated:Kn,number:ae,overloadedBoolean:af,spaceSeparated:Je},Symbol.toStringTag,{value:"Module"})),xd=Object.keys(lf);class d_ extends hi{constructor(t,r,n,l){let c=-1;if(super(t,r),ty(this,"space",l),typeof n=="number")for(;++c<xd.length;){const u=xd[c];ty(this,xd[c],(n&lf[u])===lf[u])}}}d_.prototype.defined=!0;function ty(e,t,r){r&&(e[t]=r)}function Jn(e){const t={},r={};for(const[n,l]of Object.entries(e.properties)){const c=new d_(n,e.transform(e.attributes||{},n),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(c.mustUseProperty=!0),t[n]=c,r[nf(n)]=n,r[nf(c.attribute)]=n}return new Al(t,r,e.space)}const hS=Jn({properties:{ariaActiveDescendant:null,ariaAtomic:bt,ariaAutoComplete:null,ariaBusy:bt,ariaChecked:bt,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:Je,ariaCurrent:null,ariaDescribedBy:Je,ariaDetails:null,ariaDisabled:bt,ariaDropEffect:Je,ariaErrorMessage:null,ariaExpanded:bt,ariaFlowTo:Je,ariaGrabbed:bt,ariaHasPopup:null,ariaHidden:bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Je,ariaLevel:ae,ariaLive:null,ariaModal:bt,ariaMultiLine:bt,ariaMultiSelectable:bt,ariaOrientation:null,ariaOwns:Je,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:bt,ariaReadOnly:bt,ariaRelevant:null,ariaRequired:bt,ariaRoleDescription:Je,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:bt,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dS(e,t){return t in e?e[t]:t}function fS(e,t){return dS(e,t.toLowerCase())}const mx=Jn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kn,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:Je,autoFocus:De,autoPlay:De,blocking:Je,capture:null,charSet:null,checked:De,cite:null,className:Je,cols:ae,colSpan:null,content:null,contentEditable:bt,controls:De,controlsList:Je,coords:ae|Kn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:af,draggable:bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:Je,height:ae,hidden:af,high:ae,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:Je,itemRef:Je,itemScope:De,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,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:De,optimum:ae,pattern:null,ping:Je,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:Je,required:De,reversed:De,rows:ae,rowSpan:ae,sandbox:Je,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:bt,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:bt,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:fS}),gx=Jn({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:xi,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:Je,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:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,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:Kn,g2:Kn,glyphName:Kn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:xi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,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:ae,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:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xi,rev:xi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xi,requiredFeatures:xi,requiredFonts:xi,requiredFormats:xi,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:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:xi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xi,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dS}),_S=Jn({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()}}),pS=Jn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fS}),mS=Jn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),vx=/[A-Z]/g,iy=/-[a-z]/g,yx=/^data[-\w.:]+$/i;function Sx(e,t){const r=nf(t);let n=t,l=hi;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&yx.test(t)){if(t.charAt(4)==="-"){const c=t.slice(5).replace(iy,wx);n="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=t.slice(4);if(!iy.test(c)){let u=c.replace(vx,bx);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=d_}return new l(n,t)}function bx(e){return"-"+e.toLowerCase()}function wx(e){return e.charAt(1).toUpperCase()}const Cx=uS([hS,mx,_S,pS,mS],"html"),gS=uS([hS,gx,_S,pS,mS],"svg"),ry={}.hasOwnProperty;function Ex(e,t){const r=t||{};function n(l,...c){let u=n.invalid;const d=n.handlers;if(l&&ry.call(l,e)){const _=String(l[e]);u=ry.call(d,_)?d[_]:n.unknown}if(u)return u.call(this,l,...c)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const xx=/["&'<>`]/g,Ax=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kx=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Tx=/[|\\{}()[\]^$+*?.]/g,sy=new WeakMap;function Rx(e,t){if(e=e.replace(t.subset?Dx(t.subset):xx,n),t.subset||t.escapeOnly)return e;return e.replace(Ax,r).replace(kx,n);function r(l,c,u){return t.format((l.charCodeAt(0)-55296)*1024+l.charCodeAt(1)-56320+65536,u.charCodeAt(c+2),t)}function n(l,c,u){return t.format(l.charCodeAt(0),u.charCodeAt(c+1),t)}}function Dx(e){let t=sy.get(e);return t||(t=Lx(e),sy.set(e,t)),t}function Lx(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(Tx,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Ox=/[\dA-Fa-f]/;function Mx(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!Ox.test(String.fromCharCode(t))?n:n+";"}const Nx=/\d/;function Bx(e,t,r){const n="&#"+String(e);return r&&t&&!Nx.test(String.fromCharCode(t))?n:n+";"}const zx=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ad={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Px=["cent","copy","divide","gt","lt","not","para","times"],vS={}.hasOwnProperty,of={};let Jo;for(Jo in Ad)vS.call(Ad,Jo)&&(of[Ad[Jo]]=Jo);const Ix=/[^\dA-Za-z]/;function Hx(e,t,r,n){const l=String.fromCharCode(e);if(vS.call(of,l)){const c=of[l],u="&"+c;return r&&zx.includes(c)&&!Px.includes(c)&&(!n||t&&t!==61&&Ix.test(String.fromCharCode(t)))?u:u+";"}return""}function Ux(e,t,r){let n=Mx(e,t,r.omitOptionalSemicolons),l;if((r.useNamedReferences||r.useShortestReferences)&&(l=Hx(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!l)&&r.useShortestReferences){const c=Bx(e,t,r.omitOptionalSemicolons);c.length<n.length&&(n=c)}return l&&(!r.useShortestReferences||l.length<n.length)?l:n}function Xn(e,t){return Rx(e,Object.assign({format:Ux},t))}const jx=/^>|^->|<!--|-->|--!>|<!-$/g,Vx=[">"],$x=["<",">"];function Gx(e,t,r,n){return n.settings.bogusComments?"<?"+Xn(e.value,Object.assign({},n.settings.characterReferences,{subset:Vx}))+">":"<!--"+e.value.replace(jx,l)+"-->";function l(c){return Xn(c,Object.assign({},n.settings.characterReferences,{subset:$x}))}}function qx(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function ny(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,l=r.indexOf(t);for(;l!==-1;)n++,l=r.indexOf(t,l+t.length);return n}function Wx(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Fx(e){return e.join(" ").trim()}const Yx=/[ \t\n\f\r]/g;function f_(e){return typeof e=="object"?e.type==="text"?ay(e.value):!1:ay(e)}function ay(e){return e.replace(Yx,"")===""}const Dt=SS(1),yS=SS(-1),Kx=[];function SS(e){return t;function t(r,n,l){const c=r?r.children:Kx;let u=(n||0)+e,d=c[u];if(!l)for(;d&&f_(d);)u+=e,d=c[u];return d}}const Xx={}.hasOwnProperty;function bS(e){return t;function t(r,n,l){return Xx.call(e,r.tagName)&&e[r.tagName](r,n,l)}}const __=bS({body:Qx,caption:kd,colgroup:kd,dd:i2,dt:t2,head:kd,html:Zx,li:e2,optgroup:r2,option:s2,p:Jx,rp:ly,rt:ly,tbody:a2,td:oy,tfoot:l2,th:oy,thead:n2,tr:o2});function kd(e,t,r){const n=Dt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&f_(n.value.charAt(0)))}function Zx(e,t,r){const n=Dt(r,t);return!n||n.type!=="comment"}function Qx(e,t,r){const n=Dt(r,t);return!n||n.type!=="comment"}function Jx(e,t,r){const n=Dt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function e2(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function t2(e,t,r){const n=Dt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function i2(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function ly(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function r2(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function s2(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function n2(e,t,r){const n=Dt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function a2(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function l2(e,t,r){return!Dt(r,t)}function o2(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function oy(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const c2=bS({body:d2,colgroup:f2,head:h2,html:u2,tbody:_2});function u2(e){const t=Dt(e,-1);return!t||t.type!=="comment"}function h2(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function d2(e){const t=Dt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&f_(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function f2(e,t,r){const n=yS(r,t),l=Dt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&__(n,r.children.indexOf(n),r)?!1:!!(l&&l.type==="element"&&l.tagName==="col")}function _2(e,t,r){const n=yS(r,t),l=Dt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&__(n,r.children.indexOf(n),r)?!1:!!(l&&l.type==="element"&&l.tagName==="tr")}const ec={name:[[`
|
|
53
53
|
\f\r &/=>`.split(""),`
|
|
54
54
|
\f\r "&'/=>\``.split("")],[`\0
|
|
55
55
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -57,8 +57,8 @@ Error generating stack: `+o.message+`
|
|
|
57
57
|
\f\r &>`.split(""),`\0
|
|
58
58
|
\f\r "&'<=>\``.split("")],[`\0
|
|
59
59
|
\f\r "&'<=>\``.split(""),`\0
|
|
60
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function px(e,t,r,n){const l=n.schema,c=l.space==="svg"?!1:n.settings.omitOptionalTags;let u=l.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const d=[];let _;l.space==="html"&&e.tagName==="svg"&&(n.schema=gS);const f=mx(n,e.properties),v=n.all(l.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=l,v&&(u=!1),(f||!c||!cx(e,t,r))&&(d.push("<",e.tagName,f?" "+f:""),u&&(l.space==="svg"||n.settings.closeSelfClosing)&&(_=f.charAt(f.length-1),(!n.settings.tightSelfClosing||_==="/"||_&&_!=='"'&&_!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(v),!u&&(!c||!__(e,t,r))&&d.push("</"+e.tagName+">"),d.join("")}function mx(e,t){const r=[];let n=-1,l;if(t){for(l in t)if(t[l]!==null&&t[l]!==void 0){const c=gx(e,l,t[l]);c&&r.push(c)}}for(;++n<r.length;){const c=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&c!=='"'&&c!=="'"&&(r[n]+=" ")}return r.join("")}function gx(e,t,r){const n=S2(e.schema,t),l=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,c=e.settings.allowDangerousCharacters?0:1;let u=e.quote,d;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const _=Xn(n.attribute,Object.assign({},e.settings.characterReferences,{subset:ec.name[l][c]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?W2:F2)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?_:(e.settings.preferUnquoted&&(d=Xn(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ec.unquoted[l][c]}))),d!==r&&(e.settings.quoteSmart&&ny(r,u)>ny(r,e.alternative)&&(u=e.alternative),d=u+Xn(r,Object.assign({},e.settings.characterReferences,{subset:(u==="'"?ec.single:ec.double)[l][c],attribute:!0}))+u),_+(d&&"="+d))}const vx=["<","&"];function wS(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Xn(e.value,Object.assign({},n.settings.characterReferences,{subset:vx}))}function yx(e,t,r,n){return n.settings.allowDangerousHtml?e.value:wS(e,t,r,n)}function Sx(e,t,r,n){return n.all(e)}const bx=E2("type",{invalid:wx,unknown:Cx,handlers:{comment:G2,doctype:q2,element:px,raw:yx,root:Sx,text:wS}});function wx(e){throw new Error("Expected node, not `"+e+"`")}function Cx(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Ex={},xx={},Ax=[];function kx(e,t){const r=t||Ex,n=r.quote||'"',l=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Tx,all:Rx,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||_2,characterReferences:r.characterReferences||xx,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?gS:C2,quote:n,alternative:l}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Tx(e,t,r){return bx(e,t,r,this)}function Rx(e){const t=[],r=e&&e.children||Ax;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function CS(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const l of r)l&&!e.properties.class.includes(l)&&e.properties.class.push(l);return e}function Dx(e){const t=Gc(e,!0).map(([l])=>l);function r(l){if(l===e.length)return{line:t.length-1,character:t[t.length-1].length};let c=l,u=0;for(const d of t){if(c<d.length)break;c-=d.length,u++}return{line:u,character:c}}function n(l,c){let u=0;for(let d=0;d<l;d++)u+=t[d].length;return u+=c,u}return{lines:t,indexToPos:r,posToIndex:n}}function Lx(e,t,r){const n=new Set;for(const c of e.matchAll(/:?lang=["']([^"']+)["']/g)){const u=c[1].toLowerCase().trim();u&&n.add(u)}for(const c of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const u=c[1].toLowerCase().trim();u&&n.add(u)}for(const c of e.matchAll(/\\begin\{([\w-]+)\}/g)){const u=c[1].toLowerCase().trim();u&&n.add(u)}for(const c of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const u=c[1].toLowerCase().trim(),d=u.includes("/")?u.split("/").pop():u;d&&n.add(d)}if(!r)return Array.from(n);const l=r.getBundledLanguages();return Array.from(n).filter(c=>c&&l[c])}const p_="light-dark()",Ox=["color","background-color"];function Mx(e,t){let r=0;const n=[];for(const l of t)l>r&&n.push({...e,content:e.content.slice(r,l),offset:e.offset+r}),r=l;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function Nx(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,l)=>n-l);return r.length?e.map(n=>n.flatMap(l=>{const c=r.filter(u=>l.offset<u&&u<l.offset+l.content.length).map(u=>u-l.offset).sort((u,d)=>u-d);return c.length?Mx(l,c):l})):e}function Bx(e,t,r,n,l="css-vars"){const c={content:e.content,explanation:e.explanation,offset:e.offset},u=t.map(v=>Tc(e.variants[v])),d=new Set(u.flatMap(v=>Object.keys(v))),_={},f=(v,m)=>{const y=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return r+t[v]+(m==="color"?"":y)};return u.forEach((v,m)=>{for(const y of d){const S=v[y]||"inherit";if(m===0&&n&&Ox.includes(y))if(n===p_&&u.length>1){const b=t.findIndex(T=>T==="light"),E=t.findIndex(T=>T==="dark");if(b===-1||E===-1)throw new et('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');_[y]=`light-dark(${u[b][y]||"inherit"}, ${u[E][y]||"inherit"})`,l==="css-vars"&&(_[f(m,y)]=S)}else _[y]=S;else l==="css-vars"&&(_[f(m,y)]=S)}}),c.htmlStyle=_,c}function Tc(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Zt.Italic&&(t["font-style"]="italic"),e.fontStyle&Zt.Bold&&(t["font-weight"]="bold");const r=[];e.fontStyle&Zt.Underline&&r.push("underline"),e.fontStyle&Zt.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function cf(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function zx(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let c=function(d){if(typeof d=="number"){if(d<0||d>r.source.length)throw new et(`Invalid decoration offset: ${d}. Code length: ${r.source.length}`);return{...l.indexToPos(d),offset:d}}else{const _=l.lines[d.line];if(_===void 0)throw new et(`Invalid decoration position ${JSON.stringify(d)}. Lines length: ${l.lines.length}`);let f=d.character;if(f<0&&(f=_.length+f),f<0||f>_.length)throw new et(`Invalid decoration position ${JSON.stringify(d)}. Line ${d.line} length: ${_.length}`);return{...d,character:f,offset:l.posToIndex(d.line,f)}}};var n=c;const l=Dx(r.source),u=(r.options.decorations||[]).map(d=>({...d,start:c(d.start),end:c(d.end)}));Px(u),e.set(r.meta,{decorations:u,converter:l,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){var n;if((n=this.options.decorations)!=null&&n.length)return Nx(r,t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]))},code(r){var v;if(!((v=this.options.decorations)!=null&&v.length))return;const n=t(this),l=Array.from(r.children).filter(m=>m.type==="element"&&m.tagName==="span");if(l.length!==n.converter.lines.length)throw new et(`Number of lines in code element (${l.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function c(m,y,S,b){const E=l[m];let T="",O=-1,H=-1;if(y===0&&(O=0),S===0&&(H=0),S===Number.POSITIVE_INFINITY&&(H=E.children.length),O===-1||H===-1)for(let I=0;I<E.children.length;I++)T+=ES(E.children[I]),O===-1&&T.length===y&&(O=I+1),H===-1&&T.length===S&&(H=I+1);if(O===-1)throw new et(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(H===-1)throw new et(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const B=E.children.slice(O,H);if(!b.alwaysWrap&&B.length===E.children.length)d(E,b,"line");else if(!b.alwaysWrap&&B.length===1&&B[0].type==="element")d(B[0],b,"token");else{const I={type:"element",tagName:"span",properties:{},children:B};d(I,b,"wrapper"),E.children.splice(O,B.length,I)}}function u(m,y){l[m]=d(l[m],y,"line")}function d(m,y,S){var T;const b=y.properties||{},E=y.transform||(O=>O);return m.tagName=y.tagName||"span",m.properties={...m.properties,...b,class:m.properties.class},(T=y.properties)!=null&&T.class&&CS(m,y.properties.class),m=E(m,S)||m,m}const _=[],f=n.decorations.sort((m,y)=>y.start.offset-m.start.offset||m.end.offset-y.end.offset);for(const m of f){const{start:y,end:S}=m;if(y.line===S.line)c(y.line,y.character,S.character,m);else if(y.line<S.line){c(y.line,y.character,Number.POSITIVE_INFINITY,m);for(let b=y.line+1;b<S.line;b++)_.unshift(()=>u(b,m));c(S.line,0,S.character,m)}}_.forEach(m=>m())}}}function Px(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new et(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const l=e[n],c=r.start.offset<=l.start.offset&&l.start.offset<r.end.offset,u=r.start.offset<l.end.offset&&l.end.offset<=r.end.offset,d=l.start.offset<=r.start.offset&&r.start.offset<l.end.offset,_=l.start.offset<r.end.offset&&r.end.offset<=l.end.offset;if(c||u||d||_){if(c&&u||d&&_||d&&r.start.offset===r.end.offset||u&&l.start.offset===l.end.offset)continue;throw new et(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}function ES(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(ES).join(""):""}const Ix=[zx()];function Rc(e){const t=Hx(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Ix]}function Hx(e){const t=[],r=[],n=[];for(const l of e)switch(l.enforce){case"pre":t.push(l);break;case"post":r.push(l);break;default:n.push(l)}return{pre:t,post:r,normal:n}}var Gs=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Td={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ux(e,t){const r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){const n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function cy(e){const t=e.shift();if(t==="2"){const r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function jx(e){const t=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)Td[n]&&t.push({type:"setDecoration",value:Td[n]});else if(n<=29){const l=Td[n-20];l&&(t.push({type:"resetDecoration",value:l}),l==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Gs[n-30]}});else if(n===38){const l=cy(e);l&&t.push({type:"setForegroundColor",value:l})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Gs[n-40]}});else if(n===48){const l=cy(e);l&&t.push({type:"setBackgroundColor",value:l})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Gs[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Gs[n-100+8]}})}return t}function Vx(){let e=null,t=null,r=new Set;return{parse(n){const l=[];let c=0;do{const u=Ux(n,c),d=u.sequence?n.substring(c,u.startPosition):n.substring(c);if(d.length>0&&l.push({value:d,foreground:e,background:t,decorations:new Set(r)}),u.sequence){const _=jx(u.sequence);for(const f of _)f.type==="resetAll"?(e=null,t=null,r.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&r.delete(f.value);for(const f of _)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&r.add(f.value)}c=u.position}while(c<n.length);return l}}}var $x={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Gx(e=$x){function t(d){return e[d]}function r(d){return`#${d.map(_=>Math.max(0,Math.min(_,255)).toString(16).padStart(2,"0")).join("")}`}let n;function l(){if(n)return n;n=[];for(let f=0;f<Gs.length;f++)n.push(t(Gs[f]));let d=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let v=0;v<6;v++)for(let m=0;m<6;m++)n.push(r([d[f],d[v],d[m]]));let _=8;for(let f=0;f<24;f++,_+=10)n.push(r([_,_,_]));return n}function c(d){return l()[d]}function u(d){switch(d.type){case"named":return t(d.name);case"rgb":return r(d.rgb);case"table":return c(d.index)}}return{value:u}}const qx={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Wx(e,t,r){const n=kc(e,r),l=Gc(t),c=Gx(Object.fromEntries(Gs.map(d=>{var f;const _=`terminal.ansi${d[0].toUpperCase()}${d.substring(1)}`;return[d,((f=e.colors)==null?void 0:f[_])||qx[d]]}))),u=Vx();return l.map(d=>u.parse(d[0]).map(_=>{let f,v;_.decorations.has("reverse")?(f=_.background?c.value(_.background):e.bg,v=_.foreground?c.value(_.foreground):e.fg):(f=_.foreground?c.value(_.foreground):e.fg,v=_.background?c.value(_.background):void 0),f=gs(f,n),v=gs(v,n),_.decorations.has("dim")&&(f=Fx(f));let m=Zt.None;return _.decorations.has("bold")&&(m|=Zt.Bold),_.decorations.has("italic")&&(m|=Zt.Italic),_.decorations.has("underline")&&(m|=Zt.Underline),_.decorations.has("strikethrough")&&(m|=Zt.Strikethrough),{content:_.value,offset:d[1],color:f,bgColor:v,fontStyle:m}}))}function Fx(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const n=t[1];if(n.length===8){const l=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${l}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const l=n[0],c=n[1],u=n[2],d=n[3];return`#${l}${l}${c}${c}${u}${u}${Math.round(Number.parseInt(`${d}${d}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){const l=n[0],c=n[1],u=n[2];return`#${l}${l}${c}${c}${u}${u}80`}}}const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function uf(e,t,r={}){const n=e.resolveLangAlias(r.lang||"text"),{theme:l=e.getLoadedThemes()[0]}=r;if(!Vc(n)&&!$c(l)&&n==="ansi"){const{theme:c}=e.setTheme(l);return Wx(c,t,r)}return oS(e,t,r)}function Dc(e,t,r){let n,l,c,u,d,_;if("themes"in r){const{defaultColor:f="light",cssVariablePrefix:v="--shiki-",colorsRendering:m="css-vars"}=r,y=Object.entries(r.themes).filter(O=>O[1]).map(O=>({color:O[0],theme:O[1]})).sort((O,H)=>O.color===f?-1:H.color===f?1:0);if(y.length===0)throw new et("`themes` option must not be empty");const S=cS(e,t,r,uf);if(_=yl(S),f&&p_!==f&&!y.find(O=>O.color===f))throw new et(`\`themes\` option must contain the defaultColor key \`${f}\``);const b=y.map(O=>e.getTheme(O.theme)),E=y.map(O=>O.color);c=S.map(O=>O.map(H=>Bx(H,E,v,f,m))),_&&qc(c,_);const T=y.map(O=>kc(O.theme,r));l=uy(y,b,T,v,f,"fg",m),n=uy(y,b,T,v,f,"bg",m),u=`shiki-themes ${b.map(O=>O.name).join(" ")}`,d=f?void 0:[l,n].join(";")}else if("theme"in r){const f=kc(r.theme,r);c=uf(e,t,r);const v=e.getTheme(r.theme);n=gs(v.bg,f),l=gs(v.fg,f),u=v.name,_=yl(c)}else throw new et("Invalid options, either `theme` or `themes` must be provided");return{tokens:c,fg:l,bg:n,themeName:u,rootStyle:d,grammarState:_}}function uy(e,t,r,n,l,c,u){return e.map((d,_)=>{const f=gs(t[_][c],r[_])||"inherit",v=`${n+d.color}${c==="bg"?"-bg":""}:${f}`;if(_===0&&l){if(l===p_&&e.length>1){const m=e.findIndex(S=>S.color==="light"),y=e.findIndex(S=>S.color==="dark");if(m===-1||y===-1)throw new et('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${gs(t[m][c],r[m])||"inherit"}, ${gs(t[y][c],r[y])||"inherit"});${v}`}return f}return u==="css-vars"?v:null}).filter(d=>!!d).join(";")}function Lc(e,t,r,n={meta:{},options:r,codeToHast:(l,c)=>Lc(e,l,c),codeToTokens:(l,c)=>Dc(e,l,c)}){var b,E;let l=t;for(const T of Rc(r))l=((b=T.preprocess)==null?void 0:b.call(n,l,r))||l;let{tokens:c,fg:u,bg:d,themeName:_,rootStyle:f,grammarState:v}=Dc(e,l,r);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:y=!1}=r;m===!0?c=Kx(c):m==="never"&&(c=Xx(c)),y&&(c=Zx(c));const S={...n,get source(){return l}};for(const T of Rc(r))c=((E=T.tokens)==null?void 0:E.call(S,c))||c;return Yx(c,{...r,fg:u,bg:d,themeName:_,rootStyle:r.rootStyle===!1?!1:r.rootStyle??f},S,v)}function Yx(e,t,r,n=yl(e)){var E,T,O,H;const l=Rc(t),c=[],u={type:"root",children:[]},{structure:d="classic",tabindex:_="0"}=t,f={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?f.style=t.rootStyle:f.style=`background-color:${t.bg};color:${t.fg}`),_!==!1&&_!=null&&(f.tabindex=_.toString());for(const[B,I]of Object.entries(t.meta||{}))B.startsWith("_")||(f[B]=I);let v={type:"element",tagName:"pre",properties:f,children:[],data:t.data},m={type:"element",tagName:"code",properties:{},children:c};const y=[],S={...r,structure:d,addClassToHast:CS,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return v},get code(){return m},get lines(){return y}};if(e.forEach((B,I)=>{var te,ge;I&&(d==="inline"?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&c.push({type:"text",value:`
|
|
61
|
-
`}));let j={type:"element",tagName:"span",properties:{class:"line"},children:[]},Y=0;for(const ve of B){let fe={type:"element",tagName:"span",properties:{...ve.htmlAttrs},children:[{type:"text",value:ve.content}]};const he=cf(ve.htmlStyle||Tc(ve));he&&(fe.properties.style=he);for(const J of l)fe=((te=J==null?void 0:J.span)==null?void 0:te.call(S,fe,I+1,Y,j,ve))||fe;d==="inline"?u.children.push(fe):d==="classic"&&j.children.push(fe),Y+=ve.content.length}if(d==="classic"){for(const ve of l)j=((ge=ve==null?void 0:ve.line)==null?void 0:ge.call(S,j,I+1))||j;y.push(j),c.push(j)}else d==="inline"&&y.push(j)}),d==="classic"){for(const B of l)m=((E=B==null?void 0:B.code)==null?void 0:E.call(S,m))||m;v.children.push(m);for(const B of l)v=((T=B==null?void 0:B.pre)==null?void 0:T.call(S,v))||v;u.children.push(v)}else if(d==="inline"){const B=[];let I={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const Y of u.children)Y.type==="element"&&Y.tagName==="br"?(B.push(I),I={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(Y.type==="element"||Y.type==="text")&&I.children.push(Y);B.push(I);let j={type:"element",tagName:"code",properties:{},children:B};for(const Y of l)j=((O=Y==null?void 0:Y.code)==null?void 0:O.call(S,j))||j;u.children=[];for(let Y=0;Y<j.children.length;Y++){Y>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const te=j.children[Y];te.type==="element"&&u.children.push(...te.children)}}let b=u;for(const B of l)b=((H=B==null?void 0:B.root)==null?void 0:H.call(S,b))||b;return n&&qc(b,n),b}function
|
|
60
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function p2(e,t,r,n){const l=n.schema,c=l.space==="svg"?!1:n.settings.omitOptionalTags;let u=l.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const d=[];let _;l.space==="html"&&e.tagName==="svg"&&(n.schema=gS);const f=m2(n,e.properties),v=n.all(l.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=l,v&&(u=!1),(f||!c||!c2(e,t,r))&&(d.push("<",e.tagName,f?" "+f:""),u&&(l.space==="svg"||n.settings.closeSelfClosing)&&(_=f.charAt(f.length-1),(!n.settings.tightSelfClosing||_==="/"||_&&_!=='"'&&_!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(v),!u&&(!c||!__(e,t,r))&&d.push("</"+e.tagName+">"),d.join("")}function m2(e,t){const r=[];let n=-1,l;if(t){for(l in t)if(t[l]!==null&&t[l]!==void 0){const c=g2(e,l,t[l]);c&&r.push(c)}}for(;++n<r.length;){const c=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&c!=='"'&&c!=="'"&&(r[n]+=" ")}return r.join("")}function g2(e,t,r){const n=Sx(e.schema,t),l=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,c=e.settings.allowDangerousCharacters?0:1;let u=e.quote,d;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const _=Xn(n.attribute,Object.assign({},e.settings.characterReferences,{subset:ec.name[l][c]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Wx:Fx)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?_:(e.settings.preferUnquoted&&(d=Xn(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ec.unquoted[l][c]}))),d!==r&&(e.settings.quoteSmart&&ny(r,u)>ny(r,e.alternative)&&(u=e.alternative),d=u+Xn(r,Object.assign({},e.settings.characterReferences,{subset:(u==="'"?ec.single:ec.double)[l][c],attribute:!0}))+u),_+(d&&"="+d))}const v2=["<","&"];function wS(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Xn(e.value,Object.assign({},n.settings.characterReferences,{subset:v2}))}function y2(e,t,r,n){return n.settings.allowDangerousHtml?e.value:wS(e,t,r,n)}function S2(e,t,r,n){return n.all(e)}const b2=Ex("type",{invalid:w2,unknown:C2,handlers:{comment:Gx,doctype:qx,element:p2,raw:y2,root:S2,text:wS}});function w2(e){throw new Error("Expected node, not `"+e+"`")}function C2(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const E2={},x2={},A2=[];function k2(e,t){const r=t||E2,n=r.quote||'"',l=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:T2,all:R2,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||_x,characterReferences:r.characterReferences||x2,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?gS:Cx,quote:n,alternative:l}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function T2(e,t,r){return b2(e,t,r,this)}function R2(e){const t=[],r=e&&e.children||A2;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function CS(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const l of r)l&&!e.properties.class.includes(l)&&e.properties.class.push(l);return e}function D2(e){const t=Gc(e,!0).map(([l])=>l);function r(l){if(l===e.length)return{line:t.length-1,character:t[t.length-1].length};let c=l,u=0;for(const d of t){if(c<d.length)break;c-=d.length,u++}return{line:u,character:c}}function n(l,c){let u=0;for(let d=0;d<l;d++)u+=t[d].length;return u+=c,u}return{lines:t,indexToPos:r,posToIndex:n}}function L2(e,t,r){const n=new Set;for(const c of e.matchAll(/:?lang=["']([^"']+)["']/g)){const u=c[1].toLowerCase().trim();u&&n.add(u)}for(const c of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const u=c[1].toLowerCase().trim();u&&n.add(u)}for(const c of e.matchAll(/\\begin\{([\w-]+)\}/g)){const u=c[1].toLowerCase().trim();u&&n.add(u)}for(const c of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const u=c[1].toLowerCase().trim(),d=u.includes("/")?u.split("/").pop():u;d&&n.add(d)}if(!r)return Array.from(n);const l=r.getBundledLanguages();return Array.from(n).filter(c=>c&&l[c])}const p_="light-dark()",O2=["color","background-color"];function M2(e,t){let r=0;const n=[];for(const l of t)l>r&&n.push({...e,content:e.content.slice(r,l),offset:e.offset+r}),r=l;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function N2(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,l)=>n-l);return r.length?e.map(n=>n.flatMap(l=>{const c=r.filter(u=>l.offset<u&&u<l.offset+l.content.length).map(u=>u-l.offset).sort((u,d)=>u-d);return c.length?M2(l,c):l})):e}function B2(e,t,r,n,l="css-vars"){const c={content:e.content,explanation:e.explanation,offset:e.offset},u=t.map(v=>Tc(e.variants[v])),d=new Set(u.flatMap(v=>Object.keys(v))),_={},f=(v,m)=>{const y=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return r+t[v]+(m==="color"?"":y)};return u.forEach((v,m)=>{for(const y of d){const S=v[y]||"inherit";if(m===0&&n&&O2.includes(y))if(n===p_&&u.length>1){const b=t.findIndex(T=>T==="light"),E=t.findIndex(T=>T==="dark");if(b===-1||E===-1)throw new et('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');_[y]=`light-dark(${u[b][y]||"inherit"}, ${u[E][y]||"inherit"})`,l==="css-vars"&&(_[f(m,y)]=S)}else _[y]=S;else l==="css-vars"&&(_[f(m,y)]=S)}}),c.htmlStyle=_,c}function Tc(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Zt.Italic&&(t["font-style"]="italic"),e.fontStyle&Zt.Bold&&(t["font-weight"]="bold");const r=[];e.fontStyle&Zt.Underline&&r.push("underline"),e.fontStyle&Zt.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function cf(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function z2(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let c=function(d){if(typeof d=="number"){if(d<0||d>r.source.length)throw new et(`Invalid decoration offset: ${d}. Code length: ${r.source.length}`);return{...l.indexToPos(d),offset:d}}else{const _=l.lines[d.line];if(_===void 0)throw new et(`Invalid decoration position ${JSON.stringify(d)}. Lines length: ${l.lines.length}`);let f=d.character;if(f<0&&(f=_.length+f),f<0||f>_.length)throw new et(`Invalid decoration position ${JSON.stringify(d)}. Line ${d.line} length: ${_.length}`);return{...d,character:f,offset:l.posToIndex(d.line,f)}}};var n=c;const l=D2(r.source),u=(r.options.decorations||[]).map(d=>({...d,start:c(d.start),end:c(d.end)}));P2(u),e.set(r.meta,{decorations:u,converter:l,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){var n;if((n=this.options.decorations)!=null&&n.length)return N2(r,t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]))},code(r){var v;if(!((v=this.options.decorations)!=null&&v.length))return;const n=t(this),l=Array.from(r.children).filter(m=>m.type==="element"&&m.tagName==="span");if(l.length!==n.converter.lines.length)throw new et(`Number of lines in code element (${l.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function c(m,y,S,b){const E=l[m];let T="",O=-1,H=-1;if(y===0&&(O=0),S===0&&(H=0),S===Number.POSITIVE_INFINITY&&(H=E.children.length),O===-1||H===-1)for(let I=0;I<E.children.length;I++)T+=ES(E.children[I]),O===-1&&T.length===y&&(O=I+1),H===-1&&T.length===S&&(H=I+1);if(O===-1)throw new et(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(H===-1)throw new et(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const B=E.children.slice(O,H);if(!b.alwaysWrap&&B.length===E.children.length)d(E,b,"line");else if(!b.alwaysWrap&&B.length===1&&B[0].type==="element")d(B[0],b,"token");else{const I={type:"element",tagName:"span",properties:{},children:B};d(I,b,"wrapper"),E.children.splice(O,B.length,I)}}function u(m,y){l[m]=d(l[m],y,"line")}function d(m,y,S){var T;const b=y.properties||{},E=y.transform||(O=>O);return m.tagName=y.tagName||"span",m.properties={...m.properties,...b,class:m.properties.class},(T=y.properties)!=null&&T.class&&CS(m,y.properties.class),m=E(m,S)||m,m}const _=[],f=n.decorations.sort((m,y)=>y.start.offset-m.start.offset||m.end.offset-y.end.offset);for(const m of f){const{start:y,end:S}=m;if(y.line===S.line)c(y.line,y.character,S.character,m);else if(y.line<S.line){c(y.line,y.character,Number.POSITIVE_INFINITY,m);for(let b=y.line+1;b<S.line;b++)_.unshift(()=>u(b,m));c(S.line,0,S.character,m)}}_.forEach(m=>m())}}}function P2(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new et(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const l=e[n],c=r.start.offset<=l.start.offset&&l.start.offset<r.end.offset,u=r.start.offset<l.end.offset&&l.end.offset<=r.end.offset,d=l.start.offset<=r.start.offset&&r.start.offset<l.end.offset,_=l.start.offset<r.end.offset&&r.end.offset<=l.end.offset;if(c||u||d||_){if(c&&u||d&&_||d&&r.start.offset===r.end.offset||u&&l.start.offset===l.end.offset)continue;throw new et(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}function ES(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(ES).join(""):""}const I2=[z2()];function Rc(e){const t=H2(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...I2]}function H2(e){const t=[],r=[],n=[];for(const l of e)switch(l.enforce){case"pre":t.push(l);break;case"post":r.push(l);break;default:n.push(l)}return{pre:t,post:r,normal:n}}var Gs=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Td={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function U2(e,t){const r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){const n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function cy(e){const t=e.shift();if(t==="2"){const r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function j2(e){const t=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)Td[n]&&t.push({type:"setDecoration",value:Td[n]});else if(n<=29){const l=Td[n-20];l&&(t.push({type:"resetDecoration",value:l}),l==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Gs[n-30]}});else if(n===38){const l=cy(e);l&&t.push({type:"setForegroundColor",value:l})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Gs[n-40]}});else if(n===48){const l=cy(e);l&&t.push({type:"setBackgroundColor",value:l})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Gs[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Gs[n-100+8]}})}return t}function V2(){let e=null,t=null,r=new Set;return{parse(n){const l=[];let c=0;do{const u=U2(n,c),d=u.sequence?n.substring(c,u.startPosition):n.substring(c);if(d.length>0&&l.push({value:d,foreground:e,background:t,decorations:new Set(r)}),u.sequence){const _=j2(u.sequence);for(const f of _)f.type==="resetAll"?(e=null,t=null,r.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&r.delete(f.value);for(const f of _)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&r.add(f.value)}c=u.position}while(c<n.length);return l}}}var $2={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function G2(e=$2){function t(d){return e[d]}function r(d){return`#${d.map(_=>Math.max(0,Math.min(_,255)).toString(16).padStart(2,"0")).join("")}`}let n;function l(){if(n)return n;n=[];for(let f=0;f<Gs.length;f++)n.push(t(Gs[f]));let d=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let v=0;v<6;v++)for(let m=0;m<6;m++)n.push(r([d[f],d[v],d[m]]));let _=8;for(let f=0;f<24;f++,_+=10)n.push(r([_,_,_]));return n}function c(d){return l()[d]}function u(d){switch(d.type){case"named":return t(d.name);case"rgb":return r(d.rgb);case"table":return c(d.index)}}return{value:u}}const q2={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function W2(e,t,r){const n=kc(e,r),l=Gc(t),c=G2(Object.fromEntries(Gs.map(d=>{var f;const _=`terminal.ansi${d[0].toUpperCase()}${d.substring(1)}`;return[d,((f=e.colors)==null?void 0:f[_])||q2[d]]}))),u=V2();return l.map(d=>u.parse(d[0]).map(_=>{let f,v;_.decorations.has("reverse")?(f=_.background?c.value(_.background):e.bg,v=_.foreground?c.value(_.foreground):e.fg):(f=_.foreground?c.value(_.foreground):e.fg,v=_.background?c.value(_.background):void 0),f=gs(f,n),v=gs(v,n),_.decorations.has("dim")&&(f=F2(f));let m=Zt.None;return _.decorations.has("bold")&&(m|=Zt.Bold),_.decorations.has("italic")&&(m|=Zt.Italic),_.decorations.has("underline")&&(m|=Zt.Underline),_.decorations.has("strikethrough")&&(m|=Zt.Strikethrough),{content:_.value,offset:d[1],color:f,bgColor:v,fontStyle:m}}))}function F2(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const n=t[1];if(n.length===8){const l=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${l}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const l=n[0],c=n[1],u=n[2],d=n[3];return`#${l}${l}${c}${c}${u}${u}${Math.round(Number.parseInt(`${d}${d}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){const l=n[0],c=n[1],u=n[2];return`#${l}${l}${c}${c}${u}${u}80`}}}const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function uf(e,t,r={}){const n=e.resolveLangAlias(r.lang||"text"),{theme:l=e.getLoadedThemes()[0]}=r;if(!Vc(n)&&!$c(l)&&n==="ansi"){const{theme:c}=e.setTheme(l);return W2(c,t,r)}return oS(e,t,r)}function Dc(e,t,r){let n,l,c,u,d,_;if("themes"in r){const{defaultColor:f="light",cssVariablePrefix:v="--shiki-",colorsRendering:m="css-vars"}=r,y=Object.entries(r.themes).filter(O=>O[1]).map(O=>({color:O[0],theme:O[1]})).sort((O,H)=>O.color===f?-1:H.color===f?1:0);if(y.length===0)throw new et("`themes` option must not be empty");const S=cS(e,t,r,uf);if(_=yl(S),f&&p_!==f&&!y.find(O=>O.color===f))throw new et(`\`themes\` option must contain the defaultColor key \`${f}\``);const b=y.map(O=>e.getTheme(O.theme)),E=y.map(O=>O.color);c=S.map(O=>O.map(H=>B2(H,E,v,f,m))),_&&qc(c,_);const T=y.map(O=>kc(O.theme,r));l=uy(y,b,T,v,f,"fg",m),n=uy(y,b,T,v,f,"bg",m),u=`shiki-themes ${b.map(O=>O.name).join(" ")}`,d=f?void 0:[l,n].join(";")}else if("theme"in r){const f=kc(r.theme,r);c=uf(e,t,r);const v=e.getTheme(r.theme);n=gs(v.bg,f),l=gs(v.fg,f),u=v.name,_=yl(c)}else throw new et("Invalid options, either `theme` or `themes` must be provided");return{tokens:c,fg:l,bg:n,themeName:u,rootStyle:d,grammarState:_}}function uy(e,t,r,n,l,c,u){return e.map((d,_)=>{const f=gs(t[_][c],r[_])||"inherit",v=`${n+d.color}${c==="bg"?"-bg":""}:${f}`;if(_===0&&l){if(l===p_&&e.length>1){const m=e.findIndex(S=>S.color==="light"),y=e.findIndex(S=>S.color==="dark");if(m===-1||y===-1)throw new et('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${gs(t[m][c],r[m])||"inherit"}, ${gs(t[y][c],r[y])||"inherit"});${v}`}return f}return u==="css-vars"?v:null}).filter(d=>!!d).join(";")}function Lc(e,t,r,n={meta:{},options:r,codeToHast:(l,c)=>Lc(e,l,c),codeToTokens:(l,c)=>Dc(e,l,c)}){var b,E;let l=t;for(const T of Rc(r))l=((b=T.preprocess)==null?void 0:b.call(n,l,r))||l;let{tokens:c,fg:u,bg:d,themeName:_,rootStyle:f,grammarState:v}=Dc(e,l,r);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:y=!1}=r;m===!0?c=K2(c):m==="never"&&(c=X2(c)),y&&(c=Z2(c));const S={...n,get source(){return l}};for(const T of Rc(r))c=((E=T.tokens)==null?void 0:E.call(S,c))||c;return Y2(c,{...r,fg:u,bg:d,themeName:_,rootStyle:r.rootStyle===!1?!1:r.rootStyle??f},S,v)}function Y2(e,t,r,n=yl(e)){var E,T,O,H;const l=Rc(t),c=[],u={type:"root",children:[]},{structure:d="classic",tabindex:_="0"}=t,f={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?f.style=t.rootStyle:f.style=`background-color:${t.bg};color:${t.fg}`),_!==!1&&_!=null&&(f.tabindex=_.toString());for(const[B,I]of Object.entries(t.meta||{}))B.startsWith("_")||(f[B]=I);let v={type:"element",tagName:"pre",properties:f,children:[],data:t.data},m={type:"element",tagName:"code",properties:{},children:c};const y=[],S={...r,structure:d,addClassToHast:CS,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return v},get code(){return m},get lines(){return y}};if(e.forEach((B,I)=>{var te,ge;I&&(d==="inline"?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&c.push({type:"text",value:`
|
|
61
|
+
`}));let j={type:"element",tagName:"span",properties:{class:"line"},children:[]},Y=0;for(const ve of B){let fe={type:"element",tagName:"span",properties:{...ve.htmlAttrs},children:[{type:"text",value:ve.content}]};const he=cf(ve.htmlStyle||Tc(ve));he&&(fe.properties.style=he);for(const J of l)fe=((te=J==null?void 0:J.span)==null?void 0:te.call(S,fe,I+1,Y,j,ve))||fe;d==="inline"?u.children.push(fe):d==="classic"&&j.children.push(fe),Y+=ve.content.length}if(d==="classic"){for(const ve of l)j=((ge=ve==null?void 0:ve.line)==null?void 0:ge.call(S,j,I+1))||j;y.push(j),c.push(j)}else d==="inline"&&y.push(j)}),d==="classic"){for(const B of l)m=((E=B==null?void 0:B.code)==null?void 0:E.call(S,m))||m;v.children.push(m);for(const B of l)v=((T=B==null?void 0:B.pre)==null?void 0:T.call(S,v))||v;u.children.push(v)}else if(d==="inline"){const B=[];let I={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const Y of u.children)Y.type==="element"&&Y.tagName==="br"?(B.push(I),I={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(Y.type==="element"||Y.type==="text")&&I.children.push(Y);B.push(I);let j={type:"element",tagName:"code",properties:{},children:B};for(const Y of l)j=((O=Y==null?void 0:Y.code)==null?void 0:O.call(S,j))||j;u.children=[];for(let Y=0;Y<j.children.length;Y++){Y>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const te=j.children[Y];te.type==="element"&&u.children.push(...te.children)}}let b=u;for(const B of l)b=((H=B==null?void 0:B.root)==null?void 0:H.call(S,b))||b;return n&&qc(b,n),b}function K2(e){return e.map(t=>{const r=[];let n="",l;return t.forEach((c,u)=>{const d=!(c.fontStyle&&(c.fontStyle&Zt.Underline||c.fontStyle&Zt.Strikethrough));d&&c.content.match(/^\s+$/)&&t[u+1]?(l===void 0&&(l=c.offset),n+=c.content):n?(d?r.push({...c,offset:l,content:n+c.content}):r.push({content:n,offset:l},c),l=void 0,n=""):r.push(c)}),r})}function X2(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,l,c,u]=n;if(!l&&!u)return r;const d=[{...r,offset:r.offset+l.length,content:c}];return l&&d.unshift({content:l,offset:r.offset}),u&&d.push({content:u,offset:r.offset+l.length+c.length}),d}))}function Z2(e){return e.map(t=>{const r=[];for(const n of t){if(r.length===0){r.push({...n});continue}const l=r[r.length-1],c=cf(l.htmlStyle||Tc(l)),u=cf(n.htmlStyle||Tc(n)),d=l.fontStyle&&(l.fontStyle&Zt.Underline||l.fontStyle&Zt.Strikethrough),_=n.fontStyle&&(n.fontStyle&Zt.Underline||n.fontStyle&Zt.Strikethrough);!d&&!_&&c===u?l.content+=n.content:r.push({...n})}return r})}const Q2=k2;function J2(e,t,r){var c;const n={meta:{},options:r,codeToHast:(u,d)=>Lc(e,u,d),codeToTokens:(u,d)=>Dc(e,u,d)};let l=Q2(Lc(e,t,r,n));for(const u of Rc(r))l=((c=u.postprocess)==null?void 0:c.call(n,l,r))||l;return l}async function eA(e){const t=await sx(e);return{getLastGrammarState:(...r)=>lx(t,...r),codeToTokensBase:(r,n)=>uf(t,r,n),codeToTokensWithThemes:(r,n)=>cS(t,r,n),codeToTokens:(r,n)=>Dc(t,r,n),codeToHast:(r,n)=>Lc(t,r,n),codeToHtml:(r,n)=>J2(t,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function tA(e){const t=e.langs,r=e.themes,n=e.engine;async function l(c){function u(m){var y;if(typeof m=="string"){if(m=((y=c.langAlias)==null?void 0:y[m])||m,tS(m))return[];const S=t[m];if(!S)throw new et(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return S}return m}function d(m){if(iS(m))return"none";if(typeof m=="string"){const y=r[m];if(!y)throw new et(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return y}return m}const _=(c.themes??[]).map(m=>d(m)),f=(c.langs??[]).map(m=>u(m)),v=await eA({engine:c.engine??n(),...c,themes:_,langs:f});return{...v,loadLanguage(...m){return v.loadLanguage(...m.map(u))},loadTheme(...m){return v.loadTheme(...m.map(d))},getBundledLanguages(){return t},getBundledThemes(){return r}}}return l}function iA(e){let t;async function r(n={}){if(t){const l=await t;return await Promise.all([l.loadTheme(...n.themes||[]),l.loadLanguage(...n.langs||[])]),l}else{t=e({...n,themes:[],langs:[]});const l=await t;return await Promise.all([l.loadTheme(...n.themes||[]),l.loadLanguage(...n.langs||[])]),l}}return r}function rA(e,t){const r=iA(e);async function n(l,c){var _;const u=await r({langs:[c.lang],themes:"theme"in c?[c.theme]:Object.values(c.themes)}),d=await((_=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:_.call(t,l,c.lang,u));return d&&await u.loadLanguage(...d),u}return{getSingletonHighlighter(l){return r(l)},async codeToHtml(l,c){return(await n(l,c)).codeToHtml(l,c)},async codeToHast(l,c){return(await n(l,c)).codeToHast(l,c)},async codeToTokens(l,c){return(await n(l,c)).codeToTokens(l,c)},async codeToTokensBase(l,c){return(await n(l,c)).codeToTokensBase(l,c)},async codeToTokensWithThemes(l,c){return(await n(l,c)).codeToTokensWithThemes(l,c)},async getLastGrammarState(l,c){return(await r({langs:[c.lang],themes:[c.theme]})).getLastGrammarState(l,c)}}}var sA=t_({bundledLanguages:()=>s_,bundledLanguagesAlias:()=>r_,bundledLanguagesBase:()=>i_,bundledLanguagesInfo:()=>Hc,bundledThemes:()=>a_,bundledThemesInfo:()=>n_,codeToHast:()=>AS,codeToHtml:()=>xS,codeToTokens:()=>kS,codeToTokensBase:()=>TS,codeToTokensWithThemes:()=>RS,createHighlighter:()=>Fc,getLastGrammarState:()=>LS,getSingletonHighlighter:()=>DS});const Fc=tA({langs:s_,themes:a_,engine:()=>(0,I0.createOnigurumaEngine)(C(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:xS,codeToHast:AS,codeToTokens:kS,codeToTokensBase:TS,codeToTokensWithThemes:RS,getSingletonHighlighter:DS,getLastGrammarState:LS}=rA(Fc,{guessEmbeddedLanguages:L2}),hy=4294967295;var nA=class{constructor(e,t={}){V(this,"regexps");this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:l}=t;if(!l)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(c=>{if(typeof c!="string")return c;const u=n==null?void 0:n.get(c);if(u){if(u instanceof RegExp)return u;if(r)return null;throw u}try{const d=l(c);return n==null||n.set(c,d),d}catch(d){if(n==null||n.set(c,d),r)return null;throw d}})}findNextMatchSync(e,t,r){const n=typeof e=="string"?e:e.content,l=[];function c(u,d,_=0){return{index:u,captureIndices:d.indices.map(f=>f==null?{start:hy,end:hy,length:0}:{start:f[0]+_,end:f[1]+_,length:f[1]-f[0]})}}for(let u=0;u<this.regexps.length;u++){const d=this.regexps[u];if(d)try{d.lastIndex=t;const _=d.exec(n);if(!_)continue;if(_.index===t)return c(u,_,0);l.push([u,_,0])}catch(_){if(this.options.forgiving)continue;throw _}}if(l.length){const u=Math.min(...l.map(d=>d[1].index));for(const[d,_,f]of l)if(_.index===u)return c(d,_,f)}return null}};function ea(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function aA(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const m_=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),It=String.raw;function ta(e,t){if(e==null)throw new Error(t??"Value expected");return e}const OS=It`\[\^?`,MS=`c.? | C(?:-.?)?|${It`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${It`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${It`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${It`o\{[^\}]*\}?`}|${It`\d{1,3}`}`,g_=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,tc=new RegExp(It`
|
|
62
62
|
\\ (?:
|
|
63
63
|
${MS}
|
|
64
64
|
| [gk]<[^>]*>?
|
|
@@ -235,4 +235,4 @@ WARNING: This link could potentially be dangerous`)){let r=window.open();if(r){t
|
|
|
235
235
|
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
236
236
|
* http://bellard.org/jslinux/
|
|
237
237
|
* Copyright (c) 2011 Fabrice Bellard
|
|
238
|
-
*/var oL=2,cL=1,uL=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){var m;if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:((m=this._terminal.options.overviewRuler)==null?void 0:m.width)||14,r=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(r.getPropertyValue("height")),l=Math.max(0,parseInt(r.getPropertyValue("width"))),c=window.getComputedStyle(this._terminal.element),u={top:parseInt(c.getPropertyValue("padding-top")),bottom:parseInt(c.getPropertyValue("padding-bottom")),right:parseInt(c.getPropertyValue("padding-right")),left:parseInt(c.getPropertyValue("padding-left"))},d=u.top+u.bottom,_=u.right+u.left,f=n-d,v=l-_-t;return{cols:Math.max(oL,Math.floor(v/e.css.cell.width)),rows:Math.max(cL,Math.floor(f/e.css.cell.height))}}};function hL({sessionId:e}){const t=$.useRef(null),r=$.useRef(null),n=$.useRef(null),[l,c]=$.useState(null);return $.useEffect(()=>{if(!t.current)return;const u=new lL({fontSize:11,fontFamily:"'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace",fontWeight:"400",letterSpacing:0,lineHeight:1.25,theme:{background:"#1e1e1e",foreground:"#e0e0e0",cursor:"rgba(255, 255, 255, 0.25)",cursorAccent:"transparent",selectionBackground:"rgba(255, 255, 255, 0.15)",selectionForeground:"#ffffff",black:"#1e1e1e",red:"#f47067",green:"#8ddb8c",yellow:"#e0af68",blue:"#6cb6ff",magenta:"#dcbdfb",cyan:"#76e3ea",white:"#e0e0e0",brightBlack:"#6e7681",brightRed:"#ff938a",brightGreen:"#a8e4a0",brightYellow:"#f0d399",brightBlue:"#96d0ff",brightMagenta:"#eedcff",brightCyan:"#a5f0f5",brightWhite:"#ffffff"},cursorBlink:!1,cursorInactiveStyle:"none",disableStdin:!0,scrollback:5e3,allowProposedApi:!0}),d=new uL;u.loadAddon(d),u.open(t.current),d.fit(),r.current=u,n.current=d;let _=null,f=null,v=!1,m=1e3;function y(){(_==null?void 0:_.readyState)===WebSocket.OPEN&&_.send(JSON.stringify({type:"terminal.resize",cols:u.cols,rows:u.rows}))}function S(){if(v)return;const E=location.protocol==="https:"?"wss:":"ws:";_=new WebSocket(`${E}//${location.host}/terminal?sessionId=${e}`),_.onopen=()=>{m=1e3,y()},_.onmessage=T=>{try{const O=JSON.parse(T.data);O.type==="terminal.output"?u.write(O.data):O.type==="terminal.ready"?(c(!0),y()):(O.type==="terminal.none"||O.type==="terminal.exited")&&c(!1)}catch{}},_.onclose=()=>{_=null,!v&&(f=setTimeout(()=>{f=null,m=Math.min(m*1.5,1e4),S()},m))},_.onerror=()=>{}}S();const b=new ResizeObserver(()=>{d.fit(),y()});return b.observe(t.current),()=>{v=!0,f&&clearTimeout(f),b.disconnect(),_&&_.close(),u.dispose(),r.current=null,n.current=null}},[e]),k.jsxs("div",{className:"terminal-tab",children:[k.jsx("div",{ref:t,className:"terminal-xterm",style:{display:l?"block":"none"}}),l===!1&&k.jsxs("div",{className:"terminal-empty",children:[k.jsx(M0,{size:36}),k.jsx("p",{children:"终端未启动"})]})]})}function dL({activeTab:e,topLevel:t,changes:r,directory:n,sessionId:l,previewPort:c,requestLs:u,requestFile:d,requestDiff:_,onFileContext:f}){const[v,m]=$.useState(!1);return $.useEffect(()=>{e==="terminal"&&m(!0)},[e]),k.jsxs("div",{className:"main-view",children:[k.jsx("div",{className:"main-path-bar",children:k.jsx("span",{className:"main-path-text",children:n})}),k.jsxs("div",{className:"main-tab-area",children:[k.jsx("div",{className:"main-tab-panel",style:{display:e==="files"?"flex":"none"},children:k.jsx(Yk,{topLevel:t,requestLs:u,requestFile:d,onFileContext:f})}),k.jsx("div",{className:"main-tab-panel",style:{display:e==="changes"?"flex":"none"},children:k.jsx(Zk,{changes:r,requestFile:d,requestDiff:_,onFileContext:f})}),k.jsx("div",{className:"main-tab-panel",style:{display:e==="terminal"?"flex":"none"},children:v&&k.jsx(hL,{sessionId:l})}),k.jsx("div",{className:"main-tab-panel",style:{display:e==="preview"?"flex":"none"},children:k.jsx(Qk,{previewPort:c})}),e!=="files"&&e!=="changes"&&e!=="terminal"&&e!=="preview"&&k.jsx("iframe",{className:"main-view-iframe",src:e,title:"Agent View"})]})]})}function x0(e){return e==null?"":e>=1e3?(e/1e3).toFixed(1)+"s":e+"ms"}function Sc(e){if(e==null)return"";if(typeof e=="string")return e.replace(/\s+/g," ").trim();try{return JSON.stringify(e).replace(/\s+/g," ").trim()}catch{return String(e).replace(/\s+/g," ").trim()}}function bc(e){const t=e.trim().replaceAll("\\","/").replace(/\/+/g,"/");if(!t)return"";const r=t.length>1&&t.endsWith("/"),n=t.split("/").filter(Boolean);if(n.length===0)return t;if(n.length===1)return r?`${n[0]}/`:n[0];const l=n[n.length-1];return r?`${l}/`:l}function us(e,t){if(!e)return"";for(const r of t){const n=e[r];if(typeof n=="string"&&n.trim())return n.trim()}return""}function fL(e){if(!e)return"";const t=e.split(/\r?\n/),r=[];for(const l of t){const c=l.match(/^\*\*\* (?:Add|Delete|Update) File: (.+)$/);if(c){r.push(c[1].trim());continue}const u=l.match(/^\*\*\* Move to: (.+)$/);if(u&&r.length>0){r[r.length-1]=u[1].trim();continue}const d=l.match(/^[AMD] (.+)$/);d&&r.push(d[1].trim())}if(r.length===0)return Sc(e);const n=bc(r[0]);return r.length===1?n:`${n} +${r.length-1}`}function _L(e){var t,r,n,l,c;if(e.status==="error")return e.error||"error";switch(e.name){case"apply_patch":return fL(e.title||us(e.args,["patchText"]));case"write":case"edit":case"multiedit":case"read":{const u=bc(e.title||us(e.args,["filePath","path"])),d=Number((t=e.args)==null?void 0:t.offset)||0,_=Number((r=e.args)==null?void 0:r.limit)||0;if(d||_){const f=_?d+_:"…";return`${u} L${d+1}–${f}`}return u}case"ls":case"glob":return bc(e.title||us(e.args,["filePath","path"]));case"set_working_directory":{const u=((n=e.title)==null?void 0:n.replace(/^Set directory:\s*/,""))||"";return bc(u||us(e.args,["directory"]))}case"codesearch":return(((l=e.title)==null?void 0:l.replace(/^Code search:\s*/,""))||us(e.args,["query"])).trim();case"websearch":return(((c=e.title)==null?void 0:c.replace(/^Web search:\s*/,""))||us(e.args,["query"])).trim();case"grep":return us(e.args,["pattern","query","include"]);case"bash":return us(e.args,["command","description"])||Sc(e.title);default:return Sc(e.title)||Sc(e.args)}}const A0=768,Kb="anycode-conv-pos",Xb="anycode-conv-size";function pL(){try{const e=JSON.parse(localStorage.getItem(Kb)||"null"),t=JSON.parse(localStorage.getItem(Xb)||"null");return{pos:e&&typeof e.x=="number"?e:{x:0,y:0},size:t&&typeof t.w=="number"?t:{w:220,h:280}}}catch{return{pos:{x:0,y:0},size:{w:220,h:280}}}}function mL(){const[e,t]=$.useState(()=>window.innerWidth>A0);return $.useEffect(()=>{const r=window.matchMedia(`(min-width: ${A0+1}px)`),n=l=>t(l.matches);return r.addEventListener("change",n),()=>r.removeEventListener("change",n)},[]),e}function gL({sessionId:e,fileContext:t,chatHandlerRef:r,sendMessage:n}){const l=mL(),[c,u]=$.useState([]),[d,_]=$.useState(""),[f,v]=$.useState(!1),[m,y]=$.useState(!1),[S,b]=$.useState(!1),E=$.useRef(pL()),[T,O]=$.useState(E.current.pos),[H,B]=$.useState(E.current.size);$.useEffect(()=>{l||localStorage.setItem(Kb,JSON.stringify(T))},[T,l]),$.useEffect(()=>{l||localStorage.setItem(Xb,JSON.stringify(H))},[H,l]);const I=$.useRef(null),j=$.useRef(null),Y=$.useRef(0),[te,ge]=$.useState(0),ve=$.useRef(null),fe=$.useRef(new Map);$.useEffect(()=>{e&&(u([]),b(!1),fe.current.clear(),(async()=>{try{const ne=await fetch(`/api/messages?sessionId=${encodeURIComponent(e)}`);if(!ne.ok)return;const ce=await ne.json();if(!Array.isArray(ce)||ce.length===0)return;const Se=[];for(const Ee of ce)if(Ee.role==="user")Se.push({role:"user",text:Ee.text||""});else{const Ae=[];if(Array.isArray(Ee.parts))for(const Ge of Ee.parts)Ge.type==="text"?Ae.push({kind:"text",content:Ge.content||""}):Ge.type==="tool"?Ae.push({kind:"tool",id:"",name:Ge.tool||"",status:"done",title:Ge.content||""}):Ge.type==="thinking"&&Ae.push({kind:"thinking",content:Ge.content||""});Ae.length>0&&Se.push({role:"assistant",parts:Ae})}Se.length>0&&u(Se)}catch{}})())},[e]),$.useEffect(()=>{var ne;(ne=ve.current)==null||ne.scrollTo(0,ve.current.scrollHeight)},[c]),$.useEffect(()=>{if(!f){ge(0);return}const ne=setInterval(()=>ge(Math.floor((Date.now()-Y.current)/1e3)),100);return()=>clearInterval(ne)},[f]);const he=$.useCallback(ne=>{u(ce=>{const Se=ce[ce.length-1];return Se&&Se.role==="assistant"?[...ce.slice(0,-1),{...Se,parts:[...Se.parts,ne]}]:[...ce,{role:"assistant",parts:[ne]}]})},[]),J=$.useCallback((ne,ce)=>{u(Se=>{const Ee=Se[Se.length-1];if(!Ee||Ee.role!=="assistant")return Se;const Ae=[...Ee.parts];for(let Ge=Ae.length-1;Ge>=0;Ge--)if(Ae[Ge].kind===ne){Ae[Ge]=ce(Ae[Ge]);break}return[...Se.slice(0,-1),{...Ee,parts:Ae}]})},[]),q=$.useCallback((ne,ce)=>{u(Se=>{var Ol;const Ee=Se[Se.length-1];if(!Ee||Ee.role!=="assistant")return Se;const Ae=[...Ee.parts],Ge=fe.current.get(ne);return Ge!=null&&((Ol=Ae[Ge])==null?void 0:Ol.kind)==="tool"&&(Ae[Ge]=ce(Ae[Ge])),[...Se.slice(0,-1),{...Ee,parts:Ae}]})},[]),re=$.useCallback(ne=>{switch(ne.type){case"thinking.start":he({kind:"thinking",content:""});break;case"thinking.delta":J("thinking",ce=>({...ce,content:ce.content+(ne.thinkingContent||"")}));break;case"thinking.end":J("thinking",ce=>({...ce,duration:ne.thinkingDuration}));break;case"text.delta":u(ce=>{const Se=ce[ce.length-1];if(Se&&Se.role==="assistant"){const Ee=[...Se.parts],Ae=Ee[Ee.length-1];return(Ae==null?void 0:Ae.kind)==="text"?Ee[Ee.length-1]={...Ae,content:Ae.content+(ne.content||"")}:Ee.push({kind:"text",content:ne.content||""}),[...ce.slice(0,-1),{...Se,parts:Ee}]}return[...ce,{role:"assistant",parts:[{kind:"text",content:ne.content||""}]}]});break;case"tool.start":{const ce=ne.toolCallId||"";if(ce&&fe.current.has(ce))q(ce,Se=>({...Se,...ne.toolTitle!=null?{title:ne.toolTitle}:{}}));else{const Se={kind:"tool",id:ce,name:ne.toolName||"",args:ne.toolArgs,title:ne.toolTitle,status:"running"};u(Ee=>{const Ae=Ee[Ee.length-1];if(Ae&&Ae.role==="assistant"){const Ge=[...Ae.parts,Se];return ce&&fe.current.set(ce,Ge.length-1),[...Ee.slice(0,-1),{...Ae,parts:Ge}]}return ce&&fe.current.set(ce,0),[...Ee,{role:"assistant",parts:[Se]}]})}break}case"tool.done":ne.toolCallId&&q(ne.toolCallId,ce=>({...ce,status:"done",duration:ne.toolDuration,title:ne.toolTitle}));break;case"tool.error":ne.toolCallId&&q(ne.toolCallId,ce=>({...ce,status:"error",duration:ne.toolDuration,error:ne.error}));break;case"message.done":break;case"error":he({kind:"error",message:ne.error||"unknown error"});break;case"done":b(!1);break}},[he,J,q]);$.useEffect(()=>{if(r)return r.current=ne=>{switch(ne.type){case"chat.userMessage":fe.current.clear(),u(ce=>[...ce,{role:"user",text:ne.text},{role:"assistant",parts:[]}]),b(!0);break;case"chat.event":ne.event&&re(ne.event);break;case"chat.done":b(!1);break}},()=>{r.current=void 0}},[re,r]);const se=$.useCallback(()=>{const ne=d.trim();if(!ne||S)return;_(""),b(!0);const ce={type:"chat.send",message:ne};t&&(ce.fileContext=t),n(ce)},[d,S,t,n]),D=$.useCallback(()=>{n({type:"chat.stop"})},[n]),F=ne=>{ne.key==="Enter"&&!ne.shiftKey&&!ne.nativeEvent.isComposing&&(ne.preventDefault(),se())},W=()=>{v(!0),Y.current=Date.now()},ie=()=>{v(!1),Date.now()-Y.current<300},oe=ne=>{ne.preventDefault(),W();const ce=()=>{ie(),window.removeEventListener("mouseup",ce)};window.addEventListener("mouseup",ce)},x=ne=>{ne.preventDefault(),W();const ce=()=>{ie(),window.removeEventListener("touchend",ce)};window.addEventListener("touchend",ce)},M=$.useCallback((ne,ce)=>{I.current={startX:ne,startY:ce,origX:T.x,origY:T.y}},[T]),X=$.useCallback((ne,ce)=>{I.current&&O({x:I.current.origX+ne-I.current.startX,y:I.current.origY+ce-I.current.startY})},[]),ee=$.useCallback(()=>{I.current=null},[]),ue=ne=>{ne.preventDefault(),M(ne.clientX,ne.clientY);const ce=Ee=>X(Ee.clientX,Ee.clientY),Se=()=>{ee(),window.removeEventListener("mousemove",ce),window.removeEventListener("mouseup",Se)};window.addEventListener("mousemove",ce),window.addEventListener("mouseup",Se)},pe=ne=>{const ce=ne.touches[0];M(ce.clientX,ce.clientY);const Se=Ae=>{Ae.preventDefault(),X(Ae.touches[0].clientX,Ae.touches[0].clientY)},Ee=()=>{ee(),window.removeEventListener("touchmove",Se),window.removeEventListener("touchend",Ee)};window.addEventListener("touchmove",Se,{passive:!1}),window.addEventListener("touchend",Ee)},we=$.useRef("bl"),Fe=$.useCallback((ne,ce,Se)=>{we.current=Se,j.current={startX:ne,startY:ce,origW:H.w,origH:H.h}},[H]),ze=$.useCallback((ne,ce)=>{if(!j.current)return;const Se=ne-j.current.startX,Ee=ce-j.current.startY,Ae=we.current==="bl"?-Se:Se;B({w:Math.max(180,Math.min(600,j.current.origW+Ae)),h:Math.max(200,Math.min(800,j.current.origH+Ee))})},[]),Ft=$.useCallback(()=>{j.current=null},[]),$e=ne=>ce=>{ce.preventDefault(),ce.stopPropagation(),Fe(ce.clientX,ce.clientY,ne);const Se=Ae=>ze(Ae.clientX,Ae.clientY),Ee=()=>{Ft(),window.removeEventListener("mousemove",Se),window.removeEventListener("mouseup",Ee)};window.addEventListener("mousemove",Se),window.addEventListener("mouseup",Ee)},at=ne=>ce=>{ce.stopPropagation();const Se=ce.touches[0];Fe(Se.clientX,Se.clientY,ne);const Ee=Ge=>{Ge.preventDefault(),ze(Ge.touches[0].clientX,Ge.touches[0].clientY)},Ae=()=>{Ft(),window.removeEventListener("touchmove",Ee),window.removeEventListener("touchend",Ae)};window.addEventListener("touchmove",Ee,{passive:!1}),window.addEventListener("touchend",Ae)},Le=(ne,ce)=>{switch(ne.kind){case"thinking":return k.jsxs("details",{className:"co-thinking",children:[k.jsxs("summary",{children:["💭 Thinking ",k.jsx("span",{className:"co-thinking-dur",children:x0(ne.duration)||"…"})]}),k.jsx("div",{className:"co-thinking-content",children:ne.content})]},ce);case"tool":const Se=_L(ne);return k.jsxs("div",{className:`co-tool ${ne.status}`,title:Se,children:[k.jsx("span",{className:"co-tool-icon",children:ne.status==="running"?"⏳":ne.status==="done"?"✓":"✗"}),k.jsx("span",{className:"co-tool-name",children:ne.name}),k.jsx("span",{className:"co-tool-info",children:Se}),ne.duration!=null&&k.jsx("span",{className:"co-tool-dur",children:x0(ne.duration)})]},ce);case"text":return k.jsx("div",{className:"co-text",children:ne.content},ce);case"error":return k.jsxs("div",{className:"co-error",children:["⚠ ",ne.message]},ce)}},di=l?"conversation-panel conversation-sidebar":"conversation-panel conversation-floating",sa=l?void 0:{transform:`translate(${T.x}px, ${T.y}px)`,width:H.w,height:H.h};return k.jsxs("div",{className:di,style:sa,children:[k.jsxs("div",{className:"conversation-header",...l?{}:{onMouseDown:ue,onTouchStart:pe},children:[!l&&k.jsx("div",{className:"drag-grip"}),k.jsxs("div",{className:"conversation-header-content",children:[k.jsx(jC,{})," 对话"]})]}),k.jsxs("div",{className:"conversation-messages",ref:ve,children:[c.length===0&&k.jsx("div",{className:"co-text",style:{color:"var(--color-text-dim)"},children:"你好!告诉我你想做什么"}),c.map((ne,ce)=>ne.role==="user"?k.jsx("div",{className:"co-user",children:ne.text},ce):k.jsx("div",{className:"co-response",children:ne.parts.map(Le)},ce))]}),t&&k.jsx("div",{className:"co-file-context",children:k.jsxs("span",{className:"co-file-context-text",children:[t.file.split("/").pop()," L",t.lines[0],"–",t.lines[t.lines.length-1]]})}),k.jsx("div",{className:"conversation-input",children:m?k.jsxs(k.Fragment,{children:[k.jsx("input",{type:"text",value:S?"":d,onChange:ne=>_(ne.target.value),onKeyDown:F,placeholder:S?"正在处理中...":"输入消息...",autoFocus:!0,disabled:S}),S?k.jsx("button",{className:"text-send-btn text-stop-btn",onClick:D,children:k.jsx(VC,{size:18})}):k.jsx("button",{className:"text-send-btn",onClick:se,children:k.jsx(PC,{})}),k.jsx("button",{className:"text-close-btn",onClick:()=>y(!1),children:k.jsx(IC,{})})]}):k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"mic-wrapper",children:[f&&k.jsxs("div",{className:"mic-tooltip",children:["录音中 ",te,"s"]}),k.jsx("button",{className:`mic-btn ${f?"recording":""}`,onMouseDown:oe,onTouchStart:x,children:k.jsx(BC,{})})]}),k.jsx("button",{className:"text-toggle-btn",onClick:()=>y(!0),children:k.jsx(zC,{})})]})}),!l&&k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"co-resize-grip co-resize-bl",onMouseDown:$e("bl"),onTouchStart:at("bl")}),k.jsx("div",{className:"co-resize-grip co-resize-br",onMouseDown:$e("br"),onTouchStart:at("br")})]})]})}function vL(e){if(e.directory){const t=e.directory.split("/");return t[t.length-1]||e.directory}return e.isDefault?"默认":"新窗口"}function yL({windows:e,activeWindowId:t,onSwitch:r,onCreate:n,onDelete:l}){const[c,u]=$.useState(null),[d,_]=$.useState(null),f=$.useRef(null),v=$.useRef(new Map);$.useEffect(()=>{if(!c)return;const y=S=>{f.current&&!f.current.contains(S.target)&&u(null)};return document.addEventListener("mousedown",y),document.addEventListener("touchstart",y),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("touchstart",y)}},[c]);const m=$.useCallback(y=>{y.id===t?y.isDefault||u(S=>{if(S===y.id)return null;const b=v.current.get(y.id);if(b){const E=b.getBoundingClientRect();_({x:E.left+E.width/2,y:E.top})}return y.id}):(u(null),r(y.id))},[t,r]);return k.jsxs("nav",{className:"taskbar",ref:f,children:[k.jsx("div",{className:"taskbar-items",children:e.map(y=>k.jsx("button",{ref:S=>{S&&v.current.set(y.id,S)},className:`taskbar-item ${y.id===t?"active":""}`,onClick:()=>m(y),children:k.jsx("span",{className:"taskbar-label",children:vL(y)})},y.id))}),k.jsx("button",{className:"taskbar-add",onClick:n,title:"新建窗口",children:"+"}),c&&d&&k.jsx("div",{className:"taskbar-popover",style:{left:d.x,top:d.y},children:k.jsx("button",{className:"taskbar-popover-btn",onClick:()=>{const y=c;u(null),l(y)},children:"关闭窗口"})})]})}const Fs="";function SL(){const e="anycode-user-id";let t=localStorage.getItem(e);return t||(t=crypto.randomUUID(),localStorage.setItem(e,t)),t}function bL({sessionId:e,visible:t,onWindowsChanged:r}){const[n,l]=$.useState("files"),[c,u]=$.useState(""),[d,_]=$.useState([]),[f,v]=$.useState([]),[m,y]=$.useState(null),[S,b]=$.useState(null),E=$.useRef(void 0),T=$.useRef(null),O=$.useCallback(j=>{var Y;(Y=T.current)==null||Y.send(j)},[]);$.useEffect(()=>{let j=!1,Y=1e3,te;function ge(){if(j)return;const ve=NC(e);T.current=ve,ve.onopen=()=>{Y=1e3,r()},ve.onmessage=fe=>{var he,J;fe.type==="state"?(fe.directory&&u(fe.directory),_(fe.topLevel||[]),v(fe.changes||[]),fe.previewPort!==void 0&&b(fe.previewPort)):(he=fe.type)!=null&&he.startsWith("chat.")&&((J=E.current)==null||J.call(E,fe))},ve.onclose=()=>{T.current=null,j||(te=setTimeout(()=>{Y=Math.min(Y*1.5,1e4),ge()},Y))}}return ge(),()=>{var ve;j=!0,clearTimeout(te),(ve=T.current)==null||ve.close(),T.current=null}},[e,r]);const H=$.useCallback(async j=>{try{const Y=await fetch(`${Fs}/api/sessions/${e}/ls?path=${encodeURIComponent(j)}`);return Y.ok?(await Y.json()).entries??[]:[]}catch{return[]}},[e]),B=$.useCallback(async j=>{try{const Y=await fetch(`${Fs}/api/sessions/${e}/file?path=${encodeURIComponent(j)}`);return Y.ok?(await Y.json()).content??null:null}catch{return null}},[e]),I=$.useCallback(async j=>{try{const Y=await fetch(`${Fs}/api/sessions/${e}/diff?path=${encodeURIComponent(j)}`);return Y.ok?await Y.json():{added:[],removed:[]}}catch{return{added:[],removed:[]}}},[e]);return k.jsxs("div",{className:"app-content",style:{display:t?"flex":"none"},children:[k.jsxs("div",{className:"app-main",children:[c?k.jsx(dL,{activeTab:n,topLevel:d,changes:f,directory:c,sessionId:e,previewPort:S,requestLs:H,requestFile:B,requestDiff:I,onFileContext:y}):k.jsxs("div",{className:"main-view",style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"16px"},children:[k.jsx("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"var(--color-text-dim)",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:.3},children:k.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),k.jsxs("p",{style:{color:"var(--color-text-dim)",fontSize:"13px",opacity:.5,textAlign:"center",lineHeight:1.6,maxWidth:"220px"},children:["通过对话面板",k.jsx("br",{}),"打开一个项目开始编辑"]})]}),k.jsx($C,{activeTab:n,onTabChange:l,changeCount:f.length})]}),k.jsx(gL,{sessionId:e,fileContext:m,chatHandlerRef:E,sendMessage:O})]})}function wL(){const[e,t]=$.useState(null),[r,n]=$.useState([]),[l,c]=$.useState(null),u=$.useRef(SL()),d=$.useCallback(async()=>{try{const m=await fetch(`${Fs}/api/windows?userId=${u.current}`);if(m.ok){const y=await m.json();n(y)}}catch{}},[]);$.useEffect(()=>{(async()=>{try{const y=await(await fetch(`${Fs}/api/sessions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:u.current})})).json();if(y.error)throw new Error(y.error);t(y.id),d()}catch(m){c(m.message)}})()},[d]);const _=$.useCallback(m=>{t(m)},[]),f=$.useCallback(async()=>{try{const y=await(await fetch(`${Fs}/api/windows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:u.current})})).json();if(y.error)return;t(y.id),d()}catch{}},[d]),v=$.useCallback(async m=>{try{if(!(await fetch(`${Fs}/api/windows/${m}`,{method:"DELETE"})).ok)return;if(m===e){const S=r.filter(E=>E.id!==m),b=S.find(E=>E.isDefault)||S[0];b&&t(b.id)}d()}catch{}},[e,r,d]);return l?k.jsx("div",{className:"app",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsxs("p",{style:{color:"var(--red)",fontSize:"14px"},children:["连接失败: ",l]})}):e?k.jsxs("div",{className:"app-root",children:[r.map(m=>k.jsx(bL,{sessionId:m.id,visible:m.id===e,onWindowsChanged:d},m.id)),k.jsx(yL,{windows:r,activeWindowId:e,onSwitch:_,onCreate:f,onDelete:v})]}):k.jsx("div",{className:"app",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"14px"},children:"连接服务器中…"})})}LC.createRoot(document.getElementById("root")).render(k.jsx($.StrictMode,{children:k.jsx(wL,{})}));
|
|
238
|
+
*/var oL=2,cL=1,uL=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){var m;if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:((m=this._terminal.options.overviewRuler)==null?void 0:m.width)||14,r=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(r.getPropertyValue("height")),l=Math.max(0,parseInt(r.getPropertyValue("width"))),c=window.getComputedStyle(this._terminal.element),u={top:parseInt(c.getPropertyValue("padding-top")),bottom:parseInt(c.getPropertyValue("padding-bottom")),right:parseInt(c.getPropertyValue("padding-right")),left:parseInt(c.getPropertyValue("padding-left"))},d=u.top+u.bottom,_=u.right+u.left,f=n-d,v=l-_-t;return{cols:Math.max(oL,Math.floor(v/e.css.cell.width)),rows:Math.max(cL,Math.floor(f/e.css.cell.height))}}};function hL({sessionId:e}){const t=$.useRef(null),r=$.useRef(null),n=$.useRef(null),[l,c]=$.useState(null);return $.useEffect(()=>{if(!t.current)return;const u=new lL({fontSize:11,fontFamily:"'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace",fontWeight:"400",letterSpacing:0,lineHeight:1.25,theme:{background:"#1e1e1e",foreground:"#e0e0e0",cursor:"rgba(255, 255, 255, 0.25)",cursorAccent:"transparent",selectionBackground:"rgba(255, 255, 255, 0.15)",selectionForeground:"#ffffff",black:"#1e1e1e",red:"#f47067",green:"#8ddb8c",yellow:"#e0af68",blue:"#6cb6ff",magenta:"#dcbdfb",cyan:"#76e3ea",white:"#e0e0e0",brightBlack:"#6e7681",brightRed:"#ff938a",brightGreen:"#a8e4a0",brightYellow:"#f0d399",brightBlue:"#96d0ff",brightMagenta:"#eedcff",brightCyan:"#a5f0f5",brightWhite:"#ffffff"},cursorBlink:!1,cursorInactiveStyle:"none",disableStdin:!0,scrollback:5e3,allowProposedApi:!0}),d=new uL;u.loadAddon(d),u.open(t.current),d.fit(),r.current=u,n.current=d;let _=null,f=null,v=!1,m=1e3;function y(){(_==null?void 0:_.readyState)===WebSocket.OPEN&&_.send(JSON.stringify({type:"terminal.resize",cols:u.cols,rows:u.rows}))}function S(){if(v)return;const E=location.protocol==="https:"?"wss:":"ws:";_=new WebSocket(`${E}//${location.host}/terminal?sessionId=${e}`),_.onopen=()=>{m=1e3,y()},_.onmessage=T=>{try{const O=JSON.parse(T.data);O.type==="terminal.output"?u.write(O.data):O.type==="terminal.ready"?(c(!0),y()):(O.type==="terminal.none"||O.type==="terminal.exited")&&c(!1)}catch{}},_.onclose=()=>{_=null,!v&&(f=setTimeout(()=>{f=null,m=Math.min(m*1.5,1e4),S()},m))},_.onerror=()=>{}}S();const b=new ResizeObserver(()=>{d.fit(),y()});return b.observe(t.current),()=>{v=!0,f&&clearTimeout(f),b.disconnect(),_&&_.close(),u.dispose(),r.current=null,n.current=null}},[e]),k.jsxs("div",{className:"terminal-tab",children:[k.jsx("div",{ref:t,className:"terminal-xterm",style:{display:l?"block":"none"}}),l===!1&&k.jsxs("div",{className:"terminal-empty",children:[k.jsx(M0,{size:36}),k.jsx("p",{children:"终端未启动"})]})]})}function dL({activeTab:e,topLevel:t,changes:r,directory:n,sessionId:l,previewPort:c,requestLs:u,requestFile:d,requestDiff:_,onFileContext:f}){const[v,m]=$.useState(!1);return $.useEffect(()=>{e==="terminal"&&m(!0)},[e]),k.jsxs("div",{className:"main-view",children:[k.jsx("div",{className:"main-path-bar",children:k.jsx("span",{className:"main-path-text",children:n})}),k.jsxs("div",{className:"main-tab-area",children:[k.jsx("div",{className:"main-tab-panel",style:{display:e==="files"?"flex":"none"},children:k.jsx(Yk,{topLevel:t,requestLs:u,requestFile:d,onFileContext:f})}),k.jsx("div",{className:"main-tab-panel",style:{display:e==="changes"?"flex":"none"},children:k.jsx(Zk,{changes:r,requestFile:d,requestDiff:_,onFileContext:f})}),k.jsx("div",{className:"main-tab-panel",style:{display:e==="terminal"?"flex":"none"},children:v&&k.jsx(hL,{sessionId:l})}),k.jsx("div",{className:"main-tab-panel",style:{display:e==="preview"?"flex":"none"},children:k.jsx(Qk,{previewPort:c})}),e!=="files"&&e!=="changes"&&e!=="terminal"&&e!=="preview"&&k.jsx("iframe",{className:"main-view-iframe",src:e,title:"Agent View"})]})]})}function x0(e){return e==null?"":e>=1e3?(e/1e3).toFixed(1)+"s":e+"ms"}function Sc(e){if(e==null)return"";if(typeof e=="string")return e.replace(/\s+/g," ").trim();try{return JSON.stringify(e).replace(/\s+/g," ").trim()}catch{return String(e).replace(/\s+/g," ").trim()}}function bc(e){const t=e.trim().replaceAll("\\","/").replace(/\/+/g,"/");if(!t)return"";const r=t.length>1&&t.endsWith("/"),n=t.split("/").filter(Boolean);if(n.length===0)return t;if(n.length===1)return r?`${n[0]}/`:n[0];const l=n[n.length-1];return r?`${l}/`:l}function us(e,t){if(!e)return"";for(const r of t){const n=e[r];if(typeof n=="string"&&n.trim())return n.trim()}return""}function fL(e){if(!e)return"";const t=e.split(/\r?\n/),r=[];for(const l of t){const c=l.match(/^\*\*\* (?:Add|Delete|Update) File: (.+)$/);if(c){r.push(c[1].trim());continue}const u=l.match(/^\*\*\* Move to: (.+)$/);if(u&&r.length>0){r[r.length-1]=u[1].trim();continue}const d=l.match(/^[AMD] (.+)$/);d&&r.push(d[1].trim())}if(r.length===0)return Sc(e);const n=bc(r[0]);return r.length===1?n:`${n} +${r.length-1}`}function _L(e){var t,r,n,l,c;if(e.status==="error")return e.error||"error";switch(e.name){case"apply_patch":return fL(e.title||us(e.args,["patchText"]));case"write":case"edit":case"multiedit":case"read":{const u=bc(e.title||us(e.args,["filePath","path"])),d=Number((t=e.args)==null?void 0:t.offset)||0,_=Number((r=e.args)==null?void 0:r.limit)||0;if(d||_){const f=_?d+_:"…";return`${u} L${d+1}–${f}`}return u}case"ls":case"glob":return bc(e.title||us(e.args,["filePath","path"]));case"set_working_directory":{const u=((n=e.title)==null?void 0:n.replace(/^Set directory:\s*/,""))||"";return bc(u||us(e.args,["directory"]))}case"codesearch":return(((l=e.title)==null?void 0:l.replace(/^Code search:\s*/,""))||us(e.args,["query"])).trim();case"websearch":return(((c=e.title)==null?void 0:c.replace(/^Web search:\s*/,""))||us(e.args,["query"])).trim();case"grep":return us(e.args,["pattern","query","include"]);case"bash":return us(e.args,["command","description"])||Sc(e.title);default:return Sc(e.title)||Sc(e.args)}}const A0=768,Kb="anycode-conv-pos",Xb="anycode-conv-size";function pL(){try{const e=JSON.parse(localStorage.getItem(Kb)||"null"),t=JSON.parse(localStorage.getItem(Xb)||"null");return{pos:e&&typeof e.x=="number"?e:{x:0,y:0},size:t&&typeof t.w=="number"?t:{w:220,h:280}}}catch{return{pos:{x:0,y:0},size:{w:220,h:280}}}}function mL(){const[e,t]=$.useState(()=>window.innerWidth>A0);return $.useEffect(()=>{const r=window.matchMedia(`(min-width: ${A0+1}px)`),n=l=>t(l.matches);return r.addEventListener("change",n),()=>r.removeEventListener("change",n)},[]),e}function gL({sessionId:e,fileContext:t,chatHandlerRef:r,sendMessage:n}){const l=mL(),[c,u]=$.useState([]),[d,_]=$.useState(""),[f,v]=$.useState(!1),[m,y]=$.useState(!1),[S,b]=$.useState(!1),E=$.useRef(pL()),[T,O]=$.useState(E.current.pos),[H,B]=$.useState(E.current.size);$.useEffect(()=>{l||localStorage.setItem(Kb,JSON.stringify(T))},[T,l]),$.useEffect(()=>{l||localStorage.setItem(Xb,JSON.stringify(H))},[H,l]);const I=$.useRef(null),j=$.useRef(null),Y=$.useRef(0),[te,ge]=$.useState(0),ve=$.useRef(null),fe=$.useRef(new Map);$.useEffect(()=>{e&&(u([]),b(!1),fe.current.clear(),(async()=>{try{const ne=await fetch(`/api/messages?sessionId=${encodeURIComponent(e)}`);if(!ne.ok)return;const ce=await ne.json();if(!Array.isArray(ce)||ce.length===0)return;const Se=[];for(const Ee of ce)if(Ee.role==="user")Se.push({role:"user",text:Ee.text||""});else{const Ae=[];if(Array.isArray(Ee.parts))for(const Ge of Ee.parts)Ge.type==="text"?Ae.push({kind:"text",content:Ge.content||""}):Ge.type==="tool"?Ae.push({kind:"tool",id:"",name:Ge.tool||"",status:"done",title:Ge.content||""}):Ge.type==="thinking"&&Ae.push({kind:"thinking",content:Ge.content||""});Ae.length>0&&Se.push({role:"assistant",parts:Ae})}Se.length>0&&u(Se)}catch{}})())},[e]),$.useEffect(()=>{var ne;(ne=ve.current)==null||ne.scrollTo(0,ve.current.scrollHeight)},[c]),$.useEffect(()=>{if(!f){ge(0);return}const ne=setInterval(()=>ge(Math.floor((Date.now()-Y.current)/1e3)),100);return()=>clearInterval(ne)},[f]);const he=$.useCallback(ne=>{u(ce=>{const Se=ce[ce.length-1];return Se&&Se.role==="assistant"?[...ce.slice(0,-1),{...Se,parts:[...Se.parts,ne]}]:[...ce,{role:"assistant",parts:[ne]}]})},[]),J=$.useCallback((ne,ce)=>{u(Se=>{const Ee=Se[Se.length-1];if(!Ee||Ee.role!=="assistant")return Se;const Ae=[...Ee.parts];for(let Ge=Ae.length-1;Ge>=0;Ge--)if(Ae[Ge].kind===ne){Ae[Ge]=ce(Ae[Ge]);break}return[...Se.slice(0,-1),{...Ee,parts:Ae}]})},[]),q=$.useCallback((ne,ce)=>{u(Se=>{var Ol;const Ee=Se[Se.length-1];if(!Ee||Ee.role!=="assistant")return Se;const Ae=[...Ee.parts],Ge=fe.current.get(ne);return Ge!=null&&((Ol=Ae[Ge])==null?void 0:Ol.kind)==="tool"&&(Ae[Ge]=ce(Ae[Ge])),[...Se.slice(0,-1),{...Ee,parts:Ae}]})},[]),re=$.useCallback(ne=>{switch(ne.type){case"thinking.start":he({kind:"thinking",content:""});break;case"thinking.delta":J("thinking",ce=>({...ce,content:ce.content+(ne.thinkingContent||"")}));break;case"thinking.end":J("thinking",ce=>({...ce,duration:ne.thinkingDuration}));break;case"text.delta":u(ce=>{const Se=ce[ce.length-1];if(Se&&Se.role==="assistant"){const Ee=[...Se.parts],Ae=Ee[Ee.length-1];return(Ae==null?void 0:Ae.kind)==="text"?Ee[Ee.length-1]={...Ae,content:Ae.content+(ne.content||"")}:Ee.push({kind:"text",content:ne.content||""}),[...ce.slice(0,-1),{...Se,parts:Ee}]}return[...ce,{role:"assistant",parts:[{kind:"text",content:ne.content||""}]}]});break;case"tool.start":{const ce=ne.toolCallId||"";if(ce&&fe.current.has(ce))q(ce,Se=>({...Se,...ne.toolTitle!=null?{title:ne.toolTitle}:{}}));else{const Se={kind:"tool",id:ce,name:ne.toolName||"",args:ne.toolArgs,title:ne.toolTitle,status:"running"};u(Ee=>{const Ae=Ee[Ee.length-1];if(Ae&&Ae.role==="assistant"){const Ge=[...Ae.parts,Se];return ce&&fe.current.set(ce,Ge.length-1),[...Ee.slice(0,-1),{...Ae,parts:Ge}]}return ce&&fe.current.set(ce,0),[...Ee,{role:"assistant",parts:[Se]}]})}break}case"tool.done":ne.toolCallId&&q(ne.toolCallId,ce=>({...ce,status:"done",duration:ne.toolDuration,title:ne.toolTitle}));break;case"tool.error":ne.toolCallId&&q(ne.toolCallId,ce=>({...ce,status:"error",duration:ne.toolDuration,error:ne.error}));break;case"message.done":break;case"error":he({kind:"error",message:ne.error||"unknown error"});break;case"done":b(!1);break}},[he,J,q]);$.useEffect(()=>{if(r)return r.current=ne=>{switch(ne.type){case"chat.userMessage":fe.current.clear(),u(ce=>[...ce,{role:"user",text:ne.text},{role:"assistant",parts:[]}]),b(!0);break;case"chat.event":ne.event&&re(ne.event);break;case"chat.done":b(!1);break}},()=>{r.current=void 0}},[re,r]);const se=$.useCallback(()=>{const ne=d.trim();if(!ne||S)return;_(""),b(!0);const ce={type:"chat.send",message:ne};t&&(ce.fileContext=t),n(ce)},[d,S,t,n]),D=$.useCallback(()=>{n({type:"chat.stop"})},[n]),F=ne=>{ne.key==="Enter"&&!ne.shiftKey&&!ne.nativeEvent.isComposing&&(ne.preventDefault(),se())},W=()=>{v(!0),Y.current=Date.now()},ie=()=>{v(!1),Date.now()-Y.current<300},oe=ne=>{ne.preventDefault(),W();const ce=()=>{ie(),window.removeEventListener("mouseup",ce)};window.addEventListener("mouseup",ce)},x=ne=>{ne.preventDefault(),W();const ce=()=>{ie(),window.removeEventListener("touchend",ce)};window.addEventListener("touchend",ce)},M=$.useCallback((ne,ce)=>{I.current={startX:ne,startY:ce,origX:T.x,origY:T.y}},[T]),X=$.useCallback((ne,ce)=>{I.current&&O({x:I.current.origX+ne-I.current.startX,y:I.current.origY+ce-I.current.startY})},[]),ee=$.useCallback(()=>{I.current=null},[]),ue=ne=>{ne.preventDefault(),M(ne.clientX,ne.clientY);const ce=Ee=>X(Ee.clientX,Ee.clientY),Se=()=>{ee(),window.removeEventListener("mousemove",ce),window.removeEventListener("mouseup",Se)};window.addEventListener("mousemove",ce),window.addEventListener("mouseup",Se)},pe=ne=>{const ce=ne.touches[0];M(ce.clientX,ce.clientY);const Se=Ae=>{Ae.preventDefault(),X(Ae.touches[0].clientX,Ae.touches[0].clientY)},Ee=()=>{ee(),window.removeEventListener("touchmove",Se),window.removeEventListener("touchend",Ee)};window.addEventListener("touchmove",Se,{passive:!1}),window.addEventListener("touchend",Ee)},we=$.useRef("bl"),Fe=$.useCallback((ne,ce,Se)=>{we.current=Se,j.current={startX:ne,startY:ce,origW:H.w,origH:H.h}},[H]),ze=$.useCallback((ne,ce)=>{if(!j.current)return;const Se=ne-j.current.startX,Ee=ce-j.current.startY,Ae=we.current==="bl"?-Se:Se;B({w:Math.max(180,Math.min(600,j.current.origW+Ae)),h:Math.max(200,Math.min(800,j.current.origH+Ee))})},[]),Ft=$.useCallback(()=>{j.current=null},[]),$e=ne=>ce=>{ce.preventDefault(),ce.stopPropagation(),Fe(ce.clientX,ce.clientY,ne);const Se=Ae=>ze(Ae.clientX,Ae.clientY),Ee=()=>{Ft(),window.removeEventListener("mousemove",Se),window.removeEventListener("mouseup",Ee)};window.addEventListener("mousemove",Se),window.addEventListener("mouseup",Ee)},at=ne=>ce=>{ce.stopPropagation();const Se=ce.touches[0];Fe(Se.clientX,Se.clientY,ne);const Ee=Ge=>{Ge.preventDefault(),ze(Ge.touches[0].clientX,Ge.touches[0].clientY)},Ae=()=>{Ft(),window.removeEventListener("touchmove",Ee),window.removeEventListener("touchend",Ae)};window.addEventListener("touchmove",Ee,{passive:!1}),window.addEventListener("touchend",Ae)},Le=(ne,ce)=>{switch(ne.kind){case"thinking":return k.jsxs("details",{className:"co-thinking",children:[k.jsxs("summary",{children:["💭 Thinking ",k.jsx("span",{className:"co-thinking-dur",children:x0(ne.duration)||"…"})]}),k.jsx("div",{className:"co-thinking-content",children:ne.content})]},ce);case"tool":const Se=_L(ne);return k.jsxs("div",{className:`co-tool ${ne.status}`,title:Se,children:[k.jsx("span",{className:"co-tool-icon",children:ne.status==="running"?"⏳":ne.status==="done"?"✓":"✗"}),k.jsx("span",{className:"co-tool-name",children:ne.name}),k.jsx("span",{className:"co-tool-info",children:Se}),ne.duration!=null&&k.jsx("span",{className:"co-tool-dur",children:x0(ne.duration)})]},ce);case"text":return k.jsx("div",{className:"co-text",children:ne.content},ce);case"error":return k.jsxs("div",{className:"co-error",children:["⚠ ",ne.message]},ce)}},di=l?"conversation-panel conversation-sidebar":"conversation-panel conversation-floating",sa=l?void 0:{transform:`translate(${T.x}px, ${T.y}px)`,width:H.w,height:H.h};return k.jsxs("div",{className:di,style:sa,children:[k.jsxs("div",{className:"conversation-header",...l?{}:{onMouseDown:ue,onTouchStart:pe},children:[!l&&k.jsx("div",{className:"drag-grip"}),k.jsxs("div",{className:"conversation-header-content",children:[k.jsx(jC,{})," 对话"]})]}),k.jsxs("div",{className:"conversation-messages",ref:ve,children:[c.length===0&&k.jsx("div",{className:"co-text",style:{color:"var(--color-text-dim)"},children:"你好!告诉我你想做什么"}),c.map((ne,ce)=>ne.role==="user"?k.jsx("div",{className:"co-user",children:ne.text},ce):k.jsx("div",{className:"co-response",children:ne.parts.map(Le)},ce))]}),t&&k.jsx("div",{className:"co-file-context",children:k.jsxs("span",{className:"co-file-context-text",children:[t.file.split("/").pop()," L",t.lines[0],"–",t.lines[t.lines.length-1]]})}),k.jsx("div",{className:"conversation-input",children:m?k.jsxs(k.Fragment,{children:[k.jsx("input",{type:"text",value:S?"":d,onChange:ne=>_(ne.target.value),onKeyDown:F,placeholder:S?"正在处理中...":"输入消息...",autoFocus:!0,disabled:S}),S?k.jsx("button",{className:"text-send-btn text-stop-btn",onClick:D,children:k.jsx(VC,{size:18})}):k.jsx("button",{className:"text-send-btn",onClick:se,children:k.jsx(PC,{})}),k.jsx("button",{className:"text-close-btn",onClick:()=>y(!1),children:k.jsx(IC,{})})]}):k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"mic-wrapper",children:[f&&k.jsxs("div",{className:"mic-tooltip",children:["录音中 ",te,"s"]}),k.jsx("button",{className:`mic-btn ${f?"recording":""}`,onMouseDown:oe,onTouchStart:x,children:k.jsx(BC,{})})]}),k.jsx("button",{className:"text-toggle-btn",onClick:()=>y(!0),children:k.jsx(zC,{})})]})}),!l&&k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"co-resize-grip co-resize-bl",onMouseDown:$e("bl"),onTouchStart:at("bl")}),k.jsx("div",{className:"co-resize-grip co-resize-br",onMouseDown:$e("br"),onTouchStart:at("br")})]})]})}function vL(e){if(e.directory){const t=e.directory.split("/");return t[t.length-1]||e.directory}return e.isDefault?"默认":"新窗口"}function yL({windows:e,activeWindowId:t,onSwitch:r,onCreate:n,onDelete:l}){const[c,u]=$.useState(null),[d,_]=$.useState(null),f=$.useRef(null),v=$.useRef(new Map);$.useEffect(()=>{if(!c)return;const y=S=>{f.current&&!f.current.contains(S.target)&&u(null)};return document.addEventListener("mousedown",y),document.addEventListener("touchstart",y),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("touchstart",y)}},[c]);const m=$.useCallback(y=>{y.id===t?y.isDefault||u(S=>{if(S===y.id)return null;const b=v.current.get(y.id);if(b){const E=b.getBoundingClientRect();_({x:E.left+E.width/2,y:E.top})}return y.id}):(u(null),r(y.id))},[t,r]);return k.jsxs("nav",{className:"taskbar",ref:f,children:[k.jsx("div",{className:"taskbar-items",children:e.map(y=>k.jsx("button",{ref:S=>{S&&v.current.set(y.id,S)},className:`taskbar-item ${y.id===t?"active":""}`,onClick:()=>m(y),children:k.jsx("span",{className:"taskbar-label",children:vL(y)})},y.id))}),k.jsx("button",{className:"taskbar-add",onClick:n,title:"新建窗口",children:"+"}),c&&d&&k.jsx("div",{className:"taskbar-popover",style:{left:d.x,top:d.y},children:k.jsx("button",{className:"taskbar-popover-btn",onClick:()=>{const y=c;u(null),l(y)},children:"关闭窗口"})})]})}const Fs="";function SL(){const e="anycode-user-id";let t=localStorage.getItem(e);return t||(t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)}),localStorage.setItem(e,t)),t}function bL({sessionId:e,visible:t,onWindowsChanged:r}){const[n,l]=$.useState("files"),[c,u]=$.useState(""),[d,_]=$.useState([]),[f,v]=$.useState([]),[m,y]=$.useState(null),[S,b]=$.useState(null),E=$.useRef(void 0),T=$.useRef(null),O=$.useCallback(j=>{var Y;(Y=T.current)==null||Y.send(j)},[]);$.useEffect(()=>{let j=!1,Y=1e3,te;function ge(){if(j)return;const ve=NC(e);T.current=ve,ve.onopen=()=>{Y=1e3,r()},ve.onmessage=fe=>{var he,J;fe.type==="state"?(fe.directory&&u(fe.directory),_(fe.topLevel||[]),v(fe.changes||[]),fe.previewPort!==void 0&&b(fe.previewPort)):(he=fe.type)!=null&&he.startsWith("chat.")&&((J=E.current)==null||J.call(E,fe))},ve.onclose=()=>{T.current=null,j||(te=setTimeout(()=>{Y=Math.min(Y*1.5,1e4),ge()},Y))}}return ge(),()=>{var ve;j=!0,clearTimeout(te),(ve=T.current)==null||ve.close(),T.current=null}},[e,r]);const H=$.useCallback(async j=>{try{const Y=await fetch(`${Fs}/api/sessions/${e}/ls?path=${encodeURIComponent(j)}`);return Y.ok?(await Y.json()).entries??[]:[]}catch{return[]}},[e]),B=$.useCallback(async j=>{try{const Y=await fetch(`${Fs}/api/sessions/${e}/file?path=${encodeURIComponent(j)}`);return Y.ok?(await Y.json()).content??null:null}catch{return null}},[e]),I=$.useCallback(async j=>{try{const Y=await fetch(`${Fs}/api/sessions/${e}/diff?path=${encodeURIComponent(j)}`);return Y.ok?await Y.json():{added:[],removed:[]}}catch{return{added:[],removed:[]}}},[e]);return k.jsxs("div",{className:"app-content",style:{display:t?"flex":"none"},children:[k.jsxs("div",{className:"app-main",children:[c?k.jsx(dL,{activeTab:n,topLevel:d,changes:f,directory:c,sessionId:e,previewPort:S,requestLs:H,requestFile:B,requestDiff:I,onFileContext:y}):k.jsxs("div",{className:"main-view",style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"16px"},children:[k.jsx("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"var(--color-text-dim)",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:.3},children:k.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),k.jsxs("p",{style:{color:"var(--color-text-dim)",fontSize:"13px",opacity:.5,textAlign:"center",lineHeight:1.6,maxWidth:"220px"},children:["通过对话面板",k.jsx("br",{}),"打开一个项目开始编辑"]})]}),k.jsx($C,{activeTab:n,onTabChange:l,changeCount:f.length})]}),k.jsx(gL,{sessionId:e,fileContext:m,chatHandlerRef:E,sendMessage:O})]})}function wL(){const[e,t]=$.useState(null),[r,n]=$.useState([]),[l,c]=$.useState(null),u=$.useRef(SL()),d=$.useCallback(async()=>{try{const m=await fetch(`${Fs}/api/windows?userId=${u.current}`);if(m.ok){const y=await m.json();n(y)}}catch{}},[]);$.useEffect(()=>{(async()=>{try{const y=await(await fetch(`${Fs}/api/sessions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:u.current})})).json();if(y.error)throw new Error(y.error);t(y.id),d()}catch(m){c(m.message)}})()},[d]);const _=$.useCallback(m=>{t(m)},[]),f=$.useCallback(async()=>{try{const y=await(await fetch(`${Fs}/api/windows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:u.current})})).json();if(y.error)return;t(y.id),d()}catch{}},[d]),v=$.useCallback(async m=>{try{if(!(await fetch(`${Fs}/api/windows/${m}`,{method:"DELETE"})).ok)return;if(m===e){const S=r.filter(E=>E.id!==m),b=S.find(E=>E.isDefault)||S[0];b&&t(b.id)}d()}catch{}},[e,r,d]);return l?k.jsx("div",{className:"app",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsxs("p",{style:{color:"var(--red)",fontSize:"14px"},children:["连接失败: ",l]})}):e?k.jsxs("div",{className:"app-root",children:[r.map(m=>k.jsx(bL,{sessionId:m.id,visible:m.id===e,onWindowsChanged:d},m.id)),k.jsx(yL,{windows:r,activeWindowId:e,onSwitch:_,onCreate:f,onDelete:v})]}):k.jsx("div",{className:"app",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"14px"},children:"连接服务器中…"})})}LC.createRoot(document.getElementById("root")).render(k.jsx($.StrictMode,{children:k.jsx(wL,{})}));
|