@fullstackhouse/cerber 0.36.0 → 0.37.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.
@@ -1,241 +0,0 @@
1
- var EE=Object.defineProperty;var _E=(s,a,r)=>a in s?EE(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r;var xt=(s,a,r)=>_E(s,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function Tb(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var yu={exports:{}},ks={};/**
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 Um;function SE(){if(Um)return ks;Um=1;var s=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(l,u,d){var p=null;if(d!==void 0&&(p=""+d),u.key!==void 0&&(p=""+u.key),"key"in u){d={};for(var y in u)y!=="key"&&(d[y]=u[y])}else d=u;return u=d.ref,{$$typeof:s,type:l,key:p,ref:u!==void 0?u:null,props:d}}return ks.Fragment=a,ks.jsx=r,ks.jsxs=r,ks}var jm;function NE(){return jm||(jm=1,yu.exports=SE()),yu.exports}var f=NE(),vu={exports:{}},qe={};/**
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 Bm;function TE(){if(Bm)return qe;Bm=1;var s=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function w(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,x={};function k(S,D,H){this.props=S,this.context=D,this.refs=x,this.updater=H||T}k.prototype.isReactComponent={},k.prototype.setState=function(S,D){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,D,"setState")},k.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=k.prototype;function L(S,D,H){this.props=S,this.context=D,this.refs=x,this.updater=H||T}var le=L.prototype=new I;le.constructor=L,A(le,k.prototype),le.isPureReactComponent=!0;var K=Array.isArray;function P(){}var ne={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function z(S,D,H){var ue=H.ref;return{$$typeof:s,type:S,key:D,ref:ue!==void 0?ue:null,props:H}}function X(S,D){return z(S.type,D,S.props)}function q(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function de(S){var D={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(H){return D[H]})}var he=/\/+/g;function _e(S,D){return typeof S=="object"&&S!==null&&S.key!=null?de(""+S.key):D.toString(36)}function pe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(P,P):(S.status="pending",S.then(function(D){S.status==="pending"&&(S.status="fulfilled",S.value=D)},function(D){S.status==="pending"&&(S.status="rejected",S.reason=D)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function j(S,D,H,ue,J){var be=typeof S;(be==="undefined"||be==="boolean")&&(S=null);var ge=!1;if(S===null)ge=!0;else switch(be){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(S.$$typeof){case s:case a:ge=!0;break;case b:return ge=S._init,j(ge(S._payload),D,H,ue,J)}}if(ge)return J=J(S),ge=ue===""?"."+_e(S,0):ue,K(J)?(H="",ge!=null&&(H=ge.replace(he,"$&/")+"/"),j(J,D,H,"",function($e){return $e})):J!=null&&(q(J)&&(J=X(J,H+(J.key==null||S&&S.key===J.key?"":(""+J.key).replace(he,"$&/")+"/")+ge)),D.push(J)),1;ge=0;var Le=ue===""?".":ue+":";if(K(S))for(var ze=0;ze<S.length;ze++)ue=S[ze],be=Le+_e(ue,ze),ge+=j(ue,D,H,be,J);else if(ze=w(S),typeof ze=="function")for(S=ze.call(S),ze=0;!(ue=S.next()).done;)ue=ue.value,be=Le+_e(ue,ze++),ge+=j(ue,D,H,be,J);else if(be==="object"){if(typeof S.then=="function")return j(pe(S),D,H,ue,J);throw D=String(S),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ge}function ae(S,D,H){if(S==null)return S;var ue=[],J=0;return j(S,ue,"","",function(be){return D.call(H,be,J++)}),ue}function ce(S){if(S._status===-1){var D=S._result;D=D(),D.then(function(H){(S._status===0||S._status===-1)&&(S._status=1,S._result=H)},function(H){(S._status===0||S._status===-1)&&(S._status=2,S._result=H)}),S._status===-1&&(S._status=0,S._result=D)}if(S._status===1)return S._result.default;throw S._result}var ve=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Se={map:ae,forEach:function(S,D,H){ae(S,function(){D.apply(this,arguments)},H)},count:function(S){var D=0;return ae(S,function(){D++}),D},toArray:function(S){return ae(S,function(D){return D})||[]},only:function(S){if(!q(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return qe.Activity=v,qe.Children=Se,qe.Component=k,qe.Fragment=r,qe.Profiler=u,qe.PureComponent=L,qe.StrictMode=l,qe.Suspense=g,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,qe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return ne.H.useMemoCache(S)}},qe.cache=function(S){return function(){return S.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(S,D,H){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ue=A({},S.props),J=S.key;if(D!=null)for(be in D.key!==void 0&&(J=""+D.key),D)!C.call(D,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&D.ref===void 0||(ue[be]=D[be]);var be=arguments.length-2;if(be===1)ue.children=H;else if(1<be){for(var ge=Array(be),Le=0;Le<be;Le++)ge[Le]=arguments[Le+2];ue.children=ge}return z(S.type,J,ue)},qe.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},qe.createElement=function(S,D,H){var ue,J={},be=null;if(D!=null)for(ue in D.key!==void 0&&(be=""+D.key),D)C.call(D,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(J[ue]=D[ue]);var ge=arguments.length-2;if(ge===1)J.children=H;else if(1<ge){for(var Le=Array(ge),ze=0;ze<ge;ze++)Le[ze]=arguments[ze+2];J.children=Le}if(S&&S.defaultProps)for(ue in ge=S.defaultProps,ge)J[ue]===void 0&&(J[ue]=ge[ue]);return z(S,be,J)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(S){return{$$typeof:y,render:S}},qe.isValidElement=q,qe.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ce}},qe.memo=function(S,D){return{$$typeof:m,type:S,compare:D===void 0?null:D}},qe.startTransition=function(S){var D=ne.T,H={};ne.T=H;try{var ue=S(),J=ne.S;J!==null&&J(H,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(P,ve)}catch(be){ve(be)}finally{D!==null&&H.types!==null&&(D.types=H.types),ne.T=D}},qe.unstable_useCacheRefresh=function(){return ne.H.useCacheRefresh()},qe.use=function(S){return ne.H.use(S)},qe.useActionState=function(S,D,H){return ne.H.useActionState(S,D,H)},qe.useCallback=function(S,D){return ne.H.useCallback(S,D)},qe.useContext=function(S){return ne.H.useContext(S)},qe.useDebugValue=function(){},qe.useDeferredValue=function(S,D){return ne.H.useDeferredValue(S,D)},qe.useEffect=function(S,D){return ne.H.useEffect(S,D)},qe.useEffectEvent=function(S){return ne.H.useEffectEvent(S)},qe.useId=function(){return ne.H.useId()},qe.useImperativeHandle=function(S,D,H){return ne.H.useImperativeHandle(S,D,H)},qe.useInsertionEffect=function(S,D){return ne.H.useInsertionEffect(S,D)},qe.useLayoutEffect=function(S,D){return ne.H.useLayoutEffect(S,D)},qe.useMemo=function(S,D){return ne.H.useMemo(S,D)},qe.useOptimistic=function(S,D){return ne.H.useOptimistic(S,D)},qe.useReducer=function(S,D,H){return ne.H.useReducer(S,D,H)},qe.useRef=function(S){return ne.H.useRef(S)},qe.useState=function(S){return ne.H.useState(S)},qe.useSyncExternalStore=function(S,D,H){return ne.H.useSyncExternalStore(S,D,H)},qe.useTransition=function(){return ne.H.useTransition()},qe.version="19.2.8",qe}var Im;function qf(){return Im||(Im=1,vu.exports=TE()),vu.exports}var Z=qf();const wE=Tb(Z);var Eu={exports:{}},Cs={},_u={exports:{}},Su={};/**
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 Hm;function xE(){return Hm||(Hm=1,(function(s){function a(j,ae){var ce=j.length;j.push(ae);e:for(;0<ce;){var ve=ce-1>>>1,Se=j[ve];if(0<u(Se,ae))j[ve]=ae,j[ce]=Se,ce=ve;else break e}}function r(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var ae=j[0],ce=j.pop();if(ce!==ae){j[0]=ce;e:for(var ve=0,Se=j.length,S=Se>>>1;ve<S;){var D=2*(ve+1)-1,H=j[D],ue=D+1,J=j[ue];if(0>u(H,ce))ue<Se&&0>u(J,H)?(j[ve]=J,j[ue]=ce,ve=ue):(j[ve]=H,j[D]=ce,ve=D);else if(ue<Se&&0>u(J,ce))j[ve]=J,j[ue]=ce,ve=ue;else break e}}return ae}function u(j,ae){var ce=j.sortIndex-ae.sortIndex;return ce!==0?ce:j.id-ae.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var p=Date,y=p.now();s.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,_=3,w=!1,T=!1,A=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function le(j){for(var ae=r(m);ae!==null;){if(ae.callback===null)l(m);else if(ae.startTime<=j)l(m),ae.sortIndex=ae.expirationTime,a(g,ae);else break;ae=r(m)}}function K(j){if(A=!1,le(j),!T)if(r(g)!==null)T=!0,P||(P=!0,de());else{var ae=r(m);ae!==null&&pe(K,ae.startTime-j)}}var P=!1,ne=-1,C=5,z=-1;function X(){return x?!0:!(s.unstable_now()-z<C)}function q(){if(x=!1,P){var j=s.unstable_now();z=j;var ae=!0;try{e:{T=!1,A&&(A=!1,I(ne),ne=-1),w=!0;var ce=_;try{t:{for(le(j),v=r(g);v!==null&&!(v.expirationTime>j&&X());){var ve=v.callback;if(typeof ve=="function"){v.callback=null,_=v.priorityLevel;var Se=ve(v.expirationTime<=j);if(j=s.unstable_now(),typeof Se=="function"){v.callback=Se,le(j),ae=!0;break t}v===r(g)&&l(g),le(j)}else l(g);v=r(g)}if(v!==null)ae=!0;else{var S=r(m);S!==null&&pe(K,S.startTime-j),ae=!1}}break e}finally{v=null,_=ce,w=!1}ae=void 0}}finally{ae?de():P=!1}}}var de;if(typeof L=="function")de=function(){L(q)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,_e=he.port2;he.port1.onmessage=q,de=function(){_e.postMessage(null)}}else de=function(){k(q,0)};function pe(j,ae){ne=k(function(){j(s.unstable_now())},ae)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(j){j.callback=null},s.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<j?Math.floor(1e3/j):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_next=function(j){switch(_){case 1:case 2:case 3:var ae=3;break;default:ae=_}var ce=_;_=ae;try{return j()}finally{_=ce}},s.unstable_requestPaint=function(){x=!0},s.unstable_runWithPriority=function(j,ae){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var ce=_;_=j;try{return ae()}finally{_=ce}},s.unstable_scheduleCallback=function(j,ae,ce){var ve=s.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?ve+ce:ve):ce=ve,j){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=ce+Se,j={id:b++,callback:ae,priorityLevel:j,startTime:ce,expirationTime:Se,sortIndex:-1},ce>ve?(j.sortIndex=ce,a(m,j),r(g)===null&&j===r(m)&&(A?(I(ne),ne=-1):A=!0,pe(K,ce-ve))):(j.sortIndex=Se,a(g,j),T||w||(T=!0,P||(P=!0,de()))),j},s.unstable_shouldYield=X,s.unstable_wrapCallback=function(j){var ae=_;return function(){var ce=_;_=ae;try{return j.apply(this,arguments)}finally{_=ce}}}})(Su)),Su}var qm;function AE(){return qm||(qm=1,_u.exports=xE()),_u.exports}var Nu={exports:{}},Cn={};/**
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 Gm;function RE(){if(Gm)return Cn;Gm=1;var s=qf();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(g,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Cn.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return d(g,m,null,b)},Cn.flushSync=function(g){var m=p.T,b=l.p;try{if(p.T=null,l.p=2,g)return g()}finally{p.T=m,l.p=b,l.d.f()}},Cn.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(g,m))},Cn.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},Cn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?l.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:w}):b==="script"&&l.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Cn.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);l.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(g)},Cn.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin);l.d.L(g,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Cn.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=y(m.as,m.crossOrigin);l.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(g)},Cn.requestFormReset=function(g){l.d.r(g)},Cn.unstable_batchedUpdates=function(g,m){return g(m)},Cn.useFormState=function(g,m,b){return p.H.useFormState(g,m,b)},Cn.useFormStatus=function(){return p.H.useHostTransitionStatus()},Cn.version="19.2.8",Cn}var $m;function wb(){if($m)return Nu.exports;$m=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(a){console.error(a)}}return s(),Nu.exports=RE(),Nu.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 Ym;function OE(){if(Ym)return Cs;Ym=1;var s=AE(),a=qf(),r=wb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(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 y(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 g(e){if(d(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===i)return g(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==i.return)n=o,i=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,i=c;break}if(E===i){h=!0,i=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,i=o;break}if(E===i){h=!0,i=c,n=o;break}E=E.sibling}if(!h)throw Error(l(189))}}if(n.alternate!==i)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function _e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case k:return"Profiler";case x:return"StrictMode";case K:return"Suspense";case P:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case L:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:_e(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var pe=Array.isArray,j=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ve=[],Se=-1;function S(e){return{current:e}}function D(e){0>Se||(e.current=ve[Se],ve[Se]=null,Se--)}function H(e,t){Se++,ve[Se]=e.current,e.current=t}var ue=S(null),J=S(null),be=S(null),ge=S(null);function Le(e,t){switch(H(be,t),H(J,e),H(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lm(t),e=sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(ue),H(ue,e)}function ze(){D(ue),D(J),D(be)}function $e(e){e.memoizedState!==null&&H(ge,e);var t=ue.current,n=sm(t,e.type);t!==n&&(H(J,e),H(ue,n))}function at(e){J.current===e&&(D(ue),D(J)),ge.current===e&&(D(ge),xs._currentValue=ce)}var Ce,Je;function Ge(e){if(Ce===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",Je=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ce+e+Je}var Xt=!1;function He(e,t){if(!e||Xt)return"";Xt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Q){var F=Q}Reflect.construct(e,[],se)}else{try{se.call()}catch(Q){F=Q}e.call(se.prototype)}}else{try{throw Error()}catch(Q){F=Q}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(Q){if(Q&&F&&typeof Q.stack=="string")return[Q.stack,F.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var R=h.split(`
44
- `),$=E.split(`
45
- `);for(o=i=0;i<R.length&&!R[i].includes("DetermineComponentFrameRoot");)i++;for(;o<$.length&&!$[o].includes("DetermineComponentFrameRoot");)o++;if(i===R.length||o===$.length)for(i=R.length-1,o=$.length-1;1<=i&&0<=o&&R[i]!==$[o];)o--;for(;1<=i&&0<=o;i--,o--)if(R[i]!==$[o]){if(i!==1||o!==1)do if(i--,o--,0>o||R[i]!==$[o]){var te=`
46
- `+R[i].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),te}while(1<=i&&0<=o);break}}}finally{Xt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ge(n):""}function ct(e,t){switch(e.tag){case 26:case 27:case 5:return Ge(e.type);case 16:return Ge("Lazy");case 13:return e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return He(e.type,!1);case 11:return He(e.type.render,!1);case 1:return He(e.type,!0);case 31:return Ge("Activity");default:return""}}function wn(e){try{var t="",n=null;do t+=ct(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
47
- Error generating stack: `+i.message+`
48
- `+i.stack}}var Qt=Object.prototype.hasOwnProperty,Dt=s.unstable_scheduleCallback,Ln=s.unstable_cancelCallback,sa=s.unstable_shouldYield,Qn=s.unstable_requestPaint,st=s.unstable_now,qt=s.unstable_getCurrentPriorityLevel,ut=s.unstable_ImmediatePriority,cn=s.unstable_UserBlockingPriority,xn=s.unstable_NormalPriority,An=s.unstable_LowPriority,zn=s.unstable_IdlePriority,Un=s.log,un=s.unstable_setDisableYieldValue,yn=null,Ut=null;function fn(e){if(typeof Un=="function"&&un(e),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(yn,e)}catch{}}var jt=Math.clz32?Math.clz32:Bn,ga=Math.log,jn=Math.LN2;function Bn(e){return e>>>=0,e===0?32:31-(ga(e)/jn|0)|0}var Ie=256,dn=262144,hn=4194304;function Gt(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 O(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=i&134217727;return E!==0?(i=E&~c,i!==0?o=Gt(i):(h&=E,h!==0?o=Gt(h):n||(n=E&~e,n!==0&&(o=Gt(n))))):(E=i&~c,E!==0?o=Gt(E):h!==0?o=Gt(h):n||(n=i&~e,n!==0&&(o=Gt(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function ee(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function me(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 Me(){var e=hn;return hn<<=1,(hn&62914560)===0&&(hn=4194304),e}function Ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,t,n,i,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,R=e.expirationTimes,$=e.hiddenUpdates;for(n=h&~n;0<n;){var te=31-jt(n),se=1<<te;E[te]=0,R[te]=-1;var F=$[te];if(F!==null)for($[te]=null,te=0;te<F.length;te++){var Q=F[te];Q!==null&&(Q.lane&=-536870913)}n&=~se}i!==0&&Ee(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Ee(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-jt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-jt(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Rt(e,t){var n=t&-t;return n=(n&42)!==0?1:bt(n),(n&(e.suspendedLanes|t))!==0?0:n}function bt(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 In(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vn(){var e=ae.p;return e!==0?e:(e=window.event,e===void 0?32:Om(e.type))}function ba(e,t){var n=ae.p;try{return ae.p=e,t()}finally{ae.p=n}}var rn=Math.random().toString(36).slice(2),Ot="__reactFiber$"+rn,Y="__reactProps$"+rn,re="__reactContainer$"+rn,we="__reactEvents$"+rn,mt="__reactListeners$"+rn,Bt="__reactHandles$"+rn,Rn="__reactResources$"+rn,$t="__reactMarker$"+rn;function $n(e){delete e[Ot],delete e[Y],delete e[we],delete e[mt],delete e[Bt]}function St(e){var t=e[Ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[re]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hm(e);e!==null;){if(n=e[Ot])return n;e=hm(e)}return t}e=n,n=e.parentNode}return null}function On(e){if(e=e[Ot]||e[re]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function xa(e){var t=e[Rn];return t||(t=e[Rn]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vt(e){e[$t]=!0}var Ua=new Set,Hn={};function ya(e,t){fe(e,t),fe(e+"Capture",t)}function fe(e,t){for(Hn[e]=t,e=0;e<t.length;e++)Ua.add(t[e])}var Oe=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]*$"),Pe={},ft={};function kt(e){return Qt.call(ft,e)?!0:Qt.call(Pe,e)?!1:Oe.test(e)?ft[e]=!0:(Pe[e]=!0,!1)}function Vt(e,t,n){if(kt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function pn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Yt(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ii(e){if(!e._valueTracker){var t=Lt(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function li(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Lt(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function ja(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 al=/[\n"\\]/g;function kn(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function si(e,t,n,i,o,c,h,E){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ri(e,h,dt(t)):n!=null?ri(e,h,dt(n)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+dt(E):e.removeAttribute("name")}function Ba(e,t,n,i,o,c,h,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ii(e);return}n=n!=null?""+dt(n):"",t=t!=null?""+dt(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ii(e)}function ri(e,t,n){t==="number"&&ja(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Jt(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&i&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ia(e,t,n){if(t!=null&&(t=""+dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+dt(n):""}function Aa(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(l(92));if(pe(i)){if(1<i.length)throw Error(l(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=dt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),ii(e)}function V(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var N=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 U(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||N.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function W(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&U(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&U(e,c,t[c])}function Te(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 Ae=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"]]),Be=/^[\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 We(e){return Be.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oe(){}var ye=null;function ke(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xe=null,Ve=null;function ra(e){var t=On(e);if(t&&(e=t.stateNode)){var n=e[Y]||null;e:switch(e=t.stateNode,t.type){case"input":if(si(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+kn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Y]||null;if(!o)throw Error(l(90));si(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&li(i)}break e;case"textarea":Ia(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var Gl=!1;function Fs(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var i=e(t);return i}finally{if(Gl=!1,(Xe!==null||Ve!==null)&&(Mr(),Xe&&(t=Xe,e=Ve,Ve=Xe=null,ra(t),e)))for(t=0;t<e.length;t++)ra(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Y]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yo=!1;if(Ha)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){yo=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{yo=!1}var oi=null,vo=null,Ks=null;function sd(){if(Ks)return Ks;var e,t=vo,n=t.length,i,o="value"in oi?oi.value:oi.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(i=1;i<=h&&t[n-i]===o[c-i];i++);return Ks=o.slice(e,1<i?1-i:void 0)}function Ps(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 Zs(){return!0}function rd(){return!1}function Yn(e){function t(n,i,o,c,h){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Zs:rd,this.isPropagationStopped=rd,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),t}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Yn(Ui),Fl=v({},Ui,{view:0,detail:0}),yy=Yn(Fl),Eo,_o,Kl,Qs=v({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,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!==Kl&&(Kl&&e.type==="mousemove"?(Eo=e.screenX-Kl.screenX,_o=e.screenY-Kl.screenY):_o=Eo=0,Kl=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),od=Yn(Qs),vy=v({},Qs,{dataTransfer:0}),Ey=Yn(vy),_y=v({},Fl,{relatedTarget:0}),So=Yn(_y),Sy=v({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),Ny=Yn(Sy),Ty=v({},Ui,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wy=Yn(Ty),xy=v({},Ui,{data:0}),cd=Yn(xy),Ay={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ry={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"},Oy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ky(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Oy[e])?!!t[e]:!1}function No(){return ky}var Cy=v({},Fl,{key:function(e){if(e.key){var t=Ay[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ps(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ry[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(e){return e.type==="keypress"?Ps(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ps(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),My=Yn(Cy),Dy=v({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=Yn(Dy),Ly=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),zy=Yn(Ly),Uy=v({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),jy=Yn(Uy),By=v({},Qs,{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}),Iy=Yn(By),Hy=v({},Ui,{newState:0,oldState:0}),qy=Yn(Hy),Gy=[9,13,27,32],To=Ha&&"CompositionEvent"in window,Pl=null;Ha&&"documentMode"in document&&(Pl=document.documentMode);var $y=Ha&&"TextEvent"in window&&!Pl,fd=Ha&&(!To||Pl&&8<Pl&&11>=Pl),dd=" ",hd=!1;function pd(e,t){switch(e){case"keyup":return Gy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function md(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function Yy(e,t){switch(e){case"compositionend":return md(t);case"keypress":return t.which!==32?null:(hd=!0,dd);case"textInput":return e=t.data,e===dd&&hd?null:e;default:return null}}function Fy(e,t){if(il)return e==="compositionend"||!To&&pd(e,t)?(e=sd(),Ks=vo=oi=null,il=!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 fd&&t.locale!=="ko"?null:t.data;default:return null}}var Ky={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 gd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ky[e.type]:t==="textarea"}function bd(e,t,n,i){Xe?Ve?Ve.push(i):Ve=[i]:Xe=i,t=Ir(t,"onChange"),0<t.length&&(n=new Xs("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function Py(e){Wp(e,0)}function Vs(e){var t=wa(e);if(li(t))return e}function yd(e,t){if(e==="change")return t}var vd=!1;if(Ha){var wo;if(Ha){var xo="oninput"in document;if(!xo){var Ed=document.createElement("div");Ed.setAttribute("oninput","return;"),xo=typeof Ed.oninput=="function"}wo=xo}else wo=!1;vd=wo&&(!document.documentMode||9<document.documentMode)}function _d(){Zl&&(Zl.detachEvent("onpropertychange",Sd),Xl=Zl=null)}function Sd(e){if(e.propertyName==="value"&&Vs(Xl)){var t=[];bd(t,Xl,e,ke(e)),Fs(Py,t)}}function Zy(e,t,n){e==="focusin"?(_d(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",Sd)):e==="focusout"&&_d()}function Xy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vs(Xl)}function Qy(e,t){if(e==="click")return Vs(t)}function Vy(e,t){if(e==="input"||e==="change")return Vs(t)}function Jy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:Jy;function Ql(e,t){if(Jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!Qt.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function Nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Td(e,t){var n=Nd(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nd(n)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ja(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ja(e.document)}return t}function Ao(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 Wy=Ha&&"documentMode"in document&&11>=document.documentMode,ll=null,Ro=null,Vl=null,Oo=!1;function Ad(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Oo||ll==null||ll!==ja(i)||(i=ll,"selectionStart"in i&&Ao(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Vl&&Ql(Vl,i)||(Vl=i,i=Ir(Ro,"onSelect"),0<i.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ll)))}function ji(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:ji("Animation","AnimationEnd"),animationiteration:ji("Animation","AnimationIteration"),animationstart:ji("Animation","AnimationStart"),transitionrun:ji("Transition","TransitionRun"),transitionstart:ji("Transition","TransitionStart"),transitioncancel:ji("Transition","TransitionCancel"),transitionend:ji("Transition","TransitionEnd")},ko={},Rd={};Ha&&(Rd=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Bi(e){if(ko[e])return ko[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rd)return ko[e]=t[n];return e}var Od=Bi("animationend"),kd=Bi("animationiteration"),Cd=Bi("animationstart"),ev=Bi("transitionrun"),tv=Bi("transitionstart"),nv=Bi("transitioncancel"),Md=Bi("transitionend"),Dd=new Map,Co="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(" ");Co.push("scrollEnd");function va(e,t){Dd.set(e,t),ya(t,[e])}var Js=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)},oa=[],rl=0,Mo=0;function Ws(){for(var e=rl,t=Mo=rl=0;t<e;){var n=oa[t];oa[t++]=null;var i=oa[t];oa[t++]=null;var o=oa[t];oa[t++]=null;var c=oa[t];if(oa[t++]=null,i!==null&&o!==null){var h=i.pending;h===null?o.next=o:(o.next=h.next,h.next=o),i.pending=o}c!==0&&Ld(n,o,c)}}function er(e,t,n,i){oa[rl++]=e,oa[rl++]=t,oa[rl++]=n,oa[rl++]=i,Mo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Do(e,t,n,i){return er(e,t,n,i),tr(e)}function Ii(e,t){return er(e,null,null,t),tr(e)}function Ld(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-jt(n),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),c):null}function tr(e){if(50<vs)throw vs=0,Gc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function av(e,t,n,i){this.tag=e,this.key=n,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(e,t,n,i){return new av(e,t,n,i)}function Lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=Wn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function zd(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nr(e,t,n,i,o,c){var h=0;if(i=e,typeof e=="function")Lo(e)&&(h=1);else if(typeof e=="string")h=oE(e,n,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=Wn(31,n,t,o),e.elementType=z,e.lanes=c,e;case A:return Hi(n.children,o,c,t);case x:h=8,o|=24;break;case k:return e=Wn(12,n,t,o|2),e.elementType=k,e.lanes=c,e;case K:return e=Wn(13,n,t,o),e.elementType=K,e.lanes=c,e;case P:return e=Wn(19,n,t,o),e.elementType=P,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:h=10;break e;case I:h=9;break e;case le:h=11;break e;case ne:h=14;break e;case C:h=16,i=null;break e}h=29,n=Error(l(130,e===null?"null":typeof e,"")),i=null}return t=Wn(h,n,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Hi(e,t,n,i){return e=Wn(7,e,i,t),e.lanes=n,e}function zo(e,t,n){return e=Wn(6,e,null,t),e.lanes=n,e}function Ud(e){var t=Wn(18,null,null,0);return t.stateNode=e,t}function Uo(e,t,n){return t=Wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jd=new WeakMap;function ca(e,t){if(typeof e=="object"&&e!==null){var n=jd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:wn(t)},jd.set(e,t),t)}return{value:e,source:t,stack:wn(t)}}var cl=[],ul=0,ar=null,Jl=0,ua=[],fa=0,ci=null,Ra=1,Oa="";function Ga(e,t){cl[ul++]=Jl,cl[ul++]=ar,ar=e,Jl=t}function Bd(e,t,n){ua[fa++]=Ra,ua[fa++]=Oa,ua[fa++]=ci,ci=e;var i=Ra;e=Oa;var o=32-jt(i)-1;i&=~(1<<o),n+=1;var c=32-jt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Ra=1<<32-jt(t)+o|n<<o|i,Oa=c+e}else Ra=1<<c|n<<o|i,Oa=e}function jo(e){e.return!==null&&(Ga(e,1),Bd(e,1,0))}function Bo(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Jl=cl[--ul],cl[ul]=null;for(;e===ci;)ci=ua[--fa],ua[fa]=null,Oa=ua[--fa],ua[fa]=null,Ra=ua[--fa],ua[fa]=null}function Id(e,t){ua[fa++]=Ra,ua[fa++]=Oa,ua[fa++]=ci,Ra=t.id,Oa=t.overflow,ci=e}var vn=null,Ct=null,rt=!1,ui=null,da=!1,Io=Error(l(519));function fi(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wl(ca(t,e)),Io}function Hd(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[Ot]=e,t[Y]=i,n){case"dialog":tt("cancel",t),tt("close",t);break;case"iframe":case"object":case"embed":tt("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)tt(_s[n],t);break;case"source":tt("error",t);break;case"img":case"image":case"link":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"input":tt("invalid",t),Ba(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":tt("invalid",t);break;case"textarea":tt("invalid",t),Aa(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||am(t.textContent,n)?(i.popover!=null&&(tt("beforetoggle",t),tt("toggle",t)),i.onScroll!=null&&tt("scroll",t),i.onScrollEnd!=null&&tt("scrollend",t),i.onClick!=null&&(t.onclick=oe),t=!0):t=!1,t||fi(e,!0)}function qd(e){for(vn=e.return;vn;)switch(vn.tag){case 5:case 31:case 13:da=!1;return;case 27:case 3:da=!0;return;default:vn=vn.return}}function fl(e){if(e!==vn)return!1;if(!rt)return qd(e),rt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||au(e.type,e.memoizedProps)),n=!n),n&&Ct&&fi(e),qd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ct=dm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ct=dm(e)}else t===27?(t=Ct,wi(e.type)?(e=ou,ou=null,Ct=e):Ct=t):Ct=vn?pa(e.stateNode.nextSibling):null;return!0}function qi(){Ct=vn=null,rt=!1}function Ho(){var e=ui;return e!==null&&(Zn===null?Zn=e:Zn.push.apply(Zn,e),ui=null),e}function Wl(e){ui===null?ui=[e]:ui.push(e)}var qo=S(null),Gi=null,$a=null;function di(e,t,n){H(qo,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=qo.current,D(qo)}function Go(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function $o(e,t,n,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var R=0;R<t.length;R++)if(E.context===t[R]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Go(c.return,n,e),i||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(l(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Go(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function dl(e,t,n,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var E=o.type;Jn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===ge.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&$o(t,e,n,i),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,$a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function En(e){return Gd(Gi,e)}function lr(e,t){return Gi===null&&$i(e),Gd(e,t)}function Gd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$a===null){if(e===null)throw Error(l(308));$a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $a=$a.next=t;return n}var iv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},lv=s.unstable_scheduleCallback,sv=s.unstable_NormalPriority,Wt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yo(){return{controller:new iv,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&lv(sv,function(){e.controller.abort()})}var ts=null,Fo=0,hl=0,pl=null;function rv(e,t){if(ts===null){var n=ts=[];Fo=0,hl=Zc(),pl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fo++,t.then($d,$d),t}function $d(){if(--Fo===0&&ts!==null){pl!==null&&(pl.status="fulfilled");var e=ts;ts=null,hl=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ov(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var Yd=j.S;j.S=function(e,t){Ap=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&rv(e,t),Yd!==null&&Yd(e,t)};var Yi=S(null);function Ko(){var e=Yi.current;return e!==null?e:At.pooledCache}function sr(e,t){t===null?H(Yi,Yi.current):H(Yi,t.pool)}function Fd(){var e=Ko();return e===null?null:{parent:Wt._currentValue,pool:e}}var ml=Error(l(460)),Po=Error(l(474)),rr=Error(l(542)),or={then:function(){}};function Kd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Pd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(oe,oe),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e;default:if(typeof t.status=="string")t.then(oe,oe);else{if(e=At,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e}throw Ki=t,ml}}function Fi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ki=n,ml):n}}var Ki=null;function Zd(){if(Ki===null)throw Error(l(459));var e=Ki;return Ki=null,e}function Xd(e){if(e===ml||e===rr)throw Error(l(483))}var gl=null,ns=0;function cr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),Pd(gl,e,t)}function as(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ur(e,t){throw t.$$typeof===_?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Qd(e){function t(B,M){if(e){var G=B.deletions;G===null?(B.deletions=[M],B.flags|=16):G.push(M)}}function n(B,M){if(!e)return null;for(;M!==null;)t(B,M),M=M.sibling;return null}function i(B){for(var M=new Map;B!==null;)B.key!==null?M.set(B.key,B):M.set(B.index,B),B=B.sibling;return M}function o(B,M){return B=qa(B,M),B.index=0,B.sibling=null,B}function c(B,M,G){return B.index=G,e?(G=B.alternate,G!==null?(G=G.index,G<M?(B.flags|=67108866,M):G):(B.flags|=67108866,M)):(B.flags|=1048576,M)}function h(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function E(B,M,G,ie){return M===null||M.tag!==6?(M=zo(G,B.mode,ie),M.return=B,M):(M=o(M,G),M.return=B,M)}function R(B,M,G,ie){var De=G.type;return De===A?te(B,M,G.props.children,ie,G.key):M!==null&&(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===C&&Fi(De)===M.type)?(M=o(M,G.props),as(M,G),M.return=B,M):(M=nr(G.type,G.key,G.props,null,B.mode,ie),as(M,G),M.return=B,M)}function $(B,M,G,ie){return M===null||M.tag!==4||M.stateNode.containerInfo!==G.containerInfo||M.stateNode.implementation!==G.implementation?(M=Uo(G,B.mode,ie),M.return=B,M):(M=o(M,G.children||[]),M.return=B,M)}function te(B,M,G,ie,De){return M===null||M.tag!==7?(M=Hi(G,B.mode,ie,De),M.return=B,M):(M=o(M,G),M.return=B,M)}function se(B,M,G){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=zo(""+M,B.mode,G),M.return=B,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case w:return G=nr(M.type,M.key,M.props,null,B.mode,G),as(G,M),G.return=B,G;case T:return M=Uo(M,B.mode,G),M.return=B,M;case C:return M=Fi(M),se(B,M,G)}if(pe(M)||de(M))return M=Hi(M,B.mode,G,null),M.return=B,M;if(typeof M.then=="function")return se(B,cr(M),G);if(M.$$typeof===L)return se(B,lr(B,M),G);ur(B,M)}return null}function F(B,M,G,ie){var De=M!==null?M.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return De!==null?null:E(B,M,""+G,ie);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case w:return G.key===De?R(B,M,G,ie):null;case T:return G.key===De?$(B,M,G,ie):null;case C:return G=Fi(G),F(B,M,G,ie)}if(pe(G)||de(G))return De!==null?null:te(B,M,G,ie,null);if(typeof G.then=="function")return F(B,M,cr(G),ie);if(G.$$typeof===L)return F(B,M,lr(B,G),ie);ur(B,G)}return null}function Q(B,M,G,ie,De){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return B=B.get(G)||null,E(M,B,""+ie,De);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:return B=B.get(ie.key===null?G:ie.key)||null,R(M,B,ie,De);case T:return B=B.get(ie.key===null?G:ie.key)||null,$(M,B,ie,De);case C:return ie=Fi(ie),Q(B,M,G,ie,De)}if(pe(ie)||de(ie))return B=B.get(G)||null,te(M,B,ie,De,null);if(typeof ie.then=="function")return Q(B,M,G,cr(ie),De);if(ie.$$typeof===L)return Q(B,M,G,lr(M,ie),De);ur(M,ie)}return null}function xe(B,M,G,ie){for(var De=null,ht=null,Re=M,Ze=M=0,lt=null;Re!==null&&Ze<G.length;Ze++){Re.index>Ze?(lt=Re,Re=null):lt=Re.sibling;var pt=F(B,Re,G[Ze],ie);if(pt===null){Re===null&&(Re=lt);break}e&&Re&&pt.alternate===null&&t(B,Re),M=c(pt,M,Ze),ht===null?De=pt:ht.sibling=pt,ht=pt,Re=lt}if(Ze===G.length)return n(B,Re),rt&&Ga(B,Ze),De;if(Re===null){for(;Ze<G.length;Ze++)Re=se(B,G[Ze],ie),Re!==null&&(M=c(Re,M,Ze),ht===null?De=Re:ht.sibling=Re,ht=Re);return rt&&Ga(B,Ze),De}for(Re=i(Re);Ze<G.length;Ze++)lt=Q(Re,B,Ze,G[Ze],ie),lt!==null&&(e&&lt.alternate!==null&&Re.delete(lt.key===null?Ze:lt.key),M=c(lt,M,Ze),ht===null?De=lt:ht.sibling=lt,ht=lt);return e&&Re.forEach(function(ki){return t(B,ki)}),rt&&Ga(B,Ze),De}function je(B,M,G,ie){if(G==null)throw Error(l(151));for(var De=null,ht=null,Re=M,Ze=M=0,lt=null,pt=G.next();Re!==null&&!pt.done;Ze++,pt=G.next()){Re.index>Ze?(lt=Re,Re=null):lt=Re.sibling;var ki=F(B,Re,pt.value,ie);if(ki===null){Re===null&&(Re=lt);break}e&&Re&&ki.alternate===null&&t(B,Re),M=c(ki,M,Ze),ht===null?De=ki:ht.sibling=ki,ht=ki,Re=lt}if(pt.done)return n(B,Re),rt&&Ga(B,Ze),De;if(Re===null){for(;!pt.done;Ze++,pt=G.next())pt=se(B,pt.value,ie),pt!==null&&(M=c(pt,M,Ze),ht===null?De=pt:ht.sibling=pt,ht=pt);return rt&&Ga(B,Ze),De}for(Re=i(Re);!pt.done;Ze++,pt=G.next())pt=Q(Re,B,Ze,pt.value,ie),pt!==null&&(e&&pt.alternate!==null&&Re.delete(pt.key===null?Ze:pt.key),M=c(pt,M,Ze),ht===null?De=pt:ht.sibling=pt,ht=pt);return e&&Re.forEach(function(vE){return t(B,vE)}),rt&&Ga(B,Ze),De}function wt(B,M,G,ie){if(typeof G=="object"&&G!==null&&G.type===A&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case w:e:{for(var De=G.key;M!==null;){if(M.key===De){if(De=G.type,De===A){if(M.tag===7){n(B,M.sibling),ie=o(M,G.props.children),ie.return=B,B=ie;break e}}else if(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===C&&Fi(De)===M.type){n(B,M.sibling),ie=o(M,G.props),as(ie,G),ie.return=B,B=ie;break e}n(B,M);break}else t(B,M);M=M.sibling}G.type===A?(ie=Hi(G.props.children,B.mode,ie,G.key),ie.return=B,B=ie):(ie=nr(G.type,G.key,G.props,null,B.mode,ie),as(ie,G),ie.return=B,B=ie)}return h(B);case T:e:{for(De=G.key;M!==null;){if(M.key===De)if(M.tag===4&&M.stateNode.containerInfo===G.containerInfo&&M.stateNode.implementation===G.implementation){n(B,M.sibling),ie=o(M,G.children||[]),ie.return=B,B=ie;break e}else{n(B,M);break}else t(B,M);M=M.sibling}ie=Uo(G,B.mode,ie),ie.return=B,B=ie}return h(B);case C:return G=Fi(G),wt(B,M,G,ie)}if(pe(G))return xe(B,M,G,ie);if(de(G)){if(De=de(G),typeof De!="function")throw Error(l(150));return G=De.call(G),je(B,M,G,ie)}if(typeof G.then=="function")return wt(B,M,cr(G),ie);if(G.$$typeof===L)return wt(B,M,lr(B,G),ie);ur(B,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,M!==null&&M.tag===6?(n(B,M.sibling),ie=o(M,G),ie.return=B,B=ie):(n(B,M),ie=zo(G,B.mode,ie),ie.return=B,B=ie),h(B)):n(B,M)}return function(B,M,G,ie){try{ns=0;var De=wt(B,M,G,ie);return gl=null,De}catch(Re){if(Re===ml||Re===rr)throw Re;var ht=Wn(29,Re,null,B.mode);return ht.lanes=ie,ht.return=B,ht}finally{}}}var Pi=Qd(!0),Vd=Qd(!1),hi=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(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 pi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(gt&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=tr(e),Ld(e,null,n),t}return er(e,i,t,n),tr(e)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}function Qo(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Vo=!1;function ls(){if(Vo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,i){Vo=!1;var o=e.updateQueue;hi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var R=E,$=R.next;R.next=null,h===null?c=$:h.next=$,h=R;var te=e.alternate;te!==null&&(te=te.updateQueue,E=te.lastBaseUpdate,E!==h&&(E===null?te.firstBaseUpdate=$:E.next=$,te.lastBaseUpdate=R))}if(c!==null){var se=o.baseState;h=0,te=$=R=null,E=c;do{var F=E.lane&-536870913,Q=F!==E.lane;if(Q?(it&F)===F:(i&F)===F){F!==0&&F===hl&&(Vo=!0),te!==null&&(te=te.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var xe=e,je=E;F=t;var wt=n;switch(je.tag){case 1:if(xe=je.payload,typeof xe=="function"){se=xe.call(wt,se,F);break e}se=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=je.payload,F=typeof xe=="function"?xe.call(wt,se,F):xe,F==null)break e;se=v({},se,F);break e;case 2:hi=!0}}F=E.callback,F!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=o.callbacks,Q===null?o.callbacks=[F]:Q.push(F))}else Q={lane:F,tag:E.tag,payload:E.payload,callback:E.callback,next:null},te===null?($=te=Q,R=se):te=te.next=Q,h|=F;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;Q=E,E=Q.next,Q.next=null,o.lastBaseUpdate=Q,o.shared.pending=null}}while(!0);te===null&&(R=se),o.baseState=R,o.firstBaseUpdate=$,o.lastBaseUpdate=te,c===null&&(o.shared.lanes=0),Ei|=h,e.lanes=h,e.memoizedState=se}}function Jd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Wd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Jd(n[e],t)}var bl=S(null),fr=S(0);function eh(e,t){e=Wa,H(fr,e),H(bl,t),Wa=e|t.baseLanes}function Jo(){H(fr,Wa),H(bl,bl.current)}function Wo(){Wa=fr.current,D(bl),D(fr)}var ea=S(null),ha=null;function gi(e){var t=e.alternate;H(Ft,Ft.current&1),H(ea,e),ha===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(ha=e)}function ec(e){H(Ft,Ft.current),H(ea,e),ha===null&&(ha=e)}function th(e){e.tag===22?(H(Ft,Ft.current),H(ea,e),ha===null&&(ha=e)):bi()}function bi(){H(Ft,Ft.current),H(ea,ea.current)}function ta(e){D(ea),ha===e&&(ha=null),D(Ft)}var Ft=S(0);function dr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||su(n)||ru(n)))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 Fa=0,Ye=null,Nt=null,en=null,hr=!1,yl=!1,Zi=!1,pr=0,rs=0,vl=null,cv=0;function It(){throw Error(l(321))}function tc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function nc(e,t,n,i,o,c){return Fa=c,Ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Bh:bc,Zi=!1,c=n(i,o),Zi=!1,yl&&(c=ah(t,n,i,o)),nh(e),c}function nh(e){j.H=us;var t=Nt!==null&&Nt.next!==null;if(Fa=0,en=Nt=Ye=null,hr=!1,rs=0,vl=null,t)throw Error(l(300));e===null||tn||(e=e.dependencies,e!==null&&ir(e)&&(tn=!0))}function ah(e,t,n,i){Ye=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(l(301));if(o+=1,en=Nt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=Ih,c=t(n,i)}while(yl);return c}function uv(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(Ye.flags|=1024),t}function ac(){var e=pr!==0;return pr=0,e}function ic(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function lc(e){if(hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hr=!1}Fa=0,en=Nt=Ye=null,yl=!1,rs=pr=0,vl=null}function qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return en===null?Ye.memoizedState=en=e:en=en.next=e,en}function Kt(){if(Nt===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=en===null?Ye.memoizedState:en.next;if(t!==null)en=t,Nt=e;else{if(e===null)throw Ye.alternate===null?Error(l(467)):Error(l(310));Nt=e,e={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},en===null?Ye.memoizedState=en=e:en=en.next=e}return en}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Pd(vl,e,t),t=Ye,(en===null?t.memoizedState:en.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Bh:bc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===L)return En(e)}throw Error(l(438,String(e)))}function sc(e){var t=null,n=Ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ye.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mr(),Ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=X;return t.index++,n}function Ka(e,t){return typeof t=="function"?t(e):t}function br(e){var t=Kt();return rc(t,Nt,e)}function rc(e,t,n){var i=e.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=n;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,R=null,$=t,te=!1;do{var se=$.lane&-536870913;if(se!==$.lane?(it&se)===se:(Fa&se)===se){var F=$.revertLane;if(F===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),se===hl&&(te=!0);else if((Fa&F)===F){$=$.next,F===hl&&(te=!0);continue}else se={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},R===null?(E=R=se,h=c):R=R.next=se,Ye.lanes|=F,Ei|=F;se=$.action,Zi&&n(c,se),c=$.hasEagerState?$.eagerState:n(c,se)}else F={lane:se,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},R===null?(E=R=F,h=c):R=R.next=F,Ye.lanes|=se,Ei|=se;$=$.next}while($!==null&&$!==t);if(R===null?h=c:R.next=E,!Jn(c,e.memoizedState)&&(tn=!0,te&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=R,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function oc(e){var t=Kt(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Jn(c,t.memoizedState)||(tn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function ih(e,t,n){var i=Ye,o=Kt(),c=rt;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!Jn((Nt||o).memoizedState,n);if(h&&(o.memoizedState=n,tn=!0),o=o.queue,fc(rh.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||en!==null&&en.memoizedState.tag&1){if(i.flags|=2048,El(9,{destroy:void 0},sh.bind(null,i,o,n,t),null),At===null)throw Error(l(349));c||(Fa&127)!==0||lh(i,t,n)}return n}function lh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ye.updateQueue,t===null?(t=mr(),Ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sh(e,t,n,i){t.value=n,t.getSnapshot=i,oh(t)&&ch(e)}function rh(e,t,n){return n(function(){oh(t)&&ch(e)})}function oh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function ch(e){var t=Ii(e,2);t!==null&&Xn(t,e,2)}function cc(e){var t=qn();if(typeof e=="function"){var n=e;if(e=n(),Zi){fn(!0);try{n()}finally{fn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t}function uh(e,t,n,i){return e.baseState=n,rc(e,Nt,typeof i=="function"?i:Ka)}function fv(e,t,n,i,o){if(Er(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};j.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,fh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function fh(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=j.T,h={};j.T=h;try{var E=n(o,i),R=j.S;R!==null&&R(h,E),dh(e,t,E)}catch($){uc(e,t,$)}finally{c!==null&&h.types!==null&&(c.types=h.types),j.T=c}}else try{c=n(o,i),dh(e,t,c)}catch($){uc(e,t,$)}}function dh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){hh(e,t,i)},function(i){return uc(e,t,i)}):hh(e,t,n)}function hh(e,t,n){t.status="fulfilled",t.value=n,ph(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,fh(e,n)))}function uc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,ph(t),t=t.next;while(t!==i)}e.action=null}function ph(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mh(e,t){return t}function gh(e,t){if(rt){var n=At.formState;if(n!==null){e:{var i=Ye;if(rt){if(Ct){t:{for(var o=Ct,c=da;o.nodeType!==8;){if(!c){o=null;break t}if(o=pa(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ct=pa(o.nextSibling),i=o.data==="F!";break e}}fi(i)}i=!1}i&&(t=n[0])}}return n=qn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mh,lastRenderedState:t},n.queue=i,n=zh.bind(null,Ye,i),i.dispatch=n,i=cc(!1),c=gc.bind(null,Ye,!1,i.queue),i=qn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=fv.bind(null,Ye,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function bh(e){var t=Kt();return yh(t,Nt,e)}function yh(e,t,n){if(t=rc(e,t,mh)[0],e=br(Ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=os(t)}catch(h){throw h===ml?rr:h}else i=t;t=Kt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ye.flags|=2048,El(9,{destroy:void 0},dv.bind(null,o,n),null)),[i,c,e]}function dv(e,t){e.action=t}function vh(e){var t=Kt(),n=Nt;if(n!==null)return yh(t,n,e);Kt(),t=t.memoizedState,n=Kt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function El(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ye.updateQueue,t===null&&(t=mr(),Ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Eh(){return Kt().memoizedState}function yr(e,t,n,i){var o=qn();Ye.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,i===void 0?null:i)}function vr(e,t,n,i){var o=Kt();i=i===void 0?null:i;var c=o.memoizedState.inst;Nt!==null&&i!==null&&tc(i,Nt.memoizedState.deps)?o.memoizedState=El(t,c,n,i):(Ye.flags|=e,o.memoizedState=El(1|t,c,n,i))}function _h(e,t){yr(8390656,8,e,t)}function fc(e,t){vr(2048,8,e,t)}function hv(e){Ye.flags|=4;var t=Ye.updateQueue;if(t===null)t=mr(),Ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Sh(e){var t=Kt().memoizedState;return hv({ref:t,nextImpl:e}),function(){if((gt&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Nh(e,t){return vr(4,2,e,t)}function Th(e,t){return vr(4,4,e,t)}function wh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xh(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,wh.bind(null,t,e),n)}function dc(){}function Ah(e,t){var n=Kt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&tc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Rh(e,t){var n=Kt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&tc(t,i[1]))return i[0];if(i=e(),Zi){fn(!0);try{e()}finally{fn(!1)}}return n.memoizedState=[i,t],i}function hc(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(it&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Op(),Ye.lanes|=e,Ei|=e,n)}function Oh(e,t,n,i){return Jn(n,t)?n:bl.current!==null?(e=hc(e,n,i),Jn(e,t)||(tn=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(it&261930)===0?(tn=!0,e.memoizedState=n):(e=Op(),Ye.lanes|=e,Ei|=e,t)}function kh(e,t,n,i,o){var c=ae.p;ae.p=c!==0&&8>c?c:8;var h=j.T,E={};j.T=E,gc(e,!1,t,n);try{var R=o(),$=j.S;if($!==null&&$(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var te=ov(R,i);cs(e,t,te,ia(e))}else cs(e,t,i,ia(e))}catch(se){cs(e,t,{then:function(){},status:"rejected",reason:se},ia())}finally{ae.p=c,h!==null&&E.types!==null&&(h.types=E.types),j.T=h}}function pv(){}function pc(e,t,n,i){if(e.tag!==5)throw Error(l(476));var o=Ch(e).queue;kh(e,o,t,ce,n===null?pv:function(){return Mh(e),n(i)})}function Ch(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mh(e){var t=Ch(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},ia())}function mc(){return En(xs)}function Dh(){return Kt().memoizedState}function Lh(){return Kt().memoizedState}function mv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ia();e=pi(n);var i=mi(t,e,n);i!==null&&(Xn(i,t,n),is(i,t,n)),t={cache:Yo()},e.payload=t;return}t=t.return}}function gv(e,t,n){var i=ia();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?Uh(t,n):(n=Do(e,t,n,i),n!==null&&(Xn(n,e,i),jh(n,t,i)))}function zh(e,t,n){var i=ia();cs(e,t,n,i)}function cs(e,t,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Er(e))Uh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,E=c(h,n);if(o.hasEagerState=!0,o.eagerState=E,Jn(E,h))return er(e,t,o,0),At===null&&Ws(),!1}catch{}finally{}if(n=Do(e,t,o,i),n!==null)return Xn(n,e,i),jh(n,t,i),!0}return!1}function gc(e,t,n,i){if(i={lane:2,revertLane:Zc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(l(479))}else t=Do(e,n,i,2),t!==null&&Xn(t,e,2)}function Er(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function Uh(e,t){yl=hr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}var us={readContext:En,use:gr,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useLayoutEffect:It,useInsertionEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useSyncExternalStore:It,useId:It,useHostTransitionStatus:It,useFormState:It,useActionState:It,useOptimistic:It,useMemoCache:It,useCacheRefresh:It};us.useEffectEvent=It;var Bh={readContext:En,use:gr,useCallback:function(e,t){return qn().memoizedState=[e,t===void 0?null:t],e},useContext:En,useEffect:_h,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,wh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yr(4194308,4,e,t)},useInsertionEffect:function(e,t){yr(4,2,e,t)},useMemo:function(e,t){var n=qn();t=t===void 0?null:t;var i=e();if(Zi){fn(!0);try{e()}finally{fn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=qn();if(n!==void 0){var o=n(t);if(Zi){fn(!0);try{n(t)}finally{fn(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=gv.bind(null,Ye,e),[i.memoizedState,e]},useRef:function(e){var t=qn();return e={current:e},t.memoizedState=e},useState:function(e){e=cc(e);var t=e.queue,n=zh.bind(null,Ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:dc,useDeferredValue:function(e,t){var n=qn();return hc(n,e,t)},useTransition:function(){var e=cc(!1);return e=kh.bind(null,Ye,e.queue,!0,!1),qn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ye,o=qn();if(rt){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),At===null)throw Error(l(349));(it&127)!==0||lh(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,_h(rh.bind(null,i,c,e),[e]),i.flags|=2048,El(9,{destroy:void 0},sh.bind(null,i,c,n,t),null),n},useId:function(){var e=qn(),t=At.identifierPrefix;if(rt){var n=Oa,i=Ra;n=(i&~(1<<32-jt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=cv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mc,useFormState:gh,useActionState:gh,useOptimistic:function(e){var t=qn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=gc.bind(null,Ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:sc,useCacheRefresh:function(){return qn().memoizedState=mv.bind(null,Ye)},useEffectEvent:function(e){var t=qn(),n={impl:e};return t.memoizedState=n,function(){if((gt&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},bc={readContext:En,use:gr,useCallback:Ah,useContext:En,useEffect:fc,useImperativeHandle:xh,useInsertionEffect:Nh,useLayoutEffect:Th,useMemo:Rh,useReducer:br,useRef:Eh,useState:function(){return br(Ka)},useDebugValue:dc,useDeferredValue:function(e,t){var n=Kt();return Oh(n,Nt.memoizedState,e,t)},useTransition:function(){var e=br(Ka)[0],t=Kt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:ih,useId:Dh,useHostTransitionStatus:mc,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var n=Kt();return uh(n,Nt,e,t)},useMemoCache:sc,useCacheRefresh:Lh};bc.useEffectEvent=Sh;var Ih={readContext:En,use:gr,useCallback:Ah,useContext:En,useEffect:fc,useImperativeHandle:xh,useInsertionEffect:Nh,useLayoutEffect:Th,useMemo:Rh,useReducer:oc,useRef:Eh,useState:function(){return oc(Ka)},useDebugValue:dc,useDeferredValue:function(e,t){var n=Kt();return Nt===null?hc(n,e,t):Oh(n,Nt.memoizedState,e,t)},useTransition:function(){var e=oc(Ka)[0],t=Kt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:ih,useId:Dh,useHostTransitionStatus:mc,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var n=Kt();return Nt!==null?uh(n,Nt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:sc,useCacheRefresh:Lh};Ih.useEffectEvent=Sh;function yc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=ia(),o=pi(i);o.payload=t,n!=null&&(o.callback=n),t=mi(e,o,i),t!==null&&(Xn(t,e,i),is(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=ia(),o=pi(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mi(e,o,i),t!==null&&(Xn(t,e,i),is(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ia(),i=pi(n);i.tag=2,t!=null&&(i.callback=t),t=mi(e,i,n),t!==null&&(Xn(t,e,n),is(t,e,n))}};function Hh(e,t,n,i,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ql(n,i)||!Ql(o,c):!0}function qh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Gh(e){Js(e)}function $h(e){console.error(e)}function Yh(e){Js(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Fh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ec(e,t,n){return n=pi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Kh(e){return e=pi(e),e.tag=3,e}function Ph(e,t,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){Fh(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Fh(t,n,i),typeof o!="function"&&(_i===null?_i=new Set([this]):_i.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function bv(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&dl(t,n,o,!0),n=ea.current,n!==null){switch(n.tag){case 31:case 13:return ha===null?Dr():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===or?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Fc(e,i,o)),!1;case 22:return n.flags|=65536,i===or?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Fc(e,i,o)),!1}throw Error(l(435,n.tag))}return Fc(e,i,o),Dr(),!1}if(rt)return t=ea.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Io&&(e=Error(l(422),{cause:i}),Wl(ca(e,n)))):(i!==Io&&(t=Error(l(423),{cause:i}),Wl(ca(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=ca(i,n),o=Ec(e.stateNode,i,o),Qo(e,o),Ht!==4&&(Ht=2)),!1;var c=Error(l(520),{cause:i});if(c=ca(c,n),ys===null?ys=[c]:ys.push(c),Ht!==4&&(Ht=2),t===null)return!0;i=ca(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Ec(n.stateNode,i,e),Qo(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(_i===null||!_i.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Kh(o),Ph(o,e,n,i),Qo(n,o),!1}n=n.return}while(n!==null);return!1}var _c=Error(l(461)),tn=!1;function _n(e,t,n,i){t.child=e===null?Vd(t,null,n,i):Pi(t,e.child,n,i)}function Zh(e,t,n,i,o){n=n.render;var c=t.ref;if("ref"in i){var h={};for(var E in i)E!=="ref"&&(h[E]=i[E])}else h=i;return $i(t),i=nc(e,t,n,h,c,o),E=ac(),e!==null&&!tn?(ic(e,t,o),Pa(e,t,o)):(rt&&E&&jo(t),t.flags|=1,_n(e,t,i,o),t.child)}function Xh(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!Lo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Qh(e,t,c,i,o)):(e=nr(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Oc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,i)&&e.ref===t.ref)return Pa(e,t,o)}return t.flags|=1,e=qa(c,i),e.ref=t.ref,e.return=t,t.child=e}function Qh(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,i)&&e.ref===t.ref)if(tn=!1,t.pendingProps=i=c,Oc(e,o))(e.flags&131072)!==0&&(tn=!0);else return t.lanes=e.lanes,Pa(e,t,o)}return Sc(e,t,n,i,o)}function Vh(e,t,n,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Jh(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?eh(t,c):Jo(),th(t);else return i=t.lanes=536870912,Jh(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(sr(t,c.cachePool),eh(t,c),bi(),t.memoizedState=null):(e!==null&&sr(t,null),Jo(),bi());return _n(e,t,o,n),t.child}function fs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jh(e,t,n,i,o){var c=Ko();return c=c===null?null:{parent:Wt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),Jo(),th(t),e!==null&&dl(e,t,i,!0),t.childLanes=o,null}function Sr(e,t){return t=Tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wh(e,t,n){return Pi(t,e.child,null,n),e=Sr(t,t.pendingProps),e.flags|=2,ta(t),t.memoizedState=null,e}function yv(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(rt){if(i.mode==="hidden")return e=Sr(t,i),t.lanes=536870912,fs(null,e);if(ec(t),(e=Ct)?(e=fm(e,da),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ci!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=Ud(e),n.return=t,t.child=n,vn=t,Ct=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Sr(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(ec(t),o)if(t.flags&256)t.flags&=-257,t=Wh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(tn||dl(e,t,n,!1),o=(n&e.childLanes)!==0,tn||o){if(i=At,i!==null&&(h=Rt(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Xn(i,e,h),_c;Dr(),t=Wh(e,t,n)}else e=c.treeContext,Ct=pa(h.nextSibling),vn=t,rt=!0,ui=null,da=!1,e!==null&&Id(t,e),t=Sr(t,i),t.flags|=4096;return t}return e=qa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Sc(e,t,n,i,o){return $i(t),n=nc(e,t,n,i,void 0,o),i=ac(),e!==null&&!tn?(ic(e,t,o),Pa(e,t,o)):(rt&&i&&jo(t),t.flags|=1,_n(e,t,n,o),t.child)}function ep(e,t,n,i,o,c){return $i(t),t.updateQueue=null,n=ah(t,i,n,o),nh(e),i=ac(),e!==null&&!tn?(ic(e,t,c),Pa(e,t,c)):(rt&&i&&jo(t),t.flags|=1,_n(e,t,n,c),t.child)}function tp(e,t,n,i,o){if($i(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=En(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=vc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Zo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?En(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(yc(t,n,h,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&vc.enqueueReplaceState(c,c.state,null),ss(t,i,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,R=Xi(n,E);c.props=R;var $=c.context,te=n.contextType;h=ol,typeof te=="object"&&te!==null&&(h=En(te));var se=n.getDerivedStateFromProps;te=typeof se=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,te||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||$!==h)&&qh(t,c,i,h),hi=!1;var F=t.memoizedState;c.state=F,ss(t,i,c,o),ls(),$=t.memoizedState,E||F!==$||hi?(typeof se=="function"&&(yc(t,n,se,i),$=t.memoizedState),(R=hi||Hh(t,n,R,i,F,$,h))?(te||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=i,t.memoizedState=$),c.props=i,c.state=$,c.context=h,i=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Xo(e,t),h=t.memoizedProps,te=Xi(n,h),c.props=te,se=t.pendingProps,F=c.context,$=n.contextType,R=ol,typeof $=="object"&&$!==null&&(R=En($)),E=n.getDerivedStateFromProps,($=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==se||F!==R)&&qh(t,c,i,R),hi=!1,F=t.memoizedState,c.state=F,ss(t,i,c,o),ls();var Q=t.memoizedState;h!==se||F!==Q||hi||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(yc(t,n,E,i),Q=t.memoizedState),(te=hi||Hh(t,n,te,i,F,Q,R)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?($||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,Q,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,Q,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Q),c.props=i,c.state=Q,c.context=R,i=te):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Nr(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Pi(t,e.child,null,o),t.child=Pi(t,null,n,o)):_n(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Pa(e,t,o),e}function np(e,t,n,i){return qi(),t.flags|=256,_n(e,t,n,i),t.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(e){return{baseLanes:e,cachePool:Fd()}}function wc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=aa),e}function ap(e,t,n){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Ft.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(rt){if(o?gi(t):bi(),(e=Ct)?(e=fm(e,da),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ci!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=Ud(e),n.return=t,t.child=n,vn=t,Ct=null)):e=null,e===null)throw fi(t);return ru(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,o?(bi(),o=t.mode,E=Tr({mode:"hidden",children:E},o),i=Hi(i,o,n,null),E.return=t,i.return=t,E.sibling=i,t.child=E,i=t.child,i.memoizedState=Tc(n),i.childLanes=wc(e,h,n),t.memoizedState=Nc,fs(null,i)):(gi(t),xc(t,E))}var R=e.memoizedState;if(R!==null&&(E=R.dehydrated,E!==null)){if(c)t.flags&256?(gi(t),t.flags&=-257,t=Ac(e,t,n)):t.memoizedState!==null?(bi(),t.child=e.child,t.flags|=128,t=null):(bi(),E=i.fallback,o=t.mode,i=Tr({mode:"visible",children:i.children},o),E=Hi(E,o,n,null),E.flags|=2,i.return=t,E.return=t,i.sibling=E,t.child=i,Pi(t,e.child,null,n),i=t.child,i.memoizedState=Tc(n),i.childLanes=wc(e,h,n),t.memoizedState=Nc,t=fs(null,i));else if(gi(t),ru(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var $=h.dgst;h=$,i=Error(l(419)),i.stack="",i.digest=h,Wl({value:i,source:null,stack:null}),t=Ac(e,t,n)}else if(tn||dl(e,t,n,!1),h=(n&e.childLanes)!==0,tn||h){if(h=At,h!==null&&(i=Rt(h,n),i!==0&&i!==R.retryLane))throw R.retryLane=i,Ii(e,i),Xn(h,e,i),_c;su(E)||Dr(),t=Ac(e,t,n)}else su(E)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Ct=pa(E.nextSibling),vn=t,rt=!0,ui=null,da=!1,e!==null&&Id(t,e),t=xc(t,i.children),t.flags|=4096);return t}return o?(bi(),E=i.fallback,o=t.mode,R=e.child,$=R.sibling,i=qa(R,{mode:"hidden",children:i.children}),i.subtreeFlags=R.subtreeFlags&65011712,$!==null?E=qa($,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,i.return=t,i.sibling=E,t.child=i,fs(null,i),i=t.child,E=e.child.memoizedState,E===null?E=Tc(n):(o=E.cachePool,o!==null?(R=Wt._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=Fd(),E={baseLanes:E.baseLanes|n,cachePool:o}),i.memoizedState=E,i.childLanes=wc(e,h,n),t.memoizedState=Nc,fs(e.child,i)):(gi(t),n=e.child,e=n.sibling,n=qa(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tr(e,t){return e=Wn(22,e,null,t),e.lanes=0,e}function Ac(e,t,n){return Pi(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ip(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Go(e.return,t,n)}function Rc(e,t,n,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function lp(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=Ft.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,H(Ft,h),_n(e,t,i,n),i=rt?Jl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ip(e,n,t);else if(e.tag===19)ip(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&dr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Rc(t,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&dr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Rc(t,!0,n,null,c,i);break;case"together":Rc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Pa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ei|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(dl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function vv(e,t,n){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),di(t,Wt,e.memoizedState.cache),qi();break;case 27:case 5:$e(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:di(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ec(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(gi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ap(e,t,n):(gi(t),e=Pa(e,t,n),e!==null?e.sibling:null);gi(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(dl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return lp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),H(Ft,Ft.current),i)break;return null;case 22:return t.lanes=0,Vh(e,t,n,t.pendingProps);case 24:di(t,Wt,e.memoizedState.cache)}return Pa(e,t,n)}function sp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tn=!0;else{if(!Oc(e,n)&&(t.flags&128)===0)return tn=!1,vv(e,t,n);tn=(e.flags&131072)!==0}else tn=!1,rt&&(t.flags&1048576)!==0&&Bd(t,Jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Fi(t.elementType),t.type=e,typeof e=="function")Lo(e)?(i=Xi(e,i),t.tag=1,t=tp(null,t,e,i,n)):(t.tag=0,t=Sc(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===le){t.tag=11,t=Zh(null,t,e,i,n);break e}else if(o===ne){t.tag=14,t=Xh(null,t,e,i,n);break e}}throw t=_e(e)||e,Error(l(306,t,""))}}return t;case 0:return Sc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Xi(i,t.pendingProps),tp(e,t,i,o,n);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(l(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,Xo(e,t),ss(t,i,null,n);var h=t.memoizedState;if(i=h.cache,di(t,Wt,i),i!==c.cache&&$o(t,[Wt],n,!0),ls(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=np(e,t,i,n);break e}else if(i!==o){o=ca(Error(l(424)),t),Wl(o),t=np(e,t,i,n);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(Ct=pa(e.firstChild),vn=t,rt=!0,ui=null,da=!0,n=Vd(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),i===o){t=Pa(e,t,n);break e}_n(e,t,i,n)}t=t.child}return t;case 26:return Nr(e,t),e===null?(n=bm(t.type,null,t.pendingProps,null))?t.memoizedState=n:rt||(n=t.type,e=t.pendingProps,i=Hr(be.current).createElement(n),i[Ot]=t,i[Y]=e,Sn(i,n,e),vt(i),t.stateNode=i):t.memoizedState=bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $e(t),e===null&&rt&&(i=t.stateNode=pm(t.type,t.pendingProps,be.current),vn=t,da=!0,o=Ct,wi(t.type)?(ou=o,Ct=pa(i.firstChild)):Ct=o),_n(e,t,t.pendingProps.children,n),Nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&rt&&((o=i=Ct)&&(i=Xv(i,t.type,t.pendingProps,da),i!==null?(t.stateNode=i,vn=t,Ct=pa(i.firstChild),da=!1,o=!0):o=!1),o||fi(t)),$e(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,au(o,c)?i=null:h!==null&&au(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=nc(e,t,uv,null,null,n),xs._currentValue=o),Nr(e,t),_n(e,t,i,n),t.child;case 6:return e===null&&rt&&((e=n=Ct)&&(n=Qv(n,t.pendingProps,da),n!==null?(t.stateNode=n,vn=t,Ct=null,e=!0):e=!1),e||fi(t)),null;case 13:return ap(e,t,n);case 4:return Le(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Pi(t,null,i,n):_n(e,t,i,n),t.child;case 11:return Zh(e,t,t.type,t.pendingProps,n);case 7:return _n(e,t,t.pendingProps,n),t.child;case 8:return _n(e,t,t.pendingProps.children,n),t.child;case 12:return _n(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,di(t,t.type,i.value),_n(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,$i(t),o=En(o),i=i(o),t.flags|=1,_n(e,t,i,n),t.child;case 14:return Xh(e,t,t.type,t.pendingProps,n);case 15:return Qh(e,t,t.type,t.pendingProps,n);case 19:return lp(e,t,n);case 31:return yv(e,t,n);case 22:return Vh(e,t,n,t.pendingProps);case 24:return $i(t),i=En(Wt),e===null?(o=Ko(),o===null&&(o=At,c=Yo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},Zo(t),di(t,Wt,o)):((e.lanes&n)!==0&&(Xo(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),di(t,Wt,i)):(i=c.cache,di(t,Wt,i),i!==o.cache&&$o(t,[Wt],n,!0))),_n(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Za(e){e.flags|=4}function kc(e,t,n,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Dp())e.flags|=8192;else throw Ki=or,Po}else e.flags&=-16777217}function rp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sm(t))if(Dp())e.flags|=8192;else throw Ki=or,Po}function wr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Me():536870912,e.lanes|=t,Tl|=t)}function ds(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Ev(e,t,n){var i=t.pendingProps;switch(Bo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(t),null;case 1:return Mt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ya(Wt),ze(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?Za(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ho())),Mt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Za(t),c!==null?(Mt(t),rp(t,c)):(Mt(t),kc(t,o,null,i,n))):c?c!==e.memoizedState?(Za(t),Mt(t),rp(t,c)):(Mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Za(t),Mt(t),kc(t,o,e,i,n)),null;case 27:if(at(t),n=be.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return Mt(t),null}e=ue.current,fl(t)?Hd(t):(e=pm(o,i,n),t.stateNode=e,Za(t))}return Mt(t),null;case 5:if(at(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return Mt(t),null}if(c=ue.current,fl(t))Hd(t);else{var h=Hr(be.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[Ot]=t,c[Y]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(Sn(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Za(t)}}return Mt(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(l(166));if(e=be.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=vn,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Ot]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||am(e.nodeValue,n)),e||fi(t,!0)}else e=Hr(e).createTextNode(i),e[Ot]=t,t.stateNode=e}return Mt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=fl(t),n!==null){if(e===null){if(!i)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Ot]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),e=!1}else n=Ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ta(t),t):(ta(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Mt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Ot]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),o=!1}else o=Ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(ta(t),t):(ta(t),null)}return ta(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),wr(t,t.updateQueue),Mt(t),null);case 4:return ze(),e===null&&Jc(t.stateNode.containerInfo),Mt(t),null;case 10:return Ya(t.type),Mt(t),null;case 19:if(D(Ft),i=t.memoizedState,i===null)return Mt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)ds(i,!1);else{if(Ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=dr(e),c!==null){for(t.flags|=128,ds(i,!1),e=c.updateQueue,t.updateQueue=e,wr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)zd(n,e),n=n.sibling;return H(Ft,Ft.current&1|2),rt&&Ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&st()>kr&&(t.flags|=128,o=!0,ds(i,!1),t.lanes=4194304)}else{if(!o)if(e=dr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,wr(t,e),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!rt)return Mt(t),null}else 2*st()-i.renderingStartTime>kr&&n!==536870912&&(t.flags|=128,o=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=st(),e.sibling=null,n=Ft.current,H(Ft,o?n&1|2:n&1),rt&&Ga(t,i.treeForkCount),e):(Mt(t),null);case 22:case 23:return ta(t),Wo(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),n=t.updateQueue,n!==null&&wr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&D(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(Wt),Mt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function _v(e,t){switch(Bo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(Wt),ze(),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(ta(t),t.alternate===null)throw Error(l(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ta(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Ft),null;case 4:return ze(),null;case 10:return Ya(t.type),null;case 22:case 23:return ta(t),Wo(),e!==null&&D(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(Wt),null;case 25:return null;default:return null}}function op(e,t){switch(Bo(t),t.tag){case 3:Ya(Wt),ze();break;case 26:case 27:case 5:at(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&ta(t);break;case 13:ta(t);break;case 19:D(Ft);break;case 10:Ya(t.type);break;case 22:case 23:ta(t),Wo(),e!==null&&D(Yi);break;case 24:Ya(Wt)}}function hs(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){i=void 0;var c=n.create,h=n.inst;i=c(),h.destroy=i}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function yi(e,t,n){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var R=n,$=E;try{$()}catch(te){_t(o,R,te)}}}i=i.next}while(i!==c)}}catch(te){_t(t,t.return,te)}}function cp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wd(t,n)}catch(i){_t(e,e.return,i)}}}function up(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_t(e,t,i)}}function ps(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){_t(e,t,o)}}function ka(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){_t(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){_t(e,t,o)}else n.current=null}function fp(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Cc(e,t,n){try{var i=e.stateNode;$v(i,e.type,n,t),i[Y]=t}catch(o){_t(e,e.return,o)}}function dp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wi(e.type)||e.tag===4}function Mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dp(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&&wi(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 Dc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=oe));else if(i!==4&&(i===27&&wi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Dc(e,t,n),e=e.sibling;e!==null;)Dc(e,t,n),e=e.sibling}function xr(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&wi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(xr(e,t,n),e=e.sibling;e!==null;)xr(e,t,n),e=e.sibling}function hp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Sn(t,i,n),t[Ot]=e,t[Y]=n}catch(c){_t(e,e.return,c)}}var Xa=!1,nn=!1,Lc=!1,pp=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Sv(e,t){if(e=e.containerInfo,tu=Pr,e=xd(e),Ao(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,R=-1,$=0,te=0,se=e,F=null;t:for(;;){for(var Q;se!==n||o!==0&&se.nodeType!==3||(E=h+o),se!==c||i!==0&&se.nodeType!==3||(R=h+i),se.nodeType===3&&(h+=se.nodeValue.length),(Q=se.firstChild)!==null;)F=se,se=Q;for(;;){if(se===e)break t;if(F===n&&++$===o&&(E=h),F===c&&++te===i&&(R=h),(Q=se.nextSibling)!==null)break;se=F,F=se.parentNode}se=Q}n=E===-1||R===-1?null:{start:E,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(nu={focusedElem:e,selectionRange:n},Pr=!1,mn=t;mn!==null;)if(t=mn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mn=e;else for(;mn!==null;){switch(t=mn,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(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var xe=Xi(n.type,o);e=i.getSnapshotBeforeUpdate(xe,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(je){_t(n,n.return,je)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":lu(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(l(163))}if(e=t.sibling,e!==null){e.return=t.return,mn=e;break}mn=t.return}}function mp(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Va(e,n),i&4&&hs(5,n);break;case 1:if(Va(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){_t(n,n.return,h)}else{var o=Xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){_t(n,n.return,h)}}i&64&&cp(n),i&512&&ps(n,n.return);break;case 3:if(Va(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Wd(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&i&4&&hp(n);case 26:case 5:Va(e,n),t===null&&i&4&&fp(n),i&512&&ps(n,n.return);break;case 12:Va(e,n);break;case 31:Va(e,n),i&4&&yp(e,n);break;case 13:Va(e,n),i&4&&vp(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Cv.bind(null,n),Vv(e,n))));break;case 22:if(i=n.memoizedState!==null||Xa,!i){t=t!==null&&t.memoizedState!==null||nn,o=Xa;var c=nn;Xa=i,(nn=t)&&!c?Ja(e,n,(n.subtreeFlags&8772)!==0):Va(e,n),Xa=o,nn=c}break;case 30:break;default:Va(e,n)}}function gp(e){var t=e.alternate;t!==null&&(e.alternate=null,gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$n(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 zt=null,Fn=!1;function Qa(e,t,n){for(n=n.child;n!==null;)bp(e,t,n),n=n.sibling}function bp(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(yn,n)}catch{}switch(n.tag){case 26:nn||ka(n,t),Qa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nn||ka(n,t);var i=zt,o=Fn;wi(n.type)&&(zt=n.stateNode,Fn=!1),Qa(e,t,n),Ns(n.stateNode),zt=i,Fn=o;break;case 5:nn||ka(n,t);case 6:if(i=zt,o=Fn,zt=null,Qa(e,t,n),zt=i,Fn=o,zt!==null)if(Fn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{zt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:zt!==null&&(Fn?(e=zt,cm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):cm(zt,n.stateNode));break;case 4:i=zt,o=Fn,zt=n.stateNode.containerInfo,Fn=!0,Qa(e,t,n),zt=i,Fn=o;break;case 0:case 11:case 14:case 15:yi(2,n,t),nn||yi(4,n,t),Qa(e,t,n);break;case 1:nn||(ka(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&up(n,t,i)),Qa(e,t,n);break;case 21:Qa(e,t,n);break;case 22:nn=(i=nn)||n.memoizedState!==null,Qa(e,t,n),nn=i;break;default:Qa(e,t,n)}}function yp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ml(e)}catch(n){_t(t,t.return,n)}}}function vp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ml(e)}catch(n){_t(t,t.return,n)}}function Nv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pp),t;default:throw Error(l(435,e.tag))}}function Ar(e,t){var n=Nv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=Mv.bind(null,e,i);i.then(o,o)}})}function Kn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(wi(E.type)){zt=E.stateNode,Fn=!1;break e}break;case 5:zt=E.stateNode,Fn=!1;break e;case 3:case 4:zt=E.stateNode.containerInfo,Fn=!0;break e}E=E.return}if(zt===null)throw Error(l(160));bp(c,h,o),zt=null,Fn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ep(t,e),t=t.sibling}var Ea=null;function Ep(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kn(t,e),Pn(e),i&4&&(yi(3,e,e.return),hs(3,e),yi(5,e,e.return));break;case 1:Kn(t,e),Pn(e),i&512&&(nn||n===null||ka(n,n.return)),i&64&&Xa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=Ea;if(Kn(t,e),Pn(e),i&512&&(nn||n===null||ka(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[$t]||c[Ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),Sn(c,i,n),c[Ot]=e,vt(c),i=c;break e;case"link":var h=Em("link","href",o).get(i+(n.href||""));if(h){for(var E=0;E<h.length;E++)if(c=h[E],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(E,1);break t}}c=o.createElement(i),Sn(c,i,n),o.head.appendChild(c);break;case"meta":if(h=Em("meta","content",o).get(i+(n.content||""))){for(E=0;E<h.length;E++)if(c=h[E],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(E,1);break t}}c=o.createElement(i),Sn(c,i,n),o.head.appendChild(c);break;default:throw Error(l(468,i))}c[Ot]=e,vt(c),i=c}e.stateNode=i}else _m(o,e.type,e.stateNode);else e.stateNode=vm(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?_m(o,e.type,e.stateNode):vm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Kn(t,e),Pn(e),i&512&&(nn||n===null||ka(n,n.return)),n!==null&&i&4&&Cc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Kn(t,e),Pn(e),i&512&&(nn||n===null||ka(n,n.return)),e.flags&32){o=e.stateNode;try{V(o,"")}catch(xe){_t(e,e.return,xe)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Cc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(Lc=!0);break;case 6:if(Kn(t,e),Pn(e),i&4){if(e.stateNode===null)throw Error(l(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(xe){_t(e,e.return,xe)}}break;case 3:if($r=null,o=Ea,Ea=qr(t.containerInfo),Kn(t,e),Ea=o,Pn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(xe){_t(e,e.return,xe)}Lc&&(Lc=!1,_p(e));break;case 4:i=Ea,Ea=qr(e.stateNode.containerInfo),Kn(t,e),Pn(e),Ea=i;break;case 12:Kn(t,e),Pn(e);break;case 31:Kn(t,e),Pn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 13:Kn(t,e),Pn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=st()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 22:o=e.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,$=Xa,te=nn;if(Xa=$||o,nn=te||R,Kn(t,e),nn=te,Xa=$,Pn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||R||Xa||nn||Qi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){R=n=t;try{if(c=R.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=R.stateNode;var se=R.memoizedProps.style,F=se!=null&&se.hasOwnProperty("display")?se.display:null;E.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(xe){_t(R,R.return,xe)}}}else if(t.tag===6){if(n===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(xe){_t(R,R.return,xe)}}}else if(t.tag===18){if(n===null){R=t;try{var Q=R.stateNode;o?um(Q,!0):um(R.stateNode,!1)}catch(xe){_t(R,R.return,xe)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Ar(e,n))));break;case 19:Kn(t,e),Pn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 30:break;case 21:break;default:Kn(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(dp(i)){n=i;break}i=i.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=Mc(e);xr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(V(h,""),n.flags&=-33);var E=Mc(e);xr(e,E,h);break;case 3:case 4:var R=n.stateNode.containerInfo,$=Mc(e);Dc(e,$,R);break;default:throw Error(l(161))}}catch(te){_t(e,e.return,te)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _p(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_p(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mp(e,t.alternate,t),t=t.sibling}function Qi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yi(4,t,t.return),Qi(t);break;case 1:ka(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&up(t,t.return,n),Qi(t);break;case 27:Ns(t.stateNode);case 26:case 5:ka(t,t.return),Qi(t);break;case 22:t.memoizedState===null&&Qi(t);break;case 30:Qi(t);break;default:Qi(t)}e=e.sibling}}function Ja(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Ja(o,c,n),hs(4,c);break;case 1:if(Ja(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch($){_t(i,i.return,$)}if(i=c,o=i.updateQueue,o!==null){var E=i.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Jd(R[o],E)}catch($){_t(i,i.return,$)}}n&&h&64&&cp(c),ps(c,c.return);break;case 27:hp(c);case 26:case 5:Ja(o,c,n),n&&i===null&&h&4&&fp(c),ps(c,c.return);break;case 12:Ja(o,c,n);break;case 31:Ja(o,c,n),n&&h&4&&yp(o,c);break;case 13:Ja(o,c,n),n&&h&4&&vp(o,c);break;case 22:c.memoizedState===null&&Ja(o,c,n),ps(c,c.return);break;case 30:break;default:Ja(o,c,n)}t=t.sibling}}function zc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&es(n))}function Uc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function _a(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sp(e,t,n,i),t=t.sibling}function Sp(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:_a(e,t,n,i),o&2048&&hs(9,t);break;case 1:_a(e,t,n,i);break;case 3:_a(e,t,n,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){_a(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){_t(t,t.return,R)}}else _a(e,t,n,i);break;case 31:_a(e,t,n,i);break;case 13:_a(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?_a(e,t,n,i):ms(e,t):c._visibility&2?_a(e,t,n,i):(c._visibility|=2,_l(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&zc(h,t);break;case 24:_a(e,t,n,i),o&2048&&Uc(t.alternate,t);break;default:_a(e,t,n,i)}}function _l(e,t,n,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,R=i,$=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,R,o),hs(8,h);break;case 23:break;case 22:var te=h.stateNode;h.memoizedState!==null?te._visibility&2?_l(c,h,E,R,o):ms(c,h):(te._visibility|=2,_l(c,h,E,R,o)),o&&$&2048&&zc(h.alternate,h);break;case 24:_l(c,h,E,R,o),o&&$&2048&&Uc(h.alternate,h);break;default:_l(c,h,E,R,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,o=i.flags;switch(i.tag){case 22:ms(n,i),o&2048&&zc(i.alternate,i);break;case 24:ms(n,i),o&2048&&Uc(i.alternate,i);break;default:ms(n,i)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)Np(e,t,n),e=e.sibling}function Np(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&cE(n,Ea,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var i=Ea;Ea=qr(e.stateNode.containerInfo),Sl(e,t,n),Ea=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=gs,gs=16777216,Sl(e,t,n),gs=i):Sl(e,t,n));break;default:Sl(e,t,n)}}function Tp(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 bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mn=i,xp(i,e)}Tp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wp(e),e=e.sibling}function wp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&yi(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rr(e)):bs(e);break;default:bs(e)}}function Rr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mn=i,xp(i,e)}Tp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yi(8,t,t.return),Rr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rr(t));break;default:Rr(t)}e=e.sibling}}function xp(e,t){for(;mn!==null;){var n=mn;switch(n.tag){case 0:case 11:case 15:yi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:es(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,mn=i;else e:for(n=e;mn!==null;){i=mn;var o=i.sibling,c=i.return;if(gp(i),i===n){mn=null;break e}if(o!==null){o.return=c,mn=o;break e}mn=c}}}var Tv={getCacheForType:function(e){var t=En(Wt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return En(Wt).controller.signal}},wv=typeof WeakMap=="function"?WeakMap:Map,gt=0,At=null,et=null,it=0,Et=0,na=null,vi=!1,Nl=!1,jc=!1,Wa=0,Ht=0,Ei=0,Vi=0,Bc=0,aa=0,Tl=0,ys=null,Zn=null,Ic=!1,Or=0,Ap=0,kr=1/0,Cr=null,_i=null,on=0,Si=null,wl=null,ei=0,Hc=0,qc=null,Rp=null,vs=0,Gc=null;function ia(){return(gt&2)!==0&&it!==0?it&-it:j.T!==null?Zc():Vn()}function Op(){if(aa===0)if((it&536870912)===0||rt){var e=dn;dn<<=1,(dn&3932160)===0&&(dn=262144),aa=e}else aa=536870912;return e=ea.current,e!==null&&(e.flags|=32),aa}function Xn(e,t,n){(e===At&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Ni(e,it,aa,!1)),Qe(e,n),((gt&2)===0||e!==At)&&(e===At&&((gt&2)===0&&(Vi|=n),Ht===4&&Ni(e,it,aa,!1)),Ca(e))}function kp(e,t,n){if((gt&6)!==0)throw Error(l(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ee(e,t),o=i?Rv(e,t):Yc(e,t,!0),c=i;do{if(o===0){Nl&&!i&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!xv(n)){o=Yc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var E=e;o=ys;var R=E.current.memoizedState.isDehydrated;if(R&&(xl(E,h).flags|=256),h=Yc(E,h,!1),h!==2){if(jc&&!R){E.errorRecoveryDisabledLanes|=c,Vi|=c,o=4;break e}c=Zn,Zn=o,c!==null&&(Zn===null?Zn=c:Zn.push.apply(Zn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),Ni(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ni(i,t,aa,!vi);break e;case 2:Zn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Or+300-st(),10<o)){if(Ni(i,t,aa,!vi),O(i,0,!0)!==0)break e;ei=t,i.timeoutHandle=rm(Cp.bind(null,i,n,Zn,Cr,Ic,t,aa,Vi,Tl,vi,c,"Throttled",-0,0),o);break e}Cp(i,n,Zn,Cr,Ic,t,aa,Vi,Tl,vi,c,null,-0,0)}}break}while(!0);Ca(e)}function Cp(e,t,n,i,o,c,h,E,R,$,te,se,F,Q){if(e.timeoutHandle=-1,se=t.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oe},Np(t,c,se);var xe=(c&62914560)===c?Or-st():(c&4194048)===c?Ap-st():0;if(xe=uE(se,xe),xe!==null){ei=c,e.cancelPendingCommit=xe(Ip.bind(null,e,t,c,n,i,o,h,E,R,te,se,null,F,Q)),Ni(e,c,h,!$);return}}Ip(e,t,c,n,i,o,h,E,R)}function xv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],c=o.getSnapshot;o=o.value;try{if(!Jn(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ni(e,t,n,i){t&=~Bc,t&=~Vi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-jt(o),h=1<<c;i[c]=-1,o&=~h}n!==0&&Ee(e,n,t)}function Mr(){return(gt&6)===0?(Es(0),!1):!0}function $c(){if(et!==null){if(Et===0)var e=et.return;else e=et,$a=Gi=null,lc(e),gl=null,ns=0,e=et;for(;e!==null;)op(e.alternate,e),e=e.return;et=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Kv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ei=0,$c(),At=e,et=n=qa(e.current,null),it=t,Et=0,na=null,vi=!1,Nl=ee(e,t),jc=!1,Tl=aa=Bc=Vi=Ei=Ht=0,Zn=ys=null,Ic=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-jt(i),c=1<<o;t|=e[o],i&=~c}return Wa=t,Ws(),n}function Mp(e,t){Ye=null,j.H=us,t===ml||t===rr?(t=Zd(),Et=3):t===Po?(t=Zd(),Et=4):Et=t===_c?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,na=t,et===null&&(Ht=1,_r(e,ca(t,e.current)))}function Dp(){var e=ea.current;return e===null?!0:(it&4194048)===it?ha===null:(it&62914560)===it||(it&536870912)!==0?e===ha:!1}function Lp(){var e=j.H;return j.H=us,e===null?us:e}function zp(){var e=j.A;return j.A=Tv,e}function Dr(){Ht=4,vi||(it&4194048)!==it&&ea.current!==null||(Nl=!0),(Ei&134217727)===0&&(Vi&134217727)===0||At===null||Ni(At,it,aa,!1)}function Yc(e,t,n){var i=gt;gt|=2;var o=Lp(),c=zp();(At!==e||it!==t)&&(Cr=null,xl(e,t)),t=!1;var h=Ht;e:do try{if(Et!==0&&et!==null){var E=et,R=na;switch(Et){case 8:$c(),h=6;break e;case 3:case 2:case 9:case 6:ea.current===null&&(t=!0);var $=Et;if(Et=0,na=null,Al(e,E,R,$),n&&Nl){h=0;break e}break;default:$=Et,Et=0,na=null,Al(e,E,R,$)}}Av(),h=Ht;break}catch(te){Mp(e,te)}while(!0);return t&&e.shellSuspendCounter++,$a=Gi=null,gt=i,j.H=o,j.A=c,et===null&&(At=null,it=0,Ws()),h}function Av(){for(;et!==null;)Up(et)}function Rv(e,t){var n=gt;gt|=2;var i=Lp(),o=zp();At!==e||it!==t?(Cr=null,kr=st()+500,xl(e,t)):Nl=ee(e,t);e:do try{if(Et!==0&&et!==null){t=et;var c=na;t:switch(Et){case 1:Et=0,na=null,Al(e,t,c,1);break;case 2:case 9:if(Kd(c)){Et=0,na=null,jp(t);break}t=function(){Et!==2&&Et!==9||At!==e||(Et=7),Ca(e)},c.then(t,t);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:Kd(c)?(Et=0,na=null,jp(t)):(Et=0,na=null,Al(e,t,c,7));break;case 5:var h=null;switch(et.tag){case 26:h=et.memoizedState;case 5:case 27:var E=et;if(h?Sm(h):E.stateNode.complete){Et=0,na=null;var R=E.sibling;if(R!==null)et=R;else{var $=E.return;$!==null?(et=$,Lr($)):et=null}break t}}Et=0,na=null,Al(e,t,c,5);break;case 6:Et=0,na=null,Al(e,t,c,6);break;case 8:$c(),Ht=6;break e;default:throw Error(l(462))}}Ov();break}catch(te){Mp(e,te)}while(!0);return $a=Gi=null,j.H=i,j.A=o,gt=n,et!==null?0:(At=null,it=0,Ws(),Ht)}function Ov(){for(;et!==null&&!sa();)Up(et)}function Up(e){var t=sp(e.alternate,e,Wa);e.memoizedProps=e.pendingProps,t===null?Lr(e):et=t}function jp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ep(n,t,t.pendingProps,t.type,void 0,it);break;case 11:t=ep(n,t,t.pendingProps,t.type.render,t.ref,it);break;case 5:lc(t);default:op(n,t),t=et=zd(t,Wa),t=sp(n,t,Wa)}e.memoizedProps=e.pendingProps,t===null?Lr(e):et=t}function Al(e,t,n,i){$a=Gi=null,lc(t),gl=null,ns=0;var o=t.return;try{if(bv(e,o,t,n,it)){Ht=1,_r(e,ca(n,e.current)),et=null;return}}catch(c){if(o!==null)throw et=o,c;Ht=1,_r(e,ca(n,e.current)),et=null;return}t.flags&32768?(rt||i===1?e=!0:Nl||(it&536870912)!==0?e=!1:(vi=e=!0,(i===2||i===9||i===3||i===6)&&(i=ea.current,i!==null&&i.tag===13&&(i.flags|=16384))),Bp(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){Bp(t,vi);return}e=t.return;var n=Ev(t.alternate,t,Wa);if(n!==null){et=n;return}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);Ht===0&&(Ht=5)}function Bp(e,t){do{var n=_v(e.alternate,e);if(n!==null){n.flags&=32767,et=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){et=e;return}et=e=n}while(e!==null);Ht=6,et=null}function Ip(e,t,n,i,o,c,h,E,R){e.cancelPendingCommit=null;do zr();while(on!==0);if((gt&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=Mo,Ne(e,n,c,h,E,R),e===At&&(et=At=null,it=0),wl=t,Si=e,ei=n,Hc=c,qc=o,Rp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Dv(xn,function(){return Yp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=j.T,j.T=null,o=ae.p,ae.p=2,h=gt,gt|=4;try{Sv(e,t,n)}finally{gt=h,ae.p=o,j.T=i}}on=1,Hp(),qp(),Gp()}}function Hp(){if(on===1){on=0;var e=Si,t=wl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var i=ae.p;ae.p=2;var o=gt;gt|=4;try{Ep(t,e);var c=nu,h=xd(e.containerInfo),E=c.focusedElem,R=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&wd(E.ownerDocument.documentElement,E)){if(R!==null&&Ao(E)){var $=R.start,te=R.end;if(te===void 0&&(te=$),"selectionStart"in E)E.selectionStart=$,E.selectionEnd=Math.min(te,E.value.length);else{var se=E.ownerDocument||document,F=se&&se.defaultView||window;if(F.getSelection){var Q=F.getSelection(),xe=E.textContent.length,je=Math.min(R.start,xe),wt=R.end===void 0?je:Math.min(R.end,xe);!Q.extend&&je>wt&&(h=wt,wt=je,je=h);var B=Td(E,je),M=Td(E,wt);if(B&&M&&(Q.rangeCount!==1||Q.anchorNode!==B.node||Q.anchorOffset!==B.offset||Q.focusNode!==M.node||Q.focusOffset!==M.offset)){var G=se.createRange();G.setStart(B.node,B.offset),Q.removeAllRanges(),je>wt?(Q.addRange(G),Q.extend(M.node,M.offset)):(G.setEnd(M.node,M.offset),Q.addRange(G))}}}}for(se=[],Q=E;Q=Q.parentNode;)Q.nodeType===1&&se.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<se.length;E++){var ie=se[E];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}Pr=!!tu,nu=tu=null}finally{gt=o,ae.p=i,j.T=n}}e.current=t,on=2}}function qp(){if(on===2){on=0;var e=Si,t=wl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var i=ae.p;ae.p=2;var o=gt;gt|=4;try{mp(e,t.alternate,t)}finally{gt=o,ae.p=i,j.T=n}}on=3}}function Gp(){if(on===4||on===3){on=0,Qn();var e=Si,t=wl,n=ei,i=Rp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?on=5:(on=0,wl=Si=null,$p(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(_i=null),In(n),t=t.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(yn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=j.T,o=ae.p,ae.p=2,j.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var E=i[h];c(E.value,{componentStack:E.stack})}}finally{j.T=t,ae.p=o}}(ei&3)!==0&&zr(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Gc?vs++:(vs=0,Gc=e):vs=0,Es(0)}}function $p(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return Hp(),qp(),Gp(),Yp()}function Yp(){if(on!==5)return!1;var e=Si,t=Hc;Hc=0;var n=In(ei),i=j.T,o=ae.p;try{ae.p=32>n?32:n,j.T=null,n=qc,qc=null;var c=Si,h=ei;if(on=0,wl=Si=null,ei=0,(gt&6)!==0)throw Error(l(331));var E=gt;if(gt|=4,wp(c.current),Sp(c,c.current,h,n),gt=E,Es(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(yn,c)}catch{}return!0}finally{ae.p=o,j.T=i,$p(e,t)}}function Fp(e,t,n){t=ca(n,t),t=Ec(e.stateNode,t,2),e=mi(e,t,2),e!==null&&(Qe(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)Fp(e,e,n);else for(;t!==null;){if(t.tag===3){Fp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(_i===null||!_i.has(i))){e=ca(n,e),n=Kh(2),i=mi(t,n,2),i!==null&&(Ph(n,i,t,e),Qe(i,2),Ca(i));break}}t=t.return}}function Fc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new wv;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(n)||(jc=!0,o.add(n),e=kv.bind(null,e,t,n),t.then(e,e))}function kv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,At===e&&(it&n)===n&&(Ht===4||Ht===3&&(it&62914560)===it&&300>st()-Or?(gt&2)===0&&xl(e,0):Bc|=n,Tl===it&&(Tl=0)),Ca(e)}function Kp(e,t){t===0&&(t=Me()),e=Ii(e,t),e!==null&&(Qe(e,t),Ca(e))}function Cv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kp(e,n)}function Mv(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(l(314))}i!==null&&i.delete(t),Kp(e,n)}function Dv(e,t){return Dt(e,t)}var Ur=null,Rl=null,Kc=!1,jr=!1,Pc=!1,Ti=0;function Ca(e){e!==Rl&&e.next===null&&(Rl===null?Ur=Rl=e:Rl=Rl.next=e),jr=!0,Kc||(Kc=!0,zv())}function Es(e,t){if(!Pc&&jr){Pc=!0;do for(var n=!1,i=Ur;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var h=i.suspendedLanes,E=i.pingedLanes;c=(1<<31-jt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Qp(i,c))}else c=it,c=O(i,i===At?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ee(i,c)||(n=!0,Qp(i,c));i=i.next}while(n);Pc=!1}}function Lv(){Pp()}function Pp(){jr=Kc=!1;var e=0;Ti!==0&&Fv()&&(e=Ti);for(var t=st(),n=null,i=Ur;i!==null;){var o=i.next,c=Zp(i,t);c===0?(i.next=null,n===null?Ur=o:n.next=o,o===null&&(Rl=n)):(n=i,(e!==0||(c&3)!==0)&&(jr=!0)),i=o}on!==0&&on!==5||Es(e),Ti!==0&&(Ti=0)}function Zp(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-jt(c),E=1<<h,R=o[h];R===-1?((E&n)===0||(E&i)!==0)&&(o[h]=me(E,t)):R<=t&&(e.expiredLanes|=E),c&=~E}if(t=At,n=it,n=O(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ln(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ee(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Ln(i),In(n)){case 2:case 8:n=cn;break;case 32:n=xn;break;case 268435456:n=zn;break;default:n=xn}return i=Xp.bind(null,e),n=Dt(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Ln(i),e.callbackPriority=2,e.callbackNode=null,2}function Xp(e,t){if(on!==0&&on!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var i=it;return i=O(e,e===At?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(kp(e,i,t),Zp(e,st()),e.callbackNode!=null&&e.callbackNode===n?Xp.bind(null,e):null)}function Qp(e,t){if(zr())return null;kp(e,t,!0)}function zv(){Pv(function(){(gt&6)!==0?Dt(ut,Lv):Pp()})}function Zc(){if(Ti===0){var e=hl;e===0&&(e=Ie,Ie<<=1,(Ie&261888)===0&&(Ie=256)),Ti=e}return Ti}function Vp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:We(""+e)}function Jp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Uv(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=Vp((o[Y]||null).action),h=i.submitter;h&&(t=(t=h[Y]||null)?Vp(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Xs("action","action",null,i,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ti!==0){var R=h?Jp(o,h):new FormData(o);pc(n,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(E.preventDefault(),R=h?Jp(o,h):new FormData(o),pc(n,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var Xc=0;Xc<Co.length;Xc++){var Qc=Co[Xc],jv=Qc.toLowerCase(),Bv=Qc[0].toUpperCase()+Qc.slice(1);va(jv,"on"+Bv)}va(Od,"onAnimationEnd"),va(kd,"onAnimationIteration"),va(Cd,"onAnimationStart"),va("dblclick","onDoubleClick"),va("focusin","onFocus"),va("focusout","onBlur"),va(ev,"onTransitionRun"),va(tv,"onTransitionStart"),va(nv,"onTransitionCancel"),va(Md,"onTransitionEnd"),fe("onMouseEnter",["mouseout","mouseover"]),fe("onMouseLeave",["mouseout","mouseover"]),fe("onPointerEnter",["pointerout","pointerover"]),fe("onPointerLeave",["pointerout","pointerover"]),ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),Iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function Wp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var E=i[h],R=E.instance,$=E.currentTarget;if(E=E.listener,R!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=$;try{c(o)}catch(te){Js(te)}o.currentTarget=null,c=R}else for(h=0;h<i.length;h++){if(E=i[h],R=E.instance,$=E.currentTarget,E=E.listener,R!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=$;try{c(o)}catch(te){Js(te)}o.currentTarget=null,c=R}}}}function tt(e,t){var n=t[we];n===void 0&&(n=t[we]=new Set);var i=e+"__bubble";n.has(i)||(em(t,e,2,!1),n.add(i))}function Vc(e,t,n){var i=0;t&&(i|=4),em(n,e,i,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Jc(e){if(!e[Br]){e[Br]=!0,Ua.forEach(function(n){n!=="selectionchange"&&(Iv.has(n)||Vc(n,!1,e),Vc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Vc("selectionchange",!1,t))}}function em(e,t,n,i){switch(Om(t)){case 2:var o=hE;break;case 8:o=pE;break;default:o=hu}n=o.bind(null,t,n,e),o=void 0,!yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wc(e,t,n,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var E=i.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=i.return;h!==null;){var R=h.tag;if((R===3||R===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=St(E),h===null)return;if(R=h.tag,R===5||R===6||R===26||R===27){i=c=h;continue e}E=E.parentNode}}i=i.return}Fs(function(){var $=c,te=ke(n),se=[];e:{var F=Dd.get(e);if(F!==void 0){var Q=Xs,xe=e;switch(e){case"keypress":if(Ps(n)===0)break e;case"keydown":case"keyup":Q=My;break;case"focusin":xe="focus",Q=So;break;case"focusout":xe="blur",Q=So;break;case"beforeblur":case"afterblur":Q=So;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=Ey;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=zy;break;case Od:case kd:case Cd:Q=Ny;break;case Md:Q=jy;break;case"scroll":case"scrollend":Q=yy;break;case"wheel":Q=Iy;break;case"copy":case"cut":case"paste":Q=wy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=ud;break;case"toggle":case"beforetoggle":Q=qy}var je=(t&4)!==0,wt=!je&&(e==="scroll"||e==="scrollend"),B=je?F!==null?F+"Capture":null:F;je=[];for(var M=$,G;M!==null;){var ie=M;if(G=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||G===null||B===null||(ie=$l(M,B),ie!=null&&je.push(Ss(M,ie,G))),wt)break;M=M.return}0<je.length&&(F=new Q(F,xe,null,n,te),se.push({event:F,listeners:je}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",F&&n!==ye&&(xe=n.relatedTarget||n.fromElement)&&(St(xe)||xe[re]))break e;if((Q||F)&&(F=te.window===te?te:(F=te.ownerDocument)?F.defaultView||F.parentWindow:window,Q?(xe=n.relatedTarget||n.toElement,Q=$,xe=xe?St(xe):null,xe!==null&&(wt=d(xe),je=xe.tag,xe!==wt||je!==5&&je!==27&&je!==6)&&(xe=null)):(Q=null,xe=$),Q!==xe)){if(je=od,ie="onMouseLeave",B="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(je=ud,ie="onPointerLeave",B="onPointerEnter",M="pointer"),wt=Q==null?F:wa(Q),G=xe==null?F:wa(xe),F=new je(ie,M+"leave",Q,n,te),F.target=wt,F.relatedTarget=G,ie=null,St(te)===$&&(je=new je(B,M+"enter",xe,n,te),je.target=G,je.relatedTarget=wt,ie=je),wt=ie,Q&&xe)t:{for(je=Hv,B=Q,M=xe,G=0,ie=B;ie;ie=je(ie))G++;ie=0;for(var De=M;De;De=je(De))ie++;for(;0<G-ie;)B=je(B),G--;for(;0<ie-G;)M=je(M),ie--;for(;G--;){if(B===M||M!==null&&B===M.alternate){je=B;break t}B=je(B),M=je(M)}je=null}else je=null;Q!==null&&tm(se,F,Q,je,!1),xe!==null&&wt!==null&&tm(se,wt,xe,je,!0)}}e:{if(F=$?wa($):window,Q=F.nodeName&&F.nodeName.toLowerCase(),Q==="select"||Q==="input"&&F.type==="file")var ht=yd;else if(gd(F))if(vd)ht=Vy;else{ht=Xy;var Re=Zy}else Q=F.nodeName,!Q||Q.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?$&&Te($.elementType)&&(ht=yd):ht=Qy;if(ht&&(ht=ht(e,$))){bd(se,ht,n,te);break e}Re&&Re(e,F,$),e==="focusout"&&$&&F.type==="number"&&$.memoizedProps.value!=null&&ri(F,"number",F.value)}switch(Re=$?wa($):window,e){case"focusin":(gd(Re)||Re.contentEditable==="true")&&(ll=Re,Ro=$,Vl=null);break;case"focusout":Vl=Ro=ll=null;break;case"mousedown":Oo=!0;break;case"contextmenu":case"mouseup":case"dragend":Oo=!1,Ad(se,n,te);break;case"selectionchange":if(Wy)break;case"keydown":case"keyup":Ad(se,n,te)}var Ze;if(To)e:{switch(e){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else il?pd(e,n)&&(lt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(lt="onCompositionStart");lt&&(fd&&n.locale!=="ko"&&(il||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&il&&(Ze=sd()):(oi=te,vo="value"in oi?oi.value:oi.textContent,il=!0)),Re=Ir($,lt),0<Re.length&&(lt=new cd(lt,e,null,n,te),se.push({event:lt,listeners:Re}),Ze?lt.data=Ze:(Ze=md(n),Ze!==null&&(lt.data=Ze)))),(Ze=$y?Yy(e,n):Fy(e,n))&&(lt=Ir($,"onBeforeInput"),0<lt.length&&(Re=new cd("onBeforeInput","beforeinput",null,n,te),se.push({event:Re,listeners:lt}),Re.data=Ze)),Uv(se,e,$,n,te)}Wp(se,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=$l(e,n),o!=null&&i.unshift(Ss(e,o,c)),o=$l(e,t),o!=null&&i.push(Ss(e,o,c))),e.tag===3)return i;e=e.return}return[]}function Hv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tm(e,t,n,i,o){for(var c=t._reactName,h=[];n!==null&&n!==i;){var E=n,R=E.alternate,$=E.stateNode;if(E=E.tag,R!==null&&R===i)break;E!==5&&E!==26&&E!==27||$===null||(R=$,o?($=$l(n,c),$!=null&&h.unshift(Ss(n,$,R))):o||($=$l(n,c),$!=null&&h.push(Ss(n,$,R)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var qv=/\r\n?/g,Gv=/\u0000|\uFFFD/g;function nm(e){return(typeof e=="string"?e:""+e).replace(qv,`
49
- `).replace(Gv,"")}function am(e,t){return t=nm(t),nm(e)===t}function Tt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||V(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&V(e,""+i);break;case"className":pn(e,"class",i);break;case"tabIndex":pn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":pn(e,n,i);break;case"style":W(e,i,c);break;case"data":if(t!=="object"){pn(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=We(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"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"&&(n==="formAction"?(t!=="input"&&Tt(e,t,"name",o.name,o,null),Tt(e,t,"formEncType",o.formEncType,o,null),Tt(e,t,"formMethod",o.formMethod,o,null),Tt(e,t,"formTarget",o.formTarget,o,null)):(Tt(e,t,"encType",o.encType,o,null),Tt(e,t,"method",o.method,o,null),Tt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=We(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=oe);break;case"onScroll":i!=null&&tt("scroll",e);break;case"onScrollEnd":i!=null&&tt("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=We(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":tt("beforetoggle",e),tt("toggle",e),Vt(e,"popover",i);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Vt(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ae.get(n)||n,Vt(e,n,i))}}function eu(e,t,n,i,o,c){switch(n){case"style":W(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof i=="string"?V(e,i):(typeof i=="number"||typeof i=="bigint")&&V(e,""+i);break;case"onScroll":i!=null&&tt("scroll",e);break;case"onScrollEnd":i!=null&&tt("scrollend",e);break;case"onClick":i!=null&&(e.onclick=oe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hn.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[Y]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Vt(e,n,i)}}}function Sn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",e),tt("load",e);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Tt(e,t,c,h,n,null)}}o&&Tt(e,t,"srcSet",n.srcSet,n,null),i&&Tt(e,t,"src",n.src,n,null);return;case"input":tt("invalid",e);var E=c=h=o=null,R=null,$=null;for(i in n)if(n.hasOwnProperty(i)){var te=n[i];if(te!=null)switch(i){case"name":o=te;break;case"type":h=te;break;case"checked":R=te;break;case"defaultChecked":$=te;break;case"value":c=te;break;case"defaultValue":E=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(l(137,t));break;default:Tt(e,t,i,te,n,null)}}Ba(e,c,E,R,$,h,o,!1);return;case"select":tt("invalid",e),i=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(E=n[o],E!=null))switch(o){case"value":c=E;break;case"defaultValue":h=E;break;case"multiple":i=E;default:Tt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!i,t!=null?Jt(e,!!i,t,!1):n!=null&&Jt(e,!!i,n,!0);return;case"textarea":tt("invalid",e),c=o=i=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":i=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(l(91));break;default:Tt(e,t,h,E,n,null)}Aa(e,i,o,c);return;case"option":for(R in n)if(n.hasOwnProperty(R)&&(i=n[R],i!=null))switch(R){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Tt(e,t,R,i,n,null)}return;case"dialog":tt("beforetoggle",e),tt("toggle",e),tt("cancel",e),tt("close",e);break;case"iframe":case"object":tt("load",e);break;case"video":case"audio":for(i=0;i<_s.length;i++)tt(_s[i],e);break;case"image":tt("error",e),tt("load",e);break;case"details":tt("toggle",e);break;case"embed":case"source":case"link":tt("error",e),tt("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($ in n)if(n.hasOwnProperty($)&&(i=n[$],i!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Tt(e,t,$,i,n,null)}return;default:if(Te(t)){for(te in n)n.hasOwnProperty(te)&&(i=n[te],i!==void 0&&eu(e,t,te,i,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(i=n[E],i!=null&&Tt(e,t,E,i,n,null))}function $v(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,R=null,$=null,te=null;for(Q in n){var se=n[Q];if(n.hasOwnProperty(Q)&&se!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":R=se;default:i.hasOwnProperty(Q)||Tt(e,t,Q,null,i,se)}}for(var F in i){var Q=i[F];if(se=n[F],i.hasOwnProperty(F)&&(Q!=null||se!=null))switch(F){case"type":c=Q;break;case"name":o=Q;break;case"checked":$=Q;break;case"defaultChecked":te=Q;break;case"value":h=Q;break;case"defaultValue":E=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,t));break;default:Q!==se&&Tt(e,t,F,Q,i,se)}}si(e,h,E,R,$,te,c,o);return;case"select":Q=h=E=F=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":Q=R;default:i.hasOwnProperty(c)||Tt(e,t,c,null,i,R)}for(o in i)if(c=i[o],R=n[o],i.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":F=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==R&&Tt(e,t,o,c,i,R)}t=E,n=h,i=Q,F!=null?Jt(e,!!n,F,!1):!!i!=!!n&&(t!=null?Jt(e,!!n,t,!0):Jt(e,!!n,n?[]:"",!1));return;case"textarea":Q=F=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Tt(e,t,E,null,i,o)}for(h in i)if(o=i[h],c=n[h],i.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":F=o;break;case"defaultValue":Q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&Tt(e,t,h,o,i,c)}Ia(e,F,Q);return;case"option":for(var xe in n)if(F=n[xe],n.hasOwnProperty(xe)&&F!=null&&!i.hasOwnProperty(xe))switch(xe){case"selected":e.selected=!1;break;default:Tt(e,t,xe,null,i,F)}for(R in i)if(F=i[R],Q=n[R],i.hasOwnProperty(R)&&F!==Q&&(F!=null||Q!=null))switch(R){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:Tt(e,t,R,F,i,Q)}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 je in n)F=n[je],n.hasOwnProperty(je)&&F!=null&&!i.hasOwnProperty(je)&&Tt(e,t,je,null,i,F);for($ in i)if(F=i[$],Q=n[$],i.hasOwnProperty($)&&F!==Q&&(F!=null||Q!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(l(137,t));break;default:Tt(e,t,$,F,i,Q)}return;default:if(Te(t)){for(var wt in n)F=n[wt],n.hasOwnProperty(wt)&&F!==void 0&&!i.hasOwnProperty(wt)&&eu(e,t,wt,void 0,i,F);for(te in i)F=i[te],Q=n[te],!i.hasOwnProperty(te)||F===Q||F===void 0&&Q===void 0||eu(e,t,te,F,i,Q);return}}for(var B in n)F=n[B],n.hasOwnProperty(B)&&F!=null&&!i.hasOwnProperty(B)&&Tt(e,t,B,null,i,F);for(se in i)F=i[se],Q=n[se],!i.hasOwnProperty(se)||F===Q||F==null&&Q==null||Tt(e,t,se,F,i,Q)}function im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Yv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&im(h)){for(h=0,E=o.responseEnd,i+=1;i<n.length;i++){var R=n[i],$=R.startTime;if($>E)break;var te=R.transferSize,se=R.initiatorType;te&&im(se)&&(R=R.responseEnd,h+=te*(R<E?1:(E-$)/(R-$)))}if(--i,t+=8*(c+h)/(o.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 tu=null,nu=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function lm(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 sm(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 au(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 iu=null;function Fv(){var e=window.event;return e&&e.type==="popstate"?e===iu?!1:(iu=e,!0):(iu=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,Kv=typeof clearTimeout=="function"?clearTimeout:void 0,om=typeof Promise=="function"?Promise:void 0,Pv=typeof queueMicrotask=="function"?queueMicrotask:typeof om<"u"?function(e){return om.resolve(null).then(e).catch(Zv)}:rm;function Zv(e){setTimeout(function(){throw e})}function wi(e){return e==="head"}function cm(e,t){var n=t,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(o),Ml(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ns(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ns(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[$t]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ns(e.ownerDocument.body);n=o}while(n);Ml(t)}function um(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function lu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":lu(n),$n(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Xv(e,t,n,i){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[$t])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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=pa(e.nextSibling),e===null)break}return null}function Qv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=pa(e.nextSibling),e===null))return null;return e}function fm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=pa(e.nextSibling),e===null))return null;return e}function su(e){return e.data==="$?"||e.data==="$~"}function ru(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Vv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function pa(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 ou=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return pa(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function hm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function pm(e,t,n){switch(t=Hr(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$n(e)}var ma=new Map,mm=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ti=ae.d;ae.d={f:Jv,r:Wv,D:eE,C:tE,L:nE,m:aE,X:lE,S:iE,M:sE};function Jv(){var e=ti.f(),t=Mr();return e||t}function Wv(e){var t=On(e);t!==null&&t.tag===5&&t.type==="form"?Mh(t):ti.r(e)}var Ol=typeof document>"u"?null:document;function gm(e,t,n){var i=Ol;if(i&&typeof t=="string"&&t){var o=kn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),mm.has(o)||(mm.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),Sn(t,"link",e),vt(t),i.head.appendChild(t)))}}function eE(e){ti.D(e),gm("dns-prefetch",e,null)}function tE(e,t){ti.C(e,t),gm("preconnect",e,t)}function nE(e,t,n){ti.L(e,t,n);var i=Ol;if(i&&e&&t){var o='link[rel="preload"][as="'+kn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+kn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+kn(n.imageSizes)+'"]')):o+='[href="'+kn(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Cl(e)}ma.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ma.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Ts(c))||t==="script"&&i.querySelector(ws(c))||(t=i.createElement("link"),Sn(t,"link",e),vt(t),i.head.appendChild(t)))}}function aE(e,t){ti.m(e,t);var n=Ol;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+kn(i)+'"][href="'+kn(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cl(e)}if(!ma.has(c)&&(e=v({rel:"modulepreload",href:e},t),ma.set(c,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ws(c)))return}i=n.createElement("link"),Sn(i,"link",e),vt(i),n.head.appendChild(i)}}}function iE(e,t,n){ti.S(e,t,n);var i=Ol;if(i&&e){var o=xa(i).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=i.querySelector(Ts(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ma.get(c))&&cu(e,n);var R=h=i.createElement("link");vt(R),Sn(R,"link",e),R._p=new Promise(function($,te){R.onload=$,R.onerror=te}),R.addEventListener("load",function(){E.loading|=1}),R.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Gr(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function lE(e,t){ti.X(e,t);var n=Ol;if(n&&e){var i=xa(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(ws(o)),c||(e=v({src:e,async:!0},t),(t=ma.get(o))&&uu(e,t),c=n.createElement("script"),vt(c),Sn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function sE(e,t){ti.M(e,t);var n=Ol;if(n&&e){var i=xa(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(ws(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ma.get(o))&&uu(e,t),c=n.createElement("script"),vt(c),Sn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function bm(e,t,n,i){var o=(o=be.current)?qr(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kl(n.href),n=xa(o).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=kl(n.href);var c=xa(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ma.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ma.set(e,n),c||rE(o,e,n,h.state))),t&&i===null)throw Error(l(528,""));return h}if(t&&i!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cl(n),n=xa(o).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function kl(e){return'href="'+kn(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function ym(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function rE(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Sn(t,"link",n),vt(t),e.head.appendChild(t))}function Cl(e){return'[src="'+kn(e)+'"]'}function ws(e){return"script[async]"+e}function vm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+kn(n.href)+'"]');if(i)return t.instance=i,vt(i),i;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),vt(i),Sn(i,"style",o),Gr(i,n.precedence,e),t.instance=i;case"stylesheet":o=kl(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,vt(c),c;i=ym(n),(o=ma.get(o))&&cu(i,o),c=(e.ownerDocument||e).createElement("link"),vt(c);var h=c;return h._p=new Promise(function(E,R){h.onload=E,h.onerror=R}),Sn(c,"link",i),t.state.loading|=4,Gr(c,n.precedence,e),t.instance=c;case"script":return c=Cl(n.src),(o=e.querySelector(ws(c)))?(t.instance=o,vt(o),o):(i=n,(o=ma.get(c))&&(i=v({},n),uu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),vt(o),Sn(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gr(i,n.precedence,e));return t.instance}function Gr(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var E=i[h];if(E.dataset.precedence===t)c=E;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function cu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function Em(e,t,n){if($r===null){var i=new Map,o=$r=new Map;o.set(n,i)}else o=$r,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[$t]||c[Ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=i.get(h);E?E.push(c):i.set(h,[c])}}return i}function _m(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function oE(e,t,n){if(n===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 Sm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=kl(i.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,vt(c);return}c=t.ownerDocument||t,i=ym(i),(o=ma.get(o))&&cu(i,o),c=c.createElement("link"),vt(c);var h=c;h._p=new Promise(function(E,R){h.onload=E,h.onerror=R}),Sn(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Yr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var fu=0;function uE(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&fu===0&&(fu=62500*Yv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>fu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fr=null;function Kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fr=new Map,t.forEach(fE,e),Fr=null,Yr.call(e))}function fE(e,t){if(!(t.state.loading&4)){var n=Fr.get(e);if(n)var i=n.get(null);else{n=new Map,Fr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),i=h)}i&&n.set(null,i)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||i,c===i&&n.set(null,o),n.set(h,o),this.count++,i=Yr.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:L,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function dE(e,t,n,i,o,c,h,E,R){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=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Nm(e,t,n,i,o,c,h,E,R,$,te,se){return e=new dE(e,t,n,h,R,$,te,se,E),t=1,c===!0&&(t|=24),c=Wn(3,null,null,t),e.current=c,c.stateNode=e,t=Yo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Zo(c),e}function Tm(e){return e?(e=ol,e):ol}function wm(e,t,n,i,o,c){o=Tm(o),i.context===null?i.context=o:i.pendingContext=o,i=pi(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=mi(e,i,t),n!==null&&(Xn(n,e,t),is(n,e,t))}function xm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function du(e,t){xm(e,t),(e=e.alternate)&&xm(e,t)}function Am(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Xn(t,e,67108864),du(e,67108864)}}function Rm(e){if(e.tag===13||e.tag===31){var t=ia();t=bt(t);var n=Ii(e,t);n!==null&&Xn(n,e,t),du(e,t)}}var Pr=!0;function hE(e,t,n,i){var o=j.T;j.T=null;var c=ae.p;try{ae.p=2,hu(e,t,n,i)}finally{ae.p=c,j.T=o}}function pE(e,t,n,i){var o=j.T;j.T=null;var c=ae.p;try{ae.p=8,hu(e,t,n,i)}finally{ae.p=c,j.T=o}}function hu(e,t,n,i){if(Pr){var o=pu(i);if(o===null)Wc(e,t,i,Zr,n),km(e,i);else if(gE(o,e,t,n,i))i.stopPropagation();else if(km(e,i),t&4&&-1<mE.indexOf(e)){for(;o!==null;){var c=On(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Gt(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var R=1<<31-jt(h);E.entanglements[1]|=R,h&=~R}Ca(c),(gt&6)===0&&(kr=st()+500,Es(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Xn(E,c,2),Mr(),du(c,2)}if(c=pu(i),c===null&&Wc(e,t,i,Zr,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else Wc(e,t,i,null,n)}}function pu(e){return e=ke(e),mu(e)}var Zr=null;function mu(e){if(Zr=null,e=St(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zr=e,null}function Om(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(qt()){case ut:return 2;case cn:return 8;case xn:case An:return 32;case zn:return 268435456;default:return 32}default:return 32}}var gu=!1,xi=null,Ai=null,Ri=null,As=new Map,Rs=new Map,Oi=[],mE="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 km(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function Os(e,t,n,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=On(t),t!==null&&Am(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function gE(e,t,n,i,o){switch(t){case"focusin":return xi=Os(xi,e,t,n,i,o),!0;case"dragenter":return Ai=Os(Ai,e,t,n,i,o),!0;case"mouseover":return Ri=Os(Ri,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,Os(As.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,Os(Rs.get(c)||null,e,t,n,i,o)),!0}return!1}function Cm(e){var t=St(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Rm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Rm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);ye=i,n.target.dispatchEvent(i),ye=null}else return t=On(n),t!==null&&Am(t),e.blockedOn=n,!1;t.shift()}return!0}function Mm(e,t,n){Xr(e)&&n.delete(t)}function bE(){gu=!1,xi!==null&&Xr(xi)&&(xi=null),Ai!==null&&Xr(Ai)&&(Ai=null),Ri!==null&&Xr(Ri)&&(Ri=null),As.forEach(Mm),Rs.forEach(Mm)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,gu||(gu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,bE)))}var Vr=null;function Dm(e){Vr!==e&&(Vr=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Vr===e&&(Vr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(mu(i||n)===null)continue;break}var c=On(n);c!==null&&(e.splice(t,3),t-=3,pc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function Ml(e){function t(R){return Qr(R,e)}xi!==null&&Qr(xi,e),Ai!==null&&Qr(Ai,e),Ri!==null&&Qr(Ri,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Oi.length;n++){var i=Oi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)Cm(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],h=o[Y]||null;if(typeof c=="function")h||Dm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Y]||null)E=h.formAction;else if(mu(o)!==null)continue}else E=h.action;typeof E=="function"?n[i+1]=E:(n.splice(i,3),i-=3),Dm(n)}}}function Lm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){if(!i&&!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 i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function bu(e){this._internalRoot=e}Jr.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,i=ia();wm(n,i,e,t,null,null)},Jr.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wm(e.current,2,null,e,null,null),Mr(),t[re]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oi.length&&t!==0&&t<Oi[n].priority;n++);Oi.splice(n,0,e),n===0&&Cm(e)}};var zm=a.version;if(zm!=="19.2.8")throw Error(l(527,zm,"19.2.8"));ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var yE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wr.isDisabled&&Wr.supportsFiber)try{yn=Wr.inject(yE),Ut=Wr}catch{}}return Cs.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,i="",o=Gh,c=$h,h=Yh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Nm(e,1,!1,null,null,n,i,null,o,c,h,Lm),e[re]=t.current,Jc(e),new bu(t)},Cs.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var i=!1,o="",c=Gh,h=$h,E=Yh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),t=Nm(e,1,!0,t,n??null,i,o,R,c,h,E,Lm),t.context=Tm(null),n=t.current,i=ia(),i=bt(i),o=pi(i),o.callback=null,mi(n,o,i),n=i,t.current.lanes=n,Qe(t,n),Ca(t),e[re]=t.current,Jc(e),new Jr(t)},Cs.version="19.2.8",Cs}var Fm;function kE(){if(Fm)return Eu.exports;Fm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(a){console.error(a)}}return s(),Eu.exports=OE(),Eu.exports}var CE=kE(),an;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(an||(an={}));const ME={LINE_BY_LINE:"line-by-line"},DE={NONE:"none"},LE={WORD:"word"};var Bl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(Bl||(Bl={}));const zE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],UE=RegExp("["+zE.join("\\")+"]","g");function jE(s){return s.replace(UE,"\\$&")}function Km(s){return s&&s.replace(/\\/g,"/")}function BE(s){let a,r,l,u=0;for(a=0,l=s.length;a<l;a++)r=s.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function xb(s){const a=s.length;let r=-1/0;for(let l=0;l<a;l++)r=Math.max(r,s[l]);return r}function Pm(s,a){const r=s.split(".");return r.length>1?r[r.length-1]:a}function Zm(s,a){return a.reduce((r,l)=>r||s.startsWith(l),!1)}const Xm=["a/","b/","i/","w/","c/","o/"];function Di(s,a,r){const l=r!==void 0?[...Xm,r]:Xm,u=a?new RegExp(`^${jE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,d=""]=u.exec(s)||[],p=l.find(g=>d.indexOf(g)===0);return(p?d.slice(p.length):d).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function IE(s,a){return Di(s,"---",a)}function HE(s,a){return Di(s,"+++",a)}function qE(s,a={}){const r=[];let l=null,u=null,d=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",w=/^old mode (\d{6})/,T=/^new mode (\d{6})/,A=/^deleted file mode (\d{6})/,x=/^new file mode (\d{6})/,k=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,L=/^rename from "?(.+)"?/,le=/^rename to "?(.+)"?/,K=/^similarity index (\d+)%/,P=/^dissimilarity index (\d+)%/,ne=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,C=/^Binary files (.*) and (.*) differ/,z=/^GIT binary patch/,X=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,q=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,de=/^new file mode (\d{6})/,he=/^deleted file mode (\d{6}),(\d{6})/,_e=s.replace(/\/g,"").replace(/\r\n?/g,`
50
- `).split(`
51
- `);function pe(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function j(){l!==null&&(!l.oldName&&g!==null&&(l.oldName=g),!l.newName&&m!==null&&(l.newName=m),l.newName&&(r.push(l),l=null)),g=null,m=null}function ae(){pe(),j(),l={blocks:[],deletedLines:0,addedLines:0}}function ce(S){pe();let D;l!==null&&((D=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(l.isCombined=!1,d=parseInt(D[1],10),y=parseInt(D[2],10)):(D=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(S))?(l.isCombined=!0,d=parseInt(D[1],10),p=parseInt(D[2],10),y=parseInt(D[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),d=0,y=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:p,newStartLine:y,header:S}}function ve(S){if(l===null||u===null||d===null||y===null)return;const D={content:S},H=l.isCombined?["+ "," +","++"]:["+"],ue=l.isCombined?["- "," -","--"]:["-"];Zm(S,H)?(l.addedLines++,D.type=an.INSERT,D.oldNumber=void 0,D.newNumber=y++):Zm(S,ue)?(l.deletedLines++,D.type=an.DELETE,D.oldNumber=d++,D.newNumber=void 0):(D.type=an.CONTEXT,D.oldNumber=d++,D.newNumber=y++),u.lines.push(D)}function Se(S,D){let H=D;for(;H<_e.length-3;){if(S.startsWith("diff"))return!1;if(_e[H].startsWith(b)&&_e[H+1].startsWith(v)&&_e[H+2].startsWith(_))return!0;H++}return!1}return _e.forEach((S,D)=>{if(!S||S.startsWith("*"))return;let H;const ue=_e[D-1],J=_e[D+1],be=_e[D+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ae(),(H=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(g=Di(H[1],void 0,a.dstPrefix),m=Di(H[2],void 0,a.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(ae(),(H=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(g=Di(H[1],void 0,a.dstPrefix),m=Di(H[2],void 0,a.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&S.startsWith(b)&&J.startsWith(v)&&be.startsWith(_))&&ae(),l!=null&&l.isTooBig)return;if(l&&(typeof a.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&S.length>a.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Le=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";ce(Le);return}if(S.startsWith(b)&&J.startsWith(v)||S.startsWith(v)&&ue.startsWith(b)){if(l&&!l.oldName&&S.startsWith("--- ")&&(H=IE(S,a.srcPrefix))){l.oldName=H,l.language=Pm(l.oldName,l.language);return}if(l&&!l.newName&&S.startsWith("+++ ")&&(H=HE(S,a.dstPrefix))){l.newName=H,l.language=Pm(l.newName,l.language);return}}if(l&&(S.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){ce(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){ve(S);return}const ge=!Se(S,D);if(l===null)throw new Error("Where is my file !!!");(H=w.exec(S))?l.oldMode=H[1]:(H=T.exec(S))?l.newMode=H[1]:(H=A.exec(S))?(l.deletedFileMode=H[1],l.isDeleted=!0):(H=x.exec(S))?(l.newFileMode=H[1],l.isNew=!0):(H=k.exec(S))?(ge&&(l.oldName=H[1]),l.isCopy=!0):(H=I.exec(S))?(ge&&(l.newName=H[1]),l.isCopy=!0):(H=L.exec(S))?(ge&&(l.oldName=H[1]),l.isRename=!0):(H=le.exec(S))?(ge&&(l.newName=H[1]),l.isRename=!0):(H=C.exec(S))?(l.isBinary=!0,l.oldName=Di(H[1],void 0,a.srcPrefix),l.newName=Di(H[2],void 0,a.dstPrefix),ce("Binary file")):z.test(S)?(l.isBinary=!0,ce(S)):(H=K.exec(S))?l.unchangedPercentage=parseInt(H[1],10):(H=P.exec(S))?l.changedPercentage=parseInt(H[1],10):(H=ne.exec(S))?(l.checksumBefore=H[1],l.checksumAfter=H[2],H[3]&&(l.mode=H[3])):(H=X.exec(S))?(l.checksumBefore=[H[2],H[3]],l.checksumAfter=H[1]):(H=q.exec(S))?(l.oldMode=[H[2],H[3]],l.newMode=H[1]):(H=de.exec(S))?(l.newFileMode=H[1],l.isNew=!0):(H=he.exec(S))&&(l.deletedFileMode=H[1],l.isDeleted=!0)}),pe(),j(),r}class Ab{diff(a,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const d=this.castInput(a,l),p=this.castInput(r,l),y=this.removeEmpty(this.tokenize(d,l)),g=this.removeEmpty(this.tokenize(p,l));return this.diffWithOptionsObj(y,g,l,u)}diffWithOptionsObj(a,r,l,u){var d;const p=I=>{if(I=this.postProcess(I,l),u){setTimeout(function(){u(I)},0);return}else return I},y=r.length,g=a.length;let m=1,b=y+g;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const v=(d=l.timeout)!==null&&d!==void 0?d:1/0,_=Date.now()+v,w=[{oldPos:-1,lastComponent:void 0}];let T=this.extractCommon(w[0],r,a,0,l);if(w[0].oldPos+1>=g&&T+1>=y)return p(this.buildValues(w[0].lastComponent,r,a));let A=-1/0,x=1/0;const k=()=>{for(let I=Math.max(A,-m);I<=Math.min(x,m);I+=2){let L;const le=w[I-1],K=w[I+1];le&&(w[I-1]=void 0);let P=!1;if(K){const C=K.oldPos-I;P=K&&0<=C&&C<y}const ne=le&&le.oldPos+1<g;if(!P&&!ne){w[I]=void 0;continue}if(!ne||P&&le.oldPos<K.oldPos?L=this.addToPath(K,!0,!1,0,l):L=this.addToPath(le,!1,!0,1,l),T=this.extractCommon(L,r,a,I,l),L.oldPos+1>=g&&T+1>=y)return p(this.buildValues(L.lastComponent,r,a))||!0;w[I]=L,L.oldPos+1>=g&&(x=Math.min(x,I-1)),T+1>=y&&(A=Math.max(A,I+1))}m++};if(u)(function I(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);k()||I()},0)})();else for(;m<=b&&Date.now()<=_;){const I=k();if(I)return I}}addToPath(a,r,l,u,d){const p=a.lastComponent;return p&&!d.oneChangePerToken&&p.added===r&&p.removed===l?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:l,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:p}}}extractCommon(a,r,l,u,d){const p=r.length,y=l.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(l[g+1],r[m+1],d);)m++,g++,b++,d.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!d.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,l){return l.comparator?l.comparator(a,r):a===r||!!l.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let l=0;l<a.length;l++)a[l]&&r.push(a[l]);return r}castInput(a,r){return a}tokenize(a,r){return Array.from(a)}join(a){return a.join("")}postProcess(a,r){return a}get useLongestToken(){return!1}buildValues(a,r,l){const u=[];let d;for(;a;)u.push(a),d=a.previousComponent,delete a.previousComponent,a=d;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(l.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(_,w){const T=l[m+w];return T.length>_.length?T:_}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class GE extends Ab{}const $E=new GE;function YE(s,a,r){return $E.diff(s,a,r)}const Qm="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 FE extends Ab{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${Qm}]+|[^\\S\\n\\r]+|[^${Qm}]`,"ug");return a.match(r)||[]}}const KE=new FE;function PE(s,a,r){return KE.diff(s,a,r)}function ZE(s,a){if(s.length===0)return a.length;if(a.length===0)return s.length;const r=[];let l;for(l=0;l<=a.length;l++)r[l]=[l];let u;for(u=0;u<=s.length;u++)r[0][u]=u;for(l=1;l<=a.length;l++)for(u=1;u<=s.length;u++)a.charAt(l-1)===s.charAt(u-1)?r[l][u]=r[l-1][u-1]:r[l][u]=Math.min(r[l-1][u-1]+1,Math.min(r[l][u-1]+1,r[l-1][u]+1));return r[a.length][s.length]}function Gf(s){return(a,r)=>{const l=s(a).trim(),u=s(r).trim();return ZE(l,u)/(l.length+u.length)}}function $f(s){function a(l,u,d=new Map){let p=1/0,y;for(let g=0;g<l.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([l[g],u[m]]);let v;d.has(b)&&(v=d.get(b))||(v=s(l[g],u[m]),d.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(l,u,d=0,p=new Map){const y=a(l,u,p);if(!y||l.length+u.length<3)return[[l,u]];const g=l.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[l[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,w=y.indexB+1,T=l.slice(_),A=u.slice(w),x=r(g,m,d+1,p),k=r(b,v,d+1,p),I=r(T,A,d+1,p);let L=k;return(y.indexA>0||y.indexB>0)&&(L=x.concat(L)),(l.length>_||u.length>w)&&(L=L.concat(I)),L}return r}const Gn={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},mo={matching:DE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:LE.WORD,colorScheme:Bl.LIGHT},Ma="/",Rb=Gf(s=>s.value),XE=$f(Rb);function Tu(s){return s.indexOf("dev/null")!==-1}function QE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function VE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function oo(s){switch(s){case an.CONTEXT:return Gn.CONTEXT;case an.INSERT:return Gn.INSERTS;case an.DELETE:return Gn.DELETES}}function Yf(s){switch(s){case Bl.DARK:return"d2h-dark-color-scheme";case Bl.AUTO:return"d2h-auto-color-scheme";case Bl.LIGHT:default:return"d2h-light-color-scheme"}}function JE(s){return s?2:1}function Il(s){return s.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(s,a,r=!0){const l=JE(a);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function go(s){const a=Km(s.oldName),r=Km(s.newName);if(a!==r&&!Tu(a)&&!Tu(r)){const l=[],u=[],d=a.split(Ma),p=r.split(Ma),y=d.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&d[m]===p[m];)l.push(p[m]),m+=1;for(;b>m&&v>m&&d[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const _=l.join(Ma),w=u.join(Ma),T=d.slice(m,b+1).join(Ma),A=p.slice(m,v+1).join(Ma);return _.length&&w.length?_+Ma+"{"+T+" → "+A+"}"+Ma+w:_.length?_+Ma+"{"+T+" → "+A+"}":w.length?"{"+T+" → "+A+"}"+Ma+w:a+" → "+r}else return Tu(r)?a:r}function Ff(s){return`d2h-${BE(go(s)).toString().slice(-6)}`}function Kf(s){let a="file-changed";return s.isRename||s.isCopy?a="file-renamed":s.isNew?a="file-added":s.isDeleted?a="file-deleted":s.newName!==s.oldName&&(a="file-renamed"),a}function Ob(s,a,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},mo),l),g=La(s,r,!1),m=La(a,r,!1);if(g.content.length>d||m.content.length>d)return{oldLine:{prefix:g.prefix,content:Il(g.content)},newLine:{prefix:m.prefix,content:Il(m.content)}};const b=y==="char"?YE(g.content,m.content):PE(g.content,m.content),v=[];if(y==="word"&&u==="words"){const w=b.filter(x=>x.removed),T=b.filter(x=>x.added);XE(T,w).forEach(x=>{x[0].length===1&&x[1].length===1&&Rb(x[0][0],x[1][0])<p&&(v.push(x[0][0]),v.push(x[1][0]))})}const _=b.reduce((w,T)=>{const A=T.added?"ins":T.removed?"del":null,x=v.indexOf(T)>-1?' class="d2h-change"':"",k=Il(T.value);return A!==null?`${w}<${A}${x}>${k}</${A}>`:`${w}${k}`},"");return{oldLine:{prefix:g.prefix,content:QE(_)},newLine:{prefix:m.prefix,content:VE(_)}}}const Vm="file-summary",WE="icon",e_={colorScheme:mo.colorScheme};class t_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},e_),r)}render(a){const r=a.map(l=>this.hoganUtils.render(Vm,"line",{fileHtmlId:Ff(l),oldName:l.oldName,newName:l.newName,fileName:go(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(WE,Kf(l))})).join(`
52
- `);return this.hoganUtils.render(Vm,"wrapper",{colorScheme:Yf(this.config.colorScheme),filesNumber:a.length,files:r})}}const kb=Object.assign(Object.assign({},mo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ms="generic",Jm="line-by-line",n_="icon",a_="tag";class i_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},kb),r)}render(a){const r=a.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
53
- `);return this.hoganUtils.render(Ms,"wrapper",{colorScheme:Yf(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const l=this.hoganUtils.template(Jm,"file-diff"),u=this.hoganUtils.template(Ms,"file-path"),d=this.hoganUtils.template(n_,"file"),p=this.hoganUtils.template(a_,Kf(a));return l.render({file:a,fileHtmlId:Ff(a),diffs:r,filePath:u.render({fileDiffName:go(a)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ms,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Gn})}generateFileHtml(a){const r=$f(Gf(l=>La(l.content,a.isCombined).content));return a.blocks.map(l=>{let u=this.hoganUtils.render(Ms,"block-header",{CSSLineClass:Gn,blockHeader:a.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type:Gn.CONTEXT,prefix:m,content:b,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,p,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).join(`
54
- `)}applyLineGroupping(a){const r=[];let l=[],u=[];for(let d=0;d<a.lines.length;d++){const p=a.lines[d];(p.type!==an.INSERT&&u.length||p.type===an.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===an.CONTEXT?r.push([[p],[],[]]):p.type===an.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===an.INSERT&&l.length>0?u.push(p):p.type===an.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(a,r,l){const u=a.length*r.length,d=xb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(a,r):[[a,r]]}processChangedLines(a,r,l,u){const d={right:"",left:""},p=Math.max(l.length,u.length);for(let y=0;y<p;y++){const g=l[y],m=u[y],b=g!==void 0&&m!==void 0?Ob(g.content,m.content,r,this.config):void 0,v=g!==void 0&&g.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:Gn.DELETE_CHANGES}:Object.assign(Object.assign({},La(g.content,r)),{type:oo(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,_=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:Gn.INSERT_CHANGES}:Object.assign(Object.assign({},La(m.content,r)),{type:oo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:w,right:T}=this.generateLineHtml(a,v,_);d.left+=w,d.right+=T}return d}generateLineHtml(a,r,l){return{left:this.generateSingleLineHtml(a,r),right:this.generateSingleLineHtml(a,l)}}generateSingleLineHtml(a,r){if(r===void 0)return"";const l=this.hoganUtils.render(Jm,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ms,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:l,line:r,file:a})}}const Cb=Object.assign(Object.assign({},mo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",l_="side-by-side",s_="icon",r_="tag";class o_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Cb),r)}render(a){const r=a.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
55
- `);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:Yf(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const l=this.hoganUtils.template(l_,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),d=this.hoganUtils.template(s_,"file"),p=this.hoganUtils.template(r_,Kf(a));return l.render({file:a,fileHtmlId:Ff(a),diffs:r,filePath:u.render({fileDiffName:go(a)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Gn})}}generateFileHtml(a){const r=$f(Gf(l=>La(l.content,a.isCombined).content));return a.blocks.map(l=>{const u={left:this.makeHeaderHtml(l.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(l).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:_}=this.generateLineHtml({type:Gn.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:Gn.CONTEXT,prefix:m,content:b,number:g.newNumber});u.left+=v,u.right+=_});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,p,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).reduce((l,u)=>({left:l.left+u.left,right:l.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let l=[],u=[];for(let d=0;d<a.lines.length;d++){const p=a.lines[d];(p.type!==an.INSERT&&u.length||p.type===an.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===an.CONTEXT?r.push([[p],[],[]]):p.type===an.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===an.INSERT&&l.length>0?u.push(p):p.type===an.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(a,r,l){const u=a.length*r.length,d=xb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(Ds,"block-header",{CSSLineClass:Gn,blockHeader:r!=null&&r.isTooBig?a:Il(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,l){const u={right:"",left:""},d=Math.max(r.length,l.length);for(let p=0;p<d;p++){const y=r[p],g=l[p],m=y!==void 0&&g!==void 0?Ob(y.content,g.content,a,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:Gn.DELETE_CHANGES}:Object.assign(Object.assign({},La(y.content,a)),{type:oo(y.type)})),{number:y.oldNumber}):void 0,v=g!==void 0&&g.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:Gn.INSERT_CHANGES}:Object.assign(Object.assign({},La(g.content,a)),{type:oo(g.type)})),{number:g.newNumber}):void 0,{left:_,right:w}=this.generateLineHtml(b,v);u.left+=_,u.right+=w}return u}generateLineHtml(a,r){return{left:this.generateSingleHtml(a),right:this.generateSingleHtml(r)}}generateSingleHtml(a){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Ds,"line",{type:(a==null?void 0:a.type)||`${Gn.CONTEXT} d2h-emptyplaceholder`,lineClass:a!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:a!==void 0?l:`${l} d2h-code-side-emptyplaceholder`,prefix:(a==null?void 0:a.prefix)===" "?"&nbsp;":a==null?void 0:a.prefix,content:a==null?void 0:a.content,lineNumber:a==null?void 0:a.number})}}var wu={},Wm;function c_(){return Wm||(Wm=1,(function(s){(function(a){var r=/\S/,l=/\"/g,u=/\n/g,d=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(z,X){var q=z.length,de=0,he=1,_e=2,pe=de,j=null,ae=null,ce="",ve=[],Se=!1,S=0,D=0,H="{{",ue="}}";function J(){ce.length>0&&(ve.push({tag:"_t",text:new String(ce)}),ce="")}function be(){for(var ze=!0,$e=D;$e<ve.length;$e++)if(ze=a.tags[ve[$e].tag]<a.tags._v||ve[$e].tag=="_t"&&ve[$e].text.match(r)===null,!ze)return!1;return ze}function ge(ze,$e){if(J(),ze&&be())for(var at=D,Ce;at<ve.length;at++)ve[at].text&&((Ce=ve[at+1])&&Ce.tag==">"&&(Ce.indent=ve[at].text.toString()),ve.splice(at,1));else $e||ve.push({tag:`
56
- `});Se=!1,D=ve.length}function Le(ze,$e){var at="="+ue,Ce=ze.indexOf(at,$e),Je=b(ze.substring(ze.indexOf("=",$e)+1,Ce)).split(" ");return H=Je[0],ue=Je[Je.length-1],Ce+at.length-1}for(X&&(X=X.split(" "),H=X[0],ue=X[1]),S=0;S<q;S++)pe==de?v(H,z,S)?(--S,J(),pe=he):z.charAt(S)==`
57
- `?ge(Se):ce+=z.charAt(S):pe==he?(S+=H.length-1,ae=a.tags[z.charAt(S+1)],j=ae?z.charAt(S+1):"_v",j=="="?(S=Le(z,S),pe=de):(ae&&S++,pe=_e),Se=S):v(ue,z,S)?(ve.push({tag:j,n:b(ce),otag:H,ctag:ue,i:j=="/"?Se-H.length:S+ue.length}),ce="",S+=ue.length-1,pe=de,j=="{"&&(ue=="}}"?S++:m(ve[ve.length-1]))):ce+=z.charAt(S);return ge(Se,!0),ve};function m(C){C.n.substr(C.n.length-1)==="}"&&(C.n=C.n.substring(0,C.n.length-1))}function b(C){return C.trim?C.trim():C.replace(/^\s*|\s*$/g,"")}function v(C,z,X){if(z.charAt(X)!=C.charAt(0))return!1;for(var q=1,de=C.length;q<de;q++)if(z.charAt(X+q)!=C.charAt(q))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function w(C,z,X,q){var de=[],he=null,_e=null,pe=null;for(_e=X[X.length-1];C.length>0;){if(pe=C.shift(),_e&&_e.tag=="<"&&!(pe.tag in _))throw new Error("Illegal content in < super tag.");if(a.tags[pe.tag]<=a.tags.$||T(pe,q))X.push(pe),pe.nodes=w(C,pe.tag,X,q);else if(pe.tag=="/"){if(X.length===0)throw new Error("Closing tag without opener: /"+pe.n);if(he=X.pop(),pe.n!=he.n&&!A(pe.n,he.n,q))throw new Error("Nesting error: "+he.n+" vs. "+pe.n);return he.end=pe.i,de}else pe.tag==`
58
- `&&(pe.last=C.length==0||C[0].tag==`
59
- `);de.push(pe)}if(X.length>0)throw new Error("missing closing tag: "+X.pop().n);return de}function T(C,z){for(var X=0,q=z.length;X<q;X++)if(z[X].o==C.n)return C.tag="#",!0}function A(C,z,X){for(var q=0,de=X.length;q<de;q++)if(X[q].c==C&&X[q].o==z)return!0}function x(C){var z=[];for(var X in C)z.push('"'+L(X)+'": function(c,p,t,i) {'+C[X]+"}");return"{ "+z.join(",")+" }"}function k(C){var z=[];for(var X in C.partials)z.push('"'+L(X)+'":{name:"'+L(C.partials[X].name)+'", '+k(C.partials[X])+"}");return"partials: {"+z.join(",")+"}, subs: "+x(C.subs)}a.stringify=function(C,z,X){return"{code: function (c,p,i) { "+a.wrapMain(C.code)+" },"+k(C)+"}"};var I=0;a.generate=function(C,z,X){I=0;var q={code:"",subs:{},partials:{}};return a.walk(C,q),X.asString?this.stringify(q,z,X):this.makeTemplate(q,z,X)},a.wrapMain=function(C){return'var t=this;t.b(i=i||"");'+C+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(C,z,X){var q=this.makePartials(C);return q.code=new Function("c","p","i",this.wrapMain(C.code)),new this.template(q,z,this,X)},a.makePartials=function(C){var z,X={subs:{},partials:C.partials,name:C.name};for(z in X.partials)X.partials[z]=this.makePartials(X.partials[z]);for(z in C.subs)X.subs[z]=new Function("c","p","t","i",C.subs[z]);return X};function L(C){return C.replace(p,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(d,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function le(C){return~C.indexOf(".")?"d":"f"}function K(C,z){var X="<"+(z.prefix||""),q=X+C.n+I++;return z.partials[q]={name:C.n,partials:{}},z.code+='t.b(t.rp("'+L(q)+'",c,p,"'+(C.indent||"")+'"));',q}a.codegen={"#":function(C,z){z.code+="if(t.s(t."+le(C.n)+'("'+L(C.n)+'",c,p,1),c,p,0,'+C.i+","+C.end+',"'+C.otag+" "+C.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(C.nodes,z),z.code+="});c.pop();}"},"^":function(C,z){z.code+="if(!t.s(t."+le(C.n)+'("'+L(C.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(C.nodes,z),z.code+="};"},">":K,"<":function(C,z){var X={partials:{},code:"",subs:{},inPartial:!0};a.walk(C.nodes,X);var q=z.partials[K(C,z)];q.subs=X.subs,q.partials=X.partials},$:function(C,z){var X={subs:{},code:"",partials:z.partials,prefix:C.n};a.walk(C.nodes,X),z.subs[C.n]=X.code,z.inPartial||(z.code+='t.sub("'+L(C.n)+'",c,p,i);')},"\n":function(C,z){z.code+=ne('"\\n"'+(C.last?"":" + i"))},_v:function(C,z){z.code+="t.b(t.v(t."+le(C.n)+'("'+L(C.n)+'",c,p,0)));'},_t:function(C,z){z.code+=ne('"'+L(C.text)+'"')},"{":P,"&":P};function P(C,z){z.code+="t.b(t.t(t."+le(C.n)+'("'+L(C.n)+'",c,p,0)));'}function ne(C){return"t.b("+C+");"}a.walk=function(C,z){for(var X,q=0,de=C.length;q<de;q++)X=a.codegen[C[q].tag],X&&X(C[q],z);return z},a.parse=function(C,z,X){return X=X||{},w(C,"",[],X.sectionTags||[])},a.cache={},a.cacheKey=function(C,z){return[C,!!z.asString,!!z.disableLambda,z.delimiters,!!z.modelGet].join("||")},a.compile=function(C,z){z=z||{};var X=a.cacheKey(C,z),q=this.cache[X];if(q){var de=q.partials;for(var he in de)delete de[he].instance;return q}return q=this.generate(this.parse(this.scan(C,z.delimiters),C,z),C,z),this.cache[X]=q}})(s)})(wu)),wu}var xu={},eg;function u_(){return eg||(eg=1,(function(s){(function(a){a.Template=function(w,T,A,x){w=w||{},this.r=w.code||this.r,this.c=A,this.options=x||{},this.text=T||"",this.partials=w.partials||{},this.subs=w.subs||{},this.buf=""},a.Template.prototype={r:function(w,T,A){return""},v,t:b,render:function(T,A,x){return this.ri([T],A||{},x)},ri:function(w,T,A){return this.r(w,T,A)},ep:function(w,T){var A=this.partials[w],x=T[A.name];if(A.instance&&A.base==x)return A.instance;if(typeof x=="string"){if(!this.c)throw new Error("No compiler available.");x=this.c.compile(x,this.options)}if(!x)return null;if(this.partials[w].base=x,A.subs){T.stackText||(T.stackText={});for(key in A.subs)T.stackText[key]||(T.stackText[key]=this.activeSub!==void 0&&T.stackText[this.activeSub]?T.stackText[this.activeSub]:this.text);x=l(x,A.subs,A.partials,this.stackSubs,this.stackPartials,T.stackText)}return this.partials[w].instance=x,x},rp:function(w,T,A,x){var k=this.ep(w,A);return k?k.ri(T,A,x):""},rs:function(w,T,A){var x=w[w.length-1];if(!_(x)){A(w,T,this);return}for(var k=0;k<x.length;k++)w.push(x[k]),A(w,T,this),w.pop()},s:function(w,T,A,x,k,I,L){var le;return _(w)&&w.length===0?!1:(typeof w=="function"&&(w=this.ms(w,T,A,x,k,I,L)),le=!!w,!x&&le&&T&&T.push(typeof w=="object"?w:T[T.length-1]),le)},d:function(w,T,A,x){var k,I=w.split("."),L=this.f(I[0],T,A,x),le=this.options.modelGet,K=null;if(w==="."&&_(T[T.length-2]))L=T[T.length-1];else for(var P=1;P<I.length;P++)k=r(I[P],L,le),k!==void 0?(K=L,L=k):L="";return x&&!L?!1:(!x&&typeof L=="function"&&(T.push(K),L=this.mv(L,T,A),T.pop()),L)},f:function(w,T,A,x){for(var k=!1,I=null,L=!1,le=this.options.modelGet,K=T.length-1;K>=0;K--)if(I=T[K],k=r(w,I,le),k!==void 0){L=!0;break}return L?(!x&&typeof k=="function"&&(k=this.mv(k,T,A)),k):x?!1:""},ls:function(w,T,A,x,k,I){var L=this.options.delimiters;return this.options.delimiters=I,this.b(this.ct(b(w.call(T,k,A)),T,x)),this.options.delimiters=L,!1},ct:function(w,T,A){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(w,this.options).render(T,A)},b:function(w){this.buf+=w},fl:function(){var w=this.buf;return this.buf="",w},ms:function(w,T,A,x,k,I,L){var le,K=T[T.length-1],P=w.call(K);return typeof P=="function"?x?!0:(le=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(P,K,T,A,le.substring(k,I),L)):P},mv:function(w,T,A){var x=T[T.length-1],k=w.call(x);return typeof k=="function"?this.ct(b(k.call(x)),x,A):k},sub:function(w,T,A,x){var k=this.subs[w];k&&(this.activeSub=w,k(T,A,this,x),this.activeSub=!1)}};function r(w,T,A){var x;return T&&typeof T=="object"&&(T[w]!==void 0?x=T[w]:A&&T.get&&typeof T.get=="function"&&(x=T.get(w))),x}function l(w,T,A,x,k,I){function L(){}L.prototype=w;function le(){}le.prototype=w.subs;var K,P=new L;P.subs=new le,P.subsText={},P.buf="",x=x||{},P.stackSubs=x,P.subsText=I;for(K in T)x[K]||(x[K]=T[K]);for(K in x)P.subs[K]=x[K];k=k||{},P.stackPartials=k;for(K in A)k[K]||(k[K]=A[K]);for(K in k)P.partials[K]=k[K];return P}var u=/&/g,d=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(w){return String(w??"")}function v(w){return w=b(w),m.test(w)?w.replace(u,"&amp;").replace(d,"&lt;").replace(p,"&gt;").replace(y,"&#39;").replace(g,"&quot;"):w}var _=Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"}})(s)})(xu)),xu}var Au,tg;function f_(){if(tg)return Au;tg=1;var s=c_();return s.Template=u_().Template,s.template=s.Template,Au=s,Au}var Pt=f_();const sn={};sn["file-summary-line"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<li class="d2h-file-list-line">'),l.b(`
60
- `+r),l.b(' <span class="d2h-file-name-wrapper">'),l.b(`
61
- `+r),l.b(l.rp("<fileIcon0",s,a," ")),l.b(' <a href="#'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-name">'),l.b(l.v(l.f("fileName",s,a,0))),l.b("</a>"),l.b(`
62
- `+r),l.b(' <span class="d2h-file-stats">'),l.b(`
63
- `+r),l.b(' <span class="d2h-lines-added">'),l.b(l.v(l.f("addedLines",s,a,0))),l.b("</span>"),l.b(`
64
- `+r),l.b(' <span class="d2h-lines-deleted">'),l.b(l.v(l.f("deletedLines",s,a,0))),l.b("</span>"),l.b(`
65
- `+r),l.b(" </span>"),l.b(`
66
- `+r),l.b(" </span>"),l.b(`
67
- `+r),l.b("</li>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});sn["file-summary-wrapper"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-file-list-wrapper '),l.b(l.v(l.f("colorScheme",s,a,0))),l.b('">'),l.b(`
68
- `+r),l.b(' <div class="d2h-file-list-header">'),l.b(`
69
- `+r),l.b(' <span class="d2h-file-list-title">Files changed ('),l.b(l.v(l.f("filesNumber",s,a,0))),l.b(")</span>"),l.b(`
70
- `+r),l.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),l.b(`
71
- `+r),l.b(' <a class="d2h-file-switch d2h-show">show</a>'),l.b(`
72
- `+r),l.b(" </div>"),l.b(`
73
- `+r),l.b(' <ol class="d2h-file-list">'),l.b(`
74
- `+r),l.b(" "),l.b(l.t(l.f("files",s,a,0))),l.b(`
75
- `+r),l.b(" </ol>"),l.b(`
76
- `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["generic-block-header"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
77
- `+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,a,0))),l.b(" "),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('"></td>'),l.b(`
78
- `+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('">'),l.b(`
79
- `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.s(l.f("blockHeader",s,a,1),s,a,0,156,173,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(p.t(p.f("blockHeader",u,d,0)))}),s.pop()),l.s(l.f("blockHeader",s,a,1),s,a,1,0,0,"")||l.b("&nbsp;"),l.b("</div>"),l.b(`
80
- `+r),l.b(" </td>"),l.b(`
81
- `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});sn["generic-empty-diff"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
82
- `+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('">'),l.b(`
83
- `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.b(`
84
- `+r),l.b(" File without changes"),l.b(`
85
- `+r),l.b(" </div>"),l.b(`
86
- `+r),l.b(" </td>"),l.b(`
87
- `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});sn["generic-file-path"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-file-name-wrapper">'),l.b(`
88
- `+r),l.b(l.rp("<fileIcon0",s,a," ")),l.b(' <span class="d2h-file-name">'),l.b(l.v(l.f("fileDiffName",s,a,0))),l.b("</span>"),l.b(`
89
- `+r),l.b(l.rp("<fileTag1",s,a," ")),l.b("</span>"),l.b(`
90
- `+r),l.b('<label class="d2h-file-collapse">'),l.b(`
91
- `+r),l.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),l.b(`
92
- `+r),l.b(" Viewed"),l.b(`
93
- `+r),l.b("</label>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});sn["generic-line"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
94
- `+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,a,0))),l.b(" "),l.b(l.v(l.f("type",s,a,0))),l.b('">'),l.b(`
95
- `+r),l.b(" "),l.b(l.t(l.f("lineNumber",s,a,0))),l.b(`
96
- `+r),l.b(" </td>"),l.b(`
97
- `+r),l.b(' <td class="'),l.b(l.v(l.f("type",s,a,0))),l.b('">'),l.b(`
98
- `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.b(`
99
- `+r),l.s(l.f("prefix",s,a,1),s,a,0,162,238,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(' <span class="d2h-code-line-prefix">'),p.b(p.t(p.f("prefix",u,d,0))),p.b("</span>"),p.b(`
100
- `+r)}),s.pop()),l.s(l.f("prefix",s,a,1),s,a,1,0,0,"")||(l.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),l.b(`
101
- `+r)),l.s(l.f("content",s,a,1),s,a,0,371,445,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(' <span class="d2h-code-line-ctn">'),p.b(p.t(p.f("content",u,d,0))),p.b("</span>"),p.b(`
102
- `+r)}),s.pop()),l.s(l.f("content",s,a,1),s,a,1,0,0,"")||(l.b(' <span class="d2h-code-line-ctn"><br></span>'),l.b(`
103
- `+r)),l.b(" </div>"),l.b(`
104
- `+r),l.b(" </td>"),l.b(`
105
- `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});sn["generic-wrapper"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-wrapper '),l.b(l.v(l.f("colorScheme",s,a,0))),l.b('">'),l.b(`
106
- `+r),l.b(" "),l.b(l.t(l.f("content",s,a,0))),l.b(`
107
- `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["icon-file-added"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),l.b(`
108
- `+r),l.b(' width="14">'),l.b(`
109
- `+r),l.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>'),l.b(`
110
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["icon-file-changed"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),l.b(`
111
- `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
112
- `+r),l.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>'),l.b(`
113
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["icon-file-deleted"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),l.b(`
114
- `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
115
- `+r),l.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>'),l.b(`
116
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["icon-file-renamed"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),l.b(`
117
- `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
118
- `+r),l.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>'),l.b(`
119
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["icon-file"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),l.b(`
120
- `+r),l.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>'),l.b(`
121
- `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});sn["line-by-line-file-diff"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,a,0))),l.b('">'),l.b(`
122
- `+r),l.b(' <div class="d2h-file-header">'),l.b(`
123
- `+r),l.b(" "),l.b(l.t(l.f("filePath",s,a,0))),l.b(`
124
- `+r),l.b(" </div>"),l.b(`
125
- `+r),l.b(' <div class="d2h-file-diff">'),l.b(`
126
- `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
127
- `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
128
- `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
129
- `+r),l.b(" "),l.b(l.t(l.f("diffs",s,a,0))),l.b(`
130
- `+r),l.b(" </tbody>"),l.b(`
131
- `+r),l.b(" </table>"),l.b(`
132
- `+r),l.b(" </div>"),l.b(`
133
- `+r),l.b(" </div>"),l.b(`
134
- `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["line-by-line-numbers"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="line-num1">'),l.b(l.v(l.f("oldNumber",s,a,0))),l.b("</div>"),l.b(`
135
- `+r),l.b('<div class="line-num2">'),l.b(l.v(l.f("newNumber",s,a,0))),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["side-by-side-file-diff"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,a,0))),l.b('">'),l.b(`
136
- `+r),l.b(' <div class="d2h-file-header">'),l.b(`
137
- `+r),l.b(" "),l.b(l.t(l.f("filePath",s,a,0))),l.b(`
138
- `+r),l.b(" </div>"),l.b(`
139
- `+r),l.b(' <div class="d2h-files-diff">'),l.b(`
140
- `+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
141
- `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
142
- `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
143
- `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
144
- `+r),l.b(" "),l.b(l.t(l.d("diffs.left",s,a,0))),l.b(`
145
- `+r),l.b(" </tbody>"),l.b(`
146
- `+r),l.b(" </table>"),l.b(`
147
- `+r),l.b(" </div>"),l.b(`
148
- `+r),l.b(" </div>"),l.b(`
149
- `+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
150
- `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
151
- `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
152
- `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
153
- `+r),l.b(" "),l.b(l.t(l.d("diffs.right",s,a,0))),l.b(`
154
- `+r),l.b(" </tbody>"),l.b(`
155
- `+r),l.b(" </table>"),l.b(`
156
- `+r),l.b(" </div>"),l.b(`
157
- `+r),l.b(" </div>"),l.b(`
158
- `+r),l.b(" </div>"),l.b(`
159
- `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});sn["tag-file-added"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),l.fl()},partials:{},subs:{}});sn["tag-file-changed"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),l.fl()},partials:{},subs:{}});sn["tag-file-deleted"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),l.fl()},partials:{},subs:{}});sn["tag-file-renamed"]=new Pt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),l.fl()},partials:{},subs:{}});class d_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[d,p])=>{const y=Pt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[d]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},sn),a),l)}static compile(a){return Pt.compile(a,{asString:!1})}render(a,r,l,u,d){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(l,u,d)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const h_=Object.assign(Object.assign(Object.assign({},kb),Cb),{outputFormat:ME.LINE_BY_LINE,drawFileList:!0});function p_(s,a={}){const r=Object.assign(Object.assign({},h_),a),l=typeof s=="string"?qE(s,r):s,u=new d_(r),{colorScheme:d}=r,p={colorScheme:d},y=r.drawFileList?new t_(u,p).render(l):"",g=r.outputFormat==="side-by-side"?new o_(u,r).render(l):new i_(u,r).render(l);return y+g}var Ru=wb();function ni(s){const a=[],r=s.split(`
160
- `);let l=null,u=null;const d=()=>{l&&u&&a.push({path:u,patch:l.join(`
161
- `)}),l=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){d(),l=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(l&&(l.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=l.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return d(),a}function m_(s,a){const r=new Set(a);return ni(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
162
- `)}function g_(s){return b_(s)}function b_(s,a){const l=new Map;for(const{path:u,patch:d}of ni(s)){const p=new Map;let y=0,g=!1;const m=d.split(`
163
- `);for(let b=0;b<m.length;b++){const v=m[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}l.set(u,p)}return l}function y_(s){const a=new Map;for(const[r,l]of g_(s))a.set(r,new Set(l.keys()));return a}function v_(s,a){const r=new Set(a.flatMap(l=>l.files));return ni(s).map(l=>l.path).filter(l=>!r.has(l))}function E_(s){return new Map(ni(s).map(a=>[a.path,a.patch.split(`
164
- `).length]))}const Mb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function ng(s,a){return a?`${Mb[a]} **${a}** — ${s}`:s}const __=["inbox","awaiting","drafted"],xf=["requests","settled","sent","archived"],Ou={inbox:{label:"inbox",title:"Everything still waiting on you — drafted reviews and PRs the poll found but nobody has read."},awaiting:{label:"awaiting",title:"Found by the inbox poll, not drafted yet — or a run is in flight right now."},drafted:{label:"drafted",title:"A draft is written and waiting for you to read it."},requests:{label:"open requests",title:"GitHub still lists you as a requested reviewer on these. You settled or archived them here without submitting a review, so they also appear under whichever tab you filed them in."},settled:{label:"settled",title:"You marked these reviewed or skipped, or handed them to somebody else. No review of yours was sent to GitHub."},sent:{label:"sent",title:"Reviews that reached GitHub. Kept here as a record."},archived:{label:"archived",title:"PRs that have since been merged or closed."}};function ag(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Hs=s=>!!s.pr.state&&s.pr.state!=="OPEN",ig=["ready","awaiting","running","failed","reviewed","skipped","sent"];function jl(s){return[...s].sort((a,r)=>ig.indexOf(a.status)-ig.indexOf(r.status)||r.updatedAt.localeCompare(a.updatedAt))}const Db=["sent","reviewed","skipped"];function qs(s){return jl(s.filter(a=>!Hs(a)&&!Db.includes(a.status)))}function S_(s,a,r){return qs(s).filter(l=>l.key===a||!r.has(l.key))}function N_(s,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(qs(s).map(u=>u.id)),l=new Set(a.awaiting.map(u=>u.id));return jl(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const T_=(s,a)=>a.some(r=>r.id===s.id);function w_(s,a){const r=s.filter(u=>!Hs(u)),l=jl(r.filter(u=>!Db.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>ag(u)==="awaiting"),drafted:l.filter(u=>ag(u)==="drafted"),requests:N_(s,a),settled:jl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:jl(r.filter(u=>u.status==="sent")),archived:jl(s.filter(Hs))}}function x_(s,a){return xf.includes(s)&&a[s].length===0?"inbox":s}function Lb(s){var a,r;return s.reason==="own-review"?((a=s.review)==null?void 0:a.at)??s.at:s.reason==="own-reply"?((r=s.reply)==null?void 0:r.at)??s.at:s.at}const co={"own-review":{tag:"reviewed on GitHub",meta:s=>`you reviewed this on GitHub on ${s}`,reasoning:"GitHub stopped asking you for a review and already had one of yours, so this draft was filed rather than left in the inbox. It was never sent — open it to read or send it.",requested:"You submitted a review on GitHub, outside cerber, so this draft was filed."},"own-reply":{tag:"replied on GitHub",meta:s=>`you replied on GitHub on ${s}`,reasoning:"You answered in the PR conversation and nobody has answered back, so the draft was filed rather than left in the inbox. GitHub does not count a comment as a review, but whoever opened the PR is the one holding it. Nothing was sent — open it to read or send it.",requested:"You commented on the PR and nobody answered, so this draft was filed."},"request-withdrawn":{tag:"request withdrawn",meta:s=>`nobody was asking for this any more on ${s}`,reasoning:"Whoever asked for this review took the request back, and you had said nothing on the PR, so the draft was filed rather than left in the inbox. It is still a review — open it to read or send it.",requested:"The review request had gone away when this draft was filed."}};function A_(s){var a;return Hs(s)?((a=s.pr.state)==null?void 0:a.toLowerCase())??null:s.handoff?`handed to @${s.handoff.to}`:s.filed?co[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function R_(s,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(l=>l.id===s.id))==null?void 0:r.reply)??"unknown":"unknown"}const O_={none:{label:"you haven't replied",title:"GitHub still lists you as a requested reviewer and you have said nothing on the PR — no review, no comment. Whoever opened it is waiting on you."},you:{label:"waiting on them",title:"You had the last word in the conversation but never submitted a review, so GitHub still lists you as a requested reviewer. Nothing is blocked on you until they answer."},them:{label:"they replied last",title:"You commented and someone has answered since, so the conversation is back with you — and GitHub still lists you as a requested reviewer, because a comment is not a review."},unknown:{label:"unanswered on GitHub",title:"You have never submitted a review on GitHub for this PR, so it still lists you as a requested reviewer. Cerber could not read the conversation, so it can't say whether you replied there."}},k_=s=>O_[s];function C_(s){const a=Pf[s.event]??s.event,r=new Date(s.at).toLocaleDateString();return{label:s.auto?"auto-sent a review":"you replied with a review",title:`${s.auto?"The daemon auto-sent this review":"You sent this review"} to GitHub on ${r} as ${a}. The last inbox poll still listed a review request for you — a request can lag a send, and GitHub holds some open even after one.`}}function M_(s){const a=co[s.reason],r=new Date(Lb(s)).toLocaleDateString();return{label:a.tag,title:`${a.requested} That was ${r}. GitHub lists a review request for you now — most likely the author has asked for another look since. Re-review it to draft against the current head.`}}function D_(s){const a=new Date(s.at).toLocaleDateString();return{label:`handed to @${s.to}`,title:s.withdrewYours?`You handed this to @${s.to} on ${a} and cerber took your own review request off the PR. GitHub still lists one for you — most likely the last inbox poll ran before the swap, or somebody has asked you again since.`:`You handed this to @${s.to} on ${a}, but cerber could not take your own review request off the PR — so GitHub is asking both of you. Remove yourself on GitHub if that is not what you wanted.`}}const L_=(s,a)=>s.handoff?D_(s.handoff):s.sent?C_(s.sent):s.filed?M_(s.filed):k_(a);function z_(s){const a=s.length,r=a===1?"1 review request":`${a} review requests`,l=s.some(Hs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${l} ${a===1?"it":"them"} here without submitting a review, so ${a===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function zb(s,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(s).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const U_={approve:"approve",comment:"comment",request_changes:"changes"},Pf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function j_(s){return s.status==="running"?{label:"reviewing…",tone:"running"}:s.status==="awaiting"?{label:"review now",tone:"awaiting"}:s.status==="failed"?{label:"run failed",tone:"failed"}:s.sent?{label:`sent · ${Pf[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:U_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function ku(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function B_(s){if(s.commentCount===0)return"no comments drafted";const a=[`${s.commentCount} comment${s.commentCount===1?"":"s"} drafted`];return s.driftedCount&&a.push(`${s.driftedCount} off-diff`),s.gradedCount&&a.push(s.blockerCount?`${s.blockerCount} blocker${s.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function I_(s,a,r=Date.now()){var u,d;if(s.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${zb(s.updatedAt,r)} ago`,ku(s)]};if(s.status==="awaiting")return{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(s.status==="failed")return{reasoning:s.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(s.sent)return{reasoning:`Sent to GitHub as ${Pf[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`+(s.handoff?` GitHub asks @${s.handoff.to} for it now.`:""),meta:[...s.handoff?[`you handed this to @${s.handoff.to}`]:[],s.sent.auto?"auto-sent by the daemon":"sent by you",ku(s)]};const l=[ku(s)];if(s.handoff?l.unshift(`you handed this to @${s.handoff.to} on ${new Date(s.handoff.at).toLocaleDateString()}`):s.filed?l.unshift(co[s.filed.reason].meta(new Date(Lb(s.filed)).toLocaleDateString())):s.status==="reviewed"?l.unshift("you marked this reviewed"):s.status==="skipped"&&l.unshift("you skipped this"),s.costUsd!=null&&l.push(`≈$${s.costUsd.toFixed(2)} at API rates`),l.push(B_(s)),a!=null&&a.enabled&&s.status==="ready"&&((u=s.verdict)==null?void 0:u.recommendation)==="approve"&&l.push(s.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${s.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),s.handoff){const p=s.commentCount>0||s.verdict!=null;return{reasoning:`GitHub asks @${s.handoff.to} for this review now${s.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(p?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:l}}return s.filed?{reasoning:co[s.filed.reason].reasoning,meta:l}:{reasoning:((d=s.verdict)==null?void 0:d.reasoning)??"This review has a draft but no verdict.",meta:l}}const H_="/favicon.svg",q_="/favicon-dot.svg",G_=s=>qs(s).length>0,$_=s=>s?q_:H_;function Y_(s){const a=$_(G_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function Zt(s,a){const r=await fetch(s,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let l=`${(a==null?void 0:a.method)??"GET"} ${s}: ${r.status}`;try{const u=await r.json();u.error&&(l=u.error)}catch{}throw new Error(l)}return r.json()}const Zf=async()=>{const s=await Zt("/api/reviews");return Y_(s),s},Ub=()=>Zt("/api/daemon"),lg=s=>Zt(`/api/reviews/${encodeURIComponent(s)}`),io=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(a)}),F_=(s,a,r)=>Zt(`/api/reviews/${encodeURIComponent(s)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),K_=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(a)}),P_=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/comments/${a}`,{method:"DELETE"}),Z_=s=>Zt("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),X_=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),jb=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Af=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(a)}),Q_=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),V_=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Bb=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${a}`),J_=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),W_=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/raised`,{method:"POST"}),e0=s=>Zt(`/api/reviews/${encodeURIComponent(s)}/reviewers`),t0=(s,a)=>Zt(`/api/reviews/${encodeURIComponent(s)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),n0=s=>`/api/reviews/${encodeURIComponent(s)}/export`,a0=()=>Zt("/api/config"),Cu=(s,a=!1)=>Zt("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:a})}),Mu=s=>Zt("/api/config/daemon",{method:"POST",body:JSON.stringify(s)}),Ib="cerber.handoff.recent",Hb=5,i0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,qb=s=>i0.test(s);function l0(s){try{const a=JSON.parse(s??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&qb(r)).slice(0,Hb):[]}catch{return[]}}function Gb(){try{return l0(localStorage.getItem(Ib))}catch{return[]}}function s0(s,a){const r=s.filter(l=>l.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,Hb)}function r0(s){const a=s0(Gb(),s);try{localStorage.setItem(Ib,JSON.stringify(a))}catch{}return a}const Rf=s=>s.trim().replace(/^@/,"");function o0(s,a){const r=new Set,l=[];for(const u of[...a,...s]){const d=u.toLowerCase();r.has(d)||(r.add(d),l.push({login:u,recent:a.some(p=>p.toLowerCase()===d)}))}return l}function c0(s,a){const r=Rf(a).toLowerCase();if(!r)return s;const l=s.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,d=p=>p.login.toLowerCase().startsWith(r);return[...l.filter(u),...l.filter(p=>!u(p)&&d(p)),...l.filter(p=>!d(p))]}function Du(s){return s.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function Of(s){return s.nodeName.toLowerCase()}function sg(s){const a=[],r=(l,u)=>{for(let d=l.firstChild;d;d=d.nextSibling)d.nodeType===3&&d.nodeValue!==null?u+=d.nodeValue.length:d.nodeType===1&&(a.push({event:"start",offset:u,node:d}),u=r(d,u),Of(d).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:d}));return u};return r(s,0),a}function u0(s,a,r){let l=0,u="";const d=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!s.length||!a.length?s.length?s:a:s[0].offset!==a[0].offset?s[0].offset<a[0].offset?s:a:a[0].event==="start"?s:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${Of(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Du(_.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+Of(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;s.length||a.length;){let v=y();if(u+=Du(r.substring(l,v[0].offset)),l=v[0].offset,v===s){d.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===s&&v.length&&v[0].offset===l);d.reverse().forEach(g)}else v[0].event==="start"?d.push(v[0].node):d.pop(),b(v.splice(0,1)[0])}return u+Du(r.substr(l))}const f0={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};function d0(s){var a;return(a=f0[s])!==null&&a!==void 0?a:"plaintext"}var Lu,rg;function h0(){if(rg)return Lu;rg=1;function s(O){return O instanceof Map?O.clear=O.delete=O.set=function(){throw new Error("map is read-only")}:O instanceof Set&&(O.add=O.clear=O.delete=function(){throw new Error("set is read-only")}),Object.freeze(O),Object.getOwnPropertyNames(O).forEach(ee=>{const me=O[ee],Me=typeof me;(Me==="object"||Me==="function")&&!Object.isFrozen(me)&&s(me)}),O}class a{constructor(ee){ee.data===void 0&&(ee.data={}),this.data=ee.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function l(O,...ee){const me=Object.create(null);for(const Me in O)me[Me]=O[Me];return ee.forEach(function(Me){for(const Ke in Me)me[Ke]=Me[Ke]}),me}const u="</span>",d=O=>!!O.scope,p=(O,{prefix:ee})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const me=O.split(".");return[`${ee}${me.shift()}`,...me.map((Me,Ke)=>`${Me}${"_".repeat(Ke+1)}`)].join(" ")}return`${ee}${O}`};class y{constructor(ee,me){this.buffer="",this.classPrefix=me.classPrefix,ee.walk(this)}addText(ee){this.buffer+=r(ee)}openNode(ee){if(!d(ee))return;const me=p(ee.scope,{prefix:this.classPrefix});this.span(me)}closeNode(ee){d(ee)&&(this.buffer+=u)}value(){return this.buffer}span(ee){this.buffer+=`<span class="${ee}">`}}const g=(O={})=>{const ee={children:[]};return Object.assign(ee,O),ee};class m{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ee){this.top.children.push(ee)}openNode(ee){const me=g({scope:ee});this.add(me),this.stack.push(me)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ee){return this.constructor._walk(ee,this.rootNode)}static _walk(ee,me){return typeof me=="string"?ee.addText(me):me.children&&(ee.openNode(me),me.children.forEach(Me=>this._walk(ee,Me)),ee.closeNode(me)),ee}static _collapse(ee){typeof ee!="string"&&ee.children&&(ee.children.every(me=>typeof me=="string")?ee.children=[ee.children.join("")]:ee.children.forEach(me=>{m._collapse(me)}))}}class b extends m{constructor(ee){super(),this.options=ee}addText(ee){ee!==""&&this.add(ee)}startScope(ee){this.openNode(ee)}endScope(){this.closeNode()}__addSublanguage(ee,me){const Me=ee.root;me&&(Me.scope=`language:${me}`),this.add(Me)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(O){return O?typeof O=="string"?O:O.source:null}function _(O){return A("(?=",O,")")}function w(O){return A("(?:",O,")*")}function T(O){return A("(?:",O,")?")}function A(...O){return O.map(me=>v(me)).join("")}function x(O){const ee=O[O.length-1];return typeof ee=="object"&&ee.constructor===Object?(O.splice(O.length-1,1),ee):{}}function k(...O){return"("+(x(O).capture?"":"?:")+O.map(Me=>v(Me)).join("|")+")"}function I(O){return new RegExp(O.toString()+"|").exec("").length-1}function L(O,ee){const me=O&&O.exec(ee);return me&&me.index===0}const le=new RegExp(k(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function K(O,{joinWith:ee}){let me=0;return O.map(Me=>{me+=1;const Ke=me;let Qe=v(Me),Ne="";for(;Qe.length>0;){const Ee=le.exec(Qe);if(!Ee){Ne+=Qe;break}Ne+=Qe.substring(0,Ee.index),Qe=Qe.substring(Ee.index+Ee[0].length),Ee[0][0]==="\\"&&Ee[1]?Ne+="\\"+String(Number(Ee[1])+Ke):(Ne+=Ee[0],(Ee[0]==="("||/^\(\?[<']/.test(Ee[0]))&&me++)}return Ne}).map(Me=>`(${Me})`).join(ee)}const P=/\b\B/,ne="[a-zA-Z]\\w*",C="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",X="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",de="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",he=(O={})=>{const ee=/^#![ ]*\//;return O.binary&&(O.begin=A(ee,/.*\b/,O.binary,/\b.*/)),l({scope:"meta",begin:ee,end:/$/,relevance:0,"on:begin":(me,Me)=>{me.index!==0&&Me.ignoreMatch()}},O)},_e={begin:"\\\\[\\s\\S]",relevance:0},pe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[_e]},j={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[_e]},ae={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ce=function(O,ee,me={}){const Me=l({scope:"comment",begin:O,end:ee,contains:[]},me);Me.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ke=k("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Me.contains.push({begin:A(/[ ]+/,"(",Ke,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Me},ve=ce("//","$"),Se=ce("/\\*","\\*/"),S=ce("#","$"),D={scope:"number",begin:z,relevance:0},H={scope:"number",begin:X,relevance:0},ue={scope:"number",begin:q,relevance:0},J={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[_e,{begin:/\[/,end:/\]/,relevance:0,contains:[_e]}]},be={scope:"title",begin:ne,relevance:0},ge={scope:"title",begin:C,relevance:0},Le={begin:"\\.\\s*"+C,relevance:0};var $e=Object.freeze({__proto__:null,APOS_STRING_MODE:pe,BACKSLASH_ESCAPE:_e,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:q,COMMENT:ce,C_BLOCK_COMMENT_MODE:Se,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:H,C_NUMBER_RE:X,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(ee,me)=>{me.data._beginMatch=ee[1]},"on:end":(ee,me)=>{me.data._beginMatch!==ee[1]&&me.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:ne,MATCH_NOTHING_RE:P,METHOD_GUARD:Le,NUMBER_MODE:D,NUMBER_RE:z,PHRASAL_WORDS_MODE:ae,QUOTE_STRING_MODE:j,REGEXP_MODE:J,RE_STARTERS_RE:de,SHEBANG:he,TITLE_MODE:be,UNDERSCORE_IDENT_RE:C,UNDERSCORE_TITLE_MODE:ge});function at(O,ee){O.input[O.index-1]==="."&&ee.ignoreMatch()}function Ce(O,ee){O.className!==void 0&&(O.scope=O.className,delete O.className)}function Je(O,ee){ee&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=at,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function Ge(O,ee){Array.isArray(O.illegal)&&(O.illegal=k(...O.illegal))}function Xt(O,ee){if(O.match){if(O.begin||O.end)throw new Error("begin & end are not supported with match");O.begin=O.match,delete O.match}}function He(O,ee){O.relevance===void 0&&(O.relevance=1)}const ct=(O,ee)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const me=Object.assign({},O);Object.keys(O).forEach(Me=>{delete O[Me]}),O.keywords=me.keywords,O.begin=A(me.beforeMatch,_(me.begin)),O.starts={relevance:0,contains:[Object.assign(me,{endsParent:!0})]},O.relevance=0,delete me.beforeMatch},wn=["of","and","for","in","not","or","if","then","parent","list","value"],Qt="keyword";function Dt(O,ee,me=Qt){const Me=Object.create(null);return typeof O=="string"?Ke(me,O.split(" ")):Array.isArray(O)?Ke(me,O):Object.keys(O).forEach(function(Qe){Object.assign(Me,Dt(O[Qe],ee,Qe))}),Me;function Ke(Qe,Ne){ee&&(Ne=Ne.map(Ee=>Ee.toLowerCase())),Ne.forEach(function(Ee){const Ue=Ee.split("|");Me[Ue[0]]=[Qe,Ln(Ue[0],Ue[1])]})}}function Ln(O,ee){return ee?Number(ee):sa(O)?0:1}function sa(O){return wn.includes(O.toLowerCase())}const Qn={},st=O=>{console.error(O)},qt=(O,...ee)=>{console.log(`WARN: ${O}`,...ee)},ut=(O,ee)=>{Qn[`${O}/${ee}`]||(console.log(`Deprecated as of ${O}. ${ee}`),Qn[`${O}/${ee}`]=!0)},cn=new Error;function xn(O,ee,{key:me}){let Me=0;const Ke=O[me],Qe={},Ne={};for(let Ee=1;Ee<=ee.length;Ee++)Ne[Ee+Me]=Ke[Ee],Qe[Ee+Me]=!0,Me+=I(ee[Ee-1]);O[me]=Ne,O[me]._emit=Qe,O[me]._multi=!0}function An(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw st("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),cn;if(typeof O.beginScope!="object"||O.beginScope===null)throw st("beginScope must be object"),cn;xn(O,O.begin,{key:"beginScope"}),O.begin=K(O.begin,{joinWith:""})}}function zn(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw st("skip, excludeEnd, returnEnd not compatible with endScope: {}"),cn;if(typeof O.endScope!="object"||O.endScope===null)throw st("endScope must be object"),cn;xn(O,O.end,{key:"endScope"}),O.end=K(O.end,{joinWith:""})}}function Un(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function un(O){Un(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),An(O),zn(O)}function yn(O){function ee(Ne,Ee){return new RegExp(v(Ne),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(Ee?"g":""))}class me{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Ee,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Ee]),this.matchAt+=I(Ee)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Ee=this.regexes.map(Ue=>Ue[1]);this.matcherRe=ee(K(Ee,{joinWith:"|"}),!0),this.lastIndex=0}exec(Ee){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Ee);if(!Ue)return null;const Rt=Ue.findIndex((In,Vn)=>Vn>0&&In!==void 0),bt=this.matchIndexes[Rt];return Ue.splice(0,Rt),Object.assign(Ue,bt)}}class Me{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Ee){if(this.multiRegexes[Ee])return this.multiRegexes[Ee];const Ue=new me;return this.rules.slice(Ee).forEach(([Rt,bt])=>Ue.addRule(Rt,bt)),Ue.compile(),this.multiRegexes[Ee]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Ee,Ue){this.rules.push([Ee,Ue]),Ue.type==="begin"&&this.count++}exec(Ee){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Rt=Ue.exec(Ee);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const bt=this.getMatcher(0);bt.lastIndex=this.lastIndex+1,Rt=bt.exec(Ee)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function Ke(Ne){const Ee=new Me;return Ne.contains.forEach(Ue=>Ee.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ne.terminatorEnd&&Ee.addRule(Ne.terminatorEnd,{type:"end"}),Ne.illegal&&Ee.addRule(Ne.illegal,{type:"illegal"}),Ee}function Qe(Ne,Ee){const Ue=Ne;if(Ne.isCompiled)return Ue;[Ce,Xt,un,ct].forEach(bt=>bt(Ne,Ee)),O.compilerExtensions.forEach(bt=>bt(Ne,Ee)),Ne.__beforeBegin=null,[Je,Ge,He].forEach(bt=>bt(Ne,Ee)),Ne.isCompiled=!0;let Rt=null;return typeof Ne.keywords=="object"&&Ne.keywords.$pattern&&(Ne.keywords=Object.assign({},Ne.keywords),Rt=Ne.keywords.$pattern,delete Ne.keywords.$pattern),Rt=Rt||/\w+/,Ne.keywords&&(Ne.keywords=Dt(Ne.keywords,O.case_insensitive)),Ue.keywordPatternRe=ee(Rt,!0),Ee&&(Ne.begin||(Ne.begin=/\B|\b/),Ue.beginRe=ee(Ue.begin),!Ne.end&&!Ne.endsWithParent&&(Ne.end=/\B|\b/),Ne.end&&(Ue.endRe=ee(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ne.endsWithParent&&Ee.terminatorEnd&&(Ue.terminatorEnd+=(Ne.end?"|":"")+Ee.terminatorEnd)),Ne.illegal&&(Ue.illegalRe=ee(Ne.illegal)),Ne.contains||(Ne.contains=[]),Ne.contains=[].concat(...Ne.contains.map(function(bt){return fn(bt==="self"?Ne:bt)})),Ne.contains.forEach(function(bt){Qe(bt,Ue)}),Ne.starts&&Qe(Ne.starts,Ee),Ue.matcher=Ke(Ue),Ue}if(O.compilerExtensions||(O.compilerExtensions=[]),O.contains&&O.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return O.classNameAliases=l(O.classNameAliases||{}),Qe(O)}function Ut(O){return O?O.endsWithParent||Ut(O.starts):!1}function fn(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(ee){return l(O,{variants:null},ee)})),O.cachedVariants?O.cachedVariants:Ut(O)?l(O,{starts:O.starts?l(O.starts):null}):Object.isFrozen(O)?l(O):O}var jt="11.12.0";class ga extends Error{constructor(ee,me){super(ee),this.name="HTMLInjectionError",this.html=me}}const jn=r,Bn=l,Ie=Symbol("nomatch"),dn=7,hn=function(O){const ee=Object.create(null),me=Object.create(null),Me=[];let Ke=!0;const Qe="Could not find the language '{}', did you forget to load/include a language module?",Ne={disableAutodetect:!0,name:"Plain text",contains:[]};let Ee={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ue(fe){return Ee.noHighlightRe.test(fe)}function Rt(fe){let Oe=fe.className+" ";Oe+=fe.parentNode?fe.parentNode.className:"";const Pe=Ee.languageDetectRe.exec(Oe);if(Pe){const ft=St(Pe[1]);return ft||(qt(Qe.replace("{}",Pe[1])),qt("Falling back to no-highlight mode for this block.",fe)),ft?Pe[1]:"no-highlight"}return Oe.split(/\s+/).find(ft=>Ue(ft)||St(ft))}function bt(fe,Oe,Pe){let ft="",kt="";typeof Oe=="object"?(ft=fe,Pe=Oe.ignoreIllegals,kt=Oe.language):(ut("10.7.0","highlight(lang, code, ...args) has been deprecated."),ut("10.7.0",`Please use highlight(code, options) instead.
165
- https://github.com/highlightjs/highlight.js/issues/2277`),kt=fe,ft=Oe),Pe===void 0&&(Pe=!0);const Vt={code:ft,language:kt};Hn("before:highlight",Vt);const pn=Vt.result?Vt.result:In(Vt.language,Vt.code,Pe);return pn.code=Vt.code,Hn("after:highlight",pn),pn}function In(fe,Oe,Pe,ft){const kt=Object.create(null);function Vt(oe,ye){return oe.keywords[ye]}function pn(){if(!V.keywords){U.addText(W);return}let oe=0;V.keywordPatternRe.lastIndex=0;let ye=V.keywordPatternRe.exec(W),ke="";for(;ye;){ke+=W.substring(oe,ye.index);const Xe=Jt.case_insensitive?ye[0].toLowerCase():ye[0],Ve=Vt(V,Xe);if(Ve){const[ra,Gl]=Ve;if(U.addText(ke),ke="",kt[Xe]=(kt[Xe]||0)+1,kt[Xe]<=dn&&(Te+=Gl),ra.startsWith("_"))ke+=ye[0];else{const Fs=Jt.classNameAliases[ra]||ra;Lt(ye[0],Fs)}}else ke+=ye[0];oe=V.keywordPatternRe.lastIndex,ye=V.keywordPatternRe.exec(W)}ke+=W.substring(oe),U.addText(ke)}function Yt(){if(W==="")return;let oe=null;if(typeof V.subLanguage=="string"){if(!ee[V.subLanguage]){U.addText(W);return}oe=In(V.subLanguage,W,!0,N[V.subLanguage]),N[V.subLanguage]=oe._top}else oe=ba(W,V.subLanguage.length?V.subLanguage:null);V.relevance>0&&(Te+=oe.relevance),U.__addSublanguage(oe._emitter,oe.language)}function dt(){V.subLanguage!=null?Yt():pn(),W=""}function Lt(oe,ye){oe!==""&&(U.startScope(ye),U.addText(oe),U.endScope())}function nl(oe,ye){let ke=1;const Xe=ye.length-1;for(;ke<=Xe;){if(!oe._emit[ke]){ke++;continue}const Ve=Jt.classNameAliases[oe[ke]]||oe[ke],ra=ye[ke];Ve?Lt(ra,Ve):(W=ra,pn(),W=""),ke++}}function ii(oe,ye){return oe.scope&&typeof oe.scope=="string"&&U.openNode(Jt.classNameAliases[oe.scope]||oe.scope),oe.beginScope&&(oe.beginScope._wrap?(Lt(W,Jt.classNameAliases[oe.beginScope._wrap]||oe.beginScope._wrap),W=""):oe.beginScope._multi&&(nl(oe.beginScope,ye),W="")),V=Object.create(oe,{parent:{value:V}}),V}function li(oe,ye,ke){let Xe=L(oe.endRe,ke);if(Xe){if(oe["on:end"]){const Ve=new a(oe);oe["on:end"](ye,Ve),Ve.isMatchIgnored&&(Xe=!1)}if(Xe){for(;oe.endsParent&&oe.parent;)oe=oe.parent;return oe}}if(oe.endsWithParent)return li(oe.parent,ye,ke)}function ja(oe){return V.matcher.regexIndex===0?(W+=oe[0],1):(We=!0,0)}function al(oe){const ye=oe[0],ke=oe.rule,Xe=new a(ke),Ve=[ke.__beforeBegin,ke["on:begin"]];for(const ra of Ve)if(ra&&(ra(oe,Xe),Xe.isMatchIgnored))return ja(ye);return ke.skip?W+=ye:(ke.excludeBegin&&(W+=ye),dt(),!ke.returnBegin&&!ke.excludeBegin&&(W=ye)),ii(ke,oe),ke.returnBegin?0:ye.length}function kn(oe){const ye=oe[0],ke=Oe.substring(oe.index),Xe=li(V,oe,ke);if(!Xe)return Ie;const Ve=V;V.endScope&&V.endScope._wrap?(dt(),Lt(ye,V.endScope._wrap)):V.endScope&&V.endScope._multi?(dt(),nl(V.endScope,oe)):Ve.skip?W+=ye:(Ve.returnEnd||Ve.excludeEnd||(W+=ye),dt(),Ve.excludeEnd&&(W=ye));do V.scope&&U.closeNode(),!V.skip&&!V.subLanguage&&(Te+=V.relevance),V=V.parent;while(V!==Xe.parent);return Xe.starts&&ii(Xe.starts,oe),Ve.returnEnd?0:ye.length}function si(){const oe=[];for(let ye=V;ye!==Jt;ye=ye.parent)ye.scope&&oe.unshift(ye.scope);oe.forEach(ye=>U.openNode(ye))}let Ba={};function ri(oe,ye){const ke=ye&&ye[0];if(W+=oe,ke==null)return dt(),0;if(Ba.type==="begin"&&ye.type==="end"&&Ba.index===ye.index&&ke===""){if(W+=Oe.slice(ye.index,ye.index+1),!Ke){const Xe=new Error(`0 width match regex (${fe})`);throw Xe.languageName=fe,Xe.badRule=Ba.rule,Xe}return 1}if(Ba=ye,ye.type==="begin")return al(ye);if(ye.type==="illegal"&&!Pe){const Xe=new Error('Illegal lexeme "'+ke+'" for mode "'+(V.scope||"<unnamed>")+'"');throw Xe.mode=V,Xe}else if(ye.type==="end"){const Xe=kn(ye);if(Xe!==Ie)return Xe}if(ye.type==="illegal"&&ke==="")return ye.index===Oe.length||(W+=`
166
- `),1;if(Be>1e5&&Be>ye.index*3)throw new Error("potential infinite loop, way more iterations than matches");return W+=ke,ke.length}const Jt=St(fe);if(!Jt)throw st(Qe.replace("{}",fe)),new Error('Unknown language: "'+fe+'"');const Ia=yn(Jt);let Aa="",V=ft||Ia;const N={},U=new Ee.__emitter(Ee);si();let W="",Te=0,Ae=0,Be=0,We=!1;try{if(Jt.__emitTokens)Jt.__emitTokens(Oe,U);else{for(V.matcher.considerAll();;){Be++,We?We=!1:V.matcher.considerAll(),V.matcher.lastIndex=Ae;const oe=V.matcher.exec(Oe);if(!oe)break;const ye=Oe.substring(Ae,oe.index),ke=ri(ye,oe);Ae=oe.index+ke}ri(Oe.substring(Ae))}return U.finalize(),Aa=U.toHTML(),{language:fe,value:Aa,relevance:Te,illegal:!1,_emitter:U,_top:V}}catch(oe){if(oe.message&&oe.message.includes("Illegal"))return{language:fe,value:jn(Oe),illegal:!0,relevance:0,_illegalBy:{message:oe.message,index:Ae,context:Oe.slice(Ae-100,Ae+100),mode:oe.mode,resultSoFar:Aa},_emitter:U};if(Ke)return{language:fe,value:jn(Oe),illegal:!1,relevance:0,errorRaised:oe,_emitter:U,_top:V};throw oe}}function Vn(fe){const Oe={value:jn(fe),illegal:!1,relevance:0,_top:Ne,_emitter:new Ee.__emitter(Ee)};return Oe._emitter.addText(fe),Oe}function ba(fe,Oe){Oe=Oe||Ee.languages||Object.keys(ee);const Pe=Vn(fe),ft=Oe.filter(St).filter(wa).map(dt=>In(dt,fe,!1));ft.unshift(Pe);const kt=ft.sort((dt,Lt)=>{if(dt.relevance!==Lt.relevance)return Lt.relevance-dt.relevance;if(dt.language&&Lt.language){if(St(dt.language).supersetOf===Lt.language)return 1;if(St(Lt.language).supersetOf===dt.language)return-1}return 0}),[Vt,pn]=kt,Yt=Vt;return Yt.secondBest=pn,Yt}function rn(fe,Oe,Pe){const ft=Oe&&me[Oe]||Pe;fe.classList.add("hljs"),fe.classList.add(`language-${ft}`)}function Ot(fe){let Oe=null;const Pe=Rt(fe);if(Ue(Pe))return;if(Hn("before:highlightElement",{el:fe,language:Pe}),fe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",fe);return}if(fe.children.length>0&&(Ee.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(fe)),Ee.throwUnescapedHTML))throw new ga("One of your code blocks includes unescaped HTML.",fe.innerHTML);Oe=fe;const ft=Oe.textContent,kt=Pe?bt(ft,{language:Pe,ignoreIllegals:!0}):ba(ft);fe.innerHTML=kt.value,fe.dataset.highlighted="yes",rn(fe,Pe,kt.language),fe.result={language:kt.language,re:kt.relevance,relevance:kt.relevance},kt.secondBest&&(fe.secondBest={language:kt.secondBest.language,relevance:kt.secondBest.relevance}),Hn("after:highlightElement",{el:fe,result:kt,text:ft})}function Y(fe){Ee=Bn(Ee,fe)}const re=()=>{Bt(),ut("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function we(){Bt(),ut("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let mt=!1;function Bt(){function fe(){Bt()}if(document.readyState==="loading"){mt||window.addEventListener("DOMContentLoaded",fe,!1),mt=!0;return}document.querySelectorAll(Ee.cssSelector).forEach(Ot)}function Rn(fe,Oe){let Pe=null;try{Pe=Oe(O)}catch(ft){if(st("Language definition for '{}' could not be registered.".replace("{}",fe)),Ke)st(ft);else throw ft;Pe=Ne}Pe.name||(Pe.name=fe),ee[fe]=Pe,Pe.rawDefinition=Oe.bind(null,O),Pe.aliases&&On(Pe.aliases,{languageName:fe})}function $t(fe){delete ee[fe];for(const Oe of Object.keys(me))me[Oe]===fe&&delete me[Oe]}function $n(){return Object.keys(ee)}function St(fe){return fe=(fe||"").toLowerCase(),ee[fe]||ee[me[fe]]}function On(fe,{languageName:Oe}){typeof fe=="string"&&(fe=[fe]),fe.forEach(Pe=>{me[Pe.toLowerCase()]=Oe})}function wa(fe){const Oe=St(fe);return Oe&&!Oe.disableAutodetect}function xa(fe){fe["before:highlightBlock"]&&!fe["before:highlightElement"]&&(fe["before:highlightElement"]=Oe=>{fe["before:highlightBlock"](Object.assign({block:Oe.el},Oe))}),fe["after:highlightBlock"]&&!fe["after:highlightElement"]&&(fe["after:highlightElement"]=Oe=>{fe["after:highlightBlock"](Object.assign({block:Oe.el},Oe))})}function vt(fe){xa(fe),Me.push(fe)}function Ua(fe){const Oe=Me.indexOf(fe);Oe!==-1&&Me.splice(Oe,1)}function Hn(fe,Oe){const Pe=fe;Me.forEach(function(ft){ft[Pe]&&ft[Pe](Oe)})}function ya(fe){return ut("10.7.0","highlightBlock will be removed entirely in v12.0"),ut("10.7.0","Please use highlightElement now."),Ot(fe)}Object.assign(O,{highlight:bt,highlightAuto:ba,highlightAll:Bt,highlightElement:Ot,highlightBlock:ya,configure:Y,initHighlighting:re,initHighlightingOnLoad:we,registerLanguage:Rn,unregisterLanguage:$t,listLanguages:$n,getLanguage:St,registerAliases:On,autoDetection:wa,inherit:Bn,addPlugin:vt,removePlugin:Ua}),O.debugMode=function(){Ke=!1},O.safeMode=function(){Ke=!0},O.versionString=jt,O.regex={concat:A,lookahead:_,either:k,optional:T,anyNumberOfTimes:w};for(const fe in $e)typeof $e[fe]=="object"&&s($e[fe]);return Object.assign(O,$e),O},Gt=hn({});return Gt.newInstance=()=>hn({}),Lu=Gt,Gt.HighlightJS=Gt,Gt.default=Gt,Lu}var zu,og;function p0(){if(og)return zu;og=1;function s(a){const r=a.regex,l=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,d={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(p,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),m=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[d]},{begin:/'/,end:/'/,contains:[d]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},d,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return zu=s,zu}var Uu,cg;function m0(){if(cg)return Uu;cg=1;function s(a){const r=a.regex,l={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const d={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},p=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,l,d]};d.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,l]},w=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],T=a.SHEBANG({binary:`(${w.join("|")})`,relevance:10}),A={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},x=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],k=["true","false"],I={match:/(\/[a-z._-]+)+/},L=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],le=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],K=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],P=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:x,literal:k,built_in:[...L,...le,"set","shopt",...K,...P]},contains:[T,a.SHEBANG(),A,_,p,y,I,g,m,b,v,l]}}return Uu=s,Uu}var ju,ug;function g0(){if(ug)return ju;ug=1;function s(a){const r=a.regex,l=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:g}]},v={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},_={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},w={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},l,a.C_BLOCK_COMMENT_MODE]},T={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(v,{className:"string"}),l,a.C_BLOCK_COMMENT_MODE]},A=[w,T],x={className:"title",begin:r.optional(d)+a.IDENT_RE,relevance:0},k=r.optional(d)+a.IDENT_RE+"\\s*\\(",I=12,K={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},P=[...A,m,l,a.C_BLOCK_COMMENT_MODE,_,v],ne={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:K,contains:P.concat([{begin:/\(/,end:/\)/,keywords:K,contains:P.concat(["self"]),relevance:0}]),relevance:0},C={begin:"("+y+"[\\*&\\s]+){1,"+I+"}"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:K,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:K,relevance:0},{begin:k,returnBegin:!0,contains:[a.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:K,relevance:0,contains:[l,a.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:K,relevance:0,contains:["self",l,a.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,l,a.C_BLOCK_COMMENT_MODE,...A]};return{name:"C",aliases:["h"],keywords:K,disableAutodetect:!0,illegal:"</",contains:[].concat(ne,C,P,[...A,{begin:a.IDENT_RE+"::",keywords:K},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:T,strings:v,keywords:K}}}return ju=s,ju}var Bu,fg;function b0(){if(fg)return Bu;fg=1;function s(a){const r=a.regex,l=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},v={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},l,a.C_BLOCK_COMMENT_MODE]},w={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(b,{className:"string"}),l,a.C_BLOCK_COMMENT_MODE]},T=[_,w],A={className:"title",begin:r.optional(d)+a.IDENT_RE,relevance:0},x=r.optional(d)+a.IDENT_RE+"\\s*\\(",k=12,I=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],L=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],le=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],K=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:L,keyword:I,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:le},z={className:"function.dispatch",relevance:0,keywords:{_hint:K},begin:r.concat(/\b/,`(?!${I.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},X=[z,...T,g,l,a.C_BLOCK_COMMENT_MODE,v,b],q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:X.concat([{begin:/\(/,end:/\)/,keywords:C,contains:X.concat(["self"]),relevance:0}]),relevance:0},de={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+k+"}"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:C,relevance:0},{begin:x,returnBegin:!0,contains:[A],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[l,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",l,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,l,a.C_BLOCK_COMMENT_MODE,...T]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(q,de,z,X,[...T,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Bu=s,Bu}var Iu,dg;function y0(){if(dg)return Iu;dg=1;function s(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],l=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],d=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],p=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:d.concat(p),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},w={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},T={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},A=a.inherit(T,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:y},k=a.inherit(x,{illegal:/\n/}),I={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,k]},L={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},le=a.inherit(L,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},k]});x.contains=[L,I,T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.C_BLOCK_COMMENT_MODE],k.contains=[le,I,A,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const K={variants:[w,L,I,T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},P={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},ne=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+a.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[a.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},K,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,P,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,P,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+ne+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,P],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[K,_,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},C]}}return Iu=s,Iu}var Hu,hg;function v0(){if(hg)return Hu;hg=1;const s=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=s(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},w="and or not only",T=/@-?\w[\w]*(-\w+)*/,A="[a-zA-Z-][a-zA-Z0-9_-]*",x=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,_,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+A,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...x,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...x,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:T},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...x,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Hu=g,Hu}var qu,pg;function E0(){if(pg)return qu;pg=1;function s(a){const r=a.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},d={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},p={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=a.inherit(b,{contains:[]}),w=a.inherit(v,{contains:[]});b.contains.push(w),v.contains.push(_);let T=[l,m];return[b,v,_,w].forEach(I=>{I.contains=I.contains.concat(T)}),T=T.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:T},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:T}]}]},l,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:T,end:"$"},d,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return qu=s,qu}var Gu,mg;function _0(){if(mg)return Gu;mg=1;function s(a){const r=a.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Gu=s,Gu}var $u,gg;function S0(){if(gg)return $u;gg=1;function s(a){const r=a.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),d=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[a.COMMENT("#","$",{contains:[g]}),a.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),a.COMMENT("^__END__",a.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},_={className:"string",contains:[a.BACKSLASH_ESCAPE,v],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[a.BACKSLASH_ESCAPE,v]})]}]},w="[1-9](_?[0-9])*|0",T="[0-9](_?[0-9])*",A={className:"number",relevance:0,variants:[{begin:`\\b(${w})(\\.(${T}))?([eE][+-]?(${T})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},x={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},ne=[_,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:y},{relevance:0,match:[d,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[x]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:l}],relevance:0},A,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+a.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[a.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=ne,x.contains=ne;const q=[{begin:/^\s*=>/,starts:{end:"$",contains:ne}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:ne}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(q).concat(b).concat(ne)}}return $u=s,$u}var Yu,bg;function N0(){if(bg)return Yu;bg=1;function s(a){const p={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:p,illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"string",variants:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,illegal:/["']/}]}]}}return Yu=s,Yu}var Fu,yg;function T0(){if(yg)return Fu;yg=1;function s(a){const r=a.regex,l=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[a.HASH_COMMENT_MODE,a.QUOTE_STRING_MODE,a.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(l,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Fu=s,Fu}var Ku,vg;function w0(){if(vg)return Ku;vg=1;function s(a){const r=a.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const d={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,d,y,l,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),w=r.concat(_,"(\\s*\\.\\s*",_,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[u,{className:"section",begin:/\[+/,end:/\]+/},{begin:w,className:"attr",starts:{end:/$/,contains:[u,g,p,d,y,l]}}]}}return Ku=s,Ku}var Pu,Eg;function x0(){if(Eg)return Pu;Eg=1;var s="[0-9](_*[0-9])*",a=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${a})|\\.)?|(${a}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(p,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function d(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",w=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),I={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},L={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},le={className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:I,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(w,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[le,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(w,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:I,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[L,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,l,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},l,L]}}return Pu=d,Pu}var Zu,_g;function A0(){if(_g)return Zu;_g=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,l,u);function g(m){const b=m.regex,v=(ge,{after:Le})=>{const ze="</"+ge[0].slice(1);return ge.input.indexOf(ze,Le)!==-1},_=s,w={begin:"<>",end:"</>"},T=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ge,Le)=>{const ze=ge[0].length+ge.index,$e=ge.input[ze];if($e==="<"||$e===","){Le.ignoreMatch();return}$e===">"&&(v(ge,{after:ze})||Le.ignoreMatch());let at;const Ce=ge.input.substring(ze);if(at=Ce.match(/^\s*=/)){Le.ignoreMatch();return}if((at=Ce.match(/^\s+extends\s+/))&&at.index===0){Le.ignoreMatch();return}}},x={$pattern:s,keyword:a,literal:r,built_in:y,"variable.language":p},k="[0-9](_?[0-9])*",I=`\\.(${k})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",le={className:"number",variants:[{begin:`(\\b(${L})((${I})|\\.)?|(${I}))[eE][+-]?(${k})\\b`},{begin:`\\b(${L})\\b((${I})\\b|\\.)?|(${I})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},K={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},P={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,K],subLanguage:"xml"}},ne={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,K],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,K],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,K]},q={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},de=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,P,ne,C,z,{match:/\$\d+/},le];K.contains=de.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(de)});const he=[].concat(q,K.contains),_e=he.concat([{begin:/(\s*)\(/,end:/\)/,keywords:x,contains:["self"].concat(he)}]),pe={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:_e},j={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,b.concat(_,"(",b.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},ce={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ve={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[pe],illegal:/%/},Se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(ge){return b.concat("(?!",ge.join("|"),")")}const D={match:b.concat(/\b/,S([...d,"super","import","await"].map(ge=>`${ge}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},H={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ue={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},pe]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",be={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[pe]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:_e,CLASS_REFERENCE:ae},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),ce,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,P,ne,C,z,q,{match:/\$\d+/},le,ae,{scope:"attr",match:_+b.lookahead(":"),relevance:0},be,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,m.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:_e}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:w.begin,end:w.end},{match:T},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},ve,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[pe,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[pe]},D,Se,j,ue,{match:/\$[(.]/}]}}return Zu=g,Zu}var Xu,Sg;function R0(){if(Sg)return Xu;Sg=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(l){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},d={match:/[{}[\],:]/,className:"punctuation",relevance:0},p=["true","false","null"],y={scope:"literal",beginKeywords:p.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:p},contains:[u,d,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,a,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Xu=r,Xu}var Qu,Ng;function O0(){if(Ng)return Qu;Ng=1;var s="[0-9](_*[0-9])*",a=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${a})|\\.)?|(${a}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(d){const p={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:d.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[d.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},w={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(v,{className:"string"}),"self"]}]},T=l,A=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),x={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},k=x;return k.variants[1].contains=[x],x.variants[1].contains=[k],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[d.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),d.C_LINE_COMMENT_MODE,A,y,g,_,w,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:d.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[d.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[x,d.C_LINE_COMMENT_MODE,A],relevance:0},d.C_LINE_COMMENT_MODE,A,_,w,v,d.C_NUMBER_MODE]},A]},{begin:[/class|interface|trait/,/\s+/,d.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},d.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,w]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
167
- `},T]}}return Qu=u,Qu}var Vu,Tg;function k0(){if(Tg)return Vu;Tg=1;const s=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=d.concat(p).sort().reverse();function m(b){const v=s(b),_=g,w="and or not only",T="[\\w-]+",A="("+T+"|@\\{"+T+"\\})",x=[],k=[],I=function(he){return{className:"string",begin:"~?"+he+".*?"+he}},L=function(he,_e,pe){return{className:he,begin:_e,relevance:pe}},le={$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},K={begin:"\\(",end:"\\)",contains:k,keywords:le,relevance:0};k.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,I("'"),I('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,K,L("variable","@@?"+T,10),L("variable","@\\{"+T+"\\}"),L("built_in","~?`[^`]*?`"),{className:"attribute",begin:T+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const P=k.concat({begin:/\{/,end:/\}/,contains:x}),ne={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(k)},C={begin:A+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:k}}]},z={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:le,returnEnd:!0,contains:k,relevance:0}},X={className:"variable",variants:[{begin:"@"+T+"\\s*:",relevance:15},{begin:"@"+T}],starts:{end:"[;}]",returnEnd:!0,contains:P}},q={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:A,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,ne,L("keyword","all\\b"),L("variable","@\\{"+T+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,L("selector-tag",A,0),L("selector-id","#"+A),L("selector-class","\\."+A,0),L("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:P},{begin:"!important"},v.FUNCTION_DISPATCH]},de={begin:T+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[q]};return x.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,z,X,de,C,q,ne,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:x}}return Vu=m,Vu}var Ju,wg;function C0(){if(wg)return Ju;wg=1;function s(a){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},d=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,l,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:a.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:d.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[a.inherit(a.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:d}].concat(d)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Ju=s,Ju}var Wu,xg;function M0(){if(xg)return Wu;xg=1;function s(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,l]},d={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[a.HASH_COMMENT_MODE,r,l,u,d,p,y]}}return Wu=s,Wu}var ef,Ag;function D0(){if(Ag)return ef;Ag=1;function s(a){const r=a.regex,l=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,d={$pattern:/[\w.]+/,keyword:l.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:d},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[a.BACKSLASH_ESCAPE,p,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],w=(x,k,I="\\1")=>{const L=I==="\\1"?I:r.concat(I,k);return r.concat(r.concat("(?:",x,")"),k,/(?:\\.|[^\\\/])*?/,L,/(?:\\.|[^\\\/])*?/,I,u)},T=(x,k,I)=>r.concat(r.concat("(?:",x,")"),k,/(?:\\.|[^\\\/])*?/,I,u),A=[m,a.HASH_COMMENT_MODE,a.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+a.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[a.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:w("s|tr|y",r.either(..._,{capture:!0}))},{begin:w("s|tr|y","\\(","\\)")},{begin:w("s|tr|y","\\[","\\]")},{begin:w("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:T("(?:m|qr)?",/\//,/\//)},{begin:T("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:T("m|qr",/\(/,/\)/)},{begin:T("m|qr",/\[/,/\]/)},{begin:T("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=A,y.contains=A,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:A}}return ef=s,ef}var tf,Rg;function L0(){if(Rg)return tf;Rg=1;function s(a){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},l=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:l,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[r,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[a.UNDERSCORE_TITLE_MODE]},{begin:"\\."+a.UNDERSCORE_IDENT_RE,relevance:0}]}}return tf=s,tf}var nf,Og;function z0(){if(Og)return nf;Og=1;function s(a){const r=a.regex,l=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),d=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),p=r.concat(/[A-Z]+/,l),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=a.inherit(a.APOS_STRING_MODE,{illegal:null}),v=a.inherit(a.QUOTE_STRING_MODE,{illegal:null,contains:a.QUOTE_STRING_MODE.contains.concat(m)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(pe,j)=>{j.data._beginMatch=pe[1]||pe[2]},"on:end":(pe,j)=>{j.data._beginMatch!==pe[1]&&j.ignoreMatch()}},w=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),T=`[
168
- ]`,A={scope:"string",variants:[v,b,_,w]},x={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},k=["false","null","true"],I=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],L=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],K={keyword:I,literal:(pe=>{const j=[];return pe.forEach(ae=>{j.push(ae),ae.toLowerCase()===ae?j.push(ae.toUpperCase()):j.push(ae.toLowerCase())}),j})(k),built_in:L},P=pe=>pe.map(j=>j.replace(/\|\d+$/,"")),ne={variants:[{match:[/new/,r.concat(T,"+"),r.concat("(?!",P(L).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},C=r.concat(u,"\\b(?!\\()"),z={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),C],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),C],scope:{1:"title.class",3:"variable.constant"}},{match:[d,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[d,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},X={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:K,contains:[X,y,z,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,A,x,ne]},de={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",P(I).join("\\b|"),"|",P(L).join("\\b|"),"\\b)"),u,r.concat(T,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(de);const he=[X,z,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,A,x,ne],_e={begin:r.concat(/#\[\s*\\?/,r.either(d,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:k,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:k,keyword:["new","array"]},contains:["self",...he]},...he,{scope:"meta",variants:[{match:d},{match:p}]}]};return{case_insensitive:!1,keywords:K,contains:[_e,a.HASH_COMMENT_MODE,a.COMMENT("//","$"),a.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:a.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},y,de,z,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},ne,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},a.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:K,contains:["self",_e,y,z,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,A,x]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[a.inherit(a.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},a.UNDERSCORE_TITLE_MODE]},A,x]}}return nf=s,nf}var af,kg;function U0(){if(kg)return af;kg=1;function s(a){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},a.inherit(a.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),a.inherit(a.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return af=s,af}var lf,Cg;function j0(){if(Cg)return lf;Cg=1;function s(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return lf=s,lf}var sf,Mg;function B0(){if(Mg)return sf;Mg=1;function s(a){const r=a.regex,l=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},_={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[a.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,v,b]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},w="[0-9](_?[0-9])*",T=`(\\b(${w}))?\\.(${w})|\\b(${w})\\.`,A=`\\b|${u.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${w})|(${T}))[eE][+-]?(${w})[jJ]?(?=${A})`},{begin:`(${T})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${A})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${A})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${A})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${A})`},{begin:`\\b(${w})[jJ](?=${A})`}]},k={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},I={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,x,_,a.HASH_COMMENT_MODE]}]};return b.contains=[_,x,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,k,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[I]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,I,_]}]}}return sf=s,sf}var rf,Dg;function I0(){if(Dg)return rf;Dg=1;function s(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return rf=s,rf}var of,Lg;function H0(){if(Lg)return of;Lg=1;function s(a){const r=a.regex,l=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),d=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[a.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:l},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),a.HASH_COMMENT_MODE,{scope:"string",contains:[a.BACKSLASH_ESCAPE],variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[d,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[p,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:d},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return of=s,of}var cf,zg;function q0(){if(zg)return cf;zg=1;function s(a){const r=a.regex,l=/(r#)?/,u=r.concat(l,a.UNDERSCORE_IDENT_RE),d=r.concat(l,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:a.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.COMMENT("/\\*","\\*/",{contains:["self"]}),a.inherit(a.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:a.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return cf=s,cf}var uf,Ug;function G0(){if(Ug)return uf;Ug=1;const s=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=s(m),v=p,_=d,w="@[a-z-]+",T="and or not only",x={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},x,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,x,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:w,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:w,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},x,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return uf=g,uf}var ff,jg;function $0(){if(jg)return ff;jg=1;function s(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return ff=s,ff}var df,Bg;function Y0(){if(Bg)return df;Bg=1;function s(a){const r=a.regex,l=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],w=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],T=v,A=[...b,...m].filter(P=>!v.includes(P)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},k={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},I={match:r.concat(/\b/,r.either(...T),/\s*\(/),relevance:0,keywords:{built_in:T}};function L(P){return r.concat(/\b/,r.either(...P.map(ne=>ne.replace(/\s+/,"\\s+"))),/\b/)}const le={scope:"keyword",match:L(w),relevance:0};function K(P,{exceptions:ne,when:C}={}){const z=C;return ne=ne||[],P.map(X=>X.match(/\|\d+$/)||ne.includes(X)?X:z(X)?`${X}|0`:X)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:K(A,{when:P=>P.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:L(y)},le,I,x,u,d,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,l,k]}}return df=s,df}var hf,Ig;function F0(){if(Ig)return hf;Ig=1;function s(C){return C?typeof C=="string"?C:C.source:null}function a(C){return r("(?=",C,")")}function r(...C){return C.map(X=>s(X)).join("")}function l(C){const z=C[C.length-1];return typeof z=="object"&&z.constructor===Object?(C.splice(C.length-1,1),z):{}}function u(...C){return"("+(l(C).capture?"":"?:")+C.map(q=>s(q)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=C=>r(/\b/,C,/\w$/.test(C)?/\b/:/\B/),p=["Protocol","Type"].map(d),y=["init","self"].map(d),g=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],w=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],T=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),A=u(T,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),x=r(T,A,"*"),k=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),I=u(k,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),L=r(k,I,"*"),le=r(/[A-Z]/,I,"*"),K=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,L,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],P=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ne(C){const z={match:/\s+/,relevance:0},X=C.COMMENT("/\\*","\\*/",{contains:["self"]}),q=[C.C_LINE_COMMENT_MODE,X],de={match:[/\./,u(...p,...y)],className:{2:"keyword"}},he={match:r(/\./,u(...m)),relevance:0},_e=m.filter(Ie=>typeof Ie=="string").concat(["_|0"]),pe=m.filter(Ie=>typeof Ie!="string").concat(g).map(d),j={variants:[{className:"keyword",match:u(...pe,...y)}]},ae={$pattern:u(/\b\w+/,/#\w+/),keyword:_e.concat(_),literal:b},ce=[de,he,j],ve={match:r(/\./,u(...w)),relevance:0},Se={className:"built_in",match:r(/\b/,u(...w),/(?=\()/)},S=[ve,Se],D={match:/->/,relevance:0},H={className:"operator",relevance:0,variants:[{match:x},{match:`\\.(\\.|${A})+`}]},ue=[D,H],J="([0-9]_*)+",be="([0-9a-fA-F]_*)+",ge={className:"number",relevance:0,variants:[{match:`\\b(${J})(\\.(${J}))?([eE][+-]?(${J}))?\\b`},{match:`\\b0x(${be})(\\.(${be}))?([pP][+-]?(${J}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Le=(Ie="")=>({className:"subst",variants:[{match:r(/\\/,Ie,/[0\\tnr"']/)},{match:r(/\\/,Ie,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ze=(Ie="")=>({className:"subst",match:r(/\\/,Ie,/[\t ]*(?:[\r\n]|\r\n)/)}),$e=(Ie="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ie,/\(/),end:/\)/}),at=(Ie="")=>({begin:r(Ie,/"""/),end:r(/"""/,Ie),contains:[Le(Ie),ze(Ie),$e(Ie)]}),Ce=(Ie="")=>({begin:r(Ie,/"/),end:r(/"/,Ie),contains:[Le(Ie),$e(Ie)]}),Je={className:"string",variants:[at(),at("#"),at("##"),at("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},Ge=[C.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[C.BACKSLASH_ESCAPE]}],Xt={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ge},He=Ie=>{const dn=r(Ie,/\//),hn=r(/\//,Ie);return{begin:dn,end:hn,contains:[...Ge,{scope:"comment",begin:`#(?!.*${hn})`,end:/$/}]}},ct={scope:"regexp",variants:[He("###"),He("##"),He("#"),Xt]},wn={match:r(/`/,L,/`/)},Qt={className:"variable",match:/\$\d+/},Dt={className:"variable",match:`\\$${I}+`},Ln=[wn,Qt,Dt],sa={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:P,contains:[...ue,ge,Je]}]}},Qn={scope:"keyword",match:r(/@/,u(...K),a(u(/\(/,/\s+/)))},st={scope:"meta",match:r(/@/,L)},qt=[sa,Qn,st],ut={match:a(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,I,"+")},{className:"type",match:le,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(le)),relevance:0}]},cn={begin:/</,end:/>/,keywords:ae,contains:[...q,...ce,...qt,D,ut]};ut.contains.push(cn);const xn={match:r(L,/\s*:/),keywords:"_|0",relevance:0},An={begin:/\(/,end:/\)/,relevance:0,keywords:ae,contains:["self",xn,...q,ct,...ce,...S,...ue,ge,Je,...Ln,...qt,ut]},zn={begin:/</,end:/>/,keywords:"repeat each",contains:[...q,ut]},Un={begin:u(a(r(L,/\s*:/)),a(r(L,/\s+/,L,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:L}]},un={begin:/\(/,end:/\)/,keywords:ae,contains:[Un,...q,...ce,...ue,ge,Je,...qt,ut,An],endsParent:!0,illegal:/["']/},yn={match:[/(func|macro)/,/\s+/,u(wn.match,L,x)],className:{1:"keyword",3:"title.function"},contains:[zn,un,z],illegal:[/\[/,/%/]},Ut={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[zn,un,z],illegal:/\[|%/},fn={match:[/operator/,/\s+/,x],className:{1:"keyword",3:"title"}},jt={begin:[/precedencegroup/,/\s+/,le],className:{1:"keyword",3:"title"},contains:[ut],keywords:[...v,...b],end:/}/},ga={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},jn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Bn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,L,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ae,contains:[zn,...ce,{begin:/:/,end:/\{/,keywords:ae,contains:[{scope:"title.class.inherited",match:le},...ce],relevance:0}]};for(const Ie of Je.variants){const dn=Ie.contains.find(Gt=>Gt.label==="interpol");dn.keywords=ae;const hn=[...ce,...S,...ue,ge,Je,...Ln];dn.contains=[...hn,{begin:/\(/,end:/\)/,contains:["self",...hn]}]}return{name:"Swift",keywords:ae,contains:[...q,yn,Ut,ga,jn,Bn,fn,jt,{beginKeywords:"import",end:/$/,contains:[...q],relevance:0},ct,...ce,...S,...ue,ge,Je,...Ln,...qt,ut,An]}}return hf=ne,hf}var pf,Hg;function K0(){if(Hg)return pf;Hg=1;function s(a){const r="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},d={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,d]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),w={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},T={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},A={begin:/\{/,end:/\}/,contains:[T],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[T],illegal:"\\n",relevance:0},k=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+l},{className:"type",begin:"!<"+l+">"},{className:"type",begin:"!"+l},{className:"type",begin:"!!"+l},{className:"meta",begin:"&"+a.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+a.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},a.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},w,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},A,x,p,y],I=[...k];return I.pop(),I.push(g),T.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:k}}return pf=s,pf}var mf,qg;function P0(){if(qg)return mf;qg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,l,u);function g(b){const v=b.regex,_=(Le,{after:ze})=>{const $e="</"+Le[0].slice(1);return Le.input.indexOf($e,ze)!==-1},w=s,T={begin:"<>",end:"</>"},A=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Le,ze)=>{const $e=Le[0].length+Le.index,at=Le.input[$e];if(at==="<"||at===","){ze.ignoreMatch();return}at===">"&&(_(Le,{after:$e})||ze.ignoreMatch());let Ce;const Je=Le.input.substring($e);if(Ce=Je.match(/^\s*=/)){ze.ignoreMatch();return}if((Ce=Je.match(/^\s+extends\s+/))&&Ce.index===0){ze.ignoreMatch();return}}},k={$pattern:s,keyword:a,literal:r,built_in:y,"variable.language":p},I="[0-9](_?[0-9])*",L=`\\.(${I})`,le="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",K={className:"number",variants:[{begin:`(\\b(${le})((${L})|\\.)?|(${L}))[eE][+-]?(${I})\\b`},{begin:`\\b(${le})\\b((${L})\\b|\\.)?|(${L})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},P={className:"subst",begin:"\\$\\{",end:"\\}",keywords:k,contains:[]},ne={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"css"}},z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"graphql"}},X={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,P]},de={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:w+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},he=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ne,C,z,X,{match:/\$\d+/},K];P.contains=he.concat({begin:/\{/,end:/\}/,keywords:k,contains:["self"].concat(he)});const _e=[].concat(de,P.contains),pe=_e.concat([{begin:/(\s*)\(/,end:/\)/,keywords:k,contains:["self"].concat(_e)}]),j={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:pe},ae={variants:[{match:[/class/,/\s+/,w,/\s+/,/extends/,/\s+/,v.concat(w,"(",v.concat(/\./,w),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,w],scope:{1:"keyword",3:"title.class"}}]},ce={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},ve={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Se={variants:[{match:[/function/,/\s+/,w,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[j],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function D(Le){return v.concat("(?!",Le.join("|"),")")}const H={match:v.concat(/\b/,D([...d,"super","import","await"].map(Le=>`${Le}\\s*\\(`)),w,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},ue={begin:v.concat(/\./,v.lookahead(v.concat(w,/(?![0-9A-Za-z$_(])/))),end:w,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,w,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},j]},be="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",ge={match:[/const|var|let/,/\s+/,w,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(be)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[j]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:k,exports:{PARAMS_CONTAINS:pe,CLASS_REFERENCE:ce},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),ve,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ne,C,z,X,de,{match:/\$\d+/},K,ce,{scope:"attr",match:w+v.lookahead(":"),relevance:0},ge,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[de,b.REGEXP_MODE,{className:"function",begin:be,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:pe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:A},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},Se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[j,b.inherit(b.TITLE_MODE,{begin:w,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+w,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[j]},H,S,ae,J,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),w=s,T=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],A={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},x={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:T},contains:[_.exports.CLASS_REFERENCE]},k={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],L={$pattern:s,keyword:a.concat(I),literal:r,built_in:y.concat(T),"variable.language":p},le={className:"meta",begin:"@"+w},K=(z,X,q)=>{const de=z.contains.findIndex(he=>he.label===X);if(de===-1)throw new Error("can not find mode to replace");z.contains.splice(de,1,q)};Object.assign(_.keywords,L),_.exports.PARAMS_CONTAINS.push(le);const P=_.contains.find(z=>z.scope==="attr"),ne=Object.assign({},P,{match:v.concat(w,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,P,ne]),_.contains=_.contains.concat([le,A,x,ne]),K(_,"shebang",b.SHEBANG()),K(_,"use_strict",k);const C=_.contains.find(z=>z.label==="func.def");return C.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return mf=m,mf}var gf,Gg;function Z0(){if(Gg)return gf;Gg=1;function s(a){const r=a.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},d=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,d),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,d),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},_=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),w=a.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[l,u,m,b,v,_,w,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[w]}]}}return gf=s,gf}var bf,$g;function X0(){if($g)return bf;$g=1;function s(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=a.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],d={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,d,a.QUOTE_STRING_MODE,m,b,g]}}return bf=s,bf}var yf,Yg;function Q0(){if(Yg)return yf;Yg=1;var s=h0();return s.registerLanguage("xml",p0()),s.registerLanguage("bash",m0()),s.registerLanguage("c",g0()),s.registerLanguage("cpp",b0()),s.registerLanguage("csharp",y0()),s.registerLanguage("css",v0()),s.registerLanguage("markdown",E0()),s.registerLanguage("diff",_0()),s.registerLanguage("ruby",S0()),s.registerLanguage("go",N0()),s.registerLanguage("graphql",T0()),s.registerLanguage("ini",w0()),s.registerLanguage("java",x0()),s.registerLanguage("javascript",A0()),s.registerLanguage("json",R0()),s.registerLanguage("kotlin",O0()),s.registerLanguage("less",k0()),s.registerLanguage("lua",C0()),s.registerLanguage("makefile",M0()),s.registerLanguage("perl",D0()),s.registerLanguage("objectivec",L0()),s.registerLanguage("php",z0()),s.registerLanguage("php-template",U0()),s.registerLanguage("plaintext",j0()),s.registerLanguage("python",B0()),s.registerLanguage("python-repl",I0()),s.registerLanguage("r",H0()),s.registerLanguage("rust",q0()),s.registerLanguage("scss",G0()),s.registerLanguage("shell",$0()),s.registerLanguage("sql",Y0()),s.registerLanguage("swift",F0()),s.registerLanguage("yaml",K0()),s.registerLanguage("typescript",P0()),s.registerLanguage("vbnet",Z0()),s.registerLanguage("wasm",X0()),s.HighlightJS=s,s.default=s,yf=s,yf}var V0=Q0();const $b=Tb(V0),J0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},W0=2e5,Yb="http://www.w3.org/1999/xhtml";function eS(s){for(const a of s.querySelectorAll(".d2h-file-wrapper")){const r=tS(a.dataset.lang??"");if(r)for(const l of nS(a))Fg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Fg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function tS(s){const a=J0[s]??d0(s);return a==="plaintext"||!$b.getLanguage(a)?null:a}function nS(s){const a=[];let r=[];for(const l of s.querySelectorAll(".d2h-diff-tbody > tr")){const u=l.querySelector("td:last-child"),d=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!d){r.length&&a.push(r),r=[];continue}const p=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:p,ctn:d})}return r.length&&a.push(r),a}function Fg(s,a,r){if(s.filter(a).length===0)return;const u=s.map(p=>p.ctn.textContent??"").join(`
169
- `);if(!u.trim()||u.length>W0)return;const d=iS($b.highlight(u,{language:r,ignoreIllegals:!0}).value);s.forEach((p,y)=>{const g=d[y];g===void 0||!a(p)||aS(p.ctn,g)})}function aS(s,a){const r=sg(s);let l=a;if(r.length){const u=document.createElementNS(Yb,"div");u.innerHTML=a,l=u0(r,sg(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function iS(s){const a=document.createElementNS(Yb,"div");a.innerHTML=s;const r=[],l=[];let u="";const d=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
170
- `).forEach((m,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=lS(m)});return}const y=`<span class="${p.className}">`;u+=y,l.push(y),p.childNodes.forEach(d),l.pop(),u+="</span>"};return a.childNodes.forEach(d),r.push(u),r}function lS(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const sS={arrowRight:["M5 12h14","m12 5 7 7-7 7"],chevronLeft:["m15 6-6 6 6 6"],chevronRight:["m9 6 6 6-6 6"],skip:["m5 4 10 8-10 8V4Z","M19 5v14"],rerun:["M21 12a9 9 0 1 1-3-6.7","M21 4v5h-5"],zap:["M13 2 4 14h7l-1 8 9-12h-7Z"],comment:["M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"],check:["M20 6 9 17l-5-5"],edit:["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],drop:["M3 6h18","M8 6V4h8v2","M6 6l1 14h10l1-14"],plus:["M12 5v14","M5 12h14"],file:["M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z","M14 3v5h5"],send:["M22 2 11 13","M22 2 15 22l-4-9-9-4Z"],eye:["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"],download:["M12 3v12","m7 12 5 5 5-5","M5 21h14"],external:["M14 4h6v6","M20 4 10 14","M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"],settings:["M20 7h-9","M14 17H5"],down:["M12 5v13","m6 12 6 6 6-6"],up:["M12 19V6","m6 12 6-6 6 6"],bell:["M18 9a6 6 0 1 0-12 0c0 5-2 6-2 6h16s-2-1-2-6","M13.7 20a2 2 0 0 1-3.4 0"],bellOff:["M8.5 3.6A6 6 0 0 1 18 9c0 1.7.2 2.9.6 3.9","M16.5 17H4s2-1 2-6a6 6 0 0 1 .7-2.8","M13.7 20a2 2 0 0 1-3.4 0","m3 3 18 18"]},rS={approve:[{cx:12,cy:12,r:9}],changes:[{cx:12,cy:12,r:9}],eye:[{cx:12,cy:12,r:3}],settings:[{cx:17,cy:17,r:3},{cx:7,cy:7,r:3}]},oS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Fe({name:s,size:a=13}){const r=[...sS[s]??[],...oS[s]??[]];return f.jsxs("svg",{className:"icon",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(rS[s]??[]).map((l,u)=>f.jsx("circle",{cx:l.cx,cy:l.cy,r:l.r},u)),r.map((l,u)=>f.jsx("path",{d:l},u))]})}function cS({size:s=17}){return f.jsxs("svg",{className:"logo",width:s,height:s,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[f.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),f.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),f.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),f.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:s}){return f.jsx("span",{className:"key",children:s})}/*! @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 Kg(s,a){(a==null||a>s.length)&&(a=s.length);for(var r=0,l=Array(a);r<a;r++)l[r]=s[r];return l}function uS(s){if(Array.isArray(s))return s}function fS(s,a){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,d,p,y=[],g=!0,m=!1;try{if(d=(r=r.call(s)).next,a!==0)for(;!(g=(l=d.call(r)).done)&&(y.push(l.value),y.length!==a);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function dS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
171
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hS(s,a){return uS(s)||fS(s,a)||pS(s,a)||dS()}function pS(s,a){if(s){if(typeof s=="string")return Kg(s,a);var r={}.toString.call(s).slice(8,-1);return r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set"?Array.from(s):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kg(s,a):void 0}}const Fb=Object.entries,Pg=Object.setPrototypeOf,mS=Object.isFrozen,gS=Object.getPrototypeOf,bS=Object.getOwnPropertyDescriptor;let Nn=Object.freeze,Tn=Object.seal,Ul=Object.create,Kb=typeof Reflect<"u"&&Reflect,kf=Kb.apply,Cf=Kb.construct;Nn||(Nn=function(a){return a});Tn||(Tn=function(a){return a});kf||(kf=function(a,r){for(var l=arguments.length,u=new Array(l>2?l-2:0),d=2;d<l;d++)u[d-2]=arguments[d];return a.apply(r,u)});Cf||(Cf=function(a){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return new a(...l)});const Dl=ln(Array.prototype.forEach),yS=ln(Array.prototype.lastIndexOf),Zg=ln(Array.prototype.pop),Ll=ln(Array.prototype.push),vS=ln(Array.prototype.splice),Li=Array.isArray,js=ln(String.prototype.toLowerCase),vf=ln(String.prototype.toString),Xg=ln(String.prototype.match),Ls=ln(String.prototype.replace),Qg=ln(String.prototype.indexOf),ES=ln(String.prototype.trim),_S=ln(Number.prototype.toString),SS=ln(Boolean.prototype.toString),Vg=typeof BigInt>"u"?null:ln(BigInt.prototype.toString),Jg=typeof Symbol>"u"?null:ln(Symbol.prototype.toString),bn=ln(Object.prototype.hasOwnProperty),zs=ln(Object.prototype.toString),gn=ln(RegExp.prototype.test),Ji=NS(TypeError);function ln(s){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return kf(s,a,l)}}function NS(s){return function(){for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return Cf(s,r)}}function ot(s,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:js;if(Pg&&Pg(s,null),!Li(a))return s;let l=a.length;for(;l--;){let u=a[l];if(typeof u=="string"){const d=r(u);d!==u&&(mS(a)||(a[l]=d),u=d)}s[u]=!0}return s}function TS(s){for(let a=0;a<s.length;a++)bn(s,a)||(s[a]=null);return s}function Mn(s){const a=Ul(null);for(const l of Fb(s)){var r=hS(l,2);const u=r[0],d=r[1];bn(s,u)&&(Li(d)?a[u]=TS(d):d&&typeof d=="object"&&d.constructor===Object?a[u]=Mn(d):a[u]=d)}return a}function wS(s){switch(typeof s){case"string":return s;case"number":return _S(s);case"boolean":return SS(s);case"bigint":return Vg?Vg(s):"0";case"symbol":return Jg?Jg(s):"Symbol()";case"undefined":return zs(s);case"function":case"object":{if(s===null)return zs(s);const a=s,r=Sa(a,"toString");if(typeof r=="function"){const l=r(a);return typeof l=="string"?l:zs(l)}return zs(s)}default:return zs(s)}}function Sa(s,a){for(;s!==null;){const l=bS(s,a);if(l){if(l.get)return ln(l.get);if(typeof l.value=="function")return ln(l.value)}s=gS(s)}function r(){return null}return r}function xS(s){try{return gn(s,""),!0}catch{return!1}}const Wg=Nn(["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"]),Ef=Nn(["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"]),_f=Nn(["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"]),AS=Nn(["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"]),Sf=Nn(["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"]),RS=Nn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),eb=Nn(["#text"]),tb=Nn(["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"]),Nf=Nn(["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"]),nb=Nn(["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"]),eo=Nn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),OS=Tn(/{{[\w\W]*|^[\w\W]*}}/g),kS=Tn(/<%[\w\W]*|^[\w\W]*%>/g),CS=Tn(/\${[\w\W]*/g),MS=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),DS=Tn(/^aria-[\-\w]+$/),ab=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LS=Tn(/^(?:\w+script|data):/i),zS=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),US=Tn(/^html$/i),jS=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i),ib=Tn(/<[/\w!]/g),lb=Tn(/<[/\w]/g),BS=Tn(/<\/no(script|embed|frames)/i),IS=Tn(/\/>/i),la={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},HS=function(){return typeof window>"u"?null:window},qS=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(l=r.getAttribute(u));const d="dompurify"+(l?"#"+l:"");try{return a.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},sb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ci=function(a,r,l,u){return bn(a,r)&&Li(a[r])?ot(u.base?Mn(u.base):{},a[r],u.transform):l};function Pb(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:HS();const a=V=>Pb(V);if(a.version="3.4.13",a.removed=[],!s||!s.document||s.document.nodeType!==la.document||!s.Element)return a.isSupported=!1,a;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,p=s.Node,y=s.Element,g=s.NodeFilter,m=s.NamedNodeMap;m===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,v=s.trustedTypes,_=y.prototype,w=Sa(_,"cloneNode"),T=Sa(_,"remove"),A=Sa(_,"nextSibling"),x=Sa(_,"childNodes"),k=Sa(_,"parentNode"),I=Sa(_,"shadowRoot"),L=Sa(_,"attributes"),le=p&&p.prototype?Sa(p.prototype,"nodeType"):null,K=p&&p.prototype?Sa(p.prototype,"nodeName"):null,P=p&&p.prototype?Sa(p.prototype,"ownerDocument"):null;if(typeof d=="function"){const V=r.createElement("template");V.content&&V.content.ownerDocument&&(r=V.content.ownerDocument)}let ne,C="",z,X=!1,q=0;const de=function(){if(q>0)throw Ji('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.')},he=function(N){de(),q++;try{return ne.createHTML(N)}finally{q--}},_e=function(N){de(),q++;try{return ne.createScriptURL(N)}finally{q--}},pe=function(){return X||(z=qS(v,u),X=!0),z},j=r,ae=j.implementation,ce=j.createNodeIterator,ve=j.createDocumentFragment,Se=j.getElementsByTagName,S=l.importNode;let D=sb();a.isSupported=typeof Fb=="function"&&typeof k=="function"&&ae&&ae.createHTMLDocument!==void 0;const H=OS,ue=kS,J=CS,be=MS,ge=DS,Le=LS,ze=zS,$e=jS;let at=ab,Ce=null;const Je=ot({},[...Wg,...Ef,..._f,...Sf,...eb]);let Ge=null;const Xt=ot({},[...tb,...Nf,...nb,...eo]);let He=Object.seal(Ul(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}})),ct=null,wn=null;const Qt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Dt=!0,Ln=!0,sa=!1,Qn=!0,st=!1,qt=!0,ut=!1,cn=!1,xn=null,An=null,zn=!1,Un=!1,un=!1,yn=!1,Ut=!0,fn=!1;const jt="user-content-";let ga=!0,jn=!1,Bn={},Ie=null;const dn=ot({},["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 hn=null;const Gt=ot({},["audio","video","img","source","image","track"]);let O=null;const ee=ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",Me="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Qe=Ke,Ne=!1,Ee=null;const Ue=ot({},[me,Me,Ke],vf),Rt=Nn(["mi","mo","mn","ms","mtext"]);let bt=ot({},Rt);const In=Nn(["annotation-xml"]);let Vn=ot({},In);const ba=ot({},["title","style","font","a","script"]);let rn=null;const Ot=["application/xhtml+xml","text/html"],Y="text/html";let re=null,we=null;const mt=r.createElement("form"),Bt=function(N){return N instanceof RegExp||N instanceof Function},Rn=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(we&&we===N)return;(!N||typeof N!="object")&&(N={}),N=Mn(N),rn=Ot.indexOf(N.PARSER_MEDIA_TYPE)===-1?Y:N.PARSER_MEDIA_TYPE,re=rn==="application/xhtml+xml"?vf:js,Ce=Ci(N,"ALLOWED_TAGS",Je,{transform:re}),Ge=Ci(N,"ALLOWED_ATTR",Xt,{transform:re}),Ee=Ci(N,"ALLOWED_NAMESPACES",Ue,{transform:vf}),O=Ci(N,"ADD_URI_SAFE_ATTR",ee,{transform:re,base:ee}),hn=Ci(N,"ADD_DATA_URI_TAGS",Gt,{transform:re,base:Gt}),Ie=Ci(N,"FORBID_CONTENTS",dn,{transform:re}),ct=Ci(N,"FORBID_TAGS",Mn({}),{transform:re}),wn=Ci(N,"FORBID_ATTR",Mn({}),{transform:re}),Bn=bn(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Mn(N.USE_PROFILES):N.USE_PROFILES:!1,Dt=N.ALLOW_ARIA_ATTR!==!1,Ln=N.ALLOW_DATA_ATTR!==!1,sa=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Qn=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=N.SAFE_FOR_TEMPLATES||!1,qt=N.SAFE_FOR_XML!==!1,ut=N.WHOLE_DOCUMENT||!1,Un=N.RETURN_DOM||!1,un=N.RETURN_DOM_FRAGMENT||!1,yn=N.RETURN_TRUSTED_TYPE||!1,zn=N.FORCE_BODY||!1,Ut=N.SANITIZE_DOM!==!1,fn=N.SANITIZE_NAMED_PROPS||!1,ga=N.KEEP_CONTENT!==!1,jn=N.IN_PLACE||!1,at=xS(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:ab,Qe=typeof N.NAMESPACE=="string"?N.NAMESPACE:Ke,bt=bn(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(N.MATHML_TEXT_INTEGRATION_POINTS):ot({},Rt),Vn=bn(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?Mn(N.HTML_INTEGRATION_POINTS):ot({},In);const U=bn(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?Mn(N.CUSTOM_ELEMENT_HANDLING):Ul(null);if(He=Ul(null),bn(U,"tagNameCheck")&&Bt(U.tagNameCheck)&&(He.tagNameCheck=U.tagNameCheck),bn(U,"attributeNameCheck")&&Bt(U.attributeNameCheck)&&(He.attributeNameCheck=U.attributeNameCheck),bn(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(He.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),Tn(He),st&&(Ln=!1),un&&(Un=!0),Bn&&(Ce=ot({},eb),Ge=Ul(null),Bn.html===!0&&(ot(Ce,Wg),ot(Ge,tb)),Bn.svg===!0&&(ot(Ce,Ef),ot(Ge,Nf),ot(Ge,eo)),Bn.svgFilters===!0&&(ot(Ce,_f),ot(Ge,Nf),ot(Ge,eo)),Bn.mathMl===!0&&(ot(Ce,Sf),ot(Ge,nb),ot(Ge,eo))),Qt.tagCheck=null,Qt.attributeCheck=null,bn(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?Qt.tagCheck=N.ADD_TAGS:Li(N.ADD_TAGS)&&(Ce===Je&&(Ce=Mn(Ce)),ot(Ce,N.ADD_TAGS,re))),bn(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?Qt.attributeCheck=N.ADD_ATTR:Li(N.ADD_ATTR)&&(Ge===Xt&&(Ge=Mn(Ge)),ot(Ge,N.ADD_ATTR,re))),bn(N,"ADD_URI_SAFE_ATTR")&&Li(N.ADD_URI_SAFE_ATTR)&&ot(O,N.ADD_URI_SAFE_ATTR,re),bn(N,"FORBID_CONTENTS")&&Li(N.FORBID_CONTENTS)&&(Ie===dn&&(Ie=Mn(Ie)),ot(Ie,N.FORBID_CONTENTS,re)),bn(N,"ADD_FORBID_CONTENTS")&&Li(N.ADD_FORBID_CONTENTS)&&(Ie===dn&&(Ie=Mn(Ie)),ot(Ie,N.ADD_FORBID_CONTENTS,re)),ga&&(Ce["#text"]=!0),ut&&ot(Ce,["html","head","body"]),Ce.table&&(ot(Ce,["tbody"]),delete ct.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ji('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ji('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=ne;ne=N.TRUSTED_TYPES_POLICY;try{C=he("")}catch(Te){throw ne=W,Te}}else N.TRUSTED_TYPES_POLICY===null?(ne=void 0,C=""):(ne===void 0&&(ne=pe()),ne&&typeof C=="string"&&(C=he("")));Nn&&Nn(N),we=N},$t=ot({},[...Ef,..._f,...AS]),$n=ot({},[...Sf,...RS]),St=function(N,U,W){return U.namespaceURI===Ke?N==="svg":U.namespaceURI===me?N==="svg"&&(W==="annotation-xml"||bt[W]):!!$t[N]},On=function(N,U,W){return U.namespaceURI===Ke?N==="math":U.namespaceURI===Me?N==="math"&&Vn[W]:!!$n[N]},wa=function(N,U,W){return U.namespaceURI===Me&&!Vn[W]||U.namespaceURI===me&&!bt[W]?!1:!$n[N]&&(ba[N]||!$t[N])},xa=function(N){let U=k(N);(!U||!U.tagName)&&(U={namespaceURI:Qe,tagName:"template"});const W=js(N.tagName),Te=js(U.tagName);return Ee[N.namespaceURI]?N.namespaceURI===Me?St(W,U,Te):N.namespaceURI===me?On(W,U,Te):N.namespaceURI===Ke?wa(W,U,Te):!!(rn==="application/xhtml+xml"&&Ee[N.namespaceURI]):!1},vt=function(N){Ll(a.removed,{element:N});try{k(N).removeChild(N)}catch{if(T(N),!k(N))throw Ji("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ua=function(N){fe(N);const U=x(N);if(U){const Te=[];Dl(U,Ae=>{Ll(Te,Ae)}),Dl(Te,Ae=>{try{T(Ae)}catch{}})}const W=L(N);if(W)for(let Te=W.length-1;Te>=0;--Te){const Ae=W[Te],Be=Ae&&Ae.name;if(typeof Be=="string")try{N.removeAttribute(Be)}catch{}}},Hn=function(N,U){try{Ll(a.removed,{attribute:U.getAttributeNode(N),from:U})}catch{Ll(a.removed,{attribute:null,from:U})}if(U.removeAttribute(N),N==="is")if(Un||un)try{vt(U)}catch{}else try{U.setAttribute(N,"")}catch{}},ya=function(N){const U=L(N);if(U)for(let W=U.length-1;W>=0;--W){const Te=U[W],Ae=Te&&Te.name;if(!(typeof Ae!="string"||Ge[re(Ae)]))try{N.removeAttribute(Ae)}catch{}}},fe=function(N){const U=[N];for(;U.length>0;){const W=U.pop();(le?le(W):W.nodeType)===la.element&&ya(W);const Ae=x(W);if(Ae)for(let Be=Ae.length-1;Be>=0;--Be)U.push(Ae[Be])}},Oe=function(N){if(!qt)return;const U=[N];for(;U.length>0;){const W=U.pop(),Te=le?le(W):W.nodeType;if(Te===la.processingInstruction||Te===la.comment&&gn(lb,W.data)){try{T(W)}catch{}continue}if(Te===la.element){const Be=W,We=re(K?K(W):W.nodeName);try{Be.hasAttribute&&Be.hasAttribute("patchsrc")&&Be.removeAttribute("patchsrc"),Be.hasAttribute&&Be.hasAttribute("for")&&We!=="label"&&We!=="output"&&Be.removeAttribute("for")}catch{}}const Ae=x(W);if(Ae)for(let Be=Ae.length-1;Be>=0;--Be)U.push(Ae[Be])}},Pe=function(N){let U=null,W=null;if(zn)N="<remove></remove>"+N;else{const Be=Xg(N,/^[\r\n\t ]+/);W=Be&&Be[0]}rn==="application/xhtml+xml"&&Qe===Ke&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Te=ne?he(N):N;if(Qe===Ke)try{U=new b().parseFromString(Te,rn)}catch{}if(!U||!U.documentElement){U=ae.createDocument(Qe,"template",null);try{U.documentElement.innerHTML=Ne?C:Te}catch{}}const Ae=U.body||U.documentElement;return N&&W&&Ae.insertBefore(r.createTextNode(W),Ae.childNodes[0]||null),Qe===Ke?Se.call(U,ut?"html":"body")[0]:ut?U.documentElement:Ae},ft=function(N){const U=P?P(N):N.ownerDocument;return ce.call(U||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},kt=function(N){return N=Ls(N,H," "),N=Ls(N,ue," "),N=Ls(N,J," "),N},Vt=function(N){var U;N.normalize();const W=P?P(N):N.ownerDocument,Te=ce.call(W||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Ae=Te.nextNode();for(;Ae;)Ae.data=kt(Ae.data),Ae=Te.nextNode();const Be=(U=N.querySelectorAll)===null||U===void 0?void 0:U.call(N,"template");Be&&Dl(Be,We=>{Yt(We.content)&&Vt(We.content)})},pn=function(N){const U=K?K(N):null;return typeof U!="string"||re(U)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==L(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==le(N)||N.childNodes!==x(N)},Yt=function(N){if(!le||typeof N!="object"||N===null)return!1;try{return le(N)===la.documentFragment}catch{return!1}},dt=function(N){if(!le||typeof N!="object"||N===null)return!1;try{return typeof le(N)=="number"}catch{return!1}};function Lt(V,N,U){V.length!==0&&Dl(V,W=>{W.call(a,N,U,we)})}const nl=function(N,U){return!!(qt&&N.hasChildNodes()&&!dt(N.firstElementChild)&&gn(ib,N.textContent)&&gn(ib,N.innerHTML)||qt&&N.namespaceURI===Ke&&U==="style"&&dt(N.firstElementChild)||N.nodeType===la.processingInstruction||qt&&N.nodeType===la.comment&&gn(lb,N.data))},ii=function(N,U,W){if(!ct[U]&&si(U)&&(He.tagNameCheck instanceof RegExp&&gn(He.tagNameCheck,U)||He.tagNameCheck instanceof Function&&He.tagNameCheck(U)))return!1;if(ga&&!Ie[U]){const Te=k(N),Ae=x(N);if(Ae&&Te){const Be=Ae.length;for(let We=Be-1;We>=0;--We){const oe=N===W?w(Ae[We],!0):Ae[We];Te.insertBefore(oe,A(N))}}}return vt(N),!0},li=function(N,U,W,Te){return N.length===0?U:U===W||U===Te?Mn(U):U},ja=function(N,U){if(Lt(D.beforeSanitizeElements,N,null),N!==U&&k(N)===null)return jn&&fe(N),!0;if(pn(N))return vt(N),!0;const W=re(K?K(N):N.nodeName);if(Ce=li(D.uponSanitizeElement,Ce,Je,xn),Lt(D.uponSanitizeElement,N,{tagName:W,allowedTags:Ce}),N!==U&&k(N)===null)return jn&&fe(N),!0;if(nl(N,W))return vt(N),!0;if(ct[W]||!(Qt.tagCheck instanceof Function&&Qt.tagCheck(W))&&!Ce[W]){const Ae=ii(N,W,U);return Ae===!1&&Lt(D.afterSanitizeElements,N,null),Ae}if((le?le(N):N.nodeType)===la.element&&!xa(N)||(W==="noscript"||W==="noembed"||W==="noframes")&&gn(BS,N.innerHTML))return vt(N),!0;if(st&&N.nodeType===la.text){const Ae=kt(N.textContent);N.textContent!==Ae&&(Ll(a.removed,{element:N.cloneNode()}),N.textContent=Ae)}return Lt(D.afterSanitizeElements,N,null),!1},al=function(N,U,W){if(wn[U]||qt&&U==="patchsrc"||qt&&U==="for"&&N!=="label"&&N!=="output"||Ut&&(U==="id"||U==="name")&&(W in r||W in mt))return!1;const Te=Ge[U]||Qt.attributeCheck instanceof Function&&Qt.attributeCheck(U,N);if(!(Ln&&gn(be,U))){if(!(Dt&&gn(ge,U))){if(Te){if(!O[U]){if(!gn(at,Ls(W,ze,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&N!=="script"&&Qg(W,"data:")===0&&hn[N])){if(!(sa&&!gn(Le,Ls(W,ze,"")))){if(W)return!1}}}}}else if(!(si(N)&&(He.tagNameCheck instanceof RegExp&&gn(He.tagNameCheck,N)||He.tagNameCheck instanceof Function&&He.tagNameCheck(N))&&(He.attributeNameCheck instanceof RegExp&&gn(He.attributeNameCheck,U)||He.attributeNameCheck instanceof Function&&He.attributeNameCheck(U,N))||U==="is"&&He.allowCustomizedBuiltInElements&&(He.tagNameCheck instanceof RegExp&&gn(He.tagNameCheck,W)||He.tagNameCheck instanceof Function&&He.tagNameCheck(W))))return!1}}return!0},kn=ot({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),si=function(N){return!kn[js(N)]&&gn($e,N)},Ba=function(N,U,W,Te){if(ne&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!W)switch(v.getAttributeType(N,U)){case"TrustedHTML":return he(Te);case"TrustedScriptURL":return _e(Te)}return Te},ri=function(N,U,W,Te){try{W?N.setAttributeNS(W,U,Te):N.setAttribute(U,Te),pn(N)?vt(N):Zg(a.removed)}catch{Hn(U,N)}},Jt=function(N){Lt(D.beforeSanitizeAttributes,N,null);const U=N.attributes;if(!U||pn(N))return;Ge=li(D.uponSanitizeAttribute,Ge,Xt,An);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ge,forceKeepAttr:void 0};let Te=U.length;const Ae=re(N.nodeName);for(;Te--;){const Be=U[Te],We=Be.name,oe=Be.namespaceURI,ye=Be.value,ke=re(We),Xe=ye;let Ve=We==="value"?Xe:ES(Xe);if(W.attrName=ke,W.attrValue=Ve,W.keepAttr=!0,W.forceKeepAttr=void 0,Lt(D.uponSanitizeAttribute,N,W),Ve=W.attrValue,fn&&(ke==="id"||ke==="name")&&Qg(Ve,jt)!==0&&(Hn(We,N),Ve=jt+Ve),qt&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ve)){Hn(We,N);continue}if(ke==="attributename"&&Xg(Ve,"href")){Hn(We,N);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Hn(We,N);continue}if(!Qn&&gn(IS,Ve)){Hn(We,N);continue}if(st&&(Ve=kt(Ve)),!al(Ae,ke,Ve)){Hn(We,N);continue}Ve=Ba(Ae,ke,oe,Ve),Ve!==Xe&&ri(N,We,oe,Ve)}}Lt(D.afterSanitizeAttributes,N,null)},Ia=function(N){let U=null;const W=ft(N);for(Lt(D.beforeSanitizeShadowDOM,N,null);U=W.nextNode();)if(Lt(D.uponSanitizeShadowNode,U,null),ja(U,N),Jt(U),Yt(U.content)&&Ia(U.content),(le?le(U):U.nodeType)===la.element){const Ae=I(U);Yt(Ae)&&(Aa(Ae),Ia(Ae))}Lt(D.afterSanitizeShadowDOM,N,null)},Aa=function(N){const U=[{node:N,shadow:null}];for(;U.length>0;){const W=U.pop();if(W.shadow){Ia(W.shadow);continue}const Te=W.node,Be=(le?le(Te):Te.nodeType)===la.element,We=x(Te);if(We)for(let oe=We.length-1;oe>=0;--oe)U.push({node:We[oe],shadow:null});if(Be){const oe=K?K(Te):null;if(typeof oe=="string"&&re(oe)==="template"){const ye=Te.content;Yt(ye)&&U.push({node:ye,shadow:null})}}if(Be){const oe=I(Te);Yt(oe)&&U.push({node:null,shadow:oe},{node:oe,shadow:null})}}};return a.sanitize=function(V){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,W=null,Te=null,Ae=null;if(Ne=!V,Ne&&(V="<!-->"),typeof V!="string"&&!dt(V)&&(V=wS(V),typeof V!="string"))throw Ji("dirty is not a string, aborting");if(!a.isSupported)return V;cn?(Ce=xn,Ge=An):Rn(N),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(Ce=Mn(Ce)),D.uponSanitizeAttribute.length>0&&(Ge=Mn(Ge)),a.removed=[];const Be=jn&&typeof V!="string"&&dt(V);if(Be){Oe(V);const ye=K?K(V):V.nodeName;if(typeof ye=="string"){const ke=re(ye);if(!Ce[ke]||ct[ke])throw Ua(V),Ji("root node is forbidden and cannot be sanitized in-place")}if(pn(V))throw Ua(V),Ji("root node is clobbered and cannot be sanitized in-place");try{Aa(V)}catch(ke){throw Ua(V),ke}}else if(dt(V))U=Pe("<!---->"),W=U.ownerDocument.importNode(V,!0),W.nodeType===la.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?U=W:U.appendChild(W),Aa(W);else{if(!Un&&!st&&!ut&&V.indexOf("<")===-1)return ne&&yn?he(V):V;if(U=Pe(V),!U)return Un?null:yn?C:""}U&&zn&&vt(U.firstChild);const We=Be?V:U;try{const ye=ft(We);for(;Te=ye.nextNode();)ja(Te,We),Jt(Te),Yt(Te.content)&&Ia(Te.content)}catch(ye){throw Be&&(Ua(V),Dl(a.removed,ke=>{ke.element&&fe(ke.element)})),ye}if(Be)return Dl(a.removed,ye=>{ye.element&&fe(ye.element)}),st&&Vt(V),V;if(Un){if(st&&Vt(U),un)for(Ae=ve.call(U.ownerDocument);U.firstChild;)Ae.appendChild(U.firstChild);else Ae=U;return(Ge.shadowroot||Ge.shadowrootmode)&&(Ae=S.call(l,Ae,!0)),Ae}let oe=ut?U.outerHTML:U.innerHTML;return ut&&Ce["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&gn(US,U.ownerDocument.doctype.name)&&(oe="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
172
- `+oe),st&&(oe=kt(oe)),ne&&yn?he(oe):oe},a.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rn(V),cn=!0,xn=Ce,An=Ge},a.clearConfig=function(){we=null,cn=!1,xn=null,An=null,ne=z,C=""},a.isValidAttribute=function(V,N,U){we||Rn({});const W=re(V),Te=re(N);return al(W,Te,U)},a.addHook=function(V,N){typeof N=="function"&&bn(D,V)&&Ll(D[V],N)},a.removeHook=function(V,N){if(bn(D,V)){if(N!==void 0){const U=yS(D[V],N);return U===-1?void 0:vS(D[V],U,1)[0]}return Zg(D[V])}},a.removeHooks=function(V){bn(D,V)&&(D[V]=[])},a.removeAllHooks=function(){D=sb()},a}var GS=Pb();function Xf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var tl=Xf();function Zb(s){tl=s}var Wi={exec:()=>null};function zl(s){let a=[];return r=>{let l=Math.max(0,Math.min(3,r-1)),u=a[l];return u||(u=s(l),a[l]=u),u}}function nt(s,a=""){let r=typeof s=="string"?s:s.source,l={replace:(u,d)=>{let p=typeof d=="string"?d:d.source;return p=p.replace(Dn.caret,"$1"),r=r.replace(u,p),l},getRegex:()=>new RegExp(r,a)};return l}var $S=((s="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+s)}catch{return!1}})(),Dn={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:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:zl(s=>new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:zl(s=>new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:zl(s=>new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)),headingBeginRegex:zl(s=>new RegExp(`^ {0,${s}}#`)),htmlBeginRegex:zl(s=>new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:zl(s=>new RegExp(`^ {0,${s}}>`))},YS=/^(?:[ \t]*(?:\n|$))+/,FS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,KS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,PS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Qf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Xb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Qb=nt(Xb).replace(/bull/g,Qf).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(),ZS=nt(Xb).replace(/bull/g,Qf).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(),Vf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,XS=/^[^\n]+/,Jf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,QS=nt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Jf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),VS=nt(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Qf).getRegex(),bo="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]*?(?:-->|$))/,JS=nt("^ {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",bo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vb=s=>nt(Vf).replace("hr",Gs).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",s).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex(),WS=Vb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),eN=Vb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),tN=nt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eN).getRegex(),ed={blockquote:tN,code:FS,def:QS,fences:KS,heading:PS,hr:Gs,html:JS,lheading:Qb,list:VS,newline:YS,paragraph:WS,table:Wi,text:XS},rb=nt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gs).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",bo).getRegex(),nN={...ed,lheading:ZS,table:rb,paragraph:nt(Vf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rb).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",bo).getRegex()},aN={...ed,html:nt(`^ *(?: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:Wi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nt(Vf).replace("hr",Gs).replace("heading",` *#{1,6} *[^
173
- ]`).replace("lheading",Qb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},iN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,lN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Jb=/^( {2,}|\\)\n(?!\s*$)/,sN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ai=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,$s=/[^\s\p{P}\p{S}]/u,rN=nt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),oN=/[\p{Pi}\p{Ps}"']/u,Wb=/(?!~)[\p{P}\p{S}]/u,cN=/(?!~)[\s\p{P}\p{S}]/u,uN=/(?:[^\s\p{P}\p{S}]|~)/u,fN=nt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$S?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ey=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,dN=nt(ey,"u").replace(/punct/g,ai).getRegex(),hN=nt(ey,"u").replace(/punct/g,Wb).getRegex(),pN=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,mN=nt(pN,"u").replace(/openQuote/g,oN).replace(/punct/g,ai).getRegex(),ty="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",gN=nt(ty,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),bN=nt(ty,"gu").replace(/notPunctSpace/g,uN).replace(/punctSpace/g,cN).replace(/punct/g,Wb).getRegex(),yN="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",vN=nt(yN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),EN=nt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),_N="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",SN=nt(_N,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),NN=nt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ai).getRegex(),TN="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",wN=nt(TN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),xN=nt(/\\(punct)/,"gu").replace(/punct/g,ai).getRegex(),AN=nt(/^<(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(),RN=nt(Wf).replace("(?:-->|$)","-->").getRegex(),ON=nt("^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",RN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),uo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,kN=nt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",uo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ny=nt(/^!?\[(label)\]\[(ref)\]/).replace("label",uo).replace("ref",Jf).getRegex(),ay=nt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Jf).getRegex(),CN=nt("reflink|nolink(?!\\()","g").replace("reflink",ny).replace("nolink",ay).getRegex(),ob=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,td={_backpedal:Wi,anyPunctuation:xN,autolink:AN,blockSkip:fN,br:Jb,code:lN,del:Wi,delLDelim:Wi,delRDelim:Wi,emStrongLDelim:dN,emStrongRDelimAst:gN,emStrongRDelimUnd:EN,escape:iN,link:kN,nolink:ay,punctuation:rN,reflink:ny,reflinkSearch:CN,tag:ON,text:sN,url:Wi},MN={...td,emStrongLDelim:mN,emStrongRDelimAst:vN,emStrongRDelimUnd:SN,link:nt(/^!?\[(label)\]\((.*?)\)/).replace("label",uo).getRegex(),reflink:nt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",uo).getRegex()},Mf={...td,emStrongRDelimAst:bN,emStrongLDelim:hN,delLDelim:NN,delRDelim:wN,url:nt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ob).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:nt(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ob).getRegex()},DN={...Mf,br:nt(Jb).replace("{2,}","*").getRegex(),text:nt(Mf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:ed,gfm:nN,pedantic:aN},Us={normal:td,gfm:Mf,breaks:DN,pedantic:MN},LN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cb=s=>LN[s];function Da(s,a){if(a){if(Dn.escapeTest.test(s))return s.replace(Dn.escapeReplace,cb)}else if(Dn.escapeTestNoEncode.test(s))return s.replace(Dn.escapeReplaceNoEncode,cb);return s}function ub(s){try{s=encodeURI(s).replace(Dn.percentDecode,"%")}catch{return null}return s}function fb(s,a){var d;let r=s.replace(Dn.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),l=r.split(Dn.splitPipe),u=0;if(l[0].trim()||l.shift(),l.length>0&&!((d=l.at(-1))!=null&&d.trim())&&l.pop(),a)if(l.length>a)l.splice(a);else for(;l.length<a;)l.push("");for(;u<l.length;u++)l[u]=l[u].trim().replace(Dn.slashPipe,"|");return l}function Mi(s,a,r){let l=s.length;if(l===0)return"";let u=0;for(;u<l&&s.charAt(l-u-1)===a;)u++;return s.slice(0,l-u)}function db(s){let a=s.split(`
174
- `),r=a.length-1;for(;r>=0&&Dn.blankLine.test(a[r]);)r--;return a.length-r<=2?s:a.slice(0,r+1).join(`
175
- `)}function zN(s,a){if(s.indexOf(a[1])===-1)return-1;let r=0;for(let l=0;l<s.length;l++)if(s[l]==="\\")l++;else if(s[l]===a[0])r++;else if(s[l]===a[1]&&(r--,r<0))return l;return r>0?-2:-1}function UN(s,a=0){let r=a,l="";for(let u of s)if(u===" "){let d=4-r%4;l+=" ".repeat(d),r+=d}else l+=u,r++;return l}function hb(s,a,r,l,u){let d=a.href,p=a.title||null,y=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let g={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:d,title:p,text:y,tokens:l.inlineTokens(y)};return l.state.inLink=!1,g}function jN(s,a,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return a;let u=l[1];return a.split(`
176
- `).map(d=>{let p=d.match(r.other.beginningSpace);if(p===null)return d;let[y]=p;return y.length>=u.length?d.slice(u.length):d}).join(`
177
- `)}var fo=class{constructor(s){xt(this,"options");xt(this,"rules");xt(this,"lexer");this.options=s||tl}space(s){let a=this.rules.block.newline.exec(s);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(s){let a=this.rules.block.code.exec(s);if(a){let r=this.options.pedantic?a[0]:db(a[0]),l=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:l}}}fences(s){let a=this.rules.block.fences.exec(s);if(a){let r=a[0],l=jN(r,a[3]||"",this.rules);return{type:"code",raw:r,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:l}}}heading(s){let a=this.rules.block.heading.exec(s);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let l=Mi(r,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(r=l.trim())}return{type:"heading",raw:Mi(a[0],`
178
- `),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(s){let a=this.rules.block.hr.exec(s);if(a)return{type:"hr",raw:Mi(a[0],`
179
- `)}}blockquote(s){let a=this.rules.block.blockquote.exec(s);if(a){let r=Mi(a[0],`
180
- `).split(`
181
- `),l="",u="",d=[];for(;r.length>0;){let p=!1,y=[],g;for(g=0;g<r.length;g++)if(this.rules.other.blockquoteStart.test(r[g]))y.push(r[g]),p=!0;else if(!p)y.push(r[g]);else break;r=r.slice(g);let m=y.join(`
182
- `),b=m.replace(this.rules.other.blockquoteSetextReplace,`
183
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
184
- ${m}`:m,u=u?`${u}
185
- ${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,d,!0),this.lexer.state.top=v,r.length===0)break;let _=d.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){let w=_,T=r.join(`
186
- `),A=w.raw+`
187
- `+T.replace(this.rules.other.blockquoteSetextReplace2,""),x=this.blockquote(A);d[d.length-1]=x,l=`${l}
188
- ${T}`,u=u.substring(0,u.length-w.text.length)+x.text;break}else if((_==null?void 0:_.type)==="list"){let w=_,T=w.raw+`
189
- `+r.join(`
190
- `),A=this.list(T);d[d.length-1]=A,l=l.substring(0,l.length-_.raw.length)+A.raw,u=u.substring(0,u.length-w.raw.length)+A.raw,r=T.substring(d.at(-1).raw.length).split(`
191
- `);continue}}return{type:"blockquote",raw:l,tokens:d,text:u}}}list(s){let a=this.rules.block.list.exec(s);if(a){let r=a[1].trim(),l=r.length>1,u={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");let d=this.rules.other.listItemRegex(r),p=!1;for(;s;){let g=!1,m="",b="";if(!(a=d.exec(s))||this.rules.block.hr.test(s))break;m=a[0],s=s.substring(m.length);let v=UN(a[2].split(`
192
- `,1)[0],a[1].length),_=s.split(`
193
- `,1)[0],w=!v.trim(),T=0;if(this.options.pedantic?(T=2,b=v.trimStart()):w?T=a[1].length+1:(T=v.search(this.rules.other.nonSpaceChar),T=T>4?1:T,b=v.slice(T),T+=a[1].length),w&&this.rules.other.blankLine.test(_)&&(m+=_+`
194
- `,s=s.substring(_.length+1),g=!0),!g){let A=this.rules.other.nextBulletRegex(T),x=this.rules.other.hrRegex(T),k=this.rules.other.fencesBeginRegex(T),I=this.rules.other.headingBeginRegex(T),L=this.rules.other.htmlBeginRegex(T),le=this.rules.other.blockquoteBeginRegex(T);for(;s;){let K=s.split(`
195
- `,1)[0],P;if(_=K,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),P=_):P=_.replace(this.rules.other.tabCharGlobal," "),k.test(_)||I.test(_)||L.test(_)||le.test(_)||A.test(_)||x.test(_))break;if(P.search(this.rules.other.nonSpaceChar)>=T||!_.trim())b+=`
196
- `+P.slice(T);else{if(w||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(v)||I.test(v)||x.test(v))break;b+=`
197
- `+_}w=!_.trim(),m+=K+`
198
- `,s=s.substring(K.length+1),v=P.slice(T)}}u.loose||(p?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(p=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let g of u.items)if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),!u.loose){let m=g.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let g of u.items){let m=g.tokens[0];if(g.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(g.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};g.checked=v.checked,u.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=v.raw+g.tokens[0].raw,g.tokens[0].text=v.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(v)):g.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):g.tokens.unshift(v)}}else g.task&&(g.task=!1)}if(u.loose)for(let g of u.items){g.loose=!0;for(let m of g.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(s){let a=this.rules.block.html.exec(s);if(a){let r=db(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(s){let a=this.rules.block.def.exec(s);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:r,raw:Mi(a[0],`
199
- `),href:l,title:u}}}table(s){var p;let a=this.rules.block.table.exec(s);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=fb(a[1]),l=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=a[3])!=null&&p.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
200
- `):[],d={type:"table",raw:Mi(a[0],`
201
- `),header:[],align:[],rows:[]};if(r.length===l.length){for(let y of l)this.rules.other.tableAlignRight.test(y)?d.align.push("right"):this.rules.other.tableAlignCenter.test(y)?d.align.push("center"):this.rules.other.tableAlignLeft.test(y)?d.align.push("left"):d.align.push(null);for(let y=0;y<r.length;y++)d.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:d.align[y]});for(let y of u)d.rows.push(fb(y,d.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:d.align[m]})));return d}}lheading(s){let a=this.rules.block.lheading.exec(s);if(a){let r=a[1].trim();return{type:"heading",raw:Mi(a[0],`
202
- `),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(s){let a=this.rules.block.paragraph.exec(s);if(a){let r=a[1].charAt(a[1].length-1)===`
203
- `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let a=this.rules.block.text.exec(s);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(s){let a=this.rules.inline.escape.exec(s);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(s){let a=this.rules.inline.tag.exec(s);if(a)return!this.lexer.state.inLink&&this.rules.other.startATag.test(a[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(a[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(a[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(a[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:a[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:a[0]}}link(s){let a=this.rules.inline.link.exec(s);if(a){let r=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let d=Mi(r.slice(0,-1),"\\");if((r.length-d.length)%2===0)return}else{let d=zN(a[2],"()");if(d===-2)return;if(d>-1){let p=(a[0].indexOf("!")===0?5:4)+a[1].length+d;a[2]=a[2].substring(0,d),a[0]=a[0].substring(0,p).trim(),a[3]=""}}let l=a[2],u="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(l);d&&(l=d[1],u=d[3])}else u=a[3]?a[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?l=l.slice(1):l=l.slice(1,-1)),hb(a,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(s,a){let r;if((r=this.rules.inline.reflink.exec(s))||(r=this.rules.inline.nolink.exec(s))){let l=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[l.toLowerCase()];if(!u){let d=r[0].charAt(0);return{type:"text",raw:d,text:d}}return hb(r,u,r[0],this.lexer,this.rules)}}emStrong(s,a,r=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,p,y=u,g=0,m=l[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*s.length+u);(l=v.exec(a))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d)continue;if(p=[...d].length,l[3]||l[4]){y+=p;continue}else if(l[5]||l[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let _=[...l[0]][0].length,w=s.slice(0,u+l.index+_+p);if(Math.min(u,p)%2){let A=w.slice(1,-1);return{type:"em",raw:w,text:A,tokens:this.lexer.inlineTokens(A)}}let T=w.slice(2,-2);return{type:"strong",raw:w,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(s){let a=this.rules.inline.code.exec(s);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return l&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(s){let a=this.rules.inline.br.exec(s);if(a)return{type:"br",raw:a[0]}}del(s,a,r=""){let l=this.rules.inline.delLDelim.exec(s);if(l&&(!l[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*s.length+u);(l=g.exec(a))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d||(p=[...d].length,p!==u))continue;if(l[3]||l[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...l[0]][0].length,b=s.slice(0,u+l.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(s){let a=this.rules.inline.autolink.exec(s);if(a){let r,l;return a[2]==="@"?(r=a[1],l="mailto:"+r):(r=a[1],l=r),{type:"link",raw:a[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(s){var r;let a;if(a=this.rules.inline.url.exec(s)){let l,u;if(a[2]==="@")l=a[0],u="mailto:"+l;else{let d;do d=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(d!==a[0]);l=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:l,href:u,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(s){let a=this.rules.inline.text.exec(s);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Na=class Df{constructor(a){xt(this,"tokens");xt(this,"options");xt(this,"state");xt(this,"inlineQueue");xt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||tl,this.options.tokenizer=this.options.tokenizer||new fo,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 r={other:Dn,block:to.normal,inline:Us.normal};this.options.pedantic?(r.block=to.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=to.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:to,inline:Us}}static lex(a,r){return new Df(r).lex(a)}static lexInline(a,r){return new Df(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
204
- `),this.blockTokens(a,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let l=this.inlineQueue[r];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,r=[],l=!1){var d,p,y;this.tokenizer.lexer=this,this.options.pedantic&&(a=a.replace(Dn.tabCharGlobal," ").replace(Dn.spaceLine,""));let u=1/0;for(;a;){if(a.length<u)u=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}let g;if((p=(d=this.options.extensions)==null?void 0:d.block)!=null&&p.some(b=>(g=b.call({lexer:this},a,r))?(a=a.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(a)){a=a.substring(g.raw.length);let b=r.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
205
- `:r.push(g);continue}if(g=this.tokenizer.code(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
206
- `)?"":`
207
- `)+g.raw,b.text+=`
208
- `+g.text,this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(g=this.tokenizer.fences(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.heading(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.hr(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.blockquote(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.list(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.html(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.def(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
209
- `)?"":`
210
- `)+g.raw,b.text+=`
211
- `+g.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title},r.push(g));continue}if(g=this.tokenizer.table(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.lheading(a)){a=a.substring(g.raw.length),r.push(g);continue}let m=a;if((y=this.options.extensions)!=null&&y.startBlock){let b=1/0,v=a.slice(1),_;this.options.extensions.startBlock.forEach(w=>{_=w.call({lexer:this},v),typeof _=="number"&&_>=0&&(b=Math.min(b,_))}),b<1/0&&b>=0&&(m=a.substring(0,b+1))}if(this.state.top&&(g=this.tokenizer.paragraph(m))){let b=r.at(-1);l&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
212
- `)?"":`
213
- `)+g.raw,b.text+=`
214
- `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g),l=m.length!==a.length,a=a.substring(g.raw.length);continue}if(g=this.tokenizer.text(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
215
- `)?"":`
216
- `)+g.raw,b.text+=`
217
- `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return this.state.top=!0,r}inline(a,r=[]){return this.inlineQueue.push({src:a,tokens:r}),r}inlineTokens(a,r=[]){var y,g,m,b,v;this.tokenizer.lexer=this;let l=a;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(l=l.replace(this.tokenizer.rules.inline.reflinkSearch,w=>_.includes(w.slice(w.lastIndexOf("[")+1,-1))?"["+"a".repeat(w.length-2)+"]":w))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(_,w,T)=>{let A=T?T.length:0;return _.slice(0,A)+"["+"a".repeat(_.length-A-2)+"]"}),l=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},l))??l;let u=!1,d="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(d=""),u=!1;let _;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(T=>(_=T.call({lexer:this},a,r))?(a=a.substring(_.raw.length),r.push(_),!0):!1))continue;if(_=this.tokenizer.escape(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.tag(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.link(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(_.raw.length);let T=r.at(-1);_.type==="text"&&(T==null?void 0:T.type)==="text"?(T.raw+=_.raw,T.text+=_.text):r.push(_);continue}if(_=this.tokenizer.emStrong(a,l,d)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(a,l,d)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(a)){a=a.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(a))){a=a.substring(_.raw.length),r.push(_);continue}let w=a;if((v=this.options.extensions)!=null&&v.startInline){let T=1/0,A=a.slice(1),x;this.options.extensions.startInline.forEach(k=>{x=k.call({lexer:this},A),typeof x=="number"&&x>=0&&(T=Math.min(T,x))}),T<1/0&&T>=0&&(w=a.substring(0,T+1))}if(_=this.tokenizer.inlineText(w)){a=a.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(d=_.raw.slice(-1)),u=!0;let T=r.at(-1);(T==null?void 0:T.type)==="text"?(T.raw+=_.raw,T.text+=_.text):r.push(_);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return r}infiniteLoopError(a){let r="Infinite loop on byte: "+a;if(this.options.silent)console.error(r);else throw new Error(r)}},ho=class{constructor(s){xt(this,"options");xt(this,"parser");this.options=s||tl}space(s){return""}code({text:s,lang:a,escaped:r}){var d;let l=(d=(a||"").match(Dn.notSpaceStart))==null?void 0:d[0],u=s.replace(Dn.endingNewline,"")+`
218
- `;return l?'<pre><code class="language-'+Da(l)+'">'+(r?u:Da(u,!0))+`</code></pre>
219
- `:"<pre><code>"+(r?u:Da(u,!0))+`</code></pre>
220
- `}blockquote({tokens:s}){return`<blockquote>
221
- ${this.parser.parse(s)}</blockquote>
222
- `}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:a}){return`<h${a}>${this.parser.parseInline(s)}</h${a}>
223
- `}hr(s){return`<hr>
224
- `}list(s){let a=s.ordered,r=s.start,l="";for(let p=0;p<s.items.length;p++){let y=s.items[p];l+=this.listitem(y)}let u=a?"ol":"ul",d=a&&r!==1?' start="'+r+'"':"";return"<"+u+d+`>
225
- `+l+"</"+u+`>
226
- `}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
227
- `}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
228
- `}table(s){let a="",r="";for(let u=0;u<s.header.length;u++)r+=this.tablecell(s.header[u]);a+=this.tablerow({text:r});let l="";for(let u=0;u<s.rows.length;u++){let d=s.rows[u];r="";for(let p=0;p<d.length;p++)r+=this.tablecell(d[p]);l+=this.tablerow({text:r})}return l&&(l=`<tbody>${l}</tbody>`),`<table>
229
- <thead>
230
- `+a+`</thead>
231
- `+l+`</table>
232
- `}tablerow({text:s}){return`<tr>
233
- ${s}</tr>
234
- `}tablecell(s){let a=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+a+`</${r}>
235
- `}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${Da(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:a,tokens:r}){let l=this.parser.parseInline(r),u=ub(s);if(u===null)return l;s=u;let d='<a href="'+s+'"';return a&&(d+=' title="'+Da(a)+'"'),d+=">"+l+"</a>",d}image({href:s,title:a,text:r,tokens:l}){l&&(r=this.parser.parseInline(l,this.parser.textRenderer));let u=ub(s);if(u===null)return Da(r);s=u;let d=`<img src="${s}" alt="${Da(r)}"`;return a&&(d+=` title="${Da(a)}"`),d+=">",d}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Da(s.text)}},nd=class{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}checkbox({raw:s}){return s}},Ta=class Lf{constructor(a){xt(this,"options");xt(this,"renderer");xt(this,"textRenderer");this.options=a||tl,this.options.renderer=this.options.renderer||new ho,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new nd}static parse(a,r){return new Lf(r).parse(a)}static parseInline(a,r){return new Lf(r).parseInline(a)}parse(a){var l,u;this.renderer.parser=this;let r="";for(let d=0;d<a.length;d++){let p=a[d];if((u=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&u[p.type]){let g=p,m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(g.type)){r+=m||"";continue}}let y=p;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let g='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(a,r=this.renderer){var u,d;this.renderer.parser=this;let l="";for(let p=0;p<a.length;p++){let y=a[p];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[y.type]){let m=this.options.extensions.renderers[y.type].call({parser:this},y);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){l+=m||"";continue}}let g=y;switch(g.type){case"escape":{l+=r.text(g);break}case"html":{l+=r.html(g);break}case"link":{l+=r.link(g);break}case"image":{l+=r.image(g);break}case"checkbox":{l+=r.checkbox(g);break}case"strong":{l+=r.strong(g);break}case"em":{l+=r.em(g);break}case"codespan":{l+=r.codespan(g);break}case"br":{l+=r.br(g);break}case"del":{l+=r.del(g);break}case"text":{l+=r.text(g);break}default:{let m='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return l}},ao,Bs=(ao=class{constructor(s){xt(this,"options");xt(this,"block");this.options=s||tl}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?Na.lex:Na.lexInline}provideParser(s=this.block){return s?Ta.parse:Ta.parseInline}},xt(ao,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),xt(ao,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ao),BN=class{constructor(...s){xt(this,"defaults",Xf());xt(this,"options",this.setOptions);xt(this,"parse",this.parseMarkdown(!0));xt(this,"parseInline",this.parseMarkdown(!1));xt(this,"Parser",Ta);xt(this,"Renderer",ho);xt(this,"TextRenderer",nd);xt(this,"Lexer",Na);xt(this,"Tokenizer",fo);xt(this,"Hooks",Bs);this.use(...s)}walkTokens(s,a){var l,u;let r=[];for(let d of s)switch(r=r.concat(a.call(this,d)),d.type){case"table":{let p=d;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let p=d;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=d;(u=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,a)))}}return r}use(...s){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(r=>{let l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let d=a.renderers[u.name];d?a.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=d.apply(this,p)),y}:a.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let d=a[u.level];d?d.unshift(u.tokenizer):a[u.level]=[u.tokenizer],u.start&&(u.level==="block"?a.startBlock?a.startBlock.push(u.start):a.startBlock=[u.start]:u.level==="inline"&&(a.startInline?a.startInline.push(u.start):a.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(a.childTokens[u.name]=u.childTokens)}),l.extensions=a),r.renderer){let u=this.defaults.renderer||new ho(this.defaults);for(let d in r.renderer){if(!(d in u))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;let p=d,y=r.renderer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new fo(this.defaults);for(let d in r.tokenizer){if(!(d in u))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;let p=d,y=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Bs;for(let d in r.hooks){if(!(d in u))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let p=d,y=r.hooks[p],g=u[p];Bs.passThroughHooks.has(d)?u[p]=m=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(d))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;l.walkTokens=function(p){let y=[];return y.push(d.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,a){return Na.lex(s,a??this.defaults)}parser(s,a){return Ta.parse(s,a??this.defaults)}parseMarkdown(s){return(a,r)=>{let l={...r},u={...this.defaults,...l},d=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&l.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=s),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(s):s?Na.lex:Na.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(s):s?Ta.parse:Ta.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(d);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(s):s?Na.lex:Na.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(s):s?Ta.parse:Ta.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return d(p)}}}onError(s,a){return r=>{if(r.message+=`
236
- Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(l):l}if(a)return Promise.reject(r);throw r}}},el=new BN;function yt(s,a){return el.parse(s,a)}yt.options=yt.setOptions=function(s){return el.setOptions(s),yt.defaults=el.defaults,Zb(yt.defaults),yt};yt.getDefaults=Xf;yt.defaults=tl;function IN(...s){return el.use(...s),yt.defaults=el.defaults,Zb(yt.defaults),yt}yt.use=IN;yt.walkTokens=function(s,a){return el.walkTokens(s,a)};yt.parseInline=el.parseInline;yt.Parser=Ta;yt.parser=Ta.parse;yt.Renderer=ho;yt.TextRenderer=nd;yt.Lexer=Na;yt.lexer=Na.lex;yt.Tokenizer=fo;yt.Hooks=Bs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;Ta.parse;Na.lex;yt.setOptions({gfm:!0,breaks:!1});function ad(s){const a=yt.parse(s??"",{async:!1});return GS.sanitize(a)}function zi({text:s,className:a}){const r=Z.useMemo(()=>ad(s),[s]);return s!=null&&s.trim()?f.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const HN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function qN(s){return s.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>HN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function GN(s,a){return qN(a)!==s.replace(/\s+/g," ").trim()}function Ys({text:s,className:a}){const r=Z.useMemo(()=>s!=null&&s.trim()?ad(s):"",[s]);return!r||!GN(s,r)?null:f.jsxs("div",{className:"md-preview",children:[f.jsx("div",{className:"lab",children:"preview"}),f.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const $N=/\.(md|markdown)$/i;function id(s){return $N.test(s)}function YN(s){return/^new file mode /m.test(s)||/^--- \/dev\/null$/m.test(s)}function FN(s){const a=[];let r=0,l=!1;const u=s.split(`
237
- `);for(let d=0;d<u.length;d++){const p=u[d],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),l=!0;continue}l&&(p===""&&d===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(a.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return a}const no=s=>(s.match(/\n/g)??[]).length;function ld(s){const a=FN(s),r=YN(s),l=[];let u=[];const d=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
238
- `)+`
239
- `;let m=p;for(const b of yt.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=no(v);continue}const w=v.length-v.trimStart().length,T=m+no(v.slice(0,w)),A=T+no(_.slice(w));let x=!1;for(let k=T;k<=A&&!x;k++)x=y.has(k);l.push({kind:"block",raw:_.slice(w),from:T,to:A,changed:x}),m+=no(v)}u=[]};for(const p of a){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;d(),l.push({kind:"gap",lines:g})}u.push(p)}return d(),{items:l,isNew:r,lines:a.length}}const zf="cerber.stickyChapters";function KN(s){return s!=="off"}function PN(){try{return KN(localStorage.getItem(zf))}catch{return!0}}function iy(){const[s,a]=Z.useState(PN);return[s,l=>{try{l?localStorage.removeItem(zf):localStorage.setItem(zf,"off")}catch{}a(l)}]}function lo(s){const a=s.alreadyRaised;return!a||a.decision==="send"?"post":a.decision==="reply"?a.where.kind==="thread"?"reply":"hold":a.where.kind==="thread"&&a.where.state==="resolved"?"post":"hold"}const pb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},ZN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function XN(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function ly(s,a){const r=y_(s);return a.filter(l=>{var u;return!l.drifted&&l.line!=null&&((u=r.get(l.path))==null?void 0:u.has(l.line))})}function mb(s,a){const r=d=>{const p=Number((d??"").trim());return Number.isInteger(p)&&p>0?p:null},l=r(a);if(l!=null)return{line:l,side:"new"};const u=r(s);return u!=null?{line:u,side:"old"}:null}function sy(s){const a=s.comments.filter(y=>y.status==="dropped"),r=s.comments.filter(y=>y.status!=="dropped"),l=r.filter(y=>lo(y)==="reply"),u=r.filter(y=>lo(y)==="hold"),d=r.filter(y=>lo(y)==="post"),p=ly(s.diff,d);return{inline:p,folded:d.filter(y=>!p.includes(y)),dropped:a,replies:l,held:u}}function QN(s,a){const r=s.alreadyRaised;if(!r)return null;if(s.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const l=lo(s);return a?l==="reply"?"the reply in their thread did not post":l==="hold"?"left out of the review":"posted as a comment of its own":l==="reply"?"replies in their thread when you send":l==="hold"?"left out of Send":r.decision==="send"?"posts as a comment of its own":"posts — their thread was resolved, and the problem is still here"}function VN(s){return s.where.kind==="thread"?`${s.where.state} thread`:"review"}function Tf(s){const a=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${Mb[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function JN(s){if(!s.comments.some(l=>l.severity!=null))return null;const r=s.comments.filter(l=>l.status!=="dropped"&&l.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function WN(s){if(!s.verdict||!s.comments.some(u=>u.severity!=null))return null;const r=s.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,l=s.verdict.recommendation;return l==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:l==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function Uf(s){const{inline:a,folded:r,replies:l,held:u}=sy(s),d=[l.length>0?`${l.length} ${l.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[eT(s,a,r),...d].join(" · ")}function eT(s,a,r){if(s.bodyOverride!=null)return`${a.length===0?"no inline comments":`${a.length} inline`} · body you wrote`;if(a.length===0&&r.length===0)return"no inline comments · body only";const l=[`${a.length} inline`];return r.length>0&&l.push(`${r.length} folded into the body`),l.join(" · ")}const gb={approve:"approve",comment:"comment",request_changes:"changes"},tT={approve:"approve",comment:"comment",request_changes:"changes"};function nT(s,a){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":a}function ry(s,a=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>ry(s,a-1))}function aT(s){const a=s,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function bb(s,a){const r=document.createElement("tr");r.className=a;const l=document.createElement("td");l.colSpan=2;const u=document.createElement("div");return l.appendChild(u),r.appendChild(l),s.after(r),{tr:r,holder:u}}function oy({pick:s,chatBusy:a,onAdd:r,onAsk:l,onClose:u}){const[d,p]=Z.useState(""),y=Z.useRef(null);Z.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=d.trim();return f.jsxs("div",{className:"line-composer",children:[f.jsxs("div",{className:"line-composer-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,":",s.line]}),s.side==="old"&&f.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),f.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:d,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),f.jsx(Ys,{className:"comment-body",text:d}),f.jsxs("div",{className:"line-composer-actions",children:[f.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[f.jsx(Fe,{name:"plus"}),"add comment",f.jsx(za,{children:"⌘↵"})]}),f.jsxs("button",{className:"btn btn-accent",disabled:!g||a,title:a?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>l(g),children:[f.jsx(Fe,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function iT({patch:s,comments:a,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:y}){const g=Z.useMemo(()=>s.trim()?p_(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),m=Z.useMemo(()=>ni(s).map(z=>z.path),[s]),b=Z.useMemo(()=>new Set(ni(s).filter(z=>id(z.path)&&ld(z.patch).lines>0).map(z=>z.path)),[s]),v=Z.useMemo(()=>a.map(z=>`${z.id}@${z.path}:${z.line}`).join("|"),[a]),_=Z.useRef(null),w=Z.useRef(y);w.current=y;const[T,A]=Z.useState([]),[x,k]=Z.useState([]),[I,L]=Z.useState(null),[le,K]=Z.useState(null);Z.useEffect(()=>{var j,ae;const z=_.current;if(!z)return;z.innerHTML=g,eS(z);const X=new Map,q=[];z.querySelectorAll(".d2h-file-wrapper").forEach((ce,ve)=>{var D,H,ue,J;const Se=(H=(D=ce.querySelector(".d2h-file-name"))==null?void 0:D.textContent)==null?void 0:H.trim(),S=Se&&m.includes(Se)?Se:m[ve];if(Se&&X.set(Se,ce),S){X.set(S,ce),ce.dataset.path=S;const be=document.createElement("div");if(be.className="file-comments",(ue=ce.querySelector(".d2h-file-header"))==null||ue.after(be),q.push({path:S,el:be}),b.has(S)){const ge=document.createElement("button");ge.type="button",ge.className="btn btn-sm md-read-toggle",ge.dataset.readPath=S,ge.textContent="read as a document",ge.title="Render this markdown instead of showing it line by line",(J=ce.querySelector(".d2h-file-header"))==null||J.appendChild(ge)}}});const de=[],he=new Map;for(const ce of a){if(ce.line==null)continue;const ve=X.get(ce.path);if(!ve)continue;const Se=Array.from(ve.querySelectorAll(".d2h-diff-tbody > tr")).find(D=>{var H,ue;return((ue=(H=D.querySelector(".line-num2"))==null?void 0:H.textContent)==null?void 0:ue.trim())===String(ce.line)});if(!Se)continue;const S=bb(he.get(Se)??Se,"inline-comment-row");he.set(Se,S.tr),de.push({id:ce.id,el:S.holder})}A(de),k(q);const _e=ce=>{const ve=ce.target.closest(".md-read-toggle");if(ve!=null&&ve.dataset.readPath){w.current(ve.dataset.readPath);return}const Se=ce.target.closest(".line-add");if(!Se)return;const{path:S,line:D,side:H}=Se.dataset;!S||!D||L({path:S,line:Number(D),side:H==="old"?"old":"new"})};z.addEventListener("click",_e);const pe=()=>z.removeEventListener("click",_e);if(l)return L(null),K(null),pe;for(const ce of z.querySelectorAll(".d2h-file-wrapper")){const ve=ce.dataset.path;if(ve)for(const Se of ce.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const S=mb((j=Se.querySelector(".line-num1"))==null?void 0:j.textContent,(ae=Se.querySelector(".line-num2"))==null?void 0:ae.textContent);if(!S)continue;const D=document.createElement("button");D.type="button",D.className="line-add";const H=`Say something about ${ve}:${S.line}`;D.title=H,D.setAttribute("aria-label",H),D.tabIndex=-1,D.dataset.path=ve,D.dataset.line=String(S.line),D.dataset.side=S.side,Se.appendChild(D)}}return K(null),pe},[g,v,m,b,l]),Z.useEffect(()=>{const z=_.current;if(!z||!I||l){K(null);return}const X=Array.from(z.querySelectorAll(".d2h-file-wrapper")).find(he=>he.dataset.path===I.path),q=Array.from((X==null?void 0:X.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(he=>{var j,ae;const _e=he.querySelector(".d2h-code-linenumber"),pe=mb((j=_e==null?void 0:_e.querySelector(".line-num1"))==null?void 0:j.textContent,(ae=_e==null?void 0:_e.querySelector(".line-num2"))==null?void 0:ae.textContent);return(pe==null?void 0:pe.line)===I.line&&pe.side===I.side});if(!q){L(null);return}const de=bb(q,"line-composer-row");return K(de.holder),()=>de.tr.remove()},[I,T,l]);const P=a.filter(z=>!T.some(X=>X.id===z.id)),ne=x.map(z=>({...z,comments:P.filter(X=>X.path===z.path)})).filter(z=>z.comments.length>0),C=P.filter(z=>!x.some(X=>X.path===z.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:_}),T.map(({id:z,el:X})=>{const q=a.find(de=>de.id===z);return q?Ru.createPortal(r(q),X,z):null}),ne.map(({path:z,el:X,comments:q})=>Ru.createPortal(f.jsx(f.Fragment,{children:q.map(r)}),X,`file:${z}`)),I&&le&&Ru.createPortal(f.jsx(oy,{pick:I,chatBusy:u,onAdd:z=>{d(I,z),L(null)},onAsk:z=>{p(I,z),L(null)},onClose:()=>L(null)}),le,`pick-${I.path}-${I.side}-${I.line}`),C.map(z=>r(z))]})}function lT({block:s,path:a,changed:r,readOnly:l,onPick:u}){const d=Z.useMemo(()=>ad(s.raw),[s.raw]),p=`Say something about ${a}:${s.from}`;return f.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!l&&f.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:f.jsx(Fe,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function sT({path:s,doc:a,comments:r,renderComment:l,readOnly:u,chatBusy:d,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g}){const[m,b]=Z.useState(null),v=Z.useMemo(()=>{const _=new Map,w=a.items.flatMap((A,x)=>A.kind==="block"?[{item:A,i:x}]:[]),T=[];for(const A of r){const x=A.line==null?void 0:w.filter(k=>k.item.from<=A.line).pop()??w[0];if(!x){T.push(A);continue}_.set(x.i,[..._.get(x.i)??[],A])}return{at:_,rest:T}},[a,r]);return f.jsxs("div",{className:"md-file",children:[f.jsxs("div",{className:"md-file-head",children:[f.jsx(Fe,{name:"file"}),f.jsx("span",{className:"md-file-name",children:s}),a.isNew?f.jsx("span",{className:"tag tag-added",children:"new file"}):f.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"})]}),v.rest.length>0&&f.jsx("div",{className:"file-comments",children:v.rest.map(l)}),a.items.map((_,w)=>f.jsxs(Z.Fragment,{children:[_.kind==="gap"?f.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",_.lines.toLocaleString()," line",_.lines===1?"":"s"," the diff skips"]}):f.jsx(lT,{block:_,path:s,changed:_.changed&&!a.isNew,readOnly:u,onPick:()=>b({path:s,line:_.from,side:"new"})}),(v.at.get(w)??[]).map(l),_.kind==="block"&&(m==null?void 0:m.line)===_.from&&f.jsx(oy,{pick:m,chatBusy:d,onAdd:T=>{p(m,T),b(null)},onAsk:T=>{y(m,T),b(null)},onClose:()=>b(null)})]},w))]})}function rT({patch:s,comments:a,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p}){const y=Z.useMemo(()=>s.trim()?ni(s):[],[s]),g=Z.useMemo(()=>new Map(y.filter(A=>id(A.path)).map(A=>[A.path,ld(A.patch)]).filter(([,A])=>A.lines>0)),[y]),[m,b]=Z.useState({}),v=A=>{var x;return m[A]??((x=g.get(A))==null?void 0:x.isNew)??!1},_=[];for(const A of y){const x=_[_.length-1];if(g.has(A.path)&&v(A.path)){_.push({kind:"read",paths:[A.path],patch:A.patch});continue}(x==null?void 0:x.kind)==="diff"?(x.paths.push(A.path),x.patch+=`
240
- ${A.patch}`):_.push({kind:"diff",paths:[A.path],patch:A.patch})}if(y.length===0)return f.jsx("p",{className:"muted",children:"No diff for this chapter."});const w=new Set(y.map(A=>A.path)),T=A=>a.filter(x=>A(x.path));return f.jsxs(f.Fragment,{children:[_.map(A=>{const x=new Set(A.paths);if(A.kind==="read"){const k=A.paths[0];return f.jsx(sT,{path:k,doc:g.get(k),comments:T(I=>I===k),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onShowDiff:()=>b(I=>({...I,[k]:!1}))},`read:${k}`)}return f.jsx(iT,{patch:A.patch,comments:T(k=>x.has(k)),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:k=>b(I=>({...I,[k]:!0}))},`diff:${A.paths[0]}`)}),T(A=>!w.has(A)).map(r)]})}function oT({check:s,raised:a,held:r,replies:l}){if(!s)return null;const u=[r>0&&`${r} left out`,l>0&&`${l} as replies`].filter(Boolean),d=a>0?f.jsxs("div",{className:"warn",title:"Findings another reviewer already raised on the PR — each card says who, and what Send does with it.",children:[a," already raised",u.length>0?` · ${u.join(" · ")}`:""]}):null;return s.checkingSince?f.jsxs(f.Fragment,{children:[d,f.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):s.error?f.jsxs(f.Fragment,{children:[d,f.jsx("div",{className:"warn",title:s.error,children:"couldn't check what others already raised"})]}):d||(s.remarks.length>0?f.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function cT({comment:s,readOnly:a,onDecide:r}){var y;const l=s.alreadyRaised;if(!l)return null;const u=QN(s,a),d=l.where.kind==="thread",p=!a&&s.status!=="dropped";return f.jsxs("div",{className:"raised",children:[f.jsxs("div",{className:"raised-head",children:[f.jsxs("span",{className:"tag tag-raised",children:[f.jsx(Fe,{name:"comment"}),"already raised by @",l.by," · ",VN(l)]}),l.url&&f.jsxs("a",{href:l.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",f.jsx(Fe,{name:"external"})]}),f.jsx("span",{className:"grow"}),p&&f.jsxs(f.Fragment,{children:[d&&f.jsx("button",{className:`btn btn-sm${l.decision==="reply"?" btn-keep-on":""}`,title:"Send posts this as a reply in their thread instead of a new comment — for when it adds something",onClick:()=>r(l.decision==="reply"?null:"reply"),children:"reply in their thread"}),f.jsx("button",{className:`btn btn-sm${l.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(l.decision==="send"?null:"send"),children:"send anyway"})]})]}),f.jsxs("p",{className:"raised-reason",children:[l.reason,u&&f.jsxs("span",{className:"raised-fate",children:[" — ",(y=l.replied)!=null&&y.url?f.jsx("a",{href:l.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function cy({comment:s,onUpdate:a,onDelete:r,onDiscuss:l,readOnly:u,flash:d}){const[p,y]=Z.useState(!1),[g,m]=Z.useState(s.body),b=s.status==="approved",v=s.status==="dropped",_=s.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return f.jsxs("div",{id:`c-${s.id}`,className:`comment comment-${s.status}${d?" comment-flash":""}`,children:[f.jsxs("div",{className:"comment-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,s.line!=null?`:${s.line}`:""]}),f.jsx("span",{className:`tag tag-${s.origin==="user"?"yours":_}`,children:_}),s.drifted?f.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):s.line==null&&f.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!s.drifted&&s.originalLine!=null&&s.originalLine!==s.line&&f.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",s.originalLine]}),f.jsx("span",{className:"grow"}),!u&&(p?f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),f.jsx("button",{className:"btn btn-sm",onClick:()=>{m(s.body),y(!1)},children:"cancel"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>a({status:b?"draft":"approved"}),children:[f.jsx(Fe,{name:"check"}),"keep"]}),f.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[f.jsx(Fe,{name:"edit"}),"edit"]}),f.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[f.jsx(Fe,{name:"drop"}),v?"dropped":"drop"]}),l&&f.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:l,children:[f.jsx(Fe,{name:"comment"}),"discuss"]}),s.origin==="user"&&f.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),f.jsx(cT,{comment:s,readOnly:u,onDecide:w=>a({raisedDecision:w})}),p?f.jsxs(f.Fragment,{children:[f.jsx("textarea",{className:"comment-edit",value:g,onChange:w=>m(w.target.value),rows:Math.max(3,g.split(`
241
- `).length)}),f.jsx(Ys,{className:"comment-body",text:ng(g,s.severity??null)})]}):f.jsx(zi,{className:"comment-body prose",text:ng(s.body,s.severity??null)})]})}function uT({files:s,chapterId:a,onAdd:r}){const[l,u]=Z.useState(!1),[d,p]=Z.useState(s[0]??""),[y,g]=Z.useState(""),[m,b]=Z.useState("");return l?f.jsxs("div",{className:"add-comment",children:[f.jsxs("div",{className:"add-comment-row",children:[f.jsx("select",{value:d,onChange:v=>p(v.target.value),children:s.map(v=>f.jsx("option",{value:v,children:v},v))}),f.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),f.jsx(Ys,{className:"comment-body",text:m}),f.jsxs("div",{className:"add-comment-row",children:[f.jsx("button",{className:"btn",disabled:!m.trim()||!d,onClick:()=>{r({path:d,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),f.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):f.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[f.jsx(Fe,{name:"plus"}),"add a comment of your own"]})}const fT=2e3;function dT({chapter:s,n:a,diff:r,comments:l,open:u,heavy:d,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:w,anchorRef:T,flash:A,sticky:x,stuck:k}){const[I,L]=Z.useState(!1);Z.useEffect(()=>{k||L(!1)},[k]);const le=x&&k&&u,K=Z.useRef(null),P=()=>{p(),le&&requestAnimationFrame(()=>{var he;return(he=K.current)==null?void 0:he.scrollIntoView({block:"start"})})},ne=Z.useMemo(()=>m_(r,s.files),[r,s.files]),C=Z.useMemo(()=>ly(ne,l),[ne,l]),z=Z.useMemo(()=>new Set(ni(ne).map(he=>he.path)),[ne]),X=l.filter(he=>!C.includes(he)&&!z.has(he.path)),q=l.filter(he=>C.includes(he)||z.has(he.path)),de=he=>f.jsx(cy,{comment:he,onUpdate:_e=>y(he.id,_e),onDelete:()=>g(he.id),onDiscuss:b&&(()=>b({target:"comment",id:he.id})),readOnly:w,flash:A===he.id},he.id);return f.jsxs("section",{className:`chapter${x?" chapter-sticky":""}`,ref:he=>{K.current=he,T(he)},children:[f.jsxs("header",{className:`chapter-head${x?" chapter-head-sticky":""}${le?" chapter-head-stuck":""}`,onClick:P,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[a," · ",s.title]}),f.jsxs("span",{className:"faint chapter-meta",children:[s.files.length," file",s.files.length===1?"":"s",l.length>0?` · ${l.length} comment${l.length===1?"":"s"}`:" · no comments",d!=null&&!u&&f.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${d.toLocaleString()} lines to draw, folded to keep the page quick`})]}),f.jsx("span",{className:"grow"}),x&&u&&f.jsx("button",{className:`btn btn-sm${le?"":" chapter-about-idle"}`,"aria-expanded":I,onClick:he=>{he.stopPropagation(),L(_e=>!_e)},children:I?"hide explanation":"what this chapter is about"}),b&&f.jsxs("button",{className:"btn btn-sm",onClick:he=>{he.stopPropagation(),b({target:"chapter",id:s.id})},children:[f.jsx(Fe,{name:"comment"}),"discuss"]}),le&&I&&f.jsx("div",{className:"chapter-head-about",onClick:he=>he.stopPropagation(),children:f.jsx(zi,{className:"prose",text:s.explanation})})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(zi,{className:"prose chapter-explanation",text:s.explanation}),X.map(de),f.jsx(rT,{patch:ne,comments:q,renderComment:de,readOnly:w,chatBusy:_,onAddLineComment:(he,_e)=>m({path:he.path,line:he.side==="new"?he.line:null,body:_e,chapterId:s.id}),onAskAboutLine:v}),!w&&s.files.length>0&&f.jsx(uT,{files:s.files,chapterId:s.id,onAdd:m})]})]})}function hT(s,a){switch(s.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${s.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(l=>l.id===s.chapterId);return`rewrote the "${(r==null?void 0:r.title)??s.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(l=>l.id===s.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(l=>l.id===s.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${s.path}:${s.line??"file"}`}}function jf(s,a){var l;if(s.target==="summary")return"the summary";if(s.target==="verdict")return"the verdict";if(s.target==="chapter")return((l=a.chapters.find(u=>u.id===s.id))==null?void 0:l.title)??"a chapter";if(s.target==="line")return s.path==null||s.line==null?"a line of the diff":`${s.path}:${s.line}${s.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function pT({turn:s,artifact:a}){return f.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[f.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&f.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>f.jsx("span",{className:"chat-ref",children:jf(r,a)},l))}),f.jsx(zi,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",hT(r,a)]},l)),s.refused.map((r,l)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function mT({artifact:s,reviewKey:a,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=Z.useState(""),[v,_]=Z.useState(!1),[w,T]=Z.useState(null),A=s.chat??[],x=s.pendingChat??null,k=x!=null&&x.error==null,I=v||k,L=(K,P,ne)=>{!K||I||(_(!0),T(null),Af(a,{message:K,refs:P}).then(C=>{d(C),ne==null||ne()}).catch(C=>T(String(C.message??C))).finally(()=>_(!1)))},le=()=>L(m.trim(),r,()=>{b(""),l()});return f.jsxs("section",{className:"card chat-panel",ref:g,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"talk to the reviewer"}),f.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),f.jsxs("div",{className:"card-body",children:[(A.length>0||x)&&f.jsxs("div",{className:"chat-log",children:[A.map(K=>f.jsx(pT,{turn:K,artifact:s},K.id)),x&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),x.refs.length>0&&f.jsx("div",{className:"chat-refs",children:x.refs.map((K,P)=>f.jsx("span",{className:"chat-ref",children:jf(K,s)},P))}),f.jsx(zi,{className:"chat-turn-body prose",text:x.message}),x.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",x.error,!p&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>L(x.message,x.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>Q_(a).then(d).catch(K=>T(String(K.message??K))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:x.progress.length>0?f.jsx("ol",{className:"chat-progress",children:x.progress.map((K,P)=>f.jsx("li",{className:P===x.progress.length-1?"now":void 0,children:K},P))}):"Thinking… it re-reads the code before answering."})]})]}),p?f.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):f.jsxs(f.Fragment,{children:[r.length>0&&f.jsxs("div",{className:"chat-refs chat-refs-pending",children:[f.jsx("span",{className:"faint",children:"about:"}),r.map((K,P)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(P),title:"Remove",children:[jf(K,s)," ✕"]},P))]}),f.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,disabled:v,placeholder:A.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:K=>b(K.target.value),onKeyDown:K=>{K.key==="Enter"&&(K.metaKey||K.ctrlKey)&&le()}}),f.jsx(Ys,{className:"chat-turn-body",text:m}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:le,disabled:I||m.trim()==="",children:[f.jsx(Fe,{name:"send"}),k?"waiting for the answer…":v?"sending…":"send message",f.jsx(za,{children:"⌘↵"})]}),f.jsx("span",{className:"grow"}),s.preChat&&f.jsx("button",{className:"btn btn-sm",disabled:I,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),V_(a).then(d).catch(K=>T(String(K.message??K))).finally(()=>_(!1))},children:"reset the review"})]})]}),w&&f.jsx("div",{className:"error",children:w})]})]})}function uy(s){const a=Z.useRef(null),r=Z.useCallback(()=>{const l=a.current;l&&(l.style.height="auto",l.style.height=`${Math.min(l.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return Z.useEffect(r,[s,r]),Z.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function gT({initial:s,onSave:a,onCancel:r}){const[l,u]=Z.useState(s),[d,p]=Z.useState(!1),[y,g]=Z.useState(null),m=uy(l),b=()=>{d||(p(!0),g(null),a(l).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return f.jsxs("div",{className:"body-edit-wrap",children:[f.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:l,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!d&&r()}}),f.jsx(Ys,{className:"body-md",text:l}),y&&f.jsx("p",{className:"error",children:y}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:d,children:[d?"saving…":"save this body",f.jsx(za,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:r,disabled:d,children:"cancel"}),f.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const bT=s=>s?`@${s} — handing this review over to you.`:"";function yT({artifact:s,reviewKey:a,onConfirm:r,onCancel:l}){const[u]=Z.useState(Gb),[d,p]=Z.useState(""),[y,g]=Z.useState(""),[m,b]=Z.useState(!1),[v,_]=Z.useState(!1),[w,T]=Z.useState(null),[A,x]=Z.useState(null),[k,I]=Z.useState(null),[L,le]=Z.useState(!1),[K,P]=Z.useState(null),[ne,C]=Z.useState(null),[z,X]=Z.useState(!1),[q,de]=Z.useState(-1),he=uy(y),_e=Z.useRef(null),pe=Rf(d),j=qb(pe),ae=!s.sent&&(s.summary!==""||s.comments.length>0),ce=L?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(J=>[J.title,J.explanation]),s.comments.map(J=>{var be,ge;return[J.path,J.line,J.body,J.severity,J.status,J.drifted,(be=J.alreadyRaised)==null?void 0:be.decision,(ge=J.alreadyRaised)==null?void 0:ge.where]})]):"";Z.useEffect(()=>{if(!L)return;let J=!1;return C(null),P(null),Bb(a,"COMMENT").then(be=>!J&&P(be)).catch(be=>{J||(P(null),C(String((be==null?void 0:be.message)??be)))}),()=>{J=!0}},[L,a,ce]);const ve=!L||K!=null;Z.useEffect(()=>{var J;q<0||(J=document.getElementById(`handoff-option-${q}`))==null||J.scrollIntoView({block:"nearest"})},[q]);const Se=Z.useMemo(()=>o0(A??[],u),[A,u]),S=Z.useMemo(()=>c0(Se,d),[Se,d]);Z.useEffect(()=>{let J=!1;return e0(a).then(be=>!J&&x(be.logins)).catch(be=>!J&&I(String((be==null?void 0:be.message)??be))),()=>{J=!0}},[a]);const D=J=>{p(J),m||g(bT(Rf(J)))},H=J=>{D(J),X(!1),de(-1)};Z.useLayoutEffect(()=>{var J;(J=_e.current)==null||J.showModal()},[]);const ue=()=>{v||!j||!ve||(_(!0),T(null),r(pe,y.trim(),L).catch(J=>{T(String((J==null?void 0:J.message)??J)),_(!1)}))};return f.jsx("dialog",{className:"handoff-dialog",ref:_e,"aria-label":`Hand off ${s.id}`,onCancel:J=>{J.preventDefault(),v||l()},onClick:J=>{J.target===_e.current&&!v&&l()},children:f.jsxs("div",{className:"handoff-body",children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"hand off"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:s.id})]}),f.jsxs("div",{className:"handoff-who",children:[f.jsx("span",{className:"handoff-at",children:"@"}),f.jsxs("div",{className:"handoff-combo",children:[f.jsx("input",{className:"handoff-login",autoFocus:!0,value:d,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":z&&S.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":q>=0?`handoff-option-${q}`:void 0,onFocus:()=>X(!0),onBlur:()=>X(!1),onChange:J=>{D(J.target.value),X(!0),de(0)},onKeyDown:J=>{const be=z&&S.length>0;if(J.key==="ArrowDown"||J.key==="ArrowUp"){if(J.preventDefault(),!be)return X(!0);const ge=J.key==="ArrowDown"?1:-1;de(Le=>(Le+ge+S.length)%S.length);return}if(J.key==="Enter"){const ge=be&&q>=0?S[q]:void 0;ge&&ge.login.toLowerCase()!==pe.toLowerCase()?H(ge.login):ue();return}J.key==="Escape"&&be&&(J.preventDefault(),X(!1),de(-1))}}),z&&S.length>0&&f.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:S.map((J,be)=>f.jsxs("li",{id:`handoff-option-${be}`,role:"option","aria-selected":be===q,className:be===q?"on":void 0,onMouseEnter:()=>de(be),onMouseDown:ge=>{ge.preventDefault(),H(J.login)},children:[f.jsxs("span",{className:"handoff-option-login",children:["@",J.login]}),J.recent&&f.jsx("span",{className:"faint",children:"handed to before"})]},J.login))})]})]}),k&&f.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),f.jsx("textarea",{ref:he,className:"body-edit",rows:2,value:y,onChange:J=>{b(!0),g(J.target.value)},onKeyDown:J=>{J.key==="Enter"&&(J.metaKey||J.ctrlKey)&&(J.preventDefault(),ue())}}),f.jsxs("div",{className:"body-source",children:[f.jsx("span",{className:"faint",children:y.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),y.trim()!==""&&f.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),ae&&f.jsxs("div",{className:"handoff-with-review",children:[f.jsxs("label",{children:[f.jsx("input",{type:"checkbox",checked:L,disabled:v,onChange:J=>le(J.target.checked)}),f.jsxs("span",{children:["also post the review — ",f.jsx("span",{className:"faint",children:Uf(s)})]})]}),L&&f.jsxs(f.Fragment,{children:[f.jsxs("p",{className:"faint",children:["Posts as a ",f.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",j?pe:"them","'s to make. The findings keep their grades."]}),ne?f.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",ne]}):K?f.jsx("pre",{className:"body-preview",children:K.body}):f.jsx("p",{className:"faint",children:"building the body…"})]})]}),w&&f.jsx("p",{className:"error",children:w}),f.jsxs("p",{className:"faint handoff-says",children:[j?f.jsxs(f.Fragment,{children:["@",pe]}):"They"," will be asked for this review and you will be taken off it."," ",L?"This row goes under sent, with the review on the PR.":s.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:ue,disabled:v||!j||!ve,children:[f.jsx(Fe,{name:"arrowRight"}),v?"handing over…":j?`hand off to @${pe}`:"hand off",f.jsx(za,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:l,disabled:v,children:"cancel"})]})]})})}function vT({artifact:s,reviewKey:a,event:r,sending:l,checking:u,onSend:d,error:p,footer:y,next:g,onAdvance:m,onBody:b,anchorRef:v}){const[_,w]=Z.useState(null),[T,A]=Z.useState(null),[x,k]=Z.useState(s.bodyOverride!=null),[I,L]=Z.useState(!1),le=s.bodyOverride!=null;Z.useEffect(()=>{le&&k(!0)},[le]);const K=x&&!I?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(P=>[P.title,P.explanation]),s.comments.map(P=>{var ne,C;return[P.path,P.line,P.body,P.severity,P.status,P.drifted,(ne=P.alreadyRaised)==null?void 0:ne.decision,(C=P.alreadyRaised)==null?void 0:C.where]})]):"";return Z.useEffect(()=>{if(!x||I)return;let P=!1;return w(null),A(null),Bb(a,r).then(ne=>{P||(w(ne),A(null))}).catch(ne=>{P||A(String(ne))}),()=>{P=!0}},[a,r,K,x,I]),s.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:v,children:[f.jsxs("strong",{children:["✔ sent as ",pb[s.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",Uf(s),s.sent.auto?" · auto-sent by the daemon":""]}),f.jsx("span",{className:"grow"}),s.sent.url&&f.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",f.jsx(Fe,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:m,children:[g?`next review: ${g.pr.repo}#${g.pr.number}`:"back to the queue",f.jsx(Fe,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:y})]}):f.jsxs("div",{className:"send-panel",ref:v,children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"send to github"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:Uf(s)}),f.jsxs("button",{className:"link",onClick:()=>k(!x),disabled:I,title:I?"save or cancel the body you are writing first":void 0,children:[f.jsx(Fe,{name:"eye"}),x?"hide what gets posted":"see what gets posted"]})]}),f.jsx("div",{className:"send-action",children:f.jsxs("button",{className:`send-btn tone-bg-${ZN[r]}`,disabled:l||u,onClick:d,children:[f.jsx(Fe,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),l?"sending…":u?"checking what others already raised…":`${pb[r]} on ${s.id}`," ",f.jsx(za,{children:"s"})]})}),p&&f.jsx("p",{className:"error",children:p}),x&&f.jsxs(f.Fragment,{children:[T&&f.jsx("p",{className:"error",children:T}),_?I?f.jsx(gT,{initial:_.body,onSave:P=>b(P).then(()=>L(!1)),onCancel:()=>L(!1)}):f.jsxs(f.Fragment,{children:[f.jsx("pre",{className:"body-preview",children:_.body}),f.jsxs("div",{className:"body-source",children:[le?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),f.jsx("button",{className:"link",onClick:()=>b(null).catch(P=>A(String((P==null?void 0:P.message)??P))),children:"build it from the review again"})]}):f.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),f.jsxs("button",{className:"link",onClick:()=>L(!0),children:[f.jsx(Fe,{name:"edit"}),le?"keep editing it":"write it yourself"]})]})]}):!T&&f.jsx("p",{className:"faint",children:"building the body…"})]}),f.jsx("div",{className:"send-footer",children:y})]})}function ET({filed:s}){var l,u,d;const a=((l=s.review)==null?void 0:l.url)??((u=s.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return s.reason==="own-reply"&&s.reply?f.jsxs("div",{children:[f.jsxs("strong",{children:["You answered on this PR on ",r(s.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?f.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):s.reason==="request-withdrawn"?f.jsxs("div",{children:[f.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(s.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):f.jsxs("div",{children:[f.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((d=s.review)==null?void 0:d.at)??s.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?f.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function _T({entries:s,open:a,onToggle:r,anchorRef:l}){const u=d=>{const p=new Date(d);return Number.isNaN(p.getTime())?d:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return f.jsxs("section",{className:"card",ref:l,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"history"}),f.jsx("span",{className:"faint",children:s.length>0?`${s.length} entr${s.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),f.jsx("span",{className:"grow"}),f.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[f.jsx(Fe,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&f.jsx("div",{className:"card-body",children:s.length===0?f.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):f.jsx("ol",{className:"history",children:s.map((d,p)=>({e:d,i:p})).reverse().map(({e:d,i:p})=>f.jsxs("li",{className:"history-row",title:d.at,children:[f.jsx("span",{className:"history-at",children:u(d.at)}),f.jsx("span",{className:"history-by",children:d.by}),f.jsx("span",{className:"history-what",children:d.what}),d.cause&&f.jsx("span",{className:"history-cause",children:d.cause})]},`${p}-${d.at}`))})})]})}function ST({handoff:s,sent:a,hasDraft:r}){const l=new Date(s.at).toLocaleDateString();return f.jsxs("div",{children:[f.jsxs("strong",{children:["You handed this to @",s.to," on ",l,"."]})," ","GitHub asks them for this review now",s.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",s.note?s.note.url?f.jsxs(f.Fragment,{children:["A"," ",f.jsx("a",{href:s.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):f.jsx(f.Fragment,{children:"A note on the PR says so."}):f.jsx(f.Fragment,{children:"No note was posted — only the request moved."})," ",a?f.jsx(f.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?f.jsx(f.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):f.jsx(f.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function NT({artifact:s,freshness:a,rerunning:r,onRerun:l}){const u=s.status==="running",d=(a==null?void 0:a.prState)??s.pr.state,p=d==="CLOSED"||d==="MERGED",y=s.refresh,g=a!=null&&a.changed?y:null;if(u)return f.jsxs("div",{className:"freshness freshness-running",children:[f.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]});const m=s.filed,b=s.handoff;return!p&&!g&&!m&&!b?null:f.jsxs("div",{className:"freshness",children:[b&&f.jsx(ST,{handoff:b,sent:s.sent,hasDraft:s.summary!==""||s.comments.length>0}),m&&f.jsx(ET,{filed:m}),p&&f.jsxs("div",{children:[f.jsxs("strong",{children:["This PR is ",d==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&f.jsxs("div",{children:[f.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",f.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",f.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&f.jsxs(f.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&f.jsxs(f.Fragment,{children:[g.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.",!s.sent&&f.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function TT({reviewKey:s}){var In,Vn,ba,rn,Ot;const[a,r]=Z.useState(null),[l,u]=Z.useState(null),[d,p]=Z.useState(null),[y,g]=Z.useState(null),[m,b]=Z.useState(!1),[v,_]=Z.useState([]),[w,T]=Z.useState(new Set),A=Y=>T(re=>new Set(re).add(Y)),[x,k]=Z.useState(!1),[I,L]=Z.useState([]),le=Z.useRef(null),[K,P]=Z.useState(new Set),[ne,C]=Z.useState(0),z=Z.useRef(new Map),[X]=iy(),[q,de]=Z.useState(null),he=Z.useRef(null),_e=Z.useRef(null),pe=Z.useRef(null),j=Z.useRef(null),ae=Z.useRef(null),ce=Z.useRef(null),[ve,Se]=Z.useState(!1),S=Z.useRef(null),[D,H]=Z.useState(!1),[ue,J]=Z.useState(!1),[be,ge]=Z.useState(null),[Le,ze]=Z.useState(null);Z.useEffect(()=>{if(!Le)return;const Y=setTimeout(()=>ze(null),1800);return()=>clearTimeout(Y)},[Le]);const $e=Y=>{var re,we;L(mt=>mt.some(Bt=>Bt.target===Y.target&&Bt.id===Y.id)?mt:[...mt,Y]),(re=le.current)==null||re.scrollIntoView({behavior:"smooth",block:"center"}),(we=le.current)==null||we.focus()};Z.useEffect(()=>{let Y=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),ge(null),J(!1),lg(s).then(re=>{if(!Y)return r(re),X_(s).then(we=>{Y||(p(we),we.changed&&r(we.artifact))}).catch(we=>!Y&&g(String(we.message??we))).then(()=>{if(!(Y||re.sent||re.status==="running"||re.comments.length===0))return J(!0),W_(s).then(we=>!Y&&r(we)).catch(()=>{}).finally(()=>!Y&&J(!1))})}).catch(re=>!Y&&u(String(re))),()=>{Y=!0}},[s]),Z.useEffect(()=>{Zf().then(_).catch(()=>{})},[]),Z.useEffect(()=>{const Y=S.current;if(!Y)return;const re=()=>document.documentElement.style.setProperty("--top-h",`${Y.offsetHeight}px`);re();const we=new ResizeObserver(re);return we.observe(Y),()=>{we.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const at=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,Ce=((In=a==null?void 0:a.raisedCheck)==null?void 0:In.checkingSince)!=null||ue;Z.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!at&&!Ce)return;const Y=setInterval(()=>{lg(s).then(re=>{r(re),re.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(Y)},[a==null?void 0:a.status,at,Ce,s]);const Je=(a==null?void 0:a.sent)!=null,Ge=Z.useMemo(()=>S_(v,s,w),[v,s,w]),Xt=Ge.findIndex(Y=>Y.key===s),He=(Xt>0?Ge[Xt-1]:null)??null,ct=(Xt>=0&&Xt<Ge.length-1?Ge[Xt+1]:null)??null,wn=Y=>{window.location.hash=`#/r/${encodeURIComponent(Y)}`},Qt=()=>{ct?wn(ct.key):window.location.hash="#/"},Dt=Z.useMemo(()=>{if(!a)return[];const Y=v_(a.diff,a.chapters);return Y.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:Y}]:a.chapters},[a]);Z.useEffect(()=>{let Y=0;const re=()=>{var $n;Y=0;const Bt=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,Rn=Bt+16;let $t=null;for(const St of Dt){const On=($n=z.current.get(St.id))==null?void 0:$n.getBoundingClientRect();On&&On.top<=Rn&&On.bottom>Rn&&($t={id:St.id,stuck:On.top<Bt-1})}de(St=>(St==null?void 0:St.id)===($t==null?void 0:$t.id)&&(St==null?void 0:St.stuck)===($t==null?void 0:$t.stuck)?St:$t)},we=()=>{Y||(Y=requestAnimationFrame(re))};re(),window.addEventListener("scroll",we,{passive:!0}),window.addEventListener("resize",we);const mt=new ResizeObserver(we);return mt.observe(document.body),()=>{cancelAnimationFrame(Y),window.removeEventListener("scroll",we),window.removeEventListener("resize",we),mt.disconnect()}},[Dt]);const Ln=Z.useMemo(()=>{const Y=E_((a==null?void 0:a.diff)??""),re=new Set(ni((a==null?void 0:a.diff)??"").filter(mt=>id(mt.path)&&ld(mt.patch).isNew).map(mt=>mt.path)),we=mt=>{const Bt=Y.get(mt)??0;return re.has(mt)?Math.round(Bt/4):Bt};return new Map(Dt.map(mt=>[mt.id,mt.files.reduce((Bt,Rn)=>Bt+we(Rn),0)]))},[a==null?void 0:a.diff,Dt]),sa=Y=>{const re=Ln.get(Y)??0;return re>fT?re:null},Qn=Y=>K.has(Y)?sa(Y)!=null:sa(Y)==null,st=Y=>P(re=>{const we=new Set(re);return we.has(Y)?we.delete(Y):we.add(Y),we});Z.useEffect(()=>P(new Set),[s]);const qt=Y=>{const re=Dt[Y];return re?(C(Y),Qn(re.id)||st(re.id),re):null},ut=(...Y)=>{for(const re of Y)if(re.current)return re.current.scrollIntoView({behavior:"smooth",block:"start"})},cn=Y=>{var we;const re=qt(Y);re&&((we=z.current.get(re.id))==null||we.scrollIntoView({behavior:"smooth",block:"start"}))},xn=(Y,re)=>{qt(Y),ze(re),ry(re)},An=XN(a==null?void 0:a.verdict);Z.useEffect(()=>ge(null),[An]);const zn=()=>{!a||a.sent||D||Ce||(H(!0),ge(null),J_(s,An).then(({replyError:Y,...re})=>{r(re),Y&&ge(`Sent — but ${Y}`),A(s)}).catch(Y=>ge(String(Y.message??Y))).finally(()=>H(!1)))};if(Z.useEffect(()=>{const Y=re=>{aT(re.target)||re.metaKey||re.ctrlKey||re.altKey||(re.key==="["&&He?wn(He.key):re.key==="]"&&ct?wn(ct.key):re.key==="n"?cn(Math.min(Dt.length-1,ne+1)):re.key==="N"?cn(Math.max(0,ne-1)):re.key==="s"&&!Je&&zn())};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[He==null?void 0:He.key,ct==null?void 0:ct.key,Dt,ne,Je,An,a==null?void 0:a.sent,D,Ce]),l&&!a)return f.jsx("p",{className:"error pad",children:l});if(!a)return f.jsx("p",{className:"muted pad",children:"Loading…"});const Un=Y=>{b(!0),u(null),jb(s,Y).then(r).catch(re=>{u(String(re)),b(!1)})},un=Y=>Y.then(r).catch(re=>u(String(re))),yn=Y=>io(s,{status:Y}).then(()=>{A(s),Qt()}).catch(re=>u(String(re))),Ut=(Y,re,we)=>t0(s,{to:Y,note:re,postReview:we}).then(({artifact:mt,noteError:Bt,sendError:Rn,replyError:$t})=>{r0(Y),r(mt),k(!1),A(s);const $n=[Rn&&`the review did not post: ${Rn}`,$t,Bt&&`the note did not post: ${Bt}`].filter(Boolean);$n.length>0?u(`Handed to @${Y}, but ${$n.join("; and ")}`):Qt()}),fn=(Y,re)=>un(F_(s,Y,re)),jt=Y=>un(P_(s,Y)),ga=Y=>un(K_(s,Y)),jn=a.comments.filter(Y=>!Y.chapterId||!Dt.some(re=>re.id===Y.chapterId)),{inline:Bn,folded:Ie,dropped:dn,held:hn,replies:Gt}=sy(a),O=a.comments.filter(Y=>Y.alreadyRaised&&Y.status!=="dropped").length,ee=a.comments.filter(Y=>Y.status!=="dropped"&&Y.drifted).length,me=a.verdict?gb[a.verdict.recommendation]:"none",Me=WN(a),Ke=JN(a),Qe=a.pendingChat!=null&&a.pendingChat.error==null,Ne=a.status==="running"||Qe,Ee=()=>un(Af(s,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),Ue=(Y,re)=>{un(Af(s,{message:re,refs:[{target:"line",id:null,path:Y.path,line:Y.line,side:Y.side}]}).then(we=>{var mt;return(mt=j.current)==null||mt.scrollIntoView({behavior:"smooth",block:"start"}),we}))},Rt=(Vn=a.run)!=null&&Vn.trusted?"ran the code":(ba=a.run)!=null&&ba.withSource?"read the full source":a.run?"read the diff only":"no run yet",bt=Y=>{var re;return f.jsxs("button",{className:`verdict-pick${((re=a.verdict)==null?void 0:re.recommendation)===Y?` verdict-pick-on tone-${gb[Y]}`:""}`,title:Y==="approve"?"Approve":Y==="comment"?"Comment without blocking":"Request changes",onClick:()=>un(io(s,{verdictRecommendation:Y})),children:[f.jsx(Fe,{name:tT[Y]}),Y.replace("_"," ")]},Y)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:S,children:[f.jsx("div",{className:"crumb",children:f.jsxs("div",{className:"bar-inner",children:[f.jsx("a",{href:"#/",children:"← queue"}),f.jsx("span",{className:"crumb-sep",children:"/"}),f.jsx("span",{className:"crumb-slug",children:a.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!He,title:He?`[ — ${He.id}: ${He.pr.title}`:"no more reviews this way",onClick:()=>He&&wn(He.key),children:f.jsx(Fe,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!ct,title:ct?`] — ${ct.id}: ${ct.pr.title}`:"no more reviews this way",onClick:()=>ct&&wn(ct.key),children:f.jsx(Fe,{name:"chevronRight"})})]}),Xt>=0&&f.jsxs("span",{className:"faint",children:[Xt+1," of ",Ge.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:ct?`next: ${ct.pr.title}`:Xt>=0?"last in the queue":""}),f.jsx("span",{className:"grow"}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Fe,{name:"settings",size:15})})]})}),f.jsx("div",{className:"review-head",children:f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"review-head-top",children:[f.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),f.jsx("span",{className:"grow"}),a.verdict&&(Je?f.jsxs("span",{className:`chip tone-${me}`,children:[a.verdict.recommendation.replace("_"," "),Ke&&` · ${Ke}`," · ",a.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${me}`,title:"change it, or send — both are at the foot of the page",onClick:()=>ut(he,ae),children:[a.verdict.recommendation.replace("_"," "),Ke&&` · ${Ke}`," · ",a.verdict.confidence,"%",f.jsx(Fe,{name:"down",size:12})]})),!Je&&a.status!=="running"&&f.jsxs("button",{className:"btn btn-sm",disabled:m,title:a.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Un(!0),children:[f.jsx(Fe,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:a.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[a.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:Rt}),((rn=a.run)==null?void 0:rn.costUsd)!=null&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",a.run.costUsd.toFixed(2)," at API rates"]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),f.jsxs("div",{className:"wrap review-body",children:[f.jsxs("aside",{className:"rail",children:[f.jsxs("div",{className:"rail-jumps",children:[f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>ut(_e),children:"summary"}),a.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>ut(pe),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var Y;ut(j),(Y=le.current)==null||Y.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{Se(!0),ut(ce)},children:"history"})]}),Dt.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>cn(0),children:"changes"}),Dt.map((Y,re)=>f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${Qn(Y.id)?" rail-item-on":""}${(q==null?void 0:q.id)===Y.id?" rail-item-here":""}`,onClick:()=>cn(re),children:[f.jsxs("span",{className:"grow",children:[re+1," · ",Y.title]}),f.jsxs("span",{className:"rail-count",children:[Y.files.length,"f"]})]}),a.comments.filter(we=>we.chapterId===Y.id).map(we=>f.jsxs("button",{className:`rail-comment${we.status==="dropped"?" rail-comment-dropped":""}`,title:`${we.path}${we.line!=null?`:${we.line}`:""} — ${we.body}`,onClick:()=>xn(re,we.id),children:[f.jsx("span",{className:`rail-dot tone-${nT(we,me)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[we.path.split("/").pop(),we.line!=null?`:${we.drifted?"~":""}${we.line}`:""]})]},we.id))]},Y.id))]}),f.jsx("button",{className:`lab rail-lab-btn${Dt.length>0?" rail-lab":""}`,onClick:()=>ut(he,ae),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[a.comments.length-dn.length," keeping · ",dn.length," dropped"]}),f.jsxs("div",{children:[Bn.length," inline · ",Ie.length," folded into body"]}),ee>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[ee," drifted"]}),f.jsx(oT,{check:a.raisedCheck??null,raised:O,held:hn.length,replies:Gt.length})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(NT,{artifact:a,freshness:d,rerunning:m,onRerun:Un}),y&&f.jsxs("div",{className:"freshness",title:y,children:[f.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),l&&f.jsx("div",{className:"error",children:l}),((Ot=a.run)==null?void 0:Ot.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),f.jsx("div",{className:"card card-summary",ref:_e,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"summary"}),f.jsx(zi,{className:"prose lead",text:a.summary||"(no summary)"}),!Je&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>$e({target:"summary",id:null}),children:[f.jsx(Fe,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&f.jsx("div",{className:`card card-why tone-border-${me}`,ref:pe,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[Tf(a)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Tf(a)}),Tf(a)&&f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[a.verdict.confidence,"% sure of the findings"]})]}),f.jsx(zi,{className:"prose lead",text:a.verdict.reasoning}),!Je&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>$e({target:"verdict",id:null}),children:[f.jsx(Fe,{name:"comment"}),"discuss the verdict"]})]})}),Dt.map((Y,re)=>f.jsx(dT,{chapter:Y,n:re+1,diff:a.diff,comments:a.comments.filter(we=>we.chapterId===Y.id),open:Qn(Y.id),heavy:sa(Y.id),onToggle:()=>st(Y.id),onUpdateComment:fn,onDeleteComment:jt,onAddComment:ga,onDiscuss:Je?void 0:$e,onAskAboutLine:Ue,chatBusy:Qe,readOnly:Je,flash:Le,sticky:X,stuck:(q==null?void 0:q.id)===Y.id&&q.stuck,anchorRef:we=>{we?z.current.set(Y.id,we):z.current.delete(Y.id)}},Y.id)),jn.length>0&&f.jsxs("section",{className:"card",children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"unattached comments"}),f.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),f.jsx("div",{className:"card-body",children:jn.map(Y=>f.jsx(cy,{comment:Y,onUpdate:re=>fn(Y.id,re),onDelete:()=>jt(Y.id),onDiscuss:Je?void 0:()=>$e({target:"comment",id:Y.id}),readOnly:Je},Y.id))})]}),f.jsx(_T,{entries:a.history??[],open:ve,onToggle:()=>Se(Y=>!Y),anchorRef:ce})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(mT,{artifact:a,reviewKey:s,refs:I,onClearRefs:()=>L([]),onDropRef:Y=>L(re=>re.filter((we,mt)=>mt!==Y)),onArtifact:r,readOnly:Je,inputRef:le,anchorRef:j}),f.jsxs("div",{className:"cockpit-decide",children:[!Je&&Me&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:Me})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:Ee,disabled:Qe,children:[f.jsx(Fe,{name:"comment"}),Qe?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Je&&f.jsxs("div",{className:"verdict-bar",ref:he,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(bt)]}),f.jsx(vT,{artifact:a,reviewKey:s,event:An,sending:D,checking:Ce,onSend:zn,error:be,next:ct,onAdvance:Qt,onBody:Y=>io(s,{bodyOverride:Y}).then(r),anchorRef:ae,footer:f.jsxs(f.Fragment,{children:[!Je&&f.jsx("span",{className:"faint",children:"not sending?"}),!Je&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:ct?`Settle it locally and go to ${ct.id}`:"Settle it locally and go back to the queue",onClick:()=>yn("reviewed"),children:[f.jsx(Fe,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:ct?`Leave it and go to ${ct.id}`:"Leave it and go back to the queue",onClick:()=>yn("skipped"),children:[f.jsx(Fe,{name:"skip"}),"skip"]})]}),f.jsxs("button",{className:"btn btn-sm",title:Ne?"Wait for the run to finish — a handoff settles the row it is rewriting":"Move GitHub's review request to somebody else, and settle this row",onClick:()=>k(!0),disabled:x||Ne,children:[f.jsx(Fe,{name:"arrowRight"}),"hand off"]}),f.jsxs("a",{className:"btn btn-sm",href:n0(s),children:[f.jsx(Fe,{name:"download"}),"export .md"]})]})}),x&&f.jsx(yT,{artifact:a,reviewKey:s,onConfirm:Ut,onCancel:()=>k(!1)})]})]})]})]})}const yb="cerber.notify.seen.v2",wT="cerber.notify.seen",Bf="cerber.notify",xT=1e4,Is=s=>s.status==="ready",If=s=>{try{return localStorage.getItem(s)}catch{return null}},Hf=(s,a)=>{try{localStorage.setItem(s,a)}catch{}};function AT(s,a){return s?!!(s.enabled&&s.pollEnabled&&s.autoReview):a}function fy(s,a){return s.announceable===!1||s.status==="running"?!1:s.status==="awaiting"?!a:!0}const dy=":draft",so=s=>`${s.key}${dy}`,hy=s=>Is(s)?so(s):s.key;function RT(s,a,r){const l=new Set(a);return qs(s).filter(u=>fy(u,r)&&!l.has(hy(u)))}function OT(s,a,r=[]){const l=new Set(r),u=new Set(qs(s).map(p=>p.key)),d=[];for(const p of s){if(u.has(p.key)&&!fy(p,a)){for(const y of[p.key,so(p)])l.has(y)&&d.push(y);continue}d.push(p.key),(Is(p)||!u.has(p.key)||l.has(so(p)))&&d.push(so(p))}return d}const wf=s=>`${s.pr.repo}#${s.pr.number}`,kT={approve:"approves",comment:"comments",request_changes:"requests changes"};function CT(s){const a=s.verdict?kT[s.verdict.recommendation]:"drafted",r=s.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function MT(s){if(s.length===0)return null;const a=`cerber:${s.map(hy).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:Is(u)?`${wf(u)} draft ready`:`${wf(u)} awaits your review`,body:Is(u)?`${CT(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=s.slice(0,3).map(wf),l=s.length-r.length;return{title:s.every(Is)?`${s.length} drafts ready`:`${s.length} PRs await your review`,body:l>0?`${r.join(", ")} and ${l} more`:r.join(", "),tag:a,key:null}}const DT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function LT(s,a=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:DT.has(a)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":If(Bf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function zT(){const s=Hl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return Hf(Bf,"off"),Hl();if(Hf(Bf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function UT(s){const a=new Notification(s.title,{body:s.body,tag:s.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=s.key?`#/r/${encodeURIComponent(s.key)}`:"#/",a.close()}}function jT(s,a){const r=s??a;if(!r)return null;let l;try{l=JSON.parse(r)}catch{return null}if(!Array.isArray(l))return null;const u=l.filter(d=>typeof d=="string");return s?u:u.flatMap(d=>[d,`${d}${dy}`])}function BT(){const s=Z.useRef(null),a=Z.useRef(!0),[r,l]=Z.useState(!1);return Z.useEffect(()=>{let u=!0;s.current=jT(If(yb),If(wT));const d=()=>Promise.all([Zf(),Ub().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=LT(g);l(m),a.current=AT(g,a.current);const b=a.current,v=s.current;if(s.current=OT(y,b,v??[]),Hf(yb,JSON.stringify(s.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const _=MT(RT(y,v,b));_&&UT(_)}).catch(()=>{});d();const p=setInterval(d,xT);return()=>{u=!1,clearInterval(p)}},[]),r}function py(){const[s,a]=Z.useState(Hl);return Z.useEffect(()=>{const r=()=>a(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void zT().then(a)]}const ro=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function IT(s){const a=s,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function HT({daemon:s}){return s!=null&&s.enabled?f.jsx("div",{className:"daemon-bar",children:f.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.intervalMs/6e4),"m"]}):f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),f.jsxs("span",{children:["auto-review ",f.jsx("b",{children:s.autoReview?"on":"off"})]}),f.jsxs("span",{children:["auto-send ",f.jsx("b",{children:s.autoSend==="on"?"on":"shadow"})," ≥",s.autoSendThreshold,"%",s.autoSend==="on"?` · ${s.autoSent} sent`:` · ${s.autoSendCandidates} candidate${s.autoSendCandidates===1?"":"s"}`]}),s.trustedRuns&&f.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[f.jsx(Fe,{name:"zap",size:12})," trusted PRs run with Bash"]}),f.jsx("span",{className:"grow"}),s.lastPollError?f.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):f.jsx("span",{className:"faint",children:s.polling?"polling now…":[s.lastSummary?`last: ${s.lastSummary}`:null,s.nextPollAt?`next ${new Date(s.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function qT({r:s,selected:a,onSelect:r,onOpen:l,awaiting:u}){const d=j_(s),p=A_(s),y=u?L_(s,u):null;return f.jsxs("div",{className:`row${a?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[f.jsx("span",{className:"col-caret",children:"›"}),f.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),f.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),f.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&f.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&f.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&f.jsx("span",{className:"tag tag-done",children:p}),f.jsx("span",{className:"col-comments",children:s.commentCount||""}),f.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?f.jsxs(f.Fragment,{children:[s.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),f.jsx("span",{className:`col-verdict tone-${d.tone}`,children:d.label}),f.jsx("span",{className:"col-age",children:zb(s.updatedAt)})]})}function vb({autoFocus:s}){const[a,r]=Z.useState(""),[l,u]=Z.useState(!1),[d,p]=Z.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||l||(u(!0),p(null),Z_(m).then(b=>ro(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:y,children:[f.jsx(Fe,{name:"plus"}),f.jsx("input",{className:"pull-input",value:a,autoFocus:s,disabled:l,onChange:g=>{r(g.target.value),d&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&f.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),d&&f.jsx("span",{className:"pull-error",children:d})]})}function GT({text:s}){const a=Z.useRef(null),[r,l]=Z.useState(!1);return Z.useLayoutEffect(()=>{const u=a.current;if(!u)return;const d=()=>l(u.scrollHeight-u.clientHeight>4);d();const p=new ResizeObserver(d);return p.observe(u),()=>p.disconnect()},[s]),f.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(zi,{className:"prose",text:s})})}function $T(){var X;const[s,a]=Z.useState(null),[r,l]=Z.useState(null),[u,d]=Z.useState(null),[p,y]=Z.useState(new Set),[g,m]=Z.useState("inbox"),[b,v]=Z.useState(null),_=Z.useRef(!0);Z.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const w=()=>{Zf().then(q=>_.current&&a(q)).catch(q=>_.current&&d(String(q))),Ub().then(q=>_.current&&l(q)).catch(()=>{})};Z.useEffect(()=>{w();const q=setInterval(w,1e4);return()=>clearInterval(q)},[]);const T=s??[],A=Z.useMemo(()=>w_(T,r),[T,r]),x=A.requests,k=x_(g,A),I=A[k];Z.useEffect(()=>{k!==g&&m(k)},[k,g]);const L=I.find(q=>q.key===b)??I[0]??null,le=q=>{y(de=>new Set(de).add(q)),jb(q).then(()=>w()).catch(de=>_.current&&d(String(de))).finally(()=>{_.current&&y(de=>{const he=new Set(de);return he.delete(q),he})})};if(Z.useEffect(()=>{const q=de=>{if(IT(de.target)||de.metaKey||de.ctrlKey||de.altKey)return;const he=I.findIndex(pe=>pe.key===(L==null?void 0:L.key)),_e=pe=>{const j=I[Math.min(I.length-1,Math.max(0,he+pe))];j&&v(j.key)};de.key==="j"||de.key==="ArrowDown"?(de.preventDefault(),_e(1)):de.key==="k"||de.key==="ArrowUp"?(de.preventDefault(),_e(-1)):de.key==="Enter"&&L?ro(L.key):de.key==="r"&&L&&L.status!=="sent"&&L.status!=="running"&&le(L.key)};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[I,L==null?void 0:L.key]),u&&!s)return f.jsx("p",{className:"error",children:u});if(!s)return f.jsx("p",{className:"muted pad",children:"Loading…"});const K=I.reduce((q,de)=>q+(de.costUsd??0),0),P=L?I_(L,r):null,ne=L?p.has(L.key):!1,C=xf.filter(q=>A[q].length>0),z=q=>f.jsxs("button",{className:`tab${k===q?" tab-on":""}${xf.includes(q)?" tab-filed":""}${q==="requests"?" tab-requests":""}`,title:Ou[q].title,onClick:()=>m(q),children:[Ou[q].label," ",f.jsx("span",{className:"tab-count",children:A[q].length})]},q);return f.jsxs(f.Fragment,{children:[f.jsx(HT,{daemon:r}),u&&f.jsx("div",{className:"wrap",children:f.jsx("p",{className:"error",children:u})}),T.length===0?f.jsx("div",{className:"wrap",children:f.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?f.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):f.jsx("p",{children:"No reviews yet."}),f.jsx(vb,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[__.map(z),C.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),C.map(z),f.jsx("span",{className:"grow"}),f.jsx(vb,{}),K>0&&f.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",K.toFixed(2)," at API rates"]})]}),f.jsxs("div",{className:"table-head",children:[f.jsx("span",{className:"col-caret"}),f.jsx("span",{className:"col-slug",children:"repo#pr"}),f.jsx("span",{className:"col-author",children:"author"}),f.jsx("span",{className:"col-title",children:"title"}),f.jsx("span",{className:"col-comments",children:"c"}),f.jsx("span",{className:"col-size",children:"size"}),f.jsx("span",{className:"col-verdict",children:"verdict"}),f.jsx("span",{className:"col-age",children:"upd"})]}),I.length===0?f.jsx("div",{className:"empty-tab",children:k==="inbox"&&x.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:z_(x)}),f.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[f.jsx(Fe,{name:"arrowRight"}),"show ",x.length===1?"it":`all ${x.length}`]})]}):f.jsx("p",{className:"muted",children:k==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Ou[k].label} right now.`})}):I.map(q=>f.jsx(qT,{r:q,selected:q.key===(L==null?void 0:L.key),onSelect:()=>v(q.key),onOpen:()=>ro(q.key),awaiting:T_(q,x)?R_(q,r):null},q.key)),L&&P&&f.jsxs("div",{className:"cursor-strip",children:[f.jsxs("div",{className:"cursor-strip-body",children:[f.jsxs("div",{className:"lab",children:[L.pr.owner,"/",L.pr.repo,"#",L.pr.number,L.pr.headRefName&&L.pr.baseRefName?` · ${L.pr.headRefName} → ${L.pr.baseRefName}`:""]}),f.jsx(GT,{text:P.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[P.meta.join(" · "),((X=L.sent)==null?void 0:X.url)&&f.jsxs(f.Fragment,{children:[" · ",f.jsx("a",{href:L.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),f.jsxs("div",{className:"cursor-strip-actions",children:[f.jsxs("button",{className:"btn-primary",onClick:()=>ro(L.key),children:[f.jsx(Fe,{name:"arrowRight"}),"open review ",f.jsx(za,{children:"↵"})]}),f.jsxs("div",{className:"cursor-strip-row",children:[f.jsxs("button",{className:"btn",disabled:L.status==="sent"||L.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>io(L.key,{status:"skipped"}).then(w).catch(q=>d(String(q))),children:[f.jsx(Fe,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:ne||L.status==="running"||L.status==="sent",title:L.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>le(L.key),children:[f.jsx(Fe,{name:"rerun"}),ne?"starting…":L.status==="awaiting"||L.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const po="cerber.theme";function my(s){return s==="light"||s==="dark"?s:"system"}function YT(){try{return my(localStorage.getItem(po))}catch{return"system"}}function gy(s,a=document.documentElement){s==="system"?delete a.dataset.theme:a.dataset.theme=s}function FT(s,a){try{const r=a??localStorage;s==="system"?r.removeItem(po):r.setItem(po,s)}catch{}}function KT(){by(gy)}function by(s){const a=r=>{(r.key===po||r.key===null)&&s(my(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function PT(){const[s,a]=Z.useState(YT);return Z.useEffect(()=>by(a),[]),[s,l=>{FT(l),gy(l),a(l)}]}const ZT=[{rule:"@acme/*",meaning:"anyone in the acme org"},{rule:"@acme/devs",meaning:"anyone on that GitHub team"},{rule:"@teammate",meaning:"one person, by login"},{rule:"!@acme/contractors",meaning:"deny — beats every rule above"}],Eb=s=>s instanceof Error?s.message:String(s),XT={unsupported:"this browser has no notifications to give",blocked:"this browser has blocked notifications for cerber",off:"tell me when a review is ready for me",ask:"tell me when a review is ready for me (the browser will ask first)",on:"tell me when a review is ready for me"},QT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}];function VT({daemonAnnounces:s}){const[a,r]=py(),[l,u]=PT(),[d,p]=iy(),[y,g]=Z.useState(null),[m,b]=Z.useState(""),[v,_]=Z.useState(null),[w,T]=Z.useState(!1);Z.useEffect(()=>{a0().then(g).catch(k=>_(Eb(k)))},[]);const A=k=>{T(!0),_(null),k.then(g).catch(I=>_(Eb(I))).finally(()=>T(!1))};if(v&&!y)return f.jsx("p",{className:"error",children:v});if(!y)return f.jsx("p",{className:"muted",children:"Loading…"});const x=s&&y.daemon.poll&&y.daemon.notify;return f.jsxs("div",{className:"settings",children:[f.jsx("a",{href:"#/",className:"back",children:"← queue"}),f.jsx("h1",{children:"Inbox"}),f.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.poll,disabled:w,onChange:k=>A(Mu({poll:k.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",y.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.autoReview,disabled:w||!y.daemon.poll,onChange:k=>A(Mu({autoReview:k.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),f.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",f.jsx("code",{children:y.path})," under"," ",f.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),f.jsx("h1",{children:"Notifications"}),f.jsx("p",{children:'When a PR is worth coming back for, cerber says so: one desktop notification per poll. With auto-review on that moment is the draft landing, not the PR arriving — a tap that leads to "no run yet" costs you the walk back and gives you nothing — and the notification names what the review found. A PR nobody is drafting (auto-review off, or a run that failed) is announced as it lands, since that is all the news there will be — and if a retry then drafts it after all, that is new news and you are told. Several at once fold into one notification, and a PR whose draft has been announced never arrives twice, however its next re-review ends.'}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.notify,disabled:w||!y.daemon.poll,onChange:k=>A(Mu({notify:k.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),f.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll, so it needs nothing open but ",f.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",f.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",f.jsx("strong",{children:"opens that review when you click it"}),', through a small app cerber builds for the job (the first one asks you to allow notifications from "Cerber"); a'," ",f.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||x,onChange:r})," ",x?"let this browser announce them instead":XT[a]]}),f.jsx("p",{className:"muted",children:x?f.jsx(f.Fragment,{children:"Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and opens that review on click just the same, but only while a cockpit tab is open and this browser has granted the permission."}):f.jsxs(f.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",f.jsx("code",{children:y.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),f.jsx("h1",{id:"appearance",children:"Appearance"}),f.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:QT.map(({choice:k,label:I})=>f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"radio",name:"theme",checked:l===k,onChange:()=>u(k)})," ",I]},k))}),f.jsxs("p",{className:"muted",children:["Per-browser, like the notification switch: it's about this screen, not your reviews, so it lives here rather than in ",f.jsx("code",{children:y.path}),"."]}),f.jsx("h1",{children:"Review page"}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:d,onChange:k=>p(k.target.checked)})," ","keep the chapter title pinned while scrolling through it"]}),f.jsx("p",{className:"muted",children:"Ten files into a chapter you still see which one you're in, and the pinned title can open the chapter's explanation. Per-browser, like the theme."}),f.jsx("h1",{children:"Trusted PRs"}),f.jsxs("p",{children:["Every review reads the PR's code. A ",f.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",f.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),f.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",f.jsx("code",{children:y.path}),"."]}),f.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),f.jsxs("div",{className:"trust-add",children:[f.jsx("input",{value:m,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:w,onChange:k=>b(k.target.value),onKeyDown:k=>{k.key==="Enter"&&!w&&m.trim()&&(A(Cu(m.trim())),b(""))}}),f.jsx("button",{className:"btn",disabled:w||!m.trim(),onClick:()=>{A(Cu(m.trim())),b("")},children:"trust"})]}),v&&f.jsx("p",{className:"error",children:v}),y.trust.length===0?f.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:y.trust.map(k=>f.jsxs("tr",{className:k.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:k.rule})}),f.jsx("td",{className:"muted",children:k.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:w,onClick:()=>A(Cu(k.rule,!0)),children:"remove"})})]},k.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:ZT.map(k=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:k.rule})}),f.jsx("td",{className:"muted",children:k.meaning})]},k.rule))})}),f.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",f.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",f.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",f.jsx("code",{children:"--no-trust"})," to prevent that."]})]})}function _b(){const s=window.location.hash,a=s.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const Sb={unsupported:"",blocked:"This browser blocked notifications for cerber. Turn them back on in its site settings — the padlock next to the address bar.",off:"Notifications off. Click to be told when a review is ready for you.",ask:"Click to be told when a review is ready for you — the browser will ask you first.",on:"Telling you when a review is ready for you. Click to stop."},Nb="cerber taps this machine itself when a PR is worth coming back for — no tab required. The browser's own bell would be a second popup about one PR, so it stands down. Turn the machine one off in Settings to have this browser announce them instead.";function JT({daemonAnnounces:s}){const[a,r]=py();return s?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Nb,"aria-label":Nb,children:f.jsx(Fe,{name:"bell",size:15})}):a==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${a}`,title:Sb[a],"aria-label":Sb[a],"aria-pressed":a==="on",onClick:r,children:f.jsx(Fe,{name:a==="on"?"bell":"bellOff",size:15})})}function WT(){const[s,a]=Z.useState(_b()),r=BT();return Z.useEffect(()=>{const l=()=>a(_b());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(TT,{reviewKey:s.key})}):f.jsxs("div",{className:"app",children:[f.jsx("header",{className:"topbar",children:f.jsxs("div",{className:"bar-inner",children:[f.jsxs("a",{href:"#/",className:"brand",children:[f.jsx(cS,{}),"cerber"]}),f.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),f.jsx("span",{className:"grow"}),s.view==="queue"&&f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"j"}),f.jsx(za,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"r"}),"review now"]})]}),f.jsx(JT,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Fe,{name:"settings",size:15})})]})}),s.view==="queue"?f.jsx($T,{}):f.jsx(VT,{daemonAnnounces:r})]})}KT();CE.createRoot(document.getElementById("root")).render(f.jsx(wE.StrictMode,{children:f.jsx(WT,{})}));