diff --git "a/assets/index-BSw69Ye9.js" "b/assets/index-BSw69Ye9.js" new file mode 100644--- /dev/null +++ "b/assets/index-BSw69Ye9.js" @@ -0,0 +1,96 @@ +var cp=Object.defineProperty;var fp=(d,s,o)=>s in d?cp(d,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[s]=o;var Ce=(d,s,o)=>fp(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 v of p.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&a(v)}).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 dp(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Gs={exports:{}},Pl={},Qs={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 pp(){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"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.iterator;function P(y){return y===null||typeof y!="object"?null:(y=O&&y[O]||y["@@iterator"],typeof y=="function"?y:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,D={};function X(y,C,Q){this.props=y,this.context=C,this.refs=D,this.updater=Q||I}X.prototype.isReactComponent={},X.prototype.setState=function(y,C){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,C,"setState")},X.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function ae(){}ae.prototype=X.prototype;function ye(y,C,Q){this.props=y,this.context=C,this.refs=D,this.updater=Q||I}var Re=ye.prototype=new ae;Re.constructor=ye,G(Re,X.prototype),Re.isPureReactComponent=!0;var ee=Array.isArray,he=Object.prototype.hasOwnProperty,te={current:null},Se={key:!0,ref:!0,__self:!0,__source:!0};function ce(y,C,Q){var ne,K={},ie=null,me=null;if(C!=null)for(ne in C.ref!==void 0&&(me=C.ref),C.key!==void 0&&(ie=""+C.key),C)he.call(C,ne)&&!Se.hasOwnProperty(ne)&&(K[ne]=C[ne]);var de=arguments.length-2;if(de===1)K.children=Q;else if(1>>1,C=j[y];if(0>>1;yf(K,U))ief(me,K)?(j[y]=me,j[ie]=U,y=ie):(j[y]=K,j[ne]=U,y=ne);else if(ief(me,U))j[y]=me,j[ie]=U,y=ie;else break e}}return J}function f(j,J){var U=j.sortIndex-J.sortIndex;return U!==0?U:j.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;d.unstable_now=function(){return p.now()}}else{var v=Date,w=v.now();d.unstable_now=function(){return v.now()-w}}var T=[],_=[],S=1,O=null,P=3,I=!1,G=!1,D=!1,X=typeof setTimeout=="function"?setTimeout:null,ae=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 Re(j){for(var J=o(_);J!==null;){if(J.callback===null)a(_);else if(J.startTime<=j)a(_),J.sortIndex=J.expirationTime,s(T,J);else break;J=o(_)}}function ee(j){if(D=!1,Re(j),!G)if(o(T)!==null)G=!0,We(he);else{var J=o(_);J!==null&&ke(ee,J.startTime-j)}}function he(j,J){G=!1,D&&(D=!1,ae(ce),ce=-1),I=!0;var U=P;try{for(Re(J),O=o(T);O!==null&&(!(O.expirationTime>J)||j&&!fe());){var y=O.callback;if(typeof y=="function"){O.callback=null,P=O.priorityLevel;var C=y(O.expirationTime<=J);J=d.unstable_now(),typeof C=="function"?O.callback=C:O===o(T)&&a(T),Re(J)}else a(T);O=o(T)}if(O!==null)var Q=!0;else{var ne=o(_);ne!==null&&ke(ee,ne.startTime-J),Q=!1}return Q}finally{O=null,P=U,I=!1}}var te=!1,Se=null,ce=-1,wt=5,re=-1;function fe(){return!(d.unstable_now()-rej||125y?(j.sortIndex=U,s(_,j),o(T)===null&&j===o(_)&&(D?(ae(ce),ce=-1):D=!0,ke(ee,U-y))):(j.sortIndex=C,s(T,j),G||I||(G=!0,We(he))),j},d.unstable_shouldYield=fe,d.unstable_wrapCallback=function(j){var J=P;return function(){var U=P;P=J;try{return j.apply(this,arguments)}finally{P=U}}}}(Ks)),Ks}var Wc;function yp(){return Wc||(Wc=1,Xs.exports=gp()),Xs.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 vp(){if(Vc)return ht;Vc=1;var d=ou(),s=yp();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"),T=Object.prototype.hasOwnProperty,_=/^[: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 P(e){return T.call(O,e)?!0:T.call(S,e)?!1:_.test(e)?O[e]=!0:(S[e]=!0,!1)}function I(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"||I(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 D(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 X={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){X[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];X[t]=new D(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){X[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){X[e]=new D(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){X[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){X[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){X[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){X[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){X[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var ae=/[\-:]([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(ae,ye);X[t]=new D(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(ae,ye);X[t]=new D(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(ae,ye);X[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){X[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),X.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){X[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function Re(e,t,n,r){var l=X.hasOwnProperty(t)?X[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{Q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?C(e):""}function K(e){switch(e.tag){case 5:return C(e.type);case 16:return C("Lazy");case 13:return C("Suspense");case 19:return C("SuspenseList");case 0:case 2:case 15:return e=ne(e.type,!1),e;case 11:return e=ne(e.type.render,!1),e;case 1:return e=ne(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 Se:return"Fragment";case te:return"Portal";case wt:return"Profiler";case ce:return"StrictMode";case ve:return"Suspense";case ze:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fe:return(e.displayName||"Context")+".Consumer";case re:return(e._context.displayName||"Context")+".Provider";case Te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case st: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 me(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===ce?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function de(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ee(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=Ee(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=Ze(e))}function Jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ee(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 U({},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=de(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&&Re(e,"checked",t,!1)}function Wt(e,t){gr(e,t);var n=de(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,de(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gn(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 bt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Qn.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=U({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 Xn(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 Gl(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-(Rf(e)/Nf|0)|0}var ql=64,Jl=4194304;function qr(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 bl(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=qr(c):(i&=u,i!==0&&(r=qr(i)))}else u=n&~l,u!==0?r=qr(u):i!==0&&(r=qr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Jr(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 Mf(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 od.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 ud(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 ad(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 vd(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 Gu(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={},Je=An(Mn),at=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 ct(e){return e=e.childContextTypes,e!=null}function gi(){Ae(at),Ae(Je)}function oa(e,t,n){if(Je.current!==Mn)throw Error(o(168));Le(Je,t),Le(at,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,me(e)||"Unknown",l));return U({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,tr=Je.current,Le(Je,e),Le(at,at.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(at),Ae(Je),Le(Je,e)):Ae(at),Le(at,n)}var on=null,vi=!1,Wo=!1;function aa(e){on===null?on=[e]:on.push(e)}function Pd(e){vi=!0,aa(e)}function zn(){if(!Wo&&on!==null){Wo=!0;var e=0,t=we;try{var n=on;for(we=1;e>=u,l-=u,sn=1<<32-It(t)+l|n<b?(Ye=q,q=null):Ye=q.sibling;var pe=R(k,q,x[b],M);if(pe===null){q===null&&(q=Ye);break}e&&q&&pe.alternate===null&&t(k,q),m=i(pe,m,b),Z===null?V=pe:Z.sibling=pe,Z=pe,q=Ye}if(b===x.length)return n(k,q),Me&&rr(k,b),V;if(q===null){for(;bb?(Ye=q,q=null):Ye=q.sibling;var Hn=R(k,q,pe.value,M);if(Hn===null){q===null&&(q=Ye);break}e&&q&&Hn.alternate===null&&t(k,q),m=i(Hn,m,b),Z===null?V=Hn:Z.sibling=Hn,Z=Hn,q=Ye}if(pe.done)return n(k,q),Me&&rr(k,b),V;if(q===null){for(;!pe.done;b++,pe=x.next())pe=L(k,pe.value,M),pe!==null&&(m=i(pe,m,b),Z===null?V=pe:Z.sibling=pe,Z=pe);return Me&&rr(k,b),V}for(q=r(k,q);!pe.done;b++,pe=x.next())pe=F(q,k,b,pe.value,M),pe!==null&&(e&&pe.alternate!==null&&q.delete(pe.key===null?b:pe.key),m=i(pe,m,b),Z===null?V=pe:Z.sibling=pe,Z=pe);return e&&q.forEach(function(ap){return t(k,ap)}),Me&&rr(k,b),V}function Fe(k,m,x,M){if(typeof x=="object"&&x!==null&&x.type===Se&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case he:e:{for(var V=x.key,Z=m;Z!==null;){if(Z.key===V){if(V=x.type,V===Se){if(Z.tag===7){n(k,Z.sibling),m=l(Z,x.props.children),m.return=k,k=m;break e}}else if(Z.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===We&&ma(V)===Z.type){n(k,Z.sibling),m=l(Z,x.props),m.ref=gl(k,Z,x),m.return=k,k=m;break e}n(k,Z);break}else t(k,Z);Z=Z.sibling}x.type===Se?(m=fr(x.props.children,k.mode,M,x.key),m.return=k,k=m):(M=Qi(x.type,x.key,x.props,null,k.mode,M),M.ref=gl(k,m,x),M.return=k,k=M)}return u(k);case te:e:{for(Z=x.key;m!==null;){if(m.key===Z)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(k,m.sibling),m=l(m,x.children||[]),m.return=k,k=m;break e}else{n(k,m);break}else t(k,m);m=m.sibling}m=$s(x,k.mode,M),m.return=k,k=m}return u(k);case We:return Z=x._init,Fe(k,m,Z(x._payload),M)}if(mn(x))return B(k,m,x,M);if(J(x))return W(k,m,x,M);Si(k,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(k,m.sibling),m=l(m,x),m.return=k,k=m):(n(k,m),m=Us(x,k.mode,M),m.return=k,k=m),u(k)):n(k,m)}return Fe}var Dr=ga(!0),ya=ga(!1),Ei=An(null),_i=null,jr=null,Ko=null;function Zo(){Ko=jr=_i=null}function qo(e){var t=Ei.current;Ae(Ei),e._currentValue=t}function Jo(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&&(ft=!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 bo(e){lr===null?lr=[e]:lr.push(e)}function va(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,bo(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,ue&2){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,bo(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 N=e.alternate;N!==null&&(N=N.updateQueue,c=N.lastBaseUpdate,c!==u&&(c===null?N.firstBaseUpdate=E:c.next=E,N.lastBaseUpdate=h))}if(i!==null){var L=l.baseState;u=0,N=E=h=null,c=i;do{var R=c.lane,F=c.eventTime;if((r&R)===R){N!==null&&(N=N.next={eventTime:F,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var B=e,W=c;switch(R=t,F=n,W.tag){case 1:if(B=W.payload,typeof B=="function"){L=B.call(F,L,R);break e}L=B;break e;case 3:B.flags=B.flags&-65537|128;case 0:if(B=W.payload,R=typeof B=="function"?B.call(F,L,R):B,R==null)break e;L=U({},L,R);break e;case 2:On=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,R=l.effects,R===null?l.effects=[c]:R.push(c))}else F={eventTime:F,lane:R,tag:c.tag,payload:c.payload,callback:c.callback,next:null},N===null?(E=N=F,h=L):N=N.next=F,u|=R;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;R=c,c=R.next,R.next=null,l.lastBaseUpdate=R,l.shared.pending=null}}while(!0);if(N===null&&(h=L),l.baseState=h,l.firstBaseUpdate=E,l.lastBaseUpdate=N,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=L}}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{we=n,is.transition=r}}function $a(){return Rt().memoizedState}function Od(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 Id(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,bo(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){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ho(e,n)}}var Mi={readContext:Ct,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},Dd={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=Od.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=zd.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(),Qe===null)throw Error(o(349));or&30||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=Qe.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?vt&1073741824&&(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 Vd(e,t){switch(Go(t),t.tag){case 1:return ct(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ur(),Ae(at),Ae(Je),ls(),e=t.flags,e&65536&&!(e&128)?(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 qo(t.type._context),null;case 22:case 23:return Ds(),null;case 24:return null;default:return null}}var Di=!1,tt=!1,Gd=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 Qd(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,N=0,L=e,R=null;t:for(;;){for(var F;L!==n||l!==0&&L.nodeType!==3||(c=u+l),L!==i||r!==0&&L.nodeType!==3||(h=u+r),L.nodeType===3&&(u+=L.nodeValue.length),(F=L.firstChild)!==null;)R=L,L=F;for(;;){if(L===e)break t;if(R===n&&++E===l&&(c=u),R===i&&++N===r&&(h=u),(F=L.nextSibling)!==null)break;L=R,R=L.parentNode}L=F}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)switch(t.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var W=B.memoizedProps,Fe=B.memoizedState,k=t.stateNode,m=k.getSnapshotBeforeUpdate(t.elementType===t.type?W:Ft(t.type,W),Fe);k.__reactInternalSnapshotBeforeUpdate=m}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(M){De(t,t.return,M)}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[Nd],delete t[Ld])),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 Xe=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(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Zl,n)}catch{}switch(n.tag){case 5:tt||Br(n,t);case 6:var r=Xe,l=Ut;Xe=null,Dn(e,t,n),Xe=r,Ut=l,Xe!==null&&(Ut?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(Ut?(e=Xe,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),rl(e)):$o(Xe,n.stateNode));break;case 4:r=Xe,l=Ut,Xe=n.stateNode.containerInfo,Ut=!0,Dn(e,t,n),Xe=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||i&4)&&_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 Gd),t.forEach(function(r){var l=tp.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,ue&6)throw Error(o(331));var l=ue;for(ue|=4,$=e.current;$!==null;){var i=$,u=i.child;if($.flags&16){var c=i.deletions;if(c!==null){for(var h=0;hle()-Ps?ar(e,0):Ls|=n),pt(e,t)}function Pc(e,t){t===0&&(e.mode&1?(t=Jl,Jl<<=1,!(Jl&130023424)&&(Jl=4194304)):t=1);var n=rt();e=an(e,t),e!==null&&(Jr(e,t,n),pt(e,n))}function ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pc(e,n)}function tp(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||at.current)ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ft=!1,Hd(e,t,n);ft=!!(e.flags&131072)}else ft=!1,Me&&t.flags&1048576&&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,Je.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,ct(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=rp(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=Ja(null,t,r,e,n);break e;case 14:t=ba(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(yt=Pn(t.stateNode.containerInfo.firstChild),gt=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),Ja(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&&!at.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 N=E.pending;N===null?h.next=h:(h.next=N.next,N.next=h),E.pending=h}}i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),Jo(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),Jo(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),ba(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,ct(r)?(e=!0,yi(t)):e=!1,Fr(t,n),Ga(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 np(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 np(e,t,n,r)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rp(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Te)return 11;if(e===st)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 Qi(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 Se:return fr(n.children,l,i,t);case ce: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 ke:return Yi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case re:u=10;break e;case fe:u=9;break e;case Te:u=11;break e;case st: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=ke,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 lp(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 lp(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 ip(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=vp(),Ys.exports}var Qc;function wp(){if(Qc)return eo;Qc=1;var d=kp();return eo.createRoot=d.createRoot,eo.hydrateRoot=d.hydrateRoot,eo}var xp=wp();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 df(d){hr=d}const Bl={exec:()=>null};function _e(d,s=""){let o=typeof d=="string"?d:d.source;const a={replace:(f,p)=>{let v=typeof p=="string"?p:p.source;return v=v.replace(it.caret,"$1"),o=o.replace(f,v),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")},Sp=/^(?:[ \t]*(?:\n|$))+/,Ep=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_p=/^ {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+|$)/,Tp=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pf=/(?:[*+-]|\d{1,9}[.)])/,hf=_e(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,pf).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]+)*)/,Cp=/^[^\n]+/,au=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Rp=_e(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",au).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Np=_e(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pf).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=/|$))/,Lp=_e("^ {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(),mf=_e(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(),Pp=_e(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mf).getRegex(),fu={blockquote:Pp,code:Ep,def:Rp,fences:_p,heading:Tp,hr:Wl,html:Lp,lheading:hf,list:Np,newline:Sp,paragraph:mf,table:Bl,text:Cp},Yc=_e("^ *([^\\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(),Ap={...fu,table:Yc,paragraph:_e(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()},Mp={...fu,html:_e(`^ *(?: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:_e(uu).replace("hr",Wl).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",hf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zp=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Op=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gf=/^( {2,}|\\)\n(?!\s*$)/,Ip=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Bp=_e(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,ao).getRegex(),vf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Hp=_e(vf,"gu").replace(/notPunctSpace/g,yf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Wp=_e(vf,"gu").replace(/notPunctSpace/g,Up).replace(/punctSpace/g,Fp).replace(/punct/g,jp).getRegex(),Vp=_e("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Gp=_e(/\\(punct)/,"gu").replace(/punct/g,ao).getRegex(),Qp=_e(/^<(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(),Yp=_e(cu).replace("(?:-->|$)","-->").getRegex(),Xp=_e("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Yp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),io=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Kp=_e(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),kf=_e(/^!?\[(label)\]\[(ref)\]/).replace("label",io).replace("ref",au).getRegex(),wf=_e(/^!?\[(ref)\](?:\[\])?/).replace("ref",au).getRegex(),Zp=_e("reflink|nolink(?!\\()","g").replace("reflink",kf).replace("nolink",wf).getRegex(),pu={_backpedal:Bl,anyPunctuation:Gp,autolink:Qp,blockSkip:$p,br:gf,code:Op,del:Bl,emStrongLDelim:Bp,emStrongRDelimAst:Hp,emStrongRDelimUnd:Vp,escape:zp,link:Kp,nolink:wf,punctuation:Dp,reflink:kf,reflinkSearch:Zp,tag:Xp,text:Ip,url:Bl},qp={...pu,link:_e(/^!?\[(label)\]\((.*?)\)/).replace("label",io).getRegex(),reflink:_e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",io).getRegex()},tu={...pu,emStrongRDelimAst:Wp,url:_e(/^((?: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]*?(?:(?=[\\":">",'"':""","'":"'"},Xc=d=>bp[d];function qt(d,s){if(s){if(it.escapeTest.test(d))return d.replace(it.escapeReplace,Xc)}else if(it.escapeTestNoEncode.test(d))return d.replace(it.escapeReplaceNoEncode,Xc);return d}function Kc(d){try{d=encodeURI(d).replace(it.percentDecode,"%")}catch{return null}return d}function Zc(d,s){var p;const o=d.replace(it.findPipe,(v,w,T)=>{let _=!1,S=w;for(;--S>=0&&T[S]==="\\";)_=!_;return _?"|":" |"}),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 v=p.match(o.other.beginningSpace);if(v===null)return p;const[w]=v;return w.length>=f.length?p.slice(f.length):p}).join(` +`)}class oo{constructor(s){Ce(this,"options");Ce(this,"rules");Ce(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=th(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 v=[];for(;a.length>0;){let w=!1;const T=[];let _;for(_=0;_1,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 v=this.rules.other.listItemRegex(a);let w=!1;for(;s;){let _=!1,S="",O="";if(!(o=v.exec(s))||this.rules.block.hr.test(s))break;S=o[0],s=s.substring(S.length);let P=o[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,ye=>" ".repeat(3*ye.length)),I=s.split(` +`,1)[0],G=!P.trim(),D=0;if(this.options.pedantic?(D=2,O=P.trimStart()):G?D=o[1].length+1:(D=o[2].search(this.rules.other.nonSpaceChar),D=D>4?1:D,O=P.slice(D),D+=o[1].length),G&&this.rules.other.blankLine.test(I)&&(S+=I+` +`,s=s.substring(I.length+1),_=!0),!_){const ye=this.rules.other.nextBulletRegex(D),Re=this.rules.other.hrRegex(D),ee=this.rules.other.fencesBeginRegex(D),he=this.rules.other.headingBeginRegex(D),te=this.rules.other.htmlBeginRegex(D);for(;s;){const Se=s.split(` +`,1)[0];let ce;if(I=Se,this.options.pedantic?(I=I.replace(this.rules.other.listReplaceNesting," "),ce=I):ce=I.replace(this.rules.other.tabCharGlobal," "),ee.test(I)||he.test(I)||te.test(I)||ye.test(I)||Re.test(I))break;if(ce.search(this.rules.other.nonSpaceChar)>=D||!I.trim())O+=` +`+ce.slice(D);else{if(G||P.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ee.test(P)||he.test(P)||Re.test(P))break;O+=` +`+I}!G&&!I.trim()&&(G=!0),S+=Se+` +`,s=s.substring(Se.length+1),P=ce.slice(D)}}p.loose||(w?p.loose=!0:this.rules.other.doubleBlankLine.test(S)&&(w=!0));let X=null,ae;this.options.gfm&&(X=this.rules.other.listIsTask.exec(O),X&&(ae=X[0]!=="[ ] ",O=O.replace(this.rules.other.listReplaceTask,""))),p.items.push({type:"list_item",raw:S,task:!!X,checked:ae,loose:!1,text:O,tokens:[]}),p.raw+=S}const T=p.items.at(-1);if(T)T.raw=T.raw.trimEnd(),T.text=T.text.trimEnd();else return;p.raw=p.raw.trimEnd();for(let _=0;_P.type==="space"),O=S.length>0&&S.some(P=>this.rules.other.anyLine.test(P.raw));p.loose=O}if(p.loose)for(let _=0;_({text:_,tokens:this.lexer.inline(_),header:!1,align:v.align[S]})));return v}}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 v=Ml(a.slice(0,-1),"\\");if((a.length-v.length)%2===0)return}else{const v=eh(o[2],"()");if(v>-1){const T=(o[0].indexOf("!")===0?5:4)+o[1].length+v;o[2]=o[2].substring(0,v),o[0]=o[0].substring(0,T).trim(),o[3]=""}}let f=o[2],p="";if(this.options.pedantic){const v=this.rules.other.pedanticHrefTitle.exec(f);v&&(f=v[1],p=v[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)),qc(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 v=a[0].charAt(0);return{type:"text",raw:v,text:v}}return qc(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 v=[...f[0]].length-1;let w,T,_=v,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+v);(f=O.exec(o))!=null;){if(w=f[1]||f[2]||f[3]||f[4]||f[5]||f[6],!w)continue;if(T=[...w].length,f[3]||f[4]){_+=T;continue}else if((f[5]||f[6])&&v%3&&!((v+T)%3)){S+=T;continue}if(_-=T,_>0)continue;T=Math.min(T,T+_+S);const P=[...f[0]][0].length,I=s.slice(0,v+f.index+P+T);if(Math.min(v,T)%2){const D=I.slice(1,-1);return{type:"em",raw:I,text:D,tokens:this.lexer.inlineTokens(D)}}const G=I.slice(2,-2);return{type:"strong",raw:I,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 v;do v=o[0],o[0]=((a=this.rules.inline._backpedal.exec(o[0]))==null?void 0:a[0])??"";while(v!==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){Ce(this,"tokens");Ce(this,"options");Ce(this,"state");Ce(this,"tokenizer");Ce(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(w=_.call({lexer:this},s,o))?(s=s.substring(w.raw.length),o.push(w),!0):!1))continue;if(w=this.tokenizer.space(s)){s=s.substring(w.raw.length);const _=o.at(-1);w.raw.length===1&&_!==void 0?_.raw+=` +`:o.push(w);continue}if(w=this.tokenizer.code(s)){s=s.substring(w.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="paragraph"||(_==null?void 0:_.type)==="text"?(_.raw+=` +`+w.raw,_.text+=` +`+w.text,this.inlineQueue.at(-1).src=_.text):o.push(w);continue}if(w=this.tokenizer.fences(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.heading(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.hr(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.blockquote(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.list(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.html(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.def(s)){s=s.substring(w.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="paragraph"||(_==null?void 0:_.type)==="text"?(_.raw+=` +`+w.raw,_.text+=` +`+w.raw,this.inlineQueue.at(-1).src=_.text):this.tokens.links[w.tag]||(this.tokens.links[w.tag]={href:w.href,title:w.title});continue}if(w=this.tokenizer.table(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.lheading(s)){s=s.substring(w.raw.length),o.push(w);continue}let T=s;if((v=this.options.extensions)!=null&&v.startBlock){let _=1/0;const S=s.slice(1);let O;this.options.extensions.startBlock.forEach(P=>{O=P.call({lexer:this},S),typeof O=="number"&&O>=0&&(_=Math.min(_,O))}),_<1/0&&_>=0&&(T=s.substring(0,_+1))}if(this.state.top&&(w=this.tokenizer.paragraph(T))){const _=o.at(-1);a&&(_==null?void 0:_.type)==="paragraph"?(_.raw+=` +`+w.raw,_.text+=` +`+w.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=_.text):o.push(w),a=T.length!==s.length,s=s.substring(w.raw.length);continue}if(w=this.tokenizer.text(s)){s=s.substring(w.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="text"?(_.raw+=` +`+w.raw,_.text+=` +`+w.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=_.text):o.push(w);continue}if(s){const _="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(_);break}else throw new Error(_)}}return this.state.top=!0,o}inline(s,o=[]){return this.inlineQueue.push({src:s,tokens:o}),o}inlineTokens(s,o=[]){var w,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,v="";for(;s;){p||(v=""),p=!1;let S;if((T=(w=this.options.extensions)==null?void 0:w.inline)!=null&&T.some(P=>(S=P.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 P=o.at(-1);S.type==="text"&&(P==null?void 0:P.type)==="text"?(P.raw+=S.raw,P.text+=S.text):o.push(S);continue}if(S=this.tokenizer.emStrong(s,a,v)){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((_=this.options.extensions)!=null&&_.startInline){let P=1/0;const I=s.slice(1);let G;this.options.extensions.startInline.forEach(D=>{G=D.call({lexer:this},I),typeof G=="number"&&G>=0&&(P=Math.min(P,G))}),P<1/0&&P>=0&&(O=s.substring(0,P+1))}if(S=this.tokenizer.inlineText(O)){s=s.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(v=S.raw.slice(-1)),p=!0;const P=o.at(-1);(P==null?void 0:P.type)==="text"?(P.raw+=S.raw,P.text+=S.text):o.push(S);continue}if(s){const P="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(P);break}else throw new Error(P)}}return o}}class so{constructor(s){Ce(this,"options");Ce(this,"parser");this.options=s||hr}space(s){return""}code({text:s,lang:o,escaped:a}){var v;const f=(v=(o||"").match(it.notSpaceStart))==null?void 0:v[0],p=s.replace(it.endingNewline,"")+` +`;return f?'
'+(a?p:qt(p,!0))+`
+`:"
"+(a?p:qt(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 w=0;w +`+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+" "+qt(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`${qt(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 v='
    ",v}image({href:s,title:o,text:a}){const f=Kc(s);if(f===null)return qt(a);s=f;let p=`${a}{const _=w[T].flat(1/0);a=a.concat(this.walkTokens(_,o))}):w.tokens&&(a=a.concat(this.walkTokens(w.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 v=o.renderers[p.name];v?o.renderers[p.name]=function(...w){let T=p.renderer.apply(this,w);return T===!1&&(T=v.apply(this,w)),T}: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 v=o[p.level];v?v.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 v in a.renderer){if(!(v in p))throw new Error(`renderer '${v}' does not exist`);if(["options","parser"].includes(v))continue;const w=v,T=a.renderer[w],_=p[w];p[w]=(...S)=>{let O=T.apply(p,S);return O===!1&&(O=_.apply(p,S)),O||""}}f.renderer=p}if(a.tokenizer){const p=this.defaults.tokenizer||new oo(this.defaults);for(const v in a.tokenizer){if(!(v in p))throw new Error(`tokenizer '${v}' does not exist`);if(["options","rules","lexer"].includes(v))continue;const w=v,T=a.tokenizer[w],_=p[w];p[w]=(...S)=>{let O=T.apply(p,S);return O===!1&&(O=_.apply(p,S)),O}}f.tokenizer=p}if(a.hooks){const p=this.defaults.hooks||new Hl;for(const v in a.hooks){if(!(v in p))throw new Error(`hook '${v}' does not exist`);if(["options","block"].includes(v))continue;const w=v,T=a.hooks[w],_=p[w];Hl.passThroughHooks.has(v)?p[w]=S=>{if(this.defaults.async)return Promise.resolve(T.call(p,S)).then(P=>_.call(p,P));const O=T.call(p,S);return _.call(p,O)}:p[w]=(...S)=>{let O=T.apply(p,S);return O===!1&&(O=_.apply(p,S)),O}}f.hooks=p}if(a.walkTokens){const p=this.defaults.walkTokens,v=a.walkTokens;f.walkTokens=function(w){let T=[];return T.push(v.call(this,w)),p&&(T=T.concat(p.call(this,w))),T}}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},v={...this.defaults,...p},w=this.onError(!!v.silent,!!v.async);if(this.defaults.async===!0&&p.async===!1)return w(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 w(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return w(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));v.hooks&&(v.hooks.options=v,v.hooks.block=s);const T=v.hooks?v.hooks.provideLexer():s?Pt.lex:Pt.lexInline,_=v.hooks?v.hooks.provideParser():s?At.parse:At.parseInline;if(v.async)return Promise.resolve(v.hooks?v.hooks.preprocess(a):a).then(S=>T(S,v)).then(S=>v.hooks?v.hooks.processAllTokens(S):S).then(S=>v.walkTokens?Promise.all(this.walkTokens(S,v.walkTokens)).then(()=>S):S).then(S=>_(S,v)).then(S=>v.hooks?v.hooks.postprocess(S):S).catch(w);try{v.hooks&&(a=v.hooks.preprocess(a));let S=T(a,v);v.hooks&&(S=v.hooks.processAllTokens(S)),v.walkTokens&&this.walkTokens(S,v.walkTokens);let O=_(S,v);return v.hooks&&(O=v.hooks.postprocess(O)),O}catch(S){return w(S)}}}onError(s,o){return a=>{if(a.message+=` +Please report this to https://github.com/markedjs/marked.`,s){const f="

    An error occurred:

    "+qt(a.message+"",!0)+"
    ";return o?Promise.resolve(f):f}if(o)return Promise.reject(a);throw a}}}const pr=new nh;function xe(d,s){return pr.parse(d,s)}xe.options=xe.setOptions=function(d){return pr.setOptions(d),xe.defaults=pr.defaults,df(xe.defaults),xe};xe.getDefaults=su;xe.defaults=hr;xe.use=function(...d){return pr.use(...d),xe.defaults=pr.defaults,df(xe.defaults),xe};xe.walkTokens=function(d,s){return pr.walkTokens(d,s)};xe.parseInline=pr.parseInline;xe.Parser=At;xe.parser=At.parse;xe.Renderer=so;xe.TextRenderer=hu;xe.Lexer=Pt;xe.lexer=Pt.lex;xe.Tokenizer=oo;xe.Hooks=Hl;xe.parse=xe;xe.options;xe.setOptions;xe.use;xe.walkTokens;xe.parseInline;At.parse;Pt.lex;/*! @license DOMPurify 3.2.3 | (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.3/LICENSE */const{entries:xf,setPrototypeOf:Jc,isFrozen:rh,getPrototypeOf:lh,getOwnPropertyDescriptor:ih}=Object;let{freeze:ot,seal:Mt,create:Sf}=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=kt(Array.prototype.forEach),bc=kt(Array.prototype.pop),zl=kt(Array.prototype.push),lo=kt(String.prototype.toLowerCase),Zs=kt(String.prototype.toString),ef=kt(String.prototype.match),Ol=kt(String.prototype.replace),oh=kt(String.prototype.indexOf),sh=kt(String.prototype.trim),Ht=kt(Object.prototype.hasOwnProperty),lt=kt(RegExp.prototype.test),Il=uh(TypeError);function kt(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;Jc&&Jc(d,null);let a=s.length;for(;a--;){let f=s[a];if(typeof f=="string"){const p=o(f);p!==f&&(rh(s)||(s[a]=p),f=p)}d[f]=!0}return d}function ah(d){for(let s=0;s/gm),hh=Mt(/\$\{[\w\W]*}/gm),mh=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),gh=Mt(/^aria-[\-\w]+$/),Ef=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yh=Mt(/^(?:\w+script|data):/i),vh=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_f=Mt(/^html$/i),kh=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i);var of=Object.freeze({__proto__:null,ARIA_ATTR:gh,ATTR_WHITESPACE:vh,CUSTOM_ELEMENT:kh,DATA_ATTR:mh,DOCTYPE_NAME:_f,ERB_EXPR:ph,IS_ALLOWED_URI:Ef,IS_SCRIPT_OR_DATA:yh,MUSTACHE_EXPR:dh,TMPLIT_EXPR:hh});const jl={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wh=function(){return typeof window>"u"?null:window},xh=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(v){return v},createScriptURL(v){return v}})}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 Tf(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wh();const s=Y=>Tf(Y);if(s.version="3.2.3",s.removed=[],!d||!d.document||d.document.nodeType!==jl.document)return s.isSupported=!1,s;let{document:o}=d;const a=o,f=a.currentScript,{DocumentFragment:p,HTMLTemplateElement:v,Node:w,Element:T,NodeFilter:_,NamedNodeMap:S=d.NamedNodeMap||d.MozNamedAttrMap,HTMLFormElement:O,DOMParser:P,trustedTypes:I}=d,G=T.prototype,D=Dl(G,"cloneNode"),X=Dl(G,"remove"),ae=Dl(G,"nextSibling"),ye=Dl(G,"childNodes"),Re=Dl(G,"parentNode");if(typeof v=="function"){const Y=o.createElement("template");Y.content&&Y.content.ownerDocument&&(o=Y.content.ownerDocument)}let ee,he="";const{implementation:te,createNodeIterator:Se,createDocumentFragment:ce,getElementsByTagName:wt}=o,{importNode:re}=a;let fe=sf();s.isSupported=typeof xf=="function"&&typeof Re=="function"&&te&&te.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Te,ERB_EXPR:ve,TMPLIT_EXPR:ze,DATA_ATTR:st,ARIA_ATTR:We,IS_SCRIPT_OR_DATA:ke,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:J}=of;let{IS_ALLOWED_URI:U}=of,y=null;const C=se({},[...tf,...qs,...Js,...bs,...nf]);let Q=null;const ne=se({},[...rf,...eu,...lf,...ro]);let K=Object.seal(Sf(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,me=null,de=!0,Ee=!0,Ze=!1,Vn=!0,Jt=!1,pn=!0,zt=!1,mr=!1,gr=!1,Wt=!1,Gn=!1,hn=!1,mn=!0,bt=!1;const Gr="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 Qn=null;const Qr=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,Xn=!1,Kn=null;const Yr=se({},[kr,Yn,xt],Zs);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"],Gl="text/html";let je=null,rn=null;const Ql=o.createElement("form"),wr=function(g){return g instanceof RegExp||g instanceof Function},xr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(rn&&rn===g)){if((!g||typeof g!="object")&&(g={}),g=dr(g),St=Vl.indexOf(g.PARSER_MEDIA_TYPE)===-1?Gl:g.PARSER_MEDIA_TYPE,je=St==="application/xhtml+xml"?Zs:lo,y=Ht(g,"ALLOWED_TAGS")?se({},g.ALLOWED_TAGS,je):C,Q=Ht(g,"ALLOWED_ATTR")?se({},g.ALLOWED_ATTR,je):ne,Kn=Ht(g,"ALLOWED_NAMESPACES")?se({},g.ALLOWED_NAMESPACES,Zs):Yr,nn=Ht(g,"ADD_URI_SAFE_ATTR")?se(dr(yn),g.ADD_URI_SAFE_ATTR,je):yn,Qn=Ht(g,"ADD_DATA_URI_TAGS")?se(dr(Qr),g.ADD_DATA_URI_TAGS,je):Qr,tn=Ht(g,"FORBID_CONTENTS")?se({},g.FORBID_CONTENTS,je):vr,ie=Ht(g,"FORBID_TAGS")?se({},g.FORBID_TAGS,je):{},me=Ht(g,"FORBID_ATTR")?se({},g.FORBID_ATTR,je):{},en=Ht(g,"USE_PROFILES")?g.USE_PROFILES:!1,de=g.ALLOW_ARIA_ATTR!==!1,Ee=g.ALLOW_DATA_ATTR!==!1,Ze=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Jt=g.SAFE_FOR_TEMPLATES||!1,pn=g.SAFE_FOR_XML!==!1,zt=g.WHOLE_DOCUMENT||!1,Wt=g.RETURN_DOM||!1,Gn=g.RETURN_DOM_FRAGMENT||!1,hn=g.RETURN_TRUSTED_TYPE||!1,gr=g.FORCE_BODY||!1,mn=g.SANITIZE_DOM!==!1,bt=g.SANITIZE_NAMED_PROPS||!1,yr=g.KEEP_CONTENT!==!1,gn=g.IN_PLACE||!1,U=g.ALLOWED_URI_REGEXP||Ef,vn=g.NAMESPACE||xt,kn=g.MATHML_TEXT_INTEGRATION_POINTS||kn,wn=g.HTML_INTEGRATION_POINTS||wn,K=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&wr(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&wr(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jt&&(Ee=!1),Gn&&(Wt=!0),en&&(y=se({},nf),Q=[],en.html===!0&&(se(y,tf),se(Q,rf)),en.svg===!0&&(se(y,qs),se(Q,eu),se(Q,ro)),en.svgFilters===!0&&(se(y,Js),se(Q,eu),se(Q,ro)),en.mathMl===!0&&(se(y,bs),se(Q,lf),se(Q,ro))),g.ADD_TAGS&&(y===C&&(y=dr(y)),se(y,g.ADD_TAGS,je)),g.ADD_ATTR&&(Q===ne&&(Q=dr(Q)),se(Q,g.ADD_ATTR,je)),g.ADD_URI_SAFE_ATTR&&se(nn,g.ADD_URI_SAFE_ATTR,je),g.FORBID_CONTENTS&&(tn===vr&&(tn=dr(tn)),se(tn,g.FORBID_CONTENTS,je)),yr&&(y["#text"]=!0),zt&&se(y,["html","head","body"]),y.table&&(se(y,["tbody"]),delete ie.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=g.TRUSTED_TYPES_POLICY,he=ee.createHTML("")}else ee===void 0&&(ee=xh(I,f)),ee!==null&&typeof he=="string"&&(he=ee.createHTML(""));ot&&ot(g),rn=g}},Sn=se({},[...qs,...Js,...ch]),Sr=se({},[...bs,...fh]),Zn=function(g){let A=Re(g);(!A||!A.tagName)&&(A={namespaceURI:vn,tagName:"template"});const H=lo(g.tagName),Ne=lo(A.tagName);return Kn[g.namespaceURI]?g.namespaceURI===Yn?A.namespaceURI===xt?H==="svg":A.namespaceURI===kr?H==="svg"&&(Ne==="annotation-xml"||kn[Ne]):!!Sn[H]:g.namespaceURI===kr?A.namespaceURI===xt?H==="math":A.namespaceURI===Yn?H==="math"&&wn[Ne]:!!Sr[H]:g.namespaceURI===xt?A.namespaceURI===Yn&&!wn[Ne]||A.namespaceURI===kr&&!kn[Ne]?!1:!Sr[H]&&(xn[H]||!Sn[H]):!!(St==="application/xhtml+xml"&&Kn[g.namespaceURI]):!1},Et=function(g){zl(s.removed,{element:g});try{Re(g).removeChild(g)}catch{X(g)}},Vt=function(g,A){try{zl(s.removed,{attribute:A.getAttributeNode(g),from:A})}catch{zl(s.removed,{attribute:null,from:A})}if(A.removeAttribute(g),g==="is")if(Wt||Gn)try{Et(A)}catch{}else try{A.setAttribute(g,"")}catch{}},qn=function(g){let A=null,H=null;if(gr)g=""+g;else{const le=ef(g,/^[\r\n\t ]+/);H=le&&le[0]}St==="application/xhtml+xml"&&vn===xt&&(g=''+g+"");const Ne=ee?ee.createHTML(g):g;if(vn===xt)try{A=new P().parseFromString(Ne,St)}catch{}if(!A||!A.documentElement){A=te.createDocument(vn,"template",null);try{A.documentElement.innerHTML=Xn?he:Ne}catch{}}const Ve=A.body||A.documentElement;return g&&H&&Ve.insertBefore(o.createTextNode(H),Ve.childNodes[0]||null),vn===xt?wt.call(A,zt?"html":"body")[0]:zt?A.documentElement:Ve},Jn=function(g){return Se.call(g.ownerDocument||g,g,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},bn=function(g){return g instanceof O&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof S)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Yl=function(g){return typeof w=="function"&&g instanceof w};function Ot(Y,g,A){no(Y,H=>{H.call(s,g,A,rn)})}const Xl=function(g){let A=null;if(Ot(fe.beforeSanitizeElements,g,null),bn(g))return Et(g),!0;const H=je(g.nodeName);if(Ot(fe.uponSanitizeElement,g,{tagName:H,allowedTags:y}),g.hasChildNodes()&&!Yl(g.firstElementChild)&<(/<[/\w]/g,g.innerHTML)&<(/<[/\w]/g,g.textContent)||g.nodeType===jl.progressingInstruction||pn&&g.nodeType===jl.comment&<(/<[/\w]/g,g.data))return Et(g),!0;if(!y[H]||ie[H]){if(!ie[H]&&Xr(H)&&(K.tagNameCheck instanceof RegExp&<(K.tagNameCheck,H)||K.tagNameCheck instanceof Function&&K.tagNameCheck(H)))return!1;if(yr&&!tn[H]){const Ne=Re(g)||g.parentNode,Ve=ye(g)||g.childNodes;if(Ve&&Ne){const le=Ve.length;for(let qe=le-1;qe>=0;--qe){const ut=D(Ve[qe],!0);ut.__removalCount=(g.__removalCount||0)+1,Ne.insertBefore(ut,ae(g))}}}return Et(g),!0}return g instanceof T&&!Zn(g)||(H==="noscript"||H==="noembed"||H==="noframes")&<(/<\/no(script|embed|frames)/i,g.innerHTML)?(Et(g),!0):(Jt&&g.nodeType===jl.text&&(A=g.textContent,no([Te,ve,ze],Ne=>{A=Ol(A,Ne," ")}),g.textContent!==A&&(zl(s.removed,{element:g.cloneNode()}),g.textContent=A)),Ot(fe.afterSanitizeElements,g,null),!1)},Gt=function(g,A,H){if(mn&&(A==="id"||A==="name")&&(H in o||H in Ql))return!1;if(!(Ee&&!me[A]&<(st,A))){if(!(de&<(We,A))){if(!Q[A]||me[A]){if(!(Xr(g)&&(K.tagNameCheck instanceof RegExp&<(K.tagNameCheck,g)||K.tagNameCheck instanceof Function&&K.tagNameCheck(g))&&(K.attributeNameCheck instanceof RegExp&<(K.attributeNameCheck,A)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(A))||A==="is"&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&<(K.tagNameCheck,H)||K.tagNameCheck instanceof Function&&K.tagNameCheck(H))))return!1}else if(!nn[A]){if(!lt(U,Ol(H,j,""))){if(!((A==="src"||A==="xlink:href"||A==="href")&&g!=="script"&&oh(H,"data:")===0&&Qn[g])){if(!(Ze&&!lt(ke,Ol(H,j,"")))){if(H)return!1}}}}}}return!0},Xr=function(g){return g!=="annotation-xml"&&ef(g,J)},Kr=function(g){Ot(fe.beforeSanitizeAttributes,g,null);const{attributes:A}=g;if(!A||bn(g))return;const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let Ne=A.length;for(;Ne--;){const Ve=A[Ne],{name:le,namespaceURI:qe,value:ut}=Ve,En=je(le);let Ue=le==="value"?ut:sh(ut);if(H.attrName=En,H.attrValue=Ue,H.keepAttr=!0,H.forceKeepAttr=void 0,Ot(fe.uponSanitizeAttribute,g,H),Ue=H.attrValue,bt&&(En==="id"||En==="name")&&(Vt(le,g),Ue=Gr+Ue),pn&<(/((--!?|])>)|<\/(style|title)/i,Ue)){Vt(le,g);continue}if(H.forceKeepAttr||(Vt(le,g),!H.keepAttr))continue;if(!Vn&<(/\/>/i,Ue)){Vt(le,g);continue}Jt&&no([Te,ve,ze],Zr=>{Ue=Ol(Ue,Zr," ")});const Kl=je(g.nodeName);if(Gt(Kl,En,Ue)){if(ee&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!qe)switch(I.getAttributeType(Kl,En)){case"TrustedHTML":{Ue=ee.createHTML(Ue);break}case"TrustedScriptURL":{Ue=ee.createScriptURL(Ue);break}}try{qe?g.setAttributeNS(qe,le,Ue):g.setAttribute(le,Ue),bn(g)?Et(g):bc(s.removed)}catch{}}}Ot(fe.afterSanitizeAttributes,g,null)},co=function Y(g){let A=null;const H=Jn(g);for(Ot(fe.beforeSanitizeShadowDOM,g,null);A=H.nextNode();)Ot(fe.uponSanitizeShadowNode,A,null),Xl(A),Kr(A),A.content instanceof p&&Y(A.content);Ot(fe.afterSanitizeShadowDOM,g,null)};return s.sanitize=function(Y){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=null,H=null,Ne=null,Ve=null;if(Xn=!Y,Xn&&(Y=""),typeof Y!="string"&&!Yl(Y))if(typeof Y.toString=="function"){if(Y=Y.toString(),typeof Y!="string")throw Il("dirty is not a string, aborting")}else throw Il("toString is not a function");if(!s.isSupported)return Y;if(mr||xr(g),s.removed=[],typeof Y=="string"&&(gn=!1),gn){if(Y.nodeName){const ut=je(Y.nodeName);if(!y[ut]||ie[ut])throw Il("root node is forbidden and cannot be sanitized in-place")}}else if(Y instanceof w)A=qn(""),H=A.ownerDocument.importNode(Y,!0),H.nodeType===jl.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?A=H:A.appendChild(H);else{if(!Wt&&!Jt&&!zt&&Y.indexOf("<")===-1)return ee&&hn?ee.createHTML(Y):Y;if(A=qn(Y),!A)return Wt?null:hn?he:""}A&&gr&&Et(A.firstChild);const le=Jn(gn?Y:A);for(;Ne=le.nextNode();)Xl(Ne),Kr(Ne),Ne.content instanceof p&&co(Ne.content);if(gn)return Y;if(Wt){if(Gn)for(Ve=ce.call(A.ownerDocument);A.firstChild;)Ve.appendChild(A.firstChild);else Ve=A;return(Q.shadowroot||Q.shadowrootmode)&&(Ve=re.call(a,Ve,!0)),Ve}let qe=zt?A.outerHTML:A.innerHTML;return zt&&y["!doctype"]&&A.ownerDocument&&A.ownerDocument.doctype&&A.ownerDocument.doctype.name&<(_f,A.ownerDocument.doctype.name)&&(qe=" +`+qe),Jt&&no([Te,ve,ze],ut=>{qe=Ol(qe,ut," ")}),ee&&hn?ee.createHTML(qe):qe},s.setConfig=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(Y),mr=!0},s.clearConfig=function(){rn=null,mr=!1},s.isValidAttribute=function(Y,g,A){rn||xr({});const H=je(Y),Ne=je(g);return Gt(H,Ne,A)},s.addHook=function(Y,g){typeof g=="function"&&zl(fe[Y],g)},s.removeHook=function(Y){return bc(fe[Y])},s.removeHooks=function(Y){fe[Y]=[]},s.removeAllHooks=function(){fe=sf()},s}var Sh=Tf();function Eh(d){return z.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:[z.jsx("path",{d:"M12 8V4H8"}),z.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),z.jsx("path",{d:"M2 14h2"}),z.jsx("path",{d:"M20 14h2"}),z.jsx("path",{d:"M15 13v2"}),z.jsx("path",{d:"M9 13v2"})]})}function _h(d){return z.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:[z.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),z.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?z.jsx(Rh,{className:"mt-2",dynamic:!0,children:z.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:Nh(s)}})}):z.jsxs("span",{className:"h-6 flex items-center gap-1",children:[z.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse"}),z.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-200"}),z.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-400"})]})})})]}):z.jsxs(z.Fragment,{children:[z.jsx(_h,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),z.jsx("div",{className:"bg-blue-500 text-white rounded-lg p-4",children:z.jsx("p",{className:"min-h-6 overflow-wrap-anywhere",children:s})})]})})}function Ph({messages:d}){const s=d.length===0;return z.jsx("div",{className:`flex-1 p-6 max-w-[960px] w-full ${s?"flex flex-col items-center justify-end":"space-y-4"}`,children:z.jsx(Th,{children:s?z.jsx("div",{className:"text-xl",children:"Ready!"}):d.map((o,a)=>z.jsx(Lh,{...o},`message-${a}`))})})}function cf(d){return z.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:[z.jsx("path",{d:"M5 12h14"}),z.jsx("path",{d:"m12 5 7 7-7 7"})]})}function Ah(d){return z.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:[z.jsx("path",{d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),z.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 Mh(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 zh({text:d,percentage:s,total:o}){return s??(s=0),z.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:z.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${s}%`},children:[d," (",s.toFixed(2),"%",isNaN(o)?"":` of ${Mh(o)}`,")"]})})}const Oh=!!navigator.gpu,Ih=120,Dh=["知識蒸留について簡単に教えてください。","マシーンラーニングについての詩を書いてください。","n番目のフィボナッチ数を計算するPythonコードを書いてください。"];function jh(){const d=ge.useRef(null),s=ge.useRef(null),o=ge.useRef(null),[a,f]=ge.useState(null),[p,v]=ge.useState(null),[w,T]=ge.useState(""),[_,S]=ge.useState([]),[O,P]=ge.useState(!1),[I,G]=ge.useState(""),[D,X]=ge.useState([]),[ae,ye]=ge.useState(null),[Re,ee]=ge.useState(null),[he,te]=ge.useState(!1);function Se(re){X(fe=>[...fe,{role:"user",content:re}]),ye(null),P(!0),G("")}function ce(){d.current.postMessage({type:"interrupt"})}ge.useEffect(()=>{wt()},[I]);function wt(){if(!s.current)return;const re=s.current;re.style.height="auto";const fe=Math.min(Math.max(re.scrollHeight,24),200);re.style.height=`${fe}px`}return ge.useEffect(()=>{d.current||(d.current=new Worker(new URL("/assets/worker-CBh-NAfO.js",import.meta.url),{type:"module"}),d.current.postMessage({type:"check"}));const re=Te=>{switch(Te.data.status){case"loading":f("loading"),T(Te.data.data);break;case"initiate":S(ve=>[...ve,Te.data]);break;case"progress":S(ve=>ve.map(ze=>ze.file===Te.data.file?{...ze,...Te.data}:ze));break;case"done":S(ve=>ve.filter(ze=>ze.file!==Te.data.file));break;case"ready":f("ready");break;case"start":X(ve=>[...ve,{role:"assistant",content:""}]);break;case"update":{const{output:ve,tps:ze,numTokens:st}=Te.data;ye(ze),ee(st),X(We=>{const ke=[...We],j=ke.at(-1);return ke[ke.length-1]={...j,content:j.content+ve},ke})}break;case"complete":P(!1);break;case"error":v(Te.data.data);break}},fe=Te=>{console.error("Worker error:",Te)};return d.current.addEventListener("message",re),d.current.addEventListener("error",fe),()=>{d.current.removeEventListener("message",re),d.current.removeEventListener("error",fe)}},[]),ge.useEffect(()=>{D.filter(re=>re.role==="user").length!==0&&D.at(-1).role!=="assistant"&&(ye(null),d.current.postMessage({type:"generate",data:D}))},[D,O]),ge.useEffect(()=>{if(!o.current||!O)return;const re=o.current;re.scrollHeight-re.scrollTop-re.clientHeight{d.current.postMessage({type:"load"}),f("loading")},disabled:a!==null||p!==null,children:"Load model"})]})]}),a==="loading"&&z.jsx(z.Fragment,{children:z.jsxs("div",{className:"w-full max-w-[500px] text-left mx-auto p-4 bottom-0 mt-auto",children:[z.jsx("p",{className:"text-center mb-1",children:w}),_.map(({file:re,progress:fe,total:Te},ve)=>z.jsx(zh,{text:re,percentage:fe,total:Te},ve))]})}),a==="ready"&&z.jsxs("div",{ref:o,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[z.jsx(Ph,{messages:D}),D.length===0&&z.jsx("div",{children:Dh.map((re,fe)=>z.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",onClick:()=>Se(re),children:re},fe))}),z.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:ae&&D.length>0&&z.jsxs(z.Fragment,{children:[!O&&z.jsxs("span",{children:["Generated ",Re," tokens in"," ",(Re/ae).toFixed(2)," seconds ("]}),z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:ae.toFixed(2)}),z.jsx("span",{className:"text-gray-500 dark:text-gray-300",children:"tokens/second"})]}),!O&&z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"mr-1",children:")."}),z.jsx("span",{className:"underline cursor-pointer",onClick:()=>{d.current.postMessage({type:"reset"}),X([])},children:"Reset"})]})]})})]}),z.jsxs("div",{className:"mt-2 border border-gray-300 dark:bg-gray-700 rounded-lg w-[600px] max-w-[80%] max-h-[200px] mx-auto relative mb-3 flex",children:[z.jsx("textarea",{ref:s,className:"scrollbar-thin w-[550px] dark:bg-gray-700 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-400 disabled:placeholder-gray-200 resize-none disabled:cursor-not-allowed",placeholder:"Type your message...",type:"text",rows:1,value:I,disabled:a!=="ready",title:a==="ready"?"Model is ready":"Model not loaded yet",onKeyDown:re=>{I.length>0&&!O&&re.key==="Enter"&&!re.shiftKey&&!he&&(re.preventDefault(),Se(I))},onCompositionStart:()=>te(!0),onCompositionEnd:()=>te(!1),onInput:re=>G(re.target.value)}),O?z.jsx("div",{className:"cursor-pointer",onClick:ce,children:z.jsx(Ah,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-3 bottom-3"})}):I.length>0?z.jsx("div",{className:"cursor-pointer",onClick:()=>Se(I),children:z.jsx(cf,{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"})}):z.jsx("div",{children:z.jsx(cf,{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"})})]}),z.jsx("p",{className:"text-xs text-gray-400 text-center mb-3",children:"Disclaimer: Generated content may be inaccurate or false."})]}):z.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",z.jsx("br",{}),"by this browser :("]})}xp.createRoot(document.getElementById("root")).render(z.jsx(ge.StrictMode,{children:z.jsx(jh,{})}));