|
var dp=Object.defineProperty;var pp=(d,s,o)=>s in d?dp(d,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[s]=o;var Se=(d,s,o)=>pp(d,typeof s!="symbol"?s+"":s,o);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))a(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const y of p.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&a(y)}).observe(document,{childList:!0,subtree:!0});function o(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function a(f){if(f.ep)return;f.ep=!0;const p=o(f);fetch(f.href,p)}})();function hp(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Qs={exports:{}},Pl={},Gs={exports:{}},oe={}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Fc;function mp(){if(Fc)return oe;Fc=1;var d=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.iterator;function A(v){return v===null||typeof v!="object"?null:(v=O&&v[O]||v["@@iterator"],typeof v=="function"?v:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,j={};function X(v,C,Y){this.props=v,this.context=C,this.refs=j,this.updater=Y||I}X.prototype.isReactComponent={},X.prototype.setState=function(v,C){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,C,"setState")},X.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function ce(){}ce.prototype=X.prototype;function ge(v,C,Y){this.props=v,this.context=C,this.refs=j,this.updater=Y||I}var Ee=ge.prototype=new ce;Ee.constructor=ge,G(Ee,X.prototype),Ee.isPureReactComponent=!0;var te=Array.isArray,fe=Object.prototype.hasOwnProperty,ne={current:null},_e={key:!0,ref:!0,__self:!0,__source:!0};function Q(v,C,Y){var re,Z={},ie=null,he=null;if(C!=null)for(re in C.ref!==void 0&&(he=C.ref),C.key!==void 0&&(ie=""+C.key),C)fe.call(C,re)&&!_e.hasOwnProperty(re)&&(Z[re]=C[re]);var de=arguments.length-2;if(de===1)Z.children=Y;else if(1<de){for(var we=Array(de),be=0;be<de;be++)we[be]=arguments[be+2];Z.children=we}if(v&&v.defaultProps)for(re in de=v.defaultProps,de)Z[re]===void 0&&(Z[re]=de[re]);return{$$typeof:d,type:v,key:ie,ref:he,props:Z,_owner:ne.current}}function Ie(v,C){return{$$typeof:d,type:v.type,key:C,ref:v.ref,props:v.props,_owner:v._owner}}function Le(v){return typeof v=="object"&&v!==null&&v.$$typeof===d}function ue(v){var C={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(Y){return C[Y]})}var ze=/\/+/g;function Be(v,C){return typeof v=="object"&&v!==null&&v.key!=null?ue(""+v.key):C.toString(36)}function Ke(v,C,Y,re,Z){var ie=typeof v;(ie==="undefined"||ie==="boolean")&&(v=null);var he=!1;if(v===null)he=!0;else switch(ie){case"string":case"number":he=!0;break;case"object":switch(v.$$typeof){case d:case s:he=!0}}if(he)return he=v,Z=Z(he),v=re===""?"."+Be(he,0):re,te(Z)?(Y="",v!=null&&(Y=v.replace(ze,"$&/")+"/"),Ke(Z,C,Y,"",function(be){return be})):Z!=null&&(Le(Z)&&(Z=Ie(Z,Y+(!Z.key||he&&he.key===Z.key?"":(""+Z.key).replace(ze,"$&/")+"/")+v)),C.push(Z)),1;if(he=0,re=re===""?".":re+":",te(v))for(var de=0;de<v.length;de++){ie=v[de];var we=re+Be(ie,de);he+=Ke(ie,C,Y,we,Z)}else if(we=A(v),typeof we=="function")for(v=we.call(v),de=0;!(ie=v.next()).done;)ie=ie.value,we=re+Be(ie,de++),he+=Ke(ie,C,Y,we,Z);else if(ie==="object")throw C=String(v),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.");return he}function ut(v,C,Y){if(v==null)return v;var re=[],Z=0;return Ke(v,re,"","",function(ie){return C.call(Y,ie,Z++)}),re}function De(v){if(v._status===-1){var C=v._result;C=C(),C.then(function(Y){(v._status===0||v._status===-1)&&(v._status=1,v._result=Y)},function(Y){(v._status===0||v._status===-1)&&(v._status=2,v._result=Y)}),v._status===-1&&(v._status=0,v._result=C)}if(v._status===1)return v._result.default;throw v._result}var ke={current:null},D={transition:null},J={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:D,ReactCurrentOwner:ne};function U(){throw Error("act(...) is not supported in production builds of React.")}return oe.Children={map:ut,forEach:function(v,C,Y){ut(v,function(){C.apply(this,arguments)},Y)},count:function(v){var C=0;return ut(v,function(){C++}),C},toArray:function(v){return ut(v,function(C){return C})||[]},only:function(v){if(!Le(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},oe.Component=X,oe.Fragment=o,oe.Profiler=f,oe.PureComponent=ge,oe.StrictMode=a,oe.Suspense=_,oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,oe.act=U,oe.cloneElement=function(v,C,Y){if(v==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+v+".");var re=G({},v.props),Z=v.key,ie=v.ref,he=v._owner;if(C!=null){if(C.ref!==void 0&&(ie=C.ref,he=ne.current),C.key!==void 0&&(Z=""+C.key),v.type&&v.type.defaultProps)var de=v.type.defaultProps;for(we in C)fe.call(C,we)&&!_e.hasOwnProperty(we)&&(re[we]=C[we]===void 0&&de!==void 0?de[we]:C[we])}var we=arguments.length-2;if(we===1)re.children=Y;else if(1<we){de=Array(we);for(var be=0;be<we;be++)de[be]=arguments[be+2];re.children=de}return{$$typeof:d,type:v.type,key:Z,ref:ie,props:re,_owner:he}},oe.createContext=function(v){return v={$$typeof:y,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},v.Provider={$$typeof:p,_context:v},v.Consumer=v},oe.createElement=Q,oe.createFactory=function(v){var C=Q.bind(null,v);return C.type=v,C},oe.createRef=function(){return{current:null}},oe.forwardRef=function(v){return{$$typeof:k,render:v}},oe.isValidElement=Le,oe.lazy=function(v){return{$$typeof:S,_payload:{_status:-1,_result:v},_init:De}},oe.memo=function(v,C){return{$$typeof:T,type:v,compare:C===void 0?null:C}},oe.startTransition=function(v){var C=D.transition;D.transition={};try{v()}finally{D.transition=C}},oe.unstable_act=U,oe.useCallback=function(v,C){return ke.current.useCallback(v,C)},oe.useContext=function(v){return ke.current.useContext(v)},oe.useDebugValue=function(){},oe.useDeferredValue=function(v){return ke.current.useDeferredValue(v)},oe.useEffect=function(v,C){return ke.current.useEffect(v,C)},oe.useId=function(){return ke.current.useId()},oe.useImperativeHandle=function(v,C,Y){return ke.current.useImperativeHandle(v,C,Y)},oe.useInsertionEffect=function(v,C){return ke.current.useInsertionEffect(v,C)},oe.useLayoutEffect=function(v,C){return ke.current.useLayoutEffect(v,C)},oe.useMemo=function(v,C){return ke.current.useMemo(v,C)},oe.useReducer=function(v,C,Y){return ke.current.useReducer(v,C,Y)},oe.useRef=function(v){return ke.current.useRef(v)},oe.useState=function(v){return ke.current.useState(v)},oe.useSyncExternalStore=function(v,C,Y){return ke.current.useSyncExternalStore(v,C,Y)},oe.useTransition=function(){return ke.current.useTransition()},oe.version="18.3.1",oe}var Uc;function ou(){return Uc||(Uc=1,Gs.exports=mp()),Gs.exports} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var $c;function gp(){if($c)return Pl;$c=1;var d=ou(),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,f=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function y(k,_,T){var S,O={},A=null,I=null;T!==void 0&&(A=""+T),_.key!==void 0&&(A=""+_.key),_.ref!==void 0&&(I=_.ref);for(S in _)a.call(_,S)&&!p.hasOwnProperty(S)&&(O[S]=_[S]);if(k&&k.defaultProps)for(S in _=k.defaultProps,_)O[S]===void 0&&(O[S]=_[S]);return{$$typeof:s,type:k,key:A,ref:I,props:O,_owner:f.current}}return Pl.Fragment=o,Pl.jsx=y,Pl.jsxs=y,Pl}var Bc;function yp(){return Bc||(Bc=1,Qs.exports=gp()),Qs.exports}var L=yp(),me=ou();const pf=hp(me);var eo={},Ys={exports:{}},mt={},Ks={exports:{}},Xs={}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Hc;function vp(){return Hc||(Hc=1,function(d){function s(D,J){var U=D.length;D.push(J);e:for(;0<U;){var v=U-1>>>1,C=D[v];if(0<f(C,J))D[v]=J,D[U]=C,U=v;else break e}}function o(D){return D.length===0?null:D[0]}function a(D){if(D.length===0)return null;var J=D[0],U=D.pop();if(U!==J){D[0]=U;e:for(var v=0,C=D.length,Y=C>>>1;v<Y;){var re=2*(v+1)-1,Z=D[re],ie=re+1,he=D[ie];if(0>f(Z,U))ie<C&&0>f(he,Z)?(D[v]=he,D[ie]=U,v=ie):(D[v]=Z,D[re]=U,v=re);else if(ie<C&&0>f(he,U))D[v]=he,D[ie]=U,v=ie;else break e}}return J}function f(D,J){var U=D.sortIndex-J.sortIndex;return U!==0?U:D.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;d.unstable_now=function(){return p.now()}}else{var y=Date,k=y.now();d.unstable_now=function(){return y.now()-k}}var _=[],T=[],S=1,O=null,A=3,I=!1,G=!1,j=!1,X=typeof setTimeout=="function"?setTimeout:null,ce=typeof clearTimeout=="function"?clearTimeout:null,ge=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ee(D){for(var J=o(T);J!==null;){if(J.callback===null)a(T);else if(J.startTime<=D)a(T),J.sortIndex=J.expirationTime,s(_,J);else break;J=o(T)}}function te(D){if(j=!1,Ee(D),!G)if(o(_)!==null)G=!0,De(fe);else{var J=o(T);J!==null&&ke(te,J.startTime-D)}}function fe(D,J){G=!1,j&&(j=!1,ce(Q),Q=-1),I=!0;var U=A;try{for(Ee(J),O=o(_);O!==null&&(!(O.expirationTime>J)||D&&!ue());){var v=O.callback;if(typeof v=="function"){O.callback=null,A=O.priorityLevel;var C=v(O.expirationTime<=J);J=d.unstable_now(),typeof C=="function"?O.callback=C:O===o(_)&&a(_),Ee(J)}else a(_);O=o(_)}if(O!==null)var Y=!0;else{var re=o(T);re!==null&&ke(te,re.startTime-J),Y=!1}return Y}finally{O=null,A=U,I=!1}}var ne=!1,_e=null,Q=-1,Ie=5,Le=-1;function ue(){return!(d.unstable_now()-Le<Ie)}function ze(){if(_e!==null){var D=d.unstable_now();Le=D;var J=!0;try{J=_e(!0,D)}finally{J?Be():(ne=!1,_e=null)}}else ne=!1}var Be;if(typeof ge=="function")Be=function(){ge(ze)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,ut=Ke.port2;Ke.port1.onmessage=ze,Be=function(){ut.postMessage(null)}}else Be=function(){X(ze,0)};function De(D){_e=D,ne||(ne=!0,Be())}function ke(D,J){Q=X(function(){D(d.unstable_now())},J)}d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(D){D.callback=null},d.unstable_continueExecution=function(){G||I||(G=!0,De(fe))},d.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ie=0<D?Math.floor(1e3/D):5},d.unstable_getCurrentPriorityLevel=function(){return A},d.unstable_getFirstCallbackNode=function(){return o(_)},d.unstable_next=function(D){switch(A){case 1:case 2:case 3:var J=3;break;default:J=A}var U=A;A=J;try{return D()}finally{A=U}},d.unstable_pauseExecution=function(){},d.unstable_requestPaint=function(){},d.unstable_runWithPriority=function(D,J){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var U=A;A=D;try{return J()}finally{A=U}},d.unstable_scheduleCallback=function(D,J,U){var v=d.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?v+U:v):U=v,D){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=U+C,D={id:S++,callback:J,priorityLevel:D,startTime:U,expirationTime:C,sortIndex:-1},U>v?(D.sortIndex=U,s(T,D),o(_)===null&&D===o(T)&&(j?(ce(Q),Q=-1):j=!0,ke(te,U-v))):(D.sortIndex=C,s(_,D),G||I||(G=!0,De(fe))),D},d.unstable_shouldYield=ue,d.unstable_wrapCallback=function(D){var J=A;return function(){var U=A;A=J;try{return D.apply(this,arguments)}finally{A=U}}}}(Xs)),Xs}var Wc;function kp(){return Wc||(Wc=1,Ks.exports=vp()),Ks.exports} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Vc;function wp(){if(Vc)return mt;Vc=1;var d=ou(),s=kp();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,f={};function p(e,t){y(e,t),y(e+"Capture",t)}function y(e,t){for(f[e]=t,e=0;e<t.length;e++)a.add(t[e])}var k=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_=Object.prototype.hasOwnProperty,T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,S={},O={};function A(e){return _.call(O,e)?!0:_.call(S,e)?!1:T.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 j(e,t,n,r,l,i,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=u}var X={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){X[e]=new j(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];X[t]=new j(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){X[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){X[e]=new j(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){X[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){X[e]=new j(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){X[e]=new j(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){X[e]=new j(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){X[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)});var ce=/[\-:]([a-z])/g;function ge(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ce,ge);X[t]=new j(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ce,ge);X[t]=new j(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ce,ge);X[t]=new j(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){X[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)}),X.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){X[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ee(e,t,n,r){var l=X.hasOwnProperty(t)?X[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(G(t,n,l,r)&&(n=null),r||l===null?A(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var te=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fe=Symbol.for("react.element"),ne=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),Ie=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),ue=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),Ke=Symbol.for("react.suspense_list"),ut=Symbol.for("react.memo"),De=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),D=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=D&&e[D]||e["@@iterator"],typeof e=="function"?e:null)}var U=Object.assign,v;function C(e){if(v===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);v=t&&t[1]||""}return` |
|
`+v+e}var Y=!1;function re(e,t){if(!e||Y)return"";Y=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(E){var r=E}Reflect.construct(e,[],t)}else{try{t.call()}catch(E){r=E}e.call(t.prototype)}else{try{throw Error()}catch(E){r=E}e()}}catch(E){if(E&&r&&typeof E.stack=="string"){for(var l=E.stack.split(` |
|
`),i=r.stack.split(` |
|
`),u=l.length-1,c=i.length-1;1<=u&&0<=c&&l[u]!==i[c];)c--;for(;1<=u&&0<=c;u--,c--)if(l[u]!==i[c]){if(u!==1||c!==1)do if(u--,c--,0>c||l[u]!==i[c]){var h=` |
|
`+l[u].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=u&&0<=c);break}}}finally{Y=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?C(e):""}function Z(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=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function ie(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _e:return"Fragment";case ne:return"Portal";case Ie:return"Profiler";case Q:return"StrictMode";case Be:return"Suspense";case Ke:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ue:return(e.displayName||"Context")+".Consumer";case Le:return(e._context.displayName||"Context")+".Provider";case ze:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ut:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case De:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}function he(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===Q?"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 we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function be(e){var t=we(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=be(e))}function qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=we(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&&Ee(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 Qn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function hn(e,t,n){(t!=="number"||pn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mn=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+de(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Qr(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yr(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(mn(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:de(n)}}function gn(e,t){var n=de(t.value),r=de(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function en(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function vr(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tn(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gn,Gr=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Gn=Gn||document.createElement("div"),Gn.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kr=["Webkit","ms","Moz","O"];Object.keys(yn).forEach(function(e){kr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yn[t]=yn[e]})});function Yn(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yn.hasOwnProperty(e)&&yn[e]?(""+t).trim():t+"px"}function xt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Yn(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var vn=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 Kn(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 Xn(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yr=null;function kn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wn=null,xn=null,St=null;function Vl(e){if(e=ml(e)){if(typeof wn!="function")throw Error(o(280));var t=e.stateNode;t&&(t=mi(t),wn(e.stateNode,e.type,t))}}function Ql(e){xn?St?St.push(e):St=[e]:xn=e}function je(){if(xn){var e=xn,t=St;if(St=xn=null,Vl(e),t)for(e=0;e<t.length;e++)Vl(t[e])}}function rn(e,t){return e(t)}function Gl(){}var wr=!1;function xr(e,t,n){if(wr)return e(t,n);wr=!0;try{return rn(e,t,n)}finally{wr=!1,(xn!==null||St!==null)&&(Gl(),je())}}function Sn(e,t){var n=e.stateNode;if(n===null)return null;var r=mi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Sr=!1;if(k)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Sr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{Sr=!1}function Et(e,t,n,r,l,i,u,c,h){var E=Array.prototype.slice.call(arguments,3);try{t.apply(n,E)}catch(N){this.onError(N)}}var Vt=!1,bn=null,qn=!1,Jn=null,Yl={onError:function(e){Vt=!0,bn=e}};function Ot(e,t,n,r,l,i,u,c,h){Vt=!1,bn=null,Et.apply(Yl,arguments)}function Kl(e,t,n,r,l,i,u,c,h){if(Ot.apply(this,arguments),Vt){if(Vt){var E=bn;Vt=!1,bn=null}else throw Error(o(198));qn||(qn=!0,Jn=E)}}function Qt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Kr(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xr(e){if(Qt(e)!==e)throw Error(o(188))}function co(e){var t=e.alternate;if(!t){if(t=Qt(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Xr(l),e;if(i===r)return Xr(l),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=l,r=i;else{for(var u=!1,c=l.child;c;){if(c===n){u=!0,n=l,r=i;break}if(c===r){u=!0,r=l,n=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===n){u=!0,n=i,r=l;break}if(c===r){u=!0,r=i,n=l;break}c=c.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function K(e){return e=co(e),e!==null?g(e):null}function g(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=g(e);if(t!==null)return t;e=e.sibling}return null}var M=s.unstable_scheduleCallback,H=s.unstable_cancelCallback,Te=s.unstable_shouldYield,Ve=s.unstable_requestPaint,le=s.unstable_now,qe=s.unstable_getCurrentPriorityLevel,at=s.unstable_ImmediatePriority,En=s.unstable_UserBlockingPriority,Ue=s.unstable_NormalPriority,Xl=s.unstable_LowPriority,Zr=s.unstable_IdlePriority,Zl=null,Gt=null;function Nf(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Zl,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:Af,Lf=Math.log,Pf=Math.LN2;function Af(e){return e>>>=0,e===0?32:31-(Lf(e)/Pf|0)|0}var bl=64,ql=4194304;function br(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=n&268435455;if(u!==0){var c=u&~l;c!==0?r=br(c):(i&=u,i!==0&&(r=br(i)))}else u=n&~l,u!==0?r=br(u):i!==0&&(r=br(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;0<t;)n=31-It(t),l=1<<n,r|=e[n],t&=~l;return r}function Mf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var u=31-It(i),c=1<<u,h=l[u];h===-1?(!(c&n)||c&r)&&(l[u]=Mf(c,t)):h<=t&&(e.expiredLanes|=c),i&=~c}}function fo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function mu(){var e=bl;return bl<<=1,!(bl&4194240)&&(bl=64),e}function po(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Of(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-It(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function ho(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-It(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var ye=0;function gu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var yu,mo,vu,ku,wu,go=!1,ei=[],_n=null,Tn=null,Cn=null,Jr=new Map,el=new Map,Rn=[],If="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function xu(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":Tn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":Jr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":el.delete(t.pointerId)}}function tl(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=ml(t),t!==null&&mo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Df(e,t,n,r,l){switch(t){case"focusin":return _n=tl(_n,e,t,n,r,l),!0;case"dragenter":return Tn=tl(Tn,e,t,n,r,l),!0;case"mouseover":return Cn=tl(Cn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Jr.set(i,tl(Jr.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,el.set(i,tl(el.get(i)||null,e,t,n,r,l)),!0}return!1}function Su(e){var t=er(e.target);if(t!==null){var n=Qt(t);if(n!==null){if(t=n.tag,t===13){if(t=Kr(n),t!==null){e.blockedOn=t,wu(e.priority,function(){vu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ti(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Yr=r,n.target.dispatchEvent(r),Yr=null}else return t=ml(n),t!==null&&mo(t),e.blockedOn=n,!1;t.shift()}return!0}function Eu(e,t,n){ti(e)&&n.delete(t)}function jf(){go=!1,_n!==null&&ti(_n)&&(_n=null),Tn!==null&&ti(Tn)&&(Tn=null),Cn!==null&&ti(Cn)&&(Cn=null),Jr.forEach(Eu),el.forEach(Eu)}function nl(e,t){e.blockedOn===t&&(e.blockedOn=null,go||(go=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,jf)))}function rl(e){function t(l){return nl(l,e)}if(0<ei.length){nl(ei[0],e);for(var n=1;n<ei.length;n++){var r=ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_n!==null&&nl(_n,e),Tn!==null&&nl(Tn,e),Cn!==null&&nl(Cn,e),Jr.forEach(t),el.forEach(t),n=0;n<Rn.length;n++)r=Rn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rn.length&&(n=Rn[0],n.blockedOn===null);)Su(n),n.blockedOn===null&&Rn.shift()}var Er=te.ReactCurrentBatchConfig,ni=!0;function Ff(e,t,n,r){var l=ye,i=Er.transition;Er.transition=null;try{ye=1,yo(e,t,n,r)}finally{ye=l,Er.transition=i}}function Uf(e,t,n,r){var l=ye,i=Er.transition;Er.transition=null;try{ye=4,yo(e,t,n,r)}finally{ye=l,Er.transition=i}}function yo(e,t,n,r){if(ni){var l=vo(e,t,n,r);if(l===null)Io(e,t,r,ri,n),xu(e,r);else if(Df(l,e,t,n,r))r.stopPropagation();else if(xu(e,r),t&4&&-1<If.indexOf(e)){for(;l!==null;){var i=ml(l);if(i!==null&&yu(i),i=vo(e,t,n,r),i===null&&Io(e,t,r,ri,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Io(e,t,r,null,n)}}var ri=null;function vo(e,t,n,r){if(ri=null,e=kn(r),e=er(e),e!==null)if(t=Qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Kr(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ri=e,null}function _u(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qe()){case at:return 1;case En:return 4;case Ue:case Xl:return 16;case Zr:return 536870912;default:return 16}default:return 16}}var Nn=null,ko=null,li=null;function Tu(){if(li)return li;var e,t=ko,n=t.length,r,l="value"in Nn?Nn.value:Nn.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===l[i-r];r++);return li=l.slice(e,1<r?1-r:void 0)}function ii(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function oi(){return!0}function Cu(){return!1}function gt(e){function t(n,r,l,i,u){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?oi:Cu,this.isPropagationStopped=Cu,this}return U(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var _r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wo=gt(_r),ll=U({},_r,{view:0,detail:0}),$f=gt(ll),xo,So,il,si=U({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_o,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==il&&(il&&e.type==="mousemove"?(xo=e.screenX-il.screenX,So=e.screenY-il.screenY):So=xo=0,il=e),xo)},movementY:function(e){return"movementY"in e?e.movementY:So}}),Ru=gt(si),Bf=U({},si,{dataTransfer:0}),Hf=gt(Bf),Wf=U({},ll,{relatedTarget:0}),Eo=gt(Wf),Vf=U({},_r,{animationName:0,elapsedTime:0,pseudoElement:0}),Qf=gt(Vf),Gf=U({},_r,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yf=gt(Gf),Kf=U({},_r,{data:0}),Nu=gt(Kf),Xf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},bf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bf[e])?!!t[e]:!1}function _o(){return qf}var Jf=U({},ll,{key:function(e){if(e.key){var t=Xf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ii(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_o,charCode:function(e){return e.type==="keypress"?ii(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ii(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ed=gt(Jf),td=U({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lu=gt(td),nd=U({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),rd=gt(nd),ld=U({},_r,{propertyName:0,elapsedTime:0,pseudoElement:0}),id=gt(ld),od=U({},si,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sd=gt(od),ud=[9,13,27,32],To=k&&"CompositionEvent"in window,ol=null;k&&"documentMode"in document&&(ol=document.documentMode);var ad=k&&"TextEvent"in window&&!ol,Pu=k&&(!To||ol&&8<ol&&11>=ol),Au=" ",Mu=!1;function zu(e,t){switch(e){case"keyup":return ud.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ou(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function cd(e,t){switch(e){case"compositionend":return Ou(t);case"keypress":return t.which!==32?null:(Mu=!0,Au);case"textInput":return e=t.data,e===Au&&Mu?null:e;default:return null}}function fd(e,t){if(Tr)return e==="compositionend"||!To&&zu(e,t)?(e=Tu(),li=ko=Nn=null,Tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pu&&t.locale!=="ko"?null:t.data;default:return null}}var dd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dd[e.type]:t==="textarea"}function Du(e,t,n,r){Ql(r),t=di(t,"onChange"),0<t.length&&(n=new wo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sl=null,ul=null;function pd(e){ea(e,0)}function ui(e){var t=Pr(e);if(qt(t))return e}function hd(e,t){if(e==="change")return t}var ju=!1;if(k){var Co;if(k){var Ro="oninput"in document;if(!Ro){var Fu=document.createElement("div");Fu.setAttribute("oninput","return;"),Ro=typeof Fu.oninput=="function"}Co=Ro}else Co=!1;ju=Co&&(!document.documentMode||9<document.documentMode)}function Uu(){sl&&(sl.detachEvent("onpropertychange",$u),ul=sl=null)}function $u(e){if(e.propertyName==="value"&&ui(ul)){var t=[];Du(t,ul,e,kn(e)),xr(pd,t)}}function md(e,t,n){e==="focusin"?(Uu(),sl=t,ul=n,sl.attachEvent("onpropertychange",$u)):e==="focusout"&&Uu()}function gd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ui(ul)}function yd(e,t){if(e==="click")return ui(t)}function vd(e,t){if(e==="input"||e==="change")return ui(t)}function kd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:kd;function al(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!_.call(t,l)||!Dt(e[l],t[l]))return!1}return!0}function Bu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hu(e,t){var n=Bu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bu(n)}}function Wu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vu(){for(var e=window,t=pn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pn(e.document)}return t}function No(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wd(e){var t=Vu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wu(n.ownerDocument.documentElement,n)){if(r!==null&&No(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Hu(n,i);var u=Hu(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xd=k&&"documentMode"in document&&11>=document.documentMode,Cr=null,Lo=null,cl=null,Po=!1;function Qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Po||Cr==null||Cr!==pn(r)||(r=Cr,"selectionStart"in r&&No(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cl&&al(cl,r)||(cl=r,r=di(Lo,"onSelect"),0<r.length&&(t=new wo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cr)))}function ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rr={animationend:ai("Animation","AnimationEnd"),animationiteration:ai("Animation","AnimationIteration"),animationstart:ai("Animation","AnimationStart"),transitionend:ai("Transition","TransitionEnd")},Ao={},Gu={};k&&(Gu=document.createElement("div").style,"AnimationEvent"in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),"TransitionEvent"in window||delete Rr.transitionend.transition);function ci(e){if(Ao[e])return Ao[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gu)return Ao[e]=t[n];return e}var Yu=ci("animationend"),Ku=ci("animationiteration"),Xu=ci("animationstart"),Zu=ci("transitionend"),bu=new Map,qu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ln(e,t){bu.set(e,t),p(t,[e])}for(var Mo=0;Mo<qu.length;Mo++){var zo=qu[Mo],Sd=zo.toLowerCase(),Ed=zo[0].toUpperCase()+zo.slice(1);Ln(Sd,"on"+Ed)}Ln(Yu,"onAnimationEnd"),Ln(Ku,"onAnimationIteration"),Ln(Xu,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(Zu,"onTransitionEnd"),y("onMouseEnter",["mouseout","mouseover"]),y("onMouseLeave",["mouseout","mouseover"]),y("onPointerEnter",["pointerout","pointerover"]),y("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_d=new Set("cancel close invalid load scroll toggle".split(" ").concat(fl));function Ju(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Kl(r,t,void 0,e),e.currentTarget=null}function ea(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var u=r.length-1;0<=u;u--){var c=r[u],h=c.instance,E=c.currentTarget;if(c=c.listener,h!==i&&l.isPropagationStopped())break e;Ju(l,c,E),i=h}else for(u=0;u<r.length;u++){if(c=r[u],h=c.instance,E=c.currentTarget,c=c.listener,h!==i&&l.isPropagationStopped())break e;Ju(l,c,E),i=h}}}if(qn)throw e=Jn,qn=!1,Jn=null,e}function Re(e,t){var n=t[Bo];n===void 0&&(n=t[Bo]=new Set);var r=e+"__bubble";n.has(r)||(ta(t,e,2,!1),n.add(r))}function Oo(e,t,n){var r=0;t&&(r|=4),ta(n,e,r,t)}var fi="_reactListening"+Math.random().toString(36).slice(2);function dl(e){if(!e[fi]){e[fi]=!0,a.forEach(function(n){n!=="selectionchange"&&(_d.has(n)||Oo(n,!1,e),Oo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fi]||(t[fi]=!0,Oo("selectionchange",!1,t))}}function ta(e,t,n,r){switch(_u(t)){case 1:var l=Ff;break;case 4:l=Uf;break;default:l=yo}n=l.bind(null,t,n,e),l=void 0,!Sr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Io(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var c=r.stateNode.containerInfo;if(c===l||c.nodeType===8&&c.parentNode===l)break;if(u===4)for(u=r.return;u!==null;){var h=u.tag;if((h===3||h===4)&&(h=u.stateNode.containerInfo,h===l||h.nodeType===8&&h.parentNode===l))return;u=u.return}for(;c!==null;){if(u=er(c),u===null)return;if(h=u.tag,h===5||h===6){r=i=u;continue e}c=c.parentNode}}r=r.return}xr(function(){var E=i,N=kn(n),P=[];e:{var R=bu.get(e);if(R!==void 0){var F=wo,B=e;switch(e){case"keypress":if(ii(n)===0)break e;case"keydown":case"keyup":F=ed;break;case"focusin":B="focus",F=Eo;break;case"focusout":B="blur",F=Eo;break;case"beforeblur":case"afterblur":F=Eo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Ru;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Hf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=rd;break;case Yu:case Ku:case Xu:F=Qf;break;case Zu:F=id;break;case"scroll":F=$f;break;case"wheel":F=sd;break;case"copy":case"cut":case"paste":F=Yf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Lu}var W=(t&4)!==0,Fe=!W&&e==="scroll",w=W?R!==null?R+"Capture":null:R;W=[];for(var m=E,x;m!==null;){x=m;var z=x.stateNode;if(x.tag===5&&z!==null&&(x=z,w!==null&&(z=Sn(m,w),z!=null&&W.push(pl(m,z,x)))),Fe)break;m=m.return}0<W.length&&(R=new F(R,B,null,n,N),P.push({event:R,listeners:W}))}}if(!(t&7)){e:{if(R=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",R&&n!==Yr&&(B=n.relatedTarget||n.fromElement)&&(er(B)||B[ln]))break e;if((F||R)&&(R=N.window===N?N:(R=N.ownerDocument)?R.defaultView||R.parentWindow:window,F?(B=n.relatedTarget||n.toElement,F=E,B=B?er(B):null,B!==null&&(Fe=Qt(B),B!==Fe||B.tag!==5&&B.tag!==6)&&(B=null)):(F=null,B=E),F!==B)){if(W=Ru,z="onMouseLeave",w="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(W=Lu,z="onPointerLeave",w="onPointerEnter",m="pointer"),Fe=F==null?R:Pr(F),x=B==null?R:Pr(B),R=new W(z,m+"leave",F,n,N),R.target=Fe,R.relatedTarget=x,z=null,er(N)===E&&(W=new W(w,m+"enter",B,n,N),W.target=x,W.relatedTarget=Fe,z=W),Fe=z,F&&B)t:{for(W=F,w=B,m=0,x=W;x;x=Nr(x))m++;for(x=0,z=w;z;z=Nr(z))x++;for(;0<m-x;)W=Nr(W),m--;for(;0<x-m;)w=Nr(w),x--;for(;m--;){if(W===w||w!==null&&W===w.alternate)break t;W=Nr(W),w=Nr(w)}W=null}else W=null;F!==null&&na(P,R,F,W,!1),B!==null&&Fe!==null&&na(P,Fe,B,W,!0)}}e:{if(R=E?Pr(E):window,F=R.nodeName&&R.nodeName.toLowerCase(),F==="select"||F==="input"&&R.type==="file")var V=hd;else if(Iu(R))if(ju)V=vd;else{V=gd;var b=md}else(F=R.nodeName)&&F.toLowerCase()==="input"&&(R.type==="checkbox"||R.type==="radio")&&(V=yd);if(V&&(V=V(e,E))){Du(P,V,n,N);break e}b&&b(e,R,E),e==="focusout"&&(b=R._wrapperState)&&b.controlled&&R.type==="number"&&hn(R,"number",R.value)}switch(b=E?Pr(E):window,e){case"focusin":(Iu(b)||b.contentEditable==="true")&&(Cr=b,Lo=E,cl=null);break;case"focusout":cl=Lo=Cr=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,Qu(P,n,N);break;case"selectionchange":if(xd)break;case"keydown":case"keyup":Qu(P,n,N)}var q;if(To)e:{switch(e){case"compositionstart":var ee="onCompositionStart";break e;case"compositionend":ee="onCompositionEnd";break e;case"compositionupdate":ee="onCompositionUpdate";break e}ee=void 0}else Tr?zu(e,n)&&(ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ee="onCompositionStart");ee&&(Pu&&n.locale!=="ko"&&(Tr||ee!=="onCompositionStart"?ee==="onCompositionEnd"&&Tr&&(q=Tu()):(Nn=N,ko="value"in Nn?Nn.value:Nn.textContent,Tr=!0)),b=di(E,ee),0<b.length&&(ee=new Nu(ee,e,null,n,N),P.push({event:ee,listeners:b}),q?ee.data=q:(q=Ou(n),q!==null&&(ee.data=q)))),(q=ad?cd(e,n):fd(e,n))&&(E=di(E,"onBeforeInput"),0<E.length&&(N=new Nu("onBeforeInput","beforeinput",null,n,N),P.push({event:N,listeners:E}),N.data=q))}ea(P,t)})}function pl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function di(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Sn(e,n),i!=null&&r.unshift(pl(e,i,l)),i=Sn(e,t),i!=null&&r.push(pl(e,i,l))),e=e.return}return r}function Nr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function na(e,t,n,r,l){for(var i=t._reactName,u=[];n!==null&&n!==r;){var c=n,h=c.alternate,E=c.stateNode;if(h!==null&&h===r)break;c.tag===5&&E!==null&&(c=E,l?(h=Sn(n,i),h!=null&&u.unshift(pl(n,h,c))):l||(h=Sn(n,i),h!=null&&u.push(pl(n,h,c)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var Td=/\r\n?/g,Cd=/\u0000|\uFFFD/g;function ra(e){return(typeof e=="string"?e:""+e).replace(Td,` |
|
`).replace(Cd,"")}function pi(e,t,n){if(t=ra(t),ra(e)!==t&&n)throw Error(o(425))}function hi(){}var Do=null,jo=null;function Fo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Uo=typeof setTimeout=="function"?setTimeout:void 0,Rd=typeof clearTimeout=="function"?clearTimeout:void 0,la=typeof Promise=="function"?Promise:void 0,Nd=typeof queueMicrotask=="function"?queueMicrotask:typeof la<"u"?function(e){return la.resolve(null).then(e).catch(Ld)}:Uo;function Ld(e){setTimeout(function(){throw e})}function $o(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),rl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);rl(t)}function Pn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ia(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Lr=Math.random().toString(36).slice(2),Yt="__reactFiber$"+Lr,hl="__reactProps$"+Lr,ln="__reactContainer$"+Lr,Bo="__reactEvents$"+Lr,Pd="__reactListeners$"+Lr,Ad="__reactHandles$"+Lr;function er(e){var t=e[Yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ln]||n[Yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ia(e);e!==null;){if(n=e[Yt])return n;e=ia(e)}return t}e=n,n=e.parentNode}return null}function ml(e){return e=e[Yt]||e[ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function mi(e){return e[hl]||null}var Ho=[],Ar=-1;function An(e){return{current:e}}function Ne(e){0>Ar||(e.current=Ho[Ar],Ho[Ar]=null,Ar--)}function Ce(e,t){Ar++,Ho[Ar]=e.current,e.current=t}var Mn={},Je=An(Mn),ct=An(!1),tr=Mn;function Mr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ft(e){return e=e.childContextTypes,e!=null}function gi(){Ne(ct),Ne(Je)}function oa(e,t,n){if(Je.current!==Mn)throw Error(o(168));Ce(Je,t),Ce(ct,n)}function sa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(o(108,he(e)||"Unknown",l));return U({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,tr=Je.current,Ce(Je,e),Ce(ct,ct.current),!0}function ua(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=sa(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,Ne(ct),Ne(Je),Ce(Je,e)):Ne(ct),Ce(ct,n)}var on=null,vi=!1,Wo=!1;function aa(e){on===null?on=[e]:on.push(e)}function Md(e){vi=!0,aa(e)}function zn(){if(!Wo&&on!==null){Wo=!0;var e=0,t=ye;try{var n=on;for(ye=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}on=null,vi=!1}catch(l){throw on!==null&&(on=on.slice(e+1)),M(at,zn),l}finally{ye=t,Wo=!1}}return null}var zr=[],Or=0,ki=null,wi=0,_t=[],Tt=0,nr=null,sn=1,un="";function rr(e,t){zr[Or++]=wi,zr[Or++]=ki,ki=e,wi=t}function ca(e,t,n){_t[Tt++]=sn,_t[Tt++]=un,_t[Tt++]=nr,nr=e;var r=sn;e=un;var l=32-It(r)-1;r&=~(1<<l),n+=1;var i=32-It(t)+l;if(30<i){var u=l-l%5;i=(r&(1<<u)-1).toString(32),r>>=u,l-=u,sn=1<<32-It(t)+l|n<<l|r,un=i+e}else sn=1<<i|n<<l|r,un=e}function Vo(e){e.return!==null&&(rr(e,1),ca(e,1,0))}function Qo(e){for(;e===ki;)ki=zr[--Or],zr[Or]=null,wi=zr[--Or],zr[Or]=null;for(;e===nr;)nr=_t[--Tt],_t[Tt]=null,un=_t[--Tt],_t[Tt]=null,sn=_t[--Tt],_t[Tt]=null}var yt=null,vt=null,Pe=!1,jt=null;function fa(e,t){var n=Lt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function da(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,yt=e,vt=Pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,yt=e,vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=nr!==null?{id:sn,overflow:un}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,yt=e,vt=null,!0):!1;default:return!1}}function Go(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yo(e){if(Pe){var t=vt;if(t){var n=t;if(!da(e,t)){if(Go(e))throw Error(o(418));t=Pn(n.nextSibling);var r=yt;t&&da(e,t)?fa(r,n):(e.flags=e.flags&-4097|2,Pe=!1,yt=e)}}else{if(Go(e))throw Error(o(418));e.flags=e.flags&-4097|2,Pe=!1,yt=e}}}function pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function xi(e){if(e!==yt)return!1;if(!Pe)return pa(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fo(e.type,e.memoizedProps)),t&&(t=vt)){if(Go(e))throw ha(),Error(o(418));for(;t;)fa(e,t),t=Pn(t.nextSibling)}if(pa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){vt=Pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vt=null}}else vt=yt?Pn(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=vt;e;)e=Pn(e.nextSibling)}function Ir(){vt=yt=null,Pe=!1}function Ko(e){jt===null?jt=[e]:jt.push(e)}var zd=te.ReactCurrentBatchConfig;function gl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(u){var c=l.refs;u===null?delete c[i]:c[i]=u},t._stringRef=i,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Si(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ma(e){var t=e._init;return t(e._payload)}function ga(e){function t(w,m){if(e){var x=w.deletions;x===null?(w.deletions=[m],w.flags|=16):x.push(m)}}function n(w,m){if(!e)return null;for(;m!==null;)t(w,m),m=m.sibling;return null}function r(w,m){for(w=new Map;m!==null;)m.key!==null?w.set(m.key,m):w.set(m.index,m),m=m.sibling;return w}function l(w,m){return w=Bn(w,m),w.index=0,w.sibling=null,w}function i(w,m,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<m?(w.flags|=2,m):x):(w.flags|=2,m)):(w.flags|=1048576,m)}function u(w){return e&&w.alternate===null&&(w.flags|=2),w}function c(w,m,x,z){return m===null||m.tag!==6?(m=Us(x,w.mode,z),m.return=w,m):(m=l(m,x),m.return=w,m)}function h(w,m,x,z){var V=x.type;return V===_e?N(w,m,x.props.children,z,x.key):m!==null&&(m.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===De&&ma(V)===m.type)?(z=l(m,x.props),z.ref=gl(w,m,x),z.return=w,z):(z=Gi(x.type,x.key,x.props,null,w.mode,z),z.ref=gl(w,m,x),z.return=w,z)}function E(w,m,x,z){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=$s(x,w.mode,z),m.return=w,m):(m=l(m,x.children||[]),m.return=w,m)}function N(w,m,x,z,V){return m===null||m.tag!==7?(m=fr(x,w.mode,z,V),m.return=w,m):(m=l(m,x),m.return=w,m)}function P(w,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Us(""+m,w.mode,x),m.return=w,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case fe:return x=Gi(m.type,m.key,m.props,null,w.mode,x),x.ref=gl(w,null,m),x.return=w,x;case ne:return m=$s(m,w.mode,x),m.return=w,m;case De:var z=m._init;return P(w,z(m._payload),x)}if(mn(m)||J(m))return m=fr(m,w.mode,x,null),m.return=w,m;Si(w,m)}return null}function R(w,m,x,z){var V=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return V!==null?null:c(w,m,""+x,z);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case fe:return x.key===V?h(w,m,x,z):null;case ne:return x.key===V?E(w,m,x,z):null;case De:return V=x._init,R(w,m,V(x._payload),z)}if(mn(x)||J(x))return V!==null?null:N(w,m,x,z,null);Si(w,x)}return null}function F(w,m,x,z,V){if(typeof z=="string"&&z!==""||typeof z=="number")return w=w.get(x)||null,c(m,w,""+z,V);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case fe:return w=w.get(z.key===null?x:z.key)||null,h(m,w,z,V);case ne:return w=w.get(z.key===null?x:z.key)||null,E(m,w,z,V);case De:var b=z._init;return F(w,m,x,b(z._payload),V)}if(mn(z)||J(z))return w=w.get(x)||null,N(m,w,z,V,null);Si(m,z)}return null}function B(w,m,x,z){for(var V=null,b=null,q=m,ee=m=0,Ye=null;q!==null&&ee<x.length;ee++){q.index>ee?(Ye=q,q=null):Ye=q.sibling;var pe=R(w,q,x[ee],z);if(pe===null){q===null&&(q=Ye);break}e&&q&&pe.alternate===null&&t(w,q),m=i(pe,m,ee),b===null?V=pe:b.sibling=pe,b=pe,q=Ye}if(ee===x.length)return n(w,q),Pe&&rr(w,ee),V;if(q===null){for(;ee<x.length;ee++)q=P(w,x[ee],z),q!==null&&(m=i(q,m,ee),b===null?V=q:b.sibling=q,b=q);return Pe&&rr(w,ee),V}for(q=r(w,q);ee<x.length;ee++)Ye=F(q,w,ee,x[ee],z),Ye!==null&&(e&&Ye.alternate!==null&&q.delete(Ye.key===null?ee:Ye.key),m=i(Ye,m,ee),b===null?V=Ye:b.sibling=Ye,b=Ye);return e&&q.forEach(function(Hn){return t(w,Hn)}),Pe&&rr(w,ee),V}function W(w,m,x,z){var V=J(x);if(typeof V!="function")throw Error(o(150));if(x=V.call(x),x==null)throw Error(o(151));for(var b=V=null,q=m,ee=m=0,Ye=null,pe=x.next();q!==null&&!pe.done;ee++,pe=x.next()){q.index>ee?(Ye=q,q=null):Ye=q.sibling;var Hn=R(w,q,pe.value,z);if(Hn===null){q===null&&(q=Ye);break}e&&q&&Hn.alternate===null&&t(w,q),m=i(Hn,m,ee),b===null?V=Hn:b.sibling=Hn,b=Hn,q=Ye}if(pe.done)return n(w,q),Pe&&rr(w,ee),V;if(q===null){for(;!pe.done;ee++,pe=x.next())pe=P(w,pe.value,z),pe!==null&&(m=i(pe,m,ee),b===null?V=pe:b.sibling=pe,b=pe);return Pe&&rr(w,ee),V}for(q=r(w,q);!pe.done;ee++,pe=x.next())pe=F(q,w,ee,pe.value,z),pe!==null&&(e&&pe.alternate!==null&&q.delete(pe.key===null?ee:pe.key),m=i(pe,m,ee),b===null?V=pe:b.sibling=pe,b=pe);return e&&q.forEach(function(fp){return t(w,fp)}),Pe&&rr(w,ee),V}function Fe(w,m,x,z){if(typeof x=="object"&&x!==null&&x.type===_e&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fe:e:{for(var V=x.key,b=m;b!==null;){if(b.key===V){if(V=x.type,V===_e){if(b.tag===7){n(w,b.sibling),m=l(b,x.props.children),m.return=w,w=m;break e}}else if(b.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===De&&ma(V)===b.type){n(w,b.sibling),m=l(b,x.props),m.ref=gl(w,b,x),m.return=w,w=m;break e}n(w,b);break}else t(w,b);b=b.sibling}x.type===_e?(m=fr(x.props.children,w.mode,z,x.key),m.return=w,w=m):(z=Gi(x.type,x.key,x.props,null,w.mode,z),z.ref=gl(w,m,x),z.return=w,w=z)}return u(w);case ne:e:{for(b=x.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(w,m.sibling),m=l(m,x.children||[]),m.return=w,w=m;break e}else{n(w,m);break}else t(w,m);m=m.sibling}m=$s(x,w.mode,z),m.return=w,w=m}return u(w);case De:return b=x._init,Fe(w,m,b(x._payload),z)}if(mn(x))return B(w,m,x,z);if(J(x))return W(w,m,x,z);Si(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(w,m.sibling),m=l(m,x),m.return=w,w=m):(n(w,m),m=Us(x,w.mode,z),m.return=w,w=m),u(w)):n(w,m)}return Fe}var Dr=ga(!0),ya=ga(!1),Ei=An(null),_i=null,jr=null,Xo=null;function Zo(){Xo=jr=_i=null}function bo(e){var t=Ei.current;Ne(Ei),e._currentValue=t}function qo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fr(e,t){_i=e,Xo=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Xo!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(_i===null)throw Error(o(308));jr=e,_i.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var lr=null;function Jo(e){lr===null?lr=[e]:lr.push(e)}function va(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,an(e,r)}function an(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function es(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ae&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,an(e,n)}return l=r.interleaved,l===null?(t.next=t,Jo(r)):(t.next=l.next,l.next=t),r.interleaved=t,an(e,n)}function Ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ho(e,n)}}function wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ci(e,t,n,r){var l=e.updateQueue;On=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var h=c,E=h.next;h.next=null,u===null?i=E:u.next=E,u=h;var 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 P=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"){P=B.call(F,P,R);break e}P=B;break e;case 3:B.flags=B.flags&-65537|128;case 0:if(B=W.payload,R=typeof B=="function"?B.call(F,P,R):B,R==null)break e;P=U({},P,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=P):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=P),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=P}}function xa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(o(191,l));l.call(r)}}}var yl={},Kt=An(yl),vl=An(yl),kl=An(yl);function ir(e){if(e===yl)throw Error(o(174));return e}function ts(e,t){switch(Ce(kl,t),Ce(vl,e),Ce(Kt,yl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vr(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vr(t,e)}Ne(Kt),Ce(Kt,t)}function Ur(){Ne(Kt),Ne(vl),Ne(kl)}function Sa(e){ir(kl.current);var t=ir(Kt.current),n=vr(t,e.type);t!==n&&(Ce(vl,e),Ce(Kt,n))}function ns(e){vl.current===e&&(Ne(Kt),Ne(vl))}var Ae=An(0);function Ri(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=[];function ls(){for(var e=0;e<rs.length;e++)rs[e]._workInProgressVersionPrimary=null;rs.length=0}var Ni=te.ReactCurrentDispatcher,is=te.ReactCurrentBatchConfig,or=0,Me=null,He=null,Qe=null,Li=!1,wl=!1,xl=0,Od=0;function et(){throw Error(o(321))}function os(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function ss(e,t,n,r,l,i){if(or=i,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ni.current=e===null||e.memoizedState===null?Fd:Ud,e=n(r,l),wl){i=0;do{if(wl=!1,xl=0,25<=i)throw Error(o(301));i+=1,Qe=He=null,t.updateQueue=null,Ni.current=$d,e=n(r,l)}while(wl)}if(Ni.current=Mi,t=He!==null&&He.next!==null,or=0,Qe=He=Me=null,Li=!1,t)throw Error(o(300));return e}function us(){var e=xl!==0;return xl=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Me.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Rt(){if(He===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=Qe===null?Me.memoizedState:Qe.next;if(t!==null)Qe=t,He=e;else{if(e===null)throw Error(o(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Qe===null?Me.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Sl(e,t){return typeof t=="function"?t(e):t}function as(e){var t=Rt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=He,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var u=l.next;l.next=i.next,i.next=u}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var c=u=null,h=null,E=i;do{var N=E.lane;if((or&N)===N)h!==null&&(h=h.next={lane:0,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),r=E.hasEagerState?E.eagerState:e(r,E.action);else{var P={lane:N,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};h===null?(c=h=P,u=r):h=h.next=P,Me.lanes|=N,sr|=N}E=E.next}while(E!==null&&E!==i);h===null?u=r:h.next=c,Dt(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=h,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,Me.lanes|=i,sr|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cs(e){var t=Rt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var u=l=l.next;do i=e(i,u.action),u=u.next;while(u!==l);Dt(i,t.memoizedState)||(dt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ea(){}function _a(e,t){var n=Me,r=Rt(),l=t(),i=!Dt(r.memoizedState,l);if(i&&(r.memoizedState=l,dt=!0),r=r.queue,fs(Ra.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Qe!==null&&Qe.memoizedState.tag&1){if(n.flags|=2048,El(9,Ca.bind(null,n,r,l,t),void 0,null),Ge===null)throw Error(o(349));or&30||Ta(n,t,l)}return l}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&La(e)}function Ra(e,t,n){return n(function(){Na(t)&&La(e)})}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function La(e){var t=an(e,1);t!==null&&Bt(t,e,1,-1)}function Pa(e){var t=Xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:e},t.queue=e,e=e.dispatch=jd.bind(null,Me,e),[t.memoizedState,e]}function El(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Aa(){return Rt().memoizedState}function Pi(e,t,n,r){var l=Xt();Me.flags|=e,l.memoizedState=El(1|t,n,void 0,r===void 0?null:r)}function Ai(e,t,n,r){var l=Rt();r=r===void 0?null:r;var i=void 0;if(He!==null){var u=He.memoizedState;if(i=u.destroy,r!==null&&os(r,u.deps)){l.memoizedState=El(t,n,i,r);return}}Me.flags|=e,l.memoizedState=El(1|t,n,i,r)}function Ma(e,t){return Pi(8390656,8,e,t)}function fs(e,t){return Ai(2048,8,e,t)}function za(e,t){return Ai(4,2,e,t)}function Oa(e,t){return Ai(4,4,e,t)}function Ia(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Da(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4,4,Ia.bind(null,t,e),n)}function ds(){}function ja(e,t){var n=Rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&os(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=Rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&os(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return or&21?(Dt(n,t)||(n=mu(),Me.lanes|=n,sr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function Id(e,t){var n=ye;ye=n!==0&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{ye=n,is.transition=r}}function $a(){return Rt().memoizedState}function Dd(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ba(e))Ha(t,n);else if(n=va(e,t,n,r),n!==null){var l=lt();Bt(n,e,r,l),Wa(n,t,r)}}function jd(e,t,n){var r=Un(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ba(e))Ha(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,n);if(l.hasEagerState=!0,l.eagerState=c,Dt(c,u)){var h=t.interleaved;h===null?(l.next=l,Jo(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=va(e,t,l,r),n!==null&&(l=lt(),Bt(n,e,r,l),Wa(n,t,r))}}function Ba(e){var t=e.alternate;return e===Me||t!==null&&t===Me}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:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},Fd={readContext:Ct,useCallback:function(e,t){return Xt().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=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dd.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:Pa,useDebugValue:ds,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Id.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,l=Xt();if(Pe){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ge===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=Xt(),t=Ge.identifierPrefix;if(Pe){var n=un,r=sn;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Od++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ud={readContext:Ct,useCallback:ja,useContext:Ct,useEffect:fs,useImperativeHandle:Da,useInsertionEffect:za,useLayoutEffect:Oa,useMemo:Fa,useReducer:as,useRef:Aa,useState:function(){return as(Sl)},useDebugValue:ds,useDeferredValue:function(e){var t=Rt();return Ua(t,He.memoizedState,e)},useTransition:function(){var e=as(Sl)[0],t=Rt().memoizedState;return[e,t]},useMutableSource:Ea,useSyncExternalStore:_a,useId:$a,unstable_isNewReconciler:!1},$d={readContext:Ct,useCallback:ja,useContext:Ct,useEffect:fs,useImperativeHandle:Da,useInsertionEffect:za,useLayoutEffect:Oa,useMemo:Fa,useReducer:cs,useRef:Aa,useState:function(){return cs(Sl)},useDebugValue:ds,useDeferredValue:function(e){var t=Rt();return He===null?t.memoizedState=e:Ua(t,He.memoizedState,e)},useTransition:function(){var e=cs(Sl)[0],t=Rt().memoizedState;return[e,t]},useMutableSource:Ea,useSyncExternalStore:_a,useId:$a,unstable_isNewReconciler:!1};function Ft(e,t){if(e&&e.defaultProps){t=U({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ps(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:U({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zi={isMounted:function(e){return(e=e._reactInternals)?Qt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lt(),l=Un(e),i=cn(r,l);i.payload=t,n!=null&&(i.callback=n),t=In(e,i,l),t!==null&&(Bt(t,e,l,r),Ti(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lt(),l=Un(e),i=cn(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=In(e,i,l),t!==null&&(Bt(t,e,l,r),Ti(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lt(),r=Un(e),l=cn(n,r);l.tag=2,t!=null&&(l.callback=t),t=In(e,l,r),t!==null&&(Bt(t,e,r,n),Ti(t,e,r))}};function Va(e,t,n,r,l,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,u):t.prototype&&t.prototype.isPureReactComponent?!al(n,r)||!al(l,i):!0}function Qa(e,t,n){var r=!1,l=Mn,i=t.contextType;return typeof i=="object"&&i!==null?i=Ct(i):(l=ft(t)?tr:Je.current,r=t.contextTypes,i=(r=r!=null)?Mr(e,l):Mn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=zi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ga(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zi.enqueueReplaceState(t,t.state,null)}function hs(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},es(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Ct(i):(i=ft(t)?tr:Je.current,l.context=Mr(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ps(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&zi.enqueueReplaceState(l,l.state,null),Ci(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function $r(e,t){try{var n="",r=t;do n+=Z(r),r=r.return;while(r);var l=n}catch(i){l=` |
|
Error generating stack: `+i.message+` |
|
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bd=typeof WeakMap=="function"?WeakMap:Map;function Ya(e,t,n){n=cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$i||($i=!0,As=r),gs(e,t)},n}function Ka(e,t,n){n=cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){gs(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){gs(e,t),typeof r!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function Xa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bd;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=tp.bind(null,e,t,n),t.then(e,e))}function Za(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ba(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=cn(-1,1),t.tag=2,In(n,t,1))),n.lanes|=1),e)}var Hd=te.ReactCurrentOwner,dt=!1;function rt(e,t,n,r){t.child=e===null?ya(t,null,n,r):Dr(t,e.child,n,r)}function qa(e,t,n,r,l){n=n.render;var i=t.ref;return Fr(t,l),r=ss(e,t,n,r,i,l),n=us(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,fn(e,t,l)):(Pe&&n&&Vo(t),t.flags|=1,rt(e,t,r,l),t.child)}function Ja(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Fs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ec(e,t,i,r,l)):(e=Gi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var u=i.memoizedProps;if(n=n.compare,n=n!==null?n:al,n(u,r)&&e.ref===t.ref)return fn(e,t,l)}return t.flags|=1,e=Bn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ec(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(al(i,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,fn(e,t,l)}return ys(e,t,n,r,l)}function tc(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(Hr,kt),kt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(Hr,kt),kt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ce(Hr,kt),kt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ce(Hr,kt),kt|=r;return rt(e,t,l,n),t.child}function nc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ys(e,t,n,r,l){var i=ft(n)?tr:Je.current;return i=Mr(t,i),Fr(t,l),n=ss(e,t,n,r,i,l),r=us(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,fn(e,t,l)):(Pe&&r&&Vo(t),t.flags|=1,rt(e,t,n,l),t.child)}function rc(e,t,n,r,l){if(ft(n)){var i=!0;yi(t)}else i=!1;if(Fr(t,l),t.stateNode===null)Ii(e,t),Qa(t,n,r),hs(t,n,r,l),r=!0;else if(e===null){var u=t.stateNode,c=t.memoizedProps;u.props=c;var h=u.context,E=n.contextType;typeof E=="object"&&E!==null?E=Ct(E):(E=ft(n)?tr:Je.current,E=Mr(t,E));var N=n.getDerivedStateFromProps,P=typeof N=="function"||typeof u.getSnapshotBeforeUpdate=="function";P||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==r||h!==E)&&Ga(t,u,r,E),On=!1;var R=t.memoizedState;u.state=R,Ci(t,r,u,l),h=t.memoizedState,c!==r||R!==h||ct.current||On?(typeof N=="function"&&(ps(t,n,N,r),h=t.memoizedState),(c=On||Va(t,n,c,r,R,h,E))?(P||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=h),u.props=r,u.state=h,u.context=E,r=c):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,ka(e,t),c=t.memoizedProps,E=t.type===t.elementType?c:Ft(t.type,c),u.props=E,P=t.pendingProps,R=u.context,h=n.contextType,typeof h=="object"&&h!==null?h=Ct(h):(h=ft(n)?tr:Je.current,h=Mr(t,h));var F=n.getDerivedStateFromProps;(N=typeof F=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==P||R!==h)&&Ga(t,u,r,h),On=!1,R=t.memoizedState,u.state=R,Ci(t,r,u,l);var B=t.memoizedState;c!==P||R!==B||ct.current||On?(typeof F=="function"&&(ps(t,n,F,r),B=t.memoizedState),(E=On||Va(t,n,E,r,R,B,h)||!1)?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,B,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,B,h)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=B),u.props=r,u.state=B,u.context=h,r=E):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),r=!1)}return vs(e,t,n,r,i,l)}function vs(e,t,n,r,l,i){nc(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return l&&ua(t,n,!1),fn(e,t,i);r=t.stateNode,Hd.current=t;var c=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=Dr(t,e.child,null,i),t.child=Dr(t,null,c,i)):rt(e,t,c,i),t.memoizedState=r.state,l&&ua(t,n,!0),t.child}function lc(e){var t=e.stateNode;t.pendingContext?oa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&oa(e,t.context,!1),ts(e,t.containerInfo)}function ic(e,t,n,r,l){return Ir(),Ko(l),t.flags|=256,rt(e,t,n,r),t.child}var ks={dehydrated:null,treeContext:null,retryLane:0};function ws(e){return{baseLanes:e,cachePool:null,transitions:null}}function oc(e,t,n){var r=t.pendingProps,l=Ae.current,i=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(l&2)!==0),c?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ce(Ae,l&1),e===null)return Yo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,i?(r=t.mode,i=t.child,u={mode:"hidden",children:u},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=u):i=Yi(u,r,0,null),e=fr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ws(n),t.memoizedState=ks,e):xs(t,u));if(l=e.memoizedState,l!==null&&(c=l.dehydrated,c!==null))return Wd(e,t,u,r,c,l,n);if(i){i=r.fallback,u=t.mode,l=e.child,c=l.sibling;var h={mode:"hidden",children:r.children};return!(u&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=h,t.deletions=null):(r=Bn(l,h),r.subtreeFlags=l.subtreeFlags&14680064),c!==null?i=Bn(c,i):(i=fr(i,u,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,u=e.child.memoizedState,u=u===null?ws(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~n,t.memoizedState=ks,r}return i=e.child,e=i.sibling,r=Bn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xs(e,t){return t=Yi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Oi(e,t,n,r){return r!==null&&Ko(r),Dr(t,e.child,null,n),e=xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wd(e,t,n,r,l,i,u){if(n)return t.flags&256?(t.flags&=-257,r=ms(Error(o(422))),Oi(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Yi({mode:"visible",children:r.children},l,0,null),i=fr(i,l,u,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Dr(t,e.child,null,u),t.child.memoizedState=ws(u),t.memoizedState=ks,i);if(!(t.mode&1))return Oi(e,t,u,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var c=r.dgst;return r=c,i=Error(o(419)),r=ms(i,r,void 0),Oi(e,t,u,r)}if(c=(u&e.childLanes)!==0,dt||c){if(r=Ge,r!==null){switch(u&-u){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|u)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,an(e,l),Bt(r,e,l,-1))}return js(),r=ms(Error(o(421))),Oi(e,t,u,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=np.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,vt=Pn(l.nextSibling),yt=t,Pe=!0,jt=null,e!==null&&(_t[Tt++]=sn,_t[Tt++]=un,_t[Tt++]=nr,sn=e.id,un=e.overflow,nr=t),t=xs(t,r.children),t.flags|=4096,t)}function sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qo(e.return,t,n)}function Ss(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function uc(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(rt(e,t,r.children,n),r=Ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sc(e,n,t);else if(e.tag===19)sc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ce(Ae,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ri(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ss(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ri(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ss(t,!0,n,null,i);break;case"together":Ss(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ii(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vd(e,t,n){switch(t.tag){case 3:lc(t),Ir();break;case 5:Sa(t);break;case 1:ft(t.type)&&yi(t);break;case 4:ts(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Ce(Ei,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Ae,Ae.current&1),t.flags|=128,null):n&t.child.childLanes?oc(e,t,n):(Ce(Ae,Ae.current&1),e=fn(e,t,n),e!==null?e.sibling:null);Ce(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ce(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,tc(e,t,n)}return fn(e,t,n)}var ac,Es,cc,fc;ac=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Es=function(){},cc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,ir(Kt.current);var i=null;switch(n){case"input":l=zt(e,l),r=zt(e,r),i=[];break;case"select":l=U({},l,{value:void 0}),r=U({},r,{value:void 0}),i=[];break;case"textarea":l=Qr(e,l),r=Qr(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hi)}Kn(n,r);var u;n=null;for(E in l)if(!r.hasOwnProperty(E)&&l.hasOwnProperty(E)&&l[E]!=null)if(E==="style"){var c=l[E];for(u in c)c.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(f.hasOwnProperty(E)?i||(i=[]):(i=i||[]).push(E,null));for(E in r){var h=r[E];if(c=l!=null?l[E]:void 0,r.hasOwnProperty(E)&&h!==c&&(h!=null||c!=null))if(E==="style")if(c){for(u in c)!c.hasOwnProperty(u)||h&&h.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in h)h.hasOwnProperty(u)&&c[u]!==h[u]&&(n||(n={}),n[u]=h[u])}else n||(i||(i=[]),i.push(E,n)),n=h;else E==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,c=c?c.__html:void 0,h!=null&&c!==h&&(i=i||[]).push(E,h)):E==="children"?typeof h!="string"&&typeof h!="number"||(i=i||[]).push(E,""+h):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(f.hasOwnProperty(E)?(h!=null&&E==="onScroll"&&Re("scroll",e),i||c===h||(i=[])):(i=i||[]).push(E,h))}n&&(i=i||[]).push("style",n);var E=i;(t.updateQueue=E)&&(t.flags|=4)}},fc=function(e,t,n,r){n!==r&&(t.flags|=4)};function _l(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qd(e,t,n){var r=t.pendingProps;switch(Qo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return ft(t.type)&&gi(),tt(t),null;case 3:return r=t.stateNode,Ur(),Ne(ct),Ne(Je),ls(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Os(jt),jt=null))),Es(e,t),tt(t),null;case 5:ns(t);var l=ir(kl.current);if(n=t.type,e!==null&&t.stateNode!=null)cc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(o(166));return tt(t),null}if(e=ir(Kt.current),xi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Yt]=t,r[hl]=i,e=(t.mode&1)!==0,n){case"dialog":Re("cancel",r),Re("close",r);break;case"iframe":case"object":case"embed":Re("load",r);break;case"video":case"audio":for(l=0;l<fl.length;l++)Re(fl[l],r);break;case"source":Re("error",r);break;case"img":case"image":case"link":Re("error",r),Re("load",r);break;case"details":Re("toggle",r);break;case"input":mr(r,i),Re("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Re("invalid",r);break;case"textarea":yr(r,i),Re("invalid",r)}Kn(n,i),l=null;for(var u in i)if(i.hasOwnProperty(u)){var c=i[u];u==="children"?typeof c=="string"?r.textContent!==c&&(i.suppressHydrationWarning!==!0&&pi(r.textContent,c,e),l=["children",c]):typeof c=="number"&&r.textContent!==""+c&&(i.suppressHydrationWarning!==!0&&pi(r.textContent,c,e),l=["children",""+c]):f.hasOwnProperty(u)&&c!=null&&u==="onScroll"&&Re("scroll",r)}switch(n){case"input":Vn(r),Qn(r,i,!0);break;case"textarea":Vn(r),en(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=hi)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tn(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/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=Xn(n,r),n){case"dialog":Re("cancel",e),Re("close",e),l=r;break;case"iframe":case"object":case"embed":Re("load",e),l=r;break;case"video":case"audio":for(l=0;l<fl.length;l++)Re(fl[l],e);l=r;break;case"source":Re("error",e),l=r;break;case"img":case"image":case"link":Re("error",e),Re("load",e),l=r;break;case"details":Re("toggle",e),l=r;break;case"input":mr(e,r),l=zt(e,r),Re("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=U({},r,{value:void 0}),Re("invalid",e);break;case"textarea":yr(e,r),l=Qr(e,r),Re("invalid",e);break;default:l=r}Kn(n,l),c=l;for(i in c)if(c.hasOwnProperty(i)){var h=c[i];i==="style"?xt(e,h):i==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,h!=null&&Gr(e,h)):i==="children"?typeof h=="string"?(n!=="textarea"||h!=="")&&nn(e,h):typeof h=="number"&&nn(e,""+h):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(f.hasOwnProperty(i)?h!=null&&i==="onScroll"&&Re("scroll",e):h!=null&&Ee(e,i,h,u))}switch(n){case"input":Vn(e),Qn(e,r,!1);break;case"textarea":Vn(e),en(e);break;case"option":r.value!=null&&e.setAttribute("value",""+de(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Jt(e,!!r.multiple,i,!1):r.defaultValue!=null&&Jt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=hi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tt(t),null;case 6:if(e&&t.stateNode!=null)fc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(n=ir(kl.current),ir(Kt.current),xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Yt]=t,(i=r.nodeValue!==n)&&(e=yt,e!==null))switch(e.tag){case 3:pi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yt]=t,t.stateNode=r}return tt(t),null;case 13:if(Ne(Ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&vt!==null&&t.mode&1&&!(t.flags&128))ha(),Ir(),t.flags|=98560,i=!1;else if(i=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Yt]=t}else Ir(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),i=!1}else jt!==null&&(Os(jt),jt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ae.current&1?We===0&&(We=3):js())),t.updateQueue!==null&&(t.flags|=4),tt(t),null);case 4:return Ur(),Es(e,t),e===null&&dl(t.stateNode.containerInfo),tt(t),null;case 10:return bo(t.type._context),tt(t),null;case 17:return ft(t.type)&&gi(),tt(t),null;case 19:if(Ne(Ae),i=t.memoizedState,i===null)return tt(t),null;if(r=(t.flags&128)!==0,u=i.rendering,u===null)if(r)_l(i,!1);else{if(We!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Ri(e),u!==null){for(t.flags|=128,_l(i,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,u=i.alternate,u===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,e=u.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(Ae,Ae.current&1|2),t.child}e=e.sibling}i.tail!==null&&le()>Wr&&(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&&!Pe)return tt(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=Ae.current,Ce(Ae,r?n&1|2:n&1),t):(tt(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?kt&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Gd(e,t){switch(Qo(t),t.tag){case 1:return ft(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ur(),Ne(ct),Ne(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(Ne(Ae),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 Ne(Ae),null;case 4:return Ur(),null;case 10:return bo(t.type._context),null;case 22:case 23:return Ds(),null;case 24:return null;default:return null}}var Di=!1,nt=!1,Yd=typeof WeakSet=="function"?WeakSet:Set,$=null;function Br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function _s(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var dc=!1;function Kd(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,P=e,R=null;t:for(;;){for(var F;P!==n||l!==0&&P.nodeType!==3||(c=u+l),P!==i||r!==0&&P.nodeType!==3||(h=u+r),P.nodeType===3&&(u+=P.nodeValue.length),(F=P.firstChild)!==null;)R=P,P=F;for(;;){if(P===e)break t;if(R===n&&++E===l&&(c=u),R===i&&++N===r&&(h=u),(F=P.nextSibling)!==null)break;P=R,R=P.parentNode}P=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,w=t.stateNode,m=w.getSnapshotBeforeUpdate(t.elementType===t.type?W:Ft(t.type,W),Fe);w.__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(z){Oe(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return B=dc,dc=!1,B}function Tl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&_s(t,n,i)}l=l.next}while(l!==r)}}function ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ts(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[hl],delete t[Bo],delete t[Pd],delete t[Ad])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hc(e){return e.tag===5||e.tag===3||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hi));else if(r!==4&&(e=e.child,e!==null))for(Cs(e,t,n),e=e.sibling;e!==null;)Cs(e,t,n),e=e.sibling}function Rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}var 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(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Zl,n)}catch{}switch(n.tag){case 5:nt||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(!nt&&(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(!nt&&(Br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){Oe(n,t,c)}Dn(e,t,n);break;case 21:Dn(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Dn(e,t,n),nt=r):Dn(e,t,n);break;default:Dn(e,t,n)}}function yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yd),t.forEach(function(r){var l=rp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,u=t,c=u;e:for(;c!==null;){switch(c.tag){case 5:Xe=c.stateNode,Ut=!1;break e;case 3:Xe=c.stateNode.containerInfo,Ut=!0;break e;case 4:Xe=c.stateNode.containerInfo,Ut=!0;break e}c=c.return}if(Xe===null)throw Error(o(160));gc(i,u,l),Xe=null,Ut=!1;var h=l.alternate;h!==null&&(h.return=null),l.return=null}catch(E){Oe(l,t,E)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vc(t,e),t=t.sibling}function vc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($t(t,e),Zt(e),r&4){try{Tl(3,e,e.return),ji(3,e)}catch(W){Oe(e,e.return,W)}try{Tl(5,e,e.return)}catch(W){Oe(e,e.return,W)}}break;case 1:$t(t,e),Zt(e),r&512&&n!==null&&Br(n,n.return);break;case 5:if($t(t,e),Zt(e),r&512&&n!==null&&Br(n,n.return),e.flags&32){var l=e.stateNode;try{nn(l,"")}catch(W){Oe(e,e.return,W)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,u=n!==null?n.memoizedProps:i,c=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{c==="input"&&i.type==="radio"&&i.name!=null&&gr(l,i),Xn(c,u);var E=Xn(c,i);for(u=0;u<h.length;u+=2){var N=h[u],P=h[u+1];N==="style"?xt(l,P):N==="dangerouslySetInnerHTML"?Gr(l,P):N==="children"?nn(l,P):Ee(l,N,P,E)}switch(c){case"input":Wt(l,i);break;case"textarea":gn(l,i);break;case"select":var R=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var F=i.value;F!=null?Jt(l,!!i.multiple,F,!1):R!==!!i.multiple&&(i.defaultValue!=null?Jt(l,!!i.multiple,i.defaultValue,!0):Jt(l,!!i.multiple,i.multiple?[]:"",!1))}l[hl]=i}catch(W){Oe(e,e.return,W)}}break;case 6:if($t(t,e),Zt(e),r&4){if(e.stateNode===null)throw Error(o(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(W){Oe(e,e.return,W)}}break;case 3:if($t(t,e),Zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rl(t.containerInfo)}catch(W){Oe(e,e.return,W)}break;case 4:$t(t,e),Zt(e);break;case 13:$t(t,e),Zt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Ps=le())),r&4&&yc(e);break;case 22:if(N=n!==null&&n.memoizedState!==null,e.mode&1?(nt=(E=nt)||N,$t(t,e),nt=E):$t(t,e),Zt(e),r&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!N&&e.mode&1)for($=e,N=e.child;N!==null;){for(P=$=N;$!==null;){switch(R=$,F=R.child,R.tag){case 0:case 11:case 14:case 15:Tl(4,R,R.return);break;case 1:Br(R,R.return);var B=R.stateNode;if(typeof B.componentWillUnmount=="function"){r=R,n=R.return;try{t=r,B.props=t.memoizedProps,B.state=t.memoizedState,B.componentWillUnmount()}catch(W){Oe(r,n,W)}}break;case 5:Br(R,R.return);break;case 22:if(R.memoizedState!==null){xc(P);continue}}F!==null?(F.return=R,$=F):xc(P)}N=N.sibling}e:for(N=null,P=e;;){if(P.tag===5){if(N===null){N=P;try{l=P.stateNode,E?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(c=P.stateNode,h=P.memoizedProps.style,u=h!=null&&h.hasOwnProperty("display")?h.display:null,c.style.display=Yn("display",u))}catch(W){Oe(e,e.return,W)}}}else if(P.tag===6){if(N===null)try{P.stateNode.nodeValue=E?"":P.memoizedProps}catch(W){Oe(e,e.return,W)}}else if((P.tag!==22&&P.tag!==23||P.memoizedState===null||P===e)&&P.child!==null){P.child.return=P,P=P.child;continue}if(P===e)break e;for(;P.sibling===null;){if(P.return===null||P.return===e)break e;N===P&&(N=null),P=P.return}N===P&&(N=null),P.sibling.return=P.return,P=P.sibling}}break;case 19:$t(t,e),Zt(e),r&4&&yc(e);break;case 21:break;default:$t(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(hc(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(nn(l,""),r.flags&=-33);var i=mc(e);Rs(e,i,l);break;case 3:case 4:var u=r.stateNode.containerInfo,c=mc(e);Cs(e,c,u);break;default:throw Error(o(161))}}catch(h){Oe(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xd(e,t,n){$=e,kc(e)}function kc(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var l=$,i=l.child;if(l.tag===22&&r){var u=l.memoizedState!==null||Di;if(!u){var c=l.alternate,h=c!==null&&c.memoizedState!==null||nt;c=Di;var E=nt;if(Di=u,(nt=h)&&!E)for($=l;$!==null;)u=$,h=u.child,u.tag===22&&u.memoizedState!==null?Sc(l):h!==null?(h.return=u,$=h):Sc(l);for(;i!==null;)$=i,kc(i),i=i.sibling;$=l,Di=c,nt=E}wc(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,$=i):wc(e)}}function wc(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:nt||ji(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!nt)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&xa(t,i,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xa(t,u,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&n.focus();break;case"img":h.src&&(n.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var E=t.alternate;if(E!==null){var N=E.memoizedState;if(N!==null){var P=N.dehydrated;P!==null&&rl(P)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}nt||t.flags&512&&Ts(t)}catch(R){Oe(t,t.return,R)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function xc(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Sc(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ji(4,t)}catch(h){Oe(t,n,h)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(h){Oe(t,l,h)}}var i=t.return;try{Ts(t)}catch(h){Oe(t,i,h)}break;case 5:var u=t.return;try{Ts(t)}catch(h){Oe(t,u,h)}}}catch(h){Oe(t,t.return,h)}if(t===e){$=null;break}var c=t.sibling;if(c!==null){c.return=t.return,$=c;break}$=t.return}}var Zd=Math.ceil,Fi=te.ReactCurrentDispatcher,Ns=te.ReactCurrentOwner,Nt=te.ReactCurrentBatchConfig,ae=0,Ge=null,$e=null,Ze=0,kt=0,Hr=An(0),We=0,Cl=null,sr=0,Ui=0,Ls=0,Rl=null,pt=null,Ps=0,Wr=1/0,dn=null,$i=!1,As=null,jn=null,Bi=!1,Fn=null,Hi=0,Nl=0,Ms=null,Wi=-1,Vi=0;function lt(){return ae&6?le():Wi!==-1?Wi:Wi=le()}function Un(e){return e.mode&1?ae&2&&Ze!==0?Ze&-Ze:zd.transition!==null?(Vi===0&&(Vi=mu()),Vi):(e=ye,e!==0||(e=window.event,e=e===void 0?16:_u(e.type)),e):1}function Bt(e,t,n,r){if(50<Nl)throw Nl=0,Ms=null,Error(o(185));qr(e,n,r),(!(ae&2)||e!==Ge)&&(e===Ge&&(!(ae&2)&&(Ui|=n),We===4&&$n(e,Ze)),ht(e,r),n===1&&ae===0&&!(t.mode&1)&&(Wr=le()+500,vi&&zn()))}function ht(e,t){var n=e.callbackNode;zf(e,t);var r=Jl(e,e===Ge?Ze:0);if(r===0)n!==null&&H(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&H(n),t===1)e.tag===0?Md(_c.bind(null,e)):aa(_c.bind(null,e)),Nd(function(){!(ae&6)&&zn()}),n=null;else{switch(gu(r)){case 1:n=at;break;case 4:n=En;break;case 16:n=Ue;break;case 536870912:n=Zr;break;default:n=Ue}n=Mc(n,Ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ec(e,t){if(Wi=-1,Vi=0,ae&6)throw Error(o(327));var n=e.callbackNode;if(Vr()&&e.callbackNode!==n)return null;var r=Jl(e,e===Ge?Ze:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Qi(e,r);else{t=r;var l=ae;ae|=2;var i=Cc();(Ge!==e||Ze!==t)&&(dn=null,Wr=le()+500,ar(e,t));do try{Jd();break}catch(c){Tc(e,c)}while(!0);Zo(),Fi.current=i,ae=l,$e!==null?t=0:(Ge=null,Ze=0,t=We)}if(t!==0){if(t===2&&(l=fo(e),l!==0&&(r=l,t=zs(e,l))),t===1)throw n=Cl,ar(e,0),$n(e,r),ht(e,le()),n;if(t===6)$n(e,r);else{if(l=e.current.alternate,!(r&30)&&!bd(l)&&(t=Qi(e,r),t===2&&(i=fo(e),i!==0&&(r=i,t=zs(e,i))),t===1))throw n=Cl,ar(e,0),$n(e,r),ht(e,le()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:cr(e,pt,dn);break;case 3:if($n(e,r),(r&130023424)===r&&(t=Ps+500-le(),10<t)){if(Jl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){lt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Uo(cr.bind(null,e,pt,dn),t);break}cr(e,pt,dn);break;case 4:if($n(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var u=31-It(r);i=1<<u,u=t[u],u>l&&(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*Zd(r/1960))-r,10<r){e.timeoutHandle=Uo(cr.bind(null,e,pt,dn),r);break}cr(e,pt,dn);break;case 5:cr(e,pt,dn);break;default:throw Error(o(329))}}}return ht(e,le()),e.callbackNode===n?Ec.bind(null,e):null}function zs(e,t){var n=Rl;return e.current.memoizedState.isDehydrated&&(ar(e,t).flags|=256),e=Qi(e,t),e!==2&&(t=pt,pt=n,t!==null&&Os(t)),e}function Os(e){pt===null?pt=e:pt.push.apply(pt,e)}function bd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!Dt(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t){for(t&=~Ls,t&=~Ui,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-It(t),r=1<<n;e[n]=-1,t&=~r}}function _c(e){if(ae&6)throw Error(o(327));Vr();var t=Jl(e,0);if(!(t&1))return ht(e,le()),null;var n=Qi(e,t);if(e.tag!==0&&n===2){var r=fo(e);r!==0&&(t=r,n=zs(e,r))}if(n===1)throw n=Cl,ar(e,0),$n(e,t),ht(e,le()),n;if(n===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cr(e,pt,dn),ht(e,le()),null}function Is(e,t){var n=ae;ae|=1;try{return e(t)}finally{ae=n,ae===0&&(Wr=le()+500,vi&&zn())}}function ur(e){Fn!==null&&Fn.tag===0&&!(ae&6)&&Vr();var t=ae;ae|=1;var n=Nt.transition,r=ye;try{if(Nt.transition=null,ye=1,e)return e()}finally{ye=r,Nt.transition=n,ae=t,!(ae&6)&&zn()}}function Ds(){kt=Hr.current,Ne(Hr)}function ar(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Rd(n)),$e!==null)for(n=$e.return;n!==null;){var r=n;switch(Qo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gi();break;case 3:Ur(),Ne(ct),Ne(Je),ls();break;case 5:ns(r);break;case 4:Ur();break;case 13:Ne(Ae);break;case 19:Ne(Ae);break;case 10:bo(r.type._context);break;case 22:case 23:Ds()}n=n.return}if(Ge=e,$e=e=Bn(e.current,null),Ze=kt=t,We=0,Cl=null,Ls=Ui=sr=0,pt=Rl=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var u=i.next;i.next=l,r.next=u}n.pending=r}lr=null}return e}function Tc(e,t){do{var n=$e;try{if(Zo(),Ni.current=Mi,Li){for(var r=Me.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Li=!1}if(or=0,Qe=He=Me=null,wl=!1,xl=0,Ns.current=null,n===null||n.return===null){We=1,Cl=t,$e=null;break}e:{var i=e,u=n.return,c=n,h=t;if(t=Ze,c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var E=h,N=c,P=N.tag;if(!(N.mode&1)&&(P===0||P===11||P===15)){var R=N.alternate;R?(N.updateQueue=R.updateQueue,N.memoizedState=R.memoizedState,N.lanes=R.lanes):(N.updateQueue=null,N.memoizedState=null)}var F=Za(u);if(F!==null){F.flags&=-257,ba(F,u,c,i,t),F.mode&1&&Xa(i,E,t),t=F,h=E;var B=t.updateQueue;if(B===null){var W=new Set;W.add(h),t.updateQueue=W}else B.add(h);break e}else{if(!(t&1)){Xa(i,E,t),js();break e}h=Error(o(426))}}else if(Pe&&c.mode&1){var Fe=Za(u);if(Fe!==null){!(Fe.flags&65536)&&(Fe.flags|=256),ba(Fe,u,c,i,t),Ko($r(h,c));break e}}i=h=$r(h,c),We!==4&&(We=2),Rl===null?Rl=[i]:Rl.push(i),i=u;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=Ya(i,h,t);wa(i,w);break e;case 1:c=h;var m=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(jn===null||!jn.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var z=Ka(i,c,t);wa(i,z);break e}}i=i.return}while(i!==null)}Nc(n)}catch(V){t=V,$e===n&&n!==null&&($e=n=n.return);continue}break}while(!0)}function Cc(){var e=Fi.current;return Fi.current=Mi,e===null?Mi:e}function js(){(We===0||We===3||We===2)&&(We=4),Ge===null||!(sr&268435455)&&!(Ui&268435455)||$n(Ge,Ze)}function Qi(e,t){var n=ae;ae|=2;var r=Cc();(Ge!==e||Ze!==t)&&(dn=null,ar(e,t));do try{qd();break}catch(l){Tc(e,l)}while(!0);if(Zo(),ae=n,Fi.current=r,$e!==null)throw Error(o(261));return Ge=null,Ze=0,We}function qd(){for(;$e!==null;)Rc($e)}function Jd(){for(;$e!==null&&!Te();)Rc($e)}function Rc(e){var t=Ac(e.alternate,e,kt);e.memoizedProps=e.pendingProps,t===null?Nc(e):$e=t,Ns.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Gd(n,t),n!==null){n.flags&=32767,$e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,$e=null;return}}else if(n=Qd(n,t,kt),n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);We===0&&(We=5)}function cr(e,t,n){var r=ye,l=Nt.transition;try{Nt.transition=null,ye=1,ep(e,t,n,r)}finally{Nt.transition=l,ye=r}return null}function ep(e,t,n,r){do Vr();while(Fn!==null);if(ae&6)throw Error(o(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Of(e,i),e===Ge&&($e=Ge=null,Ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bi||(Bi=!0,Mc(Ue,function(){return Vr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Nt.transition,Nt.transition=null;var u=ye;ye=1;var c=ae;ae|=4,Ns.current=null,Kd(e,n),vc(n,e),wd(jo),ni=!!Do,jo=Do=null,e.current=n,Xd(n),Ve(),ae=c,ye=u,Nt.transition=i}else e.current=n;if(Bi&&(Bi=!1,Fn=e,Hi=l),i=e.pendingLanes,i===0&&(jn=null),Nf(n.stateNode),ht(e,le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if($i)throw $i=!1,e=As,As=null,e;return Hi&1&&e.tag!==0&&Vr(),i=e.pendingLanes,i&1?e===Ms?Nl++:(Nl=0,Ms=e):Nl=0,zn(),null}function Vr(){if(Fn!==null){var e=gu(Hi),t=Nt.transition,n=ye;try{if(Nt.transition=null,ye=16>e?16:e,Fn===null)var r=!1;else{if(e=Fn,Fn=null,Hi=0,ae&6)throw Error(o(331));var l=ae;for(ae|=4,$=e.current;$!==null;){var i=$,u=i.child;if($.flags&16){var c=i.deletions;if(c!==null){for(var h=0;h<c.length;h++){var E=c[h];for($=E;$!==null;){var N=$;switch(N.tag){case 0:case 11:case 15:Tl(8,N,i)}var P=N.child;if(P!==null)P.return=N,$=P;else for(;$!==null;){N=$;var R=N.sibling,F=N.return;if(pc(N),N===E){$=null;break}if(R!==null){R.return=F,$=R;break}$=F}}}var B=i.alternate;if(B!==null){var W=B.child;if(W!==null){B.child=null;do{var Fe=W.sibling;W.sibling=null,W=Fe}while(W!==null)}}$=i}}if(i.subtreeFlags&2064&&u!==null)u.return=i,$=u;else e:for(;$!==null;){if(i=$,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Tl(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,$=w;break e}$=i.return}}var m=e.current;for($=m;$!==null;){u=$;var x=u.child;if(u.subtreeFlags&2064&&x!==null)x.return=u,$=x;else e:for(u=m;$!==null;){if(c=$,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:ji(9,c)}}catch(V){Oe(c,c.return,V)}if(c===u){$=null;break e}var z=c.sibling;if(z!==null){z.return=c.return,$=z;break e}$=c.return}}if(ae=l,zn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Zl,e)}catch{}r=!0}return r}finally{ye=n,Nt.transition=t}}return!1}function Lc(e,t,n){t=$r(n,t),t=Ya(e,t,1),e=In(e,t,1),t=lt(),e!==null&&(qr(e,1,t),ht(e,t))}function Oe(e,t,n){if(e.tag===3)Lc(e,e,n);else for(;t!==null;){if(t.tag===3){Lc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jn===null||!jn.has(r))){e=$r(n,e),e=Ka(t,e,1),t=In(t,e,1),e=lt(),t!==null&&(qr(t,1,e),ht(t,e));break}}t=t.return}}function tp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&n,Ge===e&&(Ze&n)===n&&(We===4||We===3&&(Ze&130023424)===Ze&&500>le()-Ps?ar(e,0):Ls|=n),ht(e,t)}function Pc(e,t){t===0&&(e.mode&1?(t=ql,ql<<=1,!(ql&130023424)&&(ql=4194304)):t=1);var n=lt();e=an(e,t),e!==null&&(qr(e,t,n),ht(e,n))}function np(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pc(e,n)}function rp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Pc(e,n)}var Ac;Ac=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,Vd(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Pe&&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,ft(r)?(i=!0,yi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,es(t),l.updater=zi,t.stateNode=l,l._reactInternals=t,hs(t,r,e,n),t=vs(null,t,r,!0,i,n)):(t.tag=0,Pe&&i&&Vo(t),rt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ip(r),e=Ft(r,e),l){case 0:t=ys(null,t,r,e,n);break e;case 1:t=rc(null,t,r,e,n);break e;case 11:t=qa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ft(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),ys(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),rc(e,t,r,l,n);case 3:e:{if(lc(t),e===null)throw Error(o(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ka(e,t),Ci(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=$r(Error(o(423)),t),t=ic(e,t,r,n,l);break e}else if(r!==l){l=$r(Error(o(424)),t),t=ic(e,t,r,n,l);break e}else for(vt=Pn(t.stateNode.containerInfo.firstChild),yt=t,Pe=!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}rt(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),rt(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):rt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),qa(e,t,r,l,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(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,Ce(Ei,r._currentValue),r._currentValue=u,i!==null)if(Dt(i.value,u)){if(i.children===l.children&&!ct.current){t=fn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){u=i.child;for(var h=c.firstContext;h!==null;){if(h.context===r){if(i.tag===1){h=cn(-1,n&-n),h.tag=2;var E=i.updateQueue;if(E!==null){E=E.shared;var 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),qo(i.return,n,t),c.lanes|=n;break}h=h.next}}else if(i.tag===10)u=i.type===t.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(o(341));u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),qo(u,n,t),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}rt(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,rt(e,t,r,n),t.child;case 14:return r=t.type,l=Ft(r,t.pendingProps),l=Ft(r.type,l),Ja(e,t,r,l,n);case 15:return ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Ii(e,t),t.tag=1,ft(r)?(e=!0,yi(t)):e=!1,Fr(t,n),Qa(t,r,l),hs(t,r,l,n),vs(null,t,r,!0,e,n);case 19:return uc(e,t,n);case 22:return tc(e,t,n)}throw Error(o(156,t.tag))};function Mc(e,t){return M(e,t)}function lp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,n,r){return new lp(e,t,n,r)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ip(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ze)return 11;if(e===ut)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gi(e,t,n,r,l,i){var u=2;if(r=e,typeof e=="function")Fs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case _e:return fr(n.children,l,i,t);case Q:u=8,l|=8;break;case Ie:return e=Lt(12,n,t,l|2),e.elementType=Ie,e.lanes=i,e;case Be:return e=Lt(13,n,t,l),e.elementType=Be,e.lanes=i,e;case Ke:return e=Lt(19,n,t,l),e.elementType=Ke,e.lanes=i,e;case ke:return Yi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Le:u=10;break e;case ue:u=9;break e;case ze:u=11;break e;case ut:u=14;break e;case De: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 op(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=po(0),this.expirationTimes=po(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,l,i,u,c,h){return e=new op(e,t,n,c,h),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},es(i),e}function sp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ne,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zc(e){if(!e)return Mn;e=e._reactInternals;e:{if(Qt(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var n=e.type;if(ft(n))return sa(e,n,t)}return t}function Oc(e,t,n,r,l,i,u,c,h){return e=Bs(n,r,!0,e,l,i,u,c,h),e.context=zc(null),n=e.current,r=lt(),l=Un(n),i=cn(r,l),i.callback=t??null,In(n,i,l),e.current.lanes=l,qr(e,l,r),ht(e,r),e}function Ki(e,t,n,r){var l=t.current,i=lt(),u=Un(l);return n=zc(n),t.context===null?t.context=n:t.pendingContext=n,t=cn(i,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=In(l,t,u),e!==null&&(Bt(e,l,u,i),Ti(e,l,u)),u}function Xi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ic(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hs(e,t){Ic(e,t),(e=e.alternate)&&Ic(e,t)}var Dc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ws(e){this._internalRoot=e}Zi.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));Ki(e,t,null,null)},Zi.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ur(function(){Ki(null,e,null,null)}),t[ln]=null}};function Zi(e){this._internalRoot=e}Zi.prototype.unstable_scheduleHydration=function(e){if(e){var t=ku();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rn.length&&t!==0&&t<Rn[n].priority;n++);Rn.splice(n,0,e),n===0&&Su(e)}};function Vs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jc(){}function up(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var E=Xi(u);i.call(E)}}var u=Oc(t,r,e,0,null,!1,!1,"",jc);return e._reactRootContainer=u,e[ln]=u.current,dl(e.nodeType===8?e.parentNode:e),ur(),u}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var c=r;r=function(){var E=Xi(h);c.call(E)}}var h=Bs(e,0,!1,null,null,!1,!1,"",jc);return e._reactRootContainer=h,e[ln]=h.current,dl(e.nodeType===8?e.parentNode:e),ur(function(){Ki(t,h,n,r)}),h}function qi(e,t,n,r,l){var i=n._reactRootContainer;if(i){var u=i;if(typeof l=="function"){var c=l;l=function(){var h=Xi(u);c.call(h)}}Ki(t,u,e,l)}else u=up(n,t,e,l,r);return Xi(u)}yu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=br(t.pendingLanes);n!==0&&(ho(t,n|1),ht(t,le()),!(ae&6)&&(Wr=le()+500,zn()))}break;case 13:ur(function(){var r=an(e,1);if(r!==null){var l=lt();Bt(r,e,1,l)}}),Hs(e,1)}},mo=function(e){if(e.tag===13){var t=an(e,134217728);if(t!==null){var n=lt();Bt(t,e,134217728,n)}Hs(e,134217728)}},vu=function(e){if(e.tag===13){var t=Un(e),n=an(e,t);if(n!==null){var r=lt();Bt(n,e,t,r)}Hs(e,t)}},ku=function(){return ye},wu=function(e,t){var n=ye;try{return ye=e,t()}finally{ye=n}},wn=function(e,t,n){switch(t){case"input":if(Wt(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=mi(r);if(!l)throw Error(o(90));qt(r),Wt(r,l)}}}break;case"textarea":gn(e,n);break;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}},rn=Is,Gl=ur;var ap={usingClientEntryPoint:!1,Events:[ml,Pr,mi,Ql,je,Is]},Ll={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cp={bundleType:Ll.bundleType,version:Ll.version,rendererPackageName:Ll.rendererPackageName,rendererConfig:Ll.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:te.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=K(e),e===null?null:e.stateNode},findFiberByHostInstance:Ll.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{Zl=Ji.inject(cp),Gt=Ji}catch{}}return mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ap,mt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vs(t))throw Error(o(200));return sp(e,t,null,n)},mt.createRoot=function(e,t){if(!Vs(e))throw Error(o(299));var n=!1,r="",l=Dc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Bs(e,1,!1,null,null,n,!1,r,l),e[ln]=t.current,dl(e.nodeType===8?e.parentNode:e),new Ws(t)},mt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=K(t),e=e===null?null:e.stateNode,e},mt.flushSync=function(e){return ur(e)},mt.hydrate=function(e,t,n){if(!bi(t))throw Error(o(200));return qi(null,e,t,!0,n)},mt.hydrateRoot=function(e,t,n){if(!Vs(e))throw Error(o(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",u=Dc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=Oc(t,null,e,1,n??null,l,!1,i,u),e[ln]=t.current,dl(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Zi(t)},mt.render=function(e,t,n){if(!bi(t))throw Error(o(200));return qi(null,e,t,!1,n)},mt.unmountComponentAtNode=function(e){if(!bi(e))throw Error(o(40));return e._reactRootContainer?(ur(function(){qi(null,null,e,!1,function(){e._reactRootContainer=null,e[ln]=null})}),!0):!1},mt.unstable_batchedUpdates=Is,mt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bi(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return qi(e,t,n,!1,r)},mt.version="18.3.1-next-f1338f8080-20240426",mt}var Qc;function xp(){if(Qc)return Ys.exports;Qc=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(s){console.error(s)}}return d(),Ys.exports=wp(),Ys.exports}var Gc;function Sp(){if(Gc)return eo;Gc=1;var d=xp();return eo.createRoot=d.createRoot,eo.hydrateRoot=d.hydrateRoot,eo}var Ep=Sp();function su(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let hr=su();function hf(d){hr=d}const Bl={exec:()=>null};function xe(d,s=""){let o=typeof d=="string"?d:d.source;const a={replace:(f,p)=>{let y=typeof p=="string"?p:p.source;return y=y.replace(ot.caret,"$1"),o=o.replace(f,y),a},getRegex:()=>new RegExp(o,s)};return a}const ot={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:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,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")},_p=/^(?:[ \t]*(?:\n|$))+/,Tp=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Cp=/^ {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+|$)/,Rp=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mf=/(?:[*+-]|\d{1,9}[.)])/,gf=xe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,mf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),uu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Np=/^[^\n]+/,au=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Lp=xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",au).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pp=xe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,mf).getRegex(),uo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cu=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ap=xe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",cu).replace("tag",uo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),yf=xe(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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),Mp=xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",yf).getRegex(),fu={blockquote:Mp,code:Tp,def:Lp,fences:Cp,heading:Rp,hr:Wl,html:Ap,lheading:gf,list:Pp,newline:_p,paragraph:yf,table:Bl,text:Np},Yc=xe("^ *([^\\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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),zp={...fu,table:Yc,paragraph:xe(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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex()},Op={...fu,html:xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Bl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:xe(uu).replace("hr",Wl).replace("heading",` *#{1,6} *[^ |
|
]`).replace("lheading",gf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ip=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dp=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vf=/^( {2,}|\\)\n(?!\s*$)/,jp=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ao=/[\p{P}\p{S}]/u,du=/[\s\p{P}\p{S}]/u,kf=/[^\s\p{P}\p{S}]/u,Fp=xe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,du).getRegex(),Up=/(?!~)[\p{P}\p{S}]/u,$p=/(?!~)[\s\p{P}\p{S}]/u,Bp=/(?:[^\s\p{P}\p{S}]|~)/u,Hp=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Wp=xe(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,ao).getRegex(),wf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Vp=xe(wf,"gu").replace(/notPunctSpace/g,kf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Qp=xe(wf,"gu").replace(/notPunctSpace/g,Bp).replace(/punctSpace/g,$p).replace(/punct/g,Up).getRegex(),Gp=xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,kf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Yp=xe(/\\(punct)/,"gu").replace(/punct/g,ao).getRegex(),Kp=xe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Xp=xe(cu).replace("(?:-->|$)","-->").getRegex(),Zp=xe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Xp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),io=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,bp=xe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xf=xe(/^!?\[(label)\]\[(ref)\]/).replace("label",io).replace("ref",au).getRegex(),Sf=xe(/^!?\[(ref)\](?:\[\])?/).replace("ref",au).getRegex(),qp=xe("reflink|nolink(?!\\()","g").replace("reflink",xf).replace("nolink",Sf).getRegex(),pu={_backpedal:Bl,anyPunctuation:Yp,autolink:Kp,blockSkip:Hp,br:vf,code:Dp,del:Bl,emStrongLDelim:Wp,emStrongRDelimAst:Vp,emStrongRDelimUnd:Gp,escape:Ip,link:bp,nolink:Sf,punctuation:Fp,reflink:xf,reflinkSearch:qp,tag:Zp,text:jp,url:Bl},Jp={...pu,link:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",io).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",io).getRegex()},tu={...pu,emStrongRDelimAst:Qp,url:xe(/^((?: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]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},eh={...tu,br:xe(vf).replace("{2,}","*").getRegex(),text:xe(tu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:fu,gfm:zp,pedantic:Op},Al={normal:pu,gfm:tu,breaks:eh,pedantic:Jp},th={"&":"&","<":"<",">":">",'"':""","'":"'"},Kc=d=>th[d];function bt(d,s){if(s){if(ot.escapeTest.test(d))return d.replace(ot.escapeReplace,Kc)}else if(ot.escapeTestNoEncode.test(d))return d.replace(ot.escapeReplaceNoEncode,Kc);return d}function Xc(d){try{d=encodeURI(d).replace(ot.percentDecode,"%")}catch{return null}return d}function Zc(d,s){var p;const o=d.replace(ot.findPipe,(y,k,_)=>{let T=!1,S=k;for(;--S>=0&&_[S]==="\\";)T=!T;return T?"|":" |"}),a=o.split(ot.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<s;)a.push("");for(;f<a.length;f++)a[f]=a[f].trim().replace(ot.slashPipe,"|");return a}function Ml(d,s,o){const a=d.length;if(a===0)return"";let f=0;for(;f<a&&(d.charAt(a-f-1)===s&&!o);)f++;return d.slice(0,a-f)}function nh(d,s){if(d.indexOf(s[1])===-1)return-1;let o=0;for(let a=0;a<d.length;a++)if(d[a]==="\\")a++;else if(d[a]===s[0])o++;else if(d[a]===s[1]&&(o--,o<0))return a;return-1}function bc(d,s,o,a,f){const p=s.href,y=s.title||null,k=d[1].replace(f.other.outputLinkReplace,"$1");if(d[0].charAt(0)!=="!"){a.state.inLink=!0;const _={type:"link",raw:o,href:p,title:y,text:k,tokens:a.inlineTokens(k)};return a.state.inLink=!1,_}return{type:"image",raw:o,href:p,title:y,text:k}}function rh(d,s,o){const a=d.match(o.other.indentCodeCompensation);if(a===null)return s;const f=a[1];return s.split(` |
|
`).map(p=>{const y=p.match(o.other.beginningSpace);if(y===null)return p;const[k]=y;return k.length>=f.length?p.slice(f.length):p}).join(` |
|
`)}class oo{constructor(s){Se(this,"options");Se(this,"rules");Se(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=rh(a,o[3]||"",this.rules);return{type:"code",raw:a,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:f}}}heading(s){const o=this.rules.block.heading.exec(s);if(o){let a=o[2].trim();if(this.rules.other.endingHash.test(a)){const f=Ml(a,"#");(this.options.pedantic||!f||this.rules.other.endingSpaceChar.test(f))&&(a=f.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(s){const o=this.rules.block.hr.exec(s);if(o)return{type:"hr",raw:Ml(o[0],` |
|
`)}}blockquote(s){const o=this.rules.block.blockquote.exec(s);if(o){let a=Ml(o[0],` |
|
`).split(` |
|
`),f="",p="";const y=[];for(;a.length>0;){let k=!1;const _=[];let T;for(T=0;T<a.length;T++)if(this.rules.other.blockquoteStart.test(a[T]))_.push(a[T]),k=!0;else if(!k)_.push(a[T]);else break;a=a.slice(T);const S=_.join(` |
|
`),O=S.replace(this.rules.other.blockquoteSetextReplace,` |
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");f=f?`${f} |
|
${S}`:S,p=p?`${p} |
|
${O}`:O;const A=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(O,y,!0),this.lexer.state.top=A,a.length===0)break;const I=y.at(-1);if((I==null?void 0:I.type)==="code")break;if((I==null?void 0:I.type)==="blockquote"){const G=I,j=G.raw+` |
|
`+a.join(` |
|
`),X=this.blockquote(j);y[y.length-1]=X,f=f.substring(0,f.length-G.raw.length)+X.raw,p=p.substring(0,p.length-G.text.length)+X.text;break}else if((I==null?void 0:I.type)==="list"){const G=I,j=G.raw+` |
|
`+a.join(` |
|
`),X=this.list(j);y[y.length-1]=X,f=f.substring(0,f.length-I.raw.length)+X.raw,p=p.substring(0,p.length-G.raw.length)+X.raw,a=j.substring(y.at(-1).raw.length).split(` |
|
`);continue}}return{type:"blockquote",raw:f,tokens:y,text:p}}}list(s){let o=this.rules.block.list.exec(s);if(o){let a=o[1].trim();const f=a.length>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 y=this.rules.other.listItemRegex(a);let k=!1;for(;s;){let T=!1,S="",O="";if(!(o=y.exec(s))||this.rules.block.hr.test(s))break;S=o[0],s=s.substring(S.length);let A=o[2].split(` |
|
`,1)[0].replace(this.rules.other.listReplaceTabs,ge=>" ".repeat(3*ge.length)),I=s.split(` |
|
`,1)[0],G=!A.trim(),j=0;if(this.options.pedantic?(j=2,O=A.trimStart()):G?j=o[1].length+1:(j=o[2].search(this.rules.other.nonSpaceChar),j=j>4?1:j,O=A.slice(j),j+=o[1].length),G&&this.rules.other.blankLine.test(I)&&(S+=I+` |
|
`,s=s.substring(I.length+1),T=!0),!T){const ge=this.rules.other.nextBulletRegex(j),Ee=this.rules.other.hrRegex(j),te=this.rules.other.fencesBeginRegex(j),fe=this.rules.other.headingBeginRegex(j),ne=this.rules.other.htmlBeginRegex(j);for(;s;){const _e=s.split(` |
|
`,1)[0];let Q;if(I=_e,this.options.pedantic?(I=I.replace(this.rules.other.listReplaceNesting," "),Q=I):Q=I.replace(this.rules.other.tabCharGlobal," "),te.test(I)||fe.test(I)||ne.test(I)||ge.test(I)||Ee.test(I))break;if(Q.search(this.rules.other.nonSpaceChar)>=j||!I.trim())O+=` |
|
`+Q.slice(j);else{if(G||A.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||te.test(A)||fe.test(A)||Ee.test(A))break;O+=` |
|
`+I}!G&&!I.trim()&&(G=!0),S+=_e+` |
|
`,s=s.substring(_e.length+1),A=Q.slice(j)}}p.loose||(k?p.loose=!0:this.rules.other.doubleBlankLine.test(S)&&(k=!0));let X=null,ce;this.options.gfm&&(X=this.rules.other.listIsTask.exec(O),X&&(ce=X[0]!=="[ ] ",O=O.replace(this.rules.other.listReplaceTask,""))),p.items.push({type:"list_item",raw:S,task:!!X,checked:ce,loose:!1,text:O,tokens:[]}),p.raw+=S}const _=p.items.at(-1);if(_)_.raw=_.raw.trimEnd(),_.text=_.text.trimEnd();else return;p.raw=p.raw.trimEnd();for(let T=0;T<p.items.length;T++)if(this.lexer.state.top=!1,p.items[T].tokens=this.lexer.blockTokens(p.items[T].text,[]),!p.loose){const S=p.items[T].tokens.filter(A=>A.type==="space"),O=S.length>0&&S.some(A=>this.rules.other.anyLine.test(A.raw));p.loose=O}if(p.loose)for(let T=0;T<p.items.length;T++)p.items[T].loose=!0;return p}}html(s){const o=this.rules.block.html.exec(s);if(o)return{type:"html",block:!0,raw:o[0],pre:o[1]==="pre"||o[1]==="script"||o[1]==="style",text:o[0]}}def(s){const o=this.rules.block.def.exec(s);if(o){const a=o[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),f=o[2]?o[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",p=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):o[3];return{type:"def",tag:a,raw:o[0],href:f,title:p}}}table(s){var k;const o=this.rules.block.table.exec(s);if(!o||!this.rules.other.tableDelimiter.test(o[2]))return;const a=Zc(o[1]),f=o[2].replace(this.rules.other.tableAlignChars,"").split("|"),p=(k=o[3])!=null&&k.trim()?o[3].replace(this.rules.other.tableRowBlankLine,"").split(` |
|
`):[],y={type:"table",raw:o[0],header:[],align:[],rows:[]};if(a.length===f.length){for(const _ of f)this.rules.other.tableAlignRight.test(_)?y.align.push("right"):this.rules.other.tableAlignCenter.test(_)?y.align.push("center"):this.rules.other.tableAlignLeft.test(_)?y.align.push("left"):y.align.push(null);for(let _=0;_<a.length;_++)y.header.push({text:a[_],tokens:this.lexer.inline(a[_]),header:!0,align:y.align[_]});for(const _ of p)y.rows.push(Zc(_,y.header.length).map((T,S)=>({text:T,tokens:this.lexer.inline(T),header:!1,align:y.align[S]})));return y}}lheading(s){const o=this.rules.block.lheading.exec(s);if(o)return{type:"heading",raw:o[0],depth:o[2].charAt(0)==="="?1:2,text:o[1],tokens:this.lexer.inline(o[1])}}paragraph(s){const o=this.rules.block.paragraph.exec(s);if(o){const a=o[1].charAt(o[1].length-1)===` |
|
`?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:a,tokens:this.lexer.inline(a)}}}text(s){const o=this.rules.block.text.exec(s);if(o)return{type:"text",raw:o[0],text:o[0],tokens:this.lexer.inline(o[0])}}escape(s){const o=this.rules.inline.escape.exec(s);if(o)return{type:"escape",raw:o[0],text:o[1]}}tag(s){const o=this.rules.inline.tag.exec(s);if(o)return!this.lexer.state.inLink&&this.rules.other.startATag.test(o[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(s){const o=this.rules.inline.link.exec(s);if(o){const a=o[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;const y=Ml(a.slice(0,-1),"\\");if((a.length-y.length)%2===0)return}else{const y=nh(o[2],"()");if(y>-1){const _=(o[0].indexOf("!")===0?5:4)+o[1].length+y;o[2]=o[2].substring(0,y),o[0]=o[0].substring(0,_).trim(),o[3]=""}}let f=o[2],p="";if(this.options.pedantic){const y=this.rules.other.pedanticHrefTitle.exec(f);y&&(f=y[1],p=y[3])}else p=o[3]?o[3].slice(1,-1):"";return f=f.trim(),this.rules.other.startAngleBracket.test(f)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?f=f.slice(1):f=f.slice(1,-1)),bc(o,{href:f&&f.replace(this.rules.inline.anyPunctuation,"$1"),title:p&&p.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer,this.rules)}}reflink(s,o){let a;if((a=this.rules.inline.reflink.exec(s))||(a=this.rules.inline.nolink.exec(s))){const f=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),p=o[f.toLowerCase()];if(!p){const y=a[0].charAt(0);return{type:"text",raw:y,text:y}}return bc(a,p,a[0],this.lexer,this.rules)}}emStrong(s,o,a=""){let f=this.rules.inline.emStrongLDelim.exec(s);if(!f||f[3]&&a.match(this.rules.other.unicodeAlphaNumeric))return;if(!(f[1]||f[2]||"")||!a||this.rules.inline.punctuation.exec(a)){const y=[...f[0]].length-1;let k,_,T=y,S=0;const O=f[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(O.lastIndex=0,o=o.slice(-1*s.length+y);(f=O.exec(o))!=null;){if(k=f[1]||f[2]||f[3]||f[4]||f[5]||f[6],!k)continue;if(_=[...k].length,f[3]||f[4]){T+=_;continue}else if((f[5]||f[6])&&y%3&&!((y+_)%3)){S+=_;continue}if(T-=_,T>0)continue;_=Math.min(_,_+T+S);const A=[...f[0]][0].length,I=s.slice(0,y+f.index+A+_);if(Math.min(y,_)%2){const j=I.slice(1,-1);return{type:"em",raw:I,text:j,tokens:this.lexer.inlineTokens(j)}}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 y;do y=o[0],o[0]=((a=this.rules.inline._backpedal.exec(o[0]))==null?void 0:a[0])??"";while(y!==o[0]);f=o[0],o[1]==="www."?p="http://"+o[0]:p=o[0]}return{type:"link",raw:o[0],text:f,href:p,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(s){const o=this.rules.inline.text.exec(s);if(o){const a=this.lexer.state.inRawBlock;return{type:"text",raw:o[0],text:o[0],escaped:a}}}}class Pt{constructor(s){Se(this,"tokens");Se(this,"options");Se(this,"state");Se(this,"tokenizer");Se(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:ot,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(ot.carriageReturn,` |
|
`),this.blockTokens(s,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){const a=this.inlineQueue[o];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(s,o=[],a=!1){var f,p,y;for(this.options.pedantic&&(s=s.replace(ot.tabCharGlobal," ").replace(ot.spaceLine,""));s;){let k;if((p=(f=this.options.extensions)==null?void 0:f.block)!=null&&p.some(T=>(k=T.call({lexer:this},s,o))?(s=s.substring(k.raw.length),o.push(k),!0):!1))continue;if(k=this.tokenizer.space(s)){s=s.substring(k.raw.length);const T=o.at(-1);k.raw.length===1&&T!==void 0?T.raw+=` |
|
`:o.push(k);continue}if(k=this.tokenizer.code(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="paragraph"||(T==null?void 0:T.type)==="text"?(T.raw+=` |
|
`+k.raw,T.text+=` |
|
`+k.text,this.inlineQueue.at(-1).src=T.text):o.push(k);continue}if(k=this.tokenizer.fences(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.heading(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.hr(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.blockquote(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.list(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.html(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.def(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="paragraph"||(T==null?void 0:T.type)==="text"?(T.raw+=` |
|
`+k.raw,T.text+=` |
|
`+k.raw,this.inlineQueue.at(-1).src=T.text):this.tokens.links[k.tag]||(this.tokens.links[k.tag]={href:k.href,title:k.title});continue}if(k=this.tokenizer.table(s)){s=s.substring(k.raw.length),o.push(k);continue}if(k=this.tokenizer.lheading(s)){s=s.substring(k.raw.length),o.push(k);continue}let _=s;if((y=this.options.extensions)!=null&&y.startBlock){let T=1/0;const S=s.slice(1);let O;this.options.extensions.startBlock.forEach(A=>{O=A.call({lexer:this},S),typeof O=="number"&&O>=0&&(T=Math.min(T,O))}),T<1/0&&T>=0&&(_=s.substring(0,T+1))}if(this.state.top&&(k=this.tokenizer.paragraph(_))){const T=o.at(-1);a&&(T==null?void 0:T.type)==="paragraph"?(T.raw+=` |
|
`+k.raw,T.text+=` |
|
`+k.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=T.text):o.push(k),a=_.length!==s.length,s=s.substring(k.raw.length);continue}if(k=this.tokenizer.text(s)){s=s.substring(k.raw.length);const T=o.at(-1);(T==null?void 0:T.type)==="text"?(T.raw+=` |
|
`+k.raw,T.text+=` |
|
`+k.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=T.text):o.push(k);continue}if(s){const T="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(T);break}else throw new Error(T)}}return this.state.top=!0,o}inline(s,o=[]){return this.inlineQueue.push({src:s,tokens:o}),o}inlineTokens(s,o=[]){var k,_,T;let a=s,f=null;if(this.tokens.links){const S=Object.keys(this.tokens.links);if(S.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)S.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,f.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let p=!1,y="";for(;s;){p||(y=""),p=!1;let S;if((_=(k=this.options.extensions)==null?void 0:k.inline)!=null&&_.some(A=>(S=A.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 A=o.at(-1);S.type==="text"&&(A==null?void 0:A.type)==="text"?(A.raw+=S.raw,A.text+=S.text):o.push(S);continue}if(S=this.tokenizer.emStrong(s,a,y)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.codespan(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.br(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.del(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.autolink(s)){s=s.substring(S.raw.length),o.push(S);continue}if(!this.state.inLink&&(S=this.tokenizer.url(s))){s=s.substring(S.raw.length),o.push(S);continue}let O=s;if((T=this.options.extensions)!=null&&T.startInline){let A=1/0;const I=s.slice(1);let G;this.options.extensions.startInline.forEach(j=>{G=j.call({lexer:this},I),typeof G=="number"&&G>=0&&(A=Math.min(A,G))}),A<1/0&&A>=0&&(O=s.substring(0,A+1))}if(S=this.tokenizer.inlineText(O)){s=s.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(y=S.raw.slice(-1)),p=!0;const A=o.at(-1);(A==null?void 0:A.type)==="text"?(A.raw+=S.raw,A.text+=S.text):o.push(S);continue}if(s){const A="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(A);break}else throw new Error(A)}}return o}}class so{constructor(s){Se(this,"options");Se(this,"parser");this.options=s||hr}space(s){return""}code({text:s,lang:o,escaped:a}){var y;const f=(y=(o||"").match(ot.notSpaceStart))==null?void 0:y[0],p=s.replace(ot.endingNewline,"")+` |
|
`;return f?'<pre><code class="language-'+bt(f)+'">'+(a?p:bt(p,!0))+`</code></pre> |
|
`:"<pre><code>"+(a?p:bt(p,!0))+`</code></pre> |
|
`}blockquote({tokens:s}){return`<blockquote> |
|
${this.parser.parse(s)}</blockquote> |
|
`}html({text:s}){return s}heading({tokens:s,depth:o}){return`<h${o}>${this.parser.parseInline(s)}</h${o}> |
|
`}hr(s){return`<hr> |
|
`}list(s){const o=s.ordered,a=s.start;let f="";for(let k=0;k<s.items.length;k++){const _=s.items[k];f+=this.listitem(_)}const p=o?"ol":"ul",y=o&&a!==1?' start="'+a+'"':"";return"<"+p+y+`> |
|
`+f+"</"+p+`> |
|
`}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+" "+bt(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),`<li>${o}</li> |
|
`}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p> |
|
`}table(s){let o="",a="";for(let p=0;p<s.header.length;p++)a+=this.tablecell(s.header[p]);o+=this.tablerow({text:a});let f="";for(let p=0;p<s.rows.length;p++){const y=s.rows[p];a="";for(let k=0;k<y.length;k++)a+=this.tablecell(y[k]);f+=this.tablerow({text:a})}return f&&(f=`<tbody>${f}</tbody>`),`<table> |
|
<thead> |
|
`+o+`</thead> |
|
`+f+`</table> |
|
`}tablerow({text:s}){return`<tr> |
|
${s}</tr> |
|
`}tablecell(s){const o=this.parser.parseInline(s.tokens),a=s.header?"th":"td";return(s.align?`<${a} align="${s.align}">`:`<${a}>`)+o+`</${a}> |
|
`}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${bt(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:o,tokens:a}){const f=this.parser.parseInline(a),p=Xc(s);if(p===null)return f;s=p;let y='<a href="'+s+'"';return o&&(y+=' title="'+bt(o)+'"'),y+=">"+f+"</a>",y}image({href:s,title:o,text:a}){const f=Xc(s);if(f===null)return bt(a);s=f;let p=`<img src="${s}" alt="${a}"`;return o&&(p+=` title="${bt(o)}"`),p+=">",p}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:bt(s.text)}}class hu{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}}class At{constructor(s){Se(this,"options");Se(this,"renderer");Se(this,"textRenderer");this.options=s||hr,this.options.renderer=this.options.renderer||new so,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new hu}static parse(s,o){return new At(o).parse(s)}static parseInline(s,o){return new At(o).parseInline(s)}parse(s,o=!0){var f,p;let a="";for(let y=0;y<s.length;y++){const k=s[y];if((p=(f=this.options.extensions)==null?void 0:f.renderers)!=null&&p[k.type]){const T=k,S=this.options.extensions.renderers[T.type].call({parser:this},T);if(S!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(T.type)){a+=S||"";continue}}const _=k;switch(_.type){case"space":{a+=this.renderer.space(_);continue}case"hr":{a+=this.renderer.hr(_);continue}case"heading":{a+=this.renderer.heading(_);continue}case"code":{a+=this.renderer.code(_);continue}case"table":{a+=this.renderer.table(_);continue}case"blockquote":{a+=this.renderer.blockquote(_);continue}case"list":{a+=this.renderer.list(_);continue}case"html":{a+=this.renderer.html(_);continue}case"paragraph":{a+=this.renderer.paragraph(_);continue}case"text":{let T=_,S=this.renderer.text(T);for(;y+1<s.length&&s[y+1].type==="text";)T=s[++y],S+=` |
|
`+this.renderer.text(T);o?a+=this.renderer.paragraph({type:"paragraph",raw:S,text:S,tokens:[{type:"text",raw:S,text:S,escaped:!0}]}):a+=S;continue}default:{const T='Token with "'+_.type+'" type was not found.';if(this.options.silent)return console.error(T),"";throw new Error(T)}}}return a}parseInline(s,o=this.renderer){var f,p;let a="";for(let y=0;y<s.length;y++){const k=s[y];if((p=(f=this.options.extensions)==null?void 0:f.renderers)!=null&&p[k.type]){const T=this.options.extensions.renderers[k.type].call({parser:this},k);if(T!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(k.type)){a+=T||"";continue}}const _=k;switch(_.type){case"escape":{a+=o.text(_);break}case"html":{a+=o.html(_);break}case"link":{a+=o.link(_);break}case"image":{a+=o.image(_);break}case"strong":{a+=o.strong(_);break}case"em":{a+=o.em(_);break}case"codespan":{a+=o.codespan(_);break}case"br":{a+=o.br(_);break}case"del":{a+=o.del(_);break}case"text":{a+=o.text(_);break}default:{const T='Token with "'+_.type+'" type was not found.';if(this.options.silent)return console.error(T),"";throw new Error(T)}}}return a}}class Hl{constructor(s){Se(this,"options");Se(this,"block");this.options=s||hr}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}provideLexer(){return this.block?Pt.lex:Pt.lexInline}provideParser(){return this.block?At.parse:At.parseInline}}Se(Hl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class lh{constructor(...s){Se(this,"defaults",su());Se(this,"options",this.setOptions);Se(this,"parse",this.parseMarkdown(!0));Se(this,"parseInline",this.parseMarkdown(!1));Se(this,"Parser",At);Se(this,"Renderer",so);Se(this,"TextRenderer",hu);Se(this,"Lexer",Pt);Se(this,"Tokenizer",oo);Se(this,"Hooks",Hl);this.use(...s)}walkTokens(s,o){var f,p;let a=[];for(const y of s)switch(a=a.concat(o.call(this,y)),y.type){case"table":{const k=y;for(const _ of k.header)a=a.concat(this.walkTokens(_.tokens,o));for(const _ of k.rows)for(const T of _)a=a.concat(this.walkTokens(T.tokens,o));break}case"list":{const k=y;a=a.concat(this.walkTokens(k.items,o));break}default:{const k=y;(p=(f=this.defaults.extensions)==null?void 0:f.childTokens)!=null&&p[k.type]?this.defaults.extensions.childTokens[k.type].forEach(_=>{const T=k[_].flat(1/0);a=a.concat(this.walkTokens(T,o))}):k.tokens&&(a=a.concat(this.walkTokens(k.tokens,o)))}}return a}use(...s){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(a=>{const f={...a};if(f.async=this.defaults.async||f.async||!1,a.extensions&&(a.extensions.forEach(p=>{if(!p.name)throw new Error("extension name required");if("renderer"in p){const y=o.renderers[p.name];y?o.renderers[p.name]=function(...k){let _=p.renderer.apply(this,k);return _===!1&&(_=y.apply(this,k)),_}:o.renderers[p.name]=p.renderer}if("tokenizer"in p){if(!p.level||p.level!=="block"&&p.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const y=o[p.level];y?y.unshift(p.tokenizer):o[p.level]=[p.tokenizer],p.start&&(p.level==="block"?o.startBlock?o.startBlock.push(p.start):o.startBlock=[p.start]:p.level==="inline"&&(o.startInline?o.startInline.push(p.start):o.startInline=[p.start]))}"childTokens"in p&&p.childTokens&&(o.childTokens[p.name]=p.childTokens)}),f.extensions=o),a.renderer){const p=this.defaults.renderer||new so(this.defaults);for(const y in a.renderer){if(!(y in p))throw new Error(`renderer '${y}' does not exist`);if(["options","parser"].includes(y))continue;const k=y,_=a.renderer[k],T=p[k];p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O||""}}f.renderer=p}if(a.tokenizer){const p=this.defaults.tokenizer||new oo(this.defaults);for(const y in a.tokenizer){if(!(y in p))throw new Error(`tokenizer '${y}' does not exist`);if(["options","rules","lexer"].includes(y))continue;const k=y,_=a.tokenizer[k],T=p[k];p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O}}f.tokenizer=p}if(a.hooks){const p=this.defaults.hooks||new Hl;for(const y in a.hooks){if(!(y in p))throw new Error(`hook '${y}' does not exist`);if(["options","block"].includes(y))continue;const k=y,_=a.hooks[k],T=p[k];Hl.passThroughHooks.has(y)?p[k]=S=>{if(this.defaults.async)return Promise.resolve(_.call(p,S)).then(A=>T.call(p,A));const O=_.call(p,S);return T.call(p,O)}:p[k]=(...S)=>{let O=_.apply(p,S);return O===!1&&(O=T.apply(p,S)),O}}f.hooks=p}if(a.walkTokens){const p=this.defaults.walkTokens,y=a.walkTokens;f.walkTokens=function(k){let _=[];return _.push(y.call(this,k)),p&&(_=_.concat(p.call(this,k))),_}}this.defaults={...this.defaults,...f}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,o){return Pt.lex(s,o??this.defaults)}parser(s,o){return At.parse(s,o??this.defaults)}parseMarkdown(s){return(a,f)=>{const p={...f},y={...this.defaults,...p},k=this.onError(!!y.silent,!!y.async);if(this.defaults.async===!0&&p.async===!1)return k(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return k(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return k(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));y.hooks&&(y.hooks.options=y,y.hooks.block=s);const _=y.hooks?y.hooks.provideLexer():s?Pt.lex:Pt.lexInline,T=y.hooks?y.hooks.provideParser():s?At.parse:At.parseInline;if(y.async)return Promise.resolve(y.hooks?y.hooks.preprocess(a):a).then(S=>_(S,y)).then(S=>y.hooks?y.hooks.processAllTokens(S):S).then(S=>y.walkTokens?Promise.all(this.walkTokens(S,y.walkTokens)).then(()=>S):S).then(S=>T(S,y)).then(S=>y.hooks?y.hooks.postprocess(S):S).catch(k);try{y.hooks&&(a=y.hooks.preprocess(a));let S=_(a,y);y.hooks&&(S=y.hooks.processAllTokens(S)),y.walkTokens&&this.walkTokens(S,y.walkTokens);let O=T(S,y);return y.hooks&&(O=y.hooks.postprocess(O)),O}catch(S){return k(S)}}}onError(s,o){return a=>{if(a.message+=` |
|
Please report this to https://github.com/markedjs/marked.`,s){const f="<p>An error occurred:</p><pre>"+bt(a.message+"",!0)+"</pre>";return o?Promise.resolve(f):f}if(o)return Promise.reject(a);throw a}}}const pr=new lh;function ve(d,s){return pr.parse(d,s)}ve.options=ve.setOptions=function(d){return pr.setOptions(d),ve.defaults=pr.defaults,hf(ve.defaults),ve};ve.getDefaults=su;ve.defaults=hr;ve.use=function(...d){return pr.use(...d),ve.defaults=pr.defaults,hf(ve.defaults),ve};ve.walkTokens=function(d,s){return pr.walkTokens(d,s)};ve.parseInline=pr.parseInline;ve.Parser=At;ve.parser=At.parse;ve.Renderer=so;ve.TextRenderer=hu;ve.Lexer=Pt;ve.lexer=Pt.lex;ve.Tokenizer=oo;ve.Hooks=Hl;ve.parse=ve;ve.options;ve.setOptions;ve.use;ve.walkTokens;ve.parseInline;At.parse;Pt.lex;const{entries:Ef,setPrototypeOf:qc,isFrozen:ih,getPrototypeOf:oh,getOwnPropertyDescriptor:sh}=Object;let{freeze:st,seal:Mt,create:_f}=Object,{apply:nu,construct:ru}=typeof Reflect<"u"&&Reflect;st||(st=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=wt(Array.prototype.forEach),Jc=wt(Array.prototype.pop),zl=wt(Array.prototype.push),lo=wt(String.prototype.toLowerCase),Zs=wt(String.prototype.toString),ef=wt(String.prototype.match),Ol=wt(String.prototype.replace),uh=wt(String.prototype.indexOf),ah=wt(String.prototype.trim),Ht=wt(Object.prototype.hasOwnProperty),it=wt(RegExp.prototype.test),Il=ch(TypeError);function wt(d){return function(s){for(var o=arguments.length,a=new Array(o>1?o-1:0),f=1;f<o;f++)a[f-1]=arguments[f];return nu(d,s,a)}}function ch(d){return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return ru(d,o)}}function se(d,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lo;qc&&qc(d,null);let a=s.length;for(;a--;){let f=s[a];if(typeof f=="string"){const p=o(f);p!==f&&(ih(s)||(s[a]=p),f=p)}d[f]=!0}return d}function fh(d){for(let s=0;s<d.length;s++)Ht(d,s)||(d[s]=null);return d}function dr(d){const s=_f(null);for(const[o,a]of Ef(d))Ht(d,o)&&(Array.isArray(a)?s[o]=fh(a):a&&typeof a=="object"&&a.constructor===Object?s[o]=dr(a):s[o]=a);return s}function Dl(d,s){for(;d!==null;){const a=sh(d,s);if(a){if(a.get)return wt(a.get);if(typeof a.value=="function")return wt(a.value)}d=oh(d)}function o(){return null}return o}const tf=st(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bs=st(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),qs=st(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dh=st(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Js=st(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ph=st(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nf=st(["#text"]),rf=st(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),eu=st(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lf=st(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ro=st(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hh=Mt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mh=Mt(/<%[\w\W]*|[\w\W]*%>/gm),gh=Mt(/\$\{[\w\W]*}/gm),yh=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),vh=Mt(/^aria-[\-\w]+$/),Tf=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kh=Mt(/^(?:\w+script|data):/i),wh=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cf=Mt(/^html$/i),xh=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i);var of=Object.freeze({__proto__:null,ARIA_ATTR:vh,ATTR_WHITESPACE:wh,CUSTOM_ELEMENT:xh,DATA_ATTR:yh,DOCTYPE_NAME:Cf,ERB_EXPR:mh,IS_ALLOWED_URI:Tf,IS_SCRIPT_OR_DATA:kh,MUSTACHE_EXPR:hh,TMPLIT_EXPR:gh});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},Sh=function(){return typeof window>"u"?null:window},Eh=function(s,o){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let a=null;const f="data-tt-policy-suffix";o&&o.hasAttribute(f)&&(a=o.getAttribute(f));const p="dompurify"+(a?"#"+a:"");try{return s.createPolicy(p,{createHTML(y){return y},createScriptURL(y){return y}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},sf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Rf(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sh();const s=K=>Rf(K);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:y,Node:k,Element:_,NodeFilter:T,NamedNodeMap:S=d.NamedNodeMap||d.MozNamedAttrMap,HTMLFormElement:O,DOMParser:A,trustedTypes:I}=d,G=_.prototype,j=Dl(G,"cloneNode"),X=Dl(G,"remove"),ce=Dl(G,"nextSibling"),ge=Dl(G,"childNodes"),Ee=Dl(G,"parentNode");if(typeof y=="function"){const K=o.createElement("template");K.content&&K.content.ownerDocument&&(o=K.content.ownerDocument)}let te,fe="";const{implementation:ne,createNodeIterator:_e,createDocumentFragment:Q,getElementsByTagName:Ie}=o,{importNode:Le}=a;let ue=sf();s.isSupported=typeof Ef=="function"&&typeof Ee=="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ze,ERB_EXPR:Be,TMPLIT_EXPR:Ke,DATA_ATTR:ut,ARIA_ATTR:De,IS_SCRIPT_OR_DATA:ke,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:J}=of;let{IS_ALLOWED_URI:U}=of,v=null;const C=se({},[...tf,...bs,...qs,...Js,...nf]);let Y=null;const re=se({},[...rf,...eu,...lf,...ro]);let Z=Object.seal(_f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,he=null,de=!0,we=!0,be=!1,Vn=!0,qt=!1,pn=!0,zt=!1,mr=!1,gr=!1,Wt=!1,Qn=!1,hn=!1,mn=!0,Jt=!1;const Qr="user-content-";let yr=!0,gn=!1,en={},tn=null;const vr=se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gn=null;const Gr=se({},["audio","video","img","source","image","track"]);let nn=null;const yn=se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kr="http://www.w3.org/1998/Math/MathML",Yn="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let vn=xt,Kn=!1,Xn=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"],Ql="text/html";let je=null,rn=null;const Gl=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?Ql:g.PARSER_MEDIA_TYPE,je=St==="application/xhtml+xml"?Zs:lo,v=Ht(g,"ALLOWED_TAGS")?se({},g.ALLOWED_TAGS,je):C,Y=Ht(g,"ALLOWED_ATTR")?se({},g.ALLOWED_ATTR,je):re,Xn=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,Gn=Ht(g,"ADD_DATA_URI_TAGS")?se(dr(Gr),g.ADD_DATA_URI_TAGS,je):Gr,tn=Ht(g,"FORBID_CONTENTS")?se({},g.FORBID_CONTENTS,je):vr,ie=Ht(g,"FORBID_TAGS")?se({},g.FORBID_TAGS,je):{},he=Ht(g,"FORBID_ATTR")?se({},g.FORBID_ATTR,je):{},en=Ht(g,"USE_PROFILES")?g.USE_PROFILES:!1,de=g.ALLOW_ARIA_ATTR!==!1,we=g.ALLOW_DATA_ATTR!==!1,be=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qt=g.SAFE_FOR_TEMPLATES||!1,pn=g.SAFE_FOR_XML!==!1,zt=g.WHOLE_DOCUMENT||!1,Wt=g.RETURN_DOM||!1,Qn=g.RETURN_DOM_FRAGMENT||!1,hn=g.RETURN_TRUSTED_TYPE||!1,gr=g.FORCE_BODY||!1,mn=g.SANITIZE_DOM!==!1,Jt=g.SANITIZE_NAMED_PROPS||!1,yr=g.KEEP_CONTENT!==!1,gn=g.IN_PLACE||!1,U=g.ALLOWED_URI_REGEXP||Tf,vn=g.NAMESPACE||xt,kn=g.MATHML_TEXT_INTEGRATION_POINTS||kn,wn=g.HTML_INTEGRATION_POINTS||wn,Z=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&wr(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&wr(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qt&&(we=!1),Qn&&(Wt=!0),en&&(v=se({},nf),Y=[],en.html===!0&&(se(v,tf),se(Y,rf)),en.svg===!0&&(se(v,bs),se(Y,eu),se(Y,ro)),en.svgFilters===!0&&(se(v,qs),se(Y,eu),se(Y,ro)),en.mathMl===!0&&(se(v,Js),se(Y,lf),se(Y,ro))),g.ADD_TAGS&&(v===C&&(v=dr(v)),se(v,g.ADD_TAGS,je)),g.ADD_ATTR&&(Y===re&&(Y=dr(Y)),se(Y,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&&(v["#text"]=!0),zt&&se(v,["html","head","body"]),v.table&&(se(v,["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.');te=g.TRUSTED_TYPES_POLICY,fe=te.createHTML("")}else te===void 0&&(te=Eh(I,f)),te!==null&&typeof fe=="string"&&(fe=te.createHTML(""));st&&st(g),rn=g}},Sn=se({},[...bs,...qs,...dh]),Sr=se({},[...Js,...ph]),Zn=function(g){let M=Ee(g);(!M||!M.tagName)&&(M={namespaceURI:vn,tagName:"template"});const H=lo(g.tagName),Te=lo(M.tagName);return Xn[g.namespaceURI]?g.namespaceURI===Yn?M.namespaceURI===xt?H==="svg":M.namespaceURI===kr?H==="svg"&&(Te==="annotation-xml"||kn[Te]):!!Sn[H]:g.namespaceURI===kr?M.namespaceURI===xt?H==="math":M.namespaceURI===Yn?H==="math"&&wn[Te]:!!Sr[H]:g.namespaceURI===xt?M.namespaceURI===Yn&&!wn[Te]||M.namespaceURI===kr&&!kn[Te]?!1:!Sr[H]&&(xn[H]||!Sn[H]):!!(St==="application/xhtml+xml"&&Xn[g.namespaceURI]):!1},Et=function(g){zl(s.removed,{element:g});try{Ee(g).removeChild(g)}catch{X(g)}},Vt=function(g,M){try{zl(s.removed,{attribute:M.getAttributeNode(g),from:M})}catch{zl(s.removed,{attribute:null,from:M})}if(M.removeAttribute(g),g==="is")if(Wt||Qn)try{Et(M)}catch{}else try{M.setAttribute(g,"")}catch{}},bn=function(g){let M=null,H=null;if(gr)g="<remove></remove>"+g;else{const le=ef(g,/^[\r\n\t ]+/);H=le&&le[0]}St==="application/xhtml+xml"&&vn===xt&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const Te=te?te.createHTML(g):g;if(vn===xt)try{M=new A().parseFromString(Te,St)}catch{}if(!M||!M.documentElement){M=ne.createDocument(vn,"template",null);try{M.documentElement.innerHTML=Kn?fe:Te}catch{}}const Ve=M.body||M.documentElement;return g&&H&&Ve.insertBefore(o.createTextNode(H),Ve.childNodes[0]||null),vn===xt?Ie.call(M,zt?"html":"body")[0]:zt?M.documentElement:Ve},qn=function(g){return _e.call(g.ownerDocument||g,g,T.SHOW_ELEMENT|T.SHOW_COMMENT|T.SHOW_TEXT|T.SHOW_PROCESSING_INSTRUCTION|T.SHOW_CDATA_SECTION,null)},Jn=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 k=="function"&&g instanceof k};function Ot(K,g,M){no(K,H=>{H.call(s,g,M,rn)})}const Kl=function(g){let M=null;if(Ot(ue.beforeSanitizeElements,g,null),Jn(g))return Et(g),!0;const H=je(g.nodeName);if(Ot(ue.uponSanitizeElement,g,{tagName:H,allowedTags:v}),g.hasChildNodes()&&!Yl(g.firstElementChild)&&it(/<[/\w]/g,g.innerHTML)&&it(/<[/\w]/g,g.textContent)||g.nodeType===jl.progressingInstruction||pn&&g.nodeType===jl.comment&&it(/<[/\w]/g,g.data))return Et(g),!0;if(!v[H]||ie[H]){if(!ie[H]&&Kr(H)&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,H)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(H)))return!1;if(yr&&!tn[H]){const Te=Ee(g)||g.parentNode,Ve=ge(g)||g.childNodes;if(Ve&&Te){const le=Ve.length;for(let qe=le-1;qe>=0;--qe){const at=j(Ve[qe],!0);at.__removalCount=(g.__removalCount||0)+1,Te.insertBefore(at,ce(g))}}}return Et(g),!0}return g instanceof _&&!Zn(g)||(H==="noscript"||H==="noembed"||H==="noframes")&&it(/<\/no(script|embed|frames)/i,g.innerHTML)?(Et(g),!0):(qt&&g.nodeType===jl.text&&(M=g.textContent,no([ze,Be,Ke],Te=>{M=Ol(M,Te," ")}),g.textContent!==M&&(zl(s.removed,{element:g.cloneNode()}),g.textContent=M)),Ot(ue.afterSanitizeElements,g,null),!1)},Qt=function(g,M,H){if(mn&&(M==="id"||M==="name")&&(H in o||H in Gl))return!1;if(!(we&&!he[M]&&it(ut,M))){if(!(de&&it(De,M))){if(!Y[M]||he[M]){if(!(Kr(g)&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,g)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(g))&&(Z.attributeNameCheck instanceof RegExp&&it(Z.attributeNameCheck,M)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(M))||M==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&it(Z.tagNameCheck,H)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(H))))return!1}else if(!nn[M]){if(!it(U,Ol(H,D,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&g!=="script"&&uh(H,"data:")===0&&Gn[g])){if(!(be&&!it(ke,Ol(H,D,"")))){if(H)return!1}}}}}}return!0},Kr=function(g){return g!=="annotation-xml"&&ef(g,J)},Xr=function(g){Ot(ue.beforeSanitizeAttributes,g,null);const{attributes:M}=g;if(!M||Jn(g))return;const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Te=M.length;for(;Te--;){const Ve=M[Te],{name:le,namespaceURI:qe,value:at}=Ve,En=je(le);let Ue=le==="value"?at:ah(at);if(H.attrName=En,H.attrValue=Ue,H.keepAttr=!0,H.forceKeepAttr=void 0,Ot(ue.uponSanitizeAttribute,g,H),Ue=H.attrValue,Jt&&(En==="id"||En==="name")&&(Vt(le,g),Ue=Qr+Ue),pn&&it(/((--!?|])>)|<\/(style|title)/i,Ue)){Vt(le,g);continue}if(H.forceKeepAttr||(Vt(le,g),!H.keepAttr))continue;if(!Vn&&it(/\/>/i,Ue)){Vt(le,g);continue}qt&&no([ze,Be,Ke],Zr=>{Ue=Ol(Ue,Zr," ")});const Xl=je(g.nodeName);if(Qt(Xl,En,Ue)){if(te&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!qe)switch(I.getAttributeType(Xl,En)){case"TrustedHTML":{Ue=te.createHTML(Ue);break}case"TrustedScriptURL":{Ue=te.createScriptURL(Ue);break}}try{qe?g.setAttributeNS(qe,le,Ue):g.setAttribute(le,Ue),Jn(g)?Et(g):Jc(s.removed)}catch{}}}Ot(ue.afterSanitizeAttributes,g,null)},co=function K(g){let M=null;const H=qn(g);for(Ot(ue.beforeSanitizeShadowDOM,g,null);M=H.nextNode();)Ot(ue.uponSanitizeShadowNode,M,null),Kl(M),Xr(M),M.content instanceof p&&K(M.content);Ot(ue.afterSanitizeShadowDOM,g,null)};return s.sanitize=function(K){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,H=null,Te=null,Ve=null;if(Kn=!K,Kn&&(K="<!-->"),typeof K!="string"&&!Yl(K))if(typeof K.toString=="function"){if(K=K.toString(),typeof K!="string")throw Il("dirty is not a string, aborting")}else throw Il("toString is not a function");if(!s.isSupported)return K;if(mr||xr(g),s.removed=[],typeof K=="string"&&(gn=!1),gn){if(K.nodeName){const at=je(K.nodeName);if(!v[at]||ie[at])throw Il("root node is forbidden and cannot be sanitized in-place")}}else if(K instanceof k)M=bn("<!---->"),H=M.ownerDocument.importNode(K,!0),H.nodeType===jl.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?M=H:M.appendChild(H);else{if(!Wt&&!qt&&!zt&&K.indexOf("<")===-1)return te&&hn?te.createHTML(K):K;if(M=bn(K),!M)return Wt?null:hn?fe:""}M&&gr&&Et(M.firstChild);const le=qn(gn?K:M);for(;Te=le.nextNode();)Kl(Te),Xr(Te),Te.content instanceof p&&co(Te.content);if(gn)return K;if(Wt){if(Qn)for(Ve=Q.call(M.ownerDocument);M.firstChild;)Ve.appendChild(M.firstChild);else Ve=M;return(Y.shadowroot||Y.shadowrootmode)&&(Ve=Le.call(a,Ve,!0)),Ve}let qe=zt?M.outerHTML:M.innerHTML;return zt&&v["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&it(Cf,M.ownerDocument.doctype.name)&&(qe="<!DOCTYPE "+M.ownerDocument.doctype.name+`> |
|
`+qe),qt&&no([ze,Be,Ke],at=>{qe=Ol(qe,at," ")}),te&&hn?te.createHTML(qe):qe},s.setConfig=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(K),mr=!0},s.clearConfig=function(){rn=null,mr=!1},s.isValidAttribute=function(K,g,M){rn||xr({});const H=je(K),Te=je(g);return Qt(H,Te,M)},s.addHook=function(K,g){typeof g=="function"&&zl(ue[K],g)},s.removeHook=function(K){return Jc(ue[K])},s.removeHooks=function(K){ue[K]=[]},s.removeAllHooks=function(){ue=sf()},s}var _h=Rf();function Th(d){return L.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:[L.jsx("path",{d:"M12 8V4H8"}),L.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),L.jsx("path",{d:"M2 14h2"}),L.jsx("path",{d:"M20 14h2"}),L.jsx("path",{d:"M15 13v2"}),L.jsx("path",{d:"M9 13v2"})]})}function Ch(d){return L.jsx("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{className:"stroke-gray-600 dark:stroke-gray-400",d:"M16 6v3.33M16 6c0-2.65 3.25-4.3 5.4-2.62 1.2.95 1.6 2.65.95 4.04a3.63 3.63 0 0 1 4.61.16 3.45 3.45 0 0 1 .46 4.37 5.32 5.32 0 0 1 1.87 4.75c-.22 1.66-1.39 3.6-3.07 4.14M16 6c0-2.65-3.25-4.3-5.4-2.62a3.37 3.37 0 0 0-.95 4.04 3.65 3.65 0 0 0-4.6.16 3.37 3.37 0 0 0-.49 4.27 5.57 5.57 0 0 0-1.85 4.85 5.3 5.3 0 0 0 3.07 4.15M16 9.33v17.34m0-17.34c0 2.18 1.82 4 4 4m6.22 7.5c.67 1.3.56 2.91-.27 4.11a4.05 4.05 0 0 1-4.62 1.5c0 1.53-1.05 2.9-2.66 2.9A2.7 2.7 0 0 1 16 26.66m10.22-5.83a4.05 4.05 0 0 0-3.55-2.17m-16.9 2.18a4.05 4.05 0 0 0 .28 4.1c1 1.44 2.92 2.09 4.59 1.5 0 1.52 1.12 2.88 2.7 2.88A2.7 2.7 0 0 0 16 26.67M5.78 20.85a4.04 4.04 0 0 1 3.55-2.18"})})}function Rh(d){return L.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:[L.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),L.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;o<a;o++)for(var f in s=arguments[o])Object.prototype.hasOwnProperty.call(s,f)&&(d[f]=s[f]);return d}).apply(this,arguments)},Fl,Ul,iu=me.createContext(void 0),uf="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML",af="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js",Nh=function(S){var s=S.config,o=S.version,o=o===void 0?3:o,a=S.src,a=a===void 0?o===2?uf:af:a,f=S.onStartup,p=S.onLoad,y=S.onError,k=S.typesettingOptions,_=S.renderMode,_=_===void 0?"post":_,T=S.hideUntilTypeset,S=S.children,A=me.useContext(iu);if((A==null?void 0:A.version)!==void 0&&(A==null?void 0:A.version)!==o)throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");if(o===2&&Ul!==void 0||o===3&&Fl!==void 0)throw Error("Cannot use MathJax versions 2 and 3 simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");var O=me.useRef(A),A=me.useRef((A==null?void 0:A.version)||null);if(A.current===null)A.current=o;else if(A.current!==o)throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");var I=a||(o===2?uf:af);function G(j,X){s&&(window.MathJax=s);var ce=document.createElement("script");ce.type="text/javascript",ce.src=I,ce.async=!1,ce.addEventListener("load",function(){var ge=window.MathJax;f&&f(ge),j(ge),p&&p()}),ce.addEventListener("error",function(ge){return X(ge)}),document.getElementsByTagName("head")[0].appendChild(ce)}return O.current===void 0&&(A={typesettingOptions:k,renderMode:_,hideUntilTypeset:T},o===2?Fl===void 0&&(typeof window<"u"?(Fl=new Promise(G)).catch(function(j){if(!y)throw Error("Failed to download MathJax version 2 from '".concat(I,"' due to: ").concat(j));y(j)}):(Fl=Promise.reject()).catch(function(j){})):Ul===void 0&&(typeof window<"u"?(Ul=new Promise(G)).catch(function(j){if(!y)throw Error("Failed to download MathJax version 3 from '".concat(I,"' due to: ").concat(j));y(j)}):(Ul=Promise.reject()).catch(function(j){})),O.current=lu(lu({},A),o===2?{version:2,promise:Fl}:{version:3,promise:Ul})),pf.createElement(iu.Provider,{value:O.current},S)},Wn=function(){return(Wn=Object.assign||function(d){for(var s,o=1,a=arguments.length;o<a;o++)for(var f in s=arguments[o])Object.prototype.hasOwnProperty.call(s,f)&&(d[f]=s[f]);return d}).apply(this,arguments)},Lh=function(d,s){var o={};for(f in d)Object.prototype.hasOwnProperty.call(d,f)&&s.indexOf(f)<0&&(o[f]=d[f]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,f=Object.getOwnPropertySymbols(d);a<f.length;a++)s.indexOf(f[a])<0&&Object.prototype.propertyIsEnumerable.call(d,f[a])&&(o[f[a]]=d[f[a]]);return o},$l=function(d){return"Typesetting failed: ".concat(d.message!==void 0?d.message:d.toString())},cf=function(d){function s(){var fe;j==="every"&&ge&&X==="post"&&I.current!==null&&(I.current.style.visibility=(fe=(fe=O.style)==null?void 0:fe.visibility)!=null?fe:"visible"),Ee.current||(j==="first"&&I.current!==null&&(I.current.style.visibility="visible"),f&&f(),Ee.current=!0),p&&p(),te.current=!1}var a=d.inline,o=a!==void 0&&a,a=d.hideUntilTypeset,f=d.onInitTypeset,p=d.onTypeset,y=d.text,k=d.dynamic,_=d.typesettingOptions,T=d.renderMode,S=d.children,O=Lh(d,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),A=me.useRef(""),I=me.useRef(null),G=me.useContext(iu),j=a??(G==null?void 0:G.hideUntilTypeset),X=T??(G==null?void 0:G.renderMode),ce=_??(G==null?void 0:G.typesettingOptions),ge=k!==!1&&(k||!1),Ee=me.useRef(!1),te=me.useRef(!1);return!te.current&&I.current!==null&&ge&&j==="every"&&X==="post"&&(I.current.style.visibility="hidden"),(typeof window<"u"?me.useLayoutEffect:me.useEffect)(function(){if((ge||!Ee.current)&&I.current!==null){if(!G)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(X==="pre"){if(!(typeof(fe=y)=="string"&&0<fe.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(y,'"'));if(!_||!_.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(G.version===2)throw Error("Render mode 'pre' only available with MathJax 3, and version 2 is currently in use")}X!=="post"&&y===A.current||te.current||(te.current=!0,G.version===3?G.promise.then(function(ne){var _e;X==="pre"?(_e=function(Q){A.current=y,ne.startup.document.clear(),ne.startup.document.updateDocument(),I.current!==null&&(I.current.innerHTML=Q.outerHTML),s()},_.fn.endsWith("Promise")?ne.startup.promise.then(function(){return ne[ce.fn](y,Wn(Wn({},(ce==null?void 0:ce.options)||{}),{display:!o}))}).then(_e).catch(function(Q){throw s(),Error($l(Q))}):ne.startup.promise.then(function(){var Q=ne[ce.fn](y,Wn(Wn({},(ce==null?void 0:ce.options)||{}),{display:!o}));_e(Q)}).catch(function(Q){throw s(),Error($l(Q))})):ne.startup.promise.then(function(){return ne.typesetClear([I.current]),ne.typesetPromise([I.current])}).then(s).catch(function(Q){throw s(),Error($l(Q))})}).catch(function(ne){throw s(),Error($l(ne))}):G.promise.then(function(ne){ne.Hub.Queue(["Typeset",ne.Hub,I.current]),ne.Hub.Queue(s)}).catch(function(ne){throw s(),Error($l(ne))}))}var fe}),pf.createElement("span",Wn({},O,{style:Wn(Wn({display:o?"inline":"block"},O.style),{visibility:j?"hidden":(d=O.style)==null?void 0:d.visibility}),ref:I}),S)};function ff(d){return d=d.replace(/\\([\[\]\(\)])/g,"\\\\$1"),_h.sanitize(ve.parse(d,{async:!1,breaks:!0}))}function Ph({role:d,content:s,answerIndex:o}){const a=o?s.slice(0,o):s,f=o?s.slice(o):"",[p,y]=me.useState(!1),k=f.length>0;return L.jsx("div",{className:"flex items-start space-x-4",children:d==="assistant"?L.jsxs(L.Fragment,{children:[L.jsx(Th,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),L.jsx("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-lg p-4",children:L.jsx("div",{className:"min-h-6 text-gray-800 dark:text-gray-200 overflow-wrap-anywhere",children:a.length>0?L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg flex flex-col",children:[L.jsxs("button",{className:"flex items-center gap-2 cursor-pointer p-4 hover:bg-gray-50 dark:hover:bg-gray-900 rounded-lg ",onClick:()=>y(_=>!_),style:{width:p?"100%":"auto"},children:[L.jsx(Ch,{className:k?"":"animate-pulse"}),L.jsx("span",{children:k?"View reasoning.":"Thinking..."}),L.jsx("span",{className:"ml-auto text-gray-700",children:p?"▲":"▼"})]}),p&&L.jsx(cf,{className:"border-t border-gray-200 dark:border-gray-700 px-4 py-2",dynamic:!0,children:L.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:ff(a)}})})]}),k&&L.jsx(cf,{className:"mt-2",dynamic:!0,children:L.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:ff(f)}})})]}):L.jsxs("span",{className:"h-6 flex items-center gap-1",children:[L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse"}),L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-200"}),L.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-400"})]})})})]}):L.jsxs(L.Fragment,{children:[L.jsx(Rh,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),L.jsx("div",{className:"bg-blue-500 text-white rounded-lg p-4",children:L.jsx("p",{className:"min-h-6 overflow-wrap-anywhere",children:s})})]})})}function Ah({messages:d}){const s=d.length===0;return L.jsx("div",{className:`flex-1 p-6 max-w-[960px] w-full ${s?"flex flex-col items-center justify-end":"space-y-4"}`,children:L.jsx(Nh,{children:s?L.jsx("div",{className:"text-xl",children:"Ready!"}):d.map((o,a)=>L.jsx(Ph,{...o},`message-${a}`))})})}function df(d){return L.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:[L.jsx("path",{d:"M5 12h14"}),L.jsx("path",{d:"m12 5 7 7-7 7"})]})}function Mh(d){return L.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:[L.jsx("path",{d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),L.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 zh(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 Oh({text:d,percentage:s,total:o}){return s??(s=0),L.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:L.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${s}%`},children:[d," (",s.toFixed(2),"%",isNaN(o)?"":` of ${zh(o)}`,")"]})})}const Ih=!!navigator.gpu,Dh=120,jh=["Solve the equation x^2 - 3x + 2 = 0","Lily is three times older than her son. In 15 years, she will be twice as old as him. How old is she now?","Write python code to compute the nth fibonacci number."];function Fh(){const d=me.useRef(null),s=me.useRef(null),o=me.useRef(null),[a,f]=me.useState(null),[p,y]=me.useState(null),[k,_]=me.useState(""),[T,S]=me.useState([]),[O,A]=me.useState(!1),[I,G]=me.useState(""),[j,X]=me.useState([]),[ce,ge]=me.useState(null),[Ee,te]=me.useState(null);function fe(Q){X(Ie=>[...Ie,{role:"user",content:Q}]),ge(null),A(!0),G("")}function ne(){d.current.postMessage({type:"interrupt"})}me.useEffect(()=>{_e()},[I]);function _e(){if(!s.current)return;const Q=s.current;Q.style.height="auto";const Ie=Math.min(Math.max(Q.scrollHeight,24),200);Q.style.height=`${Ie}px`}return me.useEffect(()=>{d.current||(d.current=new Worker(new URL("/assets/worker-575keTrQ.js",import.meta.url),{type:"module"}),d.current.postMessage({type:"check"}));const Q=Le=>{switch(Le.data.status){case"loading":f("loading"),_(Le.data.data);break;case"initiate":S(ue=>[...ue,Le.data]);break;case"progress":S(ue=>ue.map(ze=>ze.file===Le.data.file?{...ze,...Le.data}:ze));break;case"done":S(ue=>ue.filter(ze=>ze.file!==Le.data.file));break;case"ready":f("ready");break;case"start":X(ue=>[...ue,{role:"assistant",content:""}]);break;case"update":{const{output:ue,tps:ze,numTokens:Be,state:Ke}=Le.data;ge(ze),te(Be),X(ut=>{const De=[...ut],ke=De.at(-1),D={...ke,content:ke.content+ue};return D.answerIndex===void 0&&Ke==="answering"&&(D.answerIndex=ke.content.length),De[De.length-1]=D,De})}break;case"complete":A(!1);break;case"error":y(Le.data.data);break}},Ie=Le=>{console.error("Worker error:",Le)};return d.current.addEventListener("message",Q),d.current.addEventListener("error",Ie),()=>{d.current.removeEventListener("message",Q),d.current.removeEventListener("error",Ie)}},[]),me.useEffect(()=>{j.filter(Q=>Q.role==="user").length!==0&&j.at(-1).role!=="assistant"&&(ge(null),d.current.postMessage({type:"generate",data:j}))},[j,O]),me.useEffect(()=>{if(!o.current||!O)return;const Q=o.current;Q.scrollHeight-Q.scrollTop-Q.clientHeight<Dh&&(Q.scrollTop=Q.scrollHeight)},[j,O]),Ih?L.jsxs("div",{className:"flex flex-col h-screen mx-auto items justify-end text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900",children:[a===null&&j.length===0&&L.jsxs("div",{className:"h-full overflow-auto scrollbar-thin flex justify-center items-center flex-col relative",children:[L.jsxs("div",{className:"flex flex-col items-center mb-1 max-w-[360px] text-center",children:[L.jsx("img",{src:"logo.png",width:"100%",height:"auto",className:"block drop-shadow-lg bg-transparent"}),L.jsx("h1",{className:"text-4xl font-bold mb-1",children:"Llama-3.2 Reasoning"}),L.jsx("h2",{className:"font-semibold",children:"A blazingly fast and powerful reasoning AI chatbot that runs locally in your browser."})]}),L.jsxs("div",{className:"flex flex-col items-center px-4",children:[L.jsxs("p",{className:"max-w-[480px] mb-4",children:[L.jsx("br",{}),"You are about to load"," ",L.jsx("a",{href:"https://huggingface.co/ngxson/MiniThinky-v2-1B-Llama-3.2",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"MiniThinky-v2"}),", a 1.2B parameter reasoning LLM optimized for in-browser inference. Everything runs entirely in your browser with"," ",L.jsx("a",{href:"https://huggingface.co/docs/transformers.js",target:"_blank",rel:"noreferrer",className:"underline",children:"🤗 Transformers.js"})," ","and ONNX Runtime Web, meaning no data is sent to a server. Once loaded, it can even be used offline. The source code for the demo is available on"," ",L.jsx("a",{href:"https://github.com/huggingface/transformers.js-examples/tree/main/llama-3.2-reasoning-webgpu",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"GitHub"}),"."]}),p&&L.jsxs("div",{className:"text-red-500 text-center mb-2",children:[L.jsx("p",{className:"mb-1",children:"Unable to load model due to the following error:"}),L.jsx("p",{className:"text-sm",children:p})]}),L.jsx("button",{className:"border px-4 py-2 rounded-lg bg-blue-400 text-white hover:bg-blue-500 disabled:bg-blue-100 cursor-pointer disabled:cursor-not-allowed select-none",onClick:()=>{d.current.postMessage({type:"load"}),f("loading")},disabled:a!==null||p!==null,children:"Load model"})]})]}),a==="loading"&&L.jsx(L.Fragment,{children:L.jsxs("div",{className:"w-full max-w-[500px] text-left mx-auto p-4 bottom-0 mt-auto",children:[L.jsx("p",{className:"text-center mb-1",children:k}),T.map(({file:Q,progress:Ie,total:Le},ue)=>L.jsx(Oh,{text:Q,percentage:Ie,total:Le},ue))]})}),a==="ready"&&L.jsxs("div",{ref:o,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[L.jsx(Ah,{messages:j}),j.length===0&&L.jsx("div",{children:jh.map((Q,Ie)=>L.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:()=>fe(Q),children:Q},Ie))}),L.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:ce&&j.length>0&&L.jsxs(L.Fragment,{children:[!O&&L.jsxs("span",{children:["Generated ",Ee," tokens in"," ",(Ee/ce).toFixed(2)," seconds ("]}),L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:ce.toFixed(2)}),L.jsx("span",{className:"text-gray-500 dark:text-gray-300",children:"tokens/second"})]}),!O&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"mr-1",children:")."}),L.jsx("span",{className:"underline cursor-pointer",onClick:()=>{d.current.postMessage({type:"reset"}),X([])},children:"Reset"})]})]})})]}),L.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:[L.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:Q=>{I.length>0&&!O&&Q.key==="Enter"&&!Q.shiftKey&&(Q.preventDefault(),fe(I))},onInput:Q=>G(Q.target.value)}),O?L.jsx("div",{className:"cursor-pointer",onClick:ne,children:L.jsx(Mh,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-3 bottom-3"})}):I.length>0?L.jsx("div",{className:"cursor-pointer",onClick:()=>fe(I),children:L.jsx(df,{className:"h-8 w-8 p-1 bg-gray-800 dark:bg-gray-100 text-white dark:text-black rounded-md absolute right-3 bottom-3"})}):L.jsx("div",{children:L.jsx(df,{className:"h-8 w-8 p-1 bg-gray-200 dark:bg-gray-600 text-gray-50 dark:text-gray-800 rounded-md absolute right-3 bottom-3"})})]}),L.jsx("p",{className:"text-xs text-gray-400 text-center mb-3",children:"Disclaimer: Generated content may be inaccurate or false."})]}):L.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",L.jsx("br",{}),"by this browser :("]})}Ep.createRoot(document.getElementById("root")).render(L.jsx(me.StrictMode,{children:L.jsx(Fh,{})})); |
|
|