File size: 221,904 Bytes
1788e60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
var cp=Object.defineProperty;var fp=(d,s,o)=>s in d?cp(d,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[s]=o;var xe=(d,s,o)=>fp(d,typeof s!="symbol"?s+"":s,o);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))a(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const v of p.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&a(v)}).observe(document,{childList:!0,subtree:!0});function o(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function a(f){if(f.ep)return;f.ep=!0;const p=o(f);fetch(f.href,p)}})();function dp(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Gs={exports:{}},Pl={},Qs={exports:{}},oe={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fc;function pp(){if(Fc)return oe;Fc=1;var d=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.iterator;function P(y){return y===null||typeof y!="object"?null:(y=O&&y[O]||y["@@iterator"],typeof y=="function"?y:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,D={};function K(y,C,Y){this.props=y,this.context=C,this.refs=D,this.updater=Y||I}K.prototype.isReactComponent={},K.prototype.setState=function(y,C){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,C,"setState")},K.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function ce(){}ce.prototype=K.prototype;function me(y,C,Y){this.props=y,this.context=C,this.refs=D,this.updater=Y||I}var Se=me.prototype=new ce;Se.constructor=me,Q(Se,K.prototype),Se.isPureReactComponent=!0;var te=Array.isArray,fe=Object.prototype.hasOwnProperty,ne={current:null},Ee={key:!0,ref:!0,__self:!0,__source:!0};function G(y,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)&&!Ee.hasOwnProperty(re)&&(Z[re]=C[re]);var de=arguments.length-2;if(de===1)Z.children=Y;else if(1<de){for(var ke=Array(de),Je=0;Je<de;Je++)ke[Je]=arguments[Je+2];Z.children=ke}if(y&&y.defaultProps)for(re in de=y.defaultProps,de)Z[re]===void 0&&(Z[re]=de[re]);return{$$typeof:d,type:y,key:ie,ref:he,props:Z,_owner:ne.current}}function Ie(y,C){return{$$typeof:d,type:y.type,key:C,ref:y.ref,props:y.props,_owner:y._owner}}function Ne(y){return typeof y=="object"&&y!==null&&y.$$typeof===d}function ue(y){var C={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(Y){return C[Y]})}var ze=/\/+/g;function $e(y,C){return typeof y=="object"&&y!==null&&y.key!=null?ue(""+y.key):C.toString(36)}function Xe(y,C,Y,re,Z){var ie=typeof y;(ie==="undefined"||ie==="boolean")&&(y=null);var he=!1;if(y===null)he=!0;else switch(ie){case"string":case"number":he=!0;break;case"object":switch(y.$$typeof){case d:case s:he=!0}}if(he)return he=y,Z=Z(he),y=re===""?"."+$e(he,0):re,te(Z)?(Y="",y!=null&&(Y=y.replace(ze,"$&/")+"/"),Xe(Z,C,Y,"",function(Je){return Je})):Z!=null&&(Ne(Z)&&(Z=Ie(Z,Y+(!Z.key||he&&he.key===Z.key?"":(""+Z.key).replace(ze,"$&/")+"/")+y)),C.push(Z)),1;if(he=0,re=re===""?".":re+":",te(y))for(var de=0;de<y.length;de++){ie=y[de];var ke=re+$e(ie,de);he+=Xe(ie,C,Y,ke,Z)}else if(ke=P(y),typeof ke=="function")for(y=ke.call(y),de=0;!(ie=y.next()).done;)ie=ie.value,ke=re+$e(ie,de++),he+=Xe(ie,C,Y,ke,Z);else if(ie==="object")throw C=String(y),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.");return he}function Ke(y,C,Y){if(y==null)return y;var re=[],Z=0;return Xe(y,re,"","",function(ie){return C.call(Y,ie,Z++)}),re}function Be(y){if(y._status===-1){var C=y._result;C=C(),C.then(function(Y){(y._status===0||y._status===-1)&&(y._status=1,y._result=Y)},function(Y){(y._status===0||y._status===-1)&&(y._status=2,y._result=Y)}),y._status===-1&&(y._status=0,y._result=C)}if(y._status===1)return y._result.default;throw y._result}var Le={current:null},j={transition:null},b={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:j,ReactCurrentOwner:ne};function U(){throw Error("act(...) is not supported in production builds of React.")}return oe.Children={map:Ke,forEach:function(y,C,Y){Ke(y,function(){C.apply(this,arguments)},Y)},count:function(y){var C=0;return Ke(y,function(){C++}),C},toArray:function(y){return Ke(y,function(C){return C})||[]},only:function(y){if(!Ne(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},oe.Component=K,oe.Fragment=o,oe.Profiler=f,oe.PureComponent=me,oe.StrictMode=a,oe.Suspense=T,oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b,oe.act=U,oe.cloneElement=function(y,C,Y){if(y==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+y+".");var re=Q({},y.props),Z=y.key,ie=y.ref,he=y._owner;if(C!=null){if(C.ref!==void 0&&(ie=C.ref,he=ne.current),C.key!==void 0&&(Z=""+C.key),y.type&&y.type.defaultProps)var de=y.type.defaultProps;for(ke in C)fe.call(C,ke)&&!Ee.hasOwnProperty(ke)&&(re[ke]=C[ke]===void 0&&de!==void 0?de[ke]:C[ke])}var ke=arguments.length-2;if(ke===1)re.children=Y;else if(1<ke){de=Array(ke);for(var Je=0;Je<ke;Je++)de[Je]=arguments[Je+2];re.children=de}return{$$typeof:d,type:y.type,key:Z,ref:ie,props:re,_owner:he}},oe.createContext=function(y){return y={$$typeof:v,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},y.Provider={$$typeof:p,_context:y},y.Consumer=y},oe.createElement=G,oe.createFactory=function(y){var C=G.bind(null,y);return C.type=y,C},oe.createRef=function(){return{current:null}},oe.forwardRef=function(y){return{$$typeof:w,render:y}},oe.isValidElement=Ne,oe.lazy=function(y){return{$$typeof:S,_payload:{_status:-1,_result:y},_init:Be}},oe.memo=function(y,C){return{$$typeof:_,type:y,compare:C===void 0?null:C}},oe.startTransition=function(y){var C=j.transition;j.transition={};try{y()}finally{j.transition=C}},oe.unstable_act=U,oe.useCallback=function(y,C){return Le.current.useCallback(y,C)},oe.useContext=function(y){return Le.current.useContext(y)},oe.useDebugValue=function(){},oe.useDeferredValue=function(y){return Le.current.useDeferredValue(y)},oe.useEffect=function(y,C){return Le.current.useEffect(y,C)},oe.useId=function(){return Le.current.useId()},oe.useImperativeHandle=function(y,C,Y){return Le.current.useImperativeHandle(y,C,Y)},oe.useInsertionEffect=function(y,C){return Le.current.useInsertionEffect(y,C)},oe.useLayoutEffect=function(y,C){return Le.current.useLayoutEffect(y,C)},oe.useMemo=function(y,C){return Le.current.useMemo(y,C)},oe.useReducer=function(y,C,Y){return Le.current.useReducer(y,C,Y)},oe.useRef=function(y){return Le.current.useRef(y)},oe.useState=function(y){return Le.current.useState(y)},oe.useSyncExternalStore=function(y,C,Y){return Le.current.useSyncExternalStore(y,C,Y)},oe.useTransition=function(){return Le.current.useTransition()},oe.version="18.3.1",oe}var Uc;function ou(){return Uc||(Uc=1,Qs.exports=pp()),Qs.exports}/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $c;function hp(){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 v(w,T,_){var S,O={},P=null,I=null;_!==void 0&&(P=""+_),T.key!==void 0&&(P=""+T.key),T.ref!==void 0&&(I=T.ref);for(S in T)a.call(T,S)&&!p.hasOwnProperty(S)&&(O[S]=T[S]);if(w&&w.defaultProps)for(S in T=w.defaultProps,T)O[S]===void 0&&(O[S]=T[S]);return{$$typeof:s,type:w,key:P,ref:I,props:O,_owner:f.current}}return Pl.Fragment=o,Pl.jsx=v,Pl.jsxs=v,Pl}var Bc;function mp(){return Bc||(Bc=1,Gs.exports=hp()),Gs.exports}var z=mp(),ye=ou();const ff=dp(ye);var eo={},Ys={exports:{}},mt={},Xs={exports:{}},Ks={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hc;function gp(){return Hc||(Hc=1,function(d){function s(j,b){var U=j.length;j.push(b);e:for(;0<U;){var y=U-1>>>1,C=j[y];if(0<f(C,b))j[y]=b,j[U]=C,U=y;else break e}}function o(j){return j.length===0?null:j[0]}function a(j){if(j.length===0)return null;var b=j[0],U=j.pop();if(U!==b){j[0]=U;e:for(var y=0,C=j.length,Y=C>>>1;y<Y;){var re=2*(y+1)-1,Z=j[re],ie=re+1,he=j[ie];if(0>f(Z,U))ie<C&&0>f(he,Z)?(j[y]=he,j[ie]=U,y=ie):(j[y]=Z,j[re]=U,y=re);else if(ie<C&&0>f(he,U))j[y]=he,j[ie]=U,y=ie;else break e}}return b}function f(j,b){var U=j.sortIndex-b.sortIndex;return U!==0?U:j.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;d.unstable_now=function(){return p.now()}}else{var v=Date,w=v.now();d.unstable_now=function(){return v.now()-w}}var T=[],_=[],S=1,O=null,P=3,I=!1,Q=!1,D=!1,K=typeof setTimeout=="function"?setTimeout:null,ce=typeof clearTimeout=="function"?clearTimeout:null,me=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Se(j){for(var b=o(_);b!==null;){if(b.callback===null)a(_);else if(b.startTime<=j)a(_),b.sortIndex=b.expirationTime,s(T,b);else break;b=o(_)}}function te(j){if(D=!1,Se(j),!Q)if(o(T)!==null)Q=!0,Be(fe);else{var b=o(_);b!==null&&Le(te,b.startTime-j)}}function fe(j,b){Q=!1,D&&(D=!1,ce(G),G=-1),I=!0;var U=P;try{for(Se(b),O=o(T);O!==null&&(!(O.expirationTime>b)||j&&!ue());){var y=O.callback;if(typeof y=="function"){O.callback=null,P=O.priorityLevel;var C=y(O.expirationTime<=b);b=d.unstable_now(),typeof C=="function"?O.callback=C:O===o(T)&&a(T),Se(b)}else a(T);O=o(T)}if(O!==null)var Y=!0;else{var re=o(_);re!==null&&Le(te,re.startTime-b),Y=!1}return Y}finally{O=null,P=U,I=!1}}var ne=!1,Ee=null,G=-1,Ie=5,Ne=-1;function ue(){return!(d.unstable_now()-Ne<Ie)}function ze(){if(Ee!==null){var j=d.unstable_now();Ne=j;var b=!0;try{b=Ee(!0,j)}finally{b?$e():(ne=!1,Ee=null)}}else ne=!1}var $e;if(typeof me=="function")$e=function(){me(ze)};else if(typeof MessageChannel<"u"){var Xe=new MessageChannel,Ke=Xe.port2;Xe.port1.onmessage=ze,$e=function(){Ke.postMessage(null)}}else $e=function(){K(ze,0)};function Be(j){Ee=j,ne||(ne=!0,$e())}function Le(j,b){G=K(function(){j(d.unstable_now())},b)}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(j){j.callback=null},d.unstable_continueExecution=function(){Q||I||(Q=!0,Be(fe))},d.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ie=0<j?Math.floor(1e3/j):5},d.unstable_getCurrentPriorityLevel=function(){return P},d.unstable_getFirstCallbackNode=function(){return o(T)},d.unstable_next=function(j){switch(P){case 1:case 2:case 3:var b=3;break;default:b=P}var U=P;P=b;try{return j()}finally{P=U}},d.unstable_pauseExecution=function(){},d.unstable_requestPaint=function(){},d.unstable_runWithPriority=function(j,b){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var U=P;P=j;try{return b()}finally{P=U}},d.unstable_scheduleCallback=function(j,b,U){var y=d.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?y+U:y):U=y,j){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,j={id:S++,callback:b,priorityLevel:j,startTime:U,expirationTime:C,sortIndex:-1},U>y?(j.sortIndex=U,s(_,j),o(T)===null&&j===o(_)&&(D?(ce(G),G=-1):D=!0,Le(te,U-y))):(j.sortIndex=C,s(T,j),Q||I||(Q=!0,Be(fe))),j},d.unstable_shouldYield=ue,d.unstable_wrapCallback=function(j){var b=P;return function(){var U=P;P=b;try{return j.apply(this,arguments)}finally{P=U}}}}(Ks)),Ks}var Wc;function yp(){return Wc||(Wc=1,Xs.exports=gp()),Xs.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vc;function vp(){if(Vc)return mt;Vc=1;var d=ou(),s=yp();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<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){v(e,t),v(e+"Capture",t)}function v(e,t){for(f[e]=t,e=0;e<t.length;e++)a.add(t[e])}var w=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),T=Object.prototype.hasOwnProperty,_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,S={},O={};function P(e){return T.call(O,e)?!0:T.call(S,e)?!1:_.test(e)?O[e]=!0:(S[e]=!0,!1)}function I(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Q(e,t,n,r){if(t===null||typeof t>"u"||I(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function D(e,t,n,r,l,i,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=u}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){K[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];K[t]=new D(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){K[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){K[e]=new D(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){K[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){K[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){K[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){K[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){K[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var ce=/[\-:]([a-z])/g;function me(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,me);K[t]=new D(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ce,me);K[t]=new D(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ce,me);K[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){K[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),K.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){K[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function Se(e,t,n,r){var l=K.hasOwnProperty(t)?K[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Q(t,n,l,r)&&(n=null),r||l===null?P(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"),Ee=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),Ie=Symbol.for("react.profiler"),Ne=Symbol.for("react.provider"),ue=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),j=Symbol.iterator;function b(e){return e===null||typeof e!="object"?null:(e=j&&e[j]||e["@@iterator"],typeof e=="function"?e:null)}var U=Object.assign,y;function C(e){if(y===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);y=t&&t[1]||""}return`
`+y+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 Ee:return"Fragment";case ne:return"Portal";case Ie:return"Profiler";case G:return"StrictMode";case $e:return"Suspense";case Xe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ue:return(e.displayName||"Context")+".Consumer";case Ne:return(e._context.displayName||"Context")+".Provider";case ze:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ke:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case Be: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===G?"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 ke(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=ke(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=Je(e))}function Jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ke(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&&Se(e,"checked",t,!1)}function Wt(e,t){gr(e,t);var n=de(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hn(e,t.type,n):t.hasOwnProperty("defaultValue")&&hn(e,t.type,de(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function hn(e,t,n){(t!=="number"||pn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mn=Array.isArray;function bt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<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 Gr(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 Qn,Qr=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(Qn=Qn||document.createElement("div"),Qn.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Qn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kr=["Webkit","ms","Moz","O"];Object.keys(yn).forEach(function(e){kr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yn[t]=yn[e]})});function Yn(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yn.hasOwnProperty(e)&&yn[e]?(""+t).trim():t+"px"}function xt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Yn(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var vn=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xn(e,t){if(t){if(vn[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Kn(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yr=null;function kn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wn=null,xn=null,St=null;function Vl(e){if(e=ml(e)){if(typeof wn!="function")throw Error(o(280));var t=e.stateNode;t&&(t=mi(t),wn(e.stateNode,e.type,t))}}function Gl(e){xn?St?St.push(e):St=[e]:xn=e}function De(){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 Ql(){}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)&&(Ql(),De())}}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(w)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,qn=null,Jn=!1,bn=null,Yl={onError:function(e){Vt=!0,qn=e}};function Ot(e,t,n,r,l,i,u,c,h){Vt=!1,qn=null,Et.apply(Yl,arguments)}function Xl(e,t,n,r,l,i,u,c,h){if(Ot.apply(this,arguments),Vt){if(Vt){var E=qn;Vt=!1,qn=null}else throw Error(o(198));Jn||(Jn=!0,bn=E)}}function Gt(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 Xr(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 Kr(e){if(Gt(e)!==e)throw Error(o(188))}function co(e){var t=e.alternate;if(!t){if(t=Gt(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 Kr(l),e;if(i===r)return Kr(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 X(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 A=s.unstable_scheduleCallback,H=s.unstable_cancelCallback,_e=s.unstable_shouldYield,Ve=s.unstable_requestPaint,le=s.unstable_now,be=s.unstable_getCurrentPriorityLevel,at=s.unstable_ImmediatePriority,En=s.unstable_UserBlockingPriority,Fe=s.unstable_NormalPriority,Kl=s.unstable_LowPriority,Zr=s.unstable_IdlePriority,Zl=null,Qt=null;function Cf(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Zl,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:Lf,Rf=Math.log,Nf=Math.LN2;function Lf(e){return e>>>=0,e===0?32:31-(Rf(e)/Nf|0)|0}var ql=64,Jl=4194304;function qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=n&268435455;if(u!==0){var c=u&~l;c!==0?r=qr(c):(i&=u,i!==0&&(r=qr(i)))}else u=n&~l,u!==0?r=qr(u):i!==0&&(r=qr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-It(t),l=1<<n,r|=e[n],t&=~l;return r}function Pf(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 Af(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]=Pf(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=ql;return ql<<=1,!(ql&4194240)&&(ql=64),e}function po(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Jr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Mf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<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 ge=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,br=new Map,el=new Map,Rn=[],zf="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":br.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 Of(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 br.set(i,tl(br.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=Gt(t);if(n!==null){if(t=n.tag,t===13){if(t=Xr(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 If(){go=!1,_n!==null&&ti(_n)&&(_n=null),Tn!==null&&ti(Tn)&&(Tn=null),Cn!==null&&ti(Cn)&&(Cn=null),br.forEach(Eu),el.forEach(Eu)}function nl(e,t){e.blockedOn===t&&(e.blockedOn=null,go||(go=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,If)))}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),br.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 Df(e,t,n,r){var l=ge,i=Er.transition;Er.transition=null;try{ge=1,yo(e,t,n,r)}finally{ge=l,Er.transition=i}}function jf(e,t,n,r){var l=ge,i=Er.transition;Er.transition=null;try{ge=4,yo(e,t,n,r)}finally{ge=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(Of(l,e,t,n,r))r.stopPropagation();else if(xu(e,r),t&4&&-1<zf.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=Gt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xr(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(be()){case at:return 1;case En:return 4;case Fe:case Kl: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}),Ff=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),Uf=U({},si,{dataTransfer:0}),$f=gt(Uf),Bf=U({},ll,{relatedTarget:0}),Eo=gt(Bf),Hf=U({},_r,{animationName:0,elapsedTime:0,pseudoElement:0}),Wf=gt(Hf),Vf=U({},_r,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gf=gt(Vf),Qf=U({},_r,{data:0}),Nu=gt(Qf),Yf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xf={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"},Kf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kf[e])?!!t[e]:!1}function _o(){return Zf}var qf=U({},ll,{key:function(e){if(e.key){var t=Yf[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"?Xf[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}}),Jf=gt(qf),bf=U({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lu=gt(bf),ed=U({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),td=gt(ed),nd=U({},_r,{propertyName:0,elapsedTime:0,pseudoElement:0}),rd=gt(nd),ld=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}),id=gt(ld),od=[9,13,27,32],To=w&&"CompositionEvent"in window,ol=null;w&&"documentMode"in document&&(ol=document.documentMode);var sd=w&&"TextEvent"in window&&!ol,Pu=w&&(!To||ol&&8<ol&&11>=ol),Au=" ",Mu=!1;function zu(e,t){switch(e){case"keyup":return od.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ou(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function ud(e,t){switch(e){case"compositionend":return Ou(t);case"keypress":return t.which!==32?null:(Mu=!0,Au);case"textInput":return e=t.data,e===Au&&Mu?null:e;default:return null}}function ad(e,t){if(Tr)return e==="compositionend"||!To&&zu(e,t)?(e=Tu(),li=ko=Nn=null,Tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.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 cd={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"?!!cd[e.type]:t==="textarea"}function Du(e,t,n,r){Gl(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 fd(e){ea(e,0)}function ui(e){var t=Pr(e);if(Jt(t))return e}function dd(e,t){if(e==="change")return t}var ju=!1;if(w){var Co;if(w){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(fd,t)}}function pd(e,t,n){e==="focusin"?(Uu(),sl=t,ul=n,sl.attachEvent("onpropertychange",$u)):e==="focusout"&&Uu()}function hd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ui(ul)}function md(e,t){if(e==="click")return ui(t)}function gd(e,t){if(e==="input"||e==="change")return ui(t)}function yd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:yd;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(!T.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 vd(e){var t=Vu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wu(n.ownerDocument.documentElement,n)){if(r!==null&&No(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Hu(n,i);var u=Hu(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kd=w&&"documentMode"in document&&11>=document.documentMode,Cr=null,Lo=null,cl=null,Po=!1;function Gu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Po||Cr==null||Cr!==pn(r)||(r=Cr,"selectionStart"in r&&No(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cl&&al(cl,r)||(cl=r,r=di(Lo,"onSelect"),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={},Qu={};w&&(Qu=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 Qu)return Ao[e]=t[n];return e}var Yu=ci("animationend"),Xu=ci("animationiteration"),Ku=ci("animationstart"),Zu=ci("transitionend"),qu=new Map,Ju="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){qu.set(e,t),p(t,[e])}for(var Mo=0;Mo<Ju.length;Mo++){var zo=Ju[Mo],wd=zo.toLowerCase(),xd=zo[0].toUpperCase()+zo.slice(1);Ln(wd,"on"+xd)}Ln(Yu,"onAnimationEnd"),Ln(Xu,"onAnimationIteration"),Ln(Ku,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(Zu,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("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(" "),Sd=new Set("cancel close invalid load scroll toggle".split(" ").concat(fl));function bu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Xl(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;bu(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;bu(l,c,E),i=h}}}if(Jn)throw e=bn,Jn=!1,bn=null,e}function Ce(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"&&(Sd.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=Df;break;case 4:l=jf;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),L=[];e:{var R=qu.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=Jf;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=$f;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=td;break;case Yu:case Xu:case Ku:F=Wf;break;case Zu:F=rd;break;case"scroll":F=Ff;break;case"wheel":F=id;break;case"copy":case"cut":case"paste":F=Gf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Lu}var W=(t&4)!==0,je=!W&&e==="scroll",k=W?R!==null?R+"Capture":null:R;W=[];for(var m=E,x;m!==null;){x=m;var M=x.stateNode;if(x.tag===5&&M!==null&&(x=M,k!==null&&(M=Sn(m,k),M!=null&&W.push(pl(m,M,x)))),je)break;m=m.return}0<W.length&&(R=new F(R,B,null,n,N),L.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&&(je=Gt(B),B!==je||B.tag!==5&&B.tag!==6)&&(B=null)):(F=null,B=E),F!==B)){if(W=Ru,M="onMouseLeave",k="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(W=Lu,M="onPointerLeave",k="onPointerEnter",m="pointer"),je=F==null?R:Pr(F),x=B==null?R:Pr(B),R=new W(M,m+"leave",F,n,N),R.target=je,R.relatedTarget=x,M=null,er(N)===E&&(W=new W(k,m+"enter",B,n,N),W.target=x,W.relatedTarget=je,M=W),je=M,F&&B)t:{for(W=F,k=B,m=0,x=W;x;x=Nr(x))m++;for(x=0,M=k;M;M=Nr(M))x++;for(;0<m-x;)W=Nr(W),m--;for(;0<x-m;)k=Nr(k),x--;for(;m--;){if(W===k||k!==null&&W===k.alternate)break t;W=Nr(W),k=Nr(k)}W=null}else W=null;F!==null&&na(L,R,F,W,!1),B!==null&&je!==null&&na(L,je,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=dd;else if(Iu(R))if(ju)V=gd;else{V=hd;var q=pd}else(F=R.nodeName)&&F.toLowerCase()==="input"&&(R.type==="checkbox"||R.type==="radio")&&(V=md);if(V&&(V=V(e,E))){Du(L,V,n,N);break e}q&&q(e,R,E),e==="focusout"&&(q=R._wrapperState)&&q.controlled&&R.type==="number"&&hn(R,"number",R.value)}switch(q=E?Pr(E):window,e){case"focusin":(Iu(q)||q.contentEditable==="true")&&(Cr=q,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,Gu(L,n,N);break;case"selectionchange":if(kd)break;case"keydown":case"keyup":Gu(L,n,N)}var J;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&&(J=Tu()):(Nn=N,ko="value"in Nn?Nn.value:Nn.textContent,Tr=!0)),q=di(E,ee),0<q.length&&(ee=new Nu(ee,e,null,n,N),L.push({event:ee,listeners:q}),J?ee.data=J:(J=Ou(n),J!==null&&(ee.data=J)))),(J=sd?ud(e,n):ad(e,n))&&(E=di(E,"onBeforeInput"),0<E.length&&(N=new Nu("onBeforeInput","beforeinput",null,n,N),L.push({event:N,listeners:E}),N.data=J))}ea(L,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 Ed=/\r\n?/g,_d=/\u0000|\uFFFD/g;function ra(e){return(typeof e=="string"?e:""+e).replace(Ed,`
`).replace(_d,"")}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,Td=typeof clearTimeout=="function"?clearTimeout:void 0,la=typeof Promise=="function"?Promise:void 0,Cd=typeof queueMicrotask=="function"?queueMicrotask:typeof la<"u"?function(e){return la.resolve(null).then(e).catch(Rd)}:Uo;function Rd(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,Nd="__reactListeners$"+Lr,Ld="__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 Re(e){0>Ar||(e.current=Ho[Ar],Ho[Ar]=null,Ar--)}function Te(e,t){Ar++,Ho[Ar]=e.current,e.current=t}var Mn={},et=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(){Re(ct),Re(et)}function oa(e,t,n){if(et.current!==Mn)throw Error(o(168));Te(et,t),Te(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=et.current,Te(et,e),Te(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,Re(ct),Re(et),Te(et,e)):Re(ct),Te(ct,n)}var on=null,vi=!1,Wo=!1;function aa(e){on===null?on=[e]:on.push(e)}function Pd(e){vi=!0,aa(e)}function zn(){if(!Wo&&on!==null){Wo=!0;var e=0,t=ge;try{var n=on;for(ge=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)),A(at,zn),l}finally{ge=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 Go(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 Qo(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(Qo(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(Qo(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(Qo(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 Xo(e){jt===null?jt=[e]:jt.push(e)}var Ad=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(k,m){if(e){var x=k.deletions;x===null?(k.deletions=[m],k.flags|=16):x.push(m)}}function n(k,m){if(!e)return null;for(;m!==null;)t(k,m),m=m.sibling;return null}function r(k,m){for(k=new Map;m!==null;)m.key!==null?k.set(m.key,m):k.set(m.index,m),m=m.sibling;return k}function l(k,m){return k=Bn(k,m),k.index=0,k.sibling=null,k}function i(k,m,x){return k.index=x,e?(x=k.alternate,x!==null?(x=x.index,x<m?(k.flags|=2,m):x):(k.flags|=2,m)):(k.flags|=1048576,m)}function u(k){return e&&k.alternate===null&&(k.flags|=2),k}function c(k,m,x,M){return m===null||m.tag!==6?(m=Us(x,k.mode,M),m.return=k,m):(m=l(m,x),m.return=k,m)}function h(k,m,x,M){var V=x.type;return V===Ee?N(k,m,x.props.children,M,x.key):m!==null&&(m.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===Be&&ma(V)===m.type)?(M=l(m,x.props),M.ref=gl(k,m,x),M.return=k,M):(M=Qi(x.type,x.key,x.props,null,k.mode,M),M.ref=gl(k,m,x),M.return=k,M)}function E(k,m,x,M){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=$s(x,k.mode,M),m.return=k,m):(m=l(m,x.children||[]),m.return=k,m)}function N(k,m,x,M,V){return m===null||m.tag!==7?(m=fr(x,k.mode,M,V),m.return=k,m):(m=l(m,x),m.return=k,m)}function L(k,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Us(""+m,k.mode,x),m.return=k,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case fe:return x=Qi(m.type,m.key,m.props,null,k.mode,x),x.ref=gl(k,null,m),x.return=k,x;case ne:return m=$s(m,k.mode,x),m.return=k,m;case Be:var M=m._init;return L(k,M(m._payload),x)}if(mn(m)||b(m))return m=fr(m,k.mode,x,null),m.return=k,m;Si(k,m)}return null}function R(k,m,x,M){var V=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return V!==null?null:c(k,m,""+x,M);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case fe:return x.key===V?h(k,m,x,M):null;case ne:return x.key===V?E(k,m,x,M):null;case Be:return V=x._init,R(k,m,V(x._payload),M)}if(mn(x)||b(x))return V!==null?null:N(k,m,x,M,null);Si(k,x)}return null}function F(k,m,x,M,V){if(typeof M=="string"&&M!==""||typeof M=="number")return k=k.get(x)||null,c(m,k,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case fe:return k=k.get(M.key===null?x:M.key)||null,h(m,k,M,V);case ne:return k=k.get(M.key===null?x:M.key)||null,E(m,k,M,V);case Be:var q=M._init;return F(k,m,x,q(M._payload),V)}if(mn(M)||b(M))return k=k.get(x)||null,N(m,k,M,V,null);Si(m,M)}return null}function B(k,m,x,M){for(var V=null,q=null,J=m,ee=m=0,Ye=null;J!==null&&ee<x.length;ee++){J.index>ee?(Ye=J,J=null):Ye=J.sibling;var pe=R(k,J,x[ee],M);if(pe===null){J===null&&(J=Ye);break}e&&J&&pe.alternate===null&&t(k,J),m=i(pe,m,ee),q===null?V=pe:q.sibling=pe,q=pe,J=Ye}if(ee===x.length)return n(k,J),Pe&&rr(k,ee),V;if(J===null){for(;ee<x.length;ee++)J=L(k,x[ee],M),J!==null&&(m=i(J,m,ee),q===null?V=J:q.sibling=J,q=J);return Pe&&rr(k,ee),V}for(J=r(k,J);ee<x.length;ee++)Ye=F(J,k,ee,x[ee],M),Ye!==null&&(e&&Ye.alternate!==null&&J.delete(Ye.key===null?ee:Ye.key),m=i(Ye,m,ee),q===null?V=Ye:q.sibling=Ye,q=Ye);return e&&J.forEach(function(Hn){return t(k,Hn)}),Pe&&rr(k,ee),V}function W(k,m,x,M){var V=b(x);if(typeof V!="function")throw Error(o(150));if(x=V.call(x),x==null)throw Error(o(151));for(var q=V=null,J=m,ee=m=0,Ye=null,pe=x.next();J!==null&&!pe.done;ee++,pe=x.next()){J.index>ee?(Ye=J,J=null):Ye=J.sibling;var Hn=R(k,J,pe.value,M);if(Hn===null){J===null&&(J=Ye);break}e&&J&&Hn.alternate===null&&t(k,J),m=i(Hn,m,ee),q===null?V=Hn:q.sibling=Hn,q=Hn,J=Ye}if(pe.done)return n(k,J),Pe&&rr(k,ee),V;if(J===null){for(;!pe.done;ee++,pe=x.next())pe=L(k,pe.value,M),pe!==null&&(m=i(pe,m,ee),q===null?V=pe:q.sibling=pe,q=pe);return Pe&&rr(k,ee),V}for(J=r(k,J);!pe.done;ee++,pe=x.next())pe=F(J,k,ee,pe.value,M),pe!==null&&(e&&pe.alternate!==null&&J.delete(pe.key===null?ee:pe.key),m=i(pe,m,ee),q===null?V=pe:q.sibling=pe,q=pe);return e&&J.forEach(function(ap){return t(k,ap)}),Pe&&rr(k,ee),V}function je(k,m,x,M){if(typeof x=="object"&&x!==null&&x.type===Ee&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fe:e:{for(var V=x.key,q=m;q!==null;){if(q.key===V){if(V=x.type,V===Ee){if(q.tag===7){n(k,q.sibling),m=l(q,x.props.children),m.return=k,k=m;break e}}else if(q.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===Be&&ma(V)===q.type){n(k,q.sibling),m=l(q,x.props),m.ref=gl(k,q,x),m.return=k,k=m;break e}n(k,q);break}else t(k,q);q=q.sibling}x.type===Ee?(m=fr(x.props.children,k.mode,M,x.key),m.return=k,k=m):(M=Qi(x.type,x.key,x.props,null,k.mode,M),M.ref=gl(k,m,x),M.return=k,k=M)}return u(k);case ne:e:{for(q=x.key;m!==null;){if(m.key===q)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(k,m.sibling),m=l(m,x.children||[]),m.return=k,k=m;break e}else{n(k,m);break}else t(k,m);m=m.sibling}m=$s(x,k.mode,M),m.return=k,k=m}return u(k);case Be:return q=x._init,je(k,m,q(x._payload),M)}if(mn(x))return B(k,m,x,M);if(b(x))return W(k,m,x,M);Si(k,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(k,m.sibling),m=l(m,x),m.return=k,k=m):(n(k,m),m=Us(x,k.mode,M),m.return=k,k=m),u(k)):n(k,m)}return je}var Dr=ga(!0),ya=ga(!1),Ei=An(null),_i=null,jr=null,Ko=null;function Zo(){Ko=jr=_i=null}function qo(e){var t=Ei.current;Re(Ei),e._currentValue=t}function Jo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fr(e,t){_i=e,Ko=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Ko!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(_i===null)throw Error(o(308));jr=e,_i.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var lr=null;function bo(e){lr===null?lr=[e]:lr.push(e)}function va(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,bo(t)):(n.next=l.next,l.next=n),t.interleaved=n,an(e,r)}function an(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function es(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,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,bo(r)):(t.next=l.next,l.next=t),r.interleaved=t,an(e,n)}function Ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ho(e,n)}}function wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ci(e,t,n,r){var l=e.updateQueue;On=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var h=c,E=h.next;h.next=null,u===null?i=E:u.next=E,u=h;var N=e.alternate;N!==null&&(N=N.updateQueue,c=N.lastBaseUpdate,c!==u&&(c===null?N.firstBaseUpdate=E:c.next=E,N.lastBaseUpdate=h))}if(i!==null){var L=l.baseState;u=0,N=E=h=null,c=i;do{var R=c.lane,F=c.eventTime;if((r&R)===R){N!==null&&(N=N.next={eventTime:F,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var B=e,W=c;switch(R=t,F=n,W.tag){case 1:if(B=W.payload,typeof B=="function"){L=B.call(F,L,R);break e}L=B;break e;case 3:B.flags=B.flags&-65537|128;case 0:if(B=W.payload,R=typeof B=="function"?B.call(F,L,R):B,R==null)break e;L=U({},L,R);break e;case 2:On=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,R=l.effects,R===null?l.effects=[c]:R.push(c))}else F={eventTime:F,lane:R,tag:c.tag,payload:c.payload,callback:c.callback,next:null},N===null?(E=N=F,h=L):N=N.next=F,u|=R;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;R=c,c=R.next,R.next=null,l.lastBaseUpdate=R,l.shared.pending=null}}while(!0);if(N===null&&(h=L),l.baseState=h,l.firstBaseUpdate=E,l.lastBaseUpdate=N,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);sr|=u,e.lanes=u,e.memoizedState=L}}function xa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;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={},Xt=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(Te(kl,t),Te(vl,e),Te(Xt,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)}Re(Xt),Te(Xt,t)}function Ur(){Re(Xt),Re(vl),Re(kl)}function Sa(e){ir(kl.current);var t=ir(Xt.current),n=vr(t,e.type);t!==n&&(Te(vl,e),Te(Xt,n))}function ns(e){vl.current===e&&(Re(Xt),Re(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,Ge=null,Li=!1,wl=!1,xl=0,Md=0;function tt(){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?Dd:jd,e=n(r,l),wl){i=0;do{if(wl=!1,xl=0,25<=i)throw Error(o(301));i+=1,Ge=He=null,t.updateQueue=null,Ni.current=Fd,e=n(r,l)}while(wl)}if(Ni.current=Mi,t=He!==null&&He.next!==null,or=0,Ge=He=Me=null,Li=!1,t)throw Error(o(300));return e}function us(){var e=xl!==0;return xl=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?Me.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Rt(){if(He===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=Ge===null?Me.memoizedState:Ge.next;if(t!==null)Ge=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},Ge===null?Me.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}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 L={lane:N,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};h===null?(c=h=L,u=r):h=h.next=L,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||Ge!==null&&Ge.memoizedState.tag&1){if(n.flags|=2048,El(9,Ca.bind(null,n,r,l,t),void 0,null),Qe===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=Kt();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=Id.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=Kt();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 zd(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{ge=n,is.transition=r}}function $a(){return Rt().memoizedState}function Od(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ba(e))Ha(t,n);else if(n=va(e,t,n,r),n!==null){var l=it();Bt(n,e,r,l),Wa(n,t,r)}}function Id(e,t,n){var r=Un(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ba(e))Ha(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,n);if(l.hasEagerState=!0,l.eagerState=c,Dt(c,u)){var h=t.interleaved;h===null?(l.next=l,bo(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=va(e,t,l,r),n!==null&&(l=it(),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:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},Dd={readContext:Ct,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4194308,4,Ia.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pi(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Od.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Pa,useDebugValue:ds,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=zd.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,l=Kt();if(Pe){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Qe===null)throw Error(o(349));or&30||Ta(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Ma(Ra.bind(null,r,i,e),[e]),r.flags|=2048,El(9,Ca.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Qe.identifierPrefix;if(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=Md++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jd={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},Fd={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)?Gt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),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=it(),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=it(),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 Ga(e,t,n){var r=!1,l=Mn,i=t.contextType;return typeof i=="object"&&i!==null?i=Ct(i):(l=ft(t)?tr:et.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 Qa(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:et.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 Ud=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 Xa(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 Ka(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ud;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=bd.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 qa(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 $d=te.ReactCurrentOwner,dt=!1;function lt(e,t,n,r){t.child=e===null?ya(t,null,n,r):Dr(t,e.child,n,r)}function Ja(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,lt(e,t,r,l),t.child)}function ba(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=Qi(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},Te(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,Te(Hr,kt),kt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Te(Hr,kt),kt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Te(Hr,kt),kt|=r;return lt(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:et.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,lt(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),Ga(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:et.current,E=Mr(t,E));var N=n.getDerivedStateFromProps,L=typeof N=="function"||typeof u.getSnapshotBeforeUpdate=="function";L||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==r||h!==E)&&Qa(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))?(L||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,L=t.pendingProps,R=u.context,h=n.contextType,typeof h=="object"&&h!==null?h=Ct(h):(h=ft(n)?tr:et.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!==L||R!==h)&&Qa(t,u,r,h),On=!1,R=t.memoizedState,u.state=R,Ci(t,r,u,l);var B=t.memoizedState;c!==L||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,$d.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)):lt(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(),Xo(l),t.flags|=256,lt(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),Te(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 Bd(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&&Xo(r),Dr(t,e.child,null,n),e=xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bd(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=Qe,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=ep.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),Jo(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(lt(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(Te(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 Hd(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;Te(Ei,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Te(Ae,Ae.current&1),t.flags|=128,null):n&t.child.childLanes?oc(e,t,n):(Te(Ae,Ae.current&1),e=fn(e,t,n),e!==null?e.sibling:null);Te(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),Te(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(Xt.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=Gr(e,l),r=Gr(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hi)}Xn(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"&&Ce("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 nt(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 Wd(e,t,n){var r=t.pendingProps;switch(Go(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return ft(t.type)&&gi(),nt(t),null;case 3:return r=t.stateNode,Ur(),Re(ct),Re(et),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),nt(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 nt(t),null}if(e=ir(Xt.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":Ce("cancel",r),Ce("close",r);break;case"iframe":case"object":case"embed":Ce("load",r);break;case"video":case"audio":for(l=0;l<fl.length;l++)Ce(fl[l],r);break;case"source":Ce("error",r);break;case"img":case"image":case"link":Ce("error",r),Ce("load",r);break;case"details":Ce("toggle",r);break;case"input":mr(r,i),Ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ce("invalid",r);break;case"textarea":yr(r,i),Ce("invalid",r)}Xn(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"&&Ce("scroll",r)}switch(n){case"input":Vn(r),Gn(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=Kn(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),l=r;break;case"iframe":case"object":case"embed":Ce("load",e),l=r;break;case"video":case"audio":for(l=0;l<fl.length;l++)Ce(fl[l],e);l=r;break;case"source":Ce("error",e),l=r;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),l=r;break;case"details":Ce("toggle",e),l=r;break;case"input":mr(e,r),l=zt(e,r),Ce("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=U({},r,{value:void 0}),Ce("invalid",e);break;case"textarea":yr(e,r),l=Gr(e,r),Ce("invalid",e);break;default:l=r}Xn(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&&Qr(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"&&Ce("scroll",e):h!=null&&Se(e,i,h,u))}switch(n){case"input":Vn(e),Gn(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?bt(e,!!r.multiple,i,!1):r.defaultValue!=null&&bt(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 nt(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(Xt.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 nt(t),null;case 13:if(Re(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;nt(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),nt(t),null);case 4:return Ur(),Es(e,t),e===null&&dl(t.stateNode.containerInfo),nt(t),null;case 10:return qo(t.type._context),nt(t),null;case 17:return ft(t.type)&&gi(),nt(t),null;case 19:if(Re(Ae),i=t.memoizedState,i===null)return nt(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 Te(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 nt(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,Te(Ae,r?n&1|2:n&1),t):(nt(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&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Vd(e,t){switch(Go(t),t.tag){case 1:return ft(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ur(),Re(ct),Re(et),ls(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ns(t),null;case 13:if(Re(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 Re(Ae),null;case 4:return Ur(),null;case 10:return qo(t.type._context),null;case 22:case 23:return Ds(),null;case 24:return null;default:return null}}var Di=!1,rt=!1,Gd=typeof WeakSet=="function"?WeakSet:Set,$=null;function Br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){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 Qd(e,t){if(Do=ni,e=Vu(),No(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var u=0,c=-1,h=-1,E=0,N=0,L=e,R=null;t:for(;;){for(var F;L!==n||l!==0&&L.nodeType!==3||(c=u+l),L!==i||r!==0&&L.nodeType!==3||(h=u+r),L.nodeType===3&&(u+=L.nodeValue.length),(F=L.firstChild)!==null;)R=L,L=F;for(;;){if(L===e)break t;if(R===n&&++E===l&&(c=u),R===i&&++N===r&&(h=u),(F=L.nextSibling)!==null)break;L=R,R=L.parentNode}L=F}n=c===-1||h===-1?null:{start:c,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(jo={focusedElem:e,selectionRange:n},ni=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var B=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var W=B.memoizedProps,je=B.memoizedState,k=t.stateNode,m=k.getSnapshotBeforeUpdate(t.elementType===t.type?W:Ft(t.type,W),je);k.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(M){Oe(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return B=dc,dc=!1,B}function Tl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&_s(t,n,i)}l=l.next}while(l!==r)}}function ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ts(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[hl],delete t[Bo],delete t[Nd],delete t[Ld])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hc(e){return e.tag===5||e.tag===3||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hi));else if(r!==4&&(e=e.child,e!==null))for(Cs(e,t,n),e=e.sibling;e!==null;)Cs(e,t,n),e=e.sibling}function Rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}var Ze=null,Ut=!1;function Dn(e,t,n){for(n=n.child;n!==null;)gc(e,t,n),n=n.sibling}function gc(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Zl,n)}catch{}switch(n.tag){case 5:rt||Br(n,t);case 6:var r=Ze,l=Ut;Ze=null,Dn(e,t,n),Ze=r,Ut=l,Ze!==null&&(Ut?(e=Ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ze.removeChild(n.stateNode));break;case 18:Ze!==null&&(Ut?(e=Ze,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),rl(e)):$o(Ze,n.stateNode));break;case 4:r=Ze,l=Ut,Ze=n.stateNode.containerInfo,Ut=!0,Dn(e,t,n),Ze=r,Ut=l;break;case 0:case 11:case 14:case 15:if(!rt&&(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(!rt&&(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?(rt=(r=rt)||n.memoizedState!==null,Dn(e,t,n),rt=r):Dn(e,t,n);break;default:Dn(e,t,n)}}function yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gd),t.forEach(function(r){var l=tp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;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:Ze=c.stateNode,Ut=!1;break e;case 3:Ze=c.stateNode.containerInfo,Ut=!0;break e;case 4:Ze=c.stateNode.containerInfo,Ut=!0;break e}c=c.return}if(Ze===null)throw Error(o(160));gc(i,u,l),Ze=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),Kn(c,u);var E=Kn(c,i);for(u=0;u<h.length;u+=2){var N=h[u],L=h[u+1];N==="style"?xt(l,L):N==="dangerouslySetInnerHTML"?Qr(l,L):N==="children"?nn(l,L):Se(l,N,L,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?bt(l,!!i.multiple,F,!1):R!==!!i.multiple&&(i.defaultValue!=null?bt(l,!!i.multiple,i.defaultValue,!0):bt(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?(rt=(E=rt)||N,$t(t,e),rt=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(L=$=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(L);continue}}F!==null?(F.return=R,$=F):xc(L)}N=N.sibling}e:for(N=null,L=e;;){if(L.tag===5){if(N===null){N=L;try{l=L.stateNode,E?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(c=L.stateNode,h=L.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(L.tag===6){if(N===null)try{L.stateNode.nodeValue=E?"":L.memoizedProps}catch(W){Oe(e,e.return,W)}}else if((L.tag!==22&&L.tag!==23||L.memoizedState===null||L===e)&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===e)break e;for(;L.sibling===null;){if(L.return===null||L.return===e)break e;N===L&&(N=null),L=L.return}N===L&&(N=null),L.sibling.return=L.return,L=L.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 Yd(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||rt;c=Di;var E=rt;if(Di=u,(rt=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,rt=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:rt||ji(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!rt)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 L=N.dehydrated;L!==null&&rl(L)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}rt||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 Xd=Math.ceil,Fi=te.ReactCurrentDispatcher,Ns=te.ReactCurrentOwner,Nt=te.ReactCurrentBatchConfig,ae=0,Qe=null,Ue=null,qe=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 it(){return ae&6?le():Wi!==-1?Wi:Wi=le()}function Un(e){return e.mode&1?ae&2&&qe!==0?qe&-qe:Ad.transition!==null?(Vi===0&&(Vi=mu()),Vi):(e=ge,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));Jr(e,n,r),(!(ae&2)||e!==Qe)&&(e===Qe&&(!(ae&2)&&(Ui|=n),We===4&&$n(e,qe)),ht(e,r),n===1&&ae===0&&!(t.mode&1)&&(Wr=le()+500,vi&&zn()))}function ht(e,t){var n=e.callbackNode;Af(e,t);var r=bl(e,e===Qe?qe: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?Pd(_c.bind(null,e)):aa(_c.bind(null,e)),Cd(function(){!(ae&6)&&zn()}),n=null;else{switch(gu(r)){case 1:n=at;break;case 4:n=En;break;case 16:n=Fe;break;case 536870912:n=Zr;break;default:n=Fe}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=bl(e,e===Qe?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Gi(e,r);else{t=r;var l=ae;ae|=2;var i=Cc();(Qe!==e||qe!==t)&&(dn=null,Wr=le()+500,ar(e,t));do try{qd();break}catch(c){Tc(e,c)}while(!0);Zo(),Fi.current=i,ae=l,Ue!==null?t=0:(Qe=null,qe=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)&&!Kd(l)&&(t=Gi(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(bl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){it(),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*Xd(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=Gi(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 Kd(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=bl(e,0);if(!(t&1))return ht(e,le()),null;var n=Gi(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=ge;try{if(Nt.transition=null,ge=1,e)return e()}finally{ge=r,Nt.transition=n,ae=t,!(ae&6)&&zn()}}function Ds(){kt=Hr.current,Re(Hr)}function ar(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Td(n)),Ue!==null)for(n=Ue.return;n!==null;){var r=n;switch(Go(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gi();break;case 3:Ur(),Re(ct),Re(et),ls();break;case 5:ns(r);break;case 4:Ur();break;case 13:Re(Ae);break;case 19:Re(Ae);break;case 10:qo(r.type._context);break;case 22:case 23:Ds()}n=n.return}if(Qe=e,Ue=e=Bn(e.current,null),qe=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=Ue;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,Ge=He=Me=null,wl=!1,xl=0,Ns.current=null,n===null||n.return===null){We=1,Cl=t,Ue=null;break}e:{var i=e,u=n.return,c=n,h=t;if(t=qe,c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var E=h,N=c,L=N.tag;if(!(N.mode&1)&&(L===0||L===11||L===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,qa(F,u,c,i,t),F.mode&1&&Ka(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)){Ka(i,E,t),js();break e}h=Error(o(426))}}else if(Pe&&c.mode&1){var je=Za(u);if(je!==null){!(je.flags&65536)&&(je.flags|=256),qa(je,u,c,i,t),Xo($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 k=Ya(i,h,t);wa(i,k);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 M=Xa(i,c,t);wa(i,M);break e}}i=i.return}while(i!==null)}Nc(n)}catch(V){t=V,Ue===n&&n!==null&&(Ue=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),Qe===null||!(sr&268435455)&&!(Ui&268435455)||$n(Qe,qe)}function Gi(e,t){var n=ae;ae|=2;var r=Cc();(Qe!==e||qe!==t)&&(dn=null,ar(e,t));do try{Zd();break}catch(l){Tc(e,l)}while(!0);if(Zo(),ae=n,Fi.current=r,Ue!==null)throw Error(o(261));return Qe=null,qe=0,We}function Zd(){for(;Ue!==null;)Rc(Ue)}function qd(){for(;Ue!==null&&!_e();)Rc(Ue)}function Rc(e){var t=Ac(e.alternate,e,kt);e.memoizedProps=e.pendingProps,t===null?Nc(e):Ue=t,Ns.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Vd(n,t),n!==null){n.flags&=32767,Ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,Ue=null;return}}else if(n=Wd(n,t,kt),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);We===0&&(We=5)}function cr(e,t,n){var r=ge,l=Nt.transition;try{Nt.transition=null,ge=1,Jd(e,t,n,r)}finally{Nt.transition=l,ge=r}return null}function Jd(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(Mf(e,i),e===Qe&&(Ue=Qe=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bi||(Bi=!0,Mc(Fe,function(){return Vr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Nt.transition,Nt.transition=null;var u=ge;ge=1;var c=ae;ae|=4,Ns.current=null,Qd(e,n),vc(n,e),vd(jo),ni=!!Do,jo=Do=null,e.current=n,Yd(n),Ve(),ae=c,ge=u,Nt.transition=i}else e.current=n;if(Bi&&(Bi=!1,Fn=e,Hi=l),i=e.pendingLanes,i===0&&(jn=null),Cf(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=ge;try{if(Nt.transition=null,ge=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 L=N.child;if(L!==null)L.return=N,$=L;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 je=W.sibling;W.sibling=null,W=je}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 k=i.sibling;if(k!==null){k.return=i.return,$=k;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 M=c.sibling;if(M!==null){M.return=c.return,$=M;break e}$=c.return}}if(ae=l,zn(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Zl,e)}catch{}r=!0}return r}finally{ge=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=it(),e!==null&&(Jr(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=Xa(t,e,1),t=In(t,e,1),e=it(),t!==null&&(Jr(t,1,e),ht(t,e));break}}t=t.return}}function bd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,Qe===e&&(qe&n)===n&&(We===4||We===3&&(qe&130023424)===qe&&500>le()-Ps?ar(e,0):Ls|=n),ht(e,t)}function Pc(e,t){t===0&&(e.mode&1?(t=Jl,Jl<<=1,!(Jl&130023424)&&(Jl=4194304)):t=1);var n=it();e=an(e,t),e!==null&&(Jr(e,t,n),ht(e,n))}function ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pc(e,n)}function tp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Pc(e,n)}var Ac;Ac=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,Hd(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,et.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),lt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=rp(r),e=Ft(r,e),l){case 0:t=ys(null,t,r,e,n);break e;case 1:t=rc(null,t,r,e,n);break e;case 11:t=Ja(null,t,r,e,n);break e;case 14:t=ba(null,t,r,Ft(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),ys(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),rc(e,t,r,l,n);case 3:e:{if(lc(t),e===null)throw Error(o(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ka(e,t),Ci(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=$r(Error(o(423)),t),t=ic(e,t,r,n,l);break e}else if(r!==l){l=$r(Error(o(424)),t),t=ic(e,t,r,n,l);break e}else for(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}lt(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),lt(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):lt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Ja(e,t,r,l,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(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,Te(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),Jo(i.return,n,t),c.lanes|=n;break}h=h.next}}else if(i.tag===10)u=i.type===t.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(o(341));u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),Jo(u,n,t),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}lt(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,lt(e,t,r,n),t.child;case 14:return r=t.type,l=Ft(r,t.pendingProps),l=Ft(r.type,l),ba(e,t,r,l,n);case 15:return ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Ii(e,t),t.tag=1,ft(r)?(e=!0,yi(t)):e=!1,Fr(t,n),Ga(t,r,l),hs(t,r,l,n),vs(null,t,r,!0,e,n);case 19:return uc(e,t,n);case 22:return tc(e,t,n)}throw Error(o(156,t.tag))};function Mc(e,t){return A(e,t)}function np(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,n,r){return new np(e,t,n,r)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rp(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ze)return 11;if(e===Ke)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qi(e,t,n,r,l,i){var u=2;if(r=e,typeof e=="function")Fs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Ee:return fr(n.children,l,i,t);case G:u=8,l|=8;break;case Ie:return e=Lt(12,n,t,l|2),e.elementType=Ie,e.lanes=i,e;case $e:return e=Lt(13,n,t,l),e.elementType=$e,e.lanes=i,e;case Xe:return e=Lt(19,n,t,l),e.elementType=Xe,e.lanes=i,e;case Le:return Yi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ne:u=10;break e;case ue:u=9;break e;case ze:u=11;break e;case Ke:u=14;break e;case Be: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=Le,e.lanes=n,e.stateNode={isHidden:!1},e}function Us(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function $s(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=po(0),this.expirationTimes=po(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,l,i,u,c,h){return e=new lp(e,t,n,c,h),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},es(i),e}function ip(e,t,n){var r=3<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(Gt(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=it(),l=Un(n),i=cn(r,l),i.callback=t??null,In(n,i,l),e.current.lanes=l,Jr(e,l,r),ht(e,r),e}function Xi(e,t,n,r){var l=t.current,i=it(),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 Ki(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));Xi(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(){Xi(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 qi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jc(){}function op(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var E=Ki(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=Ki(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(){Xi(t,h,n,r)}),h}function Ji(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=Ki(u);c.call(h)}}Xi(t,u,e,l)}else u=op(n,t,e,l,r);return Ki(u)}yu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qr(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=it();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=it();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=it();Bt(n,e,t,r)}Hs(e,t)}},ku=function(){return ge},wu=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=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));Jt(r),Wt(r,l)}}}break;case"textarea":gn(e,n);break;case"select":t=n.value,t!=null&&bt(e,!!n.multiple,t,!1)}},rn=Is,Ql=ur;var sp={usingClientEntryPoint:!1,Events:[ml,Pr,mi,Gl,De,Is]},Ll={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},up={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=X(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 bi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bi.isDisabled&&bi.supportsFiber)try{Zl=bi.inject(up),Qt=bi}catch{}}return mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sp,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 ip(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=X(t),e=e===null?null:e.stateNode,e},mt.flushSync=function(e){return ur(e)},mt.hydrate=function(e,t,n){if(!qi(t))throw Error(o(200));return Ji(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(!qi(t))throw Error(o(200));return Ji(null,e,t,!1,n)},mt.unmountComponentAtNode=function(e){if(!qi(e))throw Error(o(40));return e._reactRootContainer?(ur(function(){Ji(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(!qi(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return Ji(e,t,n,!1,r)},mt.version="18.3.1-next-f1338f8080-20240426",mt}var Gc;function kp(){if(Gc)return Ys.exports;Gc=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=vp(),Ys.exports}var Qc;function wp(){if(Qc)return eo;Qc=1;var d=kp();return eo.createRoot=d.createRoot,eo.hydrateRoot=d.hydrateRoot,eo}var xp=wp();function su(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let hr=su();function df(d){hr=d}const Bl={exec:()=>null};function we(d,s=""){let o=typeof d=="string"?d:d.source;const a={replace:(f,p)=>{let v=typeof p=="string"?p:p.source;return v=v.replace(st.caret,"$1"),o=o.replace(f,v),a},getRegex:()=>new RegExp(o,s)};return a}const st={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")},Sp=/^(?:[ \t]*(?:\n|$))+/,Ep=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_p=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tp=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pf=/(?:[*+-]|\d{1,9}[.)])/,hf=we(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,pf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),uu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Cp=/^[^\n]+/,au=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Rp=we(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",au).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Np=we(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pf).getRegex(),uo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cu=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lp=we("^ {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(),mf=we(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(),Pp=we(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mf).getRegex(),fu={blockquote:Pp,code:Ep,def:Rp,fences:_p,heading:Tp,hr:Wl,html:Lp,lheading:hf,list:Np,newline:Sp,paragraph:mf,table:Bl,text:Cp},Yc=we("^ *([^\\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(),Ap={...fu,table:Yc,paragraph:we(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()},Mp={...fu,html:we(`^ *(?: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:we(uu).replace("hr",Wl).replace("heading",` *#{1,6} *[^
]`).replace("lheading",hf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zp=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Op=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gf=/^( {2,}|\\)\n(?!\s*$)/,Ip=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ao=/[\p{P}\p{S}]/u,du=/[\s\p{P}\p{S}]/u,yf=/[^\s\p{P}\p{S}]/u,Dp=we(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,du).getRegex(),jp=/(?!~)[\p{P}\p{S}]/u,Fp=/(?!~)[\s\p{P}\p{S}]/u,Up=/(?:[^\s\p{P}\p{S}]|~)/u,$p=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Bp=we(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,ao).getRegex(),vf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Hp=we(vf,"gu").replace(/notPunctSpace/g,yf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Wp=we(vf,"gu").replace(/notPunctSpace/g,Up).replace(/punctSpace/g,Fp).replace(/punct/g,jp).getRegex(),Vp=we("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yf).replace(/punctSpace/g,du).replace(/punct/g,ao).getRegex(),Gp=we(/\\(punct)/,"gu").replace(/punct/g,ao).getRegex(),Qp=we(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Yp=we(cu).replace("(?:-->|$)","-->").getRegex(),Xp=we("^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",Yp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),io=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Kp=we(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),kf=we(/^!?\[(label)\]\[(ref)\]/).replace("label",io).replace("ref",au).getRegex(),wf=we(/^!?\[(ref)\](?:\[\])?/).replace("ref",au).getRegex(),Zp=we("reflink|nolink(?!\\()","g").replace("reflink",kf).replace("nolink",wf).getRegex(),pu={_backpedal:Bl,anyPunctuation:Gp,autolink:Qp,blockSkip:$p,br:gf,code:Op,del:Bl,emStrongLDelim:Bp,emStrongRDelimAst:Hp,emStrongRDelimUnd:Vp,escape:zp,link:Kp,nolink:wf,punctuation:Dp,reflink:kf,reflinkSearch:Zp,tag:Xp,text:Ip,url:Bl},qp={...pu,link:we(/^!?\[(label)\]\((.*?)\)/).replace("label",io).getRegex(),reflink:we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",io).getRegex()},tu={...pu,emStrongRDelimAst:Wp,url:we(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Jp={...tu,br:we(gf).replace("{2,}","*").getRegex(),text:we(tu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:fu,gfm:Ap,pedantic:Mp},Al={normal:pu,gfm:tu,breaks:Jp,pedantic:qp},bp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xc=d=>bp[d];function qt(d,s){if(s){if(st.escapeTest.test(d))return d.replace(st.escapeReplace,Xc)}else if(st.escapeTestNoEncode.test(d))return d.replace(st.escapeReplaceNoEncode,Xc);return d}function Kc(d){try{d=encodeURI(d).replace(st.percentDecode,"%")}catch{return null}return d}function Zc(d,s){var p;const o=d.replace(st.findPipe,(v,w,T)=>{let _=!1,S=w;for(;--S>=0&&T[S]==="\\";)_=!_;return _?"|":" |"}),a=o.split(st.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(st.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 eh(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 qc(d,s,o,a,f){const p=s.href,v=s.title||null,w=d[1].replace(f.other.outputLinkReplace,"$1");if(d[0].charAt(0)!=="!"){a.state.inLink=!0;const T={type:"link",raw:o,href:p,title:v,text:w,tokens:a.inlineTokens(w)};return a.state.inLink=!1,T}return{type:"image",raw:o,href:p,title:v,text:w}}function th(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 v=p.match(o.other.beginningSpace);if(v===null)return p;const[w]=v;return w.length>=f.length?p.slice(f.length):p}).join(`
`)}class oo{constructor(s){xe(this,"options");xe(this,"rules");xe(this,"lexer");this.options=s||hr}space(s){const o=this.rules.block.newline.exec(s);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(s){const o=this.rules.block.code.exec(s);if(o){const a=o[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?a:Ml(a,`
`)}}}fences(s){const o=this.rules.block.fences.exec(s);if(o){const a=o[0],f=th(a,o[3]||"",this.rules);return{type:"code",raw:a,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:f}}}heading(s){const o=this.rules.block.heading.exec(s);if(o){let a=o[2].trim();if(this.rules.other.endingHash.test(a)){const f=Ml(a,"#");(this.options.pedantic||!f||this.rules.other.endingSpaceChar.test(f))&&(a=f.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(s){const o=this.rules.block.hr.exec(s);if(o)return{type:"hr",raw:Ml(o[0],`
`)}}blockquote(s){const o=this.rules.block.blockquote.exec(s);if(o){let a=Ml(o[0],`
`).split(`
`),f="",p="";const v=[];for(;a.length>0;){let w=!1;const T=[];let _;for(_=0;_<a.length;_++)if(this.rules.other.blockquoteStart.test(a[_]))T.push(a[_]),w=!0;else if(!w)T.push(a[_]);else break;a=a.slice(_);const S=T.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 P=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(O,v,!0),this.lexer.state.top=P,a.length===0)break;const I=v.at(-1);if((I==null?void 0:I.type)==="code")break;if((I==null?void 0:I.type)==="blockquote"){const Q=I,D=Q.raw+`
`+a.join(`
`),K=this.blockquote(D);v[v.length-1]=K,f=f.substring(0,f.length-Q.raw.length)+K.raw,p=p.substring(0,p.length-Q.text.length)+K.text;break}else if((I==null?void 0:I.type)==="list"){const Q=I,D=Q.raw+`
`+a.join(`
`),K=this.list(D);v[v.length-1]=K,f=f.substring(0,f.length-I.raw.length)+K.raw,p=p.substring(0,p.length-Q.raw.length)+K.raw,a=D.substring(v.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:f,tokens:v,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 v=this.rules.other.listItemRegex(a);let w=!1;for(;s;){let _=!1,S="",O="";if(!(o=v.exec(s))||this.rules.block.hr.test(s))break;S=o[0],s=s.substring(S.length);let P=o[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,me=>" ".repeat(3*me.length)),I=s.split(`
`,1)[0],Q=!P.trim(),D=0;if(this.options.pedantic?(D=2,O=P.trimStart()):Q?D=o[1].length+1:(D=o[2].search(this.rules.other.nonSpaceChar),D=D>4?1:D,O=P.slice(D),D+=o[1].length),Q&&this.rules.other.blankLine.test(I)&&(S+=I+`
`,s=s.substring(I.length+1),_=!0),!_){const me=this.rules.other.nextBulletRegex(D),Se=this.rules.other.hrRegex(D),te=this.rules.other.fencesBeginRegex(D),fe=this.rules.other.headingBeginRegex(D),ne=this.rules.other.htmlBeginRegex(D);for(;s;){const Ee=s.split(`
`,1)[0];let G;if(I=Ee,this.options.pedantic?(I=I.replace(this.rules.other.listReplaceNesting,"  "),G=I):G=I.replace(this.rules.other.tabCharGlobal,"    "),te.test(I)||fe.test(I)||ne.test(I)||me.test(I)||Se.test(I))break;if(G.search(this.rules.other.nonSpaceChar)>=D||!I.trim())O+=`
`+G.slice(D);else{if(Q||P.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||te.test(P)||fe.test(P)||Se.test(P))break;O+=`
`+I}!Q&&!I.trim()&&(Q=!0),S+=Ee+`
`,s=s.substring(Ee.length+1),P=G.slice(D)}}p.loose||(w?p.loose=!0:this.rules.other.doubleBlankLine.test(S)&&(w=!0));let K=null,ce;this.options.gfm&&(K=this.rules.other.listIsTask.exec(O),K&&(ce=K[0]!=="[ ] ",O=O.replace(this.rules.other.listReplaceTask,""))),p.items.push({type:"list_item",raw:S,task:!!K,checked:ce,loose:!1,text:O,tokens:[]}),p.raw+=S}const T=p.items.at(-1);if(T)T.raw=T.raw.trimEnd(),T.text=T.text.trimEnd();else return;p.raw=p.raw.trimEnd();for(let _=0;_<p.items.length;_++)if(this.lexer.state.top=!1,p.items[_].tokens=this.lexer.blockTokens(p.items[_].text,[]),!p.loose){const S=p.items[_].tokens.filter(P=>P.type==="space"),O=S.length>0&&S.some(P=>this.rules.other.anyLine.test(P.raw));p.loose=O}if(p.loose)for(let _=0;_<p.items.length;_++)p.items[_].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 w;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=(w=o[3])!=null&&w.trim()?o[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],v={type:"table",raw:o[0],header:[],align:[],rows:[]};if(a.length===f.length){for(const T of f)this.rules.other.tableAlignRight.test(T)?v.align.push("right"):this.rules.other.tableAlignCenter.test(T)?v.align.push("center"):this.rules.other.tableAlignLeft.test(T)?v.align.push("left"):v.align.push(null);for(let T=0;T<a.length;T++)v.header.push({text:a[T],tokens:this.lexer.inline(a[T]),header:!0,align:v.align[T]});for(const T of p)v.rows.push(Zc(T,v.header.length).map((_,S)=>({text:_,tokens:this.lexer.inline(_),header:!1,align:v.align[S]})));return v}}lheading(s){const o=this.rules.block.lheading.exec(s);if(o)return{type:"heading",raw:o[0],depth:o[2].charAt(0)==="="?1:2,text:o[1],tokens:this.lexer.inline(o[1])}}paragraph(s){const o=this.rules.block.paragraph.exec(s);if(o){const a=o[1].charAt(o[1].length-1)===`
`?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:a,tokens:this.lexer.inline(a)}}}text(s){const o=this.rules.block.text.exec(s);if(o)return{type:"text",raw:o[0],text:o[0],tokens:this.lexer.inline(o[0])}}escape(s){const o=this.rules.inline.escape.exec(s);if(o)return{type:"escape",raw:o[0],text:o[1]}}tag(s){const o=this.rules.inline.tag.exec(s);if(o)return!this.lexer.state.inLink&&this.rules.other.startATag.test(o[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(s){const o=this.rules.inline.link.exec(s);if(o){const a=o[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;const v=Ml(a.slice(0,-1),"\\");if((a.length-v.length)%2===0)return}else{const v=eh(o[2],"()");if(v>-1){const T=(o[0].indexOf("!")===0?5:4)+o[1].length+v;o[2]=o[2].substring(0,v),o[0]=o[0].substring(0,T).trim(),o[3]=""}}let f=o[2],p="";if(this.options.pedantic){const v=this.rules.other.pedanticHrefTitle.exec(f);v&&(f=v[1],p=v[3])}else p=o[3]?o[3].slice(1,-1):"";return f=f.trim(),this.rules.other.startAngleBracket.test(f)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?f=f.slice(1):f=f.slice(1,-1)),qc(o,{href:f&&f.replace(this.rules.inline.anyPunctuation,"$1"),title:p&&p.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer,this.rules)}}reflink(s,o){let a;if((a=this.rules.inline.reflink.exec(s))||(a=this.rules.inline.nolink.exec(s))){const f=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),p=o[f.toLowerCase()];if(!p){const v=a[0].charAt(0);return{type:"text",raw:v,text:v}}return qc(a,p,a[0],this.lexer,this.rules)}}emStrong(s,o,a=""){let f=this.rules.inline.emStrongLDelim.exec(s);if(!f||f[3]&&a.match(this.rules.other.unicodeAlphaNumeric))return;if(!(f[1]||f[2]||"")||!a||this.rules.inline.punctuation.exec(a)){const v=[...f[0]].length-1;let w,T,_=v,S=0;const O=f[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(O.lastIndex=0,o=o.slice(-1*s.length+v);(f=O.exec(o))!=null;){if(w=f[1]||f[2]||f[3]||f[4]||f[5]||f[6],!w)continue;if(T=[...w].length,f[3]||f[4]){_+=T;continue}else if((f[5]||f[6])&&v%3&&!((v+T)%3)){S+=T;continue}if(_-=T,_>0)continue;T=Math.min(T,T+_+S);const P=[...f[0]][0].length,I=s.slice(0,v+f.index+P+T);if(Math.min(v,T)%2){const D=I.slice(1,-1);return{type:"em",raw:I,text:D,tokens:this.lexer.inlineTokens(D)}}const Q=I.slice(2,-2);return{type:"strong",raw:I,text:Q,tokens:this.lexer.inlineTokens(Q)}}}}codespan(s){const o=this.rules.inline.code.exec(s);if(o){let a=o[2].replace(this.rules.other.newLineCharGlobal," ");const f=this.rules.other.nonSpaceChar.test(a),p=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return f&&p&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:o[0],text:a}}}br(s){const o=this.rules.inline.br.exec(s);if(o)return{type:"br",raw:o[0]}}del(s){const o=this.rules.inline.del.exec(s);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(s){const o=this.rules.inline.autolink.exec(s);if(o){let a,f;return o[2]==="@"?(a=o[1],f="mailto:"+a):(a=o[1],f=a),{type:"link",raw:o[0],text:a,href:f,tokens:[{type:"text",raw:a,text:a}]}}}url(s){var a;let o;if(o=this.rules.inline.url.exec(s)){let f,p;if(o[2]==="@")f=o[0],p="mailto:"+f;else{let v;do v=o[0],o[0]=((a=this.rules.inline._backpedal.exec(o[0]))==null?void 0:a[0])??"";while(v!==o[0]);f=o[0],o[1]==="www."?p="http://"+o[0]:p=o[0]}return{type:"link",raw:o[0],text:f,href:p,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(s){const o=this.rules.inline.text.exec(s);if(o){const a=this.lexer.state.inRawBlock;return{type:"text",raw:o[0],text:o[0],escaped:a}}}}class Pt{constructor(s){xe(this,"tokens");xe(this,"options");xe(this,"state");xe(this,"tokenizer");xe(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:st,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(st.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,v;for(this.options.pedantic&&(s=s.replace(st.tabCharGlobal,"    ").replace(st.spaceLine,""));s;){let w;if((p=(f=this.options.extensions)==null?void 0:f.block)!=null&&p.some(_=>(w=_.call({lexer:this},s,o))?(s=s.substring(w.raw.length),o.push(w),!0):!1))continue;if(w=this.tokenizer.space(s)){s=s.substring(w.raw.length);const _=o.at(-1);w.raw.length===1&&_!==void 0?_.raw+=`
`:o.push(w);continue}if(w=this.tokenizer.code(s)){s=s.substring(w.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="paragraph"||(_==null?void 0:_.type)==="text"?(_.raw+=`
`+w.raw,_.text+=`
`+w.text,this.inlineQueue.at(-1).src=_.text):o.push(w);continue}if(w=this.tokenizer.fences(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.heading(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.hr(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.blockquote(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.list(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.html(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.def(s)){s=s.substring(w.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="paragraph"||(_==null?void 0:_.type)==="text"?(_.raw+=`
`+w.raw,_.text+=`
`+w.raw,this.inlineQueue.at(-1).src=_.text):this.tokens.links[w.tag]||(this.tokens.links[w.tag]={href:w.href,title:w.title});continue}if(w=this.tokenizer.table(s)){s=s.substring(w.raw.length),o.push(w);continue}if(w=this.tokenizer.lheading(s)){s=s.substring(w.raw.length),o.push(w);continue}let T=s;if((v=this.options.extensions)!=null&&v.startBlock){let _=1/0;const S=s.slice(1);let O;this.options.extensions.startBlock.forEach(P=>{O=P.call({lexer:this},S),typeof O=="number"&&O>=0&&(_=Math.min(_,O))}),_<1/0&&_>=0&&(T=s.substring(0,_+1))}if(this.state.top&&(w=this.tokenizer.paragraph(T))){const _=o.at(-1);a&&(_==null?void 0:_.type)==="paragraph"?(_.raw+=`
`+w.raw,_.text+=`
`+w.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=_.text):o.push(w),a=T.length!==s.length,s=s.substring(w.raw.length);continue}if(w=this.tokenizer.text(s)){s=s.substring(w.raw.length);const _=o.at(-1);(_==null?void 0:_.type)==="text"?(_.raw+=`
`+w.raw,_.text+=`
`+w.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=_.text):o.push(w);continue}if(s){const _="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(_);break}else throw new Error(_)}}return this.state.top=!0,o}inline(s,o=[]){return this.inlineQueue.push({src:s,tokens:o}),o}inlineTokens(s,o=[]){var w,T,_;let a=s,f=null;if(this.tokens.links){const S=Object.keys(this.tokens.links);if(S.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)S.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,f.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let p=!1,v="";for(;s;){p||(v=""),p=!1;let S;if((T=(w=this.options.extensions)==null?void 0:w.inline)!=null&&T.some(P=>(S=P.call({lexer:this},s,o))?(s=s.substring(S.raw.length),o.push(S),!0):!1))continue;if(S=this.tokenizer.escape(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.tag(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.link(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(S.raw.length);const P=o.at(-1);S.type==="text"&&(P==null?void 0:P.type)==="text"?(P.raw+=S.raw,P.text+=S.text):o.push(S);continue}if(S=this.tokenizer.emStrong(s,a,v)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.codespan(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.br(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.del(s)){s=s.substring(S.raw.length),o.push(S);continue}if(S=this.tokenizer.autolink(s)){s=s.substring(S.raw.length),o.push(S);continue}if(!this.state.inLink&&(S=this.tokenizer.url(s))){s=s.substring(S.raw.length),o.push(S);continue}let O=s;if((_=this.options.extensions)!=null&&_.startInline){let P=1/0;const I=s.slice(1);let Q;this.options.extensions.startInline.forEach(D=>{Q=D.call({lexer:this},I),typeof Q=="number"&&Q>=0&&(P=Math.min(P,Q))}),P<1/0&&P>=0&&(O=s.substring(0,P+1))}if(S=this.tokenizer.inlineText(O)){s=s.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(v=S.raw.slice(-1)),p=!0;const P=o.at(-1);(P==null?void 0:P.type)==="text"?(P.raw+=S.raw,P.text+=S.text):o.push(S);continue}if(s){const P="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(P);break}else throw new Error(P)}}return o}}class so{constructor(s){xe(this,"options");xe(this,"parser");this.options=s||hr}space(s){return""}code({text:s,lang:o,escaped:a}){var v;const f=(v=(o||"").match(st.notSpaceStart))==null?void 0:v[0],p=s.replace(st.endingNewline,"")+`
`;return f?'<pre><code class="language-'+qt(f)+'">'+(a?p:qt(p,!0))+`</code></pre>
`:"<pre><code>"+(a?p:qt(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 w=0;w<s.items.length;w++){const T=s.items[w];f+=this.listitem(T)}const p=o?"ol":"ul",v=o&&a!==1?' start="'+a+'"':"";return"<"+p+v+`>
`+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+" "+qt(s.tokens[0].tokens[0].text),s.tokens[0].tokens[0].escaped=!0)):s.tokens.unshift({type:"text",raw:f+" ",text:f+" ",escaped:!0}):o+=f+" "}return o+=this.parser.parse(s.tokens,!!s.loose),`<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 v=s.rows[p];a="";for(let w=0;w<v.length;w++)a+=this.tablecell(v[w]);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>${qt(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=Kc(s);if(p===null)return f;s=p;let v='<a href="'+s+'"';return o&&(v+=' title="'+qt(o)+'"'),v+=">"+f+"</a>",v}image({href:s,title:o,text:a}){const f=Kc(s);if(f===null)return qt(a);s=f;let p=`<img src="${s}" alt="${a}"`;return o&&(p+=` title="${qt(o)}"`),p+=">",p}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:qt(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){xe(this,"options");xe(this,"renderer");xe(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 v=0;v<s.length;v++){const w=s[v];if((p=(f=this.options.extensions)==null?void 0:f.renderers)!=null&&p[w.type]){const _=w,S=this.options.extensions.renderers[_.type].call({parser:this},_);if(S!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(_.type)){a+=S||"";continue}}const T=w;switch(T.type){case"space":{a+=this.renderer.space(T);continue}case"hr":{a+=this.renderer.hr(T);continue}case"heading":{a+=this.renderer.heading(T);continue}case"code":{a+=this.renderer.code(T);continue}case"table":{a+=this.renderer.table(T);continue}case"blockquote":{a+=this.renderer.blockquote(T);continue}case"list":{a+=this.renderer.list(T);continue}case"html":{a+=this.renderer.html(T);continue}case"paragraph":{a+=this.renderer.paragraph(T);continue}case"text":{let _=T,S=this.renderer.text(_);for(;v+1<s.length&&s[v+1].type==="text";)_=s[++v],S+=`
`+this.renderer.text(_);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 _='Token with "'+T.type+'" type was not found.';if(this.options.silent)return console.error(_),"";throw new Error(_)}}}return a}parseInline(s,o=this.renderer){var f,p;let a="";for(let v=0;v<s.length;v++){const w=s[v];if((p=(f=this.options.extensions)==null?void 0:f.renderers)!=null&&p[w.type]){const _=this.options.extensions.renderers[w.type].call({parser:this},w);if(_!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(w.type)){a+=_||"";continue}}const T=w;switch(T.type){case"escape":{a+=o.text(T);break}case"html":{a+=o.html(T);break}case"link":{a+=o.link(T);break}case"image":{a+=o.image(T);break}case"strong":{a+=o.strong(T);break}case"em":{a+=o.em(T);break}case"codespan":{a+=o.codespan(T);break}case"br":{a+=o.br(T);break}case"del":{a+=o.del(T);break}case"text":{a+=o.text(T);break}default:{const _='Token with "'+T.type+'" type was not found.';if(this.options.silent)return console.error(_),"";throw new Error(_)}}}return a}}class Hl{constructor(s){xe(this,"options");xe(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}}xe(Hl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class nh{constructor(...s){xe(this,"defaults",su());xe(this,"options",this.setOptions);xe(this,"parse",this.parseMarkdown(!0));xe(this,"parseInline",this.parseMarkdown(!1));xe(this,"Parser",At);xe(this,"Renderer",so);xe(this,"TextRenderer",hu);xe(this,"Lexer",Pt);xe(this,"Tokenizer",oo);xe(this,"Hooks",Hl);this.use(...s)}walkTokens(s,o){var f,p;let a=[];for(const v of s)switch(a=a.concat(o.call(this,v)),v.type){case"table":{const w=v;for(const T of w.header)a=a.concat(this.walkTokens(T.tokens,o));for(const T of w.rows)for(const _ of T)a=a.concat(this.walkTokens(_.tokens,o));break}case"list":{const w=v;a=a.concat(this.walkTokens(w.items,o));break}default:{const w=v;(p=(f=this.defaults.extensions)==null?void 0:f.childTokens)!=null&&p[w.type]?this.defaults.extensions.childTokens[w.type].forEach(T=>{const _=w[T].flat(1/0);a=a.concat(this.walkTokens(_,o))}):w.tokens&&(a=a.concat(this.walkTokens(w.tokens,o)))}}return a}use(...s){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(a=>{const f={...a};if(f.async=this.defaults.async||f.async||!1,a.extensions&&(a.extensions.forEach(p=>{if(!p.name)throw new Error("extension name required");if("renderer"in p){const v=o.renderers[p.name];v?o.renderers[p.name]=function(...w){let T=p.renderer.apply(this,w);return T===!1&&(T=v.apply(this,w)),T}:o.renderers[p.name]=p.renderer}if("tokenizer"in p){if(!p.level||p.level!=="block"&&p.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const v=o[p.level];v?v.unshift(p.tokenizer):o[p.level]=[p.tokenizer],p.start&&(p.level==="block"?o.startBlock?o.startBlock.push(p.start):o.startBlock=[p.start]:p.level==="inline"&&(o.startInline?o.startInline.push(p.start):o.startInline=[p.start]))}"childTokens"in p&&p.childTokens&&(o.childTokens[p.name]=p.childTokens)}),f.extensions=o),a.renderer){const p=this.defaults.renderer||new so(this.defaults);for(const v in a.renderer){if(!(v in p))throw new Error(`renderer '${v}' does not exist`);if(["options","parser"].includes(v))continue;const w=v,T=a.renderer[w],_=p[w];p[w]=(...S)=>{let O=T.apply(p,S);return O===!1&&(O=_.apply(p,S)),O||""}}f.renderer=p}if(a.tokenizer){const p=this.defaults.tokenizer||new oo(this.defaults);for(const v in a.tokenizer){if(!(v in p))throw new Error(`tokenizer '${v}' does not exist`);if(["options","rules","lexer"].includes(v))continue;const w=v,T=a.tokenizer[w],_=p[w];p[w]=(...S)=>{let O=T.apply(p,S);return O===!1&&(O=_.apply(p,S)),O}}f.tokenizer=p}if(a.hooks){const p=this.defaults.hooks||new Hl;for(const v in a.hooks){if(!(v in p))throw new Error(`hook '${v}' does not exist`);if(["options","block"].includes(v))continue;const w=v,T=a.hooks[w],_=p[w];Hl.passThroughHooks.has(v)?p[w]=S=>{if(this.defaults.async)return Promise.resolve(T.call(p,S)).then(P=>_.call(p,P));const O=T.call(p,S);return _.call(p,O)}:p[w]=(...S)=>{let O=T.apply(p,S);return O===!1&&(O=_.apply(p,S)),O}}f.hooks=p}if(a.walkTokens){const p=this.defaults.walkTokens,v=a.walkTokens;f.walkTokens=function(w){let T=[];return T.push(v.call(this,w)),p&&(T=T.concat(p.call(this,w))),T}}this.defaults={...this.defaults,...f}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,o){return Pt.lex(s,o??this.defaults)}parser(s,o){return At.parse(s,o??this.defaults)}parseMarkdown(s){return(a,f)=>{const p={...f},v={...this.defaults,...p},w=this.onError(!!v.silent,!!v.async);if(this.defaults.async===!0&&p.async===!1)return w(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return w(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return w(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));v.hooks&&(v.hooks.options=v,v.hooks.block=s);const T=v.hooks?v.hooks.provideLexer():s?Pt.lex:Pt.lexInline,_=v.hooks?v.hooks.provideParser():s?At.parse:At.parseInline;if(v.async)return Promise.resolve(v.hooks?v.hooks.preprocess(a):a).then(S=>T(S,v)).then(S=>v.hooks?v.hooks.processAllTokens(S):S).then(S=>v.walkTokens?Promise.all(this.walkTokens(S,v.walkTokens)).then(()=>S):S).then(S=>_(S,v)).then(S=>v.hooks?v.hooks.postprocess(S):S).catch(w);try{v.hooks&&(a=v.hooks.preprocess(a));let S=T(a,v);v.hooks&&(S=v.hooks.processAllTokens(S)),v.walkTokens&&this.walkTokens(S,v.walkTokens);let O=_(S,v);return v.hooks&&(O=v.hooks.postprocess(O)),O}catch(S){return w(S)}}}onError(s,o){return a=>{if(a.message+=`
Please report this to https://github.com/markedjs/marked.`,s){const f="<p>An error occurred:</p><pre>"+qt(a.message+"",!0)+"</pre>";return o?Promise.resolve(f):f}if(o)return Promise.reject(a);throw a}}}const pr=new nh;function ve(d,s){return pr.parse(d,s)}ve.options=ve.setOptions=function(d){return pr.setOptions(d),ve.defaults=pr.defaults,df(ve.defaults),ve};ve.getDefaults=su;ve.defaults=hr;ve.use=function(...d){return pr.use(...d),ve.defaults=pr.defaults,df(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;/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:xf,setPrototypeOf:Jc,isFrozen:rh,getPrototypeOf:lh,getOwnPropertyDescriptor:ih}=Object;let{freeze:ut,seal:Mt,create:Sf}=Object,{apply:nu,construct:ru}=typeof Reflect<"u"&&Reflect;ut||(ut=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),bc=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),oh=wt(String.prototype.indexOf),sh=wt(String.prototype.trim),Ht=wt(Object.prototype.hasOwnProperty),ot=wt(RegExp.prototype.test),Il=uh(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 uh(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;Jc&&Jc(d,null);let a=s.length;for(;a--;){let f=s[a];if(typeof f=="string"){const p=o(f);p!==f&&(rh(s)||(s[a]=p),f=p)}d[f]=!0}return d}function ah(d){for(let s=0;s<d.length;s++)Ht(d,s)||(d[s]=null);return d}function dr(d){const s=Sf(null);for(const[o,a]of xf(d))Ht(d,o)&&(Array.isArray(a)?s[o]=ah(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=ih(d,s);if(a){if(a.get)return wt(a.get);if(typeof a.value=="function")return wt(a.value)}d=lh(d)}function o(){return null}return o}const tf=ut(["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"]),qs=ut(["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"]),Js=ut(["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"]),ch=ut(["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"]),bs=ut(["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"]),fh=ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nf=ut(["#text"]),rf=ut(["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=ut(["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=ut(["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=ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dh=Mt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ph=Mt(/<%[\w\W]*|[\w\W]*%>/gm),hh=Mt(/\$\{[\w\W]*}/gm),mh=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),gh=Mt(/^aria-[\-\w]+$/),Ef=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yh=Mt(/^(?:\w+script|data):/i),vh=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_f=Mt(/^html$/i),kh=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i);var of=Object.freeze({__proto__:null,ARIA_ATTR:gh,ATTR_WHITESPACE:vh,CUSTOM_ELEMENT:kh,DATA_ATTR:mh,DOCTYPE_NAME:_f,ERB_EXPR:ph,IS_ALLOWED_URI:Ef,IS_SCRIPT_OR_DATA:yh,MUSTACHE_EXPR:dh,TMPLIT_EXPR:hh});const jl={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wh=function(){return typeof window>"u"?null:window},xh=function(s,o){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let a=null;const f="data-tt-policy-suffix";o&&o.hasAttribute(f)&&(a=o.getAttribute(f));const p="dompurify"+(a?"#"+a:"");try{return s.createPolicy(p,{createHTML(v){return v},createScriptURL(v){return v}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},sf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Tf(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wh();const s=X=>Tf(X);if(s.version="3.2.3",s.removed=[],!d||!d.document||d.document.nodeType!==jl.document)return s.isSupported=!1,s;let{document:o}=d;const a=o,f=a.currentScript,{DocumentFragment:p,HTMLTemplateElement:v,Node:w,Element:T,NodeFilter:_,NamedNodeMap:S=d.NamedNodeMap||d.MozNamedAttrMap,HTMLFormElement:O,DOMParser:P,trustedTypes:I}=d,Q=T.prototype,D=Dl(Q,"cloneNode"),K=Dl(Q,"remove"),ce=Dl(Q,"nextSibling"),me=Dl(Q,"childNodes"),Se=Dl(Q,"parentNode");if(typeof v=="function"){const X=o.createElement("template");X.content&&X.content.ownerDocument&&(o=X.content.ownerDocument)}let te,fe="";const{implementation:ne,createNodeIterator:Ee,createDocumentFragment:G,getElementsByTagName:Ie}=o,{importNode:Ne}=a;let ue=sf();s.isSupported=typeof xf=="function"&&typeof Se=="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ze,ERB_EXPR:$e,TMPLIT_EXPR:Xe,DATA_ATTR:Ke,ARIA_ATTR:Be,IS_SCRIPT_OR_DATA:Le,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:b}=of;let{IS_ALLOWED_URI:U}=of,y=null;const C=se({},[...tf,...qs,...Js,...bs,...nf]);let Y=null;const re=se({},[...rf,...eu,...lf,...ro]);let Z=Object.seal(Sf(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,he=null,de=!0,ke=!0,Je=!1,Vn=!0,Jt=!1,pn=!0,zt=!1,mr=!1,gr=!1,Wt=!1,Gn=!1,hn=!1,mn=!0,bt=!1;const Gr="user-content-";let yr=!0,gn=!1,en={},tn=null;const vr=se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qn=null;const Qr=se({},["audio","video","img","source","image","track"]);let nn=null;const yn=se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kr="http://www.w3.org/1998/Math/MathML",Yn="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let vn=xt,Xn=!1,Kn=null;const Yr=se({},[kr,Yn,xt],Zs);let kn=se({},["mi","mo","mn","ms","mtext"]),wn=se({},["annotation-xml"]);const xn=se({},["title","style","font","a","script"]);let St=null;const Vl=["application/xhtml+xml","text/html"],Gl="text/html";let De=null,rn=null;const Ql=o.createElement("form"),wr=function(g){return g instanceof RegExp||g instanceof Function},xr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(rn&&rn===g)){if((!g||typeof g!="object")&&(g={}),g=dr(g),St=Vl.indexOf(g.PARSER_MEDIA_TYPE)===-1?Gl:g.PARSER_MEDIA_TYPE,De=St==="application/xhtml+xml"?Zs:lo,y=Ht(g,"ALLOWED_TAGS")?se({},g.ALLOWED_TAGS,De):C,Y=Ht(g,"ALLOWED_ATTR")?se({},g.ALLOWED_ATTR,De):re,Kn=Ht(g,"ALLOWED_NAMESPACES")?se({},g.ALLOWED_NAMESPACES,Zs):Yr,nn=Ht(g,"ADD_URI_SAFE_ATTR")?se(dr(yn),g.ADD_URI_SAFE_ATTR,De):yn,Qn=Ht(g,"ADD_DATA_URI_TAGS")?se(dr(Qr),g.ADD_DATA_URI_TAGS,De):Qr,tn=Ht(g,"FORBID_CONTENTS")?se({},g.FORBID_CONTENTS,De):vr,ie=Ht(g,"FORBID_TAGS")?se({},g.FORBID_TAGS,De):{},he=Ht(g,"FORBID_ATTR")?se({},g.FORBID_ATTR,De):{},en=Ht(g,"USE_PROFILES")?g.USE_PROFILES:!1,de=g.ALLOW_ARIA_ATTR!==!1,ke=g.ALLOW_DATA_ATTR!==!1,Je=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Jt=g.SAFE_FOR_TEMPLATES||!1,pn=g.SAFE_FOR_XML!==!1,zt=g.WHOLE_DOCUMENT||!1,Wt=g.RETURN_DOM||!1,Gn=g.RETURN_DOM_FRAGMENT||!1,hn=g.RETURN_TRUSTED_TYPE||!1,gr=g.FORCE_BODY||!1,mn=g.SANITIZE_DOM!==!1,bt=g.SANITIZE_NAMED_PROPS||!1,yr=g.KEEP_CONTENT!==!1,gn=g.IN_PLACE||!1,U=g.ALLOWED_URI_REGEXP||Ef,vn=g.NAMESPACE||xt,kn=g.MATHML_TEXT_INTEGRATION_POINTS||kn,wn=g.HTML_INTEGRATION_POINTS||wn,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),Jt&&(ke=!1),Gn&&(Wt=!0),en&&(y=se({},nf),Y=[],en.html===!0&&(se(y,tf),se(Y,rf)),en.svg===!0&&(se(y,qs),se(Y,eu),se(Y,ro)),en.svgFilters===!0&&(se(y,Js),se(Y,eu),se(Y,ro)),en.mathMl===!0&&(se(y,bs),se(Y,lf),se(Y,ro))),g.ADD_TAGS&&(y===C&&(y=dr(y)),se(y,g.ADD_TAGS,De)),g.ADD_ATTR&&(Y===re&&(Y=dr(Y)),se(Y,g.ADD_ATTR,De)),g.ADD_URI_SAFE_ATTR&&se(nn,g.ADD_URI_SAFE_ATTR,De),g.FORBID_CONTENTS&&(tn===vr&&(tn=dr(tn)),se(tn,g.FORBID_CONTENTS,De)),yr&&(y["#text"]=!0),zt&&se(y,["html","head","body"]),y.table&&(se(y,["tbody"]),delete ie.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Il('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=g.TRUSTED_TYPES_POLICY,fe=te.createHTML("")}else te===void 0&&(te=xh(I,f)),te!==null&&typeof fe=="string"&&(fe=te.createHTML(""));ut&&ut(g),rn=g}},Sn=se({},[...qs,...Js,...ch]),Sr=se({},[...bs,...fh]),Zn=function(g){let A=Se(g);(!A||!A.tagName)&&(A={namespaceURI:vn,tagName:"template"});const H=lo(g.tagName),_e=lo(A.tagName);return Kn[g.namespaceURI]?g.namespaceURI===Yn?A.namespaceURI===xt?H==="svg":A.namespaceURI===kr?H==="svg"&&(_e==="annotation-xml"||kn[_e]):!!Sn[H]:g.namespaceURI===kr?A.namespaceURI===xt?H==="math":A.namespaceURI===Yn?H==="math"&&wn[_e]:!!Sr[H]:g.namespaceURI===xt?A.namespaceURI===Yn&&!wn[_e]||A.namespaceURI===kr&&!kn[_e]?!1:!Sr[H]&&(xn[H]||!Sn[H]):!!(St==="application/xhtml+xml"&&Kn[g.namespaceURI]):!1},Et=function(g){zl(s.removed,{element:g});try{Se(g).removeChild(g)}catch{K(g)}},Vt=function(g,A){try{zl(s.removed,{attribute:A.getAttributeNode(g),from:A})}catch{zl(s.removed,{attribute:null,from:A})}if(A.removeAttribute(g),g==="is")if(Wt||Gn)try{Et(A)}catch{}else try{A.setAttribute(g,"")}catch{}},qn=function(g){let A=null,H=null;if(gr)g="<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 _e=te?te.createHTML(g):g;if(vn===xt)try{A=new P().parseFromString(_e,St)}catch{}if(!A||!A.documentElement){A=ne.createDocument(vn,"template",null);try{A.documentElement.innerHTML=Xn?fe:_e}catch{}}const Ve=A.body||A.documentElement;return g&&H&&Ve.insertBefore(o.createTextNode(H),Ve.childNodes[0]||null),vn===xt?Ie.call(A,zt?"html":"body")[0]:zt?A.documentElement:Ve},Jn=function(g){return Ee.call(g.ownerDocument||g,g,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},bn=function(g){return g instanceof O&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof S)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Yl=function(g){return typeof w=="function"&&g instanceof w};function Ot(X,g,A){no(X,H=>{H.call(s,g,A,rn)})}const Xl=function(g){let A=null;if(Ot(ue.beforeSanitizeElements,g,null),bn(g))return Et(g),!0;const H=De(g.nodeName);if(Ot(ue.uponSanitizeElement,g,{tagName:H,allowedTags:y}),g.hasChildNodes()&&!Yl(g.firstElementChild)&&ot(/<[/\w]/g,g.innerHTML)&&ot(/<[/\w]/g,g.textContent)||g.nodeType===jl.progressingInstruction||pn&&g.nodeType===jl.comment&&ot(/<[/\w]/g,g.data))return Et(g),!0;if(!y[H]||ie[H]){if(!ie[H]&&Xr(H)&&(Z.tagNameCheck instanceof RegExp&&ot(Z.tagNameCheck,H)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(H)))return!1;if(yr&&!tn[H]){const _e=Se(g)||g.parentNode,Ve=me(g)||g.childNodes;if(Ve&&_e){const le=Ve.length;for(let be=le-1;be>=0;--be){const at=D(Ve[be],!0);at.__removalCount=(g.__removalCount||0)+1,_e.insertBefore(at,ce(g))}}}return Et(g),!0}return g instanceof T&&!Zn(g)||(H==="noscript"||H==="noembed"||H==="noframes")&&ot(/<\/no(script|embed|frames)/i,g.innerHTML)?(Et(g),!0):(Jt&&g.nodeType===jl.text&&(A=g.textContent,no([ze,$e,Xe],_e=>{A=Ol(A,_e," ")}),g.textContent!==A&&(zl(s.removed,{element:g.cloneNode()}),g.textContent=A)),Ot(ue.afterSanitizeElements,g,null),!1)},Gt=function(g,A,H){if(mn&&(A==="id"||A==="name")&&(H in o||H in Ql))return!1;if(!(ke&&!he[A]&&ot(Ke,A))){if(!(de&&ot(Be,A))){if(!Y[A]||he[A]){if(!(Xr(g)&&(Z.tagNameCheck instanceof RegExp&&ot(Z.tagNameCheck,g)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(g))&&(Z.attributeNameCheck instanceof RegExp&&ot(Z.attributeNameCheck,A)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(A))||A==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&ot(Z.tagNameCheck,H)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(H))))return!1}else if(!nn[A]){if(!ot(U,Ol(H,j,""))){if(!((A==="src"||A==="xlink:href"||A==="href")&&g!=="script"&&oh(H,"data:")===0&&Qn[g])){if(!(Je&&!ot(Le,Ol(H,j,"")))){if(H)return!1}}}}}}return!0},Xr=function(g){return g!=="annotation-xml"&&ef(g,b)},Kr=function(g){Ot(ue.beforeSanitizeAttributes,g,null);const{attributes:A}=g;if(!A||bn(g))return;const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let _e=A.length;for(;_e--;){const Ve=A[_e],{name:le,namespaceURI:be,value:at}=Ve,En=De(le);let Fe=le==="value"?at:sh(at);if(H.attrName=En,H.attrValue=Fe,H.keepAttr=!0,H.forceKeepAttr=void 0,Ot(ue.uponSanitizeAttribute,g,H),Fe=H.attrValue,bt&&(En==="id"||En==="name")&&(Vt(le,g),Fe=Gr+Fe),pn&&ot(/((--!?|])>)|<\/(style|title)/i,Fe)){Vt(le,g);continue}if(H.forceKeepAttr||(Vt(le,g),!H.keepAttr))continue;if(!Vn&&ot(/\/>/i,Fe)){Vt(le,g);continue}Jt&&no([ze,$e,Xe],Zr=>{Fe=Ol(Fe,Zr," ")});const Kl=De(g.nodeName);if(Gt(Kl,En,Fe)){if(te&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!be)switch(I.getAttributeType(Kl,En)){case"TrustedHTML":{Fe=te.createHTML(Fe);break}case"TrustedScriptURL":{Fe=te.createScriptURL(Fe);break}}try{be?g.setAttributeNS(be,le,Fe):g.setAttribute(le,Fe),bn(g)?Et(g):bc(s.removed)}catch{}}}Ot(ue.afterSanitizeAttributes,g,null)},co=function X(g){let A=null;const H=Jn(g);for(Ot(ue.beforeSanitizeShadowDOM,g,null);A=H.nextNode();)Ot(ue.uponSanitizeShadowNode,A,null),Xl(A),Kr(A),A.content instanceof p&&X(A.content);Ot(ue.afterSanitizeShadowDOM,g,null)};return s.sanitize=function(X){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=null,H=null,_e=null,Ve=null;if(Xn=!X,Xn&&(X="<!-->"),typeof X!="string"&&!Yl(X))if(typeof X.toString=="function"){if(X=X.toString(),typeof X!="string")throw Il("dirty is not a string, aborting")}else throw Il("toString is not a function");if(!s.isSupported)return X;if(mr||xr(g),s.removed=[],typeof X=="string"&&(gn=!1),gn){if(X.nodeName){const at=De(X.nodeName);if(!y[at]||ie[at])throw Il("root node is forbidden and cannot be sanitized in-place")}}else if(X instanceof w)A=qn("<!---->"),H=A.ownerDocument.importNode(X,!0),H.nodeType===jl.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?A=H:A.appendChild(H);else{if(!Wt&&!Jt&&!zt&&X.indexOf("<")===-1)return te&&hn?te.createHTML(X):X;if(A=qn(X),!A)return Wt?null:hn?fe:""}A&&gr&&Et(A.firstChild);const le=Jn(gn?X:A);for(;_e=le.nextNode();)Xl(_e),Kr(_e),_e.content instanceof p&&co(_e.content);if(gn)return X;if(Wt){if(Gn)for(Ve=G.call(A.ownerDocument);A.firstChild;)Ve.appendChild(A.firstChild);else Ve=A;return(Y.shadowroot||Y.shadowrootmode)&&(Ve=Ne.call(a,Ve,!0)),Ve}let be=zt?A.outerHTML:A.innerHTML;return zt&&y["!doctype"]&&A.ownerDocument&&A.ownerDocument.doctype&&A.ownerDocument.doctype.name&&ot(_f,A.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+A.ownerDocument.doctype.name+`>
`+be),Jt&&no([ze,$e,Xe],at=>{be=Ol(be,at," ")}),te&&hn?te.createHTML(be):be},s.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xr(X),mr=!0},s.clearConfig=function(){rn=null,mr=!1},s.isValidAttribute=function(X,g,A){rn||xr({});const H=De(X),_e=De(g);return Gt(H,_e,A)},s.addHook=function(X,g){typeof g=="function"&&zl(ue[X],g)},s.removeHook=function(X){return bc(ue[X])},s.removeHooks=function(X){ue[X]=[]},s.removeAllHooks=function(){ue=sf()},s}var Sh=Tf();function Eh(d){return z.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[z.jsx("path",{d:"M12 8V4H8"}),z.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),z.jsx("path",{d:"M2 14h2"}),z.jsx("path",{d:"M20 14h2"}),z.jsx("path",{d:"M15 13v2"}),z.jsx("path",{d:"M9 13v2"})]})}function _h(d){return z.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[z.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),z.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}var lu=function(){return(lu=Object.assign||function(d){for(var s,o=1,a=arguments.length;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=ye.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",Th=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,v=S.onError,w=S.typesettingOptions,T=S.renderMode,T=T===void 0?"post":T,_=S.hideUntilTypeset,S=S.children,P=ye.useContext(iu);if((P==null?void 0:P.version)!==void 0&&(P==null?void 0:P.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=ye.useRef(P),P=ye.useRef((P==null?void 0:P.version)||null);if(P.current===null)P.current=o;else if(P.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 Q(D,K){s&&(window.MathJax=s);var ce=document.createElement("script");ce.type="text/javascript",ce.src=I,ce.async=!1,ce.addEventListener("load",function(){var me=window.MathJax;f&&f(me),D(me),p&&p()}),ce.addEventListener("error",function(me){return K(me)}),document.getElementsByTagName("head")[0].appendChild(ce)}return O.current===void 0&&(P={typesettingOptions:w,renderMode:T,hideUntilTypeset:_},o===2?Fl===void 0&&(typeof window<"u"?(Fl=new Promise(Q)).catch(function(D){if(!v)throw Error("Failed to download MathJax version 2 from '".concat(I,"' due to: ").concat(D));v(D)}):(Fl=Promise.reject()).catch(function(D){})):Ul===void 0&&(typeof window<"u"?(Ul=new Promise(Q)).catch(function(D){if(!v)throw Error("Failed to download MathJax version 3 from '".concat(I,"' due to: ").concat(D));v(D)}):(Ul=Promise.reject()).catch(function(D){})),O.current=lu(lu({},P),o===2?{version:2,promise:Fl}:{version:3,promise:Ul})),ff.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)},Ch=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())},Rh=function(d){function s(){var fe;D==="every"&&me&&K==="post"&&I.current!==null&&(I.current.style.visibility=(fe=(fe=O.style)==null?void 0:fe.visibility)!=null?fe:"visible"),Se.current||(D==="first"&&I.current!==null&&(I.current.style.visibility="visible"),f&&f(),Se.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,v=d.text,w=d.dynamic,T=d.typesettingOptions,_=d.renderMode,S=d.children,O=Ch(d,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),P=ye.useRef(""),I=ye.useRef(null),Q=ye.useContext(iu),D=a??(Q==null?void 0:Q.hideUntilTypeset),K=_??(Q==null?void 0:Q.renderMode),ce=T??(Q==null?void 0:Q.typesettingOptions),me=w!==!1&&(w||!1),Se=ye.useRef(!1),te=ye.useRef(!1);return!te.current&&I.current!==null&&me&&D==="every"&&K==="post"&&(I.current.style.visibility="hidden"),(typeof window<"u"?ye.useLayoutEffect:ye.useEffect)(function(){if((me||!Se.current)&&I.current!==null){if(!Q)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(K==="pre"){if(!(typeof(fe=v)=="string"&&0<fe.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(v,'"'));if(!T||!T.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(Q.version===2)throw Error("Render mode 'pre' only available with MathJax 3, and version 2 is currently in use")}K!=="post"&&v===P.current||te.current||(te.current=!0,Q.version===3?Q.promise.then(function(ne){var Ee;K==="pre"?(Ee=function(G){P.current=v,ne.startup.document.clear(),ne.startup.document.updateDocument(),I.current!==null&&(I.current.innerHTML=G.outerHTML),s()},T.fn.endsWith("Promise")?ne.startup.promise.then(function(){return ne[ce.fn](v,Wn(Wn({},(ce==null?void 0:ce.options)||{}),{display:!o}))}).then(Ee).catch(function(G){throw s(),Error($l(G))}):ne.startup.promise.then(function(){var G=ne[ce.fn](v,Wn(Wn({},(ce==null?void 0:ce.options)||{}),{display:!o}));Ee(G)}).catch(function(G){throw s(),Error($l(G))})):ne.startup.promise.then(function(){return ne.typesetClear([I.current]),ne.typesetPromise([I.current])}).then(s).catch(function(G){throw s(),Error($l(G))})}).catch(function(ne){throw s(),Error($l(ne))}):Q.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}),ff.createElement("span",Wn({},O,{style:Wn(Wn({display:o?"inline":"block"},O.style),{visibility:D?"hidden":(d=O.style)==null?void 0:d.visibility}),ref:I}),S)};function Nh(d){return d=d.replace(/\\([\[\]\(\)])/g,"\\\\$1"),Sh.sanitize(ve.parse(d,{async:!1,breaks:!0}))}function Lh({role:d,content:s}){return z.jsx("div",{className:"flex items-start space-x-4",children:d==="assistant"?z.jsxs(z.Fragment,{children:[z.jsx(Eh,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),z.jsx("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-lg p-4",children:z.jsx("div",{className:"min-h-6 text-gray-800 dark:text-gray-200 overflow-wrap-anywhere",children:s.length>0?z.jsx(Rh,{className:"mt-2",dynamic:!0,children:z.jsx("span",{className:"markdown",dangerouslySetInnerHTML:{__html:Nh(s)}})}):z.jsxs("span",{className:"h-6 flex items-center gap-1",children:[z.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse"}),z.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-200"}),z.jsx("span",{className:"w-2.5 h-2.5 bg-gray-600 dark:bg-gray-300 rounded-full animate-pulse animation-delay-400"})]})})})]}):z.jsxs(z.Fragment,{children:[z.jsx(_h,{className:"h-6 w-6 min-h-6 min-w-6 my-3 text-gray-500 dark:text-gray-300"}),z.jsx("div",{className:"bg-blue-500 text-white rounded-lg p-4",children:z.jsx("p",{className:"min-h-6 overflow-wrap-anywhere",children:s})})]})})}function Ph({messages:d}){const s=d.length===0;return z.jsx("div",{className:`flex-1 p-6 max-w-[960px] w-full ${s?"flex flex-col items-center justify-end":"space-y-4"}`,children:z.jsx(Th,{children:s?z.jsx("div",{className:"text-xl",children:"Ready!"}):d.map((o,a)=>z.jsx(Lh,{...o},`message-${a}`))})})}function cf(d){return z.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[z.jsx("path",{d:"M5 12h14"}),z.jsx("path",{d:"m12 5 7 7-7 7"})]})}function Ah(d){return z.jsxs("svg",{...d,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[z.jsx("path",{d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),z.jsx("path",{fill:"currentColor",d:"M9 9.563C9 9.252 9.252 9 9.563 9h4.874c.311 0 .563.252.563.563v4.874c0 .311-.252.563-.563.563H9.564A.562.562 0 0 1 9 14.437V9.564Z"})]})}function Mh(d){const s=d==0?0:Math.floor(Math.log(d)/Math.log(1024));return+(d/Math.pow(1024,s)).toFixed(2)*1+["B","kB","MB","GB","TB"][s]}function zh({text:d,percentage:s,total:o}){return s??(s=0),z.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:z.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${s}%`},children:[d," (",s.toFixed(2),"%",isNaN(o)?"":` of ${Mh(o)}`,")"]})})}const Oh=!!navigator.gpu,Ih=120,Dh=["知識蒸留について簡単に教えてください。","マシーンラーニングについての詩を書いてください。","n番目のフィボナッチ数を計算するPythonコードを書いてください。"];function jh(){const d=ye.useRef(null),s=ye.useRef(null),o=ye.useRef(null),[a,f]=ye.useState(null),[p,v]=ye.useState(null),[w,T]=ye.useState(""),[_,S]=ye.useState([]),[O,P]=ye.useState(!1),[I,Q]=ye.useState(""),[D,K]=ye.useState([]),[ce,me]=ye.useState(null),[Se,te]=ye.useState(null);function fe(G){K(Ie=>[...Ie,{role:"user",content:G}]),me(null),P(!0),Q("")}function ne(){d.current.postMessage({type:"interrupt"})}ye.useEffect(()=>{Ee()},[I]);function Ee(){if(!s.current)return;const G=s.current;G.style.height="auto";const Ie=Math.min(Math.max(G.scrollHeight,24),200);G.style.height=`${Ie}px`}return ye.useEffect(()=>{d.current||(d.current=new Worker(new URL("/assets/worker-CBh-NAfO.js",import.meta.url),{type:"module"}),d.current.postMessage({type:"check"}));const G=Ne=>{switch(Ne.data.status){case"loading":f("loading"),T(Ne.data.data);break;case"initiate":S(ue=>[...ue,Ne.data]);break;case"progress":S(ue=>ue.map(ze=>ze.file===Ne.data.file?{...ze,...Ne.data}:ze));break;case"done":S(ue=>ue.filter(ze=>ze.file!==Ne.data.file));break;case"ready":f("ready");break;case"start":K(ue=>[...ue,{role:"assistant",content:""}]);break;case"update":{const{output:ue,tps:ze,numTokens:$e}=Ne.data;me(ze),te($e),K(Xe=>{const Ke=[...Xe],Be=Ke.at(-1);return Ke[Ke.length-1]={...Be,content:Be.content+ue},Ke})}break;case"complete":P(!1);break;case"error":v(Ne.data.data);break}},Ie=Ne=>{console.error("Worker error:",Ne)};return d.current.addEventListener("message",G),d.current.addEventListener("error",Ie),()=>{d.current.removeEventListener("message",G),d.current.removeEventListener("error",Ie)}},[]),ye.useEffect(()=>{D.filter(G=>G.role==="user").length!==0&&D.at(-1).role!=="assistant"&&(me(null),d.current.postMessage({type:"generate",data:D}))},[D,O]),ye.useEffect(()=>{if(!o.current||!O)return;const G=o.current;G.scrollHeight-G.scrollTop-G.clientHeight<Ih&&(G.scrollTop=G.scrollHeight)},[D,O]),Oh?z.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&&D.length===0&&z.jsxs("div",{className:"h-full overflow-auto scrollbar-thin flex justify-center items-center flex-col relative",children:[z.jsxs("div",{className:"flex flex-col items-center mb-1 max-w-[380px] text-center",children:[z.jsx("img",{src:"logo.png",width:"80%",height:"auto",className:"block drop-shadow-lg bg-transparent"}),z.jsx("h1",{className:"text-4xl font-bold mb-1",children:"TinySwallow WebGPU"}),z.jsx("h2",{className:"font-semibold",children:"A compact Japanese language model that runs locally in your browser with WebGPU acceleration."})]}),z.jsxs("div",{className:"flex flex-col items-center px-4",children:[z.jsxs("p",{className:"max-w-[480px] mb-4",children:[z.jsx("br",{}),"You are about to load"," ",z.jsx("a",{href:"https://huggingface.co/onnx-community/TinySwallow-1.5B-Instruct-ONNX",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"TinySwallow-1.5B-Instruct"}),", a 1.5B parameter LLM optimized for in-browser inference. Everything runs entirely in your browser with"," ",z.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"," ",z.jsx("a",{href:"https://github.com/huggingface/transformers.js-examples/tree/main/tinyswallow-webgpu",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"GitHub"}),"."]}),p&&z.jsxs("div",{className:"text-red-500 text-center mb-2",children:[z.jsx("p",{className:"mb-1",children:"Unable to load model due to the following error:"}),z.jsx("p",{className:"text-sm",children:p})]}),z.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"&&z.jsx(z.Fragment,{children:z.jsxs("div",{className:"w-full max-w-[500px] text-left mx-auto p-4 bottom-0 mt-auto",children:[z.jsx("p",{className:"text-center mb-1",children:w}),_.map(({file:G,progress:Ie,total:Ne},ue)=>z.jsx(zh,{text:G,percentage:Ie,total:Ne},ue))]})}),a==="ready"&&z.jsxs("div",{ref:o,className:"overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full",children:[z.jsx(Ph,{messages:D}),D.length===0&&z.jsx("div",{children:Dh.map((G,Ie)=>z.jsx("div",{className:"m-1 border border-gray-300 dark:border-gray-600 rounded-md p-2 bg-gray-100 dark:bg-gray-700 cursor-pointer",onClick:()=>fe(G),children:G},Ie))}),z.jsx("p",{className:"text-center text-sm min-h-6 text-gray-500 dark:text-gray-300",children:ce&&D.length>0&&z.jsxs(z.Fragment,{children:[!O&&z.jsxs("span",{children:["Generated ",Se," tokens in"," ",(Se/ce).toFixed(2)," seconds ("]}),z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"font-medium text-center mr-1 text-black dark:text-white",children:ce.toFixed(2)}),z.jsx("span",{className:"text-gray-500 dark:text-gray-300",children:"tokens/second"})]}),!O&&z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"mr-1",children:")."}),z.jsx("span",{className:"underline cursor-pointer",onClick:()=>{d.current.postMessage({type:"reset"}),K([])},children:"Reset"})]})]})})]}),z.jsxs("div",{className:"mt-2 border border-gray-300 dark:bg-gray-700 rounded-lg w-[600px] max-w-[80%] max-h-[200px] mx-auto relative mb-3 flex",children:[z.jsx("textarea",{ref:s,className:"scrollbar-thin w-[550px] dark:bg-gray-700 px-3 py-4 rounded-lg bg-transparent border-none outline-hidden text-gray-800 disabled:text-gray-400 dark:text-gray-200 placeholder-gray-500 dark:placeholder-gray-400 disabled:placeholder-gray-200 resize-none disabled:cursor-not-allowed",placeholder:"Type your message...",type:"text",rows:1,value:I,disabled:a!=="ready",title:a==="ready"?"Model is ready":"Model not loaded yet",onKeyDown:G=>{I.length>0&&!O&&G.key==="Enter"&&!G.shiftKey&&(G.preventDefault(),fe(I))},onInput:G=>Q(G.target.value)}),O?z.jsx("div",{className:"cursor-pointer",onClick:ne,children:z.jsx(Ah,{className:"h-8 w-8 p-1 rounded-md text-gray-800 dark:text-gray-100 absolute right-3 bottom-3"})}):I.length>0?z.jsx("div",{className:"cursor-pointer",onClick:()=>fe(I),children:z.jsx(cf,{className:"h-8 w-8 p-1 bg-gray-800 dark:bg-gray-100 text-white dark:text-black rounded-md absolute right-3 bottom-3"})}):z.jsx("div",{children:z.jsx(cf,{className:"h-8 w-8 p-1 bg-gray-200 dark:bg-gray-600 text-gray-50 dark:text-gray-800 rounded-md absolute right-3 bottom-3"})})]}),z.jsx("p",{className:"text-xs text-gray-400 text-center mb-3",children:"Disclaimer: Generated content may be inaccurate or false."})]}):z.jsxs("div",{className:"fixed w-screen h-screen bg-black z-10 bg-opacity-[92%] text-white text-2xl font-semibold flex justify-center items-center text-center",children:["WebGPU is not supported",z.jsx("br",{}),"by this browser :("]})}xp.createRoot(document.getElementById("root")).render(z.jsx(ye.StrictMode,{children:z.jsx(jh,{})}));