@fullstackhouse/cerber 1.0.0 → 1.1.0-pr.80.03eb934
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/cli/index.js +4 -2
- package/dist/core/autoreview.js +33 -0
- package/dist/core/config.js +20 -0
- package/dist/server/daemon.js +20 -11
- package/dist/server/index.js +36 -0
- package/package.json +1 -1
- package/web/dist/assets/{index-LWGU30De.js → index-CHF4kBTR.js} +63 -63
- package/web/dist/assets/{index-C_G8PR0E.css → index-DPt1TcJ6.css} +1 -1
- package/web/dist/index.html +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ME=Object.defineProperty;var DE=(l,a,r)=>a in l?ME(l,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[a]=r;var Tt=(l,a,r)=>DE(l,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"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function zb(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Su={exports:{}},Cs={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var $m;function LE(){if($m)return Cs;$m=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,u,f){var p=null;if(f!==void 0&&(p=""+f),u.key!==void 0&&(p=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:l,type:s,key:p,ref:u!==void 0?u:null,props:f}}return Cs.Fragment=a,Cs.jsx=r,Cs.jsxs=r,Cs}var Ym;function zE(){return Ym||(Ym=1,Su.exports=LE()),Su.exports}var d=zE(),wu={exports:{}},Fe={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Fm;function jE(){if(Fm)return Fe;Fm=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=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 x(w){return w===null||typeof w!="object"?null:(w=_&&w[_]||w["@@iterator"],typeof w=="function"?w:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function M(w,z,B){this.props=w,this.context=z,this.refs=T,this.updater=B||S}M.prototype.isReactComponent={},M.prototype.setState=function(w,z){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,z,"setState")},M.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function I(){}I.prototype=M.prototype;function A(w,z,B){this.props=w,this.context=z,this.refs=T,this.updater=B||S}var V=A.prototype=new I;V.constructor=A,C(V,M.prototype),V.isPureReactComponent=!0;var Q=Array.isArray;function ie(){}var H={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function q(w,z,B){var se=B.ref;return{$$typeof:l,type:w,key:z,ref:se!==void 0?se:null,props:B}}function J(w,z){return q(w.type,z,w.props)}function K(w){return typeof w=="object"&&w!==null&&w.$$typeof===l}function me(w){var z={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(B){return z[B]})}var ce=/\/+/g;function Se(w,z){return typeof w=="object"&&w!==null&&w.key!=null?me(""+w.key):z.toString(36)}function he(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ie,ie):(w.status="pending",w.then(function(z){w.status==="pending"&&(w.status="fulfilled",w.value=z)},function(z){w.status==="pending"&&(w.status="rejected",w.reason=z)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function D(w,z,B,se,pe){var ve=typeof w;(ve==="undefined"||ve==="boolean")&&(w=null);var Z=!1;if(w===null)Z=!0;else switch(ve){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(w.$$typeof){case l:case a:Z=!0;break;case b:return Z=w._init,D(Z(w._payload),z,B,se,pe)}}if(Z)return pe=pe(w),Z=se===""?"."+Se(w,0):se,Q(pe)?(B="",Z!=null&&(B=Z.replace(ce,"$&/")+"/"),D(pe,z,B,"",function(Ge){return Ge})):pe!=null&&(K(pe)&&(pe=J(pe,B+(pe.key==null||w&&w.key===pe.key?"":(""+pe.key).replace(ce,"$&/")+"/")+Z)),z.push(pe)),1;Z=0;var ye=se===""?".":se+":";if(Q(w))for(var Ne=0;Ne<w.length;Ne++)se=w[Ne],ve=ye+Se(se,Ne),Z+=D(se,z,B,ve,pe);else if(Ne=x(w),typeof Ne=="function")for(w=Ne.call(w),Ne=0;!(se=w.next()).done;)se=se.value,ve=ye+Se(se,Ne++),Z+=D(se,z,B,ve,pe);else if(ve==="object"){if(typeof w.then=="function")return D(he(w),z,B,se,pe);throw z=String(w),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return Z}function ee(w,z,B){if(w==null)return w;var se=[],pe=0;return D(w,se,"","",function(ve){return z.call(B,ve,pe++)}),se}function fe(w){if(w._status===-1){var z=w._result;z=z(),z.then(function(B){(w._status===0||w._status===-1)&&(w._status=1,w._result=B)},function(B){(w._status===0||w._status===-1)&&(w._status=2,w._result=B)}),w._status===-1&&(w._status=0,w._result=z)}if(w._status===1)return w._result.default;throw w._result}var we=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Le={map:ee,forEach:function(w,z,B){ee(w,function(){z.apply(this,arguments)},B)},count:function(w){var z=0;return ee(w,function(){z++}),z},toArray:function(w){return ee(w,function(z){return z})||[]},only:function(w){if(!K(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return Fe.Activity=v,Fe.Children=Le,Fe.Component=M,Fe.Fragment=r,Fe.Profiler=u,Fe.PureComponent=A,Fe.StrictMode=s,Fe.Suspense=g,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return H.H.useMemoCache(w)}},Fe.cache=function(w){return function(){return w.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function(w,z,B){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var se=C({},w.props),pe=w.key;if(z!=null)for(ve in z.key!==void 0&&(pe=""+z.key),z)!R.call(z,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&z.ref===void 0||(se[ve]=z[ve]);var ve=arguments.length-2;if(ve===1)se.children=B;else if(1<ve){for(var Z=Array(ve),ye=0;ye<ve;ye++)Z[ye]=arguments[ye+2];se.children=Z}return q(w.type,pe,se)},Fe.createContext=function(w){return w={$$typeof:p,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},Fe.createElement=function(w,z,B){var se,pe={},ve=null;if(z!=null)for(se in z.key!==void 0&&(ve=""+z.key),z)R.call(z,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(pe[se]=z[se]);var Z=arguments.length-2;if(Z===1)pe.children=B;else if(1<Z){for(var ye=Array(Z),Ne=0;Ne<Z;Ne++)ye[Ne]=arguments[Ne+2];pe.children=ye}if(w&&w.defaultProps)for(se in Z=w.defaultProps,Z)pe[se]===void 0&&(pe[se]=Z[se]);return q(w,ve,pe)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(w){return{$$typeof:y,render:w}},Fe.isValidElement=K,Fe.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:fe}},Fe.memo=function(w,z){return{$$typeof:m,type:w,compare:z===void 0?null:z}},Fe.startTransition=function(w){var z=H.T,B={};H.T=B;try{var se=w(),pe=H.S;pe!==null&&pe(B,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(ie,we)}catch(ve){we(ve)}finally{z!==null&&B.types!==null&&(z.types=B.types),H.T=z}},Fe.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Fe.use=function(w){return H.H.use(w)},Fe.useActionState=function(w,z,B){return H.H.useActionState(w,z,B)},Fe.useCallback=function(w,z){return H.H.useCallback(w,z)},Fe.useContext=function(w){return H.H.useContext(w)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(w,z){return H.H.useDeferredValue(w,z)},Fe.useEffect=function(w,z){return H.H.useEffect(w,z)},Fe.useEffectEvent=function(w){return H.H.useEffectEvent(w)},Fe.useId=function(){return H.H.useId()},Fe.useImperativeHandle=function(w,z,B){return H.H.useImperativeHandle(w,z,B)},Fe.useInsertionEffect=function(w,z){return H.H.useInsertionEffect(w,z)},Fe.useLayoutEffect=function(w,z){return H.H.useLayoutEffect(w,z)},Fe.useMemo=function(w,z){return H.H.useMemo(w,z)},Fe.useOptimistic=function(w,z){return H.H.useOptimistic(w,z)},Fe.useReducer=function(w,z,B){return H.H.useReducer(w,z,B)},Fe.useRef=function(w){return H.H.useRef(w)},Fe.useState=function(w){return H.H.useState(w)},Fe.useSyncExternalStore=function(w,z,B){return H.H.useSyncExternalStore(w,z,B)},Fe.useTransition=function(){return H.H.useTransition()},Fe.version="19.2.8",Fe}var Pm;function Kd(){return Pm||(Pm=1,wu.exports=jE()),wu.exports}var $=Kd();const UE=zb($);var Nu={exports:{}},Ms={},xu={exports:{}},Tu={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var Km;function BE(){return Km||(Km=1,(function(l){function a(D,ee){var fe=D.length;D.push(ee);e:for(;0<fe;){var we=fe-1>>>1,Le=D[we];if(0<u(Le,ee))D[we]=ee,D[fe]=Le,fe=we;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var ee=D[0],fe=D.pop();if(fe!==ee){D[0]=fe;e:for(var we=0,Le=D.length,w=Le>>>1;we<w;){var z=2*(we+1)-1,B=D[z],se=z+1,pe=D[se];if(0>u(B,fe))se<Le&&0>u(pe,B)?(D[we]=pe,D[se]=fe,we=se):(D[we]=B,D[z]=fe,we=z);else if(se<Le&&0>u(pe,fe))D[we]=pe,D[se]=fe,we=se;else break e}}return ee}function u(D,ee){var fe=D.sortIndex-ee.sortIndex;return fe!==0?fe:D.id-ee.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var p=Date,y=p.now();l.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,_=3,x=!1,S=!1,C=!1,T=!1,M=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function V(D){for(var ee=r(m);ee!==null;){if(ee.callback===null)s(m);else if(ee.startTime<=D)s(m),ee.sortIndex=ee.expirationTime,a(g,ee);else break;ee=r(m)}}function Q(D){if(C=!1,V(D),!S)if(r(g)!==null)S=!0,ie||(ie=!0,me());else{var ee=r(m);ee!==null&&he(Q,ee.startTime-D)}}var ie=!1,H=-1,R=5,q=-1;function J(){return T?!0:!(l.unstable_now()-q<R)}function K(){if(T=!1,ie){var D=l.unstable_now();q=D;var ee=!0;try{e:{S=!1,C&&(C=!1,I(H),H=-1),x=!0;var fe=_;try{t:{for(V(D),v=r(g);v!==null&&!(v.expirationTime>D&&J());){var we=v.callback;if(typeof we=="function"){v.callback=null,_=v.priorityLevel;var Le=we(v.expirationTime<=D);if(D=l.unstable_now(),typeof Le=="function"){v.callback=Le,V(D),ee=!0;break t}v===r(g)&&s(g),V(D)}else s(g);v=r(g)}if(v!==null)ee=!0;else{var w=r(m);w!==null&&he(Q,w.startTime-D),ee=!1}}break e}finally{v=null,_=fe,x=!1}ee=void 0}}finally{ee?me():ie=!1}}}var me;if(typeof A=="function")me=function(){A(K)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Se=ce.port2;ce.port1.onmessage=K,me=function(){Se.postMessage(null)}}else me=function(){M(K,0)};function he(D,ee){H=M(function(){D(l.unstable_now())},ee)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return _},l.unstable_next=function(D){switch(_){case 1:case 2:case 3:var ee=3;break;default:ee=_}var fe=_;_=ee;try{return D()}finally{_=fe}},l.unstable_requestPaint=function(){T=!0},l.unstable_runWithPriority=function(D,ee){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var fe=_;_=D;try{return ee()}finally{_=fe}},l.unstable_scheduleCallback=function(D,ee,fe){var we=l.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?we+fe:we):fe=we,D){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=fe+Le,D={id:b++,callback:ee,priorityLevel:D,startTime:fe,expirationTime:Le,sortIndex:-1},fe>we?(D.sortIndex=fe,a(m,D),r(g)===null&&D===r(m)&&(C?(I(H),H=-1):C=!0,he(Q,fe-we))):(D.sortIndex=Le,a(g,D),S||x||(S=!0,ie||(ie=!0,me()))),D},l.unstable_shouldYield=J,l.unstable_wrapCallback=function(D){var ee=_;return function(){var fe=_;_=ee;try{return D.apply(this,arguments)}finally{_=fe}}}})(Tu)),Tu}var Zm;function IE(){return Zm||(Zm=1,xu.exports=BE()),xu.exports}var Au={exports:{}},Cn={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var Xm;function HE(){if(Xm)return Cn;Xm=1;var l=Kd();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 s={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 f(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=l.__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=s,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 f(g,m,null,b)},Cn.flushSync=function(g){var m=p.T,b=s.p;try{if(p.T=null,s.p=2,g)return g()}finally{p.T=m,s.p=b,s.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,s.d.C(g,m))},Cn.prefetchDNS=function(g){typeof g=="string"&&s.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,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:x}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:x,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);s.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&&s.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);s.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);s.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 s.d.m(g)},Cn.requestFormReset=function(g){s.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 Vm;function jb(){if(Vm)return Au.exports;Vm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),Au.exports=HE(),Au.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,25 +38,25 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
41
|
+
*/var Qm;function qE(){if(Qm)return Ms;Qm=1;var l=IE(),a=Kd(),r=jb();function s(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 f(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(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(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(s(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(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(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"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),A=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case M:return"Profiler";case T:return"StrictMode";case Q:return"Suspense";case ie:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case A:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var he=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},we=[],Le=-1;function w(e){return{current:e}}function z(e){0>Le||(e.current=we[Le],we[Le]=null,Le--)}function B(e,t){Le++,we[Le]=e.current,e.current=t}var se=w(null),pe=w(null),ve=w(null),Z=w(null);function ye(e,t){switch(B(ve,t),B(pe,e),B(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?fm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fm(t),e=hm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(se),B(se,e)}function Ne(){z(se),z(pe),z(ve)}function Ge(e){e.memoizedState!==null&&B(Z,e);var t=se.current,n=hm(t,e.type);t!==n&&(B(pe,e),B(se,n))}function $e(e){pe.current===e&&(z(se),z(pe)),Z.current===e&&(z(Z),As._currentValue=fe)}var Me,Dt;function Pe(e){if(Me===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||"",Dt=-1<n.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
43
|
`+Me+e+Dt}var Hn=!1;function it(e,t){if(!e||Hn)return"";Hn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(X){var P=X}Reflect.construct(e,[],re)}else{try{re.call()}catch(X){P=X}e.call(re.prototype)}}else{try{throw Error()}catch(X){P=X}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(X){if(X&&P&&typeof X.stack=="string")return[X.stack,P.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 k=h.split(`
|
|
44
|
-
`),
|
|
45
|
-
`);for(o=i=0;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;for(;o<
|
|
44
|
+
`),F=E.split(`
|
|
45
|
+
`);for(o=i=0;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;for(;o<F.length&&!F[o].includes("DetermineComponentFrameRoot");)o++;if(i===k.length||o===F.length)for(i=k.length-1,o=F.length-1;1<=i&&0<=o&&k[i]!==F[o];)o--;for(;1<=i&&0<=o;i--,o--)if(k[i]!==F[o]){if(i!==1||o!==1)do if(i--,o--,0>o||k[i]!==F[o]){var ae=`
|
|
46
46
|
`+k[i].replace(" at new "," at ");return e.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",e.displayName)),ae}while(1<=i&&0<=o);break}}}finally{Hn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Pe(n):""}function fn(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return e.child!==t&&t!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return it(e.type,!1);case 11:return it(e.type.render,!1);case 1:return it(e.type,!0);case 31:return Pe("Activity");default:return""}}function Ot(e){try{var t="",n=null;do t+=fn(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
47
|
Error generating stack: `+i.message+`
|
|
48
|
-
`+i.stack}}var Gt=Object.prototype.hasOwnProperty,Wt=l.unstable_scheduleCallback,Lt=l.unstable_cancelCallback,vt=l.unstable_shouldYield,Ln=l.unstable_requestPaint,lt=l.unstable_now,mt=l.unstable_getCurrentPriorityLevel,At=l.unstable_ImmediatePriority,_n=l.unstable_UserBlockingPriority,hn=l.unstable_NormalPriority,qn=l.unstable_LowPriority,Sn=l.unstable_IdlePriority,wn=l.log,ra=l.unstable_setDisableYieldValue,zn=null,It=null;function pn(e){if(typeof wn=="function"&&ra(e),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(zn,e)}catch{}}var Rt=Math.clz32?Math.clz32:mn,Gn=Math.log,$n=Math.LN2;function mn(e){return e>>>=0,e===0?32:31-(Gn(e)/$n|0)|0}var He=256,gn=262144,Ht=4194304;function $t(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=$t(i):(h&=E,h!==0?o=$t(h):n||(n=E&~e,n!==0&&(o=$t(n))))):(E=i&~c,E!==0?o=$t(E):h!==0?o=$t(h):n||(n=i&~e,n!==0&&(o=$t(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 ne(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function be(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 je(){var e=Ht;return Ht<<=1,(Ht&62914560)===0&&(Ht=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(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,k=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var ae=31-Rt(n),re=1<<ae;E[ae]=0,k[ae]=-1;var P=Y[ae];if(P!==null)for(Y[ae]=null,ae=0;ae<P.length;ae++){var X=P[ae];X!==null&&(X.lane&=-536870913)}n&=~re}i!==0&&_e(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function _e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Rt(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-Rt(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Ct(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 jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Un(){var e=ee.p;return e!==0?e:(e=window.event,e===void 0?32:Lm(e.type))}function ba(e,t){var n=ee.p;try{return ee.p=e,t()}finally{ee.p=n}}var Pt=Math.random().toString(36).slice(2),St="__reactFiber$"+Pt,Kt="__reactProps$"+Pt,ut="__reactContainer$"+Pt,Yn="__reactEvents$"+Pt,ii="__reactListeners$"+Pt,ya="__reactHandles$"+Pt,va="__reactResources$"+Pt,Wn="__reactMarker$"+Pt;function Ea(e){delete e[St],delete e[Kt],delete e[Yn],delete e[ii],delete e[ya]}function Jt(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ym(e);e!==null;){if(n=e[St])return n;e=ym(e)}return t}e=n,n=e.parentNode}return null}function Fn(e){if(e=e[St]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function G(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function de(e){var t=e[va];return t||(t=e[va]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ge(e){e[Wn]=!0}var Te=new Set,Ye={};function un(e,t){oe(e,t),oe(e+"Capture",t)}function oe(e,t){for(Ye[e]=t,e=0;e<t.length;e++)Te.add(t[e])}var Re=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]*$"),Be={},Je={};function Mt(e){return Gt.call(Je,e)?!0:Gt.call(Be,e)?!1:Re.test(e)?Je[e]=!0:(Be[e]=!0,!1)}function en(e,t,n){if(Mt(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 bn(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 Zt(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 ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ut(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 li(e){if(!e._valueTracker){var t=Ut(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function si(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Ut(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ua(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 On(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ri(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=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?oi(e,h,ft(t)):n!=null?oi(e,h,ft(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=""+ft(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)){li(e);return}n=n!=null?""+ft(n):"",t=t!=null?""+ft(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),li(e)}function oi(e,t,n){t==="number"&&Ua(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tn(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=""+ft(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=""+ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ft(n):""}function Aa(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(he(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ft(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),li(e)}function W(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var w=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 j(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||w.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function te(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(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&&j(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&j(e,c,t[c])}function xe(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 Oe=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"]]),qe=/^[\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 et(e){return qe.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ue(){}var Ee=null;function De(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,We=null;function oa(e){var t=Fn(e);if(t&&(e=t.stateNode)){var n=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ri(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="'+On(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Kt]||null;if(!o)throw Error(s(90));ri(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&&si(i)}break e;case"textarea":Ia(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&tn(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,(Ve!==null||We!==null)&&(Mr(),Ve&&(t=Ve,e=We,We=Ve=null,oa(t),e)))for(t=0;t<e.length;t++)oa(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Kt]||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(s(231,t,typeof n));return n}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eo=!1;if(Ha)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){Eo=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{Eo=!1}var ci=null,_o=null,Ps=null;function df(){if(Ps)return Ps;var e,t=_o,n=t.length,i,o="value"in ci?ci.value:ci.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 Ps=o.slice(e,1<i?1-i:void 0)}function Ks(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 ff(){return!1}function Pn(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:ff,this.isPropagationStopped=ff,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 ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Pn(ji),Fl=v({},ji,{view:0,detail:0}),Ay=Pn(Fl),So,wo,Pl,Vs=v({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:To,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!==Pl&&(Pl&&e.type==="mousemove"?(So=e.screenX-Pl.screenX,wo=e.screenY-Pl.screenY):wo=So=0,Pl=e),So)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),hf=Pn(Vs),Ry=v({},Vs,{dataTransfer:0}),ky=Pn(Ry),Oy=v({},Fl,{relatedTarget:0}),No=Pn(Oy),Cy=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),My=Pn(Cy),Dy=v({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ly=Pn(Dy),zy=v({},ji,{data:0}),pf=Pn(zy),jy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Uy={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"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=By[e])?!!t[e]:!1}function To(){return Iy}var Hy=v({},Fl,{key:function(e){if(e.key){var t=jy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ks(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Uy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:To,charCode:function(e){return e.type==="keypress"?Ks(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ks(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qy=Pn(Hy),Gy=v({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mf=Pn(Gy),$y=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:To}),Yy=Pn($y),Fy=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),Py=Pn(Fy),Ky=v({},Vs,{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}),Zy=Pn(Ky),Xy=v({},ji,{newState:0,oldState:0}),Vy=Pn(Xy),Qy=[9,13,27,32],xo=Ha&&"CompositionEvent"in window,Kl=null;Ha&&"documentMode"in document&&(Kl=document.documentMode);var Wy=Ha&&"TextEvent"in window&&!Kl,gf=Ha&&(!xo||Kl&&8<Kl&&11>=Kl),bf=" ",yf=!1;function vf(e,t){switch(e){case"keyup":return Qy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ef(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function Jy(e,t){switch(e){case"compositionend":return Ef(t);case"keypress":return t.which!==32?null:(yf=!0,bf);case"textInput":return e=t.data,e===bf&&yf?null:e;default:return null}}function ev(e,t){if(il)return e==="compositionend"||!xo&&vf(e,t)?(e=df(),Ps=_o=ci=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 gf&&t.locale!=="ko"?null:t.data;default:return null}}var tv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tv[e.type]:t==="textarea"}function Sf(e,t,n,i){Ve?We?We.push(i):We=[i]:Ve=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 nv(e){im(e,0)}function Qs(e){var t=G(e);if(si(t))return e}function wf(e,t){if(e==="change")return t}var Nf=!1;if(Ha){var Ao;if(Ha){var Ro="oninput"in document;if(!Ro){var Tf=document.createElement("div");Tf.setAttribute("oninput","return;"),Ro=typeof Tf.oninput=="function"}Ao=Ro}else Ao=!1;Nf=Ao&&(!document.documentMode||9<document.documentMode)}function xf(){Zl&&(Zl.detachEvent("onpropertychange",Af),Xl=Zl=null)}function Af(e){if(e.propertyName==="value"&&Qs(Xl)){var t=[];Sf(t,Xl,e,De(e)),Fs(nv,t)}}function av(e,t,n){e==="focusin"?(xf(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",Af)):e==="focusout"&&xf()}function iv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(Xl)}function lv(e,t){if(e==="click")return Qs(t)}function sv(e,t){if(e==="input"||e==="change")return Qs(t)}function rv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:rv;function Vl(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(!Gt.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function Rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kf(e,t){var n=Rf(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=Rf(n)}}function Of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ua(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=Ua(e.document)}return t}function ko(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 ov=Ha&&"documentMode"in document&&11>=document.documentMode,ll=null,Oo=null,Ql=null,Co=!1;function Mf(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Co||ll==null||ll!==Ua(i)||(i=ll,"selectionStart"in i&&ko(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}),Ql&&Vl(Ql,i)||(Ql=i,i=Ir(Oo,"onSelect"),0<i.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ll)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},Mo={},Df={};Ha&&(Df=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(Mo[e])return Mo[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Df)return Mo[e]=t[n];return e}var Lf=Bi("animationend"),zf=Bi("animationiteration"),jf=Bi("animationstart"),cv=Bi("transitionrun"),uv=Bi("transitionstart"),dv=Bi("transitioncancel"),Uf=Bi("transitionend"),Bf=new Map,Do="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(" ");Do.push("scrollEnd");function _a(e,t){Bf.set(e,t),un(t,[e])}var Ws=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)},ca=[],rl=0,Lo=0;function Js(){for(var e=rl,t=Lo=rl=0;t<e;){var n=ca[t];ca[t++]=null;var i=ca[t];ca[t++]=null;var o=ca[t];ca[t++]=null;var c=ca[t];if(ca[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&&If(n,o,c)}}function er(e,t,n,i){ca[rl++]=e,ca[rl++]=t,ca[rl++]=n,ca[rl++]=i,Lo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function zo(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 If(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-Rt(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,Yc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function fv(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 ea(e,t,n,i){return new fv(e,t,n,i)}function jo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=ea(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 Hf(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")jo(e)&&(h=1);else if(typeof e=="string")h=bE(e,n,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=ea(31,n,t,o),e.elementType=q,e.lanes=c,e;case D:return Hi(n.children,o,c,t);case x:h=8,o|=24;break;case C:return e=ea(12,n,t,o|2),e.elementType=C,e.lanes=c,e;case V:return e=ea(13,n,t,o),e.elementType=V,e.lanes=c,e;case ie:return e=ea(19,n,t,o),e.elementType=ie,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:h=10;break e;case I:h=9;break e;case Q:h=11;break e;case H:h=14;break e;case R:h=16,i=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ea(h,n,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Hi(e,t,n,i){return e=ea(7,e,i,t),e.lanes=n,e}function Uo(e,t,n){return e=ea(6,e,null,t),e.lanes=n,e}function qf(e){var t=ea(18,null,null,0);return t.stateNode=e,t}function Bo(e,t,n){return t=ea(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gf=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=Gf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ot(t)},Gf.set(e,t),t)}return{value:e,source:t,stack:Ot(t)}}var cl=[],ul=0,ar=null,Wl=0,da=[],fa=0,ui=null,Ra=1,ka="";function Ga(e,t){cl[ul++]=Wl,cl[ul++]=ar,ar=e,Wl=t}function $f(e,t,n){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,ui=e;var i=Ra;e=ka;var o=32-Rt(i)-1;i&=~(1<<o),n+=1;var c=32-Rt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Ra=1<<32-Rt(t)+o|n<<o|i,ka=c+e}else Ra=1<<c|n<<o|i,ka=e}function Io(e){e.return!==null&&(Ga(e,1),$f(e,1,0))}function Ho(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Wl=cl[--ul],cl[ul]=null;for(;e===ui;)ui=da[--fa],da[fa]=null,ka=da[--fa],da[fa]=null,Ra=da[--fa],da[fa]=null}function Yf(e,t){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,Ra=t.id,ka=t.overflow,ui=e}var Nn=null,zt=null,ct=!1,di=null,ha=!1,qo=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(ua(t,e)),qo}function Ff(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[St]=e,t[Kt]=i,n){case"dialog":nt("cancel",t),nt("close",t);break;case"iframe":case"object":case"embed":nt("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)nt(_s[n],t);break;case"source":nt("error",t);break;case"img":case"image":case"link":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"input":nt("invalid",t),Ba(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":nt("invalid",t);break;case"textarea":nt("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||om(t.textContent,n)?(i.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),i.onScroll!=null&&nt("scroll",t),i.onScrollEnd!=null&&nt("scrollend",t),i.onClick!=null&&(t.onclick=ue),t=!0):t=!1,t||fi(e,!0)}function Pf(e){for(Nn=e.return;Nn;)switch(Nn.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:Nn=Nn.return}}function dl(e){if(e!==Nn)return!1;if(!ct)return Pf(e),ct=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||lu(e.type,e.memoizedProps)),n=!n),n&&zt&&fi(e),Pf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));zt=bm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));zt=bm(e)}else t===27?(t=zt,xi(e.type)?(e=uu,uu=null,zt=e):zt=t):zt=Nn?ma(e.stateNode.nextSibling):null;return!0}function qi(){zt=Nn=null,ct=!1}function Go(){var e=di;return e!==null&&(Vn===null?Vn=e:Vn.push.apply(Vn,e),di=null),e}function Jl(e){di===null?di=[e]:di.push(e)}var $o=S(null),Gi=null,$a=null;function hi(e,t,n){B($o,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=$o.current,z($o)}function Yo(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 Fo(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 k=0;k<t.length;k++)if(E.context===t[k]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Yo(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(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Yo(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 fl(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(s(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===Z.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&Fo(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 Tn(e){return Kf(Gi,e)}function lr(e,t){return Gi===null&&$i(e),Kf(e,t)}function Kf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$a===null){if(e===null)throw Error(s(308));$a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $a=$a.next=t;return n}var hv=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()})}},pv=l.unstable_scheduleCallback,mv=l.unstable_NormalPriority,nn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new hv,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&pv(mv,function(){e.controller.abort()})}var ts=null,Ko=0,hl=0,pl=null;function gv(e,t){if(ts===null){var n=ts=[];Ko=0,hl=Vc(),pl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Ko++,t.then(Zf,Zf),t}function Zf(){if(--Ko===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 bv(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 Xf=M.S;M.S=function(e,t){Mp=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&gv(e,t),Xf!==null&&Xf(e,t)};var Yi=S(null);function Zo(){var e=Yi.current;return e!==null?e:kt.pooledCache}function sr(e,t){t===null?B(Yi,Yi.current):B(Yi,t.pool)}function Vf(){var e=Zo();return e===null?null:{parent:nn._currentValue,pool:e}}var ml=Error(s(460)),Xo=Error(s(474)),rr=Error(s(542)),or={then:function(){}};function Qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ue,ue),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eh(e),e;default:if(typeof t.status=="string")t.then(ue,ue);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,eh(e),e}throw Pi=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"?(Pi=n,ml):n}}var Pi=null;function Jf(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function eh(e){if(e===ml||e===rr)throw Error(s(483))}var gl=null,ns=0;function cr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),Wf(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(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function th(e){function t(U,L){if(e){var $=U.deletions;$===null?(U.deletions=[L],U.flags|=16):$.push(L)}}function n(U,L){if(!e)return null;for(;L!==null;)t(U,L),L=L.sibling;return null}function i(U){for(var L=new Map;U!==null;)U.key!==null?L.set(U.key,U):L.set(U.index,U),U=U.sibling;return L}function o(U,L){return U=qa(U,L),U.index=0,U.sibling=null,U}function c(U,L,$){return U.index=$,e?($=U.alternate,$!==null?($=$.index,$<L?(U.flags|=67108866,L):$):(U.flags|=67108866,L)):(U.flags|=1048576,L)}function h(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function E(U,L,$,le){return L===null||L.tag!==6?(L=Uo($,U.mode,le),L.return=U,L):(L=o(L,$),L.return=U,L)}function k(U,L,$,le){var ze=$.type;return ze===D?ae(U,L,$.props.children,le,$.key):L!==null&&(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===R&&Fi(ze)===L.type)?(L=o(L,$.props),as(L,$),L.return=U,L):(L=nr($.type,$.key,$.props,null,U.mode,le),as(L,$),L.return=U,L)}function Y(U,L,$,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==$.containerInfo||L.stateNode.implementation!==$.implementation?(L=Bo($,U.mode,le),L.return=U,L):(L=o(L,$.children||[]),L.return=U,L)}function ae(U,L,$,le,ze){return L===null||L.tag!==7?(L=Hi($,U.mode,le,ze),L.return=U,L):(L=o(L,$),L.return=U,L)}function re(U,L,$){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Uo(""+L,U.mode,$),L.return=U,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case T:return $=nr(L.type,L.key,L.props,null,U.mode,$),as($,L),$.return=U,$;case N:return L=Bo(L,U.mode,$),L.return=U,L;case R:return L=Fi(L),re(U,L,$)}if(he(L)||me(L))return L=Hi(L,U.mode,$,null),L.return=U,L;if(typeof L.then=="function")return re(U,cr(L),$);if(L.$$typeof===A)return re(U,lr(U,L),$);ur(U,L)}return null}function P(U,L,$,le){var ze=L!==null?L.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ze!==null?null:E(U,L,""+$,le);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return $.key===ze?k(U,L,$,le):null;case N:return $.key===ze?Y(U,L,$,le):null;case R:return $=Fi($),P(U,L,$,le)}if(he($)||me($))return ze!==null?null:ae(U,L,$,le,null);if(typeof $.then=="function")return P(U,L,cr($),le);if($.$$typeof===A)return P(U,L,lr(U,$),le);ur(U,$)}return null}function X(U,L,$,le,ze){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return U=U.get($)||null,E(L,U,""+le,ze);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case T:return U=U.get(le.key===null?$:le.key)||null,k(L,U,le,ze);case N:return U=U.get(le.key===null?$:le.key)||null,Y(L,U,le,ze);case R:return le=Fi(le),X(U,L,$,le,ze)}if(he(le)||me(le))return U=U.get($)||null,ae(L,U,le,ze,null);if(typeof le.then=="function")return X(U,L,$,cr(le),ze);if(le.$$typeof===A)return X(U,L,$,lr(L,le),ze);ur(L,le)}return null}function ke(U,L,$,le){for(var ze=null,ht=null,Ce=L,Xe=L=0,ot=null;Ce!==null&&Xe<$.length;Xe++){Ce.index>Xe?(ot=Ce,Ce=null):ot=Ce.sibling;var pt=P(U,Ce,$[Xe],le);if(pt===null){Ce===null&&(Ce=ot);break}e&&Ce&&pt.alternate===null&&t(U,Ce),L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt,Ce=ot}if(Xe===$.length)return n(U,Ce),ct&&Ga(U,Xe),ze;if(Ce===null){for(;Xe<$.length;Xe++)Ce=re(U,$[Xe],le),Ce!==null&&(L=c(Ce,L,Xe),ht===null?ze=Ce:ht.sibling=Ce,ht=Ce);return ct&&Ga(U,Xe),ze}for(Ce=i(Ce);Xe<$.length;Xe++)ot=X(Ce,U,Xe,$[Xe],le),ot!==null&&(e&&ot.alternate!==null&&Ce.delete(ot.key===null?Xe:ot.key),L=c(ot,L,Xe),ht===null?ze=ot:ht.sibling=ot,ht=ot);return e&&Ce.forEach(function(Ci){return t(U,Ci)}),ct&&Ga(U,Xe),ze}function Ie(U,L,$,le){if($==null)throw Error(s(151));for(var ze=null,ht=null,Ce=L,Xe=L=0,ot=null,pt=$.next();Ce!==null&&!pt.done;Xe++,pt=$.next()){Ce.index>Xe?(ot=Ce,Ce=null):ot=Ce.sibling;var Ci=P(U,Ce,pt.value,le);if(Ci===null){Ce===null&&(Ce=ot);break}e&&Ce&&Ci.alternate===null&&t(U,Ce),L=c(Ci,L,Xe),ht===null?ze=Ci:ht.sibling=Ci,ht=Ci,Ce=ot}if(pt.done)return n(U,Ce),ct&&Ga(U,Xe),ze;if(Ce===null){for(;!pt.done;Xe++,pt=$.next())pt=re(U,pt.value,le),pt!==null&&(L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt);return ct&&Ga(U,Xe),ze}for(Ce=i(Ce);!pt.done;Xe++,pt=$.next())pt=X(Ce,U,Xe,pt.value,le),pt!==null&&(e&&pt.alternate!==null&&Ce.delete(pt.key===null?Xe:pt.key),L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt);return e&&Ce.forEach(function(RE){return t(U,RE)}),ct&&Ga(U,Xe),ze}function Tt(U,L,$,le){if(typeof $=="object"&&$!==null&&$.type===D&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case T:e:{for(var ze=$.key;L!==null;){if(L.key===ze){if(ze=$.type,ze===D){if(L.tag===7){n(U,L.sibling),le=o(L,$.props.children),le.return=U,U=le;break e}}else if(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===R&&Fi(ze)===L.type){n(U,L.sibling),le=o(L,$.props),as(le,$),le.return=U,U=le;break e}n(U,L);break}else t(U,L);L=L.sibling}$.type===D?(le=Hi($.props.children,U.mode,le,$.key),le.return=U,U=le):(le=nr($.type,$.key,$.props,null,U.mode,le),as(le,$),le.return=U,U=le)}return h(U);case N:e:{for(ze=$.key;L!==null;){if(L.key===ze)if(L.tag===4&&L.stateNode.containerInfo===$.containerInfo&&L.stateNode.implementation===$.implementation){n(U,L.sibling),le=o(L,$.children||[]),le.return=U,U=le;break e}else{n(U,L);break}else t(U,L);L=L.sibling}le=Bo($,U.mode,le),le.return=U,U=le}return h(U);case R:return $=Fi($),Tt(U,L,$,le)}if(he($))return ke(U,L,$,le);if(me($)){if(ze=me($),typeof ze!="function")throw Error(s(150));return $=ze.call($),Ie(U,L,$,le)}if(typeof $.then=="function")return Tt(U,L,cr($),le);if($.$$typeof===A)return Tt(U,L,lr(U,$),le);ur(U,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,L!==null&&L.tag===6?(n(U,L.sibling),le=o(L,$),le.return=U,U=le):(n(U,L),le=Uo($,U.mode,le),le.return=U,U=le),h(U)):n(U,L)}return function(U,L,$,le){try{ns=0;var ze=Tt(U,L,$,le);return gl=null,ze}catch(Ce){if(Ce===ml||Ce===rr)throw Ce;var ht=ea(29,Ce,null,U.mode);return ht.lanes=le,ht.return=U,ht}finally{}}}var Ki=th(!0),nh=th(!1),pi=!1;function Vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(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 mi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gi(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),If(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 Wo(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 Jo=!1;function ls(){if(Jo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,i){Jo=!1;var o=e.updateQueue;pi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var k=E,Y=k.next;k.next=null,h===null?c=Y:h.next=Y,h=k;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,E=ae.lastBaseUpdate,E!==h&&(E===null?ae.firstBaseUpdate=Y:E.next=Y,ae.lastBaseUpdate=k))}if(c!==null){var re=o.baseState;h=0,ae=Y=k=null,E=c;do{var P=E.lane&-536870913,X=P!==E.lane;if(X?(rt&P)===P:(i&P)===P){P!==0&&P===hl&&(Jo=!0),ae!==null&&(ae=ae.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ke=e,Ie=E;P=t;var Tt=n;switch(Ie.tag){case 1:if(ke=Ie.payload,typeof ke=="function"){re=ke.call(Tt,re,P);break e}re=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ie.payload,P=typeof ke=="function"?ke.call(Tt,re,P):ke,P==null)break e;re=v({},re,P);break e;case 2:pi=!0}}P=E.callback,P!==null&&(e.flags|=64,X&&(e.flags|=8192),X=o.callbacks,X===null?o.callbacks=[P]:X.push(P))}else X={lane:P,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ae===null?(Y=ae=X,k=re):ae=ae.next=X,h|=P;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;X=E,E=X.next,X.next=null,o.lastBaseUpdate=X,o.shared.pending=null}}while(!0);ae===null&&(k=re),o.baseState=k,o.firstBaseUpdate=Y,o.lastBaseUpdate=ae,c===null&&(o.shared.lanes=0),_i|=h,e.lanes=h,e.memoizedState=re}}function ah(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ih(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ah(n[e],t)}var bl=S(null),dr=S(0);function lh(e,t){e=Ja,B(dr,e),B(bl,t),Ja=e|t.baseLanes}function ec(){B(dr,Ja),B(bl,bl.current)}function tc(){Ja=dr.current,z(bl),z(dr)}var ta=S(null),pa=null;function bi(e){var t=e.alternate;B(Xt,Xt.current&1),B(ta,e),pa===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(pa=e)}function nc(e){B(Xt,Xt.current),B(ta,e),pa===null&&(pa=e)}function sh(e){e.tag===22?(B(Xt,Xt.current),B(ta,e),pa===null&&(pa=e)):yi()}function yi(){B(Xt,Xt.current),B(ta,ta.current)}function na(e){z(ta),pa===e&&(pa=null),z(Xt)}var Xt=S(0);function fr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ou(n)||cu(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,Ke=null,wt=null,an=null,hr=!1,yl=!1,Zi=!1,pr=0,rs=0,vl=null,yv=0;function Yt(){throw Error(s(321))}function ac(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 ic(e,t,n,i,o,c){return Fa=c,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?$h:vc,Zi=!1,c=n(i,o),Zi=!1,yl&&(c=oh(t,n,i,o)),rh(e),c}function rh(e){M.H=us;var t=wt!==null&&wt.next!==null;if(Fa=0,an=wt=Ke=null,hr=!1,rs=0,vl=null,t)throw Error(s(300));e===null||ln||(e=e.dependencies,e!==null&&ir(e)&&(ln=!0))}function oh(e,t,n,i){Ke=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(s(301));if(o+=1,an=wt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}M.H=Yh,c=t(n,i)}while(yl);return c}function vv(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(wt!==null?wt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function lc(){var e=pr!==0;return pr=0,e}function sc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rc(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,an=wt=Ke=null,yl=!1,rs=pr=0,vl=null}function Bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?Ke.memoizedState=an=e:an=an.next=e,an}function Vt(){if(wt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=wt.next;var t=an===null?Ke.memoizedState:an.next;if(t!==null)an=t,wt=e;else{if(e===null)throw Ke.alternate===null?Error(s(467)):Error(s(310));wt=e,e={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},an===null?Ke.memoizedState=an=e:an=an.next=e}return an}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Wf(vl,e,t),t=Ke,(an===null?t.memoizedState:an.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?$h:vc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===A)return Tn(e)}throw Error(s(438,String(e)))}function oc(e){var t=null,n=Ke.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ke.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(),Ke.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]=J;return t.index++,n}function Pa(e,t){return typeof t=="function"?t(e):t}function br(e){var t=Vt();return cc(t,wt,e)}function cc(e,t,n){var i=e.queue;if(i===null)throw Error(s(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,k=null,Y=t,ae=!1;do{var re=Y.lane&-536870913;if(re!==Y.lane?(rt&re)===re:(Fa&re)===re){var P=Y.revertLane;if(P===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),re===hl&&(ae=!0);else if((Fa&P)===P){Y=Y.next,P===hl&&(ae=!0);continue}else re={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},k===null?(E=k=re,h=c):k=k.next=re,Ke.lanes|=P,_i|=P;re=Y.action,Zi&&n(c,re),c=Y.hasEagerState?Y.eagerState:n(c,re)}else P={lane:re,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},k===null?(E=k=P,h=c):k=k.next=P,Ke.lanes|=re,_i|=re;Y=Y.next}while(Y!==null&&Y!==t);if(k===null?h=c:k.next=E,!Jn(c,e.memoizedState)&&(ln=!0,ae&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=k,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function uc(e){var t=Vt(),n=t.queue;if(n===null)throw Error(s(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)||(ln=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function ch(e,t,n){var i=Ke,o=Vt(),c=ct;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Jn((wt||o).memoizedState,n);if(h&&(o.memoizedState=n,ln=!0),o=o.queue,hc(fh.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||an!==null&&an.memoizedState.tag&1){if(i.flags|=2048,El(9,{destroy:void 0},dh.bind(null,i,o,n,t),null),kt===null)throw Error(s(349));c||(Fa&127)!==0||uh(i,t,n)}return n}function uh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ke.updateQueue,t===null?(t=mr(),Ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dh(e,t,n,i){t.value=n,t.getSnapshot=i,hh(t)&&ph(e)}function fh(e,t,n){return n(function(){hh(t)&&ph(e)})}function hh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function ph(e){var t=Ii(e,2);t!==null&&Qn(t,e,2)}function dc(e){var t=Bn();if(typeof e=="function"){var n=e;if(e=n(),Zi){pn(!0);try{n()}finally{pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t}function mh(e,t,n,i){return e.baseState=n,cc(e,wt,typeof i=="function"?i:Pa)}function Ev(e,t,n,i,o){if(Er(e))throw Error(s(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)}};M.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,gh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function gh(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=M.T,h={};M.T=h;try{var E=n(o,i),k=M.S;k!==null&&k(h,E),bh(e,t,E)}catch(Y){fc(e,t,Y)}finally{c!==null&&h.types!==null&&(c.types=h.types),M.T=c}}else try{c=n(o,i),bh(e,t,c)}catch(Y){fc(e,t,Y)}}function bh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){yh(e,t,i)},function(i){return fc(e,t,i)}):yh(e,t,n)}function yh(e,t,n){t.status="fulfilled",t.value=n,vh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gh(e,n)))}function fc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,vh(t),t=t.next;while(t!==i)}e.action=null}function vh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Eh(e,t){return t}function _h(e,t){if(ct){var n=kt.formState;if(n!==null){e:{var i=Ke;if(ct){if(zt){t:{for(var o=zt,c=ha;o.nodeType!==8;){if(!c){o=null;break t}if(o=ma(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){zt=ma(o.nextSibling),i=o.data==="F!";break e}}fi(i)}i=!1}i&&(t=n[0])}}return n=Bn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:t},n.queue=i,n=Hh.bind(null,Ke,i),i.dispatch=n,i=dc(!1),c=yc.bind(null,Ke,!1,i.queue),i=Bn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=Ev.bind(null,Ke,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function Sh(e){var t=Vt();return wh(t,wt,e)}function wh(e,t,n){if(t=cc(e,t,Eh)[0],e=br(Pa)[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=Vt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ke.flags|=2048,El(9,{destroy:void 0},_v.bind(null,o,n),null)),[i,c,e]}function _v(e,t){e.action=t}function Nh(e){var t=Vt(),n=wt;if(n!==null)return wh(t,n,e);Vt(),t=t.memoizedState,n=Vt();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=Ke.updateQueue,t===null&&(t=mr(),Ke.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 Th(){return Vt().memoizedState}function yr(e,t,n,i){var o=Bn();Ke.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,i===void 0?null:i)}function vr(e,t,n,i){var o=Vt();i=i===void 0?null:i;var c=o.memoizedState.inst;wt!==null&&i!==null&&ac(i,wt.memoizedState.deps)?o.memoizedState=El(t,c,n,i):(Ke.flags|=e,o.memoizedState=El(1|t,c,n,i))}function xh(e,t){yr(8390656,8,e,t)}function hc(e,t){vr(2048,8,e,t)}function Sv(e){Ke.flags|=4;var t=Ke.updateQueue;if(t===null)t=mr(),Ke.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ah(e){var t=Vt().memoizedState;return Sv({ref:t,nextImpl:e}),function(){if((gt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Rh(e,t){return vr(4,2,e,t)}function kh(e,t){return vr(4,4,e,t)}function Oh(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 Ch(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,Oh.bind(null,t,e),n)}function pc(){}function Mh(e,t){var n=Vt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&ac(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Dh(e,t){var n=Vt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&ac(t,i[1]))return i[0];if(i=e(),Zi){pn(!0);try{e()}finally{pn(!1)}}return n.memoizedState=[i,t],i}function mc(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(rt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Lp(),Ke.lanes|=e,_i|=e,n)}function Lh(e,t,n,i){return Jn(n,t)?n:bl.current!==null?(e=mc(e,n,i),Jn(e,t)||(ln=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(rt&261930)===0?(ln=!0,e.memoizedState=n):(e=Lp(),Ke.lanes|=e,_i|=e,t)}function zh(e,t,n,i,o){var c=ee.p;ee.p=c!==0&&8>c?c:8;var h=M.T,E={};M.T=E,yc(e,!1,t,n);try{var k=o(),Y=M.S;if(Y!==null&&Y(E,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var ae=bv(k,i);cs(e,t,ae,la(e))}else cs(e,t,i,la(e))}catch(re){cs(e,t,{then:function(){},status:"rejected",reason:re},la())}finally{ee.p=c,h!==null&&E.types!==null&&(h.types=E.types),M.T=h}}function wv(){}function gc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var o=jh(e).queue;zh(e,o,t,fe,n===null?wv:function(){return Uh(e),n(i)})}function jh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Uh(e){var t=jh(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},la())}function bc(){return Tn(xs)}function Bh(){return Vt().memoizedState}function Ih(){return Vt().memoizedState}function Nv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=la();e=mi(n);var i=gi(t,e,n);i!==null&&(Qn(i,t,n),is(i,t,n)),t={cache:Po()},e.payload=t;return}t=t.return}}function Tv(e,t,n){var i=la();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?qh(t,n):(n=zo(e,t,n,i),n!==null&&(Qn(n,e,i),Gh(n,t,i)))}function Hh(e,t,n){var i=la();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))qh(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),kt===null&&Js(),!1}catch{}finally{}if(n=zo(e,t,o,i),n!==null)return Qn(n,e,i),Gh(n,t,i),!0}return!1}function yc(e,t,n,i){if(i={lane:2,revertLane:Vc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(s(479))}else t=zo(e,n,i,2),t!==null&&Qn(t,e,2)}function Er(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function qh(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 Gh(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:Tn,use:gr,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};us.useEffectEvent=Yt;var $h={readContext:Tn,use:gr,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:Tn,useEffect:xh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,Oh.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=Bn();t=t===void 0?null:t;var i=e();if(Zi){pn(!0);try{e()}finally{pn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Bn();if(n!==void 0){var o=n(t);if(Zi){pn(!0);try{n(t)}finally{pn(!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=Tv.bind(null,Ke,e),[i.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:function(e){e=dc(e);var t=e.queue,n=Hh.bind(null,Ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:pc,useDeferredValue:function(e,t){var n=Bn();return mc(n,e,t)},useTransition:function(){var e=dc(!1);return e=zh.bind(null,Ke,e.queue,!0,!1),Bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ke,o=Bn();if(ct){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),kt===null)throw Error(s(349));(rt&127)!==0||uh(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,xh(fh.bind(null,i,c,e),[e]),i.flags|=2048,El(9,{destroy:void 0},dh.bind(null,i,c,n,t),null),n},useId:function(){var e=Bn(),t=kt.identifierPrefix;if(ct){var n=ka,i=Ra;n=(i&~(1<<32-Rt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=yv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bc,useFormState:_h,useActionState:_h,useOptimistic:function(e){var t=Bn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=yc.bind(null,Ke,!0,n),n.dispatch=t,[e,t]},useMemoCache:oc,useCacheRefresh:function(){return Bn().memoizedState=Nv.bind(null,Ke)},useEffectEvent:function(e){var t=Bn(),n={impl:e};return t.memoizedState=n,function(){if((gt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},vc={readContext:Tn,use:gr,useCallback:Mh,useContext:Tn,useEffect:hc,useImperativeHandle:Ch,useInsertionEffect:Rh,useLayoutEffect:kh,useMemo:Dh,useReducer:br,useRef:Th,useState:function(){return br(Pa)},useDebugValue:pc,useDeferredValue:function(e,t){var n=Vt();return Lh(n,wt.memoizedState,e,t)},useTransition:function(){var e=br(Pa)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:ch,useId:Bh,useHostTransitionStatus:bc,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var n=Vt();return mh(n,wt,e,t)},useMemoCache:oc,useCacheRefresh:Ih};vc.useEffectEvent=Ah;var Yh={readContext:Tn,use:gr,useCallback:Mh,useContext:Tn,useEffect:hc,useImperativeHandle:Ch,useInsertionEffect:Rh,useLayoutEffect:kh,useMemo:Dh,useReducer:uc,useRef:Th,useState:function(){return uc(Pa)},useDebugValue:pc,useDeferredValue:function(e,t){var n=Vt();return wt===null?mc(n,e,t):Lh(n,wt.memoizedState,e,t)},useTransition:function(){var e=uc(Pa)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:ch,useId:Bh,useHostTransitionStatus:bc,useFormState:Nh,useActionState:Nh,useOptimistic:function(e,t){var n=Vt();return wt!==null?mh(n,wt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:oc,useCacheRefresh:Ih};Yh.useEffectEvent=Ah;function Ec(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 _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=la(),o=mi(i);o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,i),t!==null&&(Qn(t,e,i),is(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=la(),o=mi(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,i),t!==null&&(Qn(t,e,i),is(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=la(),i=mi(n);i.tag=2,t!=null&&(i.callback=t),t=gi(e,i,n),t!==null&&(Qn(t,e,n),is(t,e,n))}};function Fh(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?!Vl(n,i)||!Vl(o,c):!0}function Ph(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&&_c.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 Kh(e){Ws(e)}function Zh(e){console.error(e)}function Xh(e){Ws(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Vh(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 Sc(e,t,n){return n=mi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Qh(e){return e=mi(e),e.tag=3,e}function Wh(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(){Vh(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Vh(t,n,i),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function xv(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&fl(t,n,o,!0),n=ta.current,n!==null){switch(n.tag){case 31:case 13:return pa===null?Dr():n.alternate===null&&Ft===0&&(Ft=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),Kc(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)),Kc(e,i,o)),!1}throw Error(s(435,n.tag))}return Kc(e,i,o),Dr(),!1}if(ct)return t=ta.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==qo&&(e=Error(s(422),{cause:i}),Jl(ua(e,n)))):(i!==qo&&(t=Error(s(423),{cause:i}),Jl(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=ua(i,n),o=Sc(e.stateNode,i,o),Wo(e,o),Ft!==4&&(Ft=2)),!1;var c=Error(s(520),{cause:i});if(c=ua(c,n),ys===null?ys=[c]:ys.push(c),Ft!==4&&(Ft=2),t===null)return!0;i=ua(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Sc(n.stateNode,i,e),Wo(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"&&(Si===null||!Si.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Qh(o),Wh(o,e,n,i),Wo(n,o),!1}n=n.return}while(n!==null);return!1}var wc=Error(s(461)),ln=!1;function xn(e,t,n,i){t.child=e===null?nh(t,null,n,i):Ki(t,e.child,n,i)}function Jh(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=ic(e,t,n,h,c,o),E=lc(),e!==null&&!ln?(sc(e,t,o),Ka(e,t,o)):(ct&&E&&Io(t),t.flags|=1,xn(e,t,i,o),t.child)}function ep(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!jo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,tp(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,!Cc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Vl,n(h,i)&&e.ref===t.ref)return Ka(e,t,o)}return t.flags|=1,e=qa(c,i),e.ref=t.ref,e.return=t,t.child=e}function tp(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Vl(c,i)&&e.ref===t.ref)if(ln=!1,t.pendingProps=i=c,Cc(e,o))(e.flags&131072)!==0&&(ln=!0);else return t.lanes=e.lanes,Ka(e,t,o)}return Nc(e,t,n,i,o)}function np(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 ap(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?lh(t,c):ec(),sh(t);else return i=t.lanes=536870912,ap(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(sr(t,c.cachePool),lh(t,c),yi(),t.memoizedState=null):(e!==null&&sr(t,null),ec(),yi());return xn(e,t,o,n),t.child}function ds(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ap(e,t,n,i,o){var c=Zo();return c=c===null?null:{parent:nn._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),ec(),sh(t),e!==null&&fl(e,t,i,!0),t.childLanes=o,null}function Sr(e,t){return t=Nr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ip(e,t,n){return Ki(t,e.child,null,n),e=Sr(t,t.pendingProps),e.flags|=2,na(t),t.memoizedState=null,e}function Av(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ct){if(i.mode==="hidden")return e=Sr(t,i),t.lanes=536870912,ds(null,e);if(nc(t),(e=zt)?(e=gm(e,ha),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=qf(e),n.return=t,t.child=n,Nn=t,zt=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(nc(t),o)if(t.flags&256)t.flags&=-257,t=ip(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ln||fl(e,t,n,!1),o=(n&e.childLanes)!==0,ln||o){if(i=kt,i!==null&&(h=Ct(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Qn(i,e,h),wc;Dr(),t=ip(e,t,n)}else e=c.treeContext,zt=ma(h.nextSibling),Nn=t,ct=!0,di=null,ha=!1,e!==null&&Yf(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 wr(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Nc(e,t,n,i,o){return $i(t),n=ic(e,t,n,i,void 0,o),i=lc(),e!==null&&!ln?(sc(e,t,o),Ka(e,t,o)):(ct&&i&&Io(t),t.flags|=1,xn(e,t,n,o),t.child)}function lp(e,t,n,i,o,c){return $i(t),t.updateQueue=null,n=oh(t,i,n,o),rh(e),i=lc(),e!==null&&!ln?(sc(e,t,c),Ka(e,t,c)):(ct&&i&&Io(t),t.flags|=1,xn(e,t,n,c),t.child)}function sp(e,t,n,i,o){if($i(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=Tn(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=_c,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Vo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?Tn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Ec(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&&_c.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,k=Xi(n,E);c.props=k;var Y=c.context,ae=n.contextType;h=ol,typeof ae=="object"&&ae!==null&&(h=Tn(ae));var re=n.getDerivedStateFromProps;ae=typeof re=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ae||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||Y!==h)&&Ph(t,c,i,h),pi=!1;var P=t.memoizedState;c.state=P,ss(t,i,c,o),ls(),Y=t.memoizedState,E||P!==Y||pi?(typeof re=="function"&&(Ec(t,n,re,i),Y=t.memoizedState),(k=pi||Fh(t,n,k,i,P,Y,h))?(ae||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=Y),c.props=i,c.state=Y,c.context=h,i=k):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Qo(e,t),h=t.memoizedProps,ae=Xi(n,h),c.props=ae,re=t.pendingProps,P=c.context,Y=n.contextType,k=ol,typeof Y=="object"&&Y!==null&&(k=Tn(Y)),E=n.getDerivedStateFromProps,(Y=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==re||P!==k)&&Ph(t,c,i,k),pi=!1,P=t.memoizedState,c.state=P,ss(t,i,c,o),ls();var X=t.memoizedState;h!==re||P!==X||pi||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(Ec(t,n,E,i),X=t.memoizedState),(ae=pi||Fh(t,n,ae,i,P,X,k)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(Y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,X,k),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,X,k)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=X),c.props=i,c.state=X,c.context=k,i=ae):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,wr(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=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):xn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ka(e,t,o),e}function rp(e,t,n,i){return qi(),t.flags|=256,xn(e,t,n,i),t.child}var Tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:Vf()}}function Ac(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ia),e}function op(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:(Xt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ct){if(o?bi(t):yi(),(e=zt)?(e=gm(e,ha),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=qf(e),n.return=t,t.child=n,Nn=t,zt=null)):e=null,e===null)throw fi(t);return cu(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,o?(yi(),o=t.mode,E=Nr({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=xc(n),i.childLanes=Ac(e,h,n),t.memoizedState=Tc,ds(null,i)):(bi(t),Rc(t,E))}var k=e.memoizedState;if(k!==null&&(E=k.dehydrated,E!==null)){if(c)t.flags&256?(bi(t),t.flags&=-257,t=kc(e,t,n)):t.memoizedState!==null?(yi(),t.child=e.child,t.flags|=128,t=null):(yi(),E=i.fallback,o=t.mode,i=Nr({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,Ki(t,e.child,null,n),i=t.child,i.memoizedState=xc(n),i.childLanes=Ac(e,h,n),t.memoizedState=Tc,t=ds(null,i));else if(bi(t),cu(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var Y=h.dgst;h=Y,i=Error(s(419)),i.stack="",i.digest=h,Jl({value:i,source:null,stack:null}),t=kc(e,t,n)}else if(ln||fl(e,t,n,!1),h=(n&e.childLanes)!==0,ln||h){if(h=kt,h!==null&&(i=Ct(h,n),i!==0&&i!==k.retryLane))throw k.retryLane=i,Ii(e,i),Qn(h,e,i),wc;ou(E)||Dr(),t=kc(e,t,n)}else ou(E)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,zt=ma(E.nextSibling),Nn=t,ct=!0,di=null,ha=!1,e!==null&&Yf(t,e),t=Rc(t,i.children),t.flags|=4096);return t}return o?(yi(),E=i.fallback,o=t.mode,k=e.child,Y=k.sibling,i=qa(k,{mode:"hidden",children:i.children}),i.subtreeFlags=k.subtreeFlags&65011712,Y!==null?E=qa(Y,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,i.return=t,i.sibling=E,t.child=i,ds(null,i),i=t.child,E=e.child.memoizedState,E===null?E=xc(n):(o=E.cachePool,o!==null?(k=nn._currentValue,o=o.parent!==k?{parent:k,pool:k}:o):o=Vf(),E={baseLanes:E.baseLanes|n,cachePool:o}),i.memoizedState=E,i.childLanes=Ac(e,h,n),t.memoizedState=Tc,ds(e.child,i)):(bi(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 Rc(e,t){return t=Nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nr(e,t){return e=ea(22,e,null,t),e.lanes=0,e}function kc(e,t,n){return Ki(t,e.child,null,n),e=Rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Yo(e.return,t,n)}function Oc(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 up(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=Xt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,B(Xt,h),xn(e,t,i,n),i=ct?Wl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cp(e,n,t);else if(e.tag===19)cp(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&&fr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Oc(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&&fr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Oc(t,!0,n,null,c,i);break;case"together":Oc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(fl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(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 Cc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function Rv(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),hi(t,nn,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,nc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(bi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?op(e,t,n):(bi(t),e=Ka(e,t,n),e!==null?e.sibling:null);bi(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(fl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return up(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Xt,Xt.current),i)break;return null;case 22:return t.lanes=0,np(e,t,n,t.pendingProps);case 24:hi(t,nn,e.memoizedState.cache)}return Ka(e,t,n)}function dp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ln=!0;else{if(!Cc(e,n)&&(t.flags&128)===0)return ln=!1,Rv(e,t,n);ln=(e.flags&131072)!==0}else ln=!1,ct&&(t.flags&1048576)!==0&&$f(t,Wl,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")jo(e)?(i=Xi(e,i),t.tag=1,t=sp(null,t,e,i,n)):(t.tag=0,t=Nc(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===Q){t.tag=11,t=Jh(null,t,e,i,n);break e}else if(o===H){t.tag=14,t=ep(null,t,e,i,n);break e}}throw t=Se(e)||e,Error(s(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Xi(i,t.pendingProps),sp(e,t,i,o,n);case 3:e:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,Qo(e,t),ss(t,i,null,n);var h=t.memoizedState;if(i=h.cache,hi(t,nn,i),i!==c.cache&&Fo(t,[nn],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=rp(e,t,i,n);break e}else if(i!==o){o=ua(Error(s(424)),t),Jl(o),t=rp(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(zt=ma(e.firstChild),Nn=t,ct=!0,di=null,ha=!0,n=nh(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),i===o){t=Ka(e,t,n);break e}xn(e,t,i,n)}t=t.child}return t;case 26:return wr(e,t),e===null?(n=Sm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ct||(n=t.type,e=t.pendingProps,i=Hr(ve.current).createElement(n),i[St]=t,i[Kt]=e,An(i,n,e),ge(i),t.stateNode=i):t.memoizedState=Sm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ct&&(i=t.stateNode=vm(t.type,t.pendingProps,ve.current),Nn=t,ha=!0,o=zt,xi(t.type)?(uu=o,zt=ma(i.firstChild)):zt=o),xn(e,t,t.pendingProps.children,n),wr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ct&&((o=i=zt)&&(i=iE(i,t.type,t.pendingProps,ha),i!==null?(t.stateNode=i,Nn=t,zt=ma(i.firstChild),ha=!1,o=!0):o=!1),o||fi(t)),Ge(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,lu(o,c)?i=null:h!==null&&lu(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=ic(e,t,vv,null,null,n),xs._currentValue=o),wr(e,t),xn(e,t,i,n),t.child;case 6:return e===null&&ct&&((e=n=zt)&&(n=lE(n,t.pendingProps,ha),n!==null?(t.stateNode=n,Nn=t,zt=null,e=!0):e=!1),e||fi(t)),null;case 13:return op(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ki(t,null,i,n):xn(e,t,i,n),t.child;case 11:return Jh(e,t,t.type,t.pendingProps,n);case 7:return xn(e,t,t.pendingProps,n),t.child;case 8:return xn(e,t,t.pendingProps.children,n),t.child;case 12:return xn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,hi(t,t.type,i.value),xn(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,$i(t),o=Tn(o),i=i(o),t.flags|=1,xn(e,t,i,n),t.child;case 14:return ep(e,t,t.type,t.pendingProps,n);case 15:return tp(e,t,t.type,t.pendingProps,n);case 19:return up(e,t,n);case 31:return Av(e,t,n);case 22:return np(e,t,n,t.pendingProps);case 24:return $i(t),i=Tn(nn),e===null?(o=Zo(),o===null&&(o=kt,c=Po(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},Vo(t),hi(t,nn,o)):((e.lanes&n)!==0&&(Qo(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),hi(t,nn,i)):(i=c.cache,hi(t,nn,i),i!==o.cache&&Fo(t,[nn],n,!0))),xn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Za(e){e.flags|=4}function Mc(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(Bp())e.flags|=8192;else throw Pi=or,Xo}else e.flags&=-16777217}function fp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Am(t))if(Bp())e.flags|=8192;else throw Pi=or,Xo}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?je():536870912,e.lanes|=t,Nl|=t)}function fs(e,t){if(!ct)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 jt(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 kv(e,t,n){var i=t.pendingProps;switch(Ho(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(t),null;case 1:return jt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ya(nn),Ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dl(t)?Za(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Go())),jt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Za(t),c!==null?(jt(t),fp(t,c)):(jt(t),Mc(t,o,null,i,n))):c?c!==e.memoizedState?(Za(t),jt(t),fp(t,c)):(jt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Za(t),jt(t),Mc(t,o,e,i,n)),null;case 27:if($e(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return jt(t),null}e=se.current,dl(t)?Ff(t):(e=vm(o,i,n),t.stateNode=e,Za(t))}return jt(t),null;case 5:if($e(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return jt(t),null}if(c=se.current,dl(t))Ff(t);else{var h=Hr(ve.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[St]=t,c[Kt]=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(An(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 jt(t),Mc(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(s(166));if(e=ve.current,dl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=Nn,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||om(e.nodeValue,n)),e||fi(t,!0)}else e=Hr(e).createTextNode(i),e[St]=t,t.stateNode=e}return jt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=dl(t),n!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[St]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;jt(t),e=!1}else n=Go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(na(t),t):(na(t),null);if((t.flags&128)!==0)throw Error(s(558))}return jt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=dl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[St]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;jt(t),o=!1}else o=Go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(na(t),t):(na(t),null)}return na(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),Tr(t,t.updateQueue),jt(t),null);case 4:return Ne(),e===null&&eu(t.stateNode.containerInfo),jt(t),null;case 10:return Ya(t.type),jt(t),null;case 19:if(z(Xt),i=t.memoizedState,i===null)return jt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)fs(i,!1);else{if(Ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fr(e),c!==null){for(t.flags|=128,fs(i,!1),e=c.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Hf(n,e),n=n.sibling;return B(Xt,Xt.current&1|2),ct&&Ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&<()>Or&&(t.flags|=128,o=!0,fs(i,!1),t.lanes=4194304)}else{if(!o)if(e=fr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),fs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!ct)return jt(t),null}else 2*lt()-i.renderingStartTime>Or&&n!==536870912&&(t.flags|=128,o=!0,fs(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=lt(),e.sibling=null,n=Xt.current,B(Xt,o?n&1|2:n&1),ct&&Ga(t,i.treeForkCount),e):(jt(t),null);case 22:case 23:return na(t),tc(),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&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),n=t.updateQueue,n!==null&&Tr(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&&z(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(nn),jt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ov(e,t){switch(Ho(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(nn),Ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(na(t),t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(Xt),null;case 4:return Ne(),null;case 10:return Ya(t.type),null;case 22:case 23:return na(t),tc(),e!==null&&z(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(nn),null;case 25:return null;default:return null}}function hp(e,t){switch(Ho(t),t.tag){case 3:Ya(nn),Ne();break;case 26:case 27:case 5:$e(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&na(t);break;case 13:na(t);break;case 19:z(Xt);break;case 10:Ya(t.type);break;case 22:case 23:na(t),tc(),e!==null&&z(Yi);break;case 24:Ya(nn)}}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 vi(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 k=n,Y=E;try{Y()}catch(ae){_t(o,k,ae)}}}i=i.next}while(i!==c)}}catch(ae){_t(t,t.return,ae)}}function pp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ih(t,n)}catch(i){_t(e,e.return,i)}}}function mp(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 Oa(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 gp(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 Dc(e,t,n){try{var i=e.stateNode;Wv(i,e.type,n,t),i[Kt]=t}catch(o){_t(e,e.return,o)}}function bp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xi(e.type)||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(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&&xi(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 zc(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=ue));else if(i!==4&&(i===27&&xi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(zc(e,t,n),e=e.sibling;e!==null;)zc(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&&xi(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 yp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);An(t,i,n),t[St]=e,t[Kt]=n}catch(c){_t(e,e.return,c)}}var Xa=!1,sn=!1,jc=!1,vp=typeof WeakSet=="function"?WeakSet:Set,yn=null;function Cv(e,t){if(e=e.containerInfo,au=Kr,e=Cf(e),ko(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,k=-1,Y=0,ae=0,re=e,P=null;t:for(;;){for(var X;re!==n||o!==0&&re.nodeType!==3||(E=h+o),re!==c||i!==0&&re.nodeType!==3||(k=h+i),re.nodeType===3&&(h+=re.nodeValue.length),(X=re.firstChild)!==null;)P=re,re=X;for(;;){if(re===e)break t;if(P===n&&++Y===o&&(E=h),P===c&&++ae===i&&(k=h),(X=re.nextSibling)!==null)break;re=P,P=re.parentNode}re=X}n=E===-1||k===-1?null:{start:E,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:e,selectionRange:n},Kr=!1,yn=t;yn!==null;)if(t=yn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yn=e;else for(;yn!==null;){switch(t=yn,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 ke=Xi(n.type,o);e=i.getSnapshotBeforeUpdate(ke,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ie){_t(n,n.return,Ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ru(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ru(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,yn=e;break}yn=t.return}}function Ep(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Qa(e,n),i&4&&hs(5,n);break;case 1:if(Qa(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&&pp(n),i&512&&ps(n,n.return);break;case 3:if(Qa(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{ih(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&i&4&&yp(n);case 26:case 5:Qa(e,n),t===null&&i&4&&gp(n),i&512&&ps(n,n.return);break;case 12:Qa(e,n);break;case 31:Qa(e,n),i&4&&wp(e,n);break;case 13:Qa(e,n),i&4&&Np(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Hv.bind(null,n),sE(e,n))));break;case 22:if(i=n.memoizedState!==null||Xa,!i){t=t!==null&&t.memoizedState!==null||sn,o=Xa;var c=sn;Xa=i,(sn=t)&&!c?Wa(e,n,(n.subtreeFlags&8772)!==0):Qa(e,n),Xa=o,sn=c}break;case 30:break;default:Qa(e,n)}}function _p(e){var t=e.alternate;t!==null&&(e.alternate=null,_p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ea(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 Bt=null,Kn=!1;function Va(e,t,n){for(n=n.child;n!==null;)Sp(e,t,n),n=n.sibling}function Sp(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(zn,n)}catch{}switch(n.tag){case 26:sn||Oa(n,t),Va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:sn||Oa(n,t);var i=Bt,o=Kn;xi(n.type)&&(Bt=n.stateNode,Kn=!1),Va(e,t,n),ws(n.stateNode),Bt=i,Kn=o;break;case 5:sn||Oa(n,t);case 6:if(i=Bt,o=Kn,Bt=null,Va(e,t,n),Bt=i,Kn=o,Bt!==null)if(Kn)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{Bt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:Bt!==null&&(Kn?(e=Bt,pm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):pm(Bt,n.stateNode));break;case 4:i=Bt,o=Kn,Bt=n.stateNode.containerInfo,Kn=!0,Va(e,t,n),Bt=i,Kn=o;break;case 0:case 11:case 14:case 15:vi(2,n,t),sn||vi(4,n,t),Va(e,t,n);break;case 1:sn||(Oa(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&mp(n,t,i)),Va(e,t,n);break;case 21:Va(e,t,n);break;case 22:sn=(i=sn)||n.memoizedState!==null,Va(e,t,n),sn=i;break;default:Va(e,t,n)}}function wp(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 Np(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 Mv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vp),t;default:throw Error(s(435,e.tag))}}function Ar(e,t){var n=Mv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=qv.bind(null,e,i);i.then(o,o)}})}function Zn(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(xi(E.type)){Bt=E.stateNode,Kn=!1;break e}break;case 5:Bt=E.stateNode,Kn=!1;break e;case 3:case 4:Bt=E.stateNode.containerInfo,Kn=!0;break e}E=E.return}if(Bt===null)throw Error(s(160));Sp(c,h,o),Bt=null,Kn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tp(t,e),t=t.sibling}var Sa=null;function Tp(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zn(t,e),Xn(e),i&4&&(vi(3,e,e.return),hs(3,e),vi(5,e,e.return));break;case 1:Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(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=Sa;if(Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(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[Wn]||c[St]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),An(c,i,n),c[St]=e,ge(c),i=c;break e;case"link":var h=Tm("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),An(c,i,n),o.head.appendChild(c);break;case"meta":if(h=Tm("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),An(c,i,n),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[St]=e,ge(c),i=c}e.stateNode=i}else xm(o,e.type,e.stateNode);else e.stateNode=Nm(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?xm(o,e.type,e.stateNode):Nm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Dc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),n!==null&&i&4&&Dc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),e.flags&32){o=e.stateNode;try{W(o,"")}catch(ke){_t(e,e.return,ke)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Dc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(jc=!0);break;case 6:if(Zn(t,e),Xn(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(ke){_t(e,e.return,ke)}}break;case 3:if($r=null,o=Sa,Sa=qr(t.containerInfo),Zn(t,e),Sa=o,Xn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(ke){_t(e,e.return,ke)}jc&&(jc=!1,xp(e));break;case 4:i=Sa,Sa=qr(e.stateNode.containerInfo),Zn(t,e),Xn(e),Sa=i;break;case 12:Zn(t,e),Xn(e);break;case 31:Zn(t,e),Xn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 13:Zn(t,e),Xn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(kr=lt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 22:o=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,Y=Xa,ae=sn;if(Xa=Y||o,sn=ae||k,Zn(t,e),sn=ae,Xa=Y,Xn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||k||Xa||sn||Vi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(c=k.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=k.stateNode;var re=k.memoizedProps.style,P=re!=null&&re.hasOwnProperty("display")?re.display:null;E.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ke){_t(k,k.return,ke)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=o?"":k.memoizedProps}catch(ke){_t(k,k.return,ke)}}}else if(t.tag===18){if(n===null){k=t;try{var X=k.stateNode;o?mm(X,!0):mm(k.stateNode,!1)}catch(ke){_t(k,k.return,ke)}}}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:Zn(t,e),Xn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 30:break;case 21:break;default:Zn(t,e),Xn(e)}}function Xn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(bp(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Lc(e);xr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(W(h,""),n.flags&=-33);var E=Lc(e);xr(e,E,h);break;case 3:case 4:var k=n.stateNode.containerInfo,Y=Lc(e);zc(e,Y,k);break;default:throw Error(s(161))}}catch(ae){_t(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ep(e,t.alternate,t),t=t.sibling}function Vi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vi(4,t,t.return),Vi(t);break;case 1:Oa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&mp(t,t.return,n),Vi(t);break;case 27:ws(t.stateNode);case 26:case 5:Oa(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function Wa(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:Wa(o,c,n),hs(4,c);break;case 1:if(Wa(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(Y){_t(i,i.return,Y)}if(i=c,o=i.updateQueue,o!==null){var E=i.stateNode;try{var k=o.shared.hiddenCallbacks;if(k!==null)for(o.shared.hiddenCallbacks=null,o=0;o<k.length;o++)ah(k[o],E)}catch(Y){_t(i,i.return,Y)}}n&&h&64&&pp(c),ps(c,c.return);break;case 27:yp(c);case 26:case 5:Wa(o,c,n),n&&i===null&&h&4&&gp(c),ps(c,c.return);break;case 12:Wa(o,c,n);break;case 31:Wa(o,c,n),n&&h&4&&wp(o,c);break;case 13:Wa(o,c,n),n&&h&4&&Np(o,c);break;case 22:c.memoizedState===null&&Wa(o,c,n),ps(c,c.return);break;case 30:break;default:Wa(o,c,n)}t=t.sibling}}function Uc(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 Bc(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 wa(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ap(e,t,n,i),t=t.sibling}function Ap(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:wa(e,t,n,i),o&2048&&hs(9,t);break;case 1:wa(e,t,n,i);break;case 3:wa(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){wa(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(k){_t(t,t.return,k)}}else wa(e,t,n,i);break;case 31:wa(e,t,n,i);break;case 13:wa(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?wa(e,t,n,i):ms(e,t):c._visibility&2?wa(e,t,n,i):(c._visibility|=2,_l(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Uc(h,t);break;case 24:wa(e,t,n,i),o&2048&&Bc(t.alternate,t);break;default:wa(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,k=i,Y=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,k,o),hs(8,h);break;case 23:break;case 22:var ae=h.stateNode;h.memoizedState!==null?ae._visibility&2?_l(c,h,E,k,o):ms(c,h):(ae._visibility|=2,_l(c,h,E,k,o)),o&&Y&2048&&Uc(h.alternate,h);break;case 24:_l(c,h,E,k,o),o&&Y&2048&&Bc(h.alternate,h);break;default:_l(c,h,E,k,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&&Uc(i.alternate,i);break;case 24:ms(n,i),o&2048&&Bc(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;)Rp(e,t,n),e=e.sibling}function Rp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&yE(n,Sa,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var i=Sa;Sa=qr(e.stateNode.containerInfo),Sl(e,t,n),Sa=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 kp(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];yn=i,Cp(i,e)}kp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Op(e),e=e.sibling}function Op(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&vi(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];yn=i,Cp(i,e)}kp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vi(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 Cp(e,t){for(;yn!==null;){var n=yn;switch(n.tag){case 0:case 11:case 15:vi(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,yn=i;else e:for(n=e;yn!==null;){i=yn;var o=i.sibling,c=i.return;if(_p(i),i===n){yn=null;break e}if(o!==null){o.return=c,yn=o;break e}yn=c}}}var Dv={getCacheForType:function(e){var t=Tn(nn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Tn(nn).controller.signal}},Lv=typeof WeakMap=="function"?WeakMap:Map,gt=0,kt=null,tt=null,rt=0,Et=0,aa=null,Ei=!1,wl=!1,Ic=!1,Ja=0,Ft=0,_i=0,Qi=0,Hc=0,ia=0,Nl=0,ys=null,Vn=null,qc=!1,kr=0,Mp=0,Or=1/0,Cr=null,Si=null,dn=0,wi=null,Tl=null,ei=0,Gc=0,$c=null,Dp=null,vs=0,Yc=null;function la(){return(gt&2)!==0&&rt!==0?rt&-rt:M.T!==null?Vc():Un()}function Lp(){if(ia===0)if((rt&536870912)===0||ct){var e=gn;gn<<=1,(gn&3932160)===0&&(gn=262144),ia=e}else ia=536870912;return e=ta.current,e!==null&&(e.flags|=32),ia}function Qn(e,t,n){(e===kt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Ni(e,rt,ia,!1)),st(e,n),((gt&2)===0||e!==kt)&&(e===kt&&((gt&2)===0&&(Qi|=n),Ft===4&&Ni(e,rt,ia,!1)),Ca(e))}function zp(e,t,n){if((gt&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ne(e,t),o=i?Uv(e,t):Pc(e,t,!0),c=i;do{if(o===0){wl&&!i&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!zv(n)){o=Pc(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 k=E.current.memoizedState.isDehydrated;if(k&&(xl(E,h).flags|=256),h=Pc(E,h,!1),h!==2){if(Ic&&!k){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Vn,Vn=o,c!==null&&(Vn===null?Vn=c:Vn.push.apply(Vn,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(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(i,t,ia,!Ei);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=kr+300-lt(),10<o)){if(Ni(i,t,ia,!Ei),O(i,0,!0)!==0)break e;ei=t,i.timeoutHandle=fm(jp.bind(null,i,n,Vn,Cr,qc,t,ia,Qi,Nl,Ei,c,"Throttled",-0,0),o);break e}jp(i,n,Vn,Cr,qc,t,ia,Qi,Nl,Ei,c,null,-0,0)}}break}while(!0);Ca(e)}function jp(e,t,n,i,o,c,h,E,k,Y,ae,re,P,X){if(e.timeoutHandle=-1,re=t.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ue},Rp(t,c,re);var ke=(c&62914560)===c?kr-lt():(c&4194048)===c?Mp-lt():0;if(ke=vE(re,ke),ke!==null){ei=c,e.cancelPendingCommit=ke(Yp.bind(null,e,t,c,n,i,o,h,E,k,ae,re,null,P,X)),Ni(e,c,h,!Y);return}}Yp(e,t,c,n,i,o,h,E,k)}function zv(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&=~Hc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Rt(o),h=1<<c;i[c]=-1,o&=~h}n!==0&&_e(e,n,t)}function Mr(){return(gt&6)===0?(Es(0),!1):!0}function Fc(){if(tt!==null){if(Et===0)var e=tt.return;else e=tt,$a=Gi=null,rc(e),gl=null,ns=0,e=tt;for(;e!==null;)hp(e.alternate,e),e=e.return;tt=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ei=0,Fc(),kt=e,tt=n=qa(e.current,null),rt=t,Et=0,aa=null,Ei=!1,wl=ne(e,t),Ic=!1,Nl=ia=Hc=Qi=_i=Ft=0,Vn=ys=null,qc=!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-Rt(i),c=1<<o;t|=e[o],i&=~c}return Ja=t,Js(),n}function Up(e,t){Ke=null,M.H=us,t===ml||t===rr?(t=Jf(),Et=3):t===Xo?(t=Jf(),Et=4):Et=t===wc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,aa=t,tt===null&&(Ft=1,_r(e,ua(t,e.current)))}function Bp(){var e=ta.current;return e===null?!0:(rt&4194048)===rt?pa===null:(rt&62914560)===rt||(rt&536870912)!==0?e===pa:!1}function Ip(){var e=M.H;return M.H=us,e===null?us:e}function Hp(){var e=M.A;return M.A=Dv,e}function Dr(){Ft=4,Ei||(rt&4194048)!==rt&&ta.current!==null||(wl=!0),(_i&134217727)===0&&(Qi&134217727)===0||kt===null||Ni(kt,rt,ia,!1)}function Pc(e,t,n){var i=gt;gt|=2;var o=Ip(),c=Hp();(kt!==e||rt!==t)&&(Cr=null,xl(e,t)),t=!1;var h=Ft;e:do try{if(Et!==0&&tt!==null){var E=tt,k=aa;switch(Et){case 8:Fc(),h=6;break e;case 3:case 2:case 9:case 6:ta.current===null&&(t=!0);var Y=Et;if(Et=0,aa=null,Al(e,E,k,Y),n&&wl){h=0;break e}break;default:Y=Et,Et=0,aa=null,Al(e,E,k,Y)}}jv(),h=Ft;break}catch(ae){Up(e,ae)}while(!0);return t&&e.shellSuspendCounter++,$a=Gi=null,gt=i,M.H=o,M.A=c,tt===null&&(kt=null,rt=0,Js()),h}function jv(){for(;tt!==null;)qp(tt)}function Uv(e,t){var n=gt;gt|=2;var i=Ip(),o=Hp();kt!==e||rt!==t?(Cr=null,Or=lt()+500,xl(e,t)):wl=ne(e,t);e:do try{if(Et!==0&&tt!==null){t=tt;var c=aa;t:switch(Et){case 1:Et=0,aa=null,Al(e,t,c,1);break;case 2:case 9:if(Qf(c)){Et=0,aa=null,Gp(t);break}t=function(){Et!==2&&Et!==9||kt!==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:Qf(c)?(Et=0,aa=null,Gp(t)):(Et=0,aa=null,Al(e,t,c,7));break;case 5:var h=null;switch(tt.tag){case 26:h=tt.memoizedState;case 5:case 27:var E=tt;if(h?Am(h):E.stateNode.complete){Et=0,aa=null;var k=E.sibling;if(k!==null)tt=k;else{var Y=E.return;Y!==null?(tt=Y,Lr(Y)):tt=null}break t}}Et=0,aa=null,Al(e,t,c,5);break;case 6:Et=0,aa=null,Al(e,t,c,6);break;case 8:Fc(),Ft=6;break e;default:throw Error(s(462))}}Bv();break}catch(ae){Up(e,ae)}while(!0);return $a=Gi=null,M.H=i,M.A=o,gt=n,tt!==null?0:(kt=null,rt=0,Js(),Ft)}function Bv(){for(;tt!==null&&!vt();)qp(tt)}function qp(e){var t=dp(e.alternate,e,Ja);e.memoizedProps=e.pendingProps,t===null?Lr(e):tt=t}function Gp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lp(n,t,t.pendingProps,t.type,void 0,rt);break;case 11:t=lp(n,t,t.pendingProps,t.type.render,t.ref,rt);break;case 5:rc(t);default:hp(n,t),t=tt=Hf(t,Ja),t=dp(n,t,Ja)}e.memoizedProps=e.pendingProps,t===null?Lr(e):tt=t}function Al(e,t,n,i){$a=Gi=null,rc(t),gl=null,ns=0;var o=t.return;try{if(xv(e,o,t,n,rt)){Ft=1,_r(e,ua(n,e.current)),tt=null;return}}catch(c){if(o!==null)throw tt=o,c;Ft=1,_r(e,ua(n,e.current)),tt=null;return}t.flags&32768?(ct||i===1?e=!0:wl||(rt&536870912)!==0?e=!1:(Ei=e=!0,(i===2||i===9||i===3||i===6)&&(i=ta.current,i!==null&&i.tag===13&&(i.flags|=16384))),$p(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){$p(t,Ei);return}e=t.return;var n=kv(t.alternate,t,Ja);if(n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);Ft===0&&(Ft=5)}function $p(e,t){do{var n=Ov(e.alternate,e);if(n!==null){n.flags&=32767,tt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){tt=e;return}tt=e=n}while(e!==null);Ft=6,tt=null}function Yp(e,t,n,i,o,c,h,E,k){e.cancelPendingCommit=null;do zr();while(dn!==0);if((gt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Lo,Ae(e,n,c,h,E,k),e===kt&&(tt=kt=null,rt=0),Tl=t,wi=e,ei=n,Gc=c,$c=o,Dp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gv(hn,function(){return Xp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=M.T,M.T=null,o=ee.p,ee.p=2,h=gt,gt|=4;try{Cv(e,t,n)}finally{gt=h,ee.p=o,M.T=i}}dn=1,Fp(),Pp(),Kp()}}function Fp(){if(dn===1){dn=0;var e=wi,t=Tl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var i=ee.p;ee.p=2;var o=gt;gt|=4;try{Tp(t,e);var c=iu,h=Cf(e.containerInfo),E=c.focusedElem,k=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&Of(E.ownerDocument.documentElement,E)){if(k!==null&&ko(E)){var Y=k.start,ae=k.end;if(ae===void 0&&(ae=Y),"selectionStart"in E)E.selectionStart=Y,E.selectionEnd=Math.min(ae,E.value.length);else{var re=E.ownerDocument||document,P=re&&re.defaultView||window;if(P.getSelection){var X=P.getSelection(),ke=E.textContent.length,Ie=Math.min(k.start,ke),Tt=k.end===void 0?Ie:Math.min(k.end,ke);!X.extend&&Ie>Tt&&(h=Tt,Tt=Ie,Ie=h);var U=kf(E,Ie),L=kf(E,Tt);if(U&&L&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==L.node||X.focusOffset!==L.offset)){var $=re.createRange();$.setStart(U.node,U.offset),X.removeAllRanges(),Ie>Tt?(X.addRange($),X.extend(L.node,L.offset)):($.setEnd(L.node,L.offset),X.addRange($))}}}}for(re=[],X=E;X=X.parentNode;)X.nodeType===1&&re.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<re.length;E++){var le=re[E];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Kr=!!au,iu=au=null}finally{gt=o,ee.p=i,M.T=n}}e.current=t,dn=2}}function Pp(){if(dn===2){dn=0;var e=wi,t=Tl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var i=ee.p;ee.p=2;var o=gt;gt|=4;try{Ep(e,t.alternate,t)}finally{gt=o,ee.p=i,M.T=n}}dn=3}}function Kp(){if(dn===4||dn===3){dn=0,Ln();var e=wi,t=Tl,n=ei,i=Dp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dn=5:(dn=0,Tl=wi=null,Zp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Si=null),jn(n),t=t.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(zn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=M.T,o=ee.p,ee.p=2,M.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{M.T=t,ee.p=o}}(ei&3)!==0&&zr(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Yc?vs++:(vs=0,Yc=e):vs=0,Es(0)}}function Zp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return Fp(),Pp(),Kp(),Xp()}function Xp(){if(dn!==5)return!1;var e=wi,t=Gc;Gc=0;var n=jn(ei),i=M.T,o=ee.p;try{ee.p=32>n?32:n,M.T=null,n=$c,$c=null;var c=wi,h=ei;if(dn=0,Tl=wi=null,ei=0,(gt&6)!==0)throw Error(s(331));var E=gt;if(gt|=4,Op(c.current),Ap(c,c.current,h,n),gt=E,Es(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(zn,c)}catch{}return!0}finally{ee.p=o,M.T=i,Zp(e,t)}}function Vp(e,t,n){t=ua(n,t),t=Sc(e.stateNode,t,2),e=gi(e,t,2),e!==null&&(st(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)Vp(e,e,n);else for(;t!==null;){if(t.tag===3){Vp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Si===null||!Si.has(i))){e=ua(n,e),n=Qh(2),i=gi(t,n,2),i!==null&&(Wh(n,i,t,e),st(i,2),Ca(i));break}}t=t.return}}function Kc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Lv;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)||(Ic=!0,o.add(n),e=Iv.bind(null,e,t,n),t.then(e,e))}function Iv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(rt&n)===n&&(Ft===4||Ft===3&&(rt&62914560)===rt&&300>lt()-kr?(gt&2)===0&&xl(e,0):Hc|=n,Nl===rt&&(Nl=0)),Ca(e)}function Qp(e,t){t===0&&(t=je()),e=Ii(e,t),e!==null&&(st(e,t),Ca(e))}function Hv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qp(e,n)}function qv(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(s(314))}i!==null&&i.delete(t),Qp(e,n)}function Gv(e,t){return Wt(e,t)}var jr=null,Rl=null,Zc=!1,Ur=!1,Xc=!1,Ti=0;function Ca(e){e!==Rl&&e.next===null&&(Rl===null?jr=Rl=e:Rl=Rl.next=e),Ur=!0,Zc||(Zc=!0,Yv())}function Es(e,t){if(!Xc&&Ur){Xc=!0;do for(var n=!1,i=jr;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-Rt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,tm(i,c))}else c=rt,c=O(i,i===kt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ne(i,c)||(n=!0,tm(i,c));i=i.next}while(n);Xc=!1}}function $v(){Wp()}function Wp(){Ur=Zc=!1;var e=0;Ti!==0&&eE()&&(e=Ti);for(var t=lt(),n=null,i=jr;i!==null;){var o=i.next,c=Jp(i,t);c===0?(i.next=null,n===null?jr=o:n.next=o,o===null&&(Rl=n)):(n=i,(e!==0||(c&3)!==0)&&(Ur=!0)),i=o}dn!==0&&dn!==5||Es(e),Ti!==0&&(Ti=0)}function Jp(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Rt(c),E=1<<h,k=o[h];k===-1?((E&n)===0||(E&i)!==0)&&(o[h]=be(E,t)):k<=t&&(e.expiredLanes|=E),c&=~E}if(t=kt,n=rt,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&&Lt(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ne(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Lt(i),jn(n)){case 2:case 8:n=_n;break;case 32:n=hn;break;case 268435456:n=Sn;break;default:n=hn}return i=em.bind(null,e),n=Wt(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Lt(i),e.callbackPriority=2,e.callbackNode=null,2}function em(e,t){if(dn!==0&&dn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var i=rt;return i=O(e,e===kt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(zp(e,i,t),Jp(e,lt()),e.callbackNode!=null&&e.callbackNode===n?em.bind(null,e):null)}function tm(e,t){if(zr())return null;zp(e,t,!0)}function Yv(){nE(function(){(gt&6)!==0?Wt(At,$v):Wp()})}function Vc(){if(Ti===0){var e=hl;e===0&&(e=He,He<<=1,(He&261888)===0&&(He=256)),Ti=e}return Ti}function nm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:et(""+e)}function am(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 Fv(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=nm((o[Kt]||null).action),h=i.submitter;h&&(t=(t=h[Kt]||null)?nm(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 k=h?am(o,h):new FormData(o);gc(n,{pending:!0,data:k,method:o.method,action:c},null,k)}}else typeof c=="function"&&(E.preventDefault(),k=h?am(o,h):new FormData(o),gc(n,{pending:!0,data:k,method:o.method,action:c},c,k))},currentTarget:o}]})}}for(var Qc=0;Qc<Do.length;Qc++){var Wc=Do[Qc],Pv=Wc.toLowerCase(),Kv=Wc[0].toUpperCase()+Wc.slice(1);_a(Pv,"on"+Kv)}_a(Lf,"onAnimationEnd"),_a(zf,"onAnimationIteration"),_a(jf,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(cv,"onTransitionRun"),_a(uv,"onTransitionStart"),_a(dv,"onTransitionCancel"),_a(Uf,"onTransitionEnd"),oe("onMouseEnter",["mouseout","mouseover"]),oe("onMouseLeave",["mouseout","mouseover"]),oe("onPointerEnter",["pointerout","pointerover"]),oe("onPointerLeave",["pointerout","pointerover"]),un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),un("onBeforeInput",["compositionend","keypress","textInput","paste"]),un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),un("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(" "),Zv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function im(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],k=E.instance,Y=E.currentTarget;if(E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(ae){Ws(ae)}o.currentTarget=null,c=k}else for(h=0;h<i.length;h++){if(E=i[h],k=E.instance,Y=E.currentTarget,E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(ae){Ws(ae)}o.currentTarget=null,c=k}}}}function nt(e,t){var n=t[Yn];n===void 0&&(n=t[Yn]=new Set);var i=e+"__bubble";n.has(i)||(lm(t,e,2,!1),n.add(i))}function Jc(e,t,n){var i=0;t&&(i|=4),lm(n,e,i,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function eu(e){if(!e[Br]){e[Br]=!0,Te.forEach(function(n){n!=="selectionchange"&&(Zv.has(n)||Jc(n,!1,e),Jc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Jc("selectionchange",!1,t))}}function lm(e,t,n,i){switch(Lm(t)){case 2:var o=SE;break;case 8:o=wE;break;default:o=mu}n=o.bind(null,t,n,e),o=void 0,!Eo||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 tu(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 k=h.tag;if((k===3||k===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=Jt(E),h===null)return;if(k=h.tag,k===5||k===6||k===26||k===27){i=c=h;continue e}E=E.parentNode}}i=i.return}Fs(function(){var Y=c,ae=De(n),re=[];e:{var P=Bf.get(e);if(P!==void 0){var X=Xs,ke=e;switch(e){case"keypress":if(Ks(n)===0)break e;case"keydown":case"keyup":X=qy;break;case"focusin":ke="focus",X=No;break;case"focusout":ke="blur",X=No;break;case"beforeblur":case"afterblur":X=No;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":X=hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=ky;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Yy;break;case Lf:case zf:case jf:X=My;break;case Uf:X=Py;break;case"scroll":case"scrollend":X=Ay;break;case"wheel":X=Zy;break;case"copy":case"cut":case"paste":X=Ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=mf;break;case"toggle":case"beforetoggle":X=Vy}var Ie=(t&4)!==0,Tt=!Ie&&(e==="scroll"||e==="scrollend"),U=Ie?P!==null?P+"Capture":null:P;Ie=[];for(var L=Y,$;L!==null;){var le=L;if($=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||$===null||U===null||(le=$l(L,U),le!=null&&Ie.push(Ss(L,le,$))),Tt)break;L=L.return}0<Ie.length&&(P=new X(P,ke,null,n,ae),re.push({event:P,listeners:Ie}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",P&&n!==Ee&&(ke=n.relatedTarget||n.fromElement)&&(Jt(ke)||ke[ut]))break e;if((X||P)&&(P=ae.window===ae?ae:(P=ae.ownerDocument)?P.defaultView||P.parentWindow:window,X?(ke=n.relatedTarget||n.toElement,X=Y,ke=ke?Jt(ke):null,ke!==null&&(Tt=f(ke),Ie=ke.tag,ke!==Tt||Ie!==5&&Ie!==27&&Ie!==6)&&(ke=null)):(X=null,ke=Y),X!==ke)){if(Ie=hf,le="onMouseLeave",U="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ie=mf,le="onPointerLeave",U="onPointerEnter",L="pointer"),Tt=X==null?P:G(X),$=ke==null?P:G(ke),P=new Ie(le,L+"leave",X,n,ae),P.target=Tt,P.relatedTarget=$,le=null,Jt(ae)===Y&&(Ie=new Ie(U,L+"enter",ke,n,ae),Ie.target=$,Ie.relatedTarget=Tt,le=Ie),Tt=le,X&&ke)t:{for(Ie=Xv,U=X,L=ke,$=0,le=U;le;le=Ie(le))$++;le=0;for(var ze=L;ze;ze=Ie(ze))le++;for(;0<$-le;)U=Ie(U),$--;for(;0<le-$;)L=Ie(L),le--;for(;$--;){if(U===L||L!==null&&U===L.alternate){Ie=U;break t}U=Ie(U),L=Ie(L)}Ie=null}else Ie=null;X!==null&&sm(re,P,X,Ie,!1),ke!==null&&Tt!==null&&sm(re,Tt,ke,Ie,!0)}}e:{if(P=Y?G(Y):window,X=P.nodeName&&P.nodeName.toLowerCase(),X==="select"||X==="input"&&P.type==="file")var ht=wf;else if(_f(P))if(Nf)ht=sv;else{ht=iv;var Ce=av}else X=P.nodeName,!X||X.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?Y&&xe(Y.elementType)&&(ht=wf):ht=lv;if(ht&&(ht=ht(e,Y))){Sf(re,ht,n,ae);break e}Ce&&Ce(e,P,Y),e==="focusout"&&Y&&P.type==="number"&&Y.memoizedProps.value!=null&&oi(P,"number",P.value)}switch(Ce=Y?G(Y):window,e){case"focusin":(_f(Ce)||Ce.contentEditable==="true")&&(ll=Ce,Oo=Y,Ql=null);break;case"focusout":Ql=Oo=ll=null;break;case"mousedown":Co=!0;break;case"contextmenu":case"mouseup":case"dragend":Co=!1,Mf(re,n,ae);break;case"selectionchange":if(ov)break;case"keydown":case"keyup":Mf(re,n,ae)}var Xe;if(xo)e:{switch(e){case"compositionstart":var ot="onCompositionStart";break e;case"compositionend":ot="onCompositionEnd";break e;case"compositionupdate":ot="onCompositionUpdate";break e}ot=void 0}else il?vf(e,n)&&(ot="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ot="onCompositionStart");ot&&(gf&&n.locale!=="ko"&&(il||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&il&&(Xe=df()):(ci=ae,_o="value"in ci?ci.value:ci.textContent,il=!0)),Ce=Ir(Y,ot),0<Ce.length&&(ot=new pf(ot,e,null,n,ae),re.push({event:ot,listeners:Ce}),Xe?ot.data=Xe:(Xe=Ef(n),Xe!==null&&(ot.data=Xe)))),(Xe=Wy?Jy(e,n):ev(e,n))&&(ot=Ir(Y,"onBeforeInput"),0<ot.length&&(Ce=new pf("onBeforeInput","beforeinput",null,n,ae),re.push({event:Ce,listeners:ot}),Ce.data=Xe)),Fv(re,e,Y,n,ae)}im(re,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 Xv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sm(e,t,n,i,o){for(var c=t._reactName,h=[];n!==null&&n!==i;){var E=n,k=E.alternate,Y=E.stateNode;if(E=E.tag,k!==null&&k===i)break;E!==5&&E!==26&&E!==27||Y===null||(k=Y,o?(Y=$l(n,c),Y!=null&&h.unshift(Ss(n,Y,k))):o||(Y=$l(n,c),Y!=null&&h.push(Ss(n,Y,k)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Vv=/\r\n?/g,Qv=/\u0000|\uFFFD/g;function rm(e){return(typeof e=="string"?e:""+e).replace(Vv,`
|
|
49
|
-
`).replace(Qv,"")}function om(e,t){return t=rm(t),rm(e)===t}function Nt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||W(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&W(e,""+i);break;case"className":bn(e,"class",i);break;case"tabIndex":bn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":bn(e,n,i);break;case"style":te(e,i,c);break;case"data":if(t!=="object"){bn(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=et(""+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"&&Nt(e,t,"name",o.name,o,null),Nt(e,t,"formEncType",o.formEncType,o,null),Nt(e,t,"formMethod",o.formMethod,o,null),Nt(e,t,"formTarget",o.formTarget,o,null)):(Nt(e,t,"encType",o.encType,o,null),Nt(e,t,"method",o.method,o,null),Nt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=et(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ue);break;case"onScroll":i!=null&&nt("scroll",e);break;case"onScrollEnd":i!=null&&nt("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(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=et(""+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":nt("beforetoggle",e),nt("toggle",e),en(e,"popover",i);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":en(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=Oe.get(n)||n,en(e,n,i))}}function nu(e,t,n,i,o,c){switch(n){case"style":te(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?W(e,i):(typeof i=="number"||typeof i=="bigint")&&W(e,""+i);break;case"onScroll":i!=null&&nt("scroll",e);break;case"onScrollEnd":i!=null&&nt("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ye.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[Kt]||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,""):en(e,n,i)}}}function An(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",e),nt("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(s(137,t));default:Nt(e,t,c,h,n,null)}}o&&Nt(e,t,"srcSet",n.srcSet,n,null),i&&Nt(e,t,"src",n.src,n,null);return;case"input":nt("invalid",e);var E=c=h=o=null,k=null,Y=null;for(i in n)if(n.hasOwnProperty(i)){var ae=n[i];if(ae!=null)switch(i){case"name":o=ae;break;case"type":h=ae;break;case"checked":k=ae;break;case"defaultChecked":Y=ae;break;case"value":c=ae;break;case"defaultValue":E=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,t));break;default:Nt(e,t,i,ae,n,null)}}Ba(e,c,E,k,Y,h,o,!1);return;case"select":nt("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:Nt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!i,t!=null?tn(e,!!i,t,!1):n!=null&&tn(e,!!i,n,!0);return;case"textarea":nt("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(s(91));break;default:Nt(e,t,h,E,n,null)}Aa(e,i,o,c);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(i=n[k],i!=null))switch(k){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Nt(e,t,k,i,n,null)}return;case"dialog":nt("beforetoggle",e),nt("toggle",e),nt("cancel",e),nt("close",e);break;case"iframe":case"object":nt("load",e);break;case"video":case"audio":for(i=0;i<_s.length;i++)nt(_s[i],e);break;case"image":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"embed":case"source":case"link":nt("error",e),nt("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(Y in n)if(n.hasOwnProperty(Y)&&(i=n[Y],i!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Nt(e,t,Y,i,n,null)}return;default:if(xe(t)){for(ae in n)n.hasOwnProperty(ae)&&(i=n[ae],i!==void 0&&nu(e,t,ae,i,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(i=n[E],i!=null&&Nt(e,t,E,i,n,null))}function Wv(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,k=null,Y=null,ae=null;for(X in n){var re=n[X];if(n.hasOwnProperty(X)&&re!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":k=re;default:i.hasOwnProperty(X)||Nt(e,t,X,null,i,re)}}for(var P in i){var X=i[P];if(re=n[P],i.hasOwnProperty(P)&&(X!=null||re!=null))switch(P){case"type":c=X;break;case"name":o=X;break;case"checked":Y=X;break;case"defaultChecked":ae=X;break;case"value":h=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:X!==re&&Nt(e,t,P,X,i,re)}}ri(e,h,E,k,Y,ae,c,o);return;case"select":X=h=E=P=null;for(c in n)if(k=n[c],n.hasOwnProperty(c)&&k!=null)switch(c){case"value":break;case"multiple":X=k;default:i.hasOwnProperty(c)||Nt(e,t,c,null,i,k)}for(o in i)if(c=i[o],k=n[o],i.hasOwnProperty(o)&&(c!=null||k!=null))switch(o){case"value":P=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==k&&Nt(e,t,o,c,i,k)}t=E,n=h,i=X,P!=null?tn(e,!!n,P,!1):!!i!=!!n&&(t!=null?tn(e,!!n,t,!0):tn(e,!!n,n?[]:"",!1));return;case"textarea":X=P=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:Nt(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":P=o;break;case"defaultValue":X=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Nt(e,t,h,o,i,c)}Ia(e,P,X);return;case"option":for(var ke in n)if(P=n[ke],n.hasOwnProperty(ke)&&P!=null&&!i.hasOwnProperty(ke))switch(ke){case"selected":e.selected=!1;break;default:Nt(e,t,ke,null,i,P)}for(k in i)if(P=i[k],X=n[k],i.hasOwnProperty(k)&&P!==X&&(P!=null||X!=null))switch(k){case"selected":e.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:Nt(e,t,k,P,i,X)}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 Ie in n)P=n[Ie],n.hasOwnProperty(Ie)&&P!=null&&!i.hasOwnProperty(Ie)&&Nt(e,t,Ie,null,i,P);for(Y in i)if(P=i[Y],X=n[Y],i.hasOwnProperty(Y)&&P!==X&&(P!=null||X!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,t));break;default:Nt(e,t,Y,P,i,X)}return;default:if(xe(t)){for(var Tt in n)P=n[Tt],n.hasOwnProperty(Tt)&&P!==void 0&&!i.hasOwnProperty(Tt)&&nu(e,t,Tt,void 0,i,P);for(ae in i)P=i[ae],X=n[ae],!i.hasOwnProperty(ae)||P===X||P===void 0&&X===void 0||nu(e,t,ae,P,i,X);return}}for(var U in n)P=n[U],n.hasOwnProperty(U)&&P!=null&&!i.hasOwnProperty(U)&&Nt(e,t,U,null,i,P);for(re in i)P=i[re],X=n[re],!i.hasOwnProperty(re)||P===X||P==null&&X==null||Nt(e,t,re,P,i,X)}function cm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jv(){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&&cm(h)){for(h=0,E=o.responseEnd,i+=1;i<n.length;i++){var k=n[i],Y=k.startTime;if(Y>E)break;var ae=k.transferSize,re=k.initiatorType;ae&&cm(re)&&(k=k.responseEnd,h+=ae*(k<E?1:(E-Y)/(k-Y)))}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 au=null,iu=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function um(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 dm(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 lu(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 su=null;function eE(){var e=window.event;return e&&e.type==="popstate"?e===su?!1:(su=e,!0):(su=null,!1)}var fm=typeof setTimeout=="function"?setTimeout:void 0,tE=typeof clearTimeout=="function"?clearTimeout:void 0,hm=typeof Promise=="function"?Promise:void 0,nE=typeof queueMicrotask=="function"?queueMicrotask:typeof hm<"u"?function(e){return hm.resolve(null).then(e).catch(aE)}:fm;function aE(e){setTimeout(function(){throw e})}function xi(e){return e==="head"}function pm(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")ws(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ws(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[Wn]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&ws(e.ownerDocument.body);n=o}while(n);Ml(t)}function mm(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 ru(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":ru(n),Ea(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iE(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[Wn])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=ma(e.nextSibling),e===null)break}return null}function lE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ma(e.nextSibling),e===null))return null;return e}function gm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ma(e.nextSibling),e===null))return null;return e}function ou(e){return e.data==="$?"||e.data==="$~"}function cu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function sE(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 ma(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 uu=null;function bm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ma(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function ym(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 vm(e,t,n){switch(t=Hr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ws(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ea(e)}var ga=new Map,Em=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ti=ee.d;ee.d={f:rE,r:oE,D:cE,C:uE,L:dE,m:fE,X:pE,S:hE,M:mE};function rE(){var e=ti.f(),t=Mr();return e||t}function oE(e){var t=Fn(e);t!==null&&t.tag===5&&t.type==="form"?Uh(t):ti.r(e)}var kl=typeof document>"u"?null:document;function _m(e,t,n){var i=kl;if(i&&typeof t=="string"&&t){var o=On(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Em.has(o)||(Em.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),An(t,"link",e),ge(t),i.head.appendChild(t)))}}function cE(e){ti.D(e),_m("dns-prefetch",e,null)}function uE(e,t){ti.C(e,t),_m("preconnect",e,t)}function dE(e,t,n){ti.L(e,t,n);var i=kl;if(i&&e&&t){var o='link[rel="preload"][as="'+On(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+On(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+On(n.imageSizes)+'"]')):o+='[href="'+On(e)+'"]';var c=o;switch(t){case"style":c=Ol(e);break;case"script":c=Cl(e)}ga.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Ns(c))||t==="script"&&i.querySelector(Ts(c))||(t=i.createElement("link"),An(t,"link",e),ge(t),i.head.appendChild(t)))}}function fE(e,t){ti.m(e,t);var n=kl;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+On(i)+'"][href="'+On(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cl(e)}if(!ga.has(c)&&(e=v({rel:"modulepreload",href:e},t),ga.set(c,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ts(c)))return}i=n.createElement("link"),An(i,"link",e),ge(i),n.head.appendChild(i)}}}function hE(e,t,n){ti.S(e,t,n);var i=kl;if(i&&e){var o=de(i).hoistableStyles,c=Ol(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=i.querySelector(Ns(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(c))&&du(e,n);var k=h=i.createElement("link");ge(k),An(k,"link",e),k._p=new Promise(function(Y,ae){k.onload=Y,k.onerror=ae}),k.addEventListener("load",function(){E.loading|=1}),k.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 pE(e,t){ti.X(e,t);var n=kl;if(n&&e){var i=de(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0},t),(t=ga.get(o))&&fu(e,t),c=n.createElement("script"),ge(c),An(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function mE(e,t){ti.M(e,t);var n=kl;if(n&&e){var i=de(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ga.get(o))&&fu(e,t),c=n.createElement("script"),ge(c),An(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Sm(e,t,n,i){var o=(o=ve.current)?qr(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ol(n.href),n=de(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=Ol(n.href);var c=de(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(Ns(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ga.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},ga.set(e,n),c||gE(o,e,n,h.state))),t&&i===null)throw Error(s(528,""));return h}if(t&&i!==null)throw Error(s(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=de(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(s(444,e))}}function Ol(e){return'href="'+On(e)+'"'}function Ns(e){return'link[rel="stylesheet"]['+e+"]"}function wm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function gE(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}),An(t,"link",n),ge(t),e.head.appendChild(t))}function Cl(e){return'[src="'+On(e)+'"]'}function Ts(e){return"script[async]"+e}function Nm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+On(n.href)+'"]');if(i)return t.instance=i,ge(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"),ge(i),An(i,"style",o),Gr(i,n.precedence,e),t.instance=i;case"stylesheet":o=Ol(n.href);var c=e.querySelector(Ns(o));if(c)return t.state.loading|=4,t.instance=c,ge(c),c;i=wm(n),(o=ga.get(o))&&du(i,o),c=(e.ownerDocument||e).createElement("link"),ge(c);var h=c;return h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),An(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(Ts(c)))?(t.instance=o,ge(o),o):(i=n,(o=ga.get(c))&&(i=v({},n),fu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ge(o),An(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(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 du(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fu(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 Tm(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[Wn]||c[St]||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 xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function bE(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 Am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yE(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=Ol(i.href),c=t.querySelector(Ns(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,ge(c);return}c=t.ownerDocument||t,i=wm(i),(o=ga.get(o))&&du(i,o),c=c.createElement("link"),ge(c);var h=c;h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),An(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 hu=0;function vE(e,t){return e.stylesheets&&e.count===0&&Pr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Pr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&hu===0&&(hu=62500*Jv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Pr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>hu?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)Pr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fr=null;function Pr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fr=new Map,t.forEach(EE,e),Fr=null,Yr.call(e))}function EE(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:A,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function _E(e,t,n,i,o,c,h,E,k){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=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function Rm(e,t,n,i,o,c,h,E,k,Y,ae,re){return e=new _E(e,t,n,h,k,Y,ae,re,E),t=1,c===!0&&(t|=24),c=ea(3,null,null,t),e.current=c,c.stateNode=e,t=Po(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Vo(c),e}function km(e){return e?(e=ol,e):ol}function Om(e,t,n,i,o,c){o=km(o),i.context===null?i.context=o:i.pendingContext=o,i=mi(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=gi(e,i,t),n!==null&&(Qn(n,e,t),is(n,e,t))}function Cm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pu(e,t){Cm(e,t),(e=e.alternate)&&Cm(e,t)}function Mm(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Qn(t,e,67108864),pu(e,67108864)}}function Dm(e){if(e.tag===13||e.tag===31){var t=la();t=bt(t);var n=Ii(e,t);n!==null&&Qn(n,e,t),pu(e,t)}}var Kr=!0;function SE(e,t,n,i){var o=M.T;M.T=null;var c=ee.p;try{ee.p=2,mu(e,t,n,i)}finally{ee.p=c,M.T=o}}function wE(e,t,n,i){var o=M.T;M.T=null;var c=ee.p;try{ee.p=8,mu(e,t,n,i)}finally{ee.p=c,M.T=o}}function mu(e,t,n,i){if(Kr){var o=gu(i);if(o===null)tu(e,t,i,Zr,n),zm(e,i);else if(TE(o,e,t,n,i))i.stopPropagation();else if(zm(e,i),t&4&&-1<NE.indexOf(e)){for(;o!==null;){var c=Fn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=$t(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var k=1<<31-Rt(h);E.entanglements[1]|=k,h&=~k}Ca(c),(gt&6)===0&&(Or=lt()+500,Es(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Qn(E,c,2),Mr(),pu(c,2)}if(c=gu(i),c===null&&tu(e,t,i,Zr,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else tu(e,t,i,null,n)}}function gu(e){return e=De(e),bu(e)}var Zr=null;function bu(e){if(Zr=null,e=Jt(e),e!==null){var t=f(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 Lm(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(mt()){case At:return 2;case _n:return 8;case hn:case qn:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var yu=!1,Ai=null,Ri=null,ki=null,As=new Map,Rs=new Map,Oi=[],NE="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 zm(e,t){switch(e){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function ks(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=Fn(t),t!==null&&Mm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function TE(e,t,n,i,o){switch(t){case"focusin":return Ai=ks(Ai,e,t,n,i,o),!0;case"dragenter":return Ri=ks(Ri,e,t,n,i,o),!0;case"mouseover":return ki=ks(ki,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,ks(As.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,ks(Rs.get(c)||null,e,t,n,i,o)),!0}return!1}function jm(e){var t=Jt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Dm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Dm(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=gu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ee=i,n.target.dispatchEvent(i),Ee=null}else return t=Fn(n),t!==null&&Mm(t),e.blockedOn=n,!1;t.shift()}return!0}function Um(e,t,n){Xr(e)&&n.delete(t)}function xE(){yu=!1,Ai!==null&&Xr(Ai)&&(Ai=null),Ri!==null&&Xr(Ri)&&(Ri=null),ki!==null&&Xr(ki)&&(ki=null),As.forEach(Um),Rs.forEach(Um)}function Vr(e,t){e.blockedOn===t&&(e.blockedOn=null,yu||(yu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,xE)))}var Qr=null;function Bm(e){Qr!==e&&(Qr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Qr===e&&(Qr=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(bu(i||n)===null)continue;break}var c=Fn(n);c!==null&&(e.splice(t,3),t-=3,gc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function Ml(e){function t(k){return Vr(k,e)}Ai!==null&&Vr(Ai,e),Ri!==null&&Vr(Ri,e),ki!==null&&Vr(ki,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);)jm(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[Kt]||null;if(typeof c=="function")h||Bm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Kt]||null)E=h.formAction;else if(bu(o)!==null)continue}else E=h.action;typeof E=="function"?n[i+1]=E:(n.splice(i,3),i-=3),Bm(n)}}}function Im(){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 vu(e){this._internalRoot=e}Wr.prototype.render=vu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=la();Om(n,i,e,t,null,null)},Wr.prototype.unmount=vu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Om(e.current,2,null,e,null,null),Mr(),t[ut]=null}};function Wr(e){this._internalRoot=e}Wr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Un();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&&jm(e)}};var Hm=a.version;if(Hm!=="19.2.8")throw Error(s(527,Hm,"19.2.8"));ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var AE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jr.isDisabled&&Jr.supportsFiber)try{zn=Jr.inject(AE),It=Jr}catch{}}return Cs.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,i="",o=Kh,c=Zh,h=Xh;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=Rm(e,1,!1,null,null,n,i,null,o,c,h,Im),e[ut]=t.current,eu(e),new vu(t)},Cs.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var i=!1,o="",c=Kh,h=Zh,E=Xh,k=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&&(k=n.formState)),t=Rm(e,1,!0,t,n??null,i,o,k,c,h,E,Im),t.context=km(null),n=t.current,i=la(),i=bt(i),o=mi(i),o.callback=null,gi(n,o,i),n=i,t.current.lanes=n,st(t,n),Ca(t),e[ut]=t.current,eu(e),new Wr(t)},Cs.version="19.2.8",Cs}var Vm;function IE(){if(Vm)return Su.exports;Vm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),Su.exports=BE(),Su.exports}var HE=IE(),rn;(function(l){l.INSERT="insert",l.DELETE="delete",l.CONTEXT="context"})(rn||(rn={}));const qE={LINE_BY_LINE:"line-by-line"},GE={NONE:"none"},$E={WORD:"word"};var Bl;(function(l){l.AUTO="auto",l.DARK="dark",l.LIGHT="light"})(Bl||(Bl={}));const YE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],FE=RegExp("["+YE.join("\\")+"]","g");function PE(l){return l.replace(FE,"\\$&")}function Qm(l){return l&&l.replace(/\\/g,"/")}function KE(l){let a,r,s,u=0;for(a=0,s=l.length;a<s;a++)r=l.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function zb(l){const a=l.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,l[s]);return r}function Wm(l,a){const r=l.split(".");return r.length>1?r[r.length-1]:a}function Jm(l,a){return a.reduce((r,s)=>r||l.startsWith(s),!1)}const eg=["a/","b/","i/","w/","c/","o/"];function Li(l,a,r){const s=r!==void 0?[...eg,r]:eg,u=a?new RegExp(`^${PE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,f=""]=u.exec(l)||[],p=s.find(g=>f.indexOf(g)===0);return(p?f.slice(p.length):f).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function ZE(l,a){return Li(l,"---",a)}function XE(l,a){return Li(l,"+++",a)}function VE(l,a={}){const r=[];let s=null,u=null,f=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",T=/^old mode (\d{6})/,N=/^new mode (\d{6})/,D=/^deleted file mode (\d{6})/,x=/^new file mode (\d{6})/,C=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,Q=/^rename to "?(.+)"?/,V=/^similarity index (\d+)%/,ie=/^dissimilarity index (\d+)%/,H=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,R=/^Binary files (.*) and (.*) differ/,q=/^GIT binary patch/,J=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,me=/^new file mode (\d{6})/,ce=/^deleted file mode (\d{6}),(\d{6})/,Se=l.replace(/\/g,"").replace(/\r\n?/g,`
|
|
48
|
+
`+i.stack}}var Gt=Object.prototype.hasOwnProperty,Wt=l.unstable_scheduleCallback,Lt=l.unstable_cancelCallback,vt=l.unstable_shouldYield,Ln=l.unstable_requestPaint,lt=l.unstable_now,mt=l.unstable_getCurrentPriorityLevel,At=l.unstable_ImmediatePriority,_n=l.unstable_UserBlockingPriority,hn=l.unstable_NormalPriority,qn=l.unstable_LowPriority,Sn=l.unstable_IdlePriority,wn=l.log,ra=l.unstable_setDisableYieldValue,zn=null,Ht=null;function pn(e){if(typeof wn=="function"&&ra(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(zn,e)}catch{}}var Rt=Math.clz32?Math.clz32:mn,Gn=Math.log,$n=Math.LN2;function mn(e){return e>>>=0,e===0?32:31-(Gn(e)/$n|0)|0}var He=256,gn=262144,qt=4194304;function $t(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=$t(i):(h&=E,h!==0?o=$t(h):n||(n=E&~e,n!==0&&(o=$t(n))))):(E=i&~c,E!==0?o=$t(E):h!==0?o=$t(h):n||(n=i&~e,n!==0&&(o=$t(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 ne(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function be(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 je(){var e=qt;return qt<<=1,(qt&62914560)===0&&(qt=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(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,k=e.expirationTimes,F=e.hiddenUpdates;for(n=h&~n;0<n;){var ae=31-Rt(n),re=1<<ae;E[ae]=0,k[ae]=-1;var P=F[ae];if(P!==null)for(F[ae]=null,ae=0;ae<P.length;ae++){var X=P[ae];X!==null&&(X.lane&=-536870913)}n&=~re}i!==0&&_e(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function _e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Rt(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-Rt(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Ct(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 jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Un(){var e=ee.p;return e!==0?e:(e=window.event,e===void 0?32:jm(e.type))}function ba(e,t){var n=ee.p;try{return ee.p=e,t()}finally{ee.p=n}}var Pt=Math.random().toString(36).slice(2),St="__reactFiber$"+Pt,Kt="__reactProps$"+Pt,ut="__reactContainer$"+Pt,Yn="__reactEvents$"+Pt,ii="__reactListeners$"+Pt,ya="__reactHandles$"+Pt,va="__reactResources$"+Pt,Wn="__reactMarker$"+Pt;function Ea(e){delete e[St],delete e[Kt],delete e[Yn],delete e[ii],delete e[ya]}function Jt(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Em(e);e!==null;){if(n=e[St])return n;e=Em(e)}return t}e=n,n=e.parentNode}return null}function Fn(e){if(e=e[St]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function G(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function de(e){var t=e[va];return t||(t=e[va]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ge(e){e[Wn]=!0}var xe=new Set,Ye={};function un(e,t){oe(e,t),oe(e+"Capture",t)}function oe(e,t){for(Ye[e]=t,e=0;e<t.length;e++)xe.add(t[e])}var Re=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]*$"),Be={},Je={};function Mt(e){return Gt.call(Je,e)?!0:Gt.call(Be,e)?!1:Re.test(e)?Je[e]=!0:(Be[e]=!0,!1)}function en(e,t,n){if(Mt(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 bn(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 Zt(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 ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function al(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 li(e){if(!e._valueTracker){var t=Ut(e)?"checked":"value";e._valueTracker=al(e,t,""+e[t])}}function si(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Ut(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ua(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 il=/[\n"\\]/g;function On(e){return e.replace(il,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ri(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=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?oi(e,h,ft(t)):n!=null?oi(e,h,ft(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=""+ft(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)){li(e);return}n=n!=null?""+ft(n):"",t=t!=null?""+ft(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),li(e)}function oi(e,t,n){t==="number"&&Ua(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tn(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=""+ft(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=""+ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ft(n):""}function Aa(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(he(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ft(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),li(e)}function W(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 j(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 te(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(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&&j(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&j(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 Oe=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"]]),qe=/^[\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 et(e){return qe.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ue(){}var Ee=null;function De(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,We=null;function oa(e){var t=Fn(e);if(t&&(e=t.stateNode)){var n=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ri(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="'+On(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Kt]||null;if(!o)throw Error(s(90));ri(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&&si(i)}break e;case"textarea":Ia(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var $l=!1;function Ps(e,t,n){if($l)return e(t,n);$l=!0;try{var i=e(t);return i}finally{if($l=!1,(Ve!==null||We!==null)&&(Dr(),Ve&&(t=Ve,e=We,We=Ve=null,oa(t),e)))for(t=0;t<e.length;t++)oa(e[t])}}function Yl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Kt]||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(s(231,t,typeof n));return n}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),So=!1;if(Ha)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){So=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{So=!1}var ci=null,wo=null,Ks=null;function hf(){if(Ks)return Ks;var e,t=wo,n=t.length,i,o="value"in ci?ci.value:ci.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 Zs(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 Xs(){return!0}function pf(){return!1}function Pn(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)?Xs:pf,this.isPropagationStopped=pf,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=Xs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xs)},persist:function(){},isPersistent:Xs}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vs=Pn(ji),Pl=v({},ji,{view:0,detail:0}),Oy=Pn(Pl),No,xo,Kl,Qs=v({},Pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ao,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"?(No=e.screenX-Kl.screenX,xo=e.screenY-Kl.screenY):xo=No=0,Kl=e),No)},movementY:function(e){return"movementY"in e?e.movementY:xo}}),mf=Pn(Qs),Cy=v({},Qs,{dataTransfer:0}),My=Pn(Cy),Dy=v({},Pl,{relatedTarget:0}),To=Pn(Dy),Ly=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),zy=Pn(Ly),jy=v({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=Pn(jy),By=v({},ji,{data:0}),gf=Pn(By),Iy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={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"},qy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qy[e])?!!t[e]:!1}function Ao(){return Gy}var $y=v({},Pl,{key:function(e){if(e.key){var t=Iy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ao,charCode:function(e){return e.type==="keypress"?Zs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yy=Pn($y),Fy=v({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bf=Pn(Fy),Py=v({},Pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ao}),Ky=Pn(Py),Zy=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xy=Pn(Zy),Vy=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}),Qy=Pn(Vy),Wy=v({},ji,{newState:0,oldState:0}),Jy=Pn(Wy),ev=[9,13,27,32],Ro=Ha&&"CompositionEvent"in window,Zl=null;Ha&&"documentMode"in document&&(Zl=document.documentMode);var tv=Ha&&"TextEvent"in window&&!Zl,yf=Ha&&(!Ro||Zl&&8<Zl&&11>=Zl),vf=" ",Ef=!1;function _f(e,t){switch(e){case"keyup":return ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ll=!1;function nv(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(Ef=!0,vf);case"textInput":return e=t.data,e===vf&&Ef?null:e;default:return null}}function av(e,t){if(ll)return e==="compositionend"||!Ro&&_f(e,t)?(e=hf(),Ks=wo=ci=null,ll=!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 yf&&t.locale!=="ko"?null:t.data;default:return null}}var iv={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 wf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iv[e.type]:t==="textarea"}function Nf(e,t,n,i){Ve?We?We.push(i):We=[i]:Ve=i,t=Hr(t,"onChange"),0<t.length&&(n=new Vs("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Xl=null,Vl=null;function lv(e){sm(e,0)}function Ws(e){var t=G(e);if(si(t))return e}function xf(e,t){if(e==="change")return t}var Tf=!1;if(Ha){var ko;if(Ha){var Oo="oninput"in document;if(!Oo){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),Oo=typeof Af.oninput=="function"}ko=Oo}else ko=!1;Tf=ko&&(!document.documentMode||9<document.documentMode)}function Rf(){Xl&&(Xl.detachEvent("onpropertychange",kf),Vl=Xl=null)}function kf(e){if(e.propertyName==="value"&&Ws(Vl)){var t=[];Nf(t,Vl,e,De(e)),Ps(lv,t)}}function sv(e,t,n){e==="focusin"?(Rf(),Xl=t,Vl=n,Xl.attachEvent("onpropertychange",kf)):e==="focusout"&&Rf()}function rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ws(Vl)}function ov(e,t){if(e==="click")return Ws(t)}function cv(e,t){if(e==="input"||e==="change")return Ws(t)}function uv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:uv;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(!Gt.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function Of(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cf(e,t){var n=Of(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=Of(n)}}function Mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ua(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=Ua(e.document)}return t}function Co(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 dv=Ha&&"documentMode"in document&&11>=document.documentMode,sl=null,Mo=null,Wl=null,Do=!1;function Lf(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Do||sl==null||sl!==Ua(i)||(i=sl,"selectionStart"in i&&Co(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}),Wl&&Ql(Wl,i)||(Wl=i,i=Hr(Mo,"onSelect"),0<i.length&&(t=new Vs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=sl)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var rl={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},Lo={},zf={};Ha&&(zf=document.createElement("div").style,"AnimationEvent"in window||(delete rl.animationend.animation,delete rl.animationiteration.animation,delete rl.animationstart.animation),"TransitionEvent"in window||delete rl.transitionend.transition);function Bi(e){if(Lo[e])return Lo[e];if(!rl[e])return e;var t=rl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zf)return Lo[e]=t[n];return e}var jf=Bi("animationend"),Uf=Bi("animationiteration"),Bf=Bi("animationstart"),fv=Bi("transitionrun"),hv=Bi("transitionstart"),pv=Bi("transitioncancel"),If=Bi("transitionend"),Hf=new Map,zo="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(" ");zo.push("scrollEnd");function _a(e,t){Hf.set(e,t),un(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)},ca=[],ol=0,jo=0;function er(){for(var e=ol,t=jo=ol=0;t<e;){var n=ca[t];ca[t++]=null;var i=ca[t];ca[t++]=null;var o=ca[t];ca[t++]=null;var c=ca[t];if(ca[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&&qf(n,o,c)}}function tr(e,t,n,i){ca[ol++]=e,ca[ol++]=t,ca[ol++]=n,ca[ol++]=i,jo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Uo(e,t,n,i){return tr(e,t,n,i),nr(e)}function Ii(e,t){return tr(e,null,null,t),nr(e)}function qf(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-Rt(n),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),c):null}function nr(e){if(50<Es)throw Es=0,Pc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var cl={};function mv(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 ea(e,t,n,i){return new mv(e,t,n,i)}function Bo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=ea(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 Gf(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 ar(e,t,n,i,o,c){var h=0;if(i=e,typeof e=="function")Bo(e)&&(h=1);else if(typeof e=="string")h=EE(e,n,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=ea(31,n,t,o),e.elementType=q,e.lanes=c,e;case C:return Hi(n.children,o,c,t);case T:h=8,o|=24;break;case M:return e=ea(12,n,t,o|2),e.elementType=M,e.lanes=c,e;case Q:return e=ea(13,n,t,o),e.elementType=Q,e.lanes=c,e;case ie:return e=ea(19,n,t,o),e.elementType=ie,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:h=10;break e;case I:h=9;break e;case V:h=11;break e;case H:h=14;break e;case R:h=16,i=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ea(h,n,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Hi(e,t,n,i){return e=ea(7,e,i,t),e.lanes=n,e}function Io(e,t,n){return e=ea(6,e,null,t),e.lanes=n,e}function $f(e){var t=ea(18,null,null,0);return t.stateNode=e,t}function Ho(e,t,n){return t=ea(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yf=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=Yf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ot(t)},Yf.set(e,t),t)}return{value:e,source:t,stack:Ot(t)}}var ul=[],dl=0,ir=null,Jl=0,da=[],fa=0,ui=null,Ra=1,ka="";function Ga(e,t){ul[dl++]=Jl,ul[dl++]=ir,ir=e,Jl=t}function Ff(e,t,n){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,ui=e;var i=Ra;e=ka;var o=32-Rt(i)-1;i&=~(1<<o),n+=1;var c=32-Rt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Ra=1<<32-Rt(t)+o|n<<o|i,ka=c+e}else Ra=1<<c|n<<o|i,ka=e}function qo(e){e.return!==null&&(Ga(e,1),Ff(e,1,0))}function Go(e){for(;e===ir;)ir=ul[--dl],ul[dl]=null,Jl=ul[--dl],ul[dl]=null;for(;e===ui;)ui=da[--fa],da[fa]=null,ka=da[--fa],da[fa]=null,Ra=da[--fa],da[fa]=null}function Pf(e,t){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,Ra=t.id,ka=t.overflow,ui=e}var Nn=null,zt=null,ct=!1,di=null,ha=!1,$o=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw es(ua(t,e)),$o}function Kf(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[St]=e,t[Kt]=i,n){case"dialog":nt("cancel",t),nt("close",t);break;case"iframe":case"object":case"embed":nt("load",t);break;case"video":case"audio":for(n=0;n<Ss.length;n++)nt(Ss[n],t);break;case"source":nt("error",t);break;case"img":case"image":case"link":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"input":nt("invalid",t),Ba(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":nt("invalid",t);break;case"textarea":nt("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||um(t.textContent,n)?(i.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),i.onScroll!=null&&nt("scroll",t),i.onScrollEnd!=null&&nt("scrollend",t),i.onClick!=null&&(t.onclick=ue),t=!0):t=!1,t||fi(e,!0)}function Zf(e){for(Nn=e.return;Nn;)switch(Nn.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:Nn=Nn.return}}function fl(e){if(e!==Nn)return!1;if(!ct)return Zf(e),ct=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ru(e.type,e.memoizedProps)),n=!n),n&&zt&&fi(e),Zf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));zt=vm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));zt=vm(e)}else t===27?(t=zt,Ti(e.type)?(e=fu,fu=null,zt=e):zt=t):zt=Nn?ma(e.stateNode.nextSibling):null;return!0}function qi(){zt=Nn=null,ct=!1}function Yo(){var e=di;return e!==null&&(Vn===null?Vn=e:Vn.push.apply(Vn,e),di=null),e}function es(e){di===null?di=[e]:di.push(e)}var Fo=w(null),Gi=null,$a=null;function hi(e,t,n){B(Fo,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=Fo.current,z(Fo)}function Po(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 Ko(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 k=0;k<t.length;k++)if(E.context===t[k]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Po(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(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Po(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 hl(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(s(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===Z.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(As):e=[As])}o=o.return}e!==null&&Ko(t,e,n,i),t.flags|=262144}function lr(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 xn(e){return Xf(Gi,e)}function sr(e,t){return Gi===null&&$i(e),Xf(e,t)}function Xf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$a===null){if(e===null)throw Error(s(308));$a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $a=$a.next=t;return n}var gv=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()})}},bv=l.unstable_scheduleCallback,yv=l.unstable_NormalPriority,nn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zo(){return{controller:new gv,data:new Map,refCount:0}}function ts(e){e.refCount--,e.refCount===0&&bv(yv,function(){e.controller.abort()})}var ns=null,Xo=0,pl=0,ml=null;function vv(e,t){if(ns===null){var n=ns=[];Xo=0,pl=Wc(),ml={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Xo++,t.then(Vf,Vf),t}function Vf(){if(--Xo===0&&ns!==null){ml!==null&&(ml.status="fulfilled");var e=ns;ns=null,pl=0,ml=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ev(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 Qf=D.S;D.S=function(e,t){Lp=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vv(e,t),Qf!==null&&Qf(e,t)};var Yi=w(null);function Vo(){var e=Yi.current;return e!==null?e:kt.pooledCache}function rr(e,t){t===null?B(Yi,Yi.current):B(Yi,t.pool)}function Wf(){var e=Vo();return e===null?null:{parent:nn._currentValue,pool:e}}var gl=Error(s(460)),Qo=Error(s(474)),or=Error(s(542)),cr={then:function(){}};function Jf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function eh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ue,ue),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nh(e),e;default:if(typeof t.status=="string")t.then(ue,ue);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,nh(e),e}throw Pi=t,gl}}function Fi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pi=n,gl):n}}var Pi=null;function th(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function nh(e){if(e===gl||e===or)throw Error(s(483))}var bl=null,as=0;function ur(e){var t=as;return as+=1,bl===null&&(bl=[]),eh(bl,e,t)}function is(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function dr(e,t){throw t.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ah(e){function t(U,L){if(e){var Y=U.deletions;Y===null?(U.deletions=[L],U.flags|=16):Y.push(L)}}function n(U,L){if(!e)return null;for(;L!==null;)t(U,L),L=L.sibling;return null}function i(U){for(var L=new Map;U!==null;)U.key!==null?L.set(U.key,U):L.set(U.index,U),U=U.sibling;return L}function o(U,L){return U=qa(U,L),U.index=0,U.sibling=null,U}function c(U,L,Y){return U.index=Y,e?(Y=U.alternate,Y!==null?(Y=Y.index,Y<L?(U.flags|=67108866,L):Y):(U.flags|=67108866,L)):(U.flags|=1048576,L)}function h(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function E(U,L,Y,le){return L===null||L.tag!==6?(L=Io(Y,U.mode,le),L.return=U,L):(L=o(L,Y),L.return=U,L)}function k(U,L,Y,le){var ze=Y.type;return ze===C?ae(U,L,Y.props.children,le,Y.key):L!==null&&(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===R&&Fi(ze)===L.type)?(L=o(L,Y.props),is(L,Y),L.return=U,L):(L=ar(Y.type,Y.key,Y.props,null,U.mode,le),is(L,Y),L.return=U,L)}function F(U,L,Y,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==Y.containerInfo||L.stateNode.implementation!==Y.implementation?(L=Ho(Y,U.mode,le),L.return=U,L):(L=o(L,Y.children||[]),L.return=U,L)}function ae(U,L,Y,le,ze){return L===null||L.tag!==7?(L=Hi(Y,U.mode,le,ze),L.return=U,L):(L=o(L,Y),L.return=U,L)}function re(U,L,Y){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Io(""+L,U.mode,Y),L.return=U,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case x:return Y=ar(L.type,L.key,L.props,null,U.mode,Y),is(Y,L),Y.return=U,Y;case S:return L=Ho(L,U.mode,Y),L.return=U,L;case R:return L=Fi(L),re(U,L,Y)}if(he(L)||me(L))return L=Hi(L,U.mode,Y,null),L.return=U,L;if(typeof L.then=="function")return re(U,ur(L),Y);if(L.$$typeof===A)return re(U,sr(U,L),Y);dr(U,L)}return null}function P(U,L,Y,le){var ze=L!==null?L.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return ze!==null?null:E(U,L,""+Y,le);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:return Y.key===ze?k(U,L,Y,le):null;case S:return Y.key===ze?F(U,L,Y,le):null;case R:return Y=Fi(Y),P(U,L,Y,le)}if(he(Y)||me(Y))return ze!==null?null:ae(U,L,Y,le,null);if(typeof Y.then=="function")return P(U,L,ur(Y),le);if(Y.$$typeof===A)return P(U,L,sr(U,Y),le);dr(U,Y)}return null}function X(U,L,Y,le,ze){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return U=U.get(Y)||null,E(L,U,""+le,ze);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case x:return U=U.get(le.key===null?Y:le.key)||null,k(L,U,le,ze);case S:return U=U.get(le.key===null?Y:le.key)||null,F(L,U,le,ze);case R:return le=Fi(le),X(U,L,Y,le,ze)}if(he(le)||me(le))return U=U.get(Y)||null,ae(L,U,le,ze,null);if(typeof le.then=="function")return X(U,L,Y,ur(le),ze);if(le.$$typeof===A)return X(U,L,Y,sr(L,le),ze);dr(L,le)}return null}function ke(U,L,Y,le){for(var ze=null,ht=null,Ce=L,Xe=L=0,ot=null;Ce!==null&&Xe<Y.length;Xe++){Ce.index>Xe?(ot=Ce,Ce=null):ot=Ce.sibling;var pt=P(U,Ce,Y[Xe],le);if(pt===null){Ce===null&&(Ce=ot);break}e&&Ce&&pt.alternate===null&&t(U,Ce),L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt,Ce=ot}if(Xe===Y.length)return n(U,Ce),ct&&Ga(U,Xe),ze;if(Ce===null){for(;Xe<Y.length;Xe++)Ce=re(U,Y[Xe],le),Ce!==null&&(L=c(Ce,L,Xe),ht===null?ze=Ce:ht.sibling=Ce,ht=Ce);return ct&&Ga(U,Xe),ze}for(Ce=i(Ce);Xe<Y.length;Xe++)ot=X(Ce,U,Xe,Y[Xe],le),ot!==null&&(e&&ot.alternate!==null&&Ce.delete(ot.key===null?Xe:ot.key),L=c(ot,L,Xe),ht===null?ze=ot:ht.sibling=ot,ht=ot);return e&&Ce.forEach(function(Ci){return t(U,Ci)}),ct&&Ga(U,Xe),ze}function Ie(U,L,Y,le){if(Y==null)throw Error(s(151));for(var ze=null,ht=null,Ce=L,Xe=L=0,ot=null,pt=Y.next();Ce!==null&&!pt.done;Xe++,pt=Y.next()){Ce.index>Xe?(ot=Ce,Ce=null):ot=Ce.sibling;var Ci=P(U,Ce,pt.value,le);if(Ci===null){Ce===null&&(Ce=ot);break}e&&Ce&&Ci.alternate===null&&t(U,Ce),L=c(Ci,L,Xe),ht===null?ze=Ci:ht.sibling=Ci,ht=Ci,Ce=ot}if(pt.done)return n(U,Ce),ct&&Ga(U,Xe),ze;if(Ce===null){for(;!pt.done;Xe++,pt=Y.next())pt=re(U,pt.value,le),pt!==null&&(L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt);return ct&&Ga(U,Xe),ze}for(Ce=i(Ce);!pt.done;Xe++,pt=Y.next())pt=X(Ce,U,Xe,pt.value,le),pt!==null&&(e&&pt.alternate!==null&&Ce.delete(pt.key===null?Xe:pt.key),L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt);return e&&Ce.forEach(function(CE){return t(U,CE)}),ct&&Ga(U,Xe),ze}function xt(U,L,Y,le){if(typeof Y=="object"&&Y!==null&&Y.type===C&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:e:{for(var ze=Y.key;L!==null;){if(L.key===ze){if(ze=Y.type,ze===C){if(L.tag===7){n(U,L.sibling),le=o(L,Y.props.children),le.return=U,U=le;break e}}else if(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===R&&Fi(ze)===L.type){n(U,L.sibling),le=o(L,Y.props),is(le,Y),le.return=U,U=le;break e}n(U,L);break}else t(U,L);L=L.sibling}Y.type===C?(le=Hi(Y.props.children,U.mode,le,Y.key),le.return=U,U=le):(le=ar(Y.type,Y.key,Y.props,null,U.mode,le),is(le,Y),le.return=U,U=le)}return h(U);case S:e:{for(ze=Y.key;L!==null;){if(L.key===ze)if(L.tag===4&&L.stateNode.containerInfo===Y.containerInfo&&L.stateNode.implementation===Y.implementation){n(U,L.sibling),le=o(L,Y.children||[]),le.return=U,U=le;break e}else{n(U,L);break}else t(U,L);L=L.sibling}le=Ho(Y,U.mode,le),le.return=U,U=le}return h(U);case R:return Y=Fi(Y),xt(U,L,Y,le)}if(he(Y))return ke(U,L,Y,le);if(me(Y)){if(ze=me(Y),typeof ze!="function")throw Error(s(150));return Y=ze.call(Y),Ie(U,L,Y,le)}if(typeof Y.then=="function")return xt(U,L,ur(Y),le);if(Y.$$typeof===A)return xt(U,L,sr(U,Y),le);dr(U,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,L!==null&&L.tag===6?(n(U,L.sibling),le=o(L,Y),le.return=U,U=le):(n(U,L),le=Io(Y,U.mode,le),le.return=U,U=le),h(U)):n(U,L)}return function(U,L,Y,le){try{as=0;var ze=xt(U,L,Y,le);return bl=null,ze}catch(Ce){if(Ce===gl||Ce===or)throw Ce;var ht=ea(29,Ce,null,U.mode);return ht.lanes=le,ht.return=U,ht}finally{}}}var Ki=ah(!0),ih=ah(!1),pi=!1;function Wo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jo(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 mi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gi(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=nr(e),qf(e,null,n),t}return tr(e,i,t,n),nr(e)}function ls(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 ec(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 tc=!1;function ss(){if(tc){var e=ml;if(e!==null)throw e}}function rs(e,t,n,i){tc=!1;var o=e.updateQueue;pi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var k=E,F=k.next;k.next=null,h===null?c=F:h.next=F,h=k;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,E=ae.lastBaseUpdate,E!==h&&(E===null?ae.firstBaseUpdate=F:E.next=F,ae.lastBaseUpdate=k))}if(c!==null){var re=o.baseState;h=0,ae=F=k=null,E=c;do{var P=E.lane&-536870913,X=P!==E.lane;if(X?(rt&P)===P:(i&P)===P){P!==0&&P===pl&&(tc=!0),ae!==null&&(ae=ae.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ke=e,Ie=E;P=t;var xt=n;switch(Ie.tag){case 1:if(ke=Ie.payload,typeof ke=="function"){re=ke.call(xt,re,P);break e}re=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ie.payload,P=typeof ke=="function"?ke.call(xt,re,P):ke,P==null)break e;re=v({},re,P);break e;case 2:pi=!0}}P=E.callback,P!==null&&(e.flags|=64,X&&(e.flags|=8192),X=o.callbacks,X===null?o.callbacks=[P]:X.push(P))}else X={lane:P,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ae===null?(F=ae=X,k=re):ae=ae.next=X,h|=P;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;X=E,E=X.next,X.next=null,o.lastBaseUpdate=X,o.shared.pending=null}}while(!0);ae===null&&(k=re),o.baseState=k,o.firstBaseUpdate=F,o.lastBaseUpdate=ae,c===null&&(o.shared.lanes=0),_i|=h,e.lanes=h,e.memoizedState=re}}function lh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function sh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)lh(n[e],t)}var yl=w(null),fr=w(0);function rh(e,t){e=Ja,B(fr,e),B(yl,t),Ja=e|t.baseLanes}function nc(){B(fr,Ja),B(yl,yl.current)}function ac(){Ja=fr.current,z(yl),z(fr)}var ta=w(null),pa=null;function bi(e){var t=e.alternate;B(Xt,Xt.current&1),B(ta,e),pa===null&&(t===null||yl.current!==null||t.memoizedState!==null)&&(pa=e)}function ic(e){B(Xt,Xt.current),B(ta,e),pa===null&&(pa=e)}function oh(e){e.tag===22?(B(Xt,Xt.current),B(ta,e),pa===null&&(pa=e)):yi()}function yi(){B(Xt,Xt.current),B(ta,ta.current)}function na(e){z(ta),pa===e&&(pa=null),z(Xt)}var Xt=w(0);function hr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||uu(n)||du(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,Ke=null,wt=null,an=null,pr=!1,vl=!1,Zi=!1,mr=0,os=0,El=null,_v=0;function Yt(){throw Error(s(321))}function lc(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 sc(e,t,n,i,o,c){return Fa=c,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Fh:_c,Zi=!1,c=n(i,o),Zi=!1,vl&&(c=uh(t,n,i,o)),ch(e),c}function ch(e){D.H=ds;var t=wt!==null&&wt.next!==null;if(Fa=0,an=wt=Ke=null,pr=!1,os=0,El=null,t)throw Error(s(300));e===null||ln||(e=e.dependencies,e!==null&&lr(e)&&(ln=!0))}function uh(e,t,n,i){Ke=e;var o=0;do{if(vl&&(El=null),os=0,vl=!1,25<=o)throw Error(s(301));if(o+=1,an=wt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Ph,c=t(n,i)}while(vl);return c}function Sv(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?cs(t):t,e=e.useState()[0],(wt!==null?wt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function rc(){var e=mr!==0;return mr=0,e}function oc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cc(e){if(pr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pr=!1}Fa=0,an=wt=Ke=null,vl=!1,os=mr=0,El=null}function Bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?Ke.memoizedState=an=e:an=an.next=e,an}function Vt(){if(wt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=wt.next;var t=an===null?Ke.memoizedState:an.next;if(t!==null)an=t,wt=e;else{if(e===null)throw Ke.alternate===null?Error(s(467)):Error(s(310));wt=e,e={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},an===null?Ke.memoizedState=an=e:an=an.next=e}return an}function gr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var t=os;return os+=1,El===null&&(El=[]),e=eh(El,e,t),t=Ke,(an===null?t.memoizedState:an.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Fh:_c),e}function br(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cs(e);if(e.$$typeof===A)return xn(e)}throw Error(s(438,String(e)))}function uc(e){var t=null,n=Ke.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ke.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=gr(),Ke.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]=J;return t.index++,n}function Pa(e,t){return typeof t=="function"?t(e):t}function yr(e){var t=Vt();return dc(t,wt,e)}function dc(e,t,n){var i=e.queue;if(i===null)throw Error(s(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,k=null,F=t,ae=!1;do{var re=F.lane&-536870913;if(re!==F.lane?(rt&re)===re:(Fa&re)===re){var P=F.revertLane;if(P===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),re===pl&&(ae=!0);else if((Fa&P)===P){F=F.next,P===pl&&(ae=!0);continue}else re={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},k===null?(E=k=re,h=c):k=k.next=re,Ke.lanes|=P,_i|=P;re=F.action,Zi&&n(c,re),c=F.hasEagerState?F.eagerState:n(c,re)}else P={lane:re,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},k===null?(E=k=P,h=c):k=k.next=P,Ke.lanes|=re,_i|=re;F=F.next}while(F!==null&&F!==t);if(k===null?h=c:k.next=E,!Jn(c,e.memoizedState)&&(ln=!0,ae&&(n=ml,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=k,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function fc(e){var t=Vt(),n=t.queue;if(n===null)throw Error(s(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)||(ln=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function dh(e,t,n){var i=Ke,o=Vt(),c=ct;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Jn((wt||o).memoizedState,n);if(h&&(o.memoizedState=n,ln=!0),o=o.queue,mc(ph.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||an!==null&&an.memoizedState.tag&1){if(i.flags|=2048,_l(9,{destroy:void 0},hh.bind(null,i,o,n,t),null),kt===null)throw Error(s(349));c||(Fa&127)!==0||fh(i,t,n)}return n}function fh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ke.updateQueue,t===null?(t=gr(),Ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hh(e,t,n,i){t.value=n,t.getSnapshot=i,mh(t)&&gh(e)}function ph(e,t,n){return n(function(){mh(t)&&gh(e)})}function mh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function gh(e){var t=Ii(e,2);t!==null&&Qn(t,e,2)}function hc(e){var t=Bn();if(typeof e=="function"){var n=e;if(e=n(),Zi){pn(!0);try{n()}finally{pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t}function bh(e,t,n,i){return e.baseState=n,dc(e,wt,typeof i=="function"?i:Pa)}function wv(e,t,n,i,o){if(_r(e))throw Error(s(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)}};D.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,yh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function yh(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=D.T,h={};D.T=h;try{var E=n(o,i),k=D.S;k!==null&&k(h,E),vh(e,t,E)}catch(F){pc(e,t,F)}finally{c!==null&&h.types!==null&&(c.types=h.types),D.T=c}}else try{c=n(o,i),vh(e,t,c)}catch(F){pc(e,t,F)}}function vh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Eh(e,t,i)},function(i){return pc(e,t,i)}):Eh(e,t,n)}function Eh(e,t,n){t.status="fulfilled",t.value=n,_h(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,yh(e,n)))}function pc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,_h(t),t=t.next;while(t!==i)}e.action=null}function _h(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Sh(e,t){return t}function wh(e,t){if(ct){var n=kt.formState;if(n!==null){e:{var i=Ke;if(ct){if(zt){t:{for(var o=zt,c=ha;o.nodeType!==8;){if(!c){o=null;break t}if(o=ma(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){zt=ma(o.nextSibling),i=o.data==="F!";break e}}fi(i)}i=!1}i&&(t=n[0])}}return n=Bn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sh,lastRenderedState:t},n.queue=i,n=Gh.bind(null,Ke,i),i.dispatch=n,i=hc(!1),c=Ec.bind(null,Ke,!1,i.queue),i=Bn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=wv.bind(null,Ke,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function Nh(e){var t=Vt();return xh(t,wt,e)}function xh(e,t,n){if(t=dc(e,t,Sh)[0],e=yr(Pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=cs(t)}catch(h){throw h===gl?or:h}else i=t;t=Vt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ke.flags|=2048,_l(9,{destroy:void 0},Nv.bind(null,o,n),null)),[i,c,e]}function Nv(e,t){e.action=t}function Th(e){var t=Vt(),n=wt;if(n!==null)return xh(t,n,e);Vt(),t=t.memoizedState,n=Vt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function _l(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ke.updateQueue,t===null&&(t=gr(),Ke.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 Ah(){return Vt().memoizedState}function vr(e,t,n,i){var o=Bn();Ke.flags|=e,o.memoizedState=_l(1|t,{destroy:void 0},n,i===void 0?null:i)}function Er(e,t,n,i){var o=Vt();i=i===void 0?null:i;var c=o.memoizedState.inst;wt!==null&&i!==null&&lc(i,wt.memoizedState.deps)?o.memoizedState=_l(t,c,n,i):(Ke.flags|=e,o.memoizedState=_l(1|t,c,n,i))}function Rh(e,t){vr(8390656,8,e,t)}function mc(e,t){Er(2048,8,e,t)}function xv(e){Ke.flags|=4;var t=Ke.updateQueue;if(t===null)t=gr(),Ke.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function kh(e){var t=Vt().memoizedState;return xv({ref:t,nextImpl:e}),function(){if((gt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Oh(e,t){return Er(4,2,e,t)}function Ch(e,t){return Er(4,4,e,t)}function Mh(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 Dh(e,t,n){n=n!=null?n.concat([e]):null,Er(4,4,Mh.bind(null,t,e),n)}function gc(){}function Lh(e,t){var n=Vt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&lc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function zh(e,t){var n=Vt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&lc(t,i[1]))return i[0];if(i=e(),Zi){pn(!0);try{e()}finally{pn(!1)}}return n.memoizedState=[i,t],i}function bc(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(rt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=jp(),Ke.lanes|=e,_i|=e,n)}function jh(e,t,n,i){return Jn(n,t)?n:yl.current!==null?(e=bc(e,n,i),Jn(e,t)||(ln=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(rt&261930)===0?(ln=!0,e.memoizedState=n):(e=jp(),Ke.lanes|=e,_i|=e,t)}function Uh(e,t,n,i,o){var c=ee.p;ee.p=c!==0&&8>c?c:8;var h=D.T,E={};D.T=E,Ec(e,!1,t,n);try{var k=o(),F=D.S;if(F!==null&&F(E,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var ae=Ev(k,i);us(e,t,ae,la(e))}else us(e,t,i,la(e))}catch(re){us(e,t,{then:function(){},status:"rejected",reason:re},la())}finally{ee.p=c,h!==null&&E.types!==null&&(h.types=E.types),D.T=h}}function Tv(){}function yc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var o=Bh(e).queue;Uh(e,o,t,fe,n===null?Tv:function(){return Ih(e),n(i)})}function Bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ih(e){var t=Bh(e);t.next===null&&(t=e.alternate.memoizedState),us(e,t.next.queue,{},la())}function vc(){return xn(As)}function Hh(){return Vt().memoizedState}function qh(){return Vt().memoizedState}function Av(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=la();e=mi(n);var i=gi(t,e,n);i!==null&&(Qn(i,t,n),ls(i,t,n)),t={cache:Zo()},e.payload=t;return}t=t.return}}function Rv(e,t,n){var i=la();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_r(e)?$h(t,n):(n=Uo(e,t,n,i),n!==null&&(Qn(n,e,i),Yh(n,t,i)))}function Gh(e,t,n){var i=la();us(e,t,n,i)}function us(e,t,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_r(e))$h(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 tr(e,t,o,0),kt===null&&er(),!1}catch{}finally{}if(n=Uo(e,t,o,i),n!==null)return Qn(n,e,i),Yh(n,t,i),!0}return!1}function Ec(e,t,n,i){if(i={lane:2,revertLane:Wc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},_r(e)){if(t)throw Error(s(479))}else t=Uo(e,n,i,2),t!==null&&Qn(t,e,2)}function _r(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function $h(e,t){vl=pr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}var ds={readContext:xn,use:br,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};ds.useEffectEvent=Yt;var Fh={readContext:xn,use:br,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:xn,useEffect:Rh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,vr(4194308,4,Mh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vr(4194308,4,e,t)},useInsertionEffect:function(e,t){vr(4,2,e,t)},useMemo:function(e,t){var n=Bn();t=t===void 0?null:t;var i=e();if(Zi){pn(!0);try{e()}finally{pn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Bn();if(n!==void 0){var o=n(t);if(Zi){pn(!0);try{n(t)}finally{pn(!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=Rv.bind(null,Ke,e),[i.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:function(e){e=hc(e);var t=e.queue,n=Gh.bind(null,Ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gc,useDeferredValue:function(e,t){var n=Bn();return bc(n,e,t)},useTransition:function(){var e=hc(!1);return e=Uh.bind(null,Ke,e.queue,!0,!1),Bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ke,o=Bn();if(ct){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),kt===null)throw Error(s(349));(rt&127)!==0||fh(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Rh(ph.bind(null,i,c,e),[e]),i.flags|=2048,_l(9,{destroy:void 0},hh.bind(null,i,c,n,t),null),n},useId:function(){var e=Bn(),t=kt.identifierPrefix;if(ct){var n=ka,i=Ra;n=(i&~(1<<32-Rt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=mr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=_v++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:vc,useFormState:wh,useActionState:wh,useOptimistic:function(e){var t=Bn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ec.bind(null,Ke,!0,n),n.dispatch=t,[e,t]},useMemoCache:uc,useCacheRefresh:function(){return Bn().memoizedState=Av.bind(null,Ke)},useEffectEvent:function(e){var t=Bn(),n={impl:e};return t.memoizedState=n,function(){if((gt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},_c={readContext:xn,use:br,useCallback:Lh,useContext:xn,useEffect:mc,useImperativeHandle:Dh,useInsertionEffect:Oh,useLayoutEffect:Ch,useMemo:zh,useReducer:yr,useRef:Ah,useState:function(){return yr(Pa)},useDebugValue:gc,useDeferredValue:function(e,t){var n=Vt();return jh(n,wt.memoizedState,e,t)},useTransition:function(){var e=yr(Pa)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:cs(e),t]},useSyncExternalStore:dh,useId:Hh,useHostTransitionStatus:vc,useFormState:Nh,useActionState:Nh,useOptimistic:function(e,t){var n=Vt();return bh(n,wt,e,t)},useMemoCache:uc,useCacheRefresh:qh};_c.useEffectEvent=kh;var Ph={readContext:xn,use:br,useCallback:Lh,useContext:xn,useEffect:mc,useImperativeHandle:Dh,useInsertionEffect:Oh,useLayoutEffect:Ch,useMemo:zh,useReducer:fc,useRef:Ah,useState:function(){return fc(Pa)},useDebugValue:gc,useDeferredValue:function(e,t){var n=Vt();return wt===null?bc(n,e,t):jh(n,wt.memoizedState,e,t)},useTransition:function(){var e=fc(Pa)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:cs(e),t]},useSyncExternalStore:dh,useId:Hh,useHostTransitionStatus:vc,useFormState:Th,useActionState:Th,useOptimistic:function(e,t){var n=Vt();return wt!==null?bh(n,wt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:uc,useCacheRefresh:qh};Ph.useEffectEvent=kh;function Sc(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 wc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=la(),o=mi(i);o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,i),t!==null&&(Qn(t,e,i),ls(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=la(),o=mi(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,i),t!==null&&(Qn(t,e,i),ls(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=la(),i=mi(n);i.tag=2,t!=null&&(i.callback=t),t=gi(e,i,n),t!==null&&(Qn(t,e,n),ls(t,e,n))}};function Kh(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 Zh(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&&wc.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 Xh(e){Js(e)}function Vh(e){console.error(e)}function Qh(e){Js(e)}function Sr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Wh(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 Nc(e,t,n){return n=mi(n),n.tag=3,n.payload={element:null},n.callback=function(){Sr(e,t)},n}function Jh(e){return e=mi(e),e.tag=3,e}function ep(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(){Wh(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Wh(t,n,i),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function kv(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&hl(t,n,o,!0),n=ta.current,n!==null){switch(n.tag){case 31:case 13:return pa===null?Lr():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===cr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Xc(e,i,o)),!1;case 22:return n.flags|=65536,i===cr?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)),Xc(e,i,o)),!1}throw Error(s(435,n.tag))}return Xc(e,i,o),Lr(),!1}if(ct)return t=ta.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==$o&&(e=Error(s(422),{cause:i}),es(ua(e,n)))):(i!==$o&&(t=Error(s(423),{cause:i}),es(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=ua(i,n),o=Nc(e.stateNode,i,o),ec(e,o),Ft!==4&&(Ft=2)),!1;var c=Error(s(520),{cause:i});if(c=ua(c,n),vs===null?vs=[c]:vs.push(c),Ft!==4&&(Ft=2),t===null)return!0;i=ua(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Nc(n.stateNode,i,e),ec(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"&&(Si===null||!Si.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Jh(o),ep(o,e,n,i),ec(n,o),!1}n=n.return}while(n!==null);return!1}var xc=Error(s(461)),ln=!1;function Tn(e,t,n,i){t.child=e===null?ih(t,null,n,i):Ki(t,e.child,n,i)}function tp(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=sc(e,t,n,h,c,o),E=rc(),e!==null&&!ln?(oc(e,t,o),Ka(e,t,o)):(ct&&E&&qo(t),t.flags|=1,Tn(e,t,i,o),t.child)}function np(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!Bo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,ap(e,t,c,i,o)):(e=ar(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Dc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,i)&&e.ref===t.ref)return Ka(e,t,o)}return t.flags|=1,e=qa(c,i),e.ref=t.ref,e.return=t,t.child=e}function ap(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,i)&&e.ref===t.ref)if(ln=!1,t.pendingProps=i=c,Dc(e,o))(e.flags&131072)!==0&&(ln=!0);else return t.lanes=e.lanes,Ka(e,t,o)}return Tc(e,t,n,i,o)}function ip(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 lp(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rr(t,c!==null?c.cachePool:null),c!==null?rh(t,c):nc(),oh(t);else return i=t.lanes=536870912,lp(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(rr(t,c.cachePool),rh(t,c),yi(),t.memoizedState=null):(e!==null&&rr(t,null),nc(),yi());return Tn(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 lp(e,t,n,i,o){var c=Vo();return c=c===null?null:{parent:nn._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&rr(t,null),nc(),oh(t),e!==null&&hl(e,t,i,!0),t.childLanes=o,null}function wr(e,t){return t=xr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sp(e,t,n){return Ki(t,e.child,null,n),e=wr(t,t.pendingProps),e.flags|=2,na(t),t.memoizedState=null,e}function Ov(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ct){if(i.mode==="hidden")return e=wr(t,i),t.lanes=536870912,fs(null,e);if(ic(t),(e=zt)?(e=ym(e,ha),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=$f(e),n.return=t,t.child=n,Nn=t,zt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return wr(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(ic(t),o)if(t.flags&256)t.flags&=-257,t=sp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ln||hl(e,t,n,!1),o=(n&e.childLanes)!==0,ln||o){if(i=kt,i!==null&&(h=Ct(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Qn(i,e,h),xc;Lr(),t=sp(e,t,n)}else e=c.treeContext,zt=ma(h.nextSibling),Nn=t,ct=!0,di=null,ha=!1,e!==null&&Pf(t,e),t=wr(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Tc(e,t,n,i,o){return $i(t),n=sc(e,t,n,i,void 0,o),i=rc(),e!==null&&!ln?(oc(e,t,o),Ka(e,t,o)):(ct&&i&&qo(t),t.flags|=1,Tn(e,t,n,o),t.child)}function rp(e,t,n,i,o,c){return $i(t),t.updateQueue=null,n=uh(t,i,n,o),ch(e),i=rc(),e!==null&&!ln?(oc(e,t,c),Ka(e,t,c)):(ct&&i&&qo(t),t.flags|=1,Tn(e,t,n,c),t.child)}function op(e,t,n,i,o){if($i(t),t.stateNode===null){var c=cl,h=n.contextType;typeof h=="object"&&h!==null&&(c=xn(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=wc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Wo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?xn(h):cl,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Sc(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&&wc.enqueueReplaceState(c,c.state,null),rs(t,i,c,o),ss(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,k=Xi(n,E);c.props=k;var F=c.context,ae=n.contextType;h=cl,typeof ae=="object"&&ae!==null&&(h=xn(ae));var re=n.getDerivedStateFromProps;ae=typeof re=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ae||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||F!==h)&&Zh(t,c,i,h),pi=!1;var P=t.memoizedState;c.state=P,rs(t,i,c,o),ss(),F=t.memoizedState,E||P!==F||pi?(typeof re=="function"&&(Sc(t,n,re,i),F=t.memoizedState),(k=pi||Kh(t,n,k,i,P,F,h))?(ae||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=F),c.props=i,c.state=F,c.context=h,i=k):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Jo(e,t),h=t.memoizedProps,ae=Xi(n,h),c.props=ae,re=t.pendingProps,P=c.context,F=n.contextType,k=cl,typeof F=="object"&&F!==null&&(k=xn(F)),E=n.getDerivedStateFromProps,(F=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==re||P!==k)&&Zh(t,c,i,k),pi=!1,P=t.memoizedState,c.state=P,rs(t,i,c,o),ss();var X=t.memoizedState;h!==re||P!==X||pi||e!==null&&e.dependencies!==null&&lr(e.dependencies)?(typeof E=="function"&&(Sc(t,n,E,i),X=t.memoizedState),(ae=pi||Kh(t,n,ae,i,P,X,k)||e!==null&&e.dependencies!==null&&lr(e.dependencies))?(F||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,X,k),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,X,k)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=X),c.props=i,c.state=X,c.context=k,i=ae):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&P===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=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):Tn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ka(e,t,o),e}function cp(e,t,n,i){return qi(),t.flags|=256,Tn(e,t,n,i),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(e){return{baseLanes:e,cachePool:Wf()}}function kc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ia),e}function up(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:(Xt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ct){if(o?bi(t):yi(),(e=zt)?(e=ym(e,ha),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=$f(e),n.return=t,t.child=n,Nn=t,zt=null)):e=null,e===null)throw fi(t);return du(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,o?(yi(),o=t.mode,E=xr({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=Rc(n),i.childLanes=kc(e,h,n),t.memoizedState=Ac,fs(null,i)):(bi(t),Oc(t,E))}var k=e.memoizedState;if(k!==null&&(E=k.dehydrated,E!==null)){if(c)t.flags&256?(bi(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState!==null?(yi(),t.child=e.child,t.flags|=128,t=null):(yi(),E=i.fallback,o=t.mode,i=xr({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,Ki(t,e.child,null,n),i=t.child,i.memoizedState=Rc(n),i.childLanes=kc(e,h,n),t.memoizedState=Ac,t=fs(null,i));else if(bi(t),du(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var F=h.dgst;h=F,i=Error(s(419)),i.stack="",i.digest=h,es({value:i,source:null,stack:null}),t=Cc(e,t,n)}else if(ln||hl(e,t,n,!1),h=(n&e.childLanes)!==0,ln||h){if(h=kt,h!==null&&(i=Ct(h,n),i!==0&&i!==k.retryLane))throw k.retryLane=i,Ii(e,i),Qn(h,e,i),xc;uu(E)||Lr(),t=Cc(e,t,n)}else uu(E)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,zt=ma(E.nextSibling),Nn=t,ct=!0,di=null,ha=!1,e!==null&&Pf(t,e),t=Oc(t,i.children),t.flags|=4096);return t}return o?(yi(),E=i.fallback,o=t.mode,k=e.child,F=k.sibling,i=qa(k,{mode:"hidden",children:i.children}),i.subtreeFlags=k.subtreeFlags&65011712,F!==null?E=qa(F,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=Rc(n):(o=E.cachePool,o!==null?(k=nn._currentValue,o=o.parent!==k?{parent:k,pool:k}:o):o=Wf(),E={baseLanes:E.baseLanes|n,cachePool:o}),i.memoizedState=E,i.childLanes=kc(e,h,n),t.memoizedState=Ac,fs(e.child,i)):(bi(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 Oc(e,t){return t=xr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xr(e,t){return e=ea(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Ki(t,e.child,null,n),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Po(e.return,t,n)}function Mc(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 fp(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=Xt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,B(Xt,h),Tn(e,t,i,n),i=ct?Jl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dp(e,n,t);else if(e.tag===19)dp(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&&hr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Mc(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&&hr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Mc(t,!0,n,null,c,i);break;case"together":Mc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(hl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(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 Dc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lr(e)))}function Cv(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),hi(t,nn,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ic(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(bi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?up(e,t,n):(bi(t),e=Ka(e,t,n),e!==null?e.sibling:null);bi(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(hl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return fp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Xt,Xt.current),i)break;return null;case 22:return t.lanes=0,ip(e,t,n,t.pendingProps);case 24:hi(t,nn,e.memoizedState.cache)}return Ka(e,t,n)}function hp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ln=!0;else{if(!Dc(e,n)&&(t.flags&128)===0)return ln=!1,Cv(e,t,n);ln=(e.flags&131072)!==0}else ln=!1,ct&&(t.flags&1048576)!==0&&Ff(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")Bo(e)?(i=Xi(e,i),t.tag=1,t=op(null,t,e,i,n)):(t.tag=0,t=Tc(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===V){t.tag=11,t=tp(null,t,e,i,n);break e}else if(o===H){t.tag=14,t=np(null,t,e,i,n);break e}}throw t=Se(e)||e,Error(s(306,t,""))}}return t;case 0:return Tc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Xi(i,t.pendingProps),op(e,t,i,o,n);case 3:e:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,Jo(e,t),rs(t,i,null,n);var h=t.memoizedState;if(i=h.cache,hi(t,nn,i),i!==c.cache&&Ko(t,[nn],n,!0),ss(),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=cp(e,t,i,n);break e}else if(i!==o){o=ua(Error(s(424)),t),es(o),t=cp(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(zt=ma(e.firstChild),Nn=t,ct=!0,di=null,ha=!0,n=ih(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),i===o){t=Ka(e,t,n);break e}Tn(e,t,i,n)}t=t.child}return t;case 26:return Nr(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ct||(n=t.type,e=t.pendingProps,i=qr(ve.current).createElement(n),i[St]=t,i[Kt]=e,An(i,n,e),ge(i),t.stateNode=i):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ct&&(i=t.stateNode=_m(t.type,t.pendingProps,ve.current),Nn=t,ha=!0,o=zt,Ti(t.type)?(fu=o,zt=ma(i.firstChild)):zt=o),Tn(e,t,t.pendingProps.children,n),Nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ct&&((o=i=zt)&&(i=rE(i,t.type,t.pendingProps,ha),i!==null?(t.stateNode=i,Nn=t,zt=ma(i.firstChild),ha=!1,o=!0):o=!1),o||fi(t)),Ge(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,ru(o,c)?i=null:h!==null&&ru(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=sc(e,t,Sv,null,null,n),As._currentValue=o),Nr(e,t),Tn(e,t,i,n),t.child;case 6:return e===null&&ct&&((e=n=zt)&&(n=oE(n,t.pendingProps,ha),n!==null?(t.stateNode=n,Nn=t,zt=null,e=!0):e=!1),e||fi(t)),null;case 13:return up(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ki(t,null,i,n):Tn(e,t,i,n),t.child;case 11:return tp(e,t,t.type,t.pendingProps,n);case 7:return Tn(e,t,t.pendingProps,n),t.child;case 8:return Tn(e,t,t.pendingProps.children,n),t.child;case 12:return Tn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,hi(t,t.type,i.value),Tn(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,$i(t),o=xn(o),i=i(o),t.flags|=1,Tn(e,t,i,n),t.child;case 14:return np(e,t,t.type,t.pendingProps,n);case 15:return ap(e,t,t.type,t.pendingProps,n);case 19:return fp(e,t,n);case 31:return Ov(e,t,n);case 22:return ip(e,t,n,t.pendingProps);case 24:return $i(t),i=xn(nn),e===null?(o=Vo(),o===null&&(o=kt,c=Zo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},Wo(t),hi(t,nn,o)):((e.lanes&n)!==0&&(Jo(e,t),rs(t,null,null,n),ss()),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),hi(t,nn,i)):(i=c.cache,hi(t,nn,i),i!==o.cache&&Ko(t,[nn],n,!0))),Tn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Za(e){e.flags|=4}function Lc(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(Hp())e.flags|=8192;else throw Pi=cr,Qo}else e.flags&=-16777217}function pp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!km(t))if(Hp())e.flags|=8192;else throw Pi=cr,Qo}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?je():536870912,e.lanes|=t,xl|=t)}function hs(e,t){if(!ct)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 jt(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 Mv(e,t,n){var i=t.pendingProps;switch(Go(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(t),null;case 1:return jt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ya(nn),Ne(),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,Yo())),jt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Za(t),c!==null?(jt(t),pp(t,c)):(jt(t),Lc(t,o,null,i,n))):c?c!==e.memoizedState?(Za(t),jt(t),pp(t,c)):(jt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Za(t),jt(t),Lc(t,o,e,i,n)),null;case 27:if($e(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return jt(t),null}e=se.current,fl(t)?Kf(t):(e=_m(o,i,n),t.stateNode=e,Za(t))}return jt(t),null;case 5:if($e(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return jt(t),null}if(c=se.current,fl(t))Kf(t);else{var h=qr(ve.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[St]=t,c[Kt]=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(An(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 jt(t),Lc(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(s(166));if(e=ve.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=Nn,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||um(e.nodeValue,n)),e||fi(t,!0)}else e=qr(e).createTextNode(i),e[St]=t,t.stateNode=e}return jt(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(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[St]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;jt(t),e=!1}else n=Yo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(na(t),t):(na(t),null);if((t.flags&128)!==0)throw Error(s(558))}return jt(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(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[St]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;jt(t),o=!1}else o=Yo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(na(t),t):(na(t),null)}return na(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),Tr(t,t.updateQueue),jt(t),null);case 4:return Ne(),e===null&&nu(t.stateNode.containerInfo),jt(t),null;case 10:return Ya(t.type),jt(t),null;case 19:if(z(Xt),i=t.memoizedState,i===null)return jt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)hs(i,!1);else{if(Ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=hr(e),c!==null){for(t.flags|=128,hs(i,!1),e=c.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Gf(n,e),n=n.sibling;return B(Xt,Xt.current&1|2),ct&&Ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&<()>Cr&&(t.flags|=128,o=!0,hs(i,!1),t.lanes=4194304)}else{if(!o)if(e=hr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),hs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!ct)return jt(t),null}else 2*lt()-i.renderingStartTime>Cr&&n!==536870912&&(t.flags|=128,o=!0,hs(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=lt(),e.sibling=null,n=Xt.current,B(Xt,o?n&1|2:n&1),ct&&Ga(t,i.treeForkCount),e):(jt(t),null);case 22:case 23:return na(t),ac(),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&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),n=t.updateQueue,n!==null&&Tr(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&&z(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(nn),jt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Dv(e,t){switch(Go(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(nn),Ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(na(t),t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(Xt),null;case 4:return Ne(),null;case 10:return Ya(t.type),null;case 22:case 23:return na(t),ac(),e!==null&&z(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(nn),null;case 25:return null;default:return null}}function mp(e,t){switch(Go(t),t.tag){case 3:Ya(nn),Ne();break;case 26:case 27:case 5:$e(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&na(t);break;case 13:na(t);break;case 19:z(Xt);break;case 10:Ya(t.type);break;case 22:case 23:na(t),ac(),e!==null&&z(Yi);break;case 24:Ya(nn)}}function ps(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 vi(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 k=n,F=E;try{F()}catch(ae){_t(o,k,ae)}}}i=i.next}while(i!==c)}}catch(ae){_t(t,t.return,ae)}}function gp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{sh(t,n)}catch(i){_t(e,e.return,i)}}}function bp(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_t(e,t,i)}}function ms(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 Oa(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 yp(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 zc(e,t,n){try{var i=e.stateNode;tE(i,e.type,n,t),i[Kt]=t}catch(o){_t(e,e.return,o)}}function vp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ti(e.type)||e.tag===4}function jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vp(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&&Ti(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 Uc(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=ue));else if(i!==4&&(i===27&&Ti(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function Ar(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&&Ti(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ar(e,t,n),e=e.sibling;e!==null;)Ar(e,t,n),e=e.sibling}function Ep(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);An(t,i,n),t[St]=e,t[Kt]=n}catch(c){_t(e,e.return,c)}}var Xa=!1,sn=!1,Bc=!1,_p=typeof WeakSet=="function"?WeakSet:Set,yn=null;function Lv(e,t){if(e=e.containerInfo,lu=Zr,e=Df(e),Co(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,k=-1,F=0,ae=0,re=e,P=null;t:for(;;){for(var X;re!==n||o!==0&&re.nodeType!==3||(E=h+o),re!==c||i!==0&&re.nodeType!==3||(k=h+i),re.nodeType===3&&(h+=re.nodeValue.length),(X=re.firstChild)!==null;)P=re,re=X;for(;;){if(re===e)break t;if(P===n&&++F===o&&(E=h),P===c&&++ae===i&&(k=h),(X=re.nextSibling)!==null)break;re=P,P=re.parentNode}re=X}n=E===-1||k===-1?null:{start:E,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(su={focusedElem:e,selectionRange:n},Zr=!1,yn=t;yn!==null;)if(t=yn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yn=e;else for(;yn!==null;){switch(t=yn,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 ke=Xi(n.type,o);e=i.getSnapshotBeforeUpdate(ke,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ie){_t(n,n.return,Ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cu(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,yn=e;break}yn=t.return}}function Sp(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Qa(e,n),i&4&&ps(5,n);break;case 1:if(Qa(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&&gp(n),i&512&&ms(n,n.return);break;case 3:if(Qa(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{sh(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&i&4&&Ep(n);case 26:case 5:Qa(e,n),t===null&&i&4&&yp(n),i&512&&ms(n,n.return);break;case 12:Qa(e,n);break;case 31:Qa(e,n),i&4&&xp(e,n);break;case 13:Qa(e,n),i&4&&Tp(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$v.bind(null,n),cE(e,n))));break;case 22:if(i=n.memoizedState!==null||Xa,!i){t=t!==null&&t.memoizedState!==null||sn,o=Xa;var c=sn;Xa=i,(sn=t)&&!c?Wa(e,n,(n.subtreeFlags&8772)!==0):Qa(e,n),Xa=o,sn=c}break;case 30:break;default:Qa(e,n)}}function wp(e){var t=e.alternate;t!==null&&(e.alternate=null,wp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ea(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 Bt=null,Kn=!1;function Va(e,t,n){for(n=n.child;n!==null;)Np(e,t,n),n=n.sibling}function Np(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(zn,n)}catch{}switch(n.tag){case 26:sn||Oa(n,t),Va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:sn||Oa(n,t);var i=Bt,o=Kn;Ti(n.type)&&(Bt=n.stateNode,Kn=!1),Va(e,t,n),Ns(n.stateNode),Bt=i,Kn=o;break;case 5:sn||Oa(n,t);case 6:if(i=Bt,o=Kn,Bt=null,Va(e,t,n),Bt=i,Kn=o,Bt!==null)if(Kn)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{Bt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:Bt!==null&&(Kn?(e=Bt,gm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Dl(e)):gm(Bt,n.stateNode));break;case 4:i=Bt,o=Kn,Bt=n.stateNode.containerInfo,Kn=!0,Va(e,t,n),Bt=i,Kn=o;break;case 0:case 11:case 14:case 15:vi(2,n,t),sn||vi(4,n,t),Va(e,t,n);break;case 1:sn||(Oa(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&bp(n,t,i)),Va(e,t,n);break;case 21:Va(e,t,n);break;case 22:sn=(i=sn)||n.memoizedState!==null,Va(e,t,n),sn=i;break;default:Va(e,t,n)}}function xp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dl(e)}catch(n){_t(t,t.return,n)}}}function Tp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dl(e)}catch(n){_t(t,t.return,n)}}function zv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new _p),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new _p),t;default:throw Error(s(435,e.tag))}}function Rr(e,t){var n=zv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=Yv.bind(null,e,i);i.then(o,o)}})}function Zn(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(Ti(E.type)){Bt=E.stateNode,Kn=!1;break e}break;case 5:Bt=E.stateNode,Kn=!1;break e;case 3:case 4:Bt=E.stateNode.containerInfo,Kn=!0;break e}E=E.return}if(Bt===null)throw Error(s(160));Np(c,h,o),Bt=null,Kn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ap(t,e),t=t.sibling}var Sa=null;function Ap(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zn(t,e),Xn(e),i&4&&(vi(3,e,e.return),ps(3,e),vi(5,e,e.return));break;case 1:Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(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=Sa;if(Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(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[Wn]||c[St]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),An(c,i,n),c[St]=e,ge(c),i=c;break e;case"link":var h=Am("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),An(c,i,n),o.head.appendChild(c);break;case"meta":if(h=Am("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),An(c,i,n),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[St]=e,ge(c),i=c}e.stateNode=i}else Rm(o,e.type,e.stateNode);else e.stateNode=Tm(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?Rm(o,e.type,e.stateNode):Tm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&zc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),n!==null&&i&4&&zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),e.flags&32){o=e.stateNode;try{W(o,"")}catch(ke){_t(e,e.return,ke)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,zc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(Bc=!0);break;case 6:if(Zn(t,e),Xn(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(ke){_t(e,e.return,ke)}}break;case 3:if(Yr=null,o=Sa,Sa=Gr(t.containerInfo),Zn(t,e),Sa=o,Xn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Dl(t.containerInfo)}catch(ke){_t(e,e.return,ke)}Bc&&(Bc=!1,Rp(e));break;case 4:i=Sa,Sa=Gr(e.stateNode.containerInfo),Zn(t,e),Xn(e),Sa=i;break;case 12:Zn(t,e),Xn(e);break;case 31:Zn(t,e),Xn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rr(e,i)));break;case 13:Zn(t,e),Xn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=lt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rr(e,i)));break;case 22:o=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,F=Xa,ae=sn;if(Xa=F||o,sn=ae||k,Zn(t,e),sn=ae,Xa=F,Xn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||k||Xa||sn||Vi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(c=k.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=k.stateNode;var re=k.memoizedProps.style,P=re!=null&&re.hasOwnProperty("display")?re.display:null;E.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ke){_t(k,k.return,ke)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=o?"":k.memoizedProps}catch(ke){_t(k,k.return,ke)}}}else if(t.tag===18){if(n===null){k=t;try{var X=k.stateNode;o?bm(X,!0):bm(k.stateNode,!1)}catch(ke){_t(k,k.return,ke)}}}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,Rr(e,n))));break;case 19:Zn(t,e),Xn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rr(e,i)));break;case 30:break;case 21:break;default:Zn(t,e),Xn(e)}}function Xn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(vp(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=jc(e);Ar(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(W(h,""),n.flags&=-33);var E=jc(e);Ar(e,E,h);break;case 3:case 4:var k=n.stateNode.containerInfo,F=jc(e);Uc(e,F,k);break;default:throw Error(s(161))}}catch(ae){_t(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sp(e,t.alternate,t),t=t.sibling}function Vi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vi(4,t,t.return),Vi(t);break;case 1:Oa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&bp(t,t.return,n),Vi(t);break;case 27:Ns(t.stateNode);case 26:case 5:Oa(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function Wa(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:Wa(o,c,n),ps(4,c);break;case 1:if(Wa(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(F){_t(i,i.return,F)}if(i=c,o=i.updateQueue,o!==null){var E=i.stateNode;try{var k=o.shared.hiddenCallbacks;if(k!==null)for(o.shared.hiddenCallbacks=null,o=0;o<k.length;o++)lh(k[o],E)}catch(F){_t(i,i.return,F)}}n&&h&64&&gp(c),ms(c,c.return);break;case 27:Ep(c);case 26:case 5:Wa(o,c,n),n&&i===null&&h&4&&yp(c),ms(c,c.return);break;case 12:Wa(o,c,n);break;case 31:Wa(o,c,n),n&&h&4&&xp(o,c);break;case 13:Wa(o,c,n),n&&h&4&&Tp(o,c);break;case 22:c.memoizedState===null&&Wa(o,c,n),ms(c,c.return);break;case 30:break;default:Wa(o,c,n)}t=t.sibling}}function Ic(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&&ts(n))}function Hc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ts(e))}function wa(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kp(e,t,n,i),t=t.sibling}function kp(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:wa(e,t,n,i),o&2048&&ps(9,t);break;case 1:wa(e,t,n,i);break;case 3:wa(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&&ts(e)));break;case 12:if(o&2048){wa(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(k){_t(t,t.return,k)}}else wa(e,t,n,i);break;case 31:wa(e,t,n,i);break;case 13:wa(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?wa(e,t,n,i):gs(e,t):c._visibility&2?wa(e,t,n,i):(c._visibility|=2,Sl(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ic(h,t);break;case 24:wa(e,t,n,i),o&2048&&Hc(t.alternate,t);break;default:wa(e,t,n,i)}}function Sl(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,k=i,F=h.flags;switch(h.tag){case 0:case 11:case 15:Sl(c,h,E,k,o),ps(8,h);break;case 23:break;case 22:var ae=h.stateNode;h.memoizedState!==null?ae._visibility&2?Sl(c,h,E,k,o):gs(c,h):(ae._visibility|=2,Sl(c,h,E,k,o)),o&&F&2048&&Ic(h.alternate,h);break;case 24:Sl(c,h,E,k,o),o&&F&2048&&Hc(h.alternate,h);break;default:Sl(c,h,E,k,o)}t=t.sibling}}function gs(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:gs(n,i),o&2048&&Ic(i.alternate,i);break;case 24:gs(n,i),o&2048&&Hc(i.alternate,i);break;default:gs(n,i)}t=t.sibling}}var bs=8192;function wl(e,t,n){if(e.subtreeFlags&bs)for(e=e.child;e!==null;)Op(e,t,n),e=e.sibling}function Op(e,t,n){switch(e.tag){case 26:wl(e,t,n),e.flags&bs&&e.memoizedState!==null&&_E(n,Sa,e.memoizedState,e.memoizedProps);break;case 5:wl(e,t,n);break;case 3:case 4:var i=Sa;Sa=Gr(e.stateNode.containerInfo),wl(e,t,n),Sa=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=bs,bs=16777216,wl(e,t,n),bs=i):wl(e,t,n));break;default:wl(e,t,n)}}function Cp(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 ys(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];yn=i,Dp(i,e)}Cp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mp(e),e=e.sibling}function Mp(e){switch(e.tag){case 0:case 11:case 15:ys(e),e.flags&2048&&vi(9,e,e.return);break;case 3:ys(e);break;case 12:ys(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kr(e)):ys(e);break;default:ys(e)}}function kr(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];yn=i,Dp(i,e)}Cp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vi(8,t,t.return),kr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,kr(t));break;default:kr(t)}e=e.sibling}}function Dp(e,t){for(;yn!==null;){var n=yn;switch(n.tag){case 0:case 11:case 15:vi(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:ts(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,yn=i;else e:for(n=e;yn!==null;){i=yn;var o=i.sibling,c=i.return;if(wp(i),i===n){yn=null;break e}if(o!==null){o.return=c,yn=o;break e}yn=c}}}var jv={getCacheForType:function(e){var t=xn(nn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return xn(nn).controller.signal}},Uv=typeof WeakMap=="function"?WeakMap:Map,gt=0,kt=null,tt=null,rt=0,Et=0,aa=null,Ei=!1,Nl=!1,qc=!1,Ja=0,Ft=0,_i=0,Qi=0,Gc=0,ia=0,xl=0,vs=null,Vn=null,$c=!1,Or=0,Lp=0,Cr=1/0,Mr=null,Si=null,dn=0,wi=null,Tl=null,ei=0,Yc=0,Fc=null,zp=null,Es=0,Pc=null;function la(){return(gt&2)!==0&&rt!==0?rt&-rt:D.T!==null?Wc():Un()}function jp(){if(ia===0)if((rt&536870912)===0||ct){var e=gn;gn<<=1,(gn&3932160)===0&&(gn=262144),ia=e}else ia=536870912;return e=ta.current,e!==null&&(e.flags|=32),ia}function Qn(e,t,n){(e===kt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(Al(e,0),Ni(e,rt,ia,!1)),st(e,n),((gt&2)===0||e!==kt)&&(e===kt&&((gt&2)===0&&(Qi|=n),Ft===4&&Ni(e,rt,ia,!1)),Ca(e))}function Up(e,t,n){if((gt&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ne(e,t),o=i?Hv(e,t):Zc(e,t,!0),c=i;do{if(o===0){Nl&&!i&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Bv(n)){o=Zc(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=vs;var k=E.current.memoizedState.isDehydrated;if(k&&(Al(E,h).flags|=256),h=Zc(E,h,!1),h!==2){if(qc&&!k){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Vn,Vn=o,c!==null&&(Vn===null?Vn=c:Vn.push.apply(Vn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){Al(e,0),Ni(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(i,t,ia,!Ei);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Or+300-lt(),10<o)){if(Ni(i,t,ia,!Ei),O(i,0,!0)!==0)break e;ei=t,i.timeoutHandle=pm(Bp.bind(null,i,n,Vn,Mr,$c,t,ia,Qi,xl,Ei,c,"Throttled",-0,0),o);break e}Bp(i,n,Vn,Mr,$c,t,ia,Qi,xl,Ei,c,null,-0,0)}}break}while(!0);Ca(e)}function Bp(e,t,n,i,o,c,h,E,k,F,ae,re,P,X){if(e.timeoutHandle=-1,re=t.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ue},Op(t,c,re);var ke=(c&62914560)===c?Or-lt():(c&4194048)===c?Lp-lt():0;if(ke=SE(re,ke),ke!==null){ei=c,e.cancelPendingCommit=ke(Pp.bind(null,e,t,c,n,i,o,h,E,k,ae,re,null,P,X)),Ni(e,c,h,!F);return}}Pp(e,t,c,n,i,o,h,E,k)}function Bv(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&=~Gc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Rt(o),h=1<<c;i[c]=-1,o&=~h}n!==0&&_e(e,n,t)}function Dr(){return(gt&6)===0?(_s(0),!1):!0}function Kc(){if(tt!==null){if(Et===0)var e=tt.return;else e=tt,$a=Gi=null,cc(e),bl=null,as=0,e=tt;for(;e!==null;)mp(e.alternate,e),e=e.return;tt=null}}function Al(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,iE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ei=0,Kc(),kt=e,tt=n=qa(e.current,null),rt=t,Et=0,aa=null,Ei=!1,Nl=ne(e,t),qc=!1,xl=ia=Gc=Qi=_i=Ft=0,Vn=vs=null,$c=!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-Rt(i),c=1<<o;t|=e[o],i&=~c}return Ja=t,er(),n}function Ip(e,t){Ke=null,D.H=ds,t===gl||t===or?(t=th(),Et=3):t===Qo?(t=th(),Et=4):Et=t===xc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,aa=t,tt===null&&(Ft=1,Sr(e,ua(t,e.current)))}function Hp(){var e=ta.current;return e===null?!0:(rt&4194048)===rt?pa===null:(rt&62914560)===rt||(rt&536870912)!==0?e===pa:!1}function qp(){var e=D.H;return D.H=ds,e===null?ds:e}function Gp(){var e=D.A;return D.A=jv,e}function Lr(){Ft=4,Ei||(rt&4194048)!==rt&&ta.current!==null||(Nl=!0),(_i&134217727)===0&&(Qi&134217727)===0||kt===null||Ni(kt,rt,ia,!1)}function Zc(e,t,n){var i=gt;gt|=2;var o=qp(),c=Gp();(kt!==e||rt!==t)&&(Mr=null,Al(e,t)),t=!1;var h=Ft;e:do try{if(Et!==0&&tt!==null){var E=tt,k=aa;switch(Et){case 8:Kc(),h=6;break e;case 3:case 2:case 9:case 6:ta.current===null&&(t=!0);var F=Et;if(Et=0,aa=null,Rl(e,E,k,F),n&&Nl){h=0;break e}break;default:F=Et,Et=0,aa=null,Rl(e,E,k,F)}}Iv(),h=Ft;break}catch(ae){Ip(e,ae)}while(!0);return t&&e.shellSuspendCounter++,$a=Gi=null,gt=i,D.H=o,D.A=c,tt===null&&(kt=null,rt=0,er()),h}function Iv(){for(;tt!==null;)$p(tt)}function Hv(e,t){var n=gt;gt|=2;var i=qp(),o=Gp();kt!==e||rt!==t?(Mr=null,Cr=lt()+500,Al(e,t)):Nl=ne(e,t);e:do try{if(Et!==0&&tt!==null){t=tt;var c=aa;t:switch(Et){case 1:Et=0,aa=null,Rl(e,t,c,1);break;case 2:case 9:if(Jf(c)){Et=0,aa=null,Yp(t);break}t=function(){Et!==2&&Et!==9||kt!==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:Jf(c)?(Et=0,aa=null,Yp(t)):(Et=0,aa=null,Rl(e,t,c,7));break;case 5:var h=null;switch(tt.tag){case 26:h=tt.memoizedState;case 5:case 27:var E=tt;if(h?km(h):E.stateNode.complete){Et=0,aa=null;var k=E.sibling;if(k!==null)tt=k;else{var F=E.return;F!==null?(tt=F,zr(F)):tt=null}break t}}Et=0,aa=null,Rl(e,t,c,5);break;case 6:Et=0,aa=null,Rl(e,t,c,6);break;case 8:Kc(),Ft=6;break e;default:throw Error(s(462))}}qv();break}catch(ae){Ip(e,ae)}while(!0);return $a=Gi=null,D.H=i,D.A=o,gt=n,tt!==null?0:(kt=null,rt=0,er(),Ft)}function qv(){for(;tt!==null&&!vt();)$p(tt)}function $p(e){var t=hp(e.alternate,e,Ja);e.memoizedProps=e.pendingProps,t===null?zr(e):tt=t}function Yp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=rp(n,t,t.pendingProps,t.type,void 0,rt);break;case 11:t=rp(n,t,t.pendingProps,t.type.render,t.ref,rt);break;case 5:cc(t);default:mp(n,t),t=tt=Gf(t,Ja),t=hp(n,t,Ja)}e.memoizedProps=e.pendingProps,t===null?zr(e):tt=t}function Rl(e,t,n,i){$a=Gi=null,cc(t),bl=null,as=0;var o=t.return;try{if(kv(e,o,t,n,rt)){Ft=1,Sr(e,ua(n,e.current)),tt=null;return}}catch(c){if(o!==null)throw tt=o,c;Ft=1,Sr(e,ua(n,e.current)),tt=null;return}t.flags&32768?(ct||i===1?e=!0:Nl||(rt&536870912)!==0?e=!1:(Ei=e=!0,(i===2||i===9||i===3||i===6)&&(i=ta.current,i!==null&&i.tag===13&&(i.flags|=16384))),Fp(t,e)):zr(t)}function zr(e){var t=e;do{if((t.flags&32768)!==0){Fp(t,Ei);return}e=t.return;var n=Mv(t.alternate,t,Ja);if(n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);Ft===0&&(Ft=5)}function Fp(e,t){do{var n=Dv(e.alternate,e);if(n!==null){n.flags&=32767,tt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){tt=e;return}tt=e=n}while(e!==null);Ft=6,tt=null}function Pp(e,t,n,i,o,c,h,E,k){e.cancelPendingCommit=null;do jr();while(dn!==0);if((gt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=jo,Ae(e,n,c,h,E,k),e===kt&&(tt=kt=null,rt=0),Tl=t,wi=e,ei=n,Yc=c,Fc=o,zp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fv(hn,function(){return Qp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,o=ee.p,ee.p=2,h=gt,gt|=4;try{Lv(e,t,n)}finally{gt=h,ee.p=o,D.T=i}}dn=1,Kp(),Zp(),Xp()}}function Kp(){if(dn===1){dn=0;var e=wi,t=Tl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var i=ee.p;ee.p=2;var o=gt;gt|=4;try{Ap(t,e);var c=su,h=Df(e.containerInfo),E=c.focusedElem,k=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&Mf(E.ownerDocument.documentElement,E)){if(k!==null&&Co(E)){var F=k.start,ae=k.end;if(ae===void 0&&(ae=F),"selectionStart"in E)E.selectionStart=F,E.selectionEnd=Math.min(ae,E.value.length);else{var re=E.ownerDocument||document,P=re&&re.defaultView||window;if(P.getSelection){var X=P.getSelection(),ke=E.textContent.length,Ie=Math.min(k.start,ke),xt=k.end===void 0?Ie:Math.min(k.end,ke);!X.extend&&Ie>xt&&(h=xt,xt=Ie,Ie=h);var U=Cf(E,Ie),L=Cf(E,xt);if(U&&L&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==L.node||X.focusOffset!==L.offset)){var Y=re.createRange();Y.setStart(U.node,U.offset),X.removeAllRanges(),Ie>xt?(X.addRange(Y),X.extend(L.node,L.offset)):(Y.setEnd(L.node,L.offset),X.addRange(Y))}}}}for(re=[],X=E;X=X.parentNode;)X.nodeType===1&&re.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<re.length;E++){var le=re[E];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Zr=!!lu,su=lu=null}finally{gt=o,ee.p=i,D.T=n}}e.current=t,dn=2}}function Zp(){if(dn===2){dn=0;var e=wi,t=Tl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var i=ee.p;ee.p=2;var o=gt;gt|=4;try{Sp(e,t.alternate,t)}finally{gt=o,ee.p=i,D.T=n}}dn=3}}function Xp(){if(dn===4||dn===3){dn=0,Ln();var e=wi,t=Tl,n=ei,i=zp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dn=5:(dn=0,Tl=wi=null,Vp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Si=null),jn(n),t=t.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(zn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,o=ee.p,ee.p=2,D.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{D.T=t,ee.p=o}}(ei&3)!==0&&jr(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Pc?Es++:(Es=0,Pc=e):Es=0,_s(0)}}function Vp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ts(t)))}function jr(){return Kp(),Zp(),Xp(),Qp()}function Qp(){if(dn!==5)return!1;var e=wi,t=Yc;Yc=0;var n=jn(ei),i=D.T,o=ee.p;try{ee.p=32>n?32:n,D.T=null,n=Fc,Fc=null;var c=wi,h=ei;if(dn=0,Tl=wi=null,ei=0,(gt&6)!==0)throw Error(s(331));var E=gt;if(gt|=4,Mp(c.current),kp(c,c.current,h,n),gt=E,_s(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(zn,c)}catch{}return!0}finally{ee.p=o,D.T=i,Vp(e,t)}}function Wp(e,t,n){t=ua(n,t),t=Nc(e.stateNode,t,2),e=gi(e,t,2),e!==null&&(st(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)Wp(e,e,n);else for(;t!==null;){if(t.tag===3){Wp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Si===null||!Si.has(i))){e=ua(n,e),n=Jh(2),i=gi(t,n,2),i!==null&&(ep(n,i,t,e),st(i,2),Ca(i));break}}t=t.return}}function Xc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Uv;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)||(qc=!0,o.add(n),e=Gv.bind(null,e,t,n),t.then(e,e))}function Gv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(rt&n)===n&&(Ft===4||Ft===3&&(rt&62914560)===rt&&300>lt()-Or?(gt&2)===0&&Al(e,0):Gc|=n,xl===rt&&(xl=0)),Ca(e)}function Jp(e,t){t===0&&(t=je()),e=Ii(e,t),e!==null&&(st(e,t),Ca(e))}function $v(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jp(e,n)}function Yv(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(s(314))}i!==null&&i.delete(t),Jp(e,n)}function Fv(e,t){return Wt(e,t)}var Ur=null,kl=null,Vc=!1,Br=!1,Qc=!1,xi=0;function Ca(e){e!==kl&&e.next===null&&(kl===null?Ur=kl=e:kl=kl.next=e),Br=!0,Vc||(Vc=!0,Kv())}function _s(e,t){if(!Qc&&Br){Qc=!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-Rt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,am(i,c))}else c=rt,c=O(i,i===kt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ne(i,c)||(n=!0,am(i,c));i=i.next}while(n);Qc=!1}}function Pv(){em()}function em(){Br=Vc=!1;var e=0;xi!==0&&aE()&&(e=xi);for(var t=lt(),n=null,i=Ur;i!==null;){var o=i.next,c=tm(i,t);c===0?(i.next=null,n===null?Ur=o:n.next=o,o===null&&(kl=n)):(n=i,(e!==0||(c&3)!==0)&&(Br=!0)),i=o}dn!==0&&dn!==5||_s(e),xi!==0&&(xi=0)}function tm(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Rt(c),E=1<<h,k=o[h];k===-1?((E&n)===0||(E&i)!==0)&&(o[h]=be(E,t)):k<=t&&(e.expiredLanes|=E),c&=~E}if(t=kt,n=rt,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&&Lt(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ne(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Lt(i),jn(n)){case 2:case 8:n=_n;break;case 32:n=hn;break;case 268435456:n=Sn;break;default:n=hn}return i=nm.bind(null,e),n=Wt(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Lt(i),e.callbackPriority=2,e.callbackNode=null,2}function nm(e,t){if(dn!==0&&dn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(jr()&&e.callbackNode!==n)return null;var i=rt;return i=O(e,e===kt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Up(e,i,t),tm(e,lt()),e.callbackNode!=null&&e.callbackNode===n?nm.bind(null,e):null)}function am(e,t){if(jr())return null;Up(e,t,!0)}function Kv(){lE(function(){(gt&6)!==0?Wt(At,Pv):em()})}function Wc(){if(xi===0){var e=pl;e===0&&(e=He,He<<=1,(He&261888)===0&&(He=256)),xi=e}return xi}function im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:et(""+e)}function lm(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 Zv(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=im((o[Kt]||null).action),h=i.submitter;h&&(t=(t=h[Kt]||null)?im(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Vs("action","action",null,i,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(xi!==0){var k=h?lm(o,h):new FormData(o);yc(n,{pending:!0,data:k,method:o.method,action:c},null,k)}}else typeof c=="function"&&(E.preventDefault(),k=h?lm(o,h):new FormData(o),yc(n,{pending:!0,data:k,method:o.method,action:c},c,k))},currentTarget:o}]})}}for(var Jc=0;Jc<zo.length;Jc++){var eu=zo[Jc],Xv=eu.toLowerCase(),Vv=eu[0].toUpperCase()+eu.slice(1);_a(Xv,"on"+Vv)}_a(jf,"onAnimationEnd"),_a(Uf,"onAnimationIteration"),_a(Bf,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(fv,"onTransitionRun"),_a(hv,"onTransitionStart"),_a(pv,"onTransitionCancel"),_a(If,"onTransitionEnd"),oe("onMouseEnter",["mouseout","mouseover"]),oe("onMouseLeave",["mouseout","mouseover"]),oe("onPointerEnter",["pointerout","pointerover"]),oe("onPointerLeave",["pointerout","pointerover"]),un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),un("onBeforeInput",["compositionend","keypress","textInput","paste"]),un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="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(" "),Qv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function sm(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],k=E.instance,F=E.currentTarget;if(E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=F;try{c(o)}catch(ae){Js(ae)}o.currentTarget=null,c=k}else for(h=0;h<i.length;h++){if(E=i[h],k=E.instance,F=E.currentTarget,E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=F;try{c(o)}catch(ae){Js(ae)}o.currentTarget=null,c=k}}}}function nt(e,t){var n=t[Yn];n===void 0&&(n=t[Yn]=new Set);var i=e+"__bubble";n.has(i)||(rm(t,e,2,!1),n.add(i))}function tu(e,t,n){var i=0;t&&(i|=4),rm(n,e,i,t)}var Ir="_reactListening"+Math.random().toString(36).slice(2);function nu(e){if(!e[Ir]){e[Ir]=!0,xe.forEach(function(n){n!=="selectionchange"&&(Qv.has(n)||tu(n,!1,e),tu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ir]||(t[Ir]=!0,tu("selectionchange",!1,t))}}function rm(e,t,n,i){switch(jm(t)){case 2:var o=xE;break;case 8:o=TE;break;default:o=bu}n=o.bind(null,t,n,e),o=void 0,!So||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 au(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 k=h.tag;if((k===3||k===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=Jt(E),h===null)return;if(k=h.tag,k===5||k===6||k===26||k===27){i=c=h;continue e}E=E.parentNode}}i=i.return}Ps(function(){var F=c,ae=De(n),re=[];e:{var P=Hf.get(e);if(P!==void 0){var X=Vs,ke=e;switch(e){case"keypress":if(Zs(n)===0)break e;case"keydown":case"keyup":X=Yy;break;case"focusin":ke="focus",X=To;break;case"focusout":ke="blur",X=To;break;case"beforeblur":case"afterblur":X=To;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":X=mf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=My;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Ky;break;case jf:case Uf:case Bf:X=zy;break;case If:X=Xy;break;case"scroll":case"scrollend":X=Oy;break;case"wheel":X=Qy;break;case"copy":case"cut":case"paste":X=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=bf;break;case"toggle":case"beforetoggle":X=Jy}var Ie=(t&4)!==0,xt=!Ie&&(e==="scroll"||e==="scrollend"),U=Ie?P!==null?P+"Capture":null:P;Ie=[];for(var L=F,Y;L!==null;){var le=L;if(Y=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||Y===null||U===null||(le=Yl(L,U),le!=null&&Ie.push(ws(L,le,Y))),xt)break;L=L.return}0<Ie.length&&(P=new X(P,ke,null,n,ae),re.push({event:P,listeners:Ie}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",P&&n!==Ee&&(ke=n.relatedTarget||n.fromElement)&&(Jt(ke)||ke[ut]))break e;if((X||P)&&(P=ae.window===ae?ae:(P=ae.ownerDocument)?P.defaultView||P.parentWindow:window,X?(ke=n.relatedTarget||n.toElement,X=F,ke=ke?Jt(ke):null,ke!==null&&(xt=f(ke),Ie=ke.tag,ke!==xt||Ie!==5&&Ie!==27&&Ie!==6)&&(ke=null)):(X=null,ke=F),X!==ke)){if(Ie=mf,le="onMouseLeave",U="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ie=bf,le="onPointerLeave",U="onPointerEnter",L="pointer"),xt=X==null?P:G(X),Y=ke==null?P:G(ke),P=new Ie(le,L+"leave",X,n,ae),P.target=xt,P.relatedTarget=Y,le=null,Jt(ae)===F&&(Ie=new Ie(U,L+"enter",ke,n,ae),Ie.target=Y,Ie.relatedTarget=xt,le=Ie),xt=le,X&&ke)t:{for(Ie=Wv,U=X,L=ke,Y=0,le=U;le;le=Ie(le))Y++;le=0;for(var ze=L;ze;ze=Ie(ze))le++;for(;0<Y-le;)U=Ie(U),Y--;for(;0<le-Y;)L=Ie(L),le--;for(;Y--;){if(U===L||L!==null&&U===L.alternate){Ie=U;break t}U=Ie(U),L=Ie(L)}Ie=null}else Ie=null;X!==null&&om(re,P,X,Ie,!1),ke!==null&&xt!==null&&om(re,xt,ke,Ie,!0)}}e:{if(P=F?G(F):window,X=P.nodeName&&P.nodeName.toLowerCase(),X==="select"||X==="input"&&P.type==="file")var ht=xf;else if(wf(P))if(Tf)ht=cv;else{ht=rv;var Ce=sv}else X=P.nodeName,!X||X.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?F&&Te(F.elementType)&&(ht=xf):ht=ov;if(ht&&(ht=ht(e,F))){Nf(re,ht,n,ae);break e}Ce&&Ce(e,P,F),e==="focusout"&&F&&P.type==="number"&&F.memoizedProps.value!=null&&oi(P,"number",P.value)}switch(Ce=F?G(F):window,e){case"focusin":(wf(Ce)||Ce.contentEditable==="true")&&(sl=Ce,Mo=F,Wl=null);break;case"focusout":Wl=Mo=sl=null;break;case"mousedown":Do=!0;break;case"contextmenu":case"mouseup":case"dragend":Do=!1,Lf(re,n,ae);break;case"selectionchange":if(dv)break;case"keydown":case"keyup":Lf(re,n,ae)}var Xe;if(Ro)e:{switch(e){case"compositionstart":var ot="onCompositionStart";break e;case"compositionend":ot="onCompositionEnd";break e;case"compositionupdate":ot="onCompositionUpdate";break e}ot=void 0}else ll?_f(e,n)&&(ot="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ot="onCompositionStart");ot&&(yf&&n.locale!=="ko"&&(ll||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&ll&&(Xe=hf()):(ci=ae,wo="value"in ci?ci.value:ci.textContent,ll=!0)),Ce=Hr(F,ot),0<Ce.length&&(ot=new gf(ot,e,null,n,ae),re.push({event:ot,listeners:Ce}),Xe?ot.data=Xe:(Xe=Sf(n),Xe!==null&&(ot.data=Xe)))),(Xe=tv?nv(e,n):av(e,n))&&(ot=Hr(F,"onBeforeInput"),0<ot.length&&(Ce=new gf("onBeforeInput","beforeinput",null,n,ae),re.push({event:Ce,listeners:ot}),Ce.data=Xe)),Zv(re,e,F,n,ae)}sm(re,t)})}function ws(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(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=Yl(e,n),o!=null&&i.unshift(ws(e,o,c)),o=Yl(e,t),o!=null&&i.push(ws(e,o,c))),e.tag===3)return i;e=e.return}return[]}function Wv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function om(e,t,n,i,o){for(var c=t._reactName,h=[];n!==null&&n!==i;){var E=n,k=E.alternate,F=E.stateNode;if(E=E.tag,k!==null&&k===i)break;E!==5&&E!==26&&E!==27||F===null||(k=F,o?(F=Yl(n,c),F!=null&&h.unshift(ws(n,F,k))):o||(F=Yl(n,c),F!=null&&h.push(ws(n,F,k)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Jv=/\r\n?/g,eE=/\u0000|\uFFFD/g;function cm(e){return(typeof e=="string"?e:""+e).replace(Jv,`
|
|
49
|
+
`).replace(eE,"")}function um(e,t){return t=cm(t),cm(e)===t}function Nt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||W(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&W(e,""+i);break;case"className":bn(e,"class",i);break;case"tabIndex":bn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":bn(e,n,i);break;case"style":te(e,i,c);break;case"data":if(t!=="object"){bn(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=et(""+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"&&Nt(e,t,"name",o.name,o,null),Nt(e,t,"formEncType",o.formEncType,o,null),Nt(e,t,"formMethod",o.formMethod,o,null),Nt(e,t,"formTarget",o.formTarget,o,null)):(Nt(e,t,"encType",o.encType,o,null),Nt(e,t,"method",o.method,o,null),Nt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=et(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ue);break;case"onScroll":i!=null&&nt("scroll",e);break;case"onScrollEnd":i!=null&&nt("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(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=et(""+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":nt("beforetoggle",e),nt("toggle",e),en(e,"popover",i);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":en(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=Oe.get(n)||n,en(e,n,i))}}function iu(e,t,n,i,o,c){switch(n){case"style":te(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?W(e,i):(typeof i=="number"||typeof i=="bigint")&&W(e,""+i);break;case"onScroll":i!=null&&nt("scroll",e);break;case"onScrollEnd":i!=null&&nt("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ye.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[Kt]||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,""):en(e,n,i)}}}function An(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",e),nt("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(s(137,t));default:Nt(e,t,c,h,n,null)}}o&&Nt(e,t,"srcSet",n.srcSet,n,null),i&&Nt(e,t,"src",n.src,n,null);return;case"input":nt("invalid",e);var E=c=h=o=null,k=null,F=null;for(i in n)if(n.hasOwnProperty(i)){var ae=n[i];if(ae!=null)switch(i){case"name":o=ae;break;case"type":h=ae;break;case"checked":k=ae;break;case"defaultChecked":F=ae;break;case"value":c=ae;break;case"defaultValue":E=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,t));break;default:Nt(e,t,i,ae,n,null)}}Ba(e,c,E,k,F,h,o,!1);return;case"select":nt("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:Nt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!i,t!=null?tn(e,!!i,t,!1):n!=null&&tn(e,!!i,n,!0);return;case"textarea":nt("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(s(91));break;default:Nt(e,t,h,E,n,null)}Aa(e,i,o,c);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(i=n[k],i!=null))switch(k){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Nt(e,t,k,i,n,null)}return;case"dialog":nt("beforetoggle",e),nt("toggle",e),nt("cancel",e),nt("close",e);break;case"iframe":case"object":nt("load",e);break;case"video":case"audio":for(i=0;i<Ss.length;i++)nt(Ss[i],e);break;case"image":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"embed":case"source":case"link":nt("error",e),nt("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(F in n)if(n.hasOwnProperty(F)&&(i=n[F],i!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Nt(e,t,F,i,n,null)}return;default:if(Te(t)){for(ae in n)n.hasOwnProperty(ae)&&(i=n[ae],i!==void 0&&iu(e,t,ae,i,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(i=n[E],i!=null&&Nt(e,t,E,i,n,null))}function tE(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,k=null,F=null,ae=null;for(X in n){var re=n[X];if(n.hasOwnProperty(X)&&re!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":k=re;default:i.hasOwnProperty(X)||Nt(e,t,X,null,i,re)}}for(var P in i){var X=i[P];if(re=n[P],i.hasOwnProperty(P)&&(X!=null||re!=null))switch(P){case"type":c=X;break;case"name":o=X;break;case"checked":F=X;break;case"defaultChecked":ae=X;break;case"value":h=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:X!==re&&Nt(e,t,P,X,i,re)}}ri(e,h,E,k,F,ae,c,o);return;case"select":X=h=E=P=null;for(c in n)if(k=n[c],n.hasOwnProperty(c)&&k!=null)switch(c){case"value":break;case"multiple":X=k;default:i.hasOwnProperty(c)||Nt(e,t,c,null,i,k)}for(o in i)if(c=i[o],k=n[o],i.hasOwnProperty(o)&&(c!=null||k!=null))switch(o){case"value":P=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==k&&Nt(e,t,o,c,i,k)}t=E,n=h,i=X,P!=null?tn(e,!!n,P,!1):!!i!=!!n&&(t!=null?tn(e,!!n,t,!0):tn(e,!!n,n?[]:"",!1));return;case"textarea":X=P=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:Nt(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":P=o;break;case"defaultValue":X=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Nt(e,t,h,o,i,c)}Ia(e,P,X);return;case"option":for(var ke in n)if(P=n[ke],n.hasOwnProperty(ke)&&P!=null&&!i.hasOwnProperty(ke))switch(ke){case"selected":e.selected=!1;break;default:Nt(e,t,ke,null,i,P)}for(k in i)if(P=i[k],X=n[k],i.hasOwnProperty(k)&&P!==X&&(P!=null||X!=null))switch(k){case"selected":e.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:Nt(e,t,k,P,i,X)}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 Ie in n)P=n[Ie],n.hasOwnProperty(Ie)&&P!=null&&!i.hasOwnProperty(Ie)&&Nt(e,t,Ie,null,i,P);for(F in i)if(P=i[F],X=n[F],i.hasOwnProperty(F)&&P!==X&&(P!=null||X!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,t));break;default:Nt(e,t,F,P,i,X)}return;default:if(Te(t)){for(var xt in n)P=n[xt],n.hasOwnProperty(xt)&&P!==void 0&&!i.hasOwnProperty(xt)&&iu(e,t,xt,void 0,i,P);for(ae in i)P=i[ae],X=n[ae],!i.hasOwnProperty(ae)||P===X||P===void 0&&X===void 0||iu(e,t,ae,P,i,X);return}}for(var U in n)P=n[U],n.hasOwnProperty(U)&&P!=null&&!i.hasOwnProperty(U)&&Nt(e,t,U,null,i,P);for(re in i)P=i[re],X=n[re],!i.hasOwnProperty(re)||P===X||P==null&&X==null||Nt(e,t,re,P,i,X)}function dm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nE(){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&&dm(h)){for(h=0,E=o.responseEnd,i+=1;i<n.length;i++){var k=n[i],F=k.startTime;if(F>E)break;var ae=k.transferSize,re=k.initiatorType;ae&&dm(re)&&(k=k.responseEnd,h+=ae*(k<E?1:(E-F)/(k-F)))}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 lu=null,su=null;function qr(e){return e.nodeType===9?e:e.ownerDocument}function fm(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 hm(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 ru(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 ou=null;function aE(){var e=window.event;return e&&e.type==="popstate"?e===ou?!1:(ou=e,!0):(ou=null,!1)}var pm=typeof setTimeout=="function"?setTimeout:void 0,iE=typeof clearTimeout=="function"?clearTimeout:void 0,mm=typeof Promise=="function"?Promise:void 0,lE=typeof queueMicrotask=="function"?queueMicrotask:typeof mm<"u"?function(e){return mm.resolve(null).then(e).catch(sE)}:pm;function sE(e){setTimeout(function(){throw e})}function Ti(e){return e==="head"}function gm(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),Dl(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[Wn]||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);Dl(t)}function bm(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 cu(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":cu(n),Ea(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function rE(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[Wn])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=ma(e.nextSibling),e===null)break}return null}function oE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ma(e.nextSibling),e===null))return null;return e}function ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ma(e.nextSibling),e===null))return null;return e}function uu(e){return e.data==="$?"||e.data==="$~"}function du(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function cE(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 ma(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 fu=null;function vm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ma(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Em(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 _m(e,t,n){switch(t=qr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ea(e)}var ga=new Map,Sm=new Set;function Gr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ti=ee.d;ee.d={f:uE,r:dE,D:fE,C:hE,L:pE,m:mE,X:bE,S:gE,M:yE};function uE(){var e=ti.f(),t=Dr();return e||t}function dE(e){var t=Fn(e);t!==null&&t.tag===5&&t.type==="form"?Ih(t):ti.r(e)}var Ol=typeof document>"u"?null:document;function wm(e,t,n){var i=Ol;if(i&&typeof t=="string"&&t){var o=On(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Sm.has(o)||(Sm.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),An(t,"link",e),ge(t),i.head.appendChild(t)))}}function fE(e){ti.D(e),wm("dns-prefetch",e,null)}function hE(e,t){ti.C(e,t),wm("preconnect",e,t)}function pE(e,t,n){ti.L(e,t,n);var i=Ol;if(i&&e&&t){var o='link[rel="preload"][as="'+On(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+On(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+On(n.imageSizes)+'"]')):o+='[href="'+On(e)+'"]';var c=o;switch(t){case"style":c=Cl(e);break;case"script":c=Ml(e)}ga.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(xs(c))||t==="script"&&i.querySelector(Ts(c))||(t=i.createElement("link"),An(t,"link",e),ge(t),i.head.appendChild(t)))}}function mE(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="'+On(i)+'"][href="'+On(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ml(e)}if(!ga.has(c)&&(e=v({rel:"modulepreload",href:e},t),ga.set(c,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ts(c)))return}i=n.createElement("link"),An(i,"link",e),ge(i),n.head.appendChild(i)}}}function gE(e,t,n){ti.S(e,t,n);var i=Ol;if(i&&e){var o=de(i).hoistableStyles,c=Cl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=i.querySelector(xs(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(c))&&hu(e,n);var k=h=i.createElement("link");ge(k),An(k,"link",e),k._p=new Promise(function(F,ae){k.onload=F,k.onerror=ae}),k.addEventListener("load",function(){E.loading|=1}),k.addEventListener("error",function(){E.loading|=2}),E.loading|=4,$r(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function bE(e,t){ti.X(e,t);var n=Ol;if(n&&e){var i=de(n).hoistableScripts,o=Ml(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0},t),(t=ga.get(o))&&pu(e,t),c=n.createElement("script"),ge(c),An(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function yE(e,t){ti.M(e,t);var n=Ol;if(n&&e){var i=de(n).hoistableScripts,o=Ml(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ga.get(o))&&pu(e,t),c=n.createElement("script"),ge(c),An(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Nm(e,t,n,i){var o=(o=ve.current)?Gr(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Cl(n.href),n=de(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=Cl(n.href);var c=de(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(xs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ga.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},ga.set(e,n),c||vE(o,e,n,h.state))),t&&i===null)throw Error(s(528,""));return h}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ml(n),n=de(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(s(444,e))}}function Cl(e){return'href="'+On(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function vE(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}),An(t,"link",n),ge(t),e.head.appendChild(t))}function Ml(e){return'[src="'+On(e)+'"]'}function Ts(e){return"script[async]"+e}function Tm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+On(n.href)+'"]');if(i)return t.instance=i,ge(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"),ge(i),An(i,"style",o),$r(i,n.precedence,e),t.instance=i;case"stylesheet":o=Cl(n.href);var c=e.querySelector(xs(o));if(c)return t.state.loading|=4,t.instance=c,ge(c),c;i=xm(n),(o=ga.get(o))&&hu(i,o),c=(e.ownerDocument||e).createElement("link"),ge(c);var h=c;return h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),An(c,"link",i),t.state.loading|=4,$r(c,n.precedence,e),t.instance=c;case"script":return c=Ml(n.src),(o=e.querySelector(Ts(c)))?(t.instance=o,ge(o),o):(i=n,(o=ga.get(c))&&(i=v({},n),pu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ge(o),An(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,$r(i,n.precedence,e));return t.instance}function $r(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 hu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function pu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yr=null;function Am(e,t,n){if(Yr===null){var i=new Map,o=Yr=new Map;o.set(n,i)}else o=Yr,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[Wn]||c[St]||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 Rm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function EE(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 km(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _E(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=Cl(i.href),c=t.querySelector(xs(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Fr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ge(c);return}c=t.ownerDocument||t,i=xm(i),(o=ga.get(o))&&hu(i,o),c=c.createElement("link"),ge(c);var h=c;h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),An(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=Fr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var mu=0;function SE(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&&mu===0&&(mu=62500*nE());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>mu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Fr(){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 Pr=null;function Kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pr=new Map,t.forEach(wE,e),Pr=null,Fr.call(e))}function wE(e,t){if(!(t.state.loading&4)){var n=Pr.get(e);if(n)var i=n.get(null);else{n=new Map,Pr.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=Fr.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 As={$$typeof:A,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function NE(e,t,n,i,o,c,h,E,k){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=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function Om(e,t,n,i,o,c,h,E,k,F,ae,re){return e=new NE(e,t,n,h,k,F,ae,re,E),t=1,c===!0&&(t|=24),c=ea(3,null,null,t),e.current=c,c.stateNode=e,t=Zo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Wo(c),e}function Cm(e){return e?(e=cl,e):cl}function Mm(e,t,n,i,o,c){o=Cm(o),i.context===null?i.context=o:i.pendingContext=o,i=mi(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=gi(e,i,t),n!==null&&(Qn(n,e,t),ls(n,e,t))}function Dm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gu(e,t){Dm(e,t),(e=e.alternate)&&Dm(e,t)}function Lm(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Qn(t,e,67108864),gu(e,67108864)}}function zm(e){if(e.tag===13||e.tag===31){var t=la();t=bt(t);var n=Ii(e,t);n!==null&&Qn(n,e,t),gu(e,t)}}var Zr=!0;function xE(e,t,n,i){var o=D.T;D.T=null;var c=ee.p;try{ee.p=2,bu(e,t,n,i)}finally{ee.p=c,D.T=o}}function TE(e,t,n,i){var o=D.T;D.T=null;var c=ee.p;try{ee.p=8,bu(e,t,n,i)}finally{ee.p=c,D.T=o}}function bu(e,t,n,i){if(Zr){var o=yu(i);if(o===null)au(e,t,i,Xr,n),Um(e,i);else if(RE(o,e,t,n,i))i.stopPropagation();else if(Um(e,i),t&4&&-1<AE.indexOf(e)){for(;o!==null;){var c=Fn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=$t(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var k=1<<31-Rt(h);E.entanglements[1]|=k,h&=~k}Ca(c),(gt&6)===0&&(Cr=lt()+500,_s(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Qn(E,c,2),Dr(),gu(c,2)}if(c=yu(i),c===null&&au(e,t,i,Xr,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else au(e,t,i,null,n)}}function yu(e){return e=De(e),vu(e)}var Xr=null;function vu(e){if(Xr=null,e=Jt(e),e!==null){var t=f(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 Xr=e,null}function jm(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(mt()){case At:return 2;case _n:return 8;case hn:case qn:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var Eu=!1,Ai=null,Ri=null,ki=null,Rs=new Map,ks=new Map,Oi=[],AE="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 Um(e,t){switch(e){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":Rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ks.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=Fn(t),t!==null&&Lm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function RE(e,t,n,i,o){switch(t){case"focusin":return Ai=Os(Ai,e,t,n,i,o),!0;case"dragenter":return Ri=Os(Ri,e,t,n,i,o),!0;case"mouseover":return ki=Os(ki,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return Rs.set(c,Os(Rs.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,ks.set(c,Os(ks.get(c)||null,e,t,n,i,o)),!0}return!1}function Bm(e){var t=Jt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,ba(e.priority,function(){zm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ba(e.priority,function(){zm(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 Vr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ee=i,n.target.dispatchEvent(i),Ee=null}else return t=Fn(n),t!==null&&Lm(t),e.blockedOn=n,!1;t.shift()}return!0}function Im(e,t,n){Vr(e)&&n.delete(t)}function kE(){Eu=!1,Ai!==null&&Vr(Ai)&&(Ai=null),Ri!==null&&Vr(Ri)&&(Ri=null),ki!==null&&Vr(ki)&&(ki=null),Rs.forEach(Im),ks.forEach(Im)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,Eu||(Eu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,kE)))}var Wr=null;function Hm(e){Wr!==e&&(Wr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Wr===e&&(Wr=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(vu(i||n)===null)continue;break}var c=Fn(n);c!==null&&(e.splice(t,3),t-=3,yc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function Dl(e){function t(k){return Qr(k,e)}Ai!==null&&Qr(Ai,e),Ri!==null&&Qr(Ri,e),ki!==null&&Qr(ki,e),Rs.forEach(t),ks.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);)Bm(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[Kt]||null;if(typeof c=="function")h||Hm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Kt]||null)E=h.formAction;else if(vu(o)!==null)continue}else E=h.action;typeof E=="function"?n[i+1]=E:(n.splice(i,3),i-=3),Hm(n)}}}function qm(){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 _u(e){this._internalRoot=e}Jr.prototype.render=_u.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=la();Mm(n,i,e,t,null,null)},Jr.prototype.unmount=_u.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mm(e.current,2,null,e,null,null),Dr(),t[ut]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Un();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&&Bm(e)}};var Gm=a.version;if(Gm!=="19.2.8")throw Error(s(527,Gm,"19.2.8"));ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var OE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eo.isDisabled&&eo.supportsFiber)try{zn=eo.inject(OE),Ht=eo}catch{}}return Ms.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,i="",o=Xh,c=Vh,h=Qh;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=Om(e,1,!1,null,null,n,i,null,o,c,h,qm),e[ut]=t.current,nu(e),new _u(t)},Ms.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var i=!1,o="",c=Xh,h=Vh,E=Qh,k=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&&(k=n.formState)),t=Om(e,1,!0,t,n??null,i,o,k,c,h,E,qm),t.context=Cm(null),n=t.current,i=la(),i=bt(i),o=mi(i),o.callback=null,gi(n,o,i),n=i,t.current.lanes=n,st(t,n),Ca(t),e[ut]=t.current,nu(e),new Jr(t)},Ms.version="19.2.8",Ms}var Wm;function GE(){if(Wm)return Nu.exports;Wm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),Nu.exports=qE(),Nu.exports}var $E=GE(),rn;(function(l){l.INSERT="insert",l.DELETE="delete",l.CONTEXT="context"})(rn||(rn={}));const YE={LINE_BY_LINE:"line-by-line"},FE={NONE:"none"},PE={WORD:"word"};var Il;(function(l){l.AUTO="auto",l.DARK="dark",l.LIGHT="light"})(Il||(Il={}));const KE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],ZE=RegExp("["+KE.join("\\")+"]","g");function XE(l){return l.replace(ZE,"\\$&")}function Jm(l){return l&&l.replace(/\\/g,"/")}function VE(l){let a,r,s,u=0;for(a=0,s=l.length;a<s;a++)r=l.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function Ub(l){const a=l.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,l[s]);return r}function eg(l,a){const r=l.split(".");return r.length>1?r[r.length-1]:a}function tg(l,a){return a.reduce((r,s)=>r||l.startsWith(s),!1)}const ng=["a/","b/","i/","w/","c/","o/"];function Li(l,a,r){const s=r!==void 0?[...ng,r]:ng,u=a?new RegExp(`^${XE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,f=""]=u.exec(l)||[],p=s.find(g=>f.indexOf(g)===0);return(p?f.slice(p.length):f).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function QE(l,a){return Li(l,"---",a)}function WE(l,a){return Li(l,"+++",a)}function JE(l,a={}){const r=[];let s=null,u=null,f=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",x=/^old mode (\d{6})/,S=/^new mode (\d{6})/,C=/^deleted file mode (\d{6})/,T=/^new file mode (\d{6})/,M=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,V=/^rename to "?(.+)"?/,Q=/^similarity index (\d+)%/,ie=/^dissimilarity index (\d+)%/,H=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,R=/^Binary files (.*) and (.*) differ/,q=/^GIT binary patch/,J=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,me=/^new file mode (\d{6})/,ce=/^deleted file mode (\d{6}),(\d{6})/,Se=l.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
50
|
`).split(`
|
|
51
|
-
`);function he(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function M(){s!==null&&(!s.oldName&&g!==null&&(s.oldName=g),!s.newName&&m!==null&&(s.newName=m),s.newName&&(r.push(s),s=null)),g=null,m=null}function ee(){he(),M(),s={blocks:[],deletedLines:0,addedLines:0}}function fe(S){he();let z;s!==null&&((z=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(s.isCombined=!1,f=parseInt(z[1],10),y=parseInt(z[2],10)):(z=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(S))?(s.isCombined=!0,f=parseInt(z[1],10),p=parseInt(z[2],10),y=parseInt(z[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),f=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:f,oldStartLine2:p,newStartLine:y,header:S}}function we(S){if(s===null||u===null||f===null||y===null)return;const z={content:S},B=s.isCombined?["+ "," +","++"]:["+"],se=s.isCombined?["- "," -","--"]:["-"];Jm(S,B)?(s.addedLines++,z.type=rn.INSERT,z.oldNumber=void 0,z.newNumber=y++):Jm(S,se)?(s.deletedLines++,z.type=rn.DELETE,z.oldNumber=f++,z.newNumber=void 0):(z.type=rn.CONTEXT,z.oldNumber=f++,z.newNumber=y++),u.lines.push(z)}function Le(S,z){let B=z;for(;B<Se.length-3;){if(S.startsWith("diff"))return!1;if(Se[B].startsWith(b)&&Se[B+1].startsWith(v)&&Se[B+2].startsWith(_))return!0;B++}return!1}return Se.forEach((S,z)=>{if(!S||S.startsWith("*"))return;let B;const se=Se[z-1],pe=Se[z+1],ve=Se[z+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ee(),(B=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(ee(),(B=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&S.startsWith(b)&&pe.startsWith(v)&&ve.startsWith(_))&&ee(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&S.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const ye=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";fe(ye);return}if(S.startsWith(b)&&pe.startsWith(v)||S.startsWith(v)&&se.startsWith(b)){if(s&&!s.oldName&&S.startsWith("--- ")&&(B=ZE(S,a.srcPrefix))){s.oldName=B,s.language=Wm(s.oldName,s.language);return}if(s&&!s.newName&&S.startsWith("+++ ")&&(B=XE(S,a.dstPrefix))){s.newName=B,s.language=Wm(s.newName,s.language);return}}if(s&&(S.startsWith(_)||s.isGitDiff&&s.oldName&&s.newName&&!u)){fe(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){we(S);return}const Z=!Le(S,z);if(s===null)throw new Error("Where is my file !!!");(B=T.exec(S))?s.oldMode=B[1]:(B=N.exec(S))?s.newMode=B[1]:(B=D.exec(S))?(s.deletedFileMode=B[1],s.isDeleted=!0):(B=x.exec(S))?(s.newFileMode=B[1],s.isNew=!0):(B=C.exec(S))?(Z&&(s.oldName=B[1]),s.isCopy=!0):(B=I.exec(S))?(Z&&(s.newName=B[1]),s.isCopy=!0):(B=A.exec(S))?(Z&&(s.oldName=B[1]),s.isRename=!0):(B=Q.exec(S))?(Z&&(s.newName=B[1]),s.isRename=!0):(B=R.exec(S))?(s.isBinary=!0,s.oldName=Li(B[1],void 0,a.srcPrefix),s.newName=Li(B[2],void 0,a.dstPrefix),fe("Binary file")):q.test(S)?(s.isBinary=!0,fe(S)):(B=V.exec(S))?s.unchangedPercentage=parseInt(B[1],10):(B=ie.exec(S))?s.changedPercentage=parseInt(B[1],10):(B=H.exec(S))?(s.checksumBefore=B[1],s.checksumAfter=B[2],B[3]&&(s.mode=B[3])):(B=J.exec(S))?(s.checksumBefore=[B[2],B[3]],s.checksumAfter=B[1]):(B=K.exec(S))?(s.oldMode=[B[2],B[3]],s.newMode=B[1]):(B=me.exec(S))?(s.newFileMode=B[1],s.isNew=!0):(B=ce.exec(S))&&(s.deletedFileMode=B[1],s.isDeleted=!0)}),he(),M(),r}class jb{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const f=this.castInput(a,s),p=this.castInput(r,s),y=this.removeEmpty(this.tokenize(f,s)),g=this.removeEmpty(this.tokenize(p,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var f;const p=I=>{if(I=this.postProcess(I,s),u){setTimeout(function(){u(I)},0);return}else return I},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(f=s.timeout)!==null&&f!==void 0?f:1/0,_=Date.now()+v,T=[{oldPos:-1,lastComponent:void 0}];let N=this.extractCommon(T[0],r,a,0,s);if(T[0].oldPos+1>=g&&N+1>=y)return p(this.buildValues(T[0].lastComponent,r,a));let D=-1/0,x=1/0;const C=()=>{for(let I=Math.max(D,-m);I<=Math.min(x,m);I+=2){let A;const Q=T[I-1],V=T[I+1];Q&&(T[I-1]=void 0);let ie=!1;if(V){const R=V.oldPos-I;ie=V&&0<=R&&R<y}const H=Q&&Q.oldPos+1<g;if(!ie&&!H){T[I]=void 0;continue}if(!H||ie&&Q.oldPos<V.oldPos?A=this.addToPath(V,!0,!1,0,s):A=this.addToPath(Q,!1,!0,1,s),N=this.extractCommon(A,r,a,I,s),A.oldPos+1>=g&&N+1>=y)return p(this.buildValues(A.lastComponent,r,a))||!0;T[I]=A,A.oldPos+1>=g&&(x=Math.min(x,I-1)),N+1>=y&&(D=Math.max(D,I+1))}m++};if(u)(function I(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);C()||I()},0)})();else for(;m<=b&&Date.now()<=_;){const I=C();if(I)return I}}addToPath(a,r,s,u,f){const p=a.lastComponent;return p&&!f.oneChangePerToken&&p.added===r&&p.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:s,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:p}}}extractCommon(a,r,s,u,f){const p=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(s[g+1],r[m+1],f);)m++,g++,b++,f.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!f.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,s){return s.comparator?s.comparator(a,r):a===r||!!s.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let s=0;s<a.length;s++)a[s]&&r.push(a[s]);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,s){const u=[];let f;for(;a;)u.push(a),f=a.previousComponent,delete a.previousComponent,a=f;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(s.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(_,T){const N=s[m+T];return N.length>_.length?N:_}),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 QE extends jb{}const WE=new QE;function JE(l,a,r){return WE.diff(l,a,r)}const tg="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 e_ extends jb{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${tg}]+|[^\\S\\n\\r]+|[^${tg}]`,"ug");return a.match(r)||[]}}const t_=new e_;function n_(l,a,r){return t_.diff(l,a,r)}function a_(l,a){if(l.length===0)return a.length;if(a.length===0)return l.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=l.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=l.length;u++)a.charAt(s-1)===l.charAt(u-1)?r[s][u]=r[s-1][u-1]:r[s][u]=Math.min(r[s-1][u-1]+1,Math.min(r[s][u-1]+1,r[s-1][u]+1));return r[a.length][l.length]}function Fd(l){return(a,r)=>{const s=l(a).trim(),u=l(r).trim();return a_(s,u)/(s.length+u.length)}}function Pd(l){function a(s,u,f=new Map){let p=1/0,y;for(let g=0;g<s.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([s[g],u[m]]);let v;f.has(b)&&(v=f.get(b))||(v=l(s[g],u[m]),f.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(s,u,f=0,p=new Map){const y=a(s,u,p);if(!y||s.length+u.length<3)return[[s,u]];const g=s.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[s[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,T=y.indexB+1,N=s.slice(_),D=u.slice(T),x=r(g,m,f+1,p),C=r(b,v,f+1,p),I=r(N,D,f+1,p);let A=C;return(y.indexA>0||y.indexB>0)&&(A=x.concat(A)),(s.length>_||u.length>T)&&(A=A.concat(I)),A}return r}const In={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},bo={matching:GE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:$E.WORD,colorScheme:Bl.LIGHT},Ma="/",Ub=Fd(l=>l.value),i_=Pd(Ub);function xu(l){return l.indexOf("dev/null")!==-1}function l_(l){return l.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function s_(l){return l.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function oo(l){switch(l){case rn.CONTEXT:return In.CONTEXT;case rn.INSERT:return In.INSERTS;case rn.DELETE:return In.DELETES}}function Kd(l){switch(l){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 r_(l){return l?2:1}function Il(l){return l.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function La(l,a,r=!0){const s=r_(a);return{prefix:l.substring(0,s),content:r?Il(l.substring(s)):l.substring(s)}}function yo(l){const a=Qm(l.oldName),r=Qm(l.newName);if(a!==r&&!xu(a)&&!xu(r)){const s=[],u=[],f=a.split(Ma),p=r.split(Ma),y=f.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&f[m]===p[m];)s.push(p[m]),m+=1;for(;b>m&&v>m&&f[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const _=s.join(Ma),T=u.join(Ma),N=f.slice(m,b+1).join(Ma),D=p.slice(m,v+1).join(Ma);return _.length&&T.length?_+Ma+"{"+N+" → "+D+"}"+Ma+T:_.length?_+Ma+"{"+N+" → "+D+"}":T.length?"{"+N+" → "+D+"}"+Ma+T:a+" → "+r}else return xu(r)?a:r}function Zd(l){return`d2h-${KE(yo(l)).toString().slice(-6)}`}function Xd(l){let a="file-changed";return l.isRename||l.isCopy?a="file-renamed":l.isNew?a="file-added":l.isDeleted?a="file-deleted":l.newName!==l.oldName&&(a="file-renamed"),a}function Bb(l,a,r,s={}){const{matching:u,maxLineLengthHighlight:f,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},bo),s),g=La(l,r,!1),m=La(a,r,!1);if(g.content.length>f||m.content.length>f)return{oldLine:{prefix:g.prefix,content:Il(g.content)},newLine:{prefix:m.prefix,content:Il(m.content)}};const b=y==="char"?JE(g.content,m.content):n_(g.content,m.content),v=[];if(y==="word"&&u==="words"){const T=b.filter(x=>x.removed),N=b.filter(x=>x.added);i_(N,T).forEach(x=>{x[0].length===1&&x[1].length===1&&Ub(x[0][0],x[1][0])<p&&(v.push(x[0][0]),v.push(x[1][0]))})}const _=b.reduce((T,N)=>{const D=N.added?"ins":N.removed?"del":null,x=v.indexOf(N)>-1?' class="d2h-change"':"",C=Il(N.value);return D!==null?`${T}<${D}${x}>${C}</${D}>`:`${T}${C}`},"");return{oldLine:{prefix:g.prefix,content:l_(_)},newLine:{prefix:m.prefix,content:s_(_)}}}const ng="file-summary",o_="icon",c_={colorScheme:bo.colorScheme};class u_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},c_),r)}render(a){const r=a.map(s=>this.hoganUtils.render(ng,"line",{fileHtmlId:Zd(s),oldName:s.oldName,newName:s.newName,fileName:yo(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(o_,Xd(s))})).join(`
|
|
52
|
-
`);return this.hoganUtils.render(
|
|
53
|
-
`);return this.hoganUtils.render(
|
|
54
|
-
`)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==rn.INSERT&&u.length||p.type===rn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===rn.CONTEXT?r.push([[p],[],[]]):p.type===rn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===rn.INSERT&&s.length>0?u.push(p):p.type===rn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=
|
|
55
|
-
`);return this.hoganUtils.render(
|
|
56
|
-
`});Le=!1,z=we.length}function ye(Ne,Ge){var $e="="+se,Me=Ne.indexOf($e,Ge),Dt=b(Ne.substring(Ne.indexOf("=",Ge)+1,Me)).split(" ");return B=Dt[0],se=Dt[Dt.length-1],Me+$e.length-1}for(J&&(J=J.split(" "),B=J[0],se=J[1]),
|
|
57
|
-
`?Z(Le):fe+=q.charAt(
|
|
51
|
+
`);function he(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function D(){s!==null&&(!s.oldName&&g!==null&&(s.oldName=g),!s.newName&&m!==null&&(s.newName=m),s.newName&&(r.push(s),s=null)),g=null,m=null}function ee(){he(),D(),s={blocks:[],deletedLines:0,addedLines:0}}function fe(w){he();let z;s!==null&&((z=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(w))?(s.isCombined=!1,f=parseInt(z[1],10),y=parseInt(z[2],10)):(z=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(w))?(s.isCombined=!0,f=parseInt(z[1],10),p=parseInt(z[2],10),y=parseInt(z[3],10)):(w.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),f=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:f,oldStartLine2:p,newStartLine:y,header:w}}function we(w){if(s===null||u===null||f===null||y===null)return;const z={content:w},B=s.isCombined?["+ "," +","++"]:["+"],se=s.isCombined?["- "," -","--"]:["-"];tg(w,B)?(s.addedLines++,z.type=rn.INSERT,z.oldNumber=void 0,z.newNumber=y++):tg(w,se)?(s.deletedLines++,z.type=rn.DELETE,z.oldNumber=f++,z.newNumber=void 0):(z.type=rn.CONTEXT,z.oldNumber=f++,z.newNumber=y++),u.lines.push(z)}function Le(w,z){let B=z;for(;B<Se.length-3;){if(w.startsWith("diff"))return!1;if(Se[B].startsWith(b)&&Se[B+1].startsWith(v)&&Se[B+2].startsWith(_))return!0;B++}return!1}return Se.forEach((w,z)=>{if(!w||w.startsWith("*"))return;let B;const se=Se[z-1],pe=Se[z+1],ve=Se[z+2];if(w.startsWith("diff --git")||w.startsWith("diff --combined")){if(ee(),(B=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(w))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(w.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(ee(),(B=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(w))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&w.startsWith(b)&&pe.startsWith(v)&&ve.startsWith(_))&&ee(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&w.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const ye=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";fe(ye);return}if(w.startsWith(b)&&pe.startsWith(v)||w.startsWith(v)&&se.startsWith(b)){if(s&&!s.oldName&&w.startsWith("--- ")&&(B=QE(w,a.srcPrefix))){s.oldName=B,s.language=eg(s.oldName,s.language);return}if(s&&!s.newName&&w.startsWith("+++ ")&&(B=WE(w,a.dstPrefix))){s.newName=B,s.language=eg(s.newName,s.language);return}}if(s&&(w.startsWith(_)||s.isGitDiff&&s.oldName&&s.newName&&!u)){fe(w);return}if(u&&(w.startsWith("+")||w.startsWith("-")||w.startsWith(" "))){we(w);return}const Z=!Le(w,z);if(s===null)throw new Error("Where is my file !!!");(B=x.exec(w))?s.oldMode=B[1]:(B=S.exec(w))?s.newMode=B[1]:(B=C.exec(w))?(s.deletedFileMode=B[1],s.isDeleted=!0):(B=T.exec(w))?(s.newFileMode=B[1],s.isNew=!0):(B=M.exec(w))?(Z&&(s.oldName=B[1]),s.isCopy=!0):(B=I.exec(w))?(Z&&(s.newName=B[1]),s.isCopy=!0):(B=A.exec(w))?(Z&&(s.oldName=B[1]),s.isRename=!0):(B=V.exec(w))?(Z&&(s.newName=B[1]),s.isRename=!0):(B=R.exec(w))?(s.isBinary=!0,s.oldName=Li(B[1],void 0,a.srcPrefix),s.newName=Li(B[2],void 0,a.dstPrefix),fe("Binary file")):q.test(w)?(s.isBinary=!0,fe(w)):(B=Q.exec(w))?s.unchangedPercentage=parseInt(B[1],10):(B=ie.exec(w))?s.changedPercentage=parseInt(B[1],10):(B=H.exec(w))?(s.checksumBefore=B[1],s.checksumAfter=B[2],B[3]&&(s.mode=B[3])):(B=J.exec(w))?(s.checksumBefore=[B[2],B[3]],s.checksumAfter=B[1]):(B=K.exec(w))?(s.oldMode=[B[2],B[3]],s.newMode=B[1]):(B=me.exec(w))?(s.newFileMode=B[1],s.isNew=!0):(B=ce.exec(w))&&(s.deletedFileMode=B[1],s.isDeleted=!0)}),he(),D(),r}class Bb{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const f=this.castInput(a,s),p=this.castInput(r,s),y=this.removeEmpty(this.tokenize(f,s)),g=this.removeEmpty(this.tokenize(p,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var f;const p=I=>{if(I=this.postProcess(I,s),u){setTimeout(function(){u(I)},0);return}else return I},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(f=s.timeout)!==null&&f!==void 0?f:1/0,_=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let S=this.extractCommon(x[0],r,a,0,s);if(x[0].oldPos+1>=g&&S+1>=y)return p(this.buildValues(x[0].lastComponent,r,a));let C=-1/0,T=1/0;const M=()=>{for(let I=Math.max(C,-m);I<=Math.min(T,m);I+=2){let A;const V=x[I-1],Q=x[I+1];V&&(x[I-1]=void 0);let ie=!1;if(Q){const R=Q.oldPos-I;ie=Q&&0<=R&&R<y}const H=V&&V.oldPos+1<g;if(!ie&&!H){x[I]=void 0;continue}if(!H||ie&&V.oldPos<Q.oldPos?A=this.addToPath(Q,!0,!1,0,s):A=this.addToPath(V,!1,!0,1,s),S=this.extractCommon(A,r,a,I,s),A.oldPos+1>=g&&S+1>=y)return p(this.buildValues(A.lastComponent,r,a))||!0;x[I]=A,A.oldPos+1>=g&&(T=Math.min(T,I-1)),S+1>=y&&(C=Math.max(C,I+1))}m++};if(u)(function I(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);M()||I()},0)})();else for(;m<=b&&Date.now()<=_;){const I=M();if(I)return I}}addToPath(a,r,s,u,f){const p=a.lastComponent;return p&&!f.oneChangePerToken&&p.added===r&&p.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:s,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:p}}}extractCommon(a,r,s,u,f){const p=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(s[g+1],r[m+1],f);)m++,g++,b++,f.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!f.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,s){return s.comparator?s.comparator(a,r):a===r||!!s.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let s=0;s<a.length;s++)a[s]&&r.push(a[s]);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,s){const u=[];let f;for(;a;)u.push(a),f=a.previousComponent,delete a.previousComponent,a=f;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(s.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(_,x){const S=s[m+x];return S.length>_.length?S:_}),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 e_ extends Bb{}const t_=new e_;function n_(l,a,r){return t_.diff(l,a,r)}const ag="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 a_ extends Bb{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${ag}]+|[^\\S\\n\\r]+|[^${ag}]`,"ug");return a.match(r)||[]}}const i_=new a_;function l_(l,a,r){return i_.diff(l,a,r)}function s_(l,a){if(l.length===0)return a.length;if(a.length===0)return l.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=l.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=l.length;u++)a.charAt(s-1)===l.charAt(u-1)?r[s][u]=r[s-1][u-1]:r[s][u]=Math.min(r[s-1][u-1]+1,Math.min(r[s][u-1]+1,r[s-1][u]+1));return r[a.length][l.length]}function Zd(l){return(a,r)=>{const s=l(a).trim(),u=l(r).trim();return s_(s,u)/(s.length+u.length)}}function Xd(l){function a(s,u,f=new Map){let p=1/0,y;for(let g=0;g<s.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([s[g],u[m]]);let v;f.has(b)&&(v=f.get(b))||(v=l(s[g],u[m]),f.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(s,u,f=0,p=new Map){const y=a(s,u,p);if(!y||s.length+u.length<3)return[[s,u]];const g=s.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[s[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,x=y.indexB+1,S=s.slice(_),C=u.slice(x),T=r(g,m,f+1,p),M=r(b,v,f+1,p),I=r(S,C,f+1,p);let A=M;return(y.indexA>0||y.indexB>0)&&(A=T.concat(A)),(s.length>_||u.length>x)&&(A=A.concat(I)),A}return r}const In={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},yo={matching:FE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:PE.WORD,colorScheme:Il.LIGHT},Ma="/",Ib=Zd(l=>l.value),r_=Xd(Ib);function Ru(l){return l.indexOf("dev/null")!==-1}function o_(l){return l.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function c_(l){return l.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function co(l){switch(l){case rn.CONTEXT:return In.CONTEXT;case rn.INSERT:return In.INSERTS;case rn.DELETE:return In.DELETES}}function Vd(l){switch(l){case Il.DARK:return"d2h-dark-color-scheme";case Il.AUTO:return"d2h-auto-color-scheme";case Il.LIGHT:default:return"d2h-light-color-scheme"}}function u_(l){return l?2:1}function Hl(l){return l.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function La(l,a,r=!0){const s=u_(a);return{prefix:l.substring(0,s),content:r?Hl(l.substring(s)):l.substring(s)}}function vo(l){const a=Jm(l.oldName),r=Jm(l.newName);if(a!==r&&!Ru(a)&&!Ru(r)){const s=[],u=[],f=a.split(Ma),p=r.split(Ma),y=f.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&f[m]===p[m];)s.push(p[m]),m+=1;for(;b>m&&v>m&&f[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const _=s.join(Ma),x=u.join(Ma),S=f.slice(m,b+1).join(Ma),C=p.slice(m,v+1).join(Ma);return _.length&&x.length?_+Ma+"{"+S+" → "+C+"}"+Ma+x:_.length?_+Ma+"{"+S+" → "+C+"}":x.length?"{"+S+" → "+C+"}"+Ma+x:a+" → "+r}else return Ru(r)?a:r}function Qd(l){return`d2h-${VE(vo(l)).toString().slice(-6)}`}function Wd(l){let a="file-changed";return l.isRename||l.isCopy?a="file-renamed":l.isNew?a="file-added":l.isDeleted?a="file-deleted":l.newName!==l.oldName&&(a="file-renamed"),a}function Hb(l,a,r,s={}){const{matching:u,maxLineLengthHighlight:f,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},yo),s),g=La(l,r,!1),m=La(a,r,!1);if(g.content.length>f||m.content.length>f)return{oldLine:{prefix:g.prefix,content:Hl(g.content)},newLine:{prefix:m.prefix,content:Hl(m.content)}};const b=y==="char"?n_(g.content,m.content):l_(g.content,m.content),v=[];if(y==="word"&&u==="words"){const x=b.filter(T=>T.removed),S=b.filter(T=>T.added);r_(S,x).forEach(T=>{T[0].length===1&&T[1].length===1&&Ib(T[0][0],T[1][0])<p&&(v.push(T[0][0]),v.push(T[1][0]))})}const _=b.reduce((x,S)=>{const C=S.added?"ins":S.removed?"del":null,T=v.indexOf(S)>-1?' class="d2h-change"':"",M=Hl(S.value);return C!==null?`${x}<${C}${T}>${M}</${C}>`:`${x}${M}`},"");return{oldLine:{prefix:g.prefix,content:o_(_)},newLine:{prefix:m.prefix,content:c_(_)}}}const ig="file-summary",d_="icon",f_={colorScheme:yo.colorScheme};class h_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},f_),r)}render(a){const r=a.map(s=>this.hoganUtils.render(ig,"line",{fileHtmlId:Qd(s),oldName:s.oldName,newName:s.newName,fileName:vo(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(d_,Wd(s))})).join(`
|
|
52
|
+
`);return this.hoganUtils.render(ig,"wrapper",{colorScheme:Vd(this.config.colorScheme),filesNumber:a.length,files:r})}}const qb=Object.assign(Object.assign({},yo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",lg="line-by-line",p_="icon",m_="tag";class g_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},qb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
|
|
53
|
+
`);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:Vd(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const s=this.hoganUtils.template(lg,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),f=this.hoganUtils.template(p_,"file"),p=this.hoganUtils.template(m_,Wd(a));return s.render({file:a,fileHtmlId:Qd(a),diffs:r,filePath:u.render({fileDiffName:vo(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:In})}generateFileHtml(a){const r=Xd(Zd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{let u=this.hoganUtils.render(Ds,"block-header",{CSSLineClass:In,blockHeader:a.isTooBig?s.header:Hl(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.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(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type:In.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",f,p,y)}),u}).join(`
|
|
54
|
+
`)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==rn.INSERT&&u.length||p.type===rn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===rn.CONTEXT?r.push([[p],[],[]]):p.type===rn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===rn.INSERT&&s.length>0?u.push(p):p.type===rn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=Ub(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}processChangedLines(a,r,s,u){const f={right:"",left:""},p=Math.max(s.length,u.length);for(let y=0;y<p;y++){const g=s[y],m=u[y],b=g!==void 0&&m!==void 0?Hb(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:In.DELETE_CHANGES}:Object.assign(Object.assign({},La(g.content,r)),{type:co(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:In.INSERT_CHANGES}:Object.assign(Object.assign({},La(m.content,r)),{type:co(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:x,right:S}=this.generateLineHtml(a,v,_);f.left+=x,f.right+=S}return f}generateLineHtml(a,r,s){return{left:this.generateSingleLineHtml(a,r),right:this.generateSingleLineHtml(a,s)}}generateSingleLineHtml(a,r){if(r===void 0)return"";const s=this.hoganUtils.render(lg,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ds,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?" ":r.prefix,content:r.content,lineNumber:s,line:r,file:a})}}const Gb=Object.assign(Object.assign({},yo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ls="generic",b_="side-by-side",y_="icon",v_="tag";class E_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Gb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
|
|
55
|
+
`);return this.hoganUtils.render(Ls,"wrapper",{colorScheme:Vd(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const s=this.hoganUtils.template(b_,"file-diff"),u=this.hoganUtils.template(Ls,"file-path"),f=this.hoganUtils.template(y_,"file"),p=this.hoganUtils.template(v_,Wd(a));return s.render({file:a,fileHtmlId:Qd(a),diffs:r,filePath:u.render({fileDiffName:vo(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ls,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:In})}}generateFileHtml(a){const r=Xd(Zd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{const u={left:this.makeHeaderHtml(s.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.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(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:_}=this.generateLineHtml({type:In.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:In.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",f,p,y)}),u}).reduce((s,u)=>({left:s.left+u.left,right:s.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==rn.INSERT&&u.length||p.type===rn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===rn.CONTEXT?r.push([[p],[],[]]):p.type===rn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===rn.INSERT&&s.length>0?u.push(p):p.type===rn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=Ub(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(Ls,"block-header",{CSSLineClass:In,blockHeader:r!=null&&r.isTooBig?a:Hl(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,s){const u={right:"",left:""},f=Math.max(r.length,s.length);for(let p=0;p<f;p++){const y=r[p],g=s[p],m=y!==void 0&&g!==void 0?Hb(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:In.DELETE_CHANGES}:Object.assign(Object.assign({},La(y.content,a)),{type:co(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:In.INSERT_CHANGES}:Object.assign(Object.assign({},La(g.content,a)),{type:co(g.type)})),{number:g.newNumber}):void 0,{left:_,right:x}=this.generateLineHtml(b,v);u.left+=_,u.right+=x}return u}generateLineHtml(a,r){return{left:this.generateSingleHtml(a),right:this.generateSingleHtml(r)}}generateSingleHtml(a){const r="d2h-code-side-linenumber",s="d2h-code-side-line";return this.hoganUtils.render(Ls,"line",{type:(a==null?void 0:a.type)||`${In.CONTEXT} d2h-emptyplaceholder`,lineClass:a!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:a!==void 0?s:`${s} d2h-code-side-emptyplaceholder`,prefix:(a==null?void 0:a.prefix)===" "?" ":a==null?void 0:a.prefix,content:a==null?void 0:a.content,lineNumber:a==null?void 0:a.number})}}var ku={},sg;function __(){return sg||(sg=1,(function(l){(function(a){var r=/\S/,s=/\"/g,u=/\n/g,f=/\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(q,J){var K=q.length,me=0,ce=1,Se=2,he=me,D=null,ee=null,fe="",we=[],Le=!1,w=0,z=0,B="{{",se="}}";function pe(){fe.length>0&&(we.push({tag:"_t",text:new String(fe)}),fe="")}function ve(){for(var Ne=!0,Ge=z;Ge<we.length;Ge++)if(Ne=a.tags[we[Ge].tag]<a.tags._v||we[Ge].tag=="_t"&&we[Ge].text.match(r)===null,!Ne)return!1;return Ne}function Z(Ne,Ge){if(pe(),Ne&&ve())for(var $e=z,Me;$e<we.length;$e++)we[$e].text&&((Me=we[$e+1])&&Me.tag==">"&&(Me.indent=we[$e].text.toString()),we.splice($e,1));else Ge||we.push({tag:`
|
|
56
|
+
`});Le=!1,z=we.length}function ye(Ne,Ge){var $e="="+se,Me=Ne.indexOf($e,Ge),Dt=b(Ne.substring(Ne.indexOf("=",Ge)+1,Me)).split(" ");return B=Dt[0],se=Dt[Dt.length-1],Me+$e.length-1}for(J&&(J=J.split(" "),B=J[0],se=J[1]),w=0;w<K;w++)he==me?v(B,q,w)?(--w,pe(),he=ce):q.charAt(w)==`
|
|
57
|
+
`?Z(Le):fe+=q.charAt(w):he==ce?(w+=B.length-1,ee=a.tags[q.charAt(w+1)],D=ee?q.charAt(w+1):"_v",D=="="?(w=ye(q,w),he=me):(ee&&w++,he=Se),Le=w):v(se,q,w)?(we.push({tag:D,n:b(fe),otag:B,ctag:se,i:D=="/"?Le-B.length:w+se.length}),fe="",w+=se.length-1,he=me,D=="{"&&(se=="}}"?w++:m(we[we.length-1]))):fe+=q.charAt(w);return Z(Le,!0),we};function m(R){R.n.substr(R.n.length-1)==="}"&&(R.n=R.n.substring(0,R.n.length-1))}function b(R){return R.trim?R.trim():R.replace(/^\s*|\s*$/g,"")}function v(R,q,J){if(q.charAt(J)!=R.charAt(0))return!1;for(var K=1,me=R.length;K<me;K++)if(q.charAt(J+K)!=R.charAt(K))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function x(R,q,J,K){var me=[],ce=null,Se=null,he=null;for(Se=J[J.length-1];R.length>0;){if(he=R.shift(),Se&&Se.tag=="<"&&!(he.tag in _))throw new Error("Illegal content in < super tag.");if(a.tags[he.tag]<=a.tags.$||S(he,K))J.push(he),he.nodes=x(R,he.tag,J,K);else if(he.tag=="/"){if(J.length===0)throw new Error("Closing tag without opener: /"+he.n);if(ce=J.pop(),he.n!=ce.n&&!C(he.n,ce.n,K))throw new Error("Nesting error: "+ce.n+" vs. "+he.n);return ce.end=he.i,me}else he.tag==`
|
|
58
58
|
`&&(he.last=R.length==0||R[0].tag==`
|
|
59
|
-
`);me.push(he)}if(J.length>0)throw new Error("missing closing tag: "+J.pop().n);return me}function
|
|
59
|
+
`);me.push(he)}if(J.length>0)throw new Error("missing closing tag: "+J.pop().n);return me}function S(R,q){for(var J=0,K=q.length;J<K;J++)if(q[J].o==R.n)return R.tag="#",!0}function C(R,q,J){for(var K=0,me=J.length;K<me;K++)if(J[K].c==R&&J[K].o==q)return!0}function T(R){var q=[];for(var J in R)q.push('"'+A(J)+'": function(c,p,t,i) {'+R[J]+"}");return"{ "+q.join(",")+" }"}function M(R){var q=[];for(var J in R.partials)q.push('"'+A(J)+'":{name:"'+A(R.partials[J].name)+'", '+M(R.partials[J])+"}");return"partials: {"+q.join(",")+"}, subs: "+T(R.subs)}a.stringify=function(R,q,J){return"{code: function (c,p,i) { "+a.wrapMain(R.code)+" },"+M(R)+"}"};var I=0;a.generate=function(R,q,J){I=0;var K={code:"",subs:{},partials:{}};return a.walk(R,K),J.asString?this.stringify(K,q,J):this.makeTemplate(K,q,J)},a.wrapMain=function(R){return'var t=this;t.b(i=i||"");'+R+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(R,q,J){var K=this.makePartials(R);return K.code=new Function("c","p","i",this.wrapMain(R.code)),new this.template(K,q,this,J)},a.makePartials=function(R){var q,J={subs:{},partials:R.partials,name:R.name};for(q in J.partials)J.partials[q]=this.makePartials(J.partials[q]);for(q in R.subs)J.subs[q]=new Function("c","p","t","i",R.subs[q]);return J};function A(R){return R.replace(p,"\\\\").replace(s,'\\"').replace(u,"\\n").replace(f,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function V(R){return~R.indexOf(".")?"d":"f"}function Q(R,q){var J="<"+(q.prefix||""),K=J+R.n+I++;return q.partials[K]={name:R.n,partials:{}},q.code+='t.b(t.rp("'+A(K)+'",c,p,"'+(R.indent||"")+'"));',K}a.codegen={"#":function(R,q){q.code+="if(t.s(t."+V(R.n)+'("'+A(R.n)+'",c,p,1),c,p,0,'+R.i+","+R.end+',"'+R.otag+" "+R.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(R.nodes,q),q.code+="});c.pop();}"},"^":function(R,q){q.code+="if(!t.s(t."+V(R.n)+'("'+A(R.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(R.nodes,q),q.code+="};"},">":Q,"<":function(R,q){var J={partials:{},code:"",subs:{},inPartial:!0};a.walk(R.nodes,J);var K=q.partials[Q(R,q)];K.subs=J.subs,K.partials=J.partials},$:function(R,q){var J={subs:{},code:"",partials:q.partials,prefix:R.n};a.walk(R.nodes,J),q.subs[R.n]=J.code,q.inPartial||(q.code+='t.sub("'+A(R.n)+'",c,p,i);')},"\n":function(R,q){q.code+=H('"\\n"'+(R.last?"":" + i"))},_v:function(R,q){q.code+="t.b(t.v(t."+V(R.n)+'("'+A(R.n)+'",c,p,0)));'},_t:function(R,q){q.code+=H('"'+A(R.text)+'"')},"{":ie,"&":ie};function ie(R,q){q.code+="t.b(t.t(t."+V(R.n)+'("'+A(R.n)+'",c,p,0)));'}function H(R){return"t.b("+R+");"}a.walk=function(R,q){for(var J,K=0,me=R.length;K<me;K++)J=a.codegen[R[K].tag],J&&J(R[K],q);return q},a.parse=function(R,q,J){return J=J||{},x(R,"",[],J.sectionTags||[])},a.cache={},a.cacheKey=function(R,q){return[R,!!q.asString,!!q.disableLambda,q.delimiters,!!q.modelGet].join("||")},a.compile=function(R,q){q=q||{};var J=a.cacheKey(R,q),K=this.cache[J];if(K){var me=K.partials;for(var ce in me)delete me[ce].instance;return K}return K=this.generate(this.parse(this.scan(R,q.delimiters),R,q),R,q),this.cache[J]=K}})(l)})(ku)),ku}var Ou={},rg;function S_(){return rg||(rg=1,(function(l){(function(a){a.Template=function(x,S,C,T){x=x||{},this.r=x.code||this.r,this.c=C,this.options=T||{},this.text=S||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},a.Template.prototype={r:function(x,S,C){return""},v,t:b,render:function(S,C,T){return this.ri([S],C||{},T)},ri:function(x,S,C){return this.r(x,S,C)},ep:function(x,S){var C=this.partials[x],T=S[C.name];if(C.instance&&C.base==T)return C.instance;if(typeof T=="string"){if(!this.c)throw new Error("No compiler available.");T=this.c.compile(T,this.options)}if(!T)return null;if(this.partials[x].base=T,C.subs){S.stackText||(S.stackText={});for(key in C.subs)S.stackText[key]||(S.stackText[key]=this.activeSub!==void 0&&S.stackText[this.activeSub]?S.stackText[this.activeSub]:this.text);T=s(T,C.subs,C.partials,this.stackSubs,this.stackPartials,S.stackText)}return this.partials[x].instance=T,T},rp:function(x,S,C,T){var M=this.ep(x,C);return M?M.ri(S,C,T):""},rs:function(x,S,C){var T=x[x.length-1];if(!_(T)){C(x,S,this);return}for(var M=0;M<T.length;M++)x.push(T[M]),C(x,S,this),x.pop()},s:function(x,S,C,T,M,I,A){var V;return _(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,S,C,T,M,I,A)),V=!!x,!T&&V&&S&&S.push(typeof x=="object"?x:S[S.length-1]),V)},d:function(x,S,C,T){var M,I=x.split("."),A=this.f(I[0],S,C,T),V=this.options.modelGet,Q=null;if(x==="."&&_(S[S.length-2]))A=S[S.length-1];else for(var ie=1;ie<I.length;ie++)M=r(I[ie],A,V),M!==void 0?(Q=A,A=M):A="";return T&&!A?!1:(!T&&typeof A=="function"&&(S.push(Q),A=this.mv(A,S,C),S.pop()),A)},f:function(x,S,C,T){for(var M=!1,I=null,A=!1,V=this.options.modelGet,Q=S.length-1;Q>=0;Q--)if(I=S[Q],M=r(x,I,V),M!==void 0){A=!0;break}return A?(!T&&typeof M=="function"&&(M=this.mv(M,S,C)),M):T?!1:""},ls:function(x,S,C,T,M,I){var A=this.options.delimiters;return this.options.delimiters=I,this.b(this.ct(b(x.call(S,M,C)),S,T)),this.options.delimiters=A,!1},ct:function(x,S,C){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(S,C)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,S,C,T,M,I,A){var V,Q=S[S.length-1],ie=x.call(Q);return typeof ie=="function"?T?!0:(V=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(ie,Q,S,C,V.substring(M,I),A)):ie},mv:function(x,S,C){var T=S[S.length-1],M=x.call(T);return typeof M=="function"?this.ct(b(M.call(T)),T,C):M},sub:function(x,S,C,T){var M=this.subs[x];M&&(this.activeSub=x,M(S,C,this,T),this.activeSub=!1)}};function r(x,S,C){var T;return S&&typeof S=="object"&&(S[x]!==void 0?T=S[x]:C&&S.get&&typeof S.get=="function"&&(T=S.get(x))),T}function s(x,S,C,T,M,I){function A(){}A.prototype=x;function V(){}V.prototype=x.subs;var Q,ie=new A;ie.subs=new V,ie.subsText={},ie.buf="",T=T||{},ie.stackSubs=T,ie.subsText=I;for(Q in S)T[Q]||(T[Q]=S[Q]);for(Q in T)ie.subs[Q]=T[Q];M=M||{},ie.stackPartials=M;for(Q in C)M[Q]||(M[Q]=C[Q]);for(Q in M)ie.partials[Q]=M[Q];return ie}var u=/&/g,f=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(x){return String(x??"")}function v(x){return x=b(x),m.test(x)?x.replace(u,"&").replace(f,"<").replace(p,">").replace(y,"'").replace(g,"""):x}var _=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(l)})(Ou)),Ou}var Cu,og;function w_(){if(og)return Cu;og=1;var l=__();return l.Template=S_().Template,l.template=l.Template,Cu=l,Cu}var Qt=w_();const cn={};cn["file-summary-line"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
|
|
60
60
|
`+r),s.b(' <span class="d2h-file-name-wrapper">'),s.b(`
|
|
61
61
|
`+r),s.b(s.rp("<fileIcon0",l,a," ")),s.b(' <a href="#'),s.b(s.v(s.f("fileHtmlId",l,a,0))),s.b('" class="d2h-file-name">'),s.b(s.v(s.f("fileName",l,a,0))),s.b("</a>"),s.b(`
|
|
62
62
|
`+r),s.b(' <span class="d2h-file-stats">'),s.b(`
|
|
@@ -156,30 +156,30 @@ Error generating stack: `+i.message+`
|
|
|
156
156
|
`+r),s.b(" </div>"),s.b(`
|
|
157
157
|
`+r),s.b(" </div>"),s.b(`
|
|
158
158
|
`+r),s.b(" </div>"),s.b(`
|
|
159
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});cn["tag-file-added"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-changed"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-deleted"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-renamed"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class
|
|
159
|
+
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});cn["tag-file-added"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-changed"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-deleted"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-renamed"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class N_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const s=Object.entries(r).reduce((u,[f,p])=>{const y=Qt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[f]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},cn),a),s)}static compile(a){return Qt.compile(a,{asString:!1})}render(a,r,s,u,f){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(s,u,f)}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 x_=Object.assign(Object.assign(Object.assign({},qb),Gb),{outputFormat:YE.LINE_BY_LINE,drawFileList:!0});function T_(l,a={}){const r=Object.assign(Object.assign({},x_),a),s=typeof l=="string"?JE(l,r):l,u=new N_(r),{colorScheme:f}=r,p={colorScheme:f},y=r.drawFileList?new h_(u,p).render(s):"",g=r.outputFormat==="side-by-side"?new E_(u,r).render(s):new g_(u,r).render(s);return y+g}var Mu=jb();function ja(l){const a=[],r=l.split(`
|
|
160
160
|
`);let s=null,u=null;const f=()=>{s&&u&&a.push({path:u,patch:s.join(`
|
|
161
|
-
`)}),s=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){f(),s=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(s&&(s.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=s.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return f(),a}function
|
|
162
|
-
`)}function
|
|
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++))}s.set(u,p)}return s}function
|
|
164
|
-
`).length]))}function
|
|
161
|
+
`)}),s=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){f(),s=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(s&&(s.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=s.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return f(),a}function A_(l,a){const r=new Set(a);return ja(l).filter(s=>r.has(s.path)).map(s=>s.patch).join(`
|
|
162
|
+
`)}function R_(l){return k_(l)}function k_(l,a){const s=new Map;for(const{path:u,patch:f}of ja(l)){const p=new Map;let y=0,g=!1;const m=f.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++))}s.set(u,p)}return s}function O_(l){const a=new Map;for(const[r,s]of R_(l))a.set(r,new Set(s.keys()));return a}function C_(l,a){const r=new Set(a.flatMap(s=>s.files));return ja(l).map(s=>s.path).filter(s=>!r.has(s))}function M_(l){return new Map(ja(l).map(a=>[a.path,a.patch.split(`
|
|
164
|
+
`).length]))}function D_(l){const a=l.split(`
|
|
165
165
|
`),r=a.findIndex(p=>p.startsWith("@@")),s=r<0?[]:a.slice(r).filter(p=>/^[+\- ]/.test(p)),u=(s.length>0?s:a).join(`
|
|
166
|
-
`);let f=2166136261;for(let p=0;p<u.length;p++)f^=u.charCodeAt(p),f=Math.imul(f,16777619);return(f>>>0).toString(16).padStart(8,"0")}const qb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function rg(l,a){return a?`${qb[a]} **${a}** — ${l}`:l}const C_=["inbox","awaiting","drafted"],Ad=["requests","settled","sent","archived"],Cu={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 og(l){return l.status==="awaiting"||l.status==="running"?"awaiting":l.status==="sent"?"sent":"drafted"}const Hs=l=>!!l.pr.state&&l.pr.state!=="OPEN",cg=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Ul(l){return[...l].sort((a,r)=>cg.indexOf(a.status)-cg.indexOf(r.status)||r.updatedAt.localeCompare(a.updatedAt))}const Gb=["sent","reviewed","skipped"];function qs(l){return Ul(l.filter(a=>!Hs(a)&&!Gb.includes(a.status)))}function M_(l,a,r){return qs(l).filter(s=>s.key===a||!r.has(s.key))}function D_(l,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(qs(l).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return Ul(l.filter(u=>s.has(u.id)&&!r.has(u.id)))}const L_=(l,a)=>a.some(r=>r.id===l.id);function z_(l,a){const r=l.filter(u=>!Hs(u)),s=Ul(r.filter(u=>!Gb.includes(u.status)));return{inbox:s,awaiting:s.filter(u=>og(u)==="awaiting"),drafted:s.filter(u=>og(u)==="drafted"),requests:D_(l,a),settled:Ul(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Ul(r.filter(u=>u.status==="sent")),archived:Ul(l.filter(Hs))}}function j_(l,a){return Ad.includes(l)&&a[l].length===0?"inbox":l}function $b(l){var a,r;return l.reason==="own-review"?((a=l.review)==null?void 0:a.at)??l.at:l.reason==="own-reply"?((r=l.reply)==null?void 0:r.at)??l.at:l.at}const co={"own-review":{tag:"reviewed on GitHub",meta:l=>`you reviewed this on GitHub on ${l}`,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:l=>`you replied on GitHub on ${l}`,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:l=>`nobody was asking for this any more on ${l}`,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 U_(l){var a;return Hs(l)?((a=l.pr.state)==null?void 0:a.toLowerCase())??null:l.handoff?`handed to @${l.handoff.to}`:l.filed?co[l.filed.reason].tag:l.status==="reviewed"||l.status==="skipped"?l.status:null}function B_(l,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===l.id))==null?void 0:r.reply)??"unknown":"unknown"}const I_={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."}},H_=l=>I_[l];function q_(l){const a=Vd[l.event]??l.event,r=new Date(l.at).toLocaleDateString();return{label:l.auto?"auto-sent a review":"you replied with a review",title:`${l.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 G_(l){const a=co[l.reason],r=new Date($b(l)).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 $_(l){const a=new Date(l.at).toLocaleDateString();return{label:`handed to @${l.to}`,title:l.withdrewYours?`You handed this to @${l.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 @${l.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 Y_=(l,a)=>l.handoff?$_(l.handoff):l.sent?q_(l.sent):l.filed?G_(l.filed):H_(a);function F_(l){const a=l.length,r=a===1?"1 review request":`${a} review requests`,s=l.some(Hs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${s} ${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 Yb(l,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(l).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 P_={approve:"approve",comment:"comment",request_changes:"changes"},Vd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function K_(l){return l.status==="running"?{label:"reviewing…",tone:"running"}:l.status==="awaiting"?{label:"review now",tone:"awaiting"}:l.status==="failed"?{label:"run failed",tone:"failed"}:l.sent?{label:`sent · ${Vd[l.sent.event]??l.sent.event}`,tone:"sent"}:l.verdict?{label:`${l.verdict.recommendation.replace("_"," ")} ${l.verdict.confidence}%`,tone:P_[l.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Mu(l){return l.trusted?"ran the code":l.withSource?"read the full source":"read the diff only"}function Z_(l){if(l.commentCount===0)return"no comments drafted";const a=[`${l.commentCount} comment${l.commentCount===1?"":"s"} drafted`];return l.driftedCount&&a.push(`${l.driftedCount} off-diff`),l.gradedCount&&a.push(l.blockerCount?`${l.blockerCount} blocker${l.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function X_(l,a,r=Date.now()){var u,f;if(l.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Yb(l.updatedAt,r)} ago`,Mu(l)]};if(l.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(l.status==="failed")return{reasoning:l.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(l.sent)return{reasoning:`Sent to GitHub as ${Vd[l.sent.event]??l.sent.event} on ${new Date(l.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue, though a re-review can draft against the current head.`+(l.handoff?` GitHub asks @${l.handoff.to} for it now.`:""),meta:[...l.handoff?[`you handed this to @${l.handoff.to}`]:[],l.sent.auto?"auto-sent by the daemon":"sent by you",Mu(l)]};const s=[Mu(l)];if(l.handoff?s.unshift(`you handed this to @${l.handoff.to} on ${new Date(l.handoff.at).toLocaleDateString()}`):l.filed?s.unshift(co[l.filed.reason].meta(new Date($b(l.filed)).toLocaleDateString())):l.status==="reviewed"?s.unshift("you marked this reviewed"):l.status==="skipped"&&s.unshift("you skipped this"),l.costUsd!=null&&s.push(`≈$${l.costUsd.toFixed(2)} at API rates`),s.push(Z_(l)),a!=null&&a.enabled&&l.status==="ready"&&((u=l.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(l.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${l.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),l.handoff){const p=l.commentCount>0||l.verdict!=null;return{reasoning:`GitHub asks @${l.handoff.to} for this review now${l.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:s}}return l.filed?{reasoning:co[l.filed.reason].reasoning,meta:s}:{reasoning:((f=l.verdict)==null?void 0:f.reasoning)??"This review has a draft but no verdict.",meta:s}}const V_="/favicon.svg",Q_="/favicon-dot.svg",W_=l=>qs(l).length>0,J_=l=>l?Q_:V_;function e0(l){const a=J_(W_(l)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function qt(l,a){const r=await fetch(l,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${l}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const Qd=async()=>{const l=await qt("/api/reviews");return e0(l),l},Fb=()=>qt("/api/daemon"),ug=l=>qt(`/api/reviews/${encodeURIComponent(l)}`),t0=(l,a,r)=>qt(`/api/reviews/${encodeURIComponent(l)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),io=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}`,{method:"PATCH",body:JSON.stringify(a)}),n0=(l,a,r)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),a0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments`,{method:"POST",body:JSON.stringify(a)}),i0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"DELETE"}),l0=l=>qt("/api/reviews",{method:"POST",body:JSON.stringify({input:l})}),s0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/refresh`,{method:"POST"}),Pb=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Rd=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/chat`,{method:"POST",body:JSON.stringify(a)}),r0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/steer`,{method:"POST",body:JSON.stringify({message:a})}),o0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/pending`,{method:"DELETE"}),c0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Kb=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/send-preview?event=${a}`),u0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),d0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/raised`,{method:"POST"}),f0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/reviewers`),h0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),p0=l=>`/api/reviews/${encodeURIComponent(l)}/export`,m0=()=>qt("/api/config"),Du=(l,a=!1)=>qt("/api/config/trust",{method:"POST",body:JSON.stringify({rule:l,remove:a})}),Lu=l=>qt("/api/config/daemon",{method:"POST",body:JSON.stringify(l)}),Zb="cerber.handoff.recent",Xb=5,g0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,Vb=l=>g0.test(l);function b0(l){try{const a=JSON.parse(l??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&Vb(r)).slice(0,Xb):[]}catch{return[]}}function Qb(){try{return b0(localStorage.getItem(Zb))}catch{return[]}}function y0(l,a){const r=l.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,Xb)}function v0(l){const a=y0(Qb(),l);try{localStorage.setItem(Zb,JSON.stringify(a))}catch{}return a}const kd=l=>l.trim().replace(/^@/,"");function E0(l,a){const r=new Set,s=[];for(const u of[...a,...l]){const f=u.toLowerCase();r.has(f)||(r.add(f),s.push({login:u,recent:a.some(p=>p.toLowerCase()===f)}))}return s}function _0(l,a){const r=kd(a).toLowerCase();if(!r)return l;const s=l.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,f=p=>p.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(p=>!u(p)&&f(p)),...s.filter(p=>!f(p))]}function zu(l){return l.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function Od(l){return l.nodeName.toLowerCase()}function dg(l){const a=[],r=(s,u)=>{for(let f=s.firstChild;f;f=f.nextSibling)f.nodeType===3&&f.nodeValue!==null?u+=f.nodeValue.length:f.nodeType===1&&(a.push({event:"start",offset:u,node:f}),u=r(f,u),Od(f).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:f}));return u};return r(l,0),a}function S0(l,a,r){let s=0,u="";const f=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!l.length||!a.length?l.length?l:a:l[0].offset!==a[0].offset?l[0].offset<a[0].offset?l:a:a[0].event==="start"?l:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${Od(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${zu(_.value).replace(/"/g,""")}"`).join(" ")}>`}function m(v){u+="</"+Od(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;l.length||a.length;){let v=y();if(u+=zu(r.substring(s,v[0].offset)),s=v[0].offset,v===l){f.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===l&&v.length&&v[0].offset===s);f.reverse().forEach(g)}else v[0].event==="start"?f.push(v[0].node):f.pop(),b(v.splice(0,1)[0])}return u+zu(r.substr(s))}const w0={"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 N0(l){var a;return(a=w0[l])!==null&&a!==void 0?a:"plaintext"}var ju,fg;function T0(){if(fg)return ju;fg=1;function l(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(ne=>{const be=O[ne],je=typeof be;(je==="object"||je==="function")&&!Object.isFrozen(be)&&l(be)}),O}class a{constructor(ne){ne.data===void 0&&(ne.data={}),this.data=ne.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(O,...ne){const be=Object.create(null);for(const je in O)be[je]=O[je];return ne.forEach(function(je){for(const Qe in je)be[Qe]=je[Qe]}),be}const u="</span>",f=O=>!!O.scope,p=(O,{prefix:ne})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const be=O.split(".");return[`${ne}${be.shift()}`,...be.map((je,Qe)=>`${je}${"_".repeat(Qe+1)}`)].join(" ")}return`${ne}${O}`};class y{constructor(ne,be){this.buffer="",this.classPrefix=be.classPrefix,ne.walk(this)}addText(ne){this.buffer+=r(ne)}openNode(ne){if(!f(ne))return;const be=p(ne.scope,{prefix:this.classPrefix});this.span(be)}closeNode(ne){f(ne)&&(this.buffer+=u)}value(){return this.buffer}span(ne){this.buffer+=`<span class="${ne}">`}}const g=(O={})=>{const ne={children:[]};return Object.assign(ne,O),ne};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(ne){this.top.children.push(ne)}openNode(ne){const be=g({scope:ne});this.add(be),this.stack.push(be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ne){return this.constructor._walk(ne,this.rootNode)}static _walk(ne,be){return typeof be=="string"?ne.addText(be):be.children&&(ne.openNode(be),be.children.forEach(je=>this._walk(ne,je)),ne.closeNode(be)),ne}static _collapse(ne){typeof ne!="string"&&ne.children&&(ne.children.every(be=>typeof be=="string")?ne.children=[ne.children.join("")]:ne.children.forEach(be=>{m._collapse(be)}))}}class b extends m{constructor(ne){super(),this.options=ne}addText(ne){ne!==""&&this.add(ne)}startScope(ne){this.openNode(ne)}endScope(){this.closeNode()}__addSublanguage(ne,be){const je=ne.root;be&&(je.scope=`language:${be}`),this.add(je)}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 D("(?=",O,")")}function T(O){return D("(?:",O,")*")}function N(O){return D("(?:",O,")?")}function D(...O){return O.map(be=>v(be)).join("")}function x(O){const ne=O[O.length-1];return typeof ne=="object"&&ne.constructor===Object?(O.splice(O.length-1,1),ne):{}}function C(...O){return"("+(x(O).capture?"":"?:")+O.map(je=>v(je)).join("|")+")"}function I(O){return new RegExp(O.toString()+"|").exec("").length-1}function A(O,ne){const be=O&&O.exec(ne);return be&&be.index===0}const Q=new RegExp(C(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function V(O,{joinWith:ne}){let be=0;return O.map(je=>{be+=1;const Qe=be;let st=v(je),Ae="";for(;st.length>0;){const _e=Q.exec(st);if(!_e){Ae+=st;break}Ae+=st.substring(0,_e.index),st=st.substring(_e.index+_e[0].length),_e[0][0]==="\\"&&_e[1]?Ae+="\\"+String(Number(_e[1])+Qe):(Ae+=_e[0],(_e[0]==="("||/^\(\?[<']/.test(_e[0]))&&be++)}return Ae}).map(je=>`(${je})`).join(ne)}const ie=/\b\B/,H="[a-zA-Z]\\w*",R="[a-zA-Z_]\\w*",q="\\b\\d+(\\.\\d+)?",J="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ce=(O={})=>{const ne=/^#![ ]*\//;return O.binary&&(O.begin=D(ne,/.*\b/,O.binary,/\b.*/)),s({scope:"meta",begin:ne,end:/$/,relevance:0,"on:begin":(be,je)=>{be.index!==0&&je.ignoreMatch()}},O)},Se={begin:"\\\\[\\s\\S]",relevance:0},he={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Se]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Se]},ee={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/},fe=function(O,ne,be={}){const je=s({scope:"comment",begin:O,end:ne,contains:[]},be);je.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 Qe=C("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 je.contains.push({begin:D(/[ ]+/,"(",Qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),je},we=fe("//","$"),Le=fe("/\\*","\\*/"),S=fe("#","$"),z={scope:"number",begin:q,relevance:0},B={scope:"number",begin:J,relevance:0},se={scope:"number",begin:K,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Se,{begin:/\[/,end:/\]/,relevance:0,contains:[Se]}]},ve={scope:"title",begin:H,relevance:0},Z={scope:"title",begin:R,relevance:0},ye={begin:"\\.\\s*"+R,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:he,BACKSLASH_ESCAPE:Se,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:K,COMMENT:fe,C_BLOCK_COMMENT_MODE:Le,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:B,C_NUMBER_RE:J,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(ne,be)=>{be.data._beginMatch=ne[1]},"on:end":(ne,be)=>{be.data._beginMatch!==ne[1]&&be.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:H,MATCH_NOTHING_RE:ie,METHOD_GUARD:ye,NUMBER_MODE:z,NUMBER_RE:q,PHRASAL_WORDS_MODE:ee,QUOTE_STRING_MODE:M,REGEXP_MODE:pe,RE_STARTERS_RE:me,SHEBANG:ce,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:R,UNDERSCORE_TITLE_MODE:Z});function $e(O,ne){O.input[O.index-1]==="."&&ne.ignoreMatch()}function Me(O,ne){O.className!==void 0&&(O.scope=O.className,delete O.className)}function Dt(O,ne){ne&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=$e,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function Pe(O,ne){Array.isArray(O.illegal)&&(O.illegal=C(...O.illegal))}function Hn(O,ne){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 it(O,ne){O.relevance===void 0&&(O.relevance=1)}const fn=(O,ne)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const be=Object.assign({},O);Object.keys(O).forEach(je=>{delete O[je]}),O.keywords=be.keywords,O.begin=D(be.beforeMatch,_(be.begin)),O.starts={relevance:0,contains:[Object.assign(be,{endsParent:!0})]},O.relevance=0,delete be.beforeMatch},Ot=["of","and","for","in","not","or","if","then","parent","list","value"],Gt="keyword";function Wt(O,ne,be=Gt){const je=Object.create(null);return typeof O=="string"?Qe(be,O.split(" ")):Array.isArray(O)?Qe(be,O):Object.keys(O).forEach(function(st){Object.assign(je,Wt(O[st],ne,st))}),je;function Qe(st,Ae){ne&&(Ae=Ae.map(_e=>_e.toLowerCase())),Ae.forEach(function(_e){const Ue=_e.split("|");je[Ue[0]]=[st,Lt(Ue[0],Ue[1])]})}}function Lt(O,ne){return ne?Number(ne):vt(O)?0:1}function vt(O){return Ot.includes(O.toLowerCase())}const Ln={},lt=O=>{console.error(O)},mt=(O,...ne)=>{console.log(`WARN: ${O}`,...ne)},At=(O,ne)=>{Ln[`${O}/${ne}`]||(console.log(`Deprecated as of ${O}. ${ne}`),Ln[`${O}/${ne}`]=!0)},_n=new Error;function hn(O,ne,{key:be}){let je=0;const Qe=O[be],st={},Ae={};for(let _e=1;_e<=ne.length;_e++)Ae[_e+je]=Qe[_e],st[_e+je]=!0,je+=I(ne[_e-1]);O[be]=Ae,O[be]._emit=st,O[be]._multi=!0}function qn(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw lt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),_n;if(typeof O.beginScope!="object"||O.beginScope===null)throw lt("beginScope must be object"),_n;hn(O,O.begin,{key:"beginScope"}),O.begin=V(O.begin,{joinWith:""})}}function Sn(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw lt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),_n;if(typeof O.endScope!="object"||O.endScope===null)throw lt("endScope must be object"),_n;hn(O,O.end,{key:"endScope"}),O.end=V(O.end,{joinWith:""})}}function wn(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function ra(O){wn(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),qn(O),Sn(O)}function zn(O){function ne(Ae,_e){return new RegExp(v(Ae),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(_e?"g":""))}class be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(_e,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,_e]),this.matchAt+=I(_e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const _e=this.regexes.map(Ue=>Ue[1]);this.matcherRe=ne(V(_e,{joinWith:"|"}),!0),this.lastIndex=0}exec(_e){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(_e);if(!Ue)return null;const Ct=Ue.findIndex((jn,Un)=>Un>0&&jn!==void 0),bt=this.matchIndexes[Ct];return Ue.splice(0,Ct),Object.assign(Ue,bt)}}class je{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(_e){if(this.multiRegexes[_e])return this.multiRegexes[_e];const Ue=new be;return this.rules.slice(_e).forEach(([Ct,bt])=>Ue.addRule(Ct,bt)),Ue.compile(),this.multiRegexes[_e]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(_e,Ue){this.rules.push([_e,Ue]),Ue.type==="begin"&&this.count++}exec(_e){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Ct=Ue.exec(_e);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const bt=this.getMatcher(0);bt.lastIndex=this.lastIndex+1,Ct=bt.exec(_e)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Qe(Ae){const _e=new je;return Ae.contains.forEach(Ue=>_e.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&_e.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&_e.addRule(Ae.illegal,{type:"illegal"}),_e}function st(Ae,_e){const Ue=Ae;if(Ae.isCompiled)return Ue;[Me,Hn,ra,fn].forEach(bt=>bt(Ae,_e)),O.compilerExtensions.forEach(bt=>bt(Ae,_e)),Ae.__beforeBegin=null,[Dt,Pe,it].forEach(bt=>bt(Ae,_e)),Ae.isCompiled=!0;let Ct=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Ct=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Ct=Ct||/\w+/,Ae.keywords&&(Ae.keywords=Wt(Ae.keywords,O.case_insensitive)),Ue.keywordPatternRe=ne(Ct,!0),_e&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=ne(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=ne(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ae.endsWithParent&&_e.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+_e.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=ne(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(bt){return pn(bt==="self"?Ae:bt)})),Ae.contains.forEach(function(bt){st(bt,Ue)}),Ae.starts&&st(Ae.starts,_e),Ue.matcher=Qe(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=s(O.classNameAliases||{}),st(O)}function It(O){return O?O.endsWithParent||It(O.starts):!1}function pn(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(ne){return s(O,{variants:null},ne)})),O.cachedVariants?O.cachedVariants:It(O)?s(O,{starts:O.starts?s(O.starts):null}):Object.isFrozen(O)?s(O):O}var Rt="11.12.0";class Gn extends Error{constructor(ne,be){super(ne),this.name="HTMLInjectionError",this.html=be}}const $n=r,mn=s,He=Symbol("nomatch"),gn=7,Ht=function(O){const ne=Object.create(null),be=Object.create(null),je=[];let Qe=!0;const st="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let _e={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(oe){return _e.noHighlightRe.test(oe)}function Ct(oe){let Re=oe.className+" ";Re+=oe.parentNode?oe.parentNode.className:"";const Be=_e.languageDetectRe.exec(Re);if(Be){const Je=Jt(Be[1]);return Je||(mt(st.replace("{}",Be[1])),mt("Falling back to no-highlight mode for this block.",oe)),Je?Be[1]:"no-highlight"}return Re.split(/\s+/).find(Je=>Ue(Je)||Jt(Je))}function bt(oe,Re,Be){let Je="",Mt="";typeof Re=="object"?(Je=oe,Be=Re.ignoreIllegals,Mt=Re.language):(At("10.7.0","highlight(lang, code, ...args) has been deprecated."),At("10.7.0",`Please use highlight(code, options) instead.
|
|
167
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Mt=oe,Je=Re),Be===void 0&&(Be=!0);const en={code:Je,language:Mt};Ye("before:highlight",en);const bn=en.result?en.result:jn(en.language,en.code,Be);return bn.code=en.code,Ye("after:highlight",bn),bn}function jn(oe,Re,Be,Je){const Mt=Object.create(null);function en(ue,Ee){return ue.keywords[Ee]}function bn(){if(!W.keywords){j.addText(te);return}let ue=0;W.keywordPatternRe.lastIndex=0;let Ee=W.keywordPatternRe.exec(te),De="";for(;Ee;){De+=te.substring(ue,Ee.index);const Ve=tn.case_insensitive?Ee[0].toLowerCase():Ee[0],We=en(W,Ve);if(We){const[oa
|
|
168
|
-
`),1;if(qe>1e5&&qe>Ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return te+=De,De.length}const tn=Jt(oe);if(!tn)throw lt(st.replace("{}",oe)),new Error('Unknown language: "'+oe+'"');const Ia=zn(tn);let Aa="",W=Je||Ia;const w={},j=new _e.__emitter(_e);ri();let te="",xe=0,Oe=0,qe=0,et=!1;try{if(tn.__emitTokens)tn.__emitTokens(Re,j);else{for(W.matcher.considerAll();;){qe++,et?et=!1:W.matcher.considerAll(),W.matcher.lastIndex=Oe;const ue=W.matcher.exec(Re);if(!ue)break;const Ee=Re.substring(Oe,ue.index),De=oi(Ee,ue);Oe=ue.index+De}oi(Re.substring(Oe))}return j.finalize(),Aa=j.toHTML(),{language:oe,value:Aa,relevance:xe,illegal:!1,_emitter:j,_top:W}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:oe,value:$n(Re),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:Oe,context:Re.slice(Oe-100,Oe+100),mode:ue.mode,resultSoFar:Aa},_emitter:j};if(Qe)return{language:oe,value:$n(Re),illegal:!1,relevance:0,errorRaised:ue,_emitter:j,_top:W};throw ue}}function Un(oe){const Re={value:$n(oe),illegal:!1,relevance:0,_top:Ae,_emitter:new _e.__emitter(_e)};return Re._emitter.addText(oe),Re}function ba(oe,Re){Re=Re||_e.languages||Object.keys(ne);const Be=Un(oe),Je=Re.filter(Jt).filter(G).map(ft=>jn(ft,oe,!1));Je.unshift(Be);const Mt=Je.sort((ft,Ut)=>{if(ft.relevance!==Ut.relevance)return Ut.relevance-ft.relevance;if(ft.language&&Ut.language){if(Jt(ft.language).supersetOf===Ut.language)return 1;if(Jt(Ut.language).supersetOf===ft.language)return-1}return 0}),[en,bn]=Mt,Zt=en;return Zt.secondBest=bn,Zt}function Pt(oe,Re,Be){const Je=Re&&be[Re]||Be;oe.classList.add("hljs"),oe.classList.add(`language-${Je}`)}function St(oe){let Re=null;const Be=Ct(oe);if(Ue(Be))return;if(Ye("before:highlightElement",{el:oe,language:Be}),oe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",oe);return}if(oe.children.length>0&&(_e.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(oe)),_e.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",oe.innerHTML);Re=oe;const Je=Re.textContent,Mt=Be?bt(Je,{language:Be,ignoreIllegals:!0}):ba(Je);oe.innerHTML=Mt.value,oe.dataset.highlighted="yes",Pt(oe,Be,Mt.language),oe.result={language:Mt.language,re:Mt.relevance,relevance:Mt.relevance},Mt.secondBest&&(oe.secondBest={language:Mt.secondBest.language,relevance:Mt.secondBest.relevance}),Ye("after:highlightElement",{el:oe,result:Mt,text:Je})}function Kt(oe){_e=mn(_e,oe)}const ut=()=>{ya(),At("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Yn(){ya(),At("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ii=!1;function ya(){function oe(){ya()}if(document.readyState==="loading"){ii||window.addEventListener("DOMContentLoaded",oe,!1),ii=!0;return}document.querySelectorAll(_e.cssSelector).forEach(St)}function va(oe,Re){let Be=null;try{Be=Re(O)}catch(Je){if(lt("Language definition for '{}' could not be registered.".replace("{}",oe)),Qe)lt(Je);else throw Je;Be=Ae}Be.name||(Be.name=oe),ne[oe]=Be,Be.rawDefinition=Re.bind(null,O),Be.aliases&&Fn(Be.aliases,{languageName:oe})}function Wn(oe){delete ne[oe];for(const Re of Object.keys(be))be[Re]===oe&&delete be[Re]}function Ea(){return Object.keys(ne)}function Jt(oe){return oe=(oe||"").toLowerCase(),ne[oe]||ne[be[oe]]}function Fn(oe,{languageName:Re}){typeof oe=="string"&&(oe=[oe]),oe.forEach(Be=>{be[Be.toLowerCase()]=Re})}function G(oe){const Re=Jt(oe);return Re&&!Re.disableAutodetect}function de(oe){oe["before:highlightBlock"]&&!oe["before:highlightElement"]&&(oe["before:highlightElement"]=Re=>{oe["before:highlightBlock"](Object.assign({block:Re.el},Re))}),oe["after:highlightBlock"]&&!oe["after:highlightElement"]&&(oe["after:highlightElement"]=Re=>{oe["after:highlightBlock"](Object.assign({block:Re.el},Re))})}function ge(oe){de(oe),je.push(oe)}function Te(oe){const Re=je.indexOf(oe);Re!==-1&&je.splice(Re,1)}function Ye(oe,Re){const Be=oe;je.forEach(function(Je){Je[Be]&&Je[Be](Re)})}function un(oe){return At("10.7.0","highlightBlock will be removed entirely in v12.0"),At("10.7.0","Please use highlightElement now."),St(oe)}Object.assign(O,{highlight:bt,highlightAuto:ba,highlightAll:ya,highlightElement:St,highlightBlock:un,configure:Kt,initHighlighting:ut,initHighlightingOnLoad:Yn,registerLanguage:va,unregisterLanguage:Wn,listLanguages:Ea,getLanguage:Jt,registerAliases:Fn,autoDetection:G,inherit:mn,addPlugin:ge,removePlugin:Te}),O.debugMode=function(){Qe=!1},O.safeMode=function(){Qe=!0},O.versionString=Rt,O.regex={concat:D,lookahead:_,either:C,optional:N,anyNumberOfTimes:T};for(const oe in Ge)typeof Ge[oe]=="object"&&l(Ge[oe]);return Object.assign(O,Ge),O},$t=Ht({});return $t.newInstance=()=>Ht({}),ju=$t,$t.HighlightJS=$t,$t.default=$t,ju}var Uu,hg;function x0(){if(hg)return Uu;hg=1;function l(a){const r=a.regex,s=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,f={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:[f]},{begin:/'/,end:/'/,contains:[f]},{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},f,{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(s,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Uu=l,Uu}var Bu,pg;function A0(){if(pg)return Bu;pg=1;function l(a){const r=a.regex,s={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const f={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,s,f]};f.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,s]},T=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],N=a.SHEBANG({binary:`(${T.join("|")})`,relevance:10}),D={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"],C=["true","false"],I={match:/(\/[a-z._-]+)+/},A=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],Q=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],V=["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"],ie=["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:C,built_in:[...A,...Q,"set","shopt",...V,...ie]},contains:[N,a.SHEBANG(),D,_,p,y,I,g,m,b,v,s]}}return Bu=l,Bu}var Iu,mg;function R0(){if(mg)return Iu;mg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(f)+"[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},T={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},N={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"}),s,a.C_BLOCK_COMMENT_MODE]},D=[T,N],x={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},C=r.optional(f)+a.IDENT_RE+"\\s*\\(",I=12,V={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"},ie=[...D,m,s,a.C_BLOCK_COMMENT_MODE,_,v],H={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:V,contains:ie.concat([{begin:/\(/,end:/\)/,keywords:V,contains:ie.concat(["self"]),relevance:0}]),relevance:0},R={begin:"("+y+"[\\*&\\s]+){1,"+I+"}"+C,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:V,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:V,relevance:0},{begin:C,returnBegin:!0,contains:[a.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...D]};return{name:"C",aliases:["h"],keywords:V,disableAutodetect:!0,illegal:"</",contains:[].concat(H,R,ie,[...D,{begin:a.IDENT_RE+"::",keywords:V},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:N,strings:v,keywords:V}}}return Iu=l,Iu}var Hu,gg;function k0(){if(gg)return Hu;gg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(f)+"[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:/<.*?>/},s,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 include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(b,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},N=[_,T],D={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},x=r.optional(f)+a.IDENT_RE+"\\s*\\(",C=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"],A=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],Q=["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"],V=["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"],R={type:A,keyword:I,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:Q},q={className:"function.dispatch",relevance:0,keywords:{_hint:V},begin:r.concat(/\b/,`(?!${I.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},J=[q,...N,g,s,a.C_BLOCK_COMMENT_MODE,v,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:J.concat([{begin:/\(/,end:/\)/,keywords:R,contains:J.concat(["self"]),relevance:0}]),relevance:0},me={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+C+"}"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:R,relevance:0},{begin:x,returnBegin:!0,contains:[D],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,...N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,me,q,J,[...N,{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:R,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Hu=l,Hu}var qu,bg;function O0(){if(bg)return qu;bg=1;function l(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],f=["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:f.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},T={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},N={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},D=a.inherit(N,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:y},C=a.inherit(x,{illegal:/\n/}),I={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,C]},A={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},Q=a.inherit(A,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},C]});x.contains=[A,I,N,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.C_BLOCK_COMMENT_MODE],C.contains=[Q,I,D,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const V={variants:[T,A,I,N,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},ie={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},H=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",R={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"}},V,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,ie,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,ie,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:"("+H+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,ie],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[V,_,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},R]}}return qu=l,qu}var Gu,yg;function C0(){if(yg)return Gu;yg=1;const l=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"],s=[...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(),f=["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=l(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},T="and or not only",N=/@-?\w[\w]*(-\w+)*/,D="[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:"\\."+D,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+f.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:N},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...x,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return Gu=g,Gu}var $u,vg;function M0(){if(vg)return $u;vg=1;function l(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},f={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:[]}),T=a.inherit(v,{contains:[]});b.contains.push(T),v.contains.push(_);let N=[s,m];return[b,v,_,T].forEach(I=>{I.contains=I.contains.concat(N)}),N=N.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:N},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:N}]}]},s,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:N,end:"$"},f,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return $u=l,$u}var Yu,Eg;function D0(){if(Eg)return Yu;Eg=1;function l(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 Yu=l,Yu}var Fu,_g;function L0(){if(_g)return Fu;_g=1;function l(a){const r=a.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),f=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]})]}]},T="[1-9](_?[0-9])*|0",N="[0-9](_?[0-9])*",D={className:"number",relevance:0,variants:[{begin:`\\b(${T})(\\.(${N}))?([eE][+-]?(${N})|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}]},H=[_,{variants:[{match:[/class\s+/,f,/\s+<\s+/,f]},{match:[/\b(class|module)\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,f],scope:{2:"title.class"},keywords:y},{relevance:0,match:[f,/\.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+/,s],scope:{1:"keyword",3:"title.function"},contains:[x]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:s}],relevance:0},D,{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=H,x.contains=H;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:H}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(H)}}return Fu=l,Fu}var Pu,Sg;function z0(){if(Sg)return Pu;Sg=1;function l(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 Pu=l,Pu}var Ku,wg;function j0(){if(wg)return Ku;wg=1;function l(a){const r=a.regex,s=/[_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(s,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Ku=l,Ku}var Zu,Ng;function U0(){if(Ng)return Zu;Ng=1;function l(a){const r=a.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const f={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,f,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),T=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:T,className:"attr",starts:{end:/$/,contains:[u,g,p,f,y,s]}}]}}return Zu=l,Zu}var Xu,Tg;function B0(){if(Tg)return Xu;Tg=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[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 f(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+")",T=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"]},A={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},Q={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(T,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[Q,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(T,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:I,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[A,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,s,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},s,A]}}return Xu=f,Xu}var Vu,xg;function I0(){if(xg)return Vu;xg=1;const l="[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"],s=["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"],f=["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(f,s,u);function g(m){const b=m.regex,v=(Z,{after:ye})=>{const Ne="</"+Z[0].slice(1);return Z.input.indexOf(Ne,ye)!==-1},_=l,T={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,D={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,ye)=>{const Ne=Z[0].length+Z.index,Ge=Z.input[Ne];if(Ge==="<"||Ge===","){ye.ignoreMatch();return}Ge===">"&&(v(Z,{after:Ne})||ye.ignoreMatch());let $e;const Me=Z.input.substring(Ne);if($e=Me.match(/^\s*=/)){ye.ignoreMatch();return}if(($e=Me.match(/^\s+extends\s+/))&&$e.index===0){ye.ignoreMatch();return}}},x={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},C="[0-9](_?[0-9])*",I=`\\.(${C})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",Q={className:"number",variants:[{begin:`(\\b(${A})((${I})|\\.)?|(${I}))[eE][+-]?(${C})\\b`},{begin:`\\b(${A})\\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},V={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},ie={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"css"}},R={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"graphql"}},q={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,V]},K={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]},me=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ie,H,R,q,{match:/\$\d+/},Q];V.contains=me.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(me)});const ce=[].concat(K,V.contains),Se=ce.concat([{begin:/(\s*)\(/,end:/\)/,keywords:x,contains:["self"].concat(ce)}]),he={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:Se},M={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"}}]},ee={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:{_:[...s,...u]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[he],illegal:/%/},Le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(Z){return b.concat("(?!",Z.join("|"),")")}const z={match:b.concat(/\b/,S([...f,"super","import","await"].map(Z=>`${Z}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},he]},pe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",ve={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(pe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[he]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:Se,CLASS_REFERENCE:ee},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ie,H,R,q,K,{match:/\$\d+/},Q,ee,{scope:"attr",match:_+b.lookahead(":"),relevance:0},ve,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,m.REGEXP_MODE,{className:"function",begin:pe,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:Se}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:N},{begin:D.begin,"on:begin":D.isTrulyOpeningTag,end:D.end}],subLanguage:"xml",contains:[{begin:D.begin,end:D.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[he,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[he]},z,Le,M,se,{match:/\$[(.]/}]}}return Vu=g,Vu}var Qu,Ag;function H0(){if(Ag)return Qu;Ag=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(s){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},f={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,f,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,y,a,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Qu=r,Qu}var Wu,Rg;function q0(){if(Rg)return Wu;Rg=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[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(f){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:f.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[f.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+f.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[f.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[f.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+f.UNDERSCORE_IDENT_RE+")?"},T={className:"meta",begin:"@"+f.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[f.inherit(v,{className:"string"}),"self"]}]},N=s,D=f.COMMENT("/\\*","\\*/",{contains:[f.C_BLOCK_COMMENT_MODE]}),x={variants:[{className:"type",begin:f.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},C=x;return C.variants[1].contains=[x],x.variants[1].contains=[C],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[f.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),f.C_LINE_COMMENT_MODE,D,y,g,_,T,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:f.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[f.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,f.C_LINE_COMMENT_MODE,D],relevance:0},f.C_LINE_COMMENT_MODE,D,_,T,v,f.C_NUMBER_MODE]},D]},{begin:[/class|interface|trait/,/\s+/,f.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},f.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,T]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
169
|
-
`},N]}}return Wu=u,Wu}var Ju,kg;function G0(){if(kg)return Ju;kg=1;const l=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"],s=[...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(),f=["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=f.concat(p).sort().reverse();function m(b){const v=l(b),_=g,T="and or not only",N="[\\w-]+",D="("+N+"|@\\{"+N+"\\})",x=[],C=[],I=function(ce){return{className:"string",begin:"~?"+ce+".*?"+ce}},A=function(ce,Se,he){return{className:ce,begin:Se,relevance:he}},Q={$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},V={begin:"\\(",end:"\\)",contains:C,keywords:Q,relevance:0};C.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,V,A("variable","@@?"+N,10),A("variable","@\\{"+N+"\\}"),A("built_in","~?`[^`]*?`"),{className:"attribute",begin:N+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const ie=C.concat({begin:/\{/,end:/\}/,contains:x}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(C)},R={begin:D+"\\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:C}}]},q={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:Q,returnEnd:!0,contains:C,relevance:0}},J={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:ie}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:D,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,H,A("keyword","all\\b"),A("variable","@\\{"+N+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,A("selector-tag",D,0),A("selector-id","#"+D),A("selector-class","\\."+D,0),A("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:ie},{begin:"!important"},v.FUNCTION_DISPATCH]},me={begin:N+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return x.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,q,J,me,R,K,H,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:x}}return Ju=m,Ju}var ed,Og;function $0(){if(Og)return ed;Og=1;function l(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},f=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,s,{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:f.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:f}].concat(f)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return ed=l,ed}var td,Cg;function Y0(){if(Cg)return td;Cg=1;function l(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},s={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,s]},f={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,s,u,f,p,y]}}return td=l,td}var nd,Mg;function F0(){if(Mg)return nd;Mg=1;function l(a){const r=a.regex,s=["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}/,f={$pattern:/[\w.]+/,keyword:s.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:f},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],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],T=(x,C,I="\\1")=>{const A=I==="\\1"?I:r.concat(I,C);return r.concat(r.concat("(?:",x,")"),C,/(?:\\.|[^\\\/])*?/,A,/(?:\\.|[^\\\/])*?/,I,u)},N=(x,C,I)=>r.concat(r.concat("(?:",x,")"),C,/(?:\\.|[^\\\/])*?/,I,u),D=[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:T("s|tr|y",r.either(..._,{capture:!0}))},{begin:T("s|tr|y","\\(","\\)")},{begin:T("s|tr|y","\\[","\\]")},{begin:T("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:N("(?:m|qr)?",/\//,/\//)},{begin:N("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:N("m|qr",/\(/,/\)/)},{begin:N("m|qr",/\[/,/\]/)},{begin:N("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=D,y.contains=D,{name:"Perl",aliases:["pl","pm"],keywords:f,contains:D}}return nd=l,nd}var ad,Dg;function P0(){if(Dg)return ad;Dg=1;function l(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+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:s,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:s,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 ad=l,ad}var id,Lg;function K0(){if(Lg)return id;Lg=1;function l(a){const r=a.regex,s=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),f=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),p=r.concat(/[A-Z]+/,s),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":(he,M)=>{M.data._beginMatch=he[1]||he[2]},"on:end":(he,M)=>{M.data._beginMatch!==he[1]&&M.ignoreMatch()}},T=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
|
|
170
|
-
]`,D={scope:"string",variants:[v,b,_,T]},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},C=["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"],A=["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"],V={keyword:I,literal:(he=>{const M=[];return he.forEach(ee=>{M.push(ee),ee.toLowerCase()===ee?M.push(ee.toUpperCase()):M.push(ee.toLowerCase())}),M})(C),built_in:A},ie=he=>he.map(M=>M.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",ie(A).join("\\b|"),"\\b)"),f],scope:{1:"keyword",4:"title.class"}}]},R=r.concat(u,"\\b(?!\\()"),q={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),R],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[f,r.concat(/::/,r.lookahead(/(?!class\b)/)),R],scope:{1:"title.class",3:"variable.constant"}},{match:[f,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[f,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},J={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:V,contains:[J,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,x,H]},me={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",ie(I).join("\\b|"),"|",ie(A).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(me);const ce=[J,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,x,H],Se={begin:r.concat(/#\[\s*\\?/,r.either(f,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:C,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:C,keyword:["new","array"]},contains:["self",...ce]},...ce,{scope:"meta",variants:[{match:f},{match:p}]}]};return{case_insensitive:!1,keywords:V,contains:[Se,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,me,q,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},H,{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:V,contains:["self",Se,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,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]},D,x]}}return id=l,id}var ld,zg;function Z0(){if(zg)return ld;zg=1;function l(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 ld=l,ld}var sd,jg;function X0(){if(jg)return sd;jg=1;function l(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return sd=l,sd}var rd,Ug;function V0(){if(Ug)return rd;Ug=1;function l(a){const r=a.regex,s=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]},T="[0-9](_?[0-9])*",N=`(\\b(${T}))?\\.(${T})|\\b(${T})\\.`,D=`\\b|${u.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${T})|(${N}))[eE][+-]?(${T})[jJ]?(?=${D})`},{begin:`(${N})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${D})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${D})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${D})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${D})`},{begin:`\\b(${T})[jJ](?=${D})`}]},C={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"},_,C,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[I]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,I,_]}]}}return rd=l,rd}var od,Bg;function Q0(){if(Bg)return od;Bg=1;function l(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return od=l,od}var cd,Ig;function W0(){if(Ig)return cd;Ig=1;function l(a){const r=a.regex,s=/(?:(?:[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]?/),f=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,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:s},{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:[f,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:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:f},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return cd=l,cd}var ud,Hg;function J0(){if(Hg)return ud;Hg=1;function l(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),f=r.concat(s,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,f,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 ud=l,ud}var dd,qg;function eS(){if(qg)return dd;qg=1;const l=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"],s=[...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(),f=["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=l(m),v=p,_=f,T="@[a-z-]+",N="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("+s.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:T,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:T,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 dd=g,dd}var fd,Gg;function tS(){if(Gg)return fd;Gg=1;function l(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return fd=l,fd}var hd,$g;function nS(){if($g)return hd;$g=1;function l(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},f={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"],T=["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"],N=v,D=[...b,...m].filter(ie=>!v.includes(ie)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},C={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},I={match:r.concat(/\b/,r.either(...N),/\s*\(/),relevance:0,keywords:{built_in:N}};function A(ie){return r.concat(/\b/,r.either(...ie.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const Q={scope:"keyword",match:A(T),relevance:0};function V(ie,{exceptions:H,when:R}={}){const q=R;return H=H||[],ie.map(J=>J.match(/\|\d+$/)||H.includes(J)?J:q(J)?`${J}|0`:J)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:V(D,{when:ie=>ie.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:A(y)},Q,I,x,u,f,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,C]}}return hd=l,hd}var pd,Yg;function aS(){if(Yg)return pd;Yg=1;function l(R){return R?typeof R=="string"?R:R.source:null}function a(R){return r("(?=",R,")")}function r(...R){return R.map(J=>l(J)).join("")}function s(R){const q=R[R.length-1];return typeof q=="object"&&q.constructor===Object?(R.splice(R.length-1,1),q):{}}function u(...R){return"("+(s(R).capture?"":"?:")+R.map(K=>l(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const f=R=>r(/\b/,R,/\w$/.test(R)?/\b/:/\B/),p=["Protocol","Type"].map(f),y=["init","self"].map(f),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"],T=["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"],N=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]/),D=u(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),x=r(N,D,"*"),C=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(C,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),A=r(C,I,"*"),Q=r(/[A-Z]/,I,"*"),V=["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\(/,A,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ie=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function H(R){const q={match:/\s+/,relevance:0},J=R.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[R.C_LINE_COMMENT_MODE,J],me={match:[/\./,u(...p,...y)],className:{2:"keyword"}},ce={match:r(/\./,u(...m)),relevance:0},Se=m.filter(He=>typeof He=="string").concat(["_|0"]),he=m.filter(He=>typeof He!="string").concat(g).map(f),M={variants:[{className:"keyword",match:u(...he,...y)}]},ee={$pattern:u(/\b\w+/,/#\w+/),keyword:Se.concat(_),literal:b},fe=[me,ce,M],we={match:r(/\./,u(...T)),relevance:0},Le={className:"built_in",match:r(/\b/,u(...T),/(?=\()/)},S=[we,Le],z={match:/->/,relevance:0},B={className:"operator",relevance:0,variants:[{match:x},{match:`\\.(\\.|${D})+`}]},se=[z,B],pe="([0-9]_*)+",ve="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${pe})(\\.(${pe}))?([eE][+-]?(${pe}))?\\b`},{match:`\\b0x(${ve})(\\.(${ve}))?([pP][+-]?(${pe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ye=(He="")=>({className:"subst",variants:[{match:r(/\\/,He,/[0\\tnr"']/)},{match:r(/\\/,He,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ne=(He="")=>({className:"subst",match:r(/\\/,He,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(He="")=>({className:"subst",label:"interpol",begin:r(/\\/,He,/\(/),end:/\)/}),$e=(He="")=>({begin:r(He,/"""/),end:r(/"""/,He),contains:[ye(He),Ne(He),Ge(He)]}),Me=(He="")=>({begin:r(He,/"/),end:r(/"/,He),contains:[ye(He),Ge(He)]}),Dt={className:"string",variants:[$e(),$e("#"),$e("##"),$e("###"),Me(),Me("#"),Me("##"),Me("###")]},Pe=[R.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[R.BACKSLASH_ESCAPE]}],Hn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Pe},it=He=>{const gn=r(He,/\//),Ht=r(/\//,He);return{begin:gn,end:Ht,contains:[...Pe,{scope:"comment",begin:`#(?!.*${Ht})`,end:/$/}]}},fn={scope:"regexp",variants:[it("###"),it("##"),it("#"),Hn]},Ot={match:r(/`/,A,/`/)},Gt={className:"variable",match:/\$\d+/},Wt={className:"variable",match:`\\$${I}+`},Lt=[Ot,Gt,Wt],vt={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ie,contains:[...se,Z,Dt]}]}},Ln={scope:"keyword",match:r(/@/,u(...V),a(u(/\(/,/\s+/)))},lt={scope:"meta",match:r(/@/,A)},mt=[vt,Ln,lt],At={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:Q,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(Q)),relevance:0}]},_n={begin:/</,end:/>/,keywords:ee,contains:[...K,...fe,...mt,z,At]};At.contains.push(_n);const hn={match:r(A,/\s*:/),keywords:"_|0",relevance:0},qn={begin:/\(/,end:/\)/,relevance:0,keywords:ee,contains:["self",hn,...K,fn,...fe,...S,...se,Z,Dt,...Lt,...mt,At]},Sn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,At]},wn={begin:u(a(r(A,/\s*:/)),a(r(A,/\s+/,A,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:A}]},ra={begin:/\(/,end:/\)/,keywords:ee,contains:[wn,...K,...fe,...se,Z,Dt,...mt,At,qn],endsParent:!0,illegal:/["']/},zn={match:[/(func|macro)/,/\s+/,u(Ot.match,A,x)],className:{1:"keyword",3:"title.function"},contains:[Sn,ra,q],illegal:[/\[/,/%/]},It={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Sn,ra,q],illegal:/\[|%/},pn={match:[/operator/,/\s+/,x],className:{1:"keyword",3:"title"}},Rt={begin:[/precedencegroup/,/\s+/,Q],className:{1:"keyword",3:"title"},contains:[At],keywords:[...v,...b],end:/}/},Gn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},$n={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},mn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,A,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ee,contains:[Sn,...fe,{begin:/:/,end:/\{/,keywords:ee,contains:[{scope:"title.class.inherited",match:Q},...fe],relevance:0}]};for(const He of Dt.variants){const gn=He.contains.find($t=>$t.label==="interpol");gn.keywords=ee;const Ht=[...fe,...S,...se,Z,Dt,...Lt];gn.contains=[...Ht,{begin:/\(/,end:/\)/,contains:["self",...Ht]}]}return{name:"Swift",keywords:ee,contains:[...K,zn,It,Gn,$n,mn,pn,Rt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},fn,...fe,...S,...se,Z,Dt,...Lt,...mt,At,qn]}}return pd=H,pd}var md,Fg;function iS(){if(Fg)return md;Fg=1;function l(a){const r="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},f={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,f]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),T={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"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},D={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},C=[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+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{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}},T,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},D,x,p,y],I=[...C];return I.pop(),I.push(g),N.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:C}}return md=l,md}var gd,Pg;function lS(){if(Pg)return gd;Pg=1;const l="[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"],s=["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"],f=["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(f,s,u);function g(b){const v=b.regex,_=(ye,{after:Ne})=>{const Ge="</"+ye[0].slice(1);return ye.input.indexOf(Ge,Ne)!==-1},T=l,N={begin:"<>",end:"</>"},D=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ye,Ne)=>{const Ge=ye[0].length+ye.index,$e=ye.input[Ge];if($e==="<"||$e===","){Ne.ignoreMatch();return}$e===">"&&(_(ye,{after:Ge})||Ne.ignoreMatch());let Me;const Dt=ye.input.substring(Ge);if(Me=Dt.match(/^\s*=/)){Ne.ignoreMatch();return}if((Me=Dt.match(/^\s+extends\s+/))&&Me.index===0){Ne.ignoreMatch();return}}},C={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},I="[0-9](_?[0-9])*",A=`\\.(${I})`,Q="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",V={className:"number",variants:[{begin:`(\\b(${Q})((${A})|\\.)?|(${A}))[eE][+-]?(${I})\\b`},{begin:`\\b(${Q})\\b((${A})\\b|\\.)?|(${A})\\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},ie={className:"subst",begin:"\\$\\{",end:"\\}",keywords:C,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"xml"}},R={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"css"}},q={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"graphql"}},J={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,ie]},me={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:T+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},ce=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,H,R,q,J,{match:/\$\d+/},V];ie.contains=ce.concat({begin:/\{/,end:/\}/,keywords:C,contains:["self"].concat(ce)});const Se=[].concat(me,ie.contains),he=Se.concat([{begin:/(\s*)\(/,end:/\)/,keywords:C,contains:["self"].concat(Se)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:he},ee={variants:[{match:[/class/,/\s+/,T,/\s+/,/extends/,/\s+/,v.concat(T,"(",v.concat(/\./,T),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,T],scope:{1:"keyword",3:"title.class"}}]},fe={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:{_:[...s,...u]}},we={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Le={variants:[{match:[/function/,/\s+/,T,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(ye){return v.concat("(?!",ye.join("|"),")")}const B={match:v.concat(/\b/,z([...f,"super","import","await"].map(ye=>`${ye}\\s*\\(`)),T,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},se={begin:v.concat(/\./,v.lookahead(v.concat(T,/(?![0-9A-Za-z$_(])/))),end:T,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,T,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,T,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:C,exports:{PARAMS_CONTAINS:he,CLASS_REFERENCE:fe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),we,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,H,R,q,J,me,{match:/\$\d+/},V,fe,{scope:"attr",match:T+v.lookahead(":"),relevance:0},Z,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[me,b.REGEXP_MODE,{className:"function",begin:ve,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:C,contains:he}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:D},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},Le,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,b.inherit(b.TITLE_MODE,{begin:T,className:"title.function"})]},{match:/\.\.\./,relevance:0},se,{match:"\\$"+T,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},B,S,ee,pe,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),T=l,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],D={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},x={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[_.exports.CLASS_REFERENCE]},C={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],A={$pattern:l,keyword:a.concat(I),literal:r,built_in:y.concat(N),"variable.language":p},Q={className:"meta",begin:"@"+T},V=(q,J,K)=>{const me=q.contains.findIndex(ce=>ce.label===J);if(me===-1)throw new Error("can not find mode to replace");q.contains.splice(me,1,K)};Object.assign(_.keywords,A),_.exports.PARAMS_CONTAINS.push(Q);const ie=_.contains.find(q=>q.scope==="attr"),H=Object.assign({},ie,{match:v.concat(T,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,ie,H]),_.contains=_.contains.concat([Q,D,x,H]),V(_,"shebang",b.SHEBANG()),V(_,"use_strict",C);const R=_.contains.find(q=>q.label==="func.def");return R.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return gd=m,gd}var bd,Kg;function sS(){if(Kg)return bd;Kg=1;function l(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},f=/\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,f),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,f),/ +/,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:/>/}]}),T=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:[s,u,m,b,v,_,T,{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:[T]}]}}return bd=l,bd}var yd,Zg;function rS(){if(Zg)return yd;Zg=1;function l(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const s=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"],f={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:[s,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,f,a.QUOTE_STRING_MODE,m,b,g]}}return yd=l,yd}var vd,Xg;function oS(){if(Xg)return vd;Xg=1;var l=T0();return l.registerLanguage("xml",x0()),l.registerLanguage("bash",A0()),l.registerLanguage("c",R0()),l.registerLanguage("cpp",k0()),l.registerLanguage("csharp",O0()),l.registerLanguage("css",C0()),l.registerLanguage("markdown",M0()),l.registerLanguage("diff",D0()),l.registerLanguage("ruby",L0()),l.registerLanguage("go",z0()),l.registerLanguage("graphql",j0()),l.registerLanguage("ini",U0()),l.registerLanguage("java",B0()),l.registerLanguage("javascript",I0()),l.registerLanguage("json",H0()),l.registerLanguage("kotlin",q0()),l.registerLanguage("less",G0()),l.registerLanguage("lua",$0()),l.registerLanguage("makefile",Y0()),l.registerLanguage("perl",F0()),l.registerLanguage("objectivec",P0()),l.registerLanguage("php",K0()),l.registerLanguage("php-template",Z0()),l.registerLanguage("plaintext",X0()),l.registerLanguage("python",V0()),l.registerLanguage("python-repl",Q0()),l.registerLanguage("r",W0()),l.registerLanguage("rust",J0()),l.registerLanguage("scss",eS()),l.registerLanguage("shell",tS()),l.registerLanguage("sql",nS()),l.registerLanguage("swift",aS()),l.registerLanguage("yaml",iS()),l.registerLanguage("typescript",lS()),l.registerLanguage("vbnet",sS()),l.registerLanguage("wasm",rS()),l.HighlightJS=l,l.default=l,vd=l,vd}var cS=oS();const Wd=Db(cS),uS={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},dS=2e5,Wb="http://www.w3.org/1999/xhtml";function fS(l){for(const a of l.querySelectorAll(".d2h-file-wrapper")){const r=hS(a.dataset.lang??"");if(r)for(const s of pS(a))Vg(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Vg(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function hS(l){const a=uS[l]??N0(l);return a==="plaintext"||!Wd.getLanguage(a)?null:a}function pS(l){const a=[];let r=[];for(const s of l.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),f=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!f){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:f})}return r.length&&a.push(r),a}function Vg(l,a,r){if(l.filter(a).length===0)return;const u=l.map(y=>y.ctn.textContent??"").join(`
|
|
171
|
-
`);if(!u.trim()||u.length>
|
|
172
|
-
`:"",p=
|
|
173
|
-
`).filter(u=>u.trim());return s.length>0&&s.every(u=>
|
|
174
|
-
`).every(s=>
|
|
175
|
-
`).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=
|
|
176
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RS(l,a){return TS(l)||xS(l,a)||kS(l,a)||AS()}function kS(l,a){if(l){if(typeof l=="string")return Wg(l,a);var r={}.toString.call(l).slice(8,-1);return r==="Object"&&l.constructor&&(r=l.constructor.name),r==="Map"||r==="Set"?Array.from(l):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wg(l,a):void 0}}const Jb=Object.entries,Jg=Object.setPrototypeOf,OS=Object.isFrozen,CS=Object.getPrototypeOf,MS=Object.getOwnPropertyDescriptor;let Rn=Object.freeze,kn=Object.seal,jl=Object.create,ey=typeof Reflect<"u"&&Reflect,Cd=ey.apply,Md=ey.construct;Rn||(Rn=function(a){return a});kn||(kn=function(a){return a});Cd||(Cd=function(a,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(r,u)});Md||(Md=function(a){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new a(...s)});const Dl=on(Array.prototype.forEach),DS=on(Array.prototype.lastIndexOf),eb=on(Array.prototype.pop),Ll=on(Array.prototype.push),LS=on(Array.prototype.splice),zi=Array.isArray,Us=on(String.prototype.toLowerCase),Ed=on(String.prototype.toString),tb=on(String.prototype.match),Ls=on(String.prototype.replace),nb=on(String.prototype.indexOf),zS=on(String.prototype.trim),jS=on(Number.prototype.toString),US=on(Boolean.prototype.toString),ab=typeof BigInt>"u"?null:on(BigInt.prototype.toString),ib=typeof Symbol>"u"?null:on(Symbol.prototype.toString),En=on(Object.prototype.hasOwnProperty),zs=on(Object.prototype.toString),vn=on(RegExp.prototype.test),Wi=BS(TypeError);function on(l){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return Cd(l,a,s)}}function BS(l){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return Md(l,r)}}function dt(l,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Us;if(Jg&&Jg(l,null),!zi(a))return l;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=r(u);f!==u&&(OS(a)||(a[s]=f),u=f)}l[u]=!0}return l}function IS(l){for(let a=0;a<l.length;a++)En(l,a)||(l[a]=null);return l}function Mn(l){const a=jl(null);for(const s of Jb(l)){var r=RS(s,2);const u=r[0],f=r[1];En(l,u)&&(zi(f)?a[u]=IS(f):f&&typeof f=="object"&&f.constructor===Object?a[u]=Mn(f):a[u]=f)}return a}function HS(l){switch(typeof l){case"string":return l;case"number":return jS(l);case"boolean":return US(l);case"bigint":return ab?ab(l):"0";case"symbol":return ib?ib(l):"Symbol()";case"undefined":return zs(l);case"function":case"object":{if(l===null)return zs(l);const a=l,r=Na(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:zs(s)}return zs(l)}default:return zs(l)}}function Na(l,a){for(;l!==null;){const s=MS(l,a);if(s){if(s.get)return on(s.get);if(typeof s.value=="function")return on(s.value)}l=CS(l)}function r(){return null}return r}function qS(l){try{return vn(l,""),!0}catch{return!1}}const lb=Rn(["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"]),_d=Rn(["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"]),Sd=Rn(["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"]),GS=Rn(["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"]),wd=Rn(["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"]),$S=Rn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sb=Rn(["#text"]),rb=Rn(["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"]),Nd=Rn(["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"]),ob=Rn(["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=Rn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),YS=kn(/{{[\w\W]*|^[\w\W]*}}/g),FS=kn(/<%[\w\W]*|^[\w\W]*%>/g),PS=kn(/\${[\w\W]*/g),KS=kn(/^data-[\-\w.\u00B7-\uFFFF]+$/),ZS=kn(/^aria-[\-\w]+$/),cb=kn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),XS=kn(/^(?:\w+script|data):/i),VS=kn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),QS=kn(/^html$/i),WS=kn(/^[a-z][.\w]*(-[.\w]+)+$/i),ub=kn(/<[/\w!]/g),db=kn(/<[/\w]/g),JS=kn(/<\/no(script|embed|frames)/i),ew=kn(/\/>/i),sa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},tw=function(){return typeof window>"u"?null:window},nw=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},fb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mi=function(a,r,s,u){return En(a,r)&&zi(a[r])?dt(u.base?Mn(u.base):{},a[r],u.transform):s};function ty(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tw();const a=W=>ty(W);if(a.version="3.4.13",a.removed=[],!l||!l.document||l.document.nodeType!==sa.document||!l.Element)return a.isSupported=!1,a;let r=l.document;const s=r,u=s.currentScript;l.DocumentFragment;const f=l.HTMLTemplateElement,p=l.Node,y=l.Element,g=l.NodeFilter,m=l.NamedNodeMap;m===void 0&&(l.NamedNodeMap||l.MozNamedAttrMap),l.HTMLFormElement;const b=l.DOMParser,v=l.trustedTypes,_=y.prototype,T=Na(_,"cloneNode"),N=Na(_,"remove"),D=Na(_,"nextSibling"),x=Na(_,"childNodes"),C=Na(_,"parentNode"),I=Na(_,"shadowRoot"),A=Na(_,"attributes"),Q=p&&p.prototype?Na(p.prototype,"nodeType"):null,V=p&&p.prototype?Na(p.prototype,"nodeName"):null,ie=p&&p.prototype?Na(p.prototype,"ownerDocument"):null;if(typeof f=="function"){const W=r.createElement("template");W.content&&W.content.ownerDocument&&(r=W.content.ownerDocument)}let H,R="",q,J=!1,K=0;const me=function(){if(K>0)throw Wi('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.')},ce=function(w){me(),K++;try{return H.createHTML(w)}finally{K--}},Se=function(w){me(),K++;try{return H.createScriptURL(w)}finally{K--}},he=function(){return J||(q=nw(v,u),J=!0),q},M=r,ee=M.implementation,fe=M.createNodeIterator,we=M.createDocumentFragment,Le=M.getElementsByTagName,S=s.importNode;let z=fb();a.isSupported=typeof Jb=="function"&&typeof C=="function"&&ee&&ee.createHTMLDocument!==void 0;const B=YS,se=FS,pe=PS,ve=KS,Z=ZS,ye=XS,Ne=VS,Ge=WS;let $e=cb,Me=null;const Dt=dt({},[...lb,..._d,...Sd,...wd,...sb]);let Pe=null;const Hn=dt({},[...rb,...Nd,...ob,...eo]);let it=Object.seal(jl(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}})),fn=null,Ot=null;const Gt=Object.seal(jl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Wt=!0,Lt=!0,vt=!1,Ln=!0,lt=!1,mt=!0,At=!1,_n=!1,hn=null,qn=null,Sn=!1,wn=!1,ra=!1,zn=!1,It=!0,pn=!1;const Rt="user-content-";let Gn=!0,$n=!1,mn={},He=null;const gn=dt({},["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 Ht=null;const $t=dt({},["audio","video","img","source","image","track"]);let O=null;const ne=dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let st=Qe,Ae=!1,_e=null;const Ue=dt({},[be,je,Qe],Ed),Ct=Rn(["mi","mo","mn","ms","mtext"]);let bt=dt({},Ct);const jn=Rn(["annotation-xml"]);let Un=dt({},jn);const ba=dt({},["title","style","font","a","script"]);let Pt=null;const St=["application/xhtml+xml","text/html"],Kt="text/html";let ut=null,Yn=null;const ii=r.createElement("form"),ya=function(w){return w instanceof RegExp||w instanceof Function},va=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Yn&&Yn===w)return;(!w||typeof w!="object")&&(w={}),w=Mn(w),Pt=St.indexOf(w.PARSER_MEDIA_TYPE)===-1?Kt:w.PARSER_MEDIA_TYPE,ut=Pt==="application/xhtml+xml"?Ed:Us,Me=Mi(w,"ALLOWED_TAGS",Dt,{transform:ut}),Pe=Mi(w,"ALLOWED_ATTR",Hn,{transform:ut}),_e=Mi(w,"ALLOWED_NAMESPACES",Ue,{transform:Ed}),O=Mi(w,"ADD_URI_SAFE_ATTR",ne,{transform:ut,base:ne}),Ht=Mi(w,"ADD_DATA_URI_TAGS",$t,{transform:ut,base:$t}),He=Mi(w,"FORBID_CONTENTS",gn,{transform:ut}),fn=Mi(w,"FORBID_TAGS",Mn({}),{transform:ut}),Ot=Mi(w,"FORBID_ATTR",Mn({}),{transform:ut}),mn=En(w,"USE_PROFILES")?w.USE_PROFILES&&typeof w.USE_PROFILES=="object"?Mn(w.USE_PROFILES):w.USE_PROFILES:!1,Wt=w.ALLOW_ARIA_ATTR!==!1,Lt=w.ALLOW_DATA_ATTR!==!1,vt=w.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=w.SAFE_FOR_TEMPLATES||!1,mt=w.SAFE_FOR_XML!==!1,At=w.WHOLE_DOCUMENT||!1,wn=w.RETURN_DOM||!1,ra=w.RETURN_DOM_FRAGMENT||!1,zn=w.RETURN_TRUSTED_TYPE||!1,Sn=w.FORCE_BODY||!1,It=w.SANITIZE_DOM!==!1,pn=w.SANITIZE_NAMED_PROPS||!1,Gn=w.KEEP_CONTENT!==!1,$n=w.IN_PLACE||!1,$e=qS(w.ALLOWED_URI_REGEXP)?w.ALLOWED_URI_REGEXP:cb,st=typeof w.NAMESPACE=="string"?w.NAMESPACE:Qe,bt=En(w,"MATHML_TEXT_INTEGRATION_POINTS")&&w.MATHML_TEXT_INTEGRATION_POINTS&&typeof w.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(w.MATHML_TEXT_INTEGRATION_POINTS):dt({},Ct),Un=En(w,"HTML_INTEGRATION_POINTS")&&w.HTML_INTEGRATION_POINTS&&typeof w.HTML_INTEGRATION_POINTS=="object"?Mn(w.HTML_INTEGRATION_POINTS):dt({},jn);const j=En(w,"CUSTOM_ELEMENT_HANDLING")&&w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING=="object"?Mn(w.CUSTOM_ELEMENT_HANDLING):jl(null);if(it=jl(null),En(j,"tagNameCheck")&&ya(j.tagNameCheck)&&(it.tagNameCheck=j.tagNameCheck),En(j,"attributeNameCheck")&&ya(j.attributeNameCheck)&&(it.attributeNameCheck=j.attributeNameCheck),En(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(it.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),kn(it),lt&&(Lt=!1),ra&&(wn=!0),mn&&(Me=dt({},sb),Pe=jl(null),mn.html===!0&&(dt(Me,lb),dt(Pe,rb)),mn.svg===!0&&(dt(Me,_d),dt(Pe,Nd),dt(Pe,eo)),mn.svgFilters===!0&&(dt(Me,Sd),dt(Pe,Nd),dt(Pe,eo)),mn.mathMl===!0&&(dt(Me,wd),dt(Pe,ob),dt(Pe,eo))),Gt.tagCheck=null,Gt.attributeCheck=null,En(w,"ADD_TAGS")&&(typeof w.ADD_TAGS=="function"?Gt.tagCheck=w.ADD_TAGS:zi(w.ADD_TAGS)&&(Me===Dt&&(Me=Mn(Me)),dt(Me,w.ADD_TAGS,ut))),En(w,"ADD_ATTR")&&(typeof w.ADD_ATTR=="function"?Gt.attributeCheck=w.ADD_ATTR:zi(w.ADD_ATTR)&&(Pe===Hn&&(Pe=Mn(Pe)),dt(Pe,w.ADD_ATTR,ut))),En(w,"ADD_URI_SAFE_ATTR")&&zi(w.ADD_URI_SAFE_ATTR)&&dt(O,w.ADD_URI_SAFE_ATTR,ut),En(w,"FORBID_CONTENTS")&&zi(w.FORBID_CONTENTS)&&(He===gn&&(He=Mn(He)),dt(He,w.FORBID_CONTENTS,ut)),En(w,"ADD_FORBID_CONTENTS")&&zi(w.ADD_FORBID_CONTENTS)&&(He===gn&&(He=Mn(He)),dt(He,w.ADD_FORBID_CONTENTS,ut)),Gn&&(Me["#text"]=!0),At&&dt(Me,["html","head","body"]),Me.table&&(dt(Me,["tbody"]),delete fn.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const te=H;H=w.TRUSTED_TYPES_POLICY;try{R=ce("")}catch(xe){throw H=te,xe}}else w.TRUSTED_TYPES_POLICY===null?(H=void 0,R=""):(H===void 0&&(H=he()),H&&typeof R=="string"&&(R=ce("")));Rn&&Rn(w),Yn=w},Wn=dt({},[..._d,...Sd,...GS]),Ea=dt({},[...wd,...$S]),Jt=function(w,j,te){return j.namespaceURI===Qe?w==="svg":j.namespaceURI===be?w==="svg"&&(te==="annotation-xml"||bt[te]):!!Wn[w]},Fn=function(w,j,te){return j.namespaceURI===Qe?w==="math":j.namespaceURI===je?w==="math"&&Un[te]:!!Ea[w]},G=function(w,j,te){return j.namespaceURI===je&&!Un[te]||j.namespaceURI===be&&!bt[te]?!1:!Ea[w]&&(ba[w]||!Wn[w])},de=function(w){let j=C(w);(!j||!j.tagName)&&(j={namespaceURI:st,tagName:"template"});const te=Us(w.tagName),xe=Us(j.tagName);return _e[w.namespaceURI]?w.namespaceURI===je?Jt(te,j,xe):w.namespaceURI===be?Fn(te,j,xe):w.namespaceURI===Qe?G(te,j,xe):!!(Pt==="application/xhtml+xml"&&_e[w.namespaceURI]):!1},ge=function(w){Ll(a.removed,{element:w});try{C(w).removeChild(w)}catch{if(N(w),!C(w))throw Wi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Te=function(w){oe(w);const j=x(w);if(j){const xe=[];Dl(j,Oe=>{Ll(xe,Oe)}),Dl(xe,Oe=>{try{N(Oe)}catch{}})}const te=A(w);if(te)for(let xe=te.length-1;xe>=0;--xe){const Oe=te[xe],qe=Oe&&Oe.name;if(typeof qe=="string")try{w.removeAttribute(qe)}catch{}}},Ye=function(w,j){try{Ll(a.removed,{attribute:j.getAttributeNode(w),from:j})}catch{Ll(a.removed,{attribute:null,from:j})}if(j.removeAttribute(w),w==="is")if(wn||ra)try{ge(j)}catch{}else try{j.setAttribute(w,"")}catch{}},un=function(w){const j=A(w);if(j)for(let te=j.length-1;te>=0;--te){const xe=j[te],Oe=xe&&xe.name;if(!(typeof Oe!="string"||Pe[ut(Oe)]))try{w.removeAttribute(Oe)}catch{}}},oe=function(w){const j=[w];for(;j.length>0;){const te=j.pop();(Q?Q(te):te.nodeType)===sa.element&&un(te);const Oe=x(te);if(Oe)for(let qe=Oe.length-1;qe>=0;--qe)j.push(Oe[qe])}},Re=function(w){if(!mt)return;const j=[w];for(;j.length>0;){const te=j.pop(),xe=Q?Q(te):te.nodeType;if(xe===sa.processingInstruction||xe===sa.comment&&vn(db,te.data)){try{N(te)}catch{}continue}if(xe===sa.element){const qe=te,et=ut(V?V(te):te.nodeName);try{qe.hasAttribute&&qe.hasAttribute("patchsrc")&&qe.removeAttribute("patchsrc"),qe.hasAttribute&&qe.hasAttribute("for")&&et!=="label"&&et!=="output"&&qe.removeAttribute("for")}catch{}}const Oe=x(te);if(Oe)for(let qe=Oe.length-1;qe>=0;--qe)j.push(Oe[qe])}},Be=function(w){let j=null,te=null;if(Sn)w="<remove></remove>"+w;else{const qe=tb(w,/^[\r\n\t ]+/);te=qe&&qe[0]}Pt==="application/xhtml+xml"&&st===Qe&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const xe=H?ce(w):w;if(st===Qe)try{j=new b().parseFromString(xe,Pt)}catch{}if(!j||!j.documentElement){j=ee.createDocument(st,"template",null);try{j.documentElement.innerHTML=Ae?R:xe}catch{}}const Oe=j.body||j.documentElement;return w&&te&&Oe.insertBefore(r.createTextNode(te),Oe.childNodes[0]||null),st===Qe?Le.call(j,At?"html":"body")[0]:At?j.documentElement:Oe},Je=function(w){const j=ie?ie(w):w.ownerDocument;return fe.call(j||w,w,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Mt=function(w){return w=Ls(w,B," "),w=Ls(w,se," "),w=Ls(w,pe," "),w},en=function(w){var j;w.normalize();const te=ie?ie(w):w.ownerDocument,xe=fe.call(te||w,w,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Oe=xe.nextNode();for(;Oe;)Oe.data=Mt(Oe.data),Oe=xe.nextNode();const qe=(j=w.querySelectorAll)===null||j===void 0?void 0:j.call(w,"template");qe&&Dl(qe,et=>{Zt(et.content)&&en(et.content)})},bn=function(w){const j=V?V(w):null;return typeof j!="string"||ut(j)!=="form"?!1:typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||w.attributes!==A(w)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function"||w.nodeType!==Q(w)||w.childNodes!==x(w)},Zt=function(w){if(!Q||typeof w!="object"||w===null)return!1;try{return Q(w)===sa.documentFragment}catch{return!1}},ft=function(w){if(!Q||typeof w!="object"||w===null)return!1;try{return typeof Q(w)=="number"}catch{return!1}};function Ut(W,w,j){W.length!==0&&Dl(W,te=>{te.call(a,w,j,Yn)})}const nl=function(w,j){return!!(mt&&w.hasChildNodes()&&!ft(w.firstElementChild)&&vn(ub,w.textContent)&&vn(ub,w.innerHTML)||mt&&w.namespaceURI===Qe&&j==="style"&&ft(w.firstElementChild)||w.nodeType===sa.processingInstruction||mt&&w.nodeType===sa.comment&&vn(db,w.data))},li=function(w,j,te){if(!fn[j]&&ri(j)&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,j)||it.tagNameCheck instanceof Function&&it.tagNameCheck(j)))return!1;if(Gn&&!He[j]){const xe=C(w),Oe=x(w);if(Oe&&xe){const qe=Oe.length;for(let et=qe-1;et>=0;--et){const ue=w===te?T(Oe[et],!0):Oe[et];xe.insertBefore(ue,D(w))}}}return ge(w),!0},si=function(w,j,te,xe){return w.length===0?j:j===te||j===xe?Mn(j):j},Ua=function(w,j){if(Ut(z.beforeSanitizeElements,w,null),w!==j&&C(w)===null)return $n&&oe(w),!0;if(bn(w))return ge(w),!0;const te=ut(V?V(w):w.nodeName);if(Me=si(z.uponSanitizeElement,Me,Dt,hn),Ut(z.uponSanitizeElement,w,{tagName:te,allowedTags:Me}),w!==j&&C(w)===null)return $n&&oe(w),!0;if(nl(w,te))return ge(w),!0;if(fn[te]||!(Gt.tagCheck instanceof Function&&Gt.tagCheck(te))&&!Me[te]){const Oe=li(w,te,j);return Oe===!1&&Ut(z.afterSanitizeElements,w,null),Oe}if((Q?Q(w):w.nodeType)===sa.element&&!de(w)||(te==="noscript"||te==="noembed"||te==="noframes")&&vn(JS,w.innerHTML))return ge(w),!0;if(lt&&w.nodeType===sa.text){const Oe=Mt(w.textContent);w.textContent!==Oe&&(Ll(a.removed,{element:w.cloneNode()}),w.textContent=Oe)}return Ut(z.afterSanitizeElements,w,null),!1},al=function(w,j,te){if(Ot[j]||mt&&j==="patchsrc"||mt&&j==="for"&&w!=="label"&&w!=="output"||It&&(j==="id"||j==="name")&&(te in r||te in ii))return!1;const xe=Pe[j]||Gt.attributeCheck instanceof Function&&Gt.attributeCheck(j,w);if(!(Lt&&vn(ve,j))){if(!(Wt&&vn(Z,j))){if(xe){if(!O[j]){if(!vn($e,Ls(te,Ne,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&w!=="script"&&nb(te,"data:")===0&&Ht[w])){if(!(vt&&!vn(ye,Ls(te,Ne,"")))){if(te)return!1}}}}}else if(!(ri(w)&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,w)||it.tagNameCheck instanceof Function&&it.tagNameCheck(w))&&(it.attributeNameCheck instanceof RegExp&&vn(it.attributeNameCheck,j)||it.attributeNameCheck instanceof Function&&it.attributeNameCheck(j,w))||j==="is"&&it.allowCustomizedBuiltInElements&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,te)||it.tagNameCheck instanceof Function&&it.tagNameCheck(te))))return!1}}return!0},On=dt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ri=function(w){return!On[Us(w)]&&vn(Ge,w)},Ba=function(w,j,te,xe){if(H&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!te)switch(v.getAttributeType(w,j)){case"TrustedHTML":return ce(xe);case"TrustedScriptURL":return Se(xe)}return xe},oi=function(w,j,te,xe){try{te?w.setAttributeNS(te,j,xe):w.setAttribute(j,xe),bn(w)?ge(w):eb(a.removed)}catch{Ye(j,w)}},tn=function(w){Ut(z.beforeSanitizeAttributes,w,null);const j=w.attributes;if(!j||bn(w))return;Pe=si(z.uponSanitizeAttribute,Pe,Hn,qn);const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0};let xe=j.length;const Oe=ut(w.nodeName);for(;xe--;){const qe=j[xe],et=qe.name,ue=qe.namespaceURI,Ee=qe.value,De=ut(et),Ve=Ee;let We=et==="value"?Ve:zS(Ve);if(te.attrName=De,te.attrValue=We,te.keepAttr=!0,te.forceKeepAttr=void 0,Ut(z.uponSanitizeAttribute,w,te),We=te.attrValue,pn&&(De==="id"||De==="name")&&nb(We,Rt)!==0&&(Ye(et,w),We=Rt+We),mt&&vn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){Ye(et,w);continue}if(De==="attributename"&&tb(We,"href")){Ye(et,w);continue}if(!te.forceKeepAttr){if(!te.keepAttr){Ye(et,w);continue}if(!Ln&&vn(ew,We)){Ye(et,w);continue}if(lt&&(We=Mt(We)),!al(Oe,De,We)){Ye(et,w);continue}We=Ba(Oe,De,ue,We),We!==Ve&&oi(w,et,ue,We)}}Ut(z.afterSanitizeAttributes,w,null)},Ia=function(w){let j=null;const te=Je(w);for(Ut(z.beforeSanitizeShadowDOM,w,null);j=te.nextNode();)if(Ut(z.uponSanitizeShadowNode,j,null),Ua(j,w),tn(j),Zt(j.content)&&Ia(j.content),(Q?Q(j):j.nodeType)===sa.element){const Oe=I(j);Zt(Oe)&&(Aa(Oe),Ia(Oe))}Ut(z.afterSanitizeShadowDOM,w,null)},Aa=function(w){const j=[{node:w,shadow:null}];for(;j.length>0;){const te=j.pop();if(te.shadow){Ia(te.shadow);continue}const xe=te.node,qe=(Q?Q(xe):xe.nodeType)===sa.element,et=x(xe);if(et)for(let ue=et.length-1;ue>=0;--ue)j.push({node:et[ue],shadow:null});if(qe){const ue=V?V(xe):null;if(typeof ue=="string"&&ut(ue)==="template"){const Ee=xe.content;Zt(Ee)&&j.push({node:Ee,shadow:null})}}if(qe){const ue=I(xe);Zt(ue)&&j.push({node:null,shadow:ue},{node:ue,shadow:null})}}};return a.sanitize=function(W){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,te=null,xe=null,Oe=null;if(Ae=!W,Ae&&(W="<!-->"),typeof W!="string"&&!ft(W)&&(W=HS(W),typeof W!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return W;_n?(Me=hn,Pe=qn):va(w),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(Me=Mn(Me)),z.uponSanitizeAttribute.length>0&&(Pe=Mn(Pe)),a.removed=[];const qe=$n&&typeof W!="string"&&ft(W);if(qe){Re(W);const Ee=V?V(W):W.nodeName;if(typeof Ee=="string"){const De=ut(Ee);if(!Me[De]||fn[De])throw Te(W),Wi("root node is forbidden and cannot be sanitized in-place")}if(bn(W))throw Te(W),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(W)}catch(De){throw Te(W),De}}else if(ft(W))j=Be("<!---->"),te=j.ownerDocument.importNode(W,!0),te.nodeType===sa.element&&te.nodeName==="BODY"||te.nodeName==="HTML"?j=te:j.appendChild(te),Aa(te);else{if(!wn&&!lt&&!At&&W.indexOf("<")===-1)return H&&zn?ce(W):W;if(j=Be(W),!j)return wn?null:zn?R:""}j&&Sn&&ge(j.firstChild);const et=qe?W:j;try{const Ee=Je(et);for(;xe=Ee.nextNode();)Ua(xe,et),tn(xe),Zt(xe.content)&&Ia(xe.content)}catch(Ee){throw qe&&(Te(W),Dl(a.removed,De=>{De.element&&oe(De.element)})),Ee}if(qe)return Dl(a.removed,Ee=>{Ee.element&&oe(Ee.element)}),lt&&en(W),W;if(wn){if(lt&&en(j),ra)for(Oe=we.call(j.ownerDocument);j.firstChild;)Oe.appendChild(j.firstChild);else Oe=j;return(Pe.shadowroot||Pe.shadowrootmode)&&(Oe=S.call(s,Oe,!0)),Oe}let ue=At?j.outerHTML:j.innerHTML;return At&&Me["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&vn(QS,j.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
|
|
177
|
-
`+ue),lt&&(ue=Mt(ue)),H&&zn?ce(ue):ue},a.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(W),_n=!0,hn=Me,qn=Pe},a.clearConfig=function(){Yn=null,_n=!1,hn=null,qn=null,H=q,R=""},a.isValidAttribute=function(W,
|
|
178
|
-
]`).replace("lheading",
|
|
166
|
+
`);let f=2166136261;for(let p=0;p<u.length;p++)f^=u.charCodeAt(p),f=Math.imul(f,16777619);return(f>>>0).toString(16).padStart(8,"0")}const $b={blocker:"🚨",minor:"⚠️",nit:"🎨"};function cg(l,a){return a?`${$b[a]} **${a}** — ${l}`:l}function Yb(l,a,r){const s=`${a}/${r}`.toLowerCase();for(const[u,f]of Object.entries(l.autoReviewRepos))if(u.toLowerCase()===s)return f;return l.autoReview}const L_=["inbox","awaiting","drafted"],Od=["requests","settled","sent","archived"],Du={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 ug(l){return l.status==="awaiting"||l.status==="running"?"awaiting":l.status==="sent"?"sent":"drafted"}const qs=l=>!!l.pr.state&&l.pr.state!=="OPEN",dg=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Bl(l){return[...l].sort((a,r)=>dg.indexOf(a.status)-dg.indexOf(r.status)||r.updatedAt.localeCompare(a.updatedAt))}const Fb=["sent","reviewed","skipped"];function Gs(l){return Bl(l.filter(a=>!qs(a)&&!Fb.includes(a.status)))}function z_(l,a,r){return Gs(l).filter(s=>s.key===a||!r.has(s.key))}function j_(l,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(Gs(l).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return Bl(l.filter(u=>s.has(u.id)&&!r.has(u.id)))}const U_=(l,a)=>a.some(r=>r.id===l.id);function B_(l,a){const r=l.filter(u=>!qs(u)),s=Bl(r.filter(u=>!Fb.includes(u.status)));return{inbox:s,awaiting:s.filter(u=>ug(u)==="awaiting"),drafted:s.filter(u=>ug(u)==="drafted"),requests:j_(l,a),settled:Bl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Bl(r.filter(u=>u.status==="sent")),archived:Bl(l.filter(qs))}}function I_(l,a){return Od.includes(l)&&a[l].length===0?"inbox":l}function Pb(l){var a,r;return l.reason==="own-review"?((a=l.review)==null?void 0:a.at)??l.at:l.reason==="own-reply"?((r=l.reply)==null?void 0:r.at)??l.at:l.at}const uo={"own-review":{tag:"reviewed on GitHub",meta:l=>`you reviewed this on GitHub on ${l}`,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:l=>`you replied on GitHub on ${l}`,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:l=>`nobody was asking for this any more on ${l}`,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 H_(l){var a;return qs(l)?((a=l.pr.state)==null?void 0:a.toLowerCase())??null:l.handoff?`handed to @${l.handoff.to}`:l.filed?uo[l.filed.reason].tag:l.status==="reviewed"||l.status==="skipped"?l.status:null}function q_(l,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===l.id))==null?void 0:r.reply)??"unknown":"unknown"}const G_={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."}},$_=l=>G_[l];function Y_(l){const a=Jd[l.event]??l.event,r=new Date(l.at).toLocaleDateString();return{label:l.auto?"auto-sent a review":"you replied with a review",title:`${l.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 F_(l){const a=uo[l.reason],r=new Date(Pb(l)).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 P_(l){const a=new Date(l.at).toLocaleDateString();return{label:`handed to @${l.to}`,title:l.withdrewYours?`You handed this to @${l.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 @${l.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 K_=(l,a)=>l.handoff?P_(l.handoff):l.sent?Y_(l.sent):l.filed?F_(l.filed):$_(a);function Z_(l){const a=l.length,r=a===1?"1 review request":`${a} review requests`,s=l.some(qs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${s} ${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 Kb(l,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(l).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 X_={approve:"approve",comment:"comment",request_changes:"changes"},Jd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function V_(l){return l.status==="running"?{label:"reviewing…",tone:"running"}:l.status==="awaiting"?{label:"review now",tone:"awaiting"}:l.status==="failed"?{label:"run failed",tone:"failed"}:l.sent?{label:`sent · ${Jd[l.sent.event]??l.sent.event}`,tone:"sent"}:l.verdict?{label:`${l.verdict.recommendation.replace("_"," ")} ${l.verdict.confidence}%`,tone:X_[l.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Q_(l){return l.status==="running"||l.status==="awaiting"||l.status==="failed"||!l.verdict&&!l.sent?"—":String(l.commentCount)}function Lu(l){return l.trusted?"ran the code":l.withSource?"read the full source":"read the diff only"}function W_(l){if(l.commentCount===0)return"no comments drafted";const a=[`${l.commentCount} comment${l.commentCount===1?"":"s"} drafted`];return l.driftedCount&&a.push(`${l.driftedCount} off-diff`),l.gradedCount&&a.push(l.blockerCount?`${l.blockerCount} blocker${l.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function J_(l,a){const r=Object.values(a).filter(s=>s!==l).length;return r===0?"":` · ${r} repo${r===1?"":"s"} ${l?"on click":"auto"}`}function e0(l,a,r=Date.now()){var u,f;if(l.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Kb(l.updatedAt,r)} ago`,Lu(l)]};if(l.status==="awaiting")return a!=null&&a.enabled&&a.pollEnabled&&!Yb({autoReview:a.autoReview,autoReviewRepos:a.autoReviewRepos??{}},l.pr.owner,l.pr.repo)?{reasoning:`Found by the inbox poll. ${a.autoReview?`Auto-review is off for ${l.pr.owner}/${l.pr.repo}`:"Auto-review is off"}, so it waits for you to ask for a draft.`,meta:["no run yet","press r to review now"]}:{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(l.status==="failed")return{reasoning:l.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(l.sent)return{reasoning:`Sent to GitHub as ${Jd[l.sent.event]??l.sent.event} on ${new Date(l.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue, though a re-review can draft against the current head.`+(l.handoff?` GitHub asks @${l.handoff.to} for it now.`:""),meta:[...l.handoff?[`you handed this to @${l.handoff.to}`]:[],l.sent.auto?"auto-sent by the daemon":"sent by you",Lu(l)]};const s=[Lu(l)];if(l.handoff?s.unshift(`you handed this to @${l.handoff.to} on ${new Date(l.handoff.at).toLocaleDateString()}`):l.filed?s.unshift(uo[l.filed.reason].meta(new Date(Pb(l.filed)).toLocaleDateString())):l.status==="reviewed"?s.unshift("you marked this reviewed"):l.status==="skipped"&&s.unshift("you skipped this"),l.costUsd!=null&&s.push(`≈$${l.costUsd.toFixed(2)} at API rates`),s.push(W_(l)),a!=null&&a.enabled&&l.status==="ready"&&((u=l.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(l.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${l.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),l.handoff){const p=l.commentCount>0||l.verdict!=null;return{reasoning:`GitHub asks @${l.handoff.to} for this review now${l.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:s}}return l.filed?{reasoning:uo[l.filed.reason].reasoning,meta:s}:{reasoning:((f=l.verdict)==null?void 0:f.reasoning)??"This review has a draft but no verdict.",meta:s}}const t0="/favicon.svg",n0="/favicon-dot.svg",a0=l=>Gs(l).length>0,i0=l=>l?n0:t0;function l0(l){const a=i0(a0(l)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function It(l,a){const r=await fetch(l,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${l}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const Eo=async()=>{const l=await It("/api/reviews");return l0(l),l},Zb=()=>It("/api/daemon"),fg=l=>It(`/api/reviews/${encodeURIComponent(l)}`),s0=(l,a,r)=>It(`/api/reviews/${encodeURIComponent(l)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),lo=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}`,{method:"PATCH",body:JSON.stringify(a)}),r0=(l,a,r)=>It(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),o0=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}/comments`,{method:"POST",body:JSON.stringify(a)}),c0=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"DELETE"}),u0=l=>It("/api/reviews",{method:"POST",body:JSON.stringify({input:l})}),d0=l=>It(`/api/reviews/${encodeURIComponent(l)}/refresh`,{method:"POST"}),Xb=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Cd=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}/chat`,{method:"POST",body:JSON.stringify(a)}),f0=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}/chat/steer`,{method:"POST",body:JSON.stringify({message:a})}),h0=l=>It(`/api/reviews/${encodeURIComponent(l)}/chat/pending`,{method:"DELETE"}),p0=l=>It(`/api/reviews/${encodeURIComponent(l)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Vb=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}/send-preview?event=${a}`),m0=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),g0=l=>It(`/api/reviews/${encodeURIComponent(l)}/raised`,{method:"POST"}),b0=l=>It(`/api/reviews/${encodeURIComponent(l)}/reviewers`),y0=(l,a)=>It(`/api/reviews/${encodeURIComponent(l)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),v0=l=>`/api/reviews/${encodeURIComponent(l)}/export`,E0=()=>It("/api/config"),zu=(l,a=!1)=>It("/api/config/trust",{method:"POST",body:JSON.stringify({rule:l,remove:a})}),_0=(l,a)=>It("/api/config/auto-review-repo",{method:"POST",body:JSON.stringify({repo:l,on:a})}),ju=l=>It("/api/config/daemon",{method:"POST",body:JSON.stringify(l)}),Qb="cerber.handoff.recent",Wb=5,S0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,Jb=l=>S0.test(l);function w0(l){try{const a=JSON.parse(l??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&Jb(r)).slice(0,Wb):[]}catch{return[]}}function ey(){try{return w0(localStorage.getItem(Qb))}catch{return[]}}function N0(l,a){const r=l.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,Wb)}function x0(l){const a=N0(ey(),l);try{localStorage.setItem(Qb,JSON.stringify(a))}catch{}return a}const Md=l=>l.trim().replace(/^@/,"");function T0(l,a){const r=new Set,s=[];for(const u of[...a,...l]){const f=u.toLowerCase();r.has(f)||(r.add(f),s.push({login:u,recent:a.some(p=>p.toLowerCase()===f)}))}return s}function A0(l,a){const r=Md(a).toLowerCase();if(!r)return l;const s=l.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,f=p=>p.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(p=>!u(p)&&f(p)),...s.filter(p=>!f(p))]}function Uu(l){return l.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function Dd(l){return l.nodeName.toLowerCase()}function hg(l){const a=[],r=(s,u)=>{for(let f=s.firstChild;f;f=f.nextSibling)f.nodeType===3&&f.nodeValue!==null?u+=f.nodeValue.length:f.nodeType===1&&(a.push({event:"start",offset:u,node:f}),u=r(f,u),Dd(f).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:f}));return u};return r(l,0),a}function R0(l,a,r){let s=0,u="";const f=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!l.length||!a.length?l.length?l:a:l[0].offset!==a[0].offset?l[0].offset<a[0].offset?l:a:a[0].event==="start"?l:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${Dd(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Uu(_.value).replace(/"/g,""")}"`).join(" ")}>`}function m(v){u+="</"+Dd(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;l.length||a.length;){let v=y();if(u+=Uu(r.substring(s,v[0].offset)),s=v[0].offset,v===l){f.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===l&&v.length&&v[0].offset===s);f.reverse().forEach(g)}else v[0].event==="start"?f.push(v[0].node):f.pop(),b(v.splice(0,1)[0])}return u+Uu(r.substr(s))}const k0={"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 O0(l){var a;return(a=k0[l])!==null&&a!==void 0?a:"plaintext"}var Bu,pg;function C0(){if(pg)return Bu;pg=1;function l(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(ne=>{const be=O[ne],je=typeof be;(je==="object"||je==="function")&&!Object.isFrozen(be)&&l(be)}),O}class a{constructor(ne){ne.data===void 0&&(ne.data={}),this.data=ne.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(O,...ne){const be=Object.create(null);for(const je in O)be[je]=O[je];return ne.forEach(function(je){for(const Qe in je)be[Qe]=je[Qe]}),be}const u="</span>",f=O=>!!O.scope,p=(O,{prefix:ne})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const be=O.split(".");return[`${ne}${be.shift()}`,...be.map((je,Qe)=>`${je}${"_".repeat(Qe+1)}`)].join(" ")}return`${ne}${O}`};class y{constructor(ne,be){this.buffer="",this.classPrefix=be.classPrefix,ne.walk(this)}addText(ne){this.buffer+=r(ne)}openNode(ne){if(!f(ne))return;const be=p(ne.scope,{prefix:this.classPrefix});this.span(be)}closeNode(ne){f(ne)&&(this.buffer+=u)}value(){return this.buffer}span(ne){this.buffer+=`<span class="${ne}">`}}const g=(O={})=>{const ne={children:[]};return Object.assign(ne,O),ne};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(ne){this.top.children.push(ne)}openNode(ne){const be=g({scope:ne});this.add(be),this.stack.push(be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ne){return this.constructor._walk(ne,this.rootNode)}static _walk(ne,be){return typeof be=="string"?ne.addText(be):be.children&&(ne.openNode(be),be.children.forEach(je=>this._walk(ne,je)),ne.closeNode(be)),ne}static _collapse(ne){typeof ne!="string"&&ne.children&&(ne.children.every(be=>typeof be=="string")?ne.children=[ne.children.join("")]:ne.children.forEach(be=>{m._collapse(be)}))}}class b extends m{constructor(ne){super(),this.options=ne}addText(ne){ne!==""&&this.add(ne)}startScope(ne){this.openNode(ne)}endScope(){this.closeNode()}__addSublanguage(ne,be){const je=ne.root;be&&(je.scope=`language:${be}`),this.add(je)}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 C("(?=",O,")")}function x(O){return C("(?:",O,")*")}function S(O){return C("(?:",O,")?")}function C(...O){return O.map(be=>v(be)).join("")}function T(O){const ne=O[O.length-1];return typeof ne=="object"&&ne.constructor===Object?(O.splice(O.length-1,1),ne):{}}function M(...O){return"("+(T(O).capture?"":"?:")+O.map(je=>v(je)).join("|")+")"}function I(O){return new RegExp(O.toString()+"|").exec("").length-1}function A(O,ne){const be=O&&O.exec(ne);return be&&be.index===0}const V=new RegExp(M(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function Q(O,{joinWith:ne}){let be=0;return O.map(je=>{be+=1;const Qe=be;let st=v(je),Ae="";for(;st.length>0;){const _e=V.exec(st);if(!_e){Ae+=st;break}Ae+=st.substring(0,_e.index),st=st.substring(_e.index+_e[0].length),_e[0][0]==="\\"&&_e[1]?Ae+="\\"+String(Number(_e[1])+Qe):(Ae+=_e[0],(_e[0]==="("||/^\(\?[<']/.test(_e[0]))&&be++)}return Ae}).map(je=>`(${je})`).join(ne)}const ie=/\b\B/,H="[a-zA-Z]\\w*",R="[a-zA-Z_]\\w*",q="\\b\\d+(\\.\\d+)?",J="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ce=(O={})=>{const ne=/^#![ ]*\//;return O.binary&&(O.begin=C(ne,/.*\b/,O.binary,/\b.*/)),s({scope:"meta",begin:ne,end:/$/,relevance:0,"on:begin":(be,je)=>{be.index!==0&&je.ignoreMatch()}},O)},Se={begin:"\\\\[\\s\\S]",relevance:0},he={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Se]},D={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Se]},ee={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/},fe=function(O,ne,be={}){const je=s({scope:"comment",begin:O,end:ne,contains:[]},be);je.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 Qe=M("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 je.contains.push({begin:C(/[ ]+/,"(",Qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),je},we=fe("//","$"),Le=fe("/\\*","\\*/"),w=fe("#","$"),z={scope:"number",begin:q,relevance:0},B={scope:"number",begin:J,relevance:0},se={scope:"number",begin:K,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Se,{begin:/\[/,end:/\]/,relevance:0,contains:[Se]}]},ve={scope:"title",begin:H,relevance:0},Z={scope:"title",begin:R,relevance:0},ye={begin:"\\.\\s*"+R,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:he,BACKSLASH_ESCAPE:Se,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:K,COMMENT:fe,C_BLOCK_COMMENT_MODE:Le,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:B,C_NUMBER_RE:J,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(ne,be)=>{be.data._beginMatch=ne[1]},"on:end":(ne,be)=>{be.data._beginMatch!==ne[1]&&be.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:H,MATCH_NOTHING_RE:ie,METHOD_GUARD:ye,NUMBER_MODE:z,NUMBER_RE:q,PHRASAL_WORDS_MODE:ee,QUOTE_STRING_MODE:D,REGEXP_MODE:pe,RE_STARTERS_RE:me,SHEBANG:ce,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:R,UNDERSCORE_TITLE_MODE:Z});function $e(O,ne){O.input[O.index-1]==="."&&ne.ignoreMatch()}function Me(O,ne){O.className!==void 0&&(O.scope=O.className,delete O.className)}function Dt(O,ne){ne&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=$e,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function Pe(O,ne){Array.isArray(O.illegal)&&(O.illegal=M(...O.illegal))}function Hn(O,ne){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 it(O,ne){O.relevance===void 0&&(O.relevance=1)}const fn=(O,ne)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const be=Object.assign({},O);Object.keys(O).forEach(je=>{delete O[je]}),O.keywords=be.keywords,O.begin=C(be.beforeMatch,_(be.begin)),O.starts={relevance:0,contains:[Object.assign(be,{endsParent:!0})]},O.relevance=0,delete be.beforeMatch},Ot=["of","and","for","in","not","or","if","then","parent","list","value"],Gt="keyword";function Wt(O,ne,be=Gt){const je=Object.create(null);return typeof O=="string"?Qe(be,O.split(" ")):Array.isArray(O)?Qe(be,O):Object.keys(O).forEach(function(st){Object.assign(je,Wt(O[st],ne,st))}),je;function Qe(st,Ae){ne&&(Ae=Ae.map(_e=>_e.toLowerCase())),Ae.forEach(function(_e){const Ue=_e.split("|");je[Ue[0]]=[st,Lt(Ue[0],Ue[1])]})}}function Lt(O,ne){return ne?Number(ne):vt(O)?0:1}function vt(O){return Ot.includes(O.toLowerCase())}const Ln={},lt=O=>{console.error(O)},mt=(O,...ne)=>{console.log(`WARN: ${O}`,...ne)},At=(O,ne)=>{Ln[`${O}/${ne}`]||(console.log(`Deprecated as of ${O}. ${ne}`),Ln[`${O}/${ne}`]=!0)},_n=new Error;function hn(O,ne,{key:be}){let je=0;const Qe=O[be],st={},Ae={};for(let _e=1;_e<=ne.length;_e++)Ae[_e+je]=Qe[_e],st[_e+je]=!0,je+=I(ne[_e-1]);O[be]=Ae,O[be]._emit=st,O[be]._multi=!0}function qn(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw lt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),_n;if(typeof O.beginScope!="object"||O.beginScope===null)throw lt("beginScope must be object"),_n;hn(O,O.begin,{key:"beginScope"}),O.begin=Q(O.begin,{joinWith:""})}}function Sn(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw lt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),_n;if(typeof O.endScope!="object"||O.endScope===null)throw lt("endScope must be object"),_n;hn(O,O.end,{key:"endScope"}),O.end=Q(O.end,{joinWith:""})}}function wn(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function ra(O){wn(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),qn(O),Sn(O)}function zn(O){function ne(Ae,_e){return new RegExp(v(Ae),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(_e?"g":""))}class be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(_e,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,_e]),this.matchAt+=I(_e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const _e=this.regexes.map(Ue=>Ue[1]);this.matcherRe=ne(Q(_e,{joinWith:"|"}),!0),this.lastIndex=0}exec(_e){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(_e);if(!Ue)return null;const Ct=Ue.findIndex((jn,Un)=>Un>0&&jn!==void 0),bt=this.matchIndexes[Ct];return Ue.splice(0,Ct),Object.assign(Ue,bt)}}class je{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(_e){if(this.multiRegexes[_e])return this.multiRegexes[_e];const Ue=new be;return this.rules.slice(_e).forEach(([Ct,bt])=>Ue.addRule(Ct,bt)),Ue.compile(),this.multiRegexes[_e]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(_e,Ue){this.rules.push([_e,Ue]),Ue.type==="begin"&&this.count++}exec(_e){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Ct=Ue.exec(_e);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const bt=this.getMatcher(0);bt.lastIndex=this.lastIndex+1,Ct=bt.exec(_e)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Qe(Ae){const _e=new je;return Ae.contains.forEach(Ue=>_e.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&_e.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&_e.addRule(Ae.illegal,{type:"illegal"}),_e}function st(Ae,_e){const Ue=Ae;if(Ae.isCompiled)return Ue;[Me,Hn,ra,fn].forEach(bt=>bt(Ae,_e)),O.compilerExtensions.forEach(bt=>bt(Ae,_e)),Ae.__beforeBegin=null,[Dt,Pe,it].forEach(bt=>bt(Ae,_e)),Ae.isCompiled=!0;let Ct=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Ct=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Ct=Ct||/\w+/,Ae.keywords&&(Ae.keywords=Wt(Ae.keywords,O.case_insensitive)),Ue.keywordPatternRe=ne(Ct,!0),_e&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=ne(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=ne(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ae.endsWithParent&&_e.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+_e.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=ne(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(bt){return pn(bt==="self"?Ae:bt)})),Ae.contains.forEach(function(bt){st(bt,Ue)}),Ae.starts&&st(Ae.starts,_e),Ue.matcher=Qe(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=s(O.classNameAliases||{}),st(O)}function Ht(O){return O?O.endsWithParent||Ht(O.starts):!1}function pn(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(ne){return s(O,{variants:null},ne)})),O.cachedVariants?O.cachedVariants:Ht(O)?s(O,{starts:O.starts?s(O.starts):null}):Object.isFrozen(O)?s(O):O}var Rt="11.12.0";class Gn extends Error{constructor(ne,be){super(ne),this.name="HTMLInjectionError",this.html=be}}const $n=r,mn=s,He=Symbol("nomatch"),gn=7,qt=function(O){const ne=Object.create(null),be=Object.create(null),je=[];let Qe=!0;const st="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let _e={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(oe){return _e.noHighlightRe.test(oe)}function Ct(oe){let Re=oe.className+" ";Re+=oe.parentNode?oe.parentNode.className:"";const Be=_e.languageDetectRe.exec(Re);if(Be){const Je=Jt(Be[1]);return Je||(mt(st.replace("{}",Be[1])),mt("Falling back to no-highlight mode for this block.",oe)),Je?Be[1]:"no-highlight"}return Re.split(/\s+/).find(Je=>Ue(Je)||Jt(Je))}function bt(oe,Re,Be){let Je="",Mt="";typeof Re=="object"?(Je=oe,Be=Re.ignoreIllegals,Mt=Re.language):(At("10.7.0","highlight(lang, code, ...args) has been deprecated."),At("10.7.0",`Please use highlight(code, options) instead.
|
|
167
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Mt=oe,Je=Re),Be===void 0&&(Be=!0);const en={code:Je,language:Mt};Ye("before:highlight",en);const bn=en.result?en.result:jn(en.language,en.code,Be);return bn.code=en.code,Ye("after:highlight",bn),bn}function jn(oe,Re,Be,Je){const Mt=Object.create(null);function en(ue,Ee){return ue.keywords[Ee]}function bn(){if(!W.keywords){j.addText(te);return}let ue=0;W.keywordPatternRe.lastIndex=0;let Ee=W.keywordPatternRe.exec(te),De="";for(;Ee;){De+=te.substring(ue,Ee.index);const Ve=tn.case_insensitive?Ee[0].toLowerCase():Ee[0],We=en(W,Ve);if(We){const[oa,$l]=We;if(j.addText(De),De="",Mt[Ve]=(Mt[Ve]||0)+1,Mt[Ve]<=gn&&(Te+=$l),oa.startsWith("_"))De+=Ee[0];else{const Ps=tn.classNameAliases[oa]||oa;Ut(Ee[0],Ps)}}else De+=Ee[0];ue=W.keywordPatternRe.lastIndex,Ee=W.keywordPatternRe.exec(te)}De+=te.substring(ue),j.addText(De)}function Zt(){if(te==="")return;let ue=null;if(typeof W.subLanguage=="string"){if(!ne[W.subLanguage]){j.addText(te);return}ue=jn(W.subLanguage,te,!0,N[W.subLanguage]),N[W.subLanguage]=ue._top}else ue=ba(te,W.subLanguage.length?W.subLanguage:null);W.relevance>0&&(Te+=ue.relevance),j.__addSublanguage(ue._emitter,ue.language)}function ft(){W.subLanguage!=null?Zt():bn(),te=""}function Ut(ue,Ee){ue!==""&&(j.startScope(Ee),j.addText(ue),j.endScope())}function al(ue,Ee){let De=1;const Ve=Ee.length-1;for(;De<=Ve;){if(!ue._emit[De]){De++;continue}const We=tn.classNameAliases[ue[De]]||ue[De],oa=Ee[De];We?Ut(oa,We):(te=oa,bn(),te=""),De++}}function li(ue,Ee){return ue.scope&&typeof ue.scope=="string"&&j.openNode(tn.classNameAliases[ue.scope]||ue.scope),ue.beginScope&&(ue.beginScope._wrap?(Ut(te,tn.classNameAliases[ue.beginScope._wrap]||ue.beginScope._wrap),te=""):ue.beginScope._multi&&(al(ue.beginScope,Ee),te="")),W=Object.create(ue,{parent:{value:W}}),W}function si(ue,Ee,De){let Ve=A(ue.endRe,De);if(Ve){if(ue["on:end"]){const We=new a(ue);ue["on:end"](Ee,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;ue.endsParent&&ue.parent;)ue=ue.parent;return ue}}if(ue.endsWithParent)return si(ue.parent,Ee,De)}function Ua(ue){return W.matcher.regexIndex===0?(te+=ue[0],1):(et=!0,0)}function il(ue){const Ee=ue[0],De=ue.rule,Ve=new a(De),We=[De.__beforeBegin,De["on:begin"]];for(const oa of We)if(oa&&(oa(ue,Ve),Ve.isMatchIgnored))return Ua(Ee);return De.skip?te+=Ee:(De.excludeBegin&&(te+=Ee),ft(),!De.returnBegin&&!De.excludeBegin&&(te=Ee)),li(De,ue),De.returnBegin?0:Ee.length}function On(ue){const Ee=ue[0],De=Re.substring(ue.index),Ve=si(W,ue,De);if(!Ve)return He;const We=W;W.endScope&&W.endScope._wrap?(ft(),Ut(Ee,W.endScope._wrap)):W.endScope&&W.endScope._multi?(ft(),al(W.endScope,ue)):We.skip?te+=Ee:(We.returnEnd||We.excludeEnd||(te+=Ee),ft(),We.excludeEnd&&(te=Ee));do W.scope&&j.closeNode(),!W.skip&&!W.subLanguage&&(Te+=W.relevance),W=W.parent;while(W!==Ve.parent);return Ve.starts&&li(Ve.starts,ue),We.returnEnd?0:Ee.length}function ri(){const ue=[];for(let Ee=W;Ee!==tn;Ee=Ee.parent)Ee.scope&&ue.unshift(Ee.scope);ue.forEach(Ee=>j.openNode(Ee))}let Ba={};function oi(ue,Ee){const De=Ee&&Ee[0];if(te+=ue,De==null)return ft(),0;if(Ba.type==="begin"&&Ee.type==="end"&&Ba.index===Ee.index&&De===""){if(te+=Re.slice(Ee.index,Ee.index+1),!Qe){const Ve=new Error(`0 width match regex (${oe})`);throw Ve.languageName=oe,Ve.badRule=Ba.rule,Ve}return 1}if(Ba=Ee,Ee.type==="begin")return il(Ee);if(Ee.type==="illegal"&&!Be){const Ve=new Error('Illegal lexeme "'+De+'" for mode "'+(W.scope||"<unnamed>")+'"');throw Ve.mode=W,Ve}else if(Ee.type==="end"){const Ve=On(Ee);if(Ve!==He)return Ve}if(Ee.type==="illegal"&&De==="")return Ee.index===Re.length||(te+=`
|
|
168
|
+
`),1;if(qe>1e5&&qe>Ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return te+=De,De.length}const tn=Jt(oe);if(!tn)throw lt(st.replace("{}",oe)),new Error('Unknown language: "'+oe+'"');const Ia=zn(tn);let Aa="",W=Je||Ia;const N={},j=new _e.__emitter(_e);ri();let te="",Te=0,Oe=0,qe=0,et=!1;try{if(tn.__emitTokens)tn.__emitTokens(Re,j);else{for(W.matcher.considerAll();;){qe++,et?et=!1:W.matcher.considerAll(),W.matcher.lastIndex=Oe;const ue=W.matcher.exec(Re);if(!ue)break;const Ee=Re.substring(Oe,ue.index),De=oi(Ee,ue);Oe=ue.index+De}oi(Re.substring(Oe))}return j.finalize(),Aa=j.toHTML(),{language:oe,value:Aa,relevance:Te,illegal:!1,_emitter:j,_top:W}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:oe,value:$n(Re),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:Oe,context:Re.slice(Oe-100,Oe+100),mode:ue.mode,resultSoFar:Aa},_emitter:j};if(Qe)return{language:oe,value:$n(Re),illegal:!1,relevance:0,errorRaised:ue,_emitter:j,_top:W};throw ue}}function Un(oe){const Re={value:$n(oe),illegal:!1,relevance:0,_top:Ae,_emitter:new _e.__emitter(_e)};return Re._emitter.addText(oe),Re}function ba(oe,Re){Re=Re||_e.languages||Object.keys(ne);const Be=Un(oe),Je=Re.filter(Jt).filter(G).map(ft=>jn(ft,oe,!1));Je.unshift(Be);const Mt=Je.sort((ft,Ut)=>{if(ft.relevance!==Ut.relevance)return Ut.relevance-ft.relevance;if(ft.language&&Ut.language){if(Jt(ft.language).supersetOf===Ut.language)return 1;if(Jt(Ut.language).supersetOf===ft.language)return-1}return 0}),[en,bn]=Mt,Zt=en;return Zt.secondBest=bn,Zt}function Pt(oe,Re,Be){const Je=Re&&be[Re]||Be;oe.classList.add("hljs"),oe.classList.add(`language-${Je}`)}function St(oe){let Re=null;const Be=Ct(oe);if(Ue(Be))return;if(Ye("before:highlightElement",{el:oe,language:Be}),oe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",oe);return}if(oe.children.length>0&&(_e.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(oe)),_e.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",oe.innerHTML);Re=oe;const Je=Re.textContent,Mt=Be?bt(Je,{language:Be,ignoreIllegals:!0}):ba(Je);oe.innerHTML=Mt.value,oe.dataset.highlighted="yes",Pt(oe,Be,Mt.language),oe.result={language:Mt.language,re:Mt.relevance,relevance:Mt.relevance},Mt.secondBest&&(oe.secondBest={language:Mt.secondBest.language,relevance:Mt.secondBest.relevance}),Ye("after:highlightElement",{el:oe,result:Mt,text:Je})}function Kt(oe){_e=mn(_e,oe)}const ut=()=>{ya(),At("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Yn(){ya(),At("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ii=!1;function ya(){function oe(){ya()}if(document.readyState==="loading"){ii||window.addEventListener("DOMContentLoaded",oe,!1),ii=!0;return}document.querySelectorAll(_e.cssSelector).forEach(St)}function va(oe,Re){let Be=null;try{Be=Re(O)}catch(Je){if(lt("Language definition for '{}' could not be registered.".replace("{}",oe)),Qe)lt(Je);else throw Je;Be=Ae}Be.name||(Be.name=oe),ne[oe]=Be,Be.rawDefinition=Re.bind(null,O),Be.aliases&&Fn(Be.aliases,{languageName:oe})}function Wn(oe){delete ne[oe];for(const Re of Object.keys(be))be[Re]===oe&&delete be[Re]}function Ea(){return Object.keys(ne)}function Jt(oe){return oe=(oe||"").toLowerCase(),ne[oe]||ne[be[oe]]}function Fn(oe,{languageName:Re}){typeof oe=="string"&&(oe=[oe]),oe.forEach(Be=>{be[Be.toLowerCase()]=Re})}function G(oe){const Re=Jt(oe);return Re&&!Re.disableAutodetect}function de(oe){oe["before:highlightBlock"]&&!oe["before:highlightElement"]&&(oe["before:highlightElement"]=Re=>{oe["before:highlightBlock"](Object.assign({block:Re.el},Re))}),oe["after:highlightBlock"]&&!oe["after:highlightElement"]&&(oe["after:highlightElement"]=Re=>{oe["after:highlightBlock"](Object.assign({block:Re.el},Re))})}function ge(oe){de(oe),je.push(oe)}function xe(oe){const Re=je.indexOf(oe);Re!==-1&&je.splice(Re,1)}function Ye(oe,Re){const Be=oe;je.forEach(function(Je){Je[Be]&&Je[Be](Re)})}function un(oe){return At("10.7.0","highlightBlock will be removed entirely in v12.0"),At("10.7.0","Please use highlightElement now."),St(oe)}Object.assign(O,{highlight:bt,highlightAuto:ba,highlightAll:ya,highlightElement:St,highlightBlock:un,configure:Kt,initHighlighting:ut,initHighlightingOnLoad:Yn,registerLanguage:va,unregisterLanguage:Wn,listLanguages:Ea,getLanguage:Jt,registerAliases:Fn,autoDetection:G,inherit:mn,addPlugin:ge,removePlugin:xe}),O.debugMode=function(){Qe=!1},O.safeMode=function(){Qe=!0},O.versionString=Rt,O.regex={concat:C,lookahead:_,either:M,optional:S,anyNumberOfTimes:x};for(const oe in Ge)typeof Ge[oe]=="object"&&l(Ge[oe]);return Object.assign(O,Ge),O},$t=qt({});return $t.newInstance=()=>qt({}),Bu=$t,$t.HighlightJS=$t,$t.default=$t,Bu}var Iu,mg;function M0(){if(mg)return Iu;mg=1;function l(a){const r=a.regex,s=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,f={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:[f]},{begin:/'/,end:/'/,contains:[f]},{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},f,{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(s,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Iu=l,Iu}var Hu,gg;function D0(){if(gg)return Hu;gg=1;function l(a){const r=a.regex,s={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const f={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,s,f]};f.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,s]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],S=a.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},T=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],M=["true","false"],I={match:/(\/[a-z._-]+)+/},A=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],V=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],Q=["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"],ie=["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:T,literal:M,built_in:[...A,...V,"set","shopt",...Q,...ie]},contains:[S,a.SHEBANG(),C,_,p,y,I,g,m,b,v,s]}}return Hu=l,Hu}var qu,bg;function L0(){if(bg)return qu;bg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(f)+"[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},x={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},S={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"}),s,a.C_BLOCK_COMMENT_MODE]},C=[x,S],T={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},M=r.optional(f)+a.IDENT_RE+"\\s*\\(",I=12,Q={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"},ie=[...C,m,s,a.C_BLOCK_COMMENT_MODE,_,v],H={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:Q,contains:ie.concat([{begin:/\(/,end:/\)/,keywords:Q,contains:ie.concat(["self"]),relevance:0}]),relevance:0},R={begin:"("+y+"[\\*&\\s]+){1,"+I+"}"+M,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:Q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:Q,relevance:0},{begin:M,returnBegin:!0,contains:[a.inherit(T,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...C]};return{name:"C",aliases:["h"],keywords:Q,disableAutodetect:!0,illegal:"</",contains:[].concat(H,R,ie,[...C,{begin:a.IDENT_RE+"::",keywords:Q},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:S,strings:v,keywords:Q}}}return qu=l,qu}var Gu,yg;function z0(){if(yg)return Gu;yg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(f)+"[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:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},x={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"}),s,a.C_BLOCK_COMMENT_MODE]},S=[_,x],C={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},T=r.optional(f)+a.IDENT_RE+"\\s*\\(",M=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"],A=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],V=["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"],Q=["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"],R={type:A,keyword:I,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:V},q={className:"function.dispatch",relevance:0,keywords:{_hint:Q},begin:r.concat(/\b/,`(?!${I.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},J=[q,...S,g,s,a.C_BLOCK_COMMENT_MODE,v,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:J.concat([{begin:/\(/,end:/\)/,keywords:R,contains:J.concat(["self"]),relevance:0}]),relevance:0},me={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+M+"}"+T,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:R,relevance:0},{begin:T,returnBegin:!0,contains:[C],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,...S]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,me,q,J,[...S,{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:R,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Gu=l,Gu}var $u,vg;function j0(){if(vg)return $u;vg=1;function l(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],f=["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:f.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},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},S={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},C=a.inherit(S,{illegal:/\n/}),T={className:"subst",begin:/\{/,end:/\}/,keywords:y},M=a.inherit(T,{illegal:/\n/}),I={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,M]},A={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},T]},V=a.inherit(A,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},M]});T.contains=[A,I,S,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.C_BLOCK_COMMENT_MODE],M.contains=[V,I,C,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const Q={variants:[x,A,I,S,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},ie={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},H=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",R={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"}},Q,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,ie,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,ie,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:"("+H+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,ie],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[Q,_,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},R]}}return $u=l,$u}var Yu,Eg;function U0(){if(Eg)return Yu;Eg=1;const l=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"],s=[...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(),f=["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=l(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",S=/@-?\w[\w]*(-\w+)*/,C="[a-zA-Z-][a-zA-Z0-9_-]*",T=[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:"\\."+C,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+f.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,...T,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...T,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:S},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...T,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return Yu=g,Yu}var Fu,_g;function B0(){if(_g)return Fu;_g=1;function l(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},f={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:[]}),x=a.inherit(v,{contains:[]});b.contains.push(x),v.contains.push(_);let S=[s,m];return[b,v,_,x].forEach(I=>{I.contains=I.contains.concat(S)}),S=S.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:S},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:S}]}]},s,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:S,end:"$"},f,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Fu=l,Fu}var Pu,Sg;function I0(){if(Sg)return Pu;Sg=1;function l(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 Pu=l,Pu}var Ku,wg;function H0(){if(wg)return Ku;wg=1;function l(a){const r=a.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),f=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]})]}]},x="[1-9](_?[0-9])*|0",S="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${S}))?([eE][+-]?(${S})|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"}]},T={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},H=[_,{variants:[{match:[/class\s+/,f,/\s+<\s+/,f]},{match:[/\b(class|module)\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,f],scope:{2:"title.class"},keywords:y},{relevance:0,match:[f,/\.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+/,s],scope:{1:"keyword",3:"title.function"},contains:[T]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:s}],relevance:0},C,{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=H,T.contains=H;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:H}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(H)}}return Ku=l,Ku}var Zu,Ng;function q0(){if(Ng)return Zu;Ng=1;function l(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 Zu=l,Zu}var Xu,xg;function G0(){if(xg)return Xu;xg=1;function l(a){const r=a.regex,s=/[_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(s,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Xu=l,Xu}var Vu,Tg;function $0(){if(Tg)return Vu;Tg=1;function l(a){const r=a.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const f={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,f,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),x=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:x,className:"attr",starts:{end:/$/,contains:[u,g,p,f,y,s]}}]}}return Vu=l,Vu}var Qu,Ag;function Y0(){if(Ag)return Qu;Ag=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[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 f(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+")",x=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"]},A={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},V={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(x,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[V,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(x,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:I,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[A,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,s,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},s,A]}}return Qu=f,Qu}var Wu,Rg;function F0(){if(Rg)return Wu;Rg=1;const l="[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"],s=["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"],f=["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(f,s,u);function g(m){const b=m.regex,v=(Z,{after:ye})=>{const Ne="</"+Z[0].slice(1);return Z.input.indexOf(Ne,ye)!==-1},_=l,x={begin:"<>",end:"</>"},S=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,ye)=>{const Ne=Z[0].length+Z.index,Ge=Z.input[Ne];if(Ge==="<"||Ge===","){ye.ignoreMatch();return}Ge===">"&&(v(Z,{after:Ne})||ye.ignoreMatch());let $e;const Me=Z.input.substring(Ne);if($e=Me.match(/^\s*=/)){ye.ignoreMatch();return}if(($e=Me.match(/^\s+extends\s+/))&&$e.index===0){ye.ignoreMatch();return}}},T={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},M="[0-9](_?[0-9])*",I=`\\.(${M})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",V={className:"number",variants:[{begin:`(\\b(${A})((${I})|\\.)?|(${I}))[eE][+-]?(${M})\\b`},{begin:`\\b(${A})\\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},Q={className:"subst",begin:"\\$\\{",end:"\\}",keywords:T,contains:[]},ie={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,Q],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,Q],subLanguage:"css"}},R={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,Q],subLanguage:"graphql"}},q={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,Q]},K={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]},me=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ie,H,R,q,{match:/\$\d+/},V];Q.contains=me.concat({begin:/\{/,end:/\}/,keywords:T,contains:["self"].concat(me)});const ce=[].concat(K,Q.contains),Se=ce.concat([{begin:/(\s*)\(/,end:/\)/,keywords:T,contains:["self"].concat(ce)}]),he={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:T,contains:Se},D={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"}}]},ee={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:{_:[...s,...u]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[he],illegal:/%/},Le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function w(Z){return b.concat("(?!",Z.join("|"),")")}const z={match:b.concat(/\b/,w([...f,"super","import","await"].map(Z=>`${Z}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},he]},pe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",ve={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(pe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[he]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:T,exports:{PARAMS_CONTAINS:Se,CLASS_REFERENCE:ee},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ie,H,R,q,K,{match:/\$\d+/},V,ee,{scope:"attr",match:_+b.lookahead(":"),relevance:0},ve,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,m.REGEXP_MODE,{className:"function",begin:pe,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:T,contains:Se}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:S},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[he,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[he]},z,Le,D,se,{match:/\$[(.]/}]}}return Wu=g,Wu}var Ju,kg;function P0(){if(kg)return Ju;kg=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(s){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},f={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,f,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,y,a,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Ju=r,Ju}var ed,Og;function K0(){if(Og)return ed;Og=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[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(f){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:f.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[f.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+f.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[f.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[f.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+f.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+f.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[f.inherit(v,{className:"string"}),"self"]}]},S=s,C=f.COMMENT("/\\*","\\*/",{contains:[f.C_BLOCK_COMMENT_MODE]}),T={variants:[{className:"type",begin:f.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},M=T;return M.variants[1].contains=[T],T.variants[1].contains=[M],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[f.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),f.C_LINE_COMMENT_MODE,C,y,g,_,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:f.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[f.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:[T,f.C_LINE_COMMENT_MODE,C],relevance:0},f.C_LINE_COMMENT_MODE,C,_,x,v,f.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,f.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},f.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,x]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
169
|
+
`},S]}}return ed=u,ed}var td,Cg;function Z0(){if(Cg)return td;Cg=1;const l=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"],s=[...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(),f=["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=f.concat(p).sort().reverse();function m(b){const v=l(b),_=g,x="and or not only",S="[\\w-]+",C="("+S+"|@\\{"+S+"\\})",T=[],M=[],I=function(ce){return{className:"string",begin:"~?"+ce+".*?"+ce}},A=function(ce,Se,he){return{className:ce,begin:Se,relevance:he}},V={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},Q={begin:"\\(",end:"\\)",contains:M,keywords:V,relevance:0};M.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,Q,A("variable","@@?"+S,10),A("variable","@\\{"+S+"\\}"),A("built_in","~?`[^`]*?`"),{className:"attribute",begin:S+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const ie=M.concat({begin:/\{/,end:/\}/,contains:T}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(M)},R={begin:C+"\\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:M}}]},q={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:V,returnEnd:!0,contains:M,relevance:0}},J={className:"variable",variants:[{begin:"@"+S+"\\s*:",relevance:15},{begin:"@"+S}],starts:{end:"[;}]",returnEnd:!0,contains:ie}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,H,A("keyword","all\\b"),A("variable","@\\{"+S+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,A("selector-tag",C,0),A("selector-id","#"+C),A("selector-class","\\."+C,0),A("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:ie},{begin:"!important"},v.FUNCTION_DISPATCH]},me={begin:S+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return T.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,q,J,me,R,K,H,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:T}}return td=m,td}var nd,Mg;function X0(){if(Mg)return nd;Mg=1;function l(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},f=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,s,{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:f.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:f}].concat(f)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return nd=l,nd}var ad,Dg;function V0(){if(Dg)return ad;Dg=1;function l(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},s={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,s]},f={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,s,u,f,p,y]}}return ad=l,ad}var id,Lg;function Q0(){if(Lg)return id;Lg=1;function l(a){const r=a.regex,s=["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}/,f={$pattern:/[\w.]+/,keyword:s.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:f},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],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(T,M,I="\\1")=>{const A=I==="\\1"?I:r.concat(I,M);return r.concat(r.concat("(?:",T,")"),M,/(?:\\.|[^\\\/])*?/,A,/(?:\\.|[^\\\/])*?/,I,u)},S=(T,M,I)=>r.concat(r.concat("(?:",T,")"),M,/(?:\\.|[^\\\/])*?/,I,u),C=[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:x("s|tr|y",r.either(..._,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:S("(?:m|qr)?",/\//,/\//)},{begin:S("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:S("m|qr",/\(/,/\)/)},{begin:S("m|qr",/\[/,/\]/)},{begin:S("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=C,y.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:f,contains:C}}return id=l,id}var ld,zg;function W0(){if(zg)return ld;zg=1;function l(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+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:s,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:s,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 ld=l,ld}var sd,jg;function J0(){if(jg)return sd;jg=1;function l(a){const r=a.regex,s=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),f=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),p=r.concat(/[A-Z]+/,s),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":(he,D)=>{D.data._beginMatch=he[1]||he[2]},"on:end":(he,D)=>{D.data._beginMatch!==he[1]&&D.ignoreMatch()}},x=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),S=`[
|
|
170
|
+
]`,C={scope:"string",variants:[v,b,_,x]},T={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},M=["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"],A=["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"],Q={keyword:I,literal:(he=>{const D=[];return he.forEach(ee=>{D.push(ee),ee.toLowerCase()===ee?D.push(ee.toUpperCase()):D.push(ee.toLowerCase())}),D})(M),built_in:A},ie=he=>he.map(D=>D.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,r.concat(S,"+"),r.concat("(?!",ie(A).join("\\b|"),"\\b)"),f],scope:{1:"keyword",4:"title.class"}}]},R=r.concat(u,"\\b(?!\\()"),q={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),R],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[f,r.concat(/::/,r.lookahead(/(?!class\b)/)),R],scope:{1:"title.class",3:"variable.constant"}},{match:[f,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[f,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},J={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:Q,contains:[J,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,T,H]},me={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",ie(I).join("\\b|"),"|",ie(A).join("\\b|"),"\\b)"),u,r.concat(S,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(me);const ce=[J,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,T,H],Se={begin:r.concat(/#\[\s*\\?/,r.either(f,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:M,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:M,keyword:["new","array"]},contains:["self",...ce]},...ce,{scope:"meta",variants:[{match:f},{match:p}]}]};return{case_insensitive:!1,keywords:Q,contains:[Se,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,me,q,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},H,{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:Q,contains:["self",Se,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,T]}]},{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]},C,T]}}return sd=l,sd}var rd,Ug;function eS(){if(Ug)return rd;Ug=1;function l(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 rd=l,rd}var od,Bg;function tS(){if(Bg)return od;Bg=1;function l(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return od=l,od}var cd,Ig;function nS(){if(Ig)return cd;Ig=1;function l(a){const r=a.regex,s=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]},x="[0-9](_?[0-9])*",S=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,C=`\\b|${u.join("|")}`,T={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${S}))[eE][+-]?(${x})[jJ]?(?=${C})`},{begin:`(${S})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${x})[jJ](?=${C})`}]},M={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,T,_,a.HASH_COMMENT_MODE]}]};return b.contains=[_,T,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,T,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,M,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[I]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[T,I,_]}]}}return cd=l,cd}var ud,Hg;function aS(){if(Hg)return ud;Hg=1;function l(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return ud=l,ud}var dd,qg;function iS(){if(qg)return dd;qg=1;function l(a){const r=a.regex,s=/(?:(?:[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]?/),f=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,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:s},{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:[f,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:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:f},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return dd=l,dd}var fd,Gg;function lS(){if(Gg)return fd;Gg=1;function l(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),f=r.concat(s,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,f,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 fd=l,fd}var hd,$g;function sS(){if($g)return hd;$g=1;const l=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"],s=[...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(),f=["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=l(m),v=p,_=f,x="@[a-z-]+",S="and or not only",T={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("+s.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},T,{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,T,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:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:S,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},T,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return hd=g,hd}var pd,Yg;function rS(){if(Yg)return pd;Yg=1;function l(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return pd=l,pd}var md,Fg;function oS(){if(Fg)return md;Fg=1;function l(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},f={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"],x=["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"],S=v,C=[...b,...m].filter(ie=>!v.includes(ie)),T={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},M={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},I={match:r.concat(/\b/,r.either(...S),/\s*\(/),relevance:0,keywords:{built_in:S}};function A(ie){return r.concat(/\b/,r.either(...ie.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const V={scope:"keyword",match:A(x),relevance:0};function Q(ie,{exceptions:H,when:R}={}){const q=R;return H=H||[],ie.map(J=>J.match(/\|\d+$/)||H.includes(J)?J:q(J)?`${J}|0`:J)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:Q(C,{when:ie=>ie.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:A(y)},V,I,T,u,f,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,M]}}return md=l,md}var gd,Pg;function cS(){if(Pg)return gd;Pg=1;function l(R){return R?typeof R=="string"?R:R.source:null}function a(R){return r("(?=",R,")")}function r(...R){return R.map(J=>l(J)).join("")}function s(R){const q=R[R.length-1];return typeof q=="object"&&q.constructor===Object?(R.splice(R.length-1,1),q):{}}function u(...R){return"("+(s(R).capture?"":"?:")+R.map(K=>l(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const f=R=>r(/\b/,R,/\w$/.test(R)?/\b/:/\B/),p=["Protocol","Type"].map(f),y=["init","self"].map(f),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"],x=["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"],S=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]/),C=u(S,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),T=r(S,C,"*"),M=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(M,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),A=r(M,I,"*"),V=r(/[A-Z]/,I,"*"),Q=["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\(/,A,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ie=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function H(R){const q={match:/\s+/,relevance:0},J=R.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[R.C_LINE_COMMENT_MODE,J],me={match:[/\./,u(...p,...y)],className:{2:"keyword"}},ce={match:r(/\./,u(...m)),relevance:0},Se=m.filter(He=>typeof He=="string").concat(["_|0"]),he=m.filter(He=>typeof He!="string").concat(g).map(f),D={variants:[{className:"keyword",match:u(...he,...y)}]},ee={$pattern:u(/\b\w+/,/#\w+/),keyword:Se.concat(_),literal:b},fe=[me,ce,D],we={match:r(/\./,u(...x)),relevance:0},Le={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},w=[we,Le],z={match:/->/,relevance:0},B={className:"operator",relevance:0,variants:[{match:T},{match:`\\.(\\.|${C})+`}]},se=[z,B],pe="([0-9]_*)+",ve="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${pe})(\\.(${pe}))?([eE][+-]?(${pe}))?\\b`},{match:`\\b0x(${ve})(\\.(${ve}))?([pP][+-]?(${pe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ye=(He="")=>({className:"subst",variants:[{match:r(/\\/,He,/[0\\tnr"']/)},{match:r(/\\/,He,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ne=(He="")=>({className:"subst",match:r(/\\/,He,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(He="")=>({className:"subst",label:"interpol",begin:r(/\\/,He,/\(/),end:/\)/}),$e=(He="")=>({begin:r(He,/"""/),end:r(/"""/,He),contains:[ye(He),Ne(He),Ge(He)]}),Me=(He="")=>({begin:r(He,/"/),end:r(/"/,He),contains:[ye(He),Ge(He)]}),Dt={className:"string",variants:[$e(),$e("#"),$e("##"),$e("###"),Me(),Me("#"),Me("##"),Me("###")]},Pe=[R.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[R.BACKSLASH_ESCAPE]}],Hn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Pe},it=He=>{const gn=r(He,/\//),qt=r(/\//,He);return{begin:gn,end:qt,contains:[...Pe,{scope:"comment",begin:`#(?!.*${qt})`,end:/$/}]}},fn={scope:"regexp",variants:[it("###"),it("##"),it("#"),Hn]},Ot={match:r(/`/,A,/`/)},Gt={className:"variable",match:/\$\d+/},Wt={className:"variable",match:`\\$${I}+`},Lt=[Ot,Gt,Wt],vt={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ie,contains:[...se,Z,Dt]}]}},Ln={scope:"keyword",match:r(/@/,u(...Q),a(u(/\(/,/\s+/)))},lt={scope:"meta",match:r(/@/,A)},mt=[vt,Ln,lt],At={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:V,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(V)),relevance:0}]},_n={begin:/</,end:/>/,keywords:ee,contains:[...K,...fe,...mt,z,At]};At.contains.push(_n);const hn={match:r(A,/\s*:/),keywords:"_|0",relevance:0},qn={begin:/\(/,end:/\)/,relevance:0,keywords:ee,contains:["self",hn,...K,fn,...fe,...w,...se,Z,Dt,...Lt,...mt,At]},Sn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,At]},wn={begin:u(a(r(A,/\s*:/)),a(r(A,/\s+/,A,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:A}]},ra={begin:/\(/,end:/\)/,keywords:ee,contains:[wn,...K,...fe,...se,Z,Dt,...mt,At,qn],endsParent:!0,illegal:/["']/},zn={match:[/(func|macro)/,/\s+/,u(Ot.match,A,T)],className:{1:"keyword",3:"title.function"},contains:[Sn,ra,q],illegal:[/\[/,/%/]},Ht={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Sn,ra,q],illegal:/\[|%/},pn={match:[/operator/,/\s+/,T],className:{1:"keyword",3:"title"}},Rt={begin:[/precedencegroup/,/\s+/,V],className:{1:"keyword",3:"title"},contains:[At],keywords:[...v,...b],end:/}/},Gn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},$n={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},mn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,A,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ee,contains:[Sn,...fe,{begin:/:/,end:/\{/,keywords:ee,contains:[{scope:"title.class.inherited",match:V},...fe],relevance:0}]};for(const He of Dt.variants){const gn=He.contains.find($t=>$t.label==="interpol");gn.keywords=ee;const qt=[...fe,...w,...se,Z,Dt,...Lt];gn.contains=[...qt,{begin:/\(/,end:/\)/,contains:["self",...qt]}]}return{name:"Swift",keywords:ee,contains:[...K,zn,Ht,Gn,$n,mn,pn,Rt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},fn,...fe,...w,...se,Z,Dt,...Lt,...mt,At,qn]}}return gd=H,gd}var bd,Kg;function uS(){if(Kg)return bd;Kg=1;function l(a){const r="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},f={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,f]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={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"},S={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},C={begin:/\{/,end:/\}/,contains:[S],illegal:"\\n",relevance:0},T={begin:"\\[",end:"\\]",contains:[S],illegal:"\\n",relevance:0},M=[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+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{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}},x,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},C,T,p,y],I=[...M];return I.pop(),I.push(g),S.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:M}}return bd=l,bd}var yd,Zg;function dS(){if(Zg)return yd;Zg=1;const l="[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"],s=["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"],f=["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(f,s,u);function g(b){const v=b.regex,_=(ye,{after:Ne})=>{const Ge="</"+ye[0].slice(1);return ye.input.indexOf(Ge,Ne)!==-1},x=l,S={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,T={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ye,Ne)=>{const Ge=ye[0].length+ye.index,$e=ye.input[Ge];if($e==="<"||$e===","){Ne.ignoreMatch();return}$e===">"&&(_(ye,{after:Ge})||Ne.ignoreMatch());let Me;const Dt=ye.input.substring(Ge);if(Me=Dt.match(/^\s*=/)){Ne.ignoreMatch();return}if((Me=Dt.match(/^\s+extends\s+/))&&Me.index===0){Ne.ignoreMatch();return}}},M={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},I="[0-9](_?[0-9])*",A=`\\.(${I})`,V="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",Q={className:"number",variants:[{begin:`(\\b(${V})((${A})|\\.)?|(${A}))[eE][+-]?(${I})\\b`},{begin:`\\b(${V})\\b((${A})\\b|\\.)?|(${A})\\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},ie={className:"subst",begin:"\\$\\{",end:"\\}",keywords:M,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"xml"}},R={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"css"}},q={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"graphql"}},J={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,ie]},me={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:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},ce=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,H,R,q,J,{match:/\$\d+/},Q];ie.contains=ce.concat({begin:/\{/,end:/\}/,keywords:M,contains:["self"].concat(ce)});const Se=[].concat(me,ie.contains),he=Se.concat([{begin:/(\s*)\(/,end:/\)/,keywords:M,contains:["self"].concat(Se)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:M,contains:he},ee={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,v.concat(x,"(",v.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},fe={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:{_:[...s,...u]}},we={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Le={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},w={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(ye){return v.concat("(?!",ye.join("|"),")")}const B={match:v.concat(/\b/,z([...f,"super","import","await"].map(ye=>`${ye}\\s*\\(`)),x,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},se={begin:v.concat(/\./,v.lookahead(v.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:M,exports:{PARAMS_CONTAINS:he,CLASS_REFERENCE:fe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),we,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,H,R,q,J,me,{match:/\$\d+/},Q,fe,{scope:"attr",match:x+v.lookahead(":"),relevance:0},Z,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[me,b.REGEXP_MODE,{className:"function",begin:ve,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:M,contains:he}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:S.begin,end:S.end},{match:C},{begin:T.begin,"on:begin":T.isTrulyOpeningTag,end:T.end}],subLanguage:"xml",contains:[{begin:T.begin,end:T.end,skip:!0,contains:["self"]}]}]},Le,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},se,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},B,w,ee,pe,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),x=l,S=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],C={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},T={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:S},contains:[_.exports.CLASS_REFERENCE]},M={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],A={$pattern:l,keyword:a.concat(I),literal:r,built_in:y.concat(S),"variable.language":p},V={className:"meta",begin:"@"+x},Q=(q,J,K)=>{const me=q.contains.findIndex(ce=>ce.label===J);if(me===-1)throw new Error("can not find mode to replace");q.contains.splice(me,1,K)};Object.assign(_.keywords,A),_.exports.PARAMS_CONTAINS.push(V);const ie=_.contains.find(q=>q.scope==="attr"),H=Object.assign({},ie,{match:v.concat(x,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,ie,H]),_.contains=_.contains.concat([V,C,T,H]),Q(_,"shebang",b.SHEBANG()),Q(_,"use_strict",M);const R=_.contains.find(q=>q.label==="func.def");return R.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return yd=m,yd}var vd,Xg;function fS(){if(Xg)return vd;Xg=1;function l(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},f=/\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,f),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,f),/ +/,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:/>/}]}),x=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:[s,u,m,b,v,_,x,{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:[x]}]}}return vd=l,vd}var Ed,Vg;function hS(){if(Vg)return Ed;Vg=1;function l(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const s=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"],f={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:[s,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,f,a.QUOTE_STRING_MODE,m,b,g]}}return Ed=l,Ed}var _d,Qg;function pS(){if(Qg)return _d;Qg=1;var l=C0();return l.registerLanguage("xml",M0()),l.registerLanguage("bash",D0()),l.registerLanguage("c",L0()),l.registerLanguage("cpp",z0()),l.registerLanguage("csharp",j0()),l.registerLanguage("css",U0()),l.registerLanguage("markdown",B0()),l.registerLanguage("diff",I0()),l.registerLanguage("ruby",H0()),l.registerLanguage("go",q0()),l.registerLanguage("graphql",G0()),l.registerLanguage("ini",$0()),l.registerLanguage("java",Y0()),l.registerLanguage("javascript",F0()),l.registerLanguage("json",P0()),l.registerLanguage("kotlin",K0()),l.registerLanguage("less",Z0()),l.registerLanguage("lua",X0()),l.registerLanguage("makefile",V0()),l.registerLanguage("perl",Q0()),l.registerLanguage("objectivec",W0()),l.registerLanguage("php",J0()),l.registerLanguage("php-template",eS()),l.registerLanguage("plaintext",tS()),l.registerLanguage("python",nS()),l.registerLanguage("python-repl",aS()),l.registerLanguage("r",iS()),l.registerLanguage("rust",lS()),l.registerLanguage("scss",sS()),l.registerLanguage("shell",rS()),l.registerLanguage("sql",oS()),l.registerLanguage("swift",cS()),l.registerLanguage("yaml",uS()),l.registerLanguage("typescript",dS()),l.registerLanguage("vbnet",fS()),l.registerLanguage("wasm",hS()),l.HighlightJS=l,l.default=l,_d=l,_d}var mS=pS();const ef=zb(mS),gS={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},bS=2e5,ty="http://www.w3.org/1999/xhtml";function yS(l){for(const a of l.querySelectorAll(".d2h-file-wrapper")){const r=vS(a.dataset.lang??"");if(r)for(const s of ES(a))Wg(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Wg(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function vS(l){const a=gS[l]??O0(l);return a==="plaintext"||!ef.getLanguage(a)?null:a}function ES(l){const a=[];let r=[];for(const s of l.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),f=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!f){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:f})}return r.length&&a.push(r),a}function Wg(l,a,r){if(l.filter(a).length===0)return;const u=l.map(y=>y.ctn.textContent??"").join(`
|
|
171
|
+
`);if(!u.trim()||u.length>bS)return;const f=SS(u)&&wS(r)?`/**
|
|
172
|
+
`:"",p=xS(ef.highlight(f+u,{language:r,ignoreIllegals:!0}).value).slice(f?1:0);l.forEach((y,g)=>{const m=p[g];m===void 0||!a(y)||NS(y.ctn,m)})}const _S=/(^|\s)\*\//m,Jg=/^\s*\*(\s|$)/;function SS(l){const a=l.search(_S);if(a===-1){const s=l.split(`
|
|
173
|
+
`).filter(u=>u.trim());return s.length>0&&s.every(u=>Jg.test(u))}return l.slice(0,a).split(`
|
|
174
|
+
`).every(s=>Jg.test(s)||!s.includes("/*"))}function wS(l){return ef.highlight("/* */",{language:l,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function NS(l,a){const r=hg(l);let s=a;if(r.length){const u=document.createElementNS(ty,"div");u.innerHTML=a,s=R0(r,hg(u),l.textContent??"")}l.classList.add("hljs"),l.innerHTML=s}function xS(l){const a=document.createElementNS(ty,"div");a.innerHTML=l;const r=[],s=[];let u="";const f=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
|
|
175
|
+
`).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=TS(m)});return}const y=`<span class="${p.className}">`;u+=y,s.push(y),p.childNodes.forEach(f),s.pop(),u+="</span>"};return a.childNodes.forEach(f),r.push(u),r}function TS(l){return l.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const AS={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}]},kS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ze({name:l,size:a=13}){const r=[...AS[l]??[],...kS[l]??[]];return d.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[l]??[]).map((s,u)=>d.jsx("circle",{cx:s.cx,cy:s.cy,r:s.r},u)),r.map((s,u)=>d.jsx("path",{d:s},u))]})}function OS({size:l=17}){return d.jsxs("svg",{className:"logo",width:l,height:l,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),d.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),d.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:l}){return d.jsx("span",{className:"key",children:l})}/*! @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 eb(l,a){(a==null||a>l.length)&&(a=l.length);for(var r=0,s=Array(a);r<a;r++)s[r]=l[r];return s}function CS(l){if(Array.isArray(l))return l}function MS(l,a){var r=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(r!=null){var s,u,f,p,y=[],g=!0,m=!1;try{if(f=(r=r.call(l)).next,a!==0)for(;!(g=(s=f.call(r)).done)&&(y.push(s.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.
|
|
176
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LS(l,a){return CS(l)||MS(l,a)||zS(l,a)||DS()}function zS(l,a){if(l){if(typeof l=="string")return eb(l,a);var r={}.toString.call(l).slice(8,-1);return r==="Object"&&l.constructor&&(r=l.constructor.name),r==="Map"||r==="Set"?Array.from(l):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eb(l,a):void 0}}const ny=Object.entries,tb=Object.setPrototypeOf,jS=Object.isFrozen,US=Object.getPrototypeOf,BS=Object.getOwnPropertyDescriptor;let Rn=Object.freeze,kn=Object.seal,Ul=Object.create,ay=typeof Reflect<"u"&&Reflect,Ld=ay.apply,zd=ay.construct;Rn||(Rn=function(a){return a});kn||(kn=function(a){return a});Ld||(Ld=function(a,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(r,u)});zd||(zd=function(a){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new a(...s)});const Ll=on(Array.prototype.forEach),IS=on(Array.prototype.lastIndexOf),nb=on(Array.prototype.pop),zl=on(Array.prototype.push),HS=on(Array.prototype.splice),zi=Array.isArray,Bs=on(String.prototype.toLowerCase),Sd=on(String.prototype.toString),ab=on(String.prototype.match),zs=on(String.prototype.replace),ib=on(String.prototype.indexOf),qS=on(String.prototype.trim),GS=on(Number.prototype.toString),$S=on(Boolean.prototype.toString),lb=typeof BigInt>"u"?null:on(BigInt.prototype.toString),sb=typeof Symbol>"u"?null:on(Symbol.prototype.toString),En=on(Object.prototype.hasOwnProperty),js=on(Object.prototype.toString),vn=on(RegExp.prototype.test),Wi=YS(TypeError);function on(l){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return Ld(l,a,s)}}function YS(l){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return zd(l,r)}}function dt(l,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bs;if(tb&&tb(l,null),!zi(a))return l;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=r(u);f!==u&&(jS(a)||(a[s]=f),u=f)}l[u]=!0}return l}function FS(l){for(let a=0;a<l.length;a++)En(l,a)||(l[a]=null);return l}function Mn(l){const a=Ul(null);for(const s of ny(l)){var r=LS(s,2);const u=r[0],f=r[1];En(l,u)&&(zi(f)?a[u]=FS(f):f&&typeof f=="object"&&f.constructor===Object?a[u]=Mn(f):a[u]=f)}return a}function PS(l){switch(typeof l){case"string":return l;case"number":return GS(l);case"boolean":return $S(l);case"bigint":return lb?lb(l):"0";case"symbol":return sb?sb(l):"Symbol()";case"undefined":return js(l);case"function":case"object":{if(l===null)return js(l);const a=l,r=Na(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:js(s)}return js(l)}default:return js(l)}}function Na(l,a){for(;l!==null;){const s=BS(l,a);if(s){if(s.get)return on(s.get);if(typeof s.value=="function")return on(s.value)}l=US(l)}function r(){return null}return r}function KS(l){try{return vn(l,""),!0}catch{return!1}}const rb=Rn(["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"]),wd=Rn(["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"]),Nd=Rn(["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"]),ZS=Rn(["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"]),xd=Rn(["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"]),XS=Rn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ob=Rn(["#text"]),cb=Rn(["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"]),Td=Rn(["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"]),ub=Rn(["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"]),to=Rn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),VS=kn(/{{[\w\W]*|^[\w\W]*}}/g),QS=kn(/<%[\w\W]*|^[\w\W]*%>/g),WS=kn(/\${[\w\W]*/g),JS=kn(/^data-[\-\w.\u00B7-\uFFFF]+$/),ew=kn(/^aria-[\-\w]+$/),db=kn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tw=kn(/^(?:\w+script|data):/i),nw=kn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),aw=kn(/^html$/i),iw=kn(/^[a-z][.\w]*(-[.\w]+)+$/i),fb=kn(/<[/\w!]/g),hb=kn(/<[/\w]/g),lw=kn(/<\/no(script|embed|frames)/i),sw=kn(/\/>/i),sa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},rw=function(){return typeof window>"u"?null:window},ow=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},pb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mi=function(a,r,s,u){return En(a,r)&&zi(a[r])?dt(u.base?Mn(u.base):{},a[r],u.transform):s};function iy(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rw();const a=W=>iy(W);if(a.version="3.4.13",a.removed=[],!l||!l.document||l.document.nodeType!==sa.document||!l.Element)return a.isSupported=!1,a;let r=l.document;const s=r,u=s.currentScript;l.DocumentFragment;const f=l.HTMLTemplateElement,p=l.Node,y=l.Element,g=l.NodeFilter,m=l.NamedNodeMap;m===void 0&&(l.NamedNodeMap||l.MozNamedAttrMap),l.HTMLFormElement;const b=l.DOMParser,v=l.trustedTypes,_=y.prototype,x=Na(_,"cloneNode"),S=Na(_,"remove"),C=Na(_,"nextSibling"),T=Na(_,"childNodes"),M=Na(_,"parentNode"),I=Na(_,"shadowRoot"),A=Na(_,"attributes"),V=p&&p.prototype?Na(p.prototype,"nodeType"):null,Q=p&&p.prototype?Na(p.prototype,"nodeName"):null,ie=p&&p.prototype?Na(p.prototype,"ownerDocument"):null;if(typeof f=="function"){const W=r.createElement("template");W.content&&W.content.ownerDocument&&(r=W.content.ownerDocument)}let H,R="",q,J=!1,K=0;const me=function(){if(K>0)throw Wi('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.')},ce=function(N){me(),K++;try{return H.createHTML(N)}finally{K--}},Se=function(N){me(),K++;try{return H.createScriptURL(N)}finally{K--}},he=function(){return J||(q=ow(v,u),J=!0),q},D=r,ee=D.implementation,fe=D.createNodeIterator,we=D.createDocumentFragment,Le=D.getElementsByTagName,w=s.importNode;let z=pb();a.isSupported=typeof ny=="function"&&typeof M=="function"&&ee&&ee.createHTMLDocument!==void 0;const B=VS,se=QS,pe=WS,ve=JS,Z=ew,ye=tw,Ne=nw,Ge=iw;let $e=db,Me=null;const Dt=dt({},[...rb,...wd,...Nd,...xd,...ob]);let Pe=null;const Hn=dt({},[...cb,...Td,...ub,...to]);let it=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}})),fn=null,Ot=null;const Gt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Wt=!0,Lt=!0,vt=!1,Ln=!0,lt=!1,mt=!0,At=!1,_n=!1,hn=null,qn=null,Sn=!1,wn=!1,ra=!1,zn=!1,Ht=!0,pn=!1;const Rt="user-content-";let Gn=!0,$n=!1,mn={},He=null;const gn=dt({},["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 qt=null;const $t=dt({},["audio","video","img","source","image","track"]);let O=null;const ne=dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let st=Qe,Ae=!1,_e=null;const Ue=dt({},[be,je,Qe],Sd),Ct=Rn(["mi","mo","mn","ms","mtext"]);let bt=dt({},Ct);const jn=Rn(["annotation-xml"]);let Un=dt({},jn);const ba=dt({},["title","style","font","a","script"]);let Pt=null;const St=["application/xhtml+xml","text/html"],Kt="text/html";let ut=null,Yn=null;const ii=r.createElement("form"),ya=function(N){return N instanceof RegExp||N instanceof Function},va=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Yn&&Yn===N)return;(!N||typeof N!="object")&&(N={}),N=Mn(N),Pt=St.indexOf(N.PARSER_MEDIA_TYPE)===-1?Kt:N.PARSER_MEDIA_TYPE,ut=Pt==="application/xhtml+xml"?Sd:Bs,Me=Mi(N,"ALLOWED_TAGS",Dt,{transform:ut}),Pe=Mi(N,"ALLOWED_ATTR",Hn,{transform:ut}),_e=Mi(N,"ALLOWED_NAMESPACES",Ue,{transform:Sd}),O=Mi(N,"ADD_URI_SAFE_ATTR",ne,{transform:ut,base:ne}),qt=Mi(N,"ADD_DATA_URI_TAGS",$t,{transform:ut,base:$t}),He=Mi(N,"FORBID_CONTENTS",gn,{transform:ut}),fn=Mi(N,"FORBID_TAGS",Mn({}),{transform:ut}),Ot=Mi(N,"FORBID_ATTR",Mn({}),{transform:ut}),mn=En(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Mn(N.USE_PROFILES):N.USE_PROFILES:!1,Wt=N.ALLOW_ARIA_ATTR!==!1,Lt=N.ALLOW_DATA_ATTR!==!1,vt=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=N.SAFE_FOR_TEMPLATES||!1,mt=N.SAFE_FOR_XML!==!1,At=N.WHOLE_DOCUMENT||!1,wn=N.RETURN_DOM||!1,ra=N.RETURN_DOM_FRAGMENT||!1,zn=N.RETURN_TRUSTED_TYPE||!1,Sn=N.FORCE_BODY||!1,Ht=N.SANITIZE_DOM!==!1,pn=N.SANITIZE_NAMED_PROPS||!1,Gn=N.KEEP_CONTENT!==!1,$n=N.IN_PLACE||!1,$e=KS(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:db,st=typeof N.NAMESPACE=="string"?N.NAMESPACE:Qe,bt=En(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(N.MATHML_TEXT_INTEGRATION_POINTS):dt({},Ct),Un=En(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?Mn(N.HTML_INTEGRATION_POINTS):dt({},jn);const j=En(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?Mn(N.CUSTOM_ELEMENT_HANDLING):Ul(null);if(it=Ul(null),En(j,"tagNameCheck")&&ya(j.tagNameCheck)&&(it.tagNameCheck=j.tagNameCheck),En(j,"attributeNameCheck")&&ya(j.attributeNameCheck)&&(it.attributeNameCheck=j.attributeNameCheck),En(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(it.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),kn(it),lt&&(Lt=!1),ra&&(wn=!0),mn&&(Me=dt({},ob),Pe=Ul(null),mn.html===!0&&(dt(Me,rb),dt(Pe,cb)),mn.svg===!0&&(dt(Me,wd),dt(Pe,Td),dt(Pe,to)),mn.svgFilters===!0&&(dt(Me,Nd),dt(Pe,Td),dt(Pe,to)),mn.mathMl===!0&&(dt(Me,xd),dt(Pe,ub),dt(Pe,to))),Gt.tagCheck=null,Gt.attributeCheck=null,En(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?Gt.tagCheck=N.ADD_TAGS:zi(N.ADD_TAGS)&&(Me===Dt&&(Me=Mn(Me)),dt(Me,N.ADD_TAGS,ut))),En(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?Gt.attributeCheck=N.ADD_ATTR:zi(N.ADD_ATTR)&&(Pe===Hn&&(Pe=Mn(Pe)),dt(Pe,N.ADD_ATTR,ut))),En(N,"ADD_URI_SAFE_ATTR")&&zi(N.ADD_URI_SAFE_ATTR)&&dt(O,N.ADD_URI_SAFE_ATTR,ut),En(N,"FORBID_CONTENTS")&&zi(N.FORBID_CONTENTS)&&(He===gn&&(He=Mn(He)),dt(He,N.FORBID_CONTENTS,ut)),En(N,"ADD_FORBID_CONTENTS")&&zi(N.ADD_FORBID_CONTENTS)&&(He===gn&&(He=Mn(He)),dt(He,N.ADD_FORBID_CONTENTS,ut)),Gn&&(Me["#text"]=!0),At&&dt(Me,["html","head","body"]),Me.table&&(dt(Me,["tbody"]),delete fn.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const te=H;H=N.TRUSTED_TYPES_POLICY;try{R=ce("")}catch(Te){throw H=te,Te}}else N.TRUSTED_TYPES_POLICY===null?(H=void 0,R=""):(H===void 0&&(H=he()),H&&typeof R=="string"&&(R=ce("")));Rn&&Rn(N),Yn=N},Wn=dt({},[...wd,...Nd,...ZS]),Ea=dt({},[...xd,...XS]),Jt=function(N,j,te){return j.namespaceURI===Qe?N==="svg":j.namespaceURI===be?N==="svg"&&(te==="annotation-xml"||bt[te]):!!Wn[N]},Fn=function(N,j,te){return j.namespaceURI===Qe?N==="math":j.namespaceURI===je?N==="math"&&Un[te]:!!Ea[N]},G=function(N,j,te){return j.namespaceURI===je&&!Un[te]||j.namespaceURI===be&&!bt[te]?!1:!Ea[N]&&(ba[N]||!Wn[N])},de=function(N){let j=M(N);(!j||!j.tagName)&&(j={namespaceURI:st,tagName:"template"});const te=Bs(N.tagName),Te=Bs(j.tagName);return _e[N.namespaceURI]?N.namespaceURI===je?Jt(te,j,Te):N.namespaceURI===be?Fn(te,j,Te):N.namespaceURI===Qe?G(te,j,Te):!!(Pt==="application/xhtml+xml"&&_e[N.namespaceURI]):!1},ge=function(N){zl(a.removed,{element:N});try{M(N).removeChild(N)}catch{if(S(N),!M(N))throw Wi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},xe=function(N){oe(N);const j=T(N);if(j){const Te=[];Ll(j,Oe=>{zl(Te,Oe)}),Ll(Te,Oe=>{try{S(Oe)}catch{}})}const te=A(N);if(te)for(let Te=te.length-1;Te>=0;--Te){const Oe=te[Te],qe=Oe&&Oe.name;if(typeof qe=="string")try{N.removeAttribute(qe)}catch{}}},Ye=function(N,j){try{zl(a.removed,{attribute:j.getAttributeNode(N),from:j})}catch{zl(a.removed,{attribute:null,from:j})}if(j.removeAttribute(N),N==="is")if(wn||ra)try{ge(j)}catch{}else try{j.setAttribute(N,"")}catch{}},un=function(N){const j=A(N);if(j)for(let te=j.length-1;te>=0;--te){const Te=j[te],Oe=Te&&Te.name;if(!(typeof Oe!="string"||Pe[ut(Oe)]))try{N.removeAttribute(Oe)}catch{}}},oe=function(N){const j=[N];for(;j.length>0;){const te=j.pop();(V?V(te):te.nodeType)===sa.element&&un(te);const Oe=T(te);if(Oe)for(let qe=Oe.length-1;qe>=0;--qe)j.push(Oe[qe])}},Re=function(N){if(!mt)return;const j=[N];for(;j.length>0;){const te=j.pop(),Te=V?V(te):te.nodeType;if(Te===sa.processingInstruction||Te===sa.comment&&vn(hb,te.data)){try{S(te)}catch{}continue}if(Te===sa.element){const qe=te,et=ut(Q?Q(te):te.nodeName);try{qe.hasAttribute&&qe.hasAttribute("patchsrc")&&qe.removeAttribute("patchsrc"),qe.hasAttribute&&qe.hasAttribute("for")&&et!=="label"&&et!=="output"&&qe.removeAttribute("for")}catch{}}const Oe=T(te);if(Oe)for(let qe=Oe.length-1;qe>=0;--qe)j.push(Oe[qe])}},Be=function(N){let j=null,te=null;if(Sn)N="<remove></remove>"+N;else{const qe=ab(N,/^[\r\n\t ]+/);te=qe&&qe[0]}Pt==="application/xhtml+xml"&&st===Qe&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Te=H?ce(N):N;if(st===Qe)try{j=new b().parseFromString(Te,Pt)}catch{}if(!j||!j.documentElement){j=ee.createDocument(st,"template",null);try{j.documentElement.innerHTML=Ae?R:Te}catch{}}const Oe=j.body||j.documentElement;return N&&te&&Oe.insertBefore(r.createTextNode(te),Oe.childNodes[0]||null),st===Qe?Le.call(j,At?"html":"body")[0]:At?j.documentElement:Oe},Je=function(N){const j=ie?ie(N):N.ownerDocument;return fe.call(j||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Mt=function(N){return N=zs(N,B," "),N=zs(N,se," "),N=zs(N,pe," "),N},en=function(N){var j;N.normalize();const te=ie?ie(N):N.ownerDocument,Te=fe.call(te||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Oe=Te.nextNode();for(;Oe;)Oe.data=Mt(Oe.data),Oe=Te.nextNode();const qe=(j=N.querySelectorAll)===null||j===void 0?void 0:j.call(N,"template");qe&&Ll(qe,et=>{Zt(et.content)&&en(et.content)})},bn=function(N){const j=Q?Q(N):null;return typeof j!="string"||ut(j)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==A(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==V(N)||N.childNodes!==T(N)},Zt=function(N){if(!V||typeof N!="object"||N===null)return!1;try{return V(N)===sa.documentFragment}catch{return!1}},ft=function(N){if(!V||typeof N!="object"||N===null)return!1;try{return typeof V(N)=="number"}catch{return!1}};function Ut(W,N,j){W.length!==0&&Ll(W,te=>{te.call(a,N,j,Yn)})}const al=function(N,j){return!!(mt&&N.hasChildNodes()&&!ft(N.firstElementChild)&&vn(fb,N.textContent)&&vn(fb,N.innerHTML)||mt&&N.namespaceURI===Qe&&j==="style"&&ft(N.firstElementChild)||N.nodeType===sa.processingInstruction||mt&&N.nodeType===sa.comment&&vn(hb,N.data))},li=function(N,j,te){if(!fn[j]&&ri(j)&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,j)||it.tagNameCheck instanceof Function&&it.tagNameCheck(j)))return!1;if(Gn&&!He[j]){const Te=M(N),Oe=T(N);if(Oe&&Te){const qe=Oe.length;for(let et=qe-1;et>=0;--et){const ue=N===te?x(Oe[et],!0):Oe[et];Te.insertBefore(ue,C(N))}}}return ge(N),!0},si=function(N,j,te,Te){return N.length===0?j:j===te||j===Te?Mn(j):j},Ua=function(N,j){if(Ut(z.beforeSanitizeElements,N,null),N!==j&&M(N)===null)return $n&&oe(N),!0;if(bn(N))return ge(N),!0;const te=ut(Q?Q(N):N.nodeName);if(Me=si(z.uponSanitizeElement,Me,Dt,hn),Ut(z.uponSanitizeElement,N,{tagName:te,allowedTags:Me}),N!==j&&M(N)===null)return $n&&oe(N),!0;if(al(N,te))return ge(N),!0;if(fn[te]||!(Gt.tagCheck instanceof Function&&Gt.tagCheck(te))&&!Me[te]){const Oe=li(N,te,j);return Oe===!1&&Ut(z.afterSanitizeElements,N,null),Oe}if((V?V(N):N.nodeType)===sa.element&&!de(N)||(te==="noscript"||te==="noembed"||te==="noframes")&&vn(lw,N.innerHTML))return ge(N),!0;if(lt&&N.nodeType===sa.text){const Oe=Mt(N.textContent);N.textContent!==Oe&&(zl(a.removed,{element:N.cloneNode()}),N.textContent=Oe)}return Ut(z.afterSanitizeElements,N,null),!1},il=function(N,j,te){if(Ot[j]||mt&&j==="patchsrc"||mt&&j==="for"&&N!=="label"&&N!=="output"||Ht&&(j==="id"||j==="name")&&(te in r||te in ii))return!1;const Te=Pe[j]||Gt.attributeCheck instanceof Function&&Gt.attributeCheck(j,N);if(!(Lt&&vn(ve,j))){if(!(Wt&&vn(Z,j))){if(Te){if(!O[j]){if(!vn($e,zs(te,Ne,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&N!=="script"&&ib(te,"data:")===0&&qt[N])){if(!(vt&&!vn(ye,zs(te,Ne,"")))){if(te)return!1}}}}}else if(!(ri(N)&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,N)||it.tagNameCheck instanceof Function&&it.tagNameCheck(N))&&(it.attributeNameCheck instanceof RegExp&&vn(it.attributeNameCheck,j)||it.attributeNameCheck instanceof Function&&it.attributeNameCheck(j,N))||j==="is"&&it.allowCustomizedBuiltInElements&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,te)||it.tagNameCheck instanceof Function&&it.tagNameCheck(te))))return!1}}return!0},On=dt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ri=function(N){return!On[Bs(N)]&&vn(Ge,N)},Ba=function(N,j,te,Te){if(H&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!te)switch(v.getAttributeType(N,j)){case"TrustedHTML":return ce(Te);case"TrustedScriptURL":return Se(Te)}return Te},oi=function(N,j,te,Te){try{te?N.setAttributeNS(te,j,Te):N.setAttribute(j,Te),bn(N)?ge(N):nb(a.removed)}catch{Ye(j,N)}},tn=function(N){Ut(z.beforeSanitizeAttributes,N,null);const j=N.attributes;if(!j||bn(N))return;Pe=si(z.uponSanitizeAttribute,Pe,Hn,qn);const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0};let Te=j.length;const Oe=ut(N.nodeName);for(;Te--;){const qe=j[Te],et=qe.name,ue=qe.namespaceURI,Ee=qe.value,De=ut(et),Ve=Ee;let We=et==="value"?Ve:qS(Ve);if(te.attrName=De,te.attrValue=We,te.keepAttr=!0,te.forceKeepAttr=void 0,Ut(z.uponSanitizeAttribute,N,te),We=te.attrValue,pn&&(De==="id"||De==="name")&&ib(We,Rt)!==0&&(Ye(et,N),We=Rt+We),mt&&vn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){Ye(et,N);continue}if(De==="attributename"&&ab(We,"href")){Ye(et,N);continue}if(!te.forceKeepAttr){if(!te.keepAttr){Ye(et,N);continue}if(!Ln&&vn(sw,We)){Ye(et,N);continue}if(lt&&(We=Mt(We)),!il(Oe,De,We)){Ye(et,N);continue}We=Ba(Oe,De,ue,We),We!==Ve&&oi(N,et,ue,We)}}Ut(z.afterSanitizeAttributes,N,null)},Ia=function(N){let j=null;const te=Je(N);for(Ut(z.beforeSanitizeShadowDOM,N,null);j=te.nextNode();)if(Ut(z.uponSanitizeShadowNode,j,null),Ua(j,N),tn(j),Zt(j.content)&&Ia(j.content),(V?V(j):j.nodeType)===sa.element){const Oe=I(j);Zt(Oe)&&(Aa(Oe),Ia(Oe))}Ut(z.afterSanitizeShadowDOM,N,null)},Aa=function(N){const j=[{node:N,shadow:null}];for(;j.length>0;){const te=j.pop();if(te.shadow){Ia(te.shadow);continue}const Te=te.node,qe=(V?V(Te):Te.nodeType)===sa.element,et=T(Te);if(et)for(let ue=et.length-1;ue>=0;--ue)j.push({node:et[ue],shadow:null});if(qe){const ue=Q?Q(Te):null;if(typeof ue=="string"&&ut(ue)==="template"){const Ee=Te.content;Zt(Ee)&&j.push({node:Ee,shadow:null})}}if(qe){const ue=I(Te);Zt(ue)&&j.push({node:null,shadow:ue},{node:ue,shadow:null})}}};return a.sanitize=function(W){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,te=null,Te=null,Oe=null;if(Ae=!W,Ae&&(W="<!-->"),typeof W!="string"&&!ft(W)&&(W=PS(W),typeof W!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return W;_n?(Me=hn,Pe=qn):va(N),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(Me=Mn(Me)),z.uponSanitizeAttribute.length>0&&(Pe=Mn(Pe)),a.removed=[];const qe=$n&&typeof W!="string"&&ft(W);if(qe){Re(W);const Ee=Q?Q(W):W.nodeName;if(typeof Ee=="string"){const De=ut(Ee);if(!Me[De]||fn[De])throw xe(W),Wi("root node is forbidden and cannot be sanitized in-place")}if(bn(W))throw xe(W),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(W)}catch(De){throw xe(W),De}}else if(ft(W))j=Be("<!---->"),te=j.ownerDocument.importNode(W,!0),te.nodeType===sa.element&&te.nodeName==="BODY"||te.nodeName==="HTML"?j=te:j.appendChild(te),Aa(te);else{if(!wn&&!lt&&!At&&W.indexOf("<")===-1)return H&&zn?ce(W):W;if(j=Be(W),!j)return wn?null:zn?R:""}j&&Sn&&ge(j.firstChild);const et=qe?W:j;try{const Ee=Je(et);for(;Te=Ee.nextNode();)Ua(Te,et),tn(Te),Zt(Te.content)&&Ia(Te.content)}catch(Ee){throw qe&&(xe(W),Ll(a.removed,De=>{De.element&&oe(De.element)})),Ee}if(qe)return Ll(a.removed,Ee=>{Ee.element&&oe(Ee.element)}),lt&&en(W),W;if(wn){if(lt&&en(j),ra)for(Oe=we.call(j.ownerDocument);j.firstChild;)Oe.appendChild(j.firstChild);else Oe=j;return(Pe.shadowroot||Pe.shadowrootmode)&&(Oe=w.call(s,Oe,!0)),Oe}let ue=At?j.outerHTML:j.innerHTML;return At&&Me["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&vn(aw,j.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
|
|
177
|
+
`+ue),lt&&(ue=Mt(ue)),H&&zn?ce(ue):ue},a.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(W),_n=!0,hn=Me,qn=Pe},a.clearConfig=function(){Yn=null,_n=!1,hn=null,qn=null,H=q,R=""},a.isValidAttribute=function(W,N,j){Yn||va({});const te=ut(W),Te=ut(N);return il(te,Te,j)},a.addHook=function(W,N){typeof N=="function"&&En(z,W)&&zl(z[W],N)},a.removeHook=function(W,N){if(En(z,W)){if(N!==void 0){const j=IS(z[W],N);return j===-1?void 0:HS(z[W],j,1)[0]}return nb(z[W])}},a.removeHooks=function(W){En(z,W)&&(z[W]=[])},a.removeAllHooks=function(){z=pb()},a}var cw=iy();function tf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var nl=tf();function ly(l){nl=l}var el={exec:()=>null};function jl(l){let a=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),u=a[s];return u||(u=l(s),a[s]=u),u}}function at(l,a=""){let r=typeof l=="string"?l:l.source,s={replace:(u,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(Dn.caret,"$1"),r=r.replace(u,p),s},getRegex:()=>new RegExp(r,a)};return s}var uw=((l="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+l)}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:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:jl(l=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:jl(l=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:jl(l=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)),headingBeginRegex:jl(l=>new RegExp(`^ {0,${l}}#`)),htmlBeginRegex:jl(l=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:jl(l=>new RegExp(`^ {0,${l}}>`))},dw=/^(?:[ \t]*(?:\n|$))+/,fw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$s=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,nf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,sy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ry=at(sy).replace(/bull/g,nf).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(),mw=at(sy).replace(/bull/g,nf).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(),af=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,gw=/^[^\n]+/,lf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bw=at(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",lf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yw=at(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,nf).getRegex(),_o="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",sf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vw=at("^ {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",sf).replace("tag",_o).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oy=l=>at(af).replace("hr",$s).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",l).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex(),Ew=oy(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),_w=oy(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Sw=at(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_w).getRegex(),rf={blockquote:Sw,code:fw,def:bw,fences:hw,heading:pw,hr:$s,html:vw,lheading:ry,list:yw,newline:dw,paragraph:Ew,table:el,text:gw},mb=at("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$s).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",_o).getRegex(),ww={...rf,lheading:mw,table:mb,paragraph:at(af).replace("hr",$s).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mb).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",_o).getRegex()},Nw={...rf,html:at(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",sf).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:el,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:at(af).replace("hr",$s).replace("heading",` *#{1,6} *[^
|
|
178
|
+
]`).replace("lheading",ry).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},xw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Tw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cy=/^( {2,}|\\)\n(?!\s*$)/,Aw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ai=/[\p{P}\p{S}]/u,Gl=/[\s\p{P}\p{S}]/u,Ys=/[^\s\p{P}\p{S}]/u,Rw=at(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Gl).getRegex(),kw=/[\p{Pi}\p{Ps}"']/u,uy=/(?!~)[\p{P}\p{S}]/u,Ow=/(?!~)[\s\p{P}\p{S}]/u,Cw=/(?:[^\s\p{P}\p{S}]|~)/u,Mw=at(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uw?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),dy=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Dw=at(dy,"u").replace(/punct/g,ai).getRegex(),Lw=at(dy,"u").replace(/punct/g,uy).getRegex(),zw=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,jw=at(zw,"u").replace(/openQuote/g,kw).replace(/punct/g,ai).getRegex(),fy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Uw=at(fy,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),Bw=at(fy,"gu").replace(/notPunctSpace/g,Cw).replace(/punctSpace/g,Ow).replace(/punct/g,uy).getRegex(),Iw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Hw=at(Iw,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),qw=at("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),Gw="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",$w=at(Gw,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),Yw=at(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ai).getRegex(),Fw="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Pw=at(Fw,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),Kw=at(/\\(punct)/,"gu").replace(/punct/g,ai).getRegex(),Zw=at(/^<(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(),Xw=at(sf).replace("(?:-->|$)","-->").getRegex(),Vw=at("^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",Xw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Qw=at(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",fo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),hy=at(/^!?\[(label)\]\[(ref)\]/).replace("label",fo).replace("ref",lf).getRegex(),py=at(/^!?\[(ref)\](?:\[\])?/).replace("ref",lf).getRegex(),Ww=at("reflink|nolink(?!\\()","g").replace("reflink",hy).replace("nolink",py).getRegex(),gb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,of={_backpedal:el,anyPunctuation:Kw,autolink:Zw,blockSkip:Mw,br:cy,code:Tw,del:el,delLDelim:el,delRDelim:el,emStrongLDelim:Dw,emStrongRDelimAst:Uw,emStrongRDelimUnd:qw,escape:xw,link:Qw,nolink:py,punctuation:Rw,reflink:hy,reflinkSearch:Ww,tag:Vw,text:Aw,url:el},Jw={...of,emStrongLDelim:jw,emStrongRDelimAst:Hw,emStrongRDelimUnd:$w,link:at(/^!?\[(label)\]\((.*?)\)/).replace("label",fo).getRegex(),reflink:at(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fo).getRegex()},jd={...of,emStrongRDelimAst:Bw,emStrongLDelim:Lw,delLDelim:Yw,delRDelim:Pw,url:at(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gb).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:at(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gb).getRegex()},eN={...jd,br:at(cy).replace("{2,}","*").getRegex(),text:at(jd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},no={normal:rf,gfm:ww,pedantic:Nw},Us={normal:of,gfm:jd,breaks:eN,pedantic:Jw},tN={"&":"&","<":"<",">":">",'"':""","'":"'"},bb=l=>tN[l];function Da(l,a){if(a){if(Dn.escapeTest.test(l))return l.replace(Dn.escapeReplace,bb)}else if(Dn.escapeTestNoEncode.test(l))return l.replace(Dn.escapeReplaceNoEncode,bb);return l}function yb(l){try{l=encodeURI(l).replace(Dn.percentDecode,"%")}catch{return null}return l}function vb(l,a){var f;let r=l.replace(Dn.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Dn.splitPipe),u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),a)if(s.length>a)s.splice(a);else for(;s.length<a;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Dn.slashPipe,"|");return s}function Di(l,a,r){let s=l.length;if(s===0)return"";let u=0;for(;u<s&&l.charAt(s-u-1)===a;)u++;return l.slice(0,s-u)}function Eb(l){let a=l.split(`
|
|
179
179
|
`),r=a.length-1;for(;r>=0&&Dn.blankLine.test(a[r]);)r--;return a.length-r<=2?l:a.slice(0,r+1).join(`
|
|
180
|
-
`)}function
|
|
180
|
+
`)}function nN(l,a){if(l.indexOf(a[1])===-1)return-1;let r=0;for(let s=0;s<l.length;s++)if(l[s]==="\\")s++;else if(l[s]===a[0])r++;else if(l[s]===a[1]&&(r--,r<0))return s;return r>0?-2:-1}function aN(l,a=0){let r=a,s="";for(let u of l)if(u===" "){let f=4-r%4;s+=" ".repeat(f),r+=f}else s+=u,r++;return s}function _b(l,a,r,s,u){let f=a.href,p=a.title||null,y=l[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:l[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:p,text:y,tokens:s.inlineTokens(y)};return s.state.inLink=!1,g}function iN(l,a,r){let s=l.match(r.other.indentCodeCompensation);if(s===null)return a;let u=s[1];return a.split(`
|
|
181
181
|
`).map(f=>{let p=f.match(r.other.beginningSpace);if(p===null)return f;let[y]=p;return y.length>=u.length?f.slice(u.length):f}).join(`
|
|
182
|
-
`)}var
|
|
182
|
+
`)}var ho=class{constructor(l){Tt(this,"options");Tt(this,"rules");Tt(this,"lexer");this.options=l||nl}space(l){let a=this.rules.block.newline.exec(l);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(l){let a=this.rules.block.code.exec(l);if(a){let r=this.options.pedantic?a[0]:Eb(a[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(l){let a=this.rules.block.fences.exec(l);if(a){let r=a[0],s=iN(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:s}}}heading(l){let a=this.rules.block.heading.exec(l);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let s=Di(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Di(a[0],`
|
|
183
183
|
`),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(l){let a=this.rules.block.hr.exec(l);if(a)return{type:"hr",raw:Di(a[0],`
|
|
184
184
|
`)}}blockquote(l){let a=this.rules.block.blockquote.exec(l);if(a){let r=Di(a[0],`
|
|
185
185
|
`).split(`
|
|
@@ -187,25 +187,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
187
187
|
`),b=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
188
188
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
189
189
|
${m}`:m,u=u?`${u}
|
|
190
|
-
${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,f,!0),this.lexer.state.top=v,r.length===0)break;let _=f.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){let
|
|
191
|
-
`),
|
|
192
|
-
`+
|
|
193
|
-
${
|
|
190
|
+
${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,f,!0),this.lexer.state.top=v,r.length===0)break;let _=f.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){let x=_,S=r.join(`
|
|
191
|
+
`),C=x.raw+`
|
|
192
|
+
`+S.replace(this.rules.other.blockquoteSetextReplace2,""),T=this.blockquote(C);f[f.length-1]=T,s=`${s}
|
|
193
|
+
${S}`,u=u.substring(0,u.length-x.text.length)+T.text;break}else if((_==null?void 0:_.type)==="list"){let x=_,S=x.raw+`
|
|
194
194
|
`+r.join(`
|
|
195
|
-
`),
|
|
196
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(l){let a=this.rules.block.list.exec(l);if(a){let r=a[1].trim(),s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let f=this.rules.other.listItemRegex(r),p=!1;for(;l;){let g=!1,m="",b="";if(!(a=f.exec(l))||this.rules.block.hr.test(l))break;m=a[0],l=l.substring(m.length);let v=
|
|
195
|
+
`),C=this.list(S);f[f.length-1]=C,s=s.substring(0,s.length-_.raw.length)+C.raw,u=u.substring(0,u.length-x.raw.length)+C.raw,r=S.substring(f.at(-1).raw.length).split(`
|
|
196
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(l){let a=this.rules.block.list.exec(l);if(a){let r=a[1].trim(),s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let f=this.rules.other.listItemRegex(r),p=!1;for(;l;){let g=!1,m="",b="";if(!(a=f.exec(l))||this.rules.block.hr.test(l))break;m=a[0],l=l.substring(m.length);let v=aN(a[2].split(`
|
|
197
197
|
`,1)[0],a[1].length),_=l.split(`
|
|
198
|
-
`,1)[0],
|
|
199
|
-
`,l=l.substring(_.length+1),g=!0),!g){let
|
|
200
|
-
`,1)[0],ie;if(_=
|
|
201
|
-
`+ie.slice(
|
|
202
|
-
`+_}
|
|
203
|
-
`,l=l.substring(
|
|
204
|
-
`),href:s,title:u}}}table(l){var p;let a=this.rules.block.table.exec(l);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=
|
|
198
|
+
`,1)[0],x=!v.trim(),S=0;if(this.options.pedantic?(S=2,b=v.trimStart()):x?S=a[1].length+1:(S=v.search(this.rules.other.nonSpaceChar),S=S>4?1:S,b=v.slice(S),S+=a[1].length),x&&this.rules.other.blankLine.test(_)&&(m+=_+`
|
|
199
|
+
`,l=l.substring(_.length+1),g=!0),!g){let C=this.rules.other.nextBulletRegex(S),T=this.rules.other.hrRegex(S),M=this.rules.other.fencesBeginRegex(S),I=this.rules.other.headingBeginRegex(S),A=this.rules.other.htmlBeginRegex(S),V=this.rules.other.blockquoteBeginRegex(S);for(;l;){let Q=l.split(`
|
|
200
|
+
`,1)[0],ie;if(_=Q,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),ie=_):ie=_.replace(this.rules.other.tabCharGlobal," "),M.test(_)||I.test(_)||A.test(_)||V.test(_)||C.test(_)||T.test(_))break;if(ie.search(this.rules.other.nonSpaceChar)>=S||!_.trim())b+=`
|
|
201
|
+
`+ie.slice(S);else{if(x||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(v)||I.test(v)||T.test(v))break;b+=`
|
|
202
|
+
`+_}x=!_.trim(),m+=Q+`
|
|
203
|
+
`,l=l.substring(Q.length+1),v=ie.slice(S)}}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(l){let a=this.rules.block.html.exec(l);if(a){let r=Eb(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(l){let a=this.rules.block.def.exec(l);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=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:Di(a[0],`
|
|
204
|
+
`),href:s,title:u}}}table(l){var p;let a=this.rules.block.table.exec(l);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=vb(a[1]),s=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=a[3])!=null&&p.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
205
205
|
`):[],f={type:"table",raw:Di(a[0],`
|
|
206
|
-
`),header:[],align:[],rows:[]};if(r.length===s.length){for(let y of s)this.rules.other.tableAlignRight.test(y)?f.align.push("right"):this.rules.other.tableAlignCenter.test(y)?f.align.push("center"):this.rules.other.tableAlignLeft.test(y)?f.align.push("left"):f.align.push(null);for(let y=0;y<r.length;y++)f.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:f.align[y]});for(let y of u)f.rows.push(
|
|
206
|
+
`),header:[],align:[],rows:[]};if(r.length===s.length){for(let y of s)this.rules.other.tableAlignRight.test(y)?f.align.push("right"):this.rules.other.tableAlignCenter.test(y)?f.align.push("center"):this.rules.other.tableAlignLeft.test(y)?f.align.push("left"):f.align.push(null);for(let y=0;y<r.length;y++)f.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:f.align[y]});for(let y of u)f.rows.push(vb(y,f.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[m]})));return f}}lheading(l){let a=this.rules.block.lheading.exec(l);if(a){let r=a[1].trim();return{type:"heading",raw:Di(a[0],`
|
|
207
207
|
`),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(l){let a=this.rules.block.paragraph.exec(l);if(a){let r=a[1].charAt(a[1].length-1)===`
|
|
208
|
-
`?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(l){let a=this.rules.block.text.exec(l);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(l){let a=this.rules.inline.escape.exec(l);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(l){let a=this.rules.inline.tag.exec(l);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(l){let a=this.rules.inline.link.exec(l);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 f=Di(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=
|
|
208
|
+
`?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(l){let a=this.rules.block.text.exec(l);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(l){let a=this.rules.inline.escape.exec(l);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(l){let a=this.rules.inline.tag.exec(l);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(l){let a=this.rules.inline.link.exec(l);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 f=Di(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=nN(a[2],"()");if(f===-2)return;if(f>-1){let p=(a[0].indexOf("!")===0?5:4)+a[1].length+f;a[2]=a[2].substring(0,f),a[0]=a[0].substring(0,p).trim(),a[3]=""}}let s=a[2],u="";if(this.options.pedantic){let f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],u=f[3])}else u=a[3]?a[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),_b(a,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(l,a){let r;if((r=this.rules.inline.reflink.exec(l))||(r=this.rules.inline.nolink.exec(l))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[s.toLowerCase()];if(!u){let f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return _b(r,u,r[0],this.lexer,this.rules)}}emStrong(l,a,r=""){let s=this.rules.inline.emStrongLDelim.exec(l);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=0,m=s[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*l.length+u);(s=v.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f)continue;if(p=[...f].length,s[3]||s[4]){y+=p;continue}else if(s[5]||s[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 _=[...s[0]][0].length,x=l.slice(0,u+s.index+_+p);if(Math.min(u,p)%2){let C=x.slice(1,-1);return{type:"em",raw:x,text:C,tokens:this.lexer.inlineTokens(C)}}let S=x.slice(2,-2);return{type:"strong",raw:x,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(l){let a=this.rules.inline.code.exec(l);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(l){let a=this.rules.inline.br.exec(l);if(a)return{type:"br",raw:a[0]}}del(l,a,r=""){let s=this.rules.inline.delLDelim.exec(l);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*l.length+u);(s=g.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f||(p=[...f].length,p!==u))continue;if(s[3]||s[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...s[0]][0].length,b=l.slice(0,u+s.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(l){let a=this.rules.inline.autolink.exec(l);if(a){let r,s;return a[2]==="@"?(r=a[1],s="mailto:"+r):(r=a[1],s=r),{type:"link",raw:a[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(l){var r;let a;if(a=this.rules.inline.url.exec(l)){let s,u;if(a[2]==="@")s=a[0],u="mailto:"+s;else{let f;do f=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(f!==a[0]);s=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(l){let a=this.rules.inline.text.exec(l);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},xa=class Ud{constructor(a){Tt(this,"tokens");Tt(this,"options");Tt(this,"state");Tt(this,"inlineQueue");Tt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||nl,this.options.tokenizer=this.options.tokenizer||new ho,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:no.normal,inline:Us.normal};this.options.pedantic?(r.block=no.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=no.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:no,inline:Us}}static lex(a,r){return new Ud(r).lex(a)}static lexInline(a,r){return new Ud(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
|
|
209
209
|
`),this.blockTokens(a,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,r=[],s=!1){var f,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=(f=this.options.extensions)==null?void 0:f.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+=`
|
|
210
210
|
`: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(`
|
|
211
211
|
`)?"":`
|
|
@@ -213,13 +213,13 @@ ${N}`,u=u.substring(0,u.length-T.text.length)+x.text;break}else if((_==null?void
|
|
|
213
213
|
`+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(`
|
|
214
214
|
`)?"":`
|
|
215
215
|
`)+g.raw,b.text+=`
|
|
216
|
-
`+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(
|
|
216
|
+
`+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(x=>{_=x.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);s&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
|
|
217
217
|
`)?"":`
|
|
218
218
|
`)+g.raw,b.text+=`
|
|
219
219
|
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g),s=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(`
|
|
220
220
|
`)?"":`
|
|
221
221
|
`)+g.raw,b.text+=`
|
|
222
|
-
`+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 s=a;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(s=s.replace(this.tokenizer.rules.inline.reflinkSearch,
|
|
222
|
+
`+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 s=a;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(s=s.replace(this.tokenizer.rules.inline.reflinkSearch,x=>_.includes(x.slice(x.lastIndexOf("[")+1,-1))?"["+"a".repeat(x.length-2)+"]":x))}s=s.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),s=s.replace(this.tokenizer.rules.inline.blockSkip,(_,x,S)=>{let C=S?S.length:0;return _.slice(0,C)+"["+"a".repeat(_.length-C-2)+"]"}),s=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},s))??s;let u=!1,f="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(f=""),u=!1;let _;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(S=>(_=S.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 S=r.at(-1);_.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=_.raw,S.text+=_.text):r.push(_);continue}if(_=this.tokenizer.emStrong(a,s,f)){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,s,f)){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 x=a;if((v=this.options.extensions)!=null&&v.startInline){let S=1/0,C=a.slice(1),T;this.options.extensions.startInline.forEach(M=>{T=M.call({lexer:this},C),typeof T=="number"&&T>=0&&(S=Math.min(S,T))}),S<1/0&&S>=0&&(x=a.substring(0,S+1))}if(_=this.tokenizer.inlineText(x)){a=a.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(f=_.raw.slice(-1)),u=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=_.raw,S.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)}},po=class{constructor(l){Tt(this,"options");Tt(this,"parser");this.options=l||nl}space(l){return""}code({text:l,lang:a,escaped:r}){var f;let s=(f=(a||"").match(Dn.notSpaceStart))==null?void 0:f[0],u=l.replace(Dn.endingNewline,"")+`
|
|
223
223
|
`;return s?'<pre><code class="language-'+Da(s)+'">'+(r?u:Da(u,!0))+`</code></pre>
|
|
224
224
|
`:"<pre><code>"+(r?u:Da(u,!0))+`</code></pre>
|
|
225
225
|
`}blockquote({tokens:l}){return`<blockquote>
|
|
@@ -237,14 +237,14 @@ ${this.parser.parse(l)}</blockquote>
|
|
|
237
237
|
`}tablerow({text:l}){return`<tr>
|
|
238
238
|
${l}</tr>
|
|
239
239
|
`}tablecell(l){let a=this.parser.parseInline(l.tokens),r=l.header?"th":"td";return(l.align?`<${r} align="${l.align}">`:`<${r}>`)+a+`</${r}>
|
|
240
|
-
`}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Da(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:a,tokens:r}){let s=this.parser.parseInline(r),u=
|
|
241
|
-
Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(r);throw r}}},
|
|
242
|
-
`);for(let f=0;f<u.length;f++){const p=u[f],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),s=!0;continue}s&&(p===""&&f===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
|
|
240
|
+
`}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Da(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:a,tokens:r}){let s=this.parser.parseInline(r),u=yb(l);if(u===null)return s;l=u;let f='<a href="'+l+'"';return a&&(f+=' title="'+Da(a)+'"'),f+=">"+s+"</a>",f}image({href:l,title:a,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let u=yb(l);if(u===null)return Da(r);l=u;let f=`<img src="${l}" alt="${Da(r)}"`;return a&&(f+=` title="${Da(a)}"`),f+=">",f}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):"escaped"in l&&l.escaped?l.text:Da(l.text)}},cf=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}checkbox({raw:l}){return l}},Ta=class Bd{constructor(a){Tt(this,"options");Tt(this,"renderer");Tt(this,"textRenderer");this.options=a||nl,this.options.renderer=this.options.renderer||new po,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new cf}static parse(a,r){return new Bd(r).parse(a)}static parseInline(a,r){return new Bd(r).parseInline(a)}parse(a){var s,u;this.renderer.parser=this;let r="";for(let f=0;f<a.length;f++){let p=a[f];if((u=(s=this.options.extensions)==null?void 0:s.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,f;this.renderer.parser=this;let s="";for(let p=0;p<a.length;p++){let y=a[p];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[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)){s+=m||"";continue}}let g=y;switch(g.type){case"escape":{s+=r.text(g);break}case"html":{s+=r.html(g);break}case"link":{s+=r.link(g);break}case"image":{s+=r.image(g);break}case"checkbox":{s+=r.checkbox(g);break}case"strong":{s+=r.strong(g);break}case"em":{s+=r.em(g);break}case"codespan":{s+=r.codespan(g);break}case"br":{s+=r.br(g);break}case"del":{s+=r.del(g);break}case"text":{s+=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 s}},io,Is=(io=class{constructor(l){Tt(this,"options");Tt(this,"block");this.options=l||nl}preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(l=this.block){return l?xa.lex:xa.lexInline}provideParser(l=this.block){return l?Ta.parse:Ta.parseInline}},Tt(io,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Tt(io,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),io),lN=class{constructor(...l){Tt(this,"defaults",tf());Tt(this,"options",this.setOptions);Tt(this,"parse",this.parseMarkdown(!0));Tt(this,"parseInline",this.parseMarkdown(!1));Tt(this,"Parser",Ta);Tt(this,"Renderer",po);Tt(this,"TextRenderer",cf);Tt(this,"Lexer",xa);Tt(this,"Tokenizer",ho);Tt(this,"Hooks",Is);this.use(...l)}walkTokens(l,a){var s,u;let r=[];for(let f of l)switch(r=r.concat(a.call(this,f)),f.type){case"table":{let p=f;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=f;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=f;(u=(s=this.defaults.extensions)==null?void 0:s.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(...l){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let f=a.renderers[u.name];f?a.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=f.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 f=a[u.level];f?f.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)}),s.extensions=a),r.renderer){let u=this.defaults.renderer||new po(this.defaults);for(let f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let p=f,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||""}}s.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new ho(this.defaults);for(let f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let p=f,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}}s.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Is;for(let f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let p=f,y=r.hooks[p],g=u[p];Is.passThroughHooks.has(f)?u[p]=m=>{if(this.defaults.async&&Is.passThroughHooksRespectAsync.has(f))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}}s.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let y=[];return y.push(f.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...s}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,a){return xa.lex(l,a??this.defaults)}parser(l,a){return Ta.parse(l,a??this.defaults)}parseMarkdown(l){return(a,r)=>{let s={...r},u={...this.defaults,...s},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return f(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 f(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return f(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=l),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(l):l?xa.lex:xa.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(l):l?Ta.parse:Ta.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(l):l?xa.lex:xa.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(l):l?Ta.parse:Ta.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return f(p)}}}onError(l,a){return r=>{if(r.message+=`
|
|
241
|
+
Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(r);throw r}}},tl=new lN;function yt(l,a){return tl.parse(l,a)}yt.options=yt.setOptions=function(l){return tl.setOptions(l),yt.defaults=tl.defaults,ly(yt.defaults),yt};yt.getDefaults=tf;yt.defaults=nl;function sN(...l){return tl.use(...l),yt.defaults=tl.defaults,ly(yt.defaults),yt}yt.use=sN;yt.walkTokens=function(l,a){return tl.walkTokens(l,a)};yt.parseInline=tl.parseInline;yt.Parser=Ta;yt.parser=Ta.parse;yt.Renderer=po;yt.TextRenderer=cf;yt.Lexer=xa;yt.lexer=xa.lex;yt.Tokenizer=ho;yt.Hooks=Is;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;Ta.parse;xa.lex;yt.setOptions({gfm:!0,breaks:!1});function uf(l){const a=yt.parse(l??"",{async:!1});return cw.sanitize(a)}function ni({text:l,className:a}){const r=$.useMemo(()=>uf(l),[l]);return l!=null&&l.trim()?d.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const rN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function oN(l){return l.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>rN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function cN(l,a){return oN(a)!==l.replace(/\s+/g," ").trim()}function Fs({text:l,className:a}){const r=$.useMemo(()=>l!=null&&l.trim()?uf(l):"",[l]);return!r||!cN(l,r)?null:d.jsxs("div",{className:"md-preview",children:[d.jsx("div",{className:"lab",children:"preview"}),d.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const uN=/\.(md|markdown)$/i;function df(l){return uN.test(l)}function dN(l){return/^new file mode /m.test(l)||/^--- \/dev\/null$/m.test(l)}function fN(l){const a=[];let r=0,s=!1;const u=l.split(`
|
|
242
|
+
`);for(let f=0;f<u.length;f++){const p=u[f],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),s=!0;continue}s&&(p===""&&f===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 ao=l=>(l.match(/\n/g)??[]).length;function ff(l){const a=fN(l),r=dN(l),s=[];let u=[];const f=()=>{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(`
|
|
243
243
|
`)+`
|
|
244
|
-
`;let m=p;for(const b of yt.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=no(v);continue}const T=v.length-v.trimStart().length,N=m+no(v.slice(0,T)),D=N+no(_.slice(T));let x=!1;for(let C=N;C<=D&&!x;C++)x=y.has(C);s.push({kind:"block",raw:_.slice(T),from:N,to:D,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;f(),s.push({kind:"gap",lines:g})}u.push(p)}return f(),{items:s,isNew:r,lines:a.length}}const jd="cerber.stickyChapters";function rN(l){return l!=="off"}function oN(){try{return rN(localStorage.getItem(jd))}catch{return!0}}function fy(){const[l,a]=F.useState(oN);return[l,s=>{try{s?localStorage.removeItem(jd):localStorage.setItem(jd,"off")}catch{}a(s)}]}function lo(l){const a=l.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 Ud={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},cN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function uN(l){return(l==null?void 0:l.recommendation)==="approve"?"APPROVE":(l==null?void 0:l.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function hy(l,a){const r=A_(l);return a.filter(s=>{var u;return!s.drifted&&s.line!=null&&((u=r.get(s.path))==null?void 0:u.has(s.line))})}function Eb(l,a){const r=f=>{const p=Number((f??"").trim());return Number.isInteger(p)&&p>0?p:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(l);return u!=null?{line:u,side:"old"}:null}function py(l){const a=l.comments.filter(y=>y.status==="dropped"),r=l.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>lo(y)==="reply"),u=r.filter(y=>lo(y)==="hold"),f=r.filter(y=>lo(y)==="post"),p=hy(l.diff,f);return{inline:p,folded:f.filter(y=>!p.includes(y)),dropped:a,replies:s,held:u}}function _b(l){return l.sent!=null||(l.priorSends??[]).length>0}function Sb(l){return(l.priorSends??[]).length+(l.sent?1:0)}function dN(l,a){if(l.sent==null)return!1;const r=a==null?void 0:a.headSha;return r!=null&&l.pr.headSha!==""&&r!==l.pr.headSha}function fN(l,a){const r=l.alreadyRaised;if(!r)return null;if(l.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=lo(l);return a?s==="reply"?"the reply in their thread did not post":s==="hold"?"left out of the review":"posted as a comment of its own":s==="reply"?"replies in their thread when you send":s==="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 hN(l){return l.where.kind==="thread"?`${l.where.state} thread`:"review"}function Td(l){const a=l.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(f=>f.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:f})=>`${qb[u]} ${f} ${u}${f===1?"":"s"}`).join(" · ")}function pN(l){if(!l.comments.some(s=>s.severity!=null))return null;const r=l.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function mN(l){if(!l.verdict||!l.comments.some(u=>u.severity!=null))return null;const r=l.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=l.verdict.recommendation;return s==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:s==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function Bd(l){const{inline:a,folded:r,replies:s,held:u}=py(l),f=[s.length>0?`${s.length} ${s.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[gN(l,a,r),...f].join(" · ")}function gN(l,a,r){if(l.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 s=[`${a.length} inline`];return r.length>0&&s.push(`${r.length} folded into the body`),s.join(" · ")}const Id="cerber.sendKey";function bN(l){return l==="enter"?l:"mod-enter"}function yN(l,a){return a.key!=="Enter"||a.isComposing||a.keyCode===229?!1:a.metaKey||a.ctrlKey?!0:l==="enter"&&!a.shiftKey}let po=null;function vN(l){if(po)return po;try{return bN((l??localStorage).getItem(Id))}catch{return"mod-enter"}}function EN(l,a){try{const r=a??localStorage;l==="mod-enter"?r.removeItem(Id):r.setItem(Id,l),po=null}catch{po=l}}function my(){const[l,a]=F.useState(()=>vN());return[l,s=>{EN(s),a(s)}]}const wb={approve:"approve",comment:"comment",request_changes:"changes"},_N={approve:"approve",comment:"comment",request_changes:"changes"};function SN(l,a){return l.status==="dropped"?"none":l.drifted?"comment":l.origin==="user"?"awaiting":a}function gy(l,a=20){const r=document.getElementById(`c-${l}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>gy(l,a-1))}function wN(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Nb(l,a){const r=document.createElement("tr");r.className=a;const s=document.createElement("td");s.colSpan=2;const u=document.createElement("div");return s.appendChild(u),r.appendChild(s),l.after(r),{tr:r,holder:u}}function Tb(l,a,r){l.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const f=a.has(u);s.classList.toggle("file-viewed-on",f),s.classList.toggle("file-peek",f&&r.has(u));const p=s.querySelector("input[data-viewed-path]");p&&(p.checked=f)})}function mo(l,a){!l||!a||l.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>l.scrollIntoView({block:"start"}))}function NN(l){const a=document.createElement("label");a.className="file-viewed",a.title="Mark as viewed — folds the file until its diff changes";const r=document.createElement("input");return r.type="checkbox",r.dataset.viewedPath=l,a.append(r," Viewed"),a}function by({pick:l,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[f,p]=F.useState(""),y=F.useRef(null);F.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=f.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[l.path,":",l.line]}),l.side==="old"&&d.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"})]}),d.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:f,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),d.jsx(Ys,{className:"comment-body",text:f}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[d.jsx(Ze,{name:"plus"}),"add comment",d.jsx(za,{children:"⌘↵"})]}),d.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:()=>s(g),children:[d.jsx(Ze,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function TN({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:y,viewedState:g}){const m=F.useMemo(()=>l.trim()?w_(l,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[l]),b=F.useMemo(()=>ja(l).map(ce=>ce.path),[l]),v=F.useMemo(()=>new Set(ja(l).filter(ce=>cf(ce.path)&&uf(ce.patch).lines>0).map(ce=>ce.path)),[l]),_=F.useMemo(()=>a.map(ce=>`${ce.id}@${ce.path}:${ce.line}`).join("|"),[a]),T=F.useRef(null),N=F.useRef(y);N.current=y;const D=F.useRef(g);D.current=g;const[x,C]=F.useState([]),[I,A]=F.useState([]),[Q,V]=F.useState(null),[ie,H]=F.useState(null);F.useEffect(()=>{var Le,S;const ce=T.current;if(!ce)return;ce.innerHTML=m,fS(ce);const Se=new Map,he=[];ce.querySelectorAll(".d2h-file-wrapper").forEach((z,B)=>{var ve,Z,ye,Ne,Ge;const se=(Z=(ve=z.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:Z.trim(),pe=se&&b.includes(se)?se:b[B];if(se&&Se.set(se,z),pe){Se.set(pe,z),z.dataset.path=pe;const $e=document.createElement("div");if($e.className="file-comments",(ye=z.querySelector(".d2h-file-header"))==null||ye.after($e),he.push({path:pe,el:$e}),v.has(pe)){const Me=document.createElement("button");Me.type="button",Me.className="btn btn-sm md-read-toggle",Me.dataset.readPath=pe,Me.textContent="read as a document",Me.title="Render this markdown instead of showing it line by line",(Ne=z.querySelector(".d2h-file-header"))==null||Ne.appendChild(Me)}(Ge=z.querySelector(".d2h-file-header"))==null||Ge.appendChild(NN(pe))}}),Tb(ce,D.current.viewed,D.current.peeked);const M=[],ee=new Map;for(const z of a){if(z.line==null)continue;const B=Se.get(z.path);if(!B)continue;const se=Array.from(B.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var Z,ye;return((ye=(Z=ve.querySelector(".line-num2"))==null?void 0:Z.textContent)==null?void 0:ye.trim())===String(z.line)});if(!se)continue;const pe=Nb(ee.get(se)??se,"inline-comment-row");ee.set(se,pe.tr),M.push({id:z.id,el:pe.holder})}C(M),A(he);const fe=z=>{var $e;const B=z.target,se=B.closest(".md-read-toggle");if(se!=null&&se.dataset.readPath){N.current(se.dataset.readPath);return}const pe=B.closest(".d2h-file-wrapper");if(B instanceof HTMLInputElement&&B.dataset.viewedPath){B.checked&&mo(pe,(pe==null?void 0:pe.querySelector(".d2h-file-header"))??null),D.current.onToggleViewed(B.dataset.viewedPath);return}if(B.closest(".file-viewed"))return;const ve=($e=B.closest(".d2h-file-header"))==null?void 0:$e.closest(".file-viewed-on");if(ve!=null&&ve.dataset.path){mo(pe,(pe==null?void 0:pe.querySelector(".d2h-file-header"))??null),D.current.onTogglePeek(ve.dataset.path);return}const Z=z.target.closest(".line-add");if(!Z)return;const{path:ye,line:Ne,side:Ge}=Z.dataset;!ye||!Ne||V({path:ye,line:Number(Ne),side:Ge==="old"?"old":"new"})};ce.addEventListener("click",fe);const we=()=>ce.removeEventListener("click",fe);if(s)return V(null),H(null),we;for(const z of ce.querySelectorAll(".d2h-file-wrapper")){const B=z.dataset.path;if(B)for(const se of z.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const pe=Eb((Le=se.querySelector(".line-num1"))==null?void 0:Le.textContent,(S=se.querySelector(".line-num2"))==null?void 0:S.textContent);if(!pe)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const Z=`Say something about ${B}:${pe.line}`;ve.title=Z,ve.setAttribute("aria-label",Z),ve.tabIndex=-1,ve.dataset.path=B,ve.dataset.line=String(pe.line),ve.dataset.side=pe.side,se.appendChild(ve)}}return H(null),we},[m,_,b,v,s]);const R=b.filter(ce=>g.viewed.has(ce)).join(`
|
|
244
|
+
`;let m=p;for(const b of yt.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=ao(v);continue}const x=v.length-v.trimStart().length,S=m+ao(v.slice(0,x)),C=S+ao(_.slice(x));let T=!1;for(let M=S;M<=C&&!T;M++)T=y.has(M);s.push({kind:"block",raw:_.slice(x),from:S,to:C,changed:T}),m+=ao(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;f(),s.push({kind:"gap",lines:g})}u.push(p)}return f(),{items:s,isNew:r,lines:a.length}}const Id="cerber.stickyChapters";function hN(l){return l!=="off"}function pN(){try{return hN(localStorage.getItem(Id))}catch{return!0}}function my(){const[l,a]=$.useState(pN);return[l,s=>{try{s?localStorage.removeItem(Id):localStorage.setItem(Id,"off")}catch{}a(s)}]}function so(l){const a=l.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 Hd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},mN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function gN(l){return(l==null?void 0:l.recommendation)==="approve"?"APPROVE":(l==null?void 0:l.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function gy(l,a){const r=O_(l);return a.filter(s=>{var u;return!s.drifted&&s.line!=null&&((u=r.get(s.path))==null?void 0:u.has(s.line))})}function Sb(l,a){const r=f=>{const p=Number((f??"").trim());return Number.isInteger(p)&&p>0?p:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(l);return u!=null?{line:u,side:"old"}:null}function by(l){const a=l.comments.filter(y=>y.status==="dropped"),r=l.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>so(y)==="reply"),u=r.filter(y=>so(y)==="hold"),f=r.filter(y=>so(y)==="post"),p=gy(l.diff,f);return{inline:p,folded:f.filter(y=>!p.includes(y)),dropped:a,replies:s,held:u}}function wb(l){return l.sent!=null||(l.priorSends??[]).length>0}function Nb(l){return(l.priorSends??[]).length+(l.sent?1:0)}function bN(l,a){if(l.sent==null)return!1;const r=a==null?void 0:a.headSha;return r!=null&&l.pr.headSha!==""&&r!==l.pr.headSha}function yN(l,a){const r=l.alreadyRaised;if(!r)return null;if(l.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=so(l);return a?s==="reply"?"the reply in their thread did not post":s==="hold"?"left out of the review":"posted as a comment of its own":s==="reply"?"replies in their thread when you send":s==="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(l){return l.where.kind==="thread"?`${l.where.state} thread`:"review"}function Ad(l){const a=l.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(f=>f.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:f})=>`${$b[u]} ${f} ${u}${f===1?"":"s"}`).join(" · ")}function EN(l){if(!l.comments.some(s=>s.severity!=null))return null;const r=l.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function _N(l){if(!l.verdict||!l.comments.some(u=>u.severity!=null))return null;const r=l.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=l.verdict.recommendation;return s==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:s==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function qd(l){const{inline:a,folded:r,replies:s,held:u}=by(l),f=[s.length>0?`${s.length} ${s.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[SN(l,a,r),...f].join(" · ")}function SN(l,a,r){if(l.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 s=[`${a.length} inline`];return r.length>0&&s.push(`${r.length} folded into the body`),s.join(" · ")}const Gd="cerber.sendKey";function wN(l){return l==="enter"?l:"mod-enter"}function NN(l,a){return a.key!=="Enter"||a.isComposing||a.keyCode===229?!1:a.metaKey||a.ctrlKey?!0:l==="enter"&&!a.shiftKey}let mo=null;function xN(l){if(mo)return mo;try{return wN((l??localStorage).getItem(Gd))}catch{return"mod-enter"}}function TN(l,a){try{const r=a??localStorage;l==="mod-enter"?r.removeItem(Gd):r.setItem(Gd,l),mo=null}catch{mo=l}}function yy(){const[l,a]=$.useState(()=>xN());return[l,s=>{TN(s),a(s)}]}const xb={approve:"approve",comment:"comment",request_changes:"changes"},AN={approve:"approve",comment:"comment",request_changes:"changes"};function RN(l,a){return l.status==="dropped"?"none":l.drifted?"comment":l.origin==="user"?"awaiting":a}function vy(l,a=20){const r=document.getElementById(`c-${l}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>vy(l,a-1))}function kN(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Tb(l,a){const r=document.createElement("tr");r.className=a;const s=document.createElement("td");s.colSpan=2;const u=document.createElement("div");return s.appendChild(u),r.appendChild(s),l.after(r),{tr:r,holder:u}}function Ab(l,a,r){l.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const f=a.has(u);s.classList.toggle("file-viewed-on",f),s.classList.toggle("file-peek",f&&r.has(u));const p=s.querySelector("input[data-viewed-path]");p&&(p.checked=f)})}function go(l,a){!l||!a||l.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>l.scrollIntoView({block:"start"}))}function ON(l){const a=document.createElement("label");a.className="file-viewed",a.title="Mark as viewed — folds the file until its diff changes";const r=document.createElement("input");return r.type="checkbox",r.dataset.viewedPath=l,a.append(r," Viewed"),a}function Ey({pick:l,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[f,p]=$.useState(""),y=$.useRef(null);$.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=f.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[l.path,":",l.line]}),l.side==="old"&&d.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"})]}),d.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:f,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),d.jsx(Fs,{className:"comment-body",text:f}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[d.jsx(Ze,{name:"plus"}),"add comment",d.jsx(za,{children:"⌘↵"})]}),d.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:()=>s(g),children:[d.jsx(Ze,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function CN({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:y,viewedState:g}){const m=$.useMemo(()=>l.trim()?T_(l,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[l]),b=$.useMemo(()=>ja(l).map(ce=>ce.path),[l]),v=$.useMemo(()=>new Set(ja(l).filter(ce=>df(ce.path)&&ff(ce.patch).lines>0).map(ce=>ce.path)),[l]),_=$.useMemo(()=>a.map(ce=>`${ce.id}@${ce.path}:${ce.line}`).join("|"),[a]),x=$.useRef(null),S=$.useRef(y);S.current=y;const C=$.useRef(g);C.current=g;const[T,M]=$.useState([]),[I,A]=$.useState([]),[V,Q]=$.useState(null),[ie,H]=$.useState(null);$.useEffect(()=>{var Le,w;const ce=x.current;if(!ce)return;ce.innerHTML=m,yS(ce);const Se=new Map,he=[];ce.querySelectorAll(".d2h-file-wrapper").forEach((z,B)=>{var ve,Z,ye,Ne,Ge;const se=(Z=(ve=z.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:Z.trim(),pe=se&&b.includes(se)?se:b[B];if(se&&Se.set(se,z),pe){Se.set(pe,z),z.dataset.path=pe;const $e=document.createElement("div");if($e.className="file-comments",(ye=z.querySelector(".d2h-file-header"))==null||ye.after($e),he.push({path:pe,el:$e}),v.has(pe)){const Me=document.createElement("button");Me.type="button",Me.className="btn btn-sm md-read-toggle",Me.dataset.readPath=pe,Me.textContent="read as a document",Me.title="Render this markdown instead of showing it line by line",(Ne=z.querySelector(".d2h-file-header"))==null||Ne.appendChild(Me)}(Ge=z.querySelector(".d2h-file-header"))==null||Ge.appendChild(ON(pe))}}),Ab(ce,C.current.viewed,C.current.peeked);const D=[],ee=new Map;for(const z of a){if(z.line==null)continue;const B=Se.get(z.path);if(!B)continue;const se=Array.from(B.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var Z,ye;return((ye=(Z=ve.querySelector(".line-num2"))==null?void 0:Z.textContent)==null?void 0:ye.trim())===String(z.line)});if(!se)continue;const pe=Tb(ee.get(se)??se,"inline-comment-row");ee.set(se,pe.tr),D.push({id:z.id,el:pe.holder})}M(D),A(he);const fe=z=>{var $e;const B=z.target,se=B.closest(".md-read-toggle");if(se!=null&&se.dataset.readPath){S.current(se.dataset.readPath);return}const pe=B.closest(".d2h-file-wrapper");if(B instanceof HTMLInputElement&&B.dataset.viewedPath){B.checked&&go(pe,(pe==null?void 0:pe.querySelector(".d2h-file-header"))??null),C.current.onToggleViewed(B.dataset.viewedPath);return}if(B.closest(".file-viewed"))return;const ve=($e=B.closest(".d2h-file-header"))==null?void 0:$e.closest(".file-viewed-on");if(ve!=null&&ve.dataset.path){go(pe,(pe==null?void 0:pe.querySelector(".d2h-file-header"))??null),C.current.onTogglePeek(ve.dataset.path);return}const Z=z.target.closest(".line-add");if(!Z)return;const{path:ye,line:Ne,side:Ge}=Z.dataset;!ye||!Ne||Q({path:ye,line:Number(Ne),side:Ge==="old"?"old":"new"})};ce.addEventListener("click",fe);const we=()=>ce.removeEventListener("click",fe);if(s)return Q(null),H(null),we;for(const z of ce.querySelectorAll(".d2h-file-wrapper")){const B=z.dataset.path;if(B)for(const se of z.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const pe=Sb((Le=se.querySelector(".line-num1"))==null?void 0:Le.textContent,(w=se.querySelector(".line-num2"))==null?void 0:w.textContent);if(!pe)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const Z=`Say something about ${B}:${pe.line}`;ve.title=Z,ve.setAttribute("aria-label",Z),ve.tabIndex=-1,ve.dataset.path=B,ve.dataset.line=String(pe.line),ve.dataset.side=pe.side,se.appendChild(ve)}}return H(null),we},[m,_,b,v,s]);const R=b.filter(ce=>g.viewed.has(ce)).join(`
|
|
245
245
|
`),q=b.filter(ce=>g.peeked.has(ce)).join(`
|
|
246
|
-
`)
|
|
247
|
-
${
|
|
248
|
-
`).length)}),d.jsx(
|
|
246
|
+
`);$.useEffect(()=>{x.current&&Ab(x.current,g.viewed,g.peeked)},[R,q]),$.useEffect(()=>{const ce=x.current;if(!ce||!V||s){H(null);return}const Se=Array.from(ce.querySelectorAll(".d2h-file-wrapper")).find(ee=>ee.dataset.path===V.path),he=Array.from((Se==null?void 0:Se.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(ee=>{var Le,w;const fe=ee.querySelector(".d2h-code-linenumber"),we=Sb((Le=fe==null?void 0:fe.querySelector(".line-num1"))==null?void 0:Le.textContent,(w=fe==null?void 0:fe.querySelector(".line-num2"))==null?void 0:w.textContent);return(we==null?void 0:we.line)===V.line&&we.side===V.side});if(!he){Q(null);return}const D=Tb(he,"line-composer-row");return H(D.holder),()=>D.tr.remove()},[V,T,s]);const J=a.filter(ce=>!T.some(Se=>Se.id===ce.id)),K=I.map(ce=>({...ce,comments:J.filter(Se=>Se.path===ce.path)})).filter(ce=>ce.comments.length>0),me=J.filter(ce=>!I.some(Se=>Se.path===ce.path));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:x}),T.map(({id:ce,el:Se})=>{const he=a.find(D=>D.id===ce);return he?Mu.createPortal(r(he),Se,ce):null}),K.map(({path:ce,el:Se,comments:he})=>Mu.createPortal(d.jsx(d.Fragment,{children:he.map(r)}),Se,`file:${ce}`)),V&&ie&&Mu.createPortal(d.jsx(Ey,{pick:V,chatBusy:u,onAdd:ce=>{f(V,ce),Q(null)},onAsk:ce=>{p(V,ce),Q(null)},onClose:()=>Q(null)}),ie,`pick-${V.path}-${V.side}-${V.line}`),me.map(ce=>r(ce))]})}function MN({block:l,path:a,changed:r,readOnly:s,onPick:u}){const f=$.useMemo(()=>uf(l.raw),[l.raw]),p=`Say something about ${a}:${l.from}`;return d.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!s&&d.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:d.jsx(Ze,{name:"plus"})}),d.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:f}})]})}function DN({path:l,doc:a,comments:r,renderComment:s,readOnly:u,chatBusy:f,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=$.useState(null),_=$.useRef(null),x=$.useRef(null),S=m.viewed.has(l),C=S&&!m.peeked.has(l),T=$.useMemo(()=>{const M=new Map,I=a.items.flatMap((V,Q)=>V.kind==="block"?[{item:V,i:Q}]:[]),A=[];for(const V of r){const Q=V.line==null?void 0:I.filter(ie=>ie.item.from<=V.line).pop()??I[0];if(!Q){A.push(V);continue}M.set(Q.i,[...M.get(Q.i)??[],V])}return{at:M,rest:A}},[a,r]);return d.jsxs("div",{className:"md-file",ref:_,children:[d.jsxs("div",{ref:x,className:`md-file-head${S?" md-file-head-viewed":""}${C?" md-file-head-folded":""}`,onClick:M=>{S&&!M.target.closest("button, label")&&(go(_.current,x.current),m.onTogglePeek(l))},children:[d.jsx(Ze,{name:"file"}),d.jsx("span",{className:"md-file-name",children:l}),a.isNew?d.jsx("span",{className:"tag tag-added",children:"new file"}):d.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"}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),d.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[d.jsx("input",{type:"checkbox",checked:S,onChange:()=>{S||go(_.current,x.current),m.onToggleViewed(l)}})," ","Viewed"]})]}),!C&&T.rest.length>0&&d.jsx("div",{className:"file-comments",children:T.rest.map(s)}),!C&&a.items.map((M,I)=>d.jsxs($.Fragment,{children:[M.kind==="gap"?d.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",M.lines.toLocaleString()," line",M.lines===1?"":"s"," the diff skips"]}):d.jsx(MN,{block:M,path:l,changed:M.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:l,line:M.from,side:"new"})}),(T.at.get(I)??[]).map(s),M.kind==="block"&&(b==null?void 0:b.line)===M.from&&d.jsx(Ey,{pick:b,chatBusy:f,onAdd:A=>{p(b,A),v(null)},onAsk:A=>{y(b,A),v(null)},onClose:()=>v(null)})]},I))]})}function LN({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,viewedState:y}){const g=$.useMemo(()=>l.trim()?ja(l):[],[l]),m=$.useMemo(()=>new Map(g.filter(T=>df(T.path)).map(T=>[T.path,ff(T.patch)]).filter(([,T])=>T.lines>0)),[g]),[b,v]=$.useState({}),_=T=>{var M;return b[T]??((M=m.get(T))==null?void 0:M.isNew)??!1},x=[];for(const T of g){const M=x[x.length-1];if(m.has(T.path)&&_(T.path)){x.push({kind:"read",paths:[T.path],patch:T.patch});continue}(M==null?void 0:M.kind)==="diff"?(M.paths.push(T.path),M.patch+=`
|
|
247
|
+
${T.patch}`):x.push({kind:"diff",paths:[T.path],patch:T.patch})}if(g.length===0)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const S=new Set(g.map(T=>T.path)),C=T=>a.filter(M=>T(M.path));return d.jsxs(d.Fragment,{children:[x.map(T=>{const M=new Set(T.paths);if(T.kind==="read"){const I=T.paths[0];return d.jsx(DN,{path:I,doc:m.get(I),comments:C(A=>A===I),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onShowDiff:()=>v(A=>({...A,[I]:!1})),viewedState:y},`read:${I}`)}return d.jsx(CN,{patch:T.patch,comments:C(I=>M.has(I)),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:I=>v(A=>({...A,[I]:!0})),viewedState:y},`diff:${T.paths[0]}`)}),C(T=>!S.has(T)).map(r)]})}function zN({check:l,raised:a,held:r,replies:s}){if(!l)return null;const u=[r>0&&`${r} left out`,s>0&&`${s} as replies`].filter(Boolean),f=a>0?d.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 l.checkingSince?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):l.error?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"warn",title:l.error,children:"couldn't check what others already raised"})]}):f||(l.remarks.length>0?d.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function jN({comment:l,readOnly:a,onDecide:r}){var y;const s=l.alreadyRaised;if(!s)return null;const u=yN(l,a),f=s.where.kind==="thread",p=!a&&l.status!=="dropped";return d.jsxs("div",{className:"raised",children:[d.jsxs("div",{className:"raised-head",children:[d.jsxs("span",{className:"tag tag-raised",children:[d.jsx(Ze,{name:"comment"}),"already raised by @",s.by," · ",vN(s)]}),s.url&&d.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",d.jsx(Ze,{name:"external"})]}),d.jsx("span",{className:"grow"}),p&&d.jsxs(d.Fragment,{children:[f&&d.jsx("button",{className:`btn btn-sm${s.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(s.decision==="reply"?null:"reply"),children:"reply in their thread"}),d.jsx("button",{className:`btn btn-sm${s.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(s.decision==="send"?null:"send"),children:"send anyway"})]})]}),d.jsxs("p",{className:"raised-reason",children:[s.reason,u&&d.jsxs("span",{className:"raised-fate",children:[" — ",(y=s.replied)!=null&&y.url?d.jsx("a",{href:s.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function _y({comment:l,onUpdate:a,onDelete:r,onDiscuss:s,readOnly:u,flash:f}){const[p,y]=$.useState(!1),[g,m]=$.useState(l.body),b=l.status==="approved",v=l.status==="dropped",_=l.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return d.jsxs("div",{id:`c-${l.id}`,className:`comment comment-${l.status}${f?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[l.path,l.line!=null?`:${l.line}`:""]}),d.jsx("span",{className:`tag tag-${l.origin==="user"?"yours":_}`,children:_}),l.drifted?d.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"}):l.line==null&&d.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"}),!l.drifted&&l.originalLine!=null&&l.originalLine!==l.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",l.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(p?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{m(l.body),y(!1)},children:"cancel"})]}):d.jsxs(d.Fragment,{children:[d.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:[d.jsx(Ze,{name:"check"}),"keep"]}),d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[d.jsx(Ze,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[d.jsx(Ze,{name:"drop"}),v?"dropped":"drop"]}),s&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:s,children:[d.jsx(Ze,{name:"comment"}),"discuss"]}),l.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),d.jsx(jN,{comment:l,readOnly:u,onDecide:x=>a({raisedDecision:x})}),p?d.jsxs(d.Fragment,{children:[d.jsx("textarea",{className:"comment-edit",value:g,onChange:x=>m(x.target.value),rows:Math.max(3,g.split(`
|
|
248
|
+
`).length)}),d.jsx(Fs,{className:"comment-body",text:cg(g,l.severity??null)})]}):d.jsx(ni,{className:"comment-body prose",text:cg(l.body,l.severity??null)})]})}function UN({files:l,chapterId:a,onAdd:r}){const[s,u]=$.useState(!1),[f,p]=$.useState(l[0]??""),[y,g]=$.useState(""),[m,b]=$.useState("");return s?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:f,onChange:v=>p(v.target.value),children:l.map(v=>d.jsx("option",{value:v,children:v},v))}),d.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),d.jsx(Fs,{className:"comment-body",text:m}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!m.trim()||!f,onClick:()=>{r({path:f,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),d.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):d.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[d.jsx(Ze,{name:"plus"}),"add a comment of your own"]})}const BN=2e3;function IN({chapter:l,n:a,diff:r,comments:s,open:u,heavy:f,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:x,anchorRef:S,flash:C,viewedState:T,sticky:M,stuck:I}){const[A,V]=$.useState(!1);$.useEffect(()=>{I||V(!1)},[I]);const Q=M&&I&&u,ie=$.useRef(null),H=$.useRef(null);$.useEffect(()=>{const D=ie.current,ee=H.current;if(!M||!D||!ee)return;const fe=()=>D.style.setProperty("--chapter-head-h",`${ee.offsetHeight}px`);fe();const we=new ResizeObserver(fe);return we.observe(ee),()=>{we.disconnect(),D.style.removeProperty("--chapter-head-h")}},[M]);const R=()=>{p(),Q&&requestAnimationFrame(()=>{var D;return(D=ie.current)==null?void 0:D.scrollIntoView({block:"start"})})},q=$.useMemo(()=>A_(r,l.files),[r,l.files]),J=l.files.filter(D=>T.viewed.has(D)).length,K=$.useMemo(()=>gy(q,s),[q,s]),me=$.useMemo(()=>new Set(ja(q).map(D=>D.path)),[q]),ce=s.filter(D=>!K.includes(D)&&!me.has(D.path)),Se=s.filter(D=>K.includes(D)||me.has(D.path)),he=D=>d.jsx(_y,{comment:D,onUpdate:ee=>y(D.id,ee),onDelete:()=>g(D.id),onDiscuss:b&&(()=>b({target:"comment",id:D.id})),readOnly:x,flash:C===D.id},D.id);return d.jsxs("section",{className:`chapter${M?" chapter-sticky":""}`,ref:D=>{ie.current=D,S(D)},children:[d.jsxs("header",{ref:H,className:`chapter-head${M?" chapter-head-sticky":""}${Q?" chapter-head-stuck":""}`,onClick:R,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[a," · ",l.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[l.files.length," file",l.files.length===1?"":"s",s.length>0?` · ${s.length} comment${s.length===1?"":"s"}`:" · no comments",J>0&&` · ${J}/${l.files.length} viewed`,f!=null&&!u&&d.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:` · ${f.toLocaleString()} lines to draw, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),M&&u&&d.jsx("button",{className:`btn btn-sm${Q?"":" chapter-about-idle"}`,"aria-expanded":A,onClick:D=>{D.stopPropagation(),V(ee=>!ee)},children:A?"hide explanation":"what this chapter is about"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:D=>{D.stopPropagation(),b({target:"chapter",id:l.id})},children:[d.jsx(Ze,{name:"comment"}),"discuss"]}),Q&&A&&d.jsx("div",{className:"chapter-head-about",onClick:D=>D.stopPropagation(),children:d.jsx(ni,{className:"prose",text:l.explanation})})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(ni,{className:"prose chapter-explanation",text:l.explanation}),ce.map(he),d.jsx(LN,{patch:q,comments:Se,renderComment:he,readOnly:x,chatBusy:_,onAddLineComment:(D,ee)=>m({path:D.path,line:D.side==="new"?D.line:null,body:ee,chapterId:l.id}),onAskAboutLine:v,viewedState:T}),!x&&l.files.length>0&&d.jsx(UN,{files:l.files,chapterId:l.id,onAdd:m})]})]})}function HN(l,a){switch(l.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${l.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(s=>s.id===l.chapterId);return`rewrote the "${(r==null?void 0:r.title)??l.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(s=>s.id===l.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(s=>s.id===l.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${l.path}:${l.line??"file"}`}}function $d(l,a){var s;if(l.target==="summary")return"the summary";if(l.target==="verdict")return"the verdict";if(l.target==="chapter")return((s=a.chapters.find(u=>u.id===l.id))==null?void 0:s.title)??"a chapter";if(l.target==="line")return l.path==null||l.line==null?"a line of the diff":`${l.path}:${l.line}${l.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===l.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function qN({turn:l,artifact:a}){return d.jsxs("div",{className:`chat-turn chat-turn-${l.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:l.role==="user"?l.steer?"You, while it worked":"You":"Reviewer"}),l.refs.length>0&&d.jsx("div",{className:"chat-refs",children:l.refs.map((r,s)=>d.jsx("span",{className:"chat-ref",children:$d(r,a)},s))}),d.jsx(ni,{className:"chat-turn-body prose",text:l.body}),l.revisions.map((r,s)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",HN(r,a)]},s)),l.refused.map((r,s)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},s))]})}function GN({artifact:l,reviewKey:a,refs:r,onClearRefs:s,onDropRef:u,onArtifact:f,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=$.useState(""),[v,_]=$.useState(!1),[x,S]=$.useState(null),[C]=yy(),T=l.chat??[],M=l.pendingChat??null,I=M!=null&&M.error==null,A=v||I,V=(H,R,q)=>{!H||A||(_(!0),S(null),Cd(a,{message:H,refs:R}).then(J=>{f(J),q==null||q()}).catch(J=>S(String(J.message??J))).finally(()=>_(!1)))},Q=H=>{_(!0),S(null),f0(a,H).then(R=>{var q;f(R),b(""),(q=y.current)==null||q.focus()}).catch(R=>S(String(R.message??R))).finally(()=>_(!1))},ie=()=>{const H=m.trim();if(!(!H||v)){if(I)return Q(H);V(H,r,()=>{var R;b(""),s(),(R=y.current)==null||R.focus()})}};return d.jsxs("section",{className:"card chat-panel",ref:g,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"talk to the reviewer"}),d.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),d.jsxs("div",{className:"card-body",children:[(T.length>0||M)&&d.jsxs("div",{className:"chat-log",children:[T.map(H=>d.jsx(qN,{turn:H,artifact:l},H.id)),M&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),M.refs.length>0&&d.jsx("div",{className:"chat-refs",children:M.refs.map((H,R)=>d.jsx("span",{className:"chat-ref",children:$d(H,l)},R))}),d.jsx(ni,{className:"chat-turn-body prose",text:M.message}),(M.steers??[]).map((H,R)=>d.jsxs("div",{className:"chat-steer",children:[d.jsx("div",{className:"chat-turn-who",children:"You, while it worked"}),d.jsx(ni,{className:"chat-turn-body prose",text:H})]},R)),M.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",M.error,!p&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>V([M.message,...M.steers??[]].join(`
|
|
249
249
|
|
|
250
|
-
`),C.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>o0(a).then(f).catch(H=>N(String(H.message??H))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:C.progress.length>0?d.jsx("ol",{className:"chat-progress",children:C.progress.map((H,R)=>d.jsx("li",{className:R===C.progress.length-1?"now":void 0,children:H},R))}):"Thinking… it re-reads the code before answering."})]})]}),p?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((H,R)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(R),title:"Remove",children:[Hd(H,l)," ✕"]},R))]}),d.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,readOnly:v,placeholder:I?"steer it — it reads this before its next step":x.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:H=>b(H.target.value),title:D==="enter"?"Enter sends · Shift+Enter for a new line":"⌘↵ sends · Enter for a new line",onKeyDown:H=>{yN(D,{...H,isComposing:H.nativeEvent.isComposing})&&(H.preventDefault(),ie())}}),d.jsx(Ys,{className:"chat-turn-body",text:m}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:ie,disabled:v||m.trim()==="",title:I?"Add this to the turn it's working on":void 0,children:[d.jsx(Ze,{name:"send"}),v?"sending…":I?"steer":"send message",d.jsx(za,{children:D==="enter"?"↵":"⌘↵"})]}),d.jsx("span",{className:"grow"}),l.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:A,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),c0(a).then(f).catch(H=>N(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),T&&d.jsx("div",{className:"error",children:T})]})]})}function vy(l){const a=F.useRef(null),r=F.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return F.useEffect(r,[l,r]),F.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function UN({initial:l,onSave:a,onCancel:r}){const[s,u]=F.useState(l),[f,p]=F.useState(!1),[y,g]=F.useState(null),m=vy(s),b=()=>{f||(p(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return d.jsxs("div",{className:"body-edit-wrap",children:[d.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:s,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!f&&r()}}),d.jsx(Ys,{className:"body-md",text:s}),y&&d.jsx("p",{className:"error",children:y}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:f,children:[f?"saving…":"save this body",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:r,disabled:f,children:"cancel"}),d.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const BN=l=>l?`@${l} — handing this review over to you.`:"";function IN({artifact:l,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=F.useState(Qb),[f,p]=F.useState(""),[y,g]=F.useState(""),[m,b]=F.useState(!1),[v,_]=F.useState(!1),[T,N]=F.useState(null),[D,x]=F.useState(null),[C,I]=F.useState(null),[A,Q]=F.useState(!1),[V,ie]=F.useState(null),[H,R]=F.useState(null),[q,J]=F.useState(!1),[K,me]=F.useState(-1),ce=vy(y),Se=F.useRef(null),he=kd(f),M=Vb(he),ee=l.summary!==""||l.comments.length>0,fe=!_b(l)&&ee,we=_b(l)&&l.sent==null&&ee,Le=A?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(Z=>[Z.title,Z.explanation]),l.comments.map(Z=>{var ye,Ne;return[Z.path,Z.line,Z.body,Z.severity,Z.status,Z.drifted,(ye=Z.alreadyRaised)==null?void 0:ye.decision,(Ne=Z.alreadyRaised)==null?void 0:Ne.where]})]):"";F.useEffect(()=>{if(!A)return;let Z=!1;return R(null),ie(null),Kb(a,"COMMENT").then(ye=>!Z&&ie(ye)).catch(ye=>{Z||(ie(null),R(String((ye==null?void 0:ye.message)??ye)))}),()=>{Z=!0}},[A,a,Le]);const S=!A||V!=null;F.useEffect(()=>{var Z;K<0||(Z=document.getElementById(`handoff-option-${K}`))==null||Z.scrollIntoView({block:"nearest"})},[K]);const z=F.useMemo(()=>E0(D??[],u),[D,u]),B=F.useMemo(()=>_0(z,f),[z,f]);F.useEffect(()=>{let Z=!1;return f0(a).then(ye=>!Z&&x(ye.logins)).catch(ye=>!Z&&I(String((ye==null?void 0:ye.message)??ye))),()=>{Z=!0}},[a]);const se=Z=>{p(Z),m||g(BN(kd(Z)))},pe=Z=>{se(Z),J(!1),me(-1)};F.useLayoutEffect(()=>{var Z;(Z=Se.current)==null||Z.showModal()},[]);const ve=()=>{v||!M||!S||(_(!0),N(null),r(he,y.trim(),A).catch(Z=>{N(String((Z==null?void 0:Z.message)??Z)),_(!1)}))};return d.jsx("dialog",{className:"handoff-dialog",ref:Se,"aria-label":`Hand off ${l.id}`,onCancel:Z=>{Z.preventDefault(),v||s()},onClick:Z=>{Z.target===Se.current&&!v&&s()},children:d.jsxs("div",{className:"handoff-body",children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"hand off"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:l.id})]}),d.jsxs("div",{className:"handoff-who",children:[d.jsx("span",{className:"handoff-at",children:"@"}),d.jsxs("div",{className:"handoff-combo",children:[d.jsx("input",{className:"handoff-login",autoFocus:!0,value:f,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":q&&B.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":K>=0?`handoff-option-${K}`:void 0,onFocus:()=>J(!0),onBlur:()=>J(!1),onChange:Z=>{se(Z.target.value),J(!0),me(0)},onKeyDown:Z=>{const ye=q&&B.length>0;if(Z.key==="ArrowDown"||Z.key==="ArrowUp"){if(Z.preventDefault(),!ye)return J(!0);const Ne=Z.key==="ArrowDown"?1:-1;me(Ge=>(Ge+Ne+B.length)%B.length);return}if(Z.key==="Enter"){const Ne=ye&&K>=0?B[K]:void 0;Ne&&Ne.login.toLowerCase()!==he.toLowerCase()?pe(Ne.login):ve();return}Z.key==="Escape"&&ye&&(Z.preventDefault(),J(!1),me(-1))}}),q&&B.length>0&&d.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:B.map((Z,ye)=>d.jsxs("li",{id:`handoff-option-${ye}`,role:"option","aria-selected":ye===K,className:ye===K?"on":void 0,onMouseEnter:()=>me(ye),onMouseDown:Ne=>{Ne.preventDefault(),pe(Z.login)},children:[d.jsxs("span",{className:"handoff-option-login",children:["@",Z.login]}),Z.recent&&d.jsx("span",{className:"faint",children:"handed to before"})]},Z.login))})]})]}),C&&d.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),d.jsx("textarea",{ref:ce,className:"body-edit",rows:2,value:y,onChange:Z=>{b(!0),g(Z.target.value)},onKeyDown:Z=>{Z.key==="Enter"&&(Z.metaKey||Z.ctrlKey)&&(Z.preventDefault(),ve())}}),d.jsxs("div",{className:"body-source",children:[d.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()!==""&&d.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),we&&d.jsx("p",{className:"faint handoff-says",children:"You already reviewed this PR, so this draft can't ride along — a handoff that carried it would be your second review. Send it yourself if that is what you mean."}),fe&&d.jsxs("div",{className:"handoff-with-review",children:[d.jsxs("label",{children:[d.jsx("input",{type:"checkbox",checked:A,disabled:v,onChange:Z=>Q(Z.target.checked)}),d.jsxs("span",{children:["also post the review — ",d.jsx("span",{className:"faint",children:Bd(l)})]})]}),A&&d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"faint",children:["Posts as a ",d.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",M?he:"them","'s to make. The findings keep their grades."]}),H?d.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",H]}):V?d.jsx("pre",{className:"body-preview",children:V.body}):d.jsx("p",{className:"faint",children:"building the body…"})]})]}),T&&d.jsx("p",{className:"error",children:T}),d.jsxs("p",{className:"faint handoff-says",children:[M?d.jsxs(d.Fragment,{children:["@",he]}):"They"," will be asked for this review and you will be taken off it."," ",A?"This row goes under sent, with the review on the PR.":l.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:ve,disabled:v||!M||!S,children:[d.jsx(Ze,{name:"arrowRight"}),v?"handing over…":M?`hand off to @${he}`:"hand off",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function HN({artifact:l,reviewKey:a,event:r,sending:s,checking:u,onSend:f,error:p,footer:y,next:g,onAdvance:m,onBody:b,anchorRef:v}){const[_,T]=F.useState(null),[N,D]=F.useState(null),[x,C]=F.useState(l.bodyOverride!=null),[I,A]=F.useState(!1),Q=l.bodyOverride!=null,V=l.priorSends??[];F.useEffect(()=>{Q&&C(!0)},[Q]);const ie=x&&!I?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(H=>[H.title,H.explanation]),l.comments.map(H=>{var R,q;return[H.path,H.line,H.body,H.severity,H.status,H.drifted,(R=H.alreadyRaised)==null?void 0:R.decision,(q=H.alreadyRaised)==null?void 0:q.where]})]):"";return F.useEffect(()=>{if(!x||I)return;let H=!1;return T(null),D(null),Kb(a,r).then(R=>{H||(T(R),D(null))}).catch(R=>{H||D(String(R))}),()=>{H=!0}},[a,r,ie,x,I]),l.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:v,children:[d.jsxs("strong",{children:["✔ sent as ",Ud[l.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(l.sent.at).toLocaleString()," · ",Bd(l),l.sent.auto?" · auto-sent by the daemon":"",V.length>0?` · review ${Sb(l)} on this PR`:""]}),d.jsx("span",{className:"grow"}),l.sent.url&&d.jsxs("a",{href:l.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(Ze,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:m,children:[g?`next review: ${g.pr.repo}#${g.pr.number}`:"back to the queue",d.jsx(Ze,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:y})]}):d.jsxs("div",{className:"send-panel",ref:v,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:Bd(l)}),d.jsxs("button",{className:"link",onClick:()=>C(!x),disabled:I,title:I?"save or cancel the body you are writing first":void 0,children:[d.jsx(Ze,{name:"eye"}),x?"hide what gets posted":"see what gets posted"]})]}),V.length>0&&d.jsxs("p",{className:"send-note",children:["This posts review ",Sb(l)+1," on this PR. What you sent before stays on GitHub — a new one sits beside it rather than replacing it."]}),d.jsx("div",{className:"send-action",children:d.jsxs("button",{className:`send-btn tone-bg-${cN[r]}`,disabled:s||u,onClick:f,children:[d.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),s?"sending…":u?"checking what others already raised…":`${Ud[r]} on ${l.id}`," ",d.jsx(za,{children:"s"})]})}),p&&d.jsx("p",{className:"error",children:p}),x&&d.jsxs(d.Fragment,{children:[N&&d.jsx("p",{className:"error",children:N}),_?I?d.jsx(UN,{initial:_.body,onSave:H=>b(H).then(()=>A(!1)),onCancel:()=>A(!1)}):d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"body-preview",children:_.body}),d.jsxs("div",{className:"body-source",children:[Q?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),d.jsx("button",{className:"link",onClick:()=>b(null).catch(H=>D(String((H==null?void 0:H.message)??H))),children:"build it from the review again"})]}):d.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),d.jsxs("button",{className:"link",onClick:()=>A(!0),children:[d.jsx(Ze,{name:"edit"}),Q?"keep editing it":"write it yourself"]})]})]}):!N&&d.jsx("p",{className:"faint",children:"building the body…"})]}),d.jsx("div",{className:"send-footer",children:y})]})}function xb({sends:l}){const a=l[l.length-1],r=l.length===1,s=f=>new Date(f).toLocaleDateString(),u=Ud[a.event];return d.jsxs("div",{children:[d.jsxs("strong",{children:["You already sent ",r?"a review":`${l.length} reviews`," on this PR",r?"":", the last"," on ",s(a.at),r?` — ${u}`:` as ${u}`,"."]})," ",a.url?d.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",children:r?"It is still on GitHub":"The last is still on GitHub"}):r?"It is still on GitHub":"The last is still on GitHub",", untouched by the draft below — a re-review replaces what cerber holds, never what was posted. Sending this one would be review ",l.length+1,"."]})}function qN({filed:l}){var s,u,f;const a=((s=l.review)==null?void 0:s.url)??((u=l.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return l.reason==="own-reply"&&l.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(l.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?d.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."]}):l.reason==="request-withdrawn"?d.jsxs("div",{children:[d.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(l.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."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((f=l.review)==null?void 0:f.at)??l.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?d.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 GN({entries:l,open:a,onToggle:r,anchorRef:s}){const u=f=>{const p=new Date(f);return Number.isNaN(p.getTime())?f:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:s,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:l.length>0?`${l.length} entr${l.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[d.jsx(Ze,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&d.jsx("div",{className:"card-body",children:l.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:l.map((f,p)=>({e:f,i:p})).reverse().map(({e:f,i:p})=>d.jsxs("li",{className:"history-row",title:f.at,children:[d.jsx("span",{className:"history-at",children:u(f.at)}),d.jsx("span",{className:"history-by",children:f.by}),d.jsx("span",{className:"history-what",children:f.what}),f.cause&&d.jsx("span",{className:"history-cause",children:f.cause})]},`${p}-${f.at}`))})})]})}function $N({handoff:l,sent:a,hasDraft:r}){const s=new Date(l.at).toLocaleDateString();return d.jsxs("div",{children:[d.jsxs("strong",{children:["You handed this to @",l.to," on ",s,"."]})," ","GitHub asks them for this review now",l.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",l.note?l.note.url?d.jsxs(d.Fragment,{children:["A"," ",d.jsx("a",{href:l.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):d.jsx(d.Fragment,{children:"A note on the PR says so."}):d.jsx(d.Fragment,{children:"No note was posted — only the request moved."})," ",a?d.jsx(d.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?d.jsx(d.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):d.jsx(d.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function YN({artifact:l,freshness:a,rerunning:r,onRerun:s}){const u=l.status==="running",f=(a==null?void 0:a.prState)??l.pr.state,p=f==="CLOSED"||f==="MERGED",y=l.refresh,g=a!=null&&a.changed?y:null,m=!p&&dN(l,a)?l.sent:null;if(u)return d.jsxs("div",{className:"freshness",children:[(l.sent?[]:l.priorSends??[]).length>0&&d.jsx(xb,{sends:l.priorSends??[]}),d.jsxs("div",{className:"freshness-running",children:[d.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 b=l.filed,v=l.handoff,_=l.sent?[]:l.priorSends??[];return!p&&!g&&!m&&!b&&!v&&_.length===0?null:d.jsxs("div",{className:"freshness",children:[_.length>0&&d.jsx(xb,{sends:_}),v&&d.jsx($N,{handoff:v,sent:l.sent,hasDraft:l.summary!==""||l.comments.length>0}),b&&d.jsx(qN,{filed:b}),p&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",f==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&d.jsxs(d.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&d.jsxs(d.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.",!l.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since you sent this review."})," ",(a==null?void 0:a.headSha)&&l.pr.headSha&&d.jsxs(d.Fragment,{children:["Now at ",d.jsx("code",{children:a.headSha.slice(0,7)}),", sent at"," ",d.jsx("code",{children:l.pr.headSha.slice(0,7)}),"."," "]}),"What you sent stays exactly as it was posted — cerber never re-anchors a review that is already on GitHub. Answering the new commits means a new draft, which replaces this one here and leaves what was posted alone.",d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function FN({reviewKey:l}){var va,Wn,Ea,Jt,Fn;const[a,r]=F.useState(null),[s,u]=F.useState(null),[f,p]=F.useState(null),[y,g]=F.useState(null),[m,b]=F.useState(!1),[v,_]=F.useState([]),[T,N]=F.useState(new Set),D=G=>N(de=>new Set(de).add(G)),[x,C]=F.useState(!1),[I,A]=F.useState([]),Q=F.useRef(null),[V,ie]=F.useState(new Set),[H,R]=F.useState(new Set),q=F.useRef(Promise.resolve()),J=F.useRef(0),[K,me]=F.useState(0),ce=F.useRef(new Map),[Se]=fy(),[he,M]=F.useState(null),ee=F.useRef(null),fe=F.useRef(null),we=F.useRef(null),Le=F.useRef(null),S=F.useRef(null),z=F.useRef(null),[B,se]=F.useState(!1),pe=F.useRef(null),[ve,Z]=F.useState(!1),[ye,Ne]=F.useState(!1),[Ge,$e]=F.useState(null),[Me,Dt]=F.useState(null);F.useEffect(()=>{if(!Me)return;const G=setTimeout(()=>Dt(null),1800);return()=>clearTimeout(G)},[Me]);const Pe=G=>{var de,ge;A(Te=>Te.some(Ye=>Ye.target===G.target&&Ye.id===G.id)?Te:[...Te,G]),(de=Q.current)==null||de.scrollIntoView({behavior:"smooth",block:"center"}),(ge=Q.current)==null||ge.focus()};F.useEffect(()=>{let G=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),$e(null),Ne(!1),ug(l).then(de=>{if(!G)return r(de),s0(l).then(ge=>{G||(p(ge),ge.changed&&r(ge.artifact))}).catch(ge=>!G&&g(String(ge.message??ge))).then(()=>{if(!(G||de.sent||de.status==="running"||de.comments.length===0))return Ne(!0),d0(l).then(ge=>!G&&r(ge)).catch(()=>{}).finally(()=>!G&&Ne(!1))})}).catch(de=>!G&&u(String(de))),()=>{G=!0}},[l]),F.useEffect(()=>{Qd().then(_).catch(()=>{})},[]),F.useEffect(()=>{const G=pe.current;if(!G)return;const de=()=>document.documentElement.style.setProperty("--top-h",`${G.offsetHeight}px`);de();const ge=new ResizeObserver(de);return ge.observe(G),()=>{ge.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const Hn=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,it=F.useRef(null),fn=((va=a==null?void 0:a.raisedCheck)==null?void 0:va.checkingSince)!=null||ye;F.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!Hn&&!fn)return;const G=setInterval(()=>{ug(l).then(de=>{var ge;if(r(de),de.status!=="running"){b(!1);const Te=it.current;Te!=null&&de.sent&&(((ge=de.run)==null?void 0:ge.startedAt)??"none")===Te&&u("The re-review didn't start, so nothing here changed — the review you sent is untouched. The history below says why."),it.current=null}}).catch(()=>{})},3e3);return()=>clearInterval(G)},[a==null?void 0:a.status,Hn,fn,l]);const Ot=(a==null?void 0:a.sent)!=null,Gt=F.useMemo(()=>M_(v,l,T),[v,l,T]),Wt=Gt.findIndex(G=>G.key===l),Lt=(Wt>0?Gt[Wt-1]:null)??null,vt=(Wt>=0&&Wt<Gt.length-1?Gt[Wt+1]:null)??null,Ln=G=>{window.location.hash=`#/r/${encodeURIComponent(G)}`},lt=()=>{vt?Ln(vt.key):window.location.hash="#/"},mt=F.useMemo(()=>{if(!a)return[];const G=R_(a.diff,a.chapters);return G.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:G}]:a.chapters},[a]);F.useEffect(()=>{let G=0;const de=()=>{var Re;G=0;const Ye=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,un=Ye+16;let oe=null;for(const Be of mt){const Je=(Re=ce.current.get(Be.id))==null?void 0:Re.getBoundingClientRect();Je&&Je.top<=un&&Je.bottom>un&&(oe={id:Be.id,stuck:Je.top<Ye-1})}M(Be=>(Be==null?void 0:Be.id)===(oe==null?void 0:oe.id)&&(Be==null?void 0:Be.stuck)===(oe==null?void 0:oe.stuck)?Be:oe)},ge=()=>{G||(G=requestAnimationFrame(de))};de(),window.addEventListener("scroll",ge,{passive:!0}),window.addEventListener("resize",ge);const Te=new ResizeObserver(ge);return Te.observe(document.body),()=>{cancelAnimationFrame(G),window.removeEventListener("scroll",ge),window.removeEventListener("resize",ge),Te.disconnect()}},[mt]);const At=F.useMemo(()=>{const G=k_((a==null?void 0:a.diff)??""),de=new Set(ja((a==null?void 0:a.diff)??"").filter(Te=>cf(Te.path)&&uf(Te.patch).isNew).map(Te=>Te.path)),ge=Te=>{const Ye=G.get(Te)??0;return de.has(Te)?Math.round(Ye/4):Ye};return new Map(mt.map(Te=>[Te.id,Te.files.reduce((Ye,un)=>Ye+ge(un),0)]))},[a==null?void 0:a.diff,mt]),_n=G=>{const de=At.get(G)??0;return de>MN?de:null},hn=G=>V.has(G)?_n(G)!=null:_n(G)==null,qn=G=>ie(de=>{const ge=new Set(de);return ge.has(G)?ge.delete(G):ge.add(G),ge});F.useEffect(()=>{ie(new Set),R(new Set)},[l]);const Sn=F.useMemo(()=>Object.fromEntries(ja((a==null?void 0:a.diff)??"").map(G=>[G.path,O_(G.patch)])),[a==null?void 0:a.diff]),wn=F.useMemo(()=>new Set(Object.keys(Sn).filter(G=>{var de;return((de=a==null?void 0:a.viewed)==null?void 0:de[G])===Sn[G]})),[Sn,a==null?void 0:a.viewed]),It={viewed:wn,peeked:H,onToggleViewed:G=>{const de=wn.has(G)?null:Sn[G]??null;R(Te=>{const Ye=new Set(Te);return Ye.delete(G),Ye}),r(Te=>{if(!Te)return Te;const Ye={...Te.viewed};return de===null?delete Ye[G]:Ye[G]=de,{...Te,viewed:Ye}});const ge=++J.current;q.current=q.current.then(()=>t0(l,G,de)).then(Te=>{ge===J.current&&r(Ye=>Ye&&Ye.id===Te.id?{...Ye,viewed:Te.viewed}:Ye)}).catch(Te=>u(String(Te)))},onTogglePeek:G=>R(de=>{const ge=new Set(de);return ge.has(G)?ge.delete(G):ge.add(G),ge})},pn=G=>{const de=mt[G];return de?(me(G),hn(de.id)||qn(de.id),de):null},Rt=(...G)=>{for(const de of G)if(de.current)return de.current.scrollIntoView({behavior:"smooth",block:"start"})},Gn=G=>{var ge;const de=pn(G);de&&((ge=ce.current.get(de.id))==null||ge.scrollIntoView({behavior:"smooth",block:"start"}))},$n=(G,de)=>{var Te;pn(G);const ge=(Te=a==null?void 0:a.comments.find(Ye=>Ye.id===de))==null?void 0:Te.path;ge&&wn.has(ge)&&R(Ye=>new Set(Ye).add(ge)),Dt(de),gy(de)},mn=uN(a==null?void 0:a.verdict);F.useEffect(()=>$e(null),[mn]);const He=()=>{!a||a.sent||ve||fn||(Z(!0),$e(null),u0(l,mn).then(({replyError:G,...de})=>{r(de),G&&$e(`Sent — but ${G}`),D(l)}).catch(G=>$e(String(G.message??G))).finally(()=>Z(!1)))};if(F.useEffect(()=>{const G=de=>{wN(de.target)||de.metaKey||de.ctrlKey||de.altKey||(de.key==="["&&Lt?Ln(Lt.key):de.key==="]"&&vt?Ln(vt.key):de.key==="n"?Gn(Math.min(mt.length-1,K+1)):de.key==="N"?Gn(Math.max(0,K-1)):de.key==="s"&&!Ot&&He())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[Lt==null?void 0:Lt.key,vt==null?void 0:vt.key,mt,K,Ot,mn,a==null?void 0:a.sent,ve,fn]),s&&!a)return d.jsx("p",{className:"error pad",children:s});if(!a)return d.jsx("p",{className:"muted pad",children:"Loading…"});const gn=G=>{var de;b(!0),u(null),it.current=a.sent?((de=a.run)==null?void 0:de.startedAt)??"none":null,Pb(l,G).then(r).catch(ge=>{u(String(ge)),b(!1)})},Ht=G=>G.then(r).catch(de=>u(String(de))),$t=G=>io(l,{status:G}).then(()=>{D(l),lt()}).catch(de=>u(String(de))),O=(G,de,ge)=>h0(l,{to:G,note:de,postReview:ge}).then(({artifact:Te,noteError:Ye,sendError:un,replyError:oe})=>{v0(G),r(Te),C(!1),D(l);const Re=[un&&`the review did not post: ${un}`,oe,Ye&&`the note did not post: ${Ye}`].filter(Boolean);Re.length>0?u(`Handed to @${G}, but ${Re.join("; and ")}`):lt()}),ne=(G,de)=>Ht(n0(l,G,de)),be=G=>Ht(i0(l,G)),je=G=>Ht(a0(l,G)),Qe=a.comments.filter(G=>!G.chapterId||!mt.some(de=>de.id===G.chapterId)),{inline:st,folded:Ae,dropped:_e,held:Ue,replies:Ct}=py(a),bt=a.comments.filter(G=>G.alreadyRaised&&G.status!=="dropped").length,jn=a.comments.filter(G=>G.status!=="dropped"&&G.drifted).length,Un=a.verdict?wb[a.verdict.recommendation]:"none",ba=mN(a),Pt=pN(a),St=a.pendingChat!=null&&a.pendingChat.error==null,Kt=a.status==="running"||St,ut=()=>Ht(Rd(l,{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}]})),Yn=(G,de)=>{Ht(Rd(l,{message:de,refs:[{target:"line",id:null,path:G.path,line:G.line,side:G.side}]}).then(ge=>{var Te;return(Te=Le.current)==null||Te.scrollIntoView({behavior:"smooth",block:"start"}),ge}))},ii=(Wn=a.run)!=null&&Wn.trusted?"ran the code":(Ea=a.run)!=null&&Ea.withSource?"read the full source":a.run?"read the diff only":"no run yet",ya=G=>{var de;return d.jsxs("button",{className:`verdict-pick${((de=a.verdict)==null?void 0:de.recommendation)===G?` verdict-pick-on tone-${wb[G]}`:""}`,title:G==="approve"?"Approve":G==="comment"?"Comment without blocking":"Request changes",onClick:()=>Ht(io(l,{verdictRecommendation:G})),children:[d.jsx(Ze,{name:_N[G]}),G.replace("_"," ")]},G)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:pe,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:a.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!Lt,title:Lt?`[ — ${Lt.id}: ${Lt.pr.title}`:"no more reviews this way",onClick:()=>Lt&&Ln(Lt.key),children:d.jsx(Ze,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!vt,title:vt?`] — ${vt.id}: ${vt.pr.title}`:"no more reviews this way",onClick:()=>vt&&Ln(vt.key),children:d.jsx(Ze,{name:"chevronRight"})})]}),Wt>=0&&d.jsxs("span",{className:"faint",children:[Wt+1," of ",Gt.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:vt?`next: ${vt.pr.title}`:Wt>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ze,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),d.jsx("span",{className:"grow"}),a.verdict&&(Ot?d.jsxs("span",{className:`chip tone-${Un}`,children:[a.verdict.recommendation.replace("_"," "),Pt&&` · ${Pt}`," · ",a.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${Un}`,title:"change it, or send — both are at the foot of the page",onClick:()=>Rt(ee,S),children:[a.verdict.recommendation.replace("_"," "),Pt&&` · ${Pt}`," · ",a.verdict.confidence,"%",d.jsx(Ze,{name:"down",size:12})]})),a.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:m,title:Ot?"Draft a new review at the current head. What you sent stays on GitHub — this replaces the draft here, and sending again posts a second review":a.run?"Review the current head again — this draft is replaced, comments and all":"Draft a review of this PR",onClick:()=>gn(!0),children:[d.jsx(Ze,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:a.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:ii}),((Jt=a.run)==null?void 0:Jt.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.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"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Rt(fe),children:"summary"}),a.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Rt(we),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var G;Rt(Le),(G=Q.current)==null||G.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{se(!0),Rt(z)},children:"history"})]}),mt.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Gn(0),children:"changes"}),mt.map((G,de)=>{const ge=G.files.length>0&&G.files.every(Te=>wn.has(Te));return d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${hn(G.id)?" rail-item-on":""}${ge?" rail-item-done":""}${(he==null?void 0:he.id)===G.id?" rail-item-here":""}`,onClick:()=>Gn(de),children:[d.jsxs("span",{className:"grow",children:[de+1," · ",G.title]}),d.jsxs("span",{className:"rail-count",title:ge?"every file viewed":void 0,children:[ge?"✓ ":"",G.files.length,"f"]})]}),a.comments.filter(Te=>Te.chapterId===G.id).map(Te=>d.jsxs("button",{className:`rail-comment${Te.status==="dropped"?" rail-comment-dropped":""}`,title:`${Te.path}${Te.line!=null?`:${Te.line}`:""} — ${Te.body}`,onClick:()=>$n(de,Te.id),children:[d.jsx("span",{className:`rail-dot tone-${SN(Te,Un)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[Te.path.split("/").pop(),Te.line!=null?`:${Te.drifted?"~":""}${Te.line}`:""]})]},Te.id))]},G.id)})]}),d.jsx("button",{className:`lab rail-lab-btn${mt.length>0?" rail-lab":""}`,onClick:()=>Rt(ee,S),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[a.comments.length-_e.length," keeping · ",_e.length," dropped"]}),d.jsxs("div",{children:[st.length," inline · ",Ae.length," folded into body"]}),jn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[jn," drifted"]}),d.jsx(kN,{check:a.raisedCheck??null,raised:bt,held:Ue.length,replies:Ct.length})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(YN,{artifact:a,freshness:f,rerunning:m,onRerun:gn}),y&&d.jsxs("div",{className:"freshness",title:y,children:[d.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."]}),s&&d.jsx("div",{className:"error",children:s}),((Fn=a.run)==null?void 0:Fn.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),d.jsx("div",{className:"card card-summary",ref:fe,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(ni,{className:"prose lead",text:a.summary||"(no summary)"}),!Ot&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"summary",id:null}),children:[d.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&d.jsx("div",{className:`card card-why tone-border-${Un}`,ref:we,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[Td(a)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Td(a)}),Td(a)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.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"]})]}),d.jsx(ni,{className:"prose lead",text:a.verdict.reasoning}),!Ot&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"verdict",id:null}),children:[d.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),mt.map((G,de)=>d.jsx(DN,{chapter:G,n:de+1,diff:a.diff,comments:a.comments.filter(ge=>ge.chapterId===G.id),open:hn(G.id),heavy:_n(G.id),onToggle:()=>qn(G.id),onUpdateComment:ne,onDeleteComment:be,onAddComment:je,onDiscuss:Ot?void 0:Pe,onAskAboutLine:Yn,chatBusy:St,readOnly:Ot,flash:Me,viewedState:It,sticky:Se,stuck:(he==null?void 0:he.id)===G.id&&he.stuck,anchorRef:ge=>{ge?ce.current.set(G.id,ge):ce.current.delete(G.id)}},G.id)),Qe.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:Qe.map(G=>d.jsx(yy,{comment:G,onUpdate:de=>ne(G.id,de),onDelete:()=>be(G.id),onDiscuss:Ot?void 0:()=>Pe({target:"comment",id:G.id}),readOnly:Ot},G.id))})]}),d.jsx(GN,{entries:a.history??[],open:B,onToggle:()=>se(G=>!G),anchorRef:z})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(jN,{artifact:a,reviewKey:l,refs:I,onClearRefs:()=>A([]),onDropRef:G=>A(de=>de.filter((ge,Te)=>Te!==G)),onArtifact:r,readOnly:Ot,inputRef:Q,anchorRef:Le}),d.jsxs("div",{className:"cockpit-decide",children:[!Ot&&ba&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:ba})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:ut,disabled:St,children:[d.jsx(Ze,{name:"comment"}),St?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Ot&&d.jsxs("div",{className:"verdict-bar",ref:ee,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(ya)]}),d.jsx(HN,{artifact:a,reviewKey:l,event:mn,sending:ve,checking:fn,onSend:He,error:Ge,next:vt,onAdvance:lt,onBody:G=>io(l,{bodyOverride:G}).then(r),anchorRef:S,footer:d.jsxs(d.Fragment,{children:[!Ot&&d.jsx("span",{className:"faint",children:"not sending?"}),!Ot&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:vt?`Settle it locally and go to ${vt.id}`:"Settle it locally and go back to the queue",onClick:()=>$t("reviewed"),children:[d.jsx(Ze,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:vt?`Leave it and go to ${vt.id}`:"Leave it and go back to the queue",onClick:()=>$t("skipped"),children:[d.jsx(Ze,{name:"skip"}),"skip"]})]}),d.jsxs("button",{className:"btn btn-sm",title:Kt?"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:()=>C(!0),disabled:x||Kt,children:[d.jsx(Ze,{name:"arrowRight"}),"hand off"]}),d.jsxs("a",{className:"btn btn-sm",href:p0(l),children:[d.jsx(Ze,{name:"download"}),"export .md"]})]})}),x&&d.jsx(IN,{artifact:a,reviewKey:l,onConfirm:O,onCancel:()=>C(!1)})]})]})]})]})}const Ab="cerber.notify.seen.v2",PN="cerber.notify.seen",qd="cerber.notify",KN=1e4,Is=l=>l.status==="ready",Gd=l=>{try{return localStorage.getItem(l)}catch{return null}},$d=(l,a)=>{try{localStorage.setItem(l,a)}catch{}};function ZN(l,a){return l?!!(l.enabled&&l.pollEnabled&&l.autoReview):a}function Ey(l,a){return l.announceable===!1||l.status==="running"?!1:l.status==="awaiting"?!a:!0}const _y=":draft",so=l=>`${l.key}${_y}`,Sy=l=>Is(l)?so(l):l.key;function XN(l,a,r){const s=new Set(a);return qs(l).filter(u=>Ey(u,r)&&!s.has(Sy(u)))}function VN(l,a,r=[]){const s=new Set(r),u=new Set(qs(l).map(p=>p.key)),f=[];for(const p of l){if(u.has(p.key)&&!Ey(p,a)){for(const y of[p.key,so(p)])s.has(y)&&f.push(y);continue}f.push(p.key),(Is(p)||!u.has(p.key)||s.has(so(p)))&&f.push(so(p))}return f}const xd=l=>`${l.pr.repo}#${l.pr.number}`,QN={approve:"approves",comment:"comments",request_changes:"requests changes"};function WN(l){const a=l.verdict?QN[l.verdict.recommendation]:"drafted",r=l.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function JN(l){if(l.length===0)return null;const a=`cerber:${l.map(Sy).sort().join("|")}`;if(l.length===1){const u=l[0];return{title:Is(u)?`${xd(u)} draft ready`:`${xd(u)} awaits your review`,body:Is(u)?`${WN(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=l.slice(0,3).map(xd),s=l.length-r.length;return{title:l.every(Is)?`${l.length} drafts ready`:`${l.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const eT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function tT(l,a=window.location.hostname){return!(l!=null&&l.enabled)||!l.notify?!1:eT.has(a)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Gd(qd)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function nT(){const l=Hl();if(l==="unsupported"||l==="blocked")return l;if(l==="on")return $d(qd,"off"),Hl();if($d(qd,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function aT(l){const a=new Notification(l.title,{body:l.body,tag:l.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=l.key?`#/r/${encodeURIComponent(l.key)}`:"#/",a.close()}}function iT(l,a){const r=l??a;if(!r)return null;let s;try{s=JSON.parse(r)}catch{return null}if(!Array.isArray(s))return null;const u=s.filter(f=>typeof f=="string");return l?u:u.flatMap(f=>[f,`${f}${_y}`])}function lT(){const l=F.useRef(null),a=F.useRef(!0),[r,s]=F.useState(!1);return F.useEffect(()=>{let u=!0;l.current=iT(Gd(Ab),Gd(PN));const f=()=>Promise.all([Qd(),Fb().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=tT(g);s(m),a.current=ZN(g,a.current);const b=a.current,v=l.current;if(l.current=VN(y,b,v??[]),$d(Ab,JSON.stringify(l.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const _=JN(XN(y,v,b));_&&aT(_)}).catch(()=>{});f();const p=setInterval(f,KN);return()=>{u=!1,clearInterval(p)}},[]),r}function wy(){const[l,a]=F.useState(Hl);return F.useEffect(()=>{const r=()=>a(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[l,()=>void nT().then(a)]}const ro=l=>{window.location.hash=`#/r/${encodeURIComponent(l)}`};function sT(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function rT({daemon:l}){return l!=null&&l.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[l.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),l.repos.length>0?l.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(l.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:l.autoReview?"on":"off"})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:l.autoSend==="on"?"on":"shadow"})," ≥",l.autoSendThreshold,"%",l.autoSend==="on"?` · ${l.autoSent} sent`:` · ${l.autoSendCandidates} candidate${l.autoSendCandidates===1?"":"s"}`]}),l.trustedRuns&&d.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:[d.jsx(Ze,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),l.lastPollError?d.jsx("span",{className:"danger",title:l.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:l.polling?"polling now…":[l.lastSummary?`last: ${l.lastSummary}`:null,l.nextPollAt?`next ${new Date(l.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function oT({r:l,selected:a,onSelect:r,onOpen:s,awaiting:u}){const f=K_(l),p=U_(l),y=u?Y_(l,u):null;return d.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${l.pr.owner}/${l.pr.repo}#${l.pr.number}`,children:[l.pr.repo,"#",l.pr.number]}),d.jsx("span",{className:"col-author",title:l.pr.author,children:l.pr.author}),d.jsx("span",{className:"col-title",title:l.pr.title,children:l.pr.title}),l.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&d.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&d.jsx("span",{className:"tag tag-done",children:p}),d.jsx("span",{className:"col-comments",children:l.commentCount||""}),d.jsx("span",{className:"col-size",children:l.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[l.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",l.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",l.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${f.tone}`,children:f.label}),d.jsx("span",{className:"col-age",children:Yb(l.updatedAt)})]})}function Rb({autoFocus:l}){const[a,r]=F.useState(""),[s,u]=F.useState(!1),[f,p]=F.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),p(null),l0(m).then(b=>ro(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:y,children:[d.jsx(Ze,{name:"plus"}),d.jsx("input",{className:"pull-input",value:a,autoFocus:l,disabled:s,onChange:g=>{r(g.target.value),f&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),f&&d.jsx("span",{className:"pull-error",children:f})]})}function cT({text:l}){const a=F.useRef(null),[r,s]=F.useState(!1);return F.useLayoutEffect(()=>{const u=a.current;if(!u)return;const f=()=>s(u.scrollHeight-u.clientHeight>4);f();const p=new ResizeObserver(f);return p.observe(u),()=>p.disconnect()},[l]),d.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(ni,{className:"prose",text:l})})}function uT(){var J;const[l,a]=F.useState(null),[r,s]=F.useState(null),[u,f]=F.useState(null),[p,y]=F.useState(new Set),[g,m]=F.useState("inbox"),[b,v]=F.useState(null),_=F.useRef(!0);F.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const T=()=>{Qd().then(K=>_.current&&a(K)).catch(K=>_.current&&f(String(K))),Fb().then(K=>_.current&&s(K)).catch(()=>{})};F.useEffect(()=>{T();const K=setInterval(T,1e4);return()=>clearInterval(K)},[]);const N=l??[],D=F.useMemo(()=>z_(N,r),[N,r]),x=D.requests,C=j_(g,D),I=D[C];F.useEffect(()=>{C!==g&&m(C)},[C,g]);const A=I.find(K=>K.key===b)??I[0]??null,Q=K=>{y(me=>new Set(me).add(K)),Pb(K).then(()=>T()).catch(me=>_.current&&f(String(me))).finally(()=>{_.current&&y(me=>{const ce=new Set(me);return ce.delete(K),ce})})};if(F.useEffect(()=>{const K=me=>{if(sT(me.target)||me.metaKey||me.ctrlKey||me.altKey)return;const ce=I.findIndex(he=>he.key===(A==null?void 0:A.key)),Se=he=>{const M=I[Math.min(I.length-1,Math.max(0,ce+he))];M&&v(M.key)};me.key==="j"||me.key==="ArrowDown"?(me.preventDefault(),Se(1)):me.key==="k"||me.key==="ArrowUp"?(me.preventDefault(),Se(-1)):me.key==="Enter"&&A?ro(A.key):me.key==="r"&&A&&A.status!=="running"&&A.status!=="sent"&&Q(A.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[I,A==null?void 0:A.key]),u&&!l)return d.jsx("p",{className:"error",children:u});if(!l)return d.jsx("p",{className:"muted pad",children:"Loading…"});const V=I.reduce((K,me)=>K+(me.costUsd??0),0),ie=A?X_(A,r):null,H=A?p.has(A.key):!1,R=Ad.filter(K=>D[K].length>0),q=K=>d.jsxs("button",{className:`tab${C===K?" tab-on":""}${Ad.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:Cu[K].title,onClick:()=>m(K),children:[Cu[K].label," ",d.jsx("span",{className:"tab-count",children:D[K].length})]},K);return d.jsxs(d.Fragment,{children:[d.jsx(rT,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),N.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(Rb,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[C_.map(q),R.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),R.map(q),d.jsx("span",{className:"grow"}),d.jsx(Rb,{}),V>0&&d.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:["≈$",V.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx("span",{className:"col-slug",children:"repo#pr"}),d.jsx("span",{className:"col-author",children:"author"}),d.jsx("span",{className:"col-title",children:"title"}),d.jsx("span",{className:"col-comments",children:"c"}),d.jsx("span",{className:"col-size",children:"size"}),d.jsx("span",{className:"col-verdict",children:"verdict"}),d.jsx("span",{className:"col-age",children:"upd"})]}),I.length===0?d.jsx("div",{className:"empty-tab",children:C==="inbox"&&x.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:F_(x)}),d.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[d.jsx(Ze,{name:"arrowRight"}),"show ",x.length===1?"it":`all ${x.length}`]})]}):d.jsx("p",{className:"muted",children:C==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Cu[C].label} right now.`})}):I.map(K=>d.jsx(oT,{r:K,selected:K.key===(A==null?void 0:A.key),onSelect:()=>v(K.key),onOpen:()=>ro(K.key),awaiting:L_(K,x)?B_(K,r):null},K.key)),A&&ie&&d.jsxs("div",{className:"cursor-strip",children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[A.pr.owner,"/",A.pr.repo,"#",A.pr.number,A.pr.headRefName&&A.pr.baseRefName?` · ${A.pr.headRefName} → ${A.pr.baseRefName}`:""]}),d.jsx(cT,{text:ie.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[ie.meta.join(" · "),((J=A.sent)==null?void 0:J.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:A.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>ro(A.key),children:[d.jsx(Ze,{name:"arrowRight"}),"open review ",d.jsx(za,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:A.status==="sent"||A.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>io(A.key,{status:"skipped"}).then(T).catch(K=>f(String(K))),children:[d.jsx(Ze,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:H||A.status==="running",title:A.status==="sent"?"Draft a review of the PR's current head. What you sent stays on GitHub.":"Draft a review of the PR's current head.",onClick:()=>Q(A.key),children:[d.jsx(Ze,{name:"rerun"}),H?"starting…":A.status==="awaiting"||A.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const go="cerber.theme";function Ny(l){return l==="light"||l==="dark"?l:"system"}function dT(){try{return Ny(localStorage.getItem(go))}catch{return"system"}}function Ty(l,a=document.documentElement){l==="system"?delete a.dataset.theme:a.dataset.theme=l}function fT(l,a){try{const r=a??localStorage;l==="system"?r.removeItem(go):r.setItem(go,l)}catch{}}function hT(){xy(Ty)}function xy(l){const a=r=>{(r.key===go||r.key===null)&&l(Ny(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function pT(){const[l,a]=F.useState(dT);return F.useEffect(()=>xy(a),[]),[l,s=>{fT(s),Ty(s),a(s)}]}const mT=[{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"}],kb=l=>l instanceof Error?l.message:String(l),gT={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"},bT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}],yT=[{choice:"mod-enter",label:"⌘↵ sends a chat message, Enter starts a new line"},{choice:"enter",label:"Enter sends a chat message, Shift+Enter starts a new line"}];function vT({daemonAnnounces:l}){const[a,r]=wy(),[s,u]=pT(),[f,p]=fy(),[y,g]=my(),[m,b]=F.useState(null),[v,_]=F.useState(""),[T,N]=F.useState(null),[D,x]=F.useState(!1);F.useEffect(()=>{m0().then(b).catch(A=>N(kb(A)))},[]);const C=A=>{x(!0),N(null),A.then(b).catch(Q=>N(kb(Q))).finally(()=>x(!1))};if(T&&!m)return d.jsx("p",{className:"error",children:T});if(!m)return d.jsx("p",{className:"muted",children:"Loading…"});const I=l&&m.daemon.poll&&m.daemon.notify;return d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.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."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.poll,disabled:D,onChange:A=>C(Lu({poll:A.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",m.daemon.intervalMinutes,"m)"]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReview,disabled:D||!m.daemon.poll,onChange:A=>C(Lu({autoReview:A.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),d.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",d.jsx("code",{children:m.path})," under"," ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.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.'}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.notify,disabled:D||!m.daemon.poll,onChange:A=>C(Lu({notify:A.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),d.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 ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",d.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'," ",d.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||I,onChange:r})," ",I?"let this browser announce them instead":gT[a]]}),d.jsx("p",{className:"muted",children:I?d.jsx(d.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."}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:m.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."]})}),d.jsx("h1",{id:"appearance",children:"Appearance"}),d.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:bT.map(({choice:A,label:Q})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"theme",checked:s===A,onChange:()=>u(A)})," ",Q]},A))}),d.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 ",d.jsx("code",{children:m.path}),"."]}),d.jsx("h1",{children:"Review page"}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:f,onChange:A=>p(A.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),d.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. Deep in a long file its name and Viewed box stay in reach. Per-browser, like the theme."}),yT.map(({choice:A,label:Q})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"send-key",checked:y===A,onChange:()=>g(A)})," ",Q]},A)),d.jsx("p",{className:"muted",children:"In the conversation with the reviewer. ⌘↵ sends under either choice, and the other boxes — comments, the review body, a handoff note — always take ⌘↵, since what goes in them runs to several lines. Per-browser, like the theme."}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.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."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:m.path}),"."]}),d.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".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:v,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:D,onChange:A=>_(A.target.value),onKeyDown:A=>{A.key==="Enter"&&!D&&v.trim()&&(C(Du(v.trim())),_(""))}}),d.jsx("button",{className:"btn",disabled:D||!v.trim(),onClick:()=>{C(Du(v.trim())),_("")},children:"trust"})]}),T&&d.jsx("p",{className:"error",children:T}),m.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.trust.map(A=>d.jsxs("tr",{className:A.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:A.rule})}),d.jsx("td",{className:"muted",children:A.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:D,onClick:()=>C(Du(A.rule,!0)),children:"remove"})})]},A.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:mT.map(A=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:A.rule})}),d.jsx("td",{className:"muted",children:A.meaning})]},A.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.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 ",d.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 ",d.jsx("code",{children:"--no-trust"})," to prevent that."]}),d.jsxs("p",{className:"muted settings-version",children:["cerber ",m.version]})]})}function Ob(){const l=window.location.hash,a=l.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:l==="#/settings"?{view:"settings"}:{view:"queue"}}const Cb={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."},Mb="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 ET({daemonAnnounces:l}){const[a,r]=wy();return l?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Mb,"aria-label":Mb,children:d.jsx(Ze,{name:"bell",size:15})}):a==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${a}`,title:Cb[a],"aria-label":Cb[a],"aria-pressed":a==="on",onClick:r,children:d.jsx(Ze,{name:a==="on"?"bell":"bellOff",size:15})})}function _T(){const[l,a]=F.useState(Ob()),r=lT();return F.useEffect(()=>{const s=()=>a(Ob());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),l.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(FN,{reviewKey:l.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(NS,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),l.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"j"}),d.jsx(za,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"r"}),"review now"]})]}),d.jsx(ET,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ze,{name:"settings",size:15})})]})}),l.view==="queue"?d.jsx(uT,{}):d.jsx(vT,{daemonAnnounces:r})]})}hT();HE.createRoot(document.getElementById("root")).render(d.jsx(LE.StrictMode,{children:d.jsx(_T,{})}));
|
|
250
|
+
`),M.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>h0(a).then(f).catch(H=>S(String(H.message??H))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:M.progress.length>0?d.jsx("ol",{className:"chat-progress",children:M.progress.map((H,R)=>d.jsx("li",{className:R===M.progress.length-1?"now":void 0,children:H},R))}):"Thinking… it re-reads the code before answering."})]})]}),p?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((H,R)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(R),title:"Remove",children:[$d(H,l)," ✕"]},R))]}),d.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,readOnly:v,placeholder:I?"steer it — it reads this before its next step":T.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:H=>b(H.target.value),title:C==="enter"?"Enter sends · Shift+Enter for a new line":"⌘↵ sends · Enter for a new line",onKeyDown:H=>{NN(C,{...H,isComposing:H.nativeEvent.isComposing})&&(H.preventDefault(),ie())}}),d.jsx(Fs,{className:"chat-turn-body",text:m}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:ie,disabled:v||m.trim()==="",title:I?"Add this to the turn it's working on":void 0,children:[d.jsx(Ze,{name:"send"}),v?"sending…":I?"steer":"send message",d.jsx(za,{children:C==="enter"?"↵":"⌘↵"})]}),d.jsx("span",{className:"grow"}),l.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:A,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),p0(a).then(f).catch(H=>S(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),x&&d.jsx("div",{className:"error",children:x})]})]})}function Sy(l){const a=$.useRef(null),r=$.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return $.useEffect(r,[l,r]),$.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function $N({initial:l,onSave:a,onCancel:r}){const[s,u]=$.useState(l),[f,p]=$.useState(!1),[y,g]=$.useState(null),m=Sy(s),b=()=>{f||(p(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return d.jsxs("div",{className:"body-edit-wrap",children:[d.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:s,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!f&&r()}}),d.jsx(Fs,{className:"body-md",text:s}),y&&d.jsx("p",{className:"error",children:y}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:f,children:[f?"saving…":"save this body",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:r,disabled:f,children:"cancel"}),d.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const YN=l=>l?`@${l} — handing this review over to you.`:"";function FN({artifact:l,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=$.useState(ey),[f,p]=$.useState(""),[y,g]=$.useState(""),[m,b]=$.useState(!1),[v,_]=$.useState(!1),[x,S]=$.useState(null),[C,T]=$.useState(null),[M,I]=$.useState(null),[A,V]=$.useState(!1),[Q,ie]=$.useState(null),[H,R]=$.useState(null),[q,J]=$.useState(!1),[K,me]=$.useState(-1),ce=Sy(y),Se=$.useRef(null),he=Md(f),D=Jb(he),ee=l.summary!==""||l.comments.length>0,fe=!wb(l)&&ee,we=wb(l)&&l.sent==null&&ee,Le=A?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(Z=>[Z.title,Z.explanation]),l.comments.map(Z=>{var ye,Ne;return[Z.path,Z.line,Z.body,Z.severity,Z.status,Z.drifted,(ye=Z.alreadyRaised)==null?void 0:ye.decision,(Ne=Z.alreadyRaised)==null?void 0:Ne.where]})]):"";$.useEffect(()=>{if(!A)return;let Z=!1;return R(null),ie(null),Vb(a,"COMMENT").then(ye=>!Z&&ie(ye)).catch(ye=>{Z||(ie(null),R(String((ye==null?void 0:ye.message)??ye)))}),()=>{Z=!0}},[A,a,Le]);const w=!A||Q!=null;$.useEffect(()=>{var Z;K<0||(Z=document.getElementById(`handoff-option-${K}`))==null||Z.scrollIntoView({block:"nearest"})},[K]);const z=$.useMemo(()=>T0(C??[],u),[C,u]),B=$.useMemo(()=>A0(z,f),[z,f]);$.useEffect(()=>{let Z=!1;return b0(a).then(ye=>!Z&&T(ye.logins)).catch(ye=>!Z&&I(String((ye==null?void 0:ye.message)??ye))),()=>{Z=!0}},[a]);const se=Z=>{p(Z),m||g(YN(Md(Z)))},pe=Z=>{se(Z),J(!1),me(-1)};$.useLayoutEffect(()=>{var Z;(Z=Se.current)==null||Z.showModal()},[]);const ve=()=>{v||!D||!w||(_(!0),S(null),r(he,y.trim(),A).catch(Z=>{S(String((Z==null?void 0:Z.message)??Z)),_(!1)}))};return d.jsx("dialog",{className:"handoff-dialog",ref:Se,"aria-label":`Hand off ${l.id}`,onCancel:Z=>{Z.preventDefault(),v||s()},onClick:Z=>{Z.target===Se.current&&!v&&s()},children:d.jsxs("div",{className:"handoff-body",children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"hand off"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:l.id})]}),d.jsxs("div",{className:"handoff-who",children:[d.jsx("span",{className:"handoff-at",children:"@"}),d.jsxs("div",{className:"handoff-combo",children:[d.jsx("input",{className:"handoff-login",autoFocus:!0,value:f,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":q&&B.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":K>=0?`handoff-option-${K}`:void 0,onFocus:()=>J(!0),onBlur:()=>J(!1),onChange:Z=>{se(Z.target.value),J(!0),me(0)},onKeyDown:Z=>{const ye=q&&B.length>0;if(Z.key==="ArrowDown"||Z.key==="ArrowUp"){if(Z.preventDefault(),!ye)return J(!0);const Ne=Z.key==="ArrowDown"?1:-1;me(Ge=>(Ge+Ne+B.length)%B.length);return}if(Z.key==="Enter"){const Ne=ye&&K>=0?B[K]:void 0;Ne&&Ne.login.toLowerCase()!==he.toLowerCase()?pe(Ne.login):ve();return}Z.key==="Escape"&&ye&&(Z.preventDefault(),J(!1),me(-1))}}),q&&B.length>0&&d.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:B.map((Z,ye)=>d.jsxs("li",{id:`handoff-option-${ye}`,role:"option","aria-selected":ye===K,className:ye===K?"on":void 0,onMouseEnter:()=>me(ye),onMouseDown:Ne=>{Ne.preventDefault(),pe(Z.login)},children:[d.jsxs("span",{className:"handoff-option-login",children:["@",Z.login]}),Z.recent&&d.jsx("span",{className:"faint",children:"handed to before"})]},Z.login))})]})]}),M&&d.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),d.jsx("textarea",{ref:ce,className:"body-edit",rows:2,value:y,onChange:Z=>{b(!0),g(Z.target.value)},onKeyDown:Z=>{Z.key==="Enter"&&(Z.metaKey||Z.ctrlKey)&&(Z.preventDefault(),ve())}}),d.jsxs("div",{className:"body-source",children:[d.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()!==""&&d.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),we&&d.jsx("p",{className:"faint handoff-says",children:"You already reviewed this PR, so this draft can't ride along — a handoff that carried it would be your second review. Send it yourself if that is what you mean."}),fe&&d.jsxs("div",{className:"handoff-with-review",children:[d.jsxs("label",{children:[d.jsx("input",{type:"checkbox",checked:A,disabled:v,onChange:Z=>V(Z.target.checked)}),d.jsxs("span",{children:["also post the review — ",d.jsx("span",{className:"faint",children:qd(l)})]})]}),A&&d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"faint",children:["Posts as a ",d.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",D?he:"them","'s to make. The findings keep their grades."]}),H?d.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",H]}):Q?d.jsx("pre",{className:"body-preview",children:Q.body}):d.jsx("p",{className:"faint",children:"building the body…"})]})]}),x&&d.jsx("p",{className:"error",children:x}),d.jsxs("p",{className:"faint handoff-says",children:[D?d.jsxs(d.Fragment,{children:["@",he]}):"They"," will be asked for this review and you will be taken off it."," ",A?"This row goes under sent, with the review on the PR.":l.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:ve,disabled:v||!D||!w,children:[d.jsx(Ze,{name:"arrowRight"}),v?"handing over…":D?`hand off to @${he}`:"hand off",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function PN({artifact:l,reviewKey:a,event:r,sending:s,checking:u,onSend:f,error:p,footer:y,next:g,onAdvance:m,onBody:b,anchorRef:v}){const[_,x]=$.useState(null),[S,C]=$.useState(null),[T,M]=$.useState(l.bodyOverride!=null),[I,A]=$.useState(!1),V=l.bodyOverride!=null,Q=l.priorSends??[];$.useEffect(()=>{V&&M(!0)},[V]);const ie=T&&!I?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(H=>[H.title,H.explanation]),l.comments.map(H=>{var R,q;return[H.path,H.line,H.body,H.severity,H.status,H.drifted,(R=H.alreadyRaised)==null?void 0:R.decision,(q=H.alreadyRaised)==null?void 0:q.where]})]):"";return $.useEffect(()=>{if(!T||I)return;let H=!1;return x(null),C(null),Vb(a,r).then(R=>{H||(x(R),C(null))}).catch(R=>{H||C(String(R))}),()=>{H=!0}},[a,r,ie,T,I]),l.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:v,children:[d.jsxs("strong",{children:["✔ sent as ",Hd[l.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(l.sent.at).toLocaleString()," · ",qd(l),l.sent.auto?" · auto-sent by the daemon":"",Q.length>0?` · review ${Nb(l)} on this PR`:""]}),d.jsx("span",{className:"grow"}),l.sent.url&&d.jsxs("a",{href:l.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(Ze,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:m,children:[g?`next review: ${g.pr.repo}#${g.pr.number}`:"back to the queue",d.jsx(Ze,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:y})]}):d.jsxs("div",{className:"send-panel",ref:v,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:qd(l)}),d.jsxs("button",{className:"link",onClick:()=>M(!T),disabled:I,title:I?"save or cancel the body you are writing first":void 0,children:[d.jsx(Ze,{name:"eye"}),T?"hide what gets posted":"see what gets posted"]})]}),Q.length>0&&d.jsxs("p",{className:"send-note",children:["This posts review ",Nb(l)+1," on this PR. What you sent before stays on GitHub — a new one sits beside it rather than replacing it."]}),d.jsx("div",{className:"send-action",children:d.jsxs("button",{className:`send-btn tone-bg-${mN[r]}`,disabled:s||u,onClick:f,children:[d.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),s?"sending…":u?"checking what others already raised…":`${Hd[r]} on ${l.id}`," ",d.jsx(za,{children:"s"})]})}),p&&d.jsx("p",{className:"error",children:p}),T&&d.jsxs(d.Fragment,{children:[S&&d.jsx("p",{className:"error",children:S}),_?I?d.jsx($N,{initial:_.body,onSave:H=>b(H).then(()=>A(!1)),onCancel:()=>A(!1)}):d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"body-preview",children:_.body}),d.jsxs("div",{className:"body-source",children:[V?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),d.jsx("button",{className:"link",onClick:()=>b(null).catch(H=>C(String((H==null?void 0:H.message)??H))),children:"build it from the review again"})]}):d.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),d.jsxs("button",{className:"link",onClick:()=>A(!0),children:[d.jsx(Ze,{name:"edit"}),V?"keep editing it":"write it yourself"]})]})]}):!S&&d.jsx("p",{className:"faint",children:"building the body…"})]}),d.jsx("div",{className:"send-footer",children:y})]})}function Rb({sends:l}){const a=l[l.length-1],r=l.length===1,s=f=>new Date(f).toLocaleDateString(),u=Hd[a.event];return d.jsxs("div",{children:[d.jsxs("strong",{children:["You already sent ",r?"a review":`${l.length} reviews`," on this PR",r?"":", the last"," on ",s(a.at),r?` — ${u}`:` as ${u}`,"."]})," ",a.url?d.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",children:r?"It is still on GitHub":"The last is still on GitHub"}):r?"It is still on GitHub":"The last is still on GitHub",", untouched by the draft below — a re-review replaces what cerber holds, never what was posted. Sending this one would be review ",l.length+1,"."]})}function KN({filed:l}){var s,u,f;const a=((s=l.review)==null?void 0:s.url)??((u=l.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return l.reason==="own-reply"&&l.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(l.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?d.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."]}):l.reason==="request-withdrawn"?d.jsxs("div",{children:[d.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(l.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."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((f=l.review)==null?void 0:f.at)??l.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?d.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 ZN({entries:l,open:a,onToggle:r,anchorRef:s}){const u=f=>{const p=new Date(f);return Number.isNaN(p.getTime())?f:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:s,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:l.length>0?`${l.length} entr${l.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[d.jsx(Ze,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&d.jsx("div",{className:"card-body",children:l.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:l.map((f,p)=>({e:f,i:p})).reverse().map(({e:f,i:p})=>d.jsxs("li",{className:"history-row",title:f.at,children:[d.jsx("span",{className:"history-at",children:u(f.at)}),d.jsx("span",{className:"history-by",children:f.by}),d.jsx("span",{className:"history-what",children:f.what}),f.cause&&d.jsx("span",{className:"history-cause",children:f.cause})]},`${p}-${f.at}`))})})]})}function XN({handoff:l,sent:a,hasDraft:r}){const s=new Date(l.at).toLocaleDateString();return d.jsxs("div",{children:[d.jsxs("strong",{children:["You handed this to @",l.to," on ",s,"."]})," ","GitHub asks them for this review now",l.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",l.note?l.note.url?d.jsxs(d.Fragment,{children:["A"," ",d.jsx("a",{href:l.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):d.jsx(d.Fragment,{children:"A note on the PR says so."}):d.jsx(d.Fragment,{children:"No note was posted — only the request moved."})," ",a?d.jsx(d.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?d.jsx(d.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):d.jsx(d.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function VN({artifact:l,freshness:a,rerunning:r,onRerun:s}){const u=l.status==="running",f=(a==null?void 0:a.prState)??l.pr.state,p=f==="CLOSED"||f==="MERGED",y=l.refresh,g=a!=null&&a.changed?y:null,m=!p&&bN(l,a)?l.sent:null;if(u)return d.jsxs("div",{className:"freshness",children:[(l.sent?[]:l.priorSends??[]).length>0&&d.jsx(Rb,{sends:l.priorSends??[]}),d.jsxs("div",{className:"freshness-running",children:[d.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 b=l.filed,v=l.handoff,_=l.sent?[]:l.priorSends??[];return!p&&!g&&!m&&!b&&!v&&_.length===0?null:d.jsxs("div",{className:"freshness",children:[_.length>0&&d.jsx(Rb,{sends:_}),v&&d.jsx(XN,{handoff:v,sent:l.sent,hasDraft:l.summary!==""||l.comments.length>0}),b&&d.jsx(KN,{filed:b}),p&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",f==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&d.jsxs(d.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&d.jsxs(d.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.",!l.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since you sent this review."})," ",(a==null?void 0:a.headSha)&&l.pr.headSha&&d.jsxs(d.Fragment,{children:["Now at ",d.jsx("code",{children:a.headSha.slice(0,7)}),", sent at"," ",d.jsx("code",{children:l.pr.headSha.slice(0,7)}),"."," "]}),"What you sent stays exactly as it was posted — cerber never re-anchors a review that is already on GitHub. Answering the new commits means a new draft, which replaces this one here and leaves what was posted alone.",d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function QN({reviewKey:l}){var va,Wn,Ea,Jt,Fn;const[a,r]=$.useState(null),[s,u]=$.useState(null),[f,p]=$.useState(null),[y,g]=$.useState(null),[m,b]=$.useState(!1),[v,_]=$.useState([]),[x,S]=$.useState(new Set),C=G=>S(de=>new Set(de).add(G)),[T,M]=$.useState(!1),[I,A]=$.useState([]),V=$.useRef(null),[Q,ie]=$.useState(new Set),[H,R]=$.useState(new Set),q=$.useRef(Promise.resolve()),J=$.useRef(0),[K,me]=$.useState(0),ce=$.useRef(new Map),[Se]=my(),[he,D]=$.useState(null),ee=$.useRef(null),fe=$.useRef(null),we=$.useRef(null),Le=$.useRef(null),w=$.useRef(null),z=$.useRef(null),[B,se]=$.useState(!1),pe=$.useRef(null),[ve,Z]=$.useState(!1),[ye,Ne]=$.useState(!1),[Ge,$e]=$.useState(null),[Me,Dt]=$.useState(null);$.useEffect(()=>{if(!Me)return;const G=setTimeout(()=>Dt(null),1800);return()=>clearTimeout(G)},[Me]);const Pe=G=>{var de,ge;A(xe=>xe.some(Ye=>Ye.target===G.target&&Ye.id===G.id)?xe:[...xe,G]),(de=V.current)==null||de.scrollIntoView({behavior:"smooth",block:"center"}),(ge=V.current)==null||ge.focus()};$.useEffect(()=>{let G=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),$e(null),Ne(!1),fg(l).then(de=>{if(!G)return r(de),d0(l).then(ge=>{G||(p(ge),ge.changed&&r(ge.artifact))}).catch(ge=>!G&&g(String(ge.message??ge))).then(()=>{if(!(G||de.sent||de.status==="running"||de.comments.length===0))return Ne(!0),g0(l).then(ge=>!G&&r(ge)).catch(()=>{}).finally(()=>!G&&Ne(!1))})}).catch(de=>!G&&u(String(de))),()=>{G=!0}},[l]),$.useEffect(()=>{Eo().then(_).catch(()=>{})},[]),$.useEffect(()=>{const G=pe.current;if(!G)return;const de=()=>document.documentElement.style.setProperty("--top-h",`${G.offsetHeight}px`);de();const ge=new ResizeObserver(de);return ge.observe(G),()=>{ge.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const Hn=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,it=$.useRef(null),fn=((va=a==null?void 0:a.raisedCheck)==null?void 0:va.checkingSince)!=null||ye;$.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!Hn&&!fn)return;const G=setInterval(()=>{fg(l).then(de=>{var ge;if(r(de),de.status!=="running"){b(!1);const xe=it.current;xe!=null&&de.sent&&(((ge=de.run)==null?void 0:ge.startedAt)??"none")===xe&&u("The re-review didn't start, so nothing here changed — the review you sent is untouched. The history below says why."),it.current=null}}).catch(()=>{})},3e3);return()=>clearInterval(G)},[a==null?void 0:a.status,Hn,fn,l]);const Ot=(a==null?void 0:a.sent)!=null,Gt=$.useMemo(()=>z_(v,l,x),[v,l,x]),Wt=Gt.findIndex(G=>G.key===l),Lt=(Wt>0?Gt[Wt-1]:null)??null,vt=(Wt>=0&&Wt<Gt.length-1?Gt[Wt+1]:null)??null,Ln=G=>{window.location.hash=`#/r/${encodeURIComponent(G)}`},lt=()=>{vt?Ln(vt.key):window.location.hash="#/"},mt=$.useMemo(()=>{if(!a)return[];const G=C_(a.diff,a.chapters);return G.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:G}]:a.chapters},[a]);$.useEffect(()=>{let G=0;const de=()=>{var Re;G=0;const Ye=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,un=Ye+16;let oe=null;for(const Be of mt){const Je=(Re=ce.current.get(Be.id))==null?void 0:Re.getBoundingClientRect();Je&&Je.top<=un&&Je.bottom>un&&(oe={id:Be.id,stuck:Je.top<Ye-1})}D(Be=>(Be==null?void 0:Be.id)===(oe==null?void 0:oe.id)&&(Be==null?void 0:Be.stuck)===(oe==null?void 0:oe.stuck)?Be:oe)},ge=()=>{G||(G=requestAnimationFrame(de))};de(),window.addEventListener("scroll",ge,{passive:!0}),window.addEventListener("resize",ge);const xe=new ResizeObserver(ge);return xe.observe(document.body),()=>{cancelAnimationFrame(G),window.removeEventListener("scroll",ge),window.removeEventListener("resize",ge),xe.disconnect()}},[mt]);const At=$.useMemo(()=>{const G=M_((a==null?void 0:a.diff)??""),de=new Set(ja((a==null?void 0:a.diff)??"").filter(xe=>df(xe.path)&&ff(xe.patch).isNew).map(xe=>xe.path)),ge=xe=>{const Ye=G.get(xe)??0;return de.has(xe)?Math.round(Ye/4):Ye};return new Map(mt.map(xe=>[xe.id,xe.files.reduce((Ye,un)=>Ye+ge(un),0)]))},[a==null?void 0:a.diff,mt]),_n=G=>{const de=At.get(G)??0;return de>BN?de:null},hn=G=>Q.has(G)?_n(G)!=null:_n(G)==null,qn=G=>ie(de=>{const ge=new Set(de);return ge.has(G)?ge.delete(G):ge.add(G),ge});$.useEffect(()=>{ie(new Set),R(new Set)},[l]);const Sn=$.useMemo(()=>Object.fromEntries(ja((a==null?void 0:a.diff)??"").map(G=>[G.path,D_(G.patch)])),[a==null?void 0:a.diff]),wn=$.useMemo(()=>new Set(Object.keys(Sn).filter(G=>{var de;return((de=a==null?void 0:a.viewed)==null?void 0:de[G])===Sn[G]})),[Sn,a==null?void 0:a.viewed]),Ht={viewed:wn,peeked:H,onToggleViewed:G=>{const de=wn.has(G)?null:Sn[G]??null;R(xe=>{const Ye=new Set(xe);return Ye.delete(G),Ye}),r(xe=>{if(!xe)return xe;const Ye={...xe.viewed};return de===null?delete Ye[G]:Ye[G]=de,{...xe,viewed:Ye}});const ge=++J.current;q.current=q.current.then(()=>s0(l,G,de)).then(xe=>{ge===J.current&&r(Ye=>Ye&&Ye.id===xe.id?{...Ye,viewed:xe.viewed}:Ye)}).catch(xe=>u(String(xe)))},onTogglePeek:G=>R(de=>{const ge=new Set(de);return ge.has(G)?ge.delete(G):ge.add(G),ge})},pn=G=>{const de=mt[G];return de?(me(G),hn(de.id)||qn(de.id),de):null},Rt=(...G)=>{for(const de of G)if(de.current)return de.current.scrollIntoView({behavior:"smooth",block:"start"})},Gn=G=>{var ge;const de=pn(G);de&&((ge=ce.current.get(de.id))==null||ge.scrollIntoView({behavior:"smooth",block:"start"}))},$n=(G,de)=>{var xe;pn(G);const ge=(xe=a==null?void 0:a.comments.find(Ye=>Ye.id===de))==null?void 0:xe.path;ge&&wn.has(ge)&&R(Ye=>new Set(Ye).add(ge)),Dt(de),vy(de)},mn=gN(a==null?void 0:a.verdict);$.useEffect(()=>$e(null),[mn]);const He=()=>{!a||a.sent||ve||fn||(Z(!0),$e(null),m0(l,mn).then(({replyError:G,...de})=>{r(de),G&&$e(`Sent — but ${G}`),C(l)}).catch(G=>$e(String(G.message??G))).finally(()=>Z(!1)))};if($.useEffect(()=>{const G=de=>{kN(de.target)||de.metaKey||de.ctrlKey||de.altKey||(de.key==="["&&Lt?Ln(Lt.key):de.key==="]"&&vt?Ln(vt.key):de.key==="n"?Gn(Math.min(mt.length-1,K+1)):de.key==="N"?Gn(Math.max(0,K-1)):de.key==="s"&&!Ot&&He())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[Lt==null?void 0:Lt.key,vt==null?void 0:vt.key,mt,K,Ot,mn,a==null?void 0:a.sent,ve,fn]),s&&!a)return d.jsx("p",{className:"error pad",children:s});if(!a)return d.jsx("p",{className:"muted pad",children:"Loading…"});const gn=G=>{var de;b(!0),u(null),it.current=a.sent?((de=a.run)==null?void 0:de.startedAt)??"none":null,Xb(l,G).then(r).catch(ge=>{u(String(ge)),b(!1)})},qt=G=>G.then(r).catch(de=>u(String(de))),$t=G=>lo(l,{status:G}).then(()=>{C(l),lt()}).catch(de=>u(String(de))),O=(G,de,ge)=>y0(l,{to:G,note:de,postReview:ge}).then(({artifact:xe,noteError:Ye,sendError:un,replyError:oe})=>{x0(G),r(xe),M(!1),C(l);const Re=[un&&`the review did not post: ${un}`,oe,Ye&&`the note did not post: ${Ye}`].filter(Boolean);Re.length>0?u(`Handed to @${G}, but ${Re.join("; and ")}`):lt()}),ne=(G,de)=>qt(r0(l,G,de)),be=G=>qt(c0(l,G)),je=G=>qt(o0(l,G)),Qe=a.comments.filter(G=>!G.chapterId||!mt.some(de=>de.id===G.chapterId)),{inline:st,folded:Ae,dropped:_e,held:Ue,replies:Ct}=by(a),bt=a.comments.filter(G=>G.alreadyRaised&&G.status!=="dropped").length,jn=a.comments.filter(G=>G.status!=="dropped"&&G.drifted).length,Un=a.verdict?xb[a.verdict.recommendation]:"none",ba=_N(a),Pt=EN(a),St=a.pendingChat!=null&&a.pendingChat.error==null,Kt=a.status==="running"||St,ut=()=>qt(Cd(l,{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}]})),Yn=(G,de)=>{qt(Cd(l,{message:de,refs:[{target:"line",id:null,path:G.path,line:G.line,side:G.side}]}).then(ge=>{var xe;return(xe=Le.current)==null||xe.scrollIntoView({behavior:"smooth",block:"start"}),ge}))},ii=(Wn=a.run)!=null&&Wn.trusted?"ran the code":(Ea=a.run)!=null&&Ea.withSource?"read the full source":a.run?"read the diff only":"no run yet",ya=G=>{var de;return d.jsxs("button",{className:`verdict-pick${((de=a.verdict)==null?void 0:de.recommendation)===G?` verdict-pick-on tone-${xb[G]}`:""}`,title:G==="approve"?"Approve":G==="comment"?"Comment without blocking":"Request changes",onClick:()=>qt(lo(l,{verdictRecommendation:G})),children:[d.jsx(Ze,{name:AN[G]}),G.replace("_"," ")]},G)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:pe,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:a.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!Lt,title:Lt?`[ — ${Lt.id}: ${Lt.pr.title}`:"no more reviews this way",onClick:()=>Lt&&Ln(Lt.key),children:d.jsx(Ze,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!vt,title:vt?`] — ${vt.id}: ${vt.pr.title}`:"no more reviews this way",onClick:()=>vt&&Ln(vt.key),children:d.jsx(Ze,{name:"chevronRight"})})]}),Wt>=0&&d.jsxs("span",{className:"faint",children:[Wt+1," of ",Gt.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:vt?`next: ${vt.pr.title}`:Wt>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ze,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),d.jsx("span",{className:"grow"}),a.verdict&&(Ot?d.jsxs("span",{className:`chip tone-${Un}`,children:[a.verdict.recommendation.replace("_"," "),Pt&&` · ${Pt}`," · ",a.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${Un}`,title:"change it, or send — both are at the foot of the page",onClick:()=>Rt(ee,w),children:[a.verdict.recommendation.replace("_"," "),Pt&&` · ${Pt}`," · ",a.verdict.confidence,"%",d.jsx(Ze,{name:"down",size:12})]})),a.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:m,title:Ot?"Draft a new review at the current head. What you sent stays on GitHub — this replaces the draft here, and sending again posts a second review":a.run?"Review the current head again — this draft is replaced, comments and all":"Draft a review of this PR",onClick:()=>gn(!0),children:[d.jsx(Ze,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:a.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:ii}),((Jt=a.run)==null?void 0:Jt.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.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"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Rt(fe),children:"summary"}),a.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Rt(we),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var G;Rt(Le),(G=V.current)==null||G.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{se(!0),Rt(z)},children:"history"})]}),mt.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Gn(0),children:"changes"}),mt.map((G,de)=>{const ge=G.files.length>0&&G.files.every(xe=>wn.has(xe));return d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${hn(G.id)?" rail-item-on":""}${ge?" rail-item-done":""}${(he==null?void 0:he.id)===G.id?" rail-item-here":""}`,onClick:()=>Gn(de),children:[d.jsxs("span",{className:"grow",children:[de+1," · ",G.title]}),d.jsxs("span",{className:"rail-count",title:ge?"every file viewed":void 0,children:[ge?"✓ ":"",G.files.length,"f"]})]}),a.comments.filter(xe=>xe.chapterId===G.id).map(xe=>d.jsxs("button",{className:`rail-comment${xe.status==="dropped"?" rail-comment-dropped":""}`,title:`${xe.path}${xe.line!=null?`:${xe.line}`:""} — ${xe.body}`,onClick:()=>$n(de,xe.id),children:[d.jsx("span",{className:`rail-dot tone-${RN(xe,Un)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[xe.path.split("/").pop(),xe.line!=null?`:${xe.drifted?"~":""}${xe.line}`:""]})]},xe.id))]},G.id)})]}),d.jsx("button",{className:`lab rail-lab-btn${mt.length>0?" rail-lab":""}`,onClick:()=>Rt(ee,w),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[a.comments.length-_e.length," keeping · ",_e.length," dropped"]}),d.jsxs("div",{children:[st.length," inline · ",Ae.length," folded into body"]}),jn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[jn," drifted"]}),d.jsx(zN,{check:a.raisedCheck??null,raised:bt,held:Ue.length,replies:Ct.length})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(VN,{artifact:a,freshness:f,rerunning:m,onRerun:gn}),y&&d.jsxs("div",{className:"freshness",title:y,children:[d.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."]}),s&&d.jsx("div",{className:"error",children:s}),((Fn=a.run)==null?void 0:Fn.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),d.jsx("div",{className:"card card-summary",ref:fe,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(ni,{className:"prose lead",text:a.summary||"(no summary)"}),!Ot&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"summary",id:null}),children:[d.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&d.jsx("div",{className:`card card-why tone-border-${Un}`,ref:we,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[Ad(a)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Ad(a)}),Ad(a)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.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"]})]}),d.jsx(ni,{className:"prose lead",text:a.verdict.reasoning}),!Ot&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"verdict",id:null}),children:[d.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),mt.map((G,de)=>d.jsx(IN,{chapter:G,n:de+1,diff:a.diff,comments:a.comments.filter(ge=>ge.chapterId===G.id),open:hn(G.id),heavy:_n(G.id),onToggle:()=>qn(G.id),onUpdateComment:ne,onDeleteComment:be,onAddComment:je,onDiscuss:Ot?void 0:Pe,onAskAboutLine:Yn,chatBusy:St,readOnly:Ot,flash:Me,viewedState:Ht,sticky:Se,stuck:(he==null?void 0:he.id)===G.id&&he.stuck,anchorRef:ge=>{ge?ce.current.set(G.id,ge):ce.current.delete(G.id)}},G.id)),Qe.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:Qe.map(G=>d.jsx(_y,{comment:G,onUpdate:de=>ne(G.id,de),onDelete:()=>be(G.id),onDiscuss:Ot?void 0:()=>Pe({target:"comment",id:G.id}),readOnly:Ot},G.id))})]}),d.jsx(ZN,{entries:a.history??[],open:B,onToggle:()=>se(G=>!G),anchorRef:z})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(GN,{artifact:a,reviewKey:l,refs:I,onClearRefs:()=>A([]),onDropRef:G=>A(de=>de.filter((ge,xe)=>xe!==G)),onArtifact:r,readOnly:Ot,inputRef:V,anchorRef:Le}),d.jsxs("div",{className:"cockpit-decide",children:[!Ot&&ba&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:ba})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:ut,disabled:St,children:[d.jsx(Ze,{name:"comment"}),St?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Ot&&d.jsxs("div",{className:"verdict-bar",ref:ee,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(ya)]}),d.jsx(PN,{artifact:a,reviewKey:l,event:mn,sending:ve,checking:fn,onSend:He,error:Ge,next:vt,onAdvance:lt,onBody:G=>lo(l,{bodyOverride:G}).then(r),anchorRef:w,footer:d.jsxs(d.Fragment,{children:[!Ot&&d.jsx("span",{className:"faint",children:"not sending?"}),!Ot&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:vt?`Settle it locally and go to ${vt.id}`:"Settle it locally and go back to the queue",onClick:()=>$t("reviewed"),children:[d.jsx(Ze,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:vt?`Leave it and go to ${vt.id}`:"Leave it and go back to the queue",onClick:()=>$t("skipped"),children:[d.jsx(Ze,{name:"skip"}),"skip"]})]}),d.jsxs("button",{className:"btn btn-sm",title:Kt?"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:()=>M(!0),disabled:T||Kt,children:[d.jsx(Ze,{name:"arrowRight"}),"hand off"]}),d.jsxs("a",{className:"btn btn-sm",href:v0(l),children:[d.jsx(Ze,{name:"download"}),"export .md"]})]})}),T&&d.jsx(FN,{artifact:a,reviewKey:l,onConfirm:O,onCancel:()=>M(!1)})]})]})]})]})}const kb="cerber.notify.seen.v2",WN="cerber.notify.seen",Yd="cerber.notify",JN=1e4,Hs=l=>l.status==="ready",Fd=l=>{try{return localStorage.getItem(l)}catch{return null}},Pd=(l,a)=>{try{localStorage.setItem(l,a)}catch{}},ex={autoReview:!1,autoReviewRepos:{}};function tx(l,a){return l?!l.enabled||!l.pollEnabled?ex:{autoReview:l.autoReview,autoReviewRepos:l.autoReviewRepos??{}}:a}const wy=(l,a)=>nx(l,Yb(a,l.pr.owner,l.pr.repo));function nx(l,a){return l.announceable===!1||l.status==="running"?!1:l.status==="awaiting"?!a:!0}const Ny=":draft",ro=l=>`${l.key}${Ny}`,xy=l=>Hs(l)?ro(l):l.key;function ax(l,a,r){const s=new Set(a);return Gs(l).filter(u=>wy(u,r)&&!s.has(xy(u)))}function ix(l,a,r=[]){const s=new Set(r),u=new Set(Gs(l).map(p=>p.key)),f=[];for(const p of l){if(u.has(p.key)&&!wy(p,a)){for(const y of[p.key,ro(p)])s.has(y)&&f.push(y);continue}f.push(p.key),(Hs(p)||!u.has(p.key)||s.has(ro(p)))&&f.push(ro(p))}return f}const Rd=l=>`${l.pr.repo}#${l.pr.number}`,lx={approve:"approves",comment:"comments",request_changes:"requests changes"};function sx(l){const a=l.verdict?lx[l.verdict.recommendation]:"drafted",r=l.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function rx(l){if(l.length===0)return null;const a=`cerber:${l.map(xy).sort().join("|")}`;if(l.length===1){const u=l[0];return{title:Hs(u)?`${Rd(u)} draft ready`:`${Rd(u)} awaits your review`,body:Hs(u)?`${sx(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=l.slice(0,3).map(Rd),s=l.length-r.length;return{title:l.every(Hs)?`${l.length} drafts ready`:`${l.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const ox=new Set(["127.0.0.1","localhost","::1","[::1]"]);function cx(l,a=window.location.hostname){return!(l!=null&&l.enabled)||!l.notify?!1:ox.has(a)}function ql(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Fd(Yd)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function ux(){const l=ql();if(l==="unsupported"||l==="blocked")return l;if(l==="on")return Pd(Yd,"off"),ql();if(Pd(Yd,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return ql()}function dx(l){const a=new Notification(l.title,{body:l.body,tag:l.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=l.key?`#/r/${encodeURIComponent(l.key)}`:"#/",a.close()}}function fx(l,a){const r=l??a;if(!r)return null;let s;try{s=JSON.parse(r)}catch{return null}if(!Array.isArray(s))return null;const u=s.filter(f=>typeof f=="string");return l?u:u.flatMap(f=>[f,`${f}${Ny}`])}function hx(){const l=$.useRef(null),a=$.useRef({autoReview:!0,autoReviewRepos:{}}),[r,s]=$.useState(!1);return $.useEffect(()=>{let u=!0;l.current=fx(Fd(kb),Fd(WN));const f=()=>Promise.all([Eo(),Zb().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=cx(g);s(m),a.current=tx(g,a.current);const b=l.current;if(l.current=ix(y,a.current,b??[]),Pd(kb,JSON.stringify(l.current)),!b||ql()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const v=rx(ax(y,b,a.current));v&&dx(v)}).catch(()=>{});f();const p=setInterval(f,JN);return()=>{u=!1,clearInterval(p)}},[]),r}function Ty(){const[l,a]=$.useState(ql);return $.useEffect(()=>{const r=()=>a(ql());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[l,()=>void ux().then(a)]}const oo=l=>{window.location.hash=`#/r/${encodeURIComponent(l)}`};function px(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function mx({daemon:l}){return l!=null&&l.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[l.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),l.repos.length>0?l.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(l.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:l.autoReview?"on":"off"}),J_(l.autoReview,l.autoReviewRepos??{})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:l.autoSend==="on"?"on":"shadow"})," ≥",l.autoSendThreshold,"%",l.autoSend==="on"?` · ${l.autoSent} sent`:` · ${l.autoSendCandidates} candidate${l.autoSendCandidates===1?"":"s"}`]}),l.trustedRuns&&d.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:[d.jsx(Ze,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),l.lastPollError?d.jsx("span",{className:"danger",title:l.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:l.polling?"polling now…":[l.lastSummary?`last: ${l.lastSummary}`:null,l.nextPollAt?`next ${new Date(l.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function Ji({className:l,label:a,tip:r}){return d.jsx("span",{className:l,children:d.jsxs("span",{className:"head-cell",children:[a,d.jsx("span",{className:"head-tip",role:"tooltip",children:r})]})})}function gx({r:l,selected:a,onSelect:r,onOpen:s,awaiting:u}){const f=V_(l),p=H_(l),y=u?K_(l,u):null;return d.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${l.pr.owner}/${l.pr.repo}#${l.pr.number}`,children:[l.pr.repo,"#",l.pr.number]}),d.jsx("span",{className:"col-author",title:l.pr.author,children:l.pr.author}),d.jsx("span",{className:"col-title",title:l.pr.title,children:l.pr.title}),l.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&d.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&d.jsx("span",{className:"tag tag-done",children:p}),d.jsx("span",{className:"col-comments",children:Q_(l)}),d.jsx("span",{className:"col-size",children:l.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[l.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",l.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",l.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${f.tone}`,children:f.label}),d.jsx("span",{className:"col-age",children:Kb(l.updatedAt)})]})}function Ob({autoFocus:l}){const[a,r]=$.useState(""),[s,u]=$.useState(!1),[f,p]=$.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),p(null),u0(m).then(b=>oo(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:y,children:[d.jsx(Ze,{name:"plus"}),d.jsx("input",{className:"pull-input",value:a,autoFocus:l,disabled:s,onChange:g=>{r(g.target.value),f&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),f&&d.jsx("span",{className:"pull-error",children:f})]})}function bx({text:l}){const a=$.useRef(null),[r,s]=$.useState(!1);return $.useLayoutEffect(()=>{const u=a.current;if(!u)return;const f=()=>s(u.scrollHeight-u.clientHeight>4);f();const p=new ResizeObserver(f);return p.observe(u),()=>p.disconnect()},[l]),d.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(ni,{className:"prose",text:l})})}function yx(){var J;const[l,a]=$.useState(null),[r,s]=$.useState(null),[u,f]=$.useState(null),[p,y]=$.useState(new Set),[g,m]=$.useState("inbox"),[b,v]=$.useState(null),_=$.useRef(!0);$.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const x=()=>{Eo().then(K=>_.current&&a(K)).catch(K=>_.current&&f(String(K))),Zb().then(K=>_.current&&s(K)).catch(()=>{})};$.useEffect(()=>{x();const K=setInterval(x,1e4);return()=>clearInterval(K)},[]);const S=l??[],C=$.useMemo(()=>B_(S,r),[S,r]),T=C.requests,M=I_(g,C),I=C[M];$.useEffect(()=>{M!==g&&m(M)},[M,g]);const A=I.find(K=>K.key===b)??I[0]??null,V=K=>{y(me=>new Set(me).add(K)),Xb(K).then(()=>x()).catch(me=>_.current&&f(String(me))).finally(()=>{_.current&&y(me=>{const ce=new Set(me);return ce.delete(K),ce})})};if($.useEffect(()=>{const K=me=>{if(px(me.target)||me.metaKey||me.ctrlKey||me.altKey)return;const ce=I.findIndex(he=>he.key===(A==null?void 0:A.key)),Se=he=>{const D=I[Math.min(I.length-1,Math.max(0,ce+he))];D&&v(D.key)};me.key==="j"||me.key==="ArrowDown"?(me.preventDefault(),Se(1)):me.key==="k"||me.key==="ArrowUp"?(me.preventDefault(),Se(-1)):me.key==="Enter"&&A?oo(A.key):me.key==="r"&&A&&A.status!=="running"&&A.status!=="sent"&&V(A.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[I,A==null?void 0:A.key]),u&&!l)return d.jsx("p",{className:"error",children:u});if(!l)return d.jsx("p",{className:"muted pad",children:"Loading…"});const Q=I.reduce((K,me)=>K+(me.costUsd??0),0),ie=A?e0(A,r):null,H=A?p.has(A.key):!1,R=Od.filter(K=>C[K].length>0),q=K=>d.jsxs("button",{className:`tab${M===K?" tab-on":""}${Od.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:Du[K].title,onClick:()=>m(K),children:[Du[K].label," ",d.jsx("span",{className:"tab-count",children:C[K].length})]},K);return d.jsxs(d.Fragment,{children:[d.jsx(mx,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),S.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(Ob,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[L_.map(q),R.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),R.map(q),d.jsx("span",{className:"grow"}),d.jsx(Ob,{}),Q>0&&d.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:["≈$",Q.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx(Ji,{className:"col-slug",label:"repo#pr",tip:"Repository and pull request number"}),d.jsx(Ji,{className:"col-author",label:"author",tip:"Who opened the pull request"}),d.jsx(Ji,{className:"col-title",label:"title",tip:"Pull request title"}),d.jsx(Ji,{className:"col-comments",label:"comments",tip:"Comments in the draft (— before one exists)"}),d.jsx(Ji,{className:"col-size",label:"size",tip:"Files changed, lines added, lines removed"}),d.jsx(Ji,{className:"col-verdict",label:"verdict",tip:"Recommendation, and how sure the review is"}),d.jsx(Ji,{className:"col-age",label:"upd",tip:"When this review last changed"})]}),I.length===0?d.jsx("div",{className:"empty-tab",children:M==="inbox"&&T.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:Z_(T)}),d.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[d.jsx(Ze,{name:"arrowRight"}),"show ",T.length===1?"it":`all ${T.length}`]})]}):d.jsx("p",{className:"muted",children:M==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Du[M].label} right now.`})}):I.map(K=>d.jsx(gx,{r:K,selected:K.key===(A==null?void 0:A.key),onSelect:()=>v(K.key),onOpen:()=>oo(K.key),awaiting:U_(K,T)?q_(K,r):null},K.key)),A&&ie&&d.jsxs("div",{className:"cursor-strip",children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[A.pr.owner,"/",A.pr.repo,"#",A.pr.number,A.pr.headRefName&&A.pr.baseRefName?` · ${A.pr.headRefName} → ${A.pr.baseRefName}`:""]}),d.jsx(bx,{text:ie.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[ie.meta.join(" · "),((J=A.sent)==null?void 0:J.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:A.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>oo(A.key),children:[d.jsx(Ze,{name:"arrowRight"}),"open review ",d.jsx(za,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:A.status==="sent"||A.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>lo(A.key,{status:"skipped"}).then(x).catch(K=>f(String(K))),children:[d.jsx(Ze,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:H||A.status==="running",title:A.status==="sent"?"Draft a review of the PR's current head. What you sent stays on GitHub.":"Draft a review of the PR's current head.",onClick:()=>V(A.key),children:[d.jsx(Ze,{name:"rerun"}),H?"starting…":A.status==="awaiting"||A.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const bo="cerber.theme";function Ay(l){return l==="light"||l==="dark"?l:"system"}function vx(){try{return Ay(localStorage.getItem(bo))}catch{return"system"}}function Ry(l,a=document.documentElement){l==="system"?delete a.dataset.theme:a.dataset.theme=l}function Ex(l,a){try{const r=a??localStorage;l==="system"?r.removeItem(bo):r.setItem(bo,l)}catch{}}function _x(){ky(Ry)}function ky(l){const a=r=>{(r.key===bo||r.key===null)&&l(Ay(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function Sx(){const[l,a]=$.useState(vx);return $.useEffect(()=>ky(a),[]),[l,s=>{Ex(s),Ry(s),a(s)}]}const wx=[{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"}],Cb=l=>l instanceof Error?l.message:String(l),Nx={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"},xx=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}],Tx=[{choice:"mod-enter",label:"⌘↵ sends a chat message, Enter starts a new line"},{choice:"enter",label:"Enter sends a chat message, Shift+Enter starts a new line"}],Ax=/^[\w.-]+\/[\w.-]+$/,kd=l=>l?"drafts automatically":"waits for a click";function Rx({daemon:l,busy:a,save:r}){const[s,u]=$.useState(""),[f,p]=$.useState(!l.autoReview),[y,g]=$.useState([]);$.useEffect(()=>{Eo().then(S=>g([...new Set(S.map(C=>`${C.pr.owner}/${C.pr.repo}`))].sort())).catch(()=>{})},[]),$.useEffect(()=>p(!l.autoReview),[l.autoReview]);const m=Object.entries(l.autoReviewRepos).sort(([S],[C])=>S.localeCompare(C)),b=s.trim(),v=Ax.test(b),_=new Set(m.map(([S])=>S.toLowerCase())),x=()=>{a||!v||(r(b,f),u(""))};return d.jsxs(d.Fragment,{children:[d.jsx("h2",{children:"Per-repo exceptions"}),d.jsx("p",{className:"muted",children:"Every repo not listed here follows the switch above. List a busy repo to keep it to the click, or, with the switch off, one repo you still want drafted."}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:s,"aria-label":"Repository",placeholder:"owner/repo",list:"auto-review-repos",disabled:a,onChange:S=>u(S.target.value),onKeyDown:S=>{S.key==="Enter"&&x()}}),d.jsx("datalist",{id:"auto-review-repos",children:y.filter(S=>!_.has(S.toLowerCase())).map(S=>d.jsx("option",{value:S},S))}),d.jsxs("select",{"aria-label":"What the poll does for this repo",value:f?"auto":"click",disabled:a,onChange:S=>p(S.target.value==="auto"),children:[d.jsx("option",{value:"click",children:kd(!1)}),d.jsx("option",{value:"auto",children:kd(!0)})]}),d.jsx("button",{className:"btn",disabled:a||!v,onClick:x,children:"add"})]}),m.length===0?d.jsxs("p",{className:"muted",children:["No exceptions — every repo ",l.autoReview?"is drafted automatically":"waits for a click","."]}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.map(([S,C])=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:S})}),d.jsxs("td",{className:"muted",children:[kd(C),C===l.autoReview&&" — same as the default, so it changes nothing"]}),d.jsxs("td",{className:"trust-actions",children:[d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(S,!C),children:C?"wait for a click":"draft automatically"})," ",d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(S,null),children:"remove"})]})]},S))})})]})}function kx({daemonAnnounces:l}){const[a,r]=Ty(),[s,u]=Sx(),[f,p]=my(),[y,g]=yy(),[m,b]=$.useState(null),[v,_]=$.useState(""),[x,S]=$.useState(null),[C,T]=$.useState(!1);$.useEffect(()=>{E0().then(b).catch(A=>S(Cb(A)))},[]);const M=A=>{T(!0),S(null),A.then(b).catch(V=>S(Cb(V))).finally(()=>T(!1))};if(x&&!m)return d.jsx("p",{className:"error",children:x});if(!m)return d.jsx("p",{className:"muted",children:"Loading…"});const I=l&&m.daemon.poll&&m.daemon.notify;return d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.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."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.poll,disabled:C,onChange:A=>M(ju({poll:A.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",m.daemon.intervalMinutes,"m)"]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReview,disabled:C||!m.daemon.poll,onChange:A=>M(ju({autoReview:A.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),m.daemon.poll&&d.jsx(Rx,{daemon:m.daemon,busy:C,save:(A,V)=>M(_0(A,V))}),d.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",d.jsx("code",{children:m.path})," under"," ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.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.'}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.notify,disabled:C||!m.daemon.poll,onChange:A=>M(ju({notify:A.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),d.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 ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",d.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'," ",d.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||I,onChange:r})," ",I?"let this browser announce them instead":Nx[a]]}),d.jsx("p",{className:"muted",children:I?d.jsx(d.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."}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:m.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."]})}),d.jsx("h1",{id:"appearance",children:"Appearance"}),d.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:xx.map(({choice:A,label:V})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"theme",checked:s===A,onChange:()=>u(A)})," ",V]},A))}),d.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 ",d.jsx("code",{children:m.path}),"."]}),d.jsx("h1",{children:"Review page"}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:f,onChange:A=>p(A.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),d.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. Deep in a long file its name and Viewed box stay in reach. Per-browser, like the theme."}),Tx.map(({choice:A,label:V})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"send-key",checked:y===A,onChange:()=>g(A)})," ",V]},A)),d.jsx("p",{className:"muted",children:"In the conversation with the reviewer. ⌘↵ sends under either choice, and the other boxes — comments, the review body, a handoff note — always take ⌘↵, since what goes in them runs to several lines. Per-browser, like the theme."}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.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."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:m.path}),"."]}),d.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".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:v,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:C,onChange:A=>_(A.target.value),onKeyDown:A=>{A.key==="Enter"&&!C&&v.trim()&&(M(zu(v.trim())),_(""))}}),d.jsx("button",{className:"btn",disabled:C||!v.trim(),onClick:()=>{M(zu(v.trim())),_("")},children:"trust"})]}),x&&d.jsx("p",{className:"error",children:x}),m.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.trust.map(A=>d.jsxs("tr",{className:A.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:A.rule})}),d.jsx("td",{className:"muted",children:A.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:C,onClick:()=>M(zu(A.rule,!0)),children:"remove"})})]},A.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:wx.map(A=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:A.rule})}),d.jsx("td",{className:"muted",children:A.meaning})]},A.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.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 ",d.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 ",d.jsx("code",{children:"--no-trust"})," to prevent that."]}),d.jsxs("p",{className:"muted settings-version",children:["cerber ",m.version]})]})}function Mb(){const l=window.location.hash,a=l.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:l==="#/settings"?{view:"settings"}:{view:"queue"}}const Db={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."},Lb="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 Ox({daemonAnnounces:l}){const[a,r]=Ty();return l?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Lb,"aria-label":Lb,children:d.jsx(Ze,{name:"bell",size:15})}):a==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${a}`,title:Db[a],"aria-label":Db[a],"aria-pressed":a==="on",onClick:r,children:d.jsx(Ze,{name:a==="on"?"bell":"bellOff",size:15})})}function Cx(){const[l,a]=$.useState(Mb()),r=hx();return $.useEffect(()=>{const s=()=>a(Mb());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),l.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(QN,{reviewKey:l.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(OS,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),l.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"j"}),d.jsx(za,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"r"}),"review now"]})]}),d.jsx(Ox,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ze,{name:"settings",size:15})})]})}),l.view==="queue"?d.jsx(yx,{}):d.jsx(kx,{daemonAnnounces:r})]})}_x();$E.createRoot(document.getElementById("root")).render(d.jsx(UE.StrictMode,{children:d.jsx(Cx,{})}));
|