var pp=Object.defineProperty;var hp=(d,s,o)=>s in d?pp(d,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[s]=o;var Te=(d,s,o)=>hp(d,typeof s!="symbol"?s+"":s,o);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))a(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const y of p.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&a(y)}).observe(document,{childList:!0,subtree:!0});function o(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function a(f){if(f.ep)return;f.ep=!0;const p=o(f);fetch(f.href,p)}})();function mp(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Qs={exports:{}},Pl={},Gs={exports:{}},oe={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Fc;function gp(){if(Fc)return oe;Fc=1;var d=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.iterator;function M(v){return v===null||typeof v!="object"?null:(v=O&&v[O]||v["@@iterator"],typeof v=="function"?v:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,j={};function b(v,R,Y){this.props=v,this.context=R,this.refs=j,this.updater=Y||D}b.prototype.isReactComponent={},b.prototype.setState=function(v,R){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,R,"setState")},b.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function ce(){}ce.prototype=b.prototype;function ye(v,R,Y){this.props=v,this.context=R,this.refs=j,this.updater=Y||D}var Ce=ye.prototype=new ce;Ce.constructor=ye,G(Ce,b.prototype),Ce.isPureReactComponent=!0;var ee=Array.isArray,fe=Object.prototype.hasOwnProperty,te={current:null},xe={key:!0,ref:!0,__self:!0,__source:!0};function de(v,R,Y){var re,X={},ie=null,ge=null;if(R!=null)for(re in R.ref!==void 0&&(ge=R.ref),R.key!==void 0&&(ie=""+R.key),R)fe.call(R,re)&&!xe.hasOwnProperty(re)&&(X[re]=R[re]);var pe=arguments.length-2;if(pe===1)X.children=Y;else if(1>>1,R=I[v];if(0>>1;vf(X,F))ief(ge,X)?(I[v]=ge,I[ie]=F,v=ie):(I[v]=X,I[re]=F,v=re);else if(ief(ge,F))I[v]=ge,I[ie]=F,v=ie;else break e}}return K}function f(I,K){var F=I.sortIndex-K.sortIndex;return F!==0?F:I.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;d.unstable_now=function(){return p.now()}}else{var y=Date,k=y.now();d.unstable_now=function(){return y.now()-k}}var _=[],T=[],S=1,O=null,M=3,D=!1,G=!1,j=!1,b=typeof setTimeout=="function"?setTimeout:null,ce=typeof clearTimeout=="function"?clearTimeout:null,ye=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ce(I){for(var K=o(T);K!==null;){if(K.callback===null)a(T);else if(K.startTime<=I)a(T),K.sortIndex=K.expirationTime,s(_,K);else break;K=o(T)}}function ee(I){if(j=!1,Ce(I),!G)if(o(_)!==null)G=!0,We(fe);else{var K=o(T);K!==null&&Re(ee,K.startTime-I)}}function fe(I,K){G=!1,j&&(j=!1,ce(de),de=-1),D=!0;var F=M;try{for(Ce(K),O=o(_);O!==null&&(!(O.expirationTime>K)||I&&!ue());){var v=O.callback;if(typeof v=="function"){O.callback=null,M=O.priorityLevel;var R=v(O.expirationTime<=K);K=d.unstable_now(),typeof R=="function"?O.callback=R:O===o(_)&&a(_),Ce(K)}else a(_);O=o(_)}if(O!==null)var Y=!0;else{var re=o(T);re!==null&&Re(ee,re.startTime-K),Y=!1}return Y}finally{O=null,M=F,D=!1}}var te=!1,xe=null,de=-1,wt=5,ne=-1;function ue(){return!(d.unstable_now()-neI||125v?(I.sortIndex=F,s(T,I),o(_)===null&&I===o(T)&&(j?(ce(de),de=-1):j=!0,Re(ee,F-v))):(I.sortIndex=R,s(_,I),G||D||(G=!0,We(fe))),I},d.unstable_shouldYield=ue,d.unstable_wrapCallback=function(I){var K=M;return function(){var F=M;M=K;try{return I.apply(this,arguments)}finally{M=F}}}}(Ks)),Ks}var Wc;function wp(){return Wc||(Wc=1,bs.exports=kp()),bs.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Vc;function xp(){if(Vc)return mt;Vc=1;var d=ou(),s=wp();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_=Object.prototype.hasOwnProperty,T=/^[: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]*$/,S={},O={};function M(e){return _.call(O,e)?!0:_.call(S,e)?!1:T.test(e)?O[e]=!0:(S[e]=!0,!1)}function D(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G(e,t,n,r){if(t===null||typeof t>"u"||D(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function j(e,t,n,r,l,i,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=u}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new j(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new j(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new j(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){b[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new j(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new j(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new j(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)});var ce=/[\-:]([a-z])/g;function ye(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ce,ye);b[t]=new j(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ce,ye);b[t]=new j(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ce,ye);b[t]=new j(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ce(e,t,n,r){var l=b.hasOwnProperty(t)?b[t]:null;(l!==null?l.type!==0:r||!(2c||l[u]!==i[c]){var h=` `+l[u].replace(" at new "," at ");return e.displayName&&h.includes("")&&(h=h.replace("",e.displayName)),h}while(1<=u&&0<=c);break}}}finally{Y=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function X(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function ie(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xe:return"Fragment";case te:return"Portal";case wt:return"Profiler";case de:return"StrictMode";case ve:return"Suspense";case ze:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ue:return(e.displayName||"Context")+".Consumer";case ne:return(e._context.displayName||"Context")+".Provider";case _e:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ut:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case We:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}function ge(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(t);case 8:return t===de?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Se(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xe(e){var t=Se(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vn(e){e._valueTracker||(e._valueTracker=Xe(e))}function qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Se(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zt(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mr(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pe(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gr(e,t){t=t.checked,t!=null&&Ce(e,"checked",t,!1)}function Wt(e,t){gr(e,t);var n=pe(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hn(e,t.type,n):t.hasOwnProperty("defaultValue")&&hn(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function hn(e,t,n){(t!=="number"||pn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mn=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Gn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kr=["Webkit","ms","Moz","O"];Object.keys(yn).forEach(function(e){kr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yn[t]=yn[e]})});function Yn(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yn.hasOwnProperty(e)&&yn[e]?(""+t).trim():t+"px"}function xt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Yn(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var vn=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bn(e,t){if(t){if(vn[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Kn(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yr=null;function kn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wn=null,xn=null,St=null;function Vl(e){if(e=ml(e)){if(typeof wn!="function")throw Error(o(280));var t=e.stateNode;t&&(t=mi(t),wn(e.stateNode,e.type,t))}}function Ql(e){xn?St?St.push(e):St=[e]:xn=e}function je(){if(xn){var e=xn,t=St;if(St=xn=null,Vl(e),t)for(e=0;e>>=0,e===0?32:31-(Lf(e)/Pf|0)|0}var Zl=64,ql=4194304;function Zr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=n&268435455;if(u!==0){var c=u&~l;c!==0?r=Zr(c):(i&=u,i!==0&&(r=Zr(i)))}else u=n&~l,u!==0?r=Zr(u):i!==0&&(r=Zr(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Of(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ol),Au=" ",Mu=!1;function zu(e,t){switch(e){case"keyup":return ud.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ou(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function cd(e,t){switch(e){case"compositionend":return Ou(t);case"keypress":return t.which!==32?null:(Mu=!0,Au);case"textInput":return e=t.data,e===Au&&Mu?null:e;default:return null}}function fd(e,t){if(Tr)return e==="compositionend"||!To&&zu(e,t)?(e=Tu(),li=ko=Nn=null,Tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bu(n)}}function Wu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vu(){for(var e=window,t=pn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pn(e.document)}return t}function No(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wd(e){var t=Vu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wu(n.ownerDocument.documentElement,n)){if(r!==null&&No(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Hu(n,i);var u=Hu(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cr=null,Lo=null,cl=null,Po=!1;function Qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Po||Cr==null||Cr!==pn(r)||(r=Cr,"selectionStart"in r&&No(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cl&&al(cl,r)||(cl=r,r=di(Lo,"onSelect"),0Ar||(e.current=Ho[Ar],Ho[Ar]=null,Ar--)}function Le(e,t){Ar++,Ho[Ar]=e.current,e.current=t}var Mn={},qe=An(Mn),ct=An(!1),tr=Mn;function Mr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ft(e){return e=e.childContextTypes,e!=null}function gi(){Ae(ct),Ae(qe)}function oa(e,t,n){if(qe.current!==Mn)throw Error(o(168));Le(qe,t),Le(ct,n)}function sa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(o(108,ge(e)||"Unknown",l));return F({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,tr=qe.current,Le(qe,e),Le(ct,ct.current),!0}function ua(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=sa(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,Ae(ct),Ae(qe),Le(qe,e)):Ae(ct),Le(ct,n)}var on=null,vi=!1,Wo=!1;function aa(e){on===null?on=[e]:on.push(e)}function Md(e){vi=!0,aa(e)}function zn(){if(!Wo&&on!==null){Wo=!0;var e=0,t=ke;try{var n=on;for(ke=1;e>=u,l-=u,sn=1<<32-It(t)+l|n<J?(Ye=q,q=null):Ye=q.sibling;var he=N(w,q,x[J],z);if(he===null){q===null&&(q=Ye);break}e&&q&&he.alternate===null&&t(w,q),g=i(he,g,J),Z===null?V=he:Z.sibling=he,Z=he,q=Ye}if(J===x.length)return n(w,q),Me&&rr(w,J),V;if(q===null){for(;JJ?(Ye=q,q=null):Ye=q.sibling;var Hn=N(w,q,he.value,z);if(Hn===null){q===null&&(q=Ye);break}e&&q&&Hn.alternate===null&&t(w,q),g=i(Hn,g,J),Z===null?V=Hn:Z.sibling=Hn,Z=Hn,q=Ye}if(he.done)return n(w,q),Me&&rr(w,J),V;if(q===null){for(;!he.done;J++,he=x.next())he=P(w,he.value,z),he!==null&&(g=i(he,g,J),Z===null?V=he:Z.sibling=he,Z=he);return Me&&rr(w,J),V}for(q=r(w,q);!he.done;J++,he=x.next())he=U(q,w,J,he.value,z),he!==null&&(e&&he.alternate!==null&&q.delete(he.key===null?J:he.key),g=i(he,g,J),Z===null?V=he:Z.sibling=he,Z=he);return e&&q.forEach(function(dp){return t(w,dp)}),Me&&rr(w,J),V}function Fe(w,g,x,z){if(typeof x=="object"&&x!==null&&x.type===xe&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fe:e:{for(var V=x.key,Z=g;Z!==null;){if(Z.key===V){if(V=x.type,V===xe){if(Z.tag===7){n(w,Z.sibling),g=l(Z,x.props.children),g.return=w,w=g;break e}}else if(Z.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===We&&ma(V)===Z.type){n(w,Z.sibling),g=l(Z,x.props),g.ref=gl(w,Z,x),g.return=w,w=g;break e}n(w,Z);break}else t(w,Z);Z=Z.sibling}x.type===xe?(g=fr(x.props.children,w.mode,z,x.key),g.return=w,w=g):(z=Gi(x.type,x.key,x.props,null,w.mode,z),z.ref=gl(w,g,x),z.return=w,w=z)}return u(w);case te:e:{for(Z=x.key;g!==null;){if(g.key===Z)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(w,g.sibling),g=l(g,x.children||[]),g.return=w,w=g;break e}else{n(w,g);break}else t(w,g);g=g.sibling}g=$s(x,w.mode,z),g.return=w,w=g}return u(w);case We:return Z=x._init,Fe(w,g,Z(x._payload),z)}if(mn(x))return B(w,g,x,z);if(K(x))return W(w,g,x,z);Si(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(w,g.sibling),g=l(g,x),g.return=w,w=g):(n(w,g),g=Us(x,w.mode,z),g.return=w,w=g),u(w)):n(w,g)}return Fe}var Dr=ga(!0),ya=ga(!1),Ei=An(null),_i=null,jr=null,Ko=null;function Xo(){Ko=jr=_i=null}function Zo(e){var t=Ei.current;Ae(Ei),e._currentValue=t}function qo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fr(e,t){_i=e,Ko=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(dt=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Ko!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(_i===null)throw Error(o(308));jr=e,_i.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var lr=null;function Jo(e){lr===null?lr=[e]:lr.push(e)}function va(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,an(e,r)}function an(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function es(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ae&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,an(e,n)}return l=r.interleaved,l===null?(t.next=t,Jo(r)):(t.next=l.next,l.next=t),r.interleaved=t,an(e,n)}function Ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ho(e,n)}}function wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ci(e,t,n,r){var l=e.updateQueue;On=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var h=c,E=h.next;h.next=null,u===null?i=E:u.next=E,u=h;var L=e.alternate;L!==null&&(L=L.updateQueue,c=L.lastBaseUpdate,c!==u&&(c===null?L.firstBaseUpdate=E:c.next=E,L.lastBaseUpdate=h))}if(i!==null){var P=l.baseState;u=0,L=E=h=null,c=i;do{var N=c.lane,U=c.eventTime;if((r&N)===N){L!==null&&(L=L.next={eventTime:U,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var B=e,W=c;switch(N=t,U=n,W.tag){case 1:if(B=W.payload,typeof B=="function"){P=B.call(U,P,N);break e}P=B;break e;case 3:B.flags=B.flags&-65537|128;case 0:if(B=W.payload,N=typeof B=="function"?B.call(U,P,N):B,N==null)break e;P=F({},P,N);break e;case 2:On=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,N=l.effects,N===null?l.effects=[c]:N.push(c))}else U={eventTime:U,lane:N,tag:c.tag,payload:c.payload,callback:c.callback,next:null},L===null?(E=L=U,h=P):L=L.next=U,u|=N;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;N=c,c=N.next,N.next=null,l.lastBaseUpdate=N,l.shared.pending=null}}while(!0);if(L===null&&(h=P),l.baseState=h,l.firstBaseUpdate=E,l.lastBaseUpdate=L,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);sr|=u,e.lanes=u,e.memoizedState=P}}function xa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{ke=n,is.transition=r}}function $a(){return Rt().memoizedState}function Dd(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ba(e))Ha(t,n);else if(n=va(e,t,n,r),n!==null){var l=rt();Bt(n,e,r,l),Wa(n,t,r)}}function jd(e,t,n){var r=Un(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ba(e))Ha(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,n);if(l.hasEagerState=!0,l.eagerState=c,Dt(c,u)){var h=t.interleaved;h===null?(l.next=l,Jo(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=va(e,t,l,r),n!==null&&(l=rt(),Bt(n,e,r,l),Wa(n,t,r))}}function Ba(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function Ha(e,t){wl=Li=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wa(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ho(e,n)}}var Mi={readContext:Ct,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},Fd={readContext:Ct,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4194308,4,Ia.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pi(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dd.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Pa,useDebugValue:ds,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Id.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,l=Kt();if(Me){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ge===null)throw Error(o(349));(or&30)!==0||Ta(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Ma(Ra.bind(null,r,i,e),[e]),r.flags|=2048,El(9,Ca.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Ge.identifierPrefix;if(Me){var n=un,r=sn;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Yt]=t,e[hl]=r,ac(e,t,!1,!1),t.stateNode=e;e:{switch(u=Kn(n,r),n){case"dialog":Pe("cancel",e),Pe("close",e),l=r;break;case"iframe":case"object":case"embed":Pe("load",e),l=r;break;case"video":case"audio":for(l=0;lWr&&(t.flags|=128,r=!0,_l(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ri(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_l(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Me)return et(t),null}else 2*le()-i.renderingStartTime>Wr&&n!==1073741824&&(t.flags|=128,r=!0,_l(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(n=i.last,n!==null?n.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=Oe.current,Le(Oe,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Ds(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(kt&1073741824)!==0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Gd(e,t){switch(Qo(t),t.tag){case 1:return ft(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ur(),Ae(ct),Ae(qe),ls(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ns(t),null;case 13:if(Ae(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Oe),null;case 4:return Ur(),null;case 10:return Zo(t.type._context),null;case 22:case 23:return Ds(),null;case 24:return null;default:return null}}var Di=!1,tt=!1,Yd=typeof WeakSet=="function"?WeakSet:Set,$=null;function Br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function _s(e,t,n){try{n()}catch(r){De(e,t,r)}}var dc=!1;function bd(e,t){if(Do=ni,e=Vu(),No(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var u=0,c=-1,h=-1,E=0,L=0,P=e,N=null;t:for(;;){for(var U;P!==n||l!==0&&P.nodeType!==3||(c=u+l),P!==i||r!==0&&P.nodeType!==3||(h=u+r),P.nodeType===3&&(u+=P.nodeValue.length),(U=P.firstChild)!==null;)N=P,P=U;for(;;){if(P===e)break t;if(N===n&&++E===l&&(c=u),N===i&&++L===r&&(h=u),(U=P.nextSibling)!==null)break;P=N,N=P.parentNode}P=U}n=c===-1||h===-1?null:{start:c,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(jo={focusedElem:e,selectionRange:n},ni=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var B=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var W=B.memoizedProps,Fe=B.memoizedState,w=t.stateNode,g=w.getSnapshotBeforeUpdate(t.elementType===t.type?W:Ft(t.type,W),Fe);w.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(z){De(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return B=dc,dc=!1,B}function Tl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&_s(t,n,i)}l=l.next}while(l!==r)}}function ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ts(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[hl],delete t[Bo],delete t[Pd],delete t[Ad])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hc(e){return e.tag===5||e.tag===3||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hi));else if(r!==4&&(e=e.child,e!==null))for(Cs(e,t,n),e=e.sibling;e!==null;)Cs(e,t,n),e=e.sibling}function Rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}var be=null,Ut=!1;function Dn(e,t,n){for(n=n.child;n!==null;)gc(e,t,n),n=n.sibling}function gc(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 5:tt||Br(n,t);case 6:var r=be,l=Ut;be=null,Dn(e,t,n),be=r,Ut=l,be!==null&&(Ut?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(Ut?(e=be,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),rl(e)):$o(be,n.stateNode));break;case 4:r=be,l=Ut,be=n.stateNode.containerInfo,Ut=!0,Dn(e,t,n),be=r,Ut=l;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&((i&2)!==0||(i&4)!==0)&&_s(n,t,u),l=l.next}while(l!==r)}Dn(e,t,n);break;case 1:if(!tt&&(Br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){De(n,t,c)}Dn(e,t,n);break;case 21:Dn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Dn(e,t,n),tt=r):Dn(e,t,n);break;default:Dn(e,t,n)}}function yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yd),t.forEach(function(r){var l=rp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xd(r/1960))-r,10e?16:e,Fn===null)var r=!1;else{if(e=Fn,Fn=null,Hi=0,(ae&6)!==0)throw Error(o(331));var l=ae;for(ae|=4,$=e.current;$!==null;){var i=$,u=i.child;if(($.flags&16)!==0){var c=i.deletions;if(c!==null){for(var h=0;hle()-Ps?ar(e,0):Ls|=n),ht(e,t)}function Pc(e,t){t===0&&((e.mode&1)===0?t=1:(t=ql,ql<<=1,(ql&130023424)===0&&(ql=4194304)));var n=rt();e=an(e,t),e!==null&&(qr(e,t,n),ht(e,n))}function np(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pc(e,n)}function rp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Pc(e,n)}var Ac;Ac=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return dt=!1,Vd(e,t,n);dt=(e.flags&131072)!==0}else dt=!1,Me&&(t.flags&1048576)!==0&&ca(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ii(e,t),e=t.pendingProps;var l=Mr(t,qe.current);Fr(t,n),l=ss(null,t,r,e,l,n);var i=us();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,yi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,es(t),l.updater=zi,t.stateNode=l,l._reactInternals=t,hs(t,r,e,n),t=vs(null,t,r,!0,i,n)):(t.tag=0,Me&&i&&Vo(t),nt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ip(r),e=Ft(r,e),l){case 0:t=ys(null,t,r,e,n);break e;case 1:t=rc(null,t,r,e,n);break e;case 11:t=qa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ft(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),ys(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),rc(e,t,r,l,n);case 3:e:{if(lc(t),e===null)throw Error(o(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ka(e,t),Ci(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=$r(Error(o(423)),t),t=ic(e,t,r,n,l);break e}else if(r!==l){l=$r(Error(o(424)),t),t=ic(e,t,r,n,l);break e}else for(vt=Pn(t.stateNode.containerInfo.firstChild),yt=t,Me=!0,jt=null,n=ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ir(),r===l){t=fn(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return Sa(t),e===null&&Yo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,Fo(r,l)?u=null:i!==null&&Fo(r,i)&&(t.flags|=32),nc(e,t),nt(e,t,u,n),t.child;case 6:return e===null&&Yo(t),null;case 13:return oc(e,t,n);case 4:return ts(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dr(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),qa(e,t,r,l,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,u=l.value,Le(Ei,r._currentValue),r._currentValue=u,i!==null)if(Dt(i.value,u)){if(i.children===l.children&&!ct.current){t=fn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){u=i.child;for(var h=c.firstContext;h!==null;){if(h.context===r){if(i.tag===1){h=cn(-1,n&-n),h.tag=2;var E=i.updateQueue;if(E!==null){E=E.shared;var L=E.pending;L===null?h.next=h:(h.next=L.next,L.next=h),E.pending=h}}i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),qo(i.return,n,t),c.lanes|=n;break}h=h.next}}else if(i.tag===10)u=i.type===t.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(o(341));u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),qo(u,n,t),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}nt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Fr(t,n),l=Ct(l),r=r(l),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,l=Ft(r,t.pendingProps),l=Ft(r.type,l),Ja(e,t,r,l,n);case 15:return ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Ii(e,t),t.tag=1,ft(r)?(e=!0,yi(t)):e=!1,Fr(t,n),Qa(t,r,l),hs(t,r,l,n),vs(null,t,r,!0,e,n);case 19:return uc(e,t,n);case 22:return tc(e,t,n)}throw Error(o(156,t.tag))};function Mc(e,t){return A(e,t)}function lp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,n,r){return new lp(e,t,n,r)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ip(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_e)return 11;if(e===ut)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gi(e,t,n,r,l,i){var u=2;if(r=e,typeof e=="function")Fs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case xe:return fr(n.children,l,i,t);case de:u=8,l|=8;break;case wt:return e=Lt(12,n,t,l|2),e.elementType=wt,e.lanes=i,e;case ve:return e=Lt(13,n,t,l),e.elementType=ve,e.lanes=i,e;case ze:return e=Lt(19,n,t,l),e.elementType=ze,e.lanes=i,e;case Re:return Yi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:u=10;break e;case ue:u=9;break e;case _e:u=11;break e;case ut:u=14;break e;case We:u=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Lt(u,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function fr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function Yi(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=Re,e.lanes=n,e.stateNode={isHidden:!1},e}function Us(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function $s(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function op(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=po(0),this.expirationTimes=po(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,l,i,u,c,h){return e=new op(e,t,n,c,h),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},es(i),e}function sp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(s){console.error(s)}}return d(),Ys.exports=xp(),Ys.exports}var Gc;function Ep(){if(Gc)return eo;Gc=1;var d=Sp();return eo.createRoot=d.createRoot,eo.hydrateRoot=d.hydrateRoot,eo}var _p=Ep();function su(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let hr=su();function hf(d){hr=d}const Bl={exec:()=>null};function Ee(d,s=""){let o=typeof d=="string"?d:d.source;const a={replace:(f,p)=>{let y=typeof p=="string"?p:p.source;return y=y.replace(it.caret,"$1"),o=o.replace(f,y),a},getRegex:()=>new RegExp(o,s)};return a}const it={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:d=>new RegExp(`^( {0,3}${d})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}#`),htmlBeginRegex:d=>new RegExp(`^ {0,${Math.min(3,d-1)}}<(?:[a-z].*>|!--)`,"i")},Tp=/^(?:[ \t]*(?:\n|$))+/,Cp=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rp=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Np=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mf=/(?:[*+-]|\d{1,9}[.)])/,gf=Ee(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,mf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),uu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Lp=/^[^\n]+/,au=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Pp=Ee(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",au).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ap=Ee(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,mf).getRegex(),uo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cu=/|$))/,Mp=Ee("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",cu).replace("tag",uo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),yf=Ee(uu).replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),zp=Ee(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",yf).getRegex(),fu={blockquote:zp,code:Cp,def:Pp,fences:Rp,heading:Np,hr:Wl,html:Mp,lheading:gf,list:Ap,newline:Tp,paragraph:yf,table:Bl,text:Lp},Yc=Ee("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),Op={...fu,table:Yc,paragraph:Ee(uu).replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex()},Ip={...fu,html:Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cu).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Bl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ee(uu).replace("hr",Wl).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",gf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Dp=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,jp=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vf=/^( {2,}|\\)\n(?!\s*$)/,Fp=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Vp=Ee(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,ao).getRegex(),wf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Qp=Ee(wf,"gu").replace(/notPunctSpace/g,kf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Gp=Ee(wf,"gu").replace(/notPunctSpace/g,Hp).replace(/punctSpace/g,Bp).replace(/punct/g,$p).getRegex(),Yp=Ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,kf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),bp=Ee(/\\(punct)/,"gu").replace(/punct/g,ao).getRegex(),Kp=Ee(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Xp=Ee(cu).replace("(?:-->|$)","-->").getRegex(),Zp=Ee("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Xp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),io=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,qp=Ee(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xf=Ee(/^!?\[(label)\]\[(ref)\]/).replace("label",io).replace("ref",au).getRegex(),Sf=Ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",au).getRegex(),Jp=Ee("reflink|nolink(?!\\()","g").replace("reflink",xf).replace("nolink",Sf).getRegex(),pu={_backpedal:Bl,anyPunctuation:bp,autolink:Kp,blockSkip:Wp,br:vf,code:jp,del:Bl,emStrongLDelim:Vp,emStrongRDelimAst:Qp,emStrongRDelimUnd:Yp,escape:Dp,link:qp,nolink:Sf,punctuation:Up,reflink:xf,reflinkSearch:Jp,tag:Zp,text:Fp,url:Bl},eh={...pu,link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",io).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",io).getRegex()},tu={...pu,emStrongRDelimAst:Gp,url:Ee(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},bc=d=>nh[d];function Zt(d,s){if(s){if(it.escapeTest.test(d))return d.replace(it.escapeReplace,bc)}else if(it.escapeTestNoEncode.test(d))return d.replace(it.escapeReplaceNoEncode,bc);return d}function Kc(d){try{d=encodeURI(d).replace(it.percentDecode,"%")}catch{return null}return d}function Xc(d,s){var p;const o=d.replace(it.findPipe,(y,k,_)=>{let T=!1,S=k;for(;--S>=0&&_[S]==="\\";)T=!T;return T?"|":" |"}),a=o.split(it.splitPipe);let f=0;if(a[0].trim()||a.shift(),a.length>0&&!((p=a.at(-1))!=null&&p.trim())&&a.pop(),s)if(a.length>s)a.splice(s);else for(;a.length{const y=p.match(o.other.beginningSpace);if(y===null)return p;const[k]=y;return k.length>=f.length?p.slice(f.length):p}).join(` `)}class oo{constructor(s){Te(this,"options");Te(this,"rules");Te(this,"lexer");this.options=s||hr}space(s){const o=this.rules.block.newline.exec(s);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(s){const o=this.rules.block.code.exec(s);if(o){const a=o[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?a:Ml(a,` `)}}}fences(s){const o=this.rules.block.fences.exec(s);if(o){const a=o[0],f=lh(a,o[3]||"",this.rules);return{type:"code",raw:a,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:f}}}heading(s){const o=this.rules.block.heading.exec(s);if(o){let a=o[2].trim();if(this.rules.other.endingHash.test(a)){const f=Ml(a,"#");(this.options.pedantic||!f||this.rules.other.endingSpaceChar.test(f))&&(a=f.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(s){const o=this.rules.block.hr.exec(s);if(o)return{type:"hr",raw:Ml(o[0],` `)}}blockquote(s){const o=this.rules.block.blockquote.exec(s);if(o){let a=Ml(o[0],` `).split(` `),f="",p="";const y=[];for(;a.length>0;){let k=!1;const _=[];let T;for(T=0;T1,p={type:"list",raw:"",ordered:f,start:f?+a.slice(0,-1):"",loose:!1,items:[]};a=f?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=f?a:"[*+-]");const y=this.rules.other.listItemRegex(a);let k=!1;for(;s;){let T=!1,S="",O="";if(!(o=y.exec(s))||this.rules.block.hr.test(s))break;S=o[0],s=s.substring(S.length);let M=o[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,ye=>" ".repeat(3*ye.length)),D=s.split(` `,1)[0],G=!M.trim(),j=0;if(this.options.pedantic?(j=2,O=M.trimStart()):G?j=o[1].length+1:(j=o[2].search(this.rules.other.nonSpaceChar),j=j>4?1:j,O=M.slice(j),j+=o[1].length),G&&this.rules.other.blankLine.test(D)&&(S+=D+` `,s=s.substring(D.length+1),T=!0),!T){const ye=this.rules.other.nextBulletRegex(j),Ce=this.rules.other.hrRegex(j),ee=this.rules.other.fencesBeginRegex(j),fe=this.rules.other.headingBeginRegex(j),te=this.rules.other.htmlBeginRegex(j);for(;s;){const xe=s.split(` `,1)[0];let de;if(D=xe,this.options.pedantic?(D=D.replace(this.rules.other.listReplaceNesting," "),de=D):de=D.replace(this.rules.other.tabCharGlobal," "),ee.test(D)||fe.test(D)||te.test(D)||ye.test(D)||Ce.test(D))break;if(de.search(this.rules.other.nonSpaceChar)>=j||!D.trim())O+=` `+de.slice(j);else{if(G||M.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ee.test(M)||fe.test(M)||Ce.test(M))break;O+=` `+D}!G&&!D.trim()&&(G=!0),S+=xe+` `,s=s.substring(xe.length+1),M=de.slice(j)}}p.loose||(k?p.loose=!0:this.rules.other.doubleBlankLine.test(S)&&(k=!0));let b=null,ce;this.options.gfm&&(b=this.rules.other.listIsTask.exec(O),b&&(ce=b[0]!=="[ ] ",O=O.replace(this.rules.other.listReplaceTask,""))),p.items.push({type:"list_item",raw:S,task:!!b,checked:ce,loose:!1,text:O,tokens:[]}),p.raw+=S}const _=p.items.at(-1);if(_)_.raw=_.raw.trimEnd(),_.text=_.text.trimEnd();else return;p.raw=p.raw.trimEnd();for(let T=0;TM.type==="space"),O=S.length>0&&S.some(M=>this.rules.other.anyLine.test(M.raw));p.loose=O}if(p.loose)for(let T=0;T({text:T,tokens:this.lexer.inline(T),header:!1,align:y.align[S]})));return y}}lheading(s){const o=this.rules.block.lheading.exec(s);if(o)return{type:"heading",raw:o[0],depth:o[2].charAt(0)==="="?1:2,text:o[1],tokens:this.lexer.inline(o[1])}}paragraph(s){const o=this.rules.block.paragraph.exec(s);if(o){const a=o[1].charAt(o[1].length-1)===` `?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:a,tokens:this.lexer.inline(a)}}}text(s){const o=this.rules.block.text.exec(s);if(o)return{type:"text",raw:o[0],text:o[0],tokens:this.lexer.inline(o[0])}}escape(s){const o=this.rules.inline.escape.exec(s);if(o)return{type:"escape",raw:o[0],text:o[1]}}tag(s){const o=this.rules.inline.tag.exec(s);if(o)return!this.lexer.state.inLink&&this.rules.other.startATag.test(o[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(s){const o=this.rules.inline.link.exec(s);if(o){const a=o[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;const y=Ml(a.slice(0,-1),"\\");if((a.length-y.length)%2===0)return}else{const y=rh(o[2],"()");if(y>-1){const _=(o[0].indexOf("!")===0?5:4)+o[1].length+y;o[2]=o[2].substring(0,y),o[0]=o[0].substring(0,_).trim(),o[3]=""}}let f=o[2],p="";if(this.options.pedantic){const y=this.rules.other.pedanticHrefTitle.exec(f);y&&(f=y[1],p=y[3])}else p=o[3]?o[3].slice(1,-1):"";return f=f.trim(),this.rules.other.startAngleBracket.test(f)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?f=f.slice(1):f=f.slice(1,-1)),Zc(o,{href:f&&f.replace(this.rules.inline.anyPunctuation,"$1"),title:p&&p.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer,this.rules)}}reflink(s,o){let a;if((a=this.rules.inline.reflink.exec(s))||(a=this.rules.inline.nolink.exec(s))){const f=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),p=o[f.toLowerCase()];if(!p){const y=a[0].charAt(0);return{type:"text",raw:y,text:y}}return Zc(a,p,a[0],this.lexer,this.rules)}}emStrong(s,o,a=""){let f=this.rules.inline.emStrongLDelim.exec(s);if(!f||f[3]&&a.match(this.rules.other.unicodeAlphaNumeric))return;if(!(f[1]||f[2]||"")||!a||this.rules.inline.punctuation.exec(a)){const y=[...f[0]].length-1;let k,_,T=y,S=0;const O=f[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(O.lastIndex=0,o=o.slice(-1*s.length+y);(f=O.exec(o))!=null;){if(k=f[1]||f[2]||f[3]||f[4]||f[5]||f[6],!k)continue;if(_=[...k].length,f[3]||f[4]){T+=_;continue}else if((f[5]||f[6])&&y%3&&!((y+_)%3)){S+=_;continue}if(T-=_,T>0)continue;_=Math.min(_,_+T+S);const M=[...f[0]][0].length,D=s.slice(0,y+f.index+M+_);if(Math.min(y,_)%2){const j=D.slice(1,-1);return{type:"em",raw:D,text:j,tokens:this.lexer.inlineTokens(j)}}const G=D.slice(2,-2);return{type:"strong",raw:D,text:G,tokens:this.lexer.inlineTokens(G)}}}}codespan(s){const o=this.rules.inline.code.exec(s);if(o){let a=o[2].replace(this.rules.other.newLineCharGlobal," ");const f=this.rules.other.nonSpaceChar.test(a),p=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return f&&p&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:o[0],text:a}}}br(s){const o=this.rules.inline.br.exec(s);if(o)return{type:"br",raw:o[0]}}del(s){const o=this.rules.inline.del.exec(s);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(s){const o=this.rules.inline.autolink.exec(s);if(o){let a,f;return o[2]==="@"?(a=o[1],f="mailto:"+a):(a=o[1],f=a),{type:"link",raw:o[0],text:a,href:f,tokens:[{type:"text",raw:a,text:a}]}}}url(s){var a;let o;if(o=this.rules.inline.url.exec(s)){let f,p;if(o[2]==="@")f=o[0],p="mailto:"+f;else{let y;do y=o[0],o[0]=((a=this.rules.inline._backpedal.exec(o[0]))==null?void 0:a[0])??"";while(y!==o[0]);f=o[0],o[1]==="www."?p="http://"+o[0]:p=o[0]}return{type:"link",raw:o[0],text:f,href:p,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(s){const o=this.rules.inline.text.exec(s);if(o){const a=this.lexer.state.inRawBlock;return{type:"text",raw:o[0],text:o[0],escaped:a}}}}class Pt{constructor(s){Te(this,"tokens");Te(this,"options");Te(this,"state");Te(this,"tokenizer");Te(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=s||hr,this.options.tokenizer=this.options.tokenizer||new oo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const o={other:it,block:to.normal,inline:Al.normal};this.options.pedantic?(o.block=to.pedantic,o.inline=Al.pedantic):this.options.gfm&&(o.block=to.gfm,this.options.breaks?o.inline=Al.breaks:o.inline=Al.gfm),this.tokenizer.rules=o}static get rules(){return{block:to,inline:Al}}static lex(s,o){return new Pt(o).lex(s)}static lexInline(s,o){return new Pt(o).inlineTokens(s)}lex(s){s=s.replace(it.carriageReturn,` `),this.blockTokens(s,this.tokens);for(let o=0;o(k=T.call({lexer:this},s,o))?(s=s.substring(k.raw.length),o.push(k),!0):!1))continue;if(k=this.tokenizer.space(s)){s=s.substring(k.raw.length);const T=o.at(-1);k.raw.length===1&&T!==void 0?T.raw+=` `:o.push(k);continue}if(k=this.tokenizer.code(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="paragraph"||(T==null?void 0:T.type)==="text"?(T.raw+=` `+k.raw,T.text+=` `+k.text,this.inlineQueue.at(-1).src=T.text):o.push(k);continue}if(k=this.tokenizer.fences(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.heading(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.hr(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.blockquote(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.list(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.html(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.def(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="paragraph"||(T==null?void 0:T.type)==="text"?(T.raw+=` `+k.raw,T.text+=` `+k.raw,this.inlineQueue.at(-1).src=T.text):this.tokens.links[k.tag]||(this.tokens.links[k.tag]={href:k.href,title:k.title});continue}if(k=this.tokenizer.table(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.lheading(s)){s=s.substring(k.raw.length),o.push(k);continue}let _=s;if((y=this.options.extensions)!=null&&y.startBlock){let T=1/0;const S=s.slice(1);let O;this.options.extensions.startBlock.forEach(M=>{O=M.call({lexer:this},S),typeof O=="number"&&O>=0&&(T=Math.min(T,O))}),T<1/0&&T>=0&&(_=s.substring(0,T+1))}if(this.state.top&&(k=this.tokenizer.paragraph(_))){const T=o.at(-1);a&&(T==null?void 0:T.type)==="paragraph"?(T.raw+=` `+k.raw,T.text+=` `+k.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=T.text):o.push(k),a=_.length!==s.length,s=s.substring(k.raw.length);continue}if(k=this.tokenizer.text(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="text"?(T.raw+=` `+k.raw,T.text+=` `+k.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=T.text):o.push(k);continue}if(s){const T="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(T);break}else throw new Error(T)}}return this.state.top=!0,o}inline(s,o=[]){return this.inlineQueue.push({src:s,tokens:o}),o}inlineTokens(s,o=[]){var k,_,T;let a=s,f=null;if(this.tokens.links){const S=Object.keys(this.tokens.links);if(S.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)S.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,f.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let p=!1,y="";for(;s;){p||(y=""),p=!1;let S;if((_=(k=this.options.extensions)==null?void 0:k.inline)!=null&&_.some(M=>(S=M.call({lexer:this},s,o))?(s=s.substring(S.raw.length),o.push(S),!0):!1))continue;if(S=this.tokenizer.escape(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.tag(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.link(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(S.raw.length);const M=o.at(-1);S.type==="text"&&(M==null?void 0:M.type)==="text"?(M.raw+=S.raw,M.text+=S.text):o.push(S);continue}if(S=this.tokenizer.emStrong(s,a,y)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.codespan(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.br(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.del(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.autolink(s)){s=s.substring(S.raw.length),o.push(S);continue}if(!this.state.inLink&&(S=this.tokenizer.url(s))){s=s.substring(S.raw.length),o.push(S);continue}let O=s;if((T=this.options.extensions)!=null&&T.startInline){let M=1/0;const D=s.slice(1);let G;this.options.extensions.startInline.forEach(j=>{G=j.call({lexer:this},D),typeof G=="number"&&G>=0&&(M=Math.min(M,G))}),M<1/0&&M>=0&&(O=s.substring(0,M+1))}if(S=this.tokenizer.inlineText(O)){s=s.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(y=S.raw.slice(-1)),p=!0;const M=o.at(-1);(M==null?void 0:M.type)==="text"?(M.raw+=S.raw,M.text+=S.text):o.push(S);continue}if(s){const M="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(M);break}else throw new Error(M)}}return o}}class so{constructor(s){Te(this,"options");Te(this,"parser");this.options=s||hr}space(s){return""}code({text:s,lang:o,escaped:a}){var y;const f=(y=(o||"").match(it.notSpaceStart))==null?void 0:y[0],p=s.replace(it.endingNewline,"")+` `;return f?'
'+(a?p:Zt(p,!0))+`
`:"
"+(a?p:Zt(p,!0))+`
`}blockquote({tokens:s}){return`
${this.parser.parse(s)}
`}html({text:s}){return s}heading({tokens:s,depth:o}){return`${this.parser.parseInline(s)} `}hr(s){return`
`}list(s){const o=s.ordered,a=s.start;let f="";for(let k=0;k `+f+" `}listitem(s){var a;let o="";if(s.task){const f=this.checkbox({checked:!!s.checked});s.loose?((a=s.tokens[0])==null?void 0:a.type)==="paragraph"?(s.tokens[0].text=f+" "+s.tokens[0].text,s.tokens[0].tokens&&s.tokens[0].tokens.length>0&&s.tokens[0].tokens[0].type==="text"&&(s.tokens[0].tokens[0].text=f+" "+Zt(s.tokens[0].tokens[0].text),s.tokens[0].tokens[0].escaped=!0)):s.tokens.unshift({type:"text",raw:f+" ",text:f+" ",escaped:!0}):o+=f+" "}return o+=this.parser.parse(s.tokens,!!s.loose),`
  • ${o}
  • `}checkbox({checked:s}){return"'}paragraph({tokens:s}){return`

    ${this.parser.parseInline(s)}

    `}table(s){let o="",a="";for(let p=0;p${f}`),` `+o+` `+f+`
    `}tablerow({text:s}){return` ${s} `}tablecell(s){const o=this.parser.parseInline(s.tokens),a=s.header?"th":"td";return(s.align?`<${a} align="${s.align}">`:`<${a}>`)+o+` `}strong({tokens:s}){return`${this.parser.parseInline(s)}`}em({tokens:s}){return`${this.parser.parseInline(s)}`}codespan({text:s}){return`${Zt(s,!0)}`}br(s){return"
    "}del({tokens:s}){return`${this.parser.parseInline(s)}`}link({href:s,title:o,tokens:a}){const f=this.parser.parseInline(a),p=Kc(s);if(p===null)return f;s=p;let y='
    ",y}image({href:s,title:o,text:a}){const f=Kc(s);if(f===null)return Zt(a);s=f;let p=`${a}{const T=k[_].flat(1/0);a=a.concat(this.walkTokens(T,o))}):k.tokens&&(a=a.concat(this.walkTokens(k.tokens,o)))}}return a}use(...s){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(a=>{const f={...a};if(f.async=this.defaults.async||f.async||!1,a.extensions&&(a.extensions.forEach(p=>{if(!p.name)throw new Error("extension name required");if("renderer"in p){const y=o.renderers[p.name];y?o.renderers[p.name]=function(...k){let _=p.renderer.apply(this,k);return _===!1&&(_=y.apply(this,k)),_}:o.renderers[p.name]=p.renderer}if("tokenizer"in p){if(!p.level||p.level!=="block"&&p.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const y=o[p.level];y?y.unshift(p.tokenizer):o[p.level]=[p.tokenizer],p.start&&(p.level==="block"?o.startBlock?o.startBlock.push(p.start):o.startBlock=[p.start]:p.level==="inline"&&(o.startInline?o.startInline.push(p.start):o.startInline=[p.start]))}"childTokens"in p&&p.childTokens&&(o.childTokens[p.name]=p.childTokens)}),f.extensions=o),a.renderer){const p=this.defaults.renderer||new so(this.defaults);for(const y in a.renderer){if(!(y in p))throw new Error(`renderer '${y}' does not exist`);if(["options","parser"].includes(y))continue;const k=y,_=a.renderer[k],T=p[k];p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O||""}}f.renderer=p}if(a.tokenizer){const p=this.defaults.tokenizer||new oo(this.defaults);for(const y in a.tokenizer){if(!(y in p))throw new Error(`tokenizer '${y}' does not exist`);if(["options","rules","lexer"].includes(y))continue;const k=y,_=a.tokenizer[k],T=p[k];p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O}}f.tokenizer=p}if(a.hooks){const p=this.defaults.hooks||new Hl;for(const y in a.hooks){if(!(y in p))throw new Error(`hook '${y}' does not exist`);if(["options","block"].includes(y))continue;const k=y,_=a.hooks[k],T=p[k];Hl.passThroughHooks.has(y)?p[k]=S=>{if(this.defaults.async)return Promise.resolve(_.call(p,S)).then(M=>T.call(p,M));const O=_.call(p,S);return T.call(p,O)}:p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O}}f.hooks=p}if(a.walkTokens){const p=this.defaults.walkTokens,y=a.walkTokens;f.walkTokens=function(k){let _=[];return _.push(y.call(this,k)),p&&(_=_.concat(p.call(this,k))),_}}this.defaults={...this.defaults,...f}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,o){return Pt.lex(s,o??this.defaults)}parser(s,o){return At.parse(s,o??this.defaults)}parseMarkdown(s){return(a,f)=>{const p={...f},y={...this.defaults,...p},k=this.onError(!!y.silent,!!y.async);if(this.defaults.async===!0&&p.async===!1)return k(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return k(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return k(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));y.hooks&&(y.hooks.options=y,y.hooks.block=s);const _=y.hooks?y.hooks.provideLexer():s?Pt.lex:Pt.lexInline,T=y.hooks?y.hooks.provideParser():s?At.parse:At.parseInline;if(y.async)return Promise.resolve(y.hooks?y.hooks.preprocess(a):a).then(S=>_(S,y)).then(S=>y.hooks?y.hooks.processAllTokens(S):S).then(S=>y.walkTokens?Promise.all(this.walkTokens(S,y.walkTokens)).then(()=>S):S).then(S=>T(S,y)).then(S=>y.hooks?y.hooks.postprocess(S):S).catch(k);try{y.hooks&&(a=y.hooks.preprocess(a));let S=_(a,y);y.hooks&&(S=y.hooks.processAllTokens(S)),y.walkTokens&&this.walkTokens(S,y.walkTokens);let O=T(S,y);return y.hooks&&(O=y.hooks.postprocess(O)),O}catch(S){return k(S)}}}onError(s,o){return a=>{if(a.message+=` Please report this to https://github.com/markedjs/marked.`,s){const f="

    An error occurred:

    "+Zt(a.message+"",!0)+"
    ";return o?Promise.resolve(f):f}if(o)return Promise.reject(a);throw a}}}const pr=new ih;function we(d,s){return pr.parse(d,s)}we.options=we.setOptions=function(d){return pr.setOptions(d),we.defaults=pr.defaults,hf(we.defaults),we};we.getDefaults=su;we.defaults=hr;we.use=function(...d){return pr.use(...d),we.defaults=pr.defaults,hf(we.defaults),we};we.walkTokens=function(d,s){return pr.walkTokens(d,s)};we.parseInline=pr.parseInline;we.Parser=At;we.parser=At.parse;we.Renderer=so;we.TextRenderer=hu;we.Lexer=Pt;we.lexer=Pt.lex;we.Tokenizer=oo;we.Hooks=Hl;we.parse=we;we.options;we.setOptions;we.use;we.walkTokens;we.parseInline;At.parse;Pt.lex;/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:Ef,setPrototypeOf:qc,isFrozen:oh,getPrototypeOf:sh,getOwnPropertyDescriptor:uh}=Object;let{freeze:ot,seal:Mt,create:_f}=Object,{apply:nu,construct:ru}=typeof Reflect<"u"&&Reflect;ot||(ot=function(s){return s});Mt||(Mt=function(s){return s});nu||(nu=function(s,o,a){return s.apply(o,a)});ru||(ru=function(s,o){return new s(...o)});const no=st(Array.prototype.forEach),ah=st(Array.prototype.lastIndexOf),Jc=st(Array.prototype.pop),zl=st(Array.prototype.push),ch=st(Array.prototype.splice),lo=st(String.prototype.toLowerCase),Xs=st(String.prototype.toString),ef=st(String.prototype.match),Ol=st(String.prototype.replace),fh=st(String.prototype.indexOf),dh=st(String.prototype.trim),Ht=st(Object.prototype.hasOwnProperty),lt=st(RegExp.prototype.test),Il=ph(TypeError);function st(d){return function(s){for(var o=arguments.length,a=new Array(o>1?o-1:0),f=1;f2&&arguments[2]!==void 0?arguments[2]:lo;qc&&qc(d,null);let a=s.length;for(;a--;){let f=s[a];if(typeof f=="string"){const p=o(f);p!==f&&(oh(s)||(s[a]=p),f=p)}d[f]=!0}return d}function hh(d){for(let s=0;s/gm),kh=Mt(/\$\{[\w\W]*/gm),wh=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),xh=Mt(/^aria-[\-\w]+$/),Tf=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sh=Mt(/^(?:\w+script|data):/i),Eh=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cf=Mt(/^html$/i),_h=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i);var of=Object.freeze({__proto__:null,ARIA_ATTR:xh,ATTR_WHITESPACE:Eh,CUSTOM_ELEMENT:_h,DATA_ATTR:wh,DOCTYPE_NAME:Cf,ERB_EXPR:vh,IS_ALLOWED_URI:Tf,IS_SCRIPT_OR_DATA:Sh,MUSTACHE_EXPR:yh,TMPLIT_EXPR:kh});const jl={element:1,text:3,progressingInstruction:7,comment:8,document:9},Th=function(){return typeof window>"u"?null:window},Ch=function(s,o){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let a=null;const f="data-tt-policy-suffix";o&&o.hasAttribute(f)&&(a=o.getAttribute(f));const p="dompurify"+(a?"#"+a:"");try{return s.createPolicy(p,{createHTML(y){return y},createScriptURL(y){return y}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},sf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Rf(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Th();const s=Q=>Rf(Q);if(s.version="3.2.4",s.removed=[],!d||!d.document||d.document.nodeType!==jl.document||!d.Element)return s.isSupported=!1,s;let{document:o}=d;const a=o,f=a.currentScript,{DocumentFragment:p,HTMLTemplateElement:y,Node:k,Element:_,NodeFilter:T,NamedNodeMap:S=d.NamedNodeMap||d.MozNamedAttrMap,HTMLFormElement:O,DOMParser:M,trustedTypes:D}=d,G=_.prototype,j=Dl(G,"cloneNode"),b=Dl(G,"remove"),ce=Dl(G,"nextSibling"),ye=Dl(G,"childNodes"),Ce=Dl(G,"parentNode");if(typeof y=="function"){const Q=o.createElement("template");Q.content&&Q.content.ownerDocument&&(o=Q.content.ownerDocument)}let ee,fe="";const{implementation:te,createNodeIterator:xe,createDocumentFragment:de,getElementsByTagName:wt}=o,{importNode:ne}=a;let ue=sf();s.isSupported=typeof Ef=="function"&&typeof Ce=="function"&&te&&te.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_e,ERB_EXPR:ve,TMPLIT_EXPR:ze,DATA_ATTR:ut,ARIA_ATTR:We,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:K}=of;let{IS_ALLOWED_URI:F}=of,v=null;const R=se({},[...tf,...Zs,...qs,...Js,...nf]);let Y=null;const re=se({},[...rf,...eu,...lf,...ro]);let X=Object.seal(_f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,ge=null,pe=!0,Se=!0,Xe=!1,Vn=!0,qt=!1,pn=!0,zt=!1,mr=!1,gr=!1,Wt=!1,Qn=!1,hn=!1,mn=!0,Jt=!1;const Qr="user-content-";let yr=!0,gn=!1,en={},tn=null;const vr=se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gn=null;const Gr=se({},["audio","video","img","source","image","track"]);let nn=null;const yn=se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kr="http://www.w3.org/1998/Math/MathML",Yn="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let vn=xt,bn=!1,Kn=null;const Yr=se({},[kr,Yn,xt],Xs);let kn=se({},["mi","mo","mn","ms","mtext"]),wn=se({},["annotation-xml"]);const xn=se({},["title","style","font","a","script"]);let St=null;const Vl=["application/xhtml+xml","text/html"],Ql="text/html";let je=null,rn=null;const Gl=o.createElement("form"),wr=function(m){return m instanceof RegExp||m instanceof Function},xr=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(rn&&rn===m)){if((!m||typeof m!="object")&&(m={}),m=dr(m),St=Vl.indexOf(m.PARSER_MEDIA_TYPE)===-1?Ql:m.PARSER_MEDIA_TYPE,je=St==="application/xhtml+xml"?Xs:lo,v=Ht(m,"ALLOWED_TAGS")?se({},m.ALLOWED_TAGS,je):R,Y=Ht(m,"ALLOWED_ATTR")?se({},m.ALLOWED_ATTR,je):re,Kn=Ht(m,"ALLOWED_NAMESPACES")?se({},m.ALLOWED_NAMESPACES,Xs):Yr,nn=Ht(m,"ADD_URI_SAFE_ATTR")?se(dr(yn),m.ADD_URI_SAFE_ATTR,je):yn,Gn=Ht(m,"ADD_DATA_URI_TAGS")?se(dr(Gr),m.ADD_DATA_URI_TAGS,je):Gr,tn=Ht(m,"FORBID_CONTENTS")?se({},m.FORBID_CONTENTS,je):vr,ie=Ht(m,"FORBID_TAGS")?se({},m.FORBID_TAGS,je):{},ge=Ht(m,"FORBID_ATTR")?se({},m.FORBID_ATTR,je):{},en=Ht(m,"USE_PROFILES")?m.USE_PROFILES:!1,pe=m.ALLOW_ARIA_ATTR!==!1,Se=m.ALLOW_DATA_ATTR!==!1,Xe=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qt=m.SAFE_FOR_TEMPLATES||!1,pn=m.SAFE_FOR_XML!==!1,zt=m.WHOLE_DOCUMENT||!1,Wt=m.RETURN_DOM||!1,Qn=m.RETURN_DOM_FRAGMENT||!1,hn=m.RETURN_TRUSTED_TYPE||!1,gr=m.FORCE_BODY||!1,mn=m.SANITIZE_DOM!==!1,Jt=m.SANITIZE_NAMED_PROPS||!1,yr=m.KEEP_CONTENT!==!1,gn=m.IN_PLACE||!1,F=m.ALLOWED_URI_REGEXP||Tf,vn=m.NAMESPACE||xt,kn=m.MATHML_TEXT_INTEGRATION_POINTS||kn,wn=m.HTML_INTEGRATION_POINTS||wn,X=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&wr(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&wr(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qt&&(Se=!1),Qn&&(Wt=!0),en&&(v=se({},nf),Y=[],en.html===!0&&(se(v,tf),se(Y,rf)),en.svg===!0&&(se(v,Zs),se(Y,eu),se(Y,ro)),en.svgFilters===!0&&(se(v,qs),se(Y,eu),se(Y,ro)),en.mathMl===!0&&(se(v,Js),se(Y,lf),se(Y,ro))),m.ADD_TAGS&&(v===R&&(v=dr(v)),se(v,m.ADD_TAGS,je)),m.ADD_ATTR&&(Y===re&&(Y=dr(Y)),se(Y,m.ADD_ATTR,je)),m.ADD_URI_SAFE_ATTR&&se(nn,m.ADD_URI_SAFE_ATTR,je),m.FORBID_CONTENTS&&(tn===vr&&(tn=dr(tn)),se(tn,m.FORBID_CONTENTS,je)),yr&&(v["#text"]=!0),zt&&se(v,["html","head","body"]),v.table&&(se(v,["tbody"]),delete ie.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=m.TRUSTED_TYPES_POLICY,fe=ee.createHTML("")}else ee===void 0&&(ee=Ch(D,f)),ee!==null&&typeof fe=="string"&&(fe=ee.createHTML(""));ot&&ot(m),rn=m}},Sn=se({},[...Zs,...qs,...mh]),Sr=se({},[...Js,...gh]),Xn=function(m){let A=Ce(m);(!A||!A.tagName)&&(A={namespaceURI:vn,tagName:"template"});const H=lo(m.tagName),Ne=lo(A.tagName);return Kn[m.namespaceURI]?m.namespaceURI===Yn?A.namespaceURI===xt?H==="svg":A.namespaceURI===kr?H==="svg"&&(Ne==="annotation-xml"||kn[Ne]):!!Sn[H]:m.namespaceURI===kr?A.namespaceURI===xt?H==="math":A.namespaceURI===Yn?H==="math"&&wn[Ne]:!!Sr[H]:m.namespaceURI===xt?A.namespaceURI===Yn&&!wn[Ne]||A.namespaceURI===kr&&!kn[Ne]?!1:!Sr[H]&&(xn[H]||!Sn[H]):!!(St==="application/xhtml+xml"&&Kn[m.namespaceURI]):!1},Et=function(m){zl(s.removed,{element:m});try{Ce(m).removeChild(m)}catch{b(m)}},Vt=function(m,A){try{zl(s.removed,{attribute:A.getAttributeNode(m),from:A})}catch{zl(s.removed,{attribute:null,from:A})}if(A.removeAttribute(m),m==="is")if(Wt||Qn)try{Et(A)}catch{}else try{A.setAttribute(m,"")}catch{}},Zn=function(m){let A=null,H=null;if(gr)m=""+m;else{const le=ef(m,/^[\r\n\t ]+/);H=le&&le[0]}St==="application/xhtml+xml"&&vn===xt&&(m=''+m+"");const Ne=ee?ee.createHTML(m):m;if(vn===xt)try{A=new M().parseFromString(Ne,St)}catch{}if(!A||!A.documentElement){A=te.createDocument(vn,"template",null);try{A.documentElement.innerHTML=bn?fe:Ne}catch{}}const Ve=A.body||A.documentElement;return m&&H&&Ve.insertBefore(o.createTextNode(H),Ve.childNodes[0]||null),vn===xt?wt.call(A,zt?"html":"body")[0]:zt?A.documentElement:Ve},qn=function(m){return xe.call(m.ownerDocument||m,m,T.SHOW_ELEMENT|T.SHOW_COMMENT|T.SHOW_TEXT|T.SHOW_PROCESSING_INSTRUCTION|T.SHOW_CDATA_SECTION,null)},Jn=function(m){return m instanceof O&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof S)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},Yl=function(m){return typeof k=="function"&&m instanceof k};function Ot(Q,m,A){no(Q,H=>{H.call(s,m,A,rn)})}const bl=function(m){let A=null;if(Ot(ue.beforeSanitizeElements,m,null),Jn(m))return Et(m),!0;const H=je(m.nodeName);if(Ot(ue.uponSanitizeElement,m,{tagName:H,allowedTags:v}),m.hasChildNodes()&&!Yl(m.firstElementChild)&<(/<[/\w]/g,m.innerHTML)&<(/<[/\w]/g,m.textContent)||m.nodeType===jl.progressingInstruction||pn&&m.nodeType===jl.comment&<(/<[/\w]/g,m.data))return Et(m),!0;if(!v[H]||ie[H]){if(!ie[H]&&br(H)&&(X.tagNameCheck instanceof RegExp&<(X.tagNameCheck,H)||X.tagNameCheck instanceof Function&&X.tagNameCheck(H)))return!1;if(yr&&!tn[H]){const Ne=Ce(m)||m.parentNode,Ve=ye(m)||m.childNodes;if(Ve&&Ne){const le=Ve.length;for(let Ze=le-1;Ze>=0;--Ze){const at=j(Ve[Ze],!0);at.__removalCount=(m.__removalCount||0)+1,Ne.insertBefore(at,ce(m))}}}return Et(m),!0}return m instanceof _&&!Xn(m)||(H==="noscript"||H==="noembed"||H==="noframes")&<(/<\/no(script|embed|frames)/i,m.innerHTML)?(Et(m),!0):(qt&&m.nodeType===jl.text&&(A=m.textContent,no([_e,ve,ze],Ne=>{A=Ol(A,Ne," ")}),m.textContent!==A&&(zl(s.removed,{element:m.cloneNode()}),m.textContent=A)),Ot(ue.afterSanitizeElements,m,null),!1)},Qt=function(m,A,H){if(mn&&(A==="id"||A==="name")&&(H in o||H in Gl))return!1;if(!(Se&&!ge[A]&<(ut,A))){if(!(pe&<(We,A))){if(!Y[A]||ge[A]){if(!(br(m)&&(X.tagNameCheck instanceof RegExp&<(X.tagNameCheck,m)||X.tagNameCheck instanceof Function&&X.tagNameCheck(m))&&(X.attributeNameCheck instanceof RegExp&<(X.attributeNameCheck,A)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(A))||A==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&<(X.tagNameCheck,H)||X.tagNameCheck instanceof Function&&X.tagNameCheck(H))))return!1}else if(!nn[A]){if(!lt(F,Ol(H,I,""))){if(!((A==="src"||A==="xlink:href"||A==="href")&&m!=="script"&&fh(H,"data:")===0&&Gn[m])){if(!(Xe&&!lt(Re,Ol(H,I,"")))){if(H)return!1}}}}}}return!0},br=function(m){return m!=="annotation-xml"&&ef(m,K)},Kr=function(m){Ot(ue.beforeSanitizeAttributes,m,null);const{attributes:A}=m;if(!A||Jn(m))return;const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Ne=A.length;for(;Ne--;){const Ve=A[Ne],{name:le,namespaceURI:Ze,value:at}=Ve,En=je(le);let Ue=le==="value"?at:dh(at);if(H.attrName=En,H.attrValue=Ue,H.keepAttr=!0,H.forceKeepAttr=void 0,Ot(ue.uponSanitizeAttribute,m,H),Ue=H.attrValue,Jt&&(En==="id"||En==="name")&&(Vt(le,m),Ue=Qr+Ue),pn&<(/((--!?|])>)|<\/(style|title)/i,Ue)){Vt(le,m);continue}if(H.forceKeepAttr||(Vt(le,m),!H.keepAttr))continue;if(!Vn&<(/\/>/i,Ue)){Vt(le,m);continue}qt&&no([_e,ve,ze],Xr=>{Ue=Ol(Ue,Xr," ")});const Kl=je(m.nodeName);if(Qt(Kl,En,Ue)){if(ee&&typeof D=="object"&&typeof D.getAttributeType=="function"&&!Ze)switch(D.getAttributeType(Kl,En)){case"TrustedHTML":{Ue=ee.createHTML(Ue);break}case"TrustedScriptURL":{Ue=ee.createScriptURL(Ue);break}}try{Ze?m.setAttributeNS(Ze,le,Ue):m.setAttribute(le,Ue),Jn(m)?Et(m):Jc(s.removed)}catch{}}}Ot(ue.afterSanitizeAttributes,m,null)},co=function Q(m){let A=null;const H=qn(m);for(Ot(ue.beforeSanitizeShadowDOM,m,null);A=H.nextNode();)Ot(ue.uponSanitizeShadowNode,A,null),bl(A),Kr(A),A.content instanceof p&&Q(A.content);Ot(ue.afterSanitizeShadowDOM,m,null)};return s.sanitize=function(Q){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=null,H=null,Ne=null,Ve=null;if(bn=!Q,bn&&(Q=""),typeof Q!="string"&&!Yl(Q))if(typeof Q.toString=="function"){if(Q=Q.toString(),typeof Q!="string")throw Il("dirty is not a string, aborting")}else throw Il("toString is not a function");if(!s.isSupported)return Q;if(mr||xr(m),s.removed=[],typeof Q=="string"&&(gn=!1),gn){if(Q.nodeName){const at=je(Q.nodeName);if(!v[at]||ie[at])throw Il("root node is forbidden and cannot be sanitized in-place")}}else if(Q instanceof k)A=Zn(""),H=A.ownerDocument.importNode(Q,!0),H.nodeType===jl.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?A=H:A.appendChild(H);else{if(!Wt&&!qt&&!zt&&Q.indexOf("<")===-1)return ee&&hn?ee.createHTML(Q):Q;if(A=Zn(Q),!A)return Wt?null:hn?fe:""}A&&gr&&Et(A.firstChild);const le=qn(gn?Q:A);for(;Ne=le.nextNode();)bl(Ne),Kr(Ne),Ne.content instanceof p&&co(Ne.content);if(gn)return Q;if(Wt){if(Qn)for(Ve=de.call(A.ownerDocument);A.firstChild;)Ve.appendChild(A.firstChild);else Ve=A;return(Y.shadowroot||Y.shadowrootmode)&&(Ve=ne.call(a,Ve,!0)),Ve}let Ze=zt?A.outerHTML:A.innerHTML;return zt&&v["!doctype"]&&A.ownerDocument&&A.ownerDocument.doctype&&A.ownerDocument.doctype.name&<(Cf,A.ownerDocument.doctype.name)&&(Ze=" `+Ze),qt&&no([_e,ve,ze],at=>{Ze=Ol(Ze,at," ")}),ee&&hn?ee.createHTML(Ze):Ze},s.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(Q),mr=!0},s.clearConfig=function(){rn=null,mr=!1},s.isValidAttribute=function(Q,m,A){rn||xr({});const H=je(Q),Ne=je(m);return Qt(H,Ne,A)},s.addHook=function(Q,m){typeof m=="function"&&zl(ue[Q],m)},s.removeHook=function(Q,m){if(m!==void 0){const A=ah(ue[Q],m);return A===-1?void 0:ch(ue[Q],A,1)[0]}return Jc(ue[Q])},s.removeHooks=function(Q){ue[Q]=[]},s.removeAllHooks=function(){ue=sf()},s}var Rh=Rf();function Nh(d){return C.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("path",{d:"M12 8V4H8"}),C.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),C.jsx("path",{d:"M2 14h2"}),C.jsx("path",{d:"M20 14h2"}),C.jsx("path",{d:"M15 13v2"}),C.jsx("path",{d:"M9 13v2"})]})}function Lh(d){return C.jsx("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:C.jsx("path",{className:"stroke-gray-600 dark:stroke-gray-400",d:"M16 6v3.33M16 6c0-2.65 3.25-4.3 5.4-2.62 1.2.95 1.6 2.65.95 4.04a3.63 3.63 0 0 1 4.61.16 3.45 3.45 0 0 1 .46 4.37 5.32 5.32 0 0 1 1.87 4.75c-.22 1.66-1.39 3.6-3.07 4.14M16 6c0-2.65-3.25-4.3-5.4-2.62a3.37 3.37 0 0 0-.95 4.04 3.65 3.65 0 0 0-4.6.16 3.37 3.37 0 0 0-.49 4.27 5.57 5.57 0 0 0-1.85 4.85 5.3 5.3 0 0 0 3.07 4.15M16 9.33v17.34m0-17.34c0 2.18 1.82 4 4 4m6.22 7.5c.67 1.3.56 2.91-.27 4.11a4.05 4.05 0 0 1-4.62 1.5c0 1.53-1.05 2.9-2.66 2.9A2.7 2.7 0 0 1 16 26.66m10.22-5.83a4.05 4.05 0 0 0-3.55-2.17m-16.9 2.18a4.05 4.05 0 0 0 .28 4.1c1 1.44 2.92 2.09 4.59 1.5 0 1.52 1.12 2.88 2.7 2.88A2.7 2.7 0 0 0 16 26.67M5.78 20.85a4.04 4.04 0 0 1 3.55-2.18"})})}function Ph(d){return C.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),C.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}var lu=function(){return(lu=Object.assign||function(d){for(var s,o=1,a=arguments.length;o0;return C.jsx("div",{className:"flex items-start space-x-4",children:d==="assistant"?C.jsxs(C.Fragment,{children:[C.jsx(Nh,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),C.jsx("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-lg p-4",children:C.jsx("div",{className:"min-h-6 text-gray-800 dark:text-gray-200 overflow-wrap-anywhere",children:o===0||a.length>0?C.jsxs(C.Fragment,{children:[a.length>0&&C.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg flex flex-col mb-2",children:[C.jsxs("button",{className:"flex items-center gap-2 cursor-pointer p-4 hover:bg-gray-50 dark:hover:bg-gray-900 rounded-lg ",onClick:()=>y(_=>!_),style:{width:p?"100%":"auto"},children:[C.jsx(Lh,{className:k?"":"animate-pulse"}),C.jsx("span",{children:k?"View reasoning.":"Thinking..."}),C.jsx("span",{className:"ml-auto text-gray-700",children:p?"▲":"▼"})]}),p&&C.jsx(cf,{className:"border-t border-gray-200 dark:border-gray-700 px-4 py-2",dynamic:!0,children:C.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:ff(a)}})})]}),k&&C.jsx(cf,{dynamic:!0,children:C.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:ff(f)}})})]}):C.jsxs("span",{className:"h-6 flex items-center gap-1",children:[C.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse"}),C.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-200"}),C.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-400"})]})})})]}):C.jsxs(C.Fragment,{children:[C.jsx(Ph,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),C.jsx("div",{className:"bg-blue-500 text-white rounded-lg p-4",children:C.jsx("p",{className:"min-h-6 overflow-wrap-anywhere",children:s})})]})})}function Oh({messages:d}){const s=d.length===0;return C.jsx("div",{className:`flex-1 p-6 max-w-[960px] w-full ${s?"flex flex-col items-center justify-end":"space-y-4"}`,children:C.jsx(Ah,{children:s?C.jsx("div",{className:"text-xl",children:"Ready!"}):d.map((o,a)=>C.jsx(zh,{...o},`message-${a}`))})})}function df(d){return C.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("path",{d:"M5 12h14"}),C.jsx("path",{d:"m12 5 7 7-7 7"})]})}function Ih(d){return C.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("path",{d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),C.jsx("path",{fill:"currentColor",d:"M9 9.563C9 9.252 9.252 9 9.563 9h4.874c.311 0 .563.252.563.563v4.874c0 .311-.252.563-.563.563H9.564A.562.562 0 0 1 9 14.437V9.564Z"})]})}function Dh(d){const s=d==0?0:Math.floor(Math.log(d)/Math.log(1024));return+(d/Math.pow(1024,s)).toFixed(2)*1+["B","kB","MB","GB","TB"][s]}function jh({text:d,percentage:s,total:o}){return s??(s=0),C.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:C.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${s}%`},children:[d," (",s.toFixed(2),"%",isNaN(o)?"":` of ${Dh(o)}`,")"]})})}function Fh(d){return C.jsx("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:C.jsx("path",{d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"})})}const Uh=!!navigator.gpu,$h=120,Bh=["Solve the equation x^2 - 3x + 2 = 0","Lily is three times older than her son. In 15 years, she will be twice as old as him. How old is she now?","Write python code to compute the nth fibonacci number."];function Hh(){const d=me.useRef(null),s=me.useRef(null),o=me.useRef(null),[a,f]=me.useState(null),[p,y]=me.useState(null),[k,_]=me.useState(""),[T,S]=me.useState([]),[O,M]=me.useState(!1),[D,G]=me.useState(""),[j,b]=me.useState([]),[ce,ye]=me.useState(null),[Ce,ee]=me.useState(null),[fe,te]=me.useState(!1);function xe(ne){b(ue=>[...ue,{role:"user",content:ne}]),ye(null),M(!0),G("")}function de(){d.current.postMessage({type:"interrupt"})}me.useEffect(()=>{wt()},[D]);function wt(){if(!s.current)return;const ne=s.current;ne.style.height="auto";const ue=Math.min(Math.max(ne.scrollHeight,24),200);ne.style.height=`${ue}px`}return me.useEffect(()=>{d.current||(d.current=new Worker(new URL("/assets/worker-CGHCbKK3.js",import.meta.url),{type:"module"}),d.current.postMessage({type:"check"}));const ne=_e=>{switch(_e.data.status){case"loading":f("loading"),_(_e.data.data);break;case"initiate":S(ve=>[...ve,_e.data]);break;case"progress":S(ve=>ve.map(ze=>ze.file===_e.data.file?{...ze,..._e.data}:ze));break;case"done":S(ve=>ve.filter(ze=>ze.file!==_e.data.file));break;case"ready":f("ready");break;case"start":b(ve=>[...ve,{role:"assistant",content:""}]);break;case"update":{const{output:ve,tps:ze,numTokens:ut,state:We}=_e.data;ye(ze),ee(ut),b(Re=>{const I=[...Re],K=I.at(-1),F={...K,content:K.content+ve};return F.answerIndex===void 0&&We==="answering"&&(F.answerIndex=K.content.length),I[I.length-1]=F,I})}break;case"complete":M(!1);break;case"error":y(_e.data.data);break}},ue=_e=>{console.error("Worker error:",_e)};return d.current.addEventListener("message",ne),d.current.addEventListener("error",ue),()=>{d.current.removeEventListener("message",ne),d.current.removeEventListener("error",ue)}},[]),me.useEffect(()=>{j.filter(ne=>ne.role==="user").length!==0&&j.at(-1).role!=="assistant"&&(ye(null),d.current.postMessage({type:"generate",data:{messages:j,reasonEnabled:fe}}))},[j,O]),me.useEffect(()=>{if(!o.current||!O)return;const ne=o.current;ne.scrollHeight-ne.scrollTop-ne.clientHeight<$h&&(ne.scrollTop=ne.scrollHeight)},[j,O]),Uh?C.jsxs("div",{className:"flex flex-col h-screen mx-auto items justify-end text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900",children:[a===null&&j.length===0&&C.jsxs("div",{className:"h-full overflow-auto scrollbar-thin flex justify-center items-center flex-col relative",children:[C.jsxs("div",{className:"flex flex-col items-center mb-1 max-w-[360px] text-center",children:[C.jsx("img",{src:"logo.png",width:"80%",height:"auto",className:"block drop-shadow-lg bg-transparent"}),C.jsx("h1",{className:"text-4xl font-bold my-1",children:"Qwen3 WebGPU"}),C.jsx("h2",{className:"font-semibold",children:"A hybrid reasoning model that runs locally in your browser with WebGPU acceleration."})]}),C.jsxs("div",{className:"flex flex-col items-center px-4",children:[C.jsxs("p",{className:"max-w-[480px] mb-4",children:[C.jsx("br",{}),"You are about to load"," ",C.jsx("a",{href:"https://huggingface.co./onnx-community/Qwen3-0.6B-ONNX",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"Qwen3-0.6B"}),", a 0.6B parameter reasoning LLM optimized for in-browser inference. Everything runs entirely in your browser with"," ",C.jsx("a",{href:"https://huggingface.co./docs/transformers.js",target:"_blank",rel:"noreferrer",className:"underline",children:"🤗 Transformers.js"})," ","and ONNX Runtime Web, meaning no data is sent to a server. Once loaded, it can even be used offline. The source code for the demo is available on"," ",C.jsx("a",{href:"https://github.com/huggingface/transformers.js-examples/tree/main/qwen3-webgpu",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"GitHub"}),"."]}),p&&C.jsxs("div",{className:"text-red-500 text-center mb-2",children:[C.jsx("p",{className:"mb-1",children:"Unable to load model due to the following error:"}),C.jsx("p",{className:"text-sm",children:p})]}),C.jsx("button",{className:"border px-4 py-2 rounded-lg bg-blue-400 text-white hover:bg-blue-500 disabled:bg-blue-100 cursor-pointer disabled:cursor-not-allowed select-none",onClick:()=>{d.current.postMessage({type:"load"}),f("loading")},disabled:a!==null||p!==null,children:"Load model"})]})]}),a==="loading"&&C.jsx(C.Fragment,{children:C.jsxs("div",{className:"w-full max-w-[500px] text-left mx-auto p-4 bottom-0 mt-auto",children:[C.jsx("p",{className:"text-center mb-1",children:k}),T.map(({file:ne,progress:ue,total:_e},ve)=>C.jsx(jh,{text:ne,percentage:ue,total:_e},ve))]})}),a==="ready"&&C.jsxs("div",{ref:o,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[C.jsx(Oh,{messages:j}),j.length===0&&C.jsx("div",{children:Bh.map((ne,ue)=>C.jsx("div",{className:"m-1 border border-gray-300 dark:border-gray-600 rounded-md p-2 bg-gray-100 dark:bg-gray-700 cursor-pointer max-w-[500px]",onClick:()=>xe(ne),children:ne},ue))}),C.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:ce&&j.length>0&&C.jsxs(C.Fragment,{children:[!O&&C.jsxs("span",{children:["Generated ",Ce," tokens in"," ",(Ce/ce).toFixed(2)," seconds ("]}),C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:ce.toFixed(2)}),C.jsx("span",{className:"text-gray-500 dark:text-gray-300",children:"tokens/second"})]}),!O&&C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"mr-1",children:")."}),C.jsx("span",{className:"underline cursor-pointer",onClick:()=>{d.current.postMessage({type:"reset"}),b([])},children:"Reset"})]})]})})]}),C.jsxs("div",{className:"w-[600px] max-w-[80%] mx-auto mt-2 mb-3",children:[C.jsxs("div",{className:"border border-gray-300 dark:border-gray-500 dark:bg-gray-700 rounded-lg max-h-[200px] relative flex",children:[C.jsx("textarea",{ref:s,className:"scrollbar-thin w-[550px] px-3 py-4 rounded-lg bg-transparent border-none outline-hidden text-gray-800 disabled:text-gray-400 dark:text-gray-200 placeholder-gray-500 dark:placeholder-gray-300 disabled:placeholder-gray-200 dark:disabled:placeholder-gray-500 resize-none disabled:cursor-not-allowed",placeholder:"Type your message...",type:"text",rows:1,value:D,disabled:a!=="ready",title:a==="ready"?"Model is ready":"Model not loaded yet",onKeyDown:ne=>{D.length>0&&!O&&ne.key==="Enter"&&!ne.shiftKey&&(ne.preventDefault(),xe(D))},onInput:ne=>G(ne.target.value)}),O?C.jsx("div",{className:"cursor-pointer",onClick:de,children:C.jsx(Ih,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-3 bottom-3"})}):D.length>0?C.jsx("div",{className:"cursor-pointer",onClick:()=>xe(D),children:C.jsx(df,{className:"h-8 w-8 p-1 bg-gray-800 dark:bg-gray-100 text-white dark:text-black rounded-md absolute right-3 bottom-3"})}):C.jsx("div",{children:C.jsx(df,{className:"h-8 w-8 p-1 bg-gray-200 dark:bg-gray-600 text-gray-50 dark:text-gray-800 rounded-md absolute right-3 bottom-3"})})]}),C.jsx("div",{className:"flex justify-end",children:C.jsxs("div",{className:`border pointer-curson mt-1 inline-flex items-center p-2 gap-1 rounded-xl text-sm cursor-pointer ${fe?"border-blue-500 bg-blue-100 text-blue-500 dark:bg-blue-600 dark:text-gray-200":"dark:border-gray-700 bg-gray-800 text-gray-200 dark:text-gray-400"}`,onClick:()=>te(ne=>!ne),children:[C.jsx(Fh,{className:`h-4 w-4 ${fe?"":"stroke-gray-600 dark:stroke-gray-400"}`}),"Reason"]})})]}),C.jsx("p",{className:"text-xs text-gray-400 text-center mb-3",children:"Disclaimer: Generated content may be inaccurate or false."})]}):C.jsxs("div",{className:"fixed w-screen h-screen bg-black z-10 bg-opacity-[92%] text-white text-2xl font-semibold flex justify-center items-center text-center",children:["WebGPU is not supported",C.jsx("br",{}),"by this browser :("]})}_p.createRoot(document.getElementById("root")).render(C.jsx(me.StrictMode,{children:C.jsx(Hh,{})}));