@fullstackhouse/cerber 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -9
- package/dist/cli/index.js +88 -7
- package/dist/core/anchor.js +73 -0
- package/dist/core/artifact.js +34 -1
- package/dist/core/autosend.js +26 -0
- package/dist/core/diff.js +16 -5
- package/dist/core/gh.js +29 -3
- package/dist/core/refresh.js +54 -0
- package/dist/core/send.js +28 -3
- package/dist/core/state.js +51 -0
- package/dist/runner/inflight.js +33 -0
- package/dist/runner/prompt.js +10 -3
- package/dist/runner/review.js +28 -2
- package/dist/server/daemon.js +142 -0
- package/dist/server/index.js +116 -7
- package/package.json +4 -1
- package/web/dist/assets/index-BzQacQob.js +230 -0
- package/web/dist/assets/{index-B73WZWQg.css → index-DlvELqhQ.css} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-CjzYwp5w.js +0 -163
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
var Db=Object.defineProperty;var Mb=(r,u,s)=>u in r?Db(r,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[u]=s;var Qe=(r,u,s)=>Mb(r,typeof u!="symbol"?u+"":u,s);(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const m of o)if(m.type==="childList")for(const g of m.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&a(g)}).observe(document,{childList:!0,subtree:!0});function s(o){const m={};return o.integrity&&(m.integrity=o.integrity),o.referrerPolicy&&(m.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?m.credentials="include":o.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function a(o){if(o.ep)return;o.ep=!0;const m=s(o);fetch(o.href,m)}})();function Cb(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Pr={exports:{}},hu={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var gp;function wb(){if(gp)return hu;gp=1;var r=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(a,o,m){var g=null;if(m!==void 0&&(g=""+m),o.key!==void 0&&(g=""+o.key),"key"in o){m={};for(var v in o)v!=="key"&&(m[v]=o[v])}else m=o;return o=m.ref,{$$typeof:r,type:a,key:g,ref:o!==void 0?o:null,props:m}}return hu.Fragment=u,hu.jsx=s,hu.jsxs=s,hu}var bp;function Ub(){return bp||(bp=1,Pr.exports=wb()),Pr.exports}var z=Ub(),ef={exports:{}},de={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var yp;function Lb(){if(yp)return de;yp=1;var r=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),N=Symbol.iterator;function D(y){return y===null||typeof y!="object"?null:(y=N&&y[N]||y["@@iterator"],typeof y=="function"?y:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,B={};function K(y,O,U){this.props=y,this.context=O,this.refs=B,this.updater=U||A}K.prototype.isReactComponent={},K.prototype.setState=function(y,O){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,O,"setState")},K.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function P(){}P.prototype=K.prototype;function X(y,O,U){this.props=y,this.context=O,this.refs=B,this.updater=U||A}var W=X.prototype=new P;W.constructor=X,Y(W,K.prototype),W.isPureReactComponent=!0;var I=Array.isArray;function ce(){}var ie={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function Z(y,O,U){var F=U.ref;return{$$typeof:r,type:y,key:O,ref:F!==void 0?F:null,props:U}}function $(y,O){return Z(y.type,O,y.props)}function ne(y){return typeof y=="object"&&y!==null&&y.$$typeof===r}function ve(y){var O={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(U){return O[U]})}var Ze=/\/+/g;function Je(y,O){return typeof y=="object"&&y!==null&&y.key!=null?ve(""+y.key):O.toString(36)}function ge(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(ce,ce):(y.status="pending",y.then(function(O){y.status==="pending"&&(y.status="fulfilled",y.value=O)},function(O){y.status==="pending"&&(y.status="rejected",y.reason=O)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function H(y,O,U,F,fe){var pe=typeof y;(pe==="undefined"||pe==="boolean")&&(y=null);var ye=!1;if(y===null)ye=!0;else switch(pe){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(y.$$typeof){case r:case u:ye=!0;break;case S:return ye=y._init,H(ye(y._payload),O,U,F,fe)}}if(ye)return fe=fe(y),ye=F===""?"."+Je(y,0):F,I(fe)?(U="",ye!=null&&(U=ye.replace(Ze,"$&/")+"/"),H(fe,O,U,"",function(gt){return gt})):fe!=null&&(ne(fe)&&(fe=$(fe,U+(fe.key==null||y&&y.key===fe.key?"":(""+fe.key).replace(Ze,"$&/")+"/")+ye)),O.push(fe)),1;ye=0;var Pe=F===""?".":F+":";if(I(y))for(var Oe=0;Oe<y.length;Oe++)F=y[Oe],pe=Pe+Je(F,Oe),ye+=H(F,O,U,pe,fe);else if(Oe=D(y),typeof Oe=="function")for(y=Oe.call(y),Oe=0;!(F=y.next()).done;)F=F.value,pe=Pe+Je(F,Oe++),ye+=H(F,O,U,pe,fe);else if(pe==="object"){if(typeof y.then=="function")return H(ge(y),O,U,F,fe);throw O=String(y),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return ye}function J(y,O,U){if(y==null)return y;var F=[],fe=0;return H(y,F,"","",function(pe){return O.call(U,pe,fe++)}),F}function te(y){if(y._status===-1){var O=y._result;O=O(),O.then(function(U){(y._status===0||y._status===-1)&&(y._status=1,y._result=U)},function(U){(y._status===0||y._status===-1)&&(y._status=2,y._result=U)}),y._status===-1&&(y._status=0,y._result=O)}if(y._status===1)return y._result.default;throw y._result}var oe=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)},Se={map:J,forEach:function(y,O,U){J(y,function(){O.apply(this,arguments)},U)},count:function(y){var O=0;return J(y,function(){O++}),O},toArray:function(y){return J(y,function(O){return O})||[]},only:function(y){if(!ne(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return de.Activity=_,de.Children=Se,de.Component=K,de.Fragment=s,de.Profiler=o,de.PureComponent=X,de.StrictMode=a,de.Suspense=d,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,de.__COMPILER_RUNTIME={__proto__:null,c:function(y){return ie.H.useMemoCache(y)}},de.cache=function(y){return function(){return y.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(y,O,U){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var F=Y({},y.props),fe=y.key;if(O!=null)for(pe in O.key!==void 0&&(fe=""+O.key),O)!k.call(O,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&O.ref===void 0||(F[pe]=O[pe]);var pe=arguments.length-2;if(pe===1)F.children=U;else if(1<pe){for(var ye=Array(pe),Pe=0;Pe<pe;Pe++)ye[Pe]=arguments[Pe+2];F.children=ye}return Z(y.type,fe,F)},de.createContext=function(y){return y={$$typeof:g,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:m,_context:y},y},de.createElement=function(y,O,U){var F,fe={},pe=null;if(O!=null)for(F in O.key!==void 0&&(pe=""+O.key),O)k.call(O,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(fe[F]=O[F]);var ye=arguments.length-2;if(ye===1)fe.children=U;else if(1<ye){for(var Pe=Array(ye),Oe=0;Oe<ye;Oe++)Pe[Oe]=arguments[Oe+2];fe.children=Pe}if(y&&y.defaultProps)for(F in ye=y.defaultProps,ye)fe[F]===void 0&&(fe[F]=ye[F]);return Z(y,pe,fe)},de.createRef=function(){return{current:null}},de.forwardRef=function(y){return{$$typeof:v,render:y}},de.isValidElement=ne,de.lazy=function(y){return{$$typeof:S,_payload:{_status:-1,_result:y},_init:te}},de.memo=function(y,O){return{$$typeof:p,type:y,compare:O===void 0?null:O}},de.startTransition=function(y){var O=ie.T,U={};ie.T=U;try{var F=y(),fe=ie.S;fe!==null&&fe(U,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(ce,oe)}catch(pe){oe(pe)}finally{O!==null&&U.types!==null&&(O.types=U.types),ie.T=O}},de.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},de.use=function(y){return ie.H.use(y)},de.useActionState=function(y,O,U){return ie.H.useActionState(y,O,U)},de.useCallback=function(y,O){return ie.H.useCallback(y,O)},de.useContext=function(y){return ie.H.useContext(y)},de.useDebugValue=function(){},de.useDeferredValue=function(y,O){return ie.H.useDeferredValue(y,O)},de.useEffect=function(y,O){return ie.H.useEffect(y,O)},de.useEffectEvent=function(y){return ie.H.useEffectEvent(y)},de.useId=function(){return ie.H.useId()},de.useImperativeHandle=function(y,O,U){return ie.H.useImperativeHandle(y,O,U)},de.useInsertionEffect=function(y,O){return ie.H.useInsertionEffect(y,O)},de.useLayoutEffect=function(y,O){return ie.H.useLayoutEffect(y,O)},de.useMemo=function(y,O){return ie.H.useMemo(y,O)},de.useOptimistic=function(y,O){return ie.H.useOptimistic(y,O)},de.useReducer=function(y,O,U){return ie.H.useReducer(y,O,U)},de.useRef=function(y){return ie.H.useRef(y)},de.useState=function(y){return ie.H.useState(y)},de.useSyncExternalStore=function(y,O,U){return ie.H.useSyncExternalStore(y,O,U)},de.useTransition=function(){return ie.H.useTransition()},de.version="19.2.8",de}var vp;function Ef(){return vp||(vp=1,ef.exports=Lb()),ef.exports}var Ce=Ef();const Hb=Cb(Ce);var tf={exports:{}},du={},lf={exports:{}},nf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Sp;function kb(){return Sp||(Sp=1,(function(r){function u(H,J){var te=H.length;H.push(J);e:for(;0<te;){var oe=te-1>>>1,Se=H[oe];if(0<o(Se,J))H[oe]=J,H[te]=Se,te=oe;else break e}}function s(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var J=H[0],te=H.pop();if(te!==J){H[0]=te;e:for(var oe=0,Se=H.length,y=Se>>>1;oe<y;){var O=2*(oe+1)-1,U=H[O],F=O+1,fe=H[F];if(0>o(U,te))F<Se&&0>o(fe,U)?(H[oe]=fe,H[F]=te,oe=F):(H[oe]=U,H[O]=te,oe=O);else if(F<Se&&0>o(fe,te))H[oe]=fe,H[F]=te,oe=F;else break e}}return J}function o(H,J){var te=H.sortIndex-J.sortIndex;return te!==0?te:H.id-J.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;r.unstable_now=function(){return m.now()}}else{var g=Date,v=g.now();r.unstable_now=function(){return g.now()-v}}var d=[],p=[],S=1,_=null,N=3,D=!1,A=!1,Y=!1,B=!1,K=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function W(H){for(var J=s(p);J!==null;){if(J.callback===null)a(p);else if(J.startTime<=H)a(p),J.sortIndex=J.expirationTime,u(d,J);else break;J=s(p)}}function I(H){if(Y=!1,W(H),!A)if(s(d)!==null)A=!0,ce||(ce=!0,ve());else{var J=s(p);J!==null&&ge(I,J.startTime-H)}}var ce=!1,ie=-1,k=5,Z=-1;function $(){return B?!0:!(r.unstable_now()-Z<k)}function ne(){if(B=!1,ce){var H=r.unstable_now();Z=H;var J=!0;try{e:{A=!1,Y&&(Y=!1,P(ie),ie=-1),D=!0;var te=N;try{t:{for(W(H),_=s(d);_!==null&&!(_.expirationTime>H&&$());){var oe=_.callback;if(typeof oe=="function"){_.callback=null,N=_.priorityLevel;var Se=oe(_.expirationTime<=H);if(H=r.unstable_now(),typeof Se=="function"){_.callback=Se,W(H),J=!0;break t}_===s(d)&&a(d),W(H)}else a(d);_=s(d)}if(_!==null)J=!0;else{var y=s(p);y!==null&&ge(I,y.startTime-H),J=!1}}break e}finally{_=null,N=te,D=!1}J=void 0}}finally{J?ve():ce=!1}}}var ve;if(typeof X=="function")ve=function(){X(ne)};else if(typeof MessageChannel<"u"){var Ze=new MessageChannel,Je=Ze.port2;Ze.port1.onmessage=ne,ve=function(){Je.postMessage(null)}}else ve=function(){K(ne,0)};function ge(H,J){ie=K(function(){H(r.unstable_now())},J)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return N},r.unstable_next=function(H){switch(N){case 1:case 2:case 3:var J=3;break;default:J=N}var te=N;N=J;try{return H()}finally{N=te}},r.unstable_requestPaint=function(){B=!0},r.unstable_runWithPriority=function(H,J){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=N;N=H;try{return J()}finally{N=te}},r.unstable_scheduleCallback=function(H,J,te){var oe=r.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?oe+te:oe):te=oe,H){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=te+Se,H={id:S++,callback:J,priorityLevel:H,startTime:te,expirationTime:Se,sortIndex:-1},te>oe?(H.sortIndex=te,u(p,H),s(d)===null&&H===s(p)&&(Y?(P(ie),ie=-1):Y=!0,ge(I,te-oe))):(H.sortIndex=Se,u(d,H),A||D||(A=!0,ce||(ce=!0,ve()))),H},r.unstable_shouldYield=$,r.unstable_wrapCallback=function(H){var J=N;return function(){var te=N;N=J;try{return H.apply(this,arguments)}finally{N=te}}}})(nf)),nf}var Tp;function jb(){return Tp||(Tp=1,lf.exports=kb()),lf.exports}var af={exports:{}},Ut={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Ep;function Bb(){if(Ep)return Ut;Ep=1;var r=Ef();function u(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var a={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function m(d,p,S){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:_==null?null:""+_,children:d,containerInfo:p,implementation:S}}var g=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ut.createPortal=function(d,p){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return m(d,p,null,S)},Ut.flushSync=function(d){var p=g.T,S=a.p;try{if(g.T=null,a.p=2,d)return d()}finally{g.T=p,a.p=S,a.d.f()}},Ut.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(d,p))},Ut.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Ut.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var S=p.as,_=v(S,p.crossOrigin),N=typeof p.integrity=="string"?p.integrity:void 0,D=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?a.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:N,fetchPriority:D}):S==="script"&&a.d.X(d,{crossOrigin:_,integrity:N,fetchPriority:D,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=v(p.as,p.crossOrigin);a.d.M(d,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(d)},Ut.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,_=v(S,p.crossOrigin);a.d.L(d,S,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(d,p){if(typeof d=="string")if(p){var S=v(p.as,p.crossOrigin);a.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(d)},Ut.requestFormReset=function(d){a.d.r(d)},Ut.unstable_batchedUpdates=function(d,p){return d(p)},Ut.useFormState=function(d,p,S){return g.H.useFormState(d,p,S)},Ut.useFormStatus=function(){return g.H.useHostTransitionStatus()},Ut.version="19.2.8",Ut}var Ap;function cm(){if(Ap)return af.exports;Ap=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(u){console.error(u)}}return r(),af.exports=Bb(),af.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var xp;function qb(){if(xp)return du;xp=1;var r=jb(),u=Ef(),s=cm();function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function g(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 v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(m(e)!==e)throw Error(a(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(a(188));return t!==e?null:e}for(var l=e,n=t;;){var i=l.return;if(i===null)break;var c=i.alternate;if(c===null){if(n=i.return,n!==null){l=n;continue}break}if(i.child===c.child){for(c=i.child;c;){if(c===l)return d(i),e;if(c===n)return d(i),t;c=c.sibling}throw Error(a(188))}if(l.return!==n.return)l=i,n=c;else{for(var f=!1,h=i.child;h;){if(h===l){f=!0,l=i,n=c;break}if(h===n){f=!0,n=i,l=c;break}h=h.sibling}if(!f){for(h=c.child;h;){if(h===l){f=!0,l=c,n=i;break}if(h===n){f=!0,n=c,l=i;break}h=h.sibling}if(!f)throw Error(a(189))}}if(l.alternate!==n)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,N=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),X=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ve(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Ze=Symbol.for("react.client.reference");function Je(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Y:return"Fragment";case K:return"Profiler";case B:return"StrictMode";case I:return"Suspense";case ce:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case X:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:Je(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return Je(e(t))}catch{}}return null}var ge=Array.isArray,H=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},oe=[],Se=-1;function y(e){return{current:e}}function O(e){0>Se||(e.current=oe[Se],oe[Se]=null,Se--)}function U(e,t){Se++,oe[Se]=e.current,e.current=t}var F=y(null),fe=y(null),pe=y(null),ye=y(null);function Pe(e,t){switch(U(pe,t),U(fe,e),U(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bd(t),e=qd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(F),U(F,e)}function Oe(){O(F),O(fe),O(pe)}function gt(e){e.memoizedState!==null&&U(ye,e);var t=F.current,l=qd(t,e.type);t!==l&&(U(fe,e),U(F,l))}function At(e){fe.current===e&&(O(F),O(fe)),ye.current===e&&(O(ye),su._currentValue=te)}var Ne,Al;function we(e){if(Ne===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ne=t&&t[1]||"",Al=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ne+e+Al}var Xn=!1;function $e(e,t){if(!e||Xn)return"";Xn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(L){var w=L}Reflect.construct(e,[],G)}else{try{G.call()}catch(L){w=L}e.call(G.prototype)}}else{try{throw Error()}catch(L){w=L}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(L){if(L&&w&&typeof L.stack=="string")return[L.stack,w.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=n.DetermineComponentFrameRoot(),f=c[0],h=c[1];if(f&&h){var T=f.split(`
|
|
44
|
+
`),C=h.split(`
|
|
45
|
+
`);for(i=n=0;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(n===T.length||i===C.length)for(n=T.length-1,i=C.length-1;1<=n&&0<=i&&T[n]!==C[i];)i--;for(;1<=n&&0<=i;n--,i--)if(T[n]!==C[i]){if(n!==1||i!==1)do if(n--,i--,0>i||T[n]!==C[i]){var j=`
|
|
46
|
+
`+T[n].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=n&&0<=i);break}}}finally{Xn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?we(l):""}function Qn(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we("Lazy");case 13:return e.child!==t&&t!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return $e(e.type,!1);case 11:return $e(e.type.render,!1);case 1:return $e(e.type,!0);case 31:return we("Activity");default:return""}}function gi(e){try{var t="",l=null;do t+=Qn(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
|
|
47
|
+
Error generating stack: `+n.message+`
|
|
48
|
+
`+n.stack}}var al=Object.prototype.hasOwnProperty,va=r.unstable_scheduleCallback,Zn=r.unstable_cancelCallback,Au=r.unstable_shouldYield,xu=r.unstable_requestPaint,et=r.unstable_now,xl=r.unstable_getCurrentPriorityLevel,_l=r.unstable_ImmediatePriority,Sa=r.unstable_UserBlockingPriority,jl=r.unstable_NormalPriority,Ta=r.unstable_LowPriority,Ea=r.unstable_IdlePriority,un=r.log,Aa=r.unstable_setDisableYieldValue,Nl=null,Dt=null;function ml(e){if(typeof un=="function"&&Aa(e),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(Nl,e)}catch{}}var Mt=Math.clz32?Math.clz32:cn,bi=Math.log,xa=Math.LN2;function cn(e){return e>>>=0,e===0?32:31-(bi(e)/xa|0)|0}var kt=256,sn=262144,Vn=4194304;function zl(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rn(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var i=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var h=n&134217727;return h!==0?(n=h&~c,n!==0?i=zl(n):(f&=h,f!==0?i=zl(f):l||(l=h&~e,l!==0&&(i=zl(l))))):(h=n&~c,h!==0?i=zl(h):f!==0?i=zl(f):l||(l=n&~e,l!==0&&(i=zl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function fn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _a(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kn(){var e=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),e}function qt(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function il(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yi(e,t,l,n,i,c){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,T=e.expirationTimes,C=e.hiddenUpdates;for(l=f&~l;0<l;){var j=31-Mt(l),G=1<<j;h[j]=0,T[j]=-1;var w=C[j];if(w!==null)for(C[j]=null,j=0;j<w.length;j++){var L=w[j];L!==null&&(L.lane&=-536870913)}l&=~G}n!==0&&Na(e,n,0),c!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function Na(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Mt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function _u(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Mt(l),i=1<<n;i&t|e[n]&t&&(e[n]|=t),l&=~i}}function vi(e,t){var l=t&-t;return l=(l&42)!==0?1:Jn(l),(l&(e.suspendedLanes|t))!==0?0:l}function Jn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function za(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Oa(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:rp(e.type))}function Nu(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Gt=Math.random().toString(36).slice(2),pt="__reactFiber$"+Gt,Ct="__reactProps$"+Gt,ke="__reactContainer$"+Gt,Ol="__reactEvents$"+Gt,$c="__reactListeners$"+Gt,zu="__reactHandles$"+Gt,Ra="__reactResources$"+Gt,on="__reactMarker$"+Gt;function Da(e){delete e[pt],delete e[Ct],delete e[Ol],delete e[$c],delete e[zu]}function hn(e){var t=e[pt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ke]||l[pt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Kd(e);e!==null;){if(l=e[pt])return l;e=Kd(e)}return t}e=l,l=e.parentNode}return null}function dn(e){if(e=e[pt]||e[ke]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $n(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function pn(e){var t=e[Ra];return t||(t=e[Ra]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[on]=!0}var Fn=new Set,Rl={};function Bl(e,t){ul(e,t),ul(e+"Capture",t)}function ul(e,t){for(Rl[e]=t,e=0;e<t.length;e++)Fn.add(t[e])}var Fc=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Si={},Ti={};function Ma(e){return al.call(Ti,e)?!0:al.call(Si,e)?!1:Fc.test(e)?Ti[e]=!0:(Si[e]=!0,!1)}function mn(e,t,l){if(Ma(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ql(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function wt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $t(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wc(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){l=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){if(!e._valueTracker){var t=$t(e)?"checked":"value";e._valueTracker=Wc(e,t,""+e[t])}}function Ai(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=$t(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Wn(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}}var Ou=/[\n"\\]/g;function Yt(e){return e.replace(Ou,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ca(e,t,l,n,i,c,f,h){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+bt(t)):e.value!==""+bt(t)&&(e.value=""+bt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?xi(e,f,bt(t)):l!=null?xi(e,f,bt(l)):n!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+bt(h):e.removeAttribute("name")}function Ru(e,t,l,n,i,c,f,h){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ei(e);return}l=l!=null?""+bt(l):"",t=t!=null?""+bt(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=h?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Ei(e)}function xi(e,t,l){t==="number"&&Wn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Gl(e,t,l,n){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&n&&(e[l].defaultSelected=!0)}else{for(l=""+bt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function In(e,t,l){if(t!=null&&(t=""+bt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+bt(l):""}function wa(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(a(92));if(ge(n)){if(1<n.length)throw Error(a(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=bt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Ei(e)}function V(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var b=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function R(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||b.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Q(e,t,l){if(t!=null&&typeof t!="object")throw Error(a(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&l[i]!==n&&R(e,i,n)}else for(var c in t)t.hasOwnProperty(c)&&R(e,c,t[c])}function le(e){if(e.indexOf("-")===-1)return!1;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 ue=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),he=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function De(e){return he.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Me(){}var yt=null;function vt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,tt=null;function kf(e){var t=dn(e);if(t&&(e=t.stateNode)){var l=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ca(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Yt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var i=n[Ct]||null;if(!i)throw Error(a(90));Ca(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Ai(n)}break e;case"textarea":In(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Gl(e,!!l.multiple,t,!1)}}}var Ic=!1;function jf(e,t,l){if(Ic)return e(t,l);Ic=!0;try{var n=e(t);return n}finally{if(Ic=!1,(Dl!==null||tt!==null)&&(gc(),Dl&&(t=Dl,e=tt,tt=Dl=null,kf(t),e)))for(t=0;t<e.length;t++)kf(e[t])}}function _i(e,t){var l=e.stateNode;if(l===null)return null;var n=l[Ct]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(a(231,t,typeof l));return l}var Yl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pc=!1;if(Yl)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){Pc=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{Pc=!1}var gn=null,es=null,Du=null;function Bf(){if(Du)return Du;var e,t=es,l=t.length,n,i="value"in gn?gn.value:gn.textContent,c=i.length;for(e=0;e<l&&t[e]===i[e];e++);var f=l-e;for(n=1;n<=f&&t[l-n]===i[c-n];n++);return Du=i.slice(e,1<n?1-n:void 0)}function Mu(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 Cu(){return!0}function qf(){return!1}function Xt(e){function t(l,n,i,c,f){this._reactName=l,this._targetInst=i,this.type=n,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(c):c[h]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Cu:qf,this.isPropagationStopped=qf,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Cu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Cu)},persist:function(){},isPersistent:Cu}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=Xt(Pn),zi=_({},Pn,{view:0,detail:0}),Om=Xt(zi),ts,ls,Oi,Uu=_({},zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:as,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!==Oi&&(Oi&&e.type==="mousemove"?(ts=e.screenX-Oi.screenX,ls=e.screenY-Oi.screenY):ls=ts=0,Oi=e),ts)},movementY:function(e){return"movementY"in e?e.movementY:ls}}),Gf=Xt(Uu),Rm=_({},Uu,{dataTransfer:0}),Dm=Xt(Rm),Mm=_({},zi,{relatedTarget:0}),ns=Xt(Mm),Cm=_({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0}),wm=Xt(Cm),Um=_({},Pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lm=Xt(Um),Hm=_({},Pn,{data:0}),Yf=Xt(Hm),km={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jm={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"},Bm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bm[e])?!!t[e]:!1}function as(){return qm}var Gm=_({},zi,{key:function(e){if(e.key){var t=km[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:as,charCode:function(e){return e.type==="keypress"?Mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ym=Xt(Gm),Xm=_({},Uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xf=Xt(Xm),Qm=_({},zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:as}),Zm=Xt(Qm),Vm=_({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Km=Xt(Vm),Jm=_({},Uu,{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}),$m=Xt(Jm),Fm=_({},Pn,{newState:0,oldState:0}),Wm=Xt(Fm),Im=[9,13,27,32],is=Yl&&"CompositionEvent"in window,Ri=null;Yl&&"documentMode"in document&&(Ri=document.documentMode);var Pm=Yl&&"TextEvent"in window&&!Ri,Qf=Yl&&(!is||Ri&&8<Ri&&11>=Ri),Zf=" ",Vf=!1;function Kf(e,t){switch(e){case"keyup":return Im.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ua=!1;function eg(e,t){switch(e){case"compositionend":return Jf(t);case"keypress":return t.which!==32?null:(Vf=!0,Zf);case"textInput":return e=t.data,e===Zf&&Vf?null:e;default:return null}}function tg(e,t){if(Ua)return e==="compositionend"||!is&&Kf(e,t)?(e=Bf(),Du=es=gn=null,Ua=!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 Qf&&t.locale!=="ko"?null:t.data;default:return null}}var lg={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 $f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lg[e.type]:t==="textarea"}function Ff(e,t,l,n){Dl?tt?tt.push(n):tt=[n]:Dl=n,t=Ac(t,"onChange"),0<t.length&&(l=new wu("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Di=null,Mi=null;function ng(e){wd(e,0)}function Lu(e){var t=$n(e);if(Ai(t))return e}function Wf(e,t){if(e==="change")return t}var If=!1;if(Yl){var us;if(Yl){var cs="oninput"in document;if(!cs){var Pf=document.createElement("div");Pf.setAttribute("oninput","return;"),cs=typeof Pf.oninput=="function"}us=cs}else us=!1;If=us&&(!document.documentMode||9<document.documentMode)}function eo(){Di&&(Di.detachEvent("onpropertychange",to),Mi=Di=null)}function to(e){if(e.propertyName==="value"&&Lu(Mi)){var t=[];Ff(t,Mi,e,vt(e)),jf(ng,t)}}function ag(e,t,l){e==="focusin"?(eo(),Di=t,Mi=l,Di.attachEvent("onpropertychange",to)):e==="focusout"&&eo()}function ig(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lu(Mi)}function ug(e,t){if(e==="click")return Lu(t)}function cg(e,t){if(e==="input"||e==="change")return Lu(t)}function sg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:sg;function Ci(e,t){if(Ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var i=l[n];if(!al.call(t,i)||!Ft(e[i],t[i]))return!1}return!0}function lo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function no(e,t){var l=lo(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=lo(l)}}function ao(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ao(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function io(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Wn(e.document)}return t}function ss(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")}var rg=Yl&&"documentMode"in document&&11>=document.documentMode,La=null,rs=null,wi=null,fs=!1;function uo(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;fs||La==null||La!==Wn(n)||(n=La,"selectionStart"in n&&ss(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wi&&Ci(wi,n)||(wi=n,n=Ac(rs,"onSelect"),0<n.length&&(t=new wu("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=La)))}function ea(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ha={animationend:ea("Animation","AnimationEnd"),animationiteration:ea("Animation","AnimationIteration"),animationstart:ea("Animation","AnimationStart"),transitionrun:ea("Transition","TransitionRun"),transitionstart:ea("Transition","TransitionStart"),transitioncancel:ea("Transition","TransitionCancel"),transitionend:ea("Transition","TransitionEnd")},os={},co={};Yl&&(co=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function ta(e){if(os[e])return os[e];if(!Ha[e])return e;var t=Ha[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in co)return os[e]=t[l];return e}var so=ta("animationend"),ro=ta("animationiteration"),fo=ta("animationstart"),fg=ta("transitionrun"),og=ta("transitionstart"),hg=ta("transitioncancel"),oo=ta("transitionend"),ho=new Map,hs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");hs.push("scrollEnd");function gl(e,t){ho.set(e,t),Bl(t,[e])}var Hu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},cl=[],ka=0,ds=0;function ku(){for(var e=ka,t=ds=ka=0;t<e;){var l=cl[t];cl[t++]=null;var n=cl[t];cl[t++]=null;var i=cl[t];cl[t++]=null;var c=cl[t];if(cl[t++]=null,n!==null&&i!==null){var f=n.pending;f===null?i.next=i:(i.next=f.next,f.next=i),n.pending=i}c!==0&&po(l,i,c)}}function ju(e,t,l,n){cl[ka++]=e,cl[ka++]=t,cl[ka++]=l,cl[ka++]=n,ds|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function ps(e,t,l,n){return ju(e,t,l,n),Bu(e)}function la(e,t){return ju(e,null,null,t),Bu(e)}function po(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var i=!1,c=e.return;c!==null;)c.childLanes|=l,n=c.alternate,n!==null&&(n.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(i=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,i&&t!==null&&(i=31-Mt(l),e=c.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=l|536870912),c):null}function Bu(e){if(50<tu)throw tu=0,Ar=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ja={};function dg(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,l,n){return new dg(e,t,l,n)}function ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xl(e,t){var l=e.alternate;return l===null?(l=Wt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function mo(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qu(e,t,l,n,i,c){var f=0;if(n=e,typeof e=="function")ms(e)&&(f=1);else if(typeof e=="string")f=yb(e,l,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=Wt(31,l,t,i),e.elementType=Z,e.lanes=c,e;case Y:return na(l.children,i,c,t);case B:f=8,i|=24;break;case K:return e=Wt(12,l,t,i|2),e.elementType=K,e.lanes=c,e;case I:return e=Wt(13,l,t,i),e.elementType=I,e.lanes=c,e;case ce:return e=Wt(19,l,t,i),e.elementType=ce,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:f=10;break e;case P:f=9;break e;case W:f=11;break e;case ie:f=14;break e;case k:f=16,n=null;break e}f=29,l=Error(a(130,e===null?"null":typeof e,"")),n=null}return t=Wt(f,l,t,i),t.elementType=e,t.type=n,t.lanes=c,t}function na(e,t,l,n){return e=Wt(7,e,n,t),e.lanes=l,e}function gs(e,t,l){return e=Wt(6,e,null,t),e.lanes=l,e}function go(e){var t=Wt(18,null,null,0);return t.stateNode=e,t}function bs(e,t,l){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bo=new WeakMap;function sl(e,t){if(typeof e=="object"&&e!==null){var l=bo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:gi(t)},bo.set(e,t),t)}return{value:e,source:t,stack:gi(t)}}var Ba=[],qa=0,Gu=null,Ui=0,rl=[],fl=0,bn=null,Ml=1,Cl="";function Ql(e,t){Ba[qa++]=Ui,Ba[qa++]=Gu,Gu=e,Ui=t}function yo(e,t,l){rl[fl++]=Ml,rl[fl++]=Cl,rl[fl++]=bn,bn=e;var n=Ml;e=Cl;var i=32-Mt(n)-1;n&=~(1<<i),l+=1;var c=32-Mt(t)+i;if(30<c){var f=i-i%5;c=(n&(1<<f)-1).toString(32),n>>=f,i-=f,Ml=1<<32-Mt(t)+i|l<<i|n,Cl=c+e}else Ml=1<<c|l<<i|n,Cl=e}function ys(e){e.return!==null&&(Ql(e,1),yo(e,1,0))}function vs(e){for(;e===Gu;)Gu=Ba[--qa],Ba[qa]=null,Ui=Ba[--qa],Ba[qa]=null;for(;e===bn;)bn=rl[--fl],rl[fl]=null,Cl=rl[--fl],rl[fl]=null,Ml=rl[--fl],rl[fl]=null}function vo(e,t){rl[fl++]=Ml,rl[fl++]=Cl,rl[fl++]=bn,Ml=t.id,Cl=t.overflow,bn=e}var xt=null,Fe=null,ze=!1,yn=null,ol=!1,Ss=Error(a(519));function vn(e){var t=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Li(sl(t,e)),Ss}function So(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[pt]=e,t[Ct]=n,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<nu.length;l++)Ee(nu[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),Ru(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),wa(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||kd(t.textContent,l)?(n.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),n.onScroll!=null&&Ee("scroll",t),n.onScrollEnd!=null&&Ee("scrollend",t),n.onClick!=null&&(t.onclick=Me),t=!0):t=!1,t||vn(e,!0)}function To(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:ol=!1;return;case 27:case 3:ol=!0;return;default:xt=xt.return}}function Ga(e){if(e!==xt)return!1;if(!ze)return To(e),ze=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||jr(e.type,e.memoizedProps)),l=!l),l&&Fe&&vn(e),To(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Fe=Vd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Fe=Vd(e)}else t===27?(t=Fe,wn(e.type)?(e=Xr,Xr=null,Fe=e):Fe=t):Fe=xt?dl(e.stateNode.nextSibling):null;return!0}function aa(){Fe=xt=null,ze=!1}function Ts(){var e=yn;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),yn=null),e}function Li(e){yn===null?yn=[e]:yn.push(e)}var Es=y(null),ia=null,Zl=null;function Sn(e,t,l){U(Es,t._currentValue),t._currentValue=l}function Vl(e){e._currentValue=Es.current,O(Es)}function As(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function xs(e,t,l,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var c=i.dependencies;if(c!==null){var f=i.child;c=c.firstContext;e:for(;c!==null;){var h=c;c=i;for(var T=0;T<t.length;T++)if(h.context===t[T]){c.lanes|=l,h=c.alternate,h!==null&&(h.lanes|=l),As(c.return,l,e),n||(f=null);break e}c=h.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(a(341));f.lanes|=l,c=f.alternate,c!==null&&(c.lanes|=l),As(f,l,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Ya(e,t,l,n){e=null;for(var i=t,c=!1;i!==null;){if(!c){if((i.flags&524288)!==0)c=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(a(387));if(f=f.memoizedProps,f!==null){var h=i.type;Ft(i.pendingProps.value,f.value)||(e!==null?e.push(h):e=[h])}}else if(i===ye.current){if(f=i.alternate,f===null)throw Error(a(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(su):e=[su])}i=i.return}e!==null&&xs(t,e,l,n),t.flags|=262144}function Yu(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ua(e){ia=e,Zl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return Eo(ia,e)}function Xu(e,t){return ia===null&&ua(e),Eo(e,t)}function Eo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Zl===null){if(e===null)throw Error(a(308));Zl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zl=Zl.next=t;return l}var pg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},mg=r.unstable_scheduleCallback,gg=r.unstable_NormalPriority,ct={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _s(){return{controller:new pg,data:new Map,refCount:0}}function Hi(e){e.refCount--,e.refCount===0&&mg(gg,function(){e.controller.abort()})}var ki=null,Ns=0,Xa=0,Qa=null;function bg(e,t){if(ki===null){var l=ki=[];Ns=0,Xa=Rr(),Qa={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Ns++,t.then(Ao,Ao),t}function Ao(){if(--Ns===0&&ki!==null){Qa!==null&&(Qa.status="fulfilled");var e=ki;ki=null,Xa=0,Qa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yg(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),n}var xo=H.S;H.S=function(e,t){cd=et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bg(e,t),xo!==null&&xo(e,t)};var ca=y(null);function zs(){var e=ca.current;return e!==null?e:Ke.pooledCache}function Qu(e,t){t===null?U(ca,ca.current):U(ca,t.pool)}function _o(){var e=zs();return e===null?null:{parent:ct._currentValue,pool:e}}var Za=Error(a(460)),Os=Error(a(474)),Zu=Error(a(542)),Vu={then:function(){}};function No(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Me,Me),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ro(e),e;default:if(typeof t.status=="string")t.then(Me,Me);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ro(e),e}throw ra=t,Za}}function sa(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ra=l,Za):l}}var ra=null;function Oo(){if(ra===null)throw Error(a(459));var e=ra;return ra=null,e}function Ro(e){if(e===Za||e===Zu)throw Error(a(483))}var Va=null,ji=0;function Ku(e){var t=ji;return ji+=1,Va===null&&(Va=[]),zo(Va,e,t)}function Bi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ju(e,t){throw t.$$typeof===N?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Do(e){function t(x,E){if(e){var M=x.deletions;M===null?(x.deletions=[E],x.flags|=16):M.push(E)}}function l(x,E){if(!e)return null;for(;E!==null;)t(x,E),E=E.sibling;return null}function n(x){for(var E=new Map;x!==null;)x.key!==null?E.set(x.key,x):E.set(x.index,x),x=x.sibling;return E}function i(x,E){return x=Xl(x,E),x.index=0,x.sibling=null,x}function c(x,E,M){return x.index=M,e?(M=x.alternate,M!==null?(M=M.index,M<E?(x.flags|=67108866,E):M):(x.flags|=67108866,E)):(x.flags|=1048576,E)}function f(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function h(x,E,M,q){return E===null||E.tag!==6?(E=gs(M,x.mode,q),E.return=x,E):(E=i(E,M),E.return=x,E)}function T(x,E,M,q){var se=M.type;return se===Y?j(x,E,M.props.children,q,M.key):E!==null&&(E.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===k&&sa(se)===E.type)?(E=i(E,M.props),Bi(E,M),E.return=x,E):(E=qu(M.type,M.key,M.props,null,x.mode,q),Bi(E,M),E.return=x,E)}function C(x,E,M,q){return E===null||E.tag!==4||E.stateNode.containerInfo!==M.containerInfo||E.stateNode.implementation!==M.implementation?(E=bs(M,x.mode,q),E.return=x,E):(E=i(E,M.children||[]),E.return=x,E)}function j(x,E,M,q,se){return E===null||E.tag!==7?(E=na(M,x.mode,q,se),E.return=x,E):(E=i(E,M),E.return=x,E)}function G(x,E,M){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=gs(""+E,x.mode,M),E.return=x,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case D:return M=qu(E.type,E.key,E.props,null,x.mode,M),Bi(M,E),M.return=x,M;case A:return E=bs(E,x.mode,M),E.return=x,E;case k:return E=sa(E),G(x,E,M)}if(ge(E)||ve(E))return E=na(E,x.mode,M,null),E.return=x,E;if(typeof E.then=="function")return G(x,Ku(E),M);if(E.$$typeof===X)return G(x,Xu(x,E),M);Ju(x,E)}return null}function w(x,E,M,q){var se=E!==null?E.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return se!==null?null:h(x,E,""+M,q);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case D:return M.key===se?T(x,E,M,q):null;case A:return M.key===se?C(x,E,M,q):null;case k:return M=sa(M),w(x,E,M,q)}if(ge(M)||ve(M))return se!==null?null:j(x,E,M,q,null);if(typeof M.then=="function")return w(x,E,Ku(M),q);if(M.$$typeof===X)return w(x,E,Xu(x,M),q);Ju(x,M)}return null}function L(x,E,M,q,se){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return x=x.get(M)||null,h(E,x,""+q,se);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case D:return x=x.get(q.key===null?M:q.key)||null,T(E,x,q,se);case A:return x=x.get(q.key===null?M:q.key)||null,C(E,x,q,se);case k:return q=sa(q),L(x,E,M,q,se)}if(ge(q)||ve(q))return x=x.get(M)||null,j(E,x,q,se,null);if(typeof q.then=="function")return L(x,E,M,Ku(q),se);if(q.$$typeof===X)return L(x,E,M,Xu(E,q),se);Ju(E,q)}return null}function ee(x,E,M,q){for(var se=null,Ue=null,ae=E,be=E=0,_e=null;ae!==null&&be<M.length;be++){ae.index>be?(_e=ae,ae=null):_e=ae.sibling;var Le=w(x,ae,M[be],q);if(Le===null){ae===null&&(ae=_e);break}e&&ae&&Le.alternate===null&&t(x,ae),E=c(Le,E,be),Ue===null?se=Le:Ue.sibling=Le,Ue=Le,ae=_e}if(be===M.length)return l(x,ae),ze&&Ql(x,be),se;if(ae===null){for(;be<M.length;be++)ae=G(x,M[be],q),ae!==null&&(E=c(ae,E,be),Ue===null?se=ae:Ue.sibling=ae,Ue=ae);return ze&&Ql(x,be),se}for(ae=n(ae);be<M.length;be++)_e=L(ae,x,be,M[be],q),_e!==null&&(e&&_e.alternate!==null&&ae.delete(_e.key===null?be:_e.key),E=c(_e,E,be),Ue===null?se=_e:Ue.sibling=_e,Ue=_e);return e&&ae.forEach(function(jn){return t(x,jn)}),ze&&Ql(x,be),se}function re(x,E,M,q){if(M==null)throw Error(a(151));for(var se=null,Ue=null,ae=E,be=E=0,_e=null,Le=M.next();ae!==null&&!Le.done;be++,Le=M.next()){ae.index>be?(_e=ae,ae=null):_e=ae.sibling;var jn=w(x,ae,Le.value,q);if(jn===null){ae===null&&(ae=_e);break}e&&ae&&jn.alternate===null&&t(x,ae),E=c(jn,E,be),Ue===null?se=jn:Ue.sibling=jn,Ue=jn,ae=_e}if(Le.done)return l(x,ae),ze&&Ql(x,be),se;if(ae===null){for(;!Le.done;be++,Le=M.next())Le=G(x,Le.value,q),Le!==null&&(E=c(Le,E,be),Ue===null?se=Le:Ue.sibling=Le,Ue=Le);return ze&&Ql(x,be),se}for(ae=n(ae);!Le.done;be++,Le=M.next())Le=L(ae,x,be,Le.value,q),Le!==null&&(e&&Le.alternate!==null&&ae.delete(Le.key===null?be:Le.key),E=c(Le,E,be),Ue===null?se=Le:Ue.sibling=Le,Ue=Le);return e&&ae.forEach(function(Rb){return t(x,Rb)}),ze&&Ql(x,be),se}function Xe(x,E,M,q){if(typeof M=="object"&&M!==null&&M.type===Y&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case D:e:{for(var se=M.key;E!==null;){if(E.key===se){if(se=M.type,se===Y){if(E.tag===7){l(x,E.sibling),q=i(E,M.props.children),q.return=x,x=q;break e}}else if(E.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===k&&sa(se)===E.type){l(x,E.sibling),q=i(E,M.props),Bi(q,M),q.return=x,x=q;break e}l(x,E);break}else t(x,E);E=E.sibling}M.type===Y?(q=na(M.props.children,x.mode,q,M.key),q.return=x,x=q):(q=qu(M.type,M.key,M.props,null,x.mode,q),Bi(q,M),q.return=x,x=q)}return f(x);case A:e:{for(se=M.key;E!==null;){if(E.key===se)if(E.tag===4&&E.stateNode.containerInfo===M.containerInfo&&E.stateNode.implementation===M.implementation){l(x,E.sibling),q=i(E,M.children||[]),q.return=x,x=q;break e}else{l(x,E);break}else t(x,E);E=E.sibling}q=bs(M,x.mode,q),q.return=x,x=q}return f(x);case k:return M=sa(M),Xe(x,E,M,q)}if(ge(M))return ee(x,E,M,q);if(ve(M)){if(se=ve(M),typeof se!="function")throw Error(a(150));return M=se.call(M),re(x,E,M,q)}if(typeof M.then=="function")return Xe(x,E,Ku(M),q);if(M.$$typeof===X)return Xe(x,E,Xu(x,M),q);Ju(x,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,E!==null&&E.tag===6?(l(x,E.sibling),q=i(E,M),q.return=x,x=q):(l(x,E),q=gs(M,x.mode,q),q.return=x,x=q),f(x)):l(x,E)}return function(x,E,M,q){try{ji=0;var se=Xe(x,E,M,q);return Va=null,se}catch(ae){if(ae===Za||ae===Zu)throw ae;var Ue=Wt(29,ae,null,x.mode);return Ue.lanes=q,Ue.return=x,Ue}finally{}}}var fa=Do(!0),Mo=Do(!1),Tn=!1;function Rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ds(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function En(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function An(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(He&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=Bu(e),po(e,null,l),t}return ju(e,n,t,l),Bu(e)}function qi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,_u(e,l)}}function Ms(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=f:c=c.next=f,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Cs=!1;function Gi(){if(Cs){var e=Qa;if(e!==null)throw e}}function Yi(e,t,l,n){Cs=!1;var i=e.updateQueue;Tn=!1;var c=i.firstBaseUpdate,f=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var T=h,C=T.next;T.next=null,f===null?c=C:f.next=C,f=T;var j=e.alternate;j!==null&&(j=j.updateQueue,h=j.lastBaseUpdate,h!==f&&(h===null?j.firstBaseUpdate=C:h.next=C,j.lastBaseUpdate=T))}if(c!==null){var G=i.baseState;f=0,j=C=T=null,h=c;do{var w=h.lane&-536870913,L=w!==h.lane;if(L?(xe&w)===w:(n&w)===w){w!==0&&w===Xa&&(Cs=!0),j!==null&&(j=j.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var ee=e,re=h;w=t;var Xe=l;switch(re.tag){case 1:if(ee=re.payload,typeof ee=="function"){G=ee.call(Xe,G,w);break e}G=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=re.payload,w=typeof ee=="function"?ee.call(Xe,G,w):ee,w==null)break e;G=_({},G,w);break e;case 2:Tn=!0}}w=h.callback,w!==null&&(e.flags|=64,L&&(e.flags|=8192),L=i.callbacks,L===null?i.callbacks=[w]:L.push(w))}else L={lane:w,tag:h.tag,payload:h.payload,callback:h.callback,next:null},j===null?(C=j=L,T=G):j=j.next=L,f|=w;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;L=h,h=L.next,L.next=null,i.lastBaseUpdate=L,i.shared.pending=null}}while(!0);j===null&&(T=G),i.baseState=T,i.firstBaseUpdate=C,i.lastBaseUpdate=j,c===null&&(i.shared.lanes=0),On|=f,e.lanes=f,e.memoizedState=G}}function Co(e,t){if(typeof e!="function")throw Error(a(191,e));e.call(t)}function wo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Co(l[e],t)}var Ka=y(null),$u=y(0);function Uo(e,t){e=tn,U($u,e),U(Ka,t),tn=e|t.baseLanes}function ws(){U($u,tn),U(Ka,Ka.current)}function Us(){tn=$u.current,O(Ka),O($u)}var It=y(null),hl=null;function xn(e){var t=e.alternate;U(at,at.current&1),U(It,e),hl===null&&(t===null||Ka.current!==null||t.memoizedState!==null)&&(hl=e)}function Ls(e){U(at,at.current),U(It,e),hl===null&&(hl=e)}function Lo(e){e.tag===22?(U(at,at.current),U(It,e),hl===null&&(hl=e)):_n()}function _n(){U(at,at.current),U(It,It.current)}function Pt(e){O(It),hl===e&&(hl=null),O(at)}var at=y(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Gr(l)||Yr(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Kl=0,me=null,Ge=null,st=null,Wu=!1,Ja=!1,oa=!1,Iu=0,Xi=0,$a=null,vg=0;function lt(){throw Error(a(321))}function Hs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ft(e[l],t[l]))return!1;return!0}function ks(e,t,l,n,i,c){return Kl=c,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?yh:Is,oa=!1,c=l(n,i),oa=!1,Ja&&(c=ko(t,l,n,i)),Ho(e),c}function Ho(e){H.H=Vi;var t=Ge!==null&&Ge.next!==null;if(Kl=0,st=Ge=me=null,Wu=!1,Xi=0,$a=null,t)throw Error(a(300));e===null||rt||(e=e.dependencies,e!==null&&Yu(e)&&(rt=!0))}function ko(e,t,l,n){me=e;var i=0;do{if(Ja&&($a=null),Xi=0,Ja=!1,25<=i)throw Error(a(301));if(i+=1,st=Ge=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}H.H=vh,c=t(l,n)}while(Ja);return c}function Sg(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?Qi(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(me.flags|=1024),t}function js(){var e=Iu!==0;return Iu=0,e}function Bs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function qs(e){if(Wu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wu=!1}Kl=0,st=Ge=me=null,Ja=!1,Xi=Iu=0,$a=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?me.memoizedState=st=e:st=st.next=e,st}function it(){if(Ge===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=st===null?me.memoizedState:st.next;if(t!==null)st=t,Ge=e;else{if(e===null)throw me.alternate===null?Error(a(467)):Error(a(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},st===null?me.memoizedState=st=e:st=st.next=e}return st}function Pu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qi(e){var t=Xi;return Xi+=1,$a===null&&($a=[]),e=zo($a,e,t),t=me,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?yh:Is),e}function ec(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Qi(e);if(e.$$typeof===X)return _t(e)}throw Error(a(438,String(e)))}function Gs(e){var t=null,l=me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=me.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Pu(),me.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=$;return t.index++,l}function Jl(e,t){return typeof t=="function"?t(e):t}function tc(e){var t=it();return Ys(t,Ge,e)}function Ys(e,t,l){var n=e.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=l;var i=e.baseQueue,c=n.pending;if(c!==null){if(i!==null){var f=i.next;i.next=c.next,c.next=f}t.baseQueue=i=c,n.pending=null}if(c=e.baseState,i===null)e.memoizedState=c;else{t=i.next;var h=f=null,T=null,C=t,j=!1;do{var G=C.lane&-536870913;if(G!==C.lane?(xe&G)===G:(Kl&G)===G){var w=C.revertLane;if(w===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),G===Xa&&(j=!0);else if((Kl&w)===w){C=C.next,w===Xa&&(j=!0);continue}else G={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},T===null?(h=T=G,f=c):T=T.next=G,me.lanes|=w,On|=w;G=C.action,oa&&l(c,G),c=C.hasEagerState?C.eagerState:l(c,G)}else w={lane:G,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},T===null?(h=T=w,f=c):T=T.next=w,me.lanes|=G,On|=G;C=C.next}while(C!==null&&C!==t);if(T===null?f=c:T.next=h,!Ft(c,e.memoizedState)&&(rt=!0,j&&(l=Qa,l!==null)))throw l;e.memoizedState=c,e.baseState=f,e.baseQueue=T,n.lastRenderedState=c}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Xs(e){var t=it(),l=t.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=e;var n=l.dispatch,i=l.pending,c=t.memoizedState;if(i!==null){l.pending=null;var f=i=i.next;do c=e(c,f.action),f=f.next;while(f!==i);Ft(c,t.memoizedState)||(rt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,n]}function jo(e,t,l){var n=me,i=it(),c=ze;if(c){if(l===void 0)throw Error(a(407));l=l()}else l=t();var f=!Ft((Ge||i).memoizedState,l);if(f&&(i.memoizedState=l,rt=!0),i=i.queue,Vs(Go.bind(null,n,i,e),[e]),i.getSnapshot!==t||f||st!==null&&st.memoizedState.tag&1){if(n.flags|=2048,Fa(9,{destroy:void 0},qo.bind(null,n,i,l,t),null),Ke===null)throw Error(a(349));c||(Kl&127)!==0||Bo(n,t,l)}return l}function Bo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=me.updateQueue,t===null?(t=Pu(),me.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function qo(e,t,l,n){t.value=l,t.getSnapshot=n,Yo(t)&&Xo(e)}function Go(e,t,l){return l(function(){Yo(t)&&Xo(e)})}function Yo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ft(e,l)}catch{return!0}}function Xo(e){var t=la(e,2);t!==null&&Jt(t,e,2)}function Qs(e){var t=jt();if(typeof e=="function"){var l=e;if(e=l(),oa){ml(!0);try{l()}finally{ml(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jl,lastRenderedState:e},t}function Qo(e,t,l,n){return e.baseState=l,Ys(e,Ge,typeof n=="function"?n:Jl)}function Tg(e,t,l,n,i){if(ac(e))throw Error(a(485));if(e=t.action,e!==null){var c={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};H.T!==null?l(!0):c.isTransition=!1,n(c),l=t.pending,l===null?(c.next=t.pending=c,Zo(t,c)):(c.next=l.next,t.pending=l.next=c)}}function Zo(e,t){var l=t.action,n=t.payload,i=e.state;if(t.isTransition){var c=H.T,f={};H.T=f;try{var h=l(i,n),T=H.S;T!==null&&T(f,h),Vo(e,t,h)}catch(C){Zs(e,t,C)}finally{c!==null&&f.types!==null&&(c.types=f.types),H.T=c}}else try{c=l(i,n),Vo(e,t,c)}catch(C){Zs(e,t,C)}}function Vo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Ko(e,t,n)},function(n){return Zs(e,t,n)}):Ko(e,t,l)}function Ko(e,t,l){t.status="fulfilled",t.value=l,Jo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Zo(e,l)))}function Zs(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,Jo(t),t=t.next;while(t!==n)}e.action=null}function Jo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function Fo(e,t){if(ze){var l=Ke.formState;if(l!==null){e:{var n=me;if(ze){if(Fe){t:{for(var i=Fe,c=ol;i.nodeType!==8;){if(!c){i=null;break t}if(i=dl(i.nextSibling),i===null){i=null;break t}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){Fe=dl(i.nextSibling),n=i.data==="F!";break e}}vn(n)}n=!1}n&&(t=l[0])}}return l=jt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},l.queue=n,l=mh.bind(null,me,n),n.dispatch=l,n=Qs(!1),c=Ws.bind(null,me,!1,n.queue),n=jt(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,l=Tg.bind(null,me,i,c,l),i.dispatch=l,n.memoizedState=e,[t,l,!1]}function Wo(e){var t=it();return Io(t,Ge,e)}function Io(e,t,l){if(t=Ys(e,t,$o)[0],e=tc(Jl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Qi(t)}catch(f){throw f===Za?Zu:f}else n=t;t=it();var i=t.queue,c=i.dispatch;return l!==t.memoizedState&&(me.flags|=2048,Fa(9,{destroy:void 0},Eg.bind(null,i,l),null)),[n,c,e]}function Eg(e,t){e.action=t}function Po(e){var t=it(),l=Ge;if(l!==null)return Io(t,l,e);it(),t=t.memoizedState,l=it();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function Fa(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=me.updateQueue,t===null&&(t=Pu(),me.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function eh(){return it().memoizedState}function lc(e,t,l,n){var i=jt();me.flags|=e,i.memoizedState=Fa(1|t,{destroy:void 0},l,n===void 0?null:n)}function nc(e,t,l,n){var i=it();n=n===void 0?null:n;var c=i.memoizedState.inst;Ge!==null&&n!==null&&Hs(n,Ge.memoizedState.deps)?i.memoizedState=Fa(t,c,l,n):(me.flags|=e,i.memoizedState=Fa(1|t,c,l,n))}function th(e,t){lc(8390656,8,e,t)}function Vs(e,t){nc(2048,8,e,t)}function Ag(e){me.flags|=4;var t=me.updateQueue;if(t===null)t=Pu(),me.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function lh(e){var t=it().memoizedState;return Ag({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function nh(e,t){return nc(4,2,e,t)}function ah(e,t){return nc(4,4,e,t)}function ih(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uh(e,t,l){l=l!=null?l.concat([e]):null,nc(4,4,ih.bind(null,t,e),l)}function Ks(){}function ch(e,t){var l=it();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Hs(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function sh(e,t){var l=it();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Hs(t,n[1]))return n[0];if(n=e(),oa){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[n,t],n}function Js(e,t,l){return l===void 0||(Kl&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=rd(),me.lanes|=e,On|=e,l)}function rh(e,t,l,n){return Ft(l,t)?l:Ka.current!==null?(e=Js(e,l,n),Ft(e,t)||(rt=!0),e):(Kl&42)===0||(Kl&1073741824)!==0&&(xe&261930)===0?(rt=!0,e.memoizedState=l):(e=rd(),me.lanes|=e,On|=e,t)}function fh(e,t,l,n,i){var c=J.p;J.p=c!==0&&8>c?c:8;var f=H.T,h={};H.T=h,Ws(e,!1,t,l);try{var T=i(),C=H.S;if(C!==null&&C(h,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var j=yg(T,n);Zi(e,t,j,ll(e))}else Zi(e,t,n,ll(e))}catch(G){Zi(e,t,{then:function(){},status:"rejected",reason:G},ll())}finally{J.p=c,f!==null&&h.types!==null&&(f.types=h.types),H.T=f}}function xg(){}function $s(e,t,l,n){if(e.tag!==5)throw Error(a(476));var i=oh(e).queue;fh(e,i,t,te,l===null?xg:function(){return hh(e),l(n)})}function oh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jl,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hh(e){var t=oh(e);t.next===null&&(t=e.alternate.memoizedState),Zi(e,t.next.queue,{},ll())}function Fs(){return _t(su)}function dh(){return it().memoizedState}function ph(){return it().memoizedState}function _g(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=ll();e=En(l);var n=An(t,e,l);n!==null&&(Jt(n,t,l),qi(n,t,l)),t={cache:_s()},e.payload=t;return}t=t.return}}function Ng(e,t,l){var n=ll();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ac(e)?gh(t,l):(l=ps(e,t,l,n),l!==null&&(Jt(l,e,n),bh(l,t,n)))}function mh(e,t,l){var n=ll();Zi(e,t,l,n)}function Zi(e,t,l,n){var i={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ac(e))gh(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,h=c(f,l);if(i.hasEagerState=!0,i.eagerState=h,Ft(h,f))return ju(e,t,i,0),Ke===null&&ku(),!1}catch{}finally{}if(l=ps(e,t,i,n),l!==null)return Jt(l,e,n),bh(l,t,n),!0}return!1}function Ws(e,t,l,n){if(n={lane:2,revertLane:Rr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e)){if(t)throw Error(a(479))}else t=ps(e,l,n,2),t!==null&&Jt(t,e,2)}function ac(e){var t=e.alternate;return e===me||t!==null&&t===me}function gh(e,t){Ja=Wu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function bh(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,_u(e,l)}}var Vi={readContext:_t,use:ec,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};Vi.useEffectEvent=lt;var yh={readContext:_t,use:ec,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:th,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,lc(4194308,4,ih.bind(null,t,e),l)},useLayoutEffect:function(e,t){return lc(4194308,4,e,t)},useInsertionEffect:function(e,t){lc(4,2,e,t)},useMemo:function(e,t){var l=jt();t=t===void 0?null:t;var n=e();if(oa){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=jt();if(l!==void 0){var i=l(t);if(oa){ml(!0);try{l(t)}finally{ml(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Ng.bind(null,me,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Qs(e);var t=e.queue,l=mh.bind(null,me,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ks,useDeferredValue:function(e,t){var l=jt();return Js(l,e,t)},useTransition:function(){var e=Qs(!1);return e=fh.bind(null,me,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=me,i=jt();if(ze){if(l===void 0)throw Error(a(407));l=l()}else{if(l=t(),Ke===null)throw Error(a(349));(xe&127)!==0||Bo(n,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,th(Go.bind(null,n,c,e),[e]),n.flags|=2048,Fa(9,{destroy:void 0},qo.bind(null,n,c,l,t),null),l},useId:function(){var e=jt(),t=Ke.identifierPrefix;if(ze){var l=Cl,n=Ml;l=(n&~(1<<32-Mt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Iu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=vg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fs,useFormState:Fo,useActionState:Fo,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ws.bind(null,me,!0,l),l.dispatch=t,[e,t]},useMemoCache:Gs,useCacheRefresh:function(){return jt().memoizedState=_g.bind(null,me)},useEffectEvent:function(e){var t=jt(),l={impl:e};return t.memoizedState=l,function(){if((He&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},Is={readContext:_t,use:ec,useCallback:ch,useContext:_t,useEffect:Vs,useImperativeHandle:uh,useInsertionEffect:nh,useLayoutEffect:ah,useMemo:sh,useReducer:tc,useRef:eh,useState:function(){return tc(Jl)},useDebugValue:Ks,useDeferredValue:function(e,t){var l=it();return rh(l,Ge.memoizedState,e,t)},useTransition:function(){var e=tc(Jl)[0],t=it().memoizedState;return[typeof e=="boolean"?e:Qi(e),t]},useSyncExternalStore:jo,useId:dh,useHostTransitionStatus:Fs,useFormState:Wo,useActionState:Wo,useOptimistic:function(e,t){var l=it();return Qo(l,Ge,e,t)},useMemoCache:Gs,useCacheRefresh:ph};Is.useEffectEvent=lh;var vh={readContext:_t,use:ec,useCallback:ch,useContext:_t,useEffect:Vs,useImperativeHandle:uh,useInsertionEffect:nh,useLayoutEffect:ah,useMemo:sh,useReducer:Xs,useRef:eh,useState:function(){return Xs(Jl)},useDebugValue:Ks,useDeferredValue:function(e,t){var l=it();return Ge===null?Js(l,e,t):rh(l,Ge.memoizedState,e,t)},useTransition:function(){var e=Xs(Jl)[0],t=it().memoizedState;return[typeof e=="boolean"?e:Qi(e),t]},useSyncExternalStore:jo,useId:dh,useHostTransitionStatus:Fs,useFormState:Po,useActionState:Po,useOptimistic:function(e,t){var l=it();return Ge!==null?Qo(l,Ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Gs,useCacheRefresh:ph};vh.useEffectEvent=lh;function Ps(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:_({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var er={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=ll(),i=En(n);i.payload=t,l!=null&&(i.callback=l),t=An(e,i,n),t!==null&&(Jt(t,e,n),qi(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=ll(),i=En(n);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=An(e,i,n),t!==null&&(Jt(t,e,n),qi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=ll(),n=En(l);n.tag=2,t!=null&&(n.callback=t),t=An(e,n,l),t!==null&&(Jt(t,e,l),qi(t,e,l))}};function Sh(e,t,l,n,i,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,c,f):t.prototype&&t.prototype.isPureReactComponent?!Ci(l,n)||!Ci(i,c):!0}function Th(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&er.enqueueReplaceState(t,t.state,null)}function ha(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=_({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Eh(e){Hu(e)}function Ah(e){console.error(e)}function xh(e){Hu(e)}function ic(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function _h(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function tr(e,t,l){return l=En(l),l.tag=3,l.payload={element:null},l.callback=function(){ic(e,t)},l}function Nh(e){return e=En(e),e.tag=3,e}function zh(e,t,l,n){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var c=n.value;e.payload=function(){return i(c)},e.callback=function(){_h(t,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){_h(t,l,n),typeof i!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function zg(e,t,l,n,i){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&Ya(t,l,i,!0),l=It.current,l!==null){switch(l.tag){case 31:case 13:return hl===null?bc():l.alternate===null&&nt===0&&(nt=3),l.flags&=-257,l.flags|=65536,l.lanes=i,n===Vu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Nr(e,n,i)),!1;case 22:return l.flags|=65536,n===Vu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Nr(e,n,i)),!1}throw Error(a(435,l.tag))}return Nr(e,n,i),bc(),!1}if(ze)return t=It.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==Ss&&(e=Error(a(422),{cause:n}),Li(sl(e,l)))):(n!==Ss&&(t=Error(a(423),{cause:n}),Li(sl(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=sl(n,l),i=tr(e.stateNode,n,i),Ms(e,i),nt!==4&&(nt=2)),!1;var c=Error(a(520),{cause:n});if(c=sl(c,l),eu===null?eu=[c]:eu.push(c),nt!==4&&(nt=2),t===null)return!0;n=sl(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=tr(l.stateNode,n,e),Ms(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Rn===null||!Rn.has(c))))return l.flags|=65536,i&=-i,l.lanes|=i,i=Nh(i),zh(i,e,l,n),Ms(l,i),!1}l=l.return}while(l!==null);return!1}var lr=Error(a(461)),rt=!1;function Nt(e,t,l,n){t.child=e===null?Mo(t,null,l,n):fa(t,e.child,l,n)}function Oh(e,t,l,n,i){l=l.render;var c=t.ref;if("ref"in n){var f={};for(var h in n)h!=="ref"&&(f[h]=n[h])}else f=n;return ua(t),n=ks(e,t,l,f,c,i),h=js(),e!==null&&!rt?(Bs(e,t,i),$l(e,t,i)):(ze&&h&&ys(t),t.flags|=1,Nt(e,t,n,i),t.child)}function Rh(e,t,l,n,i){if(e===null){var c=l.type;return typeof c=="function"&&!ms(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,Dh(e,t,c,n,i)):(e=qu(l.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!fr(e,i)){var f=c.memoizedProps;if(l=l.compare,l=l!==null?l:Ci,l(f,n)&&e.ref===t.ref)return $l(e,t,i)}return t.flags|=1,e=Xl(c,n),e.ref=t.ref,e.return=t,t.child=e}function Dh(e,t,l,n,i){if(e!==null){var c=e.memoizedProps;if(Ci(c,n)&&e.ref===t.ref)if(rt=!1,t.pendingProps=n=c,fr(e,i))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,$l(e,t,i)}return nr(e,t,l,n,i)}function Mh(e,t,l,n){var i=n.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~c}else n=0,t.child=null;return Ch(e,t,c,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qu(t,c!==null?c.cachePool:null),c!==null?Uo(t,c):ws(),Lo(t);else return n=t.lanes=536870912,Ch(e,t,c!==null?c.baseLanes|l:l,l,n)}else c!==null?(Qu(t,c.cachePool),Uo(t,c),_n(),t.memoizedState=null):(e!==null&&Qu(t,null),ws(),_n());return Nt(e,t,i,l),t.child}function Ki(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ch(e,t,l,n,i){var c=zs();return c=c===null?null:{parent:ct._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&Qu(t,null),ws(),Lo(t),e!==null&&Ya(e,t,n,!0),t.childLanes=i,null}function uc(e,t){return t=sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wh(e,t,l){return fa(t,e.child,null,l),e=uc(t,t.pendingProps),e.flags|=2,Pt(t),t.memoizedState=null,e}function Og(e,t,l){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(n.mode==="hidden")return e=uc(t,n),t.lanes=536870912,Ki(null,e);if(Ls(t),(e=Fe)?(e=Zd(e,ol),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bn!==null?{id:Ml,overflow:Cl}:null,retryLane:536870912,hydrationErrors:null},l=go(e),l.return=t,t.child=l,xt=t,Fe=null)):e=null,e===null)throw vn(t);return t.lanes=536870912,null}return uc(t,n)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Ls(t),i)if(t.flags&256)t.flags&=-257,t=wh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(rt||Ya(e,t,l,!1),i=(l&e.childLanes)!==0,rt||i){if(n=Ke,n!==null&&(f=vi(n,l),f!==0&&f!==c.retryLane))throw c.retryLane=f,la(e,f),Jt(n,e,f),lr;bc(),t=wh(e,t,l)}else e=c.treeContext,Fe=dl(f.nextSibling),xt=t,ze=!0,yn=null,ol=!1,e!==null&&vo(t,e),t=uc(t,n),t.flags|=4096;return t}return e=Xl(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function nr(e,t,l,n,i){return ua(t),l=ks(e,t,l,n,void 0,i),n=js(),e!==null&&!rt?(Bs(e,t,i),$l(e,t,i)):(ze&&n&&ys(t),t.flags|=1,Nt(e,t,l,i),t.child)}function Uh(e,t,l,n,i,c){return ua(t),t.updateQueue=null,l=ko(t,n,l,i),Ho(e),n=js(),e!==null&&!rt?(Bs(e,t,c),$l(e,t,c)):(ze&&n&&ys(t),t.flags|=1,Nt(e,t,l,c),t.child)}function Lh(e,t,l,n,i){if(ua(t),t.stateNode===null){var c=ja,f=l.contextType;typeof f=="object"&&f!==null&&(c=_t(f)),c=new l(n,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=er,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=n,c.state=t.memoizedState,c.refs={},Rs(t),f=l.contextType,c.context=typeof f=="object"&&f!==null?_t(f):ja,c.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Ps(t,l,f,n),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&er.enqueueReplaceState(c,c.state,null),Yi(t,n,c,i),Gi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){c=t.stateNode;var h=t.memoizedProps,T=ha(l,h);c.props=T;var C=c.context,j=l.contextType;f=ja,typeof j=="object"&&j!==null&&(f=_t(j));var G=l.getDerivedStateFromProps;j=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h||C!==f)&&Th(t,c,n,f),Tn=!1;var w=t.memoizedState;c.state=w,Yi(t,n,c,i),Gi(),C=t.memoizedState,h||w!==C||Tn?(typeof G=="function"&&(Ps(t,l,G,n),C=t.memoizedState),(T=Tn||Sh(t,l,T,n,w,C,f))?(j||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=C),c.props=n,c.state=C,c.context=f,n=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,Ds(e,t),f=t.memoizedProps,j=ha(l,f),c.props=j,G=t.pendingProps,w=c.context,C=l.contextType,T=ja,typeof C=="object"&&C!==null&&(T=_t(C)),h=l.getDerivedStateFromProps,(C=typeof h=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==G||w!==T)&&Th(t,c,n,T),Tn=!1,w=t.memoizedState,c.state=w,Yi(t,n,c,i),Gi();var L=t.memoizedState;f!==G||w!==L||Tn||e!==null&&e.dependencies!==null&&Yu(e.dependencies)?(typeof h=="function"&&(Ps(t,l,h,n),L=t.memoizedState),(j=Tn||Sh(t,l,j,n,w,L,T)||e!==null&&e.dependencies!==null&&Yu(e.dependencies))?(C||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,L,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,L,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=L),c.props=n,c.state=L,c.context=T,n=j):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),n=!1)}return c=n,cc(e,t),n=(t.flags&128)!==0,c||n?(c=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&n?(t.child=fa(t,e.child,null,i),t.child=fa(t,null,l,i)):Nt(e,t,l,i),t.memoizedState=c.state,e=t.child):e=$l(e,t,i),e}function Hh(e,t,l,n){return aa(),t.flags|=256,Nt(e,t,l,n),t.child}var ar={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ir(e){return{baseLanes:e,cachePool:_o()}}function ur(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=tl),e}function kh(e,t,l){var n=t.pendingProps,i=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(i?xn(t):_n(),(e=Fe)?(e=Zd(e,ol),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bn!==null?{id:Ml,overflow:Cl}:null,retryLane:536870912,hydrationErrors:null},l=go(e),l.return=t,t.child=l,xt=t,Fe=null)):e=null,e===null)throw vn(t);return Yr(e)?t.lanes=32:t.lanes=536870912,null}var h=n.children;return n=n.fallback,i?(_n(),i=t.mode,h=sc({mode:"hidden",children:h},i),n=na(n,i,l,null),h.return=t,n.return=t,h.sibling=n,t.child=h,n=t.child,n.memoizedState=ir(l),n.childLanes=ur(e,f,l),t.memoizedState=ar,Ki(null,n)):(xn(t),cr(t,h))}var T=e.memoizedState;if(T!==null&&(h=T.dehydrated,h!==null)){if(c)t.flags&256?(xn(t),t.flags&=-257,t=sr(e,t,l)):t.memoizedState!==null?(_n(),t.child=e.child,t.flags|=128,t=null):(_n(),h=n.fallback,i=t.mode,n=sc({mode:"visible",children:n.children},i),h=na(h,i,l,null),h.flags|=2,n.return=t,h.return=t,n.sibling=h,t.child=n,fa(t,e.child,null,l),n=t.child,n.memoizedState=ir(l),n.childLanes=ur(e,f,l),t.memoizedState=ar,t=Ki(null,n));else if(xn(t),Yr(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var C=f.dgst;f=C,n=Error(a(419)),n.stack="",n.digest=f,Li({value:n,source:null,stack:null}),t=sr(e,t,l)}else if(rt||Ya(e,t,l,!1),f=(l&e.childLanes)!==0,rt||f){if(f=Ke,f!==null&&(n=vi(f,l),n!==0&&n!==T.retryLane))throw T.retryLane=n,la(e,n),Jt(f,e,n),lr;Gr(h)||bc(),t=sr(e,t,l)}else Gr(h)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Fe=dl(h.nextSibling),xt=t,ze=!0,yn=null,ol=!1,e!==null&&vo(t,e),t=cr(t,n.children),t.flags|=4096);return t}return i?(_n(),h=n.fallback,i=t.mode,T=e.child,C=T.sibling,n=Xl(T,{mode:"hidden",children:n.children}),n.subtreeFlags=T.subtreeFlags&65011712,C!==null?h=Xl(C,h):(h=na(h,i,l,null),h.flags|=2),h.return=t,n.return=t,n.sibling=h,t.child=n,Ki(null,n),n=t.child,h=e.child.memoizedState,h===null?h=ir(l):(i=h.cachePool,i!==null?(T=ct._currentValue,i=i.parent!==T?{parent:T,pool:T}:i):i=_o(),h={baseLanes:h.baseLanes|l,cachePool:i}),n.memoizedState=h,n.childLanes=ur(e,f,l),t.memoizedState=ar,Ki(e.child,n)):(xn(t),l=e.child,e=l.sibling,l=Xl(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function cr(e,t){return t=sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sc(e,t){return e=Wt(22,e,null,t),e.lanes=0,e}function sr(e,t,l){return fa(t,e.child,null,l),e=cr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jh(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),As(e.return,t,l)}function rr(e,t,l,n,i,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:i,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=l,f.tailMode=i,f.treeForkCount=c)}function Bh(e,t,l){var n=t.pendingProps,i=n.revealOrder,c=n.tail;n=n.children;var f=at.current,h=(f&2)!==0;if(h?(f=f&1|2,t.flags|=128):f&=1,U(at,f),Nt(e,t,n,l),n=ze?Ui:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jh(e,l,t);else if(e.tag===19)jh(e,l,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}switch(i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&Fu(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),rr(t,!1,i,l,c,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fu(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}rr(t,!0,l,null,c,n);break;case"together":rr(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function $l(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ya(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,l=Xl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Xl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function fr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Yu(e)))}function Rg(e,t,l){switch(t.tag){case 3:Pe(t,t.stateNode.containerInfo),Sn(t,ct,e.memoizedState.cache),aa();break;case 27:case 5:gt(t);break;case 4:Pe(t,t.stateNode.containerInfo);break;case 10:Sn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ls(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(xn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?kh(e,t,l):(xn(t),e=$l(e,t,l),e!==null?e.sibling:null);xn(t);break;case 19:var i=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(Ya(e,t,l,!1),n=(l&t.childLanes)!==0),i){if(n)return Bh(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(at,at.current),n)break;return null;case 22:return t.lanes=0,Mh(e,t,l,t.pendingProps);case 24:Sn(t,ct,e.memoizedState.cache)}return $l(e,t,l)}function qh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!fr(e,l)&&(t.flags&128)===0)return rt=!1,Rg(e,t,l);rt=(e.flags&131072)!==0}else rt=!1,ze&&(t.flags&1048576)!==0&&yo(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=sa(t.elementType),t.type=e,typeof e=="function")ms(e)?(n=ha(e,n),t.tag=1,t=Lh(null,t,e,n,l)):(t.tag=0,t=nr(null,t,e,n,l));else{if(e!=null){var i=e.$$typeof;if(i===W){t.tag=11,t=Oh(null,t,e,n,l);break e}else if(i===ie){t.tag=14,t=Rh(null,t,e,n,l);break e}}throw t=Je(e)||e,Error(a(306,t,""))}}return t;case 0:return nr(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,i=ha(n,t.pendingProps),Lh(e,t,n,i,l);case 3:e:{if(Pe(t,t.stateNode.containerInfo),e===null)throw Error(a(387));n=t.pendingProps;var c=t.memoizedState;i=c.element,Ds(e,t),Yi(t,n,null,l);var f=t.memoizedState;if(n=f.cache,Sn(t,ct,n),n!==c.cache&&xs(t,[ct],l,!0),Gi(),n=f.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Hh(e,t,n,l);break e}else if(n!==i){i=sl(Error(a(424)),t),Li(i),t=Hh(e,t,n,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=dl(e.firstChild),xt=t,ze=!0,yn=null,ol=!0,l=Mo(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(aa(),n===i){t=$l(e,t,l);break e}Nt(e,t,n,l)}t=t.child}return t;case 26:return cc(e,t),e===null?(l=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=l:ze||(l=t.type,e=t.pendingProps,n=xc(pe.current).createElement(l),n[pt]=t,n[Ct]=e,zt(n,l,e),Ve(n),t.stateNode=n):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return gt(t),e===null&&ze&&(n=t.stateNode=Jd(t.type,t.pendingProps,pe.current),xt=t,ol=!0,i=Fe,wn(t.type)?(Xr=i,Fe=dl(n.firstChild)):Fe=i),Nt(e,t,t.pendingProps.children,l),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((i=n=Fe)&&(n=ib(n,t.type,t.pendingProps,ol),n!==null?(t.stateNode=n,xt=t,Fe=dl(n.firstChild),ol=!1,i=!0):i=!1),i||vn(t)),gt(t),i=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,n=c.children,jr(i,c)?n=null:f!==null&&jr(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=ks(e,t,Sg,null,null,l),su._currentValue=i),cc(e,t),Nt(e,t,n,l),t.child;case 6:return e===null&&ze&&((e=l=Fe)&&(l=ub(l,t.pendingProps,ol),l!==null?(t.stateNode=l,xt=t,Fe=null,e=!0):e=!1),e||vn(t)),null;case 13:return kh(e,t,l);case 4:return Pe(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=fa(t,null,n,l):Nt(e,t,n,l),t.child;case 11:return Oh(e,t,t.type,t.pendingProps,l);case 7:return Nt(e,t,t.pendingProps,l),t.child;case 8:return Nt(e,t,t.pendingProps.children,l),t.child;case 12:return Nt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,Sn(t,t.type,n.value),Nt(e,t,n.children,l),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,ua(t),i=_t(i),n=n(i),t.flags|=1,Nt(e,t,n,l),t.child;case 14:return Rh(e,t,t.type,t.pendingProps,l);case 15:return Dh(e,t,t.type,t.pendingProps,l);case 19:return Bh(e,t,l);case 31:return Og(e,t,l);case 22:return Mh(e,t,l,t.pendingProps);case 24:return ua(t),n=_t(ct),e===null?(i=zs(),i===null&&(i=Ke,c=_s(),i.pooledCache=c,c.refCount++,c!==null&&(i.pooledCacheLanes|=l),i=c),t.memoizedState={parent:n,cache:i},Rs(t),Sn(t,ct,i)):((e.lanes&l)!==0&&(Ds(e,t),Yi(t,null,null,l),Gi()),i=e.memoizedState,c=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Sn(t,ct,n)):(n=c.cache,Sn(t,ct,n),n!==i.cache&&xs(t,[ct],l,!0))),Nt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Fl(e){e.flags|=4}function or(e,t,l,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(dd())e.flags|=8192;else throw ra=Vu,Os}else e.flags&=-16777217}function Gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lp(t))if(dd())e.flags|=8192;else throw ra=Vu,Os}function rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Kn():536870912,e.lanes|=t,ei|=t)}function Ji(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Dg(e,t,l){var n=t.pendingProps;switch(vs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Vl(ct),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ga(t)?Fl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ts())),We(t),null;case 26:var i=t.type,c=t.memoizedState;return e===null?(Fl(t),c!==null?(We(t),Gh(t,c)):(We(t),or(t,i,null,n,l))):c?c!==e.memoizedState?(Fl(t),We(t),Gh(t,c)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Fl(t),We(t),or(t,i,e,n,l)),null;case 27:if(At(t),l=pe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Fl(t);else{if(!n){if(t.stateNode===null)throw Error(a(166));return We(t),null}e=F.current,Ga(t)?So(t):(e=Jd(i,n,l),t.stateNode=e,Fl(t))}return We(t),null;case 5:if(At(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Fl(t);else{if(!n){if(t.stateNode===null)throw Error(a(166));return We(t),null}if(c=F.current,Ga(t))So(t);else{var f=xc(pe.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?f.createElement(i,{is:n.is}):f.createElement(i)}}c[pt]=t,c[Ct]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(zt(c,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Fl(t)}}return We(t),or(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Fl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(a(166));if(e=pe.current,Ga(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,i=xt,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[pt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||kd(e.nodeValue,l)),e||vn(t,!0)}else e=xc(e).createTextNode(n),e[pt]=t,t.stateNode=e}return We(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Ga(t),l!==null){if(e===null){if(!n)throw Error(a(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[pt]=t}else aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else l=Ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Pt(t),t):(Pt(t),null);if((t.flags&128)!==0)throw Error(a(558))}return We(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ga(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(a(317));i[pt]=t}else aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else i=Ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Pt(t),t):(Pt(t),null)}return Pt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==i&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),rc(t,t.updateQueue),We(t),null);case 4:return Oe(),e===null&&wr(t.stateNode.containerInfo),We(t),null;case 10:return Vl(t.type),We(t),null;case 19:if(O(at),n=t.memoizedState,n===null)return We(t),null;if(i=(t.flags&128)!==0,c=n.rendering,c===null)if(i)Ji(n,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Fu(e),c!==null){for(t.flags|=128,Ji(n,!1),e=c.updateQueue,t.updateQueue=e,rc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)mo(l,e),l=l.sibling;return U(at,at.current&1|2),ze&&Ql(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&et()>pc&&(t.flags|=128,i=!0,Ji(n,!1),t.lanes=4194304)}else{if(!i)if(e=Fu(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,rc(t,e),Ji(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!ze)return We(t),null}else 2*et()-n.renderingStartTime>pc&&l!==536870912&&(t.flags|=128,i=!0,Ji(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=et(),e.sibling=null,l=at.current,U(at,i?l&1|2:l&1),ze&&Ql(t,n.treeForkCount),e):(We(t),null);case 22:case 23:return Pt(t),Us(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),l=t.updateQueue,l!==null&&rc(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&O(ca),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Vl(ct),We(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Mg(e,t){switch(vs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vl(ct),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return At(t),null;case 31:if(t.memoizedState!==null){if(Pt(t),t.alternate===null)throw Error(a(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(at),null;case 4:return Oe(),null;case 10:return Vl(t.type),null;case 22:case 23:return Pt(t),Us(),e!==null&&O(ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vl(ct),null;case 25:return null;default:return null}}function Yh(e,t){switch(vs(t),t.tag){case 3:Vl(ct),Oe();break;case 26:case 27:case 5:At(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Pt(t);break;case 13:Pt(t);break;case 19:O(at);break;case 10:Vl(t.type);break;case 22:case 23:Pt(t),Us(),e!==null&&O(ca);break;case 24:Vl(ct)}}function $i(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){n=void 0;var c=l.create,f=l.inst;n=c(),f.destroy=n}l=l.next}while(l!==i)}}catch(h){Be(t,t.return,h)}}function Nn(e,t,l){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next;n=c;do{if((n.tag&e)===e){var f=n.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,i=t;var T=l,C=h;try{C()}catch(j){Be(i,T,j)}}}n=n.next}while(n!==c)}}catch(j){Be(t,t.return,j)}}function Xh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{wo(t,l)}catch(n){Be(e,e.return,n)}}}function Qh(e,t,l){l.props=ha(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Be(e,t,n)}}function Fi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(i){Be(e,t,i)}}function wl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(i){Be(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Be(e,t,i)}else l.current=null}function Zh(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(i){Be(e,e.return,i)}}function hr(e,t,l){try{var n=e.stateNode;Pg(n,e.type,l,t),n[Ct]=t}catch(i){Be(e,e.return,i)}}function Vh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wn(e.type)||e.tag===4}function dr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vh(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.tag===27&&wn(e.type)||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 pr(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Me));else if(n!==4&&(n===27&&wn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(pr(e,t,l),e=e.sibling;e!==null;)pr(e,t,l),e=e.sibling}function fc(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&wn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(fc(e,t,l),e=e.sibling;e!==null;)fc(e,t,l),e=e.sibling}function Kh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);zt(t,n,l),t[pt]=e,t[Ct]=l}catch(c){Be(e,e.return,c)}}var Wl=!1,ft=!1,mr=!1,Jh=typeof WeakSet=="function"?WeakSet:Set,St=null;function Cg(e,t){if(e=e.containerInfo,Hr=Mc,e=io(e),ss(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var i=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var f=0,h=-1,T=-1,C=0,j=0,G=e,w=null;t:for(;;){for(var L;G!==l||i!==0&&G.nodeType!==3||(h=f+i),G!==c||n!==0&&G.nodeType!==3||(T=f+n),G.nodeType===3&&(f+=G.nodeValue.length),(L=G.firstChild)!==null;)w=G,G=L;for(;;){if(G===e)break t;if(w===l&&++C===i&&(h=f),w===c&&++j===n&&(T=f),(L=G.nextSibling)!==null)break;G=w,w=G.parentNode}G=L}l=h===-1||T===-1?null:{start:h,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(kr={focusedElem:e,selectionRange:l},Mc=!1,St=t;St!==null;)if(t=St,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,St=e;else for(;St!==null;){switch(t=St,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,i=c.memoizedProps,c=c.memoizedState,n=l.stateNode;try{var ee=ha(l.type,i);e=n.getSnapshotBeforeUpdate(ee,c),n.__reactInternalSnapshotBeforeUpdate=e}catch(re){Be(l,l.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)qr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":qr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,St=e;break}St=t.return}}function $h(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Pl(e,l),n&4&&$i(5,l);break;case 1:if(Pl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Be(l,l.return,f)}else{var i=ha(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Be(l,l.return,f)}}n&64&&Xh(l),n&512&&Fi(l,l.return);break;case 3:if(Pl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{wo(e,t)}catch(f){Be(l,l.return,f)}}break;case 27:t===null&&n&4&&Kh(l);case 26:case 5:Pl(e,l),t===null&&n&4&&Zh(l),n&512&&Fi(l,l.return);break;case 12:Pl(e,l);break;case 31:Pl(e,l),n&4&&Ih(e,l);break;case 13:Pl(e,l),n&4&&Ph(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Gg.bind(null,l),cb(e,l))));break;case 22:if(n=l.memoizedState!==null||Wl,!n){t=t!==null&&t.memoizedState!==null||ft,i=Wl;var c=ft;Wl=n,(ft=t)&&!c?en(e,l,(l.subtreeFlags&8772)!==0):Pl(e,l),Wl=i,ft=c}break;case 30:break;default:Pl(e,l)}}function Fh(e){var t=e.alternate;t!==null&&(e.alternate=null,Fh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Da(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,Qt=!1;function Il(e,t,l){for(l=l.child;l!==null;)Wh(e,t,l),l=l.sibling}function Wh(e,t,l){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Nl,l)}catch{}switch(l.tag){case 26:ft||wl(l,t),Il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ft||wl(l,t);var n=Ie,i=Qt;wn(l.type)&&(Ie=l.stateNode,Qt=!1),Il(e,t,l),iu(l.stateNode),Ie=n,Qt=i;break;case 5:ft||wl(l,t);case 6:if(n=Ie,i=Qt,Ie=null,Il(e,t,l),Ie=n,Qt=i,Ie!==null)if(Qt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(l.stateNode)}catch(c){Be(l,t,c)}else try{Ie.removeChild(l.stateNode)}catch(c){Be(l,t,c)}break;case 18:Ie!==null&&(Qt?(e=Ie,Xd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),si(e)):Xd(Ie,l.stateNode));break;case 4:n=Ie,i=Qt,Ie=l.stateNode.containerInfo,Qt=!0,Il(e,t,l),Ie=n,Qt=i;break;case 0:case 11:case 14:case 15:Nn(2,l,t),ft||Nn(4,l,t),Il(e,t,l);break;case 1:ft||(wl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Qh(l,t,n)),Il(e,t,l);break;case 21:Il(e,t,l);break;case 22:ft=(n=ft)||l.memoizedState!==null,Il(e,t,l),ft=n;break;default:Il(e,t,l)}}function Ih(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{si(e)}catch(l){Be(t,t.return,l)}}}function Ph(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{si(e)}catch(l){Be(t,t.return,l)}}function wg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jh),t;default:throw Error(a(435,e.tag))}}function oc(e,t){var l=wg(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var i=Yg.bind(null,e,n);n.then(i,i)}})}function Zt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var i=l[n],c=e,f=t,h=f;e:for(;h!==null;){switch(h.tag){case 27:if(wn(h.type)){Ie=h.stateNode,Qt=!1;break e}break;case 5:Ie=h.stateNode,Qt=!1;break e;case 3:case 4:Ie=h.stateNode.containerInfo,Qt=!0;break e}h=h.return}if(Ie===null)throw Error(a(160));Wh(c,f,i),Ie=null,Qt=!1,c=i.alternate,c!==null&&(c.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ed(t,e),t=t.sibling}var bl=null;function ed(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zt(t,e),Vt(e),n&4&&(Nn(3,e,e.return),$i(3,e),Nn(5,e,e.return));break;case 1:Zt(t,e),Vt(e),n&512&&(ft||l===null||wl(l,l.return)),n&64&&Wl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var i=bl;if(Zt(t,e),Vt(e),n&512&&(ft||l===null||wl(l,l.return)),n&4){var c=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":c=i.getElementsByTagName("title")[0],(!c||c[on]||c[pt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=i.createElement(n),i.head.insertBefore(c,i.querySelector("head > title"))),zt(c,n,l),c[pt]=e,Ve(c),n=c;break e;case"link":var f=ep("link","href",i).get(n+(l.href||""));if(f){for(var h=0;h<f.length;h++)if(c=f[h],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(h,1);break t}}c=i.createElement(n),zt(c,n,l),i.head.appendChild(c);break;case"meta":if(f=ep("meta","content",i).get(n+(l.content||""))){for(h=0;h<f.length;h++)if(c=f[h],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(h,1);break t}}c=i.createElement(n),zt(c,n,l),i.head.appendChild(c);break;default:throw Error(a(468,n))}c[pt]=e,Ve(c),n=c}e.stateNode=n}else tp(i,e.type,e.stateNode);else e.stateNode=Pd(i,n,e.memoizedProps);else c!==n?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,n===null?tp(i,e.type,e.stateNode):Pd(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&hr(e,e.memoizedProps,l.memoizedProps)}break;case 27:Zt(t,e),Vt(e),n&512&&(ft||l===null||wl(l,l.return)),l!==null&&n&4&&hr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Zt(t,e),Vt(e),n&512&&(ft||l===null||wl(l,l.return)),e.flags&32){i=e.stateNode;try{V(i,"")}catch(ee){Be(e,e.return,ee)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,hr(e,i,l!==null?l.memoizedProps:i)),n&1024&&(mr=!0);break;case 6:if(Zt(t,e),Vt(e),n&4){if(e.stateNode===null)throw Error(a(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(ee){Be(e,e.return,ee)}}break;case 3:if(zc=null,i=bl,bl=_c(t.containerInfo),Zt(t,e),bl=i,Vt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{si(t.containerInfo)}catch(ee){Be(e,e.return,ee)}mr&&(mr=!1,td(e));break;case 4:n=bl,bl=_c(e.stateNode.containerInfo),Zt(t,e),Vt(e),bl=n;break;case 12:Zt(t,e),Vt(e);break;case 31:Zt(t,e),Vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,oc(e,n)));break;case 13:Zt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(dc=et()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,oc(e,n)));break;case 22:i=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,C=Wl,j=ft;if(Wl=C||i,ft=j||T,Zt(t,e),ft=j,Wl=C,Vt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||T||Wl||ft||da(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(c=T.stateNode,i)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=T.stateNode;var G=T.memoizedProps.style,w=G!=null&&G.hasOwnProperty("display")?G.display:null;h.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(ee){Be(T,T.return,ee)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=i?"":T.memoizedProps}catch(ee){Be(T,T.return,ee)}}}else if(t.tag===18){if(l===null){T=t;try{var L=T.stateNode;i?Qd(L,!0):Qd(T.stateNode,!1)}catch(ee){Be(T,T.return,ee)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,oc(e,l))));break;case 19:Zt(t,e),Vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,oc(e,n)));break;case 30:break;case 21:break;default:Zt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Vh(n)){l=n;break}n=n.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var i=l.stateNode,c=dr(e);fc(e,c,i);break;case 5:var f=l.stateNode;l.flags&32&&(V(f,""),l.flags&=-33);var h=dr(e);fc(e,h,f);break;case 3:case 4:var T=l.stateNode.containerInfo,C=dr(e);pr(e,C,T);break;default:throw Error(a(161))}}catch(j){Be(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function td(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;td(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$h(e,t.alternate,t),t=t.sibling}function da(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nn(4,t,t.return),da(t);break;case 1:wl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Qh(t,t.return,l),da(t);break;case 27:iu(t.stateNode);case 26:case 5:wl(t,t.return),da(t);break;case 22:t.memoizedState===null&&da(t);break;case 30:da(t);break;default:da(t)}e=e.sibling}}function en(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:en(i,c,l),$i(4,c);break;case 1:if(en(i,c,l),n=c,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Be(n,n.return,C)}if(n=c,i=n.updateQueue,i!==null){var h=n.stateNode;try{var T=i.shared.hiddenCallbacks;if(T!==null)for(i.shared.hiddenCallbacks=null,i=0;i<T.length;i++)Co(T[i],h)}catch(C){Be(n,n.return,C)}}l&&f&64&&Xh(c),Fi(c,c.return);break;case 27:Kh(c);case 26:case 5:en(i,c,l),l&&n===null&&f&4&&Zh(c),Fi(c,c.return);break;case 12:en(i,c,l);break;case 31:en(i,c,l),l&&f&4&&Ih(i,c);break;case 13:en(i,c,l),l&&f&4&&Ph(i,c);break;case 22:c.memoizedState===null&&en(i,c,l),Fi(c,c.return);break;case 30:break;default:en(i,c,l)}t=t.sibling}}function gr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Hi(l))}function br(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hi(e))}function yl(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ld(e,t,l,n),t=t.sibling}function ld(e,t,l,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:yl(e,t,l,n),i&2048&&$i(9,t);break;case 1:yl(e,t,l,n);break;case 3:yl(e,t,l,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hi(e)));break;case 12:if(i&2048){yl(e,t,l,n),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,h=c.onPostCommit;typeof h=="function"&&h(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Be(t,t.return,T)}}else yl(e,t,l,n);break;case 31:yl(e,t,l,n);break;case 13:yl(e,t,l,n);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?yl(e,t,l,n):Wi(e,t):c._visibility&2?yl(e,t,l,n):(c._visibility|=2,Wa(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&gr(f,t);break;case 24:yl(e,t,l,n),i&2048&&br(t.alternate,t);break;default:yl(e,t,l,n)}}function Wa(e,t,l,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,h=l,T=n,C=f.flags;switch(f.tag){case 0:case 11:case 15:Wa(c,f,h,T,i),$i(8,f);break;case 23:break;case 22:var j=f.stateNode;f.memoizedState!==null?j._visibility&2?Wa(c,f,h,T,i):Wi(c,f):(j._visibility|=2,Wa(c,f,h,T,i)),i&&C&2048&&gr(f.alternate,f);break;case 24:Wa(c,f,h,T,i),i&&C&2048&&br(f.alternate,f);break;default:Wa(c,f,h,T,i)}t=t.sibling}}function Wi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,i=n.flags;switch(n.tag){case 22:Wi(l,n),i&2048&&gr(n.alternate,n);break;case 24:Wi(l,n),i&2048&&br(n.alternate,n);break;default:Wi(l,n)}t=t.sibling}}var Ii=8192;function Ia(e,t,l){if(e.subtreeFlags&Ii)for(e=e.child;e!==null;)nd(e,t,l),e=e.sibling}function nd(e,t,l){switch(e.tag){case 26:Ia(e,t,l),e.flags&Ii&&e.memoizedState!==null&&vb(l,bl,e.memoizedState,e.memoizedProps);break;case 5:Ia(e,t,l);break;case 3:case 4:var n=bl;bl=_c(e.stateNode.containerInfo),Ia(e,t,l),bl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ii,Ii=16777216,Ia(e,t,l),Ii=n):Ia(e,t,l));break;default:Ia(e,t,l)}}function ad(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];St=n,ud(n,e)}ad(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)id(e),e=e.sibling}function id(e){switch(e.tag){case 0:case 11:case 15:Pi(e),e.flags&2048&&Nn(9,e,e.return);break;case 3:Pi(e);break;case 12:Pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hc(e)):Pi(e);break;default:Pi(e)}}function hc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];St=n,ud(n,e)}ad(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nn(8,t,t.return),hc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,hc(t));break;default:hc(t)}e=e.sibling}}function ud(e,t){for(;St!==null;){var l=St;switch(l.tag){case 0:case 11:case 15:Nn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Hi(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,St=n;else e:for(l=e;St!==null;){n=St;var i=n.sibling,c=n.return;if(Fh(n),n===l){St=null;break e}if(i!==null){i.return=c,St=i;break e}St=c}}}var Ug={getCacheForType:function(e){var t=_t(ct),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return _t(ct).controller.signal}},Lg=typeof WeakMap=="function"?WeakMap:Map,He=0,Ke=null,Te=null,xe=0,je=0,el=null,zn=!1,Pa=!1,yr=!1,tn=0,nt=0,On=0,pa=0,vr=0,tl=0,ei=0,eu=null,Kt=null,Sr=!1,dc=0,cd=0,pc=1/0,mc=null,Rn=null,mt=0,Dn=null,ti=null,ln=0,Tr=0,Er=null,sd=null,tu=0,Ar=null;function ll(){return(He&2)!==0&&xe!==0?xe&-xe:H.T!==null?Rr():Oa()}function rd(){if(tl===0)if((xe&536870912)===0||ze){var e=sn;sn<<=1,(sn&3932160)===0&&(sn=262144),tl=e}else tl=536870912;return e=It.current,e!==null&&(e.flags|=32),tl}function Jt(e,t,l){(e===Ke&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(li(e,0),Mn(e,xe,tl,!1)),il(e,l),((He&2)===0||e!==Ke)&&(e===Ke&&((He&2)===0&&(pa|=l),nt===4&&Mn(e,xe,tl,!1)),Ul(e))}function fd(e,t,l){if((He&6)!==0)throw Error(a(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||fn(e,t),i=n?jg(e,t):_r(e,t,!0),c=n;do{if(i===0){Pa&&!n&&Mn(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!Hg(l)){i=_r(e,t,!1),c=!1;continue}if(i===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var h=e;i=eu;var T=h.current.memoizedState.isDehydrated;if(T&&(li(h,f).flags|=256),f=_r(h,f,!1),f!==2){if(yr&&!T){h.errorRecoveryDisabledLanes|=c,pa|=c,i=4;break e}c=Kt,Kt=i,c!==null&&(Kt===null?Kt=c:Kt.push.apply(Kt,c))}i=f}if(c=!1,i!==2)continue}}if(i===1){li(e,0),Mn(e,t,0,!0);break}e:{switch(n=e,c=i,c){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:Mn(n,t,tl,!zn);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=dc+300-et(),10<i)){if(Mn(n,t,tl,!zn),rn(n,0,!0)!==0)break e;ln=t,n.timeoutHandle=Gd(od.bind(null,n,l,Kt,mc,Sr,t,tl,pa,ei,zn,c,"Throttled",-0,0),i);break e}od(n,l,Kt,mc,Sr,t,tl,pa,ei,zn,c,null,-0,0)}}break}while(!0);Ul(e)}function od(e,t,l,n,i,c,f,h,T,C,j,G,w,L){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Me},nd(t,c,G);var ee=(c&62914560)===c?dc-et():(c&4194048)===c?cd-et():0;if(ee=Sb(G,ee),ee!==null){ln=c,e.cancelPendingCommit=ee(vd.bind(null,e,t,c,l,n,i,f,h,T,j,G,null,w,L)),Mn(e,c,f,!C);return}}vd(e,t,c,l,n,i,f,h,T)}function Hg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var i=l[n],c=i.getSnapshot;i=i.value;try{if(!Ft(c(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Mn(e,t,l,n){t&=~vr,t&=~pa,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var c=31-Mt(i),f=1<<c;n[c]=-1,i&=~f}l!==0&&Na(e,l,t)}function gc(){return(He&6)===0?(lu(0),!1):!0}function xr(){if(Te!==null){if(je===0)var e=Te.return;else e=Te,Zl=ia=null,qs(e),Va=null,ji=0,e=Te;for(;e!==null;)Yh(e.alternate,e),e=e.return;Te=null}}function li(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,lb(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ln=0,xr(),Ke=e,Te=l=Xl(e.current,null),xe=t,je=0,el=null,zn=!1,Pa=fn(e,t),yr=!1,ei=tl=vr=pa=On=nt=0,Kt=eu=null,Sr=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Mt(n),c=1<<i;t|=e[i],n&=~c}return tn=t,ku(),l}function hd(e,t){me=null,H.H=Vi,t===Za||t===Zu?(t=Oo(),je=3):t===Os?(t=Oo(),je=4):je=t===lr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,el=t,Te===null&&(nt=1,ic(e,sl(t,e.current)))}function dd(){var e=It.current;return e===null?!0:(xe&4194048)===xe?hl===null:(xe&62914560)===xe||(xe&536870912)!==0?e===hl:!1}function pd(){var e=H.H;return H.H=Vi,e===null?Vi:e}function md(){var e=H.A;return H.A=Ug,e}function bc(){nt=4,zn||(xe&4194048)!==xe&&It.current!==null||(Pa=!0),(On&134217727)===0&&(pa&134217727)===0||Ke===null||Mn(Ke,xe,tl,!1)}function _r(e,t,l){var n=He;He|=2;var i=pd(),c=md();(Ke!==e||xe!==t)&&(mc=null,li(e,t)),t=!1;var f=nt;e:do try{if(je!==0&&Te!==null){var h=Te,T=el;switch(je){case 8:xr(),f=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(t=!0);var C=je;if(je=0,el=null,ni(e,h,T,C),l&&Pa){f=0;break e}break;default:C=je,je=0,el=null,ni(e,h,T,C)}}kg(),f=nt;break}catch(j){hd(e,j)}while(!0);return t&&e.shellSuspendCounter++,Zl=ia=null,He=n,H.H=i,H.A=c,Te===null&&(Ke=null,xe=0,ku()),f}function kg(){for(;Te!==null;)gd(Te)}function jg(e,t){var l=He;He|=2;var n=pd(),i=md();Ke!==e||xe!==t?(mc=null,pc=et()+500,li(e,t)):Pa=fn(e,t);e:do try{if(je!==0&&Te!==null){t=Te;var c=el;t:switch(je){case 1:je=0,el=null,ni(e,t,c,1);break;case 2:case 9:if(No(c)){je=0,el=null,bd(t);break}t=function(){je!==2&&je!==9||Ke!==e||(je=7),Ul(e)},c.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:No(c)?(je=0,el=null,bd(t)):(je=0,el=null,ni(e,t,c,7));break;case 5:var f=null;switch(Te.tag){case 26:f=Te.memoizedState;case 5:case 27:var h=Te;if(f?lp(f):h.stateNode.complete){je=0,el=null;var T=h.sibling;if(T!==null)Te=T;else{var C=h.return;C!==null?(Te=C,yc(C)):Te=null}break t}}je=0,el=null,ni(e,t,c,5);break;case 6:je=0,el=null,ni(e,t,c,6);break;case 8:xr(),nt=6;break e;default:throw Error(a(462))}}Bg();break}catch(j){hd(e,j)}while(!0);return Zl=ia=null,H.H=n,H.A=i,He=l,Te!==null?0:(Ke=null,xe=0,ku(),nt)}function Bg(){for(;Te!==null&&!Au();)gd(Te)}function gd(e){var t=qh(e.alternate,e,tn);e.memoizedProps=e.pendingProps,t===null?yc(e):Te=t}function bd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Uh(l,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=Uh(l,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:qs(t);default:Yh(l,t),t=Te=mo(t,tn),t=qh(l,t,tn)}e.memoizedProps=e.pendingProps,t===null?yc(e):Te=t}function ni(e,t,l,n){Zl=ia=null,qs(t),Va=null,ji=0;var i=t.return;try{if(zg(e,i,t,l,xe)){nt=1,ic(e,sl(l,e.current)),Te=null;return}}catch(c){if(i!==null)throw Te=i,c;nt=1,ic(e,sl(l,e.current)),Te=null;return}t.flags&32768?(ze||n===1?e=!0:Pa||(xe&536870912)!==0?e=!1:(zn=e=!0,(n===2||n===9||n===3||n===6)&&(n=It.current,n!==null&&n.tag===13&&(n.flags|=16384))),yd(t,e)):yc(t)}function yc(e){var t=e;do{if((t.flags&32768)!==0){yd(t,zn);return}e=t.return;var l=Dg(t.alternate,t,tn);if(l!==null){Te=l;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);nt===0&&(nt=5)}function yd(e,t){do{var l=Mg(e.alternate,e);if(l!==null){l.flags&=32767,Te=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=l}while(e!==null);nt=6,Te=null}function vd(e,t,l,n,i,c,f,h,T){e.cancelPendingCommit=null;do vc();while(mt!==0);if((He&6)!==0)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(c=t.lanes|t.childLanes,c|=ds,yi(e,l,c,f,h,T),e===Ke&&(Te=Ke=null,xe=0),ti=t,Dn=e,ln=l,Tr=c,Er=i,sd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xg(jl,function(){return xd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=H.T,H.T=null,i=J.p,J.p=2,f=He,He|=4;try{Cg(e,t,l)}finally{He=f,J.p=i,H.T=n}}mt=1,Sd(),Td(),Ed()}}function Sd(){if(mt===1){mt=0;var e=Dn,t=ti,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var n=J.p;J.p=2;var i=He;He|=4;try{ed(t,e);var c=kr,f=io(e.containerInfo),h=c.focusedElem,T=c.selectionRange;if(f!==h&&h&&h.ownerDocument&&ao(h.ownerDocument.documentElement,h)){if(T!==null&&ss(h)){var C=T.start,j=T.end;if(j===void 0&&(j=C),"selectionStart"in h)h.selectionStart=C,h.selectionEnd=Math.min(j,h.value.length);else{var G=h.ownerDocument||document,w=G&&G.defaultView||window;if(w.getSelection){var L=w.getSelection(),ee=h.textContent.length,re=Math.min(T.start,ee),Xe=T.end===void 0?re:Math.min(T.end,ee);!L.extend&&re>Xe&&(f=Xe,Xe=re,re=f);var x=no(h,re),E=no(h,Xe);if(x&&E&&(L.rangeCount!==1||L.anchorNode!==x.node||L.anchorOffset!==x.offset||L.focusNode!==E.node||L.focusOffset!==E.offset)){var M=G.createRange();M.setStart(x.node,x.offset),L.removeAllRanges(),re>Xe?(L.addRange(M),L.extend(E.node,E.offset)):(M.setEnd(E.node,E.offset),L.addRange(M))}}}}for(G=[],L=h;L=L.parentNode;)L.nodeType===1&&G.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<G.length;h++){var q=G[h];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Mc=!!Hr,kr=Hr=null}finally{He=i,J.p=n,H.T=l}}e.current=t,mt=2}}function Td(){if(mt===2){mt=0;var e=Dn,t=ti,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=H.T,H.T=null;var n=J.p;J.p=2;var i=He;He|=4;try{$h(e,t.alternate,t)}finally{He=i,J.p=n,H.T=l}}mt=3}}function Ed(){if(mt===4||mt===3){mt=0,xu();var e=Dn,t=ti,l=ln,n=sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,ti=Dn=null,Ad(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Rn=null),za(l),t=t.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(Nl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=H.T,i=J.p,J.p=2,H.T=null;try{for(var c=e.onRecoverableError,f=0;f<n.length;f++){var h=n[f];c(h.value,{componentStack:h.stack})}}finally{H.T=t,J.p=i}}(ln&3)!==0&&vc(),Ul(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===Ar?tu++:(tu=0,Ar=e):tu=0,lu(0)}}function Ad(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Hi(t)))}function vc(){return Sd(),Td(),Ed(),xd()}function xd(){if(mt!==5)return!1;var e=Dn,t=Tr;Tr=0;var l=za(ln),n=H.T,i=J.p;try{J.p=32>l?32:l,H.T=null,l=Er,Er=null;var c=Dn,f=ln;if(mt=0,ti=Dn=null,ln=0,(He&6)!==0)throw Error(a(331));var h=He;if(He|=4,id(c.current),ld(c,c.current,f,l),He=h,lu(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(Nl,c)}catch{}return!0}finally{J.p=i,H.T=n,Ad(e,t)}}function _d(e,t,l){t=sl(l,t),t=tr(e.stateNode,t,2),e=An(e,t,2),e!==null&&(il(e,2),Ul(e))}function Be(e,t,l){if(e.tag===3)_d(e,e,l);else for(;t!==null;){if(t.tag===3){_d(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Rn===null||!Rn.has(n))){e=sl(l,e),l=Nh(2),n=An(t,l,2),n!==null&&(zh(l,n,t,e),il(n,2),Ul(n));break}}t=t.return}}function Nr(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Lg;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(l)||(yr=!0,i.add(l),e=qg.bind(null,e,t,l),t.then(e,e))}function qg(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ke===e&&(xe&l)===l&&(nt===4||nt===3&&(xe&62914560)===xe&&300>et()-dc?(He&2)===0&&li(e,0):vr|=l,ei===xe&&(ei=0)),Ul(e)}function Nd(e,t){t===0&&(t=Kn()),e=la(e,t),e!==null&&(il(e,t),Ul(e))}function Gg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Nd(e,l)}function Yg(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(a(314))}n!==null&&n.delete(t),Nd(e,l)}function Xg(e,t){return va(e,t)}var Sc=null,ai=null,zr=!1,Tc=!1,Or=!1,Cn=0;function Ul(e){e!==ai&&e.next===null&&(ai===null?Sc=ai=e:ai=ai.next=e),Tc=!0,zr||(zr=!0,Zg())}function lu(e,t){if(!Or&&Tc){Or=!0;do for(var l=!1,n=Sc;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var c=0;else{var f=n.suspendedLanes,h=n.pingedLanes;c=(1<<31-Mt(42|e)+1)-1,c&=i&~(f&~h),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Dd(n,c))}else c=xe,c=rn(n,n===Ke?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||fn(n,c)||(l=!0,Dd(n,c));n=n.next}while(l);Or=!1}}function Qg(){zd()}function zd(){Tc=zr=!1;var e=0;Cn!==0&&tb()&&(e=Cn);for(var t=et(),l=null,n=Sc;n!==null;){var i=n.next,c=Od(n,t);c===0?(n.next=null,l===null?Sc=i:l.next=i,i===null&&(ai=l)):(l=n,(e!==0||(c&3)!==0)&&(Tc=!0)),n=i}mt!==0&&mt!==5||lu(e),Cn!==0&&(Cn=0)}function Od(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-Mt(c),h=1<<f,T=i[f];T===-1?((h&l)===0||(h&n)!==0)&&(i[f]=_a(h,t)):T<=t&&(e.expiredLanes|=h),c&=~h}if(t=Ke,l=xe,l=rn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Zn(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||fn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Zn(n),za(l)){case 2:case 8:l=Sa;break;case 32:l=jl;break;case 268435456:l=Ea;break;default:l=jl}return n=Rd.bind(null,e),l=va(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Zn(n),e.callbackPriority=2,e.callbackNode=null,2}function Rd(e,t){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(vc()&&e.callbackNode!==l)return null;var n=xe;return n=rn(e,e===Ke?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(fd(e,n,t),Od(e,et()),e.callbackNode!=null&&e.callbackNode===l?Rd.bind(null,e):null)}function Dd(e,t){if(vc())return null;fd(e,t,!0)}function Zg(){nb(function(){(He&6)!==0?va(_l,Qg):zd()})}function Rr(){if(Cn===0){var e=Xa;e===0&&(e=kt,kt<<=1,(kt&261888)===0&&(kt=256)),Cn=e}return Cn}function Md(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:De(""+e)}function Cd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Vg(e,t,l,n,i){if(t==="submit"&&l&&l.stateNode===i){var c=Md((i[Ct]||null).action),f=n.submitter;f&&(t=(t=f[Ct]||null)?Md(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var h=new wu("action","action",null,n,i);e.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Cn!==0){var T=f?Cd(i,f):new FormData(i);$s(l,{pending:!0,data:T,method:i.method,action:c},null,T)}}else typeof c=="function"&&(h.preventDefault(),T=f?Cd(i,f):new FormData(i),$s(l,{pending:!0,data:T,method:i.method,action:c},c,T))},currentTarget:i}]})}}for(var Dr=0;Dr<hs.length;Dr++){var Mr=hs[Dr],Kg=Mr.toLowerCase(),Jg=Mr[0].toUpperCase()+Mr.slice(1);gl(Kg,"on"+Jg)}gl(so,"onAnimationEnd"),gl(ro,"onAnimationIteration"),gl(fo,"onAnimationStart"),gl("dblclick","onDoubleClick"),gl("focusin","onFocus"),gl("focusout","onBlur"),gl(fg,"onTransitionRun"),gl(og,"onTransitionStart"),gl(hg,"onTransitionCancel"),gl(oo,"onTransitionEnd"),ul("onMouseEnter",["mouseout","mouseover"]),ul("onMouseLeave",["mouseout","mouseover"]),ul("onPointerEnter",["pointerout","pointerover"]),ul("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nu="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(" "),$g=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nu));function wd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],i=n.event;n=n.listeners;e:{var c=void 0;if(t)for(var f=n.length-1;0<=f;f--){var h=n[f],T=h.instance,C=h.currentTarget;if(h=h.listener,T!==c&&i.isPropagationStopped())break e;c=h,i.currentTarget=C;try{c(i)}catch(j){Hu(j)}i.currentTarget=null,c=T}else for(f=0;f<n.length;f++){if(h=n[f],T=h.instance,C=h.currentTarget,h=h.listener,T!==c&&i.isPropagationStopped())break e;c=h,i.currentTarget=C;try{c(i)}catch(j){Hu(j)}i.currentTarget=null,c=T}}}}function Ee(e,t){var l=t[Ol];l===void 0&&(l=t[Ol]=new Set);var n=e+"__bubble";l.has(n)||(Ud(t,e,2,!1),l.add(n))}function Cr(e,t,l){var n=0;t&&(n|=4),Ud(l,e,n,t)}var Ec="_reactListening"+Math.random().toString(36).slice(2);function wr(e){if(!e[Ec]){e[Ec]=!0,Fn.forEach(function(l){l!=="selectionchange"&&($g.has(l)||Cr(l,!1,e),Cr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ec]||(t[Ec]=!0,Cr("selectionchange",!1,t))}}function Ud(e,t,l,n){switch(rp(t)){case 2:var i=Ab;break;case 8:i=xb;break;default:i=Jr}l=i.bind(null,t,l,e),i=void 0,!Pc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function Ur(e,t,l,n,i){var c=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var h=n.stateNode.containerInfo;if(h===i)break;if(f===4)for(f=n.return;f!==null;){var T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;h!==null;){if(f=hn(h),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){n=c=f;continue e}h=h.parentNode}}n=n.return}jf(function(){var C=c,j=vt(l),G=[];e:{var w=ho.get(e);if(w!==void 0){var L=wu,ee=e;switch(e){case"keypress":if(Mu(l)===0)break e;case"keydown":case"keyup":L=Ym;break;case"focusin":ee="focus",L=ns;break;case"focusout":ee="blur",L=ns;break;case"beforeblur":case"afterblur":L=ns;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Dm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Zm;break;case so:case ro:case fo:L=wm;break;case oo:L=Km;break;case"scroll":case"scrollend":L=Om;break;case"wheel":L=$m;break;case"copy":case"cut":case"paste":L=Lm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Xf;break;case"toggle":case"beforetoggle":L=Wm}var re=(t&4)!==0,Xe=!re&&(e==="scroll"||e==="scrollend"),x=re?w!==null?w+"Capture":null:w;re=[];for(var E=C,M;E!==null;){var q=E;if(M=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||M===null||x===null||(q=_i(E,x),q!=null&&re.push(au(E,q,M))),Xe)break;E=E.return}0<re.length&&(w=new L(w,ee,null,l,j),G.push({event:w,listeners:re}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",w&&l!==yt&&(ee=l.relatedTarget||l.fromElement)&&(hn(ee)||ee[ke]))break e;if((L||w)&&(w=j.window===j?j:(w=j.ownerDocument)?w.defaultView||w.parentWindow:window,L?(ee=l.relatedTarget||l.toElement,L=C,ee=ee?hn(ee):null,ee!==null&&(Xe=m(ee),re=ee.tag,ee!==Xe||re!==5&&re!==27&&re!==6)&&(ee=null)):(L=null,ee=C),L!==ee)){if(re=Gf,q="onMouseLeave",x="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(re=Xf,q="onPointerLeave",x="onPointerEnter",E="pointer"),Xe=L==null?w:$n(L),M=ee==null?w:$n(ee),w=new re(q,E+"leave",L,l,j),w.target=Xe,w.relatedTarget=M,q=null,hn(j)===C&&(re=new re(x,E+"enter",ee,l,j),re.target=M,re.relatedTarget=Xe,q=re),Xe=q,L&&ee)t:{for(re=Fg,x=L,E=ee,M=0,q=x;q;q=re(q))M++;q=0;for(var se=E;se;se=re(se))q++;for(;0<M-q;)x=re(x),M--;for(;0<q-M;)E=re(E),q--;for(;M--;){if(x===E||E!==null&&x===E.alternate){re=x;break t}x=re(x),E=re(E)}re=null}else re=null;L!==null&&Ld(G,w,L,re,!1),ee!==null&&Xe!==null&&Ld(G,Xe,ee,re,!0)}}e:{if(w=C?$n(C):window,L=w.nodeName&&w.nodeName.toLowerCase(),L==="select"||L==="input"&&w.type==="file")var Ue=Wf;else if($f(w))if(If)Ue=cg;else{Ue=ig;var ae=ag}else L=w.nodeName,!L||L.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?C&&le(C.elementType)&&(Ue=Wf):Ue=ug;if(Ue&&(Ue=Ue(e,C))){Ff(G,Ue,l,j);break e}ae&&ae(e,w,C),e==="focusout"&&C&&w.type==="number"&&C.memoizedProps.value!=null&&xi(w,"number",w.value)}switch(ae=C?$n(C):window,e){case"focusin":($f(ae)||ae.contentEditable==="true")&&(La=ae,rs=C,wi=null);break;case"focusout":wi=rs=La=null;break;case"mousedown":fs=!0;break;case"contextmenu":case"mouseup":case"dragend":fs=!1,uo(G,l,j);break;case"selectionchange":if(rg)break;case"keydown":case"keyup":uo(G,l,j)}var be;if(is)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Ua?Kf(e,l)&&(_e="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(_e="onCompositionStart");_e&&(Qf&&l.locale!=="ko"&&(Ua||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Ua&&(be=Bf()):(gn=j,es="value"in gn?gn.value:gn.textContent,Ua=!0)),ae=Ac(C,_e),0<ae.length&&(_e=new Yf(_e,e,null,l,j),G.push({event:_e,listeners:ae}),be?_e.data=be:(be=Jf(l),be!==null&&(_e.data=be)))),(be=Pm?eg(e,l):tg(e,l))&&(_e=Ac(C,"onBeforeInput"),0<_e.length&&(ae=new Yf("onBeforeInput","beforeinput",null,l,j),G.push({event:ae,listeners:_e}),ae.data=be)),Vg(G,e,C,l,j)}wd(G,t)})}function au(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ac(e,t){for(var l=t+"Capture",n=[];e!==null;){var i=e,c=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||c===null||(i=_i(e,l),i!=null&&n.unshift(au(e,i,c)),i=_i(e,t),i!=null&&n.push(au(e,i,c))),e.tag===3)return n;e=e.return}return[]}function Fg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ld(e,t,l,n,i){for(var c=t._reactName,f=[];l!==null&&l!==n;){var h=l,T=h.alternate,C=h.stateNode;if(h=h.tag,T!==null&&T===n)break;h!==5&&h!==26&&h!==27||C===null||(T=C,i?(C=_i(l,c),C!=null&&f.unshift(au(l,C,T))):i||(C=_i(l,c),C!=null&&f.push(au(l,C,T)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var Wg=/\r\n?/g,Ig=/\u0000|\uFFFD/g;function Hd(e){return(typeof e=="string"?e:""+e).replace(Wg,`
|
|
49
|
+
`).replace(Ig,"")}function kd(e,t){return t=Hd(t),Hd(e)===t}function Ye(e,t,l,n,i,c){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||V(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&V(e,""+n);break;case"className":ql(e,"class",n);break;case"tabIndex":ql(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ql(e,l,n);break;case"style":Q(e,n,c);break;case"data":if(t!=="object"){ql(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=De(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&Ye(e,t,"name",i.name,i,null),Ye(e,t,"formEncType",i.formEncType,i,null),Ye(e,t,"formMethod",i.formMethod,i,null),Ye(e,t,"formTarget",i.formTarget,i,null)):(Ye(e,t,"encType",i.encType,i,null),Ye(e,t,"method",i.method,i,null),Ye(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=De(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Me);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(a(61));if(l=n.__html,l!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=De(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),mn(e,"popover",n);break;case"xlinkActuate":wt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":wt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":wt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":wt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":wt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":wt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":wt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":wt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":wt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":mn(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=ue.get(l)||l,mn(e,l,n))}}function Lr(e,t,l,n,i,c){switch(l){case"style":Q(e,n,c);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(a(61));if(l=n.__html,l!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"children":typeof n=="string"?V(e,n):(typeof n=="number"||typeof n=="bigint")&&V(e,""+n);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Me);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rl.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),c=e[Ct]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,i),typeof n=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,i);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):mn(e,l,n)}}}function zt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var n=!1,i=!1,c;for(c in l)if(l.hasOwnProperty(c)){var f=l[c];if(f!=null)switch(c){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Ye(e,t,c,f,l,null)}}i&&Ye(e,t,"srcSet",l.srcSet,l,null),n&&Ye(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var h=c=f=i=null,T=null,C=null;for(n in l)if(l.hasOwnProperty(n)){var j=l[n];if(j!=null)switch(n){case"name":i=j;break;case"type":f=j;break;case"checked":T=j;break;case"defaultChecked":C=j;break;case"value":c=j;break;case"defaultValue":h=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(a(137,t));break;default:Ye(e,t,n,j,l,null)}}Ru(e,c,h,T,C,f,i,!1);return;case"select":Ee("invalid",e),n=f=c=null;for(i in l)if(l.hasOwnProperty(i)&&(h=l[i],h!=null))switch(i){case"value":c=h;break;case"defaultValue":f=h;break;case"multiple":n=h;default:Ye(e,t,i,h,l,null)}t=c,l=f,e.multiple=!!n,t!=null?Gl(e,!!n,t,!1):l!=null&&Gl(e,!!n,l,!0);return;case"textarea":Ee("invalid",e),c=i=n=null;for(f in l)if(l.hasOwnProperty(f)&&(h=l[f],h!=null))switch(f){case"value":n=h;break;case"defaultValue":i=h;break;case"children":c=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:Ye(e,t,f,h,l,null)}wa(e,n,i,c);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(n=l[T],n!=null))switch(T){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Ye(e,t,T,n,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(n=0;n<nu.length;n++)Ee(nu[n],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in l)if(l.hasOwnProperty(C)&&(n=l[C],n!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Ye(e,t,C,n,l,null)}return;default:if(le(t)){for(j in l)l.hasOwnProperty(j)&&(n=l[j],n!==void 0&&Lr(e,t,j,n,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(n=l[h],n!=null&&Ye(e,t,h,n,l,null))}function Pg(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,c=null,f=null,h=null,T=null,C=null,j=null;for(L in l){var G=l[L];if(l.hasOwnProperty(L)&&G!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":T=G;default:n.hasOwnProperty(L)||Ye(e,t,L,null,n,G)}}for(var w in n){var L=n[w];if(G=l[w],n.hasOwnProperty(w)&&(L!=null||G!=null))switch(w){case"type":c=L;break;case"name":i=L;break;case"checked":C=L;break;case"defaultChecked":j=L;break;case"value":f=L;break;case"defaultValue":h=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(a(137,t));break;default:L!==G&&Ye(e,t,w,L,n,G)}}Ca(e,f,h,T,C,j,c,i);return;case"select":L=f=h=w=null;for(c in l)if(T=l[c],l.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":L=T;default:n.hasOwnProperty(c)||Ye(e,t,c,null,n,T)}for(i in n)if(c=n[i],T=l[i],n.hasOwnProperty(i)&&(c!=null||T!=null))switch(i){case"value":w=c;break;case"defaultValue":h=c;break;case"multiple":f=c;default:c!==T&&Ye(e,t,i,c,n,T)}t=h,l=f,n=L,w!=null?Gl(e,!!l,w,!1):!!n!=!!l&&(t!=null?Gl(e,!!l,t,!0):Gl(e,!!l,l?[]:"",!1));return;case"textarea":L=w=null;for(h in l)if(i=l[h],l.hasOwnProperty(h)&&i!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ye(e,t,h,null,n,i)}for(f in n)if(i=n[f],c=l[f],n.hasOwnProperty(f)&&(i!=null||c!=null))switch(f){case"value":w=i;break;case"defaultValue":L=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(a(91));break;default:i!==c&&Ye(e,t,f,i,n,c)}In(e,w,L);return;case"option":for(var ee in l)if(w=l[ee],l.hasOwnProperty(ee)&&w!=null&&!n.hasOwnProperty(ee))switch(ee){case"selected":e.selected=!1;break;default:Ye(e,t,ee,null,n,w)}for(T in n)if(w=n[T],L=l[T],n.hasOwnProperty(T)&&w!==L&&(w!=null||L!=null))switch(T){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ye(e,t,T,w,n,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var re in l)w=l[re],l.hasOwnProperty(re)&&w!=null&&!n.hasOwnProperty(re)&&Ye(e,t,re,null,n,w);for(C in n)if(w=n[C],L=l[C],n.hasOwnProperty(C)&&w!==L&&(w!=null||L!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(137,t));break;default:Ye(e,t,C,w,n,L)}return;default:if(le(t)){for(var Xe in l)w=l[Xe],l.hasOwnProperty(Xe)&&w!==void 0&&!n.hasOwnProperty(Xe)&&Lr(e,t,Xe,void 0,n,w);for(j in n)w=n[j],L=l[j],!n.hasOwnProperty(j)||w===L||w===void 0&&L===void 0||Lr(e,t,j,w,n,L);return}}for(var x in l)w=l[x],l.hasOwnProperty(x)&&w!=null&&!n.hasOwnProperty(x)&&Ye(e,t,x,null,n,w);for(G in n)w=n[G],L=l[G],!n.hasOwnProperty(G)||w===L||w==null&&L==null||Ye(e,t,G,w,n,L)}function jd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var i=l[n],c=i.transferSize,f=i.initiatorType,h=i.duration;if(c&&h&&jd(f)){for(f=0,h=i.responseEnd,n+=1;n<l.length;n++){var T=l[n],C=T.startTime;if(C>h)break;var j=T.transferSize,G=T.initiatorType;j&&jd(G)&&(T=T.responseEnd,f+=j*(T<h?1:(h-C)/(T-C)))}if(--n,t+=8*(c+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hr=null,kr=null;function xc(e){return e.nodeType===9?e:e.ownerDocument}function Bd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function jr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Br=null;function tb(){var e=window.event;return e&&e.type==="popstate"?e===Br?!1:(Br=e,!0):(Br=null,!1)}var Gd=typeof setTimeout=="function"?setTimeout:void 0,lb=typeof clearTimeout=="function"?clearTimeout:void 0,Yd=typeof Promise=="function"?Promise:void 0,nb=typeof queueMicrotask=="function"?queueMicrotask:typeof Yd<"u"?function(e){return Yd.resolve(null).then(e).catch(ab)}:Gd;function ab(e){setTimeout(function(){throw e})}function wn(e){return e==="head"}function Xd(e,t){var l=t,n=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(i),si(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")iu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,iu(l);for(var c=l.firstChild;c;){var f=c.nextSibling,h=c.nodeName;c[on]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=f}}else l==="body"&&iu(e.ownerDocument.body);l=i}while(l);si(t)}function Qd(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function qr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":qr(l),Da(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ib(e,t,l,n){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[on])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=dl(e.nextSibling),e===null)break}return null}function ub(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=dl(e.nextSibling),e===null))return null;return e}function Zd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dl(e.nextSibling),e===null))return null;return e}function Gr(e){return e.data==="$?"||e.data==="$~"}function Yr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function cb(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function dl(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Xr=null;function Vd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return dl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Kd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Jd(e,t,l){switch(t=xc(l),e){case"html":if(e=t.documentElement,!e)throw Error(a(452));return e;case"head":if(e=t.head,!e)throw Error(a(453));return e;case"body":if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function iu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Da(e)}var pl=new Map,$d=new Set;function _c(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var nn=J.d;J.d={f:sb,r:rb,D:fb,C:ob,L:hb,m:db,X:mb,S:pb,M:gb};function sb(){var e=nn.f(),t=gc();return e||t}function rb(e){var t=dn(e);t!==null&&t.tag===5&&t.type==="form"?hh(t):nn.r(e)}var ii=typeof document>"u"?null:document;function Fd(e,t,l){var n=ii;if(n&&typeof t=="string"&&t){var i=Yt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),$d.has(i)||($d.add(i),e={rel:e,crossOrigin:l,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),zt(t,"link",e),Ve(t),n.head.appendChild(t)))}}function fb(e){nn.D(e),Fd("dns-prefetch",e,null)}function ob(e,t){nn.C(e,t),Fd("preconnect",e,t)}function hb(e,t,l){nn.L(e,t,l);var n=ii;if(n&&e&&t){var i='link[rel="preload"][as="'+Yt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+Yt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+Yt(l.imageSizes)+'"]')):i+='[href="'+Yt(e)+'"]';var c=i;switch(t){case"style":c=ui(e);break;case"script":c=ci(e)}pl.has(c)||(e=_({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),pl.set(c,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(uu(c))||t==="script"&&n.querySelector(cu(c))||(t=n.createElement("link"),zt(t,"link",e),Ve(t),n.head.appendChild(t)))}}function db(e,t){nn.m(e,t);var l=ii;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Yt(n)+'"][href="'+Yt(e)+'"]',c=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ci(e)}if(!pl.has(c)&&(e=_({rel:"modulepreload",href:e},t),pl.set(c,e),l.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(cu(c)))return}n=l.createElement("link"),zt(n,"link",e),Ve(n),l.head.appendChild(n)}}}function pb(e,t,l){nn.S(e,t,l);var n=ii;if(n&&e){var i=pn(n).hoistableStyles,c=ui(e);t=t||"default";var f=i.get(c);if(!f){var h={loading:0,preload:null};if(f=n.querySelector(uu(c)))h.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},l),(l=pl.get(c))&&Qr(e,l);var T=f=n.createElement("link");Ve(T),zt(T,"link",e),T._p=new Promise(function(C,j){T.onload=C,T.onerror=j}),T.addEventListener("load",function(){h.loading|=1}),T.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Nc(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:h},i.set(c,f)}}}function mb(e,t){nn.X(e,t);var l=ii;if(l&&e){var n=pn(l).hoistableScripts,i=ci(e),c=n.get(i);c||(c=l.querySelector(cu(i)),c||(e=_({src:e,async:!0},t),(t=pl.get(i))&&Zr(e,t),c=l.createElement("script"),Ve(c),zt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(i,c))}}function gb(e,t){nn.M(e,t);var l=ii;if(l&&e){var n=pn(l).hoistableScripts,i=ci(e),c=n.get(i);c||(c=l.querySelector(cu(i)),c||(e=_({src:e,async:!0,type:"module"},t),(t=pl.get(i))&&Zr(e,t),c=l.createElement("script"),Ve(c),zt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(i,c))}}function Wd(e,t,l,n){var i=(i=pe.current)?_c(i):null;if(!i)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ui(l.href),l=pn(i).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ui(l.href);var c=pn(i).hoistableStyles,f=c.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=i.querySelector(uu(e)))&&!c._p&&(f.instance=c,f.state.loading=5),pl.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},pl.set(e,l),c||bb(i,e,l,f.state))),t&&n===null)throw Error(a(528,""));return f}if(t&&n!==null)throw Error(a(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ci(l),l=pn(i).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function ui(e){return'href="'+Yt(e)+'"'}function uu(e){return'link[rel="stylesheet"]['+e+"]"}function Id(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function bb(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),zt(t,"link",l),Ve(t),e.head.appendChild(t))}function ci(e){return'[src="'+Yt(e)+'"]'}function cu(e){return"script[async]"+e}function Pd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Yt(l.href)+'"]');if(n)return t.instance=n,Ve(n),n;var i=_({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ve(n),zt(n,"style",i),Nc(n,l.precedence,e),t.instance=n;case"stylesheet":i=ui(l.href);var c=e.querySelector(uu(i));if(c)return t.state.loading|=4,t.instance=c,Ve(c),c;n=Id(l),(i=pl.get(i))&&Qr(n,i),c=(e.ownerDocument||e).createElement("link"),Ve(c);var f=c;return f._p=new Promise(function(h,T){f.onload=h,f.onerror=T}),zt(c,"link",n),t.state.loading|=4,Nc(c,l.precedence,e),t.instance=c;case"script":return c=ci(l.src),(i=e.querySelector(cu(c)))?(t.instance=i,Ve(i),i):(n=l,(i=pl.get(c))&&(n=_({},l),Zr(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),Ve(i),zt(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(a(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Nc(n,l.precedence,e));return t.instance}function Nc(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,c=i,f=0;f<n.length;f++){var h=n[f];if(h.dataset.precedence===t)c=h;else if(c!==i)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Qr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var zc=null;function ep(e,t,l){if(zc===null){var n=new Map,i=zc=new Map;i.set(l,n)}else i=zc,n=i.get(l),n||(n=new Map,i.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var c=l[i];if(!(c[on]||c[pt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var h=n.get(f);h?h.push(c):n.set(f,[c])}}return n}function tp(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function yb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function vb(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=ui(n.href),c=t.querySelector(uu(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Oc.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,Ve(c);return}c=t.ownerDocument||t,n=Id(n),(i=pl.get(i))&&Qr(n,i),c=c.createElement("link"),Ve(c);var f=c;f._p=new Promise(function(h,T){f.onload=h,f.onerror=T}),zt(c,"link",n),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Oc.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Vr=0;function Sb(e,t){return e.stylesheets&&e.count===0&&Dc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Dc(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Vr===0&&(Vr=62500*eb());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Dc(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Vr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function Oc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Dc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rc=null;function Dc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rc=new Map,t.forEach(Tb,e),Rc=null,Oc.call(e))}function Tb(e,t){if(!(t.state.loading&4)){var l=Rc.get(e);if(l)var n=l.get(null);else{l=new Map,Rc.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var f=i[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),n=f)}n&&l.set(null,n)}i=t.instance,f=i.getAttribute("data-precedence"),c=l.get(f)||n,c===n&&l.set(null,i),l.set(f,i),this.count++,n=Oc.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),c?c.parentNode.insertBefore(i,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var su={$$typeof:X,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function Eb(e,t,l,n,i,c,f,h,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qt(0),this.hiddenUpdates=qt(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function np(e,t,l,n,i,c,f,h,T,C,j,G){return e=new Eb(e,t,l,f,T,C,j,G,h),t=1,c===!0&&(t|=24),c=Wt(3,null,null,t),e.current=c,c.stateNode=e,t=_s(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:n,isDehydrated:l,cache:t},Rs(c),e}function ap(e){return e?(e=ja,e):ja}function ip(e,t,l,n,i,c){i=ap(i),n.context===null?n.context=i:n.pendingContext=i,n=En(t),n.payload={element:l},c=c===void 0?null:c,c!==null&&(n.callback=c),l=An(e,n,t),l!==null&&(Jt(l,e,t),qi(l,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Kr(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=la(e,67108864);t!==null&&Jt(t,e,67108864),Kr(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=ll();t=Jn(t);var l=la(e,t);l!==null&&Jt(l,e,t),Kr(e,t)}}var Mc=!0;function Ab(e,t,l,n){var i=H.T;H.T=null;var c=J.p;try{J.p=2,Jr(e,t,l,n)}finally{J.p=c,H.T=i}}function xb(e,t,l,n){var i=H.T;H.T=null;var c=J.p;try{J.p=8,Jr(e,t,l,n)}finally{J.p=c,H.T=i}}function Jr(e,t,l,n){if(Mc){var i=$r(n);if(i===null)Ur(e,t,n,Cc,l),fp(e,n);else if(Nb(i,e,t,l,n))n.stopPropagation();else if(fp(e,n),t&4&&-1<_b.indexOf(e)){for(;i!==null;){var c=dn(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=zl(c.pendingLanes);if(f!==0){var h=c;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var T=1<<31-Mt(f);h.entanglements[1]|=T,f&=~T}Ul(c),(He&6)===0&&(pc=et()+500,lu(0))}}break;case 31:case 13:h=la(c,2),h!==null&&Jt(h,c,2),gc(),Kr(c,2)}if(c=$r(n),c===null&&Ur(e,t,n,Cc,l),c===i)break;i=c}i!==null&&n.stopPropagation()}else Ur(e,t,n,null,l)}}function $r(e){return e=vt(e),Fr(e)}var Cc=null;function Fr(e){if(Cc=null,e=hn(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=g(t),e!==null)return e;e=null}else if(l===31){if(e=v(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cc=e,null}function rp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xl()){case _l:return 2;case Sa:return 8;case jl:case Ta:return 32;case Ea:return 268435456;default:return 32}default:return 32}}var Wr=!1,Un=null,Ln=null,Hn=null,ru=new Map,fu=new Map,kn=[],_b="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function fp(e,t){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Ln=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":ru.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fu.delete(t.pointerId)}}function ou(e,t,l,n,i,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:c,targetContainers:[i]},t!==null&&(t=dn(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Nb(e,t,l,n,i){switch(t){case"focusin":return Un=ou(Un,e,t,l,n,i),!0;case"dragenter":return Ln=ou(Ln,e,t,l,n,i),!0;case"mouseover":return Hn=ou(Hn,e,t,l,n,i),!0;case"pointerover":var c=i.pointerId;return ru.set(c,ou(ru.get(c)||null,e,t,l,n,i)),!0;case"gotpointercapture":return c=i.pointerId,fu.set(c,ou(fu.get(c)||null,e,t,l,n,i)),!0}return!1}function op(e){var t=hn(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=g(l),t!==null){e.blockedOn=t,Nu(e.priority,function(){sp(l)});return}}else if(t===31){if(t=v(l),t!==null){e.blockedOn=t,Nu(e.priority,function(){sp(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=$r(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);yt=n,l.target.dispatchEvent(n),yt=null}else return t=dn(l),t!==null&&cp(t),e.blockedOn=l,!1;t.shift()}return!0}function hp(e,t,l){wc(e)&&l.delete(t)}function zb(){Wr=!1,Un!==null&&wc(Un)&&(Un=null),Ln!==null&&wc(Ln)&&(Ln=null),Hn!==null&&wc(Hn)&&(Hn=null),ru.forEach(hp),fu.forEach(hp)}function Uc(e,t){e.blockedOn===t&&(e.blockedOn=null,Wr||(Wr=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,zb)))}var Lc=null;function dp(e){Lc!==e&&(Lc=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Lc===e&&(Lc=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(Fr(n||l)===null)continue;break}var c=dn(l);c!==null&&(e.splice(t,3),t-=3,$s(c,{pending:!0,data:i,method:l.method,action:n},n,i))}}))}function si(e){function t(T){return Uc(T,e)}Un!==null&&Uc(Un,e),Ln!==null&&Uc(Ln,e),Hn!==null&&Uc(Hn,e),ru.forEach(t),fu.forEach(t);for(var l=0;l<kn.length;l++){var n=kn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<kn.length&&(l=kn[0],l.blockedOn===null);)op(l),l.blockedOn===null&&kn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var i=l[n],c=l[n+1],f=i[Ct]||null;if(typeof c=="function")f||dp(l);else if(f){var h=null;if(c&&c.hasAttribute("formAction")){if(i=c,f=c[Ct]||null)h=f.formAction;else if(Fr(i)!==null)continue}else h=f.action;typeof h=="function"?l[n+1]=h:(l.splice(n,3),n-=3),dp(l)}}}function pp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Ir(e){this._internalRoot=e}Hc.prototype.render=Ir.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var l=t.current,n=ll();ip(l,n,e,t,null,null)},Hc.prototype.unmount=Ir.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),gc(),t[ke]=null}};function Hc(e){this._internalRoot=e}Hc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oa();e={blockedOn:null,target:e,priority:t};for(var l=0;l<kn.length&&t!==0&&t<kn[l].priority;l++);kn.splice(l,0,e),l===0&&op(e)}};var mp=u.version;if(mp!=="19.2.8")throw Error(a(527,mp,"19.2.8"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Ob={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kc.isDisabled&&kc.supportsFiber)try{Nl=kc.inject(Ob),Dt=kc}catch{}}return du.createRoot=function(e,t){if(!o(e))throw Error(a(299));var l=!1,n="",i=Eh,c=Ah,f=xh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=np(e,1,!1,null,null,l,n,null,i,c,f,pp),e[ke]=t.current,wr(e),new Ir(t)},du.hydrateRoot=function(e,t,l){if(!o(e))throw Error(a(299));var n=!1,i="",c=Eh,f=Ah,h=xh,T=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=np(e,1,!0,t,l??null,n,i,T,c,f,h,pp),t.context=ap(null),l=t.current,n=ll(),n=Jn(n),i=En(n),i.callback=null,An(l,i,n),l=n,t.current.lanes=l,il(t,l),Ul(t),e[ke]=t.current,wr(e),new Hc(t)},du.version="19.2.8",du}var _p;function Gb(){if(_p)return tf.exports;_p=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(u){console.error(u)}}return r(),tf.exports=qb(),tf.exports}var Yb=Gb(),ot;(function(r){r.INSERT="insert",r.DELETE="delete",r.CONTEXT="context"})(ot||(ot={}));const Xb={LINE_BY_LINE:"line-by-line"},Qb={NONE:"none"},Zb={WORD:"word"};var di;(function(r){r.AUTO="auto",r.DARK="dark",r.LIGHT="light"})(di||(di={}));const Vb=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],Kb=RegExp("["+Vb.join("\\")+"]","g");function Jb(r){return r.replace(Kb,"\\$&")}function Np(r){return r&&r.replace(/\\/g,"/")}function $b(r){let u,s,a,o=0;for(u=0,a=r.length;u<a;u++)s=r.charCodeAt(u),o=(o<<5)-o+s,o|=0;return o}function sm(r){const u=r.length;let s=-1/0;for(let a=0;a<u;a++)s=Math.max(s,r[a]);return s}function zp(r,u){const s=r.split(".");return s.length>1?s[s.length-1]:u}function Op(r,u){return u.reduce((s,a)=>s||r.startsWith(a),!1)}const Rp=["a/","b/","i/","w/","c/","o/"];function Gn(r,u,s){const a=s!==void 0?[...Rp,s]:Rp,o=u?new RegExp(`^${Jb(u)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,m=""]=o.exec(r)||[],g=a.find(d=>m.indexOf(d)===0);return(g?m.slice(g.length):m).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function Fb(r,u){return Gn(r,"---",u)}function Wb(r,u){return Gn(r,"+++",u)}function Ib(r,u={}){const s=[];let a=null,o=null,m=null,g=null,v=null,d=null,p=null;const S="--- ",_="+++ ",N="@@",D=/^old mode (\d{6})/,A=/^new mode (\d{6})/,Y=/^deleted file mode (\d{6})/,B=/^new file mode (\d{6})/,K=/^copy from "?(.+)"?/,P=/^copy to "?(.+)"?/,X=/^rename from "?(.+)"?/,W=/^rename to "?(.+)"?/,I=/^similarity index (\d+)%/,ce=/^dissimilarity index (\d+)%/,ie=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,k=/^Binary files (.*) and (.*) differ/,Z=/^GIT binary patch/,$=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,ne=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,ve=/^new file mode (\d{6})/,Ze=/^deleted file mode (\d{6}),(\d{6})/,Je=r.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
|
+
`).split(`
|
|
51
|
+
`);function ge(){o!==null&&a!==null&&(a.blocks.push(o),o=null)}function H(){a!==null&&(!a.oldName&&d!==null&&(a.oldName=d),!a.newName&&p!==null&&(a.newName=p),a.newName&&(s.push(a),a=null)),d=null,p=null}function J(){ge(),H(),a={blocks:[],deletedLines:0,addedLines:0}}function te(y){ge();let O;a!==null&&((O=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(y))?(a.isCombined=!1,m=parseInt(O[1],10),v=parseInt(O[2],10)):(O=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(y))?(a.isCombined=!0,m=parseInt(O[1],10),g=parseInt(O[2],10),v=parseInt(O[3],10)):(y.startsWith(N)&&console.error("Failed to parse lines, starting in 0!"),m=0,v=0,a.isCombined=!1)),o={lines:[],oldStartLine:m,oldStartLine2:g,newStartLine:v,header:y}}function oe(y){if(a===null||o===null||m===null||v===null)return;const O={content:y},U=a.isCombined?["+ "," +","++"]:["+"],F=a.isCombined?["- "," -","--"]:["-"];Op(y,U)?(a.addedLines++,O.type=ot.INSERT,O.oldNumber=void 0,O.newNumber=v++):Op(y,F)?(a.deletedLines++,O.type=ot.DELETE,O.oldNumber=m++,O.newNumber=void 0):(O.type=ot.CONTEXT,O.oldNumber=m++,O.newNumber=v++),o.lines.push(O)}function Se(y,O){let U=O;for(;U<Je.length-3;){if(y.startsWith("diff"))return!1;if(Je[U].startsWith(S)&&Je[U+1].startsWith(_)&&Je[U+2].startsWith(N))return!0;U++}return!1}return Je.forEach((y,O)=>{if(!y||y.startsWith("*"))return;let U;const F=Je[O-1],fe=Je[O+1],pe=Je[O+2];if(y.startsWith("diff --git")||y.startsWith("diff --combined")){if(J(),(U=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(y))&&(d=Gn(U[1],void 0,u.dstPrefix),p=Gn(U[2],void 0,u.srcPrefix)),a===null)throw new Error("Where is my file !!!");a.isGitDiff=!0;return}if(y.startsWith("Binary files")&&!(a!=null&&a.isGitDiff)){if(J(),(U=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(y))&&(d=Gn(U[1],void 0,u.dstPrefix),p=Gn(U[2],void 0,u.srcPrefix)),a===null)throw new Error("Where is my file !!!");a.isBinary=!0;return}if((!a||!a.isGitDiff&&a&&y.startsWith(S)&&fe.startsWith(_)&&pe.startsWith(N))&&J(),a!=null&&a.isTooBig)return;if(a&&(typeof u.diffMaxChanges=="number"&&a.addedLines+a.deletedLines>u.diffMaxChanges||typeof u.diffMaxLineLength=="number"&&y.length>u.diffMaxLineLength)){a.isTooBig=!0,a.addedLines=0,a.deletedLines=0,a.blocks=[],o=null;const Pe=typeof u.diffTooBigMessage=="function"?u.diffTooBigMessage(s.length):"Diff too big to be displayed";te(Pe);return}if(y.startsWith(S)&&fe.startsWith(_)||y.startsWith(_)&&F.startsWith(S)){if(a&&!a.oldName&&y.startsWith("--- ")&&(U=Fb(y,u.srcPrefix))){a.oldName=U,a.language=zp(a.oldName,a.language);return}if(a&&!a.newName&&y.startsWith("+++ ")&&(U=Wb(y,u.dstPrefix))){a.newName=U,a.language=zp(a.newName,a.language);return}}if(a&&(y.startsWith(N)||a.isGitDiff&&a.oldName&&a.newName&&!o)){te(y);return}if(o&&(y.startsWith("+")||y.startsWith("-")||y.startsWith(" "))){oe(y);return}const ye=!Se(y,O);if(a===null)throw new Error("Where is my file !!!");(U=D.exec(y))?a.oldMode=U[1]:(U=A.exec(y))?a.newMode=U[1]:(U=Y.exec(y))?(a.deletedFileMode=U[1],a.isDeleted=!0):(U=B.exec(y))?(a.newFileMode=U[1],a.isNew=!0):(U=K.exec(y))?(ye&&(a.oldName=U[1]),a.isCopy=!0):(U=P.exec(y))?(ye&&(a.newName=U[1]),a.isCopy=!0):(U=X.exec(y))?(ye&&(a.oldName=U[1]),a.isRename=!0):(U=W.exec(y))?(ye&&(a.newName=U[1]),a.isRename=!0):(U=k.exec(y))?(a.isBinary=!0,a.oldName=Gn(U[1],void 0,u.srcPrefix),a.newName=Gn(U[2],void 0,u.dstPrefix),te("Binary file")):Z.test(y)?(a.isBinary=!0,te(y)):(U=I.exec(y))?a.unchangedPercentage=parseInt(U[1],10):(U=ce.exec(y))?a.changedPercentage=parseInt(U[1],10):(U=ie.exec(y))?(a.checksumBefore=U[1],a.checksumAfter=U[2],U[3]&&(a.mode=U[3])):(U=$.exec(y))?(a.checksumBefore=[U[2],U[3]],a.checksumAfter=U[1]):(U=ne.exec(y))?(a.oldMode=[U[2],U[3]],a.newMode=U[1]):(U=ve.exec(y))?(a.newFileMode=U[1],a.isNew=!0):(U=Ze.exec(y))&&(a.deletedFileMode=U[1],a.isDeleted=!0)}),ge(),H(),s}class rm{diff(u,s,a={}){let o;typeof a=="function"?(o=a,a={}):"callback"in a&&(o=a.callback);const m=this.castInput(u,a),g=this.castInput(s,a),v=this.removeEmpty(this.tokenize(m,a)),d=this.removeEmpty(this.tokenize(g,a));return this.diffWithOptionsObj(v,d,a,o)}diffWithOptionsObj(u,s,a,o){var m;const g=P=>{if(P=this.postProcess(P,a),o){setTimeout(function(){o(P)},0);return}else return P},v=s.length,d=u.length;let p=1,S=v+d;a.maxEditLength!=null&&(S=Math.min(S,a.maxEditLength));const _=(m=a.timeout)!==null&&m!==void 0?m:1/0,N=Date.now()+_,D=[{oldPos:-1,lastComponent:void 0}];let A=this.extractCommon(D[0],s,u,0,a);if(D[0].oldPos+1>=d&&A+1>=v)return g(this.buildValues(D[0].lastComponent,s,u));let Y=-1/0,B=1/0;const K=()=>{for(let P=Math.max(Y,-p);P<=Math.min(B,p);P+=2){let X;const W=D[P-1],I=D[P+1];W&&(D[P-1]=void 0);let ce=!1;if(I){const k=I.oldPos-P;ce=I&&0<=k&&k<v}const ie=W&&W.oldPos+1<d;if(!ce&&!ie){D[P]=void 0;continue}if(!ie||ce&&W.oldPos<I.oldPos?X=this.addToPath(I,!0,!1,0,a):X=this.addToPath(W,!1,!0,1,a),A=this.extractCommon(X,s,u,P,a),X.oldPos+1>=d&&A+1>=v)return g(this.buildValues(X.lastComponent,s,u))||!0;D[P]=X,X.oldPos+1>=d&&(B=Math.min(B,P-1)),A+1>=v&&(Y=Math.max(Y,P+1))}p++};if(o)(function P(){setTimeout(function(){if(p>S||Date.now()>N)return o(void 0);K()||P()},0)})();else for(;p<=S&&Date.now()<=N;){const P=K();if(P)return P}}addToPath(u,s,a,o,m){const g=u.lastComponent;return g&&!m.oneChangePerToken&&g.added===s&&g.removed===a?{oldPos:u.oldPos+o,lastComponent:{count:g.count+1,added:s,removed:a,previousComponent:g.previousComponent}}:{oldPos:u.oldPos+o,lastComponent:{count:1,added:s,removed:a,previousComponent:g}}}extractCommon(u,s,a,o,m){const g=s.length,v=a.length;let d=u.oldPos,p=d-o,S=0;for(;p+1<g&&d+1<v&&this.equals(a[d+1],s[p+1],m);)p++,d++,S++,m.oneChangePerToken&&(u.lastComponent={count:1,previousComponent:u.lastComponent,added:!1,removed:!1});return S&&!m.oneChangePerToken&&(u.lastComponent={count:S,previousComponent:u.lastComponent,added:!1,removed:!1}),u.oldPos=d,p}equals(u,s,a){return a.comparator?a.comparator(u,s):u===s||!!a.ignoreCase&&u.toLowerCase()===s.toLowerCase()}removeEmpty(u){const s=[];for(let a=0;a<u.length;a++)u[a]&&s.push(u[a]);return s}castInput(u,s){return u}tokenize(u,s){return Array.from(u)}join(u){return u.join("")}postProcess(u,s){return u}get useLongestToken(){return!1}buildValues(u,s,a){const o=[];let m;for(;u;)o.push(u),m=u.previousComponent,delete u.previousComponent,u=m;o.reverse();const g=o.length;let v=0,d=0,p=0;for(;v<g;v++){const S=o[v];if(S.removed)S.value=this.join(a.slice(p,p+S.count)),p+=S.count;else{if(!S.added&&this.useLongestToken){let _=s.slice(d,d+S.count);_=_.map(function(N,D){const A=a[p+D];return A.length>N.length?A:N}),S.value=this.join(_)}else S.value=this.join(s.slice(d,d+S.count));d+=S.count,S.added||(p+=S.count)}}return o}}class Pb extends rm{}const e0=new Pb;function t0(r,u,s){return e0.diff(r,u,s)}const Dp="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class l0 extends rm{tokenize(u){const s=new RegExp(`(\\r?\\n)|[${Dp}]+|[^\\S\\n\\r]+|[^${Dp}]`,"ug");return u.match(s)||[]}}const n0=new l0;function a0(r,u,s){return n0.diff(r,u,s)}function i0(r,u){if(r.length===0)return u.length;if(u.length===0)return r.length;const s=[];let a;for(a=0;a<=u.length;a++)s[a]=[a];let o;for(o=0;o<=r.length;o++)s[0][o]=o;for(a=1;a<=u.length;a++)for(o=1;o<=r.length;o++)u.charAt(a-1)===r.charAt(o-1)?s[a][o]=s[a-1][o-1]:s[a][o]=Math.min(s[a-1][o-1]+1,Math.min(s[a][o-1]+1,s[a-1][o]+1));return s[u.length][r.length]}function Af(r){return(u,s)=>{const a=r(u).trim(),o=r(s).trim();return i0(a,o)/(a.length+o.length)}}function xf(r){function u(a,o,m=new Map){let g=1/0,v;for(let d=0;d<a.length;++d)for(let p=0;p<o.length;++p){const S=JSON.stringify([a[d],o[p]]);let _;m.has(S)&&(_=m.get(S))||(_=r(a[d],o[p]),m.set(S,_)),_<g&&(g=_,v={indexA:d,indexB:p,score:g})}return v}function s(a,o,m=0,g=new Map){const v=u(a,o,g);if(!v||a.length+o.length<3)return[[a,o]];const d=a.slice(0,v.indexA),p=o.slice(0,v.indexB),S=[a[v.indexA]],_=[o[v.indexB]],N=v.indexA+1,D=v.indexB+1,A=a.slice(N),Y=o.slice(D),B=s(d,p,m+1,g),K=s(S,_,m+1,g),P=s(A,Y,m+1,g);let X=K;return(v.indexA>0||v.indexB>0)&&(X=B.concat(X)),(a.length>N||o.length>D)&&(X=X.concat(P)),X}return s}const Bt={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},Vc={matching:Qb.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:Zb.WORD,colorScheme:di.LIGHT},Ll="/",fm=Af(r=>r.value),u0=xf(fm);function uf(r){return r.indexOf("dev/null")!==-1}function c0(r){return r.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function s0(r){return r.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function Gc(r){switch(r){case ot.CONTEXT:return Bt.CONTEXT;case ot.INSERT:return Bt.INSERTS;case ot.DELETE:return Bt.DELETES}}function _f(r){switch(r){case di.DARK:return"d2h-dark-color-scheme";case di.AUTO:return"d2h-auto-color-scheme";case di.LIGHT:default:return"d2h-light-color-scheme"}}function r0(r){return r?2:1}function pi(r){return r.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function kl(r,u,s=!0){const a=r0(u);return{prefix:r.substring(0,a),content:s?pi(r.substring(a)):r.substring(a)}}function Kc(r){const u=Np(r.oldName),s=Np(r.newName);if(u!==s&&!uf(u)&&!uf(s)){const a=[],o=[],m=u.split(Ll),g=s.split(Ll),v=m.length,d=g.length;let p=0,S=v-1,_=d-1;for(;p<S&&p<_&&m[p]===g[p];)a.push(g[p]),p+=1;for(;S>p&&_>p&&m[S]===g[_];)o.unshift(g[_]),S-=1,_-=1;const N=a.join(Ll),D=o.join(Ll),A=m.slice(p,S+1).join(Ll),Y=g.slice(p,_+1).join(Ll);return N.length&&D.length?N+Ll+"{"+A+" → "+Y+"}"+Ll+D:N.length?N+Ll+"{"+A+" → "+Y+"}":D.length?"{"+A+" → "+Y+"}"+Ll+D:u+" → "+s}else return uf(s)?u:s}function Nf(r){return`d2h-${$b(Kc(r)).toString().slice(-6)}`}function zf(r){let u="file-changed";return r.isRename||r.isCopy?u="file-renamed":r.isNew?u="file-added":r.isDeleted?u="file-deleted":r.newName!==r.oldName&&(u="file-renamed"),u}function om(r,u,s,a={}){const{matching:o,maxLineLengthHighlight:m,matchWordsThreshold:g,diffStyle:v}=Object.assign(Object.assign({},Vc),a),d=kl(r,s,!1),p=kl(u,s,!1);if(d.content.length>m||p.content.length>m)return{oldLine:{prefix:d.prefix,content:pi(d.content)},newLine:{prefix:p.prefix,content:pi(p.content)}};const S=v==="char"?t0(d.content,p.content):a0(d.content,p.content),_=[];if(v==="word"&&o==="words"){const D=S.filter(B=>B.removed),A=S.filter(B=>B.added);u0(A,D).forEach(B=>{B[0].length===1&&B[1].length===1&&fm(B[0][0],B[1][0])<g&&(_.push(B[0][0]),_.push(B[1][0]))})}const N=S.reduce((D,A)=>{const Y=A.added?"ins":A.removed?"del":null,B=_.indexOf(A)>-1?' class="d2h-change"':"",K=pi(A.value);return Y!==null?`${D}<${Y}${B}>${K}</${Y}>`:`${D}${K}`},"");return{oldLine:{prefix:d.prefix,content:c0(N)},newLine:{prefix:p.prefix,content:s0(N)}}}const Mp="file-summary",f0="icon",o0={colorScheme:Vc.colorScheme};class h0{constructor(u,s={}){this.hoganUtils=u,this.config=Object.assign(Object.assign({},o0),s)}render(u){const s=u.map(a=>this.hoganUtils.render(Mp,"line",{fileHtmlId:Nf(a),oldName:a.oldName,newName:a.newName,fileName:Kc(a),deletedLines:"-"+a.deletedLines,addedLines:"+"+a.addedLines},{fileIcon:this.hoganUtils.template(f0,zf(a))})).join(`
|
|
52
|
+
`);return this.hoganUtils.render(Mp,"wrapper",{colorScheme:_f(this.config.colorScheme),filesNumber:u.length,files:s})}}const hm=Object.assign(Object.assign({},Vc),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),pu="generic",Cp="line-by-line",d0="icon",p0="tag";class m0{constructor(u,s={}){this.hoganUtils=u,this.config=Object.assign(Object.assign({},hm),s)}render(u){const s=u.map(a=>{let o;return a.blocks.length?o=this.generateFileHtml(a):o=this.generateEmptyDiff(),this.makeFileDiffHtml(a,o)}).join(`
|
|
53
|
+
`);return this.hoganUtils.render(pu,"wrapper",{colorScheme:_f(this.config.colorScheme),content:s})}makeFileDiffHtml(u,s){if(this.config.renderNothingWhenEmpty&&Array.isArray(u.blocks)&&u.blocks.length===0)return"";const a=this.hoganUtils.template(Cp,"file-diff"),o=this.hoganUtils.template(pu,"file-path"),m=this.hoganUtils.template(d0,"file"),g=this.hoganUtils.template(p0,zf(u));return a.render({file:u,fileHtmlId:Nf(u),diffs:s,filePath:o.render({fileDiffName:Kc(u)},{fileIcon:m,fileTag:g})})}generateEmptyDiff(){return this.hoganUtils.render(pu,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Bt})}generateFileHtml(u){const s=xf(Af(a=>kl(a.content,u.isCombined).content));return u.blocks.map(a=>{let o=this.hoganUtils.render(pu,"block-header",{CSSLineClass:Bt,blockHeader:u.isTooBig?a.header:pi(a.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(a).forEach(([m,g,v])=>{if(g.length&&v.length&&!m.length)this.applyRematchMatching(g,v,s).map(([d,p])=>{const{left:S,right:_}=this.processChangedLines(u,u.isCombined,d,p);o+=S,o+=_});else if(m.length)m.forEach(d=>{const{prefix:p,content:S}=kl(d.content,u.isCombined);o+=this.generateSingleLineHtml(u,{type:Bt.CONTEXT,prefix:p,content:S,oldNumber:d.oldNumber,newNumber:d.newNumber})});else if(g.length||v.length){const{left:d,right:p}=this.processChangedLines(u,u.isCombined,g,v);o+=d,o+=p}else console.error("Unknown state reached while processing groups of lines",m,g,v)}),o}).join(`
|
|
54
|
+
`)}applyLineGroupping(u){const s=[];let a=[],o=[];for(let m=0;m<u.lines.length;m++){const g=u.lines[m];(g.type!==ot.INSERT&&o.length||g.type===ot.CONTEXT&&a.length>0)&&(s.push([[],a,o]),a=[],o=[]),g.type===ot.CONTEXT?s.push([[g],[],[]]):g.type===ot.INSERT&&a.length===0?s.push([[],[],[g]]):g.type===ot.INSERT&&a.length>0?o.push(g):g.type===ot.DELETE&&a.push(g)}return(a.length||o.length)&&(s.push([[],a,o]),a=[],o=[]),s}applyRematchMatching(u,s,a){const o=u.length*s.length,m=sm(u.concat(s).map(v=>v.content.length));return o<this.config.matchingMaxComparisons&&m<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?a(u,s):[[u,s]]}processChangedLines(u,s,a,o){const m={right:"",left:""},g=Math.max(a.length,o.length);for(let v=0;v<g;v++){const d=a[v],p=o[v],S=d!==void 0&&p!==void 0?om(d.content,p.content,s,this.config):void 0,_=d!==void 0&&d.oldNumber!==void 0?Object.assign(Object.assign({},S!==void 0?{prefix:S.oldLine.prefix,content:S.oldLine.content,type:Bt.DELETE_CHANGES}:Object.assign(Object.assign({},kl(d.content,s)),{type:Gc(d.type)})),{oldNumber:d.oldNumber,newNumber:d.newNumber}):void 0,N=p!==void 0&&p.newNumber!==void 0?Object.assign(Object.assign({},S!==void 0?{prefix:S.newLine.prefix,content:S.newLine.content,type:Bt.INSERT_CHANGES}:Object.assign(Object.assign({},kl(p.content,s)),{type:Gc(p.type)})),{oldNumber:p.oldNumber,newNumber:p.newNumber}):void 0,{left:D,right:A}=this.generateLineHtml(u,_,N);m.left+=D,m.right+=A}return m}generateLineHtml(u,s,a){return{left:this.generateSingleLineHtml(u,s),right:this.generateSingleLineHtml(u,a)}}generateSingleLineHtml(u,s){if(s===void 0)return"";const a=this.hoganUtils.render(Cp,"numbers",{oldNumber:s.oldNumber||"",newNumber:s.newNumber||""});return this.hoganUtils.render(pu,"line",{type:s.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:s.prefix===" "?" ":s.prefix,content:s.content,lineNumber:a,line:s,file:u})}}const dm=Object.assign(Object.assign({},Vc),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),mu="generic",g0="side-by-side",b0="icon",y0="tag";class v0{constructor(u,s={}){this.hoganUtils=u,this.config=Object.assign(Object.assign({},dm),s)}render(u){const s=u.map(a=>{let o;return a.blocks.length?o=this.generateFileHtml(a):o=this.generateEmptyDiff(),this.makeFileDiffHtml(a,o)}).join(`
|
|
55
|
+
`);return this.hoganUtils.render(mu,"wrapper",{colorScheme:_f(this.config.colorScheme),content:s})}makeFileDiffHtml(u,s){if(this.config.renderNothingWhenEmpty&&Array.isArray(u.blocks)&&u.blocks.length===0)return"";const a=this.hoganUtils.template(g0,"file-diff"),o=this.hoganUtils.template(mu,"file-path"),m=this.hoganUtils.template(b0,"file"),g=this.hoganUtils.template(y0,zf(u));return a.render({file:u,fileHtmlId:Nf(u),diffs:s,filePath:o.render({fileDiffName:Kc(u)},{fileIcon:m,fileTag:g})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(mu,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Bt})}}generateFileHtml(u){const s=xf(Af(a=>kl(a.content,u.isCombined).content));return u.blocks.map(a=>{const o={left:this.makeHeaderHtml(a.header,u),right:this.makeHeaderHtml("")};return this.applyLineGroupping(a).forEach(([m,g,v])=>{if(g.length&&v.length&&!m.length)this.applyRematchMatching(g,v,s).map(([d,p])=>{const{left:S,right:_}=this.processChangedLines(u.isCombined,d,p);o.left+=S,o.right+=_});else if(m.length)m.forEach(d=>{const{prefix:p,content:S}=kl(d.content,u.isCombined),{left:_,right:N}=this.generateLineHtml({type:Bt.CONTEXT,prefix:p,content:S,number:d.oldNumber},{type:Bt.CONTEXT,prefix:p,content:S,number:d.newNumber});o.left+=_,o.right+=N});else if(g.length||v.length){const{left:d,right:p}=this.processChangedLines(u.isCombined,g,v);o.left+=d,o.right+=p}else console.error("Unknown state reached while processing groups of lines",m,g,v)}),o}).reduce((a,o)=>({left:a.left+o.left,right:a.right+o.right}),{left:"",right:""})}applyLineGroupping(u){const s=[];let a=[],o=[];for(let m=0;m<u.lines.length;m++){const g=u.lines[m];(g.type!==ot.INSERT&&o.length||g.type===ot.CONTEXT&&a.length>0)&&(s.push([[],a,o]),a=[],o=[]),g.type===ot.CONTEXT?s.push([[g],[],[]]):g.type===ot.INSERT&&a.length===0?s.push([[],[],[g]]):g.type===ot.INSERT&&a.length>0?o.push(g):g.type===ot.DELETE&&a.push(g)}return(a.length||o.length)&&(s.push([[],a,o]),a=[],o=[]),s}applyRematchMatching(u,s,a){const o=u.length*s.length,m=sm(u.concat(s).map(v=>v.content.length));return o<this.config.matchingMaxComparisons&&m<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?a(u,s):[[u,s]]}makeHeaderHtml(u,s){return this.hoganUtils.render(mu,"block-header",{CSSLineClass:Bt,blockHeader:s!=null&&s.isTooBig?u:pi(u),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(u,s,a){const o={right:"",left:""},m=Math.max(s.length,a.length);for(let g=0;g<m;g++){const v=s[g],d=a[g],p=v!==void 0&&d!==void 0?om(v.content,d.content,u,this.config):void 0,S=v!==void 0&&v.oldNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.oldLine.prefix,content:p.oldLine.content,type:Bt.DELETE_CHANGES}:Object.assign(Object.assign({},kl(v.content,u)),{type:Gc(v.type)})),{number:v.oldNumber}):void 0,_=d!==void 0&&d.newNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.newLine.prefix,content:p.newLine.content,type:Bt.INSERT_CHANGES}:Object.assign(Object.assign({},kl(d.content,u)),{type:Gc(d.type)})),{number:d.newNumber}):void 0,{left:N,right:D}=this.generateLineHtml(S,_);o.left+=N,o.right+=D}return o}generateLineHtml(u,s){return{left:this.generateSingleHtml(u),right:this.generateSingleHtml(s)}}generateSingleHtml(u){const s="d2h-code-side-linenumber",a="d2h-code-side-line";return this.hoganUtils.render(mu,"line",{type:(u==null?void 0:u.type)||`${Bt.CONTEXT} d2h-emptyplaceholder`,lineClass:u!==void 0?s:`${s} d2h-code-side-emptyplaceholder`,contentClass:u!==void 0?a:`${a} d2h-code-side-emptyplaceholder`,prefix:(u==null?void 0:u.prefix)===" "?" ":u==null?void 0:u.prefix,content:u==null?void 0:u.content,lineNumber:u==null?void 0:u.number})}}var cf={},wp;function S0(){return wp||(wp=1,(function(r){(function(u){var s=/\S/,a=/\"/g,o=/\n/g,m=/\r/g,g=/\\/g,v=/\u2028/,d=/\u2029/;u.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},u.scan=function(Z,$){var ne=Z.length,ve=0,Ze=1,Je=2,ge=ve,H=null,J=null,te="",oe=[],Se=!1,y=0,O=0,U="{{",F="}}";function fe(){te.length>0&&(oe.push({tag:"_t",text:new String(te)}),te="")}function pe(){for(var Oe=!0,gt=O;gt<oe.length;gt++)if(Oe=u.tags[oe[gt].tag]<u.tags._v||oe[gt].tag=="_t"&&oe[gt].text.match(s)===null,!Oe)return!1;return Oe}function ye(Oe,gt){if(fe(),Oe&&pe())for(var At=O,Ne;At<oe.length;At++)oe[At].text&&((Ne=oe[At+1])&&Ne.tag==">"&&(Ne.indent=oe[At].text.toString()),oe.splice(At,1));else gt||oe.push({tag:`
|
|
56
|
+
`});Se=!1,O=oe.length}function Pe(Oe,gt){var At="="+F,Ne=Oe.indexOf(At,gt),Al=S(Oe.substring(Oe.indexOf("=",gt)+1,Ne)).split(" ");return U=Al[0],F=Al[Al.length-1],Ne+At.length-1}for($&&($=$.split(" "),U=$[0],F=$[1]),y=0;y<ne;y++)ge==ve?_(U,Z,y)?(--y,fe(),ge=Ze):Z.charAt(y)==`
|
|
57
|
+
`?ye(Se):te+=Z.charAt(y):ge==Ze?(y+=U.length-1,J=u.tags[Z.charAt(y+1)],H=J?Z.charAt(y+1):"_v",H=="="?(y=Pe(Z,y),ge=ve):(J&&y++,ge=Je),Se=y):_(F,Z,y)?(oe.push({tag:H,n:S(te),otag:U,ctag:F,i:H=="/"?Se-U.length:y+F.length}),te="",y+=F.length-1,ge=ve,H=="{"&&(F=="}}"?y++:p(oe[oe.length-1]))):te+=Z.charAt(y);return ye(Se,!0),oe};function p(k){k.n.substr(k.n.length-1)==="}"&&(k.n=k.n.substring(0,k.n.length-1))}function S(k){return k.trim?k.trim():k.replace(/^\s*|\s*$/g,"")}function _(k,Z,$){if(Z.charAt($)!=k.charAt(0))return!1;for(var ne=1,ve=k.length;ne<ve;ne++)if(Z.charAt($+ne)!=k.charAt(ne))return!1;return!0}var N={_t:!0,"\n":!0,$:!0,"/":!0};function D(k,Z,$,ne){var ve=[],Ze=null,Je=null,ge=null;for(Je=$[$.length-1];k.length>0;){if(ge=k.shift(),Je&&Je.tag=="<"&&!(ge.tag in N))throw new Error("Illegal content in < super tag.");if(u.tags[ge.tag]<=u.tags.$||A(ge,ne))$.push(ge),ge.nodes=D(k,ge.tag,$,ne);else if(ge.tag=="/"){if($.length===0)throw new Error("Closing tag without opener: /"+ge.n);if(Ze=$.pop(),ge.n!=Ze.n&&!Y(ge.n,Ze.n,ne))throw new Error("Nesting error: "+Ze.n+" vs. "+ge.n);return Ze.end=ge.i,ve}else ge.tag==`
|
|
58
|
+
`&&(ge.last=k.length==0||k[0].tag==`
|
|
59
|
+
`);ve.push(ge)}if($.length>0)throw new Error("missing closing tag: "+$.pop().n);return ve}function A(k,Z){for(var $=0,ne=Z.length;$<ne;$++)if(Z[$].o==k.n)return k.tag="#",!0}function Y(k,Z,$){for(var ne=0,ve=$.length;ne<ve;ne++)if($[ne].c==k&&$[ne].o==Z)return!0}function B(k){var Z=[];for(var $ in k)Z.push('"'+X($)+'": function(c,p,t,i) {'+k[$]+"}");return"{ "+Z.join(",")+" }"}function K(k){var Z=[];for(var $ in k.partials)Z.push('"'+X($)+'":{name:"'+X(k.partials[$].name)+'", '+K(k.partials[$])+"}");return"partials: {"+Z.join(",")+"}, subs: "+B(k.subs)}u.stringify=function(k,Z,$){return"{code: function (c,p,i) { "+u.wrapMain(k.code)+" },"+K(k)+"}"};var P=0;u.generate=function(k,Z,$){P=0;var ne={code:"",subs:{},partials:{}};return u.walk(k,ne),$.asString?this.stringify(ne,Z,$):this.makeTemplate(ne,Z,$)},u.wrapMain=function(k){return'var t=this;t.b(i=i||"");'+k+"return t.fl();"},u.template=u.Template,u.makeTemplate=function(k,Z,$){var ne=this.makePartials(k);return ne.code=new Function("c","p","i",this.wrapMain(k.code)),new this.template(ne,Z,this,$)},u.makePartials=function(k){var Z,$={subs:{},partials:k.partials,name:k.name};for(Z in $.partials)$.partials[Z]=this.makePartials($.partials[Z]);for(Z in k.subs)$.subs[Z]=new Function("c","p","t","i",k.subs[Z]);return $};function X(k){return k.replace(g,"\\\\").replace(a,'\\"').replace(o,"\\n").replace(m,"\\r").replace(v,"\\u2028").replace(d,"\\u2029")}function W(k){return~k.indexOf(".")?"d":"f"}function I(k,Z){var $="<"+(Z.prefix||""),ne=$+k.n+P++;return Z.partials[ne]={name:k.n,partials:{}},Z.code+='t.b(t.rp("'+X(ne)+'",c,p,"'+(k.indent||"")+'"));',ne}u.codegen={"#":function(k,Z){Z.code+="if(t.s(t."+W(k.n)+'("'+X(k.n)+'",c,p,1),c,p,0,'+k.i+","+k.end+',"'+k.otag+" "+k.ctag+'")){t.rs(c,p,function(c,p,t){',u.walk(k.nodes,Z),Z.code+="});c.pop();}"},"^":function(k,Z){Z.code+="if(!t.s(t."+W(k.n)+'("'+X(k.n)+'",c,p,1),c,p,1,0,0,"")){',u.walk(k.nodes,Z),Z.code+="};"},">":I,"<":function(k,Z){var $={partials:{},code:"",subs:{},inPartial:!0};u.walk(k.nodes,$);var ne=Z.partials[I(k,Z)];ne.subs=$.subs,ne.partials=$.partials},$:function(k,Z){var $={subs:{},code:"",partials:Z.partials,prefix:k.n};u.walk(k.nodes,$),Z.subs[k.n]=$.code,Z.inPartial||(Z.code+='t.sub("'+X(k.n)+'",c,p,i);')},"\n":function(k,Z){Z.code+=ie('"\\n"'+(k.last?"":" + i"))},_v:function(k,Z){Z.code+="t.b(t.v(t."+W(k.n)+'("'+X(k.n)+'",c,p,0)));'},_t:function(k,Z){Z.code+=ie('"'+X(k.text)+'"')},"{":ce,"&":ce};function ce(k,Z){Z.code+="t.b(t.t(t."+W(k.n)+'("'+X(k.n)+'",c,p,0)));'}function ie(k){return"t.b("+k+");"}u.walk=function(k,Z){for(var $,ne=0,ve=k.length;ne<ve;ne++)$=u.codegen[k[ne].tag],$&&$(k[ne],Z);return Z},u.parse=function(k,Z,$){return $=$||{},D(k,"",[],$.sectionTags||[])},u.cache={},u.cacheKey=function(k,Z){return[k,!!Z.asString,!!Z.disableLambda,Z.delimiters,!!Z.modelGet].join("||")},u.compile=function(k,Z){Z=Z||{};var $=u.cacheKey(k,Z),ne=this.cache[$];if(ne){var ve=ne.partials;for(var Ze in ve)delete ve[Ze].instance;return ne}return ne=this.generate(this.parse(this.scan(k,Z.delimiters),k,Z),k,Z),this.cache[$]=ne}})(r)})(cf)),cf}var sf={},Up;function T0(){return Up||(Up=1,(function(r){(function(u){u.Template=function(D,A,Y,B){D=D||{},this.r=D.code||this.r,this.c=Y,this.options=B||{},this.text=A||"",this.partials=D.partials||{},this.subs=D.subs||{},this.buf=""},u.Template.prototype={r:function(D,A,Y){return""},v:_,t:S,render:function(A,Y,B){return this.ri([A],Y||{},B)},ri:function(D,A,Y){return this.r(D,A,Y)},ep:function(D,A){var Y=this.partials[D],B=A[Y.name];if(Y.instance&&Y.base==B)return Y.instance;if(typeof B=="string"){if(!this.c)throw new Error("No compiler available.");B=this.c.compile(B,this.options)}if(!B)return null;if(this.partials[D].base=B,Y.subs){A.stackText||(A.stackText={});for(key in Y.subs)A.stackText[key]||(A.stackText[key]=this.activeSub!==void 0&&A.stackText[this.activeSub]?A.stackText[this.activeSub]:this.text);B=a(B,Y.subs,Y.partials,this.stackSubs,this.stackPartials,A.stackText)}return this.partials[D].instance=B,B},rp:function(D,A,Y,B){var K=this.ep(D,Y);return K?K.ri(A,Y,B):""},rs:function(D,A,Y){var B=D[D.length-1];if(!N(B)){Y(D,A,this);return}for(var K=0;K<B.length;K++)D.push(B[K]),Y(D,A,this),D.pop()},s:function(D,A,Y,B,K,P,X){var W;return N(D)&&D.length===0?!1:(typeof D=="function"&&(D=this.ms(D,A,Y,B,K,P,X)),W=!!D,!B&&W&&A&&A.push(typeof D=="object"?D:A[A.length-1]),W)},d:function(D,A,Y,B){var K,P=D.split("."),X=this.f(P[0],A,Y,B),W=this.options.modelGet,I=null;if(D==="."&&N(A[A.length-2]))X=A[A.length-1];else for(var ce=1;ce<P.length;ce++)K=s(P[ce],X,W),K!==void 0?(I=X,X=K):X="";return B&&!X?!1:(!B&&typeof X=="function"&&(A.push(I),X=this.mv(X,A,Y),A.pop()),X)},f:function(D,A,Y,B){for(var K=!1,P=null,X=!1,W=this.options.modelGet,I=A.length-1;I>=0;I--)if(P=A[I],K=s(D,P,W),K!==void 0){X=!0;break}return X?(!B&&typeof K=="function"&&(K=this.mv(K,A,Y)),K):B?!1:""},ls:function(D,A,Y,B,K,P){var X=this.options.delimiters;return this.options.delimiters=P,this.b(this.ct(S(D.call(A,K,Y)),A,B)),this.options.delimiters=X,!1},ct:function(D,A,Y){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(D,this.options).render(A,Y)},b:function(D){this.buf+=D},fl:function(){var D=this.buf;return this.buf="",D},ms:function(D,A,Y,B,K,P,X){var W,I=A[A.length-1],ce=D.call(I);return typeof ce=="function"?B?!0:(W=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(ce,I,A,Y,W.substring(K,P),X)):ce},mv:function(D,A,Y){var B=A[A.length-1],K=D.call(B);return typeof K=="function"?this.ct(S(K.call(B)),B,Y):K},sub:function(D,A,Y,B){var K=this.subs[D];K&&(this.activeSub=D,K(A,Y,this,B),this.activeSub=!1)}};function s(D,A,Y){var B;return A&&typeof A=="object"&&(A[D]!==void 0?B=A[D]:Y&&A.get&&typeof A.get=="function"&&(B=A.get(D))),B}function a(D,A,Y,B,K,P){function X(){}X.prototype=D;function W(){}W.prototype=D.subs;var I,ce=new X;ce.subs=new W,ce.subsText={},ce.buf="",B=B||{},ce.stackSubs=B,ce.subsText=P;for(I in A)B[I]||(B[I]=A[I]);for(I in B)ce.subs[I]=B[I];K=K||{},ce.stackPartials=K;for(I in Y)K[I]||(K[I]=Y[I]);for(I in K)ce.partials[I]=K[I];return ce}var o=/&/g,m=/</g,g=/>/g,v=/\'/g,d=/\"/g,p=/[&<>\"\']/;function S(D){return String(D??"")}function _(D){return D=S(D),p.test(D)?D.replace(o,"&").replace(m,"<").replace(g,">").replace(v,"'").replace(d,"""):D}var N=Array.isArray||function(D){return Object.prototype.toString.call(D)==="[object Array]"}})(r)})(sf)),sf}var rf,Lp;function E0(){if(Lp)return rf;Lp=1;var r=S0();return r.Template=T0().Template,r.template=r.Template,rf=r,rf}var ut=E0();const dt={};dt["file-summary-line"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<li class="d2h-file-list-line">'),a.b(`
|
|
60
|
+
`+s),a.b(' <span class="d2h-file-name-wrapper">'),a.b(`
|
|
61
|
+
`+s),a.b(a.rp("<fileIcon0",r,u," ")),a.b(' <a href="#'),a.b(a.v(a.f("fileHtmlId",r,u,0))),a.b('" class="d2h-file-name">'),a.b(a.v(a.f("fileName",r,u,0))),a.b("</a>"),a.b(`
|
|
62
|
+
`+s),a.b(' <span class="d2h-file-stats">'),a.b(`
|
|
63
|
+
`+s),a.b(' <span class="d2h-lines-added">'),a.b(a.v(a.f("addedLines",r,u,0))),a.b("</span>"),a.b(`
|
|
64
|
+
`+s),a.b(' <span class="d2h-lines-deleted">'),a.b(a.v(a.f("deletedLines",r,u,0))),a.b("</span>"),a.b(`
|
|
65
|
+
`+s),a.b(" </span>"),a.b(`
|
|
66
|
+
`+s),a.b(" </span>"),a.b(`
|
|
67
|
+
`+s),a.b("</li>"),a.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});dt["file-summary-wrapper"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<div class="d2h-file-list-wrapper '),a.b(a.v(a.f("colorScheme",r,u,0))),a.b('">'),a.b(`
|
|
68
|
+
`+s),a.b(' <div class="d2h-file-list-header">'),a.b(`
|
|
69
|
+
`+s),a.b(' <span class="d2h-file-list-title">Files changed ('),a.b(a.v(a.f("filesNumber",r,u,0))),a.b(")</span>"),a.b(`
|
|
70
|
+
`+s),a.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),a.b(`
|
|
71
|
+
`+s),a.b(' <a class="d2h-file-switch d2h-show">show</a>'),a.b(`
|
|
72
|
+
`+s),a.b(" </div>"),a.b(`
|
|
73
|
+
`+s),a.b(' <ol class="d2h-file-list">'),a.b(`
|
|
74
|
+
`+s),a.b(" "),a.b(a.t(a.f("files",r,u,0))),a.b(`
|
|
75
|
+
`+s),a.b(" </ol>"),a.b(`
|
|
76
|
+
`+s),a.b("</div>"),a.fl()},partials:{},subs:{}});dt["generic-block-header"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b("<tr>"),a.b(`
|
|
77
|
+
`+s),a.b(' <td class="'),a.b(a.v(a.f("lineClass",r,u,0))),a.b(" "),a.b(a.v(a.d("CSSLineClass.INFO",r,u,0))),a.b('"></td>'),a.b(`
|
|
78
|
+
`+s),a.b(' <td class="'),a.b(a.v(a.d("CSSLineClass.INFO",r,u,0))),a.b('">'),a.b(`
|
|
79
|
+
`+s),a.b(' <div class="'),a.b(a.v(a.f("contentClass",r,u,0))),a.b('">'),a.s(a.f("blockHeader",r,u,1),r,u,0,156,173,"{{ }}")&&(a.rs(r,u,function(o,m,g){g.b(g.t(g.f("blockHeader",o,m,0)))}),r.pop()),a.s(a.f("blockHeader",r,u,1),r,u,1,0,0,"")||a.b(" "),a.b("</div>"),a.b(`
|
|
80
|
+
`+s),a.b(" </td>"),a.b(`
|
|
81
|
+
`+s),a.b("</tr>"),a.fl()},partials:{},subs:{}});dt["generic-empty-diff"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b("<tr>"),a.b(`
|
|
82
|
+
`+s),a.b(' <td class="'),a.b(a.v(a.d("CSSLineClass.INFO",r,u,0))),a.b('">'),a.b(`
|
|
83
|
+
`+s),a.b(' <div class="'),a.b(a.v(a.f("contentClass",r,u,0))),a.b('">'),a.b(`
|
|
84
|
+
`+s),a.b(" File without changes"),a.b(`
|
|
85
|
+
`+s),a.b(" </div>"),a.b(`
|
|
86
|
+
`+s),a.b(" </td>"),a.b(`
|
|
87
|
+
`+s),a.b("</tr>"),a.fl()},partials:{},subs:{}});dt["generic-file-path"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<span class="d2h-file-name-wrapper">'),a.b(`
|
|
88
|
+
`+s),a.b(a.rp("<fileIcon0",r,u," ")),a.b(' <span class="d2h-file-name">'),a.b(a.v(a.f("fileDiffName",r,u,0))),a.b("</span>"),a.b(`
|
|
89
|
+
`+s),a.b(a.rp("<fileTag1",r,u," ")),a.b("</span>"),a.b(`
|
|
90
|
+
`+s),a.b('<label class="d2h-file-collapse">'),a.b(`
|
|
91
|
+
`+s),a.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),a.b(`
|
|
92
|
+
`+s),a.b(" Viewed"),a.b(`
|
|
93
|
+
`+s),a.b("</label>"),a.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});dt["generic-line"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b("<tr>"),a.b(`
|
|
94
|
+
`+s),a.b(' <td class="'),a.b(a.v(a.f("lineClass",r,u,0))),a.b(" "),a.b(a.v(a.f("type",r,u,0))),a.b('">'),a.b(`
|
|
95
|
+
`+s),a.b(" "),a.b(a.t(a.f("lineNumber",r,u,0))),a.b(`
|
|
96
|
+
`+s),a.b(" </td>"),a.b(`
|
|
97
|
+
`+s),a.b(' <td class="'),a.b(a.v(a.f("type",r,u,0))),a.b('">'),a.b(`
|
|
98
|
+
`+s),a.b(' <div class="'),a.b(a.v(a.f("contentClass",r,u,0))),a.b('">'),a.b(`
|
|
99
|
+
`+s),a.s(a.f("prefix",r,u,1),r,u,0,162,238,"{{ }}")&&(a.rs(r,u,function(o,m,g){g.b(' <span class="d2h-code-line-prefix">'),g.b(g.t(g.f("prefix",o,m,0))),g.b("</span>"),g.b(`
|
|
100
|
+
`+s)}),r.pop()),a.s(a.f("prefix",r,u,1),r,u,1,0,0,"")||(a.b(' <span class="d2h-code-line-prefix"> </span>'),a.b(`
|
|
101
|
+
`+s)),a.s(a.f("content",r,u,1),r,u,0,371,445,"{{ }}")&&(a.rs(r,u,function(o,m,g){g.b(' <span class="d2h-code-line-ctn">'),g.b(g.t(g.f("content",o,m,0))),g.b("</span>"),g.b(`
|
|
102
|
+
`+s)}),r.pop()),a.s(a.f("content",r,u,1),r,u,1,0,0,"")||(a.b(' <span class="d2h-code-line-ctn"><br></span>'),a.b(`
|
|
103
|
+
`+s)),a.b(" </div>"),a.b(`
|
|
104
|
+
`+s),a.b(" </td>"),a.b(`
|
|
105
|
+
`+s),a.b("</tr>"),a.fl()},partials:{},subs:{}});dt["generic-wrapper"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<div class="d2h-wrapper '),a.b(a.v(a.f("colorScheme",r,u,0))),a.b('">'),a.b(`
|
|
106
|
+
`+s),a.b(" "),a.b(a.t(a.f("content",r,u,0))),a.b(`
|
|
107
|
+
`+s),a.b("</div>"),a.fl()},partials:{},subs:{}});dt["icon-file-added"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),a.b(`
|
|
108
|
+
`+s),a.b(' width="14">'),a.b(`
|
|
109
|
+
`+s),a.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),a.b(`
|
|
110
|
+
`+s),a.b("</svg>"),a.fl()},partials:{},subs:{}});dt["icon-file-changed"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),a.b(`
|
|
111
|
+
`+s),a.b(' viewBox="0 0 14 16" width="14">'),a.b(`
|
|
112
|
+
`+s),a.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),a.b(`
|
|
113
|
+
`+s),a.b("</svg>"),a.fl()},partials:{},subs:{}});dt["icon-file-deleted"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),a.b(`
|
|
114
|
+
`+s),a.b(' viewBox="0 0 14 16" width="14">'),a.b(`
|
|
115
|
+
`+s),a.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),a.b(`
|
|
116
|
+
`+s),a.b("</svg>"),a.fl()},partials:{},subs:{}});dt["icon-file-renamed"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),a.b(`
|
|
117
|
+
`+s),a.b(' viewBox="0 0 14 16" width="14">'),a.b(`
|
|
118
|
+
`+s),a.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),a.b(`
|
|
119
|
+
`+s),a.b("</svg>"),a.fl()},partials:{},subs:{}});dt["icon-file"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),a.b(`
|
|
120
|
+
`+s),a.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),a.b(`
|
|
121
|
+
`+s),a.b("</svg>"),a.fl()},partials:{},subs:{}});dt["line-by-line-file-diff"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<div id="'),a.b(a.v(a.f("fileHtmlId",r,u,0))),a.b('" class="d2h-file-wrapper" data-lang="'),a.b(a.v(a.d("file.language",r,u,0))),a.b('">'),a.b(`
|
|
122
|
+
`+s),a.b(' <div class="d2h-file-header">'),a.b(`
|
|
123
|
+
`+s),a.b(" "),a.b(a.t(a.f("filePath",r,u,0))),a.b(`
|
|
124
|
+
`+s),a.b(" </div>"),a.b(`
|
|
125
|
+
`+s),a.b(' <div class="d2h-file-diff">'),a.b(`
|
|
126
|
+
`+s),a.b(' <div class="d2h-code-wrapper">'),a.b(`
|
|
127
|
+
`+s),a.b(' <table class="d2h-diff-table">'),a.b(`
|
|
128
|
+
`+s),a.b(' <tbody class="d2h-diff-tbody">'),a.b(`
|
|
129
|
+
`+s),a.b(" "),a.b(a.t(a.f("diffs",r,u,0))),a.b(`
|
|
130
|
+
`+s),a.b(" </tbody>"),a.b(`
|
|
131
|
+
`+s),a.b(" </table>"),a.b(`
|
|
132
|
+
`+s),a.b(" </div>"),a.b(`
|
|
133
|
+
`+s),a.b(" </div>"),a.b(`
|
|
134
|
+
`+s),a.b("</div>"),a.fl()},partials:{},subs:{}});dt["line-by-line-numbers"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<div class="line-num1">'),a.b(a.v(a.f("oldNumber",r,u,0))),a.b("</div>"),a.b(`
|
|
135
|
+
`+s),a.b('<div class="line-num2">'),a.b(a.v(a.f("newNumber",r,u,0))),a.b("</div>"),a.fl()},partials:{},subs:{}});dt["side-by-side-file-diff"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<div id="'),a.b(a.v(a.f("fileHtmlId",r,u,0))),a.b('" class="d2h-file-wrapper" data-lang="'),a.b(a.v(a.d("file.language",r,u,0))),a.b('">'),a.b(`
|
|
136
|
+
`+s),a.b(' <div class="d2h-file-header">'),a.b(`
|
|
137
|
+
`+s),a.b(" "),a.b(a.t(a.f("filePath",r,u,0))),a.b(`
|
|
138
|
+
`+s),a.b(" </div>"),a.b(`
|
|
139
|
+
`+s),a.b(' <div class="d2h-files-diff">'),a.b(`
|
|
140
|
+
`+s),a.b(' <div class="d2h-file-side-diff">'),a.b(`
|
|
141
|
+
`+s),a.b(' <div class="d2h-code-wrapper">'),a.b(`
|
|
142
|
+
`+s),a.b(' <table class="d2h-diff-table">'),a.b(`
|
|
143
|
+
`+s),a.b(' <tbody class="d2h-diff-tbody">'),a.b(`
|
|
144
|
+
`+s),a.b(" "),a.b(a.t(a.d("diffs.left",r,u,0))),a.b(`
|
|
145
|
+
`+s),a.b(" </tbody>"),a.b(`
|
|
146
|
+
`+s),a.b(" </table>"),a.b(`
|
|
147
|
+
`+s),a.b(" </div>"),a.b(`
|
|
148
|
+
`+s),a.b(" </div>"),a.b(`
|
|
149
|
+
`+s),a.b(' <div class="d2h-file-side-diff">'),a.b(`
|
|
150
|
+
`+s),a.b(' <div class="d2h-code-wrapper">'),a.b(`
|
|
151
|
+
`+s),a.b(' <table class="d2h-diff-table">'),a.b(`
|
|
152
|
+
`+s),a.b(' <tbody class="d2h-diff-tbody">'),a.b(`
|
|
153
|
+
`+s),a.b(" "),a.b(a.t(a.d("diffs.right",r,u,0))),a.b(`
|
|
154
|
+
`+s),a.b(" </tbody>"),a.b(`
|
|
155
|
+
`+s),a.b(" </table>"),a.b(`
|
|
156
|
+
`+s),a.b(" </div>"),a.b(`
|
|
157
|
+
`+s),a.b(" </div>"),a.b(`
|
|
158
|
+
`+s),a.b(" </div>"),a.b(`
|
|
159
|
+
`+s),a.b("</div>"),a.fl()},partials:{},subs:{}});dt["tag-file-added"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),a.fl()},partials:{},subs:{}});dt["tag-file-changed"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),a.fl()},partials:{},subs:{}});dt["tag-file-deleted"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),a.fl()},partials:{},subs:{}});dt["tag-file-renamed"]=new ut.Template({code:function(r,u,s){var a=this;return a.b(s=s||""),a.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),a.fl()},partials:{},subs:{}});class A0{constructor({compiledTemplates:u={},rawTemplates:s={}}){const a=Object.entries(s).reduce((o,[m,g])=>{const v=ut.compile(g,{asString:!1});return Object.assign(Object.assign({},o),{[m]:v})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},dt),u),a)}static compile(u){return ut.compile(u,{asString:!1})}render(u,s,a,o,m){const g=this.templateKey(u,s);try{return this.preCompiledTemplates[g].render(a,o,m)}catch{throw new Error(`Could not find template to render '${g}'`)}}template(u,s){return this.preCompiledTemplates[this.templateKey(u,s)]}templateKey(u,s){return`${u}-${s}`}}const x0=Object.assign(Object.assign(Object.assign({},hm),dm),{outputFormat:Xb.LINE_BY_LINE,drawFileList:!0});function _0(r,u={}){const s=Object.assign(Object.assign({},x0),u),a=typeof r=="string"?Ib(r,s):r,o=new A0(s),{colorScheme:m}=s,g={colorScheme:m},v=s.drawFileList?new h0(o,g).render(a):"",d=s.outputFormat==="side-by-side"?new v0(o,s).render(a):new m0(o,s).render(a);return v+d}var N0=cm();function Of(r){const u=[],s=r.split(`
|
|
160
|
+
`);let a=null,o=null;const m=()=>{a&&o&&u.push({path:o,patch:a.join(`
|
|
161
|
+
`)}),a=null,o=null};for(const g of s)if(g.startsWith("diff --git ")){m(),a=[g];const v=g.match(/^diff --git a\/(.+?) b\/(.+)$/);o=v?v[2]:g.slice(11)}else if(a&&(a.push(g),g.startsWith("--- a/")&&o==="/dev/null"&&(o=g.slice(6)),g==="+++ /dev/null")){const v=a.find(d=>d.startsWith("--- a/"));v&&(o=v.slice(6))}return m(),u}function z0(r,u){const s=new Set(u);return Of(r).filter(a=>s.has(a.path)).map(a=>a.patch).join(`
|
|
162
|
+
`)}function O0(r){const u=new Map;for(const{path:s,patch:a}of Of(r)){const o=new Map;let m=0,g=!1;const v=a.split(`
|
|
163
|
+
`);for(let d=0;d<v.length;d++){const p=v[d],S=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(S){m=Number(S[1]),g=!0;continue}g&&(p===""&&d===v.length-1||p.startsWith("\\")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(o.set(m,p===""?"":p.slice(1)),m++))}u.set(s,o)}return u}function R0(r){const u=new Map;for(const[s,a]of O0(r))u.set(s,new Set(a.keys()));return u}function D0(r,u){const s=new Set(u.flatMap(a=>a.files));return Of(r).map(a=>a.path).filter(a=>!s.has(a))}async function El(r,u){const s=await fetch(r,{...u,headers:u!=null&&u.body?{"Content-Type":"application/json"}:void 0});if(!s.ok){let a=`${(u==null?void 0:u.method)??"GET"} ${r}: ${s.status}`;try{const o=await s.json();o.error&&(a=o.error)}catch{}throw new Error(a)}return s.json()}const M0=()=>El("/api/reviews"),C0=()=>El("/api/daemon"),Hp=r=>El(`/api/reviews/${encodeURIComponent(r)}`),ff=(r,u)=>El(`/api/reviews/${encodeURIComponent(r)}`,{method:"PATCH",body:JSON.stringify(u)}),w0=(r,u,s)=>El(`/api/reviews/${encodeURIComponent(r)}/comments/${u}`,{method:"PATCH",body:JSON.stringify(s)}),U0=(r,u)=>El(`/api/reviews/${encodeURIComponent(r)}/comments`,{method:"POST",body:JSON.stringify(u)}),L0=(r,u)=>El(`/api/reviews/${encodeURIComponent(r)}/comments/${u}`,{method:"DELETE"}),H0=r=>El(`/api/reviews/${encodeURIComponent(r)}/refresh`,{method:"POST"}),k0=r=>El(`/api/reviews/${encodeURIComponent(r)}/rerun`,{method:"POST"}),j0=(r,u)=>El(`/api/reviews/${encodeURIComponent(r)}/send-preview?event=${u}`),B0=(r,u)=>El(`/api/reviews/${encodeURIComponent(r)}/send`,{method:"POST",body:JSON.stringify({event:u,confirm:!0})}),q0=r=>`/api/reviews/${encodeURIComponent(r)}/export`;/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function kp(r,u){(u==null||u>r.length)&&(u=r.length);for(var s=0,a=Array(u);s<u;s++)a[s]=r[s];return a}function G0(r){if(Array.isArray(r))return r}function Y0(r,u){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var a,o,m,g,v=[],d=!0,p=!1;try{if(m=(s=s.call(r)).next,u!==0)for(;!(d=(a=m.call(s)).done)&&(v.push(a.value),v.length!==u);d=!0);}catch(S){p=!0,o=S}finally{try{if(!d&&s.return!=null&&(g=s.return(),Object(g)!==g))return}finally{if(p)throw o}}return v}}function X0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
164
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q0(r,u){return G0(r)||Y0(r,u)||Z0(r,u)||X0()}function Z0(r,u){if(r){if(typeof r=="string")return kp(r,u);var s={}.toString.call(r).slice(8,-1);return s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set"?Array.from(r):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?kp(r,u):void 0}}const pm=Object.entries,jp=Object.setPrototypeOf,V0=Object.isFrozen,K0=Object.getPrototypeOf,J0=Object.getOwnPropertyDescriptor;let Ot=Object.freeze,Rt=Object.seal,hi=Object.create,mm=typeof Reflect<"u"&&Reflect,bf=mm.apply,yf=mm.construct;Ot||(Ot=function(u){return u});Rt||(Rt=function(u){return u});bf||(bf=function(u,s){for(var a=arguments.length,o=new Array(a>2?a-2:0),m=2;m<a;m++)o[m-2]=arguments[m];return u.apply(s,o)});yf||(yf=function(u){for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];return new u(...a)});const ri=ht(Array.prototype.forEach),$0=ht(Array.prototype.lastIndexOf),Bp=ht(Array.prototype.pop),fi=ht(Array.prototype.push),F0=ht(Array.prototype.splice),Yn=Array.isArray,vu=ht(String.prototype.toLowerCase),of=ht(String.prototype.toString),qp=ht(String.prototype.match),gu=ht(String.prototype.replace),Gp=ht(String.prototype.indexOf),W0=ht(String.prototype.trim),I0=ht(Number.prototype.toString),P0=ht(Boolean.prototype.toString),Yp=typeof BigInt>"u"?null:ht(BigInt.prototype.toString),Xp=typeof Symbol>"u"?null:ht(Symbol.prototype.toString),Et=ht(Object.prototype.hasOwnProperty),bu=ht(Object.prototype.toString),Tt=ht(RegExp.prototype.test),ma=ey(TypeError);function ht(r){return function(u){u instanceof RegExp&&(u.lastIndex=0);for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];return bf(r,u,a)}}function ey(r){return function(){for(var u=arguments.length,s=new Array(u),a=0;a<u;a++)s[a]=arguments[a];return yf(r,s)}}function Re(r,u){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vu;if(jp&&jp(r,null),!Yn(u))return r;let a=u.length;for(;a--;){let o=u[a];if(typeof o=="string"){const m=s(o);m!==o&&(V0(u)||(u[a]=m),o=m)}r[o]=!0}return r}function ty(r){for(let u=0;u<r.length;u++)Et(r,u)||(r[u]=null);return r}function Lt(r){const u=hi(null);for(const a of pm(r)){var s=Q0(a,2);const o=s[0],m=s[1];Et(r,o)&&(Yn(m)?u[o]=ty(m):m&&typeof m=="object"&&m.constructor===Object?u[o]=Lt(m):u[o]=m)}return u}function ly(r){switch(typeof r){case"string":return r;case"number":return I0(r);case"boolean":return P0(r);case"bigint":return Yp?Yp(r):"0";case"symbol":return Xp?Xp(r):"Symbol()";case"undefined":return bu(r);case"function":case"object":{if(r===null)return bu(r);const u=r,s=vl(u,"toString");if(typeof s=="function"){const a=s(u);return typeof a=="string"?a:bu(a)}return bu(r)}default:return bu(r)}}function vl(r,u){for(;r!==null;){const a=J0(r,u);if(a){if(a.get)return ht(a.get);if(typeof a.value=="function")return ht(a.value)}r=K0(r)}function s(){return null}return s}function ny(r){try{return Tt(r,""),!0}catch{return!1}}const Qp=Ot(["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","search","section","select","shadow","slot","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"]),hf=Ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),df=Ot(["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"]),ay=Ot(["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"]),pf=Ot(["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"]),iy=Ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zp=Ot(["#text"]),Vp=Ot(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mf=Ot(["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","dominant-baseline","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","mask-type","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-orientation","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"]),Kp=Ot(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),jc=Ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),uy=Rt(/{{[\w\W]*|^[\w\W]*}}/g),cy=Rt(/<%[\w\W]*|^[\w\W]*%>/g),sy=Rt(/\${[\w\W]*/g),ry=Rt(/^data-[\-\w.\u00B7-\uFFFF]+$/),fy=Rt(/^aria-[\-\w]+$/),Jp=Rt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oy=Rt(/^(?:\w+script|data):/i),hy=Rt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dy=Rt(/^html$/i),py=Rt(/^[a-z][.\w]*(-[.\w]+)+$/i),$p=Rt(/<[/\w!]/g),Fp=Rt(/<[/\w]/g),my=Rt(/<\/no(script|embed|frames)/i),gy=Rt(/\/>/i),nl={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},by=function(){return typeof window>"u"?null:window},yy=function(u,s){if(typeof u!="object"||typeof u.createPolicy!="function")return null;let a=null;const o="data-tt-policy-suffix";s&&s.hasAttribute(o)&&(a=s.getAttribute(o));const m="dompurify"+(a?"#"+a:"");try{return u.createPolicy(m,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},Wp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Bn=function(u,s,a,o){return Et(u,s)&&Yn(u[s])?Re(o.base?Lt(o.base):{},u[s],o.transform):a};function gm(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:by();const u=V=>gm(V);if(u.version="3.4.13",u.removed=[],!r||!r.document||r.document.nodeType!==nl.document||!r.Element)return u.isSupported=!1,u;let s=r.document;const a=s,o=a.currentScript;r.DocumentFragment;const m=r.HTMLTemplateElement,g=r.Node,v=r.Element,d=r.NodeFilter,p=r.NamedNodeMap;p===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;const S=r.DOMParser,_=r.trustedTypes,N=v.prototype,D=vl(N,"cloneNode"),A=vl(N,"remove"),Y=vl(N,"nextSibling"),B=vl(N,"childNodes"),K=vl(N,"parentNode"),P=vl(N,"shadowRoot"),X=vl(N,"attributes"),W=g&&g.prototype?vl(g.prototype,"nodeType"):null,I=g&&g.prototype?vl(g.prototype,"nodeName"):null,ce=g&&g.prototype?vl(g.prototype,"ownerDocument"):null;if(typeof m=="function"){const V=s.createElement("template");V.content&&V.content.ownerDocument&&(s=V.content.ownerDocument)}let ie,k="",Z,$=!1,ne=0;const ve=function(){if(ne>0)throw ma('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ze=function(b){ve(),ne++;try{return ie.createHTML(b)}finally{ne--}},Je=function(b){ve(),ne++;try{return ie.createScriptURL(b)}finally{ne--}},ge=function(){return $||(Z=yy(_,o),$=!0),Z},H=s,J=H.implementation,te=H.createNodeIterator,oe=H.createDocumentFragment,Se=H.getElementsByTagName,y=a.importNode;let O=Wp();u.isSupported=typeof pm=="function"&&typeof K=="function"&&J&&J.createHTMLDocument!==void 0;const U=uy,F=cy,fe=sy,pe=ry,ye=fy,Pe=oy,Oe=hy,gt=py;let At=Jp,Ne=null;const Al=Re({},[...Qp,...hf,...df,...pf,...Zp]);let we=null;const Xn=Re({},[...Vp,...mf,...Kp,...jc]);let $e=Object.seal(hi(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}})),Qn=null,gi=null;const al=Object.seal(hi(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let va=!0,Zn=!0,Au=!1,xu=!0,et=!1,xl=!0,_l=!1,Sa=!1,jl=null,Ta=null,Ea=!1,un=!1,Aa=!1,Nl=!1,Dt=!0,ml=!1;const Mt="user-content-";let bi=!0,xa=!1,cn={},kt=null;const sn=Re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Vn=null;const zl=Re({},["audio","video","img","source","image","track"]);let rn=null;const fn=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_a="http://www.w3.org/1998/Math/MathML",Kn="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml";let il=qt,yi=!1,Na=null;const _u=Re({},[_a,Kn,qt],of),vi=Ot(["mi","mo","mn","ms","mtext"]);let Jn=Re({},vi);const za=Ot(["annotation-xml"]);let Oa=Re({},za);const Nu=Re({},["title","style","font","a","script"]);let Gt=null;const pt=["application/xhtml+xml","text/html"],Ct="text/html";let ke=null,Ol=null;const $c=s.createElement("form"),zu=function(b){return b instanceof RegExp||b instanceof Function},Ra=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ol&&Ol===b)return;(!b||typeof b!="object")&&(b={}),b=Lt(b),Gt=pt.indexOf(b.PARSER_MEDIA_TYPE)===-1?Ct:b.PARSER_MEDIA_TYPE,ke=Gt==="application/xhtml+xml"?of:vu,Ne=Bn(b,"ALLOWED_TAGS",Al,{transform:ke}),we=Bn(b,"ALLOWED_ATTR",Xn,{transform:ke}),Na=Bn(b,"ALLOWED_NAMESPACES",_u,{transform:of}),rn=Bn(b,"ADD_URI_SAFE_ATTR",fn,{transform:ke,base:fn}),Vn=Bn(b,"ADD_DATA_URI_TAGS",zl,{transform:ke,base:zl}),kt=Bn(b,"FORBID_CONTENTS",sn,{transform:ke}),Qn=Bn(b,"FORBID_TAGS",Lt({}),{transform:ke}),gi=Bn(b,"FORBID_ATTR",Lt({}),{transform:ke}),cn=Et(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?Lt(b.USE_PROFILES):b.USE_PROFILES:!1,va=b.ALLOW_ARIA_ATTR!==!1,Zn=b.ALLOW_DATA_ATTR!==!1,Au=b.ALLOW_UNKNOWN_PROTOCOLS||!1,xu=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=b.SAFE_FOR_TEMPLATES||!1,xl=b.SAFE_FOR_XML!==!1,_l=b.WHOLE_DOCUMENT||!1,un=b.RETURN_DOM||!1,Aa=b.RETURN_DOM_FRAGMENT||!1,Nl=b.RETURN_TRUSTED_TYPE||!1,Ea=b.FORCE_BODY||!1,Dt=b.SANITIZE_DOM!==!1,ml=b.SANITIZE_NAMED_PROPS||!1,bi=b.KEEP_CONTENT!==!1,xa=b.IN_PLACE||!1,At=ny(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:Jp,il=typeof b.NAMESPACE=="string"?b.NAMESPACE:qt,Jn=Et(b,"MATHML_TEXT_INTEGRATION_POINTS")&&b.MATHML_TEXT_INTEGRATION_POINTS&&typeof b.MATHML_TEXT_INTEGRATION_POINTS=="object"?Lt(b.MATHML_TEXT_INTEGRATION_POINTS):Re({},vi),Oa=Et(b,"HTML_INTEGRATION_POINTS")&&b.HTML_INTEGRATION_POINTS&&typeof b.HTML_INTEGRATION_POINTS=="object"?Lt(b.HTML_INTEGRATION_POINTS):Re({},za);const R=Et(b,"CUSTOM_ELEMENT_HANDLING")&&b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING=="object"?Lt(b.CUSTOM_ELEMENT_HANDLING):hi(null);if($e=hi(null),Et(R,"tagNameCheck")&&zu(R.tagNameCheck)&&($e.tagNameCheck=R.tagNameCheck),Et(R,"attributeNameCheck")&&zu(R.attributeNameCheck)&&($e.attributeNameCheck=R.attributeNameCheck),Et(R,"allowCustomizedBuiltInElements")&&typeof R.allowCustomizedBuiltInElements=="boolean"&&($e.allowCustomizedBuiltInElements=R.allowCustomizedBuiltInElements),Rt($e),et&&(Zn=!1),Aa&&(un=!0),cn&&(Ne=Re({},Zp),we=hi(null),cn.html===!0&&(Re(Ne,Qp),Re(we,Vp)),cn.svg===!0&&(Re(Ne,hf),Re(we,mf),Re(we,jc)),cn.svgFilters===!0&&(Re(Ne,df),Re(we,mf),Re(we,jc)),cn.mathMl===!0&&(Re(Ne,pf),Re(we,Kp),Re(we,jc))),al.tagCheck=null,al.attributeCheck=null,Et(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?al.tagCheck=b.ADD_TAGS:Yn(b.ADD_TAGS)&&(Ne===Al&&(Ne=Lt(Ne)),Re(Ne,b.ADD_TAGS,ke))),Et(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?al.attributeCheck=b.ADD_ATTR:Yn(b.ADD_ATTR)&&(we===Xn&&(we=Lt(we)),Re(we,b.ADD_ATTR,ke))),Et(b,"ADD_URI_SAFE_ATTR")&&Yn(b.ADD_URI_SAFE_ATTR)&&Re(rn,b.ADD_URI_SAFE_ATTR,ke),Et(b,"FORBID_CONTENTS")&&Yn(b.FORBID_CONTENTS)&&(kt===sn&&(kt=Lt(kt)),Re(kt,b.FORBID_CONTENTS,ke)),Et(b,"ADD_FORBID_CONTENTS")&&Yn(b.ADD_FORBID_CONTENTS)&&(kt===sn&&(kt=Lt(kt)),Re(kt,b.ADD_FORBID_CONTENTS,ke)),bi&&(Ne["#text"]=!0),_l&&Re(Ne,["html","head","body"]),Ne.table&&(Re(Ne,["tbody"]),delete Qn.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw ma('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ma('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Q=ie;ie=b.TRUSTED_TYPES_POLICY;try{k=Ze("")}catch(le){throw ie=Q,le}}else b.TRUSTED_TYPES_POLICY===null?(ie=void 0,k=""):(ie===void 0&&(ie=ge()),ie&&typeof k=="string"&&(k=Ze("")));Ot&&Ot(b),Ol=b},on=Re({},[...hf,...df,...ay]),Da=Re({},[...pf,...iy]),hn=function(b,R,Q){return R.namespaceURI===qt?b==="svg":R.namespaceURI===_a?b==="svg"&&(Q==="annotation-xml"||Jn[Q]):!!on[b]},dn=function(b,R,Q){return R.namespaceURI===qt?b==="math":R.namespaceURI===Kn?b==="math"&&Oa[Q]:!!Da[b]},$n=function(b,R,Q){return R.namespaceURI===Kn&&!Oa[Q]||R.namespaceURI===_a&&!Jn[Q]?!1:!Da[b]&&(Nu[b]||!on[b])},pn=function(b){let R=K(b);(!R||!R.tagName)&&(R={namespaceURI:il,tagName:"template"});const Q=vu(b.tagName),le=vu(R.tagName);return Na[b.namespaceURI]?b.namespaceURI===Kn?hn(Q,R,le):b.namespaceURI===_a?dn(Q,R,le):b.namespaceURI===qt?$n(Q,R,le):!!(Gt==="application/xhtml+xml"&&Na[b.namespaceURI]):!1},Ve=function(b){fi(u.removed,{element:b});try{K(b).removeChild(b)}catch{if(A(b),!K(b))throw ma("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Fn=function(b){ul(b);const R=B(b);if(R){const le=[];ri(R,ue=>{fi(le,ue)}),ri(le,ue=>{try{A(ue)}catch{}})}const Q=X(b);if(Q)for(let le=Q.length-1;le>=0;--le){const ue=Q[le],he=ue&&ue.name;if(typeof he=="string")try{b.removeAttribute(he)}catch{}}},Rl=function(b,R){try{fi(u.removed,{attribute:R.getAttributeNode(b),from:R})}catch{fi(u.removed,{attribute:null,from:R})}if(R.removeAttribute(b),b==="is")if(un||Aa)try{Ve(R)}catch{}else try{R.setAttribute(b,"")}catch{}},Bl=function(b){const R=X(b);if(R)for(let Q=R.length-1;Q>=0;--Q){const le=R[Q],ue=le&&le.name;if(!(typeof ue!="string"||we[ke(ue)]))try{b.removeAttribute(ue)}catch{}}},ul=function(b){const R=[b];for(;R.length>0;){const Q=R.pop();(W?W(Q):Q.nodeType)===nl.element&&Bl(Q);const ue=B(Q);if(ue)for(let he=ue.length-1;he>=0;--he)R.push(ue[he])}},Fc=function(b){if(!xl)return;const R=[b];for(;R.length>0;){const Q=R.pop(),le=W?W(Q):Q.nodeType;if(le===nl.processingInstruction||le===nl.comment&&Tt(Fp,Q.data)){try{A(Q)}catch{}continue}if(le===nl.element){const he=Q,De=ke(I?I(Q):Q.nodeName);try{he.hasAttribute&&he.hasAttribute("patchsrc")&&he.removeAttribute("patchsrc"),he.hasAttribute&&he.hasAttribute("for")&&De!=="label"&&De!=="output"&&he.removeAttribute("for")}catch{}}const ue=B(Q);if(ue)for(let he=ue.length-1;he>=0;--he)R.push(ue[he])}},Si=function(b){let R=null,Q=null;if(Ea)b="<remove></remove>"+b;else{const he=qp(b,/^[\r\n\t ]+/);Q=he&&he[0]}Gt==="application/xhtml+xml"&&il===qt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const le=ie?Ze(b):b;if(il===qt)try{R=new S().parseFromString(le,Gt)}catch{}if(!R||!R.documentElement){R=J.createDocument(il,"template",null);try{R.documentElement.innerHTML=yi?k:le}catch{}}const ue=R.body||R.documentElement;return b&&Q&&ue.insertBefore(s.createTextNode(Q),ue.childNodes[0]||null),il===qt?Se.call(R,_l?"html":"body")[0]:_l?R.documentElement:ue},Ti=function(b){const R=ce?ce(b):b.ownerDocument;return te.call(R||b,b,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ma=function(b){return b=gu(b,U," "),b=gu(b,F," "),b=gu(b,fe," "),b},mn=function(b){var R;b.normalize();const Q=ce?ce(b):b.ownerDocument,le=te.call(Q||b,b,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let ue=le.nextNode();for(;ue;)ue.data=Ma(ue.data),ue=le.nextNode();const he=(R=b.querySelectorAll)===null||R===void 0?void 0:R.call(b,"template");he&&ri(he,De=>{wt(De.content)&&mn(De.content)})},ql=function(b){const R=I?I(b):null;return typeof R!="string"||ke(R)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==X(b)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==W(b)||b.childNodes!==B(b)},wt=function(b){if(!W||typeof b!="object"||b===null)return!1;try{return W(b)===nl.documentFragment}catch{return!1}},bt=function(b){if(!W||typeof b!="object"||b===null)return!1;try{return typeof W(b)=="number"}catch{return!1}};function $t(V,b,R){V.length!==0&&ri(V,Q=>{Q.call(u,b,R,Ol)})}const Wc=function(b,R){return!!(xl&&b.hasChildNodes()&&!bt(b.firstElementChild)&&Tt($p,b.textContent)&&Tt($p,b.innerHTML)||xl&&b.namespaceURI===qt&&R==="style"&&bt(b.firstElementChild)||b.nodeType===nl.processingInstruction||xl&&b.nodeType===nl.comment&&Tt(Fp,b.data))},Ei=function(b,R,Q){if(!Qn[R]&&Ca(R)&&($e.tagNameCheck instanceof RegExp&&Tt($e.tagNameCheck,R)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(R)))return!1;if(bi&&!kt[R]){const le=K(b),ue=B(b);if(ue&&le){const he=ue.length;for(let De=he-1;De>=0;--De){const Me=b===Q?D(ue[De],!0):ue[De];le.insertBefore(Me,Y(b))}}}return Ve(b),!0},Ai=function(b,R,Q,le){return b.length===0?R:R===Q||R===le?Lt(R):R},Wn=function(b,R){if($t(O.beforeSanitizeElements,b,null),b!==R&&K(b)===null)return xa&&ul(b),!0;if(ql(b))return Ve(b),!0;const Q=ke(I?I(b):b.nodeName);if(Ne=Ai(O.uponSanitizeElement,Ne,Al,jl),$t(O.uponSanitizeElement,b,{tagName:Q,allowedTags:Ne}),b!==R&&K(b)===null)return xa&&ul(b),!0;if(Wc(b,Q))return Ve(b),!0;if(Qn[Q]||!(al.tagCheck instanceof Function&&al.tagCheck(Q))&&!Ne[Q]){const ue=Ei(b,Q,R);return ue===!1&&$t(O.afterSanitizeElements,b,null),ue}if((W?W(b):b.nodeType)===nl.element&&!pn(b)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&Tt(my,b.innerHTML))return Ve(b),!0;if(et&&b.nodeType===nl.text){const ue=Ma(b.textContent);b.textContent!==ue&&(fi(u.removed,{element:b.cloneNode()}),b.textContent=ue)}return $t(O.afterSanitizeElements,b,null),!1},Ou=function(b,R,Q){if(gi[R]||xl&&R==="patchsrc"||xl&&R==="for"&&b!=="label"&&b!=="output"||Dt&&(R==="id"||R==="name")&&(Q in s||Q in $c))return!1;const le=we[R]||al.attributeCheck instanceof Function&&al.attributeCheck(R,b);if(!(Zn&&Tt(pe,R))){if(!(va&&Tt(ye,R))){if(le){if(!rn[R]){if(!Tt(At,gu(Q,Oe,""))){if(!((R==="src"||R==="xlink:href"||R==="href")&&b!=="script"&&Gp(Q,"data:")===0&&Vn[b])){if(!(Au&&!Tt(Pe,gu(Q,Oe,"")))){if(Q)return!1}}}}}else if(!(Ca(b)&&($e.tagNameCheck instanceof RegExp&&Tt($e.tagNameCheck,b)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(b))&&($e.attributeNameCheck instanceof RegExp&&Tt($e.attributeNameCheck,R)||$e.attributeNameCheck instanceof Function&&$e.attributeNameCheck(R,b))||R==="is"&&$e.allowCustomizedBuiltInElements&&($e.tagNameCheck instanceof RegExp&&Tt($e.tagNameCheck,Q)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(Q))))return!1}}return!0},Yt=Re({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ca=function(b){return!Yt[vu(b)]&&Tt(gt,b)},Ru=function(b,R,Q,le){if(ie&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!Q)switch(_.getAttributeType(b,R)){case"TrustedHTML":return Ze(le);case"TrustedScriptURL":return Je(le)}return le},xi=function(b,R,Q,le){try{Q?b.setAttributeNS(Q,R,le):b.setAttribute(R,le),ql(b)?Ve(b):Bp(u.removed)}catch{Rl(R,b)}},Gl=function(b){$t(O.beforeSanitizeAttributes,b,null);const R=b.attributes;if(!R||ql(b))return;we=Ai(O.uponSanitizeAttribute,we,Xn,Ta);const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let le=R.length;const ue=ke(b.nodeName);for(;le--;){const he=R[le],De=he.name,Me=he.namespaceURI,yt=he.value,vt=ke(De),Dl=yt;let tt=De==="value"?Dl:W0(Dl);if(Q.attrName=vt,Q.attrValue=tt,Q.keepAttr=!0,Q.forceKeepAttr=void 0,$t(O.uponSanitizeAttribute,b,Q),tt=Q.attrValue,ml&&(vt==="id"||vt==="name")&&Gp(tt,Mt)!==0&&(Rl(De,b),tt=Mt+tt),xl&&Tt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,tt)){Rl(De,b);continue}if(vt==="attributename"&&qp(tt,"href")){Rl(De,b);continue}if(!Q.forceKeepAttr){if(!Q.keepAttr){Rl(De,b);continue}if(!xu&&Tt(gy,tt)){Rl(De,b);continue}if(et&&(tt=Ma(tt)),!Ou(ue,vt,tt)){Rl(De,b);continue}tt=Ru(ue,vt,Me,tt),tt!==Dl&&xi(b,De,Me,tt)}}$t(O.afterSanitizeAttributes,b,null)},In=function(b){let R=null;const Q=Ti(b);for($t(O.beforeSanitizeShadowDOM,b,null);R=Q.nextNode();)if($t(O.uponSanitizeShadowNode,R,null),Wn(R,b),Gl(R),wt(R.content)&&In(R.content),(W?W(R):R.nodeType)===nl.element){const ue=P(R);wt(ue)&&(wa(ue),In(ue))}$t(O.afterSanitizeShadowDOM,b,null)},wa=function(b){const R=[{node:b,shadow:null}];for(;R.length>0;){const Q=R.pop();if(Q.shadow){In(Q.shadow);continue}const le=Q.node,he=(W?W(le):le.nodeType)===nl.element,De=B(le);if(De)for(let Me=De.length-1;Me>=0;--Me)R.push({node:De[Me],shadow:null});if(he){const Me=I?I(le):null;if(typeof Me=="string"&&ke(Me)==="template"){const yt=le.content;wt(yt)&&R.push({node:yt,shadow:null})}}if(he){const Me=P(le);wt(Me)&&R.push({node:null,shadow:Me},{node:Me,shadow:null})}}};return u.sanitize=function(V){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=null,Q=null,le=null,ue=null;if(yi=!V,yi&&(V="<!-->"),typeof V!="string"&&!bt(V)&&(V=ly(V),typeof V!="string"))throw ma("dirty is not a string, aborting");if(!u.isSupported)return V;Sa?(Ne=jl,we=Ta):Ra(b),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(Ne=Lt(Ne)),O.uponSanitizeAttribute.length>0&&(we=Lt(we)),u.removed=[];const he=xa&&typeof V!="string"&&bt(V);if(he){Fc(V);const yt=I?I(V):V.nodeName;if(typeof yt=="string"){const vt=ke(yt);if(!Ne[vt]||Qn[vt])throw Fn(V),ma("root node is forbidden and cannot be sanitized in-place")}if(ql(V))throw Fn(V),ma("root node is clobbered and cannot be sanitized in-place");try{wa(V)}catch(vt){throw Fn(V),vt}}else if(bt(V))R=Si("<!---->"),Q=R.ownerDocument.importNode(V,!0),Q.nodeType===nl.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?R=Q:R.appendChild(Q),wa(Q);else{if(!un&&!et&&!_l&&V.indexOf("<")===-1)return ie&&Nl?Ze(V):V;if(R=Si(V),!R)return un?null:Nl?k:""}R&&Ea&&Ve(R.firstChild);const De=he?V:R;try{const yt=Ti(De);for(;le=yt.nextNode();)Wn(le,De),Gl(le),wt(le.content)&&In(le.content)}catch(yt){throw he&&(Fn(V),ri(u.removed,vt=>{vt.element&&ul(vt.element)})),yt}if(he)return ri(u.removed,yt=>{yt.element&&ul(yt.element)}),et&&mn(V),V;if(un){if(et&&mn(R),Aa)for(ue=oe.call(R.ownerDocument);R.firstChild;)ue.appendChild(R.firstChild);else ue=R;return(we.shadowroot||we.shadowrootmode)&&(ue=y.call(a,ue,!0)),ue}let Me=_l?R.outerHTML:R.innerHTML;return _l&&Ne["!doctype"]&&R.ownerDocument&&R.ownerDocument.doctype&&R.ownerDocument.doctype.name&&Tt(dy,R.ownerDocument.doctype.name)&&(Me="<!DOCTYPE "+R.ownerDocument.doctype.name+`>
|
|
165
|
+
`+Me),et&&(Me=Ma(Me)),ie&&Nl?Ze(Me):Me},u.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ra(V),Sa=!0,jl=Ne,Ta=we},u.clearConfig=function(){Ol=null,Sa=!1,jl=null,Ta=null,ie=Z,k=""},u.isValidAttribute=function(V,b,R){Ol||Ra({});const Q=ke(V),le=ke(b);return Ou(Q,le,R)},u.addHook=function(V,b){typeof b=="function"&&Et(O,V)&&fi(O[V],b)},u.removeHook=function(V,b){if(Et(O,V)){if(b!==void 0){const R=$0(O[V],b);return R===-1?void 0:F0(O[V],R,1)[0]}return Bp(O[V])}},u.removeHooks=function(V){Et(O,V)&&(O[V]=[])},u.removeAllHooks=function(){O=Wp()},u}var vy=gm();function Rf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ya=Rf();function bm(r){ya=r}var ga={exec:()=>null};function oi(r){let u=[];return s=>{let a=Math.max(0,Math.min(3,s-1)),o=u[a];return o||(o=r(a),u[a]=o),o}}function Ae(r,u=""){let s=typeof r=="string"?r:r.source,a={replace:(o,m)=>{let g=typeof m=="string"?m:m.source;return g=g.replace(Ht.caret,"$1"),s=s.replace(o,g),a},getRegex:()=>new RegExp(s,u)};return a}var Sy=((r="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+r)}catch{return!1}})(),Ht={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:oi(r=>new RegExp(`^ {0,${r}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:oi(r=>new RegExp(`^ {0,${r}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:oi(r=>new RegExp(`^ {0,${r}}(?:\`\`\`|~~~)`)),headingBeginRegex:oi(r=>new RegExp(`^ {0,${r}}#`)),htmlBeginRegex:oi(r=>new RegExp(`^ {0,${r}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:oi(r=>new RegExp(`^ {0,${r}}>`))},Ty=/^(?:[ \t]*(?:\n|$))+/,Ey=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ay=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Tu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xy=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Df=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ym=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,vm=Ae(ym).replace(/bull/g,Df).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}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),_y=Ae(ym).replace(/bull/g,Df).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}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Mf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ny=/^[^\n]+/,Cf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,zy=Ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Cf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Oy=Ae(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Df).getRegex(),Jc="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",wf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ry=Ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\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",wf).replace("tag",Jc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Sm=r=>Ae(Mf).replace("hr",Tu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",r).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Jc).getRegex(),Dy=Sm(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),My=Sm(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Cy=Ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",My).getRegex(),Uf={blockquote:Cy,code:Ey,def:zy,fences:Ay,heading:xy,hr:Tu,html:Ry,lheading:vm,list:Oy,newline:Ty,paragraph:Dy,table:ga,text:Ny},Ip=Ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Tu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Jc).getRegex(),wy={...Uf,lheading:_y,table:Ip,paragraph:Ae(Mf).replace("hr",Tu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ip).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Jc).getRegex()},Uy={...Uf,html:Ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wf).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:ga,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ae(Mf).replace("hr",Tu).replace("heading",` *#{1,6} *[^
|
|
166
|
+
]`).replace("lheading",vm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ly=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hy=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Tm=/^( {2,}|\\)\n(?!\s*$)/,ky=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,an=/[\p{P}\p{S}]/u,mi=/[\s\p{P}\p{S}]/u,Eu=/[^\s\p{P}\p{S}]/u,jy=Ae(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,mi).getRegex(),By=/[\p{Pi}\p{Ps}"']/u,Em=/(?!~)[\p{P}\p{S}]/u,qy=/(?!~)[\s\p{P}\p{S}]/u,Gy=/(?:[^\s\p{P}\p{S}]|~)/u,Yy=Ae(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Sy?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Am=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Xy=Ae(Am,"u").replace(/punct/g,an).getRegex(),Qy=Ae(Am,"u").replace(/punct/g,Em).getRegex(),Zy=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Vy=Ae(Zy,"u").replace(/openQuote/g,By).replace(/punct/g,an).getRegex(),xm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ky=Ae(xm,"gu").replace(/notPunctSpace/g,Eu).replace(/punctSpace/g,mi).replace(/punct/g,an).getRegex(),Jy=Ae(xm,"gu").replace(/notPunctSpace/g,Gy).replace(/punctSpace/g,qy).replace(/punct/g,Em).getRegex(),$y="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Fy=Ae($y,"gu").replace(/notPunctSpace/g,Eu).replace(/punctSpace/g,mi).replace(/punct/g,an).getRegex(),Wy=Ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Eu).replace(/punctSpace/g,mi).replace(/punct/g,an).getRegex(),Iy="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Py=Ae(Iy,"gu").replace(/notPunctSpace/g,Eu).replace(/punctSpace/g,mi).replace(/punct/g,an).getRegex(),ev=Ae(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,an).getRegex(),tv="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",lv=Ae(tv,"gu").replace(/notPunctSpace/g,Eu).replace(/punctSpace/g,mi).replace(/punct/g,an).getRegex(),nv=Ae(/\\(punct)/,"gu").replace(/punct/g,an).getRegex(),av=Ae(/^<(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(),iv=Ae(wf).replace("(?:-->|$)","-->").getRegex(),uv=Ae("^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",iv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Yc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,cv=Ae(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Yc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),_m=Ae(/^!?\[(label)\]\[(ref)\]/).replace("label",Yc).replace("ref",Cf).getRegex(),Nm=Ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",Cf).getRegex(),sv=Ae("reflink|nolink(?!\\()","g").replace("reflink",_m).replace("nolink",Nm).getRegex(),Pp=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Lf={_backpedal:ga,anyPunctuation:nv,autolink:av,blockSkip:Yy,br:Tm,code:Hy,del:ga,delLDelim:ga,delRDelim:ga,emStrongLDelim:Xy,emStrongRDelimAst:Ky,emStrongRDelimUnd:Wy,escape:Ly,link:cv,nolink:Nm,punctuation:jy,reflink:_m,reflinkSearch:sv,tag:uv,text:ky,url:ga},rv={...Lf,emStrongLDelim:Vy,emStrongRDelimAst:Fy,emStrongRDelimUnd:Py,link:Ae(/^!?\[(label)\]\((.*?)\)/).replace("label",Yc).getRegex(),reflink:Ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Yc).getRegex()},vf={...Lf,emStrongRDelimAst:Jy,emStrongLDelim:Qy,delLDelim:ev,delRDelim:lv,url:Ae(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Pp).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ae(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Pp).getRegex()},fv={...vf,br:Ae(Tm).replace("{2,}","*").getRegex(),text:Ae(vf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Bc={normal:Uf,gfm:wy,pedantic:Uy},yu={normal:Lf,gfm:vf,breaks:fv,pedantic:rv},ov={"&":"&","<":"<",">":">",'"':""","'":"'"},em=r=>ov[r];function Hl(r,u){if(u){if(Ht.escapeTest.test(r))return r.replace(Ht.escapeReplace,em)}else if(Ht.escapeTestNoEncode.test(r))return r.replace(Ht.escapeReplaceNoEncode,em);return r}function tm(r){try{r=encodeURI(r).replace(Ht.percentDecode,"%")}catch{return null}return r}function lm(r,u){var m;let s=r.replace(Ht.findPipe,(g,v,d)=>{let p=!1,S=v;for(;--S>=0&&d[S]==="\\";)p=!p;return p?"|":" |"}),a=s.split(Ht.splitPipe),o=0;if(a[0].trim()||a.shift(),a.length>0&&!((m=a.at(-1))!=null&&m.trim())&&a.pop(),u)if(a.length>u)a.splice(u);else for(;a.length<u;)a.push("");for(;o<a.length;o++)a[o]=a[o].trim().replace(Ht.slashPipe,"|");return a}function qn(r,u,s){let a=r.length;if(a===0)return"";let o=0;for(;o<a&&r.charAt(a-o-1)===u;)o++;return r.slice(0,a-o)}function nm(r){let u=r.split(`
|
|
167
|
+
`),s=u.length-1;for(;s>=0&&Ht.blankLine.test(u[s]);)s--;return u.length-s<=2?r:u.slice(0,s+1).join(`
|
|
168
|
+
`)}function hv(r,u){if(r.indexOf(u[1])===-1)return-1;let s=0;for(let a=0;a<r.length;a++)if(r[a]==="\\")a++;else if(r[a]===u[0])s++;else if(r[a]===u[1]&&(s--,s<0))return a;return s>0?-2:-1}function dv(r,u=0){let s=u,a="";for(let o of r)if(o===" "){let m=4-s%4;a+=" ".repeat(m),s+=m}else a+=o,s++;return a}function am(r,u,s,a,o){let m=u.href,g=u.title||null,v=r[1].replace(o.other.outputLinkReplace,"$1");a.state.inLink=!0;let d={type:r[0].charAt(0)==="!"?"image":"link",raw:s,href:m,title:g,text:v,tokens:a.inlineTokens(v)};return a.state.inLink=!1,d}function pv(r,u,s){let a=r.match(s.other.indentCodeCompensation);if(a===null)return u;let o=a[1];return u.split(`
|
|
169
|
+
`).map(m=>{let g=m.match(s.other.beginningSpace);if(g===null)return m;let[v]=g;return v.length>=o.length?m.slice(o.length):m}).join(`
|
|
170
|
+
`)}var Xc=class{constructor(r){Qe(this,"options");Qe(this,"rules");Qe(this,"lexer");this.options=r||ya}space(r){let u=this.rules.block.newline.exec(r);if(u&&u[0].length>0)return{type:"space",raw:u[0]}}code(r){let u=this.rules.block.code.exec(r);if(u){let s=this.options.pedantic?u[0]:nm(u[0]),a=s.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:s,codeBlockStyle:"indented",text:a}}}fences(r){let u=this.rules.block.fences.exec(r);if(u){let s=u[0],a=pv(s,u[3]||"",this.rules);return{type:"code",raw:s,lang:u[2]?u[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):u[2],text:a}}}heading(r){let u=this.rules.block.heading.exec(r);if(u){let s=u[2].trim();if(this.rules.other.endingHash.test(s)){let a=qn(s,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(s=a.trim())}return{type:"heading",raw:qn(u[0],`
|
|
171
|
+
`),depth:u[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(r){let u=this.rules.block.hr.exec(r);if(u)return{type:"hr",raw:qn(u[0],`
|
|
172
|
+
`)}}blockquote(r){let u=this.rules.block.blockquote.exec(r);if(u){let s=qn(u[0],`
|
|
173
|
+
`).split(`
|
|
174
|
+
`),a="",o="",m=[];for(;s.length>0;){let g=!1,v=[],d;for(d=0;d<s.length;d++)if(this.rules.other.blockquoteStart.test(s[d]))v.push(s[d]),g=!0;else if(!g)v.push(s[d]);else break;s=s.slice(d);let p=v.join(`
|
|
175
|
+
`),S=p.replace(this.rules.other.blockquoteSetextReplace,`
|
|
176
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
177
|
+
${p}`:p,o=o?`${o}
|
|
178
|
+
${S}`:S;let _=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(S,m,!0),this.lexer.state.top=_,s.length===0)break;let N=m.at(-1);if((N==null?void 0:N.type)==="code")break;if((N==null?void 0:N.type)==="blockquote"){let D=N,A=s.join(`
|
|
179
|
+
`),Y=D.raw+`
|
|
180
|
+
`+A.replace(this.rules.other.blockquoteSetextReplace2,""),B=this.blockquote(Y);m[m.length-1]=B,a=`${a}
|
|
181
|
+
${A}`,o=o.substring(0,o.length-D.text.length)+B.text;break}else if((N==null?void 0:N.type)==="list"){let D=N,A=D.raw+`
|
|
182
|
+
`+s.join(`
|
|
183
|
+
`),Y=this.list(A);m[m.length-1]=Y,a=a.substring(0,a.length-N.raw.length)+Y.raw,o=o.substring(0,o.length-D.raw.length)+Y.raw,s=A.substring(m.at(-1).raw.length).split(`
|
|
184
|
+
`);continue}}return{type:"blockquote",raw:a,tokens:m,text:o}}}list(r){let u=this.rules.block.list.exec(r);if(u){let s=u[1].trim(),a=s.length>1,o={type:"list",raw:"",ordered:a,start:a?+s.slice(0,-1):"",loose:!1,items:[]};s=a?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=a?s:"[*+-]");let m=this.rules.other.listItemRegex(s),g=!1;for(;r;){let d=!1,p="",S="";if(!(u=m.exec(r))||this.rules.block.hr.test(r))break;p=u[0],r=r.substring(p.length);let _=dv(u[2].split(`
|
|
185
|
+
`,1)[0],u[1].length),N=r.split(`
|
|
186
|
+
`,1)[0],D=!_.trim(),A=0;if(this.options.pedantic?(A=2,S=_.trimStart()):D?A=u[1].length+1:(A=_.search(this.rules.other.nonSpaceChar),A=A>4?1:A,S=_.slice(A),A+=u[1].length),D&&this.rules.other.blankLine.test(N)&&(p+=N+`
|
|
187
|
+
`,r=r.substring(N.length+1),d=!0),!d){let Y=this.rules.other.nextBulletRegex(A),B=this.rules.other.hrRegex(A),K=this.rules.other.fencesBeginRegex(A),P=this.rules.other.headingBeginRegex(A),X=this.rules.other.htmlBeginRegex(A),W=this.rules.other.blockquoteBeginRegex(A);for(;r;){let I=r.split(`
|
|
188
|
+
`,1)[0],ce;if(N=I,this.options.pedantic?(N=N.replace(this.rules.other.listReplaceNesting," "),ce=N):ce=N.replace(this.rules.other.tabCharGlobal," "),K.test(N)||P.test(N)||X.test(N)||W.test(N)||Y.test(N)||B.test(N))break;if(ce.search(this.rules.other.nonSpaceChar)>=A||!N.trim())S+=`
|
|
189
|
+
`+ce.slice(A);else{if(D||_.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||K.test(_)||P.test(_)||B.test(_))break;S+=`
|
|
190
|
+
`+N}D=!N.trim(),p+=I+`
|
|
191
|
+
`,r=r.substring(I.length+1),_=ce.slice(A)}}o.loose||(g?o.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(g=!0)),o.items.push({type:"list_item",raw:p,task:!!this.options.gfm&&this.rules.other.listIsTask.test(S),loose:!1,text:S,tokens:[]}),o.raw+=p}let v=o.items.at(-1);if(v)v.raw=v.raw.trimEnd(),v.text=v.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let d of o.items)if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),!o.loose){let p=d.tokens.filter(_=>_.type==="space"),S=p.length>0&&p.some(_=>this.rules.other.anyLine.test(_.raw));o.loose=S}for(let d of o.items){let p=d.tokens[0];if(d.task&&((p==null?void 0:p.type)==="text"||(p==null?void 0:p.type)==="paragraph")){d.text=d.text.replace(this.rules.other.listReplaceTask,""),p.raw=p.raw.replace(this.rules.other.listReplaceTask,""),p.text=p.text.replace(this.rules.other.listReplaceTask,"");for(let _=this.lexer.inlineQueue.length-1;_>=0;_--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[_].src)){this.lexer.inlineQueue[_].src=this.lexer.inlineQueue[_].src.replace(this.rules.other.listReplaceTask,"");break}let S=this.rules.other.listTaskCheckbox.exec(d.raw);if(S){let _={type:"checkbox",raw:S[0]+" ",checked:S[0]!=="[ ]"};d.checked=_.checked,o.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=_.raw+d.tokens[0].raw,d.tokens[0].text=_.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(_)):d.tokens.unshift({type:"paragraph",raw:_.raw,text:_.raw,tokens:[_]}):d.tokens.unshift(_)}}else d.task&&(d.task=!1)}if(o.loose)for(let d of o.items){d.loose=!0;for(let p of d.tokens)p.type==="text"&&(p.type="paragraph")}return o}}html(r){let u=this.rules.block.html.exec(r);if(u){let s=nm(u[0]);return{type:"html",block:!0,raw:s,pre:u[1]==="pre"||u[1]==="script"||u[1]==="style",text:s}}}def(r){let u=this.rules.block.def.exec(r);if(u){let s=u[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=u[2]?u[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=u[3]?u[3].substring(1,u[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):u[3];return{type:"def",tag:s,raw:qn(u[0],`
|
|
192
|
+
`),href:a,title:o}}}table(r){var g;let u=this.rules.block.table.exec(r);if(!u||!this.rules.other.tableDelimiter.test(u[2]))return;let s=lm(u[1]),a=u[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(g=u[3])!=null&&g.trim()?u[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
193
|
+
`):[],m={type:"table",raw:qn(u[0],`
|
|
194
|
+
`),header:[],align:[],rows:[]};if(s.length===a.length){for(let v of a)this.rules.other.tableAlignRight.test(v)?m.align.push("right"):this.rules.other.tableAlignCenter.test(v)?m.align.push("center"):this.rules.other.tableAlignLeft.test(v)?m.align.push("left"):m.align.push(null);for(let v=0;v<s.length;v++)m.header.push({text:s[v],tokens:this.lexer.inline(s[v]),header:!0,align:m.align[v]});for(let v of o)m.rows.push(lm(v,m.header.length).map((d,p)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:m.align[p]})));return m}}lheading(r){let u=this.rules.block.lheading.exec(r);if(u){let s=u[1].trim();return{type:"heading",raw:qn(u[0],`
|
|
195
|
+
`),depth:u[2].charAt(0)==="="?1:2,text:s,tokens:this.lexer.inline(s)}}}paragraph(r){let u=this.rules.block.paragraph.exec(r);if(u){let s=u[1].charAt(u[1].length-1)===`
|
|
196
|
+
`?u[1].slice(0,-1):u[1];return{type:"paragraph",raw:u[0],text:s,tokens:this.lexer.inline(s)}}}text(r){let u=this.rules.block.text.exec(r);if(u)return{type:"text",raw:u[0],text:u[0],tokens:this.lexer.inline(u[0])}}escape(r){let u=this.rules.inline.escape.exec(r);if(u)return{type:"escape",raw:u[0],text:u[1]}}tag(r){let u=this.rules.inline.tag.exec(r);if(u)return!this.lexer.state.inLink&&this.rules.other.startATag.test(u[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(u[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(u[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(u[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:u[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:u[0]}}link(r){let u=this.rules.inline.link.exec(r);if(u){let s=u[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let m=qn(s.slice(0,-1),"\\");if((s.length-m.length)%2===0)return}else{let m=hv(u[2],"()");if(m===-2)return;if(m>-1){let g=(u[0].indexOf("!")===0?5:4)+u[1].length+m;u[2]=u[2].substring(0,m),u[0]=u[0].substring(0,g).trim(),u[3]=""}}let a=u[2],o="";if(this.options.pedantic){let m=this.rules.other.pedanticHrefTitle.exec(a);m&&(a=m[1],o=m[3])}else o=u[3]?u[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?a=a.slice(1):a=a.slice(1,-1)),am(u,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},u[0],this.lexer,this.rules)}}reflink(r,u){let s;if((s=this.rules.inline.reflink.exec(r))||(s=this.rules.inline.nolink.exec(r))){let a=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=u[a.toLowerCase()];if(!o){let m=s[0].charAt(0);return{type:"text",raw:m,text:m}}return am(s,o,s[0],this.lexer,this.rules)}}emStrong(r,u,s=""){let a=this.rules.inline.emStrongLDelim.exec(r);if(!(!a||!a[1]&&!a[2]&&!a[3]&&!a[4]||a[4]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[3])||!s||this.rules.inline.punctuation.exec(s))){let o=[...a[0]].length-1,m,g,v=o,d=0,p=a[0][0],S=s===p,_=p==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_.lastIndex=0,u=u.slice(-1*r.length+o);(a=_.exec(u))!==null;){if(m=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!m)continue;if(g=[...m].length,a[3]||a[4]){v+=g;continue}else if(a[5]||a[6]){if(o%3&&!((o+g)%3)){d+=g;continue}if(S)break}if(v-=g,v>0)continue;g=Math.min(g,g+v+d);let N=[...a[0]][0].length,D=r.slice(0,o+a.index+N+g);if(Math.min(o,g)%2){let Y=D.slice(1,-1);return{type:"em",raw:D,text:Y,tokens:this.lexer.inlineTokens(Y)}}let A=D.slice(2,-2);return{type:"strong",raw:D,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(r){let u=this.rules.inline.code.exec(r);if(u){let s=u[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(s),o=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return a&&o&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:u[0],text:s}}}br(r){let u=this.rules.inline.br.exec(r);if(u)return{type:"br",raw:u[0]}}del(r,u,s=""){let a=this.rules.inline.delLDelim.exec(r);if(a&&(!a[1]||!s||this.rules.inline.punctuation.exec(s))){let o=[...a[0]].length-1,m,g,v=o,d=this.rules.inline.delRDelim;for(d.lastIndex=0,u=u.slice(-1*r.length+o);(a=d.exec(u))!==null;){if(m=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!m||(g=[...m].length,g!==o))continue;if(a[3]||a[4]){v+=g;continue}if(v-=g,v>0)continue;g=Math.min(g,g+v);let p=[...a[0]][0].length,S=r.slice(0,o+a.index+p+g),_=S.slice(o,-o);return{type:"del",raw:S,text:_,tokens:this.lexer.inlineTokens(_)}}}}autolink(r){let u=this.rules.inline.autolink.exec(r);if(u){let s,a;return u[2]==="@"?(s=u[1],a="mailto:"+s):(s=u[1],a=s),{type:"link",raw:u[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}url(r){var s;let u;if(u=this.rules.inline.url.exec(r)){let a,o;if(u[2]==="@")a=u[0],o="mailto:"+a;else{let m;do m=u[0],u[0]=((s=this.rules.inline._backpedal.exec(u[0]))==null?void 0:s[0])??"";while(m!==u[0]);a=u[0],u[1]==="www."?o="http://"+u[0]:o=u[0]}return{type:"link",raw:u[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(r){let u=this.rules.inline.text.exec(r);if(u){let s=this.lexer.state.inRawBlock;return{type:"text",raw:u[0],text:u[0],escaped:s}}}},Sl=class Sf{constructor(u){Qe(this,"tokens");Qe(this,"options");Qe(this,"state");Qe(this,"inlineQueue");Qe(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=u||ya,this.options.tokenizer=this.options.tokenizer||new Xc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:Ht,block:Bc.normal,inline:yu.normal};this.options.pedantic?(s.block=Bc.pedantic,s.inline=yu.pedantic):this.options.gfm&&(s.block=Bc.gfm,this.options.breaks?s.inline=yu.breaks:s.inline=yu.gfm),this.tokenizer.rules=s}static get rules(){return{block:Bc,inline:yu}}static lex(u,s){return new Sf(s).lex(u)}static lexInline(u,s){return new Sf(s).inlineTokens(u)}lex(u){u=u.replace(Ht.carriageReturn,`
|
|
197
|
+
`),this.blockTokens(u,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let a=this.inlineQueue[s];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(u,s=[],a=!1){var m,g,v;this.tokenizer.lexer=this,this.options.pedantic&&(u=u.replace(Ht.tabCharGlobal," ").replace(Ht.spaceLine,""));let o=1/0;for(;u;){if(u.length<o)o=u.length;else{this.infiniteLoopError(u.charCodeAt(0));break}let d;if((g=(m=this.options.extensions)==null?void 0:m.block)!=null&&g.some(S=>(d=S.call({lexer:this},u,s))?(u=u.substring(d.raw.length),s.push(d),!0):!1))continue;if(d=this.tokenizer.space(u)){u=u.substring(d.raw.length);let S=s.at(-1);d.raw.length===1&&S!==void 0?S.raw+=`
|
|
198
|
+
`:s.push(d);continue}if(d=this.tokenizer.code(u)){u=u.substring(d.raw.length);let S=s.at(-1);(S==null?void 0:S.type)==="paragraph"||(S==null?void 0:S.type)==="text"?(S.raw+=(S.raw.endsWith(`
|
|
199
|
+
`)?"":`
|
|
200
|
+
`)+d.raw,S.text+=`
|
|
201
|
+
`+d.text,this.inlineQueue.at(-1).src=S.text):s.push(d);continue}if(d=this.tokenizer.fences(u)){u=u.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.heading(u)){u=u.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.hr(u)){u=u.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.blockquote(u)){u=u.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.list(u)){u=u.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.html(u)){u=u.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.def(u)){u=u.substring(d.raw.length);let S=s.at(-1);(S==null?void 0:S.type)==="paragraph"||(S==null?void 0:S.type)==="text"?(S.raw+=(S.raw.endsWith(`
|
|
202
|
+
`)?"":`
|
|
203
|
+
`)+d.raw,S.text+=`
|
|
204
|
+
`+d.raw,this.inlineQueue.at(-1).src=S.text):this.tokens.links[d.tag]||(this.tokens.links[d.tag]={href:d.href,title:d.title},s.push(d));continue}if(d=this.tokenizer.table(u)){u=u.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.lheading(u)){u=u.substring(d.raw.length),s.push(d);continue}let p=u;if((v=this.options.extensions)!=null&&v.startBlock){let S=1/0,_=u.slice(1),N;this.options.extensions.startBlock.forEach(D=>{N=D.call({lexer:this},_),typeof N=="number"&&N>=0&&(S=Math.min(S,N))}),S<1/0&&S>=0&&(p=u.substring(0,S+1))}if(this.state.top&&(d=this.tokenizer.paragraph(p))){let S=s.at(-1);a&&(S==null?void 0:S.type)==="paragraph"?(S.raw+=(S.raw.endsWith(`
|
|
205
|
+
`)?"":`
|
|
206
|
+
`)+d.raw,S.text+=`
|
|
207
|
+
`+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=S.text):s.push(d),a=p.length!==u.length,u=u.substring(d.raw.length);continue}if(d=this.tokenizer.text(u)){u=u.substring(d.raw.length);let S=s.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=(S.raw.endsWith(`
|
|
208
|
+
`)?"":`
|
|
209
|
+
`)+d.raw,S.text+=`
|
|
210
|
+
`+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=S.text):s.push(d);continue}if(u){this.infiniteLoopError(u.charCodeAt(0));break}}return this.state.top=!0,s}inline(u,s=[]){return this.inlineQueue.push({src:u,tokens:s}),s}inlineTokens(u,s=[]){var v,d,p,S,_;this.tokenizer.lexer=this;let a=u;if(this.tokens.links){let N=Object.keys(this.tokens.links);N.length>0&&(a=a.replace(this.tokenizer.rules.inline.reflinkSearch,D=>N.includes(D.slice(D.lastIndexOf("[")+1,-1))?"["+"a".repeat(D.length-2)+"]":D))}a=a.replace(this.tokenizer.rules.inline.anyPunctuation,N=>"+".repeat(N.length)),a=a.replace(this.tokenizer.rules.inline.blockSkip,(N,D,A)=>{let Y=A?A.length:0;return N.slice(0,Y)+"["+"a".repeat(N.length-Y-2)+"]"}),a=((d=(v=this.options.hooks)==null?void 0:v.emStrongMask)==null?void 0:d.call({lexer:this},a))??a;let o=!1,m="",g=1/0;for(;u;){if(u.length<g)g=u.length;else{this.infiniteLoopError(u.charCodeAt(0));break}o||(m=""),o=!1;let N;if((S=(p=this.options.extensions)==null?void 0:p.inline)!=null&&S.some(A=>(N=A.call({lexer:this},u,s))?(u=u.substring(N.raw.length),s.push(N),!0):!1))continue;if(N=this.tokenizer.escape(u)){u=u.substring(N.raw.length),s.push(N);continue}if(N=this.tokenizer.tag(u)){u=u.substring(N.raw.length),s.push(N);continue}if(N=this.tokenizer.link(u)){u=u.substring(N.raw.length),s.push(N);continue}if(N=this.tokenizer.reflink(u,this.tokens.links)){u=u.substring(N.raw.length);let A=s.at(-1);N.type==="text"&&(A==null?void 0:A.type)==="text"?(A.raw+=N.raw,A.text+=N.text):s.push(N);continue}if(N=this.tokenizer.emStrong(u,a,m)){u=u.substring(N.raw.length),s.push(N);continue}if(N=this.tokenizer.codespan(u)){u=u.substring(N.raw.length),s.push(N);continue}if(N=this.tokenizer.br(u)){u=u.substring(N.raw.length),s.push(N);continue}if(N=this.tokenizer.del(u,a,m)){u=u.substring(N.raw.length),s.push(N);continue}if(N=this.tokenizer.autolink(u)){u=u.substring(N.raw.length),s.push(N);continue}if(!this.state.inLink&&(N=this.tokenizer.url(u))){u=u.substring(N.raw.length),s.push(N);continue}let D=u;if((_=this.options.extensions)!=null&&_.startInline){let A=1/0,Y=u.slice(1),B;this.options.extensions.startInline.forEach(K=>{B=K.call({lexer:this},Y),typeof B=="number"&&B>=0&&(A=Math.min(A,B))}),A<1/0&&A>=0&&(D=u.substring(0,A+1))}if(N=this.tokenizer.inlineText(D)){u=u.substring(N.raw.length),N.raw.slice(-1)!=="_"&&(m=N.raw.slice(-1)),o=!0;let A=s.at(-1);(A==null?void 0:A.type)==="text"?(A.raw+=N.raw,A.text+=N.text):s.push(N);continue}if(u){this.infiniteLoopError(u.charCodeAt(0));break}}return s}infiniteLoopError(u){let s="Infinite loop on byte: "+u;if(this.options.silent)console.error(s);else throw new Error(s)}},Qc=class{constructor(r){Qe(this,"options");Qe(this,"parser");this.options=r||ya}space(r){return""}code({text:r,lang:u,escaped:s}){var m;let a=(m=(u||"").match(Ht.notSpaceStart))==null?void 0:m[0],o=r.replace(Ht.endingNewline,"")+`
|
|
211
|
+
`;return a?'<pre><code class="language-'+Hl(a)+'">'+(s?o:Hl(o,!0))+`</code></pre>
|
|
212
|
+
`:"<pre><code>"+(s?o:Hl(o,!0))+`</code></pre>
|
|
213
|
+
`}blockquote({tokens:r}){return`<blockquote>
|
|
214
|
+
${this.parser.parse(r)}</blockquote>
|
|
215
|
+
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:u}){return`<h${u}>${this.parser.parseInline(r)}</h${u}>
|
|
216
|
+
`}hr(r){return`<hr>
|
|
217
|
+
`}list(r){let u=r.ordered,s=r.start,a="";for(let g=0;g<r.items.length;g++){let v=r.items[g];a+=this.listitem(v)}let o=u?"ol":"ul",m=u&&s!==1?' start="'+s+'"':"";return"<"+o+m+`>
|
|
218
|
+
`+a+"</"+o+`>
|
|
219
|
+
`}listitem(r){return`<li>${this.parser.parse(r.tokens)}</li>
|
|
220
|
+
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
|
|
221
|
+
`}table(r){let u="",s="";for(let o=0;o<r.header.length;o++)s+=this.tablecell(r.header[o]);u+=this.tablerow({text:s});let a="";for(let o=0;o<r.rows.length;o++){let m=r.rows[o];s="";for(let g=0;g<m.length;g++)s+=this.tablecell(m[g]);a+=this.tablerow({text:s})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
222
|
+
<thead>
|
|
223
|
+
`+u+`</thead>
|
|
224
|
+
`+a+`</table>
|
|
225
|
+
`}tablerow({text:r}){return`<tr>
|
|
226
|
+
${r}</tr>
|
|
227
|
+
`}tablecell(r){let u=this.parser.parseInline(r.tokens),s=r.header?"th":"td";return(r.align?`<${s} align="${r.align}">`:`<${s}>`)+u+`</${s}>
|
|
228
|
+
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${Hl(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:u,tokens:s}){let a=this.parser.parseInline(s),o=tm(r);if(o===null)return a;r=o;let m='<a href="'+r+'"';return u&&(m+=' title="'+Hl(u)+'"'),m+=">"+a+"</a>",m}image({href:r,title:u,text:s,tokens:a}){a&&(s=this.parser.parseInline(a,this.parser.textRenderer));let o=tm(r);if(o===null)return Hl(s);r=o;let m=`<img src="${r}" alt="${Hl(s)}"`;return u&&(m+=` title="${Hl(u)}"`),m+=">",m}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:Hl(r.text)}},Hf=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}checkbox({raw:r}){return r}},Tl=class Tf{constructor(u){Qe(this,"options");Qe(this,"renderer");Qe(this,"textRenderer");this.options=u||ya,this.options.renderer=this.options.renderer||new Qc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Hf}static parse(u,s){return new Tf(s).parse(u)}static parseInline(u,s){return new Tf(s).parseInline(u)}parse(u){var a,o;this.renderer.parser=this;let s="";for(let m=0;m<u.length;m++){let g=u[m];if((o=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&o[g.type]){let d=g,p=this.options.extensions.renderers[d.type].call({parser:this},d);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(d.type)){s+=p||"";continue}}let v=g;switch(v.type){case"space":{s+=this.renderer.space(v);break}case"hr":{s+=this.renderer.hr(v);break}case"heading":{s+=this.renderer.heading(v);break}case"code":{s+=this.renderer.code(v);break}case"table":{s+=this.renderer.table(v);break}case"blockquote":{s+=this.renderer.blockquote(v);break}case"list":{s+=this.renderer.list(v);break}case"checkbox":{s+=this.renderer.checkbox(v);break}case"html":{s+=this.renderer.html(v);break}case"def":{s+=this.renderer.def(v);break}case"paragraph":{s+=this.renderer.paragraph(v);break}case"text":{s+=this.renderer.text(v);break}default:{let d='Token with "'+v.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}parseInline(u,s=this.renderer){var o,m;this.renderer.parser=this;let a="";for(let g=0;g<u.length;g++){let v=u[g];if((m=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&m[v.type]){let p=this.options.extensions.renderers[v.type].call({parser:this},v);if(p!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(v.type)){a+=p||"";continue}}let d=v;switch(d.type){case"escape":{a+=s.text(d);break}case"html":{a+=s.html(d);break}case"link":{a+=s.link(d);break}case"image":{a+=s.image(d);break}case"checkbox":{a+=s.checkbox(d);break}case"strong":{a+=s.strong(d);break}case"em":{a+=s.em(d);break}case"codespan":{a+=s.codespan(d);break}case"br":{a+=s.br(d);break}case"del":{a+=s.del(d);break}case"text":{a+=s.text(d);break}default:{let p='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return a}},qc,Su=(qc=class{constructor(r){Qe(this,"options");Qe(this,"block");this.options=r||ya}preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(r=this.block){return r?Sl.lex:Sl.lexInline}provideParser(r=this.block){return r?Tl.parse:Tl.parseInline}},Qe(qc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Qe(qc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),qc),mv=class{constructor(...r){Qe(this,"defaults",Rf());Qe(this,"options",this.setOptions);Qe(this,"parse",this.parseMarkdown(!0));Qe(this,"parseInline",this.parseMarkdown(!1));Qe(this,"Parser",Tl);Qe(this,"Renderer",Qc);Qe(this,"TextRenderer",Hf);Qe(this,"Lexer",Sl);Qe(this,"Tokenizer",Xc);Qe(this,"Hooks",Su);this.use(...r)}walkTokens(r,u){var a,o;let s=[];for(let m of r)switch(s=s.concat(u.call(this,m)),m.type){case"table":{let g=m;for(let v of g.header)s=s.concat(this.walkTokens(v.tokens,u));for(let v of g.rows)for(let d of v)s=s.concat(this.walkTokens(d.tokens,u));break}case"list":{let g=m;s=s.concat(this.walkTokens(g.items,u));break}default:{let g=m;(o=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&o[g.type]?this.defaults.extensions.childTokens[g.type].forEach(v=>{let d=g[v].flat(1/0);s=s.concat(this.walkTokens(d,u))}):g.tokens&&(s=s.concat(this.walkTokens(g.tokens,u)))}}return s}use(...r){let u=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(s=>{let a={...s};if(a.async=this.defaults.async||a.async||!1,s.extensions&&(s.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let m=u.renderers[o.name];m?u.renderers[o.name]=function(...g){let v=o.renderer.apply(this,g);return v===!1&&(v=m.apply(this,g)),v}:u.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let m=u[o.level];m?m.unshift(o.tokenizer):u[o.level]=[o.tokenizer],o.start&&(o.level==="block"?u.startBlock?u.startBlock.push(o.start):u.startBlock=[o.start]:o.level==="inline"&&(u.startInline?u.startInline.push(o.start):u.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(u.childTokens[o.name]=o.childTokens)}),a.extensions=u),s.renderer){let o=this.defaults.renderer||new Qc(this.defaults);for(let m in s.renderer){if(!(m in o))throw new Error(`renderer '${m}' does not exist`);if(["options","parser"].includes(m))continue;let g=m,v=s.renderer[g],d=o[g];o[g]=(...p)=>{let S=v.apply(o,p);return S===!1&&(S=d.apply(o,p)),S||""}}a.renderer=o}if(s.tokenizer){let o=this.defaults.tokenizer||new Xc(this.defaults);for(let m in s.tokenizer){if(!(m in o))throw new Error(`tokenizer '${m}' does not exist`);if(["options","rules","lexer"].includes(m))continue;let g=m,v=s.tokenizer[g],d=o[g];o[g]=(...p)=>{let S=v.apply(o,p);return S===!1&&(S=d.apply(o,p)),S}}a.tokenizer=o}if(s.hooks){let o=this.defaults.hooks||new Su;for(let m in s.hooks){if(!(m in o))throw new Error(`hook '${m}' does not exist`);if(["options","block"].includes(m))continue;let g=m,v=s.hooks[g],d=o[g];Su.passThroughHooks.has(m)?o[g]=p=>{if(this.defaults.async&&Su.passThroughHooksRespectAsync.has(m))return(async()=>{let _=await v.call(o,p);return d.call(o,_)})();let S=v.call(o,p);return d.call(o,S)}:o[g]=(...p)=>{if(this.defaults.async)return(async()=>{let _=await v.apply(o,p);return _===!1&&(_=await d.apply(o,p)),_})();let S=v.apply(o,p);return S===!1&&(S=d.apply(o,p)),S}}a.hooks=o}if(s.walkTokens){let o=this.defaults.walkTokens,m=s.walkTokens;a.walkTokens=function(g){let v=[];return v.push(m.call(this,g)),o&&(v=v.concat(o.call(this,g))),v}}this.defaults={...this.defaults,...a}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,u){return Sl.lex(r,u??this.defaults)}parser(r,u){return Tl.parse(r,u??this.defaults)}parseMarkdown(r){return(u,s)=>{let a={...s},o={...this.defaults,...a},m=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return m(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 u>"u"||u===null)return m(new Error("marked(): input parameter is undefined or null"));if(typeof u!="string")return m(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(u)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=r),o.async)return(async()=>{let g=o.hooks?await o.hooks.preprocess(u):u,v=await(o.hooks?await o.hooks.provideLexer(r):r?Sl.lex:Sl.lexInline)(g,o),d=o.hooks?await o.hooks.processAllTokens(v):v;o.walkTokens&&await Promise.all(this.walkTokens(d,o.walkTokens));let p=await(o.hooks?await o.hooks.provideParser(r):r?Tl.parse:Tl.parseInline)(d,o);return o.hooks?await o.hooks.postprocess(p):p})().catch(m);try{o.hooks&&(u=o.hooks.preprocess(u));let g=(o.hooks?o.hooks.provideLexer(r):r?Sl.lex:Sl.lexInline)(u,o);o.hooks&&(g=o.hooks.processAllTokens(g)),o.walkTokens&&this.walkTokens(g,o.walkTokens);let v=(o.hooks?o.hooks.provideParser(r):r?Tl.parse:Tl.parseInline)(g,o);return o.hooks&&(v=o.hooks.postprocess(v)),v}catch(g){return m(g)}}}onError(r,u){return s=>{if(s.message+=`
|
|
229
|
+
Please report this to https://github.com/markedjs/marked.`,r){let a="<p>An error occurred:</p><pre>"+Hl(s.message+"",!0)+"</pre>";return u?Promise.resolve(a):a}if(u)return Promise.reject(s);throw s}}},ba=new mv;function qe(r,u){return ba.parse(r,u)}qe.options=qe.setOptions=function(r){return ba.setOptions(r),qe.defaults=ba.defaults,bm(qe.defaults),qe};qe.getDefaults=Rf;qe.defaults=ya;function gv(...r){return ba.use(...r),qe.defaults=ba.defaults,bm(qe.defaults),qe}qe.use=gv;qe.walkTokens=function(r,u){return ba.walkTokens(r,u)};qe.parseInline=ba.parseInline;qe.Parser=Tl;qe.parser=Tl.parse;qe.Renderer=Qc;qe.TextRenderer=Hf;qe.Lexer=Sl;qe.lexer=Sl.lex;qe.Tokenizer=Xc;qe.Hooks=Su;qe.parse=qe;qe.options;qe.setOptions;qe.walkTokens;qe.parseInline;Tl.parse;Sl.lex;qe.setOptions({gfm:!0,breaks:!1});function Zc({text:r,className:u}){const s=Ce.useMemo(()=>{const a=qe.parse(r??"",{async:!1});return vy.sanitize(a)},[r]);return r!=null&&r.trim()?z.jsx("div",{className:`md ${u??""}`,dangerouslySetInnerHTML:{__html:s}}):null}function bv({patch:r,comments:u,renderComment:s}){const a=Ce.useMemo(()=>r.trim()?_0(r,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[r]),o=Ce.useRef(null),[m,g]=Ce.useState([]);if(Ce.useEffect(()=>{var N,D;const d=o.current;if(!d)return;d.innerHTML=a;const p=new Map;for(const A of d.querySelectorAll(".d2h-file-wrapper")){const Y=(D=(N=A.querySelector(".d2h-file-name"))==null?void 0:N.textContent)==null?void 0:D.trim();Y&&p.set(Y,A)}const S=[],_=new Map;for(const A of u){if(A.line==null)continue;const Y=p.get(A.path);if(!Y)continue;const B=Array.from(Y.querySelectorAll(".d2h-diff-tbody > tr")).find(W=>{var I,ce;return((ce=(I=W.querySelector(".line-num2"))==null?void 0:I.textContent)==null?void 0:ce.trim())===String(A.line)});if(!B)continue;const K=document.createElement("tr");K.className="inline-comment-row";const P=document.createElement("td");P.colSpan=2;const X=document.createElement("div");P.appendChild(X),K.appendChild(P),(_.get(B)??B).after(K),_.set(B,K),S.push({id:A.id,el:X})}g(S)},[a,u]),!a)return z.jsx("p",{className:"muted",children:"No diff for this chapter."});const v=u.filter(d=>!m.some(p=>p.id===d.id));return z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"diff",ref:o}),m.map(({id:d,el:p})=>{const S=u.find(_=>_.id===d);return S?N0.createPortal(s(S),p,d):null}),v.map(d=>s(d))]})}function zm({comment:r,onUpdate:u,onDelete:s,readOnly:a}){const[o,m]=Ce.useState(!1),[g,v]=Ce.useState(r.body);return z.jsxs("div",{className:`comment comment-${r.status}`,children:[z.jsxs("div",{className:"comment-loc",children:[r.path,r.line!=null?`:${r.line}`:""," ",z.jsxs("span",{className:"muted",children:["(",r.origin,")"]}),r.status==="dropped"&&z.jsx("span",{className:"badge badge-muted",children:" dropped"}),r.status==="approved"&&z.jsx("span",{className:"badge badge-green",children:" approved"}),r.drifted&&z.jsxs("span",{className:"badge badge-warn",title:"The code this comment points at changed in a newer commit. It will post in the review body instead of inline.",children:[" ","code changed — posts in body"]}),!r.drifted&&r.originalLine!=null&&r.originalLine!==r.line&&z.jsxs("span",{className:"muted",title:"This comment followed its code to a new line.",children:[" (was :",r.originalLine,")"]}),!a&&z.jsx("span",{className:"comment-actions",children:o?z.jsxs(z.Fragment,{children:[z.jsx("button",{onClick:()=>{u({body:g}),m(!1)},children:"save"}),z.jsx("button",{onClick:()=>{v(r.body),m(!1)},children:"cancel"})]}):z.jsxs(z.Fragment,{children:[z.jsx("button",{onClick:()=>m(!0),children:"edit"}),r.status!=="approved"&&z.jsx("button",{onClick:()=>u({status:"approved"}),children:"approve"}),r.status!=="dropped"?z.jsx("button",{onClick:()=>u({status:"dropped"}),children:"drop"}):z.jsx("button",{onClick:()=>u({status:"draft"}),children:"restore"}),z.jsx("button",{onClick:s,children:"delete"})]})})]}),o?z.jsx("textarea",{className:"comment-edit",value:g,onChange:d=>v(d.target.value),rows:Math.max(3,g.split(`
|
|
230
|
+
`).length)}):z.jsx(Zc,{className:"comment-body",text:r.body})]})}function yv({files:r,chapterId:u,onAdd:s}){const[a,o]=Ce.useState(!1),[m,g]=Ce.useState(r[0]??""),[v,d]=Ce.useState(""),[p,S]=Ce.useState("");return a?z.jsxs("div",{className:"add-comment",children:[z.jsxs("div",{className:"add-comment-row",children:[z.jsx("select",{value:m,onChange:_=>g(_.target.value),children:r.map(_=>z.jsx("option",{value:_,children:_},_))}),z.jsx("input",{placeholder:"line (optional)",value:v,onChange:_=>d(_.target.value.replace(/\D/g,"")),size:12})]}),z.jsx("textarea",{placeholder:"Your comment…",value:p,onChange:_=>S(_.target.value),rows:3}),z.jsxs("div",{className:"add-comment-row",children:[z.jsx("button",{disabled:!p.trim()||!m,onClick:()=>{s({path:m,line:v?Number(v):null,body:p.trim(),chapterId:u}),S(""),d(""),o(!1)},children:"add"}),z.jsx("button",{onClick:()=>o(!1),children:"cancel"})]})]}):z.jsx("button",{className:"add-comment-btn",onClick:()=>o(!0),children:"+ add comment"})}function im({chapter:r,diff:u,comments:s,onUpdateComment:a,onDeleteComment:o,onAddComment:m,readOnly:g}){const[v,d]=Ce.useState(!0),p=Ce.useMemo(()=>z0(u,r.files),[u,r.files]),S=Ce.useMemo(()=>R0(p),[p]),_=s.filter(A=>{var Y;return A.line!=null&&((Y=S.get(A.path))==null?void 0:Y.has(A.line))}),N=s.filter(A=>!_.includes(A)),D=A=>z.jsx(zm,{comment:A,onUpdate:Y=>a(A.id,Y),onDelete:()=>o(A.id),readOnly:g},A.id);return z.jsxs("section",{className:"chapter",children:[z.jsxs("h3",{onClick:()=>d(!v),className:`chapter-title${v?" chapter-title-open":""}`,children:[v?"▾":"▸"," ",r.title," ",z.jsxs("span",{className:"muted",children:["(",r.files.length," file",r.files.length===1?"":"s",s.length>0?`, ${s.length} comment${s.length===1?"":"s"}`:"",")"]})]}),v&&z.jsxs(z.Fragment,{children:[z.jsx(Zc,{className:"chapter-explanation",text:r.explanation}),N.map(D),!g&&r.files.length>0&&z.jsx(yv,{files:r.files,chapterId:r.id,onAdd:m}),z.jsx(bv,{patch:p,comments:_,renderComment:D})]})]})}function vv({artifact:r,reviewKey:u,onSent:s}){var A,Y;const a=((A=r.verdict)==null?void 0:A.recommendation)==="approve"?"APPROVE":((Y=r.verdict)==null?void 0:Y.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT",[o,m]=Ce.useState(a),[g,v]=Ce.useState(null),[d,p]=Ce.useState(!1),[S,_]=Ce.useState(!1),[N,D]=Ce.useState(null);return Ce.useEffect(()=>{j0(u,o).then(v).catch(B=>D(String(B)))},[u,o,r]),r.sent?z.jsxs("div",{className:"send-panel sent",children:["✔ Review sent (",r.sent.event,r.sent.auto?", auto-sent by daemon":"",") at"," ",new Date(r.sent.at).toLocaleString(),r.sent.url&&z.jsxs(z.Fragment,{children:[" — ",z.jsx("a",{href:r.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]}):z.jsxs("div",{className:"send-panel",children:[z.jsxs("div",{className:"send-head",children:[z.jsx("h2",{children:"Send to GitHub"}),z.jsx("span",{className:"muted",children:"the send button posts straight away · dropped comments stay local · off-diff comments fold into the body"})]}),z.jsxs("div",{className:"send-controls",children:[z.jsxs("label",{className:"send-as",children:["Send as",z.jsxs("select",{value:o,onChange:B=>m(B.target.value),children:[z.jsx("option",{value:"COMMENT",children:"Comment"}),z.jsx("option",{value:"APPROVE",children:"Approve"}),z.jsx("option",{value:"REQUEST_CHANGES",children:"Request changes"})]})]}),g&&z.jsxs("span",{className:"muted",children:[g.comments.length," inline comment",g.comments.length===1?"":"s",g.folded.length>0&&z.jsxs(z.Fragment,{children:[" + ",g.folded.length," folded into body"]})]}),z.jsx("span",{className:"send-spacer"}),z.jsxs("button",{onClick:()=>p(!d),children:[d?"hide":"preview"," body"]}),z.jsx("a",{href:q0(u),className:"export-link",children:"export .md"}),z.jsx("button",{className:"send-btn",disabled:S,onClick:async()=>{_(!0),D(null);try{const B=await B0(u,o);s(B)}catch(B){D(String(B))}finally{_(!1)}},children:S?"Sending…":`Send ${o} to #${r.pr.number}`})]}),N&&z.jsx("p",{className:"error",children:N}),d&&g&&z.jsx("pre",{className:"body-preview",children:g.body})]})}function Sv({artifact:r,freshness:u,rerunning:s,onRerun:a}){const o=r.status==="running",m=(u==null?void 0:u.prState)??r.pr.state,g=m==="CLOSED"||m==="MERGED",v=r.refresh,d=u!=null&&u.changed?v:null;return o?z.jsxs("div",{className:"freshness freshness-running",children:[z.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]}):!g&&!d?null:z.jsxs("div",{className:"freshness",children:[g&&z.jsxs("div",{children:[z.jsxs("strong",{children:["This PR is ",m==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),d&&z.jsxs("div",{children:[z.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",z.jsx("code",{children:d.toSha.slice(0,7)}),", reviewed at"," ",z.jsx("code",{children:d.fromSha.slice(0,7)}),"."," ",d.moved>0&&z.jsxs(z.Fragment,{children:[d.moved," comment(s) followed the code. "]}),d.drifted>0&&z.jsxs(z.Fragment,{children:[d.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!r.sent&&z.jsx("button",{className:"rerun-btn",disabled:s,onClick:a,children:s?"starting…":"Re-review at the new head"})]})]})}function Tv({reviewKey:r}){var K,P;const[u,s]=Ce.useState(null),[a,o]=Ce.useState(null),[m,g]=Ce.useState(null),[v,d]=Ce.useState(!1);if(Ce.useEffect(()=>{let X=!1;return g(null),Hp(r).then(W=>{if(!X)return s(W),H0(r).then(I=>{X||(g(I),I.changed&&s(I.artifact))})}).catch(W=>!X&&o(String(W))),()=>{X=!0}},[r]),Ce.useEffect(()=>{if((u==null?void 0:u.status)!=="running")return;const X=setInterval(()=>{Hp(r).then(W=>{s(W),W.status!=="running"&&d(!1)}).catch(()=>{})},3e3);return()=>clearInterval(X)},[u==null?void 0:u.status,r]),a)return z.jsx("p",{className:"error",children:a});if(!u)return z.jsx("p",{className:"muted",children:"Loading…"});const p=()=>{d(!0),o(null),k0(r).then(s).catch(X=>{o(String(X)),d(!1)})},S=u.sent!=null,_=X=>X.then(s).catch(W=>o(String(W))),N=(X,W)=>_(w0(r,X,W)),D=X=>_(L0(r,X)),A=X=>_(U0(r,X)),Y=D0(u.diff,u.chapters),B=u.comments.filter(X=>!X.chapterId||!u.chapters.some(W=>W.id===X.chapterId));return z.jsxs("div",{className:"detail",children:[z.jsx("a",{href:"#/",className:"back",children:"← queue"}),z.jsxs("h1",{children:[z.jsx("a",{href:u.pr.url,target:"_blank",rel:"noreferrer",children:u.id})," ",u.pr.title]}),z.jsxs("p",{className:"muted",children:[u.pr.author," · ",u.pr.headRefName," → ",u.pr.baseRefName," ·"," ",u.pr.changedFiles,"f ",z.jsxs("span",{className:"add",children:["+",u.pr.additions]})," ",z.jsxs("span",{className:"del",children:["-",u.pr.deletions]}),((K=u.run)==null?void 0:K.costUsd)!=null&&z.jsxs(z.Fragment,{children:[" · review cost $",u.run.costUsd.toFixed(2)]})," · status: ",z.jsx("strong",{children:u.status})]}),u.verdict&&z.jsxs("div",{className:`verdict verdict-${u.verdict.recommendation}`,children:[z.jsx("strong",{children:u.verdict.recommendation.replace("_"," ")})," · confidence"," ",u.verdict.confidence,"%",!S&&z.jsxs("select",{className:"verdict-override",value:u.verdict.recommendation,onChange:X=>_(ff(r,{verdictRecommendation:X.target.value})),children:[z.jsx("option",{value:"approve",children:"approve"}),z.jsx("option",{value:"comment",children:"comment"}),z.jsx("option",{value:"request_changes",children:"request changes"})]}),z.jsx(Zc,{text:u.verdict.reasoning})]}),z.jsx(Sv,{artifact:u,freshness:m,rerunning:v,onRerun:p}),((P=u.run)==null?void 0:P.error)&&z.jsxs("div",{className:"error",children:["Run failed: ",u.run.error]}),z.jsxs("section",{className:"summary",children:[z.jsx("h2",{children:"Summary"}),z.jsx(Zc,{className:"summary-body",text:u.summary||"(no summary)"})]}),z.jsx("h2",{children:"Walkthrough"}),u.chapters.map(X=>z.jsx(im,{chapter:X,diff:u.diff,comments:u.comments.filter(W=>W.chapterId===X.id),onUpdateComment:N,onDeleteComment:D,onAddComment:A,readOnly:S},X.id)),Y.length>0&&z.jsx(im,{chapter:{id:"__other",title:"Other changes",explanation:"Files not assigned to any chapter by the AI.",files:Y},diff:u.diff,comments:[],onUpdateComment:N,onDeleteComment:D,onAddComment:A,readOnly:S}),B.length>0&&z.jsxs("section",{className:"chapter",children:[z.jsx("h3",{children:"Unattached comments"}),B.map(X=>z.jsx(zm,{comment:X,onUpdate:W=>N(X.id,W),onDelete:()=>D(X.id),readOnly:S},X.id))]}),z.jsx(vv,{artifact:u,reviewKey:r,onSent:s}),!S&&z.jsxs("p",{className:"muted post-actions",children:["Or set the local queue status without sending anything:"," ",z.jsx("button",{onClick:()=>_(ff(r,{status:"reviewed"})),children:"mark reviewed"})," ",z.jsx("button",{onClick:()=>_(ff(r,{status:"skipped"})),children:"skip"})]})]})}const gf=["ready","running","awaiting","reviewed","failed","sent","skipped"];function Ev({verdict:r}){if(!r)return z.jsx("span",{className:"badge badge-muted",children:"—"});const u={approve:"badge-green",comment:"badge-yellow",request_changes:"badge-red"}[r.recommendation];return z.jsxs("span",{className:`badge ${u}`,title:r.reasoning,children:[r.recommendation.replace("_"," ")," · ",r.confidence,"%"]})}function Av({daemon:r}){return r!=null&&r.enabled?z.jsxs("div",{className:"daemon-strip",children:[z.jsxs("span",{children:["🟢 daemon polling every ",Math.round(r.intervalMs/6e4),"m",r.repos.length>0?` (${r.repos.join(", ")})`:" (all repos)"]}),z.jsx("span",{children:r.autoSend==="on"?`🤖 auto-send ON ≥${r.autoSendThreshold}% (${r.autoSent} sent)`:`👻 auto-send shadow ≥${r.autoSendThreshold}% (${r.autoSendCandidates} candidate${r.autoSendCandidates===1?"":"s"})`}),r.polling&&z.jsx("span",{children:"⏳ polling now…"}),r.lastSummary&&z.jsxs("span",{className:"muted",children:["last: ",r.lastSummary]}),r.nextPollAt&&!r.polling&&z.jsxs("span",{className:"muted",children:["next: ",new Date(r.nextPollAt).toLocaleTimeString()]})]}):null}function xv(){const[r,u]=Ce.useState(null),[s,a]=Ce.useState(null),[o,m]=Ce.useState(null);if(Ce.useEffect(()=>{let p=!0;const S=()=>{M0().then(N=>p&&u(N)).catch(N=>p&&m(String(N))),C0().then(N=>p&&a(N)).catch(()=>{})};S();const _=setInterval(S,1e4);return()=>{p=!1,clearInterval(_)}},[]),o)return z.jsx("p",{className:"error",children:o});if(!r)return z.jsx("p",{className:"muted",children:"Loading…"});if(r.length===0)return z.jsxs("div",{className:"empty",children:[z.jsx("p",{children:"No reviews yet."}),z.jsx("pre",{children:"cerber review https://github.com/owner/repo/pull/123"})]});const g=[...r].sort((p,S)=>gf.indexOf(p.status)-gf.indexOf(S.status)||S.updatedAt.localeCompare(p.updatedAt)),v=r.reduce((p,S)=>(p[S.status]=(p[S.status]??0)+1,p),{}),d=r.reduce((p,S)=>p+(S.costUsd??0),0);return z.jsxs(z.Fragment,{children:[z.jsx(Av,{daemon:s}),z.jsxs("div",{className:"queue-stats",children:[gf.filter(p=>v[p]).map(p=>z.jsxs("span",{className:`status status-${p}`,children:[p,": ",v[p]]},p)),d>0&&z.jsxs("span",{className:"muted",children:["total review cost $",d.toFixed(2)]})]}),z.jsxs("table",{className:"queue",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{children:"Status"}),z.jsx("th",{children:"PR"}),z.jsx("th",{children:"Verdict"}),z.jsx("th",{children:"Comments"}),z.jsx("th",{children:"Size"}),z.jsx("th",{children:"Updated"})]})}),z.jsx("tbody",{children:g.map(p=>z.jsxs("tr",{children:[z.jsx("td",{children:z.jsx("span",{className:`status status-${p.status}`,children:p.status})}),z.jsxs("td",{children:[z.jsxs("a",{href:`#/r/${encodeURIComponent(p.key)}`,className:"pr-link",children:[p.pr.owner,"/",p.pr.repo,"#",p.pr.number]})," ",z.jsx("span",{className:"pr-title",children:p.pr.title}),z.jsxs("span",{className:"muted",children:[" by ",p.pr.author]})]}),z.jsx("td",{children:z.jsx(Ev,{verdict:p.verdict})}),z.jsx("td",{children:p.commentCount}),z.jsxs("td",{className:"muted",children:[p.pr.changedFiles,"f ",z.jsxs("span",{className:"add",children:["+",p.pr.additions]})," ",z.jsxs("span",{className:"del",children:["-",p.pr.deletions]})]}),z.jsx("td",{className:"muted",children:new Date(p.updatedAt).toLocaleString()})]},p.key))})]})]})}function um(){const u=window.location.hash.match(/^#\/r\/(.+)$/);return u?{view:"detail",key:decodeURIComponent(u[1])}:{view:"queue"}}function _v(){const[r,u]=Ce.useState(um());return Ce.useEffect(()=>{const s=()=>u(um());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),z.jsxs("div",{className:"app",children:[z.jsxs("header",{className:"topbar",children:[z.jsx("a",{href:"#/",className:"brand",children:"🐕 cerber"}),z.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"})]}),r.view==="queue"?z.jsx(xv,{}):z.jsx(Tv,{reviewKey:r.key})]})}Yb.createRoot(document.getElementById("root")).render(z.jsx(Hb.StrictMode,{children:z.jsx(_v,{})}));
|